drizzle-kit 0.30.3 → 0.30.4-4647df7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1542 -1420
- package/api.mjs +1542 -1420
- package/bin.cjs +285 -2246
- package/package.json +2 -2
package/bin.cjs
CHANGED
@@ -58957,9 +58957,9 @@ var require_dist_cjs46 = __commonJS({
|
|
58957
58957
|
}
|
58958
58958
|
});
|
58959
58959
|
|
58960
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
58960
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
58961
58961
|
var require_httpAuthSchemeProvider3 = __commonJS({
|
58962
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
58962
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
58963
58963
|
"use strict";
|
58964
58964
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58965
58965
|
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
@@ -59026,9 +59026,9 @@ var require_httpAuthSchemeProvider3 = __commonJS({
|
|
59026
59026
|
}
|
59027
59027
|
});
|
59028
59028
|
|
59029
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
59029
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
59030
59030
|
var require_package4 = __commonJS({
|
59031
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
59031
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
59032
59032
|
module2.exports = {
|
59033
59033
|
name: "@aws-sdk/client-sso-oidc",
|
59034
59034
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
@@ -59132,9 +59132,9 @@ var require_package4 = __commonJS({
|
|
59132
59132
|
}
|
59133
59133
|
});
|
59134
59134
|
|
59135
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
59135
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
59136
59136
|
var require_ruleset2 = __commonJS({
|
59137
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
59137
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
59138
59138
|
"use strict";
|
59139
59139
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59140
59140
|
exports2.ruleSet = void 0;
|
@@ -59167,9 +59167,9 @@ var require_ruleset2 = __commonJS({
|
|
59167
59167
|
}
|
59168
59168
|
});
|
59169
59169
|
|
59170
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
59170
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
59171
59171
|
var require_endpointResolver2 = __commonJS({
|
59172
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
59172
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
59173
59173
|
"use strict";
|
59174
59174
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59175
59175
|
exports2.defaultEndpointResolver = void 0;
|
@@ -59187,9 +59187,9 @@ var require_endpointResolver2 = __commonJS({
|
|
59187
59187
|
}
|
59188
59188
|
});
|
59189
59189
|
|
59190
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
59190
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
59191
59191
|
var require_runtimeConfig_shared2 = __commonJS({
|
59192
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
59192
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
59193
59193
|
"use strict";
|
59194
59194
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59195
59195
|
exports2.getRuntimeConfig = void 0;
|
@@ -59233,16 +59233,16 @@ var require_runtimeConfig_shared2 = __commonJS({
|
|
59233
59233
|
}
|
59234
59234
|
});
|
59235
59235
|
|
59236
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
59236
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
59237
59237
|
var require_runtimeConfig2 = __commonJS({
|
59238
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
59238
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
59239
59239
|
"use strict";
|
59240
59240
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59241
59241
|
exports2.getRuntimeConfig = void 0;
|
59242
59242
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
59243
59243
|
var package_json_1 = tslib_1.__importDefault(require_package4());
|
59244
59244
|
var core_1 = require_dist_cjs37();
|
59245
|
-
var credential_provider_node_1 =
|
59245
|
+
var credential_provider_node_1 = require_dist_cjs54();
|
59246
59246
|
var util_user_agent_node_1 = require_dist_cjs41();
|
59247
59247
|
var config_resolver_1 = require_dist_cjs11();
|
59248
59248
|
var hash_node_1 = require_dist_cjs42();
|
@@ -59286,9 +59286,9 @@ var require_runtimeConfig2 = __commonJS({
|
|
59286
59286
|
}
|
59287
59287
|
});
|
59288
59288
|
|
59289
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
59289
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
59290
59290
|
var require_dist_cjs47 = __commonJS({
|
59291
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
59291
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
59292
59292
|
"use strict";
|
59293
59293
|
var __defProp3 = Object.defineProperty;
|
59294
59294
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -60816,2203 +60816,32 @@ var require_package5 = __commonJS({
|
|
60816
60816
|
]
|
60817
60817
|
}
|
60818
60818
|
},
|
60819
|
-
files: [
|
60820
|
-
"dist-*/**"
|
60821
|
-
],
|
60822
|
-
author: {
|
60823
|
-
name: "AWS SDK for JavaScript Team",
|
60824
|
-
url: "https://aws.amazon.com/javascript/"
|
60825
|
-
},
|
60826
|
-
license: "Apache-2.0",
|
60827
|
-
browser: {
|
60828
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
60829
|
-
},
|
60830
|
-
"react-native": {
|
60831
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
60832
|
-
},
|
60833
|
-
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",
|
60834
|
-
repository: {
|
60835
|
-
type: "git",
|
60836
|
-
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
60837
|
-
directory: "clients/client-sts"
|
60838
|
-
}
|
60839
|
-
};
|
60840
|
-
}
|
60841
|
-
});
|
60842
|
-
|
60843
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
60844
|
-
var require_httpAuthSchemeProvider5 = __commonJS({
|
60845
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
60846
|
-
"use strict";
|
60847
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
60848
|
-
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
60849
|
-
var core_1 = require_dist_cjs37();
|
60850
|
-
var util_middleware_1 = require_dist_cjs10();
|
60851
|
-
var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
60852
|
-
return {
|
60853
|
-
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
60854
|
-
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
60855
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
60856
|
-
})()
|
60857
|
-
};
|
60858
|
-
};
|
60859
|
-
exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
|
60860
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
60861
|
-
return {
|
60862
|
-
schemeId: "aws.auth#sigv4",
|
60863
|
-
signingProperties: {
|
60864
|
-
name: "sso-oauth",
|
60865
|
-
region: authParameters.region
|
60866
|
-
},
|
60867
|
-
propertiesExtractor: (config, context) => ({
|
60868
|
-
signingProperties: {
|
60869
|
-
config,
|
60870
|
-
context
|
60871
|
-
}
|
60872
|
-
})
|
60873
|
-
};
|
60874
|
-
}
|
60875
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
60876
|
-
return {
|
60877
|
-
schemeId: "smithy.api#noAuth"
|
60878
|
-
};
|
60879
|
-
}
|
60880
|
-
var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
60881
|
-
const options = [];
|
60882
|
-
switch (authParameters.operation) {
|
60883
|
-
case "CreateToken": {
|
60884
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
60885
|
-
break;
|
60886
|
-
}
|
60887
|
-
case "RegisterClient": {
|
60888
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
60889
|
-
break;
|
60890
|
-
}
|
60891
|
-
case "StartDeviceAuthorization": {
|
60892
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
60893
|
-
break;
|
60894
|
-
}
|
60895
|
-
default: {
|
60896
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
60897
|
-
}
|
60898
|
-
}
|
60899
|
-
return options;
|
60900
|
-
};
|
60901
|
-
exports2.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
|
60902
|
-
var resolveHttpAuthSchemeConfig = (config) => {
|
60903
|
-
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
60904
|
-
return {
|
60905
|
-
...config_0
|
60906
|
-
};
|
60907
|
-
};
|
60908
|
-
exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
60909
|
-
}
|
60910
|
-
});
|
60911
|
-
|
60912
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
60913
|
-
var require_package6 = __commonJS({
|
60914
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
60915
|
-
module2.exports = {
|
60916
|
-
name: "@aws-sdk/client-sso-oidc",
|
60917
|
-
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
60918
|
-
version: "3.583.0",
|
60919
|
-
scripts: {
|
60920
|
-
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
60921
|
-
"build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
|
60922
|
-
"build:es": "tsc -p tsconfig.es.json",
|
60923
|
-
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
60924
|
-
"build:types": "tsc -p tsconfig.types.json",
|
60925
|
-
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
60926
|
-
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
60927
|
-
"extract:docs": "api-extractor run --local",
|
60928
|
-
"generate:client": "node ../../scripts/generate-clients/single-service --solo sso-oidc"
|
60929
|
-
},
|
60930
|
-
main: "./dist-cjs/index.js",
|
60931
|
-
types: "./dist-types/index.d.ts",
|
60932
|
-
module: "./dist-es/index.js",
|
60933
|
-
sideEffects: false,
|
60934
|
-
dependencies: {
|
60935
|
-
"@aws-crypto/sha256-browser": "3.0.0",
|
60936
|
-
"@aws-crypto/sha256-js": "3.0.0",
|
60937
|
-
"@aws-sdk/client-sts": "3.583.0",
|
60938
|
-
"@aws-sdk/core": "3.582.0",
|
60939
|
-
"@aws-sdk/credential-provider-node": "3.583.0",
|
60940
|
-
"@aws-sdk/middleware-host-header": "3.577.0",
|
60941
|
-
"@aws-sdk/middleware-logger": "3.577.0",
|
60942
|
-
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
60943
|
-
"@aws-sdk/middleware-user-agent": "3.583.0",
|
60944
|
-
"@aws-sdk/region-config-resolver": "3.577.0",
|
60945
|
-
"@aws-sdk/types": "3.577.0",
|
60946
|
-
"@aws-sdk/util-endpoints": "3.583.0",
|
60947
|
-
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
60948
|
-
"@aws-sdk/util-user-agent-node": "3.577.0",
|
60949
|
-
"@smithy/config-resolver": "^3.0.0",
|
60950
|
-
"@smithy/core": "^2.0.1",
|
60951
|
-
"@smithy/fetch-http-handler": "^3.0.1",
|
60952
|
-
"@smithy/hash-node": "^3.0.0",
|
60953
|
-
"@smithy/invalid-dependency": "^3.0.0",
|
60954
|
-
"@smithy/middleware-content-length": "^3.0.0",
|
60955
|
-
"@smithy/middleware-endpoint": "^3.0.0",
|
60956
|
-
"@smithy/middleware-retry": "^3.0.1",
|
60957
|
-
"@smithy/middleware-serde": "^3.0.0",
|
60958
|
-
"@smithy/middleware-stack": "^3.0.0",
|
60959
|
-
"@smithy/node-config-provider": "^3.0.0",
|
60960
|
-
"@smithy/node-http-handler": "^3.0.0",
|
60961
|
-
"@smithy/protocol-http": "^4.0.0",
|
60962
|
-
"@smithy/smithy-client": "^3.0.1",
|
60963
|
-
"@smithy/types": "^3.0.0",
|
60964
|
-
"@smithy/url-parser": "^3.0.0",
|
60965
|
-
"@smithy/util-base64": "^3.0.0",
|
60966
|
-
"@smithy/util-body-length-browser": "^3.0.0",
|
60967
|
-
"@smithy/util-body-length-node": "^3.0.0",
|
60968
|
-
"@smithy/util-defaults-mode-browser": "^3.0.1",
|
60969
|
-
"@smithy/util-defaults-mode-node": "^3.0.1",
|
60970
|
-
"@smithy/util-endpoints": "^2.0.0",
|
60971
|
-
"@smithy/util-middleware": "^3.0.0",
|
60972
|
-
"@smithy/util-retry": "^3.0.0",
|
60973
|
-
"@smithy/util-utf8": "^3.0.0",
|
60974
|
-
tslib: "^2.6.2"
|
60975
|
-
},
|
60976
|
-
devDependencies: {
|
60977
|
-
"@tsconfig/node16": "16.1.3",
|
60978
|
-
"@types/node": "^16.18.96",
|
60979
|
-
concurrently: "7.0.0",
|
60980
|
-
"downlevel-dts": "0.10.1",
|
60981
|
-
rimraf: "3.0.2",
|
60982
|
-
typescript: "~4.9.5"
|
60983
|
-
},
|
60984
|
-
engines: {
|
60985
|
-
node: ">=16.0.0"
|
60986
|
-
},
|
60987
|
-
typesVersions: {
|
60988
|
-
"<4.0": {
|
60989
|
-
"dist-types/*": [
|
60990
|
-
"dist-types/ts3.4/*"
|
60991
|
-
]
|
60992
|
-
}
|
60993
|
-
},
|
60994
|
-
files: [
|
60995
|
-
"dist-*/**"
|
60996
|
-
],
|
60997
|
-
author: {
|
60998
|
-
name: "AWS SDK for JavaScript Team",
|
60999
|
-
url: "https://aws.amazon.com/javascript/"
|
61000
|
-
},
|
61001
|
-
license: "Apache-2.0",
|
61002
|
-
browser: {
|
61003
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
61004
|
-
},
|
61005
|
-
"react-native": {
|
61006
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
61007
|
-
},
|
61008
|
-
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",
|
61009
|
-
repository: {
|
61010
|
-
type: "git",
|
61011
|
-
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
61012
|
-
directory: "clients/client-sso-oidc"
|
61013
|
-
}
|
61014
|
-
};
|
61015
|
-
}
|
61016
|
-
});
|
61017
|
-
|
61018
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
61019
|
-
var require_ruleset3 = __commonJS({
|
61020
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
61021
|
-
"use strict";
|
61022
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
61023
|
-
exports2.ruleSet = void 0;
|
61024
|
-
var u = "required";
|
61025
|
-
var v = "fn";
|
61026
|
-
var w = "argv";
|
61027
|
-
var x2 = "ref";
|
61028
|
-
var a = true;
|
61029
|
-
var b = "isSet";
|
61030
|
-
var c = "booleanEquals";
|
61031
|
-
var d = "error";
|
61032
|
-
var e2 = "endpoint";
|
61033
|
-
var f3 = "tree";
|
61034
|
-
var g = "PartitionResult";
|
61035
|
-
var h2 = "getAttr";
|
61036
|
-
var i2 = { [u]: false, "type": "String" };
|
61037
|
-
var j = { [u]: true, "default": false, "type": "Boolean" };
|
61038
|
-
var k = { [x2]: "Endpoint" };
|
61039
|
-
var l = { [v]: c, [w]: [{ [x2]: "UseFIPS" }, true] };
|
61040
|
-
var m2 = { [v]: c, [w]: [{ [x2]: "UseDualStack" }, true] };
|
61041
|
-
var n = {};
|
61042
|
-
var o = { [v]: h2, [w]: [{ [x2]: g }, "supportsFIPS"] };
|
61043
|
-
var p = { [x2]: g };
|
61044
|
-
var q = { [v]: c, [w]: [true, { [v]: h2, [w]: [p, "supportsDualStack"] }] };
|
61045
|
-
var r2 = [l];
|
61046
|
-
var s2 = [m2];
|
61047
|
-
var t2 = [{ [x2]: "Region" }];
|
61048
|
-
var _data = { version: "1.0", parameters: { Region: i2, UseDualStack: j, UseFIPS: j, Endpoint: i2 }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r2, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s2, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e2 }], type: f3 }, { conditions: [{ [v]: b, [w]: t2 }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t2, assign: g }], rules: [{ conditions: [l, m2], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f3 }, { conditions: r2, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h2, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e2 }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f3 }, { conditions: s2, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f3 }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e2 }], type: f3 }], type: f3 }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
61049
|
-
exports2.ruleSet = _data;
|
61050
|
-
}
|
61051
|
-
});
|
61052
|
-
|
61053
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
61054
|
-
var require_endpointResolver3 = __commonJS({
|
61055
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
61056
|
-
"use strict";
|
61057
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
61058
|
-
exports2.defaultEndpointResolver = void 0;
|
61059
|
-
var util_endpoints_1 = require_dist_cjs7();
|
61060
|
-
var util_endpoints_2 = require_dist_cjs6();
|
61061
|
-
var ruleset_1 = require_ruleset3();
|
61062
|
-
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
61063
|
-
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
61064
|
-
endpointParams,
|
61065
|
-
logger: context.logger
|
61066
|
-
});
|
61067
|
-
};
|
61068
|
-
exports2.defaultEndpointResolver = defaultEndpointResolver;
|
61069
|
-
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
61070
|
-
}
|
61071
|
-
});
|
61072
|
-
|
61073
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
61074
|
-
var require_runtimeConfig_shared3 = __commonJS({
|
61075
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
61076
|
-
"use strict";
|
61077
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
61078
|
-
exports2.getRuntimeConfig = void 0;
|
61079
|
-
var core_1 = require_dist_cjs37();
|
61080
|
-
var core_2 = require_dist_cjs34();
|
61081
|
-
var smithy_client_1 = require_dist_cjs32();
|
61082
|
-
var url_parser_1 = require_dist_cjs16();
|
61083
|
-
var util_base64_1 = require_dist_cjs25();
|
61084
|
-
var util_utf8_1 = require_dist_cjs24();
|
61085
|
-
var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider5();
|
61086
|
-
var endpointResolver_1 = require_endpointResolver3();
|
61087
|
-
var getRuntimeConfig = (config) => {
|
61088
|
-
return {
|
61089
|
-
apiVersion: "2019-06-10",
|
61090
|
-
base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
|
61091
|
-
base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
|
61092
|
-
disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
|
61093
|
-
endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
|
61094
|
-
extensions: (config == null ? void 0 : config.extensions) ?? [],
|
61095
|
-
httpAuthSchemeProvider: (config == null ? void 0 : config.httpAuthSchemeProvider) ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
|
61096
|
-
httpAuthSchemes: (config == null ? void 0 : config.httpAuthSchemes) ?? [
|
61097
|
-
{
|
61098
|
-
schemeId: "aws.auth#sigv4",
|
61099
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
61100
|
-
signer: new core_1.AwsSdkSigV4Signer()
|
61101
|
-
},
|
61102
|
-
{
|
61103
|
-
schemeId: "smithy.api#noAuth",
|
61104
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
61105
|
-
signer: new core_2.NoAuthSigner()
|
61106
|
-
}
|
61107
|
-
],
|
61108
|
-
logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
|
61109
|
-
serviceId: (config == null ? void 0 : config.serviceId) ?? "SSO OIDC",
|
61110
|
-
urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl,
|
61111
|
-
utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? util_utf8_1.fromUtf8,
|
61112
|
-
utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? util_utf8_1.toUtf8
|
61113
|
-
};
|
61114
|
-
};
|
61115
|
-
exports2.getRuntimeConfig = getRuntimeConfig;
|
61116
|
-
}
|
61117
|
-
});
|
61118
|
-
|
61119
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
61120
|
-
var require_runtimeConfig3 = __commonJS({
|
61121
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
61122
|
-
"use strict";
|
61123
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
61124
|
-
exports2.getRuntimeConfig = void 0;
|
61125
|
-
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
61126
|
-
var package_json_1 = tslib_1.__importDefault(require_package6());
|
61127
|
-
var core_1 = require_dist_cjs37();
|
61128
|
-
var credential_provider_node_1 = require_dist_cjs56();
|
61129
|
-
var util_user_agent_node_1 = require_dist_cjs41();
|
61130
|
-
var config_resolver_1 = require_dist_cjs11();
|
61131
|
-
var hash_node_1 = require_dist_cjs42();
|
61132
|
-
var middleware_retry_1 = require_dist_cjs33();
|
61133
|
-
var node_config_provider_1 = require_dist_cjs14();
|
61134
|
-
var node_http_handler_1 = require_dist_cjs28();
|
61135
|
-
var util_body_length_node_1 = require_dist_cjs43();
|
61136
|
-
var util_retry_1 = require_dist_cjs20();
|
61137
|
-
var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
|
61138
|
-
var smithy_client_1 = require_dist_cjs32();
|
61139
|
-
var util_defaults_mode_node_1 = require_dist_cjs44();
|
61140
|
-
var smithy_client_2 = require_dist_cjs32();
|
61141
|
-
var getRuntimeConfig = (config) => {
|
61142
|
-
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
61143
|
-
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
61144
|
-
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
61145
|
-
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
61146
|
-
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
61147
|
-
return {
|
61148
|
-
...clientSharedValues,
|
61149
|
-
...config,
|
61150
|
-
runtime: "node",
|
61151
|
-
defaultsMode,
|
61152
|
-
bodyLengthChecker: (config == null ? void 0 : config.bodyLengthChecker) ?? util_body_length_node_1.calculateBodyLength,
|
61153
|
-
credentialDefaultProvider: (config == null ? void 0 : config.credentialDefaultProvider) ?? credential_provider_node_1.defaultProvider,
|
61154
|
-
defaultUserAgentProvider: (config == null ? void 0 : config.defaultUserAgentProvider) ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
61155
|
-
maxAttempts: (config == null ? void 0 : config.maxAttempts) ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
61156
|
-
region: (config == null ? void 0 : config.region) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
61157
|
-
requestHandler: node_http_handler_1.NodeHttpHandler.create((config == null ? void 0 : config.requestHandler) ?? defaultConfigProvider),
|
61158
|
-
retryMode: (config == null ? void 0 : config.retryMode) ?? (0, node_config_provider_1.loadConfig)({
|
61159
|
-
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
61160
|
-
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE
|
61161
|
-
}),
|
61162
|
-
sha256: (config == null ? void 0 : config.sha256) ?? hash_node_1.Hash.bind(null, "sha256"),
|
61163
|
-
streamCollector: (config == null ? void 0 : config.streamCollector) ?? node_http_handler_1.streamCollector,
|
61164
|
-
useDualstackEndpoint: (config == null ? void 0 : config.useDualstackEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
61165
|
-
useFipsEndpoint: (config == null ? void 0 : config.useFipsEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)
|
61166
|
-
};
|
61167
|
-
};
|
61168
|
-
exports2.getRuntimeConfig = getRuntimeConfig;
|
61169
|
-
}
|
61170
|
-
});
|
61171
|
-
|
61172
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
61173
|
-
var require_dist_cjs50 = __commonJS({
|
61174
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
61175
|
-
"use strict";
|
61176
|
-
var __defProp3 = Object.defineProperty;
|
61177
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
61178
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
61179
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
61180
|
-
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
61181
|
-
var __export2 = (target, all) => {
|
61182
|
-
for (var name in all)
|
61183
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
61184
|
-
};
|
61185
|
-
var __copyProps3 = (to, from, except, desc) => {
|
61186
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
61187
|
-
for (let key of __getOwnPropNames3(from))
|
61188
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
61189
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
61190
|
-
}
|
61191
|
-
return to;
|
61192
|
-
};
|
61193
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
61194
|
-
var src_exports = {};
|
61195
|
-
__export2(src_exports, {
|
61196
|
-
AccessDeniedException: () => AccessDeniedException,
|
61197
|
-
AuthorizationPendingException: () => AuthorizationPendingException,
|
61198
|
-
CreateTokenCommand: () => CreateTokenCommand,
|
61199
|
-
CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
|
61200
|
-
CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,
|
61201
|
-
CreateTokenWithIAMCommand: () => CreateTokenWithIAMCommand,
|
61202
|
-
CreateTokenWithIAMRequestFilterSensitiveLog: () => CreateTokenWithIAMRequestFilterSensitiveLog,
|
61203
|
-
CreateTokenWithIAMResponseFilterSensitiveLog: () => CreateTokenWithIAMResponseFilterSensitiveLog,
|
61204
|
-
ExpiredTokenException: () => ExpiredTokenException,
|
61205
|
-
InternalServerException: () => InternalServerException,
|
61206
|
-
InvalidClientException: () => InvalidClientException,
|
61207
|
-
InvalidClientMetadataException: () => InvalidClientMetadataException,
|
61208
|
-
InvalidGrantException: () => InvalidGrantException,
|
61209
|
-
InvalidRedirectUriException: () => InvalidRedirectUriException,
|
61210
|
-
InvalidRequestException: () => InvalidRequestException,
|
61211
|
-
InvalidRequestRegionException: () => InvalidRequestRegionException,
|
61212
|
-
InvalidScopeException: () => InvalidScopeException,
|
61213
|
-
RegisterClientCommand: () => RegisterClientCommand,
|
61214
|
-
RegisterClientResponseFilterSensitiveLog: () => RegisterClientResponseFilterSensitiveLog,
|
61215
|
-
SSOOIDC: () => SSOOIDC,
|
61216
|
-
SSOOIDCClient: () => SSOOIDCClient,
|
61217
|
-
SSOOIDCServiceException: () => SSOOIDCServiceException,
|
61218
|
-
SlowDownException: () => SlowDownException,
|
61219
|
-
StartDeviceAuthorizationCommand: () => StartDeviceAuthorizationCommand,
|
61220
|
-
StartDeviceAuthorizationRequestFilterSensitiveLog: () => StartDeviceAuthorizationRequestFilterSensitiveLog,
|
61221
|
-
UnauthorizedClientException: () => UnauthorizedClientException,
|
61222
|
-
UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,
|
61223
|
-
__Client: () => import_smithy_client.Client
|
61224
|
-
});
|
61225
|
-
module2.exports = __toCommonJS2(src_exports);
|
61226
|
-
var import_middleware_host_header = require_dist_cjs3();
|
61227
|
-
var import_middleware_logger = require_dist_cjs4();
|
61228
|
-
var import_middleware_recursion_detection = require_dist_cjs5();
|
61229
|
-
var import_middleware_user_agent = require_dist_cjs8();
|
61230
|
-
var import_config_resolver = require_dist_cjs11();
|
61231
|
-
var import_core = require_dist_cjs34();
|
61232
|
-
var import_middleware_content_length = require_dist_cjs35();
|
61233
|
-
var import_middleware_endpoint = require_dist_cjs18();
|
61234
|
-
var import_middleware_retry = require_dist_cjs33();
|
61235
|
-
var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider5();
|
61236
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
61237
|
-
return {
|
61238
|
-
...options,
|
61239
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
61240
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
61241
|
-
defaultSigningName: "sso-oauth"
|
61242
|
-
};
|
61243
|
-
}, "resolveClientEndpointParameters");
|
61244
|
-
var commonParams = {
|
61245
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
61246
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
61247
|
-
Region: { type: "builtInParams", name: "region" },
|
61248
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
61249
|
-
};
|
61250
|
-
var import_runtimeConfig = require_runtimeConfig3();
|
61251
|
-
var import_region_config_resolver = require_dist_cjs45();
|
61252
|
-
var import_protocol_http = require_dist_cjs2();
|
61253
|
-
var import_smithy_client = require_dist_cjs32();
|
61254
|
-
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
61255
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
61256
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
61257
|
-
let _credentials = runtimeConfig.credentials;
|
61258
|
-
return {
|
61259
|
-
setHttpAuthScheme(httpAuthScheme) {
|
61260
|
-
const index5 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
61261
|
-
if (index5 === -1) {
|
61262
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
61263
|
-
} else {
|
61264
|
-
_httpAuthSchemes.splice(index5, 1, httpAuthScheme);
|
61265
|
-
}
|
61266
|
-
},
|
61267
|
-
httpAuthSchemes() {
|
61268
|
-
return _httpAuthSchemes;
|
61269
|
-
},
|
61270
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
61271
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
61272
|
-
},
|
61273
|
-
httpAuthSchemeProvider() {
|
61274
|
-
return _httpAuthSchemeProvider;
|
61275
|
-
},
|
61276
|
-
setCredentials(credentials2) {
|
61277
|
-
_credentials = credentials2;
|
61278
|
-
},
|
61279
|
-
credentials() {
|
61280
|
-
return _credentials;
|
61281
|
-
}
|
61282
|
-
};
|
61283
|
-
}, "getHttpAuthExtensionConfiguration");
|
61284
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
61285
|
-
return {
|
61286
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
61287
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
61288
|
-
credentials: config.credentials()
|
61289
|
-
};
|
61290
|
-
}, "resolveHttpAuthRuntimeConfig");
|
61291
|
-
var asPartial = /* @__PURE__ */ __name((t2) => t2, "asPartial");
|
61292
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
61293
|
-
const extensionConfiguration = {
|
61294
|
-
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
61295
|
-
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
61296
|
-
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
61297
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
61298
|
-
};
|
61299
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
61300
|
-
return {
|
61301
|
-
...runtimeConfig,
|
61302
|
-
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
61303
|
-
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
61304
|
-
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
61305
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
61306
|
-
};
|
61307
|
-
}, "resolveRuntimeExtensions");
|
61308
|
-
var _SSOOIDCClient = class _SSOOIDCClient extends import_smithy_client.Client {
|
61309
|
-
constructor(...[configuration]) {
|
61310
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
61311
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
61312
|
-
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
61313
|
-
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
61314
|
-
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
61315
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
61316
|
-
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
61317
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
61318
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
61319
|
-
super(_config_8);
|
61320
|
-
this.config = _config_8;
|
61321
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
61322
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
61323
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
61324
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
61325
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
61326
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
61327
|
-
this.middlewareStack.use(
|
61328
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
61329
|
-
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
61330
|
-
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
61331
|
-
})
|
61332
|
-
);
|
61333
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
61334
|
-
}
|
61335
|
-
/**
|
61336
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
61337
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
61338
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
61339
|
-
*/
|
61340
|
-
destroy() {
|
61341
|
-
super.destroy();
|
61342
|
-
}
|
61343
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
61344
|
-
return import_httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider;
|
61345
|
-
}
|
61346
|
-
getIdentityProviderConfigProvider() {
|
61347
|
-
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
61348
|
-
"aws.auth#sigv4": config.credentials
|
61349
|
-
});
|
61350
|
-
}
|
61351
|
-
};
|
61352
|
-
__name(_SSOOIDCClient, "SSOOIDCClient");
|
61353
|
-
var SSOOIDCClient = _SSOOIDCClient;
|
61354
|
-
var import_middleware_serde = require_dist_cjs17();
|
61355
|
-
var import_types = require_dist_cjs();
|
61356
|
-
var _SSOOIDCServiceException = class _SSOOIDCServiceException2 extends import_smithy_client.ServiceException {
|
61357
|
-
/**
|
61358
|
-
* @internal
|
61359
|
-
*/
|
61360
|
-
constructor(options) {
|
61361
|
-
super(options);
|
61362
|
-
Object.setPrototypeOf(this, _SSOOIDCServiceException2.prototype);
|
61363
|
-
}
|
61364
|
-
};
|
61365
|
-
__name(_SSOOIDCServiceException, "SSOOIDCServiceException");
|
61366
|
-
var SSOOIDCServiceException = _SSOOIDCServiceException;
|
61367
|
-
var _AccessDeniedException = class _AccessDeniedException2 extends SSOOIDCServiceException {
|
61368
|
-
/**
|
61369
|
-
* @internal
|
61370
|
-
*/
|
61371
|
-
constructor(opts) {
|
61372
|
-
super({
|
61373
|
-
name: "AccessDeniedException",
|
61374
|
-
$fault: "client",
|
61375
|
-
...opts
|
61376
|
-
});
|
61377
|
-
this.name = "AccessDeniedException";
|
61378
|
-
this.$fault = "client";
|
61379
|
-
Object.setPrototypeOf(this, _AccessDeniedException2.prototype);
|
61380
|
-
this.error = opts.error;
|
61381
|
-
this.error_description = opts.error_description;
|
61382
|
-
}
|
61383
|
-
};
|
61384
|
-
__name(_AccessDeniedException, "AccessDeniedException");
|
61385
|
-
var AccessDeniedException = _AccessDeniedException;
|
61386
|
-
var _AuthorizationPendingException = class _AuthorizationPendingException2 extends SSOOIDCServiceException {
|
61387
|
-
/**
|
61388
|
-
* @internal
|
61389
|
-
*/
|
61390
|
-
constructor(opts) {
|
61391
|
-
super({
|
61392
|
-
name: "AuthorizationPendingException",
|
61393
|
-
$fault: "client",
|
61394
|
-
...opts
|
61395
|
-
});
|
61396
|
-
this.name = "AuthorizationPendingException";
|
61397
|
-
this.$fault = "client";
|
61398
|
-
Object.setPrototypeOf(this, _AuthorizationPendingException2.prototype);
|
61399
|
-
this.error = opts.error;
|
61400
|
-
this.error_description = opts.error_description;
|
61401
|
-
}
|
61402
|
-
};
|
61403
|
-
__name(_AuthorizationPendingException, "AuthorizationPendingException");
|
61404
|
-
var AuthorizationPendingException = _AuthorizationPendingException;
|
61405
|
-
var _ExpiredTokenException = class _ExpiredTokenException2 extends SSOOIDCServiceException {
|
61406
|
-
/**
|
61407
|
-
* @internal
|
61408
|
-
*/
|
61409
|
-
constructor(opts) {
|
61410
|
-
super({
|
61411
|
-
name: "ExpiredTokenException",
|
61412
|
-
$fault: "client",
|
61413
|
-
...opts
|
61414
|
-
});
|
61415
|
-
this.name = "ExpiredTokenException";
|
61416
|
-
this.$fault = "client";
|
61417
|
-
Object.setPrototypeOf(this, _ExpiredTokenException2.prototype);
|
61418
|
-
this.error = opts.error;
|
61419
|
-
this.error_description = opts.error_description;
|
61420
|
-
}
|
61421
|
-
};
|
61422
|
-
__name(_ExpiredTokenException, "ExpiredTokenException");
|
61423
|
-
var ExpiredTokenException = _ExpiredTokenException;
|
61424
|
-
var _InternalServerException = class _InternalServerException2 extends SSOOIDCServiceException {
|
61425
|
-
/**
|
61426
|
-
* @internal
|
61427
|
-
*/
|
61428
|
-
constructor(opts) {
|
61429
|
-
super({
|
61430
|
-
name: "InternalServerException",
|
61431
|
-
$fault: "server",
|
61432
|
-
...opts
|
61433
|
-
});
|
61434
|
-
this.name = "InternalServerException";
|
61435
|
-
this.$fault = "server";
|
61436
|
-
Object.setPrototypeOf(this, _InternalServerException2.prototype);
|
61437
|
-
this.error = opts.error;
|
61438
|
-
this.error_description = opts.error_description;
|
61439
|
-
}
|
61440
|
-
};
|
61441
|
-
__name(_InternalServerException, "InternalServerException");
|
61442
|
-
var InternalServerException = _InternalServerException;
|
61443
|
-
var _InvalidClientException = class _InvalidClientException2 extends SSOOIDCServiceException {
|
61444
|
-
/**
|
61445
|
-
* @internal
|
61446
|
-
*/
|
61447
|
-
constructor(opts) {
|
61448
|
-
super({
|
61449
|
-
name: "InvalidClientException",
|
61450
|
-
$fault: "client",
|
61451
|
-
...opts
|
61452
|
-
});
|
61453
|
-
this.name = "InvalidClientException";
|
61454
|
-
this.$fault = "client";
|
61455
|
-
Object.setPrototypeOf(this, _InvalidClientException2.prototype);
|
61456
|
-
this.error = opts.error;
|
61457
|
-
this.error_description = opts.error_description;
|
61458
|
-
}
|
61459
|
-
};
|
61460
|
-
__name(_InvalidClientException, "InvalidClientException");
|
61461
|
-
var InvalidClientException = _InvalidClientException;
|
61462
|
-
var _InvalidGrantException = class _InvalidGrantException2 extends SSOOIDCServiceException {
|
61463
|
-
/**
|
61464
|
-
* @internal
|
61465
|
-
*/
|
61466
|
-
constructor(opts) {
|
61467
|
-
super({
|
61468
|
-
name: "InvalidGrantException",
|
61469
|
-
$fault: "client",
|
61470
|
-
...opts
|
61471
|
-
});
|
61472
|
-
this.name = "InvalidGrantException";
|
61473
|
-
this.$fault = "client";
|
61474
|
-
Object.setPrototypeOf(this, _InvalidGrantException2.prototype);
|
61475
|
-
this.error = opts.error;
|
61476
|
-
this.error_description = opts.error_description;
|
61477
|
-
}
|
61478
|
-
};
|
61479
|
-
__name(_InvalidGrantException, "InvalidGrantException");
|
61480
|
-
var InvalidGrantException = _InvalidGrantException;
|
61481
|
-
var _InvalidRequestException = class _InvalidRequestException2 extends SSOOIDCServiceException {
|
61482
|
-
/**
|
61483
|
-
* @internal
|
61484
|
-
*/
|
61485
|
-
constructor(opts) {
|
61486
|
-
super({
|
61487
|
-
name: "InvalidRequestException",
|
61488
|
-
$fault: "client",
|
61489
|
-
...opts
|
61490
|
-
});
|
61491
|
-
this.name = "InvalidRequestException";
|
61492
|
-
this.$fault = "client";
|
61493
|
-
Object.setPrototypeOf(this, _InvalidRequestException2.prototype);
|
61494
|
-
this.error = opts.error;
|
61495
|
-
this.error_description = opts.error_description;
|
61496
|
-
}
|
61497
|
-
};
|
61498
|
-
__name(_InvalidRequestException, "InvalidRequestException");
|
61499
|
-
var InvalidRequestException = _InvalidRequestException;
|
61500
|
-
var _InvalidScopeException = class _InvalidScopeException2 extends SSOOIDCServiceException {
|
61501
|
-
/**
|
61502
|
-
* @internal
|
61503
|
-
*/
|
61504
|
-
constructor(opts) {
|
61505
|
-
super({
|
61506
|
-
name: "InvalidScopeException",
|
61507
|
-
$fault: "client",
|
61508
|
-
...opts
|
61509
|
-
});
|
61510
|
-
this.name = "InvalidScopeException";
|
61511
|
-
this.$fault = "client";
|
61512
|
-
Object.setPrototypeOf(this, _InvalidScopeException2.prototype);
|
61513
|
-
this.error = opts.error;
|
61514
|
-
this.error_description = opts.error_description;
|
61515
|
-
}
|
61516
|
-
};
|
61517
|
-
__name(_InvalidScopeException, "InvalidScopeException");
|
61518
|
-
var InvalidScopeException = _InvalidScopeException;
|
61519
|
-
var _SlowDownException = class _SlowDownException2 extends SSOOIDCServiceException {
|
61520
|
-
/**
|
61521
|
-
* @internal
|
61522
|
-
*/
|
61523
|
-
constructor(opts) {
|
61524
|
-
super({
|
61525
|
-
name: "SlowDownException",
|
61526
|
-
$fault: "client",
|
61527
|
-
...opts
|
61528
|
-
});
|
61529
|
-
this.name = "SlowDownException";
|
61530
|
-
this.$fault = "client";
|
61531
|
-
Object.setPrototypeOf(this, _SlowDownException2.prototype);
|
61532
|
-
this.error = opts.error;
|
61533
|
-
this.error_description = opts.error_description;
|
61534
|
-
}
|
61535
|
-
};
|
61536
|
-
__name(_SlowDownException, "SlowDownException");
|
61537
|
-
var SlowDownException = _SlowDownException;
|
61538
|
-
var _UnauthorizedClientException = class _UnauthorizedClientException2 extends SSOOIDCServiceException {
|
61539
|
-
/**
|
61540
|
-
* @internal
|
61541
|
-
*/
|
61542
|
-
constructor(opts) {
|
61543
|
-
super({
|
61544
|
-
name: "UnauthorizedClientException",
|
61545
|
-
$fault: "client",
|
61546
|
-
...opts
|
61547
|
-
});
|
61548
|
-
this.name = "UnauthorizedClientException";
|
61549
|
-
this.$fault = "client";
|
61550
|
-
Object.setPrototypeOf(this, _UnauthorizedClientException2.prototype);
|
61551
|
-
this.error = opts.error;
|
61552
|
-
this.error_description = opts.error_description;
|
61553
|
-
}
|
61554
|
-
};
|
61555
|
-
__name(_UnauthorizedClientException, "UnauthorizedClientException");
|
61556
|
-
var UnauthorizedClientException = _UnauthorizedClientException;
|
61557
|
-
var _UnsupportedGrantTypeException = class _UnsupportedGrantTypeException2 extends SSOOIDCServiceException {
|
61558
|
-
/**
|
61559
|
-
* @internal
|
61560
|
-
*/
|
61561
|
-
constructor(opts) {
|
61562
|
-
super({
|
61563
|
-
name: "UnsupportedGrantTypeException",
|
61564
|
-
$fault: "client",
|
61565
|
-
...opts
|
61566
|
-
});
|
61567
|
-
this.name = "UnsupportedGrantTypeException";
|
61568
|
-
this.$fault = "client";
|
61569
|
-
Object.setPrototypeOf(this, _UnsupportedGrantTypeException2.prototype);
|
61570
|
-
this.error = opts.error;
|
61571
|
-
this.error_description = opts.error_description;
|
61572
|
-
}
|
61573
|
-
};
|
61574
|
-
__name(_UnsupportedGrantTypeException, "UnsupportedGrantTypeException");
|
61575
|
-
var UnsupportedGrantTypeException = _UnsupportedGrantTypeException;
|
61576
|
-
var _InvalidRequestRegionException = class _InvalidRequestRegionException2 extends SSOOIDCServiceException {
|
61577
|
-
/**
|
61578
|
-
* @internal
|
61579
|
-
*/
|
61580
|
-
constructor(opts) {
|
61581
|
-
super({
|
61582
|
-
name: "InvalidRequestRegionException",
|
61583
|
-
$fault: "client",
|
61584
|
-
...opts
|
61585
|
-
});
|
61586
|
-
this.name = "InvalidRequestRegionException";
|
61587
|
-
this.$fault = "client";
|
61588
|
-
Object.setPrototypeOf(this, _InvalidRequestRegionException2.prototype);
|
61589
|
-
this.error = opts.error;
|
61590
|
-
this.error_description = opts.error_description;
|
61591
|
-
this.endpoint = opts.endpoint;
|
61592
|
-
this.region = opts.region;
|
61593
|
-
}
|
61594
|
-
};
|
61595
|
-
__name(_InvalidRequestRegionException, "InvalidRequestRegionException");
|
61596
|
-
var InvalidRequestRegionException = _InvalidRequestRegionException;
|
61597
|
-
var _InvalidClientMetadataException = class _InvalidClientMetadataException2 extends SSOOIDCServiceException {
|
61598
|
-
/**
|
61599
|
-
* @internal
|
61600
|
-
*/
|
61601
|
-
constructor(opts) {
|
61602
|
-
super({
|
61603
|
-
name: "InvalidClientMetadataException",
|
61604
|
-
$fault: "client",
|
61605
|
-
...opts
|
61606
|
-
});
|
61607
|
-
this.name = "InvalidClientMetadataException";
|
61608
|
-
this.$fault = "client";
|
61609
|
-
Object.setPrototypeOf(this, _InvalidClientMetadataException2.prototype);
|
61610
|
-
this.error = opts.error;
|
61611
|
-
this.error_description = opts.error_description;
|
61612
|
-
}
|
61613
|
-
};
|
61614
|
-
__name(_InvalidClientMetadataException, "InvalidClientMetadataException");
|
61615
|
-
var InvalidClientMetadataException = _InvalidClientMetadataException;
|
61616
|
-
var _InvalidRedirectUriException = class _InvalidRedirectUriException2 extends SSOOIDCServiceException {
|
61617
|
-
/**
|
61618
|
-
* @internal
|
61619
|
-
*/
|
61620
|
-
constructor(opts) {
|
61621
|
-
super({
|
61622
|
-
name: "InvalidRedirectUriException",
|
61623
|
-
$fault: "client",
|
61624
|
-
...opts
|
61625
|
-
});
|
61626
|
-
this.name = "InvalidRedirectUriException";
|
61627
|
-
this.$fault = "client";
|
61628
|
-
Object.setPrototypeOf(this, _InvalidRedirectUriException2.prototype);
|
61629
|
-
this.error = opts.error;
|
61630
|
-
this.error_description = opts.error_description;
|
61631
|
-
}
|
61632
|
-
};
|
61633
|
-
__name(_InvalidRedirectUriException, "InvalidRedirectUriException");
|
61634
|
-
var InvalidRedirectUriException = _InvalidRedirectUriException;
|
61635
|
-
var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61636
|
-
...obj,
|
61637
|
-
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING },
|
61638
|
-
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
61639
|
-
...obj.codeVerifier && { codeVerifier: import_smithy_client.SENSITIVE_STRING }
|
61640
|
-
}), "CreateTokenRequestFilterSensitiveLog");
|
61641
|
-
var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61642
|
-
...obj,
|
61643
|
-
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
|
61644
|
-
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
61645
|
-
...obj.idToken && { idToken: import_smithy_client.SENSITIVE_STRING }
|
61646
|
-
}), "CreateTokenResponseFilterSensitiveLog");
|
61647
|
-
var CreateTokenWithIAMRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61648
|
-
...obj,
|
61649
|
-
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
61650
|
-
...obj.assertion && { assertion: import_smithy_client.SENSITIVE_STRING },
|
61651
|
-
...obj.subjectToken && { subjectToken: import_smithy_client.SENSITIVE_STRING },
|
61652
|
-
...obj.codeVerifier && { codeVerifier: import_smithy_client.SENSITIVE_STRING }
|
61653
|
-
}), "CreateTokenWithIAMRequestFilterSensitiveLog");
|
61654
|
-
var CreateTokenWithIAMResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61655
|
-
...obj,
|
61656
|
-
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
|
61657
|
-
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
61658
|
-
...obj.idToken && { idToken: import_smithy_client.SENSITIVE_STRING }
|
61659
|
-
}), "CreateTokenWithIAMResponseFilterSensitiveLog");
|
61660
|
-
var RegisterClientResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61661
|
-
...obj,
|
61662
|
-
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
|
61663
|
-
}), "RegisterClientResponseFilterSensitiveLog");
|
61664
|
-
var StartDeviceAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61665
|
-
...obj,
|
61666
|
-
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
|
61667
|
-
}), "StartDeviceAuthorizationRequestFilterSensitiveLog");
|
61668
|
-
var import_core2 = require_dist_cjs37();
|
61669
|
-
var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
61670
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
61671
|
-
const headers = {
|
61672
|
-
"content-type": "application/json"
|
61673
|
-
};
|
61674
|
-
b.bp("/token");
|
61675
|
-
let body;
|
61676
|
-
body = JSON.stringify(
|
61677
|
-
(0, import_smithy_client.take)(input, {
|
61678
|
-
clientId: [],
|
61679
|
-
clientSecret: [],
|
61680
|
-
code: [],
|
61681
|
-
codeVerifier: [],
|
61682
|
-
deviceCode: [],
|
61683
|
-
grantType: [],
|
61684
|
-
redirectUri: [],
|
61685
|
-
refreshToken: [],
|
61686
|
-
scope: (_2) => (0, import_smithy_client._json)(_2)
|
61687
|
-
})
|
61688
|
-
);
|
61689
|
-
b.m("POST").h(headers).b(body);
|
61690
|
-
return b.build();
|
61691
|
-
}, "se_CreateTokenCommand");
|
61692
|
-
var se_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (input, context) => {
|
61693
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
61694
|
-
const headers = {
|
61695
|
-
"content-type": "application/json"
|
61696
|
-
};
|
61697
|
-
b.bp("/token");
|
61698
|
-
const query = (0, import_smithy_client.map)({
|
61699
|
-
[_ai]: [, "t"]
|
61700
|
-
});
|
61701
|
-
let body;
|
61702
|
-
body = JSON.stringify(
|
61703
|
-
(0, import_smithy_client.take)(input, {
|
61704
|
-
assertion: [],
|
61705
|
-
clientId: [],
|
61706
|
-
code: [],
|
61707
|
-
codeVerifier: [],
|
61708
|
-
grantType: [],
|
61709
|
-
redirectUri: [],
|
61710
|
-
refreshToken: [],
|
61711
|
-
requestedTokenType: [],
|
61712
|
-
scope: (_2) => (0, import_smithy_client._json)(_2),
|
61713
|
-
subjectToken: [],
|
61714
|
-
subjectTokenType: []
|
61715
|
-
})
|
61716
|
-
);
|
61717
|
-
b.m("POST").h(headers).q(query).b(body);
|
61718
|
-
return b.build();
|
61719
|
-
}, "se_CreateTokenWithIAMCommand");
|
61720
|
-
var se_RegisterClientCommand = /* @__PURE__ */ __name(async (input, context) => {
|
61721
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
61722
|
-
const headers = {
|
61723
|
-
"content-type": "application/json"
|
61724
|
-
};
|
61725
|
-
b.bp("/client/register");
|
61726
|
-
let body;
|
61727
|
-
body = JSON.stringify(
|
61728
|
-
(0, import_smithy_client.take)(input, {
|
61729
|
-
clientName: [],
|
61730
|
-
clientType: [],
|
61731
|
-
entitledApplicationArn: [],
|
61732
|
-
grantTypes: (_2) => (0, import_smithy_client._json)(_2),
|
61733
|
-
issuerUrl: [],
|
61734
|
-
redirectUris: (_2) => (0, import_smithy_client._json)(_2),
|
61735
|
-
scopes: (_2) => (0, import_smithy_client._json)(_2)
|
61736
|
-
})
|
61737
|
-
);
|
61738
|
-
b.m("POST").h(headers).b(body);
|
61739
|
-
return b.build();
|
61740
|
-
}, "se_RegisterClientCommand");
|
61741
|
-
var se_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
61742
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
61743
|
-
const headers = {
|
61744
|
-
"content-type": "application/json"
|
61745
|
-
};
|
61746
|
-
b.bp("/device_authorization");
|
61747
|
-
let body;
|
61748
|
-
body = JSON.stringify(
|
61749
|
-
(0, import_smithy_client.take)(input, {
|
61750
|
-
clientId: [],
|
61751
|
-
clientSecret: [],
|
61752
|
-
startUrl: []
|
61753
|
-
})
|
61754
|
-
);
|
61755
|
-
b.m("POST").h(headers).b(body);
|
61756
|
-
return b.build();
|
61757
|
-
}, "se_StartDeviceAuthorizationCommand");
|
61758
|
-
var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
61759
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
61760
|
-
return de_CommandError(output, context);
|
61761
|
-
}
|
61762
|
-
const contents = (0, import_smithy_client.map)({
|
61763
|
-
$metadata: deserializeMetadata(output)
|
61764
|
-
});
|
61765
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
61766
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61767
|
-
accessToken: import_smithy_client.expectString,
|
61768
|
-
expiresIn: import_smithy_client.expectInt32,
|
61769
|
-
idToken: import_smithy_client.expectString,
|
61770
|
-
refreshToken: import_smithy_client.expectString,
|
61771
|
-
tokenType: import_smithy_client.expectString
|
61772
|
-
});
|
61773
|
-
Object.assign(contents, doc);
|
61774
|
-
return contents;
|
61775
|
-
}, "de_CreateTokenCommand");
|
61776
|
-
var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context) => {
|
61777
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
61778
|
-
return de_CommandError(output, context);
|
61779
|
-
}
|
61780
|
-
const contents = (0, import_smithy_client.map)({
|
61781
|
-
$metadata: deserializeMetadata(output)
|
61782
|
-
});
|
61783
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
61784
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61785
|
-
accessToken: import_smithy_client.expectString,
|
61786
|
-
expiresIn: import_smithy_client.expectInt32,
|
61787
|
-
idToken: import_smithy_client.expectString,
|
61788
|
-
issuedTokenType: import_smithy_client.expectString,
|
61789
|
-
refreshToken: import_smithy_client.expectString,
|
61790
|
-
scope: import_smithy_client._json,
|
61791
|
-
tokenType: import_smithy_client.expectString
|
61792
|
-
});
|
61793
|
-
Object.assign(contents, doc);
|
61794
|
-
return contents;
|
61795
|
-
}, "de_CreateTokenWithIAMCommand");
|
61796
|
-
var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
61797
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
61798
|
-
return de_CommandError(output, context);
|
61799
|
-
}
|
61800
|
-
const contents = (0, import_smithy_client.map)({
|
61801
|
-
$metadata: deserializeMetadata(output)
|
61802
|
-
});
|
61803
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
61804
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61805
|
-
authorizationEndpoint: import_smithy_client.expectString,
|
61806
|
-
clientId: import_smithy_client.expectString,
|
61807
|
-
clientIdIssuedAt: import_smithy_client.expectLong,
|
61808
|
-
clientSecret: import_smithy_client.expectString,
|
61809
|
-
clientSecretExpiresAt: import_smithy_client.expectLong,
|
61810
|
-
tokenEndpoint: import_smithy_client.expectString
|
61811
|
-
});
|
61812
|
-
Object.assign(contents, doc);
|
61813
|
-
return contents;
|
61814
|
-
}, "de_RegisterClientCommand");
|
61815
|
-
var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
61816
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
61817
|
-
return de_CommandError(output, context);
|
61818
|
-
}
|
61819
|
-
const contents = (0, import_smithy_client.map)({
|
61820
|
-
$metadata: deserializeMetadata(output)
|
61821
|
-
});
|
61822
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
61823
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61824
|
-
deviceCode: import_smithy_client.expectString,
|
61825
|
-
expiresIn: import_smithy_client.expectInt32,
|
61826
|
-
interval: import_smithy_client.expectInt32,
|
61827
|
-
userCode: import_smithy_client.expectString,
|
61828
|
-
verificationUri: import_smithy_client.expectString,
|
61829
|
-
verificationUriComplete: import_smithy_client.expectString
|
61830
|
-
});
|
61831
|
-
Object.assign(contents, doc);
|
61832
|
-
return contents;
|
61833
|
-
}, "de_StartDeviceAuthorizationCommand");
|
61834
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
61835
|
-
const parsedOutput = {
|
61836
|
-
...output,
|
61837
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
61838
|
-
};
|
61839
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
61840
|
-
switch (errorCode) {
|
61841
|
-
case "AccessDeniedException":
|
61842
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
61843
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
61844
|
-
case "AuthorizationPendingException":
|
61845
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
61846
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
61847
|
-
case "ExpiredTokenException":
|
61848
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
61849
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
61850
|
-
case "InternalServerException":
|
61851
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
61852
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
61853
|
-
case "InvalidClientException":
|
61854
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
61855
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
61856
|
-
case "InvalidGrantException":
|
61857
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
61858
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
61859
|
-
case "InvalidRequestException":
|
61860
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
61861
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
61862
|
-
case "InvalidScopeException":
|
61863
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
61864
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
61865
|
-
case "SlowDownException":
|
61866
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
61867
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
61868
|
-
case "UnauthorizedClientException":
|
61869
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
61870
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
61871
|
-
case "UnsupportedGrantTypeException":
|
61872
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
61873
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
61874
|
-
case "InvalidRequestRegionException":
|
61875
|
-
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
61876
|
-
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
61877
|
-
case "InvalidClientMetadataException":
|
61878
|
-
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
61879
|
-
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
61880
|
-
case "InvalidRedirectUriException":
|
61881
|
-
case "com.amazonaws.ssooidc#InvalidRedirectUriException":
|
61882
|
-
throw await de_InvalidRedirectUriExceptionRes(parsedOutput, context);
|
61883
|
-
default:
|
61884
|
-
const parsedBody = parsedOutput.body;
|
61885
|
-
return throwDefaultError({
|
61886
|
-
output,
|
61887
|
-
parsedBody,
|
61888
|
-
errorCode
|
61889
|
-
});
|
61890
|
-
}
|
61891
|
-
}, "de_CommandError");
|
61892
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOOIDCServiceException);
|
61893
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
61894
|
-
const contents = (0, import_smithy_client.map)({});
|
61895
|
-
const data = parsedOutput.body;
|
61896
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61897
|
-
error: import_smithy_client.expectString,
|
61898
|
-
error_description: import_smithy_client.expectString
|
61899
|
-
});
|
61900
|
-
Object.assign(contents, doc);
|
61901
|
-
const exception = new AccessDeniedException({
|
61902
|
-
$metadata: deserializeMetadata(parsedOutput),
|
61903
|
-
...contents
|
61904
|
-
});
|
61905
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
61906
|
-
}, "de_AccessDeniedExceptionRes");
|
61907
|
-
var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
61908
|
-
const contents = (0, import_smithy_client.map)({});
|
61909
|
-
const data = parsedOutput.body;
|
61910
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61911
|
-
error: import_smithy_client.expectString,
|
61912
|
-
error_description: import_smithy_client.expectString
|
61913
|
-
});
|
61914
|
-
Object.assign(contents, doc);
|
61915
|
-
const exception = new AuthorizationPendingException({
|
61916
|
-
$metadata: deserializeMetadata(parsedOutput),
|
61917
|
-
...contents
|
61918
|
-
});
|
61919
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
61920
|
-
}, "de_AuthorizationPendingExceptionRes");
|
61921
|
-
var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
61922
|
-
const contents = (0, import_smithy_client.map)({});
|
61923
|
-
const data = parsedOutput.body;
|
61924
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61925
|
-
error: import_smithy_client.expectString,
|
61926
|
-
error_description: import_smithy_client.expectString
|
61927
|
-
});
|
61928
|
-
Object.assign(contents, doc);
|
61929
|
-
const exception = new ExpiredTokenException({
|
61930
|
-
$metadata: deserializeMetadata(parsedOutput),
|
61931
|
-
...contents
|
61932
|
-
});
|
61933
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
61934
|
-
}, "de_ExpiredTokenExceptionRes");
|
61935
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
61936
|
-
const contents = (0, import_smithy_client.map)({});
|
61937
|
-
const data = parsedOutput.body;
|
61938
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61939
|
-
error: import_smithy_client.expectString,
|
61940
|
-
error_description: import_smithy_client.expectString
|
61941
|
-
});
|
61942
|
-
Object.assign(contents, doc);
|
61943
|
-
const exception = new InternalServerException({
|
61944
|
-
$metadata: deserializeMetadata(parsedOutput),
|
61945
|
-
...contents
|
61946
|
-
});
|
61947
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
61948
|
-
}, "de_InternalServerExceptionRes");
|
61949
|
-
var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
61950
|
-
const contents = (0, import_smithy_client.map)({});
|
61951
|
-
const data = parsedOutput.body;
|
61952
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61953
|
-
error: import_smithy_client.expectString,
|
61954
|
-
error_description: import_smithy_client.expectString
|
61955
|
-
});
|
61956
|
-
Object.assign(contents, doc);
|
61957
|
-
const exception = new InvalidClientException({
|
61958
|
-
$metadata: deserializeMetadata(parsedOutput),
|
61959
|
-
...contents
|
61960
|
-
});
|
61961
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
61962
|
-
}, "de_InvalidClientExceptionRes");
|
61963
|
-
var de_InvalidClientMetadataExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
61964
|
-
const contents = (0, import_smithy_client.map)({});
|
61965
|
-
const data = parsedOutput.body;
|
61966
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61967
|
-
error: import_smithy_client.expectString,
|
61968
|
-
error_description: import_smithy_client.expectString
|
61969
|
-
});
|
61970
|
-
Object.assign(contents, doc);
|
61971
|
-
const exception = new InvalidClientMetadataException({
|
61972
|
-
$metadata: deserializeMetadata(parsedOutput),
|
61973
|
-
...contents
|
61974
|
-
});
|
61975
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
61976
|
-
}, "de_InvalidClientMetadataExceptionRes");
|
61977
|
-
var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
61978
|
-
const contents = (0, import_smithy_client.map)({});
|
61979
|
-
const data = parsedOutput.body;
|
61980
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61981
|
-
error: import_smithy_client.expectString,
|
61982
|
-
error_description: import_smithy_client.expectString
|
61983
|
-
});
|
61984
|
-
Object.assign(contents, doc);
|
61985
|
-
const exception = new InvalidGrantException({
|
61986
|
-
$metadata: deserializeMetadata(parsedOutput),
|
61987
|
-
...contents
|
61988
|
-
});
|
61989
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
61990
|
-
}, "de_InvalidGrantExceptionRes");
|
61991
|
-
var de_InvalidRedirectUriExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
61992
|
-
const contents = (0, import_smithy_client.map)({});
|
61993
|
-
const data = parsedOutput.body;
|
61994
|
-
const doc = (0, import_smithy_client.take)(data, {
|
61995
|
-
error: import_smithy_client.expectString,
|
61996
|
-
error_description: import_smithy_client.expectString
|
61997
|
-
});
|
61998
|
-
Object.assign(contents, doc);
|
61999
|
-
const exception = new InvalidRedirectUriException({
|
62000
|
-
$metadata: deserializeMetadata(parsedOutput),
|
62001
|
-
...contents
|
62002
|
-
});
|
62003
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62004
|
-
}, "de_InvalidRedirectUriExceptionRes");
|
62005
|
-
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62006
|
-
const contents = (0, import_smithy_client.map)({});
|
62007
|
-
const data = parsedOutput.body;
|
62008
|
-
const doc = (0, import_smithy_client.take)(data, {
|
62009
|
-
error: import_smithy_client.expectString,
|
62010
|
-
error_description: import_smithy_client.expectString
|
62011
|
-
});
|
62012
|
-
Object.assign(contents, doc);
|
62013
|
-
const exception = new InvalidRequestException({
|
62014
|
-
$metadata: deserializeMetadata(parsedOutput),
|
62015
|
-
...contents
|
62016
|
-
});
|
62017
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62018
|
-
}, "de_InvalidRequestExceptionRes");
|
62019
|
-
var de_InvalidRequestRegionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62020
|
-
const contents = (0, import_smithy_client.map)({});
|
62021
|
-
const data = parsedOutput.body;
|
62022
|
-
const doc = (0, import_smithy_client.take)(data, {
|
62023
|
-
endpoint: import_smithy_client.expectString,
|
62024
|
-
error: import_smithy_client.expectString,
|
62025
|
-
error_description: import_smithy_client.expectString,
|
62026
|
-
region: import_smithy_client.expectString
|
62027
|
-
});
|
62028
|
-
Object.assign(contents, doc);
|
62029
|
-
const exception = new InvalidRequestRegionException({
|
62030
|
-
$metadata: deserializeMetadata(parsedOutput),
|
62031
|
-
...contents
|
62032
|
-
});
|
62033
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62034
|
-
}, "de_InvalidRequestRegionExceptionRes");
|
62035
|
-
var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62036
|
-
const contents = (0, import_smithy_client.map)({});
|
62037
|
-
const data = parsedOutput.body;
|
62038
|
-
const doc = (0, import_smithy_client.take)(data, {
|
62039
|
-
error: import_smithy_client.expectString,
|
62040
|
-
error_description: import_smithy_client.expectString
|
62041
|
-
});
|
62042
|
-
Object.assign(contents, doc);
|
62043
|
-
const exception = new InvalidScopeException({
|
62044
|
-
$metadata: deserializeMetadata(parsedOutput),
|
62045
|
-
...contents
|
62046
|
-
});
|
62047
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62048
|
-
}, "de_InvalidScopeExceptionRes");
|
62049
|
-
var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62050
|
-
const contents = (0, import_smithy_client.map)({});
|
62051
|
-
const data = parsedOutput.body;
|
62052
|
-
const doc = (0, import_smithy_client.take)(data, {
|
62053
|
-
error: import_smithy_client.expectString,
|
62054
|
-
error_description: import_smithy_client.expectString
|
62055
|
-
});
|
62056
|
-
Object.assign(contents, doc);
|
62057
|
-
const exception = new SlowDownException({
|
62058
|
-
$metadata: deserializeMetadata(parsedOutput),
|
62059
|
-
...contents
|
62060
|
-
});
|
62061
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62062
|
-
}, "de_SlowDownExceptionRes");
|
62063
|
-
var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62064
|
-
const contents = (0, import_smithy_client.map)({});
|
62065
|
-
const data = parsedOutput.body;
|
62066
|
-
const doc = (0, import_smithy_client.take)(data, {
|
62067
|
-
error: import_smithy_client.expectString,
|
62068
|
-
error_description: import_smithy_client.expectString
|
62069
|
-
});
|
62070
|
-
Object.assign(contents, doc);
|
62071
|
-
const exception = new UnauthorizedClientException({
|
62072
|
-
$metadata: deserializeMetadata(parsedOutput),
|
62073
|
-
...contents
|
62074
|
-
});
|
62075
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62076
|
-
}, "de_UnauthorizedClientExceptionRes");
|
62077
|
-
var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62078
|
-
const contents = (0, import_smithy_client.map)({});
|
62079
|
-
const data = parsedOutput.body;
|
62080
|
-
const doc = (0, import_smithy_client.take)(data, {
|
62081
|
-
error: import_smithy_client.expectString,
|
62082
|
-
error_description: import_smithy_client.expectString
|
62083
|
-
});
|
62084
|
-
Object.assign(contents, doc);
|
62085
|
-
const exception = new UnsupportedGrantTypeException({
|
62086
|
-
$metadata: deserializeMetadata(parsedOutput),
|
62087
|
-
...contents
|
62088
|
-
});
|
62089
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62090
|
-
}, "de_UnsupportedGrantTypeExceptionRes");
|
62091
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
62092
|
-
httpStatusCode: output.statusCode,
|
62093
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
62094
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
62095
|
-
cfId: output.headers["x-amz-cf-id"]
|
62096
|
-
}), "deserializeMetadata");
|
62097
|
-
var _ai = "aws_iam";
|
62098
|
-
var _CreateTokenCommand = class _CreateTokenCommand extends import_smithy_client.Command.classBuilder().ep({
|
62099
|
-
...commonParams
|
62100
|
-
}).m(function(Command, cs, config, o) {
|
62101
|
-
return [
|
62102
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
62103
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
62104
|
-
];
|
62105
|
-
}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
|
62106
|
-
};
|
62107
|
-
__name(_CreateTokenCommand, "CreateTokenCommand");
|
62108
|
-
var CreateTokenCommand = _CreateTokenCommand;
|
62109
|
-
var _CreateTokenWithIAMCommand = class _CreateTokenWithIAMCommand extends import_smithy_client.Command.classBuilder().ep({
|
62110
|
-
...commonParams
|
62111
|
-
}).m(function(Command, cs, config, o) {
|
62112
|
-
return [
|
62113
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
62114
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
62115
|
-
];
|
62116
|
-
}).s("AWSSSOOIDCService", "CreateTokenWithIAM", {}).n("SSOOIDCClient", "CreateTokenWithIAMCommand").f(CreateTokenWithIAMRequestFilterSensitiveLog, CreateTokenWithIAMResponseFilterSensitiveLog).ser(se_CreateTokenWithIAMCommand).de(de_CreateTokenWithIAMCommand).build() {
|
62117
|
-
};
|
62118
|
-
__name(_CreateTokenWithIAMCommand, "CreateTokenWithIAMCommand");
|
62119
|
-
var CreateTokenWithIAMCommand = _CreateTokenWithIAMCommand;
|
62120
|
-
var _RegisterClientCommand = class _RegisterClientCommand extends import_smithy_client.Command.classBuilder().ep({
|
62121
|
-
...commonParams
|
62122
|
-
}).m(function(Command, cs, config, o) {
|
62123
|
-
return [
|
62124
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
62125
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
62126
|
-
];
|
62127
|
-
}).s("AWSSSOOIDCService", "RegisterClient", {}).n("SSOOIDCClient", "RegisterClientCommand").f(void 0, RegisterClientResponseFilterSensitiveLog).ser(se_RegisterClientCommand).de(de_RegisterClientCommand).build() {
|
62128
|
-
};
|
62129
|
-
__name(_RegisterClientCommand, "RegisterClientCommand");
|
62130
|
-
var RegisterClientCommand = _RegisterClientCommand;
|
62131
|
-
var _StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
|
62132
|
-
...commonParams
|
62133
|
-
}).m(function(Command, cs, config, o) {
|
62134
|
-
return [
|
62135
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
62136
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
62137
|
-
];
|
62138
|
-
}).s("AWSSSOOIDCService", "StartDeviceAuthorization", {}).n("SSOOIDCClient", "StartDeviceAuthorizationCommand").f(StartDeviceAuthorizationRequestFilterSensitiveLog, void 0).ser(se_StartDeviceAuthorizationCommand).de(de_StartDeviceAuthorizationCommand).build() {
|
62139
|
-
};
|
62140
|
-
__name(_StartDeviceAuthorizationCommand, "StartDeviceAuthorizationCommand");
|
62141
|
-
var StartDeviceAuthorizationCommand = _StartDeviceAuthorizationCommand;
|
62142
|
-
var commands = {
|
62143
|
-
CreateTokenCommand,
|
62144
|
-
CreateTokenWithIAMCommand,
|
62145
|
-
RegisterClientCommand,
|
62146
|
-
StartDeviceAuthorizationCommand
|
62147
|
-
};
|
62148
|
-
var _SSOOIDC = class _SSOOIDC extends SSOOIDCClient {
|
62149
|
-
};
|
62150
|
-
__name(_SSOOIDC, "SSOOIDC");
|
62151
|
-
var SSOOIDC = _SSOOIDC;
|
62152
|
-
(0, import_smithy_client.createAggregatedClient)(commands, SSOOIDC);
|
62153
|
-
}
|
62154
|
-
});
|
62155
|
-
|
62156
|
-
// ../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0_/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
|
62157
|
-
var require_dist_cjs51 = __commonJS({
|
62158
|
-
"../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0_/node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) {
|
62159
|
-
"use strict";
|
62160
|
-
var __create3 = Object.create;
|
62161
|
-
var __defProp3 = Object.defineProperty;
|
62162
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62163
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62164
|
-
var __getProtoOf3 = Object.getPrototypeOf;
|
62165
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62166
|
-
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62167
|
-
var __export2 = (target, all) => {
|
62168
|
-
for (var name in all)
|
62169
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
62170
|
-
};
|
62171
|
-
var __copyProps3 = (to, from, except, desc) => {
|
62172
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
62173
|
-
for (let key of __getOwnPropNames3(from))
|
62174
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62175
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62176
|
-
}
|
62177
|
-
return to;
|
62178
|
-
};
|
62179
|
-
var __toESM3 = (mod, isNodeMode, target) => (target = mod != null ? __create3(__getProtoOf3(mod)) : {}, __copyProps3(
|
62180
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
62181
|
-
// file that has been converted to a CommonJS file using a Babel-
|
62182
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
62183
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
62184
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target,
|
62185
|
-
mod
|
62186
|
-
));
|
62187
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62188
|
-
var src_exports = {};
|
62189
|
-
__export2(src_exports, {
|
62190
|
-
fromSso: () => fromSso,
|
62191
|
-
fromStatic: () => fromStatic,
|
62192
|
-
nodeProvider: () => nodeProvider
|
62193
|
-
});
|
62194
|
-
module2.exports = __toCommonJS2(src_exports);
|
62195
|
-
var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
|
62196
|
-
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
62197
|
-
var ssoOidcClientsHash = {};
|
62198
|
-
var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion) => {
|
62199
|
-
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM3(require_dist_cjs50()));
|
62200
|
-
if (ssoOidcClientsHash[ssoRegion]) {
|
62201
|
-
return ssoOidcClientsHash[ssoRegion];
|
62202
|
-
}
|
62203
|
-
const ssoOidcClient = new SSOOIDCClient({ region: ssoRegion });
|
62204
|
-
ssoOidcClientsHash[ssoRegion] = ssoOidcClient;
|
62205
|
-
return ssoOidcClient;
|
62206
|
-
}, "getSsoOidcClient");
|
62207
|
-
var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion) => {
|
62208
|
-
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM3(require_dist_cjs50()));
|
62209
|
-
const ssoOidcClient = await getSsoOidcClient(ssoRegion);
|
62210
|
-
return ssoOidcClient.send(
|
62211
|
-
new CreateTokenCommand({
|
62212
|
-
clientId: ssoToken.clientId,
|
62213
|
-
clientSecret: ssoToken.clientSecret,
|
62214
|
-
refreshToken: ssoToken.refreshToken,
|
62215
|
-
grantType: "refresh_token"
|
62216
|
-
})
|
62217
|
-
);
|
62218
|
-
}, "getNewSsoOidcToken");
|
62219
|
-
var import_property_provider = require_dist_cjs12();
|
62220
|
-
var validateTokenExpiry = /* @__PURE__ */ __name((token) => {
|
62221
|
-
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
62222
|
-
throw new import_property_provider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
62223
|
-
}
|
62224
|
-
}, "validateTokenExpiry");
|
62225
|
-
var validateTokenKey = /* @__PURE__ */ __name((key, value, forRefresh = false) => {
|
62226
|
-
if (typeof value === "undefined") {
|
62227
|
-
throw new import_property_provider.TokenProviderError(
|
62228
|
-
`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`,
|
62229
|
-
false
|
62230
|
-
);
|
62231
|
-
}
|
62232
|
-
}, "validateTokenKey");
|
62233
|
-
var import_shared_ini_file_loader = require_dist_cjs13();
|
62234
|
-
var import_fs14 = require("fs");
|
62235
|
-
var { writeFile } = import_fs14.promises;
|
62236
|
-
var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
|
62237
|
-
const tokenFilepath = (0, import_shared_ini_file_loader.getSSOTokenFilepath)(id);
|
62238
|
-
const tokenString = JSON.stringify(ssoToken, null, 2);
|
62239
|
-
return writeFile(tokenFilepath, tokenString);
|
62240
|
-
}, "writeSSOTokenToFile");
|
62241
|
-
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
|
62242
|
-
var fromSso = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62243
|
-
var _a;
|
62244
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers", "fromSso");
|
62245
|
-
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62246
|
-
const profileName = (0, import_shared_ini_file_loader.getProfileName)(init2);
|
62247
|
-
const profile = profiles[profileName];
|
62248
|
-
if (!profile) {
|
62249
|
-
throw new import_property_provider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
62250
|
-
} else if (!profile["sso_session"]) {
|
62251
|
-
throw new import_property_provider.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
62252
|
-
}
|
62253
|
-
const ssoSessionName = profile["sso_session"];
|
62254
|
-
const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init2);
|
62255
|
-
const ssoSession = ssoSessions[ssoSessionName];
|
62256
|
-
if (!ssoSession) {
|
62257
|
-
throw new import_property_provider.TokenProviderError(
|
62258
|
-
`Sso session '${ssoSessionName}' could not be found in shared credentials file.`,
|
62259
|
-
false
|
62260
|
-
);
|
62261
|
-
}
|
62262
|
-
for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
|
62263
|
-
if (!ssoSession[ssoSessionRequiredKey]) {
|
62264
|
-
throw new import_property_provider.TokenProviderError(
|
62265
|
-
`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`,
|
62266
|
-
false
|
62267
|
-
);
|
62268
|
-
}
|
62269
|
-
}
|
62270
|
-
const ssoStartUrl = ssoSession["sso_start_url"];
|
62271
|
-
const ssoRegion = ssoSession["sso_region"];
|
62272
|
-
let ssoToken;
|
62273
|
-
try {
|
62274
|
-
ssoToken = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoSessionName);
|
62275
|
-
} catch (e2) {
|
62276
|
-
throw new import_property_provider.TokenProviderError(
|
62277
|
-
`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`,
|
62278
|
-
false
|
62279
|
-
);
|
62280
|
-
}
|
62281
|
-
validateTokenKey("accessToken", ssoToken.accessToken);
|
62282
|
-
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
62283
|
-
const { accessToken, expiresAt } = ssoToken;
|
62284
|
-
const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
|
62285
|
-
if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
|
62286
|
-
return existingToken;
|
62287
|
-
}
|
62288
|
-
if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1e3) {
|
62289
|
-
validateTokenExpiry(existingToken);
|
62290
|
-
return existingToken;
|
62291
|
-
}
|
62292
|
-
validateTokenKey("clientId", ssoToken.clientId, true);
|
62293
|
-
validateTokenKey("clientSecret", ssoToken.clientSecret, true);
|
62294
|
-
validateTokenKey("refreshToken", ssoToken.refreshToken, true);
|
62295
|
-
try {
|
62296
|
-
lastRefreshAttemptTime.setTime(Date.now());
|
62297
|
-
const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion);
|
62298
|
-
validateTokenKey("accessToken", newSsoOidcToken.accessToken);
|
62299
|
-
validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
|
62300
|
-
const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3);
|
62301
|
-
try {
|
62302
|
-
await writeSSOTokenToFile(ssoSessionName, {
|
62303
|
-
...ssoToken,
|
62304
|
-
accessToken: newSsoOidcToken.accessToken,
|
62305
|
-
expiresAt: newTokenExpiration.toISOString(),
|
62306
|
-
refreshToken: newSsoOidcToken.refreshToken
|
62307
|
-
});
|
62308
|
-
} catch (error2) {
|
62309
|
-
}
|
62310
|
-
return {
|
62311
|
-
token: newSsoOidcToken.accessToken,
|
62312
|
-
expiration: newTokenExpiration
|
62313
|
-
};
|
62314
|
-
} catch (error2) {
|
62315
|
-
validateTokenExpiry(existingToken);
|
62316
|
-
return existingToken;
|
62317
|
-
}
|
62318
|
-
}, "fromSso");
|
62319
|
-
var fromStatic = /* @__PURE__ */ __name(({ token, logger }) => async () => {
|
62320
|
-
logger == null ? void 0 : logger.debug("@aws-sdk/token-providers", "fromStatic");
|
62321
|
-
if (!token || !token.token) {
|
62322
|
-
throw new import_property_provider.TokenProviderError(`Please pass a valid token to fromStatic`, false);
|
62323
|
-
}
|
62324
|
-
return token;
|
62325
|
-
}, "fromStatic");
|
62326
|
-
var nodeProvider = /* @__PURE__ */ __name((init2 = {}) => (0, import_property_provider.memoize)(
|
62327
|
-
(0, import_property_provider.chain)(fromSso(init2), async () => {
|
62328
|
-
throw new import_property_provider.TokenProviderError("Could not load token from any providers", false);
|
62329
|
-
}),
|
62330
|
-
(token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5,
|
62331
|
-
(token) => token.expiration !== void 0
|
62332
|
-
), "nodeProvider");
|
62333
|
-
}
|
62334
|
-
});
|
62335
|
-
|
62336
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0_/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
|
62337
|
-
var require_dist_cjs52 = __commonJS({
|
62338
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0_/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) {
|
62339
|
-
"use strict";
|
62340
|
-
var __defProp3 = Object.defineProperty;
|
62341
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62342
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62343
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62344
|
-
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62345
|
-
var __esm2 = (fn, res) => function __init() {
|
62346
|
-
return fn && (res = (0, fn[__getOwnPropNames3(fn)[0]])(fn = 0)), res;
|
62347
|
-
};
|
62348
|
-
var __export2 = (target, all) => {
|
62349
|
-
for (var name in all)
|
62350
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
62351
|
-
};
|
62352
|
-
var __copyProps3 = (to, from, except, desc) => {
|
62353
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
62354
|
-
for (let key of __getOwnPropNames3(from))
|
62355
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62356
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62357
|
-
}
|
62358
|
-
return to;
|
62359
|
-
};
|
62360
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62361
|
-
var loadSso_exports = {};
|
62362
|
-
__export2(loadSso_exports, {
|
62363
|
-
GetRoleCredentialsCommand: () => import_client_sso.GetRoleCredentialsCommand,
|
62364
|
-
SSOClient: () => import_client_sso.SSOClient
|
62365
|
-
});
|
62366
|
-
var import_client_sso;
|
62367
|
-
var init_loadSso = __esm2({
|
62368
|
-
"src/loadSso.ts"() {
|
62369
|
-
"use strict";
|
62370
|
-
import_client_sso = require_dist_cjs46();
|
62371
|
-
}
|
62372
|
-
});
|
62373
|
-
var src_exports = {};
|
62374
|
-
__export2(src_exports, {
|
62375
|
-
fromSSO: () => fromSSO,
|
62376
|
-
isSsoProfile: () => isSsoProfile,
|
62377
|
-
validateSsoProfile: () => validateSsoProfile
|
62378
|
-
});
|
62379
|
-
module2.exports = __toCommonJS2(src_exports);
|
62380
|
-
var isSsoProfile = /* @__PURE__ */ __name((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"), "isSsoProfile");
|
62381
|
-
var import_token_providers = require_dist_cjs51();
|
62382
|
-
var import_property_provider = require_dist_cjs12();
|
62383
|
-
var import_shared_ini_file_loader = require_dist_cjs13();
|
62384
|
-
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
62385
|
-
var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
62386
|
-
ssoStartUrl,
|
62387
|
-
ssoSession,
|
62388
|
-
ssoAccountId,
|
62389
|
-
ssoRegion,
|
62390
|
-
ssoRoleName,
|
62391
|
-
ssoClient,
|
62392
|
-
clientConfig,
|
62393
|
-
profile
|
62394
|
-
}) => {
|
62395
|
-
let token;
|
62396
|
-
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
62397
|
-
if (ssoSession) {
|
62398
|
-
try {
|
62399
|
-
const _token = await (0, import_token_providers.fromSso)({ profile })();
|
62400
|
-
token = {
|
62401
|
-
accessToken: _token.token,
|
62402
|
-
expiresAt: new Date(_token.expiration).toISOString()
|
62403
|
-
};
|
62404
|
-
} catch (e2) {
|
62405
|
-
throw new import_property_provider.CredentialsProviderError(e2.message, SHOULD_FAIL_CREDENTIAL_CHAIN);
|
62406
|
-
}
|
62407
|
-
} else {
|
62408
|
-
try {
|
62409
|
-
token = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoStartUrl);
|
62410
|
-
} catch (e2) {
|
62411
|
-
throw new import_property_provider.CredentialsProviderError(
|
62412
|
-
`The SSO session associated with this profile is invalid. ${refreshMessage}`,
|
62413
|
-
SHOULD_FAIL_CREDENTIAL_CHAIN
|
62414
|
-
);
|
62415
|
-
}
|
62416
|
-
}
|
62417
|
-
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
62418
|
-
throw new import_property_provider.CredentialsProviderError(
|
62419
|
-
`The SSO session associated with this profile has expired. ${refreshMessage}`,
|
62420
|
-
SHOULD_FAIL_CREDENTIAL_CHAIN
|
62421
|
-
);
|
62422
|
-
}
|
62423
|
-
const { accessToken } = token;
|
62424
|
-
const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
|
62425
|
-
const sso = ssoClient || new SSOClient2(
|
62426
|
-
Object.assign({}, clientConfig ?? {}, {
|
62427
|
-
region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion
|
62428
|
-
})
|
62429
|
-
);
|
62430
|
-
let ssoResp;
|
62431
|
-
try {
|
62432
|
-
ssoResp = await sso.send(
|
62433
|
-
new GetRoleCredentialsCommand2({
|
62434
|
-
accountId: ssoAccountId,
|
62435
|
-
roleName: ssoRoleName,
|
62436
|
-
accessToken
|
62437
|
-
})
|
62438
|
-
);
|
62439
|
-
} catch (e2) {
|
62440
|
-
throw import_property_provider.CredentialsProviderError.from(e2, SHOULD_FAIL_CREDENTIAL_CHAIN);
|
62441
|
-
}
|
62442
|
-
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope } = {} } = ssoResp;
|
62443
|
-
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
62444
|
-
throw new import_property_provider.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
|
62445
|
-
}
|
62446
|
-
return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), credentialScope };
|
62447
|
-
}, "resolveSSOCredentials");
|
62448
|
-
var validateSsoProfile = /* @__PURE__ */ __name((profile) => {
|
62449
|
-
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
62450
|
-
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
62451
|
-
throw new import_property_provider.CredentialsProviderError(
|
62452
|
-
`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(
|
62453
|
-
", "
|
62454
|
-
)}
|
62455
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,
|
62456
|
-
false
|
62457
|
-
);
|
62458
|
-
}
|
62459
|
-
return profile;
|
62460
|
-
}, "validateSsoProfile");
|
62461
|
-
var fromSSO = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62462
|
-
var _a;
|
62463
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso", "fromSSO");
|
62464
|
-
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init2;
|
62465
|
-
const { ssoClient } = init2;
|
62466
|
-
const profileName = (0, import_shared_ini_file_loader.getProfileName)(init2);
|
62467
|
-
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
62468
|
-
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62469
|
-
const profile = profiles[profileName];
|
62470
|
-
if (!profile) {
|
62471
|
-
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} was not found.`);
|
62472
|
-
}
|
62473
|
-
if (!isSsoProfile(profile)) {
|
62474
|
-
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`);
|
62475
|
-
}
|
62476
|
-
if (profile == null ? void 0 : profile.sso_session) {
|
62477
|
-
const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init2);
|
62478
|
-
const session = ssoSessions[profile.sso_session];
|
62479
|
-
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
62480
|
-
if (ssoRegion && ssoRegion !== session.sso_region) {
|
62481
|
-
throw new import_property_provider.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, false);
|
62482
|
-
}
|
62483
|
-
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
62484
|
-
throw new import_property_provider.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, false);
|
62485
|
-
}
|
62486
|
-
profile.sso_region = session.sso_region;
|
62487
|
-
profile.sso_start_url = session.sso_start_url;
|
62488
|
-
}
|
62489
|
-
const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile);
|
62490
|
-
return resolveSSOCredentials({
|
62491
|
-
ssoStartUrl: sso_start_url,
|
62492
|
-
ssoSession: sso_session,
|
62493
|
-
ssoAccountId: sso_account_id,
|
62494
|
-
ssoRegion: sso_region,
|
62495
|
-
ssoRoleName: sso_role_name,
|
62496
|
-
ssoClient,
|
62497
|
-
clientConfig: init2.clientConfig,
|
62498
|
-
profile: profileName
|
62499
|
-
});
|
62500
|
-
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
62501
|
-
throw new import_property_provider.CredentialsProviderError(
|
62502
|
-
'Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"'
|
62503
|
-
);
|
62504
|
-
} else {
|
62505
|
-
return resolveSSOCredentials({
|
62506
|
-
ssoStartUrl,
|
62507
|
-
ssoSession,
|
62508
|
-
ssoAccountId,
|
62509
|
-
ssoRegion,
|
62510
|
-
ssoRoleName,
|
62511
|
-
ssoClient,
|
62512
|
-
clientConfig: init2.clientConfig,
|
62513
|
-
profile: profileName
|
62514
|
-
});
|
62515
|
-
}
|
62516
|
-
}, "fromSSO");
|
62517
|
-
}
|
62518
|
-
});
|
62519
|
-
|
62520
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.577.0/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
|
62521
|
-
var require_dist_cjs53 = __commonJS({
|
62522
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.577.0/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) {
|
62523
|
-
"use strict";
|
62524
|
-
var __defProp3 = Object.defineProperty;
|
62525
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62526
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62527
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62528
|
-
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62529
|
-
var __export2 = (target, all) => {
|
62530
|
-
for (var name in all)
|
62531
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
62532
|
-
};
|
62533
|
-
var __copyProps3 = (to, from, except, desc) => {
|
62534
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
62535
|
-
for (let key of __getOwnPropNames3(from))
|
62536
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62537
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62538
|
-
}
|
62539
|
-
return to;
|
62540
|
-
};
|
62541
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62542
|
-
var src_exports = {};
|
62543
|
-
__export2(src_exports, {
|
62544
|
-
fromProcess: () => fromProcess
|
62545
|
-
});
|
62546
|
-
module2.exports = __toCommonJS2(src_exports);
|
62547
|
-
var import_shared_ini_file_loader = require_dist_cjs13();
|
62548
|
-
var import_property_provider = require_dist_cjs12();
|
62549
|
-
var import_child_process = require("child_process");
|
62550
|
-
var import_util5 = require("util");
|
62551
|
-
var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data) => {
|
62552
|
-
if (data.Version !== 1) {
|
62553
|
-
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
62554
|
-
}
|
62555
|
-
if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) {
|
62556
|
-
throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
|
62557
|
-
}
|
62558
|
-
if (data.Expiration) {
|
62559
|
-
const currentTime = /* @__PURE__ */ new Date();
|
62560
|
-
const expireTime = new Date(data.Expiration);
|
62561
|
-
if (expireTime < currentTime) {
|
62562
|
-
throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
|
62563
|
-
}
|
62564
|
-
}
|
62565
|
-
return {
|
62566
|
-
accessKeyId: data.AccessKeyId,
|
62567
|
-
secretAccessKey: data.SecretAccessKey,
|
62568
|
-
...data.SessionToken && { sessionToken: data.SessionToken },
|
62569
|
-
...data.Expiration && { expiration: new Date(data.Expiration) },
|
62570
|
-
...data.CredentialScope && { credentialScope: data.CredentialScope }
|
62571
|
-
};
|
62572
|
-
}, "getValidatedProcessCredentials");
|
62573
|
-
var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profiles) => {
|
62574
|
-
const profile = profiles[profileName];
|
62575
|
-
if (profiles[profileName]) {
|
62576
|
-
const credentialProcess = profile["credential_process"];
|
62577
|
-
if (credentialProcess !== void 0) {
|
62578
|
-
const execPromise = (0, import_util5.promisify)(import_child_process.exec);
|
62579
|
-
try {
|
62580
|
-
const { stdout } = await execPromise(credentialProcess);
|
62581
|
-
let data;
|
62582
|
-
try {
|
62583
|
-
data = JSON.parse(stdout.trim());
|
62584
|
-
} catch {
|
62585
|
-
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
62586
|
-
}
|
62587
|
-
return getValidatedProcessCredentials(profileName, data);
|
62588
|
-
} catch (error2) {
|
62589
|
-
throw new import_property_provider.CredentialsProviderError(error2.message);
|
62590
|
-
}
|
62591
|
-
} else {
|
62592
|
-
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`);
|
62593
|
-
}
|
62594
|
-
} else {
|
62595
|
-
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`);
|
62596
|
-
}
|
62597
|
-
}, "resolveProcessCredentials");
|
62598
|
-
var fromProcess = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62599
|
-
var _a;
|
62600
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
62601
|
-
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62602
|
-
return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init2), profiles);
|
62603
|
-
}, "fromProcess");
|
62604
|
-
}
|
62605
|
-
});
|
62606
|
-
|
62607
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
|
62608
|
-
var require_fromWebToken = __commonJS({
|
62609
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports2) {
|
62610
|
-
"use strict";
|
62611
|
-
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m2, k, k2) {
|
62612
|
-
if (k2 === void 0)
|
62613
|
-
k2 = k;
|
62614
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
62615
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
62616
|
-
desc = { enumerable: true, get: function() {
|
62617
|
-
return m2[k];
|
62618
|
-
} };
|
62619
|
-
}
|
62620
|
-
Object.defineProperty(o, k2, desc);
|
62621
|
-
} : function(o, m2, k, k2) {
|
62622
|
-
if (k2 === void 0)
|
62623
|
-
k2 = k;
|
62624
|
-
o[k2] = m2[k];
|
62625
|
-
});
|
62626
|
-
var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
62627
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
62628
|
-
} : function(o, v) {
|
62629
|
-
o["default"] = v;
|
62630
|
-
});
|
62631
|
-
var __importStar3 = exports2 && exports2.__importStar || function(mod) {
|
62632
|
-
if (mod && mod.__esModule)
|
62633
|
-
return mod;
|
62634
|
-
var result = {};
|
62635
|
-
if (mod != null) {
|
62636
|
-
for (var k in mod)
|
62637
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
62638
|
-
__createBinding3(result, mod, k);
|
62639
|
-
}
|
62640
|
-
__setModuleDefault3(result, mod);
|
62641
|
-
return result;
|
62642
|
-
};
|
62643
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
62644
|
-
exports2.fromWebToken = void 0;
|
62645
|
-
var fromWebToken2 = (init2) => async () => {
|
62646
|
-
var _a;
|
62647
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromWebToken");
|
62648
|
-
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy: policy4, durationSeconds } = init2;
|
62649
|
-
let { roleAssumerWithWebIdentity } = init2;
|
62650
|
-
if (!roleAssumerWithWebIdentity) {
|
62651
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar3(require_dist_cjs57()));
|
62652
|
-
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
62653
|
-
...init2.clientConfig,
|
62654
|
-
credentialProviderLogger: init2.logger,
|
62655
|
-
parentClientConfig: init2.parentClientConfig
|
62656
|
-
}, init2.clientPlugins);
|
62657
|
-
}
|
62658
|
-
return roleAssumerWithWebIdentity({
|
62659
|
-
RoleArn: roleArn,
|
62660
|
-
RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
|
62661
|
-
WebIdentityToken: webIdentityToken,
|
62662
|
-
ProviderId: providerId,
|
62663
|
-
PolicyArns: policyArns,
|
62664
|
-
Policy: policy4,
|
62665
|
-
DurationSeconds: durationSeconds
|
62666
|
-
});
|
62667
|
-
};
|
62668
|
-
exports2.fromWebToken = fromWebToken2;
|
62669
|
-
}
|
62670
|
-
});
|
62671
|
-
|
62672
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
|
62673
|
-
var require_fromTokenFile = __commonJS({
|
62674
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports2) {
|
62675
|
-
"use strict";
|
62676
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
62677
|
-
exports2.fromTokenFile = void 0;
|
62678
|
-
var property_provider_1 = require_dist_cjs12();
|
62679
|
-
var fs_1 = require("fs");
|
62680
|
-
var fromWebToken_1 = require_fromWebToken();
|
62681
|
-
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
62682
|
-
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
62683
|
-
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
62684
|
-
var fromTokenFile2 = (init2 = {}) => async () => {
|
62685
|
-
var _a;
|
62686
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromTokenFile");
|
62687
|
-
const webIdentityTokenFile = (init2 == null ? void 0 : init2.webIdentityTokenFile) ?? process.env[ENV_TOKEN_FILE];
|
62688
|
-
const roleArn = (init2 == null ? void 0 : init2.roleArn) ?? process.env[ENV_ROLE_ARN];
|
62689
|
-
const roleSessionName = (init2 == null ? void 0 : init2.roleSessionName) ?? process.env[ENV_ROLE_SESSION_NAME];
|
62690
|
-
if (!webIdentityTokenFile || !roleArn) {
|
62691
|
-
throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified");
|
62692
|
-
}
|
62693
|
-
return (0, fromWebToken_1.fromWebToken)({
|
62694
|
-
...init2,
|
62695
|
-
webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
|
62696
|
-
roleArn,
|
62697
|
-
roleSessionName
|
62698
|
-
})();
|
62699
|
-
};
|
62700
|
-
exports2.fromTokenFile = fromTokenFile2;
|
62701
|
-
}
|
62702
|
-
});
|
62703
|
-
|
62704
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
|
62705
|
-
var require_dist_cjs54 = __commonJS({
|
62706
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2, module2) {
|
62707
|
-
"use strict";
|
62708
|
-
var __defProp3 = Object.defineProperty;
|
62709
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62710
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62711
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62712
|
-
var __copyProps3 = (to, from, except, desc) => {
|
62713
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
62714
|
-
for (let key of __getOwnPropNames3(from))
|
62715
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62716
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62717
|
-
}
|
62718
|
-
return to;
|
62719
|
-
};
|
62720
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps3(target, mod, "default"), secondTarget && __copyProps3(secondTarget, mod, "default"));
|
62721
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62722
|
-
var src_exports = {};
|
62723
|
-
module2.exports = __toCommonJS2(src_exports);
|
62724
|
-
__reExport(src_exports, require_fromTokenFile(), module2.exports);
|
62725
|
-
__reExport(src_exports, require_fromWebToken(), module2.exports);
|
62726
|
-
}
|
62727
|
-
});
|
62728
|
-
|
62729
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts_n4voux45fymjghrdt4o3r57x4m/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
|
62730
|
-
var require_dist_cjs55 = __commonJS({
|
62731
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts_n4voux45fymjghrdt4o3r57x4m/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) {
|
62732
|
-
"use strict";
|
62733
|
-
var __create3 = Object.create;
|
62734
|
-
var __defProp3 = Object.defineProperty;
|
62735
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62736
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62737
|
-
var __getProtoOf3 = Object.getPrototypeOf;
|
62738
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62739
|
-
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62740
|
-
var __export2 = (target, all) => {
|
62741
|
-
for (var name in all)
|
62742
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
62743
|
-
};
|
62744
|
-
var __copyProps3 = (to, from, except, desc) => {
|
62745
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
62746
|
-
for (let key of __getOwnPropNames3(from))
|
62747
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62748
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62749
|
-
}
|
62750
|
-
return to;
|
62751
|
-
};
|
62752
|
-
var __toESM3 = (mod, isNodeMode, target) => (target = mod != null ? __create3(__getProtoOf3(mod)) : {}, __copyProps3(
|
62753
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
62754
|
-
// file that has been converted to a CommonJS file using a Babel-
|
62755
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
62756
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
62757
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target,
|
62758
|
-
mod
|
62759
|
-
));
|
62760
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62761
|
-
var src_exports = {};
|
62762
|
-
__export2(src_exports, {
|
62763
|
-
fromIni: () => fromIni
|
62764
|
-
});
|
62765
|
-
module2.exports = __toCommonJS2(src_exports);
|
62766
|
-
var import_shared_ini_file_loader = require_dist_cjs13();
|
62767
|
-
var import_property_provider = require_dist_cjs12();
|
62768
|
-
var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName) => {
|
62769
|
-
const sourceProvidersMap = {
|
62770
|
-
EcsContainer: (options) => Promise.resolve().then(() => __toESM3(require_dist_cjs39())).then(({ fromContainerMetadata }) => fromContainerMetadata(options)),
|
62771
|
-
Ec2InstanceMetadata: (options) => Promise.resolve().then(() => __toESM3(require_dist_cjs39())).then(({ fromInstanceMetadata }) => fromInstanceMetadata(options)),
|
62772
|
-
Environment: (options) => Promise.resolve().then(() => __toESM3(require_dist_cjs38())).then(({ fromEnv }) => fromEnv(options))
|
62773
|
-
};
|
62774
|
-
if (credentialSource in sourceProvidersMap) {
|
62775
|
-
return sourceProvidersMap[credentialSource];
|
62776
|
-
} else {
|
62777
|
-
throw new import_property_provider.CredentialsProviderError(
|
62778
|
-
`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`
|
62779
|
-
);
|
62780
|
-
}
|
62781
|
-
}, "resolveCredentialSource");
|
62782
|
-
var isAssumeRoleProfile = /* @__PURE__ */ __name((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)), "isAssumeRoleProfile");
|
62783
|
-
var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name((arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined", "isAssumeRoleWithSourceProfile");
|
62784
|
-
var isAssumeRoleWithProviderProfile = /* @__PURE__ */ __name((arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined", "isAssumeRoleWithProviderProfile");
|
62785
|
-
var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
|
62786
|
-
var _a;
|
62787
|
-
(_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)");
|
62788
|
-
const data = profiles[profileName];
|
62789
|
-
if (!options.roleAssumer) {
|
62790
|
-
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM3(require_dist_cjs57()));
|
62791
|
-
options.roleAssumer = getDefaultRoleAssumer(
|
62792
|
-
{
|
62793
|
-
...options.clientConfig,
|
62794
|
-
credentialProviderLogger: options.logger,
|
62795
|
-
parentClientConfig: options == null ? void 0 : options.parentClientConfig
|
62796
|
-
},
|
62797
|
-
options.clientPlugins
|
62798
|
-
);
|
62799
|
-
}
|
62800
|
-
const { source_profile } = data;
|
62801
|
-
if (source_profile && source_profile in visitedProfiles) {
|
62802
|
-
throw new import_property_provider.CredentialsProviderError(
|
62803
|
-
`Detected a cycle attempting to resolve credentials for profile ${(0, import_shared_ini_file_loader.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "),
|
62804
|
-
false
|
62805
|
-
);
|
62806
|
-
}
|
62807
|
-
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
62808
|
-
...visitedProfiles,
|
62809
|
-
[source_profile]: true
|
62810
|
-
}) : (await resolveCredentialSource(data.credential_source, profileName)(options))();
|
62811
|
-
const params = {
|
62812
|
-
RoleArn: data.role_arn,
|
62813
|
-
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|
62814
|
-
ExternalId: data.external_id,
|
62815
|
-
DurationSeconds: parseInt(data.duration_seconds || "3600", 10)
|
62816
|
-
};
|
62817
|
-
const { mfa_serial } = data;
|
62818
|
-
if (mfa_serial) {
|
62819
|
-
if (!options.mfaCodeProvider) {
|
62820
|
-
throw new import_property_provider.CredentialsProviderError(
|
62821
|
-
`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`,
|
62822
|
-
false
|
62823
|
-
);
|
62824
|
-
}
|
62825
|
-
params.SerialNumber = mfa_serial;
|
62826
|
-
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
62827
|
-
}
|
62828
|
-
const sourceCreds = await sourceCredsProvider;
|
62829
|
-
return options.roleAssumer(sourceCreds, params);
|
62830
|
-
}, "resolveAssumeRoleCredentials");
|
62831
|
-
var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
|
62832
|
-
var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM3(require_dist_cjs53())).then(
|
62833
|
-
({ fromProcess }) => fromProcess({
|
62834
|
-
...options,
|
62835
|
-
profile
|
62836
|
-
})()
|
62837
|
-
), "resolveProcessCredentials");
|
62838
|
-
var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, options = {}) => {
|
62839
|
-
const { fromSSO } = await Promise.resolve().then(() => __toESM3(require_dist_cjs52()));
|
62840
|
-
return fromSSO({
|
62841
|
-
profile,
|
62842
|
-
logger: options.logger
|
62843
|
-
})();
|
62844
|
-
}, "resolveSsoCredentials");
|
62845
|
-
var isSsoProfile = /* @__PURE__ */ __name((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"), "isSsoProfile");
|
62846
|
-
var isStaticCredsProfile = /* @__PURE__ */ __name((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, "isStaticCredsProfile");
|
62847
|
-
var resolveStaticCredentials = /* @__PURE__ */ __name((profile, options) => {
|
62848
|
-
var _a;
|
62849
|
-
(_a = options == null ? void 0 : options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveStaticCredentials");
|
62850
|
-
return Promise.resolve({
|
62851
|
-
accessKeyId: profile.aws_access_key_id,
|
62852
|
-
secretAccessKey: profile.aws_secret_access_key,
|
62853
|
-
sessionToken: profile.aws_session_token,
|
62854
|
-
credentialScope: profile.aws_credential_scope
|
62855
|
-
});
|
62856
|
-
}, "resolveStaticCredentials");
|
62857
|
-
var isWebIdentityProfile = /* @__PURE__ */ __name((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, "isWebIdentityProfile");
|
62858
|
-
var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM3(require_dist_cjs54())).then(
|
62859
|
-
({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({
|
62860
|
-
webIdentityTokenFile: profile.web_identity_token_file,
|
62861
|
-
roleArn: profile.role_arn,
|
62862
|
-
roleSessionName: profile.role_session_name,
|
62863
|
-
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
62864
|
-
logger: options.logger,
|
62865
|
-
parentClientConfig: options.parentClientConfig
|
62866
|
-
})()
|
62867
|
-
), "resolveWebIdentityCredentials");
|
62868
|
-
var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
|
62869
|
-
const data = profiles[profileName];
|
62870
|
-
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
62871
|
-
return resolveStaticCredentials(data, options);
|
62872
|
-
}
|
62873
|
-
if (isAssumeRoleProfile(data)) {
|
62874
|
-
return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
|
62875
|
-
}
|
62876
|
-
if (isStaticCredsProfile(data)) {
|
62877
|
-
return resolveStaticCredentials(data, options);
|
62878
|
-
}
|
62879
|
-
if (isWebIdentityProfile(data)) {
|
62880
|
-
return resolveWebIdentityCredentials(data, options);
|
62881
|
-
}
|
62882
|
-
if (isProcessProfile(data)) {
|
62883
|
-
return resolveProcessCredentials(options, profileName);
|
62884
|
-
}
|
62885
|
-
if (isSsoProfile(data)) {
|
62886
|
-
return await resolveSsoCredentials(profileName, options);
|
62887
|
-
}
|
62888
|
-
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);
|
62889
|
-
}, "resolveProfileData");
|
62890
|
-
var fromIni = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62891
|
-
var _a;
|
62892
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "fromIni");
|
62893
|
-
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62894
|
-
return resolveProfileData((0, import_shared_ini_file_loader.getProfileName)(init2), profiles, init2);
|
62895
|
-
}, "fromIni");
|
62896
|
-
}
|
62897
|
-
});
|
62898
|
-
|
62899
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-st_qaylqvuvqkdeetlwmxiq34v6lq/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
|
62900
|
-
var require_dist_cjs56 = __commonJS({
|
62901
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-st_qaylqvuvqkdeetlwmxiq34v6lq/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) {
|
62902
|
-
"use strict";
|
62903
|
-
var __create3 = Object.create;
|
62904
|
-
var __defProp3 = Object.defineProperty;
|
62905
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62906
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62907
|
-
var __getProtoOf3 = Object.getPrototypeOf;
|
62908
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62909
|
-
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62910
|
-
var __export2 = (target, all) => {
|
62911
|
-
for (var name in all)
|
62912
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
62913
|
-
};
|
62914
|
-
var __copyProps3 = (to, from, except, desc) => {
|
62915
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
62916
|
-
for (let key of __getOwnPropNames3(from))
|
62917
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62918
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62919
|
-
}
|
62920
|
-
return to;
|
62921
|
-
};
|
62922
|
-
var __toESM3 = (mod, isNodeMode, target) => (target = mod != null ? __create3(__getProtoOf3(mod)) : {}, __copyProps3(
|
62923
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
62924
|
-
// file that has been converted to a CommonJS file using a Babel-
|
62925
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
62926
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
62927
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target,
|
62928
|
-
mod
|
62929
|
-
));
|
62930
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62931
|
-
var src_exports = {};
|
62932
|
-
__export2(src_exports, {
|
62933
|
-
credentialsTreatedAsExpired: () => credentialsTreatedAsExpired,
|
62934
|
-
credentialsWillNeedRefresh: () => credentialsWillNeedRefresh,
|
62935
|
-
defaultProvider: () => defaultProvider
|
62936
|
-
});
|
62937
|
-
module2.exports = __toCommonJS2(src_exports);
|
62938
|
-
var import_credential_provider_env = require_dist_cjs38();
|
62939
|
-
var import_shared_ini_file_loader = require_dist_cjs13();
|
62940
|
-
var import_property_provider = require_dist_cjs12();
|
62941
|
-
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
62942
|
-
var remoteProvider = /* @__PURE__ */ __name(async (init2) => {
|
62943
|
-
var _a, _b;
|
62944
|
-
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM3(require_dist_cjs39()));
|
62945
|
-
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
62946
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromHttp/fromContainerMetadata");
|
62947
|
-
const { fromHttp } = await Promise.resolve().then(() => __toESM3(require_dist_cjs40()));
|
62948
|
-
return (0, import_property_provider.chain)(fromHttp(init2), fromContainerMetadata(init2));
|
62949
|
-
}
|
62950
|
-
if (process.env[ENV_IMDS_DISABLED]) {
|
62951
|
-
return async () => {
|
62952
|
-
throw new import_property_provider.CredentialsProviderError("EC2 Instance Metadata Service access disabled");
|
62953
|
-
};
|
62954
|
-
}
|
62955
|
-
(_b = init2.logger) == null ? void 0 : _b.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromInstanceMetadata");
|
62956
|
-
return fromInstanceMetadata(init2);
|
62957
|
-
}, "remoteProvider");
|
62958
|
-
var defaultProvider = /* @__PURE__ */ __name((init2 = {}) => (0, import_property_provider.memoize)(
|
62959
|
-
(0, import_property_provider.chain)(
|
62960
|
-
...init2.profile || process.env[import_shared_ini_file_loader.ENV_PROFILE] ? [] : [
|
62961
|
-
async () => {
|
62962
|
-
var _a;
|
62963
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv");
|
62964
|
-
return (0, import_credential_provider_env.fromEnv)(init2)();
|
62965
|
-
}
|
62966
|
-
],
|
62967
|
-
async () => {
|
62968
|
-
var _a;
|
62969
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromSSO");
|
62970
|
-
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init2;
|
62971
|
-
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
62972
|
-
throw new import_property_provider.CredentialsProviderError(
|
62973
|
-
"Skipping SSO provider in default chain (inputs do not include SSO fields)."
|
62974
|
-
);
|
62975
|
-
}
|
62976
|
-
const { fromSSO } = await Promise.resolve().then(() => __toESM3(require_dist_cjs52()));
|
62977
|
-
return fromSSO(init2)();
|
62978
|
-
},
|
62979
|
-
async () => {
|
62980
|
-
var _a;
|
62981
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromIni");
|
62982
|
-
const { fromIni } = await Promise.resolve().then(() => __toESM3(require_dist_cjs55()));
|
62983
|
-
return fromIni(init2)();
|
62984
|
-
},
|
62985
|
-
async () => {
|
62986
|
-
var _a;
|
62987
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromProcess");
|
62988
|
-
const { fromProcess } = await Promise.resolve().then(() => __toESM3(require_dist_cjs53()));
|
62989
|
-
return fromProcess(init2)();
|
62990
|
-
},
|
62991
|
-
async () => {
|
62992
|
-
var _a;
|
62993
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromTokenFile");
|
62994
|
-
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM3(require_dist_cjs54()));
|
62995
|
-
return fromTokenFile2(init2)();
|
62996
|
-
},
|
62997
|
-
async () => {
|
62998
|
-
var _a;
|
62999
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::remoteProvider");
|
63000
|
-
return (await remoteProvider(init2))();
|
63001
|
-
},
|
63002
|
-
async () => {
|
63003
|
-
throw new import_property_provider.CredentialsProviderError("Could not load credentials from any providers", false);
|
63004
|
-
}
|
63005
|
-
),
|
63006
|
-
credentialsTreatedAsExpired,
|
63007
|
-
credentialsWillNeedRefresh
|
63008
|
-
), "defaultProvider");
|
63009
|
-
var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials2) => (credentials2 == null ? void 0 : credentials2.expiration) !== void 0, "credentialsWillNeedRefresh");
|
63010
|
-
var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials2) => (credentials2 == null ? void 0 : credentials2.expiration) !== void 0 && credentials2.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired");
|
60819
|
+
files: [
|
60820
|
+
"dist-*/**"
|
60821
|
+
],
|
60822
|
+
author: {
|
60823
|
+
name: "AWS SDK for JavaScript Team",
|
60824
|
+
url: "https://aws.amazon.com/javascript/"
|
60825
|
+
},
|
60826
|
+
license: "Apache-2.0",
|
60827
|
+
browser: {
|
60828
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
60829
|
+
},
|
60830
|
+
"react-native": {
|
60831
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
60832
|
+
},
|
60833
|
+
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",
|
60834
|
+
repository: {
|
60835
|
+
type: "git",
|
60836
|
+
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
60837
|
+
directory: "clients/client-sts"
|
60838
|
+
}
|
60839
|
+
};
|
63011
60840
|
}
|
63012
60841
|
});
|
63013
60842
|
|
63014
60843
|
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
|
63015
|
-
var
|
60844
|
+
var require_ruleset3 = __commonJS({
|
63016
60845
|
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) {
|
63017
60846
|
"use strict";
|
63018
60847
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -63059,14 +60888,14 @@ var require_ruleset4 = __commonJS({
|
|
63059
60888
|
});
|
63060
60889
|
|
63061
60890
|
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
|
63062
|
-
var
|
60891
|
+
var require_endpointResolver3 = __commonJS({
|
63063
60892
|
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
63064
60893
|
"use strict";
|
63065
60894
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
63066
60895
|
exports2.defaultEndpointResolver = void 0;
|
63067
60896
|
var util_endpoints_1 = require_dist_cjs7();
|
63068
60897
|
var util_endpoints_2 = require_dist_cjs6();
|
63069
|
-
var ruleset_1 =
|
60898
|
+
var ruleset_1 = require_ruleset3();
|
63070
60899
|
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
63071
60900
|
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
63072
60901
|
endpointParams,
|
@@ -63079,7 +60908,7 @@ var require_endpointResolver4 = __commonJS({
|
|
63079
60908
|
});
|
63080
60909
|
|
63081
60910
|
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
|
63082
|
-
var
|
60911
|
+
var require_runtimeConfig_shared3 = __commonJS({
|
63083
60912
|
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
63084
60913
|
"use strict";
|
63085
60914
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -63091,7 +60920,7 @@ var require_runtimeConfig_shared4 = __commonJS({
|
|
63091
60920
|
var util_base64_1 = require_dist_cjs25();
|
63092
60921
|
var util_utf8_1 = require_dist_cjs24();
|
63093
60922
|
var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4();
|
63094
|
-
var endpointResolver_1 =
|
60923
|
+
var endpointResolver_1 = require_endpointResolver3();
|
63095
60924
|
var getRuntimeConfig = (config) => {
|
63096
60925
|
return {
|
63097
60926
|
apiVersion: "2011-06-15",
|
@@ -63125,7 +60954,7 @@ var require_runtimeConfig_shared4 = __commonJS({
|
|
63125
60954
|
});
|
63126
60955
|
|
63127
60956
|
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
|
63128
|
-
var
|
60957
|
+
var require_runtimeConfig3 = __commonJS({
|
63129
60958
|
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
|
63130
60959
|
"use strict";
|
63131
60960
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -63133,7 +60962,7 @@ var require_runtimeConfig4 = __commonJS({
|
|
63133
60962
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
63134
60963
|
var package_json_1 = tslib_1.__importDefault(require_package5());
|
63135
60964
|
var core_1 = require_dist_cjs37();
|
63136
|
-
var credential_provider_node_1 =
|
60965
|
+
var credential_provider_node_1 = require_dist_cjs54();
|
63137
60966
|
var util_user_agent_node_1 = require_dist_cjs41();
|
63138
60967
|
var config_resolver_1 = require_dist_cjs11();
|
63139
60968
|
var core_2 = require_dist_cjs34();
|
@@ -63143,7 +60972,7 @@ var require_runtimeConfig4 = __commonJS({
|
|
63143
60972
|
var node_http_handler_1 = require_dist_cjs28();
|
63144
60973
|
var util_body_length_node_1 = require_dist_cjs43();
|
63145
60974
|
var util_retry_1 = require_dist_cjs20();
|
63146
|
-
var runtimeConfig_shared_1 =
|
60975
|
+
var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
|
63147
60976
|
var smithy_client_1 = require_dist_cjs32();
|
63148
60977
|
var util_defaults_mode_node_1 = require_dist_cjs44();
|
63149
60978
|
var smithy_client_2 = require_dist_cjs32();
|
@@ -63290,7 +61119,7 @@ var require_STSClient = __commonJS({
|
|
63290
61119
|
} });
|
63291
61120
|
var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4();
|
63292
61121
|
var EndpointParameters_1 = require_EndpointParameters();
|
63293
|
-
var runtimeConfig_1 =
|
61122
|
+
var runtimeConfig_1 = require_runtimeConfig3();
|
63294
61123
|
var runtimeExtensions_1 = require_runtimeExtensions();
|
63295
61124
|
var STSClient2 = class extends smithy_client_1.Client {
|
63296
61125
|
constructor(...[configuration]) {
|
@@ -63334,7 +61163,7 @@ var require_STSClient = __commonJS({
|
|
63334
61163
|
});
|
63335
61164
|
|
63336
61165
|
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js
|
63337
|
-
var
|
61166
|
+
var require_dist_cjs50 = __commonJS({
|
63338
61167
|
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) {
|
63339
61168
|
"use strict";
|
63340
61169
|
var __defProp3 = Object.defineProperty;
|
@@ -64689,8 +62518,217 @@ var require_dist_cjs57 = __commonJS({
|
|
64689
62518
|
}
|
64690
62519
|
});
|
64691
62520
|
|
62521
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.577.0/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
|
62522
|
+
var require_dist_cjs51 = __commonJS({
|
62523
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.577.0/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) {
|
62524
|
+
"use strict";
|
62525
|
+
var __defProp3 = Object.defineProperty;
|
62526
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62527
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62528
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62529
|
+
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62530
|
+
var __export2 = (target, all) => {
|
62531
|
+
for (var name in all)
|
62532
|
+
__defProp3(target, name, { get: all[name], enumerable: true });
|
62533
|
+
};
|
62534
|
+
var __copyProps3 = (to, from, except, desc) => {
|
62535
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
62536
|
+
for (let key of __getOwnPropNames3(from))
|
62537
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62538
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62539
|
+
}
|
62540
|
+
return to;
|
62541
|
+
};
|
62542
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62543
|
+
var src_exports = {};
|
62544
|
+
__export2(src_exports, {
|
62545
|
+
fromProcess: () => fromProcess
|
62546
|
+
});
|
62547
|
+
module2.exports = __toCommonJS2(src_exports);
|
62548
|
+
var import_shared_ini_file_loader = require_dist_cjs13();
|
62549
|
+
var import_property_provider = require_dist_cjs12();
|
62550
|
+
var import_child_process = require("child_process");
|
62551
|
+
var import_util5 = require("util");
|
62552
|
+
var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data) => {
|
62553
|
+
if (data.Version !== 1) {
|
62554
|
+
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
62555
|
+
}
|
62556
|
+
if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) {
|
62557
|
+
throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
|
62558
|
+
}
|
62559
|
+
if (data.Expiration) {
|
62560
|
+
const currentTime = /* @__PURE__ */ new Date();
|
62561
|
+
const expireTime = new Date(data.Expiration);
|
62562
|
+
if (expireTime < currentTime) {
|
62563
|
+
throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
|
62564
|
+
}
|
62565
|
+
}
|
62566
|
+
return {
|
62567
|
+
accessKeyId: data.AccessKeyId,
|
62568
|
+
secretAccessKey: data.SecretAccessKey,
|
62569
|
+
...data.SessionToken && { sessionToken: data.SessionToken },
|
62570
|
+
...data.Expiration && { expiration: new Date(data.Expiration) },
|
62571
|
+
...data.CredentialScope && { credentialScope: data.CredentialScope }
|
62572
|
+
};
|
62573
|
+
}, "getValidatedProcessCredentials");
|
62574
|
+
var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profiles) => {
|
62575
|
+
const profile = profiles[profileName];
|
62576
|
+
if (profiles[profileName]) {
|
62577
|
+
const credentialProcess = profile["credential_process"];
|
62578
|
+
if (credentialProcess !== void 0) {
|
62579
|
+
const execPromise = (0, import_util5.promisify)(import_child_process.exec);
|
62580
|
+
try {
|
62581
|
+
const { stdout } = await execPromise(credentialProcess);
|
62582
|
+
let data;
|
62583
|
+
try {
|
62584
|
+
data = JSON.parse(stdout.trim());
|
62585
|
+
} catch {
|
62586
|
+
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
62587
|
+
}
|
62588
|
+
return getValidatedProcessCredentials(profileName, data);
|
62589
|
+
} catch (error2) {
|
62590
|
+
throw new import_property_provider.CredentialsProviderError(error2.message);
|
62591
|
+
}
|
62592
|
+
} else {
|
62593
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`);
|
62594
|
+
}
|
62595
|
+
} else {
|
62596
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`);
|
62597
|
+
}
|
62598
|
+
}, "resolveProcessCredentials");
|
62599
|
+
var fromProcess = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62600
|
+
var _a;
|
62601
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
62602
|
+
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62603
|
+
return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init2), profiles);
|
62604
|
+
}, "fromProcess");
|
62605
|
+
}
|
62606
|
+
});
|
62607
|
+
|
62608
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
|
62609
|
+
var require_fromWebToken = __commonJS({
|
62610
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js"(exports2) {
|
62611
|
+
"use strict";
|
62612
|
+
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m2, k, k2) {
|
62613
|
+
if (k2 === void 0)
|
62614
|
+
k2 = k;
|
62615
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
62616
|
+
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
62617
|
+
desc = { enumerable: true, get: function() {
|
62618
|
+
return m2[k];
|
62619
|
+
} };
|
62620
|
+
}
|
62621
|
+
Object.defineProperty(o, k2, desc);
|
62622
|
+
} : function(o, m2, k, k2) {
|
62623
|
+
if (k2 === void 0)
|
62624
|
+
k2 = k;
|
62625
|
+
o[k2] = m2[k];
|
62626
|
+
});
|
62627
|
+
var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
62628
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
62629
|
+
} : function(o, v) {
|
62630
|
+
o["default"] = v;
|
62631
|
+
});
|
62632
|
+
var __importStar3 = exports2 && exports2.__importStar || function(mod) {
|
62633
|
+
if (mod && mod.__esModule)
|
62634
|
+
return mod;
|
62635
|
+
var result = {};
|
62636
|
+
if (mod != null) {
|
62637
|
+
for (var k in mod)
|
62638
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
62639
|
+
__createBinding3(result, mod, k);
|
62640
|
+
}
|
62641
|
+
__setModuleDefault3(result, mod);
|
62642
|
+
return result;
|
62643
|
+
};
|
62644
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
62645
|
+
exports2.fromWebToken = void 0;
|
62646
|
+
var fromWebToken2 = (init2) => async () => {
|
62647
|
+
var _a;
|
62648
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromWebToken");
|
62649
|
+
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy: policy4, durationSeconds } = init2;
|
62650
|
+
let { roleAssumerWithWebIdentity } = init2;
|
62651
|
+
if (!roleAssumerWithWebIdentity) {
|
62652
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar3(require_dist_cjs50()));
|
62653
|
+
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
62654
|
+
...init2.clientConfig,
|
62655
|
+
credentialProviderLogger: init2.logger,
|
62656
|
+
parentClientConfig: init2.parentClientConfig
|
62657
|
+
}, init2.clientPlugins);
|
62658
|
+
}
|
62659
|
+
return roleAssumerWithWebIdentity({
|
62660
|
+
RoleArn: roleArn,
|
62661
|
+
RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
|
62662
|
+
WebIdentityToken: webIdentityToken,
|
62663
|
+
ProviderId: providerId,
|
62664
|
+
PolicyArns: policyArns,
|
62665
|
+
Policy: policy4,
|
62666
|
+
DurationSeconds: durationSeconds
|
62667
|
+
});
|
62668
|
+
};
|
62669
|
+
exports2.fromWebToken = fromWebToken2;
|
62670
|
+
}
|
62671
|
+
});
|
62672
|
+
|
62673
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js
|
62674
|
+
var require_fromTokenFile = __commonJS({
|
62675
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js"(exports2) {
|
62676
|
+
"use strict";
|
62677
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
62678
|
+
exports2.fromTokenFile = void 0;
|
62679
|
+
var property_provider_1 = require_dist_cjs12();
|
62680
|
+
var fs_1 = require("fs");
|
62681
|
+
var fromWebToken_1 = require_fromWebToken();
|
62682
|
+
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
62683
|
+
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
62684
|
+
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
62685
|
+
var fromTokenFile2 = (init2 = {}) => async () => {
|
62686
|
+
var _a;
|
62687
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromTokenFile");
|
62688
|
+
const webIdentityTokenFile = (init2 == null ? void 0 : init2.webIdentityTokenFile) ?? process.env[ENV_TOKEN_FILE];
|
62689
|
+
const roleArn = (init2 == null ? void 0 : init2.roleArn) ?? process.env[ENV_ROLE_ARN];
|
62690
|
+
const roleSessionName = (init2 == null ? void 0 : init2.roleSessionName) ?? process.env[ENV_ROLE_SESSION_NAME];
|
62691
|
+
if (!webIdentityTokenFile || !roleArn) {
|
62692
|
+
throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified");
|
62693
|
+
}
|
62694
|
+
return (0, fromWebToken_1.fromWebToken)({
|
62695
|
+
...init2,
|
62696
|
+
webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
|
62697
|
+
roleArn,
|
62698
|
+
roleSessionName
|
62699
|
+
})();
|
62700
|
+
};
|
62701
|
+
exports2.fromTokenFile = fromTokenFile2;
|
62702
|
+
}
|
62703
|
+
});
|
62704
|
+
|
62705
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
|
62706
|
+
var require_dist_cjs52 = __commonJS({
|
62707
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.577.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2, module2) {
|
62708
|
+
"use strict";
|
62709
|
+
var __defProp3 = Object.defineProperty;
|
62710
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62711
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62712
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62713
|
+
var __copyProps3 = (to, from, except, desc) => {
|
62714
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
62715
|
+
for (let key of __getOwnPropNames3(from))
|
62716
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62717
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62718
|
+
}
|
62719
|
+
return to;
|
62720
|
+
};
|
62721
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps3(target, mod, "default"), secondTarget && __copyProps3(secondTarget, mod, "default"));
|
62722
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62723
|
+
var src_exports = {};
|
62724
|
+
module2.exports = __toCommonJS2(src_exports);
|
62725
|
+
__reExport(src_exports, require_fromTokenFile(), module2.exports);
|
62726
|
+
__reExport(src_exports, require_fromWebToken(), module2.exports);
|
62727
|
+
}
|
62728
|
+
});
|
62729
|
+
|
64692
62730
|
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
|
64693
|
-
var
|
62731
|
+
var require_dist_cjs53 = __commonJS({
|
64694
62732
|
"../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) {
|
64695
62733
|
"use strict";
|
64696
62734
|
var __create3 = Object.create;
|
@@ -64750,7 +62788,7 @@ var require_dist_cjs58 = __commonJS({
|
|
64750
62788
|
(_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)");
|
64751
62789
|
const data = profiles[profileName];
|
64752
62790
|
if (!options.roleAssumer) {
|
64753
|
-
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM3(
|
62791
|
+
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM3(require_dist_cjs50()));
|
64754
62792
|
options.roleAssumer = getDefaultRoleAssumer(
|
64755
62793
|
{
|
64756
62794
|
...options.clientConfig,
|
@@ -64792,7 +62830,7 @@ var require_dist_cjs58 = __commonJS({
|
|
64792
62830
|
return options.roleAssumer(sourceCreds, params);
|
64793
62831
|
}, "resolveAssumeRoleCredentials");
|
64794
62832
|
var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
|
64795
|
-
var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM3(
|
62833
|
+
var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM3(require_dist_cjs51())).then(
|
64796
62834
|
({ fromProcess }) => fromProcess({
|
64797
62835
|
...options,
|
64798
62836
|
profile
|
@@ -64818,7 +62856,7 @@ var require_dist_cjs58 = __commonJS({
|
|
64818
62856
|
});
|
64819
62857
|
}, "resolveStaticCredentials");
|
64820
62858
|
var isWebIdentityProfile = /* @__PURE__ */ __name((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, "isWebIdentityProfile");
|
64821
|
-
var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM3(
|
62859
|
+
var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM3(require_dist_cjs52())).then(
|
64822
62860
|
({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({
|
64823
62861
|
webIdentityTokenFile: profile.web_identity_token_file,
|
64824
62862
|
roleArn: profile.role_arn,
|
@@ -64860,7 +62898,7 @@ var require_dist_cjs58 = __commonJS({
|
|
64860
62898
|
});
|
64861
62899
|
|
64862
62900
|
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
|
64863
|
-
var
|
62901
|
+
var require_dist_cjs54 = __commonJS({
|
64864
62902
|
"../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) {
|
64865
62903
|
"use strict";
|
64866
62904
|
var __create3 = Object.create;
|
@@ -64942,19 +62980,19 @@ var require_dist_cjs59 = __commonJS({
|
|
64942
62980
|
async () => {
|
64943
62981
|
var _a;
|
64944
62982
|
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromIni");
|
64945
|
-
const { fromIni } = await Promise.resolve().then(() => __toESM3(
|
62983
|
+
const { fromIni } = await Promise.resolve().then(() => __toESM3(require_dist_cjs53()));
|
64946
62984
|
return fromIni(init2)();
|
64947
62985
|
},
|
64948
62986
|
async () => {
|
64949
62987
|
var _a;
|
64950
62988
|
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromProcess");
|
64951
|
-
const { fromProcess } = await Promise.resolve().then(() => __toESM3(
|
62989
|
+
const { fromProcess } = await Promise.resolve().then(() => __toESM3(require_dist_cjs51()));
|
64952
62990
|
return fromProcess(init2)();
|
64953
62991
|
},
|
64954
62992
|
async () => {
|
64955
62993
|
var _a;
|
64956
62994
|
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromTokenFile");
|
64957
|
-
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM3(
|
62995
|
+
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM3(require_dist_cjs52()));
|
64958
62996
|
return fromTokenFile2(init2)();
|
64959
62997
|
},
|
64960
62998
|
async () => {
|
@@ -64975,7 +63013,7 @@ var require_dist_cjs59 = __commonJS({
|
|
64975
63013
|
});
|
64976
63014
|
|
64977
63015
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/ruleset.js
|
64978
|
-
var
|
63016
|
+
var require_ruleset4 = __commonJS({
|
64979
63017
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/ruleset.js"(exports2) {
|
64980
63018
|
"use strict";
|
64981
63019
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -65008,14 +63046,14 @@ var require_ruleset5 = __commonJS({
|
|
65008
63046
|
});
|
65009
63047
|
|
65010
63048
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/endpointResolver.js
|
65011
|
-
var
|
63049
|
+
var require_endpointResolver4 = __commonJS({
|
65012
63050
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
65013
63051
|
"use strict";
|
65014
63052
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
65015
63053
|
exports2.defaultEndpointResolver = void 0;
|
65016
63054
|
var util_endpoints_1 = require_dist_cjs7();
|
65017
63055
|
var util_endpoints_2 = require_dist_cjs6();
|
65018
|
-
var ruleset_1 =
|
63056
|
+
var ruleset_1 = require_ruleset4();
|
65019
63057
|
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
65020
63058
|
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
65021
63059
|
endpointParams,
|
@@ -65028,7 +63066,7 @@ var require_endpointResolver5 = __commonJS({
|
|
65028
63066
|
});
|
65029
63067
|
|
65030
63068
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.shared.js
|
65031
|
-
var
|
63069
|
+
var require_runtimeConfig_shared4 = __commonJS({
|
65032
63070
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
65033
63071
|
"use strict";
|
65034
63072
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -65039,7 +63077,7 @@ var require_runtimeConfig_shared5 = __commonJS({
|
|
65039
63077
|
var util_base64_1 = require_dist_cjs25();
|
65040
63078
|
var util_utf8_1 = require_dist_cjs24();
|
65041
63079
|
var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider();
|
65042
|
-
var endpointResolver_1 =
|
63080
|
+
var endpointResolver_1 = require_endpointResolver4();
|
65043
63081
|
var getRuntimeConfig = (config) => {
|
65044
63082
|
return {
|
65045
63083
|
apiVersion: "2018-08-01",
|
@@ -65068,7 +63106,7 @@ var require_runtimeConfig_shared5 = __commonJS({
|
|
65068
63106
|
});
|
65069
63107
|
|
65070
63108
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.js
|
65071
|
-
var
|
63109
|
+
var require_runtimeConfig4 = __commonJS({
|
65072
63110
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.js"(exports2) {
|
65073
63111
|
"use strict";
|
65074
63112
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -65076,7 +63114,7 @@ var require_runtimeConfig5 = __commonJS({
|
|
65076
63114
|
var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2));
|
65077
63115
|
var package_json_1 = tslib_1.__importDefault(require_package2());
|
65078
63116
|
var core_1 = require_dist_cjs37();
|
65079
|
-
var credential_provider_node_1 =
|
63117
|
+
var credential_provider_node_1 = require_dist_cjs54();
|
65080
63118
|
var util_user_agent_node_1 = require_dist_cjs41();
|
65081
63119
|
var config_resolver_1 = require_dist_cjs11();
|
65082
63120
|
var hash_node_1 = require_dist_cjs42();
|
@@ -65085,7 +63123,7 @@ var require_runtimeConfig5 = __commonJS({
|
|
65085
63123
|
var node_http_handler_1 = require_dist_cjs28();
|
65086
63124
|
var util_body_length_node_1 = require_dist_cjs43();
|
65087
63125
|
var util_retry_1 = require_dist_cjs20();
|
65088
|
-
var runtimeConfig_shared_1 =
|
63126
|
+
var runtimeConfig_shared_1 = require_runtimeConfig_shared4();
|
65089
63127
|
var smithy_client_1 = require_dist_cjs32();
|
65090
63128
|
var util_defaults_mode_node_1 = require_dist_cjs44();
|
65091
63129
|
var smithy_client_2 = require_dist_cjs32();
|
@@ -65121,7 +63159,7 @@ var require_runtimeConfig5 = __commonJS({
|
|
65121
63159
|
});
|
65122
63160
|
|
65123
63161
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/index.js
|
65124
|
-
var
|
63162
|
+
var require_dist_cjs55 = __commonJS({
|
65125
63163
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/index.js"(exports2, module2) {
|
65126
63164
|
"use strict";
|
65127
63165
|
var __defProp3 = Object.defineProperty;
|
@@ -65202,7 +63240,7 @@ var require_dist_cjs60 = __commonJS({
|
|
65202
63240
|
Region: { type: "builtInParams", name: "region" },
|
65203
63241
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
65204
63242
|
};
|
65205
|
-
var import_runtimeConfig =
|
63243
|
+
var import_runtimeConfig = require_runtimeConfig4();
|
65206
63244
|
var import_region_config_resolver = require_dist_cjs45();
|
65207
63245
|
var import_protocol_http = require_dist_cjs2();
|
65208
63246
|
var import_smithy_client = require_dist_cjs32();
|
@@ -66452,7 +64490,7 @@ var init_connections = __esm({
|
|
66452
64490
|
const { driver: driver2 } = credentials2;
|
66453
64491
|
if (driver2 === "aws-data-api") {
|
66454
64492
|
assertPackages("@aws-sdk/client-rds-data");
|
66455
|
-
const { RDSDataClient, ExecuteStatementCommand, TypeHint } = await Promise.resolve().then(() => __toESM(
|
64493
|
+
const { RDSDataClient, ExecuteStatementCommand, TypeHint } = await Promise.resolve().then(() => __toESM(require_dist_cjs55()));
|
66456
64494
|
const { AwsDataApiSession, drizzle } = await import("drizzle-orm/aws-data-api/pg");
|
66457
64495
|
const { migrate: migrate2 } = await import("drizzle-orm/aws-data-api/pg/migrator");
|
66458
64496
|
const { PgDialect: PgDialect2 } = await import("drizzle-orm/pg-core");
|
@@ -70965,7 +69003,7 @@ import { sql } from "drizzle-orm"
|
|
70965
69003
|
if (lowered.startsWith("int")) {
|
70966
69004
|
const isUnsigned = lowered.startsWith("int unsigned");
|
70967
69005
|
const columnName = dbColumnName2({ name, casing: rawCasing, withMode: isUnsigned });
|
70968
|
-
let out = `${casing2(name)}: int(${columnName}${isUnsigned ?
|
69006
|
+
let out = `${casing2(name)}: int(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
70969
69007
|
out += autoincrement ? `.autoincrement()` : "";
|
70970
69008
|
out += typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault2(defaultValue, isExpression)})` : "";
|
70971
69009
|
return out;
|
@@ -70973,7 +69011,7 @@ import { sql } from "drizzle-orm"
|
|
70973
69011
|
if (lowered.startsWith("tinyint")) {
|
70974
69012
|
const isUnsigned = lowered.startsWith("tinyint unsigned");
|
70975
69013
|
const columnName = dbColumnName2({ name, casing: rawCasing, withMode: isUnsigned });
|
70976
|
-
let out = `${casing2(name)}: tinyint(${columnName}${isUnsigned ?
|
69014
|
+
let out = `${casing2(name)}: tinyint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
70977
69015
|
out += autoincrement ? `.autoincrement()` : "";
|
70978
69016
|
out += typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault2(defaultValue, isExpression)})` : "";
|
70979
69017
|
return out;
|
@@ -70981,7 +69019,7 @@ import { sql } from "drizzle-orm"
|
|
70981
69019
|
if (lowered.startsWith("smallint")) {
|
70982
69020
|
const isUnsigned = lowered.startsWith("smallint unsigned");
|
70983
69021
|
const columnName = dbColumnName2({ name, casing: rawCasing, withMode: isUnsigned });
|
70984
|
-
let out = `${casing2(name)}: smallint(${columnName}${isUnsigned ?
|
69022
|
+
let out = `${casing2(name)}: smallint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
70985
69023
|
out += autoincrement ? `.autoincrement()` : "";
|
70986
69024
|
out += defaultValue ? `.default(${mapColumnDefault2(defaultValue, isExpression)})` : "";
|
70987
69025
|
return out;
|
@@ -70989,7 +69027,7 @@ import { sql } from "drizzle-orm"
|
|
70989
69027
|
if (lowered.startsWith("mediumint")) {
|
70990
69028
|
const isUnsigned = lowered.startsWith("mediumint unsigned");
|
70991
69029
|
const columnName = dbColumnName2({ name, casing: rawCasing, withMode: isUnsigned });
|
70992
|
-
let out = `${casing2(name)}: mediumint(${columnName}${isUnsigned ?
|
69030
|
+
let out = `${casing2(name)}: mediumint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
70993
69031
|
out += autoincrement ? `.autoincrement()` : "";
|
70994
69032
|
out += defaultValue ? `.default(${mapColumnDefault2(defaultValue, isExpression)})` : "";
|
70995
69033
|
return out;
|
@@ -71239,7 +69277,8 @@ import { sql } from "drizzle-orm"
|
|
71239
69277
|
let idxKey = it.name.startsWith(tableName) && it.name !== tableName ? it.name.slice(tableName.length + 1) : it.name;
|
71240
69278
|
idxKey = idxKey.endsWith("_index") ? idxKey.slice(0, -"_index".length) + "_idx" : idxKey;
|
71241
69279
|
idxKey = casing2(idxKey);
|
71242
|
-
statement += `
|
69280
|
+
statement += `
|
69281
|
+
`;
|
71243
69282
|
statement += it.isUnique ? "uniqueIndex(" : "index(";
|
71244
69283
|
statement += `"${it.name}")`;
|
71245
69284
|
statement += `.on(${it.columns.map((it2) => `table.${casing2(it2)}`).join(", ")}),`;
|
@@ -72404,7 +70443,7 @@ import { sql } from "drizzle-orm"
|
|
72404
70443
|
if (lowered.startsWith("int")) {
|
72405
70444
|
const isUnsigned = lowered.includes("unsigned");
|
72406
70445
|
const columnName = dbColumnName4({ name, casing: rawCasing, withMode: isUnsigned });
|
72407
|
-
let out = `${casing2(name)}: int(${columnName}${isUnsigned ?
|
70446
|
+
let out = `${casing2(name)}: int(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
72408
70447
|
out += autoincrement ? `.autoincrement()` : "";
|
72409
70448
|
out += typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
72410
70449
|
return out;
|
@@ -72412,7 +70451,7 @@ import { sql } from "drizzle-orm"
|
|
72412
70451
|
if (lowered.startsWith("tinyint")) {
|
72413
70452
|
const isUnsigned = lowered.includes("unsigned");
|
72414
70453
|
const columnName = dbColumnName4({ name, casing: rawCasing, withMode: isUnsigned });
|
72415
|
-
let out = `${casing2(name)}: tinyint(${columnName}${isUnsigned ?
|
70454
|
+
let out = `${casing2(name)}: tinyint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
72416
70455
|
out += autoincrement ? `.autoincrement()` : "";
|
72417
70456
|
out += typeof defaultValue !== "undefined" ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
72418
70457
|
return out;
|
@@ -72420,7 +70459,7 @@ import { sql } from "drizzle-orm"
|
|
72420
70459
|
if (lowered.startsWith("smallint")) {
|
72421
70460
|
const isUnsigned = lowered.includes("unsigned");
|
72422
70461
|
const columnName = dbColumnName4({ name, casing: rawCasing, withMode: isUnsigned });
|
72423
|
-
let out = `${casing2(name)}: smallint(${columnName}${isUnsigned ?
|
70462
|
+
let out = `${casing2(name)}: smallint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
72424
70463
|
out += autoincrement ? `.autoincrement()` : "";
|
72425
70464
|
out += defaultValue ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
72426
70465
|
return out;
|
@@ -72428,7 +70467,7 @@ import { sql } from "drizzle-orm"
|
|
72428
70467
|
if (lowered.startsWith("mediumint")) {
|
72429
70468
|
const isUnsigned = lowered.includes("unsigned");
|
72430
70469
|
const columnName = dbColumnName4({ name, casing: rawCasing, withMode: isUnsigned });
|
72431
|
-
let out = `${casing2(name)}: mediumint(${columnName}${isUnsigned ?
|
70470
|
+
let out = `${casing2(name)}: mediumint(${columnName}${isUnsigned ? "{ unsigned: true }" : ""})`;
|
72432
70471
|
out += autoincrement ? `.autoincrement()` : "";
|
72433
70472
|
out += defaultValue ? `.default(${mapColumnDefault4(defaultValue, isExpression)})` : "";
|
72434
70473
|
return out;
|
@@ -79541,7 +77580,7 @@ init_utils5();
|
|
79541
77580
|
var version2 = async () => {
|
79542
77581
|
const { npmVersion } = await ormCoreVersions();
|
79543
77582
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
79544
|
-
const envVersion = "0.30.
|
77583
|
+
const envVersion = "0.30.4-4647df7";
|
79545
77584
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
79546
77585
|
const versions = `drizzle-kit: ${kitVersion}
|
79547
77586
|
${ormVersion}`;
|