@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.js CHANGED
@@ -26,10 +26,7 @@ var require_plugin_schema = __commonJS({
26
26
  type: "string"
27
27
  }
28
28
  },
29
- required: [
30
- "input",
31
- "keyInfo"
32
- ]
29
+ required: ["input", "keyInfo"]
33
30
  },
34
31
  KeyInfo: {
35
32
  type: "object",
@@ -170,56 +167,28 @@ var require_plugin_schema = __commonJS({
170
167
  description: "X.509 certificate SHA-256 thumbprint (base64url-encoded)."
171
168
  }
172
169
  },
173
- required: [
174
- "kty"
175
- ],
170
+ required: ["kty"],
176
171
  additionalProperties: false,
177
172
  description: "Represents a JSON Web Key (JWK) as defined by the JSON Web Key specification."
178
173
  },
179
174
  JwkKeyType: {
180
175
  type: "string",
181
- enum: [
182
- "EC",
183
- "RSA",
184
- "OKP",
185
- "oct"
186
- ],
176
+ enum: ["EC", "RSA", "OKP", "oct"],
187
177
  description: "JSON Web Key (JWK) key type parameter identifying the cryptographic algorithm family."
188
178
  },
189
179
  JwkUse: {
190
180
  type: "string",
191
- enum: [
192
- "sig",
193
- "enc"
194
- ],
181
+ enum: ["sig", "enc"],
195
182
  description: "Intended use of the key (signing or encryption)."
196
183
  },
197
184
  KeyOperations: {
198
185
  type: "string",
199
- enum: [
200
- "sign",
201
- "verify",
202
- "encrypt",
203
- "decrypt",
204
- "wrapKey",
205
- "unwrapKey",
206
- "deriveKey",
207
- "deriveBits"
208
- ],
186
+ enum: ["sign", "verify", "encrypt", "decrypt", "wrapKey", "unwrapKey", "deriveKey", "deriveBits"],
209
187
  description: "Specific operations the key is intended for."
210
188
  },
211
189
  Curve: {
212
190
  type: "string",
213
- enum: [
214
- "P-256",
215
- "P-384",
216
- "P-521",
217
- "secp256k1",
218
- "Ed25519",
219
- "Ed448",
220
- "X25519",
221
- "X448"
222
- ],
191
+ enum: ["P-256", "P-384", "P-521", "secp256k1", "Ed25519", "Ed448", "X25519", "X448"],
223
192
  description: "Elliptic curve identifier."
224
193
  },
225
194
  SignatureAlgorithm: {
@@ -242,27 +211,17 @@ var require_plugin_schema = __commonJS({
242
211
  },
243
212
  KeyVisibility: {
244
213
  type: "string",
245
- enum: [
246
- "PUBLIC",
247
- "PRIVATE"
248
- ],
214
+ enum: ["PUBLIC", "PRIVATE"],
249
215
  description: "Indicates the visibility status of a cryptographic key."
250
216
  },
251
217
  KeyType: {
252
218
  type: "string",
253
- enum: [
254
- "OKP",
255
- "EC",
256
- "RSA"
257
- ],
219
+ enum: ["OKP", "EC", "RSA"],
258
220
  description: "Cryptographic key type identifier."
259
221
  },
260
222
  KeyEncoding: {
261
223
  type: "string",
262
- enum: [
263
- "COSE",
264
- "JOSE"
265
- ],
224
+ enum: ["COSE", "JOSE"],
266
225
  description: "The encoding format of the cryptographic key."
267
226
  },
268
227
  CreateRawSignatureResponse: {
@@ -273,9 +232,7 @@ var require_plugin_schema = __commonJS({
273
232
  description: "The created signature encoded as a base64 string."
274
233
  }
275
234
  },
276
- required: [
277
- "signature"
278
- ],
235
+ required: ["signature"],
279
236
  additionalProperties: false,
280
237
  description: "Response body containing the created signature."
281
238
  },
@@ -342,12 +299,7 @@ var require_plugin_schema = __commonJS({
342
299
  $ref: "#/components/schemas/JoseKeyPair"
343
300
  }
344
301
  },
345
- required: [
346
- "providerId",
347
- "alias",
348
- "cose",
349
- "jose"
350
- ],
302
+ required: ["providerId", "alias", "cose", "jose"],
351
303
  additionalProperties: false,
352
304
  description: "Represents a key pair used by a crypto provider, encapsulating both JOSE and COSE key pairs."
353
305
  },
@@ -361,9 +313,7 @@ var require_plugin_schema = __commonJS({
361
313
  $ref: "#/components/schemas/CoseKey"
362
314
  }
363
315
  },
364
- required: [
365
- "publicCoseKey"
366
- ],
316
+ required: ["publicCoseKey"],
367
317
  additionalProperties: false,
368
318
  description: "Represents a cryptographic key pair for COSE (CBOR Object Signing and Encryption) operations."
369
319
  },
@@ -416,20 +366,13 @@ var require_plugin_schema = __commonJS({
416
366
  description: "X.509 certificate chain as base64-encoded certificates."
417
367
  }
418
368
  },
419
- required: [
420
- "kty"
421
- ],
369
+ required: ["kty"],
422
370
  additionalProperties: false,
423
371
  description: "Represents a COSE (CBOR Object Signing and Encryption) key in JSON format."
424
372
  },
425
373
  CoseKeyType: {
426
374
  type: "number",
427
- enum: [
428
- 1,
429
- 2,
430
- 3,
431
- 4
432
- ],
375
+ enum: [1, 2, 3, 4],
433
376
  description: "COSE key type parameter. 1=OKP (Octet Key Pair), 2=EC2 (Elliptic Curve), 3=RSA, 4=Symmetric."
434
377
  },
435
378
  JoseKeyPair: {
@@ -442,9 +385,7 @@ var require_plugin_schema = __commonJS({
442
385
  $ref: "#/components/schemas/Jwk"
443
386
  }
444
387
  },
445
- required: [
446
- "publicJwk"
447
- ],
388
+ required: ["publicJwk"],
448
389
  additionalProperties: false,
449
390
  description: "Data class representing a cryptographic key pair used with JOSE (JSON Object Signing and Encryption)."
450
391
  },
@@ -458,9 +399,7 @@ var require_plugin_schema = __commonJS({
458
399
  type: "string"
459
400
  }
460
401
  },
461
- required: [
462
- "aliasOrKid"
463
- ],
402
+ required: ["aliasOrKid"],
464
403
  additionalProperties: false
465
404
  },
466
405
  ManagedKeyInfo: {
@@ -508,11 +447,7 @@ var require_plugin_schema = __commonJS({
508
447
  description: "Additional configuration options as key-value pairs."
509
448
  }
510
449
  },
511
- required: [
512
- "key",
513
- "alias",
514
- "providerId"
515
- ],
450
+ required: ["key", "alias", "providerId"],
516
451
  additionalProperties: false,
517
452
  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."
518
453
  },
@@ -539,20 +474,13 @@ var require_plugin_schema = __commonJS({
539
474
  $ref: "#/components/schemas/KeyProviderType"
540
475
  }
541
476
  },
542
- required: [
543
- "providerId",
544
- "type"
545
- ],
477
+ required: ["providerId", "type"],
546
478
  additionalProperties: false,
547
479
  description: "Response body containing the details of a Key Provider instance."
548
480
  },
549
481
  KeyProviderType: {
550
482
  type: "string",
551
- enum: [
552
- "SOFTWARE",
553
- "AZURE_KEYVAULT",
554
- "AWS_KMS"
555
- ],
483
+ enum: ["SOFTWARE", "AZURE_KEYVAULT", "AWS_KMS"],
556
484
  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."
557
485
  },
558
486
  kmsGetResolverArgs: {
@@ -565,9 +493,7 @@ var require_plugin_schema = __commonJS({
565
493
  type: "string"
566
494
  }
567
495
  },
568
- required: [
569
- "resolverId"
570
- ],
496
+ required: ["resolverId"],
571
497
  additionalProperties: false
572
498
  },
573
499
  Resolver: {
@@ -592,21 +518,13 @@ var require_plugin_schema = __commonJS({
592
518
  description: "List of key types supported by this resolver."
593
519
  }
594
520
  },
595
- required: [
596
- "resolverId"
597
- ],
521
+ required: ["resolverId"],
598
522
  additionalProperties: false,
599
523
  description: "Represents a key resolver configuration."
600
524
  },
601
525
  IdentifierMethod: {
602
526
  type: "string",
603
- enum: [
604
- "JWK",
605
- "KID",
606
- "COSE_KEY",
607
- "X5C",
608
- "DID"
609
- ],
527
+ enum: ["JWK", "KID", "COSE_KEY", "X5C", "DID"],
610
528
  description: "Method used to identify cryptographic keys."
611
529
  },
612
530
  KmsIsValidRawSignatureArgs: {
@@ -626,11 +544,7 @@ var require_plugin_schema = __commonJS({
626
544
  type: "string"
627
545
  }
628
546
  },
629
- required: [
630
- "input",
631
- "keyInfo",
632
- "signature"
633
- ]
547
+ required: ["input", "keyInfo", "signature"]
634
548
  },
635
549
  VerifyRawSignatureResponse: {
636
550
  type: "object",
@@ -640,9 +554,7 @@ var require_plugin_schema = __commonJS({
640
554
  description: "Indicates whether the signature is valid or not."
641
555
  }
642
556
  },
643
- required: [
644
- "isValid"
645
- ],
557
+ required: ["isValid"],
646
558
  additionalProperties: false,
647
559
  description: "Response body containing the details of the signature verification."
648
560
  },
@@ -665,9 +577,7 @@ var require_plugin_schema = __commonJS({
665
577
  }
666
578
  }
667
579
  },
668
- required: [
669
- "providers"
670
- ],
580
+ required: ["providers"],
671
581
  additionalProperties: false,
672
582
  description: "Response body containing the details of a Key Provider instance."
673
583
  },
@@ -682,10 +592,7 @@ var require_plugin_schema = __commonJS({
682
592
  $ref: "#/components/schemas/KeyProviderType"
683
593
  }
684
594
  },
685
- required: [
686
- "providerId",
687
- "type"
688
- ],
595
+ required: ["providerId", "type"],
689
596
  additionalProperties: false,
690
597
  description: "Response body containing the details of a Key Provider instance."
691
598
  },
@@ -711,9 +618,7 @@ var require_plugin_schema = __commonJS({
711
618
  }
712
619
  }
713
620
  },
714
- required: [
715
- "keyInfos"
716
- ],
621
+ required: ["keyInfos"],
717
622
  additionalProperties: false,
718
623
  description: "Response body containing all the managed keys."
719
624
  },
@@ -736,9 +641,7 @@ var require_plugin_schema = __commonJS({
736
641
  }
737
642
  }
738
643
  },
739
- required: [
740
- "resolvers"
741
- ],
644
+ required: ["resolvers"],
742
645
  additionalProperties: false,
743
646
  description: "Response body containing all the resolvers."
744
647
  },
@@ -755,10 +658,7 @@ var require_plugin_schema = __commonJS({
755
658
  type: "string"
756
659
  }
757
660
  },
758
- required: [
759
- "providerId",
760
- "aliasOrKid"
761
- ],
661
+ required: ["providerId", "aliasOrKid"],
762
662
  additionalProperties: false
763
663
  },
764
664
  KmsProviderGenerateKey: {
@@ -788,9 +688,7 @@ var require_plugin_schema = __commonJS({
788
688
  type: "string"
789
689
  }
790
690
  },
791
- required: [
792
- "providerId"
793
- ]
691
+ required: ["providerId"]
794
692
  },
795
693
  KmsProviderGetKeyArgs: {
796
694
  type: "object",
@@ -805,10 +703,7 @@ var require_plugin_schema = __commonJS({
805
703
  type: "string"
806
704
  }
807
705
  },
808
- required: [
809
- "providerId",
810
- "aliasOrKid"
811
- ],
706
+ required: ["providerId", "aliasOrKid"],
812
707
  additionalProperties: false
813
708
  },
814
709
  KmsProviderListKeysArgs: {
@@ -821,9 +716,7 @@ var require_plugin_schema = __commonJS({
821
716
  type: "string"
822
717
  }
823
718
  },
824
- required: [
825
- "providerId"
826
- ],
719
+ required: ["providerId"],
827
720
  additionalProperties: false
828
721
  },
829
722
  KmsProviderStoreKey: {
@@ -847,10 +740,7 @@ var require_plugin_schema = __commonJS({
847
740
  type: "string"
848
741
  }
849
742
  },
850
- required: [
851
- "keyInfo",
852
- "providerId"
853
- ]
743
+ required: ["keyInfo", "providerId"]
854
744
  },
855
745
  ResolvedKeyInfo: {
856
746
  type: "object",
@@ -897,9 +787,7 @@ var require_plugin_schema = __commonJS({
897
787
  description: "Additional configuration options as key-value pairs."
898
788
  }
899
789
  },
900
- required: [
901
- "key"
902
- ],
790
+ required: ["key"],
903
791
  additionalProperties: false,
904
792
  description: "Represents a resolved cryptographic key information where the key is guaranteed to be present and resolved, providing concrete access to the key."
905
793
  },
@@ -931,10 +819,7 @@ var require_plugin_schema = __commonJS({
931
819
  $ref: "#/components/schemas/String"
932
820
  }
933
821
  },
934
- required: [
935
- "keyInfo",
936
- "resolverId"
937
- ]
822
+ required: ["keyInfo", "resolverId"]
938
823
  },
939
824
  String: {
940
825
  type: "object",
@@ -943,9 +828,7 @@ var require_plugin_schema = __commonJS({
943
828
  type: "number"
944
829
  }
945
830
  },
946
- required: [
947
- "length"
948
- ],
831
+ required: ["length"],
949
832
  additionalProperties: {
950
833
  type: "string"
951
834
  }
@@ -968,9 +851,7 @@ var require_plugin_schema = __commonJS({
968
851
  type: "string"
969
852
  }
970
853
  },
971
- required: [
972
- "keyInfo"
973
- ]
854
+ required: ["keyInfo"]
974
855
  }
975
856
  },
976
857
  methods: {
@@ -1158,16 +1039,16 @@ function CoseKeyFromJSONTyped(json, ignoreDiscriminator) {
1158
1039
  return json;
1159
1040
  }
1160
1041
  return {
1161
- "kty": CoseKeyTypeFromJSON(json["kty"]),
1162
- "kid": json["kid"] == null ? void 0 : json["kid"],
1163
- "alg": json["alg"] == null ? void 0 : json["alg"],
1164
- "keyOps": json["key_ops"] == null ? void 0 : json["key_ops"],
1165
- "baseIV": json["baseIV"] == null ? void 0 : json["baseIV"],
1166
- "crv": json["crv"] == null ? void 0 : json["crv"],
1167
- "x": json["x"] == null ? void 0 : json["x"],
1168
- "y": json["y"] == null ? void 0 : json["y"],
1169
- "d": json["d"] == null ? void 0 : json["d"],
1170
- "x5chain": json["x5chain"] == null ? void 0 : json["x5chain"]
1042
+ kty: CoseKeyTypeFromJSON(json["kty"]),
1043
+ kid: json["kid"] == null ? void 0 : json["kid"],
1044
+ alg: json["alg"] == null ? void 0 : json["alg"],
1045
+ keyOps: json["key_ops"] == null ? void 0 : json["key_ops"],
1046
+ baseIV: json["baseIV"] == null ? void 0 : json["baseIV"],
1047
+ crv: json["crv"] == null ? void 0 : json["crv"],
1048
+ x: json["x"] == null ? void 0 : json["x"],
1049
+ y: json["y"] == null ? void 0 : json["y"],
1050
+ d: json["d"] == null ? void 0 : json["d"],
1051
+ x5chain: json["x5chain"] == null ? void 0 : json["x5chain"]
1171
1052
  };
1172
1053
  }
1173
1054
  __name(CoseKeyFromJSONTyped, "CoseKeyFromJSONTyped");
@@ -1182,8 +1063,8 @@ function CoseKeyPairFromJSONTyped(json, ignoreDiscriminator) {
1182
1063
  return json;
1183
1064
  }
1184
1065
  return {
1185
- "privateCoseKey": json["privateCoseKey"] == null ? void 0 : CoseKeyFromJSON(json["privateCoseKey"]),
1186
- "publicCoseKey": CoseKeyFromJSON(json["publicCoseKey"])
1066
+ privateCoseKey: json["privateCoseKey"] == null ? void 0 : CoseKeyFromJSON(json["privateCoseKey"]),
1067
+ publicCoseKey: CoseKeyFromJSON(json["publicCoseKey"])
1187
1068
  };
1188
1069
  }
1189
1070
  __name(CoseKeyPairFromJSONTyped, "CoseKeyPairFromJSONTyped");
@@ -1320,27 +1201,27 @@ function JwkFromJSONTyped(json, ignoreDiscriminator) {
1320
1201
  return json;
1321
1202
  }
1322
1203
  return {
1323
- "kty": JwkKeyTypeFromJSON(json["kty"]),
1324
- "kid": json["kid"] == null ? void 0 : json["kid"],
1325
- "alg": json["alg"] == null ? void 0 : json["alg"],
1326
- "use": json["use"] == null ? void 0 : JwkUseFromJSON(json["use"]),
1327
- "keyOps": json["key_ops"] == null ? void 0 : json["key_ops"].map(KeyOperationsFromJSON),
1328
- "crv": json["crv"] == null ? void 0 : CurveFromJSON(json["crv"]),
1329
- "x": json["x"] == null ? void 0 : json["x"],
1330
- "y": json["y"] == null ? void 0 : json["y"],
1331
- "d": json["d"] == null ? void 0 : json["d"],
1332
- "n": json["n"] == null ? void 0 : json["n"],
1333
- "e": json["e"] == null ? void 0 : json["e"],
1334
- "p": json["p"] == null ? void 0 : json["p"],
1335
- "q": json["q"] == null ? void 0 : json["q"],
1336
- "dp": json["dp"] == null ? void 0 : json["dp"],
1337
- "dq": json["dq"] == null ? void 0 : json["dq"],
1338
- "qi": json["qi"] == null ? void 0 : json["qi"],
1339
- "k": json["k"] == null ? void 0 : json["k"],
1340
- "x5c": json["x5c"] == null ? void 0 : json["x5c"],
1341
- "x5t": json["x5t"] == null ? void 0 : json["x5t"],
1342
- "x5u": json["x5u"] == null ? void 0 : json["x5u"],
1343
- "x5tS256": json["x5t#S256"] == null ? void 0 : json["x5t#S256"]
1204
+ kty: JwkKeyTypeFromJSON(json["kty"]),
1205
+ kid: json["kid"] == null ? void 0 : json["kid"],
1206
+ alg: json["alg"] == null ? void 0 : json["alg"],
1207
+ use: json["use"] == null ? void 0 : JwkUseFromJSON(json["use"]),
1208
+ keyOps: json["key_ops"] == null ? void 0 : json["key_ops"].map(KeyOperationsFromJSON),
1209
+ crv: json["crv"] == null ? void 0 : CurveFromJSON(json["crv"]),
1210
+ x: json["x"] == null ? void 0 : json["x"],
1211
+ y: json["y"] == null ? void 0 : json["y"],
1212
+ d: json["d"] == null ? void 0 : json["d"],
1213
+ n: json["n"] == null ? void 0 : json["n"],
1214
+ e: json["e"] == null ? void 0 : json["e"],
1215
+ p: json["p"] == null ? void 0 : json["p"],
1216
+ q: json["q"] == null ? void 0 : json["q"],
1217
+ dp: json["dp"] == null ? void 0 : json["dp"],
1218
+ dq: json["dq"] == null ? void 0 : json["dq"],
1219
+ qi: json["qi"] == null ? void 0 : json["qi"],
1220
+ k: json["k"] == null ? void 0 : json["k"],
1221
+ x5c: json["x5c"] == null ? void 0 : json["x5c"],
1222
+ x5t: json["x5t"] == null ? void 0 : json["x5t"],
1223
+ x5u: json["x5u"] == null ? void 0 : json["x5u"],
1224
+ x5tS256: json["x5t#S256"] == null ? void 0 : json["x5t#S256"]
1344
1225
  };
1345
1226
  }
1346
1227
  __name(JwkFromJSONTyped, "JwkFromJSONTyped");
@@ -1353,26 +1234,26 @@ function JwkToJSONTyped(value, ignoreDiscriminator = false) {
1353
1234
  return value;
1354
1235
  }
1355
1236
  return {
1356
- "kty": JwkKeyTypeToJSON(value["kty"]),
1357
- "kid": value["kid"],
1358
- "alg": value["alg"],
1359
- "use": JwkUseToJSON(value["use"]),
1360
- "key_ops": value["keyOps"] == null ? void 0 : value["keyOps"].map(KeyOperationsToJSON),
1361
- "crv": CurveToJSON(value["crv"]),
1362
- "x": value["x"],
1363
- "y": value["y"],
1364
- "d": value["d"],
1365
- "n": value["n"],
1366
- "e": value["e"],
1367
- "p": value["p"],
1368
- "q": value["q"],
1369
- "dp": value["dp"],
1370
- "dq": value["dq"],
1371
- "qi": value["qi"],
1372
- "k": value["k"],
1373
- "x5c": value["x5c"],
1374
- "x5t": value["x5t"],
1375
- "x5u": value["x5u"],
1237
+ kty: JwkKeyTypeToJSON(value["kty"]),
1238
+ kid: value["kid"],
1239
+ alg: value["alg"],
1240
+ use: JwkUseToJSON(value["use"]),
1241
+ key_ops: value["keyOps"] == null ? void 0 : value["keyOps"].map(KeyOperationsToJSON),
1242
+ crv: CurveToJSON(value["crv"]),
1243
+ x: value["x"],
1244
+ y: value["y"],
1245
+ d: value["d"],
1246
+ n: value["n"],
1247
+ e: value["e"],
1248
+ p: value["p"],
1249
+ q: value["q"],
1250
+ dp: value["dp"],
1251
+ dq: value["dq"],
1252
+ qi: value["qi"],
1253
+ k: value["k"],
1254
+ x5c: value["x5c"],
1255
+ x5t: value["x5t"],
1256
+ x5u: value["x5u"],
1376
1257
  "x5t#S256": value["x5tS256"]
1377
1258
  };
1378
1259
  }
@@ -1388,16 +1269,16 @@ function KeyInfoToJSONTyped(value, ignoreDiscriminator = false) {
1388
1269
  return value;
1389
1270
  }
1390
1271
  return {
1391
- "kid": value["kid"],
1392
- "key": JwkToJSON(value["key"]),
1393
- "signatureAlgorithm": SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
1394
- "keyVisibility": KeyVisibilityToJSON(value["keyVisibility"]),
1395
- "x5c": value["x5c"],
1396
- "alias": value["alias"],
1397
- "providerId": value["providerId"],
1398
- "keyType": KeyTypeToJSON(value["keyType"]),
1399
- "keyEncoding": KeyEncodingToJSON(value["keyEncoding"]),
1400
- "opts": value["opts"]
1272
+ kid: value["kid"],
1273
+ key: JwkToJSON(value["key"]),
1274
+ signatureAlgorithm: SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
1275
+ keyVisibility: KeyVisibilityToJSON(value["keyVisibility"]),
1276
+ x5c: value["x5c"],
1277
+ alias: value["alias"],
1278
+ providerId: value["providerId"],
1279
+ keyType: KeyTypeToJSON(value["keyType"]),
1280
+ keyEncoding: KeyEncodingToJSON(value["keyEncoding"]),
1281
+ opts: value["opts"]
1401
1282
  };
1402
1283
  }
1403
1284
  __name(KeyInfoToJSONTyped, "KeyInfoToJSONTyped");
@@ -1408,8 +1289,8 @@ function CreateRawSignatureToJSONTyped(value, ignoreDiscriminator = false) {
1408
1289
  return value;
1409
1290
  }
1410
1291
  return {
1411
- "keyInfo": KeyInfoToJSON(value["keyInfo"]),
1412
- "input": value["input"]
1292
+ keyInfo: KeyInfoToJSON(value["keyInfo"]),
1293
+ input: value["input"]
1413
1294
  };
1414
1295
  }
1415
1296
  __name(CreateRawSignatureToJSONTyped, "CreateRawSignatureToJSONTyped");
@@ -1420,7 +1301,7 @@ function CreateRawSignatureResponseFromJSONTyped(json, ignoreDiscriminator) {
1420
1301
  return json;
1421
1302
  }
1422
1303
  return {
1423
- "signature": json["signature"]
1304
+ signature: json["signature"]
1424
1305
  };
1425
1306
  }
1426
1307
  __name(CreateRawSignatureResponseFromJSONTyped, "CreateRawSignatureResponseFromJSONTyped");
@@ -1431,10 +1312,10 @@ function GenerateKeyToJSONTyped(value, ignoreDiscriminator = false) {
1431
1312
  return value;
1432
1313
  }
1433
1314
  return {
1434
- "alias": value["alias"],
1435
- "use": JwkUseToJSON(value["use"]),
1436
- "keyOperations": value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON),
1437
- "alg": SignatureAlgorithmToJSON(value["alg"])
1315
+ alias: value["alias"],
1316
+ use: JwkUseToJSON(value["use"]),
1317
+ keyOperations: value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON),
1318
+ alg: SignatureAlgorithmToJSON(value["alg"])
1438
1319
  };
1439
1320
  }
1440
1321
  __name(GenerateKeyToJSONTyped, "GenerateKeyToJSONTyped");
@@ -1445,11 +1326,11 @@ function GenerateKeyGlobalToJSONTyped(value, ignoreDiscriminator = false) {
1445
1326
  return value;
1446
1327
  }
1447
1328
  return {
1448
- "alias": value["alias"],
1449
- "use": JwkUseToJSON(value["use"]),
1450
- "keyOperations": value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON),
1451
- "alg": SignatureAlgorithmToJSON(value["alg"]),
1452
- "providerId": value["providerId"]
1329
+ alias: value["alias"],
1330
+ use: JwkUseToJSON(value["use"]),
1331
+ keyOperations: value["keyOperations"] == null ? void 0 : value["keyOperations"].map(KeyOperationsToJSON),
1332
+ alg: SignatureAlgorithmToJSON(value["alg"]),
1333
+ providerId: value["providerId"]
1453
1334
  };
1454
1335
  }
1455
1336
  __name(GenerateKeyGlobalToJSONTyped, "GenerateKeyGlobalToJSONTyped");
@@ -1464,8 +1345,8 @@ function JoseKeyPairFromJSONTyped(json, ignoreDiscriminator) {
1464
1345
  return json;
1465
1346
  }
1466
1347
  return {
1467
- "privateJwk": json["privateJwk"] == null ? void 0 : JwkFromJSON(json["privateJwk"]),
1468
- "publicJwk": JwkFromJSON(json["publicJwk"])
1348
+ privateJwk: json["privateJwk"] == null ? void 0 : JwkFromJSON(json["privateJwk"]),
1349
+ publicJwk: JwkFromJSON(json["publicJwk"])
1469
1350
  };
1470
1351
  }
1471
1352
  __name(JoseKeyPairFromJSONTyped, "JoseKeyPairFromJSONTyped");
@@ -1476,11 +1357,11 @@ function ManagedKeyPairFromJSONTyped(json, ignoreDiscriminator) {
1476
1357
  return json;
1477
1358
  }
1478
1359
  return {
1479
- "kid": json["kid"] == null ? void 0 : json["kid"],
1480
- "providerId": json["providerId"],
1481
- "alias": json["alias"],
1482
- "cose": CoseKeyPairFromJSON(json["cose"]),
1483
- "jose": JoseKeyPairFromJSON(json["jose"])
1360
+ kid: json["kid"] == null ? void 0 : json["kid"],
1361
+ providerId: json["providerId"],
1362
+ alias: json["alias"],
1363
+ cose: CoseKeyPairFromJSON(json["cose"]),
1364
+ jose: JoseKeyPairFromJSON(json["jose"])
1484
1365
  };
1485
1366
  }
1486
1367
  __name(ManagedKeyPairFromJSONTyped, "ManagedKeyPairFromJSONTyped");
@@ -1495,16 +1376,16 @@ function ManagedKeyInfoFromJSONTyped(json, ignoreDiscriminator) {
1495
1376
  return json;
1496
1377
  }
1497
1378
  return {
1498
- "kid": json["kid"] == null ? void 0 : json["kid"],
1499
- "key": JwkFromJSON(json["key"]),
1500
- "signatureAlgorithm": json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
1501
- "keyVisibility": json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
1502
- "x5c": json["x5c"] == null ? void 0 : json["x5c"],
1503
- "alias": json["alias"],
1504
- "providerId": json["providerId"],
1505
- "keyType": json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
1506
- "keyEncoding": json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
1507
- "opts": json["opts"] == null ? void 0 : json["opts"]
1379
+ kid: json["kid"] == null ? void 0 : json["kid"],
1380
+ key: JwkFromJSON(json["key"]),
1381
+ signatureAlgorithm: json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
1382
+ keyVisibility: json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
1383
+ x5c: json["x5c"] == null ? void 0 : json["x5c"],
1384
+ alias: json["alias"],
1385
+ providerId: json["providerId"],
1386
+ keyType: json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
1387
+ keyEncoding: json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
1388
+ opts: json["opts"] == null ? void 0 : json["opts"]
1508
1389
  };
1509
1390
  }
1510
1391
  __name(ManagedKeyInfoFromJSONTyped, "ManagedKeyInfoFromJSONTyped");
@@ -1533,8 +1414,8 @@ function KeyProviderFromJSONTyped(json, ignoreDiscriminator) {
1533
1414
  return json;
1534
1415
  }
1535
1416
  return {
1536
- "providerId": json["providerId"],
1537
- "type": KeyProviderTypeFromJSON(json["type"])
1417
+ providerId: json["providerId"],
1418
+ type: KeyProviderTypeFromJSON(json["type"])
1538
1419
  };
1539
1420
  }
1540
1421
  __name(KeyProviderFromJSONTyped, "KeyProviderFromJSONTyped");
@@ -1545,8 +1426,8 @@ function KeyProviderResponseFromJSONTyped(json, ignoreDiscriminator) {
1545
1426
  return json;
1546
1427
  }
1547
1428
  return {
1548
- "providerId": json["providerId"],
1549
- "type": KeyProviderTypeFromJSON(json["type"])
1429
+ providerId: json["providerId"],
1430
+ type: KeyProviderTypeFromJSON(json["type"])
1550
1431
  };
1551
1432
  }
1552
1433
  __name(KeyProviderResponseFromJSONTyped, "KeyProviderResponseFromJSONTyped");
@@ -1557,7 +1438,7 @@ function ListKeyProvidersResponseFromJSONTyped(json, ignoreDiscriminator) {
1557
1438
  return json;
1558
1439
  }
1559
1440
  return {
1560
- "providers": json["providers"].map(KeyProviderFromJSON)
1441
+ providers: json["providers"].map(KeyProviderFromJSON)
1561
1442
  };
1562
1443
  }
1563
1444
  __name(ListKeyProvidersResponseFromJSONTyped, "ListKeyProvidersResponseFromJSONTyped");
@@ -1568,7 +1449,7 @@ function ListKeysResponseFromJSONTyped(json, ignoreDiscriminator) {
1568
1449
  return json;
1569
1450
  }
1570
1451
  return {
1571
- "keyInfos": json["keyInfos"].map(ManagedKeyInfoFromJSON)
1452
+ keyInfos: json["keyInfos"].map(ManagedKeyInfoFromJSON)
1572
1453
  };
1573
1454
  }
1574
1455
  __name(ListKeysResponseFromJSONTyped, "ListKeysResponseFromJSONTyped");
@@ -1583,9 +1464,9 @@ function ResolverFromJSONTyped(json, ignoreDiscriminator) {
1583
1464
  return json;
1584
1465
  }
1585
1466
  return {
1586
- "resolverId": json["resolverId"],
1587
- "supportedIdentifierMethods": json["supportedIdentifierMethods"] == null ? void 0 : json["supportedIdentifierMethods"].map(IdentifierMethodFromJSON),
1588
- "supportedKeyTypes": json["supportedKeyTypes"] == null ? void 0 : json["supportedKeyTypes"].map(KeyTypeFromJSON)
1467
+ resolverId: json["resolverId"],
1468
+ supportedIdentifierMethods: json["supportedIdentifierMethods"] == null ? void 0 : json["supportedIdentifierMethods"].map(IdentifierMethodFromJSON),
1469
+ supportedKeyTypes: json["supportedKeyTypes"] == null ? void 0 : json["supportedKeyTypes"].map(KeyTypeFromJSON)
1589
1470
  };
1590
1471
  }
1591
1472
  __name(ResolverFromJSONTyped, "ResolverFromJSONTyped");
@@ -1596,7 +1477,7 @@ function ListResolversResponseFromJSONTyped(json, ignoreDiscriminator) {
1596
1477
  return json;
1597
1478
  }
1598
1479
  return {
1599
- "resolvers": json["resolvers"].map(ResolverFromJSON)
1480
+ resolvers: json["resolvers"].map(ResolverFromJSON)
1600
1481
  };
1601
1482
  }
1602
1483
  __name(ListResolversResponseFromJSONTyped, "ListResolversResponseFromJSONTyped");
@@ -1607,10 +1488,10 @@ function ResolvePublicKeyToJSONTyped(value, ignoreDiscriminator = false) {
1607
1488
  return value;
1608
1489
  }
1609
1490
  return {
1610
- "keyInfo": KeyInfoToJSON(value["keyInfo"]),
1611
- "identifierMethod": IdentifierMethodToJSON(value["identifierMethod"]),
1612
- "trustedCerts": value["trustedCerts"],
1613
- "verifyX509CertificateChain": value["verifyX509CertificateChain"]
1491
+ keyInfo: KeyInfoToJSON(value["keyInfo"]),
1492
+ identifierMethod: IdentifierMethodToJSON(value["identifierMethod"]),
1493
+ trustedCerts: value["trustedCerts"],
1494
+ verifyX509CertificateChain: value["verifyX509CertificateChain"]
1614
1495
  };
1615
1496
  }
1616
1497
  __name(ResolvePublicKeyToJSONTyped, "ResolvePublicKeyToJSONTyped");
@@ -1621,16 +1502,16 @@ function ResolvedKeyInfoFromJSONTyped(json, ignoreDiscriminator) {
1621
1502
  return json;
1622
1503
  }
1623
1504
  return {
1624
- "kid": json["kid"] == null ? void 0 : json["kid"],
1625
- "key": JwkFromJSON(json["key"]),
1626
- "signatureAlgorithm": json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
1627
- "keyVisibility": json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
1628
- "x5c": json["x5c"] == null ? void 0 : json["x5c"],
1629
- "alias": json["alias"] == null ? void 0 : json["alias"],
1630
- "providerId": json["providerId"] == null ? void 0 : json["providerId"],
1631
- "keyType": json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
1632
- "keyEncoding": json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
1633
- "opts": json["opts"] == null ? void 0 : json["opts"]
1505
+ kid: json["kid"] == null ? void 0 : json["kid"],
1506
+ key: JwkFromJSON(json["key"]),
1507
+ signatureAlgorithm: json["signatureAlgorithm"] == null ? void 0 : SignatureAlgorithmFromJSON(json["signatureAlgorithm"]),
1508
+ keyVisibility: json["keyVisibility"] == null ? void 0 : KeyVisibilityFromJSON(json["keyVisibility"]),
1509
+ x5c: json["x5c"] == null ? void 0 : json["x5c"],
1510
+ alias: json["alias"] == null ? void 0 : json["alias"],
1511
+ providerId: json["providerId"] == null ? void 0 : json["providerId"],
1512
+ keyType: json["keyType"] == null ? void 0 : KeyTypeFromJSON(json["keyType"]),
1513
+ keyEncoding: json["keyEncoding"] == null ? void 0 : KeyEncodingFromJSON(json["keyEncoding"]),
1514
+ opts: json["opts"] == null ? void 0 : json["opts"]
1634
1515
  };
1635
1516
  }
1636
1517
  __name(ResolvedKeyInfoFromJSONTyped, "ResolvedKeyInfoFromJSONTyped");
@@ -1643,16 +1524,16 @@ function ResolvedKeyInfoToJSONTyped(value, ignoreDiscriminator = false) {
1643
1524
  return value;
1644
1525
  }
1645
1526
  return {
1646
- "kid": value["kid"],
1647
- "key": JwkToJSON(value["key"]),
1648
- "signatureAlgorithm": SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
1649
- "keyVisibility": KeyVisibilityToJSON(value["keyVisibility"]),
1650
- "x5c": value["x5c"],
1651
- "alias": value["alias"],
1652
- "providerId": value["providerId"],
1653
- "keyType": KeyTypeToJSON(value["keyType"]),
1654
- "keyEncoding": KeyEncodingToJSON(value["keyEncoding"]),
1655
- "opts": value["opts"]
1527
+ kid: value["kid"],
1528
+ key: JwkToJSON(value["key"]),
1529
+ signatureAlgorithm: SignatureAlgorithmToJSON(value["signatureAlgorithm"]),
1530
+ keyVisibility: KeyVisibilityToJSON(value["keyVisibility"]),
1531
+ x5c: value["x5c"],
1532
+ alias: value["alias"],
1533
+ providerId: value["providerId"],
1534
+ keyType: KeyTypeToJSON(value["keyType"]),
1535
+ keyEncoding: KeyEncodingToJSON(value["keyEncoding"]),
1536
+ opts: value["opts"]
1656
1537
  };
1657
1538
  }
1658
1539
  __name(ResolvedKeyInfoToJSONTyped, "ResolvedKeyInfoToJSONTyped");
@@ -1663,8 +1544,8 @@ function StoreKeyToJSONTyped(value, ignoreDiscriminator = false) {
1663
1544
  return value;
1664
1545
  }
1665
1546
  return {
1666
- "keyInfo": ResolvedKeyInfoToJSON(value["keyInfo"]),
1667
- "certChain": value["certChain"]
1547
+ keyInfo: ResolvedKeyInfoToJSON(value["keyInfo"]),
1548
+ certChain: value["certChain"]
1668
1549
  };
1669
1550
  }
1670
1551
  __name(StoreKeyToJSONTyped, "StoreKeyToJSONTyped");
@@ -1675,9 +1556,9 @@ function VerifyRawSignatureToJSONTyped(value, ignoreDiscriminator = false) {
1675
1556
  return value;
1676
1557
  }
1677
1558
  return {
1678
- "keyInfo": KeyInfoToJSON(value["keyInfo"]),
1679
- "input": value["input"],
1680
- "signature": value["signature"]
1559
+ keyInfo: KeyInfoToJSON(value["keyInfo"]),
1560
+ input: value["input"],
1561
+ signature: value["signature"]
1681
1562
  };
1682
1563
  }
1683
1564
  __name(VerifyRawSignatureToJSONTyped, "VerifyRawSignatureToJSONTyped");
@@ -1688,7 +1569,7 @@ function VerifyRawSignatureResponseFromJSONTyped(json, ignoreDiscriminator) {
1688
1569
  return json;
1689
1570
  }
1690
1571
  return {
1691
- "isValid": json["isValid"]
1572
+ isValid: json["isValid"]
1692
1573
  };
1693
1574
  }
1694
1575
  __name(VerifyRawSignatureResponseFromJSONTyped, "VerifyRawSignatureResponseFromJSONTyped");