@aws-sdk/client-sso-oidc 3.1137.0 → 3.1139.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
@@ -89,7 +89,7 @@ const commonParams = {
89
89
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
90
90
  };
91
91
 
92
- var version = "3.1136.0";
92
+ var version = "3.1138.0";
93
93
  var packageInfo = {
94
94
  version: version};
95
95
 
@@ -475,10 +475,10 @@ const _uC = "userCode";
475
475
  const _vU = "verificationUri";
476
476
  const _vUC = "verificationUriComplete";
477
477
  const n0 = "com.amazonaws.ssooidc";
478
- const _s_registry = TypeRegistry.for(_s);
478
+ const _s_registry = new TypeRegistry(_s);
479
479
  var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
480
480
  _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
481
- const n0_registry = TypeRegistry.for(n0);
481
+ const n0_registry = new TypeRegistry(n0);
482
482
  var AccessDeniedException$ = [-3, n0, _ADE,
483
483
  { [_e]: _c, [_hE]: 400 },
484
484
  [_e, _r, _ed],
@@ -82,10 +82,10 @@ const n0 = "com.amazonaws.ssooidc";
82
82
  import { TypeRegistry } from "@smithy/core/schema";
83
83
  import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidClientMetadataException, InvalidGrantException, InvalidRedirectUriException, InvalidRequestException, InvalidRequestRegionException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/errors";
84
84
  import { SSOOIDCServiceException } from "../models/SSOOIDCServiceException";
85
- const _s_registry = TypeRegistry.for(_s);
85
+ const _s_registry = new TypeRegistry(_s);
86
86
  export var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
87
87
  _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
88
- const n0_registry = TypeRegistry.for(n0);
88
+ const n0_registry = new TypeRegistry(n0);
89
89
  export var AccessDeniedException$ = [-3, n0, _ADE,
90
90
  { [_e]: _c, [_hE]: 400 },
91
91
  [_e, _r, _ed],
@@ -1,34 +1,40 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { type CreateTokenCommandInput, type CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
3
3
  import { type CreateTokenWithIAMCommandInput, type CreateTokenWithIAMCommandOutput } from "./commands/CreateTokenWithIAMCommand";
4
4
  import { type RegisterClientCommandInput, type RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
5
5
  import { type StartDeviceAuthorizationCommandInput, type StartDeviceAuthorizationCommandOutput } from "./commands/StartDeviceAuthorizationCommand";
6
6
  import { SSOOIDCClient } from "./SSOOIDCClient";
7
+ /**
8
+ * @public
9
+ */
10
+ export interface SSOOIDCRequestOptions extends __HttpHandlerOptions {
11
+ metricsRecorder?: __MetricsRecorder<unknown>;
12
+ }
7
13
  export interface SSOOIDC {
8
14
  /**
9
15
  * @see {@link CreateTokenCommand}
10
16
  */
11
- createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
17
+ createToken(args: CreateTokenCommandInput, options?: SSOOIDCRequestOptions): Promise<CreateTokenCommandOutput>;
12
18
  createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
13
- createToken(args: CreateTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
19
+ createToken(args: CreateTokenCommandInput, options: SSOOIDCRequestOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
14
20
  /**
15
21
  * @see {@link CreateTokenWithIAMCommand}
16
22
  */
17
- createTokenWithIAM(args: CreateTokenWithIAMCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenWithIAMCommandOutput>;
23
+ createTokenWithIAM(args: CreateTokenWithIAMCommandInput, options?: SSOOIDCRequestOptions): Promise<CreateTokenWithIAMCommandOutput>;
18
24
  createTokenWithIAM(args: CreateTokenWithIAMCommandInput, cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void): void;
19
- createTokenWithIAM(args: CreateTokenWithIAMCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void): void;
25
+ createTokenWithIAM(args: CreateTokenWithIAMCommandInput, options: SSOOIDCRequestOptions, cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void): void;
20
26
  /**
21
27
  * @see {@link RegisterClientCommand}
22
28
  */
23
- registerClient(args: RegisterClientCommandInput, options?: __HttpHandlerOptions): Promise<RegisterClientCommandOutput>;
29
+ registerClient(args: RegisterClientCommandInput, options?: SSOOIDCRequestOptions): Promise<RegisterClientCommandOutput>;
24
30
  registerClient(args: RegisterClientCommandInput, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
25
- registerClient(args: RegisterClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
31
+ registerClient(args: RegisterClientCommandInput, options: SSOOIDCRequestOptions, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
26
32
  /**
27
33
  * @see {@link StartDeviceAuthorizationCommand}
28
34
  */
29
- startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options?: __HttpHandlerOptions): Promise<StartDeviceAuthorizationCommandOutput>;
35
+ startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options?: SSOOIDCRequestOptions): Promise<StartDeviceAuthorizationCommandOutput>;
30
36
  startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
31
- startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
37
+ startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options: SSOOIDCRequestOptions, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
32
38
  }
33
39
  /**
34
40
  * <p>IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI or a
@@ -1,4 +1,7 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
3
6
  import {
4
7
  CreateTokenWithIAMCommandInput,
@@ -13,10 +16,13 @@ import {
13
16
  StartDeviceAuthorizationCommandOutput,
14
17
  } from "./commands/StartDeviceAuthorizationCommand";
15
18
  import { SSOOIDCClient } from "./SSOOIDCClient";
19
+ export interface SSOOIDCRequestOptions extends __HttpHandlerOptions {
20
+ metricsRecorder?: __MetricsRecorder<unknown>;
21
+ }
16
22
  export interface SSOOIDC {
17
23
  createToken(
18
24
  args: CreateTokenCommandInput,
19
- options?: __HttpHandlerOptions,
25
+ options?: SSOOIDCRequestOptions,
20
26
  ): Promise<CreateTokenCommandOutput>;
21
27
  createToken(
22
28
  args: CreateTokenCommandInput,
@@ -24,12 +30,12 @@ export interface SSOOIDC {
24
30
  ): void;
25
31
  createToken(
26
32
  args: CreateTokenCommandInput,
27
- options: __HttpHandlerOptions,
33
+ options: SSOOIDCRequestOptions,
28
34
  cb: (err: any, data?: CreateTokenCommandOutput) => void,
29
35
  ): void;
30
36
  createTokenWithIAM(
31
37
  args: CreateTokenWithIAMCommandInput,
32
- options?: __HttpHandlerOptions,
38
+ options?: SSOOIDCRequestOptions,
33
39
  ): Promise<CreateTokenWithIAMCommandOutput>;
34
40
  createTokenWithIAM(
35
41
  args: CreateTokenWithIAMCommandInput,
@@ -37,12 +43,12 @@ export interface SSOOIDC {
37
43
  ): void;
38
44
  createTokenWithIAM(
39
45
  args: CreateTokenWithIAMCommandInput,
40
- options: __HttpHandlerOptions,
46
+ options: SSOOIDCRequestOptions,
41
47
  cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void,
42
48
  ): void;
43
49
  registerClient(
44
50
  args: RegisterClientCommandInput,
45
- options?: __HttpHandlerOptions,
51
+ options?: SSOOIDCRequestOptions,
46
52
  ): Promise<RegisterClientCommandOutput>;
47
53
  registerClient(
48
54
  args: RegisterClientCommandInput,
@@ -50,12 +56,12 @@ export interface SSOOIDC {
50
56
  ): void;
51
57
  registerClient(
52
58
  args: RegisterClientCommandInput,
53
- options: __HttpHandlerOptions,
59
+ options: SSOOIDCRequestOptions,
54
60
  cb: (err: any, data?: RegisterClientCommandOutput) => void,
55
61
  ): void;
56
62
  startDeviceAuthorization(
57
63
  args: StartDeviceAuthorizationCommandInput,
58
- options?: __HttpHandlerOptions,
64
+ options?: SSOOIDCRequestOptions,
59
65
  ): Promise<StartDeviceAuthorizationCommandOutput>;
60
66
  startDeviceAuthorization(
61
67
  args: StartDeviceAuthorizationCommandInput,
@@ -63,7 +69,7 @@ export interface SSOOIDC {
63
69
  ): void;
64
70
  startDeviceAuthorization(
65
71
  args: StartDeviceAuthorizationCommandInput,
66
- options: __HttpHandlerOptions,
72
+ options: SSOOIDCRequestOptions,
67
73
  cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void,
68
74
  ): void;
69
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-oidc",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",
6
6
  "license": "Apache-2.0",
@@ -50,13 +50,13 @@
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/credential-provider-node": "^3.972.83",
55
- "@aws-sdk/types": "^3.974.5",
56
- "@smithy/core": "^3.33.3",
57
- "@smithy/fetch-http-handler": "^5.7.2",
58
- "@smithy/node-http-handler": "^4.11.3",
59
- "@smithy/types": "^4.17.2",
53
+ "@aws-sdk/core": "^3.978.1",
54
+ "@aws-sdk/credential-provider-node": "^3.972.84",
55
+ "@aws-sdk/types": "^3.974.6",
56
+ "@smithy/core": "^3.35.0",
57
+ "@smithy/fetch-http-handler": "^5.8.0",
58
+ "@smithy/node-http-handler": "^4.12.1",
59
+ "@smithy/types": "^4.19.0",
60
60
  "tslib": "^2.6.2"
61
61
  },
62
62
  "devDependencies": {