@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.48
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.
- package/LICENSE +201 -0
- package/dist/index.cjs +2083 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1468 -0
- package/dist/index.d.ts +1468 -0
- package/dist/index.js +2063 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
- package/plugin.schema.json +1123 -0
- package/src/agent/KmsRestClient.ts +468 -0
- package/src/index.ts +7 -0
- package/src/models/AwsAssumeRoleCredentials.ts +98 -0
- package/src/models/AwsClientConfiguration.ts +72 -0
- package/src/models/AwsKmsSetting.ts +126 -0
- package/src/models/AwsStaticCredentials.ts +98 -0
- package/src/models/AwsWebIdentityTokenCredentials.ts +99 -0
- package/src/models/AzureClientSecretCredentialOpts.ts +90 -0
- package/src/models/AzureCredentialOpts.ts +70 -0
- package/src/models/AzureKeyVaultSetting.ts +112 -0
- package/src/models/CoseKey.ts +145 -0
- package/src/models/CoseKeyPair.ts +79 -0
- package/src/models/CoseKeyType.ts +55 -0
- package/src/models/CreateKeyProvider.ts +115 -0
- package/src/models/CreateRawSignature.ts +80 -0
- package/src/models/CreateRawSignatureResponse.ts +65 -0
- package/src/models/CreateSimpleSignature.ts +100 -0
- package/src/models/CryptoAlg.ts +55 -0
- package/src/models/Curve.ts +59 -0
- package/src/models/DigestAlg.ts +58 -0
- package/src/models/ErrorResponse.ts +82 -0
- package/src/models/GenerateKey.ts +106 -0
- package/src/models/GenerateKeyGlobal.ts +114 -0
- package/src/models/GenerateKeyResponse.ts +71 -0
- package/src/models/GetKeyResponse.ts +71 -0
- package/src/models/IdentifierMethod.ts +56 -0
- package/src/models/JoseKeyPair.ts +79 -0
- package/src/models/Jwk.ts +248 -0
- package/src/models/JwkKeyType.ts +55 -0
- package/src/models/JwkUse.ts +53 -0
- package/src/models/KeyEncoding.ts +53 -0
- package/src/models/KeyInfo.ts +164 -0
- package/src/models/KeyOperations.ts +59 -0
- package/src/models/KeyProvider.ts +82 -0
- package/src/models/KeyProviderResponse.ts +82 -0
- package/src/models/KeyProviderType.ts +54 -0
- package/src/models/KeyResolver.ts +92 -0
- package/src/models/KeyType.ts +54 -0
- package/src/models/KeyVisibility.ts +53 -0
- package/src/models/ListKeyProvidersResponse.ts +71 -0
- package/src/models/ListKeysResponse.ts +71 -0
- package/src/models/ListResolversResponse.ts +71 -0
- package/src/models/LookupMode.ts +54 -0
- package/src/models/ManagedKeyInfo.ts +167 -0
- package/src/models/ManagedKeyPair.ts +111 -0
- package/src/models/MaskGenFunction.ts +52 -0
- package/src/models/ProviderCapabilities.ts +122 -0
- package/src/models/ResolvePublicKey.ts +102 -0
- package/src/models/ResolvedKeyInfo.ts +165 -0
- package/src/models/Resolver.ts +92 -0
- package/src/models/SignInput.ts +92 -0
- package/src/models/SignOutput.ts +79 -0
- package/src/models/Signature.ts +103 -0
- package/src/models/SignatureAlgorithm.ts +63 -0
- package/src/models/StoreKey.ts +79 -0
- package/src/models/StoreKeyResponse.ts +71 -0
- package/src/models/UpdateKeyProvider.ts +99 -0
- package/src/models/VerifyRawSignature.ts +89 -0
- package/src/models/VerifyRawSignatureResponse.ts +65 -0
- package/src/models/VerifySimpleSignature.ts +85 -0
- package/src/models/index.ts +60 -0
- package/src/types/IKmsRestClient.ts +133 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1468 @@
|
|
|
1
|
+
import { IPluginMethodMap, IAgentContext, IAgentPlugin } from '@veramo/core';
|
|
2
|
+
import { BearerTokenArg } from '@sphereon/ssi-types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* KMS REST Server API
|
|
6
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
* Contact: support@sphereon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* COSE key type parameter. 1=OKP (Octet Key Pair), 2=EC2 (Elliptic Curve), 3=RSA, 4=Symmetric.
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
declare const CoseKeyType: {
|
|
20
|
+
readonly NUMBER_1: 1;
|
|
21
|
+
readonly NUMBER_2: 2;
|
|
22
|
+
readonly NUMBER_3: 3;
|
|
23
|
+
readonly NUMBER_4: 4;
|
|
24
|
+
};
|
|
25
|
+
type CoseKeyType = typeof CoseKeyType[keyof typeof CoseKeyType];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* KMS REST Server API
|
|
29
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
30
|
+
*
|
|
31
|
+
* The version of the OpenAPI document: 0.0.1
|
|
32
|
+
* Contact: support@sphereon.com
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
35
|
+
* https://openapi-generator.tech
|
|
36
|
+
* Do not edit the class manually.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Represents a COSE (CBOR Object Signing and Encryption) key in JSON format.
|
|
41
|
+
* @export
|
|
42
|
+
* @interface CoseKey
|
|
43
|
+
*/
|
|
44
|
+
interface CoseKey {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {CoseKeyType}
|
|
48
|
+
* @memberof CoseKey
|
|
49
|
+
*/
|
|
50
|
+
kty: CoseKeyType;
|
|
51
|
+
/**
|
|
52
|
+
* Key identifier (base64url-encoded byte string).
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof CoseKey
|
|
55
|
+
*/
|
|
56
|
+
kid?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The COSE algorithm identifier (e.g., -7=ES256, -35=ES384, -36=ES512, -8=EdDSA).
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof CoseKey
|
|
61
|
+
*/
|
|
62
|
+
alg?: number;
|
|
63
|
+
/**
|
|
64
|
+
* The allowed COSE key operations (1=sign, 2=verify, 3=encrypt, 4=decrypt, etc.).
|
|
65
|
+
* @type {Array<number>}
|
|
66
|
+
* @memberof CoseKey
|
|
67
|
+
*/
|
|
68
|
+
keyOps?: Array<number>;
|
|
69
|
+
/**
|
|
70
|
+
* Base initialization vector (base64url-encoded).
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof CoseKey
|
|
73
|
+
*/
|
|
74
|
+
baseIV?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The COSE curve identifier (1=P-256, 2=P-384, 3=P-521, 8=secp256k1, 6=Ed25519, etc.).
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof CoseKey
|
|
79
|
+
*/
|
|
80
|
+
crv?: number;
|
|
81
|
+
/**
|
|
82
|
+
* The x coordinate (base64url-encoded byte string).
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CoseKey
|
|
85
|
+
*/
|
|
86
|
+
x?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The y coordinate (base64url-encoded byte string).
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof CoseKey
|
|
91
|
+
*/
|
|
92
|
+
y?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The private key parameter (base64url-encoded byte string).
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof CoseKey
|
|
97
|
+
*/
|
|
98
|
+
d?: string;
|
|
99
|
+
/**
|
|
100
|
+
* X.509 certificate chain as base64-encoded certificates.
|
|
101
|
+
* @type {Array<string>}
|
|
102
|
+
* @memberof CoseKey
|
|
103
|
+
*/
|
|
104
|
+
x5chain?: Array<string>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* KMS REST Server API
|
|
109
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
110
|
+
*
|
|
111
|
+
* The version of the OpenAPI document: 0.0.1
|
|
112
|
+
* Contact: support@sphereon.com
|
|
113
|
+
*
|
|
114
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
115
|
+
* https://openapi-generator.tech
|
|
116
|
+
* Do not edit the class manually.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Represents a cryptographic key pair for COSE (CBOR Object Signing and Encryption) operations.
|
|
121
|
+
* @export
|
|
122
|
+
* @interface CoseKeyPair
|
|
123
|
+
*/
|
|
124
|
+
interface CoseKeyPair {
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {CoseKey}
|
|
128
|
+
* @memberof CoseKeyPair
|
|
129
|
+
*/
|
|
130
|
+
privateCoseKey?: CoseKey;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {CoseKey}
|
|
134
|
+
* @memberof CoseKeyPair
|
|
135
|
+
*/
|
|
136
|
+
publicCoseKey: CoseKey;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* KMS REST Server API
|
|
141
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
142
|
+
*
|
|
143
|
+
* The version of the OpenAPI document: 0.0.1
|
|
144
|
+
* Contact: support@sphereon.com
|
|
145
|
+
*
|
|
146
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
147
|
+
* https://openapi-generator.tech
|
|
148
|
+
* Do not edit the class manually.
|
|
149
|
+
*/
|
|
150
|
+
/**
|
|
151
|
+
* The type of Key Provider. Determines the required configuration settings. - AZURE_KEYVAULT: Microsoft Azure Key Vault or Managed HSM. - AWS_KMS: Amazon Web Services Key Management Service.
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
declare const KeyProviderType: {
|
|
155
|
+
readonly Software: "SOFTWARE";
|
|
156
|
+
readonly AzureKeyvault: "AZURE_KEYVAULT";
|
|
157
|
+
readonly AwsKms: "AWS_KMS";
|
|
158
|
+
};
|
|
159
|
+
type KeyProviderType = typeof KeyProviderType[keyof typeof KeyProviderType];
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* KMS REST Server API
|
|
163
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
164
|
+
*
|
|
165
|
+
* The version of the OpenAPI document: 0.0.1
|
|
166
|
+
* Contact: support@sphereon.com
|
|
167
|
+
*
|
|
168
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
169
|
+
* https://openapi-generator.tech
|
|
170
|
+
* Do not edit the class manually.
|
|
171
|
+
*/
|
|
172
|
+
/**
|
|
173
|
+
* Cryptographic key type identifier.
|
|
174
|
+
* @export
|
|
175
|
+
*/
|
|
176
|
+
declare const KeyType: {
|
|
177
|
+
readonly Okp: "OKP";
|
|
178
|
+
readonly Ec: "EC";
|
|
179
|
+
readonly Rsa: "RSA";
|
|
180
|
+
};
|
|
181
|
+
type KeyType = typeof KeyType[keyof typeof KeyType];
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* KMS REST Server API
|
|
185
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
186
|
+
*
|
|
187
|
+
* The version of the OpenAPI document: 0.0.1
|
|
188
|
+
* Contact: support@sphereon.com
|
|
189
|
+
*
|
|
190
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
191
|
+
* https://openapi-generator.tech
|
|
192
|
+
* Do not edit the class manually.
|
|
193
|
+
*/
|
|
194
|
+
/**
|
|
195
|
+
* Indicates the visibility status of a cryptographic key.
|
|
196
|
+
* @export
|
|
197
|
+
*/
|
|
198
|
+
declare const KeyVisibility: {
|
|
199
|
+
readonly Public: "PUBLIC";
|
|
200
|
+
readonly Private: "PRIVATE";
|
|
201
|
+
};
|
|
202
|
+
type KeyVisibility = typeof KeyVisibility[keyof typeof KeyVisibility];
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* KMS REST Server API
|
|
206
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
207
|
+
*
|
|
208
|
+
* The version of the OpenAPI document: 0.0.1
|
|
209
|
+
* Contact: support@sphereon.com
|
|
210
|
+
*
|
|
211
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
212
|
+
* https://openapi-generator.tech
|
|
213
|
+
* Do not edit the class manually.
|
|
214
|
+
*/
|
|
215
|
+
/**
|
|
216
|
+
* Cryptographic signature algorithm identifier.
|
|
217
|
+
* @export
|
|
218
|
+
*/
|
|
219
|
+
declare const SignatureAlgorithm: {
|
|
220
|
+
readonly Ed25519: "ED25519";
|
|
221
|
+
readonly EcdsaSha256: "ECDSA_SHA256";
|
|
222
|
+
readonly EcdsaSha384: "ECDSA_SHA384";
|
|
223
|
+
readonly EcdsaSha512: "ECDSA_SHA512";
|
|
224
|
+
readonly Es256K: "ES256K";
|
|
225
|
+
readonly EckaDhSha256: "ECKA_DH_SHA256";
|
|
226
|
+
readonly HmacSha256: "HMAC_SHA256";
|
|
227
|
+
readonly HmacSha384: "HMAC_SHA384";
|
|
228
|
+
readonly HmacSha512: "HMAC_SHA512";
|
|
229
|
+
readonly RsaSsaPssSha256Mgf1: "RSA_SSA_PSS_SHA256_MGF1";
|
|
230
|
+
readonly RsaSsaPssSha384Mgf1: "RSA_SSA_PSS_SHA384_MGF1";
|
|
231
|
+
readonly RsaSsaPssSha512Mgf1: "RSA_SSA_PSS_SHA512_MGF1";
|
|
232
|
+
};
|
|
233
|
+
type SignatureAlgorithm = typeof SignatureAlgorithm[keyof typeof SignatureAlgorithm];
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* KMS REST Server API
|
|
237
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
238
|
+
*
|
|
239
|
+
* The version of the OpenAPI document: 0.0.1
|
|
240
|
+
* Contact: support@sphereon.com
|
|
241
|
+
*
|
|
242
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
243
|
+
* https://openapi-generator.tech
|
|
244
|
+
* Do not edit the class manually.
|
|
245
|
+
*/
|
|
246
|
+
/**
|
|
247
|
+
* The encoding format of the cryptographic key.
|
|
248
|
+
* @export
|
|
249
|
+
*/
|
|
250
|
+
declare const KeyEncoding: {
|
|
251
|
+
readonly Cose: "COSE";
|
|
252
|
+
readonly Jose: "JOSE";
|
|
253
|
+
};
|
|
254
|
+
type KeyEncoding = typeof KeyEncoding[keyof typeof KeyEncoding];
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* KMS REST Server API
|
|
258
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
259
|
+
*
|
|
260
|
+
* The version of the OpenAPI document: 0.0.1
|
|
261
|
+
* Contact: support@sphereon.com
|
|
262
|
+
*
|
|
263
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
264
|
+
* https://openapi-generator.tech
|
|
265
|
+
* Do not edit the class manually.
|
|
266
|
+
*/
|
|
267
|
+
/**
|
|
268
|
+
* Elliptic curve identifier.
|
|
269
|
+
* @export
|
|
270
|
+
*/
|
|
271
|
+
declare const Curve: {
|
|
272
|
+
readonly P256: "P-256";
|
|
273
|
+
readonly P384: "P-384";
|
|
274
|
+
readonly P521: "P-521";
|
|
275
|
+
readonly Secp256k1: "secp256k1";
|
|
276
|
+
readonly Ed25519: "Ed25519";
|
|
277
|
+
readonly Ed448: "Ed448";
|
|
278
|
+
readonly X25519: "X25519";
|
|
279
|
+
readonly X448: "X448";
|
|
280
|
+
};
|
|
281
|
+
type Curve = typeof Curve[keyof typeof Curve];
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* KMS REST Server API
|
|
285
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
286
|
+
*
|
|
287
|
+
* The version of the OpenAPI document: 0.0.1
|
|
288
|
+
* Contact: support@sphereon.com
|
|
289
|
+
*
|
|
290
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
291
|
+
* https://openapi-generator.tech
|
|
292
|
+
* Do not edit the class manually.
|
|
293
|
+
*/
|
|
294
|
+
/**
|
|
295
|
+
* Specific operations the key is intended for.
|
|
296
|
+
* @export
|
|
297
|
+
*/
|
|
298
|
+
declare const KeyOperations: {
|
|
299
|
+
readonly Sign: "sign";
|
|
300
|
+
readonly Verify: "verify";
|
|
301
|
+
readonly Encrypt: "encrypt";
|
|
302
|
+
readonly Decrypt: "decrypt";
|
|
303
|
+
readonly WrapKey: "wrapKey";
|
|
304
|
+
readonly UnwrapKey: "unwrapKey";
|
|
305
|
+
readonly DeriveKey: "deriveKey";
|
|
306
|
+
readonly DeriveBits: "deriveBits";
|
|
307
|
+
};
|
|
308
|
+
type KeyOperations = typeof KeyOperations[keyof typeof KeyOperations];
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* KMS REST Server API
|
|
312
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
313
|
+
*
|
|
314
|
+
* The version of the OpenAPI document: 0.0.1
|
|
315
|
+
* Contact: support@sphereon.com
|
|
316
|
+
*
|
|
317
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
318
|
+
* https://openapi-generator.tech
|
|
319
|
+
* Do not edit the class manually.
|
|
320
|
+
*/
|
|
321
|
+
/**
|
|
322
|
+
* Intended use of the key (signing or encryption).
|
|
323
|
+
* @export
|
|
324
|
+
*/
|
|
325
|
+
declare const JwkUse: {
|
|
326
|
+
readonly Sig: "sig";
|
|
327
|
+
readonly Enc: "enc";
|
|
328
|
+
};
|
|
329
|
+
type JwkUse = typeof JwkUse[keyof typeof JwkUse];
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* KMS REST Server API
|
|
333
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
334
|
+
*
|
|
335
|
+
* The version of the OpenAPI document: 0.0.1
|
|
336
|
+
* Contact: support@sphereon.com
|
|
337
|
+
*
|
|
338
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
339
|
+
* https://openapi-generator.tech
|
|
340
|
+
* Do not edit the class manually.
|
|
341
|
+
*/
|
|
342
|
+
/**
|
|
343
|
+
* JSON Web Key (JWK) key type parameter identifying the cryptographic algorithm family.
|
|
344
|
+
* @export
|
|
345
|
+
*/
|
|
346
|
+
declare const JwkKeyType: {
|
|
347
|
+
readonly Ec: "EC";
|
|
348
|
+
readonly Rsa: "RSA";
|
|
349
|
+
readonly Okp: "OKP";
|
|
350
|
+
readonly Oct: "oct";
|
|
351
|
+
};
|
|
352
|
+
type JwkKeyType = typeof JwkKeyType[keyof typeof JwkKeyType];
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* KMS REST Server API
|
|
356
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
357
|
+
*
|
|
358
|
+
* The version of the OpenAPI document: 0.0.1
|
|
359
|
+
* Contact: support@sphereon.com
|
|
360
|
+
*
|
|
361
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
362
|
+
* https://openapi-generator.tech
|
|
363
|
+
* Do not edit the class manually.
|
|
364
|
+
*/
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Represents a JSON Web Key (JWK) as defined by the JSON Web Key specification.
|
|
368
|
+
* @export
|
|
369
|
+
* @interface Jwk
|
|
370
|
+
*/
|
|
371
|
+
interface Jwk {
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @type {JwkKeyType}
|
|
375
|
+
* @memberof Jwk
|
|
376
|
+
*/
|
|
377
|
+
kty: JwkKeyType;
|
|
378
|
+
/**
|
|
379
|
+
* Key identifier used to uniquely identify the key.
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof Jwk
|
|
382
|
+
*/
|
|
383
|
+
kid?: string;
|
|
384
|
+
/**
|
|
385
|
+
* The algorithm intended for use with the key (JWA algorithm name).
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof Jwk
|
|
388
|
+
*/
|
|
389
|
+
alg?: string;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {JwkUse}
|
|
393
|
+
* @memberof Jwk
|
|
394
|
+
*/
|
|
395
|
+
use?: JwkUse;
|
|
396
|
+
/**
|
|
397
|
+
* The allowed cryptographic operations for the key.
|
|
398
|
+
* @type {Array<KeyOperations>}
|
|
399
|
+
* @memberof Jwk
|
|
400
|
+
*/
|
|
401
|
+
keyOps?: Array<KeyOperations>;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @type {Curve}
|
|
405
|
+
* @memberof Jwk
|
|
406
|
+
*/
|
|
407
|
+
crv?: Curve;
|
|
408
|
+
/**
|
|
409
|
+
* The x coordinate for elliptic curve keys (base64url-encoded).
|
|
410
|
+
* @type {string}
|
|
411
|
+
* @memberof Jwk
|
|
412
|
+
*/
|
|
413
|
+
x?: string;
|
|
414
|
+
/**
|
|
415
|
+
* The y coordinate for elliptic curve keys (base64url-encoded).
|
|
416
|
+
* @type {string}
|
|
417
|
+
* @memberof Jwk
|
|
418
|
+
*/
|
|
419
|
+
y?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The private key parameter (base64url-encoded).
|
|
422
|
+
* @type {string}
|
|
423
|
+
* @memberof Jwk
|
|
424
|
+
*/
|
|
425
|
+
d?: string;
|
|
426
|
+
/**
|
|
427
|
+
* The modulus value for RSA keys (base64url-encoded).
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof Jwk
|
|
430
|
+
*/
|
|
431
|
+
n?: string;
|
|
432
|
+
/**
|
|
433
|
+
* The public exponent for RSA keys (base64url-encoded).
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof Jwk
|
|
436
|
+
*/
|
|
437
|
+
e?: string;
|
|
438
|
+
/**
|
|
439
|
+
* The first prime factor for RSA private keys (base64url-encoded).
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof Jwk
|
|
442
|
+
*/
|
|
443
|
+
p?: string;
|
|
444
|
+
/**
|
|
445
|
+
* The second prime factor for RSA private keys (base64url-encoded).
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof Jwk
|
|
448
|
+
*/
|
|
449
|
+
q?: string;
|
|
450
|
+
/**
|
|
451
|
+
* The first factor CRT exponent for RSA private keys (base64url-encoded).
|
|
452
|
+
* @type {string}
|
|
453
|
+
* @memberof Jwk
|
|
454
|
+
*/
|
|
455
|
+
dp?: string;
|
|
456
|
+
/**
|
|
457
|
+
* The second factor CRT exponent for RSA private keys (base64url-encoded).
|
|
458
|
+
* @type {string}
|
|
459
|
+
* @memberof Jwk
|
|
460
|
+
*/
|
|
461
|
+
dq?: string;
|
|
462
|
+
/**
|
|
463
|
+
* The first CRT coefficient for RSA private keys (base64url-encoded).
|
|
464
|
+
* @type {string}
|
|
465
|
+
* @memberof Jwk
|
|
466
|
+
*/
|
|
467
|
+
qi?: string;
|
|
468
|
+
/**
|
|
469
|
+
* The symmetric key value (base64url-encoded).
|
|
470
|
+
* @type {string}
|
|
471
|
+
* @memberof Jwk
|
|
472
|
+
*/
|
|
473
|
+
k?: string;
|
|
474
|
+
/**
|
|
475
|
+
* X.509 certificate chain as base64-encoded DER certificates.
|
|
476
|
+
* @type {Array<string>}
|
|
477
|
+
* @memberof Jwk
|
|
478
|
+
*/
|
|
479
|
+
x5c?: Array<string>;
|
|
480
|
+
/**
|
|
481
|
+
* X.509 certificate SHA-1 thumbprint (base64url-encoded).
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof Jwk
|
|
484
|
+
*/
|
|
485
|
+
x5t?: string;
|
|
486
|
+
/**
|
|
487
|
+
* URL pointing to X.509 certificate or certificate chain.
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof Jwk
|
|
490
|
+
*/
|
|
491
|
+
x5u?: string;
|
|
492
|
+
/**
|
|
493
|
+
* X.509 certificate SHA-256 thumbprint (base64url-encoded).
|
|
494
|
+
* @type {string}
|
|
495
|
+
* @memberof Jwk
|
|
496
|
+
*/
|
|
497
|
+
x5tS256?: string;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* KMS REST Server API
|
|
502
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
503
|
+
*
|
|
504
|
+
* The version of the OpenAPI document: 0.0.1
|
|
505
|
+
* Contact: support@sphereon.com
|
|
506
|
+
*
|
|
507
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
508
|
+
* https://openapi-generator.tech
|
|
509
|
+
* Do not edit the class manually.
|
|
510
|
+
*/
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Information about a cryptographic key, providing metadata and configuration details necessary for cryptographic operations.
|
|
514
|
+
* @export
|
|
515
|
+
* @interface KeyInfo
|
|
516
|
+
*/
|
|
517
|
+
interface KeyInfo {
|
|
518
|
+
/**
|
|
519
|
+
* Unique identifier for the cryptographic key. Can be null if the key identifier is not provided.
|
|
520
|
+
* @type {string}
|
|
521
|
+
* @memberof KeyInfo
|
|
522
|
+
*/
|
|
523
|
+
kid?: string;
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {Jwk}
|
|
527
|
+
* @memberof KeyInfo
|
|
528
|
+
*/
|
|
529
|
+
key?: Jwk;
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @type {SignatureAlgorithm}
|
|
533
|
+
* @memberof KeyInfo
|
|
534
|
+
*/
|
|
535
|
+
signatureAlgorithm?: SignatureAlgorithm;
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @type {KeyVisibility}
|
|
539
|
+
* @memberof KeyInfo
|
|
540
|
+
*/
|
|
541
|
+
keyVisibility?: KeyVisibility;
|
|
542
|
+
/**
|
|
543
|
+
* X.509 certificate chain associated with the key.
|
|
544
|
+
* @type {Array<string>}
|
|
545
|
+
* @memberof KeyInfo
|
|
546
|
+
*/
|
|
547
|
+
x5c?: Array<string>;
|
|
548
|
+
/**
|
|
549
|
+
* A reference or alias to the key in the Key Management Service (KMS).
|
|
550
|
+
* @type {string}
|
|
551
|
+
* @memberof KeyInfo
|
|
552
|
+
*/
|
|
553
|
+
alias?: string;
|
|
554
|
+
/**
|
|
555
|
+
* The Key Management System (KMS) identifier associated with the key.
|
|
556
|
+
* @type {string}
|
|
557
|
+
* @memberof KeyInfo
|
|
558
|
+
*/
|
|
559
|
+
providerId?: string;
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @type {KeyType}
|
|
563
|
+
* @memberof KeyInfo
|
|
564
|
+
*/
|
|
565
|
+
keyType?: KeyType;
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @type {KeyEncoding}
|
|
569
|
+
* @memberof KeyInfo
|
|
570
|
+
*/
|
|
571
|
+
keyEncoding?: KeyEncoding;
|
|
572
|
+
/**
|
|
573
|
+
* Additional configuration options as key-value pairs.
|
|
574
|
+
* @type {{ [key: string]: string; }}
|
|
575
|
+
* @memberof KeyInfo
|
|
576
|
+
*/
|
|
577
|
+
opts?: {
|
|
578
|
+
[key: string]: string;
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* KMS REST Server API
|
|
584
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
585
|
+
*
|
|
586
|
+
* The version of the OpenAPI document: 0.0.1
|
|
587
|
+
* Contact: support@sphereon.com
|
|
588
|
+
*
|
|
589
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
590
|
+
* https://openapi-generator.tech
|
|
591
|
+
* Do not edit the class manually.
|
|
592
|
+
*/
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Request body for creating a raw signature.
|
|
596
|
+
* @export
|
|
597
|
+
* @interface CreateRawSignature
|
|
598
|
+
*/
|
|
599
|
+
interface CreateRawSignature {
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @type {KeyInfo}
|
|
603
|
+
* @memberof CreateRawSignature
|
|
604
|
+
*/
|
|
605
|
+
keyInfo: KeyInfo;
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @type {string}
|
|
609
|
+
* @memberof CreateRawSignature
|
|
610
|
+
*/
|
|
611
|
+
input: string;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* KMS REST Server API
|
|
616
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
617
|
+
*
|
|
618
|
+
* The version of the OpenAPI document: 0.0.1
|
|
619
|
+
* Contact: support@sphereon.com
|
|
620
|
+
*
|
|
621
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
622
|
+
* https://openapi-generator.tech
|
|
623
|
+
* Do not edit the class manually.
|
|
624
|
+
*/
|
|
625
|
+
/**
|
|
626
|
+
* Response body containing the created signature.
|
|
627
|
+
* @export
|
|
628
|
+
* @interface CreateRawSignatureResponse
|
|
629
|
+
*/
|
|
630
|
+
interface CreateRawSignatureResponse {
|
|
631
|
+
/**
|
|
632
|
+
* The created signature encoded as a base64 string.
|
|
633
|
+
* @type {string}
|
|
634
|
+
* @memberof CreateRawSignatureResponse
|
|
635
|
+
*/
|
|
636
|
+
signature: string;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* KMS REST Server API
|
|
641
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
642
|
+
*
|
|
643
|
+
* The version of the OpenAPI document: 0.0.1
|
|
644
|
+
* Contact: support@sphereon.com
|
|
645
|
+
*
|
|
646
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
647
|
+
* https://openapi-generator.tech
|
|
648
|
+
* Do not edit the class manually.
|
|
649
|
+
*/
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Parameters for key generation.
|
|
653
|
+
* @export
|
|
654
|
+
* @interface GenerateKey
|
|
655
|
+
*/
|
|
656
|
+
interface GenerateKey {
|
|
657
|
+
/**
|
|
658
|
+
* Alias for the generated key.
|
|
659
|
+
* @type {string}
|
|
660
|
+
* @memberof GenerateKey
|
|
661
|
+
*/
|
|
662
|
+
alias?: string;
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @type {JwkUse}
|
|
666
|
+
* @memberof GenerateKey
|
|
667
|
+
*/
|
|
668
|
+
use?: JwkUse;
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @type {Array<KeyOperations>}
|
|
672
|
+
* @memberof GenerateKey
|
|
673
|
+
*/
|
|
674
|
+
keyOperations?: Array<KeyOperations>;
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @type {SignatureAlgorithm}
|
|
678
|
+
* @memberof GenerateKey
|
|
679
|
+
*/
|
|
680
|
+
alg?: SignatureAlgorithm;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* KMS REST Server API
|
|
685
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
686
|
+
*
|
|
687
|
+
* The version of the OpenAPI document: 0.0.1
|
|
688
|
+
* Contact: support@sphereon.com
|
|
689
|
+
*
|
|
690
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
691
|
+
* https://openapi-generator.tech
|
|
692
|
+
* Do not edit the class manually.
|
|
693
|
+
*/
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Parameters for global key generation with optional provider specification.
|
|
697
|
+
* @export
|
|
698
|
+
* @interface GenerateKeyGlobal
|
|
699
|
+
*/
|
|
700
|
+
interface GenerateKeyGlobal {
|
|
701
|
+
/**
|
|
702
|
+
* Alias for the generated key.
|
|
703
|
+
* @type {string}
|
|
704
|
+
* @memberof GenerateKeyGlobal
|
|
705
|
+
*/
|
|
706
|
+
alias?: string;
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @type {JwkUse}
|
|
710
|
+
* @memberof GenerateKeyGlobal
|
|
711
|
+
*/
|
|
712
|
+
use?: JwkUse;
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @type {Array<KeyOperations>}
|
|
716
|
+
* @memberof GenerateKeyGlobal
|
|
717
|
+
*/
|
|
718
|
+
keyOperations?: Array<KeyOperations>;
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @type {SignatureAlgorithm}
|
|
722
|
+
* @memberof GenerateKeyGlobal
|
|
723
|
+
*/
|
|
724
|
+
alg?: SignatureAlgorithm;
|
|
725
|
+
/**
|
|
726
|
+
* Optional provider ID. If not specified, the default provider will be used.
|
|
727
|
+
* @type {string}
|
|
728
|
+
* @memberof GenerateKeyGlobal
|
|
729
|
+
*/
|
|
730
|
+
providerId?: string;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* KMS REST Server API
|
|
735
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
736
|
+
*
|
|
737
|
+
* The version of the OpenAPI document: 0.0.1
|
|
738
|
+
* Contact: support@sphereon.com
|
|
739
|
+
*
|
|
740
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
741
|
+
* https://openapi-generator.tech
|
|
742
|
+
* Do not edit the class manually.
|
|
743
|
+
*/
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Data class representing a cryptographic key pair used with JOSE (JSON Object Signing and Encryption).
|
|
747
|
+
* @export
|
|
748
|
+
* @interface JoseKeyPair
|
|
749
|
+
*/
|
|
750
|
+
interface JoseKeyPair {
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @type {Jwk}
|
|
754
|
+
* @memberof JoseKeyPair
|
|
755
|
+
*/
|
|
756
|
+
privateJwk?: Jwk;
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @type {Jwk}
|
|
760
|
+
* @memberof JoseKeyPair
|
|
761
|
+
*/
|
|
762
|
+
publicJwk: Jwk;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* KMS REST Server API
|
|
767
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
768
|
+
*
|
|
769
|
+
* The version of the OpenAPI document: 0.0.1
|
|
770
|
+
* Contact: support@sphereon.com
|
|
771
|
+
*
|
|
772
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
773
|
+
* https://openapi-generator.tech
|
|
774
|
+
* Do not edit the class manually.
|
|
775
|
+
*/
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Represents a key pair used by a crypto provider, encapsulating both JOSE and COSE key pairs.
|
|
779
|
+
* @export
|
|
780
|
+
* @interface ManagedKeyPair
|
|
781
|
+
*/
|
|
782
|
+
interface ManagedKeyPair {
|
|
783
|
+
/**
|
|
784
|
+
* Key identifier, may be null.
|
|
785
|
+
* @type {string}
|
|
786
|
+
* @memberof ManagedKeyPair
|
|
787
|
+
*/
|
|
788
|
+
kid?: string;
|
|
789
|
+
/**
|
|
790
|
+
* Key Management System identifier.
|
|
791
|
+
* @type {string}
|
|
792
|
+
* @memberof ManagedKeyPair
|
|
793
|
+
*/
|
|
794
|
+
providerId: string;
|
|
795
|
+
/**
|
|
796
|
+
* Reference to the key in the KMS.
|
|
797
|
+
* @type {string}
|
|
798
|
+
* @memberof ManagedKeyPair
|
|
799
|
+
*/
|
|
800
|
+
alias: string;
|
|
801
|
+
/**
|
|
802
|
+
*
|
|
803
|
+
* @type {CoseKeyPair}
|
|
804
|
+
* @memberof ManagedKeyPair
|
|
805
|
+
*/
|
|
806
|
+
cose: CoseKeyPair;
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @type {JoseKeyPair}
|
|
810
|
+
* @memberof ManagedKeyPair
|
|
811
|
+
*/
|
|
812
|
+
jose: JoseKeyPair;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* KMS REST Server API
|
|
817
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
818
|
+
*
|
|
819
|
+
* The version of the OpenAPI document: 0.0.1
|
|
820
|
+
* Contact: support@sphereon.com
|
|
821
|
+
*
|
|
822
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
823
|
+
* https://openapi-generator.tech
|
|
824
|
+
* Do not edit the class manually.
|
|
825
|
+
*/
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Represents a managed cryptographic key information that is guaranteed to be present and resolved, part of a KMS providing concrete access to the key.
|
|
829
|
+
* @export
|
|
830
|
+
* @interface ManagedKeyInfo
|
|
831
|
+
*/
|
|
832
|
+
interface ManagedKeyInfo {
|
|
833
|
+
/**
|
|
834
|
+
* Unique identifier for the cryptographic key. Can be null if the key identifier is not provided.
|
|
835
|
+
* @type {string}
|
|
836
|
+
* @memberof ManagedKeyInfo
|
|
837
|
+
*/
|
|
838
|
+
kid?: string;
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {Jwk}
|
|
842
|
+
* @memberof ManagedKeyInfo
|
|
843
|
+
*/
|
|
844
|
+
key: Jwk;
|
|
845
|
+
/**
|
|
846
|
+
*
|
|
847
|
+
* @type {SignatureAlgorithm}
|
|
848
|
+
* @memberof ManagedKeyInfo
|
|
849
|
+
*/
|
|
850
|
+
signatureAlgorithm?: SignatureAlgorithm;
|
|
851
|
+
/**
|
|
852
|
+
*
|
|
853
|
+
* @type {KeyVisibility}
|
|
854
|
+
* @memberof ManagedKeyInfo
|
|
855
|
+
*/
|
|
856
|
+
keyVisibility?: KeyVisibility;
|
|
857
|
+
/**
|
|
858
|
+
* X.509 certificate chain associated with the key.
|
|
859
|
+
* @type {Array<string>}
|
|
860
|
+
* @memberof ManagedKeyInfo
|
|
861
|
+
*/
|
|
862
|
+
x5c?: Array<string>;
|
|
863
|
+
/**
|
|
864
|
+
* A reference or alias to the key in the Key Management Service (KMS).
|
|
865
|
+
* @type {string}
|
|
866
|
+
* @memberof ManagedKeyInfo
|
|
867
|
+
*/
|
|
868
|
+
alias: string;
|
|
869
|
+
/**
|
|
870
|
+
* The Key Management System (KMS) identifier associated with the key.
|
|
871
|
+
* @type {string}
|
|
872
|
+
* @memberof ManagedKeyInfo
|
|
873
|
+
*/
|
|
874
|
+
providerId: string;
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @type {KeyType}
|
|
878
|
+
* @memberof ManagedKeyInfo
|
|
879
|
+
*/
|
|
880
|
+
keyType?: KeyType;
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @type {KeyEncoding}
|
|
884
|
+
* @memberof ManagedKeyInfo
|
|
885
|
+
*/
|
|
886
|
+
keyEncoding?: KeyEncoding;
|
|
887
|
+
/**
|
|
888
|
+
* Additional configuration options as key-value pairs.
|
|
889
|
+
* @type {{ [key: string]: string; }}
|
|
890
|
+
* @memberof ManagedKeyInfo
|
|
891
|
+
*/
|
|
892
|
+
opts?: {
|
|
893
|
+
[key: string]: string;
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* KMS REST Server API
|
|
899
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
900
|
+
*
|
|
901
|
+
* The version of the OpenAPI document: 0.0.1
|
|
902
|
+
* Contact: support@sphereon.com
|
|
903
|
+
*
|
|
904
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
905
|
+
* https://openapi-generator.tech
|
|
906
|
+
* Do not edit the class manually.
|
|
907
|
+
*/
|
|
908
|
+
/**
|
|
909
|
+
* Method used to identify cryptographic keys.
|
|
910
|
+
* @export
|
|
911
|
+
*/
|
|
912
|
+
declare const IdentifierMethod: {
|
|
913
|
+
readonly Jwk: "JWK";
|
|
914
|
+
readonly Kid: "KID";
|
|
915
|
+
readonly CoseKey: "COSE_KEY";
|
|
916
|
+
readonly X5C: "X5C";
|
|
917
|
+
readonly Did: "DID";
|
|
918
|
+
};
|
|
919
|
+
type IdentifierMethod = typeof IdentifierMethod[keyof typeof IdentifierMethod];
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* KMS REST Server API
|
|
923
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
924
|
+
*
|
|
925
|
+
* The version of the OpenAPI document: 0.0.1
|
|
926
|
+
* Contact: support@sphereon.com
|
|
927
|
+
*
|
|
928
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
929
|
+
* https://openapi-generator.tech
|
|
930
|
+
* Do not edit the class manually.
|
|
931
|
+
*/
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Response body containing the details of a Key Provider instance.
|
|
935
|
+
* @export
|
|
936
|
+
* @interface KeyProvider
|
|
937
|
+
*/
|
|
938
|
+
interface KeyProvider {
|
|
939
|
+
/**
|
|
940
|
+
* The unique identifier assigned to the Key Provider instance upon creation.
|
|
941
|
+
* @type {string}
|
|
942
|
+
* @memberof KeyProvider
|
|
943
|
+
*/
|
|
944
|
+
providerId: string;
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @type {KeyProviderType}
|
|
948
|
+
* @memberof KeyProvider
|
|
949
|
+
*/
|
|
950
|
+
type: KeyProviderType;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* KMS REST Server API
|
|
955
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
956
|
+
*
|
|
957
|
+
* The version of the OpenAPI document: 0.0.1
|
|
958
|
+
* Contact: support@sphereon.com
|
|
959
|
+
*
|
|
960
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
961
|
+
* https://openapi-generator.tech
|
|
962
|
+
* Do not edit the class manually.
|
|
963
|
+
*/
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Response body containing the details of a Key Provider instance.
|
|
967
|
+
* @export
|
|
968
|
+
* @interface KeyProviderResponse
|
|
969
|
+
*/
|
|
970
|
+
interface KeyProviderResponse {
|
|
971
|
+
/**
|
|
972
|
+
* The unique identifier assigned to the Key Provider instance upon creation.
|
|
973
|
+
* @type {string}
|
|
974
|
+
* @memberof KeyProviderResponse
|
|
975
|
+
*/
|
|
976
|
+
providerId: string;
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
* @type {KeyProviderType}
|
|
980
|
+
* @memberof KeyProviderResponse
|
|
981
|
+
*/
|
|
982
|
+
type: KeyProviderType;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* KMS REST Server API
|
|
987
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
988
|
+
*
|
|
989
|
+
* The version of the OpenAPI document: 0.0.1
|
|
990
|
+
* Contact: support@sphereon.com
|
|
991
|
+
*
|
|
992
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
993
|
+
* https://openapi-generator.tech
|
|
994
|
+
* Do not edit the class manually.
|
|
995
|
+
*/
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Response body containing the details of a Key Provider instance.
|
|
999
|
+
* @export
|
|
1000
|
+
* @interface ListKeyProvidersResponse
|
|
1001
|
+
*/
|
|
1002
|
+
interface ListKeyProvidersResponse {
|
|
1003
|
+
/**
|
|
1004
|
+
*
|
|
1005
|
+
* @type {Array<KeyProvider>}
|
|
1006
|
+
* @memberof ListKeyProvidersResponse
|
|
1007
|
+
*/
|
|
1008
|
+
providers: Array<KeyProvider>;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* KMS REST Server API
|
|
1013
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
1014
|
+
*
|
|
1015
|
+
* The version of the OpenAPI document: 0.0.1
|
|
1016
|
+
* Contact: support@sphereon.com
|
|
1017
|
+
*
|
|
1018
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1019
|
+
* https://openapi-generator.tech
|
|
1020
|
+
* Do not edit the class manually.
|
|
1021
|
+
*/
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Response body containing all the managed keys.
|
|
1025
|
+
* @export
|
|
1026
|
+
* @interface ListKeysResponse
|
|
1027
|
+
*/
|
|
1028
|
+
interface ListKeysResponse {
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @type {Array<ManagedKeyInfo>}
|
|
1032
|
+
* @memberof ListKeysResponse
|
|
1033
|
+
*/
|
|
1034
|
+
keyInfos: Array<ManagedKeyInfo>;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* KMS REST Server API
|
|
1039
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
1040
|
+
*
|
|
1041
|
+
* The version of the OpenAPI document: 0.0.1
|
|
1042
|
+
* Contact: support@sphereon.com
|
|
1043
|
+
*
|
|
1044
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1045
|
+
* https://openapi-generator.tech
|
|
1046
|
+
* Do not edit the class manually.
|
|
1047
|
+
*/
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Represents a key resolver configuration.
|
|
1051
|
+
* @export
|
|
1052
|
+
* @interface Resolver
|
|
1053
|
+
*/
|
|
1054
|
+
interface Resolver {
|
|
1055
|
+
/**
|
|
1056
|
+
* Unique identifier for the resolver.
|
|
1057
|
+
* @type {string}
|
|
1058
|
+
* @memberof Resolver
|
|
1059
|
+
*/
|
|
1060
|
+
resolverId: string;
|
|
1061
|
+
/**
|
|
1062
|
+
* List of identifier methods supported by this resolver.
|
|
1063
|
+
* @type {Array<IdentifierMethod>}
|
|
1064
|
+
* @memberof Resolver
|
|
1065
|
+
*/
|
|
1066
|
+
supportedIdentifierMethods?: Array<IdentifierMethod>;
|
|
1067
|
+
/**
|
|
1068
|
+
* List of key types supported by this resolver.
|
|
1069
|
+
* @type {Array<KeyType>}
|
|
1070
|
+
* @memberof Resolver
|
|
1071
|
+
*/
|
|
1072
|
+
supportedKeyTypes?: Array<KeyType>;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* KMS REST Server API
|
|
1077
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
1078
|
+
*
|
|
1079
|
+
* The version of the OpenAPI document: 0.0.1
|
|
1080
|
+
* Contact: support@sphereon.com
|
|
1081
|
+
*
|
|
1082
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1083
|
+
* https://openapi-generator.tech
|
|
1084
|
+
* Do not edit the class manually.
|
|
1085
|
+
*/
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Response body containing all the resolvers.
|
|
1089
|
+
* @export
|
|
1090
|
+
* @interface ListResolversResponse
|
|
1091
|
+
*/
|
|
1092
|
+
interface ListResolversResponse {
|
|
1093
|
+
/**
|
|
1094
|
+
*
|
|
1095
|
+
* @type {Array<Resolver>}
|
|
1096
|
+
* @memberof ListResolversResponse
|
|
1097
|
+
*/
|
|
1098
|
+
resolvers: Array<Resolver>;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* KMS REST Server API
|
|
1103
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
1104
|
+
*
|
|
1105
|
+
* The version of the OpenAPI document: 0.0.1
|
|
1106
|
+
* Contact: support@sphereon.com
|
|
1107
|
+
*
|
|
1108
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1109
|
+
* https://openapi-generator.tech
|
|
1110
|
+
* Do not edit the class manually.
|
|
1111
|
+
*/
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Request body for resolving a public key.
|
|
1115
|
+
* @export
|
|
1116
|
+
* @interface ResolvePublicKey
|
|
1117
|
+
*/
|
|
1118
|
+
interface ResolvePublicKey {
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @type {KeyInfo}
|
|
1122
|
+
* @memberof ResolvePublicKey
|
|
1123
|
+
*/
|
|
1124
|
+
keyInfo: KeyInfo;
|
|
1125
|
+
/**
|
|
1126
|
+
*
|
|
1127
|
+
* @type {IdentifierMethod}
|
|
1128
|
+
* @memberof ResolvePublicKey
|
|
1129
|
+
*/
|
|
1130
|
+
identifierMethod?: IdentifierMethod;
|
|
1131
|
+
/**
|
|
1132
|
+
* Optional array of trusted certificates (base64-encoded) that may be used in the resolution process.
|
|
1133
|
+
* @type {Array<string>}
|
|
1134
|
+
* @memberof ResolvePublicKey
|
|
1135
|
+
*/
|
|
1136
|
+
trustedCerts?: Array<string>;
|
|
1137
|
+
/**
|
|
1138
|
+
* Optional boolean indicating whether the X.509 certificate chain should be verified.
|
|
1139
|
+
* @type {boolean}
|
|
1140
|
+
* @memberof ResolvePublicKey
|
|
1141
|
+
*/
|
|
1142
|
+
verifyX509CertificateChain?: boolean;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* KMS REST Server API
|
|
1147
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
1148
|
+
*
|
|
1149
|
+
* The version of the OpenAPI document: 0.0.1
|
|
1150
|
+
* Contact: support@sphereon.com
|
|
1151
|
+
*
|
|
1152
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1153
|
+
* https://openapi-generator.tech
|
|
1154
|
+
* Do not edit the class manually.
|
|
1155
|
+
*/
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Represents a resolved cryptographic key information where the key is guaranteed to be present and resolved, providing concrete access to the key.
|
|
1159
|
+
* @export
|
|
1160
|
+
* @interface ResolvedKeyInfo
|
|
1161
|
+
*/
|
|
1162
|
+
interface ResolvedKeyInfo {
|
|
1163
|
+
/**
|
|
1164
|
+
* Unique identifier for the cryptographic key. Can be null if the key identifier is not provided.
|
|
1165
|
+
* @type {string}
|
|
1166
|
+
* @memberof ResolvedKeyInfo
|
|
1167
|
+
*/
|
|
1168
|
+
kid?: string;
|
|
1169
|
+
/**
|
|
1170
|
+
*
|
|
1171
|
+
* @type {Jwk}
|
|
1172
|
+
* @memberof ResolvedKeyInfo
|
|
1173
|
+
*/
|
|
1174
|
+
key: Jwk;
|
|
1175
|
+
/**
|
|
1176
|
+
*
|
|
1177
|
+
* @type {SignatureAlgorithm}
|
|
1178
|
+
* @memberof ResolvedKeyInfo
|
|
1179
|
+
*/
|
|
1180
|
+
signatureAlgorithm?: SignatureAlgorithm;
|
|
1181
|
+
/**
|
|
1182
|
+
*
|
|
1183
|
+
* @type {KeyVisibility}
|
|
1184
|
+
* @memberof ResolvedKeyInfo
|
|
1185
|
+
*/
|
|
1186
|
+
keyVisibility?: KeyVisibility;
|
|
1187
|
+
/**
|
|
1188
|
+
* X.509 certificate chain associated with the key.
|
|
1189
|
+
* @type {Array<string>}
|
|
1190
|
+
* @memberof ResolvedKeyInfo
|
|
1191
|
+
*/
|
|
1192
|
+
x5c?: Array<string>;
|
|
1193
|
+
/**
|
|
1194
|
+
* A reference or alias to the key in the Key Management Service (KMS).
|
|
1195
|
+
* @type {string}
|
|
1196
|
+
* @memberof ResolvedKeyInfo
|
|
1197
|
+
*/
|
|
1198
|
+
alias?: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* The Key Management System (KMS) identifier associated with the key.
|
|
1201
|
+
* @type {string}
|
|
1202
|
+
* @memberof ResolvedKeyInfo
|
|
1203
|
+
*/
|
|
1204
|
+
providerId?: string;
|
|
1205
|
+
/**
|
|
1206
|
+
*
|
|
1207
|
+
* @type {KeyType}
|
|
1208
|
+
* @memberof ResolvedKeyInfo
|
|
1209
|
+
*/
|
|
1210
|
+
keyType?: KeyType;
|
|
1211
|
+
/**
|
|
1212
|
+
*
|
|
1213
|
+
* @type {KeyEncoding}
|
|
1214
|
+
* @memberof ResolvedKeyInfo
|
|
1215
|
+
*/
|
|
1216
|
+
keyEncoding?: KeyEncoding;
|
|
1217
|
+
/**
|
|
1218
|
+
* Additional configuration options as key-value pairs.
|
|
1219
|
+
* @type {{ [key: string]: string; }}
|
|
1220
|
+
* @memberof ResolvedKeyInfo
|
|
1221
|
+
*/
|
|
1222
|
+
opts?: {
|
|
1223
|
+
[key: string]: string;
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* KMS REST Server API
|
|
1229
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
1230
|
+
*
|
|
1231
|
+
* The version of the OpenAPI document: 0.0.1
|
|
1232
|
+
* Contact: support@sphereon.com
|
|
1233
|
+
*
|
|
1234
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1235
|
+
* https://openapi-generator.tech
|
|
1236
|
+
* Do not edit the class manually.
|
|
1237
|
+
*/
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Request body for storing a key.
|
|
1241
|
+
* @export
|
|
1242
|
+
* @interface StoreKey
|
|
1243
|
+
*/
|
|
1244
|
+
interface StoreKey {
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @type {ResolvedKeyInfo}
|
|
1248
|
+
* @memberof StoreKey
|
|
1249
|
+
*/
|
|
1250
|
+
keyInfo: ResolvedKeyInfo;
|
|
1251
|
+
/**
|
|
1252
|
+
* X.509 certificate chain as base64-encoded DER certificates.
|
|
1253
|
+
* @type {Array<string>}
|
|
1254
|
+
* @memberof StoreKey
|
|
1255
|
+
*/
|
|
1256
|
+
certChain?: Array<string>;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* KMS REST Server API
|
|
1261
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
1262
|
+
*
|
|
1263
|
+
* The version of the OpenAPI document: 0.0.1
|
|
1264
|
+
* Contact: support@sphereon.com
|
|
1265
|
+
*
|
|
1266
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1267
|
+
* https://openapi-generator.tech
|
|
1268
|
+
* Do not edit the class manually.
|
|
1269
|
+
*/
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Request body for verifying a raw signature.
|
|
1273
|
+
* @export
|
|
1274
|
+
* @interface VerifyRawSignature
|
|
1275
|
+
*/
|
|
1276
|
+
interface VerifyRawSignature {
|
|
1277
|
+
/**
|
|
1278
|
+
*
|
|
1279
|
+
* @type {KeyInfo}
|
|
1280
|
+
* @memberof VerifyRawSignature
|
|
1281
|
+
*/
|
|
1282
|
+
keyInfo: KeyInfo;
|
|
1283
|
+
/**
|
|
1284
|
+
*
|
|
1285
|
+
* @type {string}
|
|
1286
|
+
* @memberof VerifyRawSignature
|
|
1287
|
+
*/
|
|
1288
|
+
input: string;
|
|
1289
|
+
/**
|
|
1290
|
+
*
|
|
1291
|
+
* @type {string}
|
|
1292
|
+
* @memberof VerifyRawSignature
|
|
1293
|
+
*/
|
|
1294
|
+
signature: string;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* KMS REST Server API
|
|
1299
|
+
* A REST API for managing cryptographic keys and performing signing and verification operations.
|
|
1300
|
+
*
|
|
1301
|
+
* The version of the OpenAPI document: 0.0.1
|
|
1302
|
+
* Contact: support@sphereon.com
|
|
1303
|
+
*
|
|
1304
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1305
|
+
* https://openapi-generator.tech
|
|
1306
|
+
* Do not edit the class manually.
|
|
1307
|
+
*/
|
|
1308
|
+
/**
|
|
1309
|
+
* Response body containing the details of the signature verification.
|
|
1310
|
+
* @export
|
|
1311
|
+
* @interface VerifyRawSignatureResponse
|
|
1312
|
+
*/
|
|
1313
|
+
interface VerifyRawSignatureResponse {
|
|
1314
|
+
/**
|
|
1315
|
+
* Indicates whether the signature is valid or not.
|
|
1316
|
+
* @type {boolean}
|
|
1317
|
+
* @memberof VerifyRawSignatureResponse
|
|
1318
|
+
*/
|
|
1319
|
+
isValid: boolean;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
interface IKmsRestClient extends IPluginMethodMap {
|
|
1323
|
+
kmsGetResolver(args: kmsGetResolverArgs): Promise<Resolver>;
|
|
1324
|
+
kmsListResolvers(args: KmsListResolversArgs): Promise<ListResolversResponse>;
|
|
1325
|
+
kmsResolveKey(args: KmsResolveKeyArgs): Promise<ResolvedKeyInfo>;
|
|
1326
|
+
kmsCreateRawSignature(args: KmsCreateRawSignatureArgs): Promise<CreateRawSignatureResponse>;
|
|
1327
|
+
kmsIsValidRawSignature(args: KmsIsValidRawSignatureArgs): Promise<VerifyRawSignatureResponse>;
|
|
1328
|
+
kmsGetKey(args: KmsGetKeyArgs): Promise<ManagedKeyInfo>;
|
|
1329
|
+
kmsListKeys(args: KmsListKeysArgs): Promise<ListKeysResponse>;
|
|
1330
|
+
kmsStoreKey(args: KmsStoreKeyArgs): Promise<ManagedKeyInfo>;
|
|
1331
|
+
kmsGenerateKey(args: KmsGenerateKeyArgs): Promise<ManagedKeyPair>;
|
|
1332
|
+
kmsDeleteKey(args: KmsDeleteKeyArgs): Promise<boolean>;
|
|
1333
|
+
kmsGetKeyProvider(args: KmsGetKeyProviderArgs): Promise<KeyProviderResponse>;
|
|
1334
|
+
kmsListKeyProviders(args: KmsListKeyProvidersArgs): Promise<ListKeyProvidersResponse>;
|
|
1335
|
+
kmsProviderListKeys(args: KmsProviderListKeysArgs): Promise<ListKeysResponse>;
|
|
1336
|
+
kmsProviderStoreKey(args: KmsProviderStoreKey): Promise<ManagedKeyInfo>;
|
|
1337
|
+
kmsProviderGenerateKey(args: KmsProviderGenerateKey): Promise<ManagedKeyPair>;
|
|
1338
|
+
kmsProviderGetKey(args: KmsProviderGetKeyArgs): Promise<ManagedKeyInfo>;
|
|
1339
|
+
kmsProviderDeleteKey(args: KmsProviderDeleteKeyArgs): Promise<boolean>;
|
|
1340
|
+
}
|
|
1341
|
+
type KmsListResolversArgs = {
|
|
1342
|
+
baseUrl?: string;
|
|
1343
|
+
};
|
|
1344
|
+
type kmsGetResolverArgs = {
|
|
1345
|
+
baseUrl?: string;
|
|
1346
|
+
resolverId: string;
|
|
1347
|
+
};
|
|
1348
|
+
type KmsResolveKeyArgs = {
|
|
1349
|
+
baseUrl?: string;
|
|
1350
|
+
resolverId: String;
|
|
1351
|
+
} & ResolvePublicKey;
|
|
1352
|
+
type KmsCreateRawSignatureArgs = {
|
|
1353
|
+
baseUrl?: string;
|
|
1354
|
+
} & CreateRawSignature;
|
|
1355
|
+
type KmsIsValidRawSignatureArgs = {
|
|
1356
|
+
baseUrl?: string;
|
|
1357
|
+
} & VerifyRawSignature;
|
|
1358
|
+
type KmsGetKeyArgs = {
|
|
1359
|
+
baseUrl?: string;
|
|
1360
|
+
aliasOrKid: string;
|
|
1361
|
+
};
|
|
1362
|
+
type KmsListKeysArgs = {
|
|
1363
|
+
baseUrl?: string;
|
|
1364
|
+
providerId?: string;
|
|
1365
|
+
};
|
|
1366
|
+
type KmsStoreKeyArgs = {
|
|
1367
|
+
baseUrl?: string;
|
|
1368
|
+
} & StoreKey;
|
|
1369
|
+
type KmsGenerateKeyArgs = {
|
|
1370
|
+
baseUrl?: string;
|
|
1371
|
+
} & GenerateKeyGlobal;
|
|
1372
|
+
type KmsDeleteKeyArgs = {
|
|
1373
|
+
baseUrl?: string;
|
|
1374
|
+
aliasOrKid?: string;
|
|
1375
|
+
};
|
|
1376
|
+
type KmsGetKeyProviderArgs = {
|
|
1377
|
+
baseUrl?: string;
|
|
1378
|
+
providerId?: string;
|
|
1379
|
+
};
|
|
1380
|
+
type KmsListKeyProvidersArgs = {
|
|
1381
|
+
baseUrl?: string;
|
|
1382
|
+
};
|
|
1383
|
+
type KmsProviderListKeysArgs = {
|
|
1384
|
+
baseUrl?: string;
|
|
1385
|
+
providerId: string;
|
|
1386
|
+
};
|
|
1387
|
+
type KmsProviderStoreKey = {
|
|
1388
|
+
baseUrl?: string;
|
|
1389
|
+
providerId: string;
|
|
1390
|
+
} & StoreKey;
|
|
1391
|
+
type KmsProviderGenerateKey = {
|
|
1392
|
+
baseUrl?: string;
|
|
1393
|
+
providerId: string;
|
|
1394
|
+
} & GenerateKey;
|
|
1395
|
+
type KmsProviderGetKeyArgs = {
|
|
1396
|
+
baseUrl?: string;
|
|
1397
|
+
providerId: string;
|
|
1398
|
+
aliasOrKid: string;
|
|
1399
|
+
};
|
|
1400
|
+
type KmsProviderDeleteKeyArgs = {
|
|
1401
|
+
baseUrl?: string;
|
|
1402
|
+
providerId: string;
|
|
1403
|
+
aliasOrKid: string;
|
|
1404
|
+
};
|
|
1405
|
+
type RestClientAuthenticationOpts = {
|
|
1406
|
+
enabled?: boolean;
|
|
1407
|
+
bearerToken?: BearerTokenArg;
|
|
1408
|
+
};
|
|
1409
|
+
type KmsRestClientArgs = {
|
|
1410
|
+
baseUrl?: string;
|
|
1411
|
+
authentication?: RestClientAuthenticationOpts;
|
|
1412
|
+
};
|
|
1413
|
+
type IRequiredContext = IAgentContext<never>;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* {@inheritDoc IKmsRestClient}
|
|
1417
|
+
*/
|
|
1418
|
+
declare class KmsRestClient implements IAgentPlugin {
|
|
1419
|
+
readonly methods: IKmsRestClient;
|
|
1420
|
+
private readonly agentBaseUrl?;
|
|
1421
|
+
private readonly authOpts?;
|
|
1422
|
+
constructor(args?: KmsRestClientArgs);
|
|
1423
|
+
private static urlWithBase;
|
|
1424
|
+
/** {@inheritDoc IKmsRestClient.kmsGetResolver} */
|
|
1425
|
+
private kmsGetResolver;
|
|
1426
|
+
/** {@inheritDoc IKmsRestClient.kmsListResolvers} */
|
|
1427
|
+
private kmsListResolvers;
|
|
1428
|
+
/** {@inheritDoc IKmsRestClient.kmsResolveKey} */
|
|
1429
|
+
private kmsResolveKey;
|
|
1430
|
+
/** {@inheritDoc IKmsRestClient.kmsCreateRawSignature} */
|
|
1431
|
+
private kmsCreateRawSignature;
|
|
1432
|
+
/** {@inheritDoc IKmsRestClient.kmsIsValidRawSignature} */
|
|
1433
|
+
private kmsIsValidRawSignature;
|
|
1434
|
+
/** {@inheritDoc IKmsRestClient.kmsGetKey} */
|
|
1435
|
+
private kmsGetKey;
|
|
1436
|
+
/** {@inheritDoc IKmsRestClient.kmsListKeys} */
|
|
1437
|
+
private kmsListKeys;
|
|
1438
|
+
/** {@inheritDoc IKmsRestClient.kmsStoreKey} */
|
|
1439
|
+
private kmsStoreKey;
|
|
1440
|
+
/** {@inheritDoc IKmsRestClient.kmsGenerateKey} */
|
|
1441
|
+
private kmsGenerateKey;
|
|
1442
|
+
/** {@inheritDoc IKmsRestClient.kmsDeleteKey} */
|
|
1443
|
+
private kmsDeleteKey;
|
|
1444
|
+
/** {@inheritDoc IKmsRestClient.kmsGetKeyProvider} */
|
|
1445
|
+
private kmsGetKeyProvider;
|
|
1446
|
+
/** {@inheritDoc IKmsRestClient.kmsListKeyProviders} */
|
|
1447
|
+
private kmsListKeyProviders;
|
|
1448
|
+
/** {@inheritDoc IKmsRestClient.kmsProviderListKeys} */
|
|
1449
|
+
private kmsProviderListKeys;
|
|
1450
|
+
/** {@inheritDoc IKmsRestClient.kmsProviderStoreKey} */
|
|
1451
|
+
private kmsProviderStoreKey;
|
|
1452
|
+
/** {@inheritDoc IKmsRestClient.kmsProviderGenerateKey} */
|
|
1453
|
+
private kmsProviderGenerateKey;
|
|
1454
|
+
/** {@inheritDoc IKmsRestClient.kmsProviderGetKey} */
|
|
1455
|
+
private kmsProviderGetKey;
|
|
1456
|
+
/** {@inheritDoc IKmsRestClient.kmsProviderDeleteKey} */
|
|
1457
|
+
private kmsProviderDeleteKey;
|
|
1458
|
+
private assertedAgentBaseUrl;
|
|
1459
|
+
private createHeaders;
|
|
1460
|
+
private addSearchParams;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* @public
|
|
1465
|
+
*/
|
|
1466
|
+
declare const schema: any;
|
|
1467
|
+
|
|
1468
|
+
export { type IKmsRestClient, type IRequiredContext, type KmsCreateRawSignatureArgs, type KmsDeleteKeyArgs, type KmsGenerateKeyArgs, type KmsGetKeyArgs, type KmsGetKeyProviderArgs, type KmsIsValidRawSignatureArgs, type KmsListKeyProvidersArgs, type KmsListKeysArgs, type KmsListResolversArgs, type KmsProviderDeleteKeyArgs, type KmsProviderGenerateKey, type KmsProviderGetKeyArgs, type KmsProviderListKeysArgs, type KmsProviderStoreKey, type KmsResolveKeyArgs, KmsRestClient, type KmsRestClientArgs, type KmsStoreKeyArgs, type RestClientAuthenticationOpts, type kmsGetResolverArgs, schema };
|