drizzle-kit 0.31.1-08944da → 0.31.1-581277d
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 +2607 -1988
- package/api.mjs +2607 -1988
- package/bin.cjs +2254 -292
- package/package.json +1 -1
package/bin.cjs
CHANGED
@@ -59257,9 +59257,9 @@ var require_dist_cjs46 = __commonJS({
|
|
59257
59257
|
}
|
59258
59258
|
});
|
59259
59259
|
|
59260
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59260
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
59261
59261
|
var require_httpAuthSchemeProvider3 = __commonJS({
|
59262
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59262
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
59263
59263
|
"use strict";
|
59264
59264
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59265
59265
|
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
@@ -59326,9 +59326,9 @@ var require_httpAuthSchemeProvider3 = __commonJS({
|
|
59326
59326
|
}
|
59327
59327
|
});
|
59328
59328
|
|
59329
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59329
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
59330
59330
|
var require_package4 = __commonJS({
|
59331
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59331
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
59332
59332
|
module2.exports = {
|
59333
59333
|
name: "@aws-sdk/client-sso-oidc",
|
59334
59334
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
@@ -59432,9 +59432,9 @@ var require_package4 = __commonJS({
|
|
59432
59432
|
}
|
59433
59433
|
});
|
59434
59434
|
|
59435
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59435
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
59436
59436
|
var require_ruleset2 = __commonJS({
|
59437
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59437
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
59438
59438
|
"use strict";
|
59439
59439
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59440
59440
|
exports2.ruleSet = void 0;
|
@@ -59467,9 +59467,9 @@ var require_ruleset2 = __commonJS({
|
|
59467
59467
|
}
|
59468
59468
|
});
|
59469
59469
|
|
59470
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59470
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
59471
59471
|
var require_endpointResolver2 = __commonJS({
|
59472
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59472
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
59473
59473
|
"use strict";
|
59474
59474
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59475
59475
|
exports2.defaultEndpointResolver = void 0;
|
@@ -59487,9 +59487,9 @@ var require_endpointResolver2 = __commonJS({
|
|
59487
59487
|
}
|
59488
59488
|
});
|
59489
59489
|
|
59490
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59490
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
59491
59491
|
var require_runtimeConfig_shared2 = __commonJS({
|
59492
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59492
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
59493
59493
|
"use strict";
|
59494
59494
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59495
59495
|
exports2.getRuntimeConfig = void 0;
|
@@ -59533,16 +59533,16 @@ var require_runtimeConfig_shared2 = __commonJS({
|
|
59533
59533
|
}
|
59534
59534
|
});
|
59535
59535
|
|
59536
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59536
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
59537
59537
|
var require_runtimeConfig2 = __commonJS({
|
59538
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59538
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
59539
59539
|
"use strict";
|
59540
59540
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59541
59541
|
exports2.getRuntimeConfig = void 0;
|
59542
59542
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
59543
59543
|
var package_json_1 = tslib_1.__importDefault(require_package4());
|
59544
59544
|
var core_1 = require_dist_cjs37();
|
59545
|
-
var credential_provider_node_1 =
|
59545
|
+
var credential_provider_node_1 = require_dist_cjs59();
|
59546
59546
|
var util_user_agent_node_1 = require_dist_cjs41();
|
59547
59547
|
var config_resolver_1 = require_dist_cjs11();
|
59548
59548
|
var hash_node_1 = require_dist_cjs42();
|
@@ -59586,9 +59586,9 @@ var require_runtimeConfig2 = __commonJS({
|
|
59586
59586
|
}
|
59587
59587
|
});
|
59588
59588
|
|
59589
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59589
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
59590
59590
|
var require_dist_cjs47 = __commonJS({
|
59591
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.
|
59591
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
59592
59592
|
"use strict";
|
59593
59593
|
var __defProp3 = Object.defineProperty;
|
59594
59594
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -61140,56 +61140,219 @@ var require_package5 = __commonJS({
|
|
61140
61140
|
}
|
61141
61141
|
});
|
61142
61142
|
|
61143
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-
|
61143
|
+
// ../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
|
61144
|
+
var require_httpAuthSchemeProvider5 = __commonJS({
|
61145
|
+
"../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) {
|
61146
|
+
"use strict";
|
61147
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
61148
|
+
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
61149
|
+
var core_1 = require_dist_cjs37();
|
61150
|
+
var util_middleware_1 = require_dist_cjs10();
|
61151
|
+
var defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
61152
|
+
return {
|
61153
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
61154
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
61155
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
61156
|
+
})()
|
61157
|
+
};
|
61158
|
+
};
|
61159
|
+
exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
|
61160
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
61161
|
+
return {
|
61162
|
+
schemeId: "aws.auth#sigv4",
|
61163
|
+
signingProperties: {
|
61164
|
+
name: "sso-oauth",
|
61165
|
+
region: authParameters.region
|
61166
|
+
},
|
61167
|
+
propertiesExtractor: (config, context) => ({
|
61168
|
+
signingProperties: {
|
61169
|
+
config,
|
61170
|
+
context
|
61171
|
+
}
|
61172
|
+
})
|
61173
|
+
};
|
61174
|
+
}
|
61175
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
61176
|
+
return {
|
61177
|
+
schemeId: "smithy.api#noAuth"
|
61178
|
+
};
|
61179
|
+
}
|
61180
|
+
var defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
61181
|
+
const options = [];
|
61182
|
+
switch (authParameters.operation) {
|
61183
|
+
case "CreateToken": {
|
61184
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
61185
|
+
break;
|
61186
|
+
}
|
61187
|
+
case "RegisterClient": {
|
61188
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
61189
|
+
break;
|
61190
|
+
}
|
61191
|
+
case "StartDeviceAuthorization": {
|
61192
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
61193
|
+
break;
|
61194
|
+
}
|
61195
|
+
default: {
|
61196
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
61197
|
+
}
|
61198
|
+
}
|
61199
|
+
return options;
|
61200
|
+
};
|
61201
|
+
exports2.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
|
61202
|
+
var resolveHttpAuthSchemeConfig = (config) => {
|
61203
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
61204
|
+
return {
|
61205
|
+
...config_0
|
61206
|
+
};
|
61207
|
+
};
|
61208
|
+
exports2.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
61209
|
+
}
|
61210
|
+
});
|
61211
|
+
|
61212
|
+
// ../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
|
61213
|
+
var require_package6 = __commonJS({
|
61214
|
+
"../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) {
|
61215
|
+
module2.exports = {
|
61216
|
+
name: "@aws-sdk/client-sso-oidc",
|
61217
|
+
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
61218
|
+
version: "3.583.0",
|
61219
|
+
scripts: {
|
61220
|
+
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
61221
|
+
"build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
|
61222
|
+
"build:es": "tsc -p tsconfig.es.json",
|
61223
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
61224
|
+
"build:types": "tsc -p tsconfig.types.json",
|
61225
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
61226
|
+
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
61227
|
+
"extract:docs": "api-extractor run --local",
|
61228
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo sso-oidc"
|
61229
|
+
},
|
61230
|
+
main: "./dist-cjs/index.js",
|
61231
|
+
types: "./dist-types/index.d.ts",
|
61232
|
+
module: "./dist-es/index.js",
|
61233
|
+
sideEffects: false,
|
61234
|
+
dependencies: {
|
61235
|
+
"@aws-crypto/sha256-browser": "3.0.0",
|
61236
|
+
"@aws-crypto/sha256-js": "3.0.0",
|
61237
|
+
"@aws-sdk/client-sts": "3.583.0",
|
61238
|
+
"@aws-sdk/core": "3.582.0",
|
61239
|
+
"@aws-sdk/credential-provider-node": "3.583.0",
|
61240
|
+
"@aws-sdk/middleware-host-header": "3.577.0",
|
61241
|
+
"@aws-sdk/middleware-logger": "3.577.0",
|
61242
|
+
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
61243
|
+
"@aws-sdk/middleware-user-agent": "3.583.0",
|
61244
|
+
"@aws-sdk/region-config-resolver": "3.577.0",
|
61245
|
+
"@aws-sdk/types": "3.577.0",
|
61246
|
+
"@aws-sdk/util-endpoints": "3.583.0",
|
61247
|
+
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
61248
|
+
"@aws-sdk/util-user-agent-node": "3.577.0",
|
61249
|
+
"@smithy/config-resolver": "^3.0.0",
|
61250
|
+
"@smithy/core": "^2.0.1",
|
61251
|
+
"@smithy/fetch-http-handler": "^3.0.1",
|
61252
|
+
"@smithy/hash-node": "^3.0.0",
|
61253
|
+
"@smithy/invalid-dependency": "^3.0.0",
|
61254
|
+
"@smithy/middleware-content-length": "^3.0.0",
|
61255
|
+
"@smithy/middleware-endpoint": "^3.0.0",
|
61256
|
+
"@smithy/middleware-retry": "^3.0.1",
|
61257
|
+
"@smithy/middleware-serde": "^3.0.0",
|
61258
|
+
"@smithy/middleware-stack": "^3.0.0",
|
61259
|
+
"@smithy/node-config-provider": "^3.0.0",
|
61260
|
+
"@smithy/node-http-handler": "^3.0.0",
|
61261
|
+
"@smithy/protocol-http": "^4.0.0",
|
61262
|
+
"@smithy/smithy-client": "^3.0.1",
|
61263
|
+
"@smithy/types": "^3.0.0",
|
61264
|
+
"@smithy/url-parser": "^3.0.0",
|
61265
|
+
"@smithy/util-base64": "^3.0.0",
|
61266
|
+
"@smithy/util-body-length-browser": "^3.0.0",
|
61267
|
+
"@smithy/util-body-length-node": "^3.0.0",
|
61268
|
+
"@smithy/util-defaults-mode-browser": "^3.0.1",
|
61269
|
+
"@smithy/util-defaults-mode-node": "^3.0.1",
|
61270
|
+
"@smithy/util-endpoints": "^2.0.0",
|
61271
|
+
"@smithy/util-middleware": "^3.0.0",
|
61272
|
+
"@smithy/util-retry": "^3.0.0",
|
61273
|
+
"@smithy/util-utf8": "^3.0.0",
|
61274
|
+
tslib: "^2.6.2"
|
61275
|
+
},
|
61276
|
+
devDependencies: {
|
61277
|
+
"@tsconfig/node16": "16.1.3",
|
61278
|
+
"@types/node": "^16.18.96",
|
61279
|
+
concurrently: "7.0.0",
|
61280
|
+
"downlevel-dts": "0.10.1",
|
61281
|
+
rimraf: "3.0.2",
|
61282
|
+
typescript: "~4.9.5"
|
61283
|
+
},
|
61284
|
+
engines: {
|
61285
|
+
node: ">=16.0.0"
|
61286
|
+
},
|
61287
|
+
typesVersions: {
|
61288
|
+
"<4.0": {
|
61289
|
+
"dist-types/*": [
|
61290
|
+
"dist-types/ts3.4/*"
|
61291
|
+
]
|
61292
|
+
}
|
61293
|
+
},
|
61294
|
+
files: [
|
61295
|
+
"dist-*/**"
|
61296
|
+
],
|
61297
|
+
author: {
|
61298
|
+
name: "AWS SDK for JavaScript Team",
|
61299
|
+
url: "https://aws.amazon.com/javascript/"
|
61300
|
+
},
|
61301
|
+
license: "Apache-2.0",
|
61302
|
+
browser: {
|
61303
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
61304
|
+
},
|
61305
|
+
"react-native": {
|
61306
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
61307
|
+
},
|
61308
|
+
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",
|
61309
|
+
repository: {
|
61310
|
+
type: "git",
|
61311
|
+
url: "https://github.com/aws/aws-sdk-js-v3.git",
|
61312
|
+
directory: "clients/client-sso-oidc"
|
61313
|
+
}
|
61314
|
+
};
|
61315
|
+
}
|
61316
|
+
});
|
61317
|
+
|
61318
|
+
// ../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
|
61144
61319
|
var require_ruleset3 = __commonJS({
|
61145
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-
|
61320
|
+
"../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) {
|
61146
61321
|
"use strict";
|
61147
61322
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61148
61323
|
exports2.ruleSet = void 0;
|
61149
|
-
var
|
61150
|
-
var
|
61151
|
-
var
|
61152
|
-
var
|
61153
|
-
var
|
61154
|
-
var
|
61155
|
-
var b = true;
|
61324
|
+
var u = "required";
|
61325
|
+
var v = "fn";
|
61326
|
+
var w = "argv";
|
61327
|
+
var x2 = "ref";
|
61328
|
+
var a = true;
|
61329
|
+
var b = "isSet";
|
61156
61330
|
var c = "booleanEquals";
|
61157
|
-
var d = "
|
61158
|
-
var e2 = "
|
61159
|
-
var f3 = "
|
61160
|
-
var g = "
|
61161
|
-
var h2 = "
|
61162
|
-
var i2 = "
|
61163
|
-
var j = "
|
61164
|
-
var k = "
|
61165
|
-
var l = "
|
61166
|
-
var m2 = { [
|
61167
|
-
var n = {
|
61168
|
-
var o = { [
|
61169
|
-
var p = { [
|
61170
|
-
var q = { [
|
61171
|
-
var r2 =
|
61172
|
-
var s2 =
|
61173
|
-
var t2 = { [
|
61174
|
-
var
|
61175
|
-
var v = {};
|
61176
|
-
var w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h2]: u, [G]: h2 };
|
61177
|
-
var x2 = { [H]: c, [I]: [s2, true] };
|
61178
|
-
var y = { [H]: c, [I]: [t2, true] };
|
61179
|
-
var z2 = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
|
61180
|
-
var A2 = { [J]: "PartitionResult" };
|
61181
|
-
var B = { [H]: c, [I]: [true, { [H]: l, [I]: [A2, "supportsDualStack"] }] };
|
61182
|
-
var C = [{ [H]: "isSet", [I]: [o] }];
|
61183
|
-
var D = [x2];
|
61184
|
-
var E = [y];
|
61185
|
-
var _data = { version: "1.0", parameters: { Region: m2, UseDualStack: n, UseFIPS: n, Endpoint: m2, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r2, { [H]: c, [I]: [s2, a] }, { [H]: c, [I]: [t2, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h2 }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h2 }, { endpoint: { url: i2, properties: { authSchemes: [{ name: e2, signingName: f3, signingRegion: "{Region}" }] }, headers: v }, [G]: h2 }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h2 }], [G]: j }, { conditions: [p], rules: [{ conditions: [r2], rules: [{ conditions: [x2, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z2] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z2, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A2, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h2 }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i2, properties: v, headers: v }, [G]: h2 }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
61331
|
+
var d = "error";
|
61332
|
+
var e2 = "endpoint";
|
61333
|
+
var f3 = "tree";
|
61334
|
+
var g = "PartitionResult";
|
61335
|
+
var h2 = "getAttr";
|
61336
|
+
var i2 = { [u]: false, "type": "String" };
|
61337
|
+
var j = { [u]: true, "default": false, "type": "Boolean" };
|
61338
|
+
var k = { [x2]: "Endpoint" };
|
61339
|
+
var l = { [v]: c, [w]: [{ [x2]: "UseFIPS" }, true] };
|
61340
|
+
var m2 = { [v]: c, [w]: [{ [x2]: "UseDualStack" }, true] };
|
61341
|
+
var n = {};
|
61342
|
+
var o = { [v]: h2, [w]: [{ [x2]: g }, "supportsFIPS"] };
|
61343
|
+
var p = { [x2]: g };
|
61344
|
+
var q = { [v]: c, [w]: [true, { [v]: h2, [w]: [p, "supportsDualStack"] }] };
|
61345
|
+
var r2 = [l];
|
61346
|
+
var s2 = [m2];
|
61347
|
+
var t2 = [{ [x2]: "Region" }];
|
61348
|
+
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 }] };
|
61186
61349
|
exports2.ruleSet = _data;
|
61187
61350
|
}
|
61188
61351
|
});
|
61189
61352
|
|
61190
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-
|
61353
|
+
// ../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
|
61191
61354
|
var require_endpointResolver3 = __commonJS({
|
61192
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-
|
61355
|
+
"../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) {
|
61193
61356
|
"use strict";
|
61194
61357
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61195
61358
|
exports2.defaultEndpointResolver = void 0;
|
@@ -61207,9 +61370,9 @@ var require_endpointResolver3 = __commonJS({
|
|
61207
61370
|
}
|
61208
61371
|
});
|
61209
61372
|
|
61210
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-
|
61373
|
+
// ../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
|
61211
61374
|
var require_runtimeConfig_shared3 = __commonJS({
|
61212
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-
|
61375
|
+
"../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) {
|
61213
61376
|
"use strict";
|
61214
61377
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61215
61378
|
exports2.getRuntimeConfig = void 0;
|
@@ -61219,17 +61382,17 @@ var require_runtimeConfig_shared3 = __commonJS({
|
|
61219
61382
|
var url_parser_1 = require_dist_cjs16();
|
61220
61383
|
var util_base64_1 = require_dist_cjs25();
|
61221
61384
|
var util_utf8_1 = require_dist_cjs24();
|
61222
|
-
var httpAuthSchemeProvider_1 =
|
61385
|
+
var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider5();
|
61223
61386
|
var endpointResolver_1 = require_endpointResolver3();
|
61224
61387
|
var getRuntimeConfig = (config) => {
|
61225
61388
|
return {
|
61226
|
-
apiVersion: "
|
61389
|
+
apiVersion: "2019-06-10",
|
61227
61390
|
base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
|
61228
61391
|
base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
|
61229
61392
|
disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
|
61230
61393
|
endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
|
61231
61394
|
extensions: (config == null ? void 0 : config.extensions) ?? [],
|
61232
|
-
httpAuthSchemeProvider: (config == null ? void 0 : config.httpAuthSchemeProvider) ?? httpAuthSchemeProvider_1.
|
61395
|
+
httpAuthSchemeProvider: (config == null ? void 0 : config.httpAuthSchemeProvider) ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
|
61233
61396
|
httpAuthSchemes: (config == null ? void 0 : config.httpAuthSchemes) ?? [
|
61234
61397
|
{
|
61235
61398
|
schemeId: "aws.auth#sigv4",
|
@@ -61243,7 +61406,7 @@ var require_runtimeConfig_shared3 = __commonJS({
|
|
61243
61406
|
}
|
61244
61407
|
],
|
61245
61408
|
logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
|
61246
|
-
serviceId: (config == null ? void 0 : config.serviceId) ?? "
|
61409
|
+
serviceId: (config == null ? void 0 : config.serviceId) ?? "SSO OIDC",
|
61247
61410
|
urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl,
|
61248
61411
|
utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? util_utf8_1.fromUtf8,
|
61249
61412
|
utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? util_utf8_1.toUtf8
|
@@ -61253,19 +61416,18 @@ var require_runtimeConfig_shared3 = __commonJS({
|
|
61253
61416
|
}
|
61254
61417
|
});
|
61255
61418
|
|
61256
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-
|
61419
|
+
// ../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
|
61257
61420
|
var require_runtimeConfig3 = __commonJS({
|
61258
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-
|
61421
|
+
"../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) {
|
61259
61422
|
"use strict";
|
61260
61423
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
61261
61424
|
exports2.getRuntimeConfig = void 0;
|
61262
61425
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
61263
|
-
var package_json_1 = tslib_1.__importDefault(
|
61426
|
+
var package_json_1 = tslib_1.__importDefault(require_package6());
|
61264
61427
|
var core_1 = require_dist_cjs37();
|
61265
|
-
var credential_provider_node_1 =
|
61428
|
+
var credential_provider_node_1 = require_dist_cjs56();
|
61266
61429
|
var util_user_agent_node_1 = require_dist_cjs41();
|
61267
61430
|
var config_resolver_1 = require_dist_cjs11();
|
61268
|
-
var core_2 = require_dist_cjs34();
|
61269
61431
|
var hash_node_1 = require_dist_cjs42();
|
61270
61432
|
var middleware_retry_1 = require_dist_cjs33();
|
61271
61433
|
var node_config_provider_1 = require_dist_cjs14();
|
@@ -61276,6 +61438,2010 @@ var require_runtimeConfig3 = __commonJS({
|
|
61276
61438
|
var smithy_client_1 = require_dist_cjs32();
|
61277
61439
|
var util_defaults_mode_node_1 = require_dist_cjs44();
|
61278
61440
|
var smithy_client_2 = require_dist_cjs32();
|
61441
|
+
var getRuntimeConfig = (config) => {
|
61442
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
61443
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
61444
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
61445
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
61446
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
61447
|
+
return {
|
61448
|
+
...clientSharedValues,
|
61449
|
+
...config,
|
61450
|
+
runtime: "node",
|
61451
|
+
defaultsMode,
|
61452
|
+
bodyLengthChecker: (config == null ? void 0 : config.bodyLengthChecker) ?? util_body_length_node_1.calculateBodyLength,
|
61453
|
+
credentialDefaultProvider: (config == null ? void 0 : config.credentialDefaultProvider) ?? credential_provider_node_1.defaultProvider,
|
61454
|
+
defaultUserAgentProvider: (config == null ? void 0 : config.defaultUserAgentProvider) ?? (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
61455
|
+
maxAttempts: (config == null ? void 0 : config.maxAttempts) ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
61456
|
+
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),
|
61457
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create((config == null ? void 0 : config.requestHandler) ?? defaultConfigProvider),
|
61458
|
+
retryMode: (config == null ? void 0 : config.retryMode) ?? (0, node_config_provider_1.loadConfig)({
|
61459
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
61460
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE
|
61461
|
+
}),
|
61462
|
+
sha256: (config == null ? void 0 : config.sha256) ?? hash_node_1.Hash.bind(null, "sha256"),
|
61463
|
+
streamCollector: (config == null ? void 0 : config.streamCollector) ?? node_http_handler_1.streamCollector,
|
61464
|
+
useDualstackEndpoint: (config == null ? void 0 : config.useDualstackEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
61465
|
+
useFipsEndpoint: (config == null ? void 0 : config.useFipsEndpoint) ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)
|
61466
|
+
};
|
61467
|
+
};
|
61468
|
+
exports2.getRuntimeConfig = getRuntimeConfig;
|
61469
|
+
}
|
61470
|
+
});
|
61471
|
+
|
61472
|
+
// ../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
|
61473
|
+
var require_dist_cjs50 = __commonJS({
|
61474
|
+
"../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) {
|
61475
|
+
"use strict";
|
61476
|
+
var __defProp3 = Object.defineProperty;
|
61477
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
61478
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
61479
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
61480
|
+
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
61481
|
+
var __export2 = (target, all) => {
|
61482
|
+
for (var name in all)
|
61483
|
+
__defProp3(target, name, { get: all[name], enumerable: true });
|
61484
|
+
};
|
61485
|
+
var __copyProps3 = (to, from, except, desc) => {
|
61486
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
61487
|
+
for (let key of __getOwnPropNames3(from))
|
61488
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
61489
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
61490
|
+
}
|
61491
|
+
return to;
|
61492
|
+
};
|
61493
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
61494
|
+
var src_exports = {};
|
61495
|
+
__export2(src_exports, {
|
61496
|
+
AccessDeniedException: () => AccessDeniedException,
|
61497
|
+
AuthorizationPendingException: () => AuthorizationPendingException,
|
61498
|
+
CreateTokenCommand: () => CreateTokenCommand,
|
61499
|
+
CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
|
61500
|
+
CreateTokenResponseFilterSensitiveLog: () => CreateTokenResponseFilterSensitiveLog,
|
61501
|
+
CreateTokenWithIAMCommand: () => CreateTokenWithIAMCommand,
|
61502
|
+
CreateTokenWithIAMRequestFilterSensitiveLog: () => CreateTokenWithIAMRequestFilterSensitiveLog,
|
61503
|
+
CreateTokenWithIAMResponseFilterSensitiveLog: () => CreateTokenWithIAMResponseFilterSensitiveLog,
|
61504
|
+
ExpiredTokenException: () => ExpiredTokenException,
|
61505
|
+
InternalServerException: () => InternalServerException,
|
61506
|
+
InvalidClientException: () => InvalidClientException,
|
61507
|
+
InvalidClientMetadataException: () => InvalidClientMetadataException,
|
61508
|
+
InvalidGrantException: () => InvalidGrantException,
|
61509
|
+
InvalidRedirectUriException: () => InvalidRedirectUriException,
|
61510
|
+
InvalidRequestException: () => InvalidRequestException,
|
61511
|
+
InvalidRequestRegionException: () => InvalidRequestRegionException,
|
61512
|
+
InvalidScopeException: () => InvalidScopeException,
|
61513
|
+
RegisterClientCommand: () => RegisterClientCommand,
|
61514
|
+
RegisterClientResponseFilterSensitiveLog: () => RegisterClientResponseFilterSensitiveLog,
|
61515
|
+
SSOOIDC: () => SSOOIDC,
|
61516
|
+
SSOOIDCClient: () => SSOOIDCClient,
|
61517
|
+
SSOOIDCServiceException: () => SSOOIDCServiceException,
|
61518
|
+
SlowDownException: () => SlowDownException,
|
61519
|
+
StartDeviceAuthorizationCommand: () => StartDeviceAuthorizationCommand,
|
61520
|
+
StartDeviceAuthorizationRequestFilterSensitiveLog: () => StartDeviceAuthorizationRequestFilterSensitiveLog,
|
61521
|
+
UnauthorizedClientException: () => UnauthorizedClientException,
|
61522
|
+
UnsupportedGrantTypeException: () => UnsupportedGrantTypeException,
|
61523
|
+
__Client: () => import_smithy_client.Client
|
61524
|
+
});
|
61525
|
+
module2.exports = __toCommonJS2(src_exports);
|
61526
|
+
var import_middleware_host_header = require_dist_cjs3();
|
61527
|
+
var import_middleware_logger = require_dist_cjs4();
|
61528
|
+
var import_middleware_recursion_detection = require_dist_cjs5();
|
61529
|
+
var import_middleware_user_agent = require_dist_cjs8();
|
61530
|
+
var import_config_resolver = require_dist_cjs11();
|
61531
|
+
var import_core = require_dist_cjs34();
|
61532
|
+
var import_middleware_content_length = require_dist_cjs35();
|
61533
|
+
var import_middleware_endpoint = require_dist_cjs18();
|
61534
|
+
var import_middleware_retry = require_dist_cjs33();
|
61535
|
+
var import_httpAuthSchemeProvider = require_httpAuthSchemeProvider5();
|
61536
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
61537
|
+
return {
|
61538
|
+
...options,
|
61539
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
61540
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
61541
|
+
defaultSigningName: "sso-oauth"
|
61542
|
+
};
|
61543
|
+
}, "resolveClientEndpointParameters");
|
61544
|
+
var commonParams = {
|
61545
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
61546
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
61547
|
+
Region: { type: "builtInParams", name: "region" },
|
61548
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
61549
|
+
};
|
61550
|
+
var import_runtimeConfig = require_runtimeConfig3();
|
61551
|
+
var import_region_config_resolver = require_dist_cjs45();
|
61552
|
+
var import_protocol_http = require_dist_cjs2();
|
61553
|
+
var import_smithy_client = require_dist_cjs32();
|
61554
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
61555
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
61556
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
61557
|
+
let _credentials = runtimeConfig.credentials;
|
61558
|
+
return {
|
61559
|
+
setHttpAuthScheme(httpAuthScheme) {
|
61560
|
+
const index6 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
61561
|
+
if (index6 === -1) {
|
61562
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
61563
|
+
} else {
|
61564
|
+
_httpAuthSchemes.splice(index6, 1, httpAuthScheme);
|
61565
|
+
}
|
61566
|
+
},
|
61567
|
+
httpAuthSchemes() {
|
61568
|
+
return _httpAuthSchemes;
|
61569
|
+
},
|
61570
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
61571
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
61572
|
+
},
|
61573
|
+
httpAuthSchemeProvider() {
|
61574
|
+
return _httpAuthSchemeProvider;
|
61575
|
+
},
|
61576
|
+
setCredentials(credentials2) {
|
61577
|
+
_credentials = credentials2;
|
61578
|
+
},
|
61579
|
+
credentials() {
|
61580
|
+
return _credentials;
|
61581
|
+
}
|
61582
|
+
};
|
61583
|
+
}, "getHttpAuthExtensionConfiguration");
|
61584
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
61585
|
+
return {
|
61586
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
61587
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
61588
|
+
credentials: config.credentials()
|
61589
|
+
};
|
61590
|
+
}, "resolveHttpAuthRuntimeConfig");
|
61591
|
+
var asPartial = /* @__PURE__ */ __name((t2) => t2, "asPartial");
|
61592
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
61593
|
+
const extensionConfiguration = {
|
61594
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
61595
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
61596
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
61597
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
61598
|
+
};
|
61599
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
61600
|
+
return {
|
61601
|
+
...runtimeConfig,
|
61602
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
61603
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
61604
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
61605
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
61606
|
+
};
|
61607
|
+
}, "resolveRuntimeExtensions");
|
61608
|
+
var _SSOOIDCClient = class _SSOOIDCClient extends import_smithy_client.Client {
|
61609
|
+
constructor(...[configuration]) {
|
61610
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
61611
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
61612
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
61613
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
61614
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
61615
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
61616
|
+
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
61617
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
61618
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
61619
|
+
super(_config_8);
|
61620
|
+
this.config = _config_8;
|
61621
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
61622
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
61623
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
61624
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
61625
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
61626
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
61627
|
+
this.middlewareStack.use(
|
61628
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
61629
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
61630
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
61631
|
+
})
|
61632
|
+
);
|
61633
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
61634
|
+
}
|
61635
|
+
/**
|
61636
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
61637
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
61638
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
61639
|
+
*/
|
61640
|
+
destroy() {
|
61641
|
+
super.destroy();
|
61642
|
+
}
|
61643
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
61644
|
+
return import_httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider;
|
61645
|
+
}
|
61646
|
+
getIdentityProviderConfigProvider() {
|
61647
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
61648
|
+
"aws.auth#sigv4": config.credentials
|
61649
|
+
});
|
61650
|
+
}
|
61651
|
+
};
|
61652
|
+
__name(_SSOOIDCClient, "SSOOIDCClient");
|
61653
|
+
var SSOOIDCClient = _SSOOIDCClient;
|
61654
|
+
var import_middleware_serde = require_dist_cjs17();
|
61655
|
+
var import_types = require_dist_cjs();
|
61656
|
+
var _SSOOIDCServiceException = class _SSOOIDCServiceException2 extends import_smithy_client.ServiceException {
|
61657
|
+
/**
|
61658
|
+
* @internal
|
61659
|
+
*/
|
61660
|
+
constructor(options) {
|
61661
|
+
super(options);
|
61662
|
+
Object.setPrototypeOf(this, _SSOOIDCServiceException2.prototype);
|
61663
|
+
}
|
61664
|
+
};
|
61665
|
+
__name(_SSOOIDCServiceException, "SSOOIDCServiceException");
|
61666
|
+
var SSOOIDCServiceException = _SSOOIDCServiceException;
|
61667
|
+
var _AccessDeniedException = class _AccessDeniedException2 extends SSOOIDCServiceException {
|
61668
|
+
/**
|
61669
|
+
* @internal
|
61670
|
+
*/
|
61671
|
+
constructor(opts) {
|
61672
|
+
super({
|
61673
|
+
name: "AccessDeniedException",
|
61674
|
+
$fault: "client",
|
61675
|
+
...opts
|
61676
|
+
});
|
61677
|
+
this.name = "AccessDeniedException";
|
61678
|
+
this.$fault = "client";
|
61679
|
+
Object.setPrototypeOf(this, _AccessDeniedException2.prototype);
|
61680
|
+
this.error = opts.error;
|
61681
|
+
this.error_description = opts.error_description;
|
61682
|
+
}
|
61683
|
+
};
|
61684
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
61685
|
+
var AccessDeniedException = _AccessDeniedException;
|
61686
|
+
var _AuthorizationPendingException = class _AuthorizationPendingException2 extends SSOOIDCServiceException {
|
61687
|
+
/**
|
61688
|
+
* @internal
|
61689
|
+
*/
|
61690
|
+
constructor(opts) {
|
61691
|
+
super({
|
61692
|
+
name: "AuthorizationPendingException",
|
61693
|
+
$fault: "client",
|
61694
|
+
...opts
|
61695
|
+
});
|
61696
|
+
this.name = "AuthorizationPendingException";
|
61697
|
+
this.$fault = "client";
|
61698
|
+
Object.setPrototypeOf(this, _AuthorizationPendingException2.prototype);
|
61699
|
+
this.error = opts.error;
|
61700
|
+
this.error_description = opts.error_description;
|
61701
|
+
}
|
61702
|
+
};
|
61703
|
+
__name(_AuthorizationPendingException, "AuthorizationPendingException");
|
61704
|
+
var AuthorizationPendingException = _AuthorizationPendingException;
|
61705
|
+
var _ExpiredTokenException = class _ExpiredTokenException2 extends SSOOIDCServiceException {
|
61706
|
+
/**
|
61707
|
+
* @internal
|
61708
|
+
*/
|
61709
|
+
constructor(opts) {
|
61710
|
+
super({
|
61711
|
+
name: "ExpiredTokenException",
|
61712
|
+
$fault: "client",
|
61713
|
+
...opts
|
61714
|
+
});
|
61715
|
+
this.name = "ExpiredTokenException";
|
61716
|
+
this.$fault = "client";
|
61717
|
+
Object.setPrototypeOf(this, _ExpiredTokenException2.prototype);
|
61718
|
+
this.error = opts.error;
|
61719
|
+
this.error_description = opts.error_description;
|
61720
|
+
}
|
61721
|
+
};
|
61722
|
+
__name(_ExpiredTokenException, "ExpiredTokenException");
|
61723
|
+
var ExpiredTokenException = _ExpiredTokenException;
|
61724
|
+
var _InternalServerException = class _InternalServerException2 extends SSOOIDCServiceException {
|
61725
|
+
/**
|
61726
|
+
* @internal
|
61727
|
+
*/
|
61728
|
+
constructor(opts) {
|
61729
|
+
super({
|
61730
|
+
name: "InternalServerException",
|
61731
|
+
$fault: "server",
|
61732
|
+
...opts
|
61733
|
+
});
|
61734
|
+
this.name = "InternalServerException";
|
61735
|
+
this.$fault = "server";
|
61736
|
+
Object.setPrototypeOf(this, _InternalServerException2.prototype);
|
61737
|
+
this.error = opts.error;
|
61738
|
+
this.error_description = opts.error_description;
|
61739
|
+
}
|
61740
|
+
};
|
61741
|
+
__name(_InternalServerException, "InternalServerException");
|
61742
|
+
var InternalServerException = _InternalServerException;
|
61743
|
+
var _InvalidClientException = class _InvalidClientException2 extends SSOOIDCServiceException {
|
61744
|
+
/**
|
61745
|
+
* @internal
|
61746
|
+
*/
|
61747
|
+
constructor(opts) {
|
61748
|
+
super({
|
61749
|
+
name: "InvalidClientException",
|
61750
|
+
$fault: "client",
|
61751
|
+
...opts
|
61752
|
+
});
|
61753
|
+
this.name = "InvalidClientException";
|
61754
|
+
this.$fault = "client";
|
61755
|
+
Object.setPrototypeOf(this, _InvalidClientException2.prototype);
|
61756
|
+
this.error = opts.error;
|
61757
|
+
this.error_description = opts.error_description;
|
61758
|
+
}
|
61759
|
+
};
|
61760
|
+
__name(_InvalidClientException, "InvalidClientException");
|
61761
|
+
var InvalidClientException = _InvalidClientException;
|
61762
|
+
var _InvalidGrantException = class _InvalidGrantException2 extends SSOOIDCServiceException {
|
61763
|
+
/**
|
61764
|
+
* @internal
|
61765
|
+
*/
|
61766
|
+
constructor(opts) {
|
61767
|
+
super({
|
61768
|
+
name: "InvalidGrantException",
|
61769
|
+
$fault: "client",
|
61770
|
+
...opts
|
61771
|
+
});
|
61772
|
+
this.name = "InvalidGrantException";
|
61773
|
+
this.$fault = "client";
|
61774
|
+
Object.setPrototypeOf(this, _InvalidGrantException2.prototype);
|
61775
|
+
this.error = opts.error;
|
61776
|
+
this.error_description = opts.error_description;
|
61777
|
+
}
|
61778
|
+
};
|
61779
|
+
__name(_InvalidGrantException, "InvalidGrantException");
|
61780
|
+
var InvalidGrantException = _InvalidGrantException;
|
61781
|
+
var _InvalidRequestException = class _InvalidRequestException2 extends SSOOIDCServiceException {
|
61782
|
+
/**
|
61783
|
+
* @internal
|
61784
|
+
*/
|
61785
|
+
constructor(opts) {
|
61786
|
+
super({
|
61787
|
+
name: "InvalidRequestException",
|
61788
|
+
$fault: "client",
|
61789
|
+
...opts
|
61790
|
+
});
|
61791
|
+
this.name = "InvalidRequestException";
|
61792
|
+
this.$fault = "client";
|
61793
|
+
Object.setPrototypeOf(this, _InvalidRequestException2.prototype);
|
61794
|
+
this.error = opts.error;
|
61795
|
+
this.error_description = opts.error_description;
|
61796
|
+
}
|
61797
|
+
};
|
61798
|
+
__name(_InvalidRequestException, "InvalidRequestException");
|
61799
|
+
var InvalidRequestException = _InvalidRequestException;
|
61800
|
+
var _InvalidScopeException = class _InvalidScopeException2 extends SSOOIDCServiceException {
|
61801
|
+
/**
|
61802
|
+
* @internal
|
61803
|
+
*/
|
61804
|
+
constructor(opts) {
|
61805
|
+
super({
|
61806
|
+
name: "InvalidScopeException",
|
61807
|
+
$fault: "client",
|
61808
|
+
...opts
|
61809
|
+
});
|
61810
|
+
this.name = "InvalidScopeException";
|
61811
|
+
this.$fault = "client";
|
61812
|
+
Object.setPrototypeOf(this, _InvalidScopeException2.prototype);
|
61813
|
+
this.error = opts.error;
|
61814
|
+
this.error_description = opts.error_description;
|
61815
|
+
}
|
61816
|
+
};
|
61817
|
+
__name(_InvalidScopeException, "InvalidScopeException");
|
61818
|
+
var InvalidScopeException = _InvalidScopeException;
|
61819
|
+
var _SlowDownException = class _SlowDownException2 extends SSOOIDCServiceException {
|
61820
|
+
/**
|
61821
|
+
* @internal
|
61822
|
+
*/
|
61823
|
+
constructor(opts) {
|
61824
|
+
super({
|
61825
|
+
name: "SlowDownException",
|
61826
|
+
$fault: "client",
|
61827
|
+
...opts
|
61828
|
+
});
|
61829
|
+
this.name = "SlowDownException";
|
61830
|
+
this.$fault = "client";
|
61831
|
+
Object.setPrototypeOf(this, _SlowDownException2.prototype);
|
61832
|
+
this.error = opts.error;
|
61833
|
+
this.error_description = opts.error_description;
|
61834
|
+
}
|
61835
|
+
};
|
61836
|
+
__name(_SlowDownException, "SlowDownException");
|
61837
|
+
var SlowDownException = _SlowDownException;
|
61838
|
+
var _UnauthorizedClientException = class _UnauthorizedClientException2 extends SSOOIDCServiceException {
|
61839
|
+
/**
|
61840
|
+
* @internal
|
61841
|
+
*/
|
61842
|
+
constructor(opts) {
|
61843
|
+
super({
|
61844
|
+
name: "UnauthorizedClientException",
|
61845
|
+
$fault: "client",
|
61846
|
+
...opts
|
61847
|
+
});
|
61848
|
+
this.name = "UnauthorizedClientException";
|
61849
|
+
this.$fault = "client";
|
61850
|
+
Object.setPrototypeOf(this, _UnauthorizedClientException2.prototype);
|
61851
|
+
this.error = opts.error;
|
61852
|
+
this.error_description = opts.error_description;
|
61853
|
+
}
|
61854
|
+
};
|
61855
|
+
__name(_UnauthorizedClientException, "UnauthorizedClientException");
|
61856
|
+
var UnauthorizedClientException = _UnauthorizedClientException;
|
61857
|
+
var _UnsupportedGrantTypeException = class _UnsupportedGrantTypeException2 extends SSOOIDCServiceException {
|
61858
|
+
/**
|
61859
|
+
* @internal
|
61860
|
+
*/
|
61861
|
+
constructor(opts) {
|
61862
|
+
super({
|
61863
|
+
name: "UnsupportedGrantTypeException",
|
61864
|
+
$fault: "client",
|
61865
|
+
...opts
|
61866
|
+
});
|
61867
|
+
this.name = "UnsupportedGrantTypeException";
|
61868
|
+
this.$fault = "client";
|
61869
|
+
Object.setPrototypeOf(this, _UnsupportedGrantTypeException2.prototype);
|
61870
|
+
this.error = opts.error;
|
61871
|
+
this.error_description = opts.error_description;
|
61872
|
+
}
|
61873
|
+
};
|
61874
|
+
__name(_UnsupportedGrantTypeException, "UnsupportedGrantTypeException");
|
61875
|
+
var UnsupportedGrantTypeException = _UnsupportedGrantTypeException;
|
61876
|
+
var _InvalidRequestRegionException = class _InvalidRequestRegionException2 extends SSOOIDCServiceException {
|
61877
|
+
/**
|
61878
|
+
* @internal
|
61879
|
+
*/
|
61880
|
+
constructor(opts) {
|
61881
|
+
super({
|
61882
|
+
name: "InvalidRequestRegionException",
|
61883
|
+
$fault: "client",
|
61884
|
+
...opts
|
61885
|
+
});
|
61886
|
+
this.name = "InvalidRequestRegionException";
|
61887
|
+
this.$fault = "client";
|
61888
|
+
Object.setPrototypeOf(this, _InvalidRequestRegionException2.prototype);
|
61889
|
+
this.error = opts.error;
|
61890
|
+
this.error_description = opts.error_description;
|
61891
|
+
this.endpoint = opts.endpoint;
|
61892
|
+
this.region = opts.region;
|
61893
|
+
}
|
61894
|
+
};
|
61895
|
+
__name(_InvalidRequestRegionException, "InvalidRequestRegionException");
|
61896
|
+
var InvalidRequestRegionException = _InvalidRequestRegionException;
|
61897
|
+
var _InvalidClientMetadataException = class _InvalidClientMetadataException2 extends SSOOIDCServiceException {
|
61898
|
+
/**
|
61899
|
+
* @internal
|
61900
|
+
*/
|
61901
|
+
constructor(opts) {
|
61902
|
+
super({
|
61903
|
+
name: "InvalidClientMetadataException",
|
61904
|
+
$fault: "client",
|
61905
|
+
...opts
|
61906
|
+
});
|
61907
|
+
this.name = "InvalidClientMetadataException";
|
61908
|
+
this.$fault = "client";
|
61909
|
+
Object.setPrototypeOf(this, _InvalidClientMetadataException2.prototype);
|
61910
|
+
this.error = opts.error;
|
61911
|
+
this.error_description = opts.error_description;
|
61912
|
+
}
|
61913
|
+
};
|
61914
|
+
__name(_InvalidClientMetadataException, "InvalidClientMetadataException");
|
61915
|
+
var InvalidClientMetadataException = _InvalidClientMetadataException;
|
61916
|
+
var _InvalidRedirectUriException = class _InvalidRedirectUriException2 extends SSOOIDCServiceException {
|
61917
|
+
/**
|
61918
|
+
* @internal
|
61919
|
+
*/
|
61920
|
+
constructor(opts) {
|
61921
|
+
super({
|
61922
|
+
name: "InvalidRedirectUriException",
|
61923
|
+
$fault: "client",
|
61924
|
+
...opts
|
61925
|
+
});
|
61926
|
+
this.name = "InvalidRedirectUriException";
|
61927
|
+
this.$fault = "client";
|
61928
|
+
Object.setPrototypeOf(this, _InvalidRedirectUriException2.prototype);
|
61929
|
+
this.error = opts.error;
|
61930
|
+
this.error_description = opts.error_description;
|
61931
|
+
}
|
61932
|
+
};
|
61933
|
+
__name(_InvalidRedirectUriException, "InvalidRedirectUriException");
|
61934
|
+
var InvalidRedirectUriException = _InvalidRedirectUriException;
|
61935
|
+
var CreateTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61936
|
+
...obj,
|
61937
|
+
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING },
|
61938
|
+
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
61939
|
+
...obj.codeVerifier && { codeVerifier: import_smithy_client.SENSITIVE_STRING }
|
61940
|
+
}), "CreateTokenRequestFilterSensitiveLog");
|
61941
|
+
var CreateTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61942
|
+
...obj,
|
61943
|
+
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
|
61944
|
+
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
61945
|
+
...obj.idToken && { idToken: import_smithy_client.SENSITIVE_STRING }
|
61946
|
+
}), "CreateTokenResponseFilterSensitiveLog");
|
61947
|
+
var CreateTokenWithIAMRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61948
|
+
...obj,
|
61949
|
+
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
61950
|
+
...obj.assertion && { assertion: import_smithy_client.SENSITIVE_STRING },
|
61951
|
+
...obj.subjectToken && { subjectToken: import_smithy_client.SENSITIVE_STRING },
|
61952
|
+
...obj.codeVerifier && { codeVerifier: import_smithy_client.SENSITIVE_STRING }
|
61953
|
+
}), "CreateTokenWithIAMRequestFilterSensitiveLog");
|
61954
|
+
var CreateTokenWithIAMResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61955
|
+
...obj,
|
61956
|
+
...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
|
61957
|
+
...obj.refreshToken && { refreshToken: import_smithy_client.SENSITIVE_STRING },
|
61958
|
+
...obj.idToken && { idToken: import_smithy_client.SENSITIVE_STRING }
|
61959
|
+
}), "CreateTokenWithIAMResponseFilterSensitiveLog");
|
61960
|
+
var RegisterClientResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61961
|
+
...obj,
|
61962
|
+
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
|
61963
|
+
}), "RegisterClientResponseFilterSensitiveLog");
|
61964
|
+
var StartDeviceAuthorizationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
61965
|
+
...obj,
|
61966
|
+
...obj.clientSecret && { clientSecret: import_smithy_client.SENSITIVE_STRING }
|
61967
|
+
}), "StartDeviceAuthorizationRequestFilterSensitiveLog");
|
61968
|
+
var import_core2 = require_dist_cjs37();
|
61969
|
+
var se_CreateTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
61970
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
61971
|
+
const headers = {
|
61972
|
+
"content-type": "application/json"
|
61973
|
+
};
|
61974
|
+
b.bp("/token");
|
61975
|
+
let body;
|
61976
|
+
body = JSON.stringify(
|
61977
|
+
(0, import_smithy_client.take)(input, {
|
61978
|
+
clientId: [],
|
61979
|
+
clientSecret: [],
|
61980
|
+
code: [],
|
61981
|
+
codeVerifier: [],
|
61982
|
+
deviceCode: [],
|
61983
|
+
grantType: [],
|
61984
|
+
redirectUri: [],
|
61985
|
+
refreshToken: [],
|
61986
|
+
scope: (_2) => (0, import_smithy_client._json)(_2)
|
61987
|
+
})
|
61988
|
+
);
|
61989
|
+
b.m("POST").h(headers).b(body);
|
61990
|
+
return b.build();
|
61991
|
+
}, "se_CreateTokenCommand");
|
61992
|
+
var se_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (input, context) => {
|
61993
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
61994
|
+
const headers = {
|
61995
|
+
"content-type": "application/json"
|
61996
|
+
};
|
61997
|
+
b.bp("/token");
|
61998
|
+
const query = (0, import_smithy_client.map)({
|
61999
|
+
[_ai]: [, "t"]
|
62000
|
+
});
|
62001
|
+
let body;
|
62002
|
+
body = JSON.stringify(
|
62003
|
+
(0, import_smithy_client.take)(input, {
|
62004
|
+
assertion: [],
|
62005
|
+
clientId: [],
|
62006
|
+
code: [],
|
62007
|
+
codeVerifier: [],
|
62008
|
+
grantType: [],
|
62009
|
+
redirectUri: [],
|
62010
|
+
refreshToken: [],
|
62011
|
+
requestedTokenType: [],
|
62012
|
+
scope: (_2) => (0, import_smithy_client._json)(_2),
|
62013
|
+
subjectToken: [],
|
62014
|
+
subjectTokenType: []
|
62015
|
+
})
|
62016
|
+
);
|
62017
|
+
b.m("POST").h(headers).q(query).b(body);
|
62018
|
+
return b.build();
|
62019
|
+
}, "se_CreateTokenWithIAMCommand");
|
62020
|
+
var se_RegisterClientCommand = /* @__PURE__ */ __name(async (input, context) => {
|
62021
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
62022
|
+
const headers = {
|
62023
|
+
"content-type": "application/json"
|
62024
|
+
};
|
62025
|
+
b.bp("/client/register");
|
62026
|
+
let body;
|
62027
|
+
body = JSON.stringify(
|
62028
|
+
(0, import_smithy_client.take)(input, {
|
62029
|
+
clientName: [],
|
62030
|
+
clientType: [],
|
62031
|
+
entitledApplicationArn: [],
|
62032
|
+
grantTypes: (_2) => (0, import_smithy_client._json)(_2),
|
62033
|
+
issuerUrl: [],
|
62034
|
+
redirectUris: (_2) => (0, import_smithy_client._json)(_2),
|
62035
|
+
scopes: (_2) => (0, import_smithy_client._json)(_2)
|
62036
|
+
})
|
62037
|
+
);
|
62038
|
+
b.m("POST").h(headers).b(body);
|
62039
|
+
return b.build();
|
62040
|
+
}, "se_RegisterClientCommand");
|
62041
|
+
var se_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
62042
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
62043
|
+
const headers = {
|
62044
|
+
"content-type": "application/json"
|
62045
|
+
};
|
62046
|
+
b.bp("/device_authorization");
|
62047
|
+
let body;
|
62048
|
+
body = JSON.stringify(
|
62049
|
+
(0, import_smithy_client.take)(input, {
|
62050
|
+
clientId: [],
|
62051
|
+
clientSecret: [],
|
62052
|
+
startUrl: []
|
62053
|
+
})
|
62054
|
+
);
|
62055
|
+
b.m("POST").h(headers).b(body);
|
62056
|
+
return b.build();
|
62057
|
+
}, "se_StartDeviceAuthorizationCommand");
|
62058
|
+
var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
62059
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
62060
|
+
return de_CommandError(output, context);
|
62061
|
+
}
|
62062
|
+
const contents = (0, import_smithy_client.map)({
|
62063
|
+
$metadata: deserializeMetadata(output)
|
62064
|
+
});
|
62065
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
62066
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62067
|
+
accessToken: import_smithy_client.expectString,
|
62068
|
+
expiresIn: import_smithy_client.expectInt32,
|
62069
|
+
idToken: import_smithy_client.expectString,
|
62070
|
+
refreshToken: import_smithy_client.expectString,
|
62071
|
+
tokenType: import_smithy_client.expectString
|
62072
|
+
});
|
62073
|
+
Object.assign(contents, doc);
|
62074
|
+
return contents;
|
62075
|
+
}, "de_CreateTokenCommand");
|
62076
|
+
var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context) => {
|
62077
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
62078
|
+
return de_CommandError(output, context);
|
62079
|
+
}
|
62080
|
+
const contents = (0, import_smithy_client.map)({
|
62081
|
+
$metadata: deserializeMetadata(output)
|
62082
|
+
});
|
62083
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
62084
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62085
|
+
accessToken: import_smithy_client.expectString,
|
62086
|
+
expiresIn: import_smithy_client.expectInt32,
|
62087
|
+
idToken: import_smithy_client.expectString,
|
62088
|
+
issuedTokenType: import_smithy_client.expectString,
|
62089
|
+
refreshToken: import_smithy_client.expectString,
|
62090
|
+
scope: import_smithy_client._json,
|
62091
|
+
tokenType: import_smithy_client.expectString
|
62092
|
+
});
|
62093
|
+
Object.assign(contents, doc);
|
62094
|
+
return contents;
|
62095
|
+
}, "de_CreateTokenWithIAMCommand");
|
62096
|
+
var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
62097
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
62098
|
+
return de_CommandError(output, context);
|
62099
|
+
}
|
62100
|
+
const contents = (0, import_smithy_client.map)({
|
62101
|
+
$metadata: deserializeMetadata(output)
|
62102
|
+
});
|
62103
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
62104
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62105
|
+
authorizationEndpoint: import_smithy_client.expectString,
|
62106
|
+
clientId: import_smithy_client.expectString,
|
62107
|
+
clientIdIssuedAt: import_smithy_client.expectLong,
|
62108
|
+
clientSecret: import_smithy_client.expectString,
|
62109
|
+
clientSecretExpiresAt: import_smithy_client.expectLong,
|
62110
|
+
tokenEndpoint: import_smithy_client.expectString
|
62111
|
+
});
|
62112
|
+
Object.assign(contents, doc);
|
62113
|
+
return contents;
|
62114
|
+
}, "de_RegisterClientCommand");
|
62115
|
+
var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
62116
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
62117
|
+
return de_CommandError(output, context);
|
62118
|
+
}
|
62119
|
+
const contents = (0, import_smithy_client.map)({
|
62120
|
+
$metadata: deserializeMetadata(output)
|
62121
|
+
});
|
62122
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
62123
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62124
|
+
deviceCode: import_smithy_client.expectString,
|
62125
|
+
expiresIn: import_smithy_client.expectInt32,
|
62126
|
+
interval: import_smithy_client.expectInt32,
|
62127
|
+
userCode: import_smithy_client.expectString,
|
62128
|
+
verificationUri: import_smithy_client.expectString,
|
62129
|
+
verificationUriComplete: import_smithy_client.expectString
|
62130
|
+
});
|
62131
|
+
Object.assign(contents, doc);
|
62132
|
+
return contents;
|
62133
|
+
}, "de_StartDeviceAuthorizationCommand");
|
62134
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
62135
|
+
const parsedOutput = {
|
62136
|
+
...output,
|
62137
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
62138
|
+
};
|
62139
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
62140
|
+
switch (errorCode) {
|
62141
|
+
case "AccessDeniedException":
|
62142
|
+
case "com.amazonaws.ssooidc#AccessDeniedException":
|
62143
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
62144
|
+
case "AuthorizationPendingException":
|
62145
|
+
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
62146
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
62147
|
+
case "ExpiredTokenException":
|
62148
|
+
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
62149
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
62150
|
+
case "InternalServerException":
|
62151
|
+
case "com.amazonaws.ssooidc#InternalServerException":
|
62152
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
62153
|
+
case "InvalidClientException":
|
62154
|
+
case "com.amazonaws.ssooidc#InvalidClientException":
|
62155
|
+
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
62156
|
+
case "InvalidGrantException":
|
62157
|
+
case "com.amazonaws.ssooidc#InvalidGrantException":
|
62158
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
62159
|
+
case "InvalidRequestException":
|
62160
|
+
case "com.amazonaws.ssooidc#InvalidRequestException":
|
62161
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
62162
|
+
case "InvalidScopeException":
|
62163
|
+
case "com.amazonaws.ssooidc#InvalidScopeException":
|
62164
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
62165
|
+
case "SlowDownException":
|
62166
|
+
case "com.amazonaws.ssooidc#SlowDownException":
|
62167
|
+
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
62168
|
+
case "UnauthorizedClientException":
|
62169
|
+
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
62170
|
+
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
62171
|
+
case "UnsupportedGrantTypeException":
|
62172
|
+
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
62173
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
62174
|
+
case "InvalidRequestRegionException":
|
62175
|
+
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
62176
|
+
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
62177
|
+
case "InvalidClientMetadataException":
|
62178
|
+
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
62179
|
+
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
62180
|
+
case "InvalidRedirectUriException":
|
62181
|
+
case "com.amazonaws.ssooidc#InvalidRedirectUriException":
|
62182
|
+
throw await de_InvalidRedirectUriExceptionRes(parsedOutput, context);
|
62183
|
+
default:
|
62184
|
+
const parsedBody = parsedOutput.body;
|
62185
|
+
return throwDefaultError({
|
62186
|
+
output,
|
62187
|
+
parsedBody,
|
62188
|
+
errorCode
|
62189
|
+
});
|
62190
|
+
}
|
62191
|
+
}, "de_CommandError");
|
62192
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOOIDCServiceException);
|
62193
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62194
|
+
const contents = (0, import_smithy_client.map)({});
|
62195
|
+
const data = parsedOutput.body;
|
62196
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62197
|
+
error: import_smithy_client.expectString,
|
62198
|
+
error_description: import_smithy_client.expectString
|
62199
|
+
});
|
62200
|
+
Object.assign(contents, doc);
|
62201
|
+
const exception = new AccessDeniedException({
|
62202
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62203
|
+
...contents
|
62204
|
+
});
|
62205
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62206
|
+
}, "de_AccessDeniedExceptionRes");
|
62207
|
+
var de_AuthorizationPendingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62208
|
+
const contents = (0, import_smithy_client.map)({});
|
62209
|
+
const data = parsedOutput.body;
|
62210
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62211
|
+
error: import_smithy_client.expectString,
|
62212
|
+
error_description: import_smithy_client.expectString
|
62213
|
+
});
|
62214
|
+
Object.assign(contents, doc);
|
62215
|
+
const exception = new AuthorizationPendingException({
|
62216
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62217
|
+
...contents
|
62218
|
+
});
|
62219
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62220
|
+
}, "de_AuthorizationPendingExceptionRes");
|
62221
|
+
var de_ExpiredTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62222
|
+
const contents = (0, import_smithy_client.map)({});
|
62223
|
+
const data = parsedOutput.body;
|
62224
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62225
|
+
error: import_smithy_client.expectString,
|
62226
|
+
error_description: import_smithy_client.expectString
|
62227
|
+
});
|
62228
|
+
Object.assign(contents, doc);
|
62229
|
+
const exception = new ExpiredTokenException({
|
62230
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62231
|
+
...contents
|
62232
|
+
});
|
62233
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62234
|
+
}, "de_ExpiredTokenExceptionRes");
|
62235
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62236
|
+
const contents = (0, import_smithy_client.map)({});
|
62237
|
+
const data = parsedOutput.body;
|
62238
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62239
|
+
error: import_smithy_client.expectString,
|
62240
|
+
error_description: import_smithy_client.expectString
|
62241
|
+
});
|
62242
|
+
Object.assign(contents, doc);
|
62243
|
+
const exception = new InternalServerException({
|
62244
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62245
|
+
...contents
|
62246
|
+
});
|
62247
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62248
|
+
}, "de_InternalServerExceptionRes");
|
62249
|
+
var de_InvalidClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62250
|
+
const contents = (0, import_smithy_client.map)({});
|
62251
|
+
const data = parsedOutput.body;
|
62252
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62253
|
+
error: import_smithy_client.expectString,
|
62254
|
+
error_description: import_smithy_client.expectString
|
62255
|
+
});
|
62256
|
+
Object.assign(contents, doc);
|
62257
|
+
const exception = new InvalidClientException({
|
62258
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62259
|
+
...contents
|
62260
|
+
});
|
62261
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62262
|
+
}, "de_InvalidClientExceptionRes");
|
62263
|
+
var de_InvalidClientMetadataExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62264
|
+
const contents = (0, import_smithy_client.map)({});
|
62265
|
+
const data = parsedOutput.body;
|
62266
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62267
|
+
error: import_smithy_client.expectString,
|
62268
|
+
error_description: import_smithy_client.expectString
|
62269
|
+
});
|
62270
|
+
Object.assign(contents, doc);
|
62271
|
+
const exception = new InvalidClientMetadataException({
|
62272
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62273
|
+
...contents
|
62274
|
+
});
|
62275
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62276
|
+
}, "de_InvalidClientMetadataExceptionRes");
|
62277
|
+
var de_InvalidGrantExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62278
|
+
const contents = (0, import_smithy_client.map)({});
|
62279
|
+
const data = parsedOutput.body;
|
62280
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62281
|
+
error: import_smithy_client.expectString,
|
62282
|
+
error_description: import_smithy_client.expectString
|
62283
|
+
});
|
62284
|
+
Object.assign(contents, doc);
|
62285
|
+
const exception = new InvalidGrantException({
|
62286
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62287
|
+
...contents
|
62288
|
+
});
|
62289
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62290
|
+
}, "de_InvalidGrantExceptionRes");
|
62291
|
+
var de_InvalidRedirectUriExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62292
|
+
const contents = (0, import_smithy_client.map)({});
|
62293
|
+
const data = parsedOutput.body;
|
62294
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62295
|
+
error: import_smithy_client.expectString,
|
62296
|
+
error_description: import_smithy_client.expectString
|
62297
|
+
});
|
62298
|
+
Object.assign(contents, doc);
|
62299
|
+
const exception = new InvalidRedirectUriException({
|
62300
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62301
|
+
...contents
|
62302
|
+
});
|
62303
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62304
|
+
}, "de_InvalidRedirectUriExceptionRes");
|
62305
|
+
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62306
|
+
const contents = (0, import_smithy_client.map)({});
|
62307
|
+
const data = parsedOutput.body;
|
62308
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62309
|
+
error: import_smithy_client.expectString,
|
62310
|
+
error_description: import_smithy_client.expectString
|
62311
|
+
});
|
62312
|
+
Object.assign(contents, doc);
|
62313
|
+
const exception = new InvalidRequestException({
|
62314
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62315
|
+
...contents
|
62316
|
+
});
|
62317
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62318
|
+
}, "de_InvalidRequestExceptionRes");
|
62319
|
+
var de_InvalidRequestRegionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62320
|
+
const contents = (0, import_smithy_client.map)({});
|
62321
|
+
const data = parsedOutput.body;
|
62322
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62323
|
+
endpoint: import_smithy_client.expectString,
|
62324
|
+
error: import_smithy_client.expectString,
|
62325
|
+
error_description: import_smithy_client.expectString,
|
62326
|
+
region: import_smithy_client.expectString
|
62327
|
+
});
|
62328
|
+
Object.assign(contents, doc);
|
62329
|
+
const exception = new InvalidRequestRegionException({
|
62330
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62331
|
+
...contents
|
62332
|
+
});
|
62333
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62334
|
+
}, "de_InvalidRequestRegionExceptionRes");
|
62335
|
+
var de_InvalidScopeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62336
|
+
const contents = (0, import_smithy_client.map)({});
|
62337
|
+
const data = parsedOutput.body;
|
62338
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62339
|
+
error: import_smithy_client.expectString,
|
62340
|
+
error_description: import_smithy_client.expectString
|
62341
|
+
});
|
62342
|
+
Object.assign(contents, doc);
|
62343
|
+
const exception = new InvalidScopeException({
|
62344
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62345
|
+
...contents
|
62346
|
+
});
|
62347
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62348
|
+
}, "de_InvalidScopeExceptionRes");
|
62349
|
+
var de_SlowDownExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62350
|
+
const contents = (0, import_smithy_client.map)({});
|
62351
|
+
const data = parsedOutput.body;
|
62352
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62353
|
+
error: import_smithy_client.expectString,
|
62354
|
+
error_description: import_smithy_client.expectString
|
62355
|
+
});
|
62356
|
+
Object.assign(contents, doc);
|
62357
|
+
const exception = new SlowDownException({
|
62358
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62359
|
+
...contents
|
62360
|
+
});
|
62361
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62362
|
+
}, "de_SlowDownExceptionRes");
|
62363
|
+
var de_UnauthorizedClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62364
|
+
const contents = (0, import_smithy_client.map)({});
|
62365
|
+
const data = parsedOutput.body;
|
62366
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62367
|
+
error: import_smithy_client.expectString,
|
62368
|
+
error_description: import_smithy_client.expectString
|
62369
|
+
});
|
62370
|
+
Object.assign(contents, doc);
|
62371
|
+
const exception = new UnauthorizedClientException({
|
62372
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62373
|
+
...contents
|
62374
|
+
});
|
62375
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62376
|
+
}, "de_UnauthorizedClientExceptionRes");
|
62377
|
+
var de_UnsupportedGrantTypeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
62378
|
+
const contents = (0, import_smithy_client.map)({});
|
62379
|
+
const data = parsedOutput.body;
|
62380
|
+
const doc = (0, import_smithy_client.take)(data, {
|
62381
|
+
error: import_smithy_client.expectString,
|
62382
|
+
error_description: import_smithy_client.expectString
|
62383
|
+
});
|
62384
|
+
Object.assign(contents, doc);
|
62385
|
+
const exception = new UnsupportedGrantTypeException({
|
62386
|
+
$metadata: deserializeMetadata(parsedOutput),
|
62387
|
+
...contents
|
62388
|
+
});
|
62389
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
62390
|
+
}, "de_UnsupportedGrantTypeExceptionRes");
|
62391
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
62392
|
+
httpStatusCode: output.statusCode,
|
62393
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
62394
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
62395
|
+
cfId: output.headers["x-amz-cf-id"]
|
62396
|
+
}), "deserializeMetadata");
|
62397
|
+
var _ai = "aws_iam";
|
62398
|
+
var _CreateTokenCommand = class _CreateTokenCommand extends import_smithy_client.Command.classBuilder().ep({
|
62399
|
+
...commonParams
|
62400
|
+
}).m(function(Command, cs, config, o) {
|
62401
|
+
return [
|
62402
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
62403
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
62404
|
+
];
|
62405
|
+
}).s("AWSSSOOIDCService", "CreateToken", {}).n("SSOOIDCClient", "CreateTokenCommand").f(CreateTokenRequestFilterSensitiveLog, CreateTokenResponseFilterSensitiveLog).ser(se_CreateTokenCommand).de(de_CreateTokenCommand).build() {
|
62406
|
+
};
|
62407
|
+
__name(_CreateTokenCommand, "CreateTokenCommand");
|
62408
|
+
var CreateTokenCommand = _CreateTokenCommand;
|
62409
|
+
var _CreateTokenWithIAMCommand = class _CreateTokenWithIAMCommand extends import_smithy_client.Command.classBuilder().ep({
|
62410
|
+
...commonParams
|
62411
|
+
}).m(function(Command, cs, config, o) {
|
62412
|
+
return [
|
62413
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
62414
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
62415
|
+
];
|
62416
|
+
}).s("AWSSSOOIDCService", "CreateTokenWithIAM", {}).n("SSOOIDCClient", "CreateTokenWithIAMCommand").f(CreateTokenWithIAMRequestFilterSensitiveLog, CreateTokenWithIAMResponseFilterSensitiveLog).ser(se_CreateTokenWithIAMCommand).de(de_CreateTokenWithIAMCommand).build() {
|
62417
|
+
};
|
62418
|
+
__name(_CreateTokenWithIAMCommand, "CreateTokenWithIAMCommand");
|
62419
|
+
var CreateTokenWithIAMCommand = _CreateTokenWithIAMCommand;
|
62420
|
+
var _RegisterClientCommand = class _RegisterClientCommand extends import_smithy_client.Command.classBuilder().ep({
|
62421
|
+
...commonParams
|
62422
|
+
}).m(function(Command, cs, config, o) {
|
62423
|
+
return [
|
62424
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
62425
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
62426
|
+
];
|
62427
|
+
}).s("AWSSSOOIDCService", "RegisterClient", {}).n("SSOOIDCClient", "RegisterClientCommand").f(void 0, RegisterClientResponseFilterSensitiveLog).ser(se_RegisterClientCommand).de(de_RegisterClientCommand).build() {
|
62428
|
+
};
|
62429
|
+
__name(_RegisterClientCommand, "RegisterClientCommand");
|
62430
|
+
var RegisterClientCommand = _RegisterClientCommand;
|
62431
|
+
var _StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends import_smithy_client.Command.classBuilder().ep({
|
62432
|
+
...commonParams
|
62433
|
+
}).m(function(Command, cs, config, o) {
|
62434
|
+
return [
|
62435
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
62436
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
62437
|
+
];
|
62438
|
+
}).s("AWSSSOOIDCService", "StartDeviceAuthorization", {}).n("SSOOIDCClient", "StartDeviceAuthorizationCommand").f(StartDeviceAuthorizationRequestFilterSensitiveLog, void 0).ser(se_StartDeviceAuthorizationCommand).de(de_StartDeviceAuthorizationCommand).build() {
|
62439
|
+
};
|
62440
|
+
__name(_StartDeviceAuthorizationCommand, "StartDeviceAuthorizationCommand");
|
62441
|
+
var StartDeviceAuthorizationCommand = _StartDeviceAuthorizationCommand;
|
62442
|
+
var commands = {
|
62443
|
+
CreateTokenCommand,
|
62444
|
+
CreateTokenWithIAMCommand,
|
62445
|
+
RegisterClientCommand,
|
62446
|
+
StartDeviceAuthorizationCommand
|
62447
|
+
};
|
62448
|
+
var _SSOOIDC = class _SSOOIDC extends SSOOIDCClient {
|
62449
|
+
};
|
62450
|
+
__name(_SSOOIDC, "SSOOIDC");
|
62451
|
+
var SSOOIDC = _SSOOIDC;
|
62452
|
+
(0, import_smithy_client.createAggregatedClient)(commands, SSOOIDC);
|
62453
|
+
}
|
62454
|
+
});
|
62455
|
+
|
62456
|
+
// ../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
|
62457
|
+
var require_dist_cjs51 = __commonJS({
|
62458
|
+
"../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) {
|
62459
|
+
"use strict";
|
62460
|
+
var __create3 = Object.create;
|
62461
|
+
var __defProp3 = Object.defineProperty;
|
62462
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62463
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62464
|
+
var __getProtoOf3 = Object.getPrototypeOf;
|
62465
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62466
|
+
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62467
|
+
var __export2 = (target, all) => {
|
62468
|
+
for (var name in all)
|
62469
|
+
__defProp3(target, name, { get: all[name], enumerable: true });
|
62470
|
+
};
|
62471
|
+
var __copyProps3 = (to, from, except, desc) => {
|
62472
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
62473
|
+
for (let key of __getOwnPropNames3(from))
|
62474
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62475
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62476
|
+
}
|
62477
|
+
return to;
|
62478
|
+
};
|
62479
|
+
var __toESM3 = (mod, isNodeMode, target) => (target = mod != null ? __create3(__getProtoOf3(mod)) : {}, __copyProps3(
|
62480
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
62481
|
+
// file that has been converted to a CommonJS file using a Babel-
|
62482
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
62483
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
62484
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target,
|
62485
|
+
mod
|
62486
|
+
));
|
62487
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62488
|
+
var src_exports = {};
|
62489
|
+
__export2(src_exports, {
|
62490
|
+
fromSso: () => fromSso,
|
62491
|
+
fromStatic: () => fromStatic,
|
62492
|
+
nodeProvider: () => nodeProvider
|
62493
|
+
});
|
62494
|
+
module2.exports = __toCommonJS2(src_exports);
|
62495
|
+
var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
|
62496
|
+
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
62497
|
+
var ssoOidcClientsHash = {};
|
62498
|
+
var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion) => {
|
62499
|
+
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM3(require_dist_cjs50()));
|
62500
|
+
if (ssoOidcClientsHash[ssoRegion]) {
|
62501
|
+
return ssoOidcClientsHash[ssoRegion];
|
62502
|
+
}
|
62503
|
+
const ssoOidcClient = new SSOOIDCClient({ region: ssoRegion });
|
62504
|
+
ssoOidcClientsHash[ssoRegion] = ssoOidcClient;
|
62505
|
+
return ssoOidcClient;
|
62506
|
+
}, "getSsoOidcClient");
|
62507
|
+
var getNewSsoOidcToken = /* @__PURE__ */ __name(async (ssoToken, ssoRegion) => {
|
62508
|
+
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM3(require_dist_cjs50()));
|
62509
|
+
const ssoOidcClient = await getSsoOidcClient(ssoRegion);
|
62510
|
+
return ssoOidcClient.send(
|
62511
|
+
new CreateTokenCommand({
|
62512
|
+
clientId: ssoToken.clientId,
|
62513
|
+
clientSecret: ssoToken.clientSecret,
|
62514
|
+
refreshToken: ssoToken.refreshToken,
|
62515
|
+
grantType: "refresh_token"
|
62516
|
+
})
|
62517
|
+
);
|
62518
|
+
}, "getNewSsoOidcToken");
|
62519
|
+
var import_property_provider = require_dist_cjs12();
|
62520
|
+
var validateTokenExpiry = /* @__PURE__ */ __name((token) => {
|
62521
|
+
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
62522
|
+
throw new import_property_provider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
62523
|
+
}
|
62524
|
+
}, "validateTokenExpiry");
|
62525
|
+
var validateTokenKey = /* @__PURE__ */ __name((key, value, forRefresh = false) => {
|
62526
|
+
if (typeof value === "undefined") {
|
62527
|
+
throw new import_property_provider.TokenProviderError(
|
62528
|
+
`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`,
|
62529
|
+
false
|
62530
|
+
);
|
62531
|
+
}
|
62532
|
+
}, "validateTokenKey");
|
62533
|
+
var import_shared_ini_file_loader = require_dist_cjs13();
|
62534
|
+
var import_fs14 = require("fs");
|
62535
|
+
var { writeFile } = import_fs14.promises;
|
62536
|
+
var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
|
62537
|
+
const tokenFilepath = (0, import_shared_ini_file_loader.getSSOTokenFilepath)(id);
|
62538
|
+
const tokenString = JSON.stringify(ssoToken, null, 2);
|
62539
|
+
return writeFile(tokenFilepath, tokenString);
|
62540
|
+
}, "writeSSOTokenToFile");
|
62541
|
+
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
|
62542
|
+
var fromSso = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62543
|
+
var _a;
|
62544
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers", "fromSso");
|
62545
|
+
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62546
|
+
const profileName = (0, import_shared_ini_file_loader.getProfileName)(init2);
|
62547
|
+
const profile = profiles[profileName];
|
62548
|
+
if (!profile) {
|
62549
|
+
throw new import_property_provider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
62550
|
+
} else if (!profile["sso_session"]) {
|
62551
|
+
throw new import_property_provider.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
62552
|
+
}
|
62553
|
+
const ssoSessionName = profile["sso_session"];
|
62554
|
+
const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init2);
|
62555
|
+
const ssoSession = ssoSessions[ssoSessionName];
|
62556
|
+
if (!ssoSession) {
|
62557
|
+
throw new import_property_provider.TokenProviderError(
|
62558
|
+
`Sso session '${ssoSessionName}' could not be found in shared credentials file.`,
|
62559
|
+
false
|
62560
|
+
);
|
62561
|
+
}
|
62562
|
+
for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
|
62563
|
+
if (!ssoSession[ssoSessionRequiredKey]) {
|
62564
|
+
throw new import_property_provider.TokenProviderError(
|
62565
|
+
`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`,
|
62566
|
+
false
|
62567
|
+
);
|
62568
|
+
}
|
62569
|
+
}
|
62570
|
+
const ssoStartUrl = ssoSession["sso_start_url"];
|
62571
|
+
const ssoRegion = ssoSession["sso_region"];
|
62572
|
+
let ssoToken;
|
62573
|
+
try {
|
62574
|
+
ssoToken = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoSessionName);
|
62575
|
+
} catch (e2) {
|
62576
|
+
throw new import_property_provider.TokenProviderError(
|
62577
|
+
`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`,
|
62578
|
+
false
|
62579
|
+
);
|
62580
|
+
}
|
62581
|
+
validateTokenKey("accessToken", ssoToken.accessToken);
|
62582
|
+
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
62583
|
+
const { accessToken, expiresAt } = ssoToken;
|
62584
|
+
const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
|
62585
|
+
if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
|
62586
|
+
return existingToken;
|
62587
|
+
}
|
62588
|
+
if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1e3) {
|
62589
|
+
validateTokenExpiry(existingToken);
|
62590
|
+
return existingToken;
|
62591
|
+
}
|
62592
|
+
validateTokenKey("clientId", ssoToken.clientId, true);
|
62593
|
+
validateTokenKey("clientSecret", ssoToken.clientSecret, true);
|
62594
|
+
validateTokenKey("refreshToken", ssoToken.refreshToken, true);
|
62595
|
+
try {
|
62596
|
+
lastRefreshAttemptTime.setTime(Date.now());
|
62597
|
+
const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion);
|
62598
|
+
validateTokenKey("accessToken", newSsoOidcToken.accessToken);
|
62599
|
+
validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
|
62600
|
+
const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1e3);
|
62601
|
+
try {
|
62602
|
+
await writeSSOTokenToFile(ssoSessionName, {
|
62603
|
+
...ssoToken,
|
62604
|
+
accessToken: newSsoOidcToken.accessToken,
|
62605
|
+
expiresAt: newTokenExpiration.toISOString(),
|
62606
|
+
refreshToken: newSsoOidcToken.refreshToken
|
62607
|
+
});
|
62608
|
+
} catch (error2) {
|
62609
|
+
}
|
62610
|
+
return {
|
62611
|
+
token: newSsoOidcToken.accessToken,
|
62612
|
+
expiration: newTokenExpiration
|
62613
|
+
};
|
62614
|
+
} catch (error2) {
|
62615
|
+
validateTokenExpiry(existingToken);
|
62616
|
+
return existingToken;
|
62617
|
+
}
|
62618
|
+
}, "fromSso");
|
62619
|
+
var fromStatic = /* @__PURE__ */ __name(({ token, logger }) => async () => {
|
62620
|
+
logger == null ? void 0 : logger.debug("@aws-sdk/token-providers", "fromStatic");
|
62621
|
+
if (!token || !token.token) {
|
62622
|
+
throw new import_property_provider.TokenProviderError(`Please pass a valid token to fromStatic`, false);
|
62623
|
+
}
|
62624
|
+
return token;
|
62625
|
+
}, "fromStatic");
|
62626
|
+
var nodeProvider = /* @__PURE__ */ __name((init2 = {}) => (0, import_property_provider.memoize)(
|
62627
|
+
(0, import_property_provider.chain)(fromSso(init2), async () => {
|
62628
|
+
throw new import_property_provider.TokenProviderError("Could not load token from any providers", false);
|
62629
|
+
}),
|
62630
|
+
(token) => token.expiration !== void 0 && token.expiration.getTime() - Date.now() < 3e5,
|
62631
|
+
(token) => token.expiration !== void 0
|
62632
|
+
), "nodeProvider");
|
62633
|
+
}
|
62634
|
+
});
|
62635
|
+
|
62636
|
+
// ../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
|
62637
|
+
var require_dist_cjs52 = __commonJS({
|
62638
|
+
"../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) {
|
62639
|
+
"use strict";
|
62640
|
+
var __defProp3 = Object.defineProperty;
|
62641
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62642
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62643
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62644
|
+
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62645
|
+
var __esm2 = (fn, res) => function __init() {
|
62646
|
+
return fn && (res = (0, fn[__getOwnPropNames3(fn)[0]])(fn = 0)), res;
|
62647
|
+
};
|
62648
|
+
var __export2 = (target, all) => {
|
62649
|
+
for (var name in all)
|
62650
|
+
__defProp3(target, name, { get: all[name], enumerable: true });
|
62651
|
+
};
|
62652
|
+
var __copyProps3 = (to, from, except, desc) => {
|
62653
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
62654
|
+
for (let key of __getOwnPropNames3(from))
|
62655
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62656
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62657
|
+
}
|
62658
|
+
return to;
|
62659
|
+
};
|
62660
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62661
|
+
var loadSso_exports = {};
|
62662
|
+
__export2(loadSso_exports, {
|
62663
|
+
GetRoleCredentialsCommand: () => import_client_sso.GetRoleCredentialsCommand,
|
62664
|
+
SSOClient: () => import_client_sso.SSOClient
|
62665
|
+
});
|
62666
|
+
var import_client_sso;
|
62667
|
+
var init_loadSso = __esm2({
|
62668
|
+
"src/loadSso.ts"() {
|
62669
|
+
"use strict";
|
62670
|
+
import_client_sso = require_dist_cjs46();
|
62671
|
+
}
|
62672
|
+
});
|
62673
|
+
var src_exports = {};
|
62674
|
+
__export2(src_exports, {
|
62675
|
+
fromSSO: () => fromSSO,
|
62676
|
+
isSsoProfile: () => isSsoProfile,
|
62677
|
+
validateSsoProfile: () => validateSsoProfile
|
62678
|
+
});
|
62679
|
+
module2.exports = __toCommonJS2(src_exports);
|
62680
|
+
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");
|
62681
|
+
var import_token_providers = require_dist_cjs51();
|
62682
|
+
var import_property_provider = require_dist_cjs12();
|
62683
|
+
var import_shared_ini_file_loader = require_dist_cjs13();
|
62684
|
+
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
62685
|
+
var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
62686
|
+
ssoStartUrl,
|
62687
|
+
ssoSession,
|
62688
|
+
ssoAccountId,
|
62689
|
+
ssoRegion,
|
62690
|
+
ssoRoleName,
|
62691
|
+
ssoClient,
|
62692
|
+
clientConfig,
|
62693
|
+
profile
|
62694
|
+
}) => {
|
62695
|
+
let token;
|
62696
|
+
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
62697
|
+
if (ssoSession) {
|
62698
|
+
try {
|
62699
|
+
const _token = await (0, import_token_providers.fromSso)({ profile })();
|
62700
|
+
token = {
|
62701
|
+
accessToken: _token.token,
|
62702
|
+
expiresAt: new Date(_token.expiration).toISOString()
|
62703
|
+
};
|
62704
|
+
} catch (e2) {
|
62705
|
+
throw new import_property_provider.CredentialsProviderError(e2.message, SHOULD_FAIL_CREDENTIAL_CHAIN);
|
62706
|
+
}
|
62707
|
+
} else {
|
62708
|
+
try {
|
62709
|
+
token = await (0, import_shared_ini_file_loader.getSSOTokenFromFile)(ssoStartUrl);
|
62710
|
+
} catch (e2) {
|
62711
|
+
throw new import_property_provider.CredentialsProviderError(
|
62712
|
+
`The SSO session associated with this profile is invalid. ${refreshMessage}`,
|
62713
|
+
SHOULD_FAIL_CREDENTIAL_CHAIN
|
62714
|
+
);
|
62715
|
+
}
|
62716
|
+
}
|
62717
|
+
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
62718
|
+
throw new import_property_provider.CredentialsProviderError(
|
62719
|
+
`The SSO session associated with this profile has expired. ${refreshMessage}`,
|
62720
|
+
SHOULD_FAIL_CREDENTIAL_CHAIN
|
62721
|
+
);
|
62722
|
+
}
|
62723
|
+
const { accessToken } = token;
|
62724
|
+
const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
|
62725
|
+
const sso = ssoClient || new SSOClient2(
|
62726
|
+
Object.assign({}, clientConfig ?? {}, {
|
62727
|
+
region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion
|
62728
|
+
})
|
62729
|
+
);
|
62730
|
+
let ssoResp;
|
62731
|
+
try {
|
62732
|
+
ssoResp = await sso.send(
|
62733
|
+
new GetRoleCredentialsCommand2({
|
62734
|
+
accountId: ssoAccountId,
|
62735
|
+
roleName: ssoRoleName,
|
62736
|
+
accessToken
|
62737
|
+
})
|
62738
|
+
);
|
62739
|
+
} catch (e2) {
|
62740
|
+
throw import_property_provider.CredentialsProviderError.from(e2, SHOULD_FAIL_CREDENTIAL_CHAIN);
|
62741
|
+
}
|
62742
|
+
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope } = {} } = ssoResp;
|
62743
|
+
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
62744
|
+
throw new import_property_provider.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN);
|
62745
|
+
}
|
62746
|
+
return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration), credentialScope };
|
62747
|
+
}, "resolveSSOCredentials");
|
62748
|
+
var validateSsoProfile = /* @__PURE__ */ __name((profile) => {
|
62749
|
+
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
62750
|
+
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
62751
|
+
throw new import_property_provider.CredentialsProviderError(
|
62752
|
+
`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(
|
62753
|
+
", "
|
62754
|
+
)}
|
62755
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,
|
62756
|
+
false
|
62757
|
+
);
|
62758
|
+
}
|
62759
|
+
return profile;
|
62760
|
+
}, "validateSsoProfile");
|
62761
|
+
var fromSSO = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62762
|
+
var _a;
|
62763
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso", "fromSSO");
|
62764
|
+
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init2;
|
62765
|
+
const { ssoClient } = init2;
|
62766
|
+
const profileName = (0, import_shared_ini_file_loader.getProfileName)(init2);
|
62767
|
+
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
62768
|
+
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62769
|
+
const profile = profiles[profileName];
|
62770
|
+
if (!profile) {
|
62771
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} was not found.`);
|
62772
|
+
}
|
62773
|
+
if (!isSsoProfile(profile)) {
|
62774
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`);
|
62775
|
+
}
|
62776
|
+
if (profile == null ? void 0 : profile.sso_session) {
|
62777
|
+
const ssoSessions = await (0, import_shared_ini_file_loader.loadSsoSessionData)(init2);
|
62778
|
+
const session = ssoSessions[profile.sso_session];
|
62779
|
+
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
62780
|
+
if (ssoRegion && ssoRegion !== session.sso_region) {
|
62781
|
+
throw new import_property_provider.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, false);
|
62782
|
+
}
|
62783
|
+
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
62784
|
+
throw new import_property_provider.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, false);
|
62785
|
+
}
|
62786
|
+
profile.sso_region = session.sso_region;
|
62787
|
+
profile.sso_start_url = session.sso_start_url;
|
62788
|
+
}
|
62789
|
+
const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile);
|
62790
|
+
return resolveSSOCredentials({
|
62791
|
+
ssoStartUrl: sso_start_url,
|
62792
|
+
ssoSession: sso_session,
|
62793
|
+
ssoAccountId: sso_account_id,
|
62794
|
+
ssoRegion: sso_region,
|
62795
|
+
ssoRoleName: sso_role_name,
|
62796
|
+
ssoClient,
|
62797
|
+
clientConfig: init2.clientConfig,
|
62798
|
+
profile: profileName
|
62799
|
+
});
|
62800
|
+
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
62801
|
+
throw new import_property_provider.CredentialsProviderError(
|
62802
|
+
'Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"'
|
62803
|
+
);
|
62804
|
+
} else {
|
62805
|
+
return resolveSSOCredentials({
|
62806
|
+
ssoStartUrl,
|
62807
|
+
ssoSession,
|
62808
|
+
ssoAccountId,
|
62809
|
+
ssoRegion,
|
62810
|
+
ssoRoleName,
|
62811
|
+
ssoClient,
|
62812
|
+
clientConfig: init2.clientConfig,
|
62813
|
+
profile: profileName
|
62814
|
+
});
|
62815
|
+
}
|
62816
|
+
}, "fromSSO");
|
62817
|
+
}
|
62818
|
+
});
|
62819
|
+
|
62820
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.577.0/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
|
62821
|
+
var require_dist_cjs53 = __commonJS({
|
62822
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.577.0/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) {
|
62823
|
+
"use strict";
|
62824
|
+
var __defProp3 = Object.defineProperty;
|
62825
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62826
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62827
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62828
|
+
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62829
|
+
var __export2 = (target, all) => {
|
62830
|
+
for (var name in all)
|
62831
|
+
__defProp3(target, name, { get: all[name], enumerable: true });
|
62832
|
+
};
|
62833
|
+
var __copyProps3 = (to, from, except, desc) => {
|
62834
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
62835
|
+
for (let key of __getOwnPropNames3(from))
|
62836
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62837
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62838
|
+
}
|
62839
|
+
return to;
|
62840
|
+
};
|
62841
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62842
|
+
var src_exports = {};
|
62843
|
+
__export2(src_exports, {
|
62844
|
+
fromProcess: () => fromProcess
|
62845
|
+
});
|
62846
|
+
module2.exports = __toCommonJS2(src_exports);
|
62847
|
+
var import_shared_ini_file_loader = require_dist_cjs13();
|
62848
|
+
var import_property_provider = require_dist_cjs12();
|
62849
|
+
var import_child_process = require("child_process");
|
62850
|
+
var import_util5 = require("util");
|
62851
|
+
var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data) => {
|
62852
|
+
if (data.Version !== 1) {
|
62853
|
+
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
62854
|
+
}
|
62855
|
+
if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) {
|
62856
|
+
throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
|
62857
|
+
}
|
62858
|
+
if (data.Expiration) {
|
62859
|
+
const currentTime = /* @__PURE__ */ new Date();
|
62860
|
+
const expireTime = new Date(data.Expiration);
|
62861
|
+
if (expireTime < currentTime) {
|
62862
|
+
throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
|
62863
|
+
}
|
62864
|
+
}
|
62865
|
+
return {
|
62866
|
+
accessKeyId: data.AccessKeyId,
|
62867
|
+
secretAccessKey: data.SecretAccessKey,
|
62868
|
+
...data.SessionToken && { sessionToken: data.SessionToken },
|
62869
|
+
...data.Expiration && { expiration: new Date(data.Expiration) },
|
62870
|
+
...data.CredentialScope && { credentialScope: data.CredentialScope }
|
62871
|
+
};
|
62872
|
+
}, "getValidatedProcessCredentials");
|
62873
|
+
var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profiles) => {
|
62874
|
+
const profile = profiles[profileName];
|
62875
|
+
if (profiles[profileName]) {
|
62876
|
+
const credentialProcess = profile["credential_process"];
|
62877
|
+
if (credentialProcess !== void 0) {
|
62878
|
+
const execPromise = (0, import_util5.promisify)(import_child_process.exec);
|
62879
|
+
try {
|
62880
|
+
const { stdout } = await execPromise(credentialProcess);
|
62881
|
+
let data;
|
62882
|
+
try {
|
62883
|
+
data = JSON.parse(stdout.trim());
|
62884
|
+
} catch {
|
62885
|
+
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
62886
|
+
}
|
62887
|
+
return getValidatedProcessCredentials(profileName, data);
|
62888
|
+
} catch (error2) {
|
62889
|
+
throw new import_property_provider.CredentialsProviderError(error2.message);
|
62890
|
+
}
|
62891
|
+
} else {
|
62892
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`);
|
62893
|
+
}
|
62894
|
+
} else {
|
62895
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`);
|
62896
|
+
}
|
62897
|
+
}, "resolveProcessCredentials");
|
62898
|
+
var fromProcess = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62899
|
+
var _a;
|
62900
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
62901
|
+
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62902
|
+
return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init2), profiles);
|
62903
|
+
}, "fromProcess");
|
62904
|
+
}
|
62905
|
+
});
|
62906
|
+
|
62907
|
+
// ../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
|
62908
|
+
var require_fromWebToken = __commonJS({
|
62909
|
+
"../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) {
|
62910
|
+
"use strict";
|
62911
|
+
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m2, k, k2) {
|
62912
|
+
if (k2 === void 0) k2 = k;
|
62913
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
62914
|
+
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
62915
|
+
desc = { enumerable: true, get: function() {
|
62916
|
+
return m2[k];
|
62917
|
+
} };
|
62918
|
+
}
|
62919
|
+
Object.defineProperty(o, k2, desc);
|
62920
|
+
} : function(o, m2, k, k2) {
|
62921
|
+
if (k2 === void 0) k2 = k;
|
62922
|
+
o[k2] = m2[k];
|
62923
|
+
});
|
62924
|
+
var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
62925
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
62926
|
+
} : function(o, v) {
|
62927
|
+
o["default"] = v;
|
62928
|
+
});
|
62929
|
+
var __importStar3 = exports2 && exports2.__importStar || function(mod) {
|
62930
|
+
if (mod && mod.__esModule) return mod;
|
62931
|
+
var result = {};
|
62932
|
+
if (mod != null) {
|
62933
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding3(result, mod, k);
|
62934
|
+
}
|
62935
|
+
__setModuleDefault3(result, mod);
|
62936
|
+
return result;
|
62937
|
+
};
|
62938
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
62939
|
+
exports2.fromWebToken = void 0;
|
62940
|
+
var fromWebToken2 = (init2) => async () => {
|
62941
|
+
var _a;
|
62942
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromWebToken");
|
62943
|
+
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy: policy5, durationSeconds } = init2;
|
62944
|
+
let { roleAssumerWithWebIdentity } = init2;
|
62945
|
+
if (!roleAssumerWithWebIdentity) {
|
62946
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar3(require_dist_cjs57()));
|
62947
|
+
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
62948
|
+
...init2.clientConfig,
|
62949
|
+
credentialProviderLogger: init2.logger,
|
62950
|
+
parentClientConfig: init2.parentClientConfig
|
62951
|
+
}, init2.clientPlugins);
|
62952
|
+
}
|
62953
|
+
return roleAssumerWithWebIdentity({
|
62954
|
+
RoleArn: roleArn,
|
62955
|
+
RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
|
62956
|
+
WebIdentityToken: webIdentityToken,
|
62957
|
+
ProviderId: providerId,
|
62958
|
+
PolicyArns: policyArns,
|
62959
|
+
Policy: policy5,
|
62960
|
+
DurationSeconds: durationSeconds
|
62961
|
+
});
|
62962
|
+
};
|
62963
|
+
exports2.fromWebToken = fromWebToken2;
|
62964
|
+
}
|
62965
|
+
});
|
62966
|
+
|
62967
|
+
// ../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
|
62968
|
+
var require_fromTokenFile = __commonJS({
|
62969
|
+
"../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) {
|
62970
|
+
"use strict";
|
62971
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
62972
|
+
exports2.fromTokenFile = void 0;
|
62973
|
+
var property_provider_1 = require_dist_cjs12();
|
62974
|
+
var fs_1 = require("fs");
|
62975
|
+
var fromWebToken_1 = require_fromWebToken();
|
62976
|
+
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
62977
|
+
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
62978
|
+
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
62979
|
+
var fromTokenFile2 = (init2 = {}) => async () => {
|
62980
|
+
var _a;
|
62981
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromTokenFile");
|
62982
|
+
const webIdentityTokenFile = (init2 == null ? void 0 : init2.webIdentityTokenFile) ?? process.env[ENV_TOKEN_FILE];
|
62983
|
+
const roleArn = (init2 == null ? void 0 : init2.roleArn) ?? process.env[ENV_ROLE_ARN];
|
62984
|
+
const roleSessionName = (init2 == null ? void 0 : init2.roleSessionName) ?? process.env[ENV_ROLE_SESSION_NAME];
|
62985
|
+
if (!webIdentityTokenFile || !roleArn) {
|
62986
|
+
throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified");
|
62987
|
+
}
|
62988
|
+
return (0, fromWebToken_1.fromWebToken)({
|
62989
|
+
...init2,
|
62990
|
+
webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
|
62991
|
+
roleArn,
|
62992
|
+
roleSessionName
|
62993
|
+
})();
|
62994
|
+
};
|
62995
|
+
exports2.fromTokenFile = fromTokenFile2;
|
62996
|
+
}
|
62997
|
+
});
|
62998
|
+
|
62999
|
+
// ../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
|
63000
|
+
var require_dist_cjs54 = __commonJS({
|
63001
|
+
"../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) {
|
63002
|
+
"use strict";
|
63003
|
+
var __defProp3 = Object.defineProperty;
|
63004
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
63005
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
63006
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
63007
|
+
var __copyProps3 = (to, from, except, desc) => {
|
63008
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
63009
|
+
for (let key of __getOwnPropNames3(from))
|
63010
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
63011
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
63012
|
+
}
|
63013
|
+
return to;
|
63014
|
+
};
|
63015
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps3(target, mod, "default"), secondTarget && __copyProps3(secondTarget, mod, "default"));
|
63016
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
63017
|
+
var src_exports = {};
|
63018
|
+
module2.exports = __toCommonJS2(src_exports);
|
63019
|
+
__reExport(src_exports, require_fromTokenFile(), module2.exports);
|
63020
|
+
__reExport(src_exports, require_fromWebToken(), module2.exports);
|
63021
|
+
}
|
63022
|
+
});
|
63023
|
+
|
63024
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+clie_87f399509cddc3959f99697fced6a436/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
|
63025
|
+
var require_dist_cjs55 = __commonJS({
|
63026
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+clie_87f399509cddc3959f99697fced6a436/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) {
|
63027
|
+
"use strict";
|
63028
|
+
var __create3 = Object.create;
|
63029
|
+
var __defProp3 = Object.defineProperty;
|
63030
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
63031
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
63032
|
+
var __getProtoOf3 = Object.getPrototypeOf;
|
63033
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
63034
|
+
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
63035
|
+
var __export2 = (target, all) => {
|
63036
|
+
for (var name in all)
|
63037
|
+
__defProp3(target, name, { get: all[name], enumerable: true });
|
63038
|
+
};
|
63039
|
+
var __copyProps3 = (to, from, except, desc) => {
|
63040
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
63041
|
+
for (let key of __getOwnPropNames3(from))
|
63042
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
63043
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
63044
|
+
}
|
63045
|
+
return to;
|
63046
|
+
};
|
63047
|
+
var __toESM3 = (mod, isNodeMode, target) => (target = mod != null ? __create3(__getProtoOf3(mod)) : {}, __copyProps3(
|
63048
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
63049
|
+
// file that has been converted to a CommonJS file using a Babel-
|
63050
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
63051
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
63052
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target,
|
63053
|
+
mod
|
63054
|
+
));
|
63055
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
63056
|
+
var src_exports = {};
|
63057
|
+
__export2(src_exports, {
|
63058
|
+
fromIni: () => fromIni
|
63059
|
+
});
|
63060
|
+
module2.exports = __toCommonJS2(src_exports);
|
63061
|
+
var import_shared_ini_file_loader = require_dist_cjs13();
|
63062
|
+
var import_property_provider = require_dist_cjs12();
|
63063
|
+
var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName) => {
|
63064
|
+
const sourceProvidersMap = {
|
63065
|
+
EcsContainer: (options) => Promise.resolve().then(() => __toESM3(require_dist_cjs39())).then(({ fromContainerMetadata }) => fromContainerMetadata(options)),
|
63066
|
+
Ec2InstanceMetadata: (options) => Promise.resolve().then(() => __toESM3(require_dist_cjs39())).then(({ fromInstanceMetadata }) => fromInstanceMetadata(options)),
|
63067
|
+
Environment: (options) => Promise.resolve().then(() => __toESM3(require_dist_cjs38())).then(({ fromEnv }) => fromEnv(options))
|
63068
|
+
};
|
63069
|
+
if (credentialSource in sourceProvidersMap) {
|
63070
|
+
return sourceProvidersMap[credentialSource];
|
63071
|
+
} else {
|
63072
|
+
throw new import_property_provider.CredentialsProviderError(
|
63073
|
+
`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`
|
63074
|
+
);
|
63075
|
+
}
|
63076
|
+
}, "resolveCredentialSource");
|
63077
|
+
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");
|
63078
|
+
var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name((arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined", "isAssumeRoleWithSourceProfile");
|
63079
|
+
var isAssumeRoleWithProviderProfile = /* @__PURE__ */ __name((arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined", "isAssumeRoleWithProviderProfile");
|
63080
|
+
var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
|
63081
|
+
var _a;
|
63082
|
+
(_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)");
|
63083
|
+
const data = profiles[profileName];
|
63084
|
+
if (!options.roleAssumer) {
|
63085
|
+
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM3(require_dist_cjs57()));
|
63086
|
+
options.roleAssumer = getDefaultRoleAssumer(
|
63087
|
+
{
|
63088
|
+
...options.clientConfig,
|
63089
|
+
credentialProviderLogger: options.logger,
|
63090
|
+
parentClientConfig: options == null ? void 0 : options.parentClientConfig
|
63091
|
+
},
|
63092
|
+
options.clientPlugins
|
63093
|
+
);
|
63094
|
+
}
|
63095
|
+
const { source_profile } = data;
|
63096
|
+
if (source_profile && source_profile in visitedProfiles) {
|
63097
|
+
throw new import_property_provider.CredentialsProviderError(
|
63098
|
+
`Detected a cycle attempting to resolve credentials for profile ${(0, import_shared_ini_file_loader.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "),
|
63099
|
+
false
|
63100
|
+
);
|
63101
|
+
}
|
63102
|
+
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
63103
|
+
...visitedProfiles,
|
63104
|
+
[source_profile]: true
|
63105
|
+
}) : (await resolveCredentialSource(data.credential_source, profileName)(options))();
|
63106
|
+
const params = {
|
63107
|
+
RoleArn: data.role_arn,
|
63108
|
+
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|
63109
|
+
ExternalId: data.external_id,
|
63110
|
+
DurationSeconds: parseInt(data.duration_seconds || "3600", 10)
|
63111
|
+
};
|
63112
|
+
const { mfa_serial } = data;
|
63113
|
+
if (mfa_serial) {
|
63114
|
+
if (!options.mfaCodeProvider) {
|
63115
|
+
throw new import_property_provider.CredentialsProviderError(
|
63116
|
+
`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`,
|
63117
|
+
false
|
63118
|
+
);
|
63119
|
+
}
|
63120
|
+
params.SerialNumber = mfa_serial;
|
63121
|
+
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
63122
|
+
}
|
63123
|
+
const sourceCreds = await sourceCredsProvider;
|
63124
|
+
return options.roleAssumer(sourceCreds, params);
|
63125
|
+
}, "resolveAssumeRoleCredentials");
|
63126
|
+
var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
|
63127
|
+
var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM3(require_dist_cjs53())).then(
|
63128
|
+
({ fromProcess }) => fromProcess({
|
63129
|
+
...options,
|
63130
|
+
profile
|
63131
|
+
})()
|
63132
|
+
), "resolveProcessCredentials");
|
63133
|
+
var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, options = {}) => {
|
63134
|
+
const { fromSSO } = await Promise.resolve().then(() => __toESM3(require_dist_cjs52()));
|
63135
|
+
return fromSSO({
|
63136
|
+
profile,
|
63137
|
+
logger: options.logger
|
63138
|
+
})();
|
63139
|
+
}, "resolveSsoCredentials");
|
63140
|
+
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");
|
63141
|
+
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");
|
63142
|
+
var resolveStaticCredentials = /* @__PURE__ */ __name((profile, options) => {
|
63143
|
+
var _a;
|
63144
|
+
(_a = options == null ? void 0 : options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveStaticCredentials");
|
63145
|
+
return Promise.resolve({
|
63146
|
+
accessKeyId: profile.aws_access_key_id,
|
63147
|
+
secretAccessKey: profile.aws_secret_access_key,
|
63148
|
+
sessionToken: profile.aws_session_token,
|
63149
|
+
credentialScope: profile.aws_credential_scope
|
63150
|
+
});
|
63151
|
+
}, "resolveStaticCredentials");
|
63152
|
+
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");
|
63153
|
+
var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM3(require_dist_cjs54())).then(
|
63154
|
+
({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({
|
63155
|
+
webIdentityTokenFile: profile.web_identity_token_file,
|
63156
|
+
roleArn: profile.role_arn,
|
63157
|
+
roleSessionName: profile.role_session_name,
|
63158
|
+
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
63159
|
+
logger: options.logger,
|
63160
|
+
parentClientConfig: options.parentClientConfig
|
63161
|
+
})()
|
63162
|
+
), "resolveWebIdentityCredentials");
|
63163
|
+
var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
|
63164
|
+
const data = profiles[profileName];
|
63165
|
+
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
63166
|
+
return resolveStaticCredentials(data, options);
|
63167
|
+
}
|
63168
|
+
if (isAssumeRoleProfile(data)) {
|
63169
|
+
return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
|
63170
|
+
}
|
63171
|
+
if (isStaticCredsProfile(data)) {
|
63172
|
+
return resolveStaticCredentials(data, options);
|
63173
|
+
}
|
63174
|
+
if (isWebIdentityProfile(data)) {
|
63175
|
+
return resolveWebIdentityCredentials(data, options);
|
63176
|
+
}
|
63177
|
+
if (isProcessProfile(data)) {
|
63178
|
+
return resolveProcessCredentials(options, profileName);
|
63179
|
+
}
|
63180
|
+
if (isSsoProfile(data)) {
|
63181
|
+
return await resolveSsoCredentials(profileName, options);
|
63182
|
+
}
|
63183
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);
|
63184
|
+
}, "resolveProfileData");
|
63185
|
+
var fromIni = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
63186
|
+
var _a;
|
63187
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "fromIni");
|
63188
|
+
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
63189
|
+
return resolveProfileData((0, import_shared_ini_file_loader.getProfileName)(init2), profiles, init2);
|
63190
|
+
}, "fromIni");
|
63191
|
+
}
|
63192
|
+
});
|
63193
|
+
|
63194
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+cli_f238f488790070be68b51670969dc6f4/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
|
63195
|
+
var require_dist_cjs56 = __commonJS({
|
63196
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+cli_f238f488790070be68b51670969dc6f4/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) {
|
63197
|
+
"use strict";
|
63198
|
+
var __create3 = Object.create;
|
63199
|
+
var __defProp3 = Object.defineProperty;
|
63200
|
+
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
63201
|
+
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
63202
|
+
var __getProtoOf3 = Object.getPrototypeOf;
|
63203
|
+
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
63204
|
+
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
63205
|
+
var __export2 = (target, all) => {
|
63206
|
+
for (var name in all)
|
63207
|
+
__defProp3(target, name, { get: all[name], enumerable: true });
|
63208
|
+
};
|
63209
|
+
var __copyProps3 = (to, from, except, desc) => {
|
63210
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
63211
|
+
for (let key of __getOwnPropNames3(from))
|
63212
|
+
if (!__hasOwnProp3.call(to, key) && key !== except)
|
63213
|
+
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
63214
|
+
}
|
63215
|
+
return to;
|
63216
|
+
};
|
63217
|
+
var __toESM3 = (mod, isNodeMode, target) => (target = mod != null ? __create3(__getProtoOf3(mod)) : {}, __copyProps3(
|
63218
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
63219
|
+
// file that has been converted to a CommonJS file using a Babel-
|
63220
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
63221
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
63222
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target,
|
63223
|
+
mod
|
63224
|
+
));
|
63225
|
+
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
63226
|
+
var src_exports = {};
|
63227
|
+
__export2(src_exports, {
|
63228
|
+
credentialsTreatedAsExpired: () => credentialsTreatedAsExpired,
|
63229
|
+
credentialsWillNeedRefresh: () => credentialsWillNeedRefresh,
|
63230
|
+
defaultProvider: () => defaultProvider
|
63231
|
+
});
|
63232
|
+
module2.exports = __toCommonJS2(src_exports);
|
63233
|
+
var import_credential_provider_env = require_dist_cjs38();
|
63234
|
+
var import_shared_ini_file_loader = require_dist_cjs13();
|
63235
|
+
var import_property_provider = require_dist_cjs12();
|
63236
|
+
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
63237
|
+
var remoteProvider = /* @__PURE__ */ __name(async (init2) => {
|
63238
|
+
var _a, _b;
|
63239
|
+
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await Promise.resolve().then(() => __toESM3(require_dist_cjs39()));
|
63240
|
+
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
63241
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromHttp/fromContainerMetadata");
|
63242
|
+
const { fromHttp } = await Promise.resolve().then(() => __toESM3(require_dist_cjs40()));
|
63243
|
+
return (0, import_property_provider.chain)(fromHttp(init2), fromContainerMetadata(init2));
|
63244
|
+
}
|
63245
|
+
if (process.env[ENV_IMDS_DISABLED]) {
|
63246
|
+
return async () => {
|
63247
|
+
throw new import_property_provider.CredentialsProviderError("EC2 Instance Metadata Service access disabled");
|
63248
|
+
};
|
63249
|
+
}
|
63250
|
+
(_b = init2.logger) == null ? void 0 : _b.debug("@aws-sdk/credential-provider-node", "remoteProvider::fromInstanceMetadata");
|
63251
|
+
return fromInstanceMetadata(init2);
|
63252
|
+
}, "remoteProvider");
|
63253
|
+
var defaultProvider = /* @__PURE__ */ __name((init2 = {}) => (0, import_property_provider.memoize)(
|
63254
|
+
(0, import_property_provider.chain)(
|
63255
|
+
...init2.profile || process.env[import_shared_ini_file_loader.ENV_PROFILE] ? [] : [
|
63256
|
+
async () => {
|
63257
|
+
var _a;
|
63258
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv");
|
63259
|
+
return (0, import_credential_provider_env.fromEnv)(init2)();
|
63260
|
+
}
|
63261
|
+
],
|
63262
|
+
async () => {
|
63263
|
+
var _a;
|
63264
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromSSO");
|
63265
|
+
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init2;
|
63266
|
+
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
63267
|
+
throw new import_property_provider.CredentialsProviderError(
|
63268
|
+
"Skipping SSO provider in default chain (inputs do not include SSO fields)."
|
63269
|
+
);
|
63270
|
+
}
|
63271
|
+
const { fromSSO } = await Promise.resolve().then(() => __toESM3(require_dist_cjs52()));
|
63272
|
+
return fromSSO(init2)();
|
63273
|
+
},
|
63274
|
+
async () => {
|
63275
|
+
var _a;
|
63276
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromIni");
|
63277
|
+
const { fromIni } = await Promise.resolve().then(() => __toESM3(require_dist_cjs55()));
|
63278
|
+
return fromIni(init2)();
|
63279
|
+
},
|
63280
|
+
async () => {
|
63281
|
+
var _a;
|
63282
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromProcess");
|
63283
|
+
const { fromProcess } = await Promise.resolve().then(() => __toESM3(require_dist_cjs53()));
|
63284
|
+
return fromProcess(init2)();
|
63285
|
+
},
|
63286
|
+
async () => {
|
63287
|
+
var _a;
|
63288
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromTokenFile");
|
63289
|
+
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM3(require_dist_cjs54()));
|
63290
|
+
return fromTokenFile2(init2)();
|
63291
|
+
},
|
63292
|
+
async () => {
|
63293
|
+
var _a;
|
63294
|
+
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::remoteProvider");
|
63295
|
+
return (await remoteProvider(init2))();
|
63296
|
+
},
|
63297
|
+
async () => {
|
63298
|
+
throw new import_property_provider.CredentialsProviderError("Could not load credentials from any providers", false);
|
63299
|
+
}
|
63300
|
+
),
|
63301
|
+
credentialsTreatedAsExpired,
|
63302
|
+
credentialsWillNeedRefresh
|
63303
|
+
), "defaultProvider");
|
63304
|
+
var credentialsWillNeedRefresh = /* @__PURE__ */ __name((credentials2) => (credentials2 == null ? void 0 : credentials2.expiration) !== void 0, "credentialsWillNeedRefresh");
|
63305
|
+
var credentialsTreatedAsExpired = /* @__PURE__ */ __name((credentials2) => (credentials2 == null ? void 0 : credentials2.expiration) !== void 0 && credentials2.expiration.getTime() - Date.now() < 3e5, "credentialsTreatedAsExpired");
|
63306
|
+
}
|
63307
|
+
});
|
63308
|
+
|
63309
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
|
63310
|
+
var require_ruleset4 = __commonJS({
|
63311
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) {
|
63312
|
+
"use strict";
|
63313
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
63314
|
+
exports2.ruleSet = void 0;
|
63315
|
+
var F2 = "required";
|
63316
|
+
var G = "type";
|
63317
|
+
var H = "fn";
|
63318
|
+
var I = "argv";
|
63319
|
+
var J = "ref";
|
63320
|
+
var a = false;
|
63321
|
+
var b = true;
|
63322
|
+
var c = "booleanEquals";
|
63323
|
+
var d = "stringEquals";
|
63324
|
+
var e2 = "sigv4";
|
63325
|
+
var f3 = "sts";
|
63326
|
+
var g = "us-east-1";
|
63327
|
+
var h2 = "endpoint";
|
63328
|
+
var i2 = "https://sts.{Region}.{PartitionResult#dnsSuffix}";
|
63329
|
+
var j = "tree";
|
63330
|
+
var k = "error";
|
63331
|
+
var l = "getAttr";
|
63332
|
+
var m2 = { [F2]: false, [G]: "String" };
|
63333
|
+
var n = { [F2]: true, "default": false, [G]: "Boolean" };
|
63334
|
+
var o = { [J]: "Endpoint" };
|
63335
|
+
var p = { [H]: "isSet", [I]: [{ [J]: "Region" }] };
|
63336
|
+
var q = { [J]: "Region" };
|
63337
|
+
var r2 = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" };
|
63338
|
+
var s2 = { [J]: "UseFIPS" };
|
63339
|
+
var t2 = { [J]: "UseDualStack" };
|
63340
|
+
var u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e2, "signingName": f3, "signingRegion": g }] }, "headers": {} };
|
63341
|
+
var v = {};
|
63342
|
+
var w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h2]: u, [G]: h2 };
|
63343
|
+
var x2 = { [H]: c, [I]: [s2, true] };
|
63344
|
+
var y = { [H]: c, [I]: [t2, true] };
|
63345
|
+
var z2 = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] };
|
63346
|
+
var A2 = { [J]: "PartitionResult" };
|
63347
|
+
var B = { [H]: c, [I]: [true, { [H]: l, [I]: [A2, "supportsDualStack"] }] };
|
63348
|
+
var C = [{ [H]: "isSet", [I]: [o] }];
|
63349
|
+
var D = [x2];
|
63350
|
+
var E = [y];
|
63351
|
+
var _data = { version: "1.0", parameters: { Region: m2, UseDualStack: n, UseFIPS: n, Endpoint: m2, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r2, { [H]: c, [I]: [s2, a] }, { [H]: c, [I]: [t2, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h2 }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h2 }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h2 }, { endpoint: { url: i2, properties: { authSchemes: [{ name: e2, signingName: f3, signingRegion: "{Region}" }] }, headers: v }, [G]: h2 }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h2 }], [G]: j }, { conditions: [p], rules: [{ conditions: [r2], rules: [{ conditions: [x2, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z2] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z2, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A2, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h2 }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h2 }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i2, properties: v, headers: v }, [G]: h2 }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
63352
|
+
exports2.ruleSet = _data;
|
63353
|
+
}
|
63354
|
+
});
|
63355
|
+
|
63356
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
|
63357
|
+
var require_endpointResolver4 = __commonJS({
|
63358
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
63359
|
+
"use strict";
|
63360
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
63361
|
+
exports2.defaultEndpointResolver = void 0;
|
63362
|
+
var util_endpoints_1 = require_dist_cjs7();
|
63363
|
+
var util_endpoints_2 = require_dist_cjs6();
|
63364
|
+
var ruleset_1 = require_ruleset4();
|
63365
|
+
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
63366
|
+
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
63367
|
+
endpointParams,
|
63368
|
+
logger: context.logger
|
63369
|
+
});
|
63370
|
+
};
|
63371
|
+
exports2.defaultEndpointResolver = defaultEndpointResolver;
|
63372
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
63373
|
+
}
|
63374
|
+
});
|
63375
|
+
|
63376
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
|
63377
|
+
var require_runtimeConfig_shared4 = __commonJS({
|
63378
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
63379
|
+
"use strict";
|
63380
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
63381
|
+
exports2.getRuntimeConfig = void 0;
|
63382
|
+
var core_1 = require_dist_cjs37();
|
63383
|
+
var core_2 = require_dist_cjs34();
|
63384
|
+
var smithy_client_1 = require_dist_cjs32();
|
63385
|
+
var url_parser_1 = require_dist_cjs16();
|
63386
|
+
var util_base64_1 = require_dist_cjs25();
|
63387
|
+
var util_utf8_1 = require_dist_cjs24();
|
63388
|
+
var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4();
|
63389
|
+
var endpointResolver_1 = require_endpointResolver4();
|
63390
|
+
var getRuntimeConfig = (config) => {
|
63391
|
+
return {
|
63392
|
+
apiVersion: "2011-06-15",
|
63393
|
+
base64Decoder: (config == null ? void 0 : config.base64Decoder) ?? util_base64_1.fromBase64,
|
63394
|
+
base64Encoder: (config == null ? void 0 : config.base64Encoder) ?? util_base64_1.toBase64,
|
63395
|
+
disableHostPrefix: (config == null ? void 0 : config.disableHostPrefix) ?? false,
|
63396
|
+
endpointProvider: (config == null ? void 0 : config.endpointProvider) ?? endpointResolver_1.defaultEndpointResolver,
|
63397
|
+
extensions: (config == null ? void 0 : config.extensions) ?? [],
|
63398
|
+
httpAuthSchemeProvider: (config == null ? void 0 : config.httpAuthSchemeProvider) ?? httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeProvider,
|
63399
|
+
httpAuthSchemes: (config == null ? void 0 : config.httpAuthSchemes) ?? [
|
63400
|
+
{
|
63401
|
+
schemeId: "aws.auth#sigv4",
|
63402
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
63403
|
+
signer: new core_1.AwsSdkSigV4Signer()
|
63404
|
+
},
|
63405
|
+
{
|
63406
|
+
schemeId: "smithy.api#noAuth",
|
63407
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
63408
|
+
signer: new core_2.NoAuthSigner()
|
63409
|
+
}
|
63410
|
+
],
|
63411
|
+
logger: (config == null ? void 0 : config.logger) ?? new smithy_client_1.NoOpLogger(),
|
63412
|
+
serviceId: (config == null ? void 0 : config.serviceId) ?? "STS",
|
63413
|
+
urlParser: (config == null ? void 0 : config.urlParser) ?? url_parser_1.parseUrl,
|
63414
|
+
utf8Decoder: (config == null ? void 0 : config.utf8Decoder) ?? util_utf8_1.fromUtf8,
|
63415
|
+
utf8Encoder: (config == null ? void 0 : config.utf8Encoder) ?? util_utf8_1.toUtf8
|
63416
|
+
};
|
63417
|
+
};
|
63418
|
+
exports2.getRuntimeConfig = getRuntimeConfig;
|
63419
|
+
}
|
63420
|
+
});
|
63421
|
+
|
63422
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
|
63423
|
+
var require_runtimeConfig4 = __commonJS({
|
63424
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
|
63425
|
+
"use strict";
|
63426
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
63427
|
+
exports2.getRuntimeConfig = void 0;
|
63428
|
+
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
63429
|
+
var package_json_1 = tslib_1.__importDefault(require_package5());
|
63430
|
+
var core_1 = require_dist_cjs37();
|
63431
|
+
var credential_provider_node_1 = require_dist_cjs56();
|
63432
|
+
var util_user_agent_node_1 = require_dist_cjs41();
|
63433
|
+
var config_resolver_1 = require_dist_cjs11();
|
63434
|
+
var core_2 = require_dist_cjs34();
|
63435
|
+
var hash_node_1 = require_dist_cjs42();
|
63436
|
+
var middleware_retry_1 = require_dist_cjs33();
|
63437
|
+
var node_config_provider_1 = require_dist_cjs14();
|
63438
|
+
var node_http_handler_1 = require_dist_cjs28();
|
63439
|
+
var util_body_length_node_1 = require_dist_cjs43();
|
63440
|
+
var util_retry_1 = require_dist_cjs20();
|
63441
|
+
var runtimeConfig_shared_1 = require_runtimeConfig_shared4();
|
63442
|
+
var smithy_client_1 = require_dist_cjs32();
|
63443
|
+
var util_defaults_mode_node_1 = require_dist_cjs44();
|
63444
|
+
var smithy_client_2 = require_dist_cjs32();
|
61279
63445
|
var getRuntimeConfig = (config) => {
|
61280
63446
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
61281
63447
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
@@ -61419,7 +63585,7 @@ var require_STSClient = __commonJS({
|
|
61419
63585
|
} });
|
61420
63586
|
var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider4();
|
61421
63587
|
var EndpointParameters_1 = require_EndpointParameters();
|
61422
|
-
var runtimeConfig_1 =
|
63588
|
+
var runtimeConfig_1 = require_runtimeConfig4();
|
61423
63589
|
var runtimeExtensions_1 = require_runtimeExtensions();
|
61424
63590
|
var STSClient2 = class extends smithy_client_1.Client {
|
61425
63591
|
constructor(...[configuration]) {
|
@@ -61463,7 +63629,7 @@ var require_STSClient = __commonJS({
|
|
61463
63629
|
});
|
61464
63630
|
|
61465
63631
|
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js
|
61466
|
-
var
|
63632
|
+
var require_dist_cjs57 = __commonJS({
|
61467
63633
|
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) {
|
61468
63634
|
"use strict";
|
61469
63635
|
var __defProp3 = Object.defineProperty;
|
@@ -62818,212 +64984,8 @@ var require_dist_cjs50 = __commonJS({
|
|
62818
64984
|
}
|
62819
64985
|
});
|
62820
64986
|
|
62821
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.577.0/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
|
62822
|
-
var require_dist_cjs51 = __commonJS({
|
62823
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.577.0/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2, module2) {
|
62824
|
-
"use strict";
|
62825
|
-
var __defProp3 = Object.defineProperty;
|
62826
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
62827
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
62828
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
62829
|
-
var __name = (target, value) => __defProp3(target, "name", { value, configurable: true });
|
62830
|
-
var __export2 = (target, all) => {
|
62831
|
-
for (var name in all)
|
62832
|
-
__defProp3(target, name, { get: all[name], enumerable: true });
|
62833
|
-
};
|
62834
|
-
var __copyProps3 = (to, from, except, desc) => {
|
62835
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
62836
|
-
for (let key of __getOwnPropNames3(from))
|
62837
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
62838
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
62839
|
-
}
|
62840
|
-
return to;
|
62841
|
-
};
|
62842
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
62843
|
-
var src_exports = {};
|
62844
|
-
__export2(src_exports, {
|
62845
|
-
fromProcess: () => fromProcess
|
62846
|
-
});
|
62847
|
-
module2.exports = __toCommonJS2(src_exports);
|
62848
|
-
var import_shared_ini_file_loader = require_dist_cjs13();
|
62849
|
-
var import_property_provider = require_dist_cjs12();
|
62850
|
-
var import_child_process = require("child_process");
|
62851
|
-
var import_util5 = require("util");
|
62852
|
-
var getValidatedProcessCredentials = /* @__PURE__ */ __name((profileName, data) => {
|
62853
|
-
if (data.Version !== 1) {
|
62854
|
-
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
62855
|
-
}
|
62856
|
-
if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) {
|
62857
|
-
throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
|
62858
|
-
}
|
62859
|
-
if (data.Expiration) {
|
62860
|
-
const currentTime = /* @__PURE__ */ new Date();
|
62861
|
-
const expireTime = new Date(data.Expiration);
|
62862
|
-
if (expireTime < currentTime) {
|
62863
|
-
throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
|
62864
|
-
}
|
62865
|
-
}
|
62866
|
-
return {
|
62867
|
-
accessKeyId: data.AccessKeyId,
|
62868
|
-
secretAccessKey: data.SecretAccessKey,
|
62869
|
-
...data.SessionToken && { sessionToken: data.SessionToken },
|
62870
|
-
...data.Expiration && { expiration: new Date(data.Expiration) },
|
62871
|
-
...data.CredentialScope && { credentialScope: data.CredentialScope }
|
62872
|
-
};
|
62873
|
-
}, "getValidatedProcessCredentials");
|
62874
|
-
var resolveProcessCredentials = /* @__PURE__ */ __name(async (profileName, profiles) => {
|
62875
|
-
const profile = profiles[profileName];
|
62876
|
-
if (profiles[profileName]) {
|
62877
|
-
const credentialProcess = profile["credential_process"];
|
62878
|
-
if (credentialProcess !== void 0) {
|
62879
|
-
const execPromise = (0, import_util5.promisify)(import_child_process.exec);
|
62880
|
-
try {
|
62881
|
-
const { stdout } = await execPromise(credentialProcess);
|
62882
|
-
let data;
|
62883
|
-
try {
|
62884
|
-
data = JSON.parse(stdout.trim());
|
62885
|
-
} catch {
|
62886
|
-
throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
|
62887
|
-
}
|
62888
|
-
return getValidatedProcessCredentials(profileName, data);
|
62889
|
-
} catch (error2) {
|
62890
|
-
throw new import_property_provider.CredentialsProviderError(error2.message);
|
62891
|
-
}
|
62892
|
-
} else {
|
62893
|
-
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`);
|
62894
|
-
}
|
62895
|
-
} else {
|
62896
|
-
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`);
|
62897
|
-
}
|
62898
|
-
}, "resolveProcessCredentials");
|
62899
|
-
var fromProcess = /* @__PURE__ */ __name((init2 = {}) => async () => {
|
62900
|
-
var _a;
|
62901
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process", "fromProcess");
|
62902
|
-
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init2);
|
62903
|
-
return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init2), profiles);
|
62904
|
-
}, "fromProcess");
|
62905
|
-
}
|
62906
|
-
});
|
62907
|
-
|
62908
|
-
// ../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
|
62909
|
-
var require_fromWebToken = __commonJS({
|
62910
|
-
"../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) {
|
62911
|
-
"use strict";
|
62912
|
-
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m2, k, k2) {
|
62913
|
-
if (k2 === void 0) k2 = k;
|
62914
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
62915
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
62916
|
-
desc = { enumerable: true, get: function() {
|
62917
|
-
return m2[k];
|
62918
|
-
} };
|
62919
|
-
}
|
62920
|
-
Object.defineProperty(o, k2, desc);
|
62921
|
-
} : function(o, m2, k, k2) {
|
62922
|
-
if (k2 === void 0) k2 = k;
|
62923
|
-
o[k2] = m2[k];
|
62924
|
-
});
|
62925
|
-
var __setModuleDefault3 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
62926
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
62927
|
-
} : function(o, v) {
|
62928
|
-
o["default"] = v;
|
62929
|
-
});
|
62930
|
-
var __importStar3 = exports2 && exports2.__importStar || function(mod) {
|
62931
|
-
if (mod && mod.__esModule) return mod;
|
62932
|
-
var result = {};
|
62933
|
-
if (mod != null) {
|
62934
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding3(result, mod, k);
|
62935
|
-
}
|
62936
|
-
__setModuleDefault3(result, mod);
|
62937
|
-
return result;
|
62938
|
-
};
|
62939
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
62940
|
-
exports2.fromWebToken = void 0;
|
62941
|
-
var fromWebToken2 = (init2) => async () => {
|
62942
|
-
var _a;
|
62943
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromWebToken");
|
62944
|
-
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy: policy5, durationSeconds } = init2;
|
62945
|
-
let { roleAssumerWithWebIdentity } = init2;
|
62946
|
-
if (!roleAssumerWithWebIdentity) {
|
62947
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar3(require_dist_cjs50()));
|
62948
|
-
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
62949
|
-
...init2.clientConfig,
|
62950
|
-
credentialProviderLogger: init2.logger,
|
62951
|
-
parentClientConfig: init2.parentClientConfig
|
62952
|
-
}, init2.clientPlugins);
|
62953
|
-
}
|
62954
|
-
return roleAssumerWithWebIdentity({
|
62955
|
-
RoleArn: roleArn,
|
62956
|
-
RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
|
62957
|
-
WebIdentityToken: webIdentityToken,
|
62958
|
-
ProviderId: providerId,
|
62959
|
-
PolicyArns: policyArns,
|
62960
|
-
Policy: policy5,
|
62961
|
-
DurationSeconds: durationSeconds
|
62962
|
-
});
|
62963
|
-
};
|
62964
|
-
exports2.fromWebToken = fromWebToken2;
|
62965
|
-
}
|
62966
|
-
});
|
62967
|
-
|
62968
|
-
// ../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
|
62969
|
-
var require_fromTokenFile = __commonJS({
|
62970
|
-
"../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) {
|
62971
|
-
"use strict";
|
62972
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
62973
|
-
exports2.fromTokenFile = void 0;
|
62974
|
-
var property_provider_1 = require_dist_cjs12();
|
62975
|
-
var fs_1 = require("fs");
|
62976
|
-
var fromWebToken_1 = require_fromWebToken();
|
62977
|
-
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
62978
|
-
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
62979
|
-
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
62980
|
-
var fromTokenFile2 = (init2 = {}) => async () => {
|
62981
|
-
var _a;
|
62982
|
-
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-web-identity", "fromTokenFile");
|
62983
|
-
const webIdentityTokenFile = (init2 == null ? void 0 : init2.webIdentityTokenFile) ?? process.env[ENV_TOKEN_FILE];
|
62984
|
-
const roleArn = (init2 == null ? void 0 : init2.roleArn) ?? process.env[ENV_ROLE_ARN];
|
62985
|
-
const roleSessionName = (init2 == null ? void 0 : init2.roleSessionName) ?? process.env[ENV_ROLE_SESSION_NAME];
|
62986
|
-
if (!webIdentityTokenFile || !roleArn) {
|
62987
|
-
throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified");
|
62988
|
-
}
|
62989
|
-
return (0, fromWebToken_1.fromWebToken)({
|
62990
|
-
...init2,
|
62991
|
-
webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
|
62992
|
-
roleArn,
|
62993
|
-
roleSessionName
|
62994
|
-
})();
|
62995
|
-
};
|
62996
|
-
exports2.fromTokenFile = fromTokenFile2;
|
62997
|
-
}
|
62998
|
-
});
|
62999
|
-
|
63000
|
-
// ../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
|
63001
|
-
var require_dist_cjs52 = __commonJS({
|
63002
|
-
"../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) {
|
63003
|
-
"use strict";
|
63004
|
-
var __defProp3 = Object.defineProperty;
|
63005
|
-
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
63006
|
-
var __getOwnPropNames3 = Object.getOwnPropertyNames;
|
63007
|
-
var __hasOwnProp3 = Object.prototype.hasOwnProperty;
|
63008
|
-
var __copyProps3 = (to, from, except, desc) => {
|
63009
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
63010
|
-
for (let key of __getOwnPropNames3(from))
|
63011
|
-
if (!__hasOwnProp3.call(to, key) && key !== except)
|
63012
|
-
__defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc3(from, key)) || desc.enumerable });
|
63013
|
-
}
|
63014
|
-
return to;
|
63015
|
-
};
|
63016
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps3(target, mod, "default"), secondTarget && __copyProps3(secondTarget, mod, "default"));
|
63017
|
-
var __toCommonJS2 = (mod) => __copyProps3(__defProp3({}, "__esModule", { value: true }), mod);
|
63018
|
-
var src_exports = {};
|
63019
|
-
module2.exports = __toCommonJS2(src_exports);
|
63020
|
-
__reExport(src_exports, require_fromTokenFile(), module2.exports);
|
63021
|
-
__reExport(src_exports, require_fromWebToken(), module2.exports);
|
63022
|
-
}
|
63023
|
-
});
|
63024
|
-
|
63025
64987
|
// ../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
|
63026
|
-
var
|
64988
|
+
var require_dist_cjs58 = __commonJS({
|
63027
64989
|
"../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) {
|
63028
64990
|
"use strict";
|
63029
64991
|
var __create3 = Object.create;
|
@@ -63083,7 +65045,7 @@ var require_dist_cjs53 = __commonJS({
|
|
63083
65045
|
(_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)");
|
63084
65046
|
const data = profiles[profileName];
|
63085
65047
|
if (!options.roleAssumer) {
|
63086
|
-
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM3(
|
65048
|
+
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM3(require_dist_cjs57()));
|
63087
65049
|
options.roleAssumer = getDefaultRoleAssumer(
|
63088
65050
|
{
|
63089
65051
|
...options.clientConfig,
|
@@ -63125,7 +65087,7 @@ var require_dist_cjs53 = __commonJS({
|
|
63125
65087
|
return options.roleAssumer(sourceCreds, params);
|
63126
65088
|
}, "resolveAssumeRoleCredentials");
|
63127
65089
|
var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
|
63128
|
-
var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM3(
|
65090
|
+
var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM3(require_dist_cjs53())).then(
|
63129
65091
|
({ fromProcess }) => fromProcess({
|
63130
65092
|
...options,
|
63131
65093
|
profile
|
@@ -63151,7 +65113,7 @@ var require_dist_cjs53 = __commonJS({
|
|
63151
65113
|
});
|
63152
65114
|
}, "resolveStaticCredentials");
|
63153
65115
|
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");
|
63154
|
-
var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM3(
|
65116
|
+
var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM3(require_dist_cjs54())).then(
|
63155
65117
|
({ fromTokenFile: fromTokenFile2 }) => fromTokenFile2({
|
63156
65118
|
webIdentityTokenFile: profile.web_identity_token_file,
|
63157
65119
|
roleArn: profile.role_arn,
|
@@ -63193,7 +65155,7 @@ var require_dist_cjs53 = __commonJS({
|
|
63193
65155
|
});
|
63194
65156
|
|
63195
65157
|
// ../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
|
63196
|
-
var
|
65158
|
+
var require_dist_cjs59 = __commonJS({
|
63197
65159
|
"../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) {
|
63198
65160
|
"use strict";
|
63199
65161
|
var __create3 = Object.create;
|
@@ -63275,19 +65237,19 @@ var require_dist_cjs54 = __commonJS({
|
|
63275
65237
|
async () => {
|
63276
65238
|
var _a;
|
63277
65239
|
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromIni");
|
63278
|
-
const { fromIni } = await Promise.resolve().then(() => __toESM3(
|
65240
|
+
const { fromIni } = await Promise.resolve().then(() => __toESM3(require_dist_cjs58()));
|
63279
65241
|
return fromIni(init2)();
|
63280
65242
|
},
|
63281
65243
|
async () => {
|
63282
65244
|
var _a;
|
63283
65245
|
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromProcess");
|
63284
|
-
const { fromProcess } = await Promise.resolve().then(() => __toESM3(
|
65246
|
+
const { fromProcess } = await Promise.resolve().then(() => __toESM3(require_dist_cjs53()));
|
63285
65247
|
return fromProcess(init2)();
|
63286
65248
|
},
|
63287
65249
|
async () => {
|
63288
65250
|
var _a;
|
63289
65251
|
(_a = init2.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromTokenFile");
|
63290
|
-
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM3(
|
65252
|
+
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => __toESM3(require_dist_cjs54()));
|
63291
65253
|
return fromTokenFile2(init2)();
|
63292
65254
|
},
|
63293
65255
|
async () => {
|
@@ -63308,7 +65270,7 @@ var require_dist_cjs54 = __commonJS({
|
|
63308
65270
|
});
|
63309
65271
|
|
63310
65272
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/ruleset.js
|
63311
|
-
var
|
65273
|
+
var require_ruleset5 = __commonJS({
|
63312
65274
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/ruleset.js"(exports2) {
|
63313
65275
|
"use strict";
|
63314
65276
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -63341,14 +65303,14 @@ var require_ruleset4 = __commonJS({
|
|
63341
65303
|
});
|
63342
65304
|
|
63343
65305
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/endpointResolver.js
|
63344
|
-
var
|
65306
|
+
var require_endpointResolver5 = __commonJS({
|
63345
65307
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
63346
65308
|
"use strict";
|
63347
65309
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
63348
65310
|
exports2.defaultEndpointResolver = void 0;
|
63349
65311
|
var util_endpoints_1 = require_dist_cjs7();
|
63350
65312
|
var util_endpoints_2 = require_dist_cjs6();
|
63351
|
-
var ruleset_1 =
|
65313
|
+
var ruleset_1 = require_ruleset5();
|
63352
65314
|
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
63353
65315
|
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
63354
65316
|
endpointParams,
|
@@ -63361,7 +65323,7 @@ var require_endpointResolver4 = __commonJS({
|
|
63361
65323
|
});
|
63362
65324
|
|
63363
65325
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.shared.js
|
63364
|
-
var
|
65326
|
+
var require_runtimeConfig_shared5 = __commonJS({
|
63365
65327
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
63366
65328
|
"use strict";
|
63367
65329
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -63372,7 +65334,7 @@ var require_runtimeConfig_shared4 = __commonJS({
|
|
63372
65334
|
var util_base64_1 = require_dist_cjs25();
|
63373
65335
|
var util_utf8_1 = require_dist_cjs24();
|
63374
65336
|
var httpAuthSchemeProvider_1 = require_httpAuthSchemeProvider();
|
63375
|
-
var endpointResolver_1 =
|
65337
|
+
var endpointResolver_1 = require_endpointResolver5();
|
63376
65338
|
var getRuntimeConfig = (config) => {
|
63377
65339
|
return {
|
63378
65340
|
apiVersion: "2018-08-01",
|
@@ -63401,7 +65363,7 @@ var require_runtimeConfig_shared4 = __commonJS({
|
|
63401
65363
|
});
|
63402
65364
|
|
63403
65365
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.js
|
63404
|
-
var
|
65366
|
+
var require_runtimeConfig5 = __commonJS({
|
63405
65367
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/runtimeConfig.js"(exports2) {
|
63406
65368
|
"use strict";
|
63407
65369
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
@@ -63409,7 +65371,7 @@ var require_runtimeConfig4 = __commonJS({
|
|
63409
65371
|
var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2));
|
63410
65372
|
var package_json_1 = tslib_1.__importDefault(require_package2());
|
63411
65373
|
var core_1 = require_dist_cjs37();
|
63412
|
-
var credential_provider_node_1 =
|
65374
|
+
var credential_provider_node_1 = require_dist_cjs59();
|
63413
65375
|
var util_user_agent_node_1 = require_dist_cjs41();
|
63414
65376
|
var config_resolver_1 = require_dist_cjs11();
|
63415
65377
|
var hash_node_1 = require_dist_cjs42();
|
@@ -63418,7 +65380,7 @@ var require_runtimeConfig4 = __commonJS({
|
|
63418
65380
|
var node_http_handler_1 = require_dist_cjs28();
|
63419
65381
|
var util_body_length_node_1 = require_dist_cjs43();
|
63420
65382
|
var util_retry_1 = require_dist_cjs20();
|
63421
|
-
var runtimeConfig_shared_1 =
|
65383
|
+
var runtimeConfig_shared_1 = require_runtimeConfig_shared5();
|
63422
65384
|
var smithy_client_1 = require_dist_cjs32();
|
63423
65385
|
var util_defaults_mode_node_1 = require_dist_cjs44();
|
63424
65386
|
var smithy_client_2 = require_dist_cjs32();
|
@@ -63454,7 +65416,7 @@ var require_runtimeConfig4 = __commonJS({
|
|
63454
65416
|
});
|
63455
65417
|
|
63456
65418
|
// ../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/index.js
|
63457
|
-
var
|
65419
|
+
var require_dist_cjs60 = __commonJS({
|
63458
65420
|
"../node_modules/.pnpm/@aws-sdk+client-rds-data@3.583.0/node_modules/@aws-sdk/client-rds-data/dist-cjs/index.js"(exports2, module2) {
|
63459
65421
|
"use strict";
|
63460
65422
|
var __defProp3 = Object.defineProperty;
|
@@ -63535,7 +65497,7 @@ var require_dist_cjs55 = __commonJS({
|
|
63535
65497
|
Region: { type: "builtInParams", name: "region" },
|
63536
65498
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
63537
65499
|
};
|
63538
|
-
var import_runtimeConfig =
|
65500
|
+
var import_runtimeConfig = require_runtimeConfig5();
|
63539
65501
|
var import_region_config_resolver = require_dist_cjs45();
|
63540
65502
|
var import_protocol_http = require_dist_cjs2();
|
63541
65503
|
var import_smithy_client = require_dist_cjs32();
|
@@ -78016,7 +79978,7 @@ var init_connections = __esm({
|
|
78016
79978
|
const { driver: driver2 } = credentials2;
|
78017
79979
|
if (driver2 === "aws-data-api") {
|
78018
79980
|
assertPackages("@aws-sdk/client-rds-data");
|
78019
|
-
const { RDSDataClient, ExecuteStatementCommand, TypeHint } = await Promise.resolve().then(() => __toESM(
|
79981
|
+
const { RDSDataClient, ExecuteStatementCommand, TypeHint } = await Promise.resolve().then(() => __toESM(require_dist_cjs60()));
|
78020
79982
|
const { AwsDataApiSession, drizzle } = await import("drizzle-orm/aws-data-api/pg");
|
78021
79983
|
const { migrate: migrate2 } = await import("drizzle-orm/aws-data-api/pg/migrator");
|
78022
79984
|
const { PgDialect: PgDialect2 } = await import("drizzle-orm/pg-core");
|
@@ -92395,7 +94357,7 @@ init_utils5();
|
|
92395
94357
|
var version2 = async () => {
|
92396
94358
|
const { npmVersion } = await ormCoreVersions();
|
92397
94359
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
92398
|
-
const envVersion = "0.31.1-
|
94360
|
+
const envVersion = "0.31.1-581277d";
|
92399
94361
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
92400
94362
|
const versions = `drizzle-kit: ${kitVersion}
|
92401
94363
|
${ormVersion}`;
|