@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.48 → 0.34.1-feature.IDK.11.50

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 (70) hide show
  1. package/dist/index.cjs +1056 -1185
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +1137 -17
  4. package/dist/index.d.ts +1137 -17
  5. package/dist/index.js +1049 -1179
  6. package/dist/index.js.map +1 -1
  7. package/package.json +3 -3
  8. package/plugin.schema.json +38 -157
  9. package/src/agent/KmsRestClient.ts +19 -20
  10. package/src/index.ts +1 -1
  11. package/src/models/AwsAssumeRoleCredentials.ts +49 -57
  12. package/src/models/AwsClientConfiguration.ts +29 -32
  13. package/src/models/AwsKmsSetting.ts +71 -85
  14. package/src/models/AwsStaticCredentials.ts +49 -57
  15. package/src/models/AwsWebIdentityTokenCredentials.ts +50 -58
  16. package/src/models/AzureClientSecretCredentialOpts.ts +45 -50
  17. package/src/models/AzureCredentialOpts.ts +24 -29
  18. package/src/models/AzureKeyVaultSetting.ts +60 -71
  19. package/src/models/CoseKey.ts +96 -104
  20. package/src/models/CoseKeyPair.ts +32 -38
  21. package/src/models/CoseKeyType.ts +18 -21
  22. package/src/models/CreateKeyProvider.ts +60 -74
  23. package/src/models/CreateRawSignature.ts +33 -39
  24. package/src/models/CreateRawSignatureResponse.ts +22 -25
  25. package/src/models/CreateSimpleSignature.ts +45 -59
  26. package/src/models/CryptoAlg.ts +18 -21
  27. package/src/models/Curve.ts +22 -25
  28. package/src/models/DigestAlg.ts +21 -24
  29. package/src/models/ErrorResponse.ts +39 -42
  30. package/src/models/GenerateKey.ts +51 -65
  31. package/src/models/GenerateKeyGlobal.ts +59 -73
  32. package/src/models/GenerateKeyResponse.ts +24 -30
  33. package/src/models/GetKeyResponse.ts +24 -30
  34. package/src/models/IdentifierMethod.ts +19 -22
  35. package/src/models/JoseKeyPair.ts +32 -38
  36. package/src/models/Jwk.ts +190 -207
  37. package/src/models/JwkKeyType.ts +18 -21
  38. package/src/models/JwkUse.ts +16 -19
  39. package/src/models/KeyEncoding.ts +16 -19
  40. package/src/models/KeyInfo.ts +103 -123
  41. package/src/models/KeyOperations.ts +22 -25
  42. package/src/models/KeyProvider.ts +33 -41
  43. package/src/models/KeyProviderResponse.ts +33 -41
  44. package/src/models/KeyProviderType.ts +17 -20
  45. package/src/models/KeyResolver.ts +44 -51
  46. package/src/models/KeyType.ts +17 -20
  47. package/src/models/KeyVisibility.ts +16 -19
  48. package/src/models/ListKeyProvidersResponse.ts +24 -30
  49. package/src/models/ListKeysResponse.ts +24 -30
  50. package/src/models/ListResolversResponse.ts +24 -30
  51. package/src/models/LookupMode.ts +17 -20
  52. package/src/models/ManagedKeyInfo.ts +106 -126
  53. package/src/models/ManagedKeyPair.ts +61 -70
  54. package/src/models/MaskGenFunction.ts +15 -18
  55. package/src/models/ProviderCapabilities.ts +65 -81
  56. package/src/models/ResolvePublicKey.ts +50 -61
  57. package/src/models/ResolvedKeyInfo.ts +104 -124
  58. package/src/models/Resolver.ts +44 -51
  59. package/src/models/SignInput.ts +42 -47
  60. package/src/models/SignOutput.ts +32 -38
  61. package/src/models/Signature.ts +51 -62
  62. package/src/models/SignatureAlgorithm.ts +26 -29
  63. package/src/models/StoreKey.ts +32 -38
  64. package/src/models/StoreKeyResponse.ts +24 -30
  65. package/src/models/UpdateKeyProvider.ts +49 -58
  66. package/src/models/VerifyRawSignature.ts +42 -48
  67. package/src/models/VerifyRawSignatureResponse.ts +22 -25
  68. package/src/models/VerifySimpleSignature.ts +35 -44
  69. package/src/models/index.ts +58 -58
  70. package/src/types/IKmsRestClient.ts +2 -2
@@ -12,11 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { LookupMode } from './LookupMode';
16
- import {
17
- LookupModeFromJSON,
18
- LookupModeToJSON,
19
- } from './LookupMode';
15
+ import type { LookupMode } from './LookupMode'
16
+ import { LookupModeFromJSON, LookupModeToJSON } from './LookupMode'
20
17
 
21
18
  /**
22
19
  * Credentials obtained by assuming an IAM role.
@@ -24,75 +21,70 @@ import {
24
21
  * @interface AwsAssumeRoleCredentials
25
22
  */
26
23
  export interface AwsAssumeRoleCredentials {
27
- /**
28
- * The Amazon Resource Name (ARN) of the role to assume.
29
- * @type {string}
30
- * @memberof AwsAssumeRoleCredentials
31
- */
32
- roleArn: string;
33
- /**
34
- * An identifier for the assumed role session. Use characters compatible with file systems.
35
- * @type {string}
36
- * @memberof AwsAssumeRoleCredentials
37
- */
38
- roleSessionName: string;
39
- /**
40
- * An optional external ID that might be required by the role's trust policy.
41
- * @type {string}
42
- * @memberof AwsAssumeRoleCredentials
43
- */
44
- externalId?: string;
45
- /**
46
- *
47
- * @type {LookupMode}
48
- * @memberof AwsAssumeRoleCredentials
49
- */
50
- lookupMode?: LookupMode;
24
+ /**
25
+ * The Amazon Resource Name (ARN) of the role to assume.
26
+ * @type {string}
27
+ * @memberof AwsAssumeRoleCredentials
28
+ */
29
+ roleArn: string
30
+ /**
31
+ * An identifier for the assumed role session. Use characters compatible with file systems.
32
+ * @type {string}
33
+ * @memberof AwsAssumeRoleCredentials
34
+ */
35
+ roleSessionName: string
36
+ /**
37
+ * An optional external ID that might be required by the role's trust policy.
38
+ * @type {string}
39
+ * @memberof AwsAssumeRoleCredentials
40
+ */
41
+ externalId?: string
42
+ /**
43
+ *
44
+ * @type {LookupMode}
45
+ * @memberof AwsAssumeRoleCredentials
46
+ */
47
+ lookupMode?: LookupMode
51
48
  }
52
49
 
53
-
54
-
55
50
  /**
56
51
  * Check if a given object implements the AwsAssumeRoleCredentials interface.
57
52
  */
58
53
  export function instanceOfAwsAssumeRoleCredentials(value: object): value is AwsAssumeRoleCredentials {
59
- if (!('roleArn' in value) || value['roleArn'] === undefined) return false;
60
- if (!('roleSessionName' in value) || value['roleSessionName'] === undefined) return false;
61
- return true;
54
+ if (!('roleArn' in value) || value['roleArn'] === undefined) return false
55
+ if (!('roleSessionName' in value) || value['roleSessionName'] === undefined) return false
56
+ return true
62
57
  }
63
58
 
64
59
  export function AwsAssumeRoleCredentialsFromJSON(json: any): AwsAssumeRoleCredentials {
65
- return AwsAssumeRoleCredentialsFromJSONTyped(json, false);
60
+ return AwsAssumeRoleCredentialsFromJSONTyped(json, false)
66
61
  }
67
62
 
68
63
  export function AwsAssumeRoleCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsAssumeRoleCredentials {
69
- if (json == null) {
70
- return json;
71
- }
72
- return {
73
-
74
- 'roleArn': json['roleArn'],
75
- 'roleSessionName': json['roleSessionName'],
76
- 'externalId': json['externalId'] == null ? undefined : json['externalId'],
77
- 'lookupMode': json['lookupMode'] == null ? undefined : LookupModeFromJSON(json['lookupMode']),
78
- };
64
+ if (json == null) {
65
+ return json
66
+ }
67
+ return {
68
+ roleArn: json['roleArn'],
69
+ roleSessionName: json['roleSessionName'],
70
+ externalId: json['externalId'] == null ? undefined : json['externalId'],
71
+ lookupMode: json['lookupMode'] == null ? undefined : LookupModeFromJSON(json['lookupMode']),
72
+ }
79
73
  }
80
74
 
81
75
  export function AwsAssumeRoleCredentialsToJSON(json: any): AwsAssumeRoleCredentials {
82
- return AwsAssumeRoleCredentialsToJSONTyped(json, false);
76
+ return AwsAssumeRoleCredentialsToJSONTyped(json, false)
83
77
  }
84
78
 
85
79
  export function AwsAssumeRoleCredentialsToJSONTyped(value?: AwsAssumeRoleCredentials | null, ignoreDiscriminator: boolean = false): any {
86
- if (value == null) {
87
- return value;
88
- }
80
+ if (value == null) {
81
+ return value
82
+ }
89
83
 
90
- return {
91
-
92
- 'roleArn': value['roleArn'],
93
- 'roleSessionName': value['roleSessionName'],
94
- 'externalId': value['externalId'],
95
- 'lookupMode': LookupModeToJSON(value['lookupMode']),
96
- };
84
+ return {
85
+ roleArn: value['roleArn'],
86
+ roleSessionName: value['roleSessionName'],
87
+ externalId: value['externalId'],
88
+ lookupMode: LookupModeToJSON(value['lookupMode']),
89
+ }
97
90
  }
98
-
@@ -18,55 +18,52 @@
18
18
  * @interface AwsClientConfiguration
19
19
  */
20
20
  export interface AwsClientConfiguration {
21
- /**
22
- * Amount of time (in milliseconds) to wait when initially establishing a connection before giving up.
23
- * @type {number}
24
- * @memberof AwsClientConfiguration
25
- */
26
- connectionTimeoutInMillis?: number;
27
- /**
28
- * Amount of time (in milliseconds) to wait for data to be transferred over an established, open connection before timing out.
29
- * @type {number}
30
- * @memberof AwsClientConfiguration
31
- */
32
- socketTimeoutInMillis?: number;
21
+ /**
22
+ * Amount of time (in milliseconds) to wait when initially establishing a connection before giving up.
23
+ * @type {number}
24
+ * @memberof AwsClientConfiguration
25
+ */
26
+ connectionTimeoutInMillis?: number
27
+ /**
28
+ * Amount of time (in milliseconds) to wait for data to be transferred over an established, open connection before timing out.
29
+ * @type {number}
30
+ * @memberof AwsClientConfiguration
31
+ */
32
+ socketTimeoutInMillis?: number
33
33
  }
34
34
 
35
35
  /**
36
36
  * Check if a given object implements the AwsClientConfiguration interface.
37
37
  */
38
38
  export function instanceOfAwsClientConfiguration(value: object): value is AwsClientConfiguration {
39
- return true;
39
+ return true
40
40
  }
41
41
 
42
42
  export function AwsClientConfigurationFromJSON(json: any): AwsClientConfiguration {
43
- return AwsClientConfigurationFromJSONTyped(json, false);
43
+ return AwsClientConfigurationFromJSONTyped(json, false)
44
44
  }
45
45
 
46
46
  export function AwsClientConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsClientConfiguration {
47
- if (json == null) {
48
- return json;
49
- }
50
- return {
51
-
52
- 'connectionTimeoutInMillis': json['connectionTimeoutInMillis'] == null ? undefined : json['connectionTimeoutInMillis'],
53
- 'socketTimeoutInMillis': json['socketTimeoutInMillis'] == null ? undefined : json['socketTimeoutInMillis'],
54
- };
47
+ if (json == null) {
48
+ return json
49
+ }
50
+ return {
51
+ connectionTimeoutInMillis: json['connectionTimeoutInMillis'] == null ? undefined : json['connectionTimeoutInMillis'],
52
+ socketTimeoutInMillis: json['socketTimeoutInMillis'] == null ? undefined : json['socketTimeoutInMillis'],
53
+ }
55
54
  }
56
55
 
57
56
  export function AwsClientConfigurationToJSON(json: any): AwsClientConfiguration {
58
- return AwsClientConfigurationToJSONTyped(json, false);
57
+ return AwsClientConfigurationToJSONTyped(json, false)
59
58
  }
60
59
 
61
60
  export function AwsClientConfigurationToJSONTyped(value?: AwsClientConfiguration | null, ignoreDiscriminator: boolean = false): any {
62
- if (value == null) {
63
- return value;
64
- }
65
-
66
- return {
61
+ if (value == null) {
62
+ return value
63
+ }
67
64
 
68
- 'connectionTimeoutInMillis': value['connectionTimeoutInMillis'],
69
- 'socketTimeoutInMillis': value['socketTimeoutInMillis'],
70
- };
65
+ return {
66
+ connectionTimeoutInMillis: value['connectionTimeoutInMillis'],
67
+ socketTimeoutInMillis: value['socketTimeoutInMillis'],
68
+ }
71
69
  }
72
-
@@ -12,26 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { AwsAssumeRoleCredentials } from './AwsAssumeRoleCredentials';
16
- import {
17
- AwsAssumeRoleCredentialsFromJSON,
18
- AwsAssumeRoleCredentialsToJSON,
19
- } from './AwsAssumeRoleCredentials';
20
- import type { AwsStaticCredentials } from './AwsStaticCredentials';
21
- import {
22
- AwsStaticCredentialsFromJSON,
23
- AwsStaticCredentialsToJSON,
24
- } from './AwsStaticCredentials';
25
- import type { AwsWebIdentityTokenCredentials } from './AwsWebIdentityTokenCredentials';
26
- import {
27
- AwsWebIdentityTokenCredentialsFromJSON,
28
- AwsWebIdentityTokenCredentialsToJSON,
29
- } from './AwsWebIdentityTokenCredentials';
30
- import type { AwsClientConfiguration } from './AwsClientConfiguration';
31
- import {
32
- AwsClientConfigurationFromJSON,
33
- AwsClientConfigurationToJSON,
34
- } from './AwsClientConfiguration';
15
+ import type { AwsAssumeRoleCredentials } from './AwsAssumeRoleCredentials'
16
+ import { AwsAssumeRoleCredentialsFromJSON, AwsAssumeRoleCredentialsToJSON } from './AwsAssumeRoleCredentials'
17
+ import type { AwsStaticCredentials } from './AwsStaticCredentials'
18
+ import { AwsStaticCredentialsFromJSON, AwsStaticCredentialsToJSON } from './AwsStaticCredentials'
19
+ import type { AwsWebIdentityTokenCredentials } from './AwsWebIdentityTokenCredentials'
20
+ import { AwsWebIdentityTokenCredentialsFromJSON, AwsWebIdentityTokenCredentialsToJSON } from './AwsWebIdentityTokenCredentials'
21
+ import type { AwsClientConfiguration } from './AwsClientConfiguration'
22
+ import { AwsClientConfigurationFromJSON, AwsClientConfigurationToJSON } from './AwsClientConfiguration'
35
23
 
36
24
  /**
37
25
  * Configuration settings specific to the AWS_KMS provider type. Defines how to connect and authenticate to AWS KMS. If no specific credential provider is specified, the implementation should rely on the default AWS SDK credential provider chain.
@@ -39,88 +27,86 @@ import {
39
27
  * @interface AwsKmsSetting
40
28
  */
41
29
  export interface AwsKmsSetting {
42
- /**
43
- * The AWS region where the KMS keys reside (e.g., 'us-east-1', 'eu-west-1').
44
- * @type {string}
45
- * @memberof AwsKmsSetting
46
- */
47
- region: string;
48
- /**
49
- *
50
- * @type {AwsStaticCredentials}
51
- * @memberof AwsKmsSetting
52
- */
53
- staticCredentials?: AwsStaticCredentials;
54
- /**
55
- *
56
- * @type {AwsAssumeRoleCredentials}
57
- * @memberof AwsKmsSetting
58
- */
59
- assumeRoleCredentials?: AwsAssumeRoleCredentials;
60
- /**
61
- *
62
- * @type {AwsWebIdentityTokenCredentials}
63
- * @memberof AwsKmsSetting
64
- */
65
- webIdentityTokenCredentials?: AwsWebIdentityTokenCredentials;
66
- /**
67
- * Optional custom endpoint URL for AWS KMS (e.g., for VPC endpoints or local testing).
68
- * @type {string}
69
- * @memberof AwsKmsSetting
70
- */
71
- endpointUrl?: string;
72
- /**
73
- *
74
- * @type {AwsClientConfiguration}
75
- * @memberof AwsKmsSetting
76
- */
77
- clientConfiguration?: AwsClientConfiguration;
30
+ /**
31
+ * The AWS region where the KMS keys reside (e.g., 'us-east-1', 'eu-west-1').
32
+ * @type {string}
33
+ * @memberof AwsKmsSetting
34
+ */
35
+ region: string
36
+ /**
37
+ *
38
+ * @type {AwsStaticCredentials}
39
+ * @memberof AwsKmsSetting
40
+ */
41
+ staticCredentials?: AwsStaticCredentials
42
+ /**
43
+ *
44
+ * @type {AwsAssumeRoleCredentials}
45
+ * @memberof AwsKmsSetting
46
+ */
47
+ assumeRoleCredentials?: AwsAssumeRoleCredentials
48
+ /**
49
+ *
50
+ * @type {AwsWebIdentityTokenCredentials}
51
+ * @memberof AwsKmsSetting
52
+ */
53
+ webIdentityTokenCredentials?: AwsWebIdentityTokenCredentials
54
+ /**
55
+ * Optional custom endpoint URL for AWS KMS (e.g., for VPC endpoints or local testing).
56
+ * @type {string}
57
+ * @memberof AwsKmsSetting
58
+ */
59
+ endpointUrl?: string
60
+ /**
61
+ *
62
+ * @type {AwsClientConfiguration}
63
+ * @memberof AwsKmsSetting
64
+ */
65
+ clientConfiguration?: AwsClientConfiguration
78
66
  }
79
67
 
80
68
  /**
81
69
  * Check if a given object implements the AwsKmsSetting interface.
82
70
  */
83
71
  export function instanceOfAwsKmsSetting(value: object): value is AwsKmsSetting {
84
- if (!('region' in value) || value['region'] === undefined) return false;
85
- return true;
72
+ if (!('region' in value) || value['region'] === undefined) return false
73
+ return true
86
74
  }
87
75
 
88
76
  export function AwsKmsSettingFromJSON(json: any): AwsKmsSetting {
89
- return AwsKmsSettingFromJSONTyped(json, false);
77
+ return AwsKmsSettingFromJSONTyped(json, false)
90
78
  }
91
79
 
92
80
  export function AwsKmsSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsKmsSetting {
93
- if (json == null) {
94
- return json;
95
- }
96
- return {
97
-
98
- 'region': json['region'],
99
- 'staticCredentials': json['staticCredentials'] == null ? undefined : AwsStaticCredentialsFromJSON(json['staticCredentials']),
100
- 'assumeRoleCredentials': json['assumeRoleCredentials'] == null ? undefined : AwsAssumeRoleCredentialsFromJSON(json['assumeRoleCredentials']),
101
- 'webIdentityTokenCredentials': json['webIdentityTokenCredentials'] == null ? undefined : AwsWebIdentityTokenCredentialsFromJSON(json['webIdentityTokenCredentials']),
102
- 'endpointUrl': json['endpointUrl'] == null ? undefined : json['endpointUrl'],
103
- 'clientConfiguration': json['clientConfiguration'] == null ? undefined : AwsClientConfigurationFromJSON(json['clientConfiguration']),
104
- };
81
+ if (json == null) {
82
+ return json
83
+ }
84
+ return {
85
+ region: json['region'],
86
+ staticCredentials: json['staticCredentials'] == null ? undefined : AwsStaticCredentialsFromJSON(json['staticCredentials']),
87
+ assumeRoleCredentials: json['assumeRoleCredentials'] == null ? undefined : AwsAssumeRoleCredentialsFromJSON(json['assumeRoleCredentials']),
88
+ webIdentityTokenCredentials:
89
+ json['webIdentityTokenCredentials'] == null ? undefined : AwsWebIdentityTokenCredentialsFromJSON(json['webIdentityTokenCredentials']),
90
+ endpointUrl: json['endpointUrl'] == null ? undefined : json['endpointUrl'],
91
+ clientConfiguration: json['clientConfiguration'] == null ? undefined : AwsClientConfigurationFromJSON(json['clientConfiguration']),
92
+ }
105
93
  }
106
94
 
107
95
  export function AwsKmsSettingToJSON(json: any): AwsKmsSetting {
108
- return AwsKmsSettingToJSONTyped(json, false);
96
+ return AwsKmsSettingToJSONTyped(json, false)
109
97
  }
110
98
 
111
99
  export function AwsKmsSettingToJSONTyped(value?: AwsKmsSetting | null, ignoreDiscriminator: boolean = false): any {
112
- if (value == null) {
113
- return value;
114
- }
115
-
116
- return {
100
+ if (value == null) {
101
+ return value
102
+ }
117
103
 
118
- 'region': value['region'],
119
- 'staticCredentials': AwsStaticCredentialsToJSON(value['staticCredentials']),
120
- 'assumeRoleCredentials': AwsAssumeRoleCredentialsToJSON(value['assumeRoleCredentials']),
121
- 'webIdentityTokenCredentials': AwsWebIdentityTokenCredentialsToJSON(value['webIdentityTokenCredentials']),
122
- 'endpointUrl': value['endpointUrl'],
123
- 'clientConfiguration': AwsClientConfigurationToJSON(value['clientConfiguration']),
124
- };
104
+ return {
105
+ region: value['region'],
106
+ staticCredentials: AwsStaticCredentialsToJSON(value['staticCredentials']),
107
+ assumeRoleCredentials: AwsAssumeRoleCredentialsToJSON(value['assumeRoleCredentials']),
108
+ webIdentityTokenCredentials: AwsWebIdentityTokenCredentialsToJSON(value['webIdentityTokenCredentials']),
109
+ endpointUrl: value['endpointUrl'],
110
+ clientConfiguration: AwsClientConfigurationToJSON(value['clientConfiguration']),
111
+ }
125
112
  }
126
-
@@ -12,11 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { LookupMode } from './LookupMode';
16
- import {
17
- LookupModeFromJSON,
18
- LookupModeToJSON,
19
- } from './LookupMode';
15
+ import type { LookupMode } from './LookupMode'
16
+ import { LookupModeFromJSON, LookupModeToJSON } from './LookupMode'
20
17
 
21
18
  /**
22
19
  * Explicit AWS access key ID and secret access key. Use with caution; prefer IAM roles or other mechanisms where possible.
@@ -24,75 +21,70 @@ import {
24
21
  * @interface AwsStaticCredentials
25
22
  */
26
23
  export interface AwsStaticCredentials {
27
- /**
28
- * AWS Access Key ID.
29
- * @type {string}
30
- * @memberof AwsStaticCredentials
31
- */
32
- accesskid: string;
33
- /**
34
- * AWS Secret Access Key.
35
- * @type {string}
36
- * @memberof AwsStaticCredentials
37
- */
38
- secretAccessKey: string;
39
- /**
40
- * Optional AWS session token, typically used with temporary credentials.
41
- * @type {string}
42
- * @memberof AwsStaticCredentials
43
- */
44
- sessionToken?: string;
45
- /**
46
- *
47
- * @type {LookupMode}
48
- * @memberof AwsStaticCredentials
49
- */
50
- lookupMode?: LookupMode;
24
+ /**
25
+ * AWS Access Key ID.
26
+ * @type {string}
27
+ * @memberof AwsStaticCredentials
28
+ */
29
+ accesskid: string
30
+ /**
31
+ * AWS Secret Access Key.
32
+ * @type {string}
33
+ * @memberof AwsStaticCredentials
34
+ */
35
+ secretAccessKey: string
36
+ /**
37
+ * Optional AWS session token, typically used with temporary credentials.
38
+ * @type {string}
39
+ * @memberof AwsStaticCredentials
40
+ */
41
+ sessionToken?: string
42
+ /**
43
+ *
44
+ * @type {LookupMode}
45
+ * @memberof AwsStaticCredentials
46
+ */
47
+ lookupMode?: LookupMode
51
48
  }
52
49
 
53
-
54
-
55
50
  /**
56
51
  * Check if a given object implements the AwsStaticCredentials interface.
57
52
  */
58
53
  export function instanceOfAwsStaticCredentials(value: object): value is AwsStaticCredentials {
59
- if (!('accesskid' in value) || value['accesskid'] === undefined) return false;
60
- if (!('secretAccessKey' in value) || value['secretAccessKey'] === undefined) return false;
61
- return true;
54
+ if (!('accesskid' in value) || value['accesskid'] === undefined) return false
55
+ if (!('secretAccessKey' in value) || value['secretAccessKey'] === undefined) return false
56
+ return true
62
57
  }
63
58
 
64
59
  export function AwsStaticCredentialsFromJSON(json: any): AwsStaticCredentials {
65
- return AwsStaticCredentialsFromJSONTyped(json, false);
60
+ return AwsStaticCredentialsFromJSONTyped(json, false)
66
61
  }
67
62
 
68
63
  export function AwsStaticCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsStaticCredentials {
69
- if (json == null) {
70
- return json;
71
- }
72
- return {
73
-
74
- 'accesskid': json['accesskid'],
75
- 'secretAccessKey': json['secretAccessKey'],
76
- 'sessionToken': json['sessionToken'] == null ? undefined : json['sessionToken'],
77
- 'lookupMode': json['lookupMode'] == null ? undefined : LookupModeFromJSON(json['lookupMode']),
78
- };
64
+ if (json == null) {
65
+ return json
66
+ }
67
+ return {
68
+ accesskid: json['accesskid'],
69
+ secretAccessKey: json['secretAccessKey'],
70
+ sessionToken: json['sessionToken'] == null ? undefined : json['sessionToken'],
71
+ lookupMode: json['lookupMode'] == null ? undefined : LookupModeFromJSON(json['lookupMode']),
72
+ }
79
73
  }
80
74
 
81
75
  export function AwsStaticCredentialsToJSON(json: any): AwsStaticCredentials {
82
- return AwsStaticCredentialsToJSONTyped(json, false);
76
+ return AwsStaticCredentialsToJSONTyped(json, false)
83
77
  }
84
78
 
85
79
  export function AwsStaticCredentialsToJSONTyped(value?: AwsStaticCredentials | null, ignoreDiscriminator: boolean = false): any {
86
- if (value == null) {
87
- return value;
88
- }
80
+ if (value == null) {
81
+ return value
82
+ }
89
83
 
90
- return {
91
-
92
- 'accesskid': value['accesskid'],
93
- 'secretAccessKey': value['secretAccessKey'],
94
- 'sessionToken': value['sessionToken'],
95
- 'lookupMode': LookupModeToJSON(value['lookupMode']),
96
- };
84
+ return {
85
+ accesskid: value['accesskid'],
86
+ secretAccessKey: value['secretAccessKey'],
87
+ sessionToken: value['sessionToken'],
88
+ lookupMode: LookupModeToJSON(value['lookupMode']),
89
+ }
97
90
  }
98
-