@cdk8s/awscdk-resolver 0.0.403 → 0.0.404
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +277 -270
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +3 -10
- package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +0 -26
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +265 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +10 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -24
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +26 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -18
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +246 -310
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +3 -10
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +0 -13
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +211 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +10 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +0 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +8 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +0 -6
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +28 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/package.json +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +0 -210
- package/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +0 -38
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +0 -257
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -11
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/protocols/Aws_restJson1.d.ts +0 -17
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class SSOOIDCClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,17 +110,17 @@ class SSOOIDCClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class SSOOIDCServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let SSOOIDCServiceException$1 = class SSOOIDCServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
120
|
const AccessDeniedExceptionReason = {
|
|
121
121
|
KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
|
|
122
122
|
};
|
|
123
|
-
class AccessDeniedException extends SSOOIDCServiceException {
|
|
123
|
+
let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCServiceException$1 {
|
|
124
124
|
name = "AccessDeniedException";
|
|
125
125
|
$fault = "client";
|
|
126
126
|
error;
|
|
@@ -137,8 +137,8 @@ class AccessDeniedException extends SSOOIDCServiceException {
|
|
|
137
137
|
this.reason = opts.reason;
|
|
138
138
|
this.error_description = opts.error_description;
|
|
139
139
|
}
|
|
140
|
-
}
|
|
141
|
-
class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
140
|
+
};
|
|
141
|
+
let AuthorizationPendingException$1 = class AuthorizationPendingException extends SSOOIDCServiceException$1 {
|
|
142
142
|
name = "AuthorizationPendingException";
|
|
143
143
|
$fault = "client";
|
|
144
144
|
error;
|
|
@@ -153,20 +153,8 @@ class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
|
153
153
|
this.error = opts.error;
|
|
154
154
|
this.error_description = opts.error_description;
|
|
155
155
|
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
...obj,
|
|
159
|
-
...(obj.clientSecret && { clientSecret: smithyClient.SENSITIVE_STRING }),
|
|
160
|
-
...(obj.refreshToken && { refreshToken: smithyClient.SENSITIVE_STRING }),
|
|
161
|
-
...(obj.codeVerifier && { codeVerifier: smithyClient.SENSITIVE_STRING }),
|
|
162
|
-
});
|
|
163
|
-
const CreateTokenResponseFilterSensitiveLog = (obj) => ({
|
|
164
|
-
...obj,
|
|
165
|
-
...(obj.accessToken && { accessToken: smithyClient.SENSITIVE_STRING }),
|
|
166
|
-
...(obj.refreshToken && { refreshToken: smithyClient.SENSITIVE_STRING }),
|
|
167
|
-
...(obj.idToken && { idToken: smithyClient.SENSITIVE_STRING }),
|
|
168
|
-
});
|
|
169
|
-
class ExpiredTokenException extends SSOOIDCServiceException {
|
|
156
|
+
};
|
|
157
|
+
let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCServiceException$1 {
|
|
170
158
|
name = "ExpiredTokenException";
|
|
171
159
|
$fault = "client";
|
|
172
160
|
error;
|
|
@@ -181,8 +169,8 @@ class ExpiredTokenException extends SSOOIDCServiceException {
|
|
|
181
169
|
this.error = opts.error;
|
|
182
170
|
this.error_description = opts.error_description;
|
|
183
171
|
}
|
|
184
|
-
}
|
|
185
|
-
class InternalServerException extends SSOOIDCServiceException {
|
|
172
|
+
};
|
|
173
|
+
let InternalServerException$1 = class InternalServerException extends SSOOIDCServiceException$1 {
|
|
186
174
|
name = "InternalServerException";
|
|
187
175
|
$fault = "server";
|
|
188
176
|
error;
|
|
@@ -197,8 +185,8 @@ class InternalServerException extends SSOOIDCServiceException {
|
|
|
197
185
|
this.error = opts.error;
|
|
198
186
|
this.error_description = opts.error_description;
|
|
199
187
|
}
|
|
200
|
-
}
|
|
201
|
-
class InvalidClientException extends SSOOIDCServiceException {
|
|
188
|
+
};
|
|
189
|
+
let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServiceException$1 {
|
|
202
190
|
name = "InvalidClientException";
|
|
203
191
|
$fault = "client";
|
|
204
192
|
error;
|
|
@@ -213,8 +201,8 @@ class InvalidClientException extends SSOOIDCServiceException {
|
|
|
213
201
|
this.error = opts.error;
|
|
214
202
|
this.error_description = opts.error_description;
|
|
215
203
|
}
|
|
216
|
-
}
|
|
217
|
-
class InvalidGrantException extends SSOOIDCServiceException {
|
|
204
|
+
};
|
|
205
|
+
let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCServiceException$1 {
|
|
218
206
|
name = "InvalidGrantException";
|
|
219
207
|
$fault = "client";
|
|
220
208
|
error;
|
|
@@ -229,14 +217,14 @@ class InvalidGrantException extends SSOOIDCServiceException {
|
|
|
229
217
|
this.error = opts.error;
|
|
230
218
|
this.error_description = opts.error_description;
|
|
231
219
|
}
|
|
232
|
-
}
|
|
220
|
+
};
|
|
233
221
|
const InvalidRequestExceptionReason = {
|
|
234
222
|
KMS_DISABLED_KEY: "KMS_DisabledException",
|
|
235
223
|
KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
|
|
236
224
|
KMS_INVALID_STATE: "KMS_InvalidStateException",
|
|
237
225
|
KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
|
|
238
226
|
};
|
|
239
|
-
class InvalidRequestException extends SSOOIDCServiceException {
|
|
227
|
+
let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCServiceException$1 {
|
|
240
228
|
name = "InvalidRequestException";
|
|
241
229
|
$fault = "client";
|
|
242
230
|
error;
|
|
@@ -253,8 +241,8 @@ class InvalidRequestException extends SSOOIDCServiceException {
|
|
|
253
241
|
this.reason = opts.reason;
|
|
254
242
|
this.error_description = opts.error_description;
|
|
255
243
|
}
|
|
256
|
-
}
|
|
257
|
-
class InvalidScopeException extends SSOOIDCServiceException {
|
|
244
|
+
};
|
|
245
|
+
let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCServiceException$1 {
|
|
258
246
|
name = "InvalidScopeException";
|
|
259
247
|
$fault = "client";
|
|
260
248
|
error;
|
|
@@ -269,8 +257,8 @@ class InvalidScopeException extends SSOOIDCServiceException {
|
|
|
269
257
|
this.error = opts.error;
|
|
270
258
|
this.error_description = opts.error_description;
|
|
271
259
|
}
|
|
272
|
-
}
|
|
273
|
-
class SlowDownException extends SSOOIDCServiceException {
|
|
260
|
+
};
|
|
261
|
+
let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceException$1 {
|
|
274
262
|
name = "SlowDownException";
|
|
275
263
|
$fault = "client";
|
|
276
264
|
error;
|
|
@@ -285,8 +273,8 @@ class SlowDownException extends SSOOIDCServiceException {
|
|
|
285
273
|
this.error = opts.error;
|
|
286
274
|
this.error_description = opts.error_description;
|
|
287
275
|
}
|
|
288
|
-
}
|
|
289
|
-
class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
276
|
+
};
|
|
277
|
+
let UnauthorizedClientException$1 = class UnauthorizedClientException extends SSOOIDCServiceException$1 {
|
|
290
278
|
name = "UnauthorizedClientException";
|
|
291
279
|
$fault = "client";
|
|
292
280
|
error;
|
|
@@ -301,8 +289,8 @@ class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
|
301
289
|
this.error = opts.error;
|
|
302
290
|
this.error_description = opts.error_description;
|
|
303
291
|
}
|
|
304
|
-
}
|
|
305
|
-
class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
292
|
+
};
|
|
293
|
+
let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extends SSOOIDCServiceException$1 {
|
|
306
294
|
name = "UnsupportedGrantTypeException";
|
|
307
295
|
$fault = "client";
|
|
308
296
|
error;
|
|
@@ -317,274 +305,224 @@ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
|
317
305
|
this.error = opts.error;
|
|
318
306
|
this.error_description = opts.error_description;
|
|
319
307
|
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
const se_CreateTokenCommand = async (input, context) => {
|
|
323
|
-
const b = core.requestBuilder(input, context);
|
|
324
|
-
const headers = {
|
|
325
|
-
"content-type": "application/json",
|
|
326
|
-
};
|
|
327
|
-
b.bp("/token");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
330
|
-
clientId: [],
|
|
331
|
-
clientSecret: [],
|
|
332
|
-
code: [],
|
|
333
|
-
codeVerifier: [],
|
|
334
|
-
deviceCode: [],
|
|
335
|
-
grantType: [],
|
|
336
|
-
redirectUri: [],
|
|
337
|
-
refreshToken: [],
|
|
338
|
-
scope: (_) => smithyClient._json(_),
|
|
339
|
-
}));
|
|
340
|
-
b.m("POST").h(headers).b(body);
|
|
341
|
-
return b.build();
|
|
342
308
|
};
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
});
|
|
551
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
552
|
-
};
|
|
553
|
-
const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
|
|
554
|
-
const contents = smithyClient.map({});
|
|
555
|
-
const data = parsedOutput.body;
|
|
556
|
-
const doc = smithyClient.take(data, {
|
|
557
|
-
error: smithyClient.expectString,
|
|
558
|
-
error_description: smithyClient.expectString,
|
|
559
|
-
});
|
|
560
|
-
Object.assign(contents, doc);
|
|
561
|
-
const exception = new UnsupportedGrantTypeException({
|
|
562
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
563
|
-
...contents,
|
|
564
|
-
});
|
|
565
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
566
|
-
};
|
|
567
|
-
const deserializeMetadata = (output) => ({
|
|
568
|
-
httpStatusCode: output.statusCode,
|
|
569
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
570
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
571
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
572
|
-
});
|
|
309
|
+
|
|
310
|
+
const _ADE = "AccessDeniedException";
|
|
311
|
+
const _APE = "AuthorizationPendingException";
|
|
312
|
+
const _AT = "AccessToken";
|
|
313
|
+
const _CS = "ClientSecret";
|
|
314
|
+
const _CT = "CreateToken";
|
|
315
|
+
const _CTR = "CreateTokenRequest";
|
|
316
|
+
const _CTRr = "CreateTokenResponse";
|
|
317
|
+
const _CV = "CodeVerifier";
|
|
318
|
+
const _ETE = "ExpiredTokenException";
|
|
319
|
+
const _ICE = "InvalidClientException";
|
|
320
|
+
const _IGE = "InvalidGrantException";
|
|
321
|
+
const _IRE = "InvalidRequestException";
|
|
322
|
+
const _ISE = "InternalServerException";
|
|
323
|
+
const _ISEn = "InvalidScopeException";
|
|
324
|
+
const _IT = "IdToken";
|
|
325
|
+
const _RT = "RefreshToken";
|
|
326
|
+
const _SDE = "SlowDownException";
|
|
327
|
+
const _UCE = "UnauthorizedClientException";
|
|
328
|
+
const _UGTE = "UnsupportedGrantTypeException";
|
|
329
|
+
const _aT = "accessToken";
|
|
330
|
+
const _c = "client";
|
|
331
|
+
const _cI = "clientId";
|
|
332
|
+
const _cS = "clientSecret";
|
|
333
|
+
const _cV = "codeVerifier";
|
|
334
|
+
const _co = "code";
|
|
335
|
+
const _dC = "deviceCode";
|
|
336
|
+
const _e = "error";
|
|
337
|
+
const _eI = "expiresIn";
|
|
338
|
+
const _ed = "error_description";
|
|
339
|
+
const _gT = "grantType";
|
|
340
|
+
const _h = "http";
|
|
341
|
+
const _hE = "httpError";
|
|
342
|
+
const _iT = "idToken";
|
|
343
|
+
const _r = "reason";
|
|
344
|
+
const _rT = "refreshToken";
|
|
345
|
+
const _rU = "redirectUri";
|
|
346
|
+
const _s = "scope";
|
|
347
|
+
const _se = "server";
|
|
348
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
349
|
+
const _tT = "tokenType";
|
|
350
|
+
const n0 = "com.amazonaws.ssooidc";
|
|
351
|
+
var AccessToken = [0, n0, _AT, 8, 0];
|
|
352
|
+
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
353
|
+
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
354
|
+
var IdToken = [0, n0, _IT, 8, 0];
|
|
355
|
+
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
356
|
+
var AccessDeniedException = [
|
|
357
|
+
-3,
|
|
358
|
+
n0,
|
|
359
|
+
_ADE,
|
|
360
|
+
{
|
|
361
|
+
[_e]: _c,
|
|
362
|
+
[_hE]: 400,
|
|
363
|
+
},
|
|
364
|
+
[_e, _r, _ed],
|
|
365
|
+
[0, 0, 0],
|
|
366
|
+
];
|
|
367
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
368
|
+
var AuthorizationPendingException = [
|
|
369
|
+
-3,
|
|
370
|
+
n0,
|
|
371
|
+
_APE,
|
|
372
|
+
{
|
|
373
|
+
[_e]: _c,
|
|
374
|
+
[_hE]: 400,
|
|
375
|
+
},
|
|
376
|
+
[_e, _ed],
|
|
377
|
+
[0, 0],
|
|
378
|
+
];
|
|
379
|
+
schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException, AuthorizationPendingException$1);
|
|
380
|
+
var CreateTokenRequest = [
|
|
381
|
+
3,
|
|
382
|
+
n0,
|
|
383
|
+
_CTR,
|
|
384
|
+
0,
|
|
385
|
+
[_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
|
|
386
|
+
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
387
|
+
];
|
|
388
|
+
var CreateTokenResponse = [
|
|
389
|
+
3,
|
|
390
|
+
n0,
|
|
391
|
+
_CTRr,
|
|
392
|
+
0,
|
|
393
|
+
[_aT, _tT, _eI, _rT, _iT],
|
|
394
|
+
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
|
|
395
|
+
];
|
|
396
|
+
var ExpiredTokenException = [
|
|
397
|
+
-3,
|
|
398
|
+
n0,
|
|
399
|
+
_ETE,
|
|
400
|
+
{
|
|
401
|
+
[_e]: _c,
|
|
402
|
+
[_hE]: 400,
|
|
403
|
+
},
|
|
404
|
+
[_e, _ed],
|
|
405
|
+
[0, 0],
|
|
406
|
+
];
|
|
407
|
+
schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1);
|
|
408
|
+
var InternalServerException = [
|
|
409
|
+
-3,
|
|
410
|
+
n0,
|
|
411
|
+
_ISE,
|
|
412
|
+
{
|
|
413
|
+
[_e]: _se,
|
|
414
|
+
[_hE]: 500,
|
|
415
|
+
},
|
|
416
|
+
[_e, _ed],
|
|
417
|
+
[0, 0],
|
|
418
|
+
];
|
|
419
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
420
|
+
var InvalidClientException = [
|
|
421
|
+
-3,
|
|
422
|
+
n0,
|
|
423
|
+
_ICE,
|
|
424
|
+
{
|
|
425
|
+
[_e]: _c,
|
|
426
|
+
[_hE]: 401,
|
|
427
|
+
},
|
|
428
|
+
[_e, _ed],
|
|
429
|
+
[0, 0],
|
|
430
|
+
];
|
|
431
|
+
schema.TypeRegistry.for(n0).registerError(InvalidClientException, InvalidClientException$1);
|
|
432
|
+
var InvalidGrantException = [
|
|
433
|
+
-3,
|
|
434
|
+
n0,
|
|
435
|
+
_IGE,
|
|
436
|
+
{
|
|
437
|
+
[_e]: _c,
|
|
438
|
+
[_hE]: 400,
|
|
439
|
+
},
|
|
440
|
+
[_e, _ed],
|
|
441
|
+
[0, 0],
|
|
442
|
+
];
|
|
443
|
+
schema.TypeRegistry.for(n0).registerError(InvalidGrantException, InvalidGrantException$1);
|
|
444
|
+
var InvalidRequestException = [
|
|
445
|
+
-3,
|
|
446
|
+
n0,
|
|
447
|
+
_IRE,
|
|
448
|
+
{
|
|
449
|
+
[_e]: _c,
|
|
450
|
+
[_hE]: 400,
|
|
451
|
+
},
|
|
452
|
+
[_e, _r, _ed],
|
|
453
|
+
[0, 0, 0],
|
|
454
|
+
];
|
|
455
|
+
schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
|
|
456
|
+
var InvalidScopeException = [
|
|
457
|
+
-3,
|
|
458
|
+
n0,
|
|
459
|
+
_ISEn,
|
|
460
|
+
{
|
|
461
|
+
[_e]: _c,
|
|
462
|
+
[_hE]: 400,
|
|
463
|
+
},
|
|
464
|
+
[_e, _ed],
|
|
465
|
+
[0, 0],
|
|
466
|
+
];
|
|
467
|
+
schema.TypeRegistry.for(n0).registerError(InvalidScopeException, InvalidScopeException$1);
|
|
468
|
+
var SlowDownException = [
|
|
469
|
+
-3,
|
|
470
|
+
n0,
|
|
471
|
+
_SDE,
|
|
472
|
+
{
|
|
473
|
+
[_e]: _c,
|
|
474
|
+
[_hE]: 400,
|
|
475
|
+
},
|
|
476
|
+
[_e, _ed],
|
|
477
|
+
[0, 0],
|
|
478
|
+
];
|
|
479
|
+
schema.TypeRegistry.for(n0).registerError(SlowDownException, SlowDownException$1);
|
|
480
|
+
var UnauthorizedClientException = [
|
|
481
|
+
-3,
|
|
482
|
+
n0,
|
|
483
|
+
_UCE,
|
|
484
|
+
{
|
|
485
|
+
[_e]: _c,
|
|
486
|
+
[_hE]: 400,
|
|
487
|
+
},
|
|
488
|
+
[_e, _ed],
|
|
489
|
+
[0, 0],
|
|
490
|
+
];
|
|
491
|
+
schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException, UnauthorizedClientException$1);
|
|
492
|
+
var UnsupportedGrantTypeException = [
|
|
493
|
+
-3,
|
|
494
|
+
n0,
|
|
495
|
+
_UGTE,
|
|
496
|
+
{
|
|
497
|
+
[_e]: _c,
|
|
498
|
+
[_hE]: 400,
|
|
499
|
+
},
|
|
500
|
+
[_e, _ed],
|
|
501
|
+
[0, 0],
|
|
502
|
+
];
|
|
503
|
+
schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, UnsupportedGrantTypeException$1);
|
|
504
|
+
var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
|
505
|
+
schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, SSOOIDCServiceException$1);
|
|
506
|
+
var CreateToken = [
|
|
507
|
+
9,
|
|
508
|
+
n0,
|
|
509
|
+
_CT,
|
|
510
|
+
{
|
|
511
|
+
[_h]: ["POST", "/token", 200],
|
|
512
|
+
},
|
|
513
|
+
() => CreateTokenRequest,
|
|
514
|
+
() => CreateTokenResponse,
|
|
515
|
+
];
|
|
573
516
|
|
|
574
517
|
class CreateTokenCommand extends smithyClient.Command
|
|
575
518
|
.classBuilder()
|
|
576
519
|
.ep(commonParams)
|
|
577
520
|
.m(function (Command, cs, config, o) {
|
|
578
|
-
return [
|
|
579
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
580
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
581
|
-
];
|
|
521
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
582
522
|
})
|
|
583
523
|
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
584
524
|
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
585
|
-
.
|
|
586
|
-
.ser(se_CreateTokenCommand)
|
|
587
|
-
.de(de_CreateTokenCommand)
|
|
525
|
+
.sc(CreateToken)
|
|
588
526
|
.build() {
|
|
589
527
|
}
|
|
590
528
|
|
|
@@ -603,22 +541,20 @@ Object.defineProperty(exports, "__Client", {
|
|
|
603
541
|
enumerable: true,
|
|
604
542
|
get: function () { return smithyClient.Client; }
|
|
605
543
|
});
|
|
606
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
544
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
607
545
|
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
608
|
-
exports.AuthorizationPendingException = AuthorizationPendingException;
|
|
546
|
+
exports.AuthorizationPendingException = AuthorizationPendingException$1;
|
|
609
547
|
exports.CreateTokenCommand = CreateTokenCommand;
|
|
610
|
-
exports.
|
|
611
|
-
exports.
|
|
612
|
-
exports.
|
|
613
|
-
exports.
|
|
614
|
-
exports.
|
|
615
|
-
exports.InvalidGrantException = InvalidGrantException;
|
|
616
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
548
|
+
exports.ExpiredTokenException = ExpiredTokenException$1;
|
|
549
|
+
exports.InternalServerException = InternalServerException$1;
|
|
550
|
+
exports.InvalidClientException = InvalidClientException$1;
|
|
551
|
+
exports.InvalidGrantException = InvalidGrantException$1;
|
|
552
|
+
exports.InvalidRequestException = InvalidRequestException$1;
|
|
617
553
|
exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
|
|
618
|
-
exports.InvalidScopeException = InvalidScopeException;
|
|
554
|
+
exports.InvalidScopeException = InvalidScopeException$1;
|
|
619
555
|
exports.SSOOIDC = SSOOIDC;
|
|
620
556
|
exports.SSOOIDCClient = SSOOIDCClient;
|
|
621
|
-
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|
|
622
|
-
exports.SlowDownException = SlowDownException;
|
|
623
|
-
exports.UnauthorizedClientException = UnauthorizedClientException;
|
|
624
|
-
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
|
|
557
|
+
exports.SSOOIDCServiceException = SSOOIDCServiceException$1;
|
|
558
|
+
exports.SlowDownException = SlowDownException$1;
|
|
559
|
+
exports.UnauthorizedClientException = UnauthorizedClientException$1;
|
|
560
|
+
exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException$1;
|