@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,31 +12,16 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { KeyType } from './KeyType';
16
- import {
17
- KeyTypeFromJSON,
18
- KeyTypeToJSON,
19
- } from './KeyType';
20
- import type { DigestAlg } from './DigestAlg';
21
- import {
22
- DigestAlgFromJSON,
23
- DigestAlgToJSON,
24
- } from './DigestAlg';
25
- import type { Curve } from './Curve';
26
- import {
27
- CurveFromJSON,
28
- CurveToJSON,
29
- } from './Curve';
30
- import type { KeyOperations } from './KeyOperations';
31
- import {
32
- KeyOperationsFromJSON,
33
- KeyOperationsToJSON,
34
- } from './KeyOperations';
35
- import type { SignatureAlgorithm } from './SignatureAlgorithm';
36
- import {
37
- SignatureAlgorithmFromJSON,
38
- SignatureAlgorithmToJSON,
39
- } from './SignatureAlgorithm';
15
+ import type { KeyType } from './KeyType'
16
+ import { KeyTypeFromJSON, KeyTypeToJSON } from './KeyType'
17
+ import type { DigestAlg } from './DigestAlg'
18
+ import { DigestAlgFromJSON, DigestAlgToJSON } from './DigestAlg'
19
+ import type { Curve } from './Curve'
20
+ import { CurveFromJSON, CurveToJSON } from './Curve'
21
+ import type { KeyOperations } from './KeyOperations'
22
+ import { KeyOperationsFromJSON, KeyOperationsToJSON } from './KeyOperations'
23
+ import type { SignatureAlgorithm } from './SignatureAlgorithm'
24
+ import { SignatureAlgorithmFromJSON, SignatureAlgorithmToJSON } from './SignatureAlgorithm'
40
25
 
41
26
  /**
42
27
  * Comprehensive information about a provider's cryptographic capabilities.
@@ -44,79 +29,78 @@ import {
44
29
  * @interface ProviderCapabilities
45
30
  */
46
31
  export interface ProviderCapabilities {
47
- /**
48
- * List of key types supported by this provider.
49
- * @type {Array<KeyType>}
50
- * @memberof ProviderCapabilities
51
- */
52
- keyTypes?: Array<KeyType>;
53
- /**
54
- * List of signature algorithms supported by this provider.
55
- * @type {Array<SignatureAlgorithm>}
56
- * @memberof ProviderCapabilities
57
- */
58
- signatureAlgorithms?: Array<SignatureAlgorithm>;
59
- /**
60
- * List of digest algorithms supported by this provider.
61
- * @type {Array<DigestAlg>}
62
- * @memberof ProviderCapabilities
63
- */
64
- digests?: Array<DigestAlg>;
65
- /**
66
- * List of elliptic curves supported by this provider.
67
- * @type {Array<Curve>}
68
- * @memberof ProviderCapabilities
69
- */
70
- curves?: Array<Curve>;
71
- /**
72
- * List of key operations supported by this provider.
73
- * @type {Array<KeyOperations>}
74
- * @memberof ProviderCapabilities
75
- */
76
- keyOperations?: Array<KeyOperations>;
32
+ /**
33
+ * List of key types supported by this provider.
34
+ * @type {Array<KeyType>}
35
+ * @memberof ProviderCapabilities
36
+ */
37
+ keyTypes?: Array<KeyType>
38
+ /**
39
+ * List of signature algorithms supported by this provider.
40
+ * @type {Array<SignatureAlgorithm>}
41
+ * @memberof ProviderCapabilities
42
+ */
43
+ signatureAlgorithms?: Array<SignatureAlgorithm>
44
+ /**
45
+ * List of digest algorithms supported by this provider.
46
+ * @type {Array<DigestAlg>}
47
+ * @memberof ProviderCapabilities
48
+ */
49
+ digests?: Array<DigestAlg>
50
+ /**
51
+ * List of elliptic curves supported by this provider.
52
+ * @type {Array<Curve>}
53
+ * @memberof ProviderCapabilities
54
+ */
55
+ curves?: Array<Curve>
56
+ /**
57
+ * List of key operations supported by this provider.
58
+ * @type {Array<KeyOperations>}
59
+ * @memberof ProviderCapabilities
60
+ */
61
+ keyOperations?: Array<KeyOperations>
77
62
  }
78
63
 
79
64
  /**
80
65
  * Check if a given object implements the ProviderCapabilities interface.
81
66
  */
82
67
  export function instanceOfProviderCapabilities(value: object): value is ProviderCapabilities {
83
- return true;
68
+ return true
84
69
  }
85
70
 
86
71
  export function ProviderCapabilitiesFromJSON(json: any): ProviderCapabilities {
87
- return ProviderCapabilitiesFromJSONTyped(json, false);
72
+ return ProviderCapabilitiesFromJSONTyped(json, false)
88
73
  }
89
74
 
90
75
  export function ProviderCapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderCapabilities {
91
- if (json == null) {
92
- return json;
93
- }
94
- return {
95
-
96
- 'keyTypes': json['keyTypes'] == null ? undefined : ((json['keyTypes'] as Array<any>).map(KeyTypeFromJSON)),
97
- 'signatureAlgorithms': json['signatureAlgorithms'] == null ? undefined : ((json['signatureAlgorithms'] as Array<any>).map(SignatureAlgorithmFromJSON)),
98
- 'digests': json['digests'] == null ? undefined : ((json['digests'] as Array<any>).map(DigestAlgFromJSON)),
99
- 'curves': json['curves'] == null ? undefined : ((json['curves'] as Array<any>).map(CurveFromJSON)),
100
- 'keyOperations': json['keyOperations'] == null ? undefined : ((json['keyOperations'] as Array<any>).map(KeyOperationsFromJSON)),
101
- };
76
+ if (json == null) {
77
+ return json
78
+ }
79
+ return {
80
+ keyTypes: json['keyTypes'] == null ? undefined : (json['keyTypes'] as Array<any>).map(KeyTypeFromJSON),
81
+ signatureAlgorithms:
82
+ json['signatureAlgorithms'] == null ? undefined : (json['signatureAlgorithms'] as Array<any>).map(SignatureAlgorithmFromJSON),
83
+ digests: json['digests'] == null ? undefined : (json['digests'] as Array<any>).map(DigestAlgFromJSON),
84
+ curves: json['curves'] == null ? undefined : (json['curves'] as Array<any>).map(CurveFromJSON),
85
+ keyOperations: json['keyOperations'] == null ? undefined : (json['keyOperations'] as Array<any>).map(KeyOperationsFromJSON),
86
+ }
102
87
  }
103
88
 
104
89
  export function ProviderCapabilitiesToJSON(json: any): ProviderCapabilities {
105
- return ProviderCapabilitiesToJSONTyped(json, false);
90
+ return ProviderCapabilitiesToJSONTyped(json, false)
106
91
  }
107
92
 
108
93
  export function ProviderCapabilitiesToJSONTyped(value?: ProviderCapabilities | null, ignoreDiscriminator: boolean = false): any {
109
- if (value == null) {
110
- return value;
111
- }
112
-
113
- return {
94
+ if (value == null) {
95
+ return value
96
+ }
114
97
 
115
- 'keyTypes': value['keyTypes'] == null ? undefined : ((value['keyTypes'] as Array<any>).map(KeyTypeToJSON)),
116
- 'signatureAlgorithms': value['signatureAlgorithms'] == null ? undefined : ((value['signatureAlgorithms'] as Array<any>).map(SignatureAlgorithmToJSON)),
117
- 'digests': value['digests'] == null ? undefined : ((value['digests'] as Array<any>).map(DigestAlgToJSON)),
118
- 'curves': value['curves'] == null ? undefined : ((value['curves'] as Array<any>).map(CurveToJSON)),
119
- 'keyOperations': value['keyOperations'] == null ? undefined : ((value['keyOperations'] as Array<any>).map(KeyOperationsToJSON)),
120
- };
98
+ return {
99
+ keyTypes: value['keyTypes'] == null ? undefined : (value['keyTypes'] as Array<any>).map(KeyTypeToJSON),
100
+ signatureAlgorithms:
101
+ value['signatureAlgorithms'] == null ? undefined : (value['signatureAlgorithms'] as Array<any>).map(SignatureAlgorithmToJSON),
102
+ digests: value['digests'] == null ? undefined : (value['digests'] as Array<any>).map(DigestAlgToJSON),
103
+ curves: value['curves'] == null ? undefined : (value['curves'] as Array<any>).map(CurveToJSON),
104
+ keyOperations: value['keyOperations'] == null ? undefined : (value['keyOperations'] as Array<any>).map(KeyOperationsToJSON),
105
+ }
121
106
  }
122
-
@@ -12,16 +12,10 @@
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';
20
- import type { IdentifierMethod } from './IdentifierMethod';
21
- import {
22
- IdentifierMethodFromJSON,
23
- IdentifierMethodToJSON,
24
- } from './IdentifierMethod';
15
+ import type { KeyInfo } from './KeyInfo'
16
+ import { KeyInfoFromJSON, KeyInfoToJSON } from './KeyInfo'
17
+ import type { IdentifierMethod } from './IdentifierMethod'
18
+ import { IdentifierMethodFromJSON, IdentifierMethodToJSON } from './IdentifierMethod'
25
19
 
26
20
  /**
27
21
  * Request body for resolving a public key.
@@ -29,74 +23,69 @@ import {
29
23
  * @interface ResolvePublicKey
30
24
  */
31
25
  export interface ResolvePublicKey {
32
- /**
33
- *
34
- * @type {KeyInfo}
35
- * @memberof ResolvePublicKey
36
- */
37
- keyInfo: KeyInfo;
38
- /**
39
- *
40
- * @type {IdentifierMethod}
41
- * @memberof ResolvePublicKey
42
- */
43
- identifierMethod?: IdentifierMethod;
44
- /**
45
- * Optional array of trusted certificates (base64-encoded) that may be used in the resolution process.
46
- * @type {Array<string>}
47
- * @memberof ResolvePublicKey
48
- */
49
- trustedCerts?: Array<string>;
50
- /**
51
- * Optional boolean indicating whether the X.509 certificate chain should be verified.
52
- * @type {boolean}
53
- * @memberof ResolvePublicKey
54
- */
55
- verifyX509CertificateChain?: boolean;
26
+ /**
27
+ *
28
+ * @type {KeyInfo}
29
+ * @memberof ResolvePublicKey
30
+ */
31
+ keyInfo: KeyInfo
32
+ /**
33
+ *
34
+ * @type {IdentifierMethod}
35
+ * @memberof ResolvePublicKey
36
+ */
37
+ identifierMethod?: IdentifierMethod
38
+ /**
39
+ * Optional array of trusted certificates (base64-encoded) that may be used in the resolution process.
40
+ * @type {Array<string>}
41
+ * @memberof ResolvePublicKey
42
+ */
43
+ trustedCerts?: Array<string>
44
+ /**
45
+ * Optional boolean indicating whether the X.509 certificate chain should be verified.
46
+ * @type {boolean}
47
+ * @memberof ResolvePublicKey
48
+ */
49
+ verifyX509CertificateChain?: boolean
56
50
  }
57
51
 
58
-
59
-
60
52
  /**
61
53
  * Check if a given object implements the ResolvePublicKey interface.
62
54
  */
63
55
  export function instanceOfResolvePublicKey(value: object): value is ResolvePublicKey {
64
- if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false;
65
- return true;
56
+ if (!('keyInfo' in value) || value['keyInfo'] === undefined) return false
57
+ return true
66
58
  }
67
59
 
68
60
  export function ResolvePublicKeyFromJSON(json: any): ResolvePublicKey {
69
- return ResolvePublicKeyFromJSONTyped(json, false);
61
+ return ResolvePublicKeyFromJSONTyped(json, false)
70
62
  }
71
63
 
72
64
  export function ResolvePublicKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvePublicKey {
73
- if (json == null) {
74
- return json;
75
- }
76
- return {
77
-
78
- 'keyInfo': KeyInfoFromJSON(json['keyInfo']),
79
- 'identifierMethod': json['identifierMethod'] == null ? undefined : IdentifierMethodFromJSON(json['identifierMethod']),
80
- 'trustedCerts': json['trustedCerts'] == null ? undefined : json['trustedCerts'],
81
- 'verifyX509CertificateChain': json['verifyX509CertificateChain'] == null ? undefined : json['verifyX509CertificateChain'],
82
- };
65
+ if (json == null) {
66
+ return json
67
+ }
68
+ return {
69
+ keyInfo: KeyInfoFromJSON(json['keyInfo']),
70
+ identifierMethod: json['identifierMethod'] == null ? undefined : IdentifierMethodFromJSON(json['identifierMethod']),
71
+ trustedCerts: json['trustedCerts'] == null ? undefined : json['trustedCerts'],
72
+ verifyX509CertificateChain: json['verifyX509CertificateChain'] == null ? undefined : json['verifyX509CertificateChain'],
73
+ }
83
74
  }
84
75
 
85
76
  export function ResolvePublicKeyToJSON(json: any): ResolvePublicKey {
86
- return ResolvePublicKeyToJSONTyped(json, false);
77
+ return ResolvePublicKeyToJSONTyped(json, false)
87
78
  }
88
79
 
89
80
  export function ResolvePublicKeyToJSONTyped(value?: ResolvePublicKey | null, ignoreDiscriminator: boolean = false): any {
90
- if (value == null) {
91
- return value;
92
- }
81
+ if (value == null) {
82
+ return value
83
+ }
93
84
 
94
- return {
95
-
96
- 'keyInfo': KeyInfoToJSON(value['keyInfo']),
97
- 'identifierMethod': IdentifierMethodToJSON(value['identifierMethod']),
98
- 'trustedCerts': value['trustedCerts'],
99
- 'verifyX509CertificateChain': value['verifyX509CertificateChain'],
100
- };
85
+ return {
86
+ keyInfo: KeyInfoToJSON(value['keyInfo']),
87
+ identifierMethod: IdentifierMethodToJSON(value['identifierMethod']),
88
+ trustedCerts: value['trustedCerts'],
89
+ verifyX509CertificateChain: value['verifyX509CertificateChain'],
90
+ }
101
91
  }
102
-
@@ -12,31 +12,16 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { KeyType } from './KeyType';
16
- import {
17
- KeyTypeFromJSON,
18
- KeyTypeToJSON,
19
- } from './KeyType';
20
- import type { KeyVisibility } from './KeyVisibility';
21
- import {
22
- KeyVisibilityFromJSON,
23
- KeyVisibilityToJSON,
24
- } from './KeyVisibility';
25
- import type { SignatureAlgorithm } from './SignatureAlgorithm';
26
- import {
27
- SignatureAlgorithmFromJSON,
28
- SignatureAlgorithmToJSON,
29
- } from './SignatureAlgorithm';
30
- import type { KeyEncoding } from './KeyEncoding';
31
- import {
32
- KeyEncodingFromJSON,
33
- KeyEncodingToJSON,
34
- } from './KeyEncoding';
35
- import type { Jwk } from './Jwk';
36
- import {
37
- JwkFromJSON,
38
- JwkToJSON,
39
- } from './Jwk';
15
+ import type { KeyType } from './KeyType'
16
+ import { KeyTypeFromJSON, KeyTypeToJSON } from './KeyType'
17
+ import type { KeyVisibility } from './KeyVisibility'
18
+ import { KeyVisibilityFromJSON, KeyVisibilityToJSON } from './KeyVisibility'
19
+ import type { SignatureAlgorithm } from './SignatureAlgorithm'
20
+ import { SignatureAlgorithmFromJSON, SignatureAlgorithmToJSON } from './SignatureAlgorithm'
21
+ import type { KeyEncoding } from './KeyEncoding'
22
+ import { KeyEncodingFromJSON, KeyEncodingToJSON } from './KeyEncoding'
23
+ import type { Jwk } from './Jwk'
24
+ import { JwkFromJSON, JwkToJSON } from './Jwk'
40
25
 
41
26
  /**
42
27
  * Represents a resolved cryptographic key information where the key is guaranteed to be present and resolved, providing concrete access to the key.
@@ -44,122 +29,117 @@ import {
44
29
  * @interface ResolvedKeyInfo
45
30
  */
46
31
  export interface ResolvedKeyInfo {
47
- /**
48
- * Unique identifier for the cryptographic key. Can be null if the key identifier is not provided.
49
- * @type {string}
50
- * @memberof ResolvedKeyInfo
51
- */
52
- kid?: string;
53
- /**
54
- *
55
- * @type {Jwk}
56
- * @memberof ResolvedKeyInfo
57
- */
58
- key: Jwk;
59
- /**
60
- *
61
- * @type {SignatureAlgorithm}
62
- * @memberof ResolvedKeyInfo
63
- */
64
- signatureAlgorithm?: SignatureAlgorithm;
65
- /**
66
- *
67
- * @type {KeyVisibility}
68
- * @memberof ResolvedKeyInfo
69
- */
70
- keyVisibility?: KeyVisibility;
71
- /**
72
- * X.509 certificate chain associated with the key.
73
- * @type {Array<string>}
74
- * @memberof ResolvedKeyInfo
75
- */
76
- x5c?: Array<string>;
77
- /**
78
- * A reference or alias to the key in the Key Management Service (KMS).
79
- * @type {string}
80
- * @memberof ResolvedKeyInfo
81
- */
82
- alias?: string;
83
- /**
84
- * The Key Management System (KMS) identifier associated with the key.
85
- * @type {string}
86
- * @memberof ResolvedKeyInfo
87
- */
88
- providerId?: string;
89
- /**
90
- *
91
- * @type {KeyType}
92
- * @memberof ResolvedKeyInfo
93
- */
94
- keyType?: KeyType;
95
- /**
96
- *
97
- * @type {KeyEncoding}
98
- * @memberof ResolvedKeyInfo
99
- */
100
- keyEncoding?: KeyEncoding;
101
- /**
102
- * Additional configuration options as key-value pairs.
103
- * @type {{ [key: string]: string; }}
104
- * @memberof ResolvedKeyInfo
105
- */
106
- opts?: { [key: string]: string; };
32
+ /**
33
+ * Unique identifier for the cryptographic key. Can be null if the key identifier is not provided.
34
+ * @type {string}
35
+ * @memberof ResolvedKeyInfo
36
+ */
37
+ kid?: string
38
+ /**
39
+ *
40
+ * @type {Jwk}
41
+ * @memberof ResolvedKeyInfo
42
+ */
43
+ key: Jwk
44
+ /**
45
+ *
46
+ * @type {SignatureAlgorithm}
47
+ * @memberof ResolvedKeyInfo
48
+ */
49
+ signatureAlgorithm?: SignatureAlgorithm
50
+ /**
51
+ *
52
+ * @type {KeyVisibility}
53
+ * @memberof ResolvedKeyInfo
54
+ */
55
+ keyVisibility?: KeyVisibility
56
+ /**
57
+ * X.509 certificate chain associated with the key.
58
+ * @type {Array<string>}
59
+ * @memberof ResolvedKeyInfo
60
+ */
61
+ x5c?: Array<string>
62
+ /**
63
+ * A reference or alias to the key in the Key Management Service (KMS).
64
+ * @type {string}
65
+ * @memberof ResolvedKeyInfo
66
+ */
67
+ alias?: string
68
+ /**
69
+ * The Key Management System (KMS) identifier associated with the key.
70
+ * @type {string}
71
+ * @memberof ResolvedKeyInfo
72
+ */
73
+ providerId?: string
74
+ /**
75
+ *
76
+ * @type {KeyType}
77
+ * @memberof ResolvedKeyInfo
78
+ */
79
+ keyType?: KeyType
80
+ /**
81
+ *
82
+ * @type {KeyEncoding}
83
+ * @memberof ResolvedKeyInfo
84
+ */
85
+ keyEncoding?: KeyEncoding
86
+ /**
87
+ * Additional configuration options as key-value pairs.
88
+ * @type {{ [key: string]: string; }}
89
+ * @memberof ResolvedKeyInfo
90
+ */
91
+ opts?: { [key: string]: string }
107
92
  }
108
93
 
109
-
110
-
111
94
  /**
112
95
  * Check if a given object implements the ResolvedKeyInfo interface.
113
96
  */
114
97
  export function instanceOfResolvedKeyInfo(value: object): value is ResolvedKeyInfo {
115
- if (!('key' in value) || value['key'] === undefined) return false;
116
- return true;
98
+ if (!('key' in value) || value['key'] === undefined) return false
99
+ return true
117
100
  }
118
101
 
119
102
  export function ResolvedKeyInfoFromJSON(json: any): ResolvedKeyInfo {
120
- return ResolvedKeyInfoFromJSONTyped(json, false);
103
+ return ResolvedKeyInfoFromJSONTyped(json, false)
121
104
  }
122
105
 
123
106
  export function ResolvedKeyInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvedKeyInfo {
124
- if (json == null) {
125
- return json;
126
- }
127
- return {
128
-
129
- 'kid': json['kid'] == null ? undefined : json['kid'],
130
- 'key': JwkFromJSON(json['key']),
131
- 'signatureAlgorithm': json['signatureAlgorithm'] == null ? undefined : SignatureAlgorithmFromJSON(json['signatureAlgorithm']),
132
- 'keyVisibility': json['keyVisibility'] == null ? undefined : KeyVisibilityFromJSON(json['keyVisibility']),
133
- 'x5c': json['x5c'] == null ? undefined : json['x5c'],
134
- 'alias': json['alias'] == null ? undefined : json['alias'],
135
- 'providerId': json['providerId'] == null ? undefined : json['providerId'],
136
- 'keyType': json['keyType'] == null ? undefined : KeyTypeFromJSON(json['keyType']),
137
- 'keyEncoding': json['keyEncoding'] == null ? undefined : KeyEncodingFromJSON(json['keyEncoding']),
138
- 'opts': json['opts'] == null ? undefined : json['opts'],
139
- };
107
+ if (json == null) {
108
+ return json
109
+ }
110
+ return {
111
+ kid: json['kid'] == null ? undefined : json['kid'],
112
+ key: JwkFromJSON(json['key']),
113
+ signatureAlgorithm: json['signatureAlgorithm'] == null ? undefined : SignatureAlgorithmFromJSON(json['signatureAlgorithm']),
114
+ keyVisibility: json['keyVisibility'] == null ? undefined : KeyVisibilityFromJSON(json['keyVisibility']),
115
+ x5c: json['x5c'] == null ? undefined : json['x5c'],
116
+ alias: json['alias'] == null ? undefined : json['alias'],
117
+ providerId: json['providerId'] == null ? undefined : json['providerId'],
118
+ keyType: json['keyType'] == null ? undefined : KeyTypeFromJSON(json['keyType']),
119
+ keyEncoding: json['keyEncoding'] == null ? undefined : KeyEncodingFromJSON(json['keyEncoding']),
120
+ opts: json['opts'] == null ? undefined : json['opts'],
121
+ }
140
122
  }
141
123
 
142
124
  export function ResolvedKeyInfoToJSON(json: any): ResolvedKeyInfo {
143
- return ResolvedKeyInfoToJSONTyped(json, false);
125
+ return ResolvedKeyInfoToJSONTyped(json, false)
144
126
  }
145
127
 
146
128
  export function ResolvedKeyInfoToJSONTyped(value?: ResolvedKeyInfo | null, ignoreDiscriminator: boolean = false): any {
147
- if (value == null) {
148
- return value;
149
- }
129
+ if (value == null) {
130
+ return value
131
+ }
150
132
 
151
- return {
152
-
153
- 'kid': value['kid'],
154
- 'key': JwkToJSON(value['key']),
155
- 'signatureAlgorithm': SignatureAlgorithmToJSON(value['signatureAlgorithm']),
156
- 'keyVisibility': KeyVisibilityToJSON(value['keyVisibility']),
157
- 'x5c': value['x5c'],
158
- 'alias': value['alias'],
159
- 'providerId': value['providerId'],
160
- 'keyType': KeyTypeToJSON(value['keyType']),
161
- 'keyEncoding': KeyEncodingToJSON(value['keyEncoding']),
162
- 'opts': value['opts'],
163
- };
133
+ return {
134
+ kid: value['kid'],
135
+ key: JwkToJSON(value['key']),
136
+ signatureAlgorithm: SignatureAlgorithmToJSON(value['signatureAlgorithm']),
137
+ keyVisibility: KeyVisibilityToJSON(value['keyVisibility']),
138
+ x5c: value['x5c'],
139
+ alias: value['alias'],
140
+ providerId: value['providerId'],
141
+ keyType: KeyTypeToJSON(value['keyType']),
142
+ keyEncoding: KeyEncodingToJSON(value['keyEncoding']),
143
+ opts: value['opts'],
144
+ }
164
145
  }
165
-