@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.cjs CHANGED
@@ -42,10 +42,7 @@ var require_plugin_schema = __commonJS({
42
42
  type: "string"
43
43
  }
44
44
  },
45
- required: [
46
- "input",
47
- "keyInfo"
48
- ]
45
+ required: ["input", "keyInfo"]
49
46
  },
50
47
  KeyInfo: {
51
48
  type: "object",
@@ -186,56 +183,28 @@ var require_plugin_schema = __commonJS({
186
183
  description: "X.509 certificate SHA-256 thumbprint (base64url-encoded)."
187
184
  }
188
185
  },
189
- required: [
190
- "kty"
191
- ],
186
+ required: ["kty"],
192
187
  additionalProperties: false,
193
188
  description: "Represents a JSON Web Key (JWK) as defined by the JSON Web Key specification."
194
189
  },
195
190
  JwkKeyType: {
196
191
  type: "string",
197
- enum: [
198
- "EC",
199
- "RSA",
200
- "OKP",
201
- "oct"
202
- ],
192
+ enum: ["EC", "RSA", "OKP", "oct"],
203
193
  description: "JSON Web Key (JWK) key type parameter identifying the cryptographic algorithm family."
204
194
  },
205
195
  JwkUse: {
206
196
  type: "string",
207
- enum: [
208
- "sig",
209
- "enc"
210
- ],
197
+ enum: ["sig", "enc"],
211
198
  description: "Intended use of the key (signing or encryption)."
212
199
  },
213
200
  KeyOperations: {
214
201
  type: "string",
215
- enum: [
216
- "sign",
217
- "verify",
218
- "encrypt",
219
- "decrypt",
220
- "wrapKey",
221
- "unwrapKey",
222
- "deriveKey",
223
- "deriveBits"
224
- ],
202
+ enum: ["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"],
225
203
  description: "Specific operations the key is intended for."
226
204
  },
227
205
  Curve: {
228
206
  type: "string",
229
- enum: [
230
- "P-256",
231
- "P-384",
232
- "P-521",
233
- "secp256k1",
234
- "Ed25519",
235
- "Ed448",
236
- "X25519",
237
- "X448"
238
- ],
207
+ enum: ["P-256", "P-384", "P-521", "secp256k1", "Ed25519", "Ed448", "X25519", "X448"],
239
208
  description: "Elliptic curve identifier."
240
209
  },
241
210
  SignatureAlgorithm: {
@@ -258,27 +227,17 @@ var require_plugin_schema = __commonJS({
258
227
  },
259
228
  KeyVisibility: {
260
229
  type: "string",
261
- enum: [
262
- "PUBLIC",
263
- "PRIVATE"
264
- ],
230
+ enum: ["PUBLIC", "PRIVATE"],
265
231
  description: "Indicates the visibility status of a cryptographic key."
266
232
  },
267
233
  KeyType: {
268
234
  type: "string",
269
- enum: [
270
- "OKP",
271
- "EC",
272
- "RSA"
273
- ],
235
+ enum: ["OKP", "EC", "RSA"],
274
236
  description: "Cryptographic key type identifier."
275
237
  },
276
238
  KeyEncoding: {
277
239
  type: "string",
278
- enum: [
279
- "COSE",
280
- "JOSE"
281
- ],
240
+ enum: ["COSE", "JOSE"],
282
241
  description: "The encoding format of the cryptographic key."
283
242
  },
284
243
  CreateRawSignatureResponse: {
@@ -289,9 +248,7 @@ var require_plugin_schema = __commonJS({
289
248
  description: "The created signature encoded as a base64 string."
290
249
  }
291
250
  },
292
- required: [
293
- "signature"
294
- ],
251
+ required: ["signature"],
295
252
  additionalProperties: false,
296
253
  description: "Response body containing the created signature."
297
254
  },
@@ -358,12 +315,7 @@ var require_plugin_schema = __commonJS({
358
315
  $ref: "#/components/schemas/JoseKeyPair"
359
316
  }
360
317
  },
361
- required: [
362
- "providerId",
363
- "alias",
364
- "cose",
365
- "jose"
366
- ],
318
+ required: ["providerId", "alias", "cose", "jose"],
367
319
  additionalProperties: false,
368
320
  description: "Represents a key pair used by a crypto provider, encapsulating both JOSE and COSE key pairs."
369
321
  },
@@ -377,9 +329,7 @@ var require_plugin_schema = __commonJS({
377
329
  $ref: "#/components/schemas/CoseKey"
378
330
  }
379
331
  },
380
- required: [
381
- "publicCoseKey"
382
- ],
332
+ required: ["publicCoseKey"],
383
333
  additionalProperties: false,
384
334
  description: "Represents a cryptographic key pair for COSE (CBOR Object Signing and Encryption) operations."
385
335
  },
@@ -432,20 +382,13 @@ var require_plugin_schema = __commonJS({
432
382
  description: "X.509 certificate chain as base64-encoded certificates."
433
383
  }
434
384
  },
435
- required: [
436
- "kty"
437
- ],
385
+ required: ["kty"],
438
386
  additionalProperties: false,
439
387
  description: "Represents a COSE (CBOR Object Signing and Encryption) key in JSON format."
440
388
  },
441
389
  CoseKeyType: {
442
390
  type: "number",
443
- enum: [
444
- 1,
445
- 2,
446
- 3,
447
- 4
448
- ],
391
+ enum: [1, 2, 3, 4],
449
392
  description: "COSE key type parameter. 1=OKP (Octet Key Pair), 2=EC2 (Elliptic Curve), 3=RSA, 4=Symmetric."
450
393
  },
451
394
  JoseKeyPair: {
@@ -458,9 +401,7 @@ var require_plugin_schema = __commonJS({
458
401
  $ref: "#/components/schemas/Jwk"
459
402
  }
460
403
  },
461
- required: [
462
- "publicJwk"
463
- ],
404
+ required: ["publicJwk"],
464
405
  additionalProperties: false,
465
406
  description: "Data class representing a cryptographic key pair used with JOSE (JSON Object Signing and Encryption)."
466
407
  },
@@ -474,9 +415,7 @@ var require_plugin_schema = __commonJS({
474
415
  type: "string"
475
416
  }
476
417
  },
477
- required: [
478
- "aliasOrKid"
479
- ],
418
+ required: ["aliasOrKid"],
480
419
  additionalProperties: false
481
420
  },
482
421
  ManagedKeyInfo: {
@@ -524,11 +463,7 @@ var require_plugin_schema = __commonJS({
524
463
  description: "Additional configuration options as key-value pairs."
525
464
  }
526
465
  },
527
- required: [
528
- "key",
529
- "alias",
530
- "providerId"
531
- ],
466
+ required: ["key", "alias", "providerId"],
532
467
  additionalProperties: false,
533
468
  description: "Represents a managed cryptographic key information that is guaranteed to be present and resolved, part of a KMS providing concrete access to the key."
534
469
  },
@@ -555,20 +490,13 @@ var require_plugin_schema = __commonJS({
555
490
  $ref: "#/components/schemas/KeyProviderType"
556
491
  }
557
492
  },
558
- required: [
559
- "providerId",
560
- "type"
561
- ],
493
+ required: ["providerId", "type"],
562
494
  additionalProperties: false,
563
495
  description: "Response body containing the details of a Key Provider instance."
564
496
  },
565
497
  KeyProviderType: {
566
498
  type: "string",
567
- enum: [
568
- "SOFTWARE",
569
- "AZURE_KEYVAULT",
570
- "AWS_KMS"
571
- ],
499
+ enum: ["SOFTWARE", "AZURE_KEYVAULT", "AWS_KMS"],
572
500
  description: "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."
573
501
  },
574
502
  kmsGetResolverArgs: {
@@ -581,9 +509,7 @@ var require_plugin_schema = __commonJS({
581
509
  type: "string"
582
510
  }
583
511
  },
584
- required: [
585
- "resolverId"
586
- ],
512
+ required: ["resolverId"],
587
513
  additionalProperties: false
588
514
  },
589
515
  Resolver: {
@@ -608,21 +534,13 @@ var require_plugin_schema = __commonJS({
608
534
  description: "List of key types supported by this resolver."
609
535
  }
610
536
  },
611
- required: [
612
- "resolverId"
613
- ],
537
+ required: ["resolverId"],
614
538
  additionalProperties: false,
615
539
  description: "Represents a key resolver configuration."
616
540
  },
617
541
  IdentifierMethod: {
618
542
  type: "string",
619
- enum: [
620
- "JWK",
621
- "KID",
622
- "COSE_KEY",
623
- "X5C",
624
- "DID"
625
- ],
543
+ enum: ["JWK", "KID", "COSE_KEY", "X5C", "DID"],
626
544
  description: "Method used to identify cryptographic keys."
627
545
  },
628
546
  KmsIsValidRawSignatureArgs: {
@@ -642,11 +560,7 @@ var require_plugin_schema = __commonJS({
642
560
  type: "string"
643
561
  }
644
562
  },
645
- required: [
646
- "input",
647
- "keyInfo",
648
- "signature"
649
- ]
563
+ required: ["input", "keyInfo", "signature"]
650
564
  },
651
565
  VerifyRawSignatureResponse: {
652
566
  type: "object",
@@ -656,9 +570,7 @@ var require_plugin_schema = __commonJS({
656
570
  description: "Indicates whether the signature is valid or not."
657
571
  }
658
572
  },
659
- required: [
660
- "isValid"
661
- ],
573
+ required: ["isValid"],
662
574
  additionalProperties: false,
663
575
  description: "Response body containing the details of the signature verification."
664
576
  },
@@ -681,9 +593,7 @@ var require_plugin_schema = __commonJS({
681
593
  }
682
594
  }
683
595
  },
684
- required: [
685
- "providers"
686
- ],
596
+ required: ["providers"],
687
597
  additionalProperties: false,
688
598
  description: "Response body containing the details of a Key Provider instance."
689
599
  },
@@ -698,10 +608,7 @@ var require_plugin_schema = __commonJS({
698
608
  $ref: "#/components/schemas/KeyProviderType"
699
609
  }
700
610
  },
701
- required: [
702
- "providerId",
703
- "type"
704
- ],
611
+ required: ["providerId", "type"],
705
612
  additionalProperties: false,
706
613
  description: "Response body containing the details of a Key Provider instance."
707
614
  },
@@ -727,9 +634,7 @@ var require_plugin_schema = __commonJS({
727
634
  }
728
635
  }
729
636
  },
730
- required: [
731
- "keyInfos"
732
- ],
637
+ required: ["keyInfos"],
733
638
  additionalProperties: false,
734
639
  description: "Response body containing all the managed keys."
735
640
  },
@@ -752,9 +657,7 @@ var require_plugin_schema = __commonJS({
752
657
  }
753
658
  }
754
659
  },
755
- required: [
756
- "resolvers"
757
- ],
660
+ required: ["resolvers"],
758
661
  additionalProperties: false,
759
662
  description: "Response body containing all the resolvers."
760
663
  },
@@ -771,10 +674,7 @@ var require_plugin_schema = __commonJS({
771
674
  type: "string"
772
675
  }
773
676
  },
774
- required: [
775
- "providerId",
776
- "aliasOrKid"
777
- ],
677
+ required: ["providerId", "aliasOrKid"],
778
678
  additionalProperties: false
779
679
  },
780
680
  KmsProviderGenerateKey: {
@@ -804,9 +704,7 @@ var require_plugin_schema = __commonJS({
804
704
  type: "string"
805
705
  }
806
706
  },
807
- required: [
808
- "providerId"
809
- ]
707
+ required: ["providerId"]
810
708
  },
811
709
  KmsProviderGetKeyArgs: {
812
710
  type: "object",
@@ -821,10 +719,7 @@ var require_plugin_schema = __commonJS({
821
719
  type: "string"
822
720
  }
823
721
  },
824
- required: [
825
- "providerId",
826
- "aliasOrKid"
827
- ],
722
+ required: ["providerId", "aliasOrKid"],
828
723
  additionalProperties: false
829
724
  },
830
725
  KmsProviderListKeysArgs: {
@@ -837,9 +732,7 @@ var require_plugin_schema = __commonJS({
837
732
  type: "string"
838
733
  }
839
734
  },
840
- required: [
841
- "providerId"
842
- ],
735
+ required: ["providerId"],
843
736
  additionalProperties: false
844
737
  },
845
738
  KmsProviderStoreKey: {
@@ -863,10 +756,7 @@ var require_plugin_schema = __commonJS({
863
756
  type: "string"
864
757
  }
865
758
  },
866
- required: [
867
- "keyInfo",
868
- "providerId"
869
- ]
759
+ required: ["keyInfo", "providerId"]
870
760
  },
871
761
  ResolvedKeyInfo: {
872
762
  type: "object",
@@ -913,9 +803,7 @@ var require_plugin_schema = __commonJS({
913
803
  description: "Additional configuration options as key-value pairs."
914
804
  }
915
805
  },
916
- required: [
917
- "key"
918
- ],
806
+ required: ["key"],
919
807
  additionalProperties: false,
920
808
  description: "Represents a resolved cryptographic key information where the key is guaranteed to be present and resolved, providing concrete access to the key."
921
809
  },
@@ -947,10 +835,7 @@ var require_plugin_schema = __commonJS({
947
835
  $ref: "#/components/schemas/String"
948
836
  }
949
837
  },
950
- required: [
951
- "keyInfo",
952
- "resolverId"
953
- ]
838
+ required: ["keyInfo", "resolverId"]
954
839
  },
955
840
  String: {
956
841
  type: "object",
@@ -959,9 +844,7 @@ var require_plugin_schema = __commonJS({
959
844
  type: "number"
960
845
  }
961
846
  },
962
- required: [
963
- "length"
964
- ],
847
+ required: ["length"],
965
848
  additionalProperties: {
966
849
  type: "string"
967
850
  }
@@ -984,9 +867,7 @@ var require_plugin_schema = __commonJS({
984
867
  type: "string"
985
868
  }
986
869
  },
987
- required: [
988
- "keyInfo"
989
- ]
870
+ required: ["keyInfo"]
990
871
  }
991
872
  },
992
873
  methods: {
@@ -1182,16 +1063,16 @@ function CoseKeyFromJSONTyped(json, ignoreDiscriminator) {
1182
1063
  return json;
1183
1064
  }
1184
1065
  return {
1185
- "kty": CoseKeyTypeFromJSON(json["kty"]),
1186
- "kid": json["kid"] == null ? void 0 : json["kid"],
1187
- "alg": json["alg"] == null ? void 0 : json["alg"],
1188
- "keyOps": json["key_ops"] == null ? void 0 : json["key_ops"],
1189
- "baseIV": json["baseIV"] == null ? void 0 : json["baseIV"],
1190
- "crv": json["crv"] == null ? void 0 : json["crv"],
1191
- "x": json["x"] == null ? void 0 : json["x"],
1192
- "y": json["y"] == null ? void 0 : json["y"],
1193
- "d": json["d"] == null ? void 0 : json["d"],
1194
- "x5chain": json["x5chain"] == null ? void 0 : json["x5chain"]
1066
+ kty: CoseKeyTypeFromJSON(json["kty"]),
1067
+ kid: json["kid"] == null ? void 0 : json["kid"],
1068
+ alg: json["alg"] == null ? void 0 : json["alg"],
1069
+ keyOps: json["key_ops"] == null ? void 0 : json["key_ops"],
1070
+ baseIV: json["baseIV"] == null ? void 0 : json["baseIV"],
1071
+ crv: json["crv"] == null ? void 0 : json["crv"],
1072
+ x: json["x"] == null ? void 0 : json["x"],
1073
+ y: json["y"] == null ? void 0 : json["y"],
1074
+ d: json["d"] == null ? void 0 : json["d"],
1075
+ x5chain: json["x5chain"] == null ? void 0 : json["x5chain"]
1195
1076
  };
1196
1077
  }
1197
1078
  __name(CoseKeyFromJSONTyped, "CoseKeyFromJSONTyped");
@@ -1206,8 +1087,8 @@ function CoseKeyPairFromJSONTyped(json, ignoreDiscriminator) {
1206
1087
  return json;
1207
1088
  }
1208
1089
  return {
1209
- "privateCoseKey": json["privateCoseKey"] == null ? void 0 : CoseKeyFromJSON(json["privateCoseKey"]),
1210
- "publicCoseKey": CoseKeyFromJSON(json["publicCoseKey"])
1090
+ privateCoseKey: json["privateCoseKey"] == null ? void 0 : CoseKeyFromJSON(json["privateCoseKey"]),
1091
+ publicCoseKey: CoseKeyFromJSON(json["publicCoseKey"])
1211
1092
  };
1212
1093
  }
1213
1094
  __name(CoseKeyPairFromJSONTyped, "CoseKeyPairFromJSONTyped");
@@ -1344,27 +1225,27 @@ function JwkFromJSONTyped(json, ignoreDiscriminator) {
1344
1225
  return json;
1345
1226
  }
1346
1227
  return {
1347
- "kty": JwkKeyTypeFromJSON(json["kty"]),
1348
- "kid": json["kid"] == null ? void 0 : json["kid"],
1349
- "alg": json["alg"] == null ? void 0 : json["alg"],
1350
- "use": json["use"] == null ? void 0 : JwkUseFromJSON(json["use"]),
1351
- "keyOps": json["key_ops"] == null ? void 0 : json["key_ops"].map(KeyOperationsFromJSON),
1352
- "crv": json["crv"] == null ? void 0 : CurveFromJSON(json["crv"]),
1353
- "x": json["x"] == null ? void 0 : json["x"],
1354
- "y": json["y"] == null ? void 0 : json["y"],
1355
- "d": json["d"] == null ? void 0 : json["d"],
1356
- "n": json["n"] == null ? void 0 : json["n"],
1357
- "e": json["e"] == null ? void 0 : json["e"],
1358
- "p": json["p"] == null ? void 0 : json["p"],
1359
- "q": json["q"] == null ? void 0 : json["q"],
1360
- "dp": json["dp"] == null ? void 0 : json["dp"],
1361
- "dq": json["dq"] == null ? void 0 : json["dq"],
1362
- "qi": json["qi"] == null ? void 0 : json["qi"],
1363
- "k": json["k"] == null ? void 0 : json["k"],
1364
- "x5c": json["x5c"] == null ? void 0 : json["x5c"],
1365
- "x5t": json["x5t"] == null ? void 0 : json["x5t"],
1366
- "x5u": json["x5u"] == null ? void 0 : json["x5u"],
1367
- "x5tS256": json["x5t#S256"] == null ? void 0 : json["x5t#S256"]
1228
+ kty: JwkKeyTypeFromJSON(json["kty"]),
1229
+ kid: json["kid"] == null ? void 0 : json["kid"],
1230
+ alg: json["alg"] == null ? void 0 : json["alg"],
1231
+ use: json["use"] == null ? void 0 : JwkUseFromJSON(json["use"]),
1232
+ keyOps: json["key_ops"] == null ? void 0 : json["key_ops"].map(KeyOperationsFromJSON),
1233
+ crv: json["crv"] == null ? void 0 : CurveFromJSON(json["crv"]),
1234
+ x: json["x"] == null ? void 0 : json["x"],
1235
+ y: json["y"] == null ? void 0 : json["y"],
1236
+ d: json["d"] == null ? void 0 : json["d"],
1237
+ n: json["n"] == null ? void 0 : json["n"],
1238
+ e: json["e"] == null ? void 0 : json["e"],
1239
+ p: json["p"] == null ? void 0 : json["p"],
1240
+ q: json["q"] == null ? void 0 : json["q"],
1241
+ dp: json["dp"] == null ? void 0 : json["dp"],
1242
+ dq: json["dq"] == null ? void 0 : json["dq"],
1243
+ qi: json["qi"] == null ? void 0 : json["qi"],
1244
+ k: json["k"] == null ? void 0 : json["k"],
1245
+ x5c: json["x5c"] == null ? void 0 : json["x5c"],
1246
+ x5t: json["x5t"] == null ? void 0 : json["x5t"],
1247
+ x5u: json["x5u"] == null ? void 0 : json["x5u"],
1248
+ x5tS256: json["x5t#S256"] == null ? void 0 : json["x5t#S256"]
1368
1249
  };
1369
1250
  }
1370
1251
  __name(JwkFromJSONTyped, "JwkFromJSONTyped");
@@ -1377,26 +1258,26 @@ function JwkToJSONTyped(value, ignoreDiscriminator = false) {
1377
1258
  return value;
1378
1259
  }
1379
1260
  return {
1380
- "kty": JwkKeyTypeToJSON(value["kty"]),
1381
- "kid": value["kid"],
1382
- "alg": value["alg"],
1383
- "use": JwkUseToJSON(value["use"]),
1384
- "key_ops": value["keyOps"] == null ? void 0 : value["keyOps"].map(KeyOperationsToJSON),
1385
- "crv": CurveToJSON(value["crv"]),
1386
- "x": value["x"],
1387
- "y": value["y"],
1388
- "d": value["d"],
1389
- "n": value["n"],
1390
- "e": value["e"],
1391
- "p": value["p"],
1392
- "q": value["q"],
1393
- "dp": value["dp"],
1394
- "dq": value["dq"],
1395
- "qi": value["qi"],
1396
- "k": value["k"],
1397
- "x5c": value["x5c"],
1398
- "x5t": value["x5t"],
1399
- "x5u": value["x5u"],
1261
+ kty: JwkKeyTypeToJSON(value["kty"]),
1262
+ kid: value["kid"],
1263
+ alg: value["alg"],
1264
+ use: JwkUseToJSON(value["use"]),
1265
+ key_ops: value["keyOps"] == null ? void 0 : value["keyOps"].map(KeyOperationsToJSON),
1266
+ crv: CurveToJSON(value["crv"]),
1267
+ x: value["x"],
1268
+ y: value["y"],
1269
+ d: value["d"],
1270
+ n: value["n"],
1271
+ e: value["e"],
1272
+ p: value["p"],
1273
+ q: value["q"],
1274
+ dp: value["dp"],
1275
+ dq: value["dq"],
1276
+ qi: value["qi"],
1277
+ k: value["k"],
1278
+ x5c: value["x5c"],
1279
+ x5t: value["x5t"],
1280
+ x5u: value["x5u"],
1400
1281
  "x5t#S256": value["x5tS256"]
1401
1282
  };
1402
1283
  }
@@ -1412,16 +1293,16 @@ function KeyInfoToJSONTyped(value, ignoreDiscriminator = false) {
1412
1293
  return value;
1413
1294
  }
1414
1295
  return {
1415
- "kid": value["kid"],
1416
- "key": JwkToJSON(value["key"]),
1417
- "signatureAlgorithm": SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
1418
- "keyVisibility": KeyVisibilityToJSON(value["keyVisibility"]),
1419
- "x5c": value["x5c"],
1420
- "alias": value["alias"],
1421
- "providerId": value["providerId"],
1422
- "keyType": KeyTypeToJSON(value["keyType"]),
1423
- "keyEncoding": KeyEncodingToJSON(value["keyEncoding"]),
1424
- "opts": value["opts"]
1296
+ kid: value["kid"],
1297
+ key: JwkToJSON(value["key"]),
1298
+ signatureAlgorithm: SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
1299
+ keyVisibility: KeyVisibilityToJSON(value["keyVisibility"]),
1300
+ x5c: value["x5c"],
1301
+ alias: value["alias"],
1302
+ providerId: value["providerId"],
1303
+ keyType: KeyTypeToJSON(value["keyType"]),
1304
+ keyEncoding: KeyEncodingToJSON(value["keyEncoding"]),
1305
+ opts: value["opts"]
1425
1306
  };
1426
1307
  }
1427
1308
  __name(KeyInfoToJSONTyped, "KeyInfoToJSONTyped");
@@ -1432,8 +1313,8 @@ function CreateRawSignatureToJSONTyped(value, ignoreDiscriminator = false) {
1432
1313
  return value;
1433
1314
  }
1434
1315
  return {
1435
- "keyInfo": KeyInfoToJSON(value["keyInfo"]),
1436
- "input": value["input"]
1316
+ keyInfo: KeyInfoToJSON(value["keyInfo"]),
1317
+ input: value["input"]
1437
1318
  };
1438
1319
  }
1439
1320
  __name(CreateRawSignatureToJSONTyped, "CreateRawSignatureToJSONTyped");
@@ -1444,7 +1325,7 @@ function CreateRawSignatureResponseFromJSONTyped(json, ignoreDiscriminator) {
1444
1325
  return json;
1445
1326
  }
1446
1327
  return {
1447
- "signature": json["signature"]
1328
+ signature: json["signature"]
1448
1329
  };
1449
1330
  }
1450
1331
  __name(CreateRawSignatureResponseFromJSONTyped, "CreateRawSignatureResponseFromJSONTyped");
@@ -1455,10 +1336,10 @@ function GenerateKeyToJSONTyped(value, ignoreDiscriminator = false) {
1455
1336
  return value;
1456
1337
  }
1457
1338
  return {
1458
- "alias": value["alias"],
1459
- "use": JwkUseToJSON(value["use"]),
1460
- "keyOperations": value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON),
1461
- "alg": SignatureAlgorithmToJSON(value["alg"])
1339
+ alias: value["alias"],
1340
+ use: JwkUseToJSON(value["use"]),
1341
+ keyOperations: value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON),
1342
+ alg: SignatureAlgorithmToJSON(value["alg"])
1462
1343
  };
1463
1344
  }
1464
1345
  __name(GenerateKeyToJSONTyped, "GenerateKeyToJSONTyped");
@@ -1469,11 +1350,11 @@ function GenerateKeyGlobalToJSONTyped(value, ignoreDiscriminator = false) {
1469
1350
  return value;
1470
1351
  }
1471
1352
  return {
1472
- "alias": value["alias"],
1473
- "use": JwkUseToJSON(value["use"]),
1474
- "keyOperations": value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON),
1475
- "alg": SignatureAlgorithmToJSON(value["alg"]),
1476
- "providerId": value["providerId"]
1353
+ alias: value["alias"],
1354
+ use: JwkUseToJSON(value["use"]),
1355
+ keyOperations: value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON),
1356
+ alg: SignatureAlgorithmToJSON(value["alg"]),
1357
+ providerId: value["providerId"]
1477
1358
  };
1478
1359
  }
1479
1360
  __name(GenerateKeyGlobalToJSONTyped, "GenerateKeyGlobalToJSONTyped");
@@ -1488,8 +1369,8 @@ function JoseKeyPairFromJSONTyped(json, ignoreDiscriminator) {
1488
1369
  return json;
1489
1370
  }
1490
1371
  return {
1491
- "privateJwk": json["privateJwk"] == null ? void 0 : JwkFromJSON(json["privateJwk"]),
1492
- "publicJwk": JwkFromJSON(json["publicJwk"])
1372
+ privateJwk: json["privateJwk"] == null ? void 0 : JwkFromJSON(json["privateJwk"]),
1373
+ publicJwk: JwkFromJSON(json["publicJwk"])
1493
1374
  };
1494
1375
  }
1495
1376
  __name(JoseKeyPairFromJSONTyped, "JoseKeyPairFromJSONTyped");
@@ -1500,11 +1381,11 @@ function ManagedKeyPairFromJSONTyped(json, ignoreDiscriminator) {
1500
1381
  return json;
1501
1382
  }
1502
1383
  return {
1503
- "kid": json["kid"] == null ? void 0 : json["kid"],
1504
- "providerId": json["providerId"],
1505
- "alias": json["alias"],
1506
- "cose": CoseKeyPairFromJSON(json["cose"]),
1507
- "jose": JoseKeyPairFromJSON(json["jose"])
1384
+ kid: json["kid"] == null ? void 0 : json["kid"],
1385
+ providerId: json["providerId"],
1386
+ alias: json["alias"],
1387
+ cose: CoseKeyPairFromJSON(json["cose"]),
1388
+ jose: JoseKeyPairFromJSON(json["jose"])
1508
1389
  };
1509
1390
  }
1510
1391
  __name(ManagedKeyPairFromJSONTyped, "ManagedKeyPairFromJSONTyped");
@@ -1519,16 +1400,16 @@ function ManagedKeyInfoFromJSONTyped(json, ignoreDiscriminator) {
1519
1400
  return json;
1520
1401
  }
1521
1402
  return {
1522
- "kid": json["kid"] == null ? void 0 : json["kid"],
1523
- "key": JwkFromJSON(json["key"]),
1524
- "signatureAlgorithm": json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
1525
- "keyVisibility": json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
1526
- "x5c": json["x5c"] == null ? void 0 : json["x5c"],
1527
- "alias": json["alias"],
1528
- "providerId": json["providerId"],
1529
- "keyType": json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
1530
- "keyEncoding": json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
1531
- "opts": json["opts"] == null ? void 0 : json["opts"]
1403
+ kid: json["kid"] == null ? void 0 : json["kid"],
1404
+ key: JwkFromJSON(json["key"]),
1405
+ signatureAlgorithm: json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
1406
+ keyVisibility: json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
1407
+ x5c: json["x5c"] == null ? void 0 : json["x5c"],
1408
+ alias: json["alias"],
1409
+ providerId: json["providerId"],
1410
+ keyType: json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
1411
+ keyEncoding: json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
1412
+ opts: json["opts"] == null ? void 0 : json["opts"]
1532
1413
  };
1533
1414
  }
1534
1415
  __name(ManagedKeyInfoFromJSONTyped, "ManagedKeyInfoFromJSONTyped");
@@ -1557,8 +1438,8 @@ function KeyProviderFromJSONTyped(json, ignoreDiscriminator) {
1557
1438
  return json;
1558
1439
  }
1559
1440
  return {
1560
- "providerId": json["providerId"],
1561
- "type": KeyProviderTypeFromJSON(json["type"])
1441
+ providerId: json["providerId"],
1442
+ type: KeyProviderTypeFromJSON(json["type"])
1562
1443
  };
1563
1444
  }
1564
1445
  __name(KeyProviderFromJSONTyped, "KeyProviderFromJSONTyped");
@@ -1569,8 +1450,8 @@ function KeyProviderResponseFromJSONTyped(json, ignoreDiscriminator) {
1569
1450
  return json;
1570
1451
  }
1571
1452
  return {
1572
- "providerId": json["providerId"],
1573
- "type": KeyProviderTypeFromJSON(json["type"])
1453
+ providerId: json["providerId"],
1454
+ type: KeyProviderTypeFromJSON(json["type"])
1574
1455
  };
1575
1456
  }
1576
1457
  __name(KeyProviderResponseFromJSONTyped, "KeyProviderResponseFromJSONTyped");
@@ -1581,7 +1462,7 @@ function ListKeyProvidersResponseFromJSONTyped(json, ignoreDiscriminator) {
1581
1462
  return json;
1582
1463
  }
1583
1464
  return {
1584
- "providers": json["providers"].map(KeyProviderFromJSON)
1465
+ providers: json["providers"].map(KeyProviderFromJSON)
1585
1466
  };
1586
1467
  }
1587
1468
  __name(ListKeyProvidersResponseFromJSONTyped, "ListKeyProvidersResponseFromJSONTyped");
@@ -1592,7 +1473,7 @@ function ListKeysResponseFromJSONTyped(json, ignoreDiscriminator) {
1592
1473
  return json;
1593
1474
  }
1594
1475
  return {
1595
- "keyInfos": json["keyInfos"].map(ManagedKeyInfoFromJSON)
1476
+ keyInfos: json["keyInfos"].map(ManagedKeyInfoFromJSON)
1596
1477
  };
1597
1478
  }
1598
1479
  __name(ListKeysResponseFromJSONTyped, "ListKeysResponseFromJSONTyped");
@@ -1607,9 +1488,9 @@ function ResolverFromJSONTyped(json, ignoreDiscriminator) {
1607
1488
  return json;
1608
1489
  }
1609
1490
  return {
1610
- "resolverId": json["resolverId"],
1611
- "supportedIdentifierMethods": json["supportedIdentifierMethods"] == null ? void 0 : json["supportedIdentifierMethods"].map(IdentifierMethodFromJSON),
1612
- "supportedKeyTypes": json["supportedKeyTypes"] == null ? void 0 : json["supportedKeyTypes"].map(KeyTypeFromJSON)
1491
+ resolverId: json["resolverId"],
1492
+ supportedIdentifierMethods: json["supportedIdentifierMethods"] == null ? void 0 : json["supportedIdentifierMethods"].map(IdentifierMethodFromJSON),
1493
+ supportedKeyTypes: json["supportedKeyTypes"] == null ? void 0 : json["supportedKeyTypes"].map(KeyTypeFromJSON)
1613
1494
  };
1614
1495
  }
1615
1496
  __name(ResolverFromJSONTyped, "ResolverFromJSONTyped");
@@ -1620,7 +1501,7 @@ function ListResolversResponseFromJSONTyped(json, ignoreDiscriminator) {
1620
1501
  return json;
1621
1502
  }
1622
1503
  return {
1623
- "resolvers": json["resolvers"].map(ResolverFromJSON)
1504
+ resolvers: json["resolvers"].map(ResolverFromJSON)
1624
1505
  };
1625
1506
  }
1626
1507
  __name(ListResolversResponseFromJSONTyped, "ListResolversResponseFromJSONTyped");
@@ -1631,10 +1512,10 @@ function ResolvePublicKeyToJSONTyped(value, ignoreDiscriminator = false) {
1631
1512
  return value;
1632
1513
  }
1633
1514
  return {
1634
- "keyInfo": KeyInfoToJSON(value["keyInfo"]),
1635
- "identifierMethod": IdentifierMethodToJSON(value["identifierMethod"]),
1636
- "trustedCerts": value["trustedCerts"],
1637
- "verifyX509CertificateChain": value["verifyX509CertificateChain"]
1515
+ keyInfo: KeyInfoToJSON(value["keyInfo"]),
1516
+ identifierMethod: IdentifierMethodToJSON(value["identifierMethod"]),
1517
+ trustedCerts: value["trustedCerts"],
1518
+ verifyX509CertificateChain: value["verifyX509CertificateChain"]
1638
1519
  };
1639
1520
  }
1640
1521
  __name(ResolvePublicKeyToJSONTyped, "ResolvePublicKeyToJSONTyped");
@@ -1645,16 +1526,16 @@ function ResolvedKeyInfoFromJSONTyped(json, ignoreDiscriminator) {
1645
1526
  return json;
1646
1527
  }
1647
1528
  return {
1648
- "kid": json["kid"] == null ? void 0 : json["kid"],
1649
- "key": JwkFromJSON(json["key"]),
1650
- "signatureAlgorithm": json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
1651
- "keyVisibility": json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
1652
- "x5c": json["x5c"] == null ? void 0 : json["x5c"],
1653
- "alias": json["alias"] == null ? void 0 : json["alias"],
1654
- "providerId": json["providerId"] == null ? void 0 : json["providerId"],
1655
- "keyType": json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
1656
- "keyEncoding": json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
1657
- "opts": json["opts"] == null ? void 0 : json["opts"]
1529
+ kid: json["kid"] == null ? void 0 : json["kid"],
1530
+ key: JwkFromJSON(json["key"]),
1531
+ signatureAlgorithm: json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
1532
+ keyVisibility: json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
1533
+ x5c: json["x5c"] == null ? void 0 : json["x5c"],
1534
+ alias: json["alias"] == null ? void 0 : json["alias"],
1535
+ providerId: json["providerId"] == null ? void 0 : json["providerId"],
1536
+ keyType: json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
1537
+ keyEncoding: json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
1538
+ opts: json["opts"] == null ? void 0 : json["opts"]
1658
1539
  };
1659
1540
  }
1660
1541
  __name(ResolvedKeyInfoFromJSONTyped, "ResolvedKeyInfoFromJSONTyped");
@@ -1667,16 +1548,16 @@ function ResolvedKeyInfoToJSONTyped(value, ignoreDiscriminator = false) {
1667
1548
  return value;
1668
1549
  }
1669
1550
  return {
1670
- "kid": value["kid"],
1671
- "key": JwkToJSON(value["key"]),
1672
- "signatureAlgorithm": SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
1673
- "keyVisibility": KeyVisibilityToJSON(value["keyVisibility"]),
1674
- "x5c": value["x5c"],
1675
- "alias": value["alias"],
1676
- "providerId": value["providerId"],
1677
- "keyType": KeyTypeToJSON(value["keyType"]),
1678
- "keyEncoding": KeyEncodingToJSON(value["keyEncoding"]),
1679
- "opts": value["opts"]
1551
+ kid: value["kid"],
1552
+ key: JwkToJSON(value["key"]),
1553
+ signatureAlgorithm: SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
1554
+ keyVisibility: KeyVisibilityToJSON(value["keyVisibility"]),
1555
+ x5c: value["x5c"],
1556
+ alias: value["alias"],
1557
+ providerId: value["providerId"],
1558
+ keyType: KeyTypeToJSON(value["keyType"]),
1559
+ keyEncoding: KeyEncodingToJSON(value["keyEncoding"]),
1560
+ opts: value["opts"]
1680
1561
  };
1681
1562
  }
1682
1563
  __name(ResolvedKeyInfoToJSONTyped, "ResolvedKeyInfoToJSONTyped");
@@ -1687,8 +1568,8 @@ function StoreKeyToJSONTyped(value, ignoreDiscriminator = false) {
1687
1568
  return value;
1688
1569
  }
1689
1570
  return {
1690
- "keyInfo": ResolvedKeyInfoToJSON(value["keyInfo"]),
1691
- "certChain": value["certChain"]
1571
+ keyInfo: ResolvedKeyInfoToJSON(value["keyInfo"]),
1572
+ certChain: value["certChain"]
1692
1573
  };
1693
1574
  }
1694
1575
  __name(StoreKeyToJSONTyped, "StoreKeyToJSONTyped");
@@ -1699,9 +1580,9 @@ function VerifyRawSignatureToJSONTyped(value, ignoreDiscriminator = false) {
1699
1580
  return value;
1700
1581
  }
1701
1582
  return {
1702
- "keyInfo": KeyInfoToJSON(value["keyInfo"]),
1703
- "input": value["input"],
1704
- "signature": value["signature"]
1583
+ keyInfo: KeyInfoToJSON(value["keyInfo"]),
1584
+ input: value["input"],
1585
+ signature: value["signature"]
1705
1586
  };
1706
1587
  }
1707
1588
  __name(VerifyRawSignatureToJSONTyped, "VerifyRawSignatureToJSONTyped");
@@ -1712,7 +1593,7 @@ function VerifyRawSignatureResponseFromJSONTyped(json, ignoreDiscriminator) {
1712
1593
  return json;
1713
1594
  }
1714
1595
  return {
1715
- "isValid": json["isValid"]
1596
+ isValid: json["isValid"]
1716
1597
  };
1717
1598
  }
1718
1599
  __name(VerifyRawSignatureResponseFromJSONTyped, "VerifyRawSignatureResponseFromJSONTyped");