@aws-lite/sts-types 0.1.1 → 0.1.3

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 (2) hide show
  1. package/index.d.ts +9 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -12,6 +12,8 @@ import {
12
12
  // $IMPORTS_END
13
13
  } from "@aws-sdk/client-sts";
14
14
 
15
+ import type { AwsLiteMethodOptions } from "@aws-lite/client";
16
+
15
17
  declare interface AwsLiteSTS {
16
18
  /* ! Do not remove METHODS_START / METHODS_END ! */
17
19
  // $METHODS_START
@@ -20,31 +22,31 @@ declare interface AwsLiteSTS {
20
22
  * - AWS docs: {@link https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html STS: AssumeRole}
21
23
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sts/readme.md#AssumeRole STS: AssumeRole}
22
24
  */
23
- AssumeRole: (input: { RoleArn: string, RoleSessionName: string, DurationSeconds?: number, ExternalId?: string, Policy?: string, PolicyArns?: any[], ProvidedContexts?: any[], SerialNumber?: string, SourceIdentity?: string, Tags?: any[], TokenCode?: string, TransitiveTagKeys?: any[] }) => Promise<AssumeRoleResponse>
25
+ AssumeRole: (input: AwsLiteMethodOptions & { RoleArn: string, RoleSessionName: string, DurationSeconds?: number, ExternalId?: string, Policy?: string, PolicyArns?: any[], ProvidedContexts?: any[], SerialNumber?: string, SourceIdentity?: string, Tags?: any[], TokenCode?: string, TransitiveTagKeys?: any[] }) => Promise<AssumeRoleResponse>
24
26
  /**
25
27
  * @description
26
28
  * - AWS docs: {@link https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithSAML.html STS: AssumeRoleWithSAML}
27
29
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sts/readme.md#AssumeRoleWithSAML STS: AssumeRoleWithSAML}
28
30
  */
29
- AssumeRoleWithSAML: (input: { RoleArn: string, PrincipalArn: string, SAMLAssertion: string, DurationSeconds?: number, Policy?: string, PolicyArns?: any[] }) => Promise<AssumeRoleWithSAMLResponse>
31
+ AssumeRoleWithSAML: (input: AwsLiteMethodOptions & { RoleArn: string, PrincipalArn: string, SAMLAssertion: string, DurationSeconds?: number, Policy?: string, PolicyArns?: any[] }) => Promise<AssumeRoleWithSAMLResponse>
30
32
  /**
31
33
  * @description
32
34
  * - AWS docs: {@link https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html STS: AssumeRoleWithWebIdentity}
33
35
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sts/readme.md#AssumeRoleWithWebIdentity STS: AssumeRoleWithWebIdentity}
34
36
  */
35
- AssumeRoleWithWebIdentity: (input: { RoleArn: string, RoleSessionName: string, WebIdentityToken: string, DurationSeconds?: number, ProviderId?: string, Policy?: string, PolicyArns?: any[] }) => Promise<AssumeRoleWithWebIdentityResponse>
37
+ AssumeRoleWithWebIdentity: (input: AwsLiteMethodOptions & { RoleArn: string, RoleSessionName: string, WebIdentityToken: string, DurationSeconds?: number, ProviderId?: string, Policy?: string, PolicyArns?: any[] }) => Promise<AssumeRoleWithWebIdentityResponse>
36
38
  /**
37
39
  * @description
38
40
  * - AWS docs: {@link https://docs.aws.amazon.com/STS/latest/APIReference/API_DecodeAuthorizationMessage.html STS: DecodeAuthorizationMessage}
39
41
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sts/readme.md#DecodeAuthorizationMessage STS: DecodeAuthorizationMessage}
40
42
  */
41
- DecodeAuthorizationMessage: (input: { EncodedMessage: string }) => Promise<DecodeAuthorizationMessageResponse>
43
+ DecodeAuthorizationMessage: (input: AwsLiteMethodOptions & { EncodedMessage: string }) => Promise<DecodeAuthorizationMessageResponse>
42
44
  /**
43
45
  * @description
44
46
  * - AWS docs: {@link https://docs.aws.amazon.com/STS/latest/APIReference/API_GetAccessKeyInfo.html STS: GetAccessKeyInfo}
45
47
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sts/readme.md#GetAccessKeyInfo STS: GetAccessKeyInfo}
46
48
  */
47
- GetAccessKeyInfo: (input: { AccessKeyId: string }) => Promise<GetAccessKeyInfoResponse>
49
+ GetAccessKeyInfo: (input: AwsLiteMethodOptions & { AccessKeyId: string }) => Promise<GetAccessKeyInfoResponse>
48
50
  /** @description aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sts/readme.md#GetCallerIdentity STS: GetCallerIdentity} */
49
51
  GetCallerIdentity: () => Promise<GetCallerIdentityResponse>
50
52
  /**
@@ -52,13 +54,13 @@ declare interface AwsLiteSTS {
52
54
  * - AWS docs: {@link https://docs.aws.amazon.com/STS/latest/APIReference/API_GetFederationToken.html STS: GetFederationToken}
53
55
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sts/readme.md#GetFederationToken STS: GetFederationToken}
54
56
  */
55
- GetFederationToken: (input: { Name: string, DurationSeconds?: number, Policy?: string, PolicyArns?: any[], Tags?: any[] }) => Promise<GetFederationTokenResponse>
57
+ GetFederationToken: (input: AwsLiteMethodOptions & { Name: string, DurationSeconds?: number, Policy?: string, PolicyArns?: any[], Tags?: any[] }) => Promise<GetFederationTokenResponse>
56
58
  /**
57
59
  * @description
58
60
  * - AWS docs: {@link https://docs.aws.amazon.com/STS/latest/APIReference/API_GetSessionToken.html STS: GetSessionToken}
59
61
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sts/readme.md#GetSessionToken STS: GetSessionToken}
60
62
  */
61
- GetSessionToken: (input: { DurationSeconds?: number, SerialNumber?: string, TokenCode?: string }) => Promise<GetSessionTokenResponse>
63
+ GetSessionToken: (input: AwsLiteMethodOptions & { DurationSeconds?: number, SerialNumber?: string, TokenCode?: string }) => Promise<GetSessionTokenResponse>
62
64
  // $METHODS_END
63
65
  }
64
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lite/sts-types",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Type definitions for the `@aws-lite/sts` plugin",
5
5
  "homepage": "https://aws-lite.org/services/sts",
6
6
  "repository": {