@awsless/cli 0.0.1
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/README.MD +487 -0
- package/dist/app.json +1 -0
- package/dist/app.stage.json +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +49025 -0
- package/dist/build-json-schema.js +1925 -0
- package/dist/chunk-2TBBLACH.js +37 -0
- package/dist/chunk-3YEPERYO.js +1021 -0
- package/dist/chunk-4JFIJMQ6.js +46 -0
- package/dist/chunk-5TWBDDXS.js +60 -0
- package/dist/chunk-7NRPMOO4.js +876 -0
- package/dist/chunk-7XIGSOF4.js +100 -0
- package/dist/chunk-DSXFE5X2.js +174 -0
- package/dist/chunk-E7FQOYML.js +12 -0
- package/dist/chunk-GH475CSF.js +5005 -0
- package/dist/chunk-JHYKYQ5P.js +163 -0
- package/dist/chunk-LBISIOIM.js +28 -0
- package/dist/chunk-RCNT4C4P.js +50 -0
- package/dist/chunk-SIAA4J6H.js +21 -0
- package/dist/chunk-XNYTWFP6.js +241 -0
- package/dist/chunk-Z37AK4IA.js +546 -0
- package/dist/chunk-ZKH7AMP3.js +42 -0
- package/dist/dist-es-GXHCNXAC.js +489 -0
- package/dist/dist-es-J7SL4PXO.js +88 -0
- package/dist/dist-es-LL3VAI2X.js +70 -0
- package/dist/dist-es-QND3CYLI.js +380 -0
- package/dist/dist-es-STVZUSZG.js +21 -0
- package/dist/dist-es-TCFHB4OF.js +324 -0
- package/dist/dist-es-YFQTZTNE.js +167 -0
- package/dist/event-streams-74K5M656.js +244 -0
- package/dist/layers/sharp-arm.zip +0 -0
- package/dist/loadSso-O7PM54HL.js +592 -0
- package/dist/prebuild/icon/HASH +1 -0
- package/dist/prebuild/icon/bundle.zip +0 -0
- package/dist/prebuild/image/HASH +1 -0
- package/dist/prebuild/image/bundle.zip +0 -0
- package/dist/prebuild/on-error-log/HASH +1 -0
- package/dist/prebuild/on-error-log/bundle.zip +0 -0
- package/dist/prebuild/on-failure/HASH +1 -0
- package/dist/prebuild/on-failure/bundle.zip +0 -0
- package/dist/prebuild/rpc/HASH +1 -0
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/prebuild.js +159 -0
- package/dist/signin-6SPMGGJN.js +704 -0
- package/dist/sso-oidc-5IIWGKXY.js +829 -0
- package/dist/stack.json +1 -0
- package/dist/stack.stage.json +1 -0
- package/dist/sts-6SQWH4BL.js +3788 -0
- package/dist/test-global-setup.js +22 -0
- package/package.json +120 -0
|
@@ -0,0 +1,704 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAggregatedClient
|
|
3
|
+
} from "./chunk-RCNT4C4P.js";
|
|
4
|
+
import {
|
|
5
|
+
Command,
|
|
6
|
+
NoAuthSigner,
|
|
7
|
+
getEndpointPlugin,
|
|
8
|
+
package_default
|
|
9
|
+
} from "./chunk-Z37AK4IA.js";
|
|
10
|
+
import {
|
|
11
|
+
AwsRestJsonProtocol
|
|
12
|
+
} from "./chunk-3YEPERYO.js";
|
|
13
|
+
import {
|
|
14
|
+
AwsSdkSigV4Signer,
|
|
15
|
+
Client,
|
|
16
|
+
DEFAULT_RETRY_MODE,
|
|
17
|
+
DefaultIdentityProviderConfig,
|
|
18
|
+
EndpointCache,
|
|
19
|
+
Hash,
|
|
20
|
+
NODE_APP_ID_CONFIG_OPTIONS,
|
|
21
|
+
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
22
|
+
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
|
|
23
|
+
NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
24
|
+
NODE_REGION_CONFIG_OPTIONS,
|
|
25
|
+
NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
26
|
+
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
|
|
27
|
+
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
|
|
28
|
+
NoOpLogger,
|
|
29
|
+
ServiceException,
|
|
30
|
+
TypeRegistry,
|
|
31
|
+
awsEndpointFunctions,
|
|
32
|
+
calculateBodyLength,
|
|
33
|
+
createDefaultUserAgentProvider,
|
|
34
|
+
customEndpointFunctions,
|
|
35
|
+
emitWarningIfUnsupportedVersion,
|
|
36
|
+
emitWarningIfUnsupportedVersion2,
|
|
37
|
+
getAwsRegionExtensionConfiguration,
|
|
38
|
+
getContentLengthPlugin,
|
|
39
|
+
getDefaultExtensionConfiguration,
|
|
40
|
+
getHostHeaderPlugin,
|
|
41
|
+
getHttpAuthSchemeEndpointRuleSetPlugin,
|
|
42
|
+
getHttpHandlerExtensionConfiguration,
|
|
43
|
+
getHttpSigningPlugin,
|
|
44
|
+
getLoggerPlugin,
|
|
45
|
+
getRecursionDetectionPlugin,
|
|
46
|
+
getRetryPlugin,
|
|
47
|
+
getSchemaSerdePlugin,
|
|
48
|
+
getSmithyContext,
|
|
49
|
+
getUserAgentPlugin,
|
|
50
|
+
loadConfigsForDefaultMode,
|
|
51
|
+
normalizeProvider,
|
|
52
|
+
resolveAwsRegionExtensionConfiguration,
|
|
53
|
+
resolveAwsSdkSigV4Config,
|
|
54
|
+
resolveDefaultRuntimeConfig,
|
|
55
|
+
resolveDefaultsModeConfig,
|
|
56
|
+
resolveEndpoint,
|
|
57
|
+
resolveEndpointConfig,
|
|
58
|
+
resolveHostHeaderConfig,
|
|
59
|
+
resolveHttpHandlerRuntimeConfig,
|
|
60
|
+
resolveRegionConfig,
|
|
61
|
+
resolveRetryConfig,
|
|
62
|
+
resolveUserAgentConfig
|
|
63
|
+
} from "./chunk-GH475CSF.js";
|
|
64
|
+
import {
|
|
65
|
+
loadConfig,
|
|
66
|
+
parseUrl
|
|
67
|
+
} from "./chunk-JHYKYQ5P.js";
|
|
68
|
+
import "./chunk-LBISIOIM.js";
|
|
69
|
+
import "./chunk-DSXFE5X2.js";
|
|
70
|
+
import {
|
|
71
|
+
NodeHttpHandler,
|
|
72
|
+
fromBase64,
|
|
73
|
+
streamCollector,
|
|
74
|
+
toBase64
|
|
75
|
+
} from "./chunk-7NRPMOO4.js";
|
|
76
|
+
import "./chunk-5TWBDDXS.js";
|
|
77
|
+
import {
|
|
78
|
+
fromUtf8,
|
|
79
|
+
toUtf8
|
|
80
|
+
} from "./chunk-ZKH7AMP3.js";
|
|
81
|
+
import "./chunk-XNYTWFP6.js";
|
|
82
|
+
import "./chunk-E7FQOYML.js";
|
|
83
|
+
import "./chunk-2TBBLACH.js";
|
|
84
|
+
import "./chunk-SIAA4J6H.js";
|
|
85
|
+
|
|
86
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js
|
|
87
|
+
var defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
88
|
+
return {
|
|
89
|
+
operation: getSmithyContext(context).operation,
|
|
90
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
91
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
92
|
+
})()
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
96
|
+
return {
|
|
97
|
+
schemeId: "aws.auth#sigv4",
|
|
98
|
+
signingProperties: {
|
|
99
|
+
name: "signin",
|
|
100
|
+
region: authParameters.region
|
|
101
|
+
},
|
|
102
|
+
propertiesExtractor: (config, context) => ({
|
|
103
|
+
signingProperties: {
|
|
104
|
+
config,
|
|
105
|
+
context
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
111
|
+
return {
|
|
112
|
+
schemeId: "smithy.api#noAuth"
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
var defaultSigninHttpAuthSchemeProvider = (authParameters) => {
|
|
116
|
+
const options = [];
|
|
117
|
+
switch (authParameters.operation) {
|
|
118
|
+
case "CreateOAuth2Token": {
|
|
119
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
default: {
|
|
123
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return options;
|
|
127
|
+
};
|
|
128
|
+
var resolveHttpAuthSchemeConfig = (config) => {
|
|
129
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
130
|
+
return Object.assign(config_0, {
|
|
131
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/EndpointParameters.js
|
|
136
|
+
var resolveClientEndpointParameters = (options) => {
|
|
137
|
+
return Object.assign(options, {
|
|
138
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
139
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
140
|
+
defaultSigningName: "signin"
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
var commonParams = {
|
|
144
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
145
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
146
|
+
Region: { type: "builtInParams", name: "region" },
|
|
147
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js
|
|
151
|
+
var u = "required";
|
|
152
|
+
var v = "fn";
|
|
153
|
+
var w = "argv";
|
|
154
|
+
var x = "ref";
|
|
155
|
+
var a = true;
|
|
156
|
+
var b = "isSet";
|
|
157
|
+
var c = "booleanEquals";
|
|
158
|
+
var d = "error";
|
|
159
|
+
var e = "endpoint";
|
|
160
|
+
var f = "tree";
|
|
161
|
+
var g = "PartitionResult";
|
|
162
|
+
var h = "stringEquals";
|
|
163
|
+
var i = { [u]: true, default: false, type: "boolean" };
|
|
164
|
+
var j = { [u]: false, type: "string" };
|
|
165
|
+
var k = { [x]: "Endpoint" };
|
|
166
|
+
var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
|
|
167
|
+
var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
|
|
168
|
+
var n = {};
|
|
169
|
+
var o = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] };
|
|
170
|
+
var p = { [v]: c, [w]: [{ [x]: "UseFIPS" }, false] };
|
|
171
|
+
var q = { [v]: c, [w]: [{ [x]: "UseDualStack" }, false] };
|
|
172
|
+
var r = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] };
|
|
173
|
+
var s = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] };
|
|
174
|
+
var t = [{ [x]: "Region" }];
|
|
175
|
+
var _data = {
|
|
176
|
+
version: "1.0",
|
|
177
|
+
parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j },
|
|
178
|
+
rules: [
|
|
179
|
+
{
|
|
180
|
+
conditions: [{ [v]: b, [w]: [k] }],
|
|
181
|
+
rules: [
|
|
182
|
+
{ conditions: [l], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
|
183
|
+
{
|
|
184
|
+
rules: [
|
|
185
|
+
{
|
|
186
|
+
conditions: [m],
|
|
187
|
+
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
188
|
+
type: d
|
|
189
|
+
},
|
|
190
|
+
{ endpoint: { url: k, properties: n, headers: n }, type: e }
|
|
191
|
+
],
|
|
192
|
+
type: f
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
type: f
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
rules: [
|
|
199
|
+
{
|
|
200
|
+
conditions: [{ [v]: b, [w]: t }],
|
|
201
|
+
rules: [
|
|
202
|
+
{
|
|
203
|
+
conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
|
|
204
|
+
rules: [
|
|
205
|
+
{
|
|
206
|
+
conditions: [{ [v]: h, [w]: [o, "aws"] }, p, q],
|
|
207
|
+
endpoint: { url: "https://{Region}.signin.aws.amazon.com", properties: n, headers: n },
|
|
208
|
+
type: e
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
conditions: [{ [v]: h, [w]: [o, "aws-cn"] }, p, q],
|
|
212
|
+
endpoint: { url: "https://{Region}.signin.amazonaws.cn", properties: n, headers: n },
|
|
213
|
+
type: e
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
conditions: [{ [v]: h, [w]: [o, "aws-us-gov"] }, p, q],
|
|
217
|
+
endpoint: { url: "https://{Region}.signin.amazonaws-us-gov.com", properties: n, headers: n },
|
|
218
|
+
type: e
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
conditions: [l, m],
|
|
222
|
+
rules: [
|
|
223
|
+
{
|
|
224
|
+
conditions: [{ [v]: c, [w]: [a, r] }, s],
|
|
225
|
+
rules: [
|
|
226
|
+
{
|
|
227
|
+
endpoint: {
|
|
228
|
+
url: "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
229
|
+
properties: n,
|
|
230
|
+
headers: n
|
|
231
|
+
},
|
|
232
|
+
type: e
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
type: f
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
239
|
+
type: d
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
type: f
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
conditions: [l, q],
|
|
246
|
+
rules: [
|
|
247
|
+
{
|
|
248
|
+
conditions: [{ [v]: c, [w]: [r, a] }],
|
|
249
|
+
rules: [
|
|
250
|
+
{
|
|
251
|
+
endpoint: {
|
|
252
|
+
url: "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
253
|
+
properties: n,
|
|
254
|
+
headers: n
|
|
255
|
+
},
|
|
256
|
+
type: e
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
type: f
|
|
260
|
+
},
|
|
261
|
+
{ error: "FIPS is enabled but this partition does not support FIPS", type: d }
|
|
262
|
+
],
|
|
263
|
+
type: f
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
conditions: [p, m],
|
|
267
|
+
rules: [
|
|
268
|
+
{
|
|
269
|
+
conditions: [s],
|
|
270
|
+
rules: [
|
|
271
|
+
{
|
|
272
|
+
endpoint: {
|
|
273
|
+
url: "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
274
|
+
properties: n,
|
|
275
|
+
headers: n
|
|
276
|
+
},
|
|
277
|
+
type: e
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
type: f
|
|
281
|
+
},
|
|
282
|
+
{ error: "DualStack is enabled but this partition does not support DualStack", type: d }
|
|
283
|
+
],
|
|
284
|
+
type: f
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
endpoint: { url: "https://signin.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
|
|
288
|
+
type: e
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
type: f
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
type: f
|
|
295
|
+
},
|
|
296
|
+
{ error: "Invalid Configuration: Missing Region", type: d }
|
|
297
|
+
],
|
|
298
|
+
type: f
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
};
|
|
302
|
+
var ruleSet = _data;
|
|
303
|
+
|
|
304
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js
|
|
305
|
+
var cache = new EndpointCache({
|
|
306
|
+
size: 50,
|
|
307
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
|
|
308
|
+
});
|
|
309
|
+
var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
310
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
311
|
+
endpointParams,
|
|
312
|
+
logger: context.logger
|
|
313
|
+
}));
|
|
314
|
+
};
|
|
315
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
316
|
+
|
|
317
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js
|
|
318
|
+
var SigninServiceException = class _SigninServiceException extends ServiceException {
|
|
319
|
+
constructor(options) {
|
|
320
|
+
super(options);
|
|
321
|
+
Object.setPrototypeOf(this, _SigninServiceException.prototype);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js
|
|
326
|
+
var AccessDeniedException = class _AccessDeniedException extends SigninServiceException {
|
|
327
|
+
name = "AccessDeniedException";
|
|
328
|
+
$fault = "client";
|
|
329
|
+
error;
|
|
330
|
+
constructor(opts) {
|
|
331
|
+
super({
|
|
332
|
+
name: "AccessDeniedException",
|
|
333
|
+
$fault: "client",
|
|
334
|
+
...opts
|
|
335
|
+
});
|
|
336
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
337
|
+
this.error = opts.error;
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
var InternalServerException = class _InternalServerException extends SigninServiceException {
|
|
341
|
+
name = "InternalServerException";
|
|
342
|
+
$fault = "server";
|
|
343
|
+
error;
|
|
344
|
+
constructor(opts) {
|
|
345
|
+
super({
|
|
346
|
+
name: "InternalServerException",
|
|
347
|
+
$fault: "server",
|
|
348
|
+
...opts
|
|
349
|
+
});
|
|
350
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
351
|
+
this.error = opts.error;
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
var TooManyRequestsError = class _TooManyRequestsError extends SigninServiceException {
|
|
355
|
+
name = "TooManyRequestsError";
|
|
356
|
+
$fault = "client";
|
|
357
|
+
error;
|
|
358
|
+
constructor(opts) {
|
|
359
|
+
super({
|
|
360
|
+
name: "TooManyRequestsError",
|
|
361
|
+
$fault: "client",
|
|
362
|
+
...opts
|
|
363
|
+
});
|
|
364
|
+
Object.setPrototypeOf(this, _TooManyRequestsError.prototype);
|
|
365
|
+
this.error = opts.error;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
var ValidationException = class _ValidationException extends SigninServiceException {
|
|
369
|
+
name = "ValidationException";
|
|
370
|
+
$fault = "client";
|
|
371
|
+
error;
|
|
372
|
+
constructor(opts) {
|
|
373
|
+
super({
|
|
374
|
+
name: "ValidationException",
|
|
375
|
+
$fault: "client",
|
|
376
|
+
...opts
|
|
377
|
+
});
|
|
378
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
379
|
+
this.error = opts.error;
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js
|
|
384
|
+
var _ADE = "AccessDeniedException";
|
|
385
|
+
var _AT = "AccessToken";
|
|
386
|
+
var _COAT = "CreateOAuth2Token";
|
|
387
|
+
var _COATR = "CreateOAuth2TokenRequest";
|
|
388
|
+
var _COATRB = "CreateOAuth2TokenRequestBody";
|
|
389
|
+
var _COATRBr = "CreateOAuth2TokenResponseBody";
|
|
390
|
+
var _COATRr = "CreateOAuth2TokenResponse";
|
|
391
|
+
var _ISE = "InternalServerException";
|
|
392
|
+
var _RT = "RefreshToken";
|
|
393
|
+
var _TMRE = "TooManyRequestsError";
|
|
394
|
+
var _VE = "ValidationException";
|
|
395
|
+
var _aKI = "accessKeyId";
|
|
396
|
+
var _aT = "accessToken";
|
|
397
|
+
var _c = "client";
|
|
398
|
+
var _cI = "clientId";
|
|
399
|
+
var _cV = "codeVerifier";
|
|
400
|
+
var _co = "code";
|
|
401
|
+
var _e = "error";
|
|
402
|
+
var _eI = "expiresIn";
|
|
403
|
+
var _gT = "grantType";
|
|
404
|
+
var _h = "http";
|
|
405
|
+
var _hE = "httpError";
|
|
406
|
+
var _iT = "idToken";
|
|
407
|
+
var _jN = "jsonName";
|
|
408
|
+
var _m = "message";
|
|
409
|
+
var _rT = "refreshToken";
|
|
410
|
+
var _rU = "redirectUri";
|
|
411
|
+
var _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
|
|
412
|
+
var _sAK = "secretAccessKey";
|
|
413
|
+
var _sT = "sessionToken";
|
|
414
|
+
var _se = "server";
|
|
415
|
+
var _tI = "tokenInput";
|
|
416
|
+
var _tO = "tokenOutput";
|
|
417
|
+
var _tT = "tokenType";
|
|
418
|
+
var n0 = "com.amazonaws.signin";
|
|
419
|
+
var _s_registry = TypeRegistry.for(_s);
|
|
420
|
+
var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
421
|
+
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
422
|
+
var n0_registry = TypeRegistry.for(n0);
|
|
423
|
+
var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0], 2];
|
|
424
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
425
|
+
var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _m], [0, 0], 2];
|
|
426
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
427
|
+
var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0], 2];
|
|
428
|
+
n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError);
|
|
429
|
+
var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0], 2];
|
|
430
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
431
|
+
var errorTypeRegistries = [_s_registry, n0_registry];
|
|
432
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
433
|
+
var AccessToken$ = [
|
|
434
|
+
3,
|
|
435
|
+
n0,
|
|
436
|
+
_AT,
|
|
437
|
+
8,
|
|
438
|
+
[_aKI, _sAK, _sT],
|
|
439
|
+
[
|
|
440
|
+
[0, { [_jN]: _aKI }],
|
|
441
|
+
[0, { [_jN]: _sAK }],
|
|
442
|
+
[0, { [_jN]: _sT }]
|
|
443
|
+
],
|
|
444
|
+
3
|
|
445
|
+
];
|
|
446
|
+
var CreateOAuth2TokenRequest$ = [
|
|
447
|
+
3,
|
|
448
|
+
n0,
|
|
449
|
+
_COATR,
|
|
450
|
+
0,
|
|
451
|
+
[_tI],
|
|
452
|
+
[[() => CreateOAuth2TokenRequestBody$, 16]],
|
|
453
|
+
1
|
|
454
|
+
];
|
|
455
|
+
var CreateOAuth2TokenRequestBody$ = [
|
|
456
|
+
3,
|
|
457
|
+
n0,
|
|
458
|
+
_COATRB,
|
|
459
|
+
0,
|
|
460
|
+
[_cI, _gT, _co, _rU, _cV, _rT],
|
|
461
|
+
[
|
|
462
|
+
[0, { [_jN]: _cI }],
|
|
463
|
+
[0, { [_jN]: _gT }],
|
|
464
|
+
0,
|
|
465
|
+
[0, { [_jN]: _rU }],
|
|
466
|
+
[0, { [_jN]: _cV }],
|
|
467
|
+
[() => RefreshToken, { [_jN]: _rT }]
|
|
468
|
+
],
|
|
469
|
+
2
|
|
470
|
+
];
|
|
471
|
+
var CreateOAuth2TokenResponse$ = [
|
|
472
|
+
3,
|
|
473
|
+
n0,
|
|
474
|
+
_COATRr,
|
|
475
|
+
0,
|
|
476
|
+
[_tO],
|
|
477
|
+
[[() => CreateOAuth2TokenResponseBody$, 16]],
|
|
478
|
+
1
|
|
479
|
+
];
|
|
480
|
+
var CreateOAuth2TokenResponseBody$ = [
|
|
481
|
+
3,
|
|
482
|
+
n0,
|
|
483
|
+
_COATRBr,
|
|
484
|
+
0,
|
|
485
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
486
|
+
[
|
|
487
|
+
[() => AccessToken$, { [_jN]: _aT }],
|
|
488
|
+
[0, { [_jN]: _tT }],
|
|
489
|
+
[1, { [_jN]: _eI }],
|
|
490
|
+
[() => RefreshToken, { [_jN]: _rT }],
|
|
491
|
+
[0, { [_jN]: _iT }]
|
|
492
|
+
],
|
|
493
|
+
4
|
|
494
|
+
];
|
|
495
|
+
var CreateOAuth2Token$ = [
|
|
496
|
+
9,
|
|
497
|
+
n0,
|
|
498
|
+
_COAT,
|
|
499
|
+
{ [_h]: ["POST", "/v1/token", 200] },
|
|
500
|
+
() => CreateOAuth2TokenRequest$,
|
|
501
|
+
() => CreateOAuth2TokenResponse$
|
|
502
|
+
];
|
|
503
|
+
|
|
504
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js
|
|
505
|
+
var getRuntimeConfig = (config) => {
|
|
506
|
+
return {
|
|
507
|
+
apiVersion: "2023-01-01",
|
|
508
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
509
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
510
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
511
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
512
|
+
extensions: config?.extensions ?? [],
|
|
513
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider,
|
|
514
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
515
|
+
{
|
|
516
|
+
schemeId: "aws.auth#sigv4",
|
|
517
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
518
|
+
signer: new AwsSdkSigV4Signer()
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
schemeId: "smithy.api#noAuth",
|
|
522
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
523
|
+
signer: new NoAuthSigner()
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
527
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
528
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
529
|
+
defaultNamespace: "com.amazonaws.signin",
|
|
530
|
+
errorTypeRegistries,
|
|
531
|
+
version: "2023-01-01",
|
|
532
|
+
serviceTarget: "Signin"
|
|
533
|
+
},
|
|
534
|
+
serviceId: config?.serviceId ?? "Signin",
|
|
535
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
536
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
537
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js
|
|
542
|
+
var getRuntimeConfig2 = (config) => {
|
|
543
|
+
emitWarningIfUnsupportedVersion2(process.version);
|
|
544
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
545
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
546
|
+
const clientSharedValues = getRuntimeConfig(config);
|
|
547
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
548
|
+
const loaderConfig = {
|
|
549
|
+
profile: config?.profile,
|
|
550
|
+
logger: clientSharedValues.logger
|
|
551
|
+
};
|
|
552
|
+
return {
|
|
553
|
+
...clientSharedValues,
|
|
554
|
+
...config,
|
|
555
|
+
runtime: "node",
|
|
556
|
+
defaultsMode,
|
|
557
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
558
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
559
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
|
|
560
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
561
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
562
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
563
|
+
retryMode: config?.retryMode ?? loadConfig({
|
|
564
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
565
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
|
|
566
|
+
}, config),
|
|
567
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
568
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
569
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
570
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
571
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js
|
|
576
|
+
var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
577
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
578
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
579
|
+
let _credentials = runtimeConfig.credentials;
|
|
580
|
+
return {
|
|
581
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
582
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
583
|
+
if (index === -1) {
|
|
584
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
585
|
+
} else {
|
|
586
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
httpAuthSchemes() {
|
|
590
|
+
return _httpAuthSchemes;
|
|
591
|
+
},
|
|
592
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
593
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
594
|
+
},
|
|
595
|
+
httpAuthSchemeProvider() {
|
|
596
|
+
return _httpAuthSchemeProvider;
|
|
597
|
+
},
|
|
598
|
+
setCredentials(credentials) {
|
|
599
|
+
_credentials = credentials;
|
|
600
|
+
},
|
|
601
|
+
credentials() {
|
|
602
|
+
return _credentials;
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
var resolveHttpAuthRuntimeConfig = (config) => {
|
|
607
|
+
return {
|
|
608
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
609
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
610
|
+
credentials: config.credentials()
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js
|
|
615
|
+
var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
616
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
617
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
618
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js
|
|
622
|
+
var SigninClient = class extends Client {
|
|
623
|
+
config;
|
|
624
|
+
constructor(...[configuration]) {
|
|
625
|
+
const _config_0 = getRuntimeConfig2(configuration || {});
|
|
626
|
+
super(_config_0);
|
|
627
|
+
this.initConfig = _config_0;
|
|
628
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
629
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
630
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
631
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
632
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
633
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
634
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
635
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
636
|
+
this.config = _config_8;
|
|
637
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
638
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
639
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
640
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
641
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
642
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
643
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
644
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
645
|
+
httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider,
|
|
646
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
647
|
+
"aws.auth#sigv4": config.credentials
|
|
648
|
+
})
|
|
649
|
+
}));
|
|
650
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
651
|
+
}
|
|
652
|
+
destroy() {
|
|
653
|
+
super.destroy();
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js
|
|
658
|
+
var CreateOAuth2TokenCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
|
|
659
|
+
return [getEndpointPlugin(config, Command2.getEndpointParameterInstructions())];
|
|
660
|
+
}).s("Signin", "CreateOAuth2Token", {}).n("SigninClient", "CreateOAuth2TokenCommand").sc(CreateOAuth2Token$).build() {
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js
|
|
664
|
+
var commands = {
|
|
665
|
+
CreateOAuth2TokenCommand
|
|
666
|
+
};
|
|
667
|
+
var Signin = class extends SigninClient {
|
|
668
|
+
};
|
|
669
|
+
createAggregatedClient(commands, Signin);
|
|
670
|
+
|
|
671
|
+
// ../../node_modules/.pnpm/@aws-sdk+nested-clients@3.996.18_aws-crt@1.30.0/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js
|
|
672
|
+
var OAuth2ErrorCode = {
|
|
673
|
+
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
|
|
674
|
+
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
675
|
+
INVALID_REQUEST: "INVALID_REQUEST",
|
|
676
|
+
SERVER_ERROR: "server_error",
|
|
677
|
+
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
678
|
+
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED"
|
|
679
|
+
};
|
|
680
|
+
export {
|
|
681
|
+
Command as $Command,
|
|
682
|
+
AccessDeniedException,
|
|
683
|
+
AccessDeniedException$,
|
|
684
|
+
AccessToken$,
|
|
685
|
+
CreateOAuth2Token$,
|
|
686
|
+
CreateOAuth2TokenCommand,
|
|
687
|
+
CreateOAuth2TokenRequest$,
|
|
688
|
+
CreateOAuth2TokenRequestBody$,
|
|
689
|
+
CreateOAuth2TokenResponse$,
|
|
690
|
+
CreateOAuth2TokenResponseBody$,
|
|
691
|
+
InternalServerException,
|
|
692
|
+
InternalServerException$,
|
|
693
|
+
OAuth2ErrorCode,
|
|
694
|
+
Signin,
|
|
695
|
+
SigninClient,
|
|
696
|
+
SigninServiceException,
|
|
697
|
+
SigninServiceException$,
|
|
698
|
+
TooManyRequestsError,
|
|
699
|
+
TooManyRequestsError$,
|
|
700
|
+
ValidationException,
|
|
701
|
+
ValidationException$,
|
|
702
|
+
Client as __Client,
|
|
703
|
+
errorTypeRegistries
|
|
704
|
+
};
|