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

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 (69) hide show
  1. package/dist/index.cjs +169 -288
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +11 -11
  4. package/dist/index.d.ts +11 -11
  5. package/dist/index.js +169 -288
  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 +16 -17
  10. package/src/models/AwsAssumeRoleCredentials.ts +49 -57
  11. package/src/models/AwsClientConfiguration.ts +29 -32
  12. package/src/models/AwsKmsSetting.ts +71 -85
  13. package/src/models/AwsStaticCredentials.ts +49 -57
  14. package/src/models/AwsWebIdentityTokenCredentials.ts +50 -58
  15. package/src/models/AzureClientSecretCredentialOpts.ts +45 -50
  16. package/src/models/AzureCredentialOpts.ts +24 -29
  17. package/src/models/AzureKeyVaultSetting.ts +60 -71
  18. package/src/models/CoseKey.ts +96 -104
  19. package/src/models/CoseKeyPair.ts +32 -38
  20. package/src/models/CoseKeyType.ts +18 -21
  21. package/src/models/CreateKeyProvider.ts +60 -74
  22. package/src/models/CreateRawSignature.ts +33 -39
  23. package/src/models/CreateRawSignatureResponse.ts +22 -25
  24. package/src/models/CreateSimpleSignature.ts +45 -59
  25. package/src/models/CryptoAlg.ts +18 -21
  26. package/src/models/Curve.ts +22 -25
  27. package/src/models/DigestAlg.ts +21 -24
  28. package/src/models/ErrorResponse.ts +39 -42
  29. package/src/models/GenerateKey.ts +51 -65
  30. package/src/models/GenerateKeyGlobal.ts +59 -73
  31. package/src/models/GenerateKeyResponse.ts +24 -30
  32. package/src/models/GetKeyResponse.ts +24 -30
  33. package/src/models/IdentifierMethod.ts +19 -22
  34. package/src/models/JoseKeyPair.ts +32 -38
  35. package/src/models/Jwk.ts +190 -207
  36. package/src/models/JwkKeyType.ts +18 -21
  37. package/src/models/JwkUse.ts +16 -19
  38. package/src/models/KeyEncoding.ts +16 -19
  39. package/src/models/KeyInfo.ts +103 -123
  40. package/src/models/KeyOperations.ts +22 -25
  41. package/src/models/KeyProvider.ts +33 -41
  42. package/src/models/KeyProviderResponse.ts +33 -41
  43. package/src/models/KeyProviderType.ts +17 -20
  44. package/src/models/KeyResolver.ts +44 -51
  45. package/src/models/KeyType.ts +17 -20
  46. package/src/models/KeyVisibility.ts +16 -19
  47. package/src/models/ListKeyProvidersResponse.ts +24 -30
  48. package/src/models/ListKeysResponse.ts +24 -30
  49. package/src/models/ListResolversResponse.ts +24 -30
  50. package/src/models/LookupMode.ts +17 -20
  51. package/src/models/ManagedKeyInfo.ts +106 -126
  52. package/src/models/ManagedKeyPair.ts +61 -70
  53. package/src/models/MaskGenFunction.ts +15 -18
  54. package/src/models/ProviderCapabilities.ts +65 -81
  55. package/src/models/ResolvePublicKey.ts +50 -61
  56. package/src/models/ResolvedKeyInfo.ts +104 -124
  57. package/src/models/Resolver.ts +44 -51
  58. package/src/models/SignInput.ts +42 -47
  59. package/src/models/SignOutput.ts +32 -38
  60. package/src/models/Signature.ts +51 -62
  61. package/src/models/SignatureAlgorithm.ts +26 -29
  62. package/src/models/StoreKey.ts +32 -38
  63. package/src/models/StoreKeyResponse.ts +24 -30
  64. package/src/models/UpdateKeyProvider.ts +49 -58
  65. package/src/models/VerifyRawSignature.ts +42 -48
  66. package/src/models/VerifyRawSignatureResponse.ts +22 -25
  67. package/src/models/VerifySimpleSignature.ts +35 -44
  68. package/src/models/index.ts +58 -58
  69. package/src/types/IKmsRestClient.ts +2 -2
package/src/models/Jwk.ts CHANGED
@@ -12,26 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import type { Curve } from './Curve';
16
- import {
17
- CurveFromJSON,
18
- CurveToJSON,
19
- } from './Curve';
20
- import type { KeyOperations } from './KeyOperations';
21
- import {
22
- KeyOperationsFromJSON,
23
- KeyOperationsToJSON,
24
- } from './KeyOperations';
25
- import type { JwkUse } from './JwkUse';
26
- import {
27
- JwkUseFromJSON,
28
- JwkUseToJSON,
29
- } from './JwkUse';
30
- import type { JwkKeyType } from './JwkKeyType';
31
- import {
32
- JwkKeyTypeFromJSON,
33
- JwkKeyTypeToJSON,
34
- } from './JwkKeyType';
15
+ import type { Curve } from './Curve'
16
+ import { CurveFromJSON, CurveToJSON } from './Curve'
17
+ import type { KeyOperations } from './KeyOperations'
18
+ import { KeyOperationsFromJSON, KeyOperationsToJSON } from './KeyOperations'
19
+ import type { JwkUse } from './JwkUse'
20
+ import { JwkUseFromJSON, JwkUseToJSON } from './JwkUse'
21
+ import type { JwkKeyType } from './JwkKeyType'
22
+ import { JwkKeyTypeFromJSON, JwkKeyTypeToJSON } from './JwkKeyType'
35
23
 
36
24
  /**
37
25
  * Represents a JSON Web Key (JWK) as defined by the JSON Web Key specification.
@@ -39,210 +27,205 @@ import {
39
27
  * @interface Jwk
40
28
  */
41
29
  export interface Jwk {
42
- /**
43
- *
44
- * @type {JwkKeyType}
45
- * @memberof Jwk
46
- */
47
- kty: JwkKeyType;
48
- /**
49
- * Key identifier used to uniquely identify the key.
50
- * @type {string}
51
- * @memberof Jwk
52
- */
53
- kid?: string;
54
- /**
55
- * The algorithm intended for use with the key (JWA algorithm name).
56
- * @type {string}
57
- * @memberof Jwk
58
- */
59
- alg?: string;
60
- /**
61
- *
62
- * @type {JwkUse}
63
- * @memberof Jwk
64
- */
65
- use?: JwkUse;
66
- /**
67
- * The allowed cryptographic operations for the key.
68
- * @type {Array<KeyOperations>}
69
- * @memberof Jwk
70
- */
71
- keyOps?: Array<KeyOperations>;
72
- /**
73
- *
74
- * @type {Curve}
75
- * @memberof Jwk
76
- */
77
- crv?: Curve;
78
- /**
79
- * The x coordinate for elliptic curve keys (base64url-encoded).
80
- * @type {string}
81
- * @memberof Jwk
82
- */
83
- x?: string;
84
- /**
85
- * The y coordinate for elliptic curve keys (base64url-encoded).
86
- * @type {string}
87
- * @memberof Jwk
88
- */
89
- y?: string;
90
- /**
91
- * The private key parameter (base64url-encoded).
92
- * @type {string}
93
- * @memberof Jwk
94
- */
95
- d?: string;
96
- /**
97
- * The modulus value for RSA keys (base64url-encoded).
98
- * @type {string}
99
- * @memberof Jwk
100
- */
101
- n?: string;
102
- /**
103
- * The public exponent for RSA keys (base64url-encoded).
104
- * @type {string}
105
- * @memberof Jwk
106
- */
107
- e?: string;
108
- /**
109
- * The first prime factor for RSA private keys (base64url-encoded).
110
- * @type {string}
111
- * @memberof Jwk
112
- */
113
- p?: string;
114
- /**
115
- * The second prime factor for RSA private keys (base64url-encoded).
116
- * @type {string}
117
- * @memberof Jwk
118
- */
119
- q?: string;
120
- /**
121
- * The first factor CRT exponent for RSA private keys (base64url-encoded).
122
- * @type {string}
123
- * @memberof Jwk
124
- */
125
- dp?: string;
126
- /**
127
- * The second factor CRT exponent for RSA private keys (base64url-encoded).
128
- * @type {string}
129
- * @memberof Jwk
130
- */
131
- dq?: string;
132
- /**
133
- * The first CRT coefficient for RSA private keys (base64url-encoded).
134
- * @type {string}
135
- * @memberof Jwk
136
- */
137
- qi?: string;
138
- /**
139
- * The symmetric key value (base64url-encoded).
140
- * @type {string}
141
- * @memberof Jwk
142
- */
143
- k?: string;
144
- /**
145
- * X.509 certificate chain as base64-encoded DER certificates.
146
- * @type {Array<string>}
147
- * @memberof Jwk
148
- */
149
- x5c?: Array<string>;
150
- /**
151
- * X.509 certificate SHA-1 thumbprint (base64url-encoded).
152
- * @type {string}
153
- * @memberof Jwk
154
- */
155
- x5t?: string;
156
- /**
157
- * URL pointing to X.509 certificate or certificate chain.
158
- * @type {string}
159
- * @memberof Jwk
160
- */
161
- x5u?: string;
162
- /**
163
- * X.509 certificate SHA-256 thumbprint (base64url-encoded).
164
- * @type {string}
165
- * @memberof Jwk
166
- */
167
- x5tS256?: string;
30
+ /**
31
+ *
32
+ * @type {JwkKeyType}
33
+ * @memberof Jwk
34
+ */
35
+ kty: JwkKeyType
36
+ /**
37
+ * Key identifier used to uniquely identify the key.
38
+ * @type {string}
39
+ * @memberof Jwk
40
+ */
41
+ kid?: string
42
+ /**
43
+ * The algorithm intended for use with the key (JWA algorithm name).
44
+ * @type {string}
45
+ * @memberof Jwk
46
+ */
47
+ alg?: string
48
+ /**
49
+ *
50
+ * @type {JwkUse}
51
+ * @memberof Jwk
52
+ */
53
+ use?: JwkUse
54
+ /**
55
+ * The allowed cryptographic operations for the key.
56
+ * @type {Array<KeyOperations>}
57
+ * @memberof Jwk
58
+ */
59
+ keyOps?: Array<KeyOperations>
60
+ /**
61
+ *
62
+ * @type {Curve}
63
+ * @memberof Jwk
64
+ */
65
+ crv?: Curve
66
+ /**
67
+ * The x coordinate for elliptic curve keys (base64url-encoded).
68
+ * @type {string}
69
+ * @memberof Jwk
70
+ */
71
+ x?: string
72
+ /**
73
+ * The y coordinate for elliptic curve keys (base64url-encoded).
74
+ * @type {string}
75
+ * @memberof Jwk
76
+ */
77
+ y?: string
78
+ /**
79
+ * The private key parameter (base64url-encoded).
80
+ * @type {string}
81
+ * @memberof Jwk
82
+ */
83
+ d?: string
84
+ /**
85
+ * The modulus value for RSA keys (base64url-encoded).
86
+ * @type {string}
87
+ * @memberof Jwk
88
+ */
89
+ n?: string
90
+ /**
91
+ * The public exponent for RSA keys (base64url-encoded).
92
+ * @type {string}
93
+ * @memberof Jwk
94
+ */
95
+ e?: string
96
+ /**
97
+ * The first prime factor for RSA private keys (base64url-encoded).
98
+ * @type {string}
99
+ * @memberof Jwk
100
+ */
101
+ p?: string
102
+ /**
103
+ * The second prime factor for RSA private keys (base64url-encoded).
104
+ * @type {string}
105
+ * @memberof Jwk
106
+ */
107
+ q?: string
108
+ /**
109
+ * The first factor CRT exponent for RSA private keys (base64url-encoded).
110
+ * @type {string}
111
+ * @memberof Jwk
112
+ */
113
+ dp?: string
114
+ /**
115
+ * The second factor CRT exponent for RSA private keys (base64url-encoded).
116
+ * @type {string}
117
+ * @memberof Jwk
118
+ */
119
+ dq?: string
120
+ /**
121
+ * The first CRT coefficient for RSA private keys (base64url-encoded).
122
+ * @type {string}
123
+ * @memberof Jwk
124
+ */
125
+ qi?: string
126
+ /**
127
+ * The symmetric key value (base64url-encoded).
128
+ * @type {string}
129
+ * @memberof Jwk
130
+ */
131
+ k?: string
132
+ /**
133
+ * X.509 certificate chain as base64-encoded DER certificates.
134
+ * @type {Array<string>}
135
+ * @memberof Jwk
136
+ */
137
+ x5c?: Array<string>
138
+ /**
139
+ * X.509 certificate SHA-1 thumbprint (base64url-encoded).
140
+ * @type {string}
141
+ * @memberof Jwk
142
+ */
143
+ x5t?: string
144
+ /**
145
+ * URL pointing to X.509 certificate or certificate chain.
146
+ * @type {string}
147
+ * @memberof Jwk
148
+ */
149
+ x5u?: string
150
+ /**
151
+ * X.509 certificate SHA-256 thumbprint (base64url-encoded).
152
+ * @type {string}
153
+ * @memberof Jwk
154
+ */
155
+ x5tS256?: string
168
156
  }
169
157
 
170
-
171
-
172
158
  /**
173
159
  * Check if a given object implements the Jwk interface.
174
160
  */
175
161
  export function instanceOfJwk(value: object): value is Jwk {
176
- if (!('kty' in value) || value['kty'] === undefined) return false;
177
- return true;
162
+ if (!('kty' in value) || value['kty'] === undefined) return false
163
+ return true
178
164
  }
179
165
 
180
166
  export function JwkFromJSON(json: any): Jwk {
181
- return JwkFromJSONTyped(json, false);
167
+ return JwkFromJSONTyped(json, false)
182
168
  }
183
169
 
184
170
  export function JwkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Jwk {
185
- if (json == null) {
186
- return json;
187
- }
188
- return {
189
-
190
- 'kty': JwkKeyTypeFromJSON(json['kty']),
191
- 'kid': json['kid'] == null ? undefined : json['kid'],
192
- 'alg': json['alg'] == null ? undefined : json['alg'],
193
- 'use': json['use'] == null ? undefined : JwkUseFromJSON(json['use']),
194
- 'keyOps': json['key_ops'] == null ? undefined : ((json['key_ops'] as Array<any>).map(KeyOperationsFromJSON)),
195
- 'crv': json['crv'] == null ? undefined : CurveFromJSON(json['crv']),
196
- 'x': json['x'] == null ? undefined : json['x'],
197
- 'y': json['y'] == null ? undefined : json['y'],
198
- 'd': json['d'] == null ? undefined : json['d'],
199
- 'n': json['n'] == null ? undefined : json['n'],
200
- 'e': json['e'] == null ? undefined : json['e'],
201
- 'p': json['p'] == null ? undefined : json['p'],
202
- 'q': json['q'] == null ? undefined : json['q'],
203
- 'dp': json['dp'] == null ? undefined : json['dp'],
204
- 'dq': json['dq'] == null ? undefined : json['dq'],
205
- 'qi': json['qi'] == null ? undefined : json['qi'],
206
- 'k': json['k'] == null ? undefined : json['k'],
207
- 'x5c': json['x5c'] == null ? undefined : json['x5c'],
208
- 'x5t': json['x5t'] == null ? undefined : json['x5t'],
209
- 'x5u': json['x5u'] == null ? undefined : json['x5u'],
210
- 'x5tS256': json['x5t#S256'] == null ? undefined : json['x5t#S256'],
211
- };
171
+ if (json == null) {
172
+ return json
173
+ }
174
+ return {
175
+ kty: JwkKeyTypeFromJSON(json['kty']),
176
+ kid: json['kid'] == null ? undefined : json['kid'],
177
+ alg: json['alg'] == null ? undefined : json['alg'],
178
+ use: json['use'] == null ? undefined : JwkUseFromJSON(json['use']),
179
+ keyOps: json['key_ops'] == null ? undefined : (json['key_ops'] as Array<any>).map(KeyOperationsFromJSON),
180
+ crv: json['crv'] == null ? undefined : CurveFromJSON(json['crv']),
181
+ x: json['x'] == null ? undefined : json['x'],
182
+ y: json['y'] == null ? undefined : json['y'],
183
+ d: json['d'] == null ? undefined : json['d'],
184
+ n: json['n'] == null ? undefined : json['n'],
185
+ e: json['e'] == null ? undefined : json['e'],
186
+ p: json['p'] == null ? undefined : json['p'],
187
+ q: json['q'] == null ? undefined : json['q'],
188
+ dp: json['dp'] == null ? undefined : json['dp'],
189
+ dq: json['dq'] == null ? undefined : json['dq'],
190
+ qi: json['qi'] == null ? undefined : json['qi'],
191
+ k: json['k'] == null ? undefined : json['k'],
192
+ x5c: json['x5c'] == null ? undefined : json['x5c'],
193
+ x5t: json['x5t'] == null ? undefined : json['x5t'],
194
+ x5u: json['x5u'] == null ? undefined : json['x5u'],
195
+ x5tS256: json['x5t#S256'] == null ? undefined : json['x5t#S256'],
196
+ }
212
197
  }
213
198
 
214
199
  export function JwkToJSON(json: any): Jwk {
215
- return JwkToJSONTyped(json, false);
200
+ return JwkToJSONTyped(json, false)
216
201
  }
217
202
 
218
203
  export function JwkToJSONTyped(value?: Jwk | null, ignoreDiscriminator: boolean = false): any {
219
- if (value == null) {
220
- return value;
221
- }
204
+ if (value == null) {
205
+ return value
206
+ }
222
207
 
223
- return {
224
-
225
- 'kty': JwkKeyTypeToJSON(value['kty']),
226
- 'kid': value['kid'],
227
- 'alg': value['alg'],
228
- 'use': JwkUseToJSON(value['use']),
229
- 'key_ops': value['keyOps'] == null ? undefined : ((value['keyOps'] as Array<any>).map(KeyOperationsToJSON)),
230
- 'crv': CurveToJSON(value['crv']),
231
- 'x': value['x'],
232
- 'y': value['y'],
233
- 'd': value['d'],
234
- 'n': value['n'],
235
- 'e': value['e'],
236
- 'p': value['p'],
237
- 'q': value['q'],
238
- 'dp': value['dp'],
239
- 'dq': value['dq'],
240
- 'qi': value['qi'],
241
- 'k': value['k'],
242
- 'x5c': value['x5c'],
243
- 'x5t': value['x5t'],
244
- 'x5u': value['x5u'],
245
- 'x5t#S256': value['x5tS256'],
246
- };
208
+ return {
209
+ kty: JwkKeyTypeToJSON(value['kty']),
210
+ kid: value['kid'],
211
+ alg: value['alg'],
212
+ use: JwkUseToJSON(value['use']),
213
+ key_ops: value['keyOps'] == null ? undefined : (value['keyOps'] as Array<any>).map(KeyOperationsToJSON),
214
+ crv: CurveToJSON(value['crv']),
215
+ x: value['x'],
216
+ y: value['y'],
217
+ d: value['d'],
218
+ n: value['n'],
219
+ e: value['e'],
220
+ p: value['p'],
221
+ q: value['q'],
222
+ dp: value['dp'],
223
+ dq: value['dq'],
224
+ qi: value['qi'],
225
+ k: value['k'],
226
+ x5c: value['x5c'],
227
+ x5t: value['x5t'],
228
+ x5u: value['x5u'],
229
+ 'x5t#S256': value['x5tS256'],
230
+ }
247
231
  }
248
-
@@ -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
  * JSON Web Key (JWK) key type parameter identifying the cryptographic algorithm family.
18
17
  * @export
19
18
  */
20
19
  export const JwkKeyType = {
21
- Ec: 'EC',
22
- Rsa: 'RSA',
23
- Okp: 'OKP',
24
- Oct: 'oct'
25
- } as const;
26
- export type JwkKeyType = typeof JwkKeyType[keyof typeof JwkKeyType];
27
-
20
+ Ec: 'EC',
21
+ Rsa: 'RSA',
22
+ Okp: 'OKP',
23
+ Oct: 'oct',
24
+ } as const
25
+ export type JwkKeyType = (typeof JwkKeyType)[keyof typeof JwkKeyType]
28
26
 
29
27
  export function instanceOfJwkKeyType(value: any): boolean {
30
- for (const key in JwkKeyType) {
31
- if (Object.prototype.hasOwnProperty.call(JwkKeyType, key)) {
32
- if (JwkKeyType[key as keyof typeof JwkKeyType] === value) {
33
- return true;
34
- }
35
- }
28
+ for (const key in JwkKeyType) {
29
+ if (Object.prototype.hasOwnProperty.call(JwkKeyType, key)) {
30
+ if (JwkKeyType[key as keyof typeof JwkKeyType] === value) {
31
+ return true
32
+ }
36
33
  }
37
- return false;
34
+ }
35
+ return false
38
36
  }
39
37
 
40
38
  export function JwkKeyTypeFromJSON(json: any): JwkKeyType {
41
- return JwkKeyTypeFromJSONTyped(json, false);
39
+ return JwkKeyTypeFromJSONTyped(json, false)
42
40
  }
43
41
 
44
42
  export function JwkKeyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): JwkKeyType {
45
- return json as JwkKeyType;
43
+ return json as JwkKeyType
46
44
  }
47
45
 
48
46
  export function JwkKeyTypeToJSON(value?: JwkKeyType | null): any {
49
- return value as any;
47
+ return value as any
50
48
  }
51
49
 
52
50
  export function JwkKeyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): JwkKeyType {
53
- return value as JwkKeyType;
51
+ return value as JwkKeyType
54
52
  }
55
-
@@ -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,42 +12,39 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  /**
17
16
  * Intended use of the key (signing or encryption).
18
17
  * @export
19
18
  */
20
19
  export const JwkUse = {
21
- Sig: 'sig',
22
- Enc: 'enc'
23
- } as const;
24
- export type JwkUse = typeof JwkUse[keyof typeof JwkUse];
25
-
20
+ Sig: 'sig',
21
+ Enc: 'enc',
22
+ } as const
23
+ export type JwkUse = (typeof JwkUse)[keyof typeof JwkUse]
26
24
 
27
25
  export function instanceOfJwkUse(value: any): boolean {
28
- for (const key in JwkUse) {
29
- if (Object.prototype.hasOwnProperty.call(JwkUse, key)) {
30
- if (JwkUse[key as keyof typeof JwkUse] === value) {
31
- return true;
32
- }
33
- }
26
+ for (const key in JwkUse) {
27
+ if (Object.prototype.hasOwnProperty.call(JwkUse, key)) {
28
+ if (JwkUse[key as keyof typeof JwkUse] === value) {
29
+ return true
30
+ }
34
31
  }
35
- return false;
32
+ }
33
+ return false
36
34
  }
37
35
 
38
36
  export function JwkUseFromJSON(json: any): JwkUse {
39
- return JwkUseFromJSONTyped(json, false);
37
+ return JwkUseFromJSONTyped(json, false)
40
38
  }
41
39
 
42
40
  export function JwkUseFromJSONTyped(json: any, ignoreDiscriminator: boolean): JwkUse {
43
- return json as JwkUse;
41
+ return json as JwkUse
44
42
  }
45
43
 
46
44
  export function JwkUseToJSON(value?: JwkUse | null): any {
47
- return value as any;
45
+ return value as any
48
46
  }
49
47
 
50
48
  export function JwkUseToJSONTyped(value: any, ignoreDiscriminator: boolean): JwkUse {
51
- return value as JwkUse;
49
+ return value as JwkUse
52
50
  }
53
-
@@ -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,42 +12,39 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  /**
17
16
  * The encoding format of the cryptographic key.
18
17
  * @export
19
18
  */
20
19
  export const KeyEncoding = {
21
- Cose: 'COSE',
22
- Jose: 'JOSE'
23
- } as const;
24
- export type KeyEncoding = typeof KeyEncoding[keyof typeof KeyEncoding];
25
-
20
+ Cose: 'COSE',
21
+ Jose: 'JOSE',
22
+ } as const
23
+ export type KeyEncoding = (typeof KeyEncoding)[keyof typeof KeyEncoding]
26
24
 
27
25
  export function instanceOfKeyEncoding(value: any): boolean {
28
- for (const key in KeyEncoding) {
29
- if (Object.prototype.hasOwnProperty.call(KeyEncoding, key)) {
30
- if (KeyEncoding[key as keyof typeof KeyEncoding] === value) {
31
- return true;
32
- }
33
- }
26
+ for (const key in KeyEncoding) {
27
+ if (Object.prototype.hasOwnProperty.call(KeyEncoding, key)) {
28
+ if (KeyEncoding[key as keyof typeof KeyEncoding] === value) {
29
+ return true
30
+ }
34
31
  }
35
- return false;
32
+ }
33
+ return false
36
34
  }
37
35
 
38
36
  export function KeyEncodingFromJSON(json: any): KeyEncoding {
39
- return KeyEncodingFromJSONTyped(json, false);
37
+ return KeyEncodingFromJSONTyped(json, false)
40
38
  }
41
39
 
42
40
  export function KeyEncodingFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyEncoding {
43
- return json as KeyEncoding;
41
+ return json as KeyEncoding
44
42
  }
45
43
 
46
44
  export function KeyEncodingToJSON(value?: KeyEncoding | null): any {
47
- return value as any;
45
+ return value as any
48
46
  }
49
47
 
50
48
  export function KeyEncodingToJSONTyped(value: any, ignoreDiscriminator: boolean): KeyEncoding {
51
- return value as KeyEncoding;
49
+ return value as KeyEncoding
52
50
  }
53
-