@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 { CoseKeyType } from './CoseKeyType';
16
- import {
17
- CoseKeyTypeFromJSON,
18
- CoseKeyTypeToJSON,
19
- } from './CoseKeyType';
15
+ import type { CoseKeyType } from './CoseKeyType'
16
+ import { CoseKeyTypeFromJSON, CoseKeyTypeToJSON } from './CoseKeyType'
20
17
 
21
18
  /**
22
19
  * Represents a COSE (CBOR Object Signing and Encryption) key in JSON format.
@@ -24,122 +21,117 @@ import {
24
21
  * @interface CoseKey
25
22
  */
26
23
  export interface CoseKey {
27
- /**
28
- *
29
- * @type {CoseKeyType}
30
- * @memberof CoseKey
31
- */
32
- kty: CoseKeyType;
33
- /**
34
- * Key identifier (base64url-encoded byte string).
35
- * @type {string}
36
- * @memberof CoseKey
37
- */
38
- kid?: string;
39
- /**
40
- * The COSE algorithm identifier (e.g., -7=ES256, -35=ES384, -36=ES512, -8=EdDSA).
41
- * @type {number}
42
- * @memberof CoseKey
43
- */
44
- alg?: number;
45
- /**
46
- * The allowed COSE key operations (1=sign, 2=verify, 3=encrypt, 4=decrypt, etc.).
47
- * @type {Array<number>}
48
- * @memberof CoseKey
49
- */
50
- keyOps?: Array<number>;
51
- /**
52
- * Base initialization vector (base64url-encoded).
53
- * @type {string}
54
- * @memberof CoseKey
55
- */
56
- baseIV?: string;
57
- /**
58
- * The COSE curve identifier (1=P-256, 2=P-384, 3=P-521, 8=secp256k1, 6=Ed25519, etc.).
59
- * @type {number}
60
- * @memberof CoseKey
61
- */
62
- crv?: number;
63
- /**
64
- * The x coordinate (base64url-encoded byte string).
65
- * @type {string}
66
- * @memberof CoseKey
67
- */
68
- x?: string;
69
- /**
70
- * The y coordinate (base64url-encoded byte string).
71
- * @type {string}
72
- * @memberof CoseKey
73
- */
74
- y?: string;
75
- /**
76
- * The private key parameter (base64url-encoded byte string).
77
- * @type {string}
78
- * @memberof CoseKey
79
- */
80
- d?: string;
81
- /**
82
- * X.509 certificate chain as base64-encoded certificates.
83
- * @type {Array<string>}
84
- * @memberof CoseKey
85
- */
86
- x5chain?: Array<string>;
24
+ /**
25
+ *
26
+ * @type {CoseKeyType}
27
+ * @memberof CoseKey
28
+ */
29
+ kty: CoseKeyType
30
+ /**
31
+ * Key identifier (base64url-encoded byte string).
32
+ * @type {string}
33
+ * @memberof CoseKey
34
+ */
35
+ kid?: string
36
+ /**
37
+ * The COSE algorithm identifier (e.g., -7=ES256, -35=ES384, -36=ES512, -8=EdDSA).
38
+ * @type {number}
39
+ * @memberof CoseKey
40
+ */
41
+ alg?: number
42
+ /**
43
+ * The allowed COSE key operations (1=sign, 2=verify, 3=encrypt, 4=decrypt, etc.).
44
+ * @type {Array<number>}
45
+ * @memberof CoseKey
46
+ */
47
+ keyOps?: Array<number>
48
+ /**
49
+ * Base initialization vector (base64url-encoded).
50
+ * @type {string}
51
+ * @memberof CoseKey
52
+ */
53
+ baseIV?: string
54
+ /**
55
+ * The COSE curve identifier (1=P-256, 2=P-384, 3=P-521, 8=secp256k1, 6=Ed25519, etc.).
56
+ * @type {number}
57
+ * @memberof CoseKey
58
+ */
59
+ crv?: number
60
+ /**
61
+ * The x coordinate (base64url-encoded byte string).
62
+ * @type {string}
63
+ * @memberof CoseKey
64
+ */
65
+ x?: string
66
+ /**
67
+ * The y coordinate (base64url-encoded byte string).
68
+ * @type {string}
69
+ * @memberof CoseKey
70
+ */
71
+ y?: string
72
+ /**
73
+ * The private key parameter (base64url-encoded byte string).
74
+ * @type {string}
75
+ * @memberof CoseKey
76
+ */
77
+ d?: string
78
+ /**
79
+ * X.509 certificate chain as base64-encoded certificates.
80
+ * @type {Array<string>}
81
+ * @memberof CoseKey
82
+ */
83
+ x5chain?: Array<string>
87
84
  }
88
85
 
89
-
90
-
91
86
  /**
92
87
  * Check if a given object implements the CoseKey interface.
93
88
  */
94
89
  export function instanceOfCoseKey(value: object): value is CoseKey {
95
- if (!('kty' in value) || value['kty'] === undefined) return false;
96
- return true;
90
+ if (!('kty' in value) || value['kty'] === undefined) return false
91
+ return true
97
92
  }
98
93
 
99
94
  export function CoseKeyFromJSON(json: any): CoseKey {
100
- return CoseKeyFromJSONTyped(json, false);
95
+ return CoseKeyFromJSONTyped(json, false)
101
96
  }
102
97
 
103
98
  export function CoseKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoseKey {
104
- if (json == null) {
105
- return json;
106
- }
107
- return {
108
-
109
- 'kty': CoseKeyTypeFromJSON(json['kty']),
110
- 'kid': json['kid'] == null ? undefined : json['kid'],
111
- 'alg': json['alg'] == null ? undefined : json['alg'],
112
- 'keyOps': json['key_ops'] == null ? undefined : json['key_ops'],
113
- 'baseIV': json['baseIV'] == null ? undefined : json['baseIV'],
114
- 'crv': json['crv'] == null ? undefined : json['crv'],
115
- 'x': json['x'] == null ? undefined : json['x'],
116
- 'y': json['y'] == null ? undefined : json['y'],
117
- 'd': json['d'] == null ? undefined : json['d'],
118
- 'x5chain': json['x5chain'] == null ? undefined : json['x5chain'],
119
- };
99
+ if (json == null) {
100
+ return json
101
+ }
102
+ return {
103
+ kty: CoseKeyTypeFromJSON(json['kty']),
104
+ kid: json['kid'] == null ? undefined : json['kid'],
105
+ alg: json['alg'] == null ? undefined : json['alg'],
106
+ keyOps: json['key_ops'] == null ? undefined : json['key_ops'],
107
+ baseIV: json['baseIV'] == null ? undefined : json['baseIV'],
108
+ crv: json['crv'] == null ? undefined : json['crv'],
109
+ x: json['x'] == null ? undefined : json['x'],
110
+ y: json['y'] == null ? undefined : json['y'],
111
+ d: json['d'] == null ? undefined : json['d'],
112
+ x5chain: json['x5chain'] == null ? undefined : json['x5chain'],
113
+ }
120
114
  }
121
115
 
122
116
  export function CoseKeyToJSON(json: any): CoseKey {
123
- return CoseKeyToJSONTyped(json, false);
117
+ return CoseKeyToJSONTyped(json, false)
124
118
  }
125
119
 
126
120
  export function CoseKeyToJSONTyped(value?: CoseKey | null, ignoreDiscriminator: boolean = false): any {
127
- if (value == null) {
128
- return value;
129
- }
121
+ if (value == null) {
122
+ return value
123
+ }
130
124
 
131
- return {
132
-
133
- 'kty': CoseKeyTypeToJSON(value['kty']),
134
- 'kid': value['kid'],
135
- 'alg': value['alg'],
136
- 'key_ops': value['keyOps'],
137
- 'baseIV': value['baseIV'],
138
- 'crv': value['crv'],
139
- 'x': value['x'],
140
- 'y': value['y'],
141
- 'd': value['d'],
142
- 'x5chain': value['x5chain'],
143
- };
125
+ return {
126
+ kty: CoseKeyTypeToJSON(value['kty']),
127
+ kid: value['kid'],
128
+ alg: value['alg'],
129
+ key_ops: value['keyOps'],
130
+ baseIV: value['baseIV'],
131
+ crv: value['crv'],
132
+ x: value['x'],
133
+ y: value['y'],
134
+ d: value['d'],
135
+ x5chain: value['x5chain'],
136
+ }
144
137
  }
145
-
@@ -12,11 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { CoseKey } from './CoseKey';
16
- import {
17
- CoseKeyFromJSON,
18
- CoseKeyToJSON,
19
- } from './CoseKey';
15
+ import type { CoseKey } from './CoseKey'
16
+ import { CoseKeyFromJSON, CoseKeyToJSON } from './CoseKey'
20
17
 
21
18
  /**
22
19
  * Represents a cryptographic key pair for COSE (CBOR Object Signing and Encryption) operations.
@@ -24,56 +21,53 @@ import {
24
21
  * @interface CoseKeyPair
25
22
  */
26
23
  export interface CoseKeyPair {
27
- /**
28
- *
29
- * @type {CoseKey}
30
- * @memberof CoseKeyPair
31
- */
32
- privateCoseKey?: CoseKey;
33
- /**
34
- *
35
- * @type {CoseKey}
36
- * @memberof CoseKeyPair
37
- */
38
- publicCoseKey: CoseKey;
24
+ /**
25
+ *
26
+ * @type {CoseKey}
27
+ * @memberof CoseKeyPair
28
+ */
29
+ privateCoseKey?: CoseKey
30
+ /**
31
+ *
32
+ * @type {CoseKey}
33
+ * @memberof CoseKeyPair
34
+ */
35
+ publicCoseKey: CoseKey
39
36
  }
40
37
 
41
38
  /**
42
39
  * Check if a given object implements the CoseKeyPair interface.
43
40
  */
44
41
  export function instanceOfCoseKeyPair(value: object): value is CoseKeyPair {
45
- if (!('publicCoseKey' in value) || value['publicCoseKey'] === undefined) return false;
46
- return true;
42
+ if (!('publicCoseKey' in value) || value['publicCoseKey'] === undefined) return false
43
+ return true
47
44
  }
48
45
 
49
46
  export function CoseKeyPairFromJSON(json: any): CoseKeyPair {
50
- return CoseKeyPairFromJSONTyped(json, false);
47
+ return CoseKeyPairFromJSONTyped(json, false)
51
48
  }
52
49
 
53
50
  export function CoseKeyPairFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoseKeyPair {
54
- if (json == null) {
55
- return json;
56
- }
57
- return {
58
-
59
- 'privateCoseKey': json['privateCoseKey'] == null ? undefined : CoseKeyFromJSON(json['privateCoseKey']),
60
- 'publicCoseKey': CoseKeyFromJSON(json['publicCoseKey']),
61
- };
51
+ if (json == null) {
52
+ return json
53
+ }
54
+ return {
55
+ privateCoseKey: json['privateCoseKey'] == null ? undefined : CoseKeyFromJSON(json['privateCoseKey']),
56
+ publicCoseKey: CoseKeyFromJSON(json['publicCoseKey']),
57
+ }
62
58
  }
63
59
 
64
60
  export function CoseKeyPairToJSON(json: any): CoseKeyPair {
65
- return CoseKeyPairToJSONTyped(json, false);
61
+ return CoseKeyPairToJSONTyped(json, false)
66
62
  }
67
63
 
68
64
  export function CoseKeyPairToJSONTyped(value?: CoseKeyPair | null, ignoreDiscriminator: boolean = false): any {
69
- if (value == null) {
70
- return value;
71
- }
72
-
73
- return {
65
+ if (value == null) {
66
+ return value
67
+ }
74
68
 
75
- 'privateCoseKey': CoseKeyToJSON(value['privateCoseKey']),
76
- 'publicCoseKey': CoseKeyToJSON(value['publicCoseKey']),
77
- };
69
+ return {
70
+ privateCoseKey: CoseKeyToJSON(value['privateCoseKey']),
71
+ publicCoseKey: CoseKeyToJSON(value['publicCoseKey']),
72
+ }
78
73
  }
79
-
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * KMS REST Server API
5
- * A REST API for managing cryptographic keys and performing signing and verification operations.
5
+ * A REST API for managing cryptographic keys and performing signing and verification operations.
6
6
  *
7
7
  * The version of the OpenAPI document: 0.0.1
8
8
  * Contact: support@sphereon.com
@@ -12,44 +12,41 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  /**
17
16
  * COSE key type parameter. 1=OKP (Octet Key Pair), 2=EC2 (Elliptic Curve), 3=RSA, 4=Symmetric.
18
17
  * @export
19
18
  */
20
19
  export const CoseKeyType = {
21
- NUMBER_1: 1,
22
- NUMBER_2: 2,
23
- NUMBER_3: 3,
24
- NUMBER_4: 4
25
- } as const;
26
- export type CoseKeyType = typeof CoseKeyType[keyof typeof CoseKeyType];
27
-
20
+ NUMBER_1: 1,
21
+ NUMBER_2: 2,
22
+ NUMBER_3: 3,
23
+ NUMBER_4: 4,
24
+ } as const
25
+ export type CoseKeyType = (typeof CoseKeyType)[keyof typeof CoseKeyType]
28
26
 
29
27
  export function instanceOfCoseKeyType(value: any): boolean {
30
- for (const key in CoseKeyType) {
31
- if (Object.prototype.hasOwnProperty.call(CoseKeyType, key)) {
32
- if (CoseKeyType[key as keyof typeof CoseKeyType] === value) {
33
- return true;
34
- }
35
- }
28
+ for (const key in CoseKeyType) {
29
+ if (Object.prototype.hasOwnProperty.call(CoseKeyType, key)) {
30
+ if (CoseKeyType[key as keyof typeof CoseKeyType] === value) {
31
+ return true
32
+ }
36
33
  }
37
- return false;
34
+ }
35
+ return false
38
36
  }
39
37
 
40
38
  export function CoseKeyTypeFromJSON(json: any): CoseKeyType {
41
- return CoseKeyTypeFromJSONTyped(json, false);
39
+ return CoseKeyTypeFromJSONTyped(json, false)
42
40
  }
43
41
 
44
42
  export function CoseKeyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoseKeyType {
45
- return json as CoseKeyType;
43
+ return json as CoseKeyType
46
44
  }
47
45
 
48
46
  export function CoseKeyTypeToJSON(value?: CoseKeyType | null): any {
49
- return value as any;
47
+ return value as any
50
48
  }
51
49
 
52
50
  export function CoseKeyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CoseKeyType {
53
- return value as CoseKeyType;
51
+ return value as CoseKeyType
54
52
  }
55
-
@@ -12,21 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { AwsKmsSetting } from './AwsKmsSetting';
16
- import {
17
- AwsKmsSettingFromJSON,
18
- AwsKmsSettingToJSON,
19
- } from './AwsKmsSetting';
20
- import type { AzureKeyVaultSetting } from './AzureKeyVaultSetting';
21
- import {
22
- AzureKeyVaultSettingFromJSON,
23
- AzureKeyVaultSettingToJSON,
24
- } from './AzureKeyVaultSetting';
25
- import type { KeyProviderType } from './KeyProviderType';
26
- import {
27
- KeyProviderTypeFromJSON,
28
- KeyProviderTypeToJSON,
29
- } from './KeyProviderType';
15
+ import type { AwsKmsSetting } from './AwsKmsSetting'
16
+ import { AwsKmsSettingFromJSON, AwsKmsSettingToJSON } from './AwsKmsSetting'
17
+ import type { AzureKeyVaultSetting } from './AzureKeyVaultSetting'
18
+ import { AzureKeyVaultSettingFromJSON, AzureKeyVaultSettingToJSON } from './AzureKeyVaultSetting'
19
+ import type { KeyProviderType } from './KeyProviderType'
20
+ import { KeyProviderTypeFromJSON, KeyProviderTypeToJSON } from './KeyProviderType'
30
21
 
31
22
  /**
32
23
  * Request body for creating a new Key Provider instance.
@@ -34,82 +25,77 @@ import {
34
25
  * @interface CreateKeyProvider
35
26
  */
36
27
  export interface CreateKeyProvider {
37
- /**
38
- *
39
- * @type {KeyProviderType}
40
- * @memberof CreateKeyProvider
41
- */
42
- type: KeyProviderType;
43
- /**
44
- *
45
- * @type {AzureKeyVaultSetting}
46
- * @memberof CreateKeyProvider
47
- */
48
- azureKeyvaultSettings?: AzureKeyVaultSetting;
49
- /**
50
- *
51
- * @type {AwsKmsSetting}
52
- * @memberof CreateKeyProvider
53
- */
54
- awsKmsSettings?: AwsKmsSetting;
55
- /**
56
- * Whether to enable caching for keys retrieved from this provider.
57
- * @type {boolean}
58
- * @memberof CreateKeyProvider
59
- */
60
- cacheEnabled?: boolean;
61
- /**
62
- * Time-to-live for cached keys in seconds (if cacheEnabled is true).
63
- * @type {number}
64
- * @memberof CreateKeyProvider
65
- */
66
- cacheTTLInSeconds?: number;
28
+ /**
29
+ *
30
+ * @type {KeyProviderType}
31
+ * @memberof CreateKeyProvider
32
+ */
33
+ type: KeyProviderType
34
+ /**
35
+ *
36
+ * @type {AzureKeyVaultSetting}
37
+ * @memberof CreateKeyProvider
38
+ */
39
+ azureKeyvaultSettings?: AzureKeyVaultSetting
40
+ /**
41
+ *
42
+ * @type {AwsKmsSetting}
43
+ * @memberof CreateKeyProvider
44
+ */
45
+ awsKmsSettings?: AwsKmsSetting
46
+ /**
47
+ * Whether to enable caching for keys retrieved from this provider.
48
+ * @type {boolean}
49
+ * @memberof CreateKeyProvider
50
+ */
51
+ cacheEnabled?: boolean
52
+ /**
53
+ * Time-to-live for cached keys in seconds (if cacheEnabled is true).
54
+ * @type {number}
55
+ * @memberof CreateKeyProvider
56
+ */
57
+ cacheTTLInSeconds?: number
67
58
  }
68
59
 
69
-
70
-
71
60
  /**
72
61
  * Check if a given object implements the CreateKeyProvider interface.
73
62
  */
74
63
  export function instanceOfCreateKeyProvider(value: object): value is CreateKeyProvider {
75
- if (!('type' in value) || value['type'] === undefined) return false;
76
- return true;
64
+ if (!('type' in value) || value['type'] === undefined) return false
65
+ return true
77
66
  }
78
67
 
79
68
  export function CreateKeyProviderFromJSON(json: any): CreateKeyProvider {
80
- return CreateKeyProviderFromJSONTyped(json, false);
69
+ return CreateKeyProviderFromJSONTyped(json, false)
81
70
  }
82
71
 
83
72
  export function CreateKeyProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateKeyProvider {
84
- if (json == null) {
85
- return json;
86
- }
87
- return {
88
-
89
- 'type': KeyProviderTypeFromJSON(json['type']),
90
- 'azureKeyvaultSettings': json['azureKeyvaultSettings'] == null ? undefined : AzureKeyVaultSettingFromJSON(json['azureKeyvaultSettings']),
91
- 'awsKmsSettings': json['awsKmsSettings'] == null ? undefined : AwsKmsSettingFromJSON(json['awsKmsSettings']),
92
- 'cacheEnabled': json['cacheEnabled'] == null ? undefined : json['cacheEnabled'],
93
- 'cacheTTLInSeconds': json['cacheTTLInSeconds'] == null ? undefined : json['cacheTTLInSeconds'],
94
- };
73
+ if (json == null) {
74
+ return json
75
+ }
76
+ return {
77
+ type: KeyProviderTypeFromJSON(json['type']),
78
+ azureKeyvaultSettings: json['azureKeyvaultSettings'] == null ? undefined : AzureKeyVaultSettingFromJSON(json['azureKeyvaultSettings']),
79
+ awsKmsSettings: json['awsKmsSettings'] == null ? undefined : AwsKmsSettingFromJSON(json['awsKmsSettings']),
80
+ cacheEnabled: json['cacheEnabled'] == null ? undefined : json['cacheEnabled'],
81
+ cacheTTLInSeconds: json['cacheTTLInSeconds'] == null ? undefined : json['cacheTTLInSeconds'],
82
+ }
95
83
  }
96
84
 
97
85
  export function CreateKeyProviderToJSON(json: any): CreateKeyProvider {
98
- return CreateKeyProviderToJSONTyped(json, false);
86
+ return CreateKeyProviderToJSONTyped(json, false)
99
87
  }
100
88
 
101
89
  export function CreateKeyProviderToJSONTyped(value?: CreateKeyProvider | null, ignoreDiscriminator: boolean = false): any {
102
- if (value == null) {
103
- return value;
104
- }
90
+ if (value == null) {
91
+ return value
92
+ }
105
93
 
106
- return {
107
-
108
- 'type': KeyProviderTypeToJSON(value['type']),
109
- 'azureKeyvaultSettings': AzureKeyVaultSettingToJSON(value['azureKeyvaultSettings']),
110
- 'awsKmsSettings': AwsKmsSettingToJSON(value['awsKmsSettings']),
111
- 'cacheEnabled': value['cacheEnabled'],
112
- 'cacheTTLInSeconds': value['cacheTTLInSeconds'],
113
- };
94
+ return {
95
+ type: KeyProviderTypeToJSON(value['type']),
96
+ azureKeyvaultSettings: AzureKeyVaultSettingToJSON(value['azureKeyvaultSettings']),
97
+ awsKmsSettings: AwsKmsSettingToJSON(value['awsKmsSettings']),
98
+ cacheEnabled: value['cacheEnabled'],
99
+ cacheTTLInSeconds: value['cacheTTLInSeconds'],
100
+ }
114
101
  }
115
-
@@ -12,11 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { KeyInfo } from './KeyInfo';
16
- import {
17
- KeyInfoFromJSON,
18
- KeyInfoToJSON,
19
- } from './KeyInfo';
15
+ import type { KeyInfo } from './KeyInfo'
16
+ import { KeyInfoFromJSON, KeyInfoToJSON } from './KeyInfo'
20
17
 
21
18
  /**
22
19
  * Request body for creating a raw signature.
@@ -24,57 +21,54 @@ import {
24
21
  * @interface CreateRawSignature
25
22
  */
26
23
  export interface CreateRawSignature {
27
- /**
28
- *
29
- * @type {KeyInfo}
30
- * @memberof CreateRawSignature
31
- */
32
- keyInfo: KeyInfo;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof CreateRawSignature
37
- */
38
- input: string;
24
+ /**
25
+ *
26
+ * @type {KeyInfo}
27
+ * @memberof CreateRawSignature
28
+ */
29
+ keyInfo: KeyInfo
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateRawSignature
34
+ */
35
+ input: string
39
36
  }
40
37
 
41
38
  /**
42
39
  * Check if a given object implements the CreateRawSignature interface.
43
40
  */
44
41
  export function instanceOfCreateRawSignature(value: object): value is CreateRawSignature {
45
- if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false;
46
- if (!('input' in value) || value['input'] === undefined) return false;
47
- return true;
42
+ if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false
43
+ if (!('input' in value) || value['input'] === undefined) return false
44
+ return true
48
45
  }
49
46
 
50
47
  export function CreateRawSignatureFromJSON(json: any): CreateRawSignature {
51
- return CreateRawSignatureFromJSONTyped(json, false);
48
+ return CreateRawSignatureFromJSONTyped(json, false)
52
49
  }
53
50
 
54
51
  export function CreateRawSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRawSignature {
55
- if (json == null) {
56
- return json;
57
- }
58
- return {
59
-
60
- 'keyInfo': KeyInfoFromJSON(json['keyInfo']),
61
- 'input': json['input'],
62
- };
52
+ if (json == null) {
53
+ return json
54
+ }
55
+ return {
56
+ keyInfo: KeyInfoFromJSON(json['keyInfo']),
57
+ input: json['input'],
58
+ }
63
59
  }
64
60
 
65
61
  export function CreateRawSignatureToJSON(json: any): CreateRawSignature {
66
- return CreateRawSignatureToJSONTyped(json, false);
62
+ return CreateRawSignatureToJSONTyped(json, false)
67
63
  }
68
64
 
69
65
  export function CreateRawSignatureToJSONTyped(value?: CreateRawSignature | null, ignoreDiscriminator: boolean = false): any {
70
- if (value == null) {
71
- return value;
72
- }
73
-
74
- return {
66
+ if (value == null) {
67
+ return value
68
+ }
75
69
 
76
- 'keyInfo': KeyInfoToJSON(value['keyInfo']),
77
- 'input': value['input'],
78
- };
70
+ return {
71
+ keyInfo: KeyInfoToJSON(value['keyInfo']),
72
+ input: value['input'],
73
+ }
79
74
  }
80
-