@aws-sdk/client-sso 3.1136.0 → 3.1138.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 CHANGED
@@ -93,7 +93,7 @@ const commonParams = {
93
93
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
94
94
  };
95
95
 
96
- var version = "3.1135.0";
96
+ var version = "3.1137.0";
97
97
  var packageInfo = {
98
98
  version: version};
99
99
 
@@ -265,10 +265,10 @@ const _sAK = "secretAccessKey";
265
265
  const _sT = "sessionToken";
266
266
  const _xasbt = "x-amz-sso_bearer_token";
267
267
  const n0 = "com.amazonaws.sso";
268
- const _s_registry = TypeRegistry.for(_s);
268
+ const _s_registry = new TypeRegistry(_s);
269
269
  var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
270
270
  _s_registry.registerError(SSOServiceException$, SSOServiceException);
271
- const n0_registry = TypeRegistry.for(n0);
271
+ const n0_registry = new TypeRegistry(n0);
272
272
  var InvalidRequestException$ = [-3, n0, _IRE,
273
273
  { [_e]: _c, [_hE]: 400 },
274
274
  [_m],
@@ -52,10 +52,10 @@ const n0 = "com.amazonaws.sso";
52
52
  import { TypeRegistry } from "@smithy/core/schema";
53
53
  import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/errors";
54
54
  import { SSOServiceException } from "../models/SSOServiceException";
55
- const _s_registry = TypeRegistry.for(_s);
55
+ const _s_registry = new TypeRegistry(_s);
56
56
  export var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
57
57
  _s_registry.registerError(SSOServiceException$, SSOServiceException);
58
- const n0_registry = TypeRegistry.for(n0);
58
+ const n0_registry = new TypeRegistry(n0);
59
59
  export var InvalidRequestException$ = [-3, n0, _IRE,
60
60
  { [_e]: _c, [_hE]: 400 },
61
61
  [_m],
@@ -1,34 +1,40 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type GetRoleCredentialsCommandInput, type GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
3
3
  import { type ListAccountRolesCommandInput, type ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
4
4
  import { type ListAccountsCommandInput, type ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
5
5
  import { type LogoutCommandInput, type LogoutCommandOutput } from "./commands/LogoutCommand";
6
6
  import { SSOClient } from "./SSOClient";
7
+ /**
8
+ * @public
9
+ */
10
+ export interface SSORequestOptions extends __HttpHandlerOptions {
11
+ metricsRecorder?: __MetricsRecorder<unknown>;
12
+ }
7
13
  export interface SSO {
8
14
  /**
9
15
  * @see {@link GetRoleCredentialsCommand}
10
16
  */
11
- getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetRoleCredentialsCommandOutput>;
17
+ getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: SSORequestOptions): Promise<GetRoleCredentialsCommandOutput>;
12
18
  getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
13
- getRoleCredentials(args: GetRoleCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
19
+ getRoleCredentials(args: GetRoleCredentialsCommandInput, options: SSORequestOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
14
20
  /**
15
21
  * @see {@link ListAccountRolesCommand}
16
22
  */
17
- listAccountRoles(args: ListAccountRolesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountRolesCommandOutput>;
23
+ listAccountRoles(args: ListAccountRolesCommandInput, options?: SSORequestOptions): Promise<ListAccountRolesCommandOutput>;
18
24
  listAccountRoles(args: ListAccountRolesCommandInput, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
19
- listAccountRoles(args: ListAccountRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
25
+ listAccountRoles(args: ListAccountRolesCommandInput, options: SSORequestOptions, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
20
26
  /**
21
27
  * @see {@link ListAccountsCommand}
22
28
  */
23
- listAccounts(args: ListAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountsCommandOutput>;
29
+ listAccounts(args: ListAccountsCommandInput, options?: SSORequestOptions): Promise<ListAccountsCommandOutput>;
24
30
  listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
25
- listAccounts(args: ListAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
31
+ listAccounts(args: ListAccountsCommandInput, options: SSORequestOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
26
32
  /**
27
33
  * @see {@link LogoutCommand}
28
34
  */
29
- logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise<LogoutCommandOutput>;
35
+ logout(args: LogoutCommandInput, options?: SSORequestOptions): Promise<LogoutCommandOutput>;
30
36
  logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void;
31
- logout(args: LogoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LogoutCommandOutput) => void): void;
37
+ logout(args: LogoutCommandInput, options: SSORequestOptions, cb: (err: any, data?: LogoutCommandOutput) => void): void;
32
38
  /**
33
39
  * @see {@link ListAccountRolesCommand}
34
40
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -17,10 +18,13 @@ import {
17
18
  } from "./commands/ListAccountsCommand";
18
19
  import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
19
20
  import { SSOClient } from "./SSOClient";
21
+ export interface SSORequestOptions extends __HttpHandlerOptions {
22
+ metricsRecorder?: __MetricsRecorder<unknown>;
23
+ }
20
24
  export interface SSO {
21
25
  getRoleCredentials(
22
26
  args: GetRoleCredentialsCommandInput,
23
- options?: __HttpHandlerOptions,
27
+ options?: SSORequestOptions,
24
28
  ): Promise<GetRoleCredentialsCommandOutput>;
25
29
  getRoleCredentials(
26
30
  args: GetRoleCredentialsCommandInput,
@@ -28,12 +32,12 @@ export interface SSO {
28
32
  ): void;
29
33
  getRoleCredentials(
30
34
  args: GetRoleCredentialsCommandInput,
31
- options: __HttpHandlerOptions,
35
+ options: SSORequestOptions,
32
36
  cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void,
33
37
  ): void;
34
38
  listAccountRoles(
35
39
  args: ListAccountRolesCommandInput,
36
- options?: __HttpHandlerOptions,
40
+ options?: SSORequestOptions,
37
41
  ): Promise<ListAccountRolesCommandOutput>;
38
42
  listAccountRoles(
39
43
  args: ListAccountRolesCommandInput,
@@ -41,12 +45,12 @@ export interface SSO {
41
45
  ): void;
42
46
  listAccountRoles(
43
47
  args: ListAccountRolesCommandInput,
44
- options: __HttpHandlerOptions,
48
+ options: SSORequestOptions,
45
49
  cb: (err: any, data?: ListAccountRolesCommandOutput) => void,
46
50
  ): void;
47
51
  listAccounts(
48
52
  args: ListAccountsCommandInput,
49
- options?: __HttpHandlerOptions,
53
+ options?: SSORequestOptions,
50
54
  ): Promise<ListAccountsCommandOutput>;
51
55
  listAccounts(
52
56
  args: ListAccountsCommandInput,
@@ -54,14 +58,14 @@ export interface SSO {
54
58
  ): void;
55
59
  listAccounts(
56
60
  args: ListAccountsCommandInput,
57
- options: __HttpHandlerOptions,
61
+ options: SSORequestOptions,
58
62
  cb: (err: any, data?: ListAccountsCommandOutput) => void,
59
63
  ): void;
60
- logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise<LogoutCommandOutput>;
64
+ logout(args: LogoutCommandInput, options?: SSORequestOptions): Promise<LogoutCommandOutput>;
61
65
  logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void;
62
66
  logout(
63
67
  args: LogoutCommandInput,
64
- options: __HttpHandlerOptions,
68
+ options: SSORequestOptions,
65
69
  cb: (err: any, data?: LogoutCommandOutput) => void,
66
70
  ): void;
67
71
  paginateListAccountRoles(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
- "version": "3.1136.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",
6
6
  "license": "Apache-2.0",
@@ -50,12 +50,12 @@
50
50
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
51
51
  },
52
52
  "dependencies": {
53
- "@aws-sdk/core": "^3.978.0",
54
- "@aws-sdk/types": "^3.974.5",
55
- "@smithy/core": "^3.33.3",
56
- "@smithy/fetch-http-handler": "^5.7.2",
57
- "@smithy/node-http-handler": "^4.11.3",
58
- "@smithy/types": "^4.17.2",
53
+ "@aws-sdk/core": "^3.978.1",
54
+ "@aws-sdk/types": "^3.974.6",
55
+ "@smithy/core": "^3.35.0",
56
+ "@smithy/fetch-http-handler": "^5.8.0",
57
+ "@smithy/node-http-handler": "^4.12.1",
58
+ "@smithy/types": "^4.19.0",
59
59
  "tslib": "^2.6.2"
60
60
  },
61
61
  "devDependencies": {