@aws-sdk/client-sso 3.957.0 → 3.964.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/README.md CHANGED
@@ -24,10 +24,8 @@ information about the AWS SDKs, including how to download and install them, see
24
24
  </note>
25
25
 
26
26
  ## Installing
27
-
28
27
  To install this package, simply type add or install @aws-sdk/client-sso
29
28
  using your favorite package manager:
30
-
31
29
  - `npm install @aws-sdk/client-sso`
32
30
  - `yarn add @aws-sdk/client-sso`
33
31
  - `pnpm add @aws-sdk/client-sso`
@@ -63,9 +61,7 @@ To send a request, you:
63
61
  // a client can be shared by different commands.
64
62
  const client = new SSOClient({ region: "REGION" });
65
63
 
66
- const params = {
67
- /** input parameters */
68
- };
64
+ const params = { /** input parameters */ };
69
65
  const command = new ListAccountsCommand(params);
70
66
  ```
71
67
 
@@ -224,7 +220,6 @@ GetRoleCredentials
224
220
  </summary>
225
221
 
226
222
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso/command/GetRoleCredentialsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/GetRoleCredentialsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/GetRoleCredentialsCommandOutput/)
227
-
228
223
  </details>
229
224
  <details>
230
225
  <summary>
@@ -232,7 +227,6 @@ ListAccountRoles
232
227
  </summary>
233
228
 
234
229
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso/command/ListAccountRolesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/ListAccountRolesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/ListAccountRolesCommandOutput/)
235
-
236
230
  </details>
237
231
  <details>
238
232
  <summary>
@@ -240,7 +234,6 @@ ListAccounts
240
234
  </summary>
241
235
 
242
236
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso/command/ListAccountsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/ListAccountsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/ListAccountsCommandOutput/)
243
-
244
237
  </details>
245
238
  <details>
246
239
  <summary>
@@ -248,5 +241,4 @@ Logout
248
241
  </summary>
249
242
 
250
243
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso/command/LogoutCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/LogoutCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/LogoutCommandOutput/)
251
-
252
244
  </details>
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
8
  operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
10
- (() => {
11
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
12
- })(),
9
+ region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
10
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
+ })(),
13
12
  };
14
13
  };
15
14
  exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
@@ -36,22 +35,30 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
36
35
  const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
37
36
  const options = [];
38
37
  switch (authParameters.operation) {
39
- case "GetRoleCredentials": {
40
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
41
- break;
42
- }
43
- case "ListAccountRoles": {
44
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
45
- break;
46
- }
47
- case "ListAccounts": {
48
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
49
- break;
50
- }
51
- case "Logout": {
52
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
53
- break;
54
- }
38
+ case "GetRoleCredentials":
39
+ {
40
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
41
+ break;
42
+ }
43
+ ;
44
+ case "ListAccountRoles":
45
+ {
46
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
47
+ break;
48
+ }
49
+ ;
50
+ case "ListAccounts":
51
+ {
52
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
53
+ break;
54
+ }
55
+ ;
56
+ case "Logout":
57
+ {
58
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
59
+ break;
60
+ }
61
+ ;
55
62
  default: {
56
63
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
57
64
  }
package/dist-cjs/index.js CHANGED
@@ -220,108 +220,100 @@ const n0 = "com.amazonaws.sso";
220
220
  var AccessTokenType = [0, n0, _ATT, 8, 0];
221
221
  var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
222
222
  var SessionTokenType = [0, n0, _STT, 8, 0];
223
- var AccountInfo$ = [3, n0, _AI, 0, [_aI, _aN, _eA], [0, 0, 0]];
224
- var GetRoleCredentialsRequest$ = [
225
- 3,
226
- n0,
227
- _GRCR,
223
+ var AccountInfo$ = [3, n0, _AI,
224
+ 0,
225
+ [_aI, _aN, _eA],
226
+ [0, 0, 0]
227
+ ];
228
+ var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
228
229
  0,
229
230
  [_rN, _aI, _aT],
230
- [
231
- [0, { [_hQ]: _rn }],
232
- [0, { [_hQ]: _ai }],
233
- [() => AccessTokenType, { [_hH]: _xasbt }],
234
- ],
231
+ [[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]]
235
232
  ];
236
- var GetRoleCredentialsResponse$ = [
237
- 3,
238
- n0,
239
- _GRCRe,
233
+ var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
240
234
  0,
241
235
  [_rC],
242
- [[() => RoleCredentials$, 0]],
236
+ [[() => RoleCredentials$, 0]]
237
+ ];
238
+ var InvalidRequestException$ = [-3, n0, _IRE,
239
+ { [_e]: _c, [_hE]: 400 },
240
+ [_m],
241
+ [0]
243
242
  ];
244
- var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
245
243
  schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
246
- var ListAccountRolesRequest$ = [
247
- 3,
248
- n0,
249
- _LARR,
244
+ var ListAccountRolesRequest$ = [3, n0, _LARR,
250
245
  0,
251
246
  [_nT, _mR, _aT, _aI],
252
- [
253
- [0, { [_hQ]: _nt }],
254
- [1, { [_hQ]: _mr }],
255
- [() => AccessTokenType, { [_hH]: _xasbt }],
256
- [0, { [_hQ]: _ai }],
257
- ],
247
+ [[0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }], [() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }]]
248
+ ];
249
+ var ListAccountRolesResponse$ = [3, n0, _LARRi,
250
+ 0,
251
+ [_nT, _rL],
252
+ [0, () => RoleListType]
258
253
  ];
259
- var ListAccountRolesResponse$ = [3, n0, _LARRi, 0, [_nT, _rL], [0, () => RoleListType]];
260
- var ListAccountsRequest$ = [
261
- 3,
262
- n0,
263
- _LAR,
254
+ var ListAccountsRequest$ = [3, n0, _LAR,
264
255
  0,
265
256
  [_nT, _mR, _aT],
266
- [
267
- [0, { [_hQ]: _nt }],
268
- [1, { [_hQ]: _mr }],
269
- [() => AccessTokenType, { [_hH]: _xasbt }],
270
- ],
257
+ [[0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }], [() => AccessTokenType, { [_hH]: _xasbt }]]
258
+ ];
259
+ var ListAccountsResponse$ = [3, n0, _LARi,
260
+ 0,
261
+ [_nT, _aL],
262
+ [0, () => AccountListType]
263
+ ];
264
+ var LogoutRequest$ = [3, n0, _LR,
265
+ 0,
266
+ [_aT],
267
+ [[() => AccessTokenType, { [_hH]: _xasbt }]]
268
+ ];
269
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
270
+ { [_e]: _c, [_hE]: 404 },
271
+ [_m],
272
+ [0]
271
273
  ];
272
- var ListAccountsResponse$ = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]];
273
- var LogoutRequest$ = [3, n0, _LR, 0, [_aT], [[() => AccessTokenType, { [_hH]: _xasbt }]]];
274
- var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
275
274
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
276
- var RoleCredentials$ = [
277
- 3,
278
- n0,
279
- _RC,
275
+ var RoleCredentials$ = [3, n0, _RC,
280
276
  0,
281
277
  [_aKI, _sAK, _sT, _ex],
282
- [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1],
278
+ [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
279
+ ];
280
+ var RoleInfo$ = [3, n0, _RI,
281
+ 0,
282
+ [_rN, _aI],
283
+ [0, 0]
284
+ ];
285
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
286
+ { [_e]: _c, [_hE]: 429 },
287
+ [_m],
288
+ [0]
283
289
  ];
284
- var RoleInfo$ = [3, n0, _RI, 0, [_rN, _aI], [0, 0]];
285
- var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
286
290
  schema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
287
- var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];
291
+ var UnauthorizedException$ = [-3, n0, _UE,
292
+ { [_e]: _c, [_hE]: 401 },
293
+ [_m],
294
+ [0]
295
+ ];
288
296
  schema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
289
297
  var __Unit = "unit";
290
298
  var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
291
299
  schema.TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException);
292
- var AccountListType = [1, n0, _ALT, 0, () => AccountInfo$];
293
- var RoleListType = [1, n0, _RLT, 0, () => RoleInfo$];
294
- var GetRoleCredentials$ = [
295
- 9,
296
- n0,
297
- _GRC,
298
- { [_h]: ["GET", "/federation/credentials", 200] },
299
- () => GetRoleCredentialsRequest$,
300
- () => GetRoleCredentialsResponse$,
300
+ var AccountListType = [1, n0, _ALT,
301
+ 0, () => AccountInfo$
302
+ ];
303
+ var RoleListType = [1, n0, _RLT,
304
+ 0, () => RoleInfo$
305
+ ];
306
+ var GetRoleCredentials$ = [9, n0, _GRC,
307
+ { [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
301
308
  ];
302
- var ListAccountRoles$ = [
303
- 9,
304
- n0,
305
- _LARis,
306
- { [_h]: ["GET", "/assignment/roles", 200] },
307
- () => ListAccountRolesRequest$,
308
- () => ListAccountRolesResponse$,
309
+ var ListAccountRoles$ = [9, n0, _LARis,
310
+ { [_h]: ["GET", "/assignment/roles", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$
309
311
  ];
310
- var ListAccounts$ = [
311
- 9,
312
- n0,
313
- _LA,
314
- { [_h]: ["GET", "/assignment/accounts", 200] },
315
- () => ListAccountsRequest$,
316
- () => ListAccountsResponse$,
312
+ var ListAccounts$ = [9, n0, _LA,
313
+ { [_h]: ["GET", "/assignment/accounts", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$
317
314
  ];
318
- var Logout$ = [
319
- 9,
320
- n0,
321
- _L,
322
- { [_h]: ["POST", "/logout", 200] },
323
- () => LogoutRequest$,
324
- () => __Unit,
315
+ var Logout$ = [9, n0, _L,
316
+ { [_h]: ["POST", "/logout", 200] }, () => LogoutRequest$, () => __Unit
325
317
  ];
326
318
 
327
319
  class GetRoleCredentialsCommand extends smithyClient.Command
@@ -23,8 +23,7 @@ const getRuntimeConfig = (config) => {
23
23
  runtime: "browser",
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
27
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
27
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
29
28
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
30
29
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -32,11 +32,9 @@ const getRuntimeConfig = (config) => {
32
32
  defaultsMode,
33
33
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
34
34
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
35
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
36
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
38
- region: config?.region ??
39
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
37
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
40
38
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
41
39
  retryMode: config?.retryMode ??
42
40
  (0, node_config_provider_1.loadConfig)({
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -32,22 +31,30 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
32
31
  export const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
33
32
  const options = [];
34
33
  switch (authParameters.operation) {
35
- case "GetRoleCredentials": {
36
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
37
- break;
38
- }
39
- case "ListAccountRoles": {
40
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
41
- break;
42
- }
43
- case "ListAccounts": {
44
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
45
- break;
46
- }
47
- case "Logout": {
48
- options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
49
- break;
50
- }
34
+ case "GetRoleCredentials":
35
+ {
36
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
37
+ break;
38
+ }
39
+ ;
40
+ case "ListAccountRoles":
41
+ {
42
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
43
+ break;
44
+ }
45
+ ;
46
+ case "ListAccounts":
47
+ {
48
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
49
+ break;
50
+ }
51
+ ;
52
+ case "Logout":
53
+ {
54
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
55
+ break;
56
+ }
57
+ ;
51
58
  default: {
52
59
  options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
53
60
  }
@@ -19,8 +19,7 @@ export const getRuntimeConfig = (config) => {
19
19
  runtime: "browser",
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
23
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
24
23
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
25
24
  region: config?.region ?? invalidProvider("Region is missing"),
26
25
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,6 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
5
5
  import { Hash } from "@smithy/hash-node";
6
6
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -28,11 +28,9 @@ export const getRuntimeConfig = (config) => {
28
28
  defaultsMode,
29
29
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
30
30
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
31
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
32
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
34
- region: config?.region ??
35
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
33
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
34
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
35
  retryMode: config?.retryMode ??
38
36
  loadNodeConfig({
@@ -55,106 +55,98 @@ import { SSOServiceException } from "../models/SSOServiceException";
55
55
  var AccessTokenType = [0, n0, _ATT, 8, 0];
56
56
  var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
57
57
  var SessionTokenType = [0, n0, _STT, 8, 0];
58
- export var AccountInfo$ = [3, n0, _AI, 0, [_aI, _aN, _eA], [0, 0, 0]];
59
- export var GetRoleCredentialsRequest$ = [
60
- 3,
61
- n0,
62
- _GRCR,
58
+ export var AccountInfo$ = [3, n0, _AI,
59
+ 0,
60
+ [_aI, _aN, _eA],
61
+ [0, 0, 0]
62
+ ];
63
+ export var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
63
64
  0,
64
65
  [_rN, _aI, _aT],
65
- [
66
- [0, { [_hQ]: _rn }],
67
- [0, { [_hQ]: _ai }],
68
- [() => AccessTokenType, { [_hH]: _xasbt }],
69
- ],
70
- ];
71
- export var GetRoleCredentialsResponse$ = [
72
- 3,
73
- n0,
74
- _GRCRe,
66
+ [[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]]
67
+ ];
68
+ export var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
75
69
  0,
76
70
  [_rC],
77
- [[() => RoleCredentials$, 0]],
71
+ [[() => RoleCredentials$, 0]]
72
+ ];
73
+ export var InvalidRequestException$ = [-3, n0, _IRE,
74
+ { [_e]: _c, [_hE]: 400 },
75
+ [_m],
76
+ [0]
78
77
  ];
79
- export var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
80
78
  TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
81
- export var ListAccountRolesRequest$ = [
82
- 3,
83
- n0,
84
- _LARR,
79
+ export var ListAccountRolesRequest$ = [3, n0, _LARR,
85
80
  0,
86
81
  [_nT, _mR, _aT, _aI],
87
- [
88
- [0, { [_hQ]: _nt }],
89
- [1, { [_hQ]: _mr }],
90
- [() => AccessTokenType, { [_hH]: _xasbt }],
91
- [0, { [_hQ]: _ai }],
92
- ],
93
- ];
94
- export var ListAccountRolesResponse$ = [3, n0, _LARRi, 0, [_nT, _rL], [0, () => RoleListType]];
95
- export var ListAccountsRequest$ = [
96
- 3,
97
- n0,
98
- _LAR,
82
+ [[0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }], [() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }]]
83
+ ];
84
+ export var ListAccountRolesResponse$ = [3, n0, _LARRi,
85
+ 0,
86
+ [_nT, _rL],
87
+ [0, () => RoleListType]
88
+ ];
89
+ export var ListAccountsRequest$ = [3, n0, _LAR,
99
90
  0,
100
91
  [_nT, _mR, _aT],
101
- [
102
- [0, { [_hQ]: _nt }],
103
- [1, { [_hQ]: _mr }],
104
- [() => AccessTokenType, { [_hH]: _xasbt }],
105
- ],
106
- ];
107
- export var ListAccountsResponse$ = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]];
108
- export var LogoutRequest$ = [3, n0, _LR, 0, [_aT], [[() => AccessTokenType, { [_hH]: _xasbt }]]];
109
- export var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
92
+ [[0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }], [() => AccessTokenType, { [_hH]: _xasbt }]]
93
+ ];
94
+ export var ListAccountsResponse$ = [3, n0, _LARi,
95
+ 0,
96
+ [_nT, _aL],
97
+ [0, () => AccountListType]
98
+ ];
99
+ export var LogoutRequest$ = [3, n0, _LR,
100
+ 0,
101
+ [_aT],
102
+ [[() => AccessTokenType, { [_hH]: _xasbt }]]
103
+ ];
104
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
105
+ { [_e]: _c, [_hE]: 404 },
106
+ [_m],
107
+ [0]
108
+ ];
110
109
  TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
111
- export var RoleCredentials$ = [
112
- 3,
113
- n0,
114
- _RC,
110
+ export var RoleCredentials$ = [3, n0, _RC,
115
111
  0,
116
112
  [_aKI, _sAK, _sT, _ex],
117
- [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1],
113
+ [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
114
+ ];
115
+ export var RoleInfo$ = [3, n0, _RI,
116
+ 0,
117
+ [_rN, _aI],
118
+ [0, 0]
119
+ ];
120
+ export var TooManyRequestsException$ = [-3, n0, _TMRE,
121
+ { [_e]: _c, [_hE]: 429 },
122
+ [_m],
123
+ [0]
118
124
  ];
119
- export var RoleInfo$ = [3, n0, _RI, 0, [_rN, _aI], [0, 0]];
120
- export var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
121
125
  TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
122
- export var UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];
126
+ export var UnauthorizedException$ = [-3, n0, _UE,
127
+ { [_e]: _c, [_hE]: 401 },
128
+ [_m],
129
+ [0]
130
+ ];
123
131
  TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
124
132
  var __Unit = "unit";
125
133
  export var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
126
134
  TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException);
127
- var AccountListType = [1, n0, _ALT, 0, () => AccountInfo$];
128
- var RoleListType = [1, n0, _RLT, 0, () => RoleInfo$];
129
- export var GetRoleCredentials$ = [
130
- 9,
131
- n0,
132
- _GRC,
133
- { [_h]: ["GET", "/federation/credentials", 200] },
134
- () => GetRoleCredentialsRequest$,
135
- () => GetRoleCredentialsResponse$,
136
- ];
137
- export var ListAccountRoles$ = [
138
- 9,
139
- n0,
140
- _LARis,
141
- { [_h]: ["GET", "/assignment/roles", 200] },
142
- () => ListAccountRolesRequest$,
143
- () => ListAccountRolesResponse$,
144
- ];
145
- export var ListAccounts$ = [
146
- 9,
147
- n0,
148
- _LA,
149
- { [_h]: ["GET", "/assignment/accounts", 200] },
150
- () => ListAccountsRequest$,
151
- () => ListAccountsResponse$,
152
- ];
153
- export var Logout$ = [
154
- 9,
155
- n0,
156
- _L,
157
- { [_h]: ["POST", "/logout", 200] },
158
- () => LogoutRequest$,
159
- () => __Unit,
135
+ var AccountListType = [1, n0, _ALT,
136
+ 0, () => AccountInfo$
137
+ ];
138
+ var RoleListType = [1, n0, _RLT,
139
+ 0, () => RoleInfo$
140
+ ];
141
+ export var GetRoleCredentials$ = [9, n0, _GRC,
142
+ { [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
143
+ ];
144
+ export var ListAccountRoles$ = [9, n0, _LARis,
145
+ { [_h]: ["GET", "/assignment/roles", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$
146
+ ];
147
+ export var ListAccounts$ = [9, n0, _LA,
148
+ { [_h]: ["GET", "/assignment/accounts", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$
149
+ ];
150
+ export var Logout$ = [9, n0, _L,
151
+ { [_h]: ["POST", "/logout", 200] }, () => LogoutRequest$, () => __Unit
160
152
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
4
- "version": "3.957.0",
4
+ "version": "3.964.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -21,16 +21,16 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.957.0",
24
+ "@aws-sdk/core": "3.964.0",
25
25
  "@aws-sdk/middleware-host-header": "3.957.0",
26
26
  "@aws-sdk/middleware-logger": "3.957.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.957.0",
28
- "@aws-sdk/middleware-user-agent": "3.957.0",
28
+ "@aws-sdk/middleware-user-agent": "3.964.0",
29
29
  "@aws-sdk/region-config-resolver": "3.957.0",
30
30
  "@aws-sdk/types": "3.957.0",
31
31
  "@aws-sdk/util-endpoints": "3.957.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.957.0",
33
- "@aws-sdk/util-user-agent-node": "3.957.0",
33
+ "@aws-sdk/util-user-agent-node": "3.964.0",
34
34
  "@smithy/config-resolver": "^4.4.5",
35
35
  "@smithy/core": "^3.20.0",
36
36
  "@smithy/fetch-http-handler": "^5.3.8",