@aws-sdk/client-sso-oidc 3.451.0 → 3.455.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 (48) hide show
  1. package/README.md +20 -13
  2. package/dist-cjs/SSOOIDC.js +2 -0
  3. package/dist-cjs/SSOOIDCClient.js +6 -4
  4. package/dist-cjs/commands/CreateTokenCommand.js +3 -2
  5. package/dist-cjs/commands/CreateTokenWithIAMCommand.js +54 -0
  6. package/dist-cjs/commands/RegisterClientCommand.js +2 -1
  7. package/dist-cjs/commands/StartDeviceAuthorizationCommand.js +2 -1
  8. package/dist-cjs/commands/index.js +1 -0
  9. package/dist-cjs/endpoint/EndpointParameters.js +1 -1
  10. package/dist-cjs/models/models_0.js +56 -1
  11. package/dist-cjs/protocols/Aws_restJson1.js +124 -1
  12. package/dist-cjs/runtimeConfig.browser.js +1 -0
  13. package/dist-cjs/runtimeConfig.js +3 -0
  14. package/dist-es/SSOOIDC.js +2 -0
  15. package/dist-es/SSOOIDCClient.js +6 -4
  16. package/dist-es/commands/CreateTokenCommand.js +3 -2
  17. package/dist-es/commands/CreateTokenWithIAMCommand.js +50 -0
  18. package/dist-es/commands/RegisterClientCommand.js +2 -1
  19. package/dist-es/commands/StartDeviceAuthorizationCommand.js +2 -1
  20. package/dist-es/commands/index.js +1 -0
  21. package/dist-es/endpoint/EndpointParameters.js +1 -1
  22. package/dist-es/models/models_0.js +48 -0
  23. package/dist-es/protocols/Aws_restJson1.js +122 -1
  24. package/dist-es/runtimeConfig.browser.js +1 -0
  25. package/dist-es/runtimeConfig.js +3 -0
  26. package/dist-types/SSOOIDC.d.ts +19 -13
  27. package/dist-types/SSOOIDCClient.d.ts +24 -17
  28. package/dist-types/commands/CreateTokenCommand.d.ts +50 -3
  29. package/dist-types/commands/CreateTokenWithIAMCommand.d.ts +258 -0
  30. package/dist-types/commands/RegisterClientCommand.d.ts +24 -0
  31. package/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +23 -0
  32. package/dist-types/commands/index.d.ts +1 -0
  33. package/dist-types/index.d.ts +12 -13
  34. package/dist-types/models/models_0.d.ts +364 -36
  35. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  36. package/dist-types/runtimeConfig.browser.d.ts +7 -0
  37. package/dist-types/runtimeConfig.d.ts +7 -0
  38. package/dist-types/runtimeConfig.native.d.ts +7 -0
  39. package/dist-types/ts3.4/SSOOIDC.d.ts +17 -0
  40. package/dist-types/ts3.4/SSOOIDCClient.d.ts +14 -0
  41. package/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +39 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +50 -0
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  45. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +24 -0
  46. package/dist-types/ts3.4/runtimeConfig.d.ts +24 -0
  47. package/dist-types/ts3.4/runtimeConfig.native.d.ts +24 -0
  48. package/package.json +4 -1
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
25
26
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
26
27
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
28
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -34,5 +35,11 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
34
35
  }) => import("@smithy/types").EndpointV2;
35
36
  tls?: boolean | undefined;
36
37
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
38
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
40
+ signingEscapePath?: boolean | undefined;
41
+ systemClockOffset?: number | undefined;
42
+ signingRegion?: string | undefined;
43
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
37
44
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
38
45
  };
@@ -3,6 +3,10 @@ import {
3
3
  CreateTokenCommandInput,
4
4
  CreateTokenCommandOutput,
5
5
  } from "./commands/CreateTokenCommand";
6
+ import {
7
+ CreateTokenWithIAMCommandInput,
8
+ CreateTokenWithIAMCommandOutput,
9
+ } from "./commands/CreateTokenWithIAMCommand";
6
10
  import {
7
11
  RegisterClientCommandInput,
8
12
  RegisterClientCommandOutput,
@@ -26,6 +30,19 @@ export interface SSOOIDC {
26
30
  options: __HttpHandlerOptions,
27
31
  cb: (err: any, data?: CreateTokenCommandOutput) => void
28
32
  ): void;
33
+ createTokenWithIAM(
34
+ args: CreateTokenWithIAMCommandInput,
35
+ options?: __HttpHandlerOptions
36
+ ): Promise<CreateTokenWithIAMCommandOutput>;
37
+ createTokenWithIAM(
38
+ args: CreateTokenWithIAMCommandInput,
39
+ cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void
40
+ ): void;
41
+ createTokenWithIAM(
42
+ args: CreateTokenWithIAMCommandInput,
43
+ options: __HttpHandlerOptions,
44
+ cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void
45
+ ): void;
29
46
  registerClient(
30
47
  args: RegisterClientCommandInput,
31
48
  options?: __HttpHandlerOptions
@@ -2,10 +2,15 @@ import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
4
  } from "@aws-sdk/middleware-host-header";
5
+ import {
6
+ AwsAuthInputConfig,
7
+ AwsAuthResolvedConfig,
8
+ } from "@aws-sdk/middleware-signing";
5
9
  import {
6
10
  UserAgentInputConfig,
7
11
  UserAgentResolvedConfig,
8
12
  } from "@aws-sdk/middleware-user-agent";
13
+ import { Credentials as __Credentials } from "@aws-sdk/types";
9
14
  import {
10
15
  RegionInputConfig,
11
16
  RegionResolvedConfig,
@@ -44,6 +49,10 @@ import {
44
49
  CreateTokenCommandInput,
45
50
  CreateTokenCommandOutput,
46
51
  } from "./commands/CreateTokenCommand";
52
+ import {
53
+ CreateTokenWithIAMCommandInput,
54
+ CreateTokenWithIAMCommandOutput,
55
+ } from "./commands/CreateTokenWithIAMCommand";
47
56
  import {
48
57
  RegisterClientCommandInput,
49
58
  RegisterClientCommandOutput,
@@ -61,10 +70,12 @@ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
61
70
  export { __Client };
62
71
  export type ServiceInputTypes =
63
72
  | CreateTokenCommandInput
73
+ | CreateTokenWithIAMCommandInput
64
74
  | RegisterClientCommandInput
65
75
  | StartDeviceAuthorizationCommandInput;
66
76
  export type ServiceOutputTypes =
67
77
  | CreateTokenCommandOutput
78
+ | CreateTokenWithIAMCommandOutput
68
79
  | RegisterClientCommandOutput
69
80
  | StartDeviceAuthorizationCommandOutput;
70
81
  export interface ClientDefaults
@@ -84,6 +95,7 @@ export interface ClientDefaults
84
95
  useDualstackEndpoint?: boolean | __Provider<boolean>;
85
96
  useFipsEndpoint?: boolean | __Provider<boolean>;
86
97
  region?: string | __Provider<string>;
98
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
87
99
  defaultUserAgentProvider?: Provider<__UserAgent>;
88
100
  maxAttempts?: number | __Provider<number>;
89
101
  retryMode?: string | __Provider<string>;
@@ -99,6 +111,7 @@ export type SSOOIDCClientConfigType = Partial<
99
111
  EndpointInputConfig<EndpointParameters> &
100
112
  RetryInputConfig &
101
113
  HostHeaderInputConfig &
114
+ AwsAuthInputConfig &
102
115
  UserAgentInputConfig &
103
116
  ClientInputEndpointParameters;
104
117
  export interface SSOOIDCClientConfig extends SSOOIDCClientConfigType {}
@@ -110,6 +123,7 @@ export type SSOOIDCClientResolvedConfigType =
110
123
  EndpointResolvedConfig<EndpointParameters> &
111
124
  RetryResolvedConfig &
112
125
  HostHeaderResolvedConfig &
126
+ AwsAuthResolvedConfig &
113
127
  UserAgentResolvedConfig &
114
128
  ClientResolvedEndpointParameters;
115
129
  export interface SSOOIDCClientResolvedConfig
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CreateTokenWithIAMRequest,
11
+ CreateTokenWithIAMResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ ServiceInputTypes,
15
+ ServiceOutputTypes,
16
+ SSOOIDCClientResolvedConfig,
17
+ } from "../SSOOIDCClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface CreateTokenWithIAMCommandInput
20
+ extends CreateTokenWithIAMRequest {}
21
+ export interface CreateTokenWithIAMCommandOutput
22
+ extends CreateTokenWithIAMResponse,
23
+ __MetadataBearer {}
24
+ export declare class CreateTokenWithIAMCommand extends $Command<
25
+ CreateTokenWithIAMCommandInput,
26
+ CreateTokenWithIAMCommandOutput,
27
+ SSOOIDCClientResolvedConfig
28
+ > {
29
+ readonly input: CreateTokenWithIAMCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: CreateTokenWithIAMCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: SSOOIDCClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<CreateTokenWithIAMCommandInput, CreateTokenWithIAMCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./CreateTokenCommand";
2
+ export * from "./CreateTokenWithIAMCommand";
2
3
  export * from "./RegisterClientCommand";
3
4
  export * from "./StartDeviceAuthorizationCommand";
@@ -114,6 +114,38 @@ export declare class UnsupportedGrantTypeException extends __BaseException {
114
114
  opts: __ExceptionOptionType<UnsupportedGrantTypeException, __BaseException>
115
115
  );
116
116
  }
117
+ export interface CreateTokenWithIAMRequest {
118
+ clientId: string | undefined;
119
+ grantType: string | undefined;
120
+ code?: string;
121
+ refreshToken?: string;
122
+ assertion?: string;
123
+ scope?: string[];
124
+ redirectUri?: string;
125
+ subjectToken?: string;
126
+ subjectTokenType?: string;
127
+ requestedTokenType?: string;
128
+ }
129
+ export interface CreateTokenWithIAMResponse {
130
+ accessToken?: string;
131
+ tokenType?: string;
132
+ expiresIn?: number;
133
+ refreshToken?: string;
134
+ idToken?: string;
135
+ issuedTokenType?: string;
136
+ scope?: string[];
137
+ }
138
+ export declare class InvalidRequestRegionException extends __BaseException {
139
+ readonly name: "InvalidRequestRegionException";
140
+ readonly $fault: "client";
141
+ error?: string;
142
+ error_description?: string;
143
+ endpoint?: string;
144
+ region?: string;
145
+ constructor(
146
+ opts: __ExceptionOptionType<InvalidRequestRegionException, __BaseException>
147
+ );
148
+ }
117
149
  export declare class InvalidClientMetadataException extends __BaseException {
118
150
  readonly name: "InvalidClientMetadataException";
119
151
  readonly $fault: "client";
@@ -149,3 +181,21 @@ export interface StartDeviceAuthorizationResponse {
149
181
  expiresIn?: number;
150
182
  interval?: number;
151
183
  }
184
+ export declare const CreateTokenRequestFilterSensitiveLog: (
185
+ obj: CreateTokenRequest
186
+ ) => any;
187
+ export declare const CreateTokenResponseFilterSensitiveLog: (
188
+ obj: CreateTokenResponse
189
+ ) => any;
190
+ export declare const CreateTokenWithIAMRequestFilterSensitiveLog: (
191
+ obj: CreateTokenWithIAMRequest
192
+ ) => any;
193
+ export declare const CreateTokenWithIAMResponseFilterSensitiveLog: (
194
+ obj: CreateTokenWithIAMResponse
195
+ ) => any;
196
+ export declare const RegisterClientResponseFilterSensitiveLog: (
197
+ obj: RegisterClientResponse
198
+ ) => any;
199
+ export declare const StartDeviceAuthorizationRequestFilterSensitiveLog: (
200
+ obj: StartDeviceAuthorizationRequest
201
+ ) => any;
@@ -7,6 +7,10 @@ import {
7
7
  CreateTokenCommandInput,
8
8
  CreateTokenCommandOutput,
9
9
  } from "../commands/CreateTokenCommand";
10
+ import {
11
+ CreateTokenWithIAMCommandInput,
12
+ CreateTokenWithIAMCommandOutput,
13
+ } from "../commands/CreateTokenWithIAMCommand";
10
14
  import {
11
15
  RegisterClientCommandInput,
12
16
  RegisterClientCommandOutput,
@@ -19,6 +23,10 @@ export declare const se_CreateTokenCommand: (
19
23
  input: CreateTokenCommandInput,
20
24
  context: __SerdeContext
21
25
  ) => Promise<__HttpRequest>;
26
+ export declare const se_CreateTokenWithIAMCommand: (
27
+ input: CreateTokenWithIAMCommandInput,
28
+ context: __SerdeContext
29
+ ) => Promise<__HttpRequest>;
22
30
  export declare const se_RegisterClientCommand: (
23
31
  input: RegisterClientCommandInput,
24
32
  context: __SerdeContext
@@ -31,6 +39,10 @@ export declare const de_CreateTokenCommand: (
31
39
  output: __HttpResponse,
32
40
  context: __SerdeContext
33
41
  ) => Promise<CreateTokenCommandOutput>;
42
+ export declare const de_CreateTokenWithIAMCommand: (
43
+ output: __HttpResponse,
44
+ context: __SerdeContext
45
+ ) => Promise<CreateTokenWithIAMCommandOutput>;
34
46
  export declare const de_RegisterClientCommand: (
35
47
  output: __HttpResponse,
36
48
  context: __SerdeContext
@@ -6,6 +6,9 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
+ credentialDefaultProvider: (
10
+ input: any
11
+ ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
9
12
  defaultUserAgentProvider: import("@smithy/types").Provider<
10
13
  import("@smithy/types").UserAgent
11
14
  >;
@@ -69,5 +72,26 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
69
72
  | import("@smithy/types").RetryStrategy
70
73
  | import("@smithy/types").RetryStrategyV2
71
74
  | undefined;
75
+ credentials?:
76
+ | import("@smithy/types").AwsCredentialIdentity
77
+ | import("@smithy/types").Provider<
78
+ import("@smithy/types").AwsCredentialIdentity
79
+ >
80
+ | undefined;
81
+ signer?:
82
+ | import("@smithy/types").RequestSigner
83
+ | ((
84
+ authScheme?: import("@smithy/types").AuthScheme | undefined
85
+ ) => Promise<import("@smithy/types").RequestSigner>)
86
+ | undefined;
87
+ signingEscapePath?: boolean | undefined;
88
+ systemClockOffset?: number | undefined;
89
+ signingRegion?: string | undefined;
90
+ signerConstructor?:
91
+ | (new (
92
+ options: import("@smithy/signature-v4").SignatureV4Init &
93
+ import("@smithy/signature-v4").SignatureV4CryptoInit
94
+ ) => import("@smithy/types").RequestSigner)
95
+ | undefined;
72
96
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
73
97
  };
@@ -6,6 +6,9 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
+ credentialDefaultProvider: (
10
+ input: any
11
+ ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
9
12
  defaultUserAgentProvider: import("@smithy/types").Provider<
10
13
  import("@smithy/types").UserAgent
11
14
  >;
@@ -69,5 +72,26 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
69
72
  | import("@smithy/types").RetryStrategy
70
73
  | import("@smithy/types").RetryStrategyV2
71
74
  | undefined;
75
+ credentials?:
76
+ | import("@smithy/types").AwsCredentialIdentity
77
+ | import("@smithy/types").Provider<
78
+ import("@smithy/types").AwsCredentialIdentity
79
+ >
80
+ | undefined;
81
+ signer?:
82
+ | import("@smithy/types").RequestSigner
83
+ | ((
84
+ authScheme?: import("@smithy/types").AuthScheme | undefined
85
+ ) => Promise<import("@smithy/types").RequestSigner>)
86
+ | undefined;
87
+ signingEscapePath?: boolean | undefined;
88
+ systemClockOffset?: number | undefined;
89
+ signingRegion?: string | undefined;
90
+ signerConstructor?:
91
+ | (new (
92
+ options: import("@smithy/signature-v4").SignatureV4Init &
93
+ import("@smithy/signature-v4").SignatureV4CryptoInit
94
+ ) => import("@smithy/types").RequestSigner)
95
+ | undefined;
72
96
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
73
97
  };
@@ -30,6 +30,9 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
30
30
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
31
31
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
32
32
  region: string | import("@smithy/types").Provider<any>;
33
+ credentialDefaultProvider: (
34
+ input: any
35
+ ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
33
36
  defaultUserAgentProvider: import("@smithy/types").Provider<
34
37
  import("@smithy/types").UserAgent
35
38
  >;
@@ -60,5 +63,26 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
60
63
  | import("@smithy/types").RetryStrategy
61
64
  | import("@smithy/types").RetryStrategyV2
62
65
  | undefined;
66
+ credentials?:
67
+ | import("@smithy/types").AwsCredentialIdentity
68
+ | import("@smithy/types").Provider<
69
+ import("@smithy/types").AwsCredentialIdentity
70
+ >
71
+ | undefined;
72
+ signer?:
73
+ | import("@smithy/types").RequestSigner
74
+ | ((
75
+ authScheme?: import("@smithy/types").AuthScheme | undefined
76
+ ) => Promise<import("@smithy/types").RequestSigner>)
77
+ | undefined;
78
+ signingEscapePath?: boolean | undefined;
79
+ systemClockOffset?: number | undefined;
80
+ signingRegion?: string | undefined;
81
+ signerConstructor?:
82
+ | (new (
83
+ options: import("@smithy/signature-v4").SignatureV4Init &
84
+ import("@smithy/signature-v4").SignatureV4CryptoInit
85
+ ) => import("@smithy/types").RequestSigner)
86
+ | undefined;
63
87
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
64
88
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-oidc",
3
3
  "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
4
- "version": "3.451.0",
4
+ "version": "3.455.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,10 +21,13 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
+ "@aws-sdk/client-sts": "3.454.0",
24
25
  "@aws-sdk/core": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.451.0",
25
27
  "@aws-sdk/middleware-host-header": "3.451.0",
26
28
  "@aws-sdk/middleware-logger": "3.451.0",
27
29
  "@aws-sdk/middleware-recursion-detection": "3.451.0",
30
+ "@aws-sdk/middleware-signing": "3.451.0",
28
31
  "@aws-sdk/middleware-user-agent": "3.451.0",
29
32
  "@aws-sdk/region-config-resolver": "3.451.0",
30
33
  "@aws-sdk/types": "3.451.0",