cdk-cost-analyzer 0.1.35 → 0.1.37
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/.cdk-cost-analyzer-cache/metadata.json +8 -8
- package/README.md +193 -3
- package/action.yml +50 -0
- package/dist/action/136.index.js +936 -0
- package/dist/action/360.index.js +93 -0
- package/dist/action/443.index.js +780 -0
- package/dist/action/566.index.js +387 -0
- package/dist/action/579.index.js +270 -0
- package/dist/action/605.index.js +234 -0
- package/dist/action/762.index.js +632 -0
- package/dist/action/869.index.js +531 -0
- package/dist/action/956.index.js +1072 -0
- package/dist/action/998.index.js +1418 -0
- package/dist/action/action/index.d.ts +7 -0
- package/dist/action/analysis/SingleTemplateAnalyzer.d.ts +23 -0
- package/dist/action/analysis/index.d.ts +1 -0
- package/dist/action/api/index.d.ts +35 -0
- package/dist/action/api/single-template-types.d.ts +83 -0
- package/dist/action/api/types.d.ts +15 -0
- package/dist/action/cli/index.d.ts +2 -0
- package/dist/action/config/ConfigManager.d.ts +40 -0
- package/dist/action/config/index.d.ts +2 -0
- package/dist/action/config/types.d.ts +153 -0
- package/dist/action/diff/DiffEngine.d.ts +7 -0
- package/dist/action/diff/index.d.ts +2 -0
- package/dist/action/diff/types.d.ts +20 -0
- package/dist/action/index.d.ts +8 -0
- package/dist/action/index.js +4 -0
- package/dist/action/integrations/GitHubIntegration.d.ts +43 -0
- package/dist/action/integrations/GitLabIntegration.d.ts +7 -0
- package/dist/action/integrations/index.d.ts +3 -0
- package/dist/action/integrations/types.d.ts +40 -0
- package/dist/action/parser/TemplateParser.d.ts +8 -0
- package/dist/action/parser/index.d.ts +2 -0
- package/dist/action/parser/types.d.ts +30 -0
- package/dist/action/pipeline/PipelineOrchestrator.d.ts +23 -0
- package/dist/action/pipeline/index.d.ts +2 -0
- package/dist/action/pipeline/types.d.ts +41 -0
- package/dist/action/pricing/CacheManager.d.ts +75 -0
- package/dist/action/pricing/PricingClient.d.ts +17 -0
- package/dist/action/pricing/PricingService.d.ts +16 -0
- package/dist/action/pricing/RegionMapper.d.ts +14 -0
- package/dist/action/pricing/calculators/ALBCalculator.d.ts +15 -0
- package/dist/action/pricing/calculators/APIGatewayCalculator.d.ts +9 -0
- package/dist/action/pricing/calculators/AutoScalingGroupCalculator.d.ts +9 -0
- package/dist/action/pricing/calculators/CloudFrontCalculator.d.ts +49 -0
- package/dist/action/pricing/calculators/DynamoDBCalculator.d.ts +12 -0
- package/dist/action/pricing/calculators/EC2Calculator.d.ts +6 -0
- package/dist/action/pricing/calculators/ECSCalculator.d.ts +8 -0
- package/dist/action/pricing/calculators/EFSCalculator.d.ts +19 -0
- package/dist/action/pricing/calculators/ElastiCacheCalculator.d.ts +7 -0
- package/dist/action/pricing/calculators/LambdaCalculator.d.ts +14 -0
- package/dist/action/pricing/calculators/LaunchTemplateCalculator.d.ts +35 -0
- package/dist/action/pricing/calculators/NLBCalculator.d.ts +15 -0
- package/dist/action/pricing/calculators/NatGatewayCalculator.d.ts +10 -0
- package/dist/action/pricing/calculators/RDSCalculator.d.ts +8 -0
- package/dist/action/pricing/calculators/S3Calculator.d.ts +7 -0
- package/dist/action/pricing/calculators/SNSCalculator.d.ts +54 -0
- package/dist/action/pricing/calculators/SQSCalculator.d.ts +16 -0
- package/dist/action/pricing/calculators/SecretsManagerCalculator.d.ts +21 -0
- package/dist/action/pricing/calculators/StepFunctionsCalculator.d.ts +23 -0
- package/dist/action/pricing/calculators/VPCEndpointCalculator.d.ts +10 -0
- package/dist/action/pricing/index.d.ts +16 -0
- package/dist/action/pricing/types.d.ts +54 -0
- package/dist/action/reporter/GitHubActionReporter.d.ts +42 -0
- package/dist/action/reporter/Reporter.d.ts +18 -0
- package/dist/action/reporter/SingleTemplateReporter.d.ts +31 -0
- package/dist/action/reporter/index.d.ts +4 -0
- package/dist/action/reporter/types.d.ts +72 -0
- package/dist/action/synthesis/SynthesisOrchestrator.d.ts +26 -0
- package/dist/action/synthesis/index.d.ts +2 -0
- package/dist/action/synthesis/types.d.ts +17 -0
- package/dist/action/threshold/ThresholdEnforcer.d.ts +29 -0
- package/dist/action/threshold/index.d.ts +2 -0
- package/dist/action/threshold/types.d.ts +15 -0
- package/dist/action/utils/Logger.d.ts +39 -0
- package/dist/cli/index.js +56 -1
- package/dist/integrations/GitHubIntegration.d.ts +43 -0
- package/dist/integrations/GitHubIntegration.js +217 -0
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.js +4 -2
- package/dist/integrations/types.d.ts +29 -0
- package/dist/integrations/types.js +11 -2
- package/dist/releasetag.txt +1 -1
- package/dist/reporter/GitHubActionReporter.d.ts +42 -0
- package/dist/reporter/GitHubActionReporter.js +161 -0
- package/dist/reporter/index.d.ts +1 -0
- package/dist/reporter/index.js +4 -2
- package/package.json +5 -1
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 443;
|
|
3
|
+
exports.ids = [443];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 8396:
|
|
7
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
11
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOOIDCHttpAuthSchemeProvider = exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
|
12
|
+
const core_1 = __webpack_require__(8704);
|
|
13
|
+
const util_middleware_1 = __webpack_require__(6324);
|
|
14
|
+
const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
15
|
+
return {
|
|
16
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
17
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
18
|
+
(() => {
|
|
19
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
20
|
+
})(),
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
exports.defaultSSOOIDCHttpAuthSchemeParametersProvider = defaultSSOOIDCHttpAuthSchemeParametersProvider;
|
|
24
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
25
|
+
return {
|
|
26
|
+
schemeId: "aws.auth#sigv4",
|
|
27
|
+
signingProperties: {
|
|
28
|
+
name: "sso-oauth",
|
|
29
|
+
region: authParameters.region,
|
|
30
|
+
},
|
|
31
|
+
propertiesExtractor: (config, context) => ({
|
|
32
|
+
signingProperties: {
|
|
33
|
+
config,
|
|
34
|
+
context,
|
|
35
|
+
},
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
40
|
+
return {
|
|
41
|
+
schemeId: "smithy.api#noAuth",
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => {
|
|
45
|
+
const options = [];
|
|
46
|
+
switch (authParameters.operation) {
|
|
47
|
+
case "CreateToken": {
|
|
48
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
default: {
|
|
52
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return options;
|
|
56
|
+
};
|
|
57
|
+
exports.defaultSSOOIDCHttpAuthSchemeProvider = defaultSSOOIDCHttpAuthSchemeProvider;
|
|
58
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
59
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
60
|
+
return Object.assign(config_0, {
|
|
61
|
+
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/***/ }),
|
|
68
|
+
|
|
69
|
+
/***/ 546:
|
|
70
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
74
|
+
exports.defaultEndpointResolver = void 0;
|
|
75
|
+
const util_endpoints_1 = __webpack_require__(3068);
|
|
76
|
+
const util_endpoints_2 = __webpack_require__(9674);
|
|
77
|
+
const ruleset_1 = __webpack_require__(9947);
|
|
78
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
79
|
+
size: 50,
|
|
80
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
81
|
+
});
|
|
82
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
83
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
84
|
+
endpointParams: endpointParams,
|
|
85
|
+
logger: context.logger,
|
|
86
|
+
}));
|
|
87
|
+
};
|
|
88
|
+
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
89
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/***/ }),
|
|
93
|
+
|
|
94
|
+
/***/ 9947:
|
|
95
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
99
|
+
exports.ruleSet = void 0;
|
|
100
|
+
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
101
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
|
|
102
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
103
|
+
exports.ruleSet = _data;
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/***/ }),
|
|
107
|
+
|
|
108
|
+
/***/ 9443:
|
|
109
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
var middlewareHostHeader = __webpack_require__(2590);
|
|
114
|
+
var middlewareLogger = __webpack_require__(5242);
|
|
115
|
+
var middlewareRecursionDetection = __webpack_require__(1568);
|
|
116
|
+
var middlewareUserAgent = __webpack_require__(2959);
|
|
117
|
+
var configResolver = __webpack_require__(9316);
|
|
118
|
+
var core = __webpack_require__(402);
|
|
119
|
+
var schema = __webpack_require__(6890);
|
|
120
|
+
var middlewareContentLength = __webpack_require__(7212);
|
|
121
|
+
var middlewareEndpoint = __webpack_require__(99);
|
|
122
|
+
var middlewareRetry = __webpack_require__(9618);
|
|
123
|
+
var smithyClient = __webpack_require__(1411);
|
|
124
|
+
var httpAuthSchemeProvider = __webpack_require__(8396);
|
|
125
|
+
var runtimeConfig = __webpack_require__(6901);
|
|
126
|
+
var regionConfigResolver = __webpack_require__(6463);
|
|
127
|
+
var protocolHttp = __webpack_require__(2356);
|
|
128
|
+
var schemas_0 = __webpack_require__(7143);
|
|
129
|
+
var errors = __webpack_require__(5843);
|
|
130
|
+
var SSOOIDCServiceException = __webpack_require__(3952);
|
|
131
|
+
|
|
132
|
+
const resolveClientEndpointParameters = (options) => {
|
|
133
|
+
return Object.assign(options, {
|
|
134
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
135
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
136
|
+
defaultSigningName: "sso-oauth",
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const commonParams = {
|
|
140
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
141
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
142
|
+
Region: { type: "builtInParams", name: "region" },
|
|
143
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
147
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
148
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
149
|
+
let _credentials = runtimeConfig.credentials;
|
|
150
|
+
return {
|
|
151
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
152
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
153
|
+
if (index === -1) {
|
|
154
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
httpAuthSchemes() {
|
|
161
|
+
return _httpAuthSchemes;
|
|
162
|
+
},
|
|
163
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
164
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
165
|
+
},
|
|
166
|
+
httpAuthSchemeProvider() {
|
|
167
|
+
return _httpAuthSchemeProvider;
|
|
168
|
+
},
|
|
169
|
+
setCredentials(credentials) {
|
|
170
|
+
_credentials = credentials;
|
|
171
|
+
},
|
|
172
|
+
credentials() {
|
|
173
|
+
return _credentials;
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
178
|
+
return {
|
|
179
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
180
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
181
|
+
credentials: config.credentials(),
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
186
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
187
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
188
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
class SSOOIDCClient extends smithyClient.Client {
|
|
192
|
+
config;
|
|
193
|
+
constructor(...[configuration]) {
|
|
194
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
195
|
+
super(_config_0);
|
|
196
|
+
this.initConfig = _config_0;
|
|
197
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
198
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
199
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
200
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
201
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
202
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
203
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
204
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
205
|
+
this.config = _config_8;
|
|
206
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
207
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
208
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
209
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
210
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
211
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
212
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
213
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
214
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSSOOIDCHttpAuthSchemeParametersProvider,
|
|
215
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
216
|
+
"aws.auth#sigv4": config.credentials,
|
|
217
|
+
}),
|
|
218
|
+
}));
|
|
219
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
220
|
+
}
|
|
221
|
+
destroy() {
|
|
222
|
+
super.destroy();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
class CreateTokenCommand extends smithyClient.Command
|
|
227
|
+
.classBuilder()
|
|
228
|
+
.ep(commonParams)
|
|
229
|
+
.m(function (Command, cs, config, o) {
|
|
230
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
231
|
+
})
|
|
232
|
+
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
233
|
+
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
234
|
+
.sc(schemas_0.CreateToken$)
|
|
235
|
+
.build() {
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const commands = {
|
|
239
|
+
CreateTokenCommand,
|
|
240
|
+
};
|
|
241
|
+
class SSOOIDC extends SSOOIDCClient {
|
|
242
|
+
}
|
|
243
|
+
smithyClient.createAggregatedClient(commands, SSOOIDC);
|
|
244
|
+
|
|
245
|
+
const AccessDeniedExceptionReason = {
|
|
246
|
+
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
247
|
+
};
|
|
248
|
+
const InvalidRequestExceptionReason = {
|
|
249
|
+
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
250
|
+
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
251
|
+
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
252
|
+
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
Object.defineProperty(exports, "$Command", ({
|
|
256
|
+
enumerable: true,
|
|
257
|
+
get: function () { return smithyClient.Command; }
|
|
258
|
+
}));
|
|
259
|
+
Object.defineProperty(exports, "__Client", ({
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: function () { return smithyClient.Client; }
|
|
262
|
+
}));
|
|
263
|
+
Object.defineProperty(exports, "SSOOIDCServiceException", ({
|
|
264
|
+
enumerable: true,
|
|
265
|
+
get: function () { return SSOOIDCServiceException.SSOOIDCServiceException; }
|
|
266
|
+
}));
|
|
267
|
+
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
268
|
+
exports.CreateTokenCommand = CreateTokenCommand;
|
|
269
|
+
exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
|
|
270
|
+
exports.SSOOIDC = SSOOIDC;
|
|
271
|
+
exports.SSOOIDCClient = SSOOIDCClient;
|
|
272
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
273
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
get: function () { return schemas_0[k]; }
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
Object.keys(errors).forEach(function (k) {
|
|
279
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
get: function () { return errors[k]; }
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
/***/ }),
|
|
287
|
+
|
|
288
|
+
/***/ 3952:
|
|
289
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
293
|
+
exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
|
|
294
|
+
const smithy_client_1 = __webpack_require__(1411);
|
|
295
|
+
Object.defineProperty(exports, "__ServiceException", ({ enumerable: true, get: function () { return smithy_client_1.ServiceException; } }));
|
|
296
|
+
class SSOOIDCServiceException extends smithy_client_1.ServiceException {
|
|
297
|
+
constructor(options) {
|
|
298
|
+
super(options);
|
|
299
|
+
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
/***/ }),
|
|
306
|
+
|
|
307
|
+
/***/ 5843:
|
|
308
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
312
|
+
exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
|
|
313
|
+
const SSOOIDCServiceException_1 = __webpack_require__(3952);
|
|
314
|
+
class AccessDeniedException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
315
|
+
name = "AccessDeniedException";
|
|
316
|
+
$fault = "client";
|
|
317
|
+
error;
|
|
318
|
+
reason;
|
|
319
|
+
error_description;
|
|
320
|
+
constructor(opts) {
|
|
321
|
+
super({
|
|
322
|
+
name: "AccessDeniedException",
|
|
323
|
+
$fault: "client",
|
|
324
|
+
...opts,
|
|
325
|
+
});
|
|
326
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
327
|
+
this.error = opts.error;
|
|
328
|
+
this.reason = opts.reason;
|
|
329
|
+
this.error_description = opts.error_description;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
333
|
+
class AuthorizationPendingException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
334
|
+
name = "AuthorizationPendingException";
|
|
335
|
+
$fault = "client";
|
|
336
|
+
error;
|
|
337
|
+
error_description;
|
|
338
|
+
constructor(opts) {
|
|
339
|
+
super({
|
|
340
|
+
name: "AuthorizationPendingException",
|
|
341
|
+
$fault: "client",
|
|
342
|
+
...opts,
|
|
343
|
+
});
|
|
344
|
+
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
345
|
+
this.error = opts.error;
|
|
346
|
+
this.error_description = opts.error_description;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
exports.AuthorizationPendingException = AuthorizationPendingException;
|
|
350
|
+
class ExpiredTokenException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
351
|
+
name = "ExpiredTokenException";
|
|
352
|
+
$fault = "client";
|
|
353
|
+
error;
|
|
354
|
+
error_description;
|
|
355
|
+
constructor(opts) {
|
|
356
|
+
super({
|
|
357
|
+
name: "ExpiredTokenException",
|
|
358
|
+
$fault: "client",
|
|
359
|
+
...opts,
|
|
360
|
+
});
|
|
361
|
+
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
362
|
+
this.error = opts.error;
|
|
363
|
+
this.error_description = opts.error_description;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
exports.ExpiredTokenException = ExpiredTokenException;
|
|
367
|
+
class InternalServerException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
368
|
+
name = "InternalServerException";
|
|
369
|
+
$fault = "server";
|
|
370
|
+
error;
|
|
371
|
+
error_description;
|
|
372
|
+
constructor(opts) {
|
|
373
|
+
super({
|
|
374
|
+
name: "InternalServerException",
|
|
375
|
+
$fault: "server",
|
|
376
|
+
...opts,
|
|
377
|
+
});
|
|
378
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
379
|
+
this.error = opts.error;
|
|
380
|
+
this.error_description = opts.error_description;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
exports.InternalServerException = InternalServerException;
|
|
384
|
+
class InvalidClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
385
|
+
name = "InvalidClientException";
|
|
386
|
+
$fault = "client";
|
|
387
|
+
error;
|
|
388
|
+
error_description;
|
|
389
|
+
constructor(opts) {
|
|
390
|
+
super({
|
|
391
|
+
name: "InvalidClientException",
|
|
392
|
+
$fault: "client",
|
|
393
|
+
...opts,
|
|
394
|
+
});
|
|
395
|
+
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
396
|
+
this.error = opts.error;
|
|
397
|
+
this.error_description = opts.error_description;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
exports.InvalidClientException = InvalidClientException;
|
|
401
|
+
class InvalidGrantException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
402
|
+
name = "InvalidGrantException";
|
|
403
|
+
$fault = "client";
|
|
404
|
+
error;
|
|
405
|
+
error_description;
|
|
406
|
+
constructor(opts) {
|
|
407
|
+
super({
|
|
408
|
+
name: "InvalidGrantException",
|
|
409
|
+
$fault: "client",
|
|
410
|
+
...opts,
|
|
411
|
+
});
|
|
412
|
+
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
413
|
+
this.error = opts.error;
|
|
414
|
+
this.error_description = opts.error_description;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
exports.InvalidGrantException = InvalidGrantException;
|
|
418
|
+
class InvalidRequestException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
419
|
+
name = "InvalidRequestException";
|
|
420
|
+
$fault = "client";
|
|
421
|
+
error;
|
|
422
|
+
reason;
|
|
423
|
+
error_description;
|
|
424
|
+
constructor(opts) {
|
|
425
|
+
super({
|
|
426
|
+
name: "InvalidRequestException",
|
|
427
|
+
$fault: "client",
|
|
428
|
+
...opts,
|
|
429
|
+
});
|
|
430
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
431
|
+
this.error = opts.error;
|
|
432
|
+
this.reason = opts.reason;
|
|
433
|
+
this.error_description = opts.error_description;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
437
|
+
class InvalidScopeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
438
|
+
name = "InvalidScopeException";
|
|
439
|
+
$fault = "client";
|
|
440
|
+
error;
|
|
441
|
+
error_description;
|
|
442
|
+
constructor(opts) {
|
|
443
|
+
super({
|
|
444
|
+
name: "InvalidScopeException",
|
|
445
|
+
$fault: "client",
|
|
446
|
+
...opts,
|
|
447
|
+
});
|
|
448
|
+
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
449
|
+
this.error = opts.error;
|
|
450
|
+
this.error_description = opts.error_description;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
exports.InvalidScopeException = InvalidScopeException;
|
|
454
|
+
class SlowDownException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
455
|
+
name = "SlowDownException";
|
|
456
|
+
$fault = "client";
|
|
457
|
+
error;
|
|
458
|
+
error_description;
|
|
459
|
+
constructor(opts) {
|
|
460
|
+
super({
|
|
461
|
+
name: "SlowDownException",
|
|
462
|
+
$fault: "client",
|
|
463
|
+
...opts,
|
|
464
|
+
});
|
|
465
|
+
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
466
|
+
this.error = opts.error;
|
|
467
|
+
this.error_description = opts.error_description;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
exports.SlowDownException = SlowDownException;
|
|
471
|
+
class UnauthorizedClientException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
472
|
+
name = "UnauthorizedClientException";
|
|
473
|
+
$fault = "client";
|
|
474
|
+
error;
|
|
475
|
+
error_description;
|
|
476
|
+
constructor(opts) {
|
|
477
|
+
super({
|
|
478
|
+
name: "UnauthorizedClientException",
|
|
479
|
+
$fault: "client",
|
|
480
|
+
...opts,
|
|
481
|
+
});
|
|
482
|
+
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
483
|
+
this.error = opts.error;
|
|
484
|
+
this.error_description = opts.error_description;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
exports.UnauthorizedClientException = UnauthorizedClientException;
|
|
488
|
+
class UnsupportedGrantTypeException extends SSOOIDCServiceException_1.SSOOIDCServiceException {
|
|
489
|
+
name = "UnsupportedGrantTypeException";
|
|
490
|
+
$fault = "client";
|
|
491
|
+
error;
|
|
492
|
+
error_description;
|
|
493
|
+
constructor(opts) {
|
|
494
|
+
super({
|
|
495
|
+
name: "UnsupportedGrantTypeException",
|
|
496
|
+
$fault: "client",
|
|
497
|
+
...opts,
|
|
498
|
+
});
|
|
499
|
+
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
500
|
+
this.error = opts.error;
|
|
501
|
+
this.error_description = opts.error_description;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
/***/ }),
|
|
508
|
+
|
|
509
|
+
/***/ 6901:
|
|
510
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
514
|
+
exports.getRuntimeConfig = void 0;
|
|
515
|
+
const tslib_1 = __webpack_require__(1860);
|
|
516
|
+
const package_json_1 = tslib_1.__importDefault(__webpack_require__(9955));
|
|
517
|
+
const core_1 = __webpack_require__(8704);
|
|
518
|
+
const util_user_agent_node_1 = __webpack_require__(1656);
|
|
519
|
+
const config_resolver_1 = __webpack_require__(9316);
|
|
520
|
+
const hash_node_1 = __webpack_require__(5092);
|
|
521
|
+
const middleware_retry_1 = __webpack_require__(9618);
|
|
522
|
+
const node_config_provider_1 = __webpack_require__(5704);
|
|
523
|
+
const node_http_handler_1 = __webpack_require__(1279);
|
|
524
|
+
const smithy_client_1 = __webpack_require__(1411);
|
|
525
|
+
const util_body_length_node_1 = __webpack_require__(3638);
|
|
526
|
+
const util_defaults_mode_node_1 = __webpack_require__(5435);
|
|
527
|
+
const util_retry_1 = __webpack_require__(5518);
|
|
528
|
+
const runtimeConfig_shared_1 = __webpack_require__(1546);
|
|
529
|
+
const getRuntimeConfig = (config) => {
|
|
530
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
531
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
532
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
533
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
534
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
535
|
+
const loaderConfig = {
|
|
536
|
+
profile: config?.profile,
|
|
537
|
+
logger: clientSharedValues.logger,
|
|
538
|
+
};
|
|
539
|
+
return {
|
|
540
|
+
...clientSharedValues,
|
|
541
|
+
...config,
|
|
542
|
+
runtime: "node",
|
|
543
|
+
defaultsMode,
|
|
544
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
545
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
546
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
547
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
548
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
549
|
+
region: config?.region ??
|
|
550
|
+
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
551
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
552
|
+
retryMode: config?.retryMode ??
|
|
553
|
+
(0, node_config_provider_1.loadConfig)({
|
|
554
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
555
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
556
|
+
}, config),
|
|
557
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
558
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
559
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
560
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
561
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
/***/ }),
|
|
568
|
+
|
|
569
|
+
/***/ 1546:
|
|
570
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
574
|
+
exports.getRuntimeConfig = void 0;
|
|
575
|
+
const core_1 = __webpack_require__(8704);
|
|
576
|
+
const protocols_1 = __webpack_require__(7288);
|
|
577
|
+
const core_2 = __webpack_require__(402);
|
|
578
|
+
const smithy_client_1 = __webpack_require__(1411);
|
|
579
|
+
const url_parser_1 = __webpack_require__(4494);
|
|
580
|
+
const util_base64_1 = __webpack_require__(8385);
|
|
581
|
+
const util_utf8_1 = __webpack_require__(1577);
|
|
582
|
+
const httpAuthSchemeProvider_1 = __webpack_require__(8396);
|
|
583
|
+
const endpointResolver_1 = __webpack_require__(546);
|
|
584
|
+
const schemas_0_1 = __webpack_require__(7143);
|
|
585
|
+
const getRuntimeConfig = (config) => {
|
|
586
|
+
return {
|
|
587
|
+
apiVersion: "2019-06-10",
|
|
588
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
589
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
590
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
591
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
592
|
+
extensions: config?.extensions ?? [],
|
|
593
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSSOOIDCHttpAuthSchemeProvider,
|
|
594
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
595
|
+
{
|
|
596
|
+
schemeId: "aws.auth#sigv4",
|
|
597
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
598
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
schemeId: "smithy.api#noAuth",
|
|
602
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
603
|
+
signer: new core_2.NoAuthSigner(),
|
|
604
|
+
},
|
|
605
|
+
],
|
|
606
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
607
|
+
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
608
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
609
|
+
defaultNamespace: "com.amazonaws.ssooidc",
|
|
610
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
611
|
+
version: "2019-06-10",
|
|
612
|
+
serviceTarget: "AWSSSOOIDCService",
|
|
613
|
+
},
|
|
614
|
+
serviceId: config?.serviceId ?? "SSO OIDC",
|
|
615
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
616
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
617
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
/***/ }),
|
|
624
|
+
|
|
625
|
+
/***/ 7143:
|
|
626
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
630
|
+
exports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;
|
|
631
|
+
const _ADE = "AccessDeniedException";
|
|
632
|
+
const _APE = "AuthorizationPendingException";
|
|
633
|
+
const _AT = "AccessToken";
|
|
634
|
+
const _CS = "ClientSecret";
|
|
635
|
+
const _CT = "CreateToken";
|
|
636
|
+
const _CTR = "CreateTokenRequest";
|
|
637
|
+
const _CTRr = "CreateTokenResponse";
|
|
638
|
+
const _CV = "CodeVerifier";
|
|
639
|
+
const _ETE = "ExpiredTokenException";
|
|
640
|
+
const _ICE = "InvalidClientException";
|
|
641
|
+
const _IGE = "InvalidGrantException";
|
|
642
|
+
const _IRE = "InvalidRequestException";
|
|
643
|
+
const _ISE = "InternalServerException";
|
|
644
|
+
const _ISEn = "InvalidScopeException";
|
|
645
|
+
const _IT = "IdToken";
|
|
646
|
+
const _RT = "RefreshToken";
|
|
647
|
+
const _SDE = "SlowDownException";
|
|
648
|
+
const _UCE = "UnauthorizedClientException";
|
|
649
|
+
const _UGTE = "UnsupportedGrantTypeException";
|
|
650
|
+
const _aT = "accessToken";
|
|
651
|
+
const _c = "client";
|
|
652
|
+
const _cI = "clientId";
|
|
653
|
+
const _cS = "clientSecret";
|
|
654
|
+
const _cV = "codeVerifier";
|
|
655
|
+
const _co = "code";
|
|
656
|
+
const _dC = "deviceCode";
|
|
657
|
+
const _e = "error";
|
|
658
|
+
const _eI = "expiresIn";
|
|
659
|
+
const _ed = "error_description";
|
|
660
|
+
const _gT = "grantType";
|
|
661
|
+
const _h = "http";
|
|
662
|
+
const _hE = "httpError";
|
|
663
|
+
const _iT = "idToken";
|
|
664
|
+
const _r = "reason";
|
|
665
|
+
const _rT = "refreshToken";
|
|
666
|
+
const _rU = "redirectUri";
|
|
667
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
668
|
+
const _sc = "scope";
|
|
669
|
+
const _se = "server";
|
|
670
|
+
const _tT = "tokenType";
|
|
671
|
+
const n0 = "com.amazonaws.ssooidc";
|
|
672
|
+
const schema_1 = __webpack_require__(6890);
|
|
673
|
+
const errors_1 = __webpack_require__(5843);
|
|
674
|
+
const SSOOIDCServiceException_1 = __webpack_require__(3952);
|
|
675
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
676
|
+
exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
677
|
+
_s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
|
|
678
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
679
|
+
exports.AccessDeniedException$ = [
|
|
680
|
+
-3,
|
|
681
|
+
n0,
|
|
682
|
+
_ADE,
|
|
683
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
684
|
+
[_e, _r, _ed],
|
|
685
|
+
[0, 0, 0],
|
|
686
|
+
];
|
|
687
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
688
|
+
exports.AuthorizationPendingException$ = [
|
|
689
|
+
-3,
|
|
690
|
+
n0,
|
|
691
|
+
_APE,
|
|
692
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
693
|
+
[_e, _ed],
|
|
694
|
+
[0, 0],
|
|
695
|
+
];
|
|
696
|
+
n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
|
|
697
|
+
exports.ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
698
|
+
n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
|
|
699
|
+
exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
|
|
700
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
701
|
+
exports.InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
|
|
702
|
+
n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
|
|
703
|
+
exports.InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
704
|
+
n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
|
|
705
|
+
exports.InvalidRequestException$ = [
|
|
706
|
+
-3,
|
|
707
|
+
n0,
|
|
708
|
+
_IRE,
|
|
709
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
710
|
+
[_e, _r, _ed],
|
|
711
|
+
[0, 0, 0],
|
|
712
|
+
];
|
|
713
|
+
n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
|
|
714
|
+
exports.InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
715
|
+
n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
|
|
716
|
+
exports.SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
717
|
+
n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
|
|
718
|
+
exports.UnauthorizedClientException$ = [
|
|
719
|
+
-3,
|
|
720
|
+
n0,
|
|
721
|
+
_UCE,
|
|
722
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
723
|
+
[_e, _ed],
|
|
724
|
+
[0, 0],
|
|
725
|
+
];
|
|
726
|
+
n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
|
|
727
|
+
exports.UnsupportedGrantTypeException$ = [
|
|
728
|
+
-3,
|
|
729
|
+
n0,
|
|
730
|
+
_UGTE,
|
|
731
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
732
|
+
[_e, _ed],
|
|
733
|
+
[0, 0],
|
|
734
|
+
];
|
|
735
|
+
n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
|
|
736
|
+
exports.errorTypeRegistries = [_s_registry, n0_registry];
|
|
737
|
+
var AccessToken = [0, n0, _AT, 8, 0];
|
|
738
|
+
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
739
|
+
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
740
|
+
var IdToken = [0, n0, _IT, 8, 0];
|
|
741
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
742
|
+
exports.CreateTokenRequest$ = [
|
|
743
|
+
3,
|
|
744
|
+
n0,
|
|
745
|
+
_CTR,
|
|
746
|
+
0,
|
|
747
|
+
[_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
|
|
748
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
749
|
+
3,
|
|
750
|
+
];
|
|
751
|
+
exports.CreateTokenResponse$ = [
|
|
752
|
+
3,
|
|
753
|
+
n0,
|
|
754
|
+
_CTRr,
|
|
755
|
+
0,
|
|
756
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
757
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
|
|
758
|
+
];
|
|
759
|
+
var Scopes = (/* unused pure expression or super */ null && (64 | 0));
|
|
760
|
+
exports.CreateToken$ = [
|
|
761
|
+
9,
|
|
762
|
+
n0,
|
|
763
|
+
_CT,
|
|
764
|
+
{ [_h]: ["POST", "/token", 200] },
|
|
765
|
+
() => exports.CreateTokenRequest$,
|
|
766
|
+
() => exports.CreateTokenResponse$,
|
|
767
|
+
];
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
/***/ }),
|
|
771
|
+
|
|
772
|
+
/***/ 9955:
|
|
773
|
+
/***/ ((module) => {
|
|
774
|
+
|
|
775
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.989.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.9","@aws-sdk/middleware-host-header":"^3.972.3","@aws-sdk/middleware-logger":"^3.972.3","@aws-sdk/middleware-recursion-detection":"^3.972.3","@aws-sdk/middleware-user-agent":"^3.972.9","@aws-sdk/region-config-resolver":"^3.972.3","@aws-sdk/types":"^3.973.1","@aws-sdk/util-endpoints":"3.989.0","@aws-sdk/util-user-agent-browser":"^3.972.3","@aws-sdk/util-user-agent-node":"^3.972.7","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.23.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.14","@smithy/middleware-retry":"^4.4.31","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.10","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.11.3","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.30","@smithy/util-defaults-mode-node":"^4.2.33","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"}}}');
|
|
776
|
+
|
|
777
|
+
/***/ })
|
|
778
|
+
|
|
779
|
+
};
|
|
780
|
+
;
|