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