@sphereon/ssi-sdk.kms-rest-client 0.34.1-next.299 → 0.34.1-next.322

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/dist/index.js CHANGED
@@ -6,7 +6,7 @@ var plugin_schema_default = {
6
6
  IKmsRestClient: {
7
7
  components: {
8
8
  schemas: {
9
- KmsCreateRawSignatureArgs: {
9
+ KmsClientCreateRawSignatureArgs: {
10
10
  type: "object",
11
11
  additionalProperties: false,
12
12
  properties: {
@@ -230,7 +230,7 @@ var plugin_schema_default = {
230
230
  additionalProperties: false,
231
231
  description: "Response body containing the created signature."
232
232
  },
233
- KmsDeleteKeyArgs: {
233
+ KmsClientDeleteKeyArgs: {
234
234
  type: "object",
235
235
  properties: {
236
236
  baseUrl: {
@@ -240,9 +240,10 @@ var plugin_schema_default = {
240
240
  type: "string"
241
241
  }
242
242
  },
243
+ required: ["aliasOrKid"],
243
244
  additionalProperties: false
244
245
  },
245
- KmsGenerateKeyArgs: {
246
+ KmsClientGenerateKeyArgs: {
246
247
  type: "object",
247
248
  additionalProperties: false,
248
249
  properties: {
@@ -271,6 +272,17 @@ var plugin_schema_default = {
271
272
  }
272
273
  }
273
274
  },
275
+ GenerateKeyResponse: {
276
+ type: "object",
277
+ properties: {
278
+ keyPair: {
279
+ $ref: "#/components/schemas/ManagedKeyPair"
280
+ }
281
+ },
282
+ required: ["keyPair"],
283
+ additionalProperties: false,
284
+ description: "Response body containing a generated key pair."
285
+ },
274
286
  ManagedKeyPair: {
275
287
  type: "object",
276
288
  properties: {
@@ -383,7 +395,7 @@ var plugin_schema_default = {
383
395
  additionalProperties: false,
384
396
  description: "Data class representing a cryptographic key pair used with JOSE (JSON Object Signing and Encryption)."
385
397
  },
386
- KmsGetKeyArgs: {
398
+ KmsClientGetKeyArgs: {
387
399
  type: "object",
388
400
  properties: {
389
401
  baseUrl: {
@@ -396,6 +408,17 @@ var plugin_schema_default = {
396
408
  required: ["aliasOrKid"],
397
409
  additionalProperties: false
398
410
  },
411
+ GetKeyResponse: {
412
+ type: "object",
413
+ properties: {
414
+ keyInfo: {
415
+ $ref: "#/components/schemas/ManagedKeyInfo"
416
+ }
417
+ },
418
+ required: ["keyInfo"],
419
+ additionalProperties: false,
420
+ description: "Response body containing a managed key."
421
+ },
399
422
  ManagedKeyInfo: {
400
423
  type: "object",
401
424
  properties: {
@@ -445,7 +468,7 @@ var plugin_schema_default = {
445
468
  additionalProperties: false,
446
469
  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."
447
470
  },
448
- KmsGetKeyProviderArgs: {
471
+ KmsClientGetKeyProviderArgs: {
449
472
  type: "object",
450
473
  properties: {
451
474
  baseUrl: {
@@ -455,6 +478,7 @@ var plugin_schema_default = {
455
478
  type: "string"
456
479
  }
457
480
  },
481
+ required: ["providerId"],
458
482
  additionalProperties: false
459
483
  },
460
484
  KeyProviderResponse: {
@@ -477,7 +501,7 @@ var plugin_schema_default = {
477
501
  enum: ["SOFTWARE", "AZURE_KEYVAULT", "AWS_KMS"],
478
502
  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."
479
503
  },
480
- kmsGetResolverArgs: {
504
+ kmsClientGetResolverArgs: {
481
505
  type: "object",
482
506
  properties: {
483
507
  baseUrl: {
@@ -521,7 +545,7 @@ var plugin_schema_default = {
521
545
  enum: ["JWK", "KID", "COSE_KEY", "X5C", "DID"],
522
546
  description: "Method used to identify cryptographic keys."
523
547
  },
524
- KmsIsValidRawSignatureArgs: {
548
+ KmsClientIsValidRawSignatureArgs: {
525
549
  type: "object",
526
550
  additionalProperties: false,
527
551
  properties: {
@@ -552,7 +576,7 @@ var plugin_schema_default = {
552
576
  additionalProperties: false,
553
577
  description: "Response body containing the details of the signature verification."
554
578
  },
555
- KmsListKeyProvidersArgs: {
579
+ KmsClientListKeyProvidersArgs: {
556
580
  type: "object",
557
581
  properties: {
558
582
  baseUrl: {
@@ -590,7 +614,7 @@ var plugin_schema_default = {
590
614
  additionalProperties: false,
591
615
  description: "Response body containing the details of a Key Provider instance."
592
616
  },
593
- KmsListKeysArgs: {
617
+ KmsClientListKeysArgs: {
594
618
  type: "object",
595
619
  properties: {
596
620
  baseUrl: {
@@ -616,7 +640,7 @@ var plugin_schema_default = {
616
640
  additionalProperties: false,
617
641
  description: "Response body containing all the managed keys."
618
642
  },
619
- KmsListResolversArgs: {
643
+ KmsClientListResolversArgs: {
620
644
  type: "object",
621
645
  properties: {
622
646
  baseUrl: {
@@ -639,7 +663,7 @@ var plugin_schema_default = {
639
663
  additionalProperties: false,
640
664
  description: "Response body containing all the resolvers."
641
665
  },
642
- KmsProviderDeleteKeyArgs: {
666
+ KmsClientProviderDeleteKeyArgs: {
643
667
  type: "object",
644
668
  properties: {
645
669
  baseUrl: {
@@ -655,7 +679,7 @@ var plugin_schema_default = {
655
679
  required: ["providerId", "aliasOrKid"],
656
680
  additionalProperties: false
657
681
  },
658
- KmsProviderGenerateKey: {
682
+ KmsClientProviderGenerateKeyArgs: {
659
683
  type: "object",
660
684
  additionalProperties: false,
661
685
  properties: {
@@ -684,7 +708,7 @@ var plugin_schema_default = {
684
708
  },
685
709
  required: ["providerId"]
686
710
  },
687
- KmsProviderGetKeyArgs: {
711
+ KmsClientProviderGetKeyArgs: {
688
712
  type: "object",
689
713
  properties: {
690
714
  baseUrl: {
@@ -700,7 +724,7 @@ var plugin_schema_default = {
700
724
  required: ["providerId", "aliasOrKid"],
701
725
  additionalProperties: false
702
726
  },
703
- KmsProviderListKeysArgs: {
727
+ KmsClientProviderListKeysArgs: {
704
728
  type: "object",
705
729
  properties: {
706
730
  baseUrl: {
@@ -713,7 +737,7 @@ var plugin_schema_default = {
713
737
  required: ["providerId"],
714
738
  additionalProperties: false
715
739
  },
716
- KmsProviderStoreKey: {
740
+ KmsClientProviderStoreKeyArgs: {
717
741
  type: "object",
718
742
  additionalProperties: false,
719
743
  properties: {
@@ -785,7 +809,18 @@ var plugin_schema_default = {
785
809
  additionalProperties: false,
786
810
  description: "Represents a resolved cryptographic key information where the key is guaranteed to be present and resolved, providing concrete access to the key."
787
811
  },
788
- KmsResolveKeyArgs: {
812
+ StoreKeyResponse: {
813
+ type: "object",
814
+ properties: {
815
+ keyInfo: {
816
+ $ref: "#/components/schemas/ManagedKeyInfo"
817
+ }
818
+ },
819
+ required: ["keyInfo"],
820
+ additionalProperties: false,
821
+ description: "Response body containing a stored key."
822
+ },
823
+ KmsClientResolveKeyArgs: {
789
824
  type: "object",
790
825
  additionalProperties: false,
791
826
  properties: {
@@ -827,7 +862,7 @@ var plugin_schema_default = {
827
862
  type: "string"
828
863
  }
829
864
  },
830
- KmsStoreKeyArgs: {
865
+ KmsClientStoreKeyArgs: {
831
866
  type: "object",
832
867
  additionalProperties: false,
833
868
  properties: {
@@ -849,157 +884,157 @@ var plugin_schema_default = {
849
884
  }
850
885
  },
851
886
  methods: {
852
- kmsCreateRawSignature: {
887
+ kmsClientCreateRawSignature: {
853
888
  description: "",
854
889
  arguments: {
855
- $ref: "#/components/schemas/KmsCreateRawSignatureArgs"
890
+ $ref: "#/components/schemas/KmsClientCreateRawSignatureArgs"
856
891
  },
857
892
  returnType: {
858
893
  $ref: "#/components/schemas/CreateRawSignatureResponse"
859
894
  }
860
895
  },
861
- kmsDeleteKey: {
896
+ kmsClientDeleteKey: {
862
897
  description: "",
863
898
  arguments: {
864
- $ref: "#/components/schemas/KmsDeleteKeyArgs"
899
+ $ref: "#/components/schemas/KmsClientDeleteKeyArgs"
865
900
  },
866
901
  returnType: {
867
902
  type: "boolean"
868
903
  }
869
904
  },
870
- kmsGenerateKey: {
905
+ kmsClientGenerateKey: {
871
906
  description: "",
872
907
  arguments: {
873
- $ref: "#/components/schemas/KmsGenerateKeyArgs"
908
+ $ref: "#/components/schemas/KmsClientGenerateKeyArgs"
874
909
  },
875
910
  returnType: {
876
- $ref: "#/components/schemas/ManagedKeyPair"
911
+ $ref: "#/components/schemas/GenerateKeyResponse"
877
912
  }
878
913
  },
879
- kmsGetKey: {
914
+ kmsClientGetKey: {
880
915
  description: "",
881
916
  arguments: {
882
- $ref: "#/components/schemas/KmsGetKeyArgs"
917
+ $ref: "#/components/schemas/KmsClientGetKeyArgs"
883
918
  },
884
919
  returnType: {
885
- $ref: "#/components/schemas/ManagedKeyInfo"
920
+ $ref: "#/components/schemas/GetKeyResponse"
886
921
  }
887
922
  },
888
- kmsGetKeyProvider: {
923
+ kmsClientGetKeyProvider: {
889
924
  description: "",
890
925
  arguments: {
891
- $ref: "#/components/schemas/KmsGetKeyProviderArgs"
926
+ $ref: "#/components/schemas/KmsClientGetKeyProviderArgs"
892
927
  },
893
928
  returnType: {
894
929
  $ref: "#/components/schemas/KeyProviderResponse"
895
930
  }
896
931
  },
897
- kmsGetResolver: {
932
+ kmsClientGetResolver: {
898
933
  description: "",
899
934
  arguments: {
900
- $ref: "#/components/schemas/kmsGetResolverArgs"
935
+ $ref: "#/components/schemas/kmsClientGetResolverArgs"
901
936
  },
902
937
  returnType: {
903
938
  $ref: "#/components/schemas/Resolver"
904
939
  }
905
940
  },
906
- kmsIsValidRawSignature: {
941
+ kmsClientIsValidRawSignature: {
907
942
  description: "",
908
943
  arguments: {
909
- $ref: "#/components/schemas/KmsIsValidRawSignatureArgs"
944
+ $ref: "#/components/schemas/KmsClientIsValidRawSignatureArgs"
910
945
  },
911
946
  returnType: {
912
947
  $ref: "#/components/schemas/VerifyRawSignatureResponse"
913
948
  }
914
949
  },
915
- kmsListKeyProviders: {
950
+ kmsClientListKeyProviders: {
916
951
  description: "",
917
952
  arguments: {
918
- $ref: "#/components/schemas/KmsListKeyProvidersArgs"
953
+ $ref: "#/components/schemas/KmsClientListKeyProvidersArgs"
919
954
  },
920
955
  returnType: {
921
956
  $ref: "#/components/schemas/ListKeyProvidersResponse"
922
957
  }
923
958
  },
924
- kmsListKeys: {
959
+ kmsClientListKeys: {
925
960
  description: "",
926
961
  arguments: {
927
- $ref: "#/components/schemas/KmsListKeysArgs"
962
+ $ref: "#/components/schemas/KmsClientListKeysArgs"
928
963
  },
929
964
  returnType: {
930
965
  $ref: "#/components/schemas/ListKeysResponse"
931
966
  }
932
967
  },
933
- kmsListResolvers: {
968
+ kmsClientListResolvers: {
934
969
  description: "",
935
970
  arguments: {
936
- $ref: "#/components/schemas/KmsListResolversArgs"
971
+ $ref: "#/components/schemas/KmsClientListResolversArgs"
937
972
  },
938
973
  returnType: {
939
974
  $ref: "#/components/schemas/ListResolversResponse"
940
975
  }
941
976
  },
942
- kmsProviderDeleteKey: {
977
+ kmsClientProviderDeleteKey: {
943
978
  description: "",
944
979
  arguments: {
945
- $ref: "#/components/schemas/KmsProviderDeleteKeyArgs"
980
+ $ref: "#/components/schemas/KmsClientProviderDeleteKeyArgs"
946
981
  },
947
982
  returnType: {
948
983
  type: "boolean"
949
984
  }
950
985
  },
951
- kmsProviderGenerateKey: {
986
+ kmsClientProviderGenerateKey: {
952
987
  description: "",
953
988
  arguments: {
954
- $ref: "#/components/schemas/KmsProviderGenerateKey"
989
+ $ref: "#/components/schemas/KmsClientProviderGenerateKeyArgs"
955
990
  },
956
991
  returnType: {
957
- $ref: "#/components/schemas/ManagedKeyPair"
992
+ $ref: "#/components/schemas/GenerateKeyResponse"
958
993
  }
959
994
  },
960
- kmsProviderGetKey: {
995
+ kmsClientProviderGetKey: {
961
996
  description: "",
962
997
  arguments: {
963
- $ref: "#/components/schemas/KmsProviderGetKeyArgs"
998
+ $ref: "#/components/schemas/KmsClientProviderGetKeyArgs"
964
999
  },
965
1000
  returnType: {
966
- $ref: "#/components/schemas/ManagedKeyInfo"
1001
+ $ref: "#/components/schemas/GetKeyResponse"
967
1002
  }
968
1003
  },
969
- kmsProviderListKeys: {
1004
+ kmsClientProviderListKeys: {
970
1005
  description: "",
971
1006
  arguments: {
972
- $ref: "#/components/schemas/KmsProviderListKeysArgs"
1007
+ $ref: "#/components/schemas/KmsClientProviderListKeysArgs"
973
1008
  },
974
1009
  returnType: {
975
1010
  $ref: "#/components/schemas/ListKeysResponse"
976
1011
  }
977
1012
  },
978
- kmsProviderStoreKey: {
1013
+ kmsClientProviderStoreKey: {
979
1014
  description: "",
980
1015
  arguments: {
981
- $ref: "#/components/schemas/KmsProviderStoreKey"
1016
+ $ref: "#/components/schemas/KmsClientProviderStoreKeyArgs"
982
1017
  },
983
1018
  returnType: {
984
- $ref: "#/components/schemas/ManagedKeyInfo"
1019
+ $ref: "#/components/schemas/StoreKeyResponse"
985
1020
  }
986
1021
  },
987
- kmsResolveKey: {
1022
+ kmsClientResolveKey: {
988
1023
  description: "",
989
1024
  arguments: {
990
- $ref: "#/components/schemas/KmsResolveKeyArgs"
1025
+ $ref: "#/components/schemas/KmsClientResolveKeyArgs"
991
1026
  },
992
1027
  returnType: {
993
1028
  $ref: "#/components/schemas/ResolvedKeyInfo"
994
1029
  }
995
1030
  },
996
- kmsStoreKey: {
1031
+ kmsClientStoreKey: {
997
1032
  description: "",
998
1033
  arguments: {
999
- $ref: "#/components/schemas/KmsStoreKeyArgs"
1034
+ $ref: "#/components/schemas/KmsClientStoreKeyArgs"
1000
1035
  },
1001
1036
  returnType: {
1002
- $ref: "#/components/schemas/ManagedKeyInfo"
1037
+ $ref: "#/components/schemas/StoreKeyResponse"
1003
1038
  }
1004
1039
  }
1005
1040
  }
@@ -3513,7 +3548,8 @@ var KmsRestClient = class _KmsRestClient {
3513
3548
  const body = {
3514
3549
  alg: args.alg,
3515
3550
  keyOperations: args.keyOperations,
3516
- use: args.use
3551
+ use: args.use,
3552
+ alias: args.alias
3517
3553
  };
3518
3554
  const response = await fetch(url, {
3519
3555
  method: "POST",