@aws-sdk/client-signin 3.1081.0 → 3.1083.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 (39) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +194 -81
  3. package/dist-es/Signin.js +6 -0
  4. package/dist-es/commandBuilder.js +3 -0
  5. package/dist-es/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
  6. package/dist-es/commands/DeleteConsoleAuthorizationConfigurationCommand.js +2 -2
  7. package/dist-es/commands/DeleteResourcePermissionStatementCommand.js +2 -2
  8. package/dist-es/commands/GetConsoleAuthorizationConfigurationCommand.js +2 -2
  9. package/dist-es/commands/GetResourcePolicyCommand.js +2 -2
  10. package/dist-es/commands/IntrospectOAuth2TokenWithIAMCommand.js +4 -0
  11. package/dist-es/commands/ListResourcePermissionStatementsCommand.js +2 -2
  12. package/dist-es/commands/PutConsoleAuthorizationConfigurationCommand.js +2 -2
  13. package/dist-es/commands/PutResourcePermissionStatementCommand.js +2 -2
  14. package/dist-es/commands/RevokeOAuth2TokenWithIAMCommand.js +4 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/endpoint/bdd.js +80 -70
  17. package/dist-es/endpoint/endpointResolver.js +1 -1
  18. package/dist-es/schemas/schemas_0.js +78 -2
  19. package/dist-types/Signin.d.ts +21 -0
  20. package/dist-types/SigninClient.d.ts +5 -2
  21. package/dist-types/commandBuilder.d.ts +4 -0
  22. package/dist-types/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
  23. package/dist-types/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +134 -0
  24. package/dist-types/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +114 -0
  25. package/dist-types/commands/index.d.ts +3 -0
  26. package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
  27. package/dist-types/models/models_0.d.ts +175 -3
  28. package/dist-types/schemas/schemas_0.d.ts +9 -0
  29. package/dist-types/ts3.4/Signin.d.ts +51 -0
  30. package/dist-types/ts3.4/SigninClient.d.ts +20 -2
  31. package/dist-types/ts3.4/commandBuilder.d.ts +1 -0
  32. package/dist-types/ts3.4/commands/CreateOAuth2TokenWithIAMCommand.d.ts +44 -0
  33. package/dist-types/ts3.4/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +44 -0
  34. package/dist-types/ts3.4/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +44 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  36. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +33 -0
  38. package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  39. package/package.json +9 -9
@@ -0,0 +1,44 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ CreateOAuth2TokenWithIAMRequest,
4
+ CreateOAuth2TokenWithIAMResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface CreateOAuth2TokenWithIAMCommandInput
8
+ extends CreateOAuth2TokenWithIAMRequest {}
9
+ export interface CreateOAuth2TokenWithIAMCommandOutput
10
+ extends CreateOAuth2TokenWithIAMResponse,
11
+ __MetadataBearer {}
12
+ declare const CreateOAuth2TokenWithIAMCommand_base: {
13
+ new (
14
+ input: CreateOAuth2TokenWithIAMCommandInput
15
+ ): import("@smithy/core/client").CommandImpl<
16
+ CreateOAuth2TokenWithIAMCommandInput,
17
+ CreateOAuth2TokenWithIAMCommandOutput,
18
+ import("..").SigninClientResolvedConfig,
19
+ import("..").ServiceInputTypes,
20
+ import("..").ServiceOutputTypes
21
+ >;
22
+ new (
23
+ input: CreateOAuth2TokenWithIAMCommandInput
24
+ ): import("@smithy/core/client").CommandImpl<
25
+ CreateOAuth2TokenWithIAMCommandInput,
26
+ CreateOAuth2TokenWithIAMCommandOutput,
27
+ import("..").SigninClientResolvedConfig,
28
+ import("..").ServiceInputTypes,
29
+ import("..").ServiceOutputTypes
30
+ >;
31
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
32
+ };
33
+ export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
34
+ protected static __types: {
35
+ api: {
36
+ input: CreateOAuth2TokenWithIAMRequest;
37
+ output: CreateOAuth2TokenWithIAMResponse;
38
+ };
39
+ sdk: {
40
+ input: CreateOAuth2TokenWithIAMCommandInput;
41
+ output: CreateOAuth2TokenWithIAMCommandOutput;
42
+ };
43
+ };
44
+ }
@@ -0,0 +1,44 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ IntrospectOAuth2TokenWithIAMRequest,
4
+ IntrospectOAuth2TokenWithIAMResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface IntrospectOAuth2TokenWithIAMCommandInput
8
+ extends IntrospectOAuth2TokenWithIAMRequest {}
9
+ export interface IntrospectOAuth2TokenWithIAMCommandOutput
10
+ extends IntrospectOAuth2TokenWithIAMResponse,
11
+ __MetadataBearer {}
12
+ declare const IntrospectOAuth2TokenWithIAMCommand_base: {
13
+ new (
14
+ input: IntrospectOAuth2TokenWithIAMCommandInput
15
+ ): import("@smithy/core/client").CommandImpl<
16
+ IntrospectOAuth2TokenWithIAMCommandInput,
17
+ IntrospectOAuth2TokenWithIAMCommandOutput,
18
+ import("..").SigninClientResolvedConfig,
19
+ import("..").ServiceInputTypes,
20
+ import("..").ServiceOutputTypes
21
+ >;
22
+ new (
23
+ input: IntrospectOAuth2TokenWithIAMCommandInput
24
+ ): import("@smithy/core/client").CommandImpl<
25
+ IntrospectOAuth2TokenWithIAMCommandInput,
26
+ IntrospectOAuth2TokenWithIAMCommandOutput,
27
+ import("..").SigninClientResolvedConfig,
28
+ import("..").ServiceInputTypes,
29
+ import("..").ServiceOutputTypes
30
+ >;
31
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
32
+ };
33
+ export declare class IntrospectOAuth2TokenWithIAMCommand extends IntrospectOAuth2TokenWithIAMCommand_base {
34
+ protected static __types: {
35
+ api: {
36
+ input: IntrospectOAuth2TokenWithIAMRequest;
37
+ output: IntrospectOAuth2TokenWithIAMResponse;
38
+ };
39
+ sdk: {
40
+ input: IntrospectOAuth2TokenWithIAMCommandInput;
41
+ output: IntrospectOAuth2TokenWithIAMCommandOutput;
42
+ };
43
+ };
44
+ }
@@ -0,0 +1,44 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ RevokeOAuth2TokenWithIAMRequest,
4
+ RevokeOAuth2TokenWithIAMResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface RevokeOAuth2TokenWithIAMCommandInput
8
+ extends RevokeOAuth2TokenWithIAMRequest {}
9
+ export interface RevokeOAuth2TokenWithIAMCommandOutput
10
+ extends RevokeOAuth2TokenWithIAMResponse,
11
+ __MetadataBearer {}
12
+ declare const RevokeOAuth2TokenWithIAMCommand_base: {
13
+ new (
14
+ input: RevokeOAuth2TokenWithIAMCommandInput
15
+ ): import("@smithy/core/client").CommandImpl<
16
+ RevokeOAuth2TokenWithIAMCommandInput,
17
+ RevokeOAuth2TokenWithIAMCommandOutput,
18
+ import("..").SigninClientResolvedConfig,
19
+ import("..").ServiceInputTypes,
20
+ import("..").ServiceOutputTypes
21
+ >;
22
+ new (
23
+ input: RevokeOAuth2TokenWithIAMCommandInput
24
+ ): import("@smithy/core/client").CommandImpl<
25
+ RevokeOAuth2TokenWithIAMCommandInput,
26
+ RevokeOAuth2TokenWithIAMCommandOutput,
27
+ import("..").SigninClientResolvedConfig,
28
+ import("..").ServiceInputTypes,
29
+ import("..").ServiceOutputTypes
30
+ >;
31
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
32
+ };
33
+ export declare class RevokeOAuth2TokenWithIAMCommand extends RevokeOAuth2TokenWithIAMCommand_base {
34
+ protected static __types: {
35
+ api: {
36
+ input: RevokeOAuth2TokenWithIAMRequest;
37
+ output: {};
38
+ };
39
+ sdk: {
40
+ input: RevokeOAuth2TokenWithIAMCommandInput;
41
+ output: RevokeOAuth2TokenWithIAMCommandOutput;
42
+ };
43
+ };
44
+ }
@@ -1,8 +1,11 @@
1
1
  export * from "./CreateOAuth2TokenCommand";
2
+ export * from "./CreateOAuth2TokenWithIAMCommand";
2
3
  export * from "./DeleteConsoleAuthorizationConfigurationCommand";
3
4
  export * from "./DeleteResourcePermissionStatementCommand";
4
5
  export * from "./GetConsoleAuthorizationConfigurationCommand";
5
6
  export * from "./GetResourcePolicyCommand";
7
+ export * from "./IntrospectOAuth2TokenWithIAMCommand";
6
8
  export * from "./ListResourcePermissionStatementsCommand";
7
9
  export * from "./PutConsoleAuthorizationConfigurationCommand";
8
10
  export * from "./PutResourcePermissionStatementCommand";
11
+ export * from "./RevokeOAuth2TokenWithIAMCommand";
@@ -49,4 +49,5 @@ export interface EndpointParameters extends __EndpointParameters {
49
49
  Endpoint?: string | undefined;
50
50
  Region?: string | undefined;
51
51
  IsControlPlane?: boolean | undefined;
52
+ IsOAuthEndpoint?: boolean | undefined;
52
53
  }
@@ -24,6 +24,15 @@ export interface CreateOAuth2TokenResponseBody {
24
24
  export interface CreateOAuth2TokenResponse {
25
25
  tokenOutput: CreateOAuth2TokenResponseBody | undefined;
26
26
  }
27
+ export interface CreateOAuth2TokenWithIAMRequest {
28
+ grantType: string | undefined;
29
+ resource: string | undefined;
30
+ }
31
+ export interface CreateOAuth2TokenWithIAMResponse {
32
+ accessToken: string | undefined;
33
+ tokenType: string | undefined;
34
+ expiresIn: number | undefined;
35
+ }
27
36
  export interface DeleteConsoleAuthorizationConfigurationInput {
28
37
  targetId?: string | undefined;
29
38
  }
@@ -60,6 +69,26 @@ export interface SigninResourceBasedPolicy {
60
69
  export interface GetResourcePolicyOutput {
61
70
  signinResourceBasedPolicy: SigninResourceBasedPolicy | undefined;
62
71
  }
72
+ export interface IntrospectOAuth2TokenWithIAMRequest {
73
+ token: string | undefined;
74
+ tokenTypeHint?: string | undefined;
75
+ }
76
+ export interface IntrospectOAuth2TokenWithIAMResponse {
77
+ active: boolean | undefined;
78
+ clientId?: string | undefined;
79
+ userId?: string | undefined;
80
+ tokenType?: string | undefined;
81
+ exp?: number | undefined;
82
+ iat?: number | undefined;
83
+ nbf?: number | undefined;
84
+ sub?: string | undefined;
85
+ aud?: string | undefined;
86
+ iss?: string | undefined;
87
+ jti?: string | undefined;
88
+ accountId?: string | undefined;
89
+ signinSession?: string | undefined;
90
+ resource?: string | undefined;
91
+ }
63
92
  export interface ListResourcePermissionStatementsInput {
64
93
  maxResults?: number | undefined;
65
94
  nextToken?: string | undefined;
@@ -93,3 +122,7 @@ export interface PutResourcePermissionStatementInput {
93
122
  export interface PutResourcePermissionStatementOutput {
94
123
  statementId: string | undefined;
95
124
  }
125
+ export interface RevokeOAuth2TokenWithIAMRequest {
126
+ token: string | undefined;
127
+ }
128
+ export interface RevokeOAuth2TokenWithIAMResponse {}
@@ -18,6 +18,8 @@ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
18
18
  export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
19
19
  export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
20
20
  export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
21
+ export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
22
+ export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
21
23
  export declare var DeleteConsoleAuthorizationConfigurationInput$: StaticStructureSchema;
22
24
  export declare var DeleteConsoleAuthorizationConfigurationOutput$: StaticStructureSchema;
23
25
  export declare var DeleteResourcePermissionStatementInput$: StaticStructureSchema;
@@ -26,6 +28,8 @@ export declare var GetConsoleAuthorizationConfigurationInput$: StaticStructureSc
26
28
  export declare var GetConsoleAuthorizationConfigurationOutput$: StaticStructureSchema;
27
29
  export declare var GetResourcePolicyInput$: StaticStructureSchema;
28
30
  export declare var GetResourcePolicyOutput$: StaticStructureSchema;
31
+ export declare var IntrospectOAuth2TokenWithIAMRequest$: StaticStructureSchema;
32
+ export declare var IntrospectOAuth2TokenWithIAMResponse$: StaticStructureSchema;
29
33
  export declare var ListResourcePermissionStatementsInput$: StaticStructureSchema;
30
34
  export declare var ListResourcePermissionStatementsOutput$: StaticStructureSchema;
31
35
  export declare var PermissionStatementSummary$: StaticStructureSchema;
@@ -34,12 +38,17 @@ export declare var PutConsoleAuthorizationConfigurationInput$: StaticStructureSc
34
38
  export declare var PutConsoleAuthorizationConfigurationOutput$: StaticStructureSchema;
35
39
  export declare var PutResourcePermissionStatementInput$: StaticStructureSchema;
36
40
  export declare var PutResourcePermissionStatementOutput$: StaticStructureSchema;
41
+ export declare var RevokeOAuth2TokenWithIAMRequest$: StaticStructureSchema;
42
+ export declare var RevokeOAuth2TokenWithIAMResponse$: StaticStructureSchema;
37
43
  export declare var SigninResourceBasedPolicy$: StaticStructureSchema;
38
44
  export declare var CreateOAuth2Token$: StaticOperationSchema;
45
+ export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
39
46
  export declare var DeleteConsoleAuthorizationConfiguration$: StaticOperationSchema;
40
47
  export declare var DeleteResourcePermissionStatement$: StaticOperationSchema;
41
48
  export declare var GetConsoleAuthorizationConfiguration$: StaticOperationSchema;
42
49
  export declare var GetResourcePolicy$: StaticOperationSchema;
50
+ export declare var IntrospectOAuth2TokenWithIAM$: StaticOperationSchema;
43
51
  export declare var ListResourcePermissionStatements$: StaticOperationSchema;
44
52
  export declare var PutConsoleAuthorizationConfiguration$: StaticOperationSchema;
45
53
  export declare var PutResourcePermissionStatement$: StaticOperationSchema;
54
+ export declare var RevokeOAuth2TokenWithIAM$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-signin",
3
3
  "description": "AWS SDK for JavaScript Signin Client for Node.js, Browser and React Native",
4
- "version": "3.1081.0",
4
+ "version": "3.1083.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",
@@ -23,17 +23,17 @@
23
23
  "module": "./dist-es/index.js",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@aws-sdk/core": "^3.974.29",
27
- "@aws-sdk/credential-provider-node": "^3.972.64",
28
- "@aws-sdk/types": "^3.973.15",
29
- "@smithy/core": "^3.29.0",
30
- "@smithy/fetch-http-handler": "^5.6.2",
31
- "@smithy/node-http-handler": "^4.9.2",
32
- "@smithy/types": "^4.15.1",
26
+ "@aws-sdk/core": "^3.975.1",
27
+ "@aws-sdk/credential-provider-node": "^3.972.66",
28
+ "@aws-sdk/types": "^3.974.0",
29
+ "@smithy/core": "^3.29.2",
30
+ "@smithy/fetch-http-handler": "^5.6.4",
31
+ "@smithy/node-http-handler": "^4.9.4",
32
+ "@smithy/types": "^4.16.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@smithy/snapshot-testing": "^2.2.5",
36
+ "@smithy/snapshot-testing": "^2.2.7",
37
37
  "@tsconfig/node20": "20.1.8",
38
38
  "@types/node": "^20.14.8",
39
39
  "concurrently": "7.0.0",