@aws-sdk/nested-clients 3.952.0 → 3.954.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.
Files changed (62) hide show
  1. package/dist-cjs/submodules/signin/index.js +48 -37
  2. package/dist-cjs/submodules/signin/runtimeConfig.shared.js +6 -1
  3. package/dist-cjs/submodules/sso-oidc/index.js +88 -66
  4. package/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +6 -1
  5. package/dist-cjs/submodules/sts/index.js +79 -60
  6. package/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -6
  7. package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -2
  8. package/dist-es/submodules/signin/index.js +1 -0
  9. package/dist-es/submodules/signin/runtimeConfig.shared.js +6 -1
  10. package/dist-es/submodules/signin/schemas/schemas_0.js +24 -24
  11. package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -2
  12. package/dist-es/submodules/sso-oidc/index.js +1 -0
  13. package/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +6 -1
  14. package/dist-es/submodules/sso-oidc/schemas/schemas_0.js +44 -37
  15. package/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -2
  16. package/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
  17. package/dist-es/submodules/sts/index.js +1 -0
  18. package/dist-es/submodules/sts/runtimeConfig.shared.js +7 -6
  19. package/dist-es/submodules/sts/schemas/schemas_0.js +39 -39
  20. package/dist-types/submodules/signin/SigninClient.d.ts +1 -10
  21. package/dist-types/submodules/signin/index.d.ts +1 -0
  22. package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +6 -2
  23. package/dist-types/submodules/signin/runtimeConfig.d.ts +6 -2
  24. package/dist-types/submodules/signin/runtimeConfig.native.d.ts +6 -2
  25. package/dist-types/submodules/signin/runtimeConfig.shared.d.ts +6 -1
  26. package/dist-types/submodules/signin/schemas/schemas_0.d.ts +12 -13
  27. package/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +1 -10
  28. package/dist-types/submodules/sso-oidc/index.d.ts +1 -0
  29. package/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +6 -2
  30. package/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +6 -2
  31. package/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +6 -2
  32. package/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +6 -1
  33. package/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +16 -22
  34. package/dist-types/submodules/sts/STSClient.d.ts +1 -10
  35. package/dist-types/submodules/sts/index.d.ts +1 -0
  36. package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +6 -2
  37. package/dist-types/submodules/sts/runtimeConfig.d.ts +6 -2
  38. package/dist-types/submodules/sts/runtimeConfig.native.d.ts +6 -2
  39. package/dist-types/submodules/sts/runtimeConfig.shared.d.ts +6 -1
  40. package/dist-types/submodules/sts/schemas/schemas_0.d.ts +20 -26
  41. package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +0 -4
  42. package/dist-types/ts3.4/submodules/signin/index.d.ts +1 -0
  43. package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +9 -5
  44. package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +9 -5
  45. package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +9 -5
  46. package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +9 -4
  47. package/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +11 -13
  48. package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +0 -4
  49. package/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +1 -0
  50. package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +9 -5
  51. package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +9 -5
  52. package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +9 -5
  53. package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +9 -4
  54. package/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +15 -22
  55. package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +0 -4
  56. package/dist-types/ts3.4/submodules/sts/index.d.ts +1 -0
  57. package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +9 -5
  58. package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +9 -5
  59. package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +9 -5
  60. package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +9 -4
  61. package/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +19 -27
  62. package/package.json +32 -32
@@ -110,14 +110,14 @@ class SigninClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- let SigninServiceException$1 = class SigninServiceException extends smithyClient.ServiceException {
113
+ class SigninServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, SigninServiceException.prototype);
117
117
  }
118
- };
118
+ }
119
119
 
120
- let AccessDeniedException$1 = class AccessDeniedException extends SigninServiceException$1 {
120
+ class AccessDeniedException extends SigninServiceException {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  error;
@@ -130,8 +130,8 @@ let AccessDeniedException$1 = class AccessDeniedException extends SigninServiceE
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.error = opts.error;
132
132
  }
133
- };
134
- let InternalServerException$1 = class InternalServerException extends SigninServiceException$1 {
133
+ }
134
+ class InternalServerException extends SigninServiceException {
135
135
  name = "InternalServerException";
136
136
  $fault = "server";
137
137
  error;
@@ -144,8 +144,8 @@ let InternalServerException$1 = class InternalServerException extends SigninServ
144
144
  Object.setPrototypeOf(this, InternalServerException.prototype);
145
145
  this.error = opts.error;
146
146
  }
147
- };
148
- let TooManyRequestsError$1 = class TooManyRequestsError extends SigninServiceException$1 {
147
+ }
148
+ class TooManyRequestsError extends SigninServiceException {
149
149
  name = "TooManyRequestsError";
150
150
  $fault = "client";
151
151
  error;
@@ -158,8 +158,8 @@ let TooManyRequestsError$1 = class TooManyRequestsError extends SigninServiceExc
158
158
  Object.setPrototypeOf(this, TooManyRequestsError.prototype);
159
159
  this.error = opts.error;
160
160
  }
161
- };
162
- let ValidationException$1 = class ValidationException extends SigninServiceException$1 {
161
+ }
162
+ class ValidationException extends SigninServiceException {
163
163
  name = "ValidationException";
164
164
  $fault = "client";
165
165
  error;
@@ -172,7 +172,7 @@ let ValidationException$1 = class ValidationException extends SigninServiceExcep
172
172
  Object.setPrototypeOf(this, ValidationException.prototype);
173
173
  this.error = opts.error;
174
174
  }
175
- };
175
+ }
176
176
 
177
177
  const _ADE = "AccessDeniedException";
178
178
  const _AT = "AccessToken";
@@ -210,9 +210,9 @@ const _tO = "tokenOutput";
210
210
  const _tT = "tokenType";
211
211
  const n0 = "com.amazonaws.signin";
212
212
  var RefreshToken = [0, n0, _RT, 8, 0];
213
- var AccessDeniedException = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]];
214
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
215
- var AccessToken = [
213
+ var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c }, [_e, _m], [0, 0]];
214
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
215
+ var AccessToken$ = [
216
216
  3,
217
217
  n0,
218
218
  _AT,
@@ -224,15 +224,15 @@ var AccessToken = [
224
224
  [0, { [_jN]: _sT }],
225
225
  ],
226
226
  ];
227
- var CreateOAuth2TokenRequest = [
227
+ var CreateOAuth2TokenRequest$ = [
228
228
  3,
229
229
  n0,
230
230
  _COATR,
231
231
  0,
232
232
  [_tI],
233
- [[() => CreateOAuth2TokenRequestBody, 16]],
233
+ [[() => CreateOAuth2TokenRequestBody$, 16]],
234
234
  ];
235
- var CreateOAuth2TokenRequestBody = [
235
+ var CreateOAuth2TokenRequestBody$ = [
236
236
  3,
237
237
  n0,
238
238
  _COATRB,
@@ -247,43 +247,43 @@ var CreateOAuth2TokenRequestBody = [
247
247
  [() => RefreshToken, { [_jN]: _rT }],
248
248
  ],
249
249
  ];
250
- var CreateOAuth2TokenResponse = [
250
+ var CreateOAuth2TokenResponse$ = [
251
251
  3,
252
252
  n0,
253
253
  _COATRr,
254
254
  0,
255
255
  [_tO],
256
- [[() => CreateOAuth2TokenResponseBody, 16]],
256
+ [[() => CreateOAuth2TokenResponseBody$, 16]],
257
257
  ];
258
- var CreateOAuth2TokenResponseBody = [
258
+ var CreateOAuth2TokenResponseBody$ = [
259
259
  3,
260
260
  n0,
261
261
  _COATRBr,
262
262
  0,
263
263
  [_aT, _tT, _eI, _rT, _iT],
264
264
  [
265
- [() => AccessToken, { [_jN]: _aT }],
265
+ [() => AccessToken$, { [_jN]: _aT }],
266
266
  [0, { [_jN]: _tT }],
267
267
  [1, { [_jN]: _eI }],
268
268
  [() => RefreshToken, { [_jN]: _rT }],
269
269
  [0, { [_jN]: _iT }],
270
270
  ],
271
271
  ];
272
- var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]];
273
- schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
274
- var TooManyRequestsError = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]];
275
- schema.TypeRegistry.for(n0).registerError(TooManyRequestsError, TooManyRequestsError$1);
276
- var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]];
277
- schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
278
- var SigninServiceException = [-3, _sm, "SigninServiceException", 0, [], []];
279
- schema.TypeRegistry.for(_sm).registerError(SigninServiceException, SigninServiceException$1);
280
- var CreateOAuth2Token = [
272
+ var InternalServerException$ = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_e, _m], [0, 0]];
273
+ schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
274
+ var TooManyRequestsError$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_e, _m], [0, 0]];
275
+ schema.TypeRegistry.for(n0).registerError(TooManyRequestsError$, TooManyRequestsError);
276
+ var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_e, _m], [0, 0]];
277
+ schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
278
+ var SigninServiceException$ = [-3, _sm, "SigninServiceException", 0, [], []];
279
+ schema.TypeRegistry.for(_sm).registerError(SigninServiceException$, SigninServiceException);
280
+ var CreateOAuth2Token$ = [
281
281
  9,
282
282
  n0,
283
283
  _COAT,
284
284
  { [_h]: ["POST", "/v1/token", 200] },
285
- () => CreateOAuth2TokenRequest,
286
- () => CreateOAuth2TokenResponse,
285
+ () => CreateOAuth2TokenRequest$,
286
+ () => CreateOAuth2TokenResponse$,
287
287
  ];
288
288
 
289
289
  class CreateOAuth2TokenCommand extends smithyClient.Command
@@ -294,7 +294,7 @@ class CreateOAuth2TokenCommand extends smithyClient.Command
294
294
  })
295
295
  .s("Signin", "CreateOAuth2Token", {})
296
296
  .n("SigninClient", "CreateOAuth2TokenCommand")
297
- .sc(CreateOAuth2Token)
297
+ .sc(CreateOAuth2Token$)
298
298
  .build() {
299
299
  }
300
300
 
@@ -322,12 +322,23 @@ Object.defineProperty(exports, "__Client", {
322
322
  enumerable: true,
323
323
  get: function () { return smithyClient.Client; }
324
324
  });
325
- exports.AccessDeniedException = AccessDeniedException$1;
325
+ exports.AccessDeniedException = AccessDeniedException;
326
+ exports.AccessDeniedException$ = AccessDeniedException$;
327
+ exports.AccessToken$ = AccessToken$;
328
+ exports.CreateOAuth2Token$ = CreateOAuth2Token$;
326
329
  exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
327
- exports.InternalServerException = InternalServerException$1;
330
+ exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$;
331
+ exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$;
332
+ exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$;
333
+ exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
334
+ exports.InternalServerException = InternalServerException;
335
+ exports.InternalServerException$ = InternalServerException$;
328
336
  exports.OAuth2ErrorCode = OAuth2ErrorCode;
329
337
  exports.Signin = Signin;
330
338
  exports.SigninClient = SigninClient;
331
- exports.SigninServiceException = SigninServiceException$1;
332
- exports.TooManyRequestsError = TooManyRequestsError$1;
333
- exports.ValidationException = ValidationException$1;
339
+ exports.SigninServiceException = SigninServiceException;
340
+ exports.SigninServiceException$ = SigninServiceException$;
341
+ exports.TooManyRequestsError = TooManyRequestsError;
342
+ exports.TooManyRequestsError$ = TooManyRequestsError$;
343
+ exports.ValidationException = ValidationException;
344
+ exports.ValidationException$ = ValidationException$;
@@ -32,7 +32,12 @@ const getRuntimeConfig = (config) => {
32
32
  },
33
33
  ],
34
34
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
35
- protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.signin" }),
35
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
36
+ protocolSettings: config?.protocolSettings ?? {
37
+ defaultNamespace: "com.amazonaws.signin",
38
+ version: "2023-01-01",
39
+ serviceTarget: "Signin",
40
+ },
36
41
  serviceId: config?.serviceId ?? "Signin",
37
42
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
38
43
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -110,14 +110,14 @@ class SSOOIDCClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- let SSOOIDCServiceException$1 = class SSOOIDCServiceException extends smithyClient.ServiceException {
113
+ 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
- let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCServiceException$1 {
120
+ class AccessDeniedException extends SSOOIDCServiceException {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  error;
@@ -134,8 +134,8 @@ let AccessDeniedException$1 = class AccessDeniedException extends SSOOIDCService
134
134
  this.reason = opts.reason;
135
135
  this.error_description = opts.error_description;
136
136
  }
137
- };
138
- let AuthorizationPendingException$1 = class AuthorizationPendingException extends SSOOIDCServiceException$1 {
137
+ }
138
+ class AuthorizationPendingException extends SSOOIDCServiceException {
139
139
  name = "AuthorizationPendingException";
140
140
  $fault = "client";
141
141
  error;
@@ -150,8 +150,8 @@ let AuthorizationPendingException$1 = class AuthorizationPendingException extend
150
150
  this.error = opts.error;
151
151
  this.error_description = opts.error_description;
152
152
  }
153
- };
154
- let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCServiceException$1 {
153
+ }
154
+ class ExpiredTokenException extends SSOOIDCServiceException {
155
155
  name = "ExpiredTokenException";
156
156
  $fault = "client";
157
157
  error;
@@ -166,8 +166,8 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends SSOOIDCService
166
166
  this.error = opts.error;
167
167
  this.error_description = opts.error_description;
168
168
  }
169
- };
170
- let InternalServerException$1 = class InternalServerException extends SSOOIDCServiceException$1 {
169
+ }
170
+ class InternalServerException extends SSOOIDCServiceException {
171
171
  name = "InternalServerException";
172
172
  $fault = "server";
173
173
  error;
@@ -182,8 +182,8 @@ let InternalServerException$1 = class InternalServerException extends SSOOIDCSer
182
182
  this.error = opts.error;
183
183
  this.error_description = opts.error_description;
184
184
  }
185
- };
186
- let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServiceException$1 {
185
+ }
186
+ class InvalidClientException extends SSOOIDCServiceException {
187
187
  name = "InvalidClientException";
188
188
  $fault = "client";
189
189
  error;
@@ -198,8 +198,8 @@ let InvalidClientException$1 = class InvalidClientException extends SSOOIDCServi
198
198
  this.error = opts.error;
199
199
  this.error_description = opts.error_description;
200
200
  }
201
- };
202
- let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCServiceException$1 {
201
+ }
202
+ class InvalidGrantException extends SSOOIDCServiceException {
203
203
  name = "InvalidGrantException";
204
204
  $fault = "client";
205
205
  error;
@@ -214,8 +214,8 @@ let InvalidGrantException$1 = class InvalidGrantException extends SSOOIDCService
214
214
  this.error = opts.error;
215
215
  this.error_description = opts.error_description;
216
216
  }
217
- };
218
- let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCServiceException$1 {
217
+ }
218
+ class InvalidRequestException extends SSOOIDCServiceException {
219
219
  name = "InvalidRequestException";
220
220
  $fault = "client";
221
221
  error;
@@ -232,8 +232,8 @@ let InvalidRequestException$1 = class InvalidRequestException extends SSOOIDCSer
232
232
  this.reason = opts.reason;
233
233
  this.error_description = opts.error_description;
234
234
  }
235
- };
236
- let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCServiceException$1 {
235
+ }
236
+ class InvalidScopeException extends SSOOIDCServiceException {
237
237
  name = "InvalidScopeException";
238
238
  $fault = "client";
239
239
  error;
@@ -248,8 +248,8 @@ let InvalidScopeException$1 = class InvalidScopeException extends SSOOIDCService
248
248
  this.error = opts.error;
249
249
  this.error_description = opts.error_description;
250
250
  }
251
- };
252
- let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceException$1 {
251
+ }
252
+ class SlowDownException extends SSOOIDCServiceException {
253
253
  name = "SlowDownException";
254
254
  $fault = "client";
255
255
  error;
@@ -264,8 +264,8 @@ let SlowDownException$1 = class SlowDownException extends SSOOIDCServiceExceptio
264
264
  this.error = opts.error;
265
265
  this.error_description = opts.error_description;
266
266
  }
267
- };
268
- let UnauthorizedClientException$1 = class UnauthorizedClientException extends SSOOIDCServiceException$1 {
267
+ }
268
+ class UnauthorizedClientException extends SSOOIDCServiceException {
269
269
  name = "UnauthorizedClientException";
270
270
  $fault = "client";
271
271
  error;
@@ -280,8 +280,8 @@ let UnauthorizedClientException$1 = class UnauthorizedClientException extends SS
280
280
  this.error = opts.error;
281
281
  this.error_description = opts.error_description;
282
282
  }
283
- };
284
- let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extends SSOOIDCServiceException$1 {
283
+ }
284
+ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
285
285
  name = "UnsupportedGrantTypeException";
286
286
  $fault = "client";
287
287
  error;
@@ -296,7 +296,7 @@ let UnsupportedGrantTypeException$1 = class UnsupportedGrantTypeException extend
296
296
  this.error = opts.error;
297
297
  this.error_description = opts.error_description;
298
298
  }
299
- };
299
+ }
300
300
 
301
301
  const _ADE = "AccessDeniedException";
302
302
  const _APE = "AuthorizationPendingException";
@@ -344,7 +344,7 @@ var ClientSecret = [0, n0, _CS, 8, 0];
344
344
  var CodeVerifier = [0, n0, _CV, 8, 0];
345
345
  var IdToken = [0, n0, _IT, 8, 0];
346
346
  var RefreshToken = [0, n0, _RT, 8, 0];
347
- var AccessDeniedException = [
347
+ var AccessDeniedException$ = [
348
348
  -3,
349
349
  n0,
350
350
  _ADE,
@@ -352,8 +352,8 @@ var AccessDeniedException = [
352
352
  [_e, _r, _ed],
353
353
  [0, 0, 0],
354
354
  ];
355
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
356
- var AuthorizationPendingException = [
355
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
356
+ var AuthorizationPendingException$ = [
357
357
  -3,
358
358
  n0,
359
359
  _APE,
@@ -361,8 +361,8 @@ var AuthorizationPendingException = [
361
361
  [_e, _ed],
362
362
  [0, 0],
363
363
  ];
364
- schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException, AuthorizationPendingException$1);
365
- var CreateTokenRequest = [
364
+ schema.TypeRegistry.for(n0).registerError(AuthorizationPendingException$, AuthorizationPendingException);
365
+ var CreateTokenRequest$ = [
366
366
  3,
367
367
  n0,
368
368
  _CTR,
@@ -370,7 +370,7 @@ var CreateTokenRequest = [
370
370
  [_cI, _cS, _gT, _dC, _co, _rT, _s, _rU, _cV],
371
371
  [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
372
372
  ];
373
- var CreateTokenResponse = [
373
+ var CreateTokenResponse$ = [
374
374
  3,
375
375
  n0,
376
376
  _CTRr,
@@ -378,15 +378,15 @@ var CreateTokenResponse = [
378
378
  [_aT, _tT, _eI, _rT, _iT],
379
379
  [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
380
380
  ];
381
- var ExpiredTokenException = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
382
- schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1);
383
- var InternalServerException = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
384
- schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
385
- var InvalidClientException = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
386
- schema.TypeRegistry.for(n0).registerError(InvalidClientException, InvalidClientException$1);
387
- var InvalidGrantException = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
388
- schema.TypeRegistry.for(n0).registerError(InvalidGrantException, InvalidGrantException$1);
389
- var InvalidRequestException = [
381
+ var ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
382
+ schema.TypeRegistry.for(n0).registerError(ExpiredTokenException$, ExpiredTokenException);
383
+ var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
384
+ schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
385
+ var InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
386
+ schema.TypeRegistry.for(n0).registerError(InvalidClientException$, InvalidClientException);
387
+ var InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
388
+ schema.TypeRegistry.for(n0).registerError(InvalidGrantException$, InvalidGrantException);
389
+ var InvalidRequestException$ = [
390
390
  -3,
391
391
  n0,
392
392
  _IRE,
@@ -394,14 +394,21 @@ var InvalidRequestException = [
394
394
  [_e, _r, _ed],
395
395
  [0, 0, 0],
396
396
  ];
397
- schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
398
- var InvalidScopeException = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
399
- schema.TypeRegistry.for(n0).registerError(InvalidScopeException, InvalidScopeException$1);
400
- var SlowDownException = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
401
- schema.TypeRegistry.for(n0).registerError(SlowDownException, SlowDownException$1);
402
- var UnauthorizedClientException = [-3, n0, _UCE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
403
- schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException, UnauthorizedClientException$1);
404
- var UnsupportedGrantTypeException = [
397
+ schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
398
+ var InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
399
+ schema.TypeRegistry.for(n0).registerError(InvalidScopeException$, InvalidScopeException);
400
+ var SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
401
+ schema.TypeRegistry.for(n0).registerError(SlowDownException$, SlowDownException);
402
+ var UnauthorizedClientException$ = [
403
+ -3,
404
+ n0,
405
+ _UCE,
406
+ { [_e]: _c, [_hE]: 400 },
407
+ [_e, _ed],
408
+ [0, 0],
409
+ ];
410
+ schema.TypeRegistry.for(n0).registerError(UnauthorizedClientException$, UnauthorizedClientException);
411
+ var UnsupportedGrantTypeException$ = [
405
412
  -3,
406
413
  n0,
407
414
  _UGTE,
@@ -409,16 +416,16 @@ var UnsupportedGrantTypeException = [
409
416
  [_e, _ed],
410
417
  [0, 0],
411
418
  ];
412
- schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException, UnsupportedGrantTypeException$1);
413
- var SSOOIDCServiceException = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
414
- schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException, SSOOIDCServiceException$1);
415
- var CreateToken = [
419
+ schema.TypeRegistry.for(n0).registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException);
420
+ var SSOOIDCServiceException$ = [-3, _sm, "SSOOIDCServiceException", 0, [], []];
421
+ schema.TypeRegistry.for(_sm).registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
422
+ var CreateToken$ = [
416
423
  9,
417
424
  n0,
418
425
  _CT,
419
426
  { [_h]: ["POST", "/token", 200] },
420
- () => CreateTokenRequest,
421
- () => CreateTokenResponse,
427
+ () => CreateTokenRequest$,
428
+ () => CreateTokenResponse$,
422
429
  ];
423
430
 
424
431
  class CreateTokenCommand extends smithyClient.Command
@@ -429,7 +436,7 @@ class CreateTokenCommand extends smithyClient.Command
429
436
  })
430
437
  .s("AWSSSOOIDCService", "CreateToken", {})
431
438
  .n("SSOOIDCClient", "CreateTokenCommand")
432
- .sc(CreateToken)
439
+ .sc(CreateToken$)
433
440
  .build() {
434
441
  }
435
442
 
@@ -458,20 +465,35 @@ Object.defineProperty(exports, "__Client", {
458
465
  enumerable: true,
459
466
  get: function () { return smithyClient.Client; }
460
467
  });
461
- exports.AccessDeniedException = AccessDeniedException$1;
468
+ exports.AccessDeniedException = AccessDeniedException;
469
+ exports.AccessDeniedException$ = AccessDeniedException$;
462
470
  exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
463
- exports.AuthorizationPendingException = AuthorizationPendingException$1;
471
+ exports.AuthorizationPendingException = AuthorizationPendingException;
472
+ exports.AuthorizationPendingException$ = AuthorizationPendingException$;
473
+ exports.CreateToken$ = CreateToken$;
464
474
  exports.CreateTokenCommand = CreateTokenCommand;
465
- exports.ExpiredTokenException = ExpiredTokenException$1;
466
- exports.InternalServerException = InternalServerException$1;
467
- exports.InvalidClientException = InvalidClientException$1;
468
- exports.InvalidGrantException = InvalidGrantException$1;
469
- exports.InvalidRequestException = InvalidRequestException$1;
475
+ exports.CreateTokenRequest$ = CreateTokenRequest$;
476
+ exports.CreateTokenResponse$ = CreateTokenResponse$;
477
+ exports.ExpiredTokenException = ExpiredTokenException;
478
+ exports.ExpiredTokenException$ = ExpiredTokenException$;
479
+ exports.InternalServerException = InternalServerException;
480
+ exports.InternalServerException$ = InternalServerException$;
481
+ exports.InvalidClientException = InvalidClientException;
482
+ exports.InvalidClientException$ = InvalidClientException$;
483
+ exports.InvalidGrantException = InvalidGrantException;
484
+ exports.InvalidGrantException$ = InvalidGrantException$;
485
+ exports.InvalidRequestException = InvalidRequestException;
486
+ exports.InvalidRequestException$ = InvalidRequestException$;
470
487
  exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason;
471
- exports.InvalidScopeException = InvalidScopeException$1;
488
+ exports.InvalidScopeException = InvalidScopeException;
489
+ exports.InvalidScopeException$ = InvalidScopeException$;
472
490
  exports.SSOOIDC = SSOOIDC;
473
491
  exports.SSOOIDCClient = SSOOIDCClient;
474
- exports.SSOOIDCServiceException = SSOOIDCServiceException$1;
475
- exports.SlowDownException = SlowDownException$1;
476
- exports.UnauthorizedClientException = UnauthorizedClientException$1;
477
- exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException$1;
492
+ exports.SSOOIDCServiceException = SSOOIDCServiceException;
493
+ exports.SSOOIDCServiceException$ = SSOOIDCServiceException$;
494
+ exports.SlowDownException = SlowDownException;
495
+ exports.SlowDownException$ = SlowDownException$;
496
+ exports.UnauthorizedClientException = UnauthorizedClientException;
497
+ exports.UnauthorizedClientException$ = UnauthorizedClientException$;
498
+ exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException;
499
+ exports.UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$;
@@ -32,7 +32,12 @@ const getRuntimeConfig = (config) => {
32
32
  },
33
33
  ],
34
34
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
35
- protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.ssooidc" }),
35
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
36
+ protocolSettings: config?.protocolSettings ?? {
37
+ defaultNamespace: "com.amazonaws.ssooidc",
38
+ version: "2019-06-10",
39
+ serviceTarget: "AWSSSOOIDCService",
40
+ },
36
41
  serviceId: config?.serviceId ?? "SSO OIDC",
37
42
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
38
43
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,