@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/dist/index.d.cts CHANGED
@@ -22,7 +22,7 @@ declare const CoseKeyType: {
22
22
  readonly NUMBER_3: 3;
23
23
  readonly NUMBER_4: 4;
24
24
  };
25
- type CoseKeyType = typeof CoseKeyType[keyof typeof CoseKeyType];
25
+ type CoseKeyType = (typeof CoseKeyType)[keyof typeof CoseKeyType];
26
26
 
27
27
  /**
28
28
  * KMS REST Server API
@@ -156,7 +156,7 @@ declare const KeyProviderType: {
156
156
  readonly AzureKeyvault: "AZURE_KEYVAULT";
157
157
  readonly AwsKms: "AWS_KMS";
158
158
  };
159
- type KeyProviderType = typeof KeyProviderType[keyof typeof KeyProviderType];
159
+ type KeyProviderType = (typeof KeyProviderType)[keyof typeof KeyProviderType];
160
160
 
161
161
  /**
162
162
  * KMS REST Server API
@@ -178,7 +178,7 @@ declare const KeyType: {
178
178
  readonly Ec: "EC";
179
179
  readonly Rsa: "RSA";
180
180
  };
181
- type KeyType = typeof KeyType[keyof typeof KeyType];
181
+ type KeyType = (typeof KeyType)[keyof typeof KeyType];
182
182
 
183
183
  /**
184
184
  * KMS REST Server API
@@ -199,7 +199,7 @@ declare const KeyVisibility: {
199
199
  readonly Public: "PUBLIC";
200
200
  readonly Private: "PRIVATE";
201
201
  };
202
- type KeyVisibility = typeof KeyVisibility[keyof typeof KeyVisibility];
202
+ type KeyVisibility = (typeof KeyVisibility)[keyof typeof KeyVisibility];
203
203
 
204
204
  /**
205
205
  * KMS REST Server API
@@ -230,7 +230,7 @@ declare const SignatureAlgorithm: {
230
230
  readonly RsaSsaPssSha384Mgf1: "RSA_SSA_PSS_SHA384_MGF1";
231
231
  readonly RsaSsaPssSha512Mgf1: "RSA_SSA_PSS_SHA512_MGF1";
232
232
  };
233
- type SignatureAlgorithm = typeof SignatureAlgorithm[keyof typeof SignatureAlgorithm];
233
+ type SignatureAlgorithm = (typeof SignatureAlgorithm)[keyof typeof SignatureAlgorithm];
234
234
 
235
235
  /**
236
236
  * KMS REST Server API
@@ -251,7 +251,7 @@ declare const KeyEncoding: {
251
251
  readonly Cose: "COSE";
252
252
  readonly Jose: "JOSE";
253
253
  };
254
- type KeyEncoding = typeof KeyEncoding[keyof typeof KeyEncoding];
254
+ type KeyEncoding = (typeof KeyEncoding)[keyof typeof KeyEncoding];
255
255
 
256
256
  /**
257
257
  * KMS REST Server API
@@ -278,7 +278,7 @@ declare const Curve: {
278
278
  readonly X25519: "X25519";
279
279
  readonly X448: "X448";
280
280
  };
281
- type Curve = typeof Curve[keyof typeof Curve];
281
+ type Curve = (typeof Curve)[keyof typeof Curve];
282
282
 
283
283
  /**
284
284
  * KMS REST Server API
@@ -305,7 +305,7 @@ declare const KeyOperations: {
305
305
  readonly DeriveKey: "deriveKey";
306
306
  readonly DeriveBits: "deriveBits";
307
307
  };
308
- type KeyOperations = typeof KeyOperations[keyof typeof KeyOperations];
308
+ type KeyOperations = (typeof KeyOperations)[keyof typeof KeyOperations];
309
309
 
310
310
  /**
311
311
  * KMS REST Server API
@@ -326,7 +326,7 @@ declare const JwkUse: {
326
326
  readonly Sig: "sig";
327
327
  readonly Enc: "enc";
328
328
  };
329
- type JwkUse = typeof JwkUse[keyof typeof JwkUse];
329
+ type JwkUse = (typeof JwkUse)[keyof typeof JwkUse];
330
330
 
331
331
  /**
332
332
  * KMS REST Server API
@@ -349,7 +349,7 @@ declare const JwkKeyType: {
349
349
  readonly Okp: "OKP";
350
350
  readonly Oct: "oct";
351
351
  };
352
- type JwkKeyType = typeof JwkKeyType[keyof typeof JwkKeyType];
352
+ type JwkKeyType = (typeof JwkKeyType)[keyof typeof JwkKeyType];
353
353
 
354
354
  /**
355
355
  * KMS REST Server API
@@ -916,7 +916,7 @@ declare const IdentifierMethod: {
916
916
  readonly X5C: "X5C";
917
917
  readonly Did: "DID";
918
918
  };
919
- type IdentifierMethod = typeof IdentifierMethod[keyof typeof IdentifierMethod];
919
+ type IdentifierMethod = (typeof IdentifierMethod)[keyof typeof IdentifierMethod];
920
920
 
921
921
  /**
922
922
  * KMS REST Server API
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ declare const CoseKeyType: {
22
22
  readonly NUMBER_3: 3;
23
23
  readonly NUMBER_4: 4;
24
24
  };
25
- type CoseKeyType = typeof CoseKeyType[keyof typeof CoseKeyType];
25
+ type CoseKeyType = (typeof CoseKeyType)[keyof typeof CoseKeyType];
26
26
 
27
27
  /**
28
28
  * KMS REST Server API
@@ -156,7 +156,7 @@ declare const KeyProviderType: {
156
156
  readonly AzureKeyvault: "AZURE_KEYVAULT";
157
157
  readonly AwsKms: "AWS_KMS";
158
158
  };
159
- type KeyProviderType = typeof KeyProviderType[keyof typeof KeyProviderType];
159
+ type KeyProviderType = (typeof KeyProviderType)[keyof typeof KeyProviderType];
160
160
 
161
161
  /**
162
162
  * KMS REST Server API
@@ -178,7 +178,7 @@ declare const KeyType: {
178
178
  readonly Ec: "EC";
179
179
  readonly Rsa: "RSA";
180
180
  };
181
- type KeyType = typeof KeyType[keyof typeof KeyType];
181
+ type KeyType = (typeof KeyType)[keyof typeof KeyType];
182
182
 
183
183
  /**
184
184
  * KMS REST Server API
@@ -199,7 +199,7 @@ declare const KeyVisibility: {
199
199
  readonly Public: "PUBLIC";
200
200
  readonly Private: "PRIVATE";
201
201
  };
202
- type KeyVisibility = typeof KeyVisibility[keyof typeof KeyVisibility];
202
+ type KeyVisibility = (typeof KeyVisibility)[keyof typeof KeyVisibility];
203
203
 
204
204
  /**
205
205
  * KMS REST Server API
@@ -230,7 +230,7 @@ declare const SignatureAlgorithm: {
230
230
  readonly RsaSsaPssSha384Mgf1: "RSA_SSA_PSS_SHA384_MGF1";
231
231
  readonly RsaSsaPssSha512Mgf1: "RSA_SSA_PSS_SHA512_MGF1";
232
232
  };
233
- type SignatureAlgorithm = typeof SignatureAlgorithm[keyof typeof SignatureAlgorithm];
233
+ type SignatureAlgorithm = (typeof SignatureAlgorithm)[keyof typeof SignatureAlgorithm];
234
234
 
235
235
  /**
236
236
  * KMS REST Server API
@@ -251,7 +251,7 @@ declare const KeyEncoding: {
251
251
  readonly Cose: "COSE";
252
252
  readonly Jose: "JOSE";
253
253
  };
254
- type KeyEncoding = typeof KeyEncoding[keyof typeof KeyEncoding];
254
+ type KeyEncoding = (typeof KeyEncoding)[keyof typeof KeyEncoding];
255
255
 
256
256
  /**
257
257
  * KMS REST Server API
@@ -278,7 +278,7 @@ declare const Curve: {
278
278
  readonly X25519: "X25519";
279
279
  readonly X448: "X448";
280
280
  };
281
- type Curve = typeof Curve[keyof typeof Curve];
281
+ type Curve = (typeof Curve)[keyof typeof Curve];
282
282
 
283
283
  /**
284
284
  * KMS REST Server API
@@ -305,7 +305,7 @@ declare const KeyOperations: {
305
305
  readonly DeriveKey: "deriveKey";
306
306
  readonly DeriveBits: "deriveBits";
307
307
  };
308
- type KeyOperations = typeof KeyOperations[keyof typeof KeyOperations];
308
+ type KeyOperations = (typeof KeyOperations)[keyof typeof KeyOperations];
309
309
 
310
310
  /**
311
311
  * KMS REST Server API
@@ -326,7 +326,7 @@ declare const JwkUse: {
326
326
  readonly Sig: "sig";
327
327
  readonly Enc: "enc";
328
328
  };
329
- type JwkUse = typeof JwkUse[keyof typeof JwkUse];
329
+ type JwkUse = (typeof JwkUse)[keyof typeof JwkUse];
330
330
 
331
331
  /**
332
332
  * KMS REST Server API
@@ -349,7 +349,7 @@ declare const JwkKeyType: {
349
349
  readonly Okp: "OKP";
350
350
  readonly Oct: "oct";
351
351
  };
352
- type JwkKeyType = typeof JwkKeyType[keyof typeof JwkKeyType];
352
+ type JwkKeyType = (typeof JwkKeyType)[keyof typeof JwkKeyType];
353
353
 
354
354
  /**
355
355
  * KMS REST Server API
@@ -916,7 +916,7 @@ declare const IdentifierMethod: {
916
916
  readonly X5C: "X5C";
917
917
  readonly Did: "DID";
918
918
  };
919
- type IdentifierMethod = typeof IdentifierMethod[keyof typeof IdentifierMethod];
919
+ type IdentifierMethod = (typeof IdentifierMethod)[keyof typeof IdentifierMethod];
920
920
 
921
921
  /**
922
922
  * KMS REST Server API