@aws-sdk/client-sso-oidc 3.987.0 → 3.988.0
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/dist-cjs/index.js +23 -519
- package/dist-cjs/models/SSOOIDCServiceException.js +12 -0
- package/dist-cjs/models/errors.js +250 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +246 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +73 -67
- package/dist-types/schemas/schemas_0.d.ts +16 -9
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -9
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var SSOOIDCServiceException = require('./models/SSOOIDCServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -110,478 +113,6 @@ class SSOOIDCClient extends smithyClient.Client {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class SSOOIDCServiceException extends smithyClient.ServiceException {
|
|
114
|
-
constructor(options) {
|
|
115
|
-
super(options);
|
|
116
|
-
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
class AccessDeniedException extends SSOOIDCServiceException {
|
|
121
|
-
name = "AccessDeniedException";
|
|
122
|
-
$fault = "client";
|
|
123
|
-
error;
|
|
124
|
-
reason;
|
|
125
|
-
error_description;
|
|
126
|
-
constructor(opts) {
|
|
127
|
-
super({
|
|
128
|
-
name: "AccessDeniedException",
|
|
129
|
-
$fault: "client",
|
|
130
|
-
...opts,
|
|
131
|
-
});
|
|
132
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
133
|
-
this.error = opts.error;
|
|
134
|
-
this.reason = opts.reason;
|
|
135
|
-
this.error_description = opts.error_description;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
class AuthorizationPendingException extends SSOOIDCServiceException {
|
|
139
|
-
name = "AuthorizationPendingException";
|
|
140
|
-
$fault = "client";
|
|
141
|
-
error;
|
|
142
|
-
error_description;
|
|
143
|
-
constructor(opts) {
|
|
144
|
-
super({
|
|
145
|
-
name: "AuthorizationPendingException",
|
|
146
|
-
$fault: "client",
|
|
147
|
-
...opts,
|
|
148
|
-
});
|
|
149
|
-
Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
|
|
150
|
-
this.error = opts.error;
|
|
151
|
-
this.error_description = opts.error_description;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
class ExpiredTokenException extends SSOOIDCServiceException {
|
|
155
|
-
name = "ExpiredTokenException";
|
|
156
|
-
$fault = "client";
|
|
157
|
-
error;
|
|
158
|
-
error_description;
|
|
159
|
-
constructor(opts) {
|
|
160
|
-
super({
|
|
161
|
-
name: "ExpiredTokenException",
|
|
162
|
-
$fault: "client",
|
|
163
|
-
...opts,
|
|
164
|
-
});
|
|
165
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
166
|
-
this.error = opts.error;
|
|
167
|
-
this.error_description = opts.error_description;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
class InternalServerException extends SSOOIDCServiceException {
|
|
171
|
-
name = "InternalServerException";
|
|
172
|
-
$fault = "server";
|
|
173
|
-
error;
|
|
174
|
-
error_description;
|
|
175
|
-
constructor(opts) {
|
|
176
|
-
super({
|
|
177
|
-
name: "InternalServerException",
|
|
178
|
-
$fault: "server",
|
|
179
|
-
...opts,
|
|
180
|
-
});
|
|
181
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
182
|
-
this.error = opts.error;
|
|
183
|
-
this.error_description = opts.error_description;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
class InvalidClientException extends SSOOIDCServiceException {
|
|
187
|
-
name = "InvalidClientException";
|
|
188
|
-
$fault = "client";
|
|
189
|
-
error;
|
|
190
|
-
error_description;
|
|
191
|
-
constructor(opts) {
|
|
192
|
-
super({
|
|
193
|
-
name: "InvalidClientException",
|
|
194
|
-
$fault: "client",
|
|
195
|
-
...opts,
|
|
196
|
-
});
|
|
197
|
-
Object.setPrototypeOf(this, InvalidClientException.prototype);
|
|
198
|
-
this.error = opts.error;
|
|
199
|
-
this.error_description = opts.error_description;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
class InvalidGrantException extends SSOOIDCServiceException {
|
|
203
|
-
name = "InvalidGrantException";
|
|
204
|
-
$fault = "client";
|
|
205
|
-
error;
|
|
206
|
-
error_description;
|
|
207
|
-
constructor(opts) {
|
|
208
|
-
super({
|
|
209
|
-
name: "InvalidGrantException",
|
|
210
|
-
$fault: "client",
|
|
211
|
-
...opts,
|
|
212
|
-
});
|
|
213
|
-
Object.setPrototypeOf(this, InvalidGrantException.prototype);
|
|
214
|
-
this.error = opts.error;
|
|
215
|
-
this.error_description = opts.error_description;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
class InvalidRequestException extends SSOOIDCServiceException {
|
|
219
|
-
name = "InvalidRequestException";
|
|
220
|
-
$fault = "client";
|
|
221
|
-
error;
|
|
222
|
-
reason;
|
|
223
|
-
error_description;
|
|
224
|
-
constructor(opts) {
|
|
225
|
-
super({
|
|
226
|
-
name: "InvalidRequestException",
|
|
227
|
-
$fault: "client",
|
|
228
|
-
...opts,
|
|
229
|
-
});
|
|
230
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
231
|
-
this.error = opts.error;
|
|
232
|
-
this.reason = opts.reason;
|
|
233
|
-
this.error_description = opts.error_description;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
class InvalidScopeException extends SSOOIDCServiceException {
|
|
237
|
-
name = "InvalidScopeException";
|
|
238
|
-
$fault = "client";
|
|
239
|
-
error;
|
|
240
|
-
error_description;
|
|
241
|
-
constructor(opts) {
|
|
242
|
-
super({
|
|
243
|
-
name: "InvalidScopeException",
|
|
244
|
-
$fault: "client",
|
|
245
|
-
...opts,
|
|
246
|
-
});
|
|
247
|
-
Object.setPrototypeOf(this, InvalidScopeException.prototype);
|
|
248
|
-
this.error = opts.error;
|
|
249
|
-
this.error_description = opts.error_description;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
class SlowDownException extends SSOOIDCServiceException {
|
|
253
|
-
name = "SlowDownException";
|
|
254
|
-
$fault = "client";
|
|
255
|
-
error;
|
|
256
|
-
error_description;
|
|
257
|
-
constructor(opts) {
|
|
258
|
-
super({
|
|
259
|
-
name: "SlowDownException",
|
|
260
|
-
$fault: "client",
|
|
261
|
-
...opts,
|
|
262
|
-
});
|
|
263
|
-
Object.setPrototypeOf(this, SlowDownException.prototype);
|
|
264
|
-
this.error = opts.error;
|
|
265
|
-
this.error_description = opts.error_description;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
class UnauthorizedClientException extends SSOOIDCServiceException {
|
|
269
|
-
name = "UnauthorizedClientException";
|
|
270
|
-
$fault = "client";
|
|
271
|
-
error;
|
|
272
|
-
error_description;
|
|
273
|
-
constructor(opts) {
|
|
274
|
-
super({
|
|
275
|
-
name: "UnauthorizedClientException",
|
|
276
|
-
$fault: "client",
|
|
277
|
-
...opts,
|
|
278
|
-
});
|
|
279
|
-
Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
|
|
280
|
-
this.error = opts.error;
|
|
281
|
-
this.error_description = opts.error_description;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
285
|
-
name = "UnsupportedGrantTypeException";
|
|
286
|
-
$fault = "client";
|
|
287
|
-
error;
|
|
288
|
-
error_description;
|
|
289
|
-
constructor(opts) {
|
|
290
|
-
super({
|
|
291
|
-
name: "UnsupportedGrantTypeException",
|
|
292
|
-
$fault: "client",
|
|
293
|
-
...opts,
|
|
294
|
-
});
|
|
295
|
-
Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
|
|
296
|
-
this.error = opts.error;
|
|
297
|
-
this.error_description = opts.error_description;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
class InvalidRequestRegionException extends SSOOIDCServiceException {
|
|
301
|
-
name = "InvalidRequestRegionException";
|
|
302
|
-
$fault = "client";
|
|
303
|
-
error;
|
|
304
|
-
error_description;
|
|
305
|
-
endpoint;
|
|
306
|
-
region;
|
|
307
|
-
constructor(opts) {
|
|
308
|
-
super({
|
|
309
|
-
name: "InvalidRequestRegionException",
|
|
310
|
-
$fault: "client",
|
|
311
|
-
...opts,
|
|
312
|
-
});
|
|
313
|
-
Object.setPrototypeOf(this, InvalidRequestRegionException.prototype);
|
|
314
|
-
this.error = opts.error;
|
|
315
|
-
this.error_description = opts.error_description;
|
|
316
|
-
this.endpoint = opts.endpoint;
|
|
317
|
-
this.region = opts.region;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
class InvalidClientMetadataException extends SSOOIDCServiceException {
|
|
321
|
-
name = "InvalidClientMetadataException";
|
|
322
|
-
$fault = "client";
|
|
323
|
-
error;
|
|
324
|
-
error_description;
|
|
325
|
-
constructor(opts) {
|
|
326
|
-
super({
|
|
327
|
-
name: "InvalidClientMetadataException",
|
|
328
|
-
$fault: "client",
|
|
329
|
-
...opts,
|
|
330
|
-
});
|
|
331
|
-
Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
|
|
332
|
-
this.error = opts.error;
|
|
333
|
-
this.error_description = opts.error_description;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
class InvalidRedirectUriException extends SSOOIDCServiceException {
|
|
337
|
-
name = "InvalidRedirectUriException";
|
|
338
|
-
$fault = "client";
|
|
339
|
-
error;
|
|
340
|
-
error_description;
|
|
341
|
-
constructor(opts) {
|
|
342
|
-
super({
|
|
343
|
-
name: "InvalidRedirectUriException",
|
|
344
|
-
$fault: "client",
|
|
345
|
-
...opts,
|
|
346
|
-
});
|
|
347
|
-
Object.setPrototypeOf(this, InvalidRedirectUriException.prototype);
|
|
348
|
-
this.error = opts.error;
|
|
349
|
-
this.error_description = opts.error_description;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
const _A = "Assertion";
|
|
354
|
-
const _AAD = "AwsAdditionalDetails";
|
|
355
|
-
const _ADE = "AccessDeniedException";
|
|
356
|
-
const _APE = "AuthorizationPendingException";
|
|
357
|
-
const _AT = "AccessToken";
|
|
358
|
-
const _CS = "ClientSecret";
|
|
359
|
-
const _CT = "CreateToken";
|
|
360
|
-
const _CTR = "CreateTokenRequest";
|
|
361
|
-
const _CTRr = "CreateTokenResponse";
|
|
362
|
-
const _CTWIAM = "CreateTokenWithIAM";
|
|
363
|
-
const _CTWIAMR = "CreateTokenWithIAMRequest";
|
|
364
|
-
const _CTWIAMRr = "CreateTokenWithIAMResponse";
|
|
365
|
-
const _CV = "CodeVerifier";
|
|
366
|
-
const _ETE = "ExpiredTokenException";
|
|
367
|
-
const _ICE = "InvalidClientException";
|
|
368
|
-
const _ICME = "InvalidClientMetadataException";
|
|
369
|
-
const _IGE = "InvalidGrantException";
|
|
370
|
-
const _IRE = "InvalidRequestException";
|
|
371
|
-
const _IRRE = "InvalidRequestRegionException";
|
|
372
|
-
const _IRUE = "InvalidRedirectUriException";
|
|
373
|
-
const _ISE = "InternalServerException";
|
|
374
|
-
const _ISEn = "InvalidScopeException";
|
|
375
|
-
const _IT = "IdToken";
|
|
376
|
-
const _RC = "RegisterClient";
|
|
377
|
-
const _RCR = "RegisterClientRequest";
|
|
378
|
-
const _RCRe = "RegisterClientResponse";
|
|
379
|
-
const _RT = "RefreshToken";
|
|
380
|
-
const _SDA = "StartDeviceAuthorization";
|
|
381
|
-
const _SDAR = "StartDeviceAuthorizationRequest";
|
|
382
|
-
const _SDARt = "StartDeviceAuthorizationResponse";
|
|
383
|
-
const _SDE = "SlowDownException";
|
|
384
|
-
const _ST = "SubjectToken";
|
|
385
|
-
const _UCE = "UnauthorizedClientException";
|
|
386
|
-
const _UGTE = "UnsupportedGrantTypeException";
|
|
387
|
-
const _a = "assertion";
|
|
388
|
-
const _aAD = "awsAdditionalDetails";
|
|
389
|
-
const _aE = "authorizationEndpoint";
|
|
390
|
-
const _aT = "accessToken";
|
|
391
|
-
const _c = "client";
|
|
392
|
-
const _cI = "clientId";
|
|
393
|
-
const _cIIA = "clientIdIssuedAt";
|
|
394
|
-
const _cN = "clientName";
|
|
395
|
-
const _cS = "clientSecret";
|
|
396
|
-
const _cSEA = "clientSecretExpiresAt";
|
|
397
|
-
const _cT = "clientType";
|
|
398
|
-
const _cV = "codeVerifier";
|
|
399
|
-
const _co = "code";
|
|
400
|
-
const _dC = "deviceCode";
|
|
401
|
-
const _e = "error";
|
|
402
|
-
const _eAA = "entitledApplicationArn";
|
|
403
|
-
const _eI = "expiresIn";
|
|
404
|
-
const _ed = "error_description";
|
|
405
|
-
const _en = "endpoint";
|
|
406
|
-
const _gT = "grantType";
|
|
407
|
-
const _gTr = "grantTypes";
|
|
408
|
-
const _h = "http";
|
|
409
|
-
const _hE = "httpError";
|
|
410
|
-
const _i = "interval";
|
|
411
|
-
const _iC = "identityContext";
|
|
412
|
-
const _iT = "idToken";
|
|
413
|
-
const _iTT = "issuedTokenType";
|
|
414
|
-
const _iU = "issuerUrl";
|
|
415
|
-
const _r = "reason";
|
|
416
|
-
const _rT = "refreshToken";
|
|
417
|
-
const _rTT = "requestedTokenType";
|
|
418
|
-
const _rU = "redirectUri";
|
|
419
|
-
const _rUe = "redirectUris";
|
|
420
|
-
const _re = "region";
|
|
421
|
-
const _s = "scope";
|
|
422
|
-
const _sT = "subjectToken";
|
|
423
|
-
const _sTT = "subjectTokenType";
|
|
424
|
-
const _sU = "startUrl";
|
|
425
|
-
const _sc = "scopes";
|
|
426
|
-
const _se = "server";
|
|
427
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
428
|
-
const _tE = "tokenEndpoint";
|
|
429
|
-
const _tT = "tokenType";
|
|
430
|
-
const _uC = "userCode";
|
|
431
|
-
const _vU = "verificationUri";
|
|
432
|
-
const _vUC = "verificationUriComplete";
|
|
433
|
-
const n0 = "com.amazonaws.ssooidc";
|
|
434
|
-
var AccessToken = [0, n0, _AT, 8, 0];
|
|
435
|
-
var Assertion = [0, n0, _A, 8, 0];
|
|
436
|
-
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
437
|
-
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
438
|
-
var IdToken = [0, n0, _IT, 8, 0];
|
|
439
|
-
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
440
|
-
var SubjectToken = [0, n0, _ST, 8, 0];
|
|
441
|
-
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
442
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
443
|
-
[_e, _r, _ed],
|
|
444
|
-
[0, 0, 0]
|
|
445
|
-
];
|
|
446
|
-
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
447
|
-
var AuthorizationPendingException$ = [-3, n0, _APE,
|
|
448
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
449
|
-
[_e, _ed],
|
|
450
|
-
[0, 0]
|
|
451
|
-
];
|
|
452
|
-
schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
|
|
453
|
-
var AwsAdditionalDetails$ = [3, n0, _AAD,
|
|
454
|
-
0,
|
|
455
|
-
[_iC],
|
|
456
|
-
[0]
|
|
457
|
-
];
|
|
458
|
-
var CreateTokenRequest$ = [3, n0, _CTR,
|
|
459
|
-
0,
|
|
460
|
-
[_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
|
|
461
|
-
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], 3
|
|
462
|
-
];
|
|
463
|
-
var CreateTokenResponse$ = [3, n0, _CTRr,
|
|
464
|
-
0,
|
|
465
|
-
[_aT, _tT, _eI, _rT, _iT],
|
|
466
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]]
|
|
467
|
-
];
|
|
468
|
-
var CreateTokenWithIAMRequest$ = [3, n0, _CTWIAMR,
|
|
469
|
-
0,
|
|
470
|
-
[_cI, _gT, _co, _rT, _a, _s, _rU, _sT, _sTT, _rTT, _cV],
|
|
471
|
-
[0, 0, 0, [() => RefreshToken, 0], [() => Assertion, 0], 64 | 0, 0, [() => SubjectToken, 0], 0, 0, [() => CodeVerifier, 0]], 2
|
|
472
|
-
];
|
|
473
|
-
var CreateTokenWithIAMResponse$ = [3, n0, _CTWIAMRr,
|
|
474
|
-
0,
|
|
475
|
-
[_aT, _tT, _eI, _rT, _iT, _iTT, _s, _aAD],
|
|
476
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0], 0, 64 | 0, () => AwsAdditionalDetails$]
|
|
477
|
-
];
|
|
478
|
-
var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
479
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
480
|
-
[_e, _ed],
|
|
481
|
-
[0, 0]
|
|
482
|
-
];
|
|
483
|
-
schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
484
|
-
var InternalServerException$ = [-3, n0, _ISE,
|
|
485
|
-
{ [_e]: _se, [_hE]: 500 },
|
|
486
|
-
[_e, _ed],
|
|
487
|
-
[0, 0]
|
|
488
|
-
];
|
|
489
|
-
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
490
|
-
var InvalidClientException$ = [-3, n0, _ICE,
|
|
491
|
-
{ [_e]: _c, [_hE]: 401 },
|
|
492
|
-
[_e, _ed],
|
|
493
|
-
[0, 0]
|
|
494
|
-
];
|
|
495
|
-
schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
|
|
496
|
-
var InvalidClientMetadataException$ = [-3, n0, _ICME,
|
|
497
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
498
|
-
[_e, _ed],
|
|
499
|
-
[0, 0]
|
|
500
|
-
];
|
|
501
|
-
schema.TypeRegistry.for(n0).registerError(InvalidClientMetadataException$, InvalidClientMetadataException);
|
|
502
|
-
var InvalidGrantException$ = [-3, n0, _IGE,
|
|
503
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
504
|
-
[_e, _ed],
|
|
505
|
-
[0, 0]
|
|
506
|
-
];
|
|
507
|
-
schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
|
|
508
|
-
var InvalidRedirectUriException$ = [-3, n0, _IRUE,
|
|
509
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
510
|
-
[_e, _ed],
|
|
511
|
-
[0, 0]
|
|
512
|
-
];
|
|
513
|
-
schema.TypeRegistry.for(n0).registerError(InvalidRedirectUriException$, InvalidRedirectUriException);
|
|
514
|
-
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
515
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
516
|
-
[_e, _r, _ed],
|
|
517
|
-
[0, 0, 0]
|
|
518
|
-
];
|
|
519
|
-
schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
520
|
-
var InvalidRequestRegionException$ = [-3, n0, _IRRE,
|
|
521
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
522
|
-
[_e, _ed, _en, _re],
|
|
523
|
-
[0, 0, 0, 0]
|
|
524
|
-
];
|
|
525
|
-
schema.TypeRegistry.for(n0).registerError(InvalidRequestRegionException$, InvalidRequestRegionException);
|
|
526
|
-
var InvalidScopeException$ = [-3, n0, _ISEn,
|
|
527
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
528
|
-
[_e, _ed],
|
|
529
|
-
[0, 0]
|
|
530
|
-
];
|
|
531
|
-
schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
|
|
532
|
-
var RegisterClientRequest$ = [3, n0, _RCR,
|
|
533
|
-
0,
|
|
534
|
-
[_cN, _cT, _sc, _rUe, _gTr, _iU, _eAA],
|
|
535
|
-
[0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0], 2
|
|
536
|
-
];
|
|
537
|
-
var RegisterClientResponse$ = [3, n0, _RCRe,
|
|
538
|
-
0,
|
|
539
|
-
[_cI, _cS, _cIIA, _cSEA, _aE, _tE],
|
|
540
|
-
[0, [() => ClientSecret, 0], 1, 1, 0, 0]
|
|
541
|
-
];
|
|
542
|
-
var SlowDownException$ = [-3, n0, _SDE,
|
|
543
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
544
|
-
[_e, _ed],
|
|
545
|
-
[0, 0]
|
|
546
|
-
];
|
|
547
|
-
schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
|
|
548
|
-
var StartDeviceAuthorizationRequest$ = [3, n0, _SDAR,
|
|
549
|
-
0,
|
|
550
|
-
[_cI, _cS, _sU],
|
|
551
|
-
[0, [() => ClientSecret, 0], 0], 3
|
|
552
|
-
];
|
|
553
|
-
var StartDeviceAuthorizationResponse$ = [3, n0, _SDARt,
|
|
554
|
-
0,
|
|
555
|
-
[_dC, _uC, _vU, _vUC, _eI, _i],
|
|
556
|
-
[0, 0, 0, 0, 1, 1]
|
|
557
|
-
];
|
|
558
|
-
var UnauthorizedClientException$ = [-3, n0, _UCE,
|
|
559
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
560
|
-
[_e, _ed],
|
|
561
|
-
[0, 0]
|
|
562
|
-
];
|
|
563
|
-
schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
|
|
564
|
-
var UnsupportedGrantTypeException$ = [-3, n0, _UGTE,
|
|
565
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
566
|
-
[_e, _ed],
|
|
567
|
-
[0, 0]
|
|
568
|
-
];
|
|
569
|
-
schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
|
|
570
|
-
var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
|
|
571
|
-
schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
572
|
-
var CreateToken$ = [9, n0, _CT,
|
|
573
|
-
{ [_h]: ["POST", "/token", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$
|
|
574
|
-
];
|
|
575
|
-
var CreateTokenWithIAM$ = [9, n0, _CTWIAM,
|
|
576
|
-
{ [_h]: ["POST", "/token?aws_iam=t", 200] }, () => CreateTokenWithIAMRequest$, () => CreateTokenWithIAMResponse$
|
|
577
|
-
];
|
|
578
|
-
var RegisterClient$ = [9, n0, _RC,
|
|
579
|
-
{ [_h]: ["POST", "/client/register", 200] }, () => RegisterClientRequest$, () => RegisterClientResponse$
|
|
580
|
-
];
|
|
581
|
-
var StartDeviceAuthorization$ = [9, n0, _SDA,
|
|
582
|
-
{ [_h]: ["POST", "/device_authorization", 200] }, () => StartDeviceAuthorizationRequest$, () => StartDeviceAuthorizationResponse$
|
|
583
|
-
];
|
|
584
|
-
|
|
585
116
|
class CreateTokenCommand extends smithyClient.Command
|
|
586
117
|
.classBuilder()
|
|
587
118
|
.ep(commonParams)
|
|
@@ -590,7 +121,7 @@ class CreateTokenCommand extends smithyClient.Command
|
|
|
590
121
|
})
|
|
591
122
|
.s("AWSSSOOIDCService", "CreateToken", {})
|
|
592
123
|
.n("SSOOIDCClient", "CreateTokenCommand")
|
|
593
|
-
.sc(CreateToken$)
|
|
124
|
+
.sc(schemas_0.CreateToken$)
|
|
594
125
|
.build() {
|
|
595
126
|
}
|
|
596
127
|
|
|
@@ -602,7 +133,7 @@ class CreateTokenWithIAMCommand extends smithyClient.Command
|
|
|
602
133
|
})
|
|
603
134
|
.s("AWSSSOOIDCService", "CreateTokenWithIAM", {})
|
|
604
135
|
.n("SSOOIDCClient", "CreateTokenWithIAMCommand")
|
|
605
|
-
.sc(CreateTokenWithIAM$)
|
|
136
|
+
.sc(schemas_0.CreateTokenWithIAM$)
|
|
606
137
|
.build() {
|
|
607
138
|
}
|
|
608
139
|
|
|
@@ -614,7 +145,7 @@ class RegisterClientCommand extends smithyClient.Command
|
|
|
614
145
|
})
|
|
615
146
|
.s("AWSSSOOIDCService", "RegisterClient", {})
|
|
616
147
|
.n("SSOOIDCClient", "RegisterClientCommand")
|
|
617
|
-
.sc(RegisterClient$)
|
|
148
|
+
.sc(schemas_0.RegisterClient$)
|
|
618
149
|
.build() {
|
|
619
150
|
}
|
|
620
151
|
|
|
@@ -626,7 +157,7 @@ class StartDeviceAuthorizationCommand extends smithyClient.Command
|
|
|
626
157
|
})
|
|
627
158
|
.s("AWSSSOOIDCService", "StartDeviceAuthorization", {})
|
|
628
159
|
.n("SSOOIDCClient", "StartDeviceAuthorizationCommand")
|
|
629
|
-
.sc(StartDeviceAuthorization$)
|
|
160
|
+
.sc(schemas_0.StartDeviceAuthorization$)
|
|
630
161
|
.build() {
|
|
631
162
|
}
|
|
632
163
|
|
|
@@ -658,54 +189,27 @@ Object.defineProperty(exports, "__Client", {
|
|
|
658
189
|
enumerable: true,
|
|
659
190
|
get: function () { return smithyClient.Client; }
|
|
660
191
|
});
|
|
661
|
-
exports
|
|
662
|
-
|
|
192
|
+
Object.defineProperty(exports, "SSOOIDCServiceException", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () { return SSOOIDCServiceException.SSOOIDCServiceException; }
|
|
195
|
+
});
|
|
663
196
|
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
664
|
-
exports.AuthorizationPendingException = AuthorizationPendingException;
|
|
665
|
-
exports.AuthorizationPendingException$ = AuthorizationPendingException$;
|
|
666
|
-
exports.AwsAdditionalDetails$ = AwsAdditionalDetails$;
|
|
667
|
-
exports.CreateToken$ = CreateToken$;
|
|
668
197
|
exports.CreateTokenCommand = CreateTokenCommand;
|
|
669
|
-
exports.CreateTokenRequest$ = CreateTokenRequest$;
|
|
670
|
-
exports.CreateTokenResponse$ = CreateTokenResponse$;
|
|
671
|
-
exports.CreateTokenWithIAM$ = CreateTokenWithIAM$;
|
|
672
198
|
exports.CreateTokenWithIAMCommand = CreateTokenWithIAMCommand;
|
|
673
|
-
exports.CreateTokenWithIAMRequest$ = CreateTokenWithIAMRequest$;
|
|
674
|
-
exports.CreateTokenWithIAMResponse$ = CreateTokenWithIAMResponse$;
|
|
675
|
-
exports.ExpiredTokenException = ExpiredTokenException;
|
|
676
|
-
exports.ExpiredTokenException$ = ExpiredTokenException$;
|
|
677
|
-
exports.InternalServerException = InternalServerException;
|
|
678
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
679
|
-
exports.InvalidClientException = InvalidClientException;
|
|
680
|
-
exports.InvalidClientException$ = InvalidClientException$;
|
|
681
|
-
exports.InvalidClientMetadataException = InvalidClientMetadataException;
|
|
682
|
-
exports.InvalidClientMetadataException$ = InvalidClientMetadataException$;
|
|
683
|
-
exports.InvalidGrantException = InvalidGrantException;
|
|
684
|
-
exports.InvalidGrantException$ = InvalidGrantException$;
|
|
685
|
-
exports.InvalidRedirectUriException = InvalidRedirectUriException;
|
|
686
|
-
exports.InvalidRedirectUriException$ = InvalidRedirectUriException$;
|
|
687
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
688
|
-
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
689
199
|
exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
|
|
690
|
-
exports.InvalidRequestRegionException = InvalidRequestRegionException;
|
|
691
|
-
exports.InvalidRequestRegionException$ = InvalidRequestRegionException$;
|
|
692
|
-
exports.InvalidScopeException = InvalidScopeException;
|
|
693
|
-
exports.InvalidScopeException$ = InvalidScopeException$;
|
|
694
|
-
exports.RegisterClient$ = RegisterClient$;
|
|
695
200
|
exports.RegisterClientCommand = RegisterClientCommand;
|
|
696
|
-
exports.RegisterClientRequest$ = RegisterClientRequest$;
|
|
697
|
-
exports.RegisterClientResponse$ = RegisterClientResponse$;
|
|
698
201
|
exports.SSOOIDC = SSOOIDC;
|
|
699
202
|
exports.SSOOIDCClient = SSOOIDCClient;
|
|
700
|
-
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|
|
701
|
-
exports.SSOOIDCServiceException$ = SSOOIDCServiceException$;
|
|
702
|
-
exports.SlowDownException = SlowDownException;
|
|
703
|
-
exports.SlowDownException$ = SlowDownException$;
|
|
704
|
-
exports.StartDeviceAuthorization$ = StartDeviceAuthorization$;
|
|
705
203
|
exports.StartDeviceAuthorizationCommand = StartDeviceAuthorizationCommand;
|
|
706
|
-
|
|
707
|
-
exports.
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
204
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
205
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
206
|
+
enumerable: true,
|
|
207
|
+
get: function () { return schemas_0[k]; }
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
Object.keys(errors).forEach(function (k) {
|
|
211
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
212
|
+
enumerable: true,
|
|
213
|
+
get: function () { return errors[k]; }
|
|
214
|
+
});
|
|
215
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SSOOIDCServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class SSOOIDCServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, SSOOIDCServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SSOOIDCServiceException = SSOOIDCServiceException;
|