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

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.cjs CHANGED
@@ -337,7 +337,7 @@ var plugin_schema_default = {
337
337
  IKmsRestClient: {
338
338
  components: {
339
339
  schemas: {
340
- KmsCreateRawSignatureArgs: {
340
+ KmsClientCreateRawSignatureArgs: {
341
341
  type: "object",
342
342
  additionalProperties: false,
343
343
  properties: {
@@ -561,7 +561,7 @@ var plugin_schema_default = {
561
561
  additionalProperties: false,
562
562
  description: "Response body containing the created signature."
563
563
  },
564
- KmsDeleteKeyArgs: {
564
+ KmsClientDeleteKeyArgs: {
565
565
  type: "object",
566
566
  properties: {
567
567
  baseUrl: {
@@ -571,9 +571,10 @@ var plugin_schema_default = {
571
571
  type: "string"
572
572
  }
573
573
  },
574
+ required: ["aliasOrKid"],
574
575
  additionalProperties: false
575
576
  },
576
- KmsGenerateKeyArgs: {
577
+ KmsClientGenerateKeyArgs: {
577
578
  type: "object",
578
579
  additionalProperties: false,
579
580
  properties: {
@@ -602,6 +603,17 @@ var plugin_schema_default = {
602
603
  }
603
604
  }
604
605
  },
606
+ GenerateKeyResponse: {
607
+ type: "object",
608
+ properties: {
609
+ keyPair: {
610
+ $ref: "#/components/schemas/ManagedKeyPair"
611
+ }
612
+ },
613
+ required: ["keyPair"],
614
+ additionalProperties: false,
615
+ description: "Response body containing a generated key pair."
616
+ },
605
617
  ManagedKeyPair: {
606
618
  type: "object",
607
619
  properties: {
@@ -714,7 +726,7 @@ var plugin_schema_default = {
714
726
  additionalProperties: false,
715
727
  description: "Data class representing a cryptographic key pair used with JOSE (JSON Object Signing and Encryption)."
716
728
  },
717
- KmsGetKeyArgs: {
729
+ KmsClientGetKeyArgs: {
718
730
  type: "object",
719
731
  properties: {
720
732
  baseUrl: {
@@ -727,6 +739,17 @@ var plugin_schema_default = {
727
739
  required: ["aliasOrKid"],
728
740
  additionalProperties: false
729
741
  },
742
+ GetKeyResponse: {
743
+ type: "object",
744
+ properties: {
745
+ keyInfo: {
746
+ $ref: "#/components/schemas/ManagedKeyInfo"
747
+ }
748
+ },
749
+ required: ["keyInfo"],
750
+ additionalProperties: false,
751
+ description: "Response body containing a managed key."
752
+ },
730
753
  ManagedKeyInfo: {
731
754
  type: "object",
732
755
  properties: {
@@ -776,7 +799,7 @@ var plugin_schema_default = {
776
799
  additionalProperties: false,
777
800
  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."
778
801
  },
779
- KmsGetKeyProviderArgs: {
802
+ KmsClientGetKeyProviderArgs: {
780
803
  type: "object",
781
804
  properties: {
782
805
  baseUrl: {
@@ -786,6 +809,7 @@ var plugin_schema_default = {
786
809
  type: "string"
787
810
  }
788
811
  },
812
+ required: ["providerId"],
789
813
  additionalProperties: false
790
814
  },
791
815
  KeyProviderResponse: {
@@ -808,7 +832,7 @@ var plugin_schema_default = {
808
832
  enum: ["SOFTWARE", "AZURE_KEYVAULT", "AWS_KMS"],
809
833
  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."
810
834
  },
811
- kmsGetResolverArgs: {
835
+ kmsClientGetResolverArgs: {
812
836
  type: "object",
813
837
  properties: {
814
838
  baseUrl: {
@@ -852,7 +876,7 @@ var plugin_schema_default = {
852
876
  enum: ["JWK", "KID", "COSE_KEY", "X5C", "DID"],
853
877
  description: "Method used to identify cryptographic keys."
854
878
  },
855
- KmsIsValidRawSignatureArgs: {
879
+ KmsClientIsValidRawSignatureArgs: {
856
880
  type: "object",
857
881
  additionalProperties: false,
858
882
  properties: {
@@ -883,7 +907,7 @@ var plugin_schema_default = {
883
907
  additionalProperties: false,
884
908
  description: "Response body containing the details of the signature verification."
885
909
  },
886
- KmsListKeyProvidersArgs: {
910
+ KmsClientListKeyProvidersArgs: {
887
911
  type: "object",
888
912
  properties: {
889
913
  baseUrl: {
@@ -921,7 +945,7 @@ var plugin_schema_default = {
921
945
  additionalProperties: false,
922
946
  description: "Response body containing the details of a Key Provider instance."
923
947
  },
924
- KmsListKeysArgs: {
948
+ KmsClientListKeysArgs: {
925
949
  type: "object",
926
950
  properties: {
927
951
  baseUrl: {
@@ -947,7 +971,7 @@ var plugin_schema_default = {
947
971
  additionalProperties: false,
948
972
  description: "Response body containing all the managed keys."
949
973
  },
950
- KmsListResolversArgs: {
974
+ KmsClientListResolversArgs: {
951
975
  type: "object",
952
976
  properties: {
953
977
  baseUrl: {
@@ -970,7 +994,7 @@ var plugin_schema_default = {
970
994
  additionalProperties: false,
971
995
  description: "Response body containing all the resolvers."
972
996
  },
973
- KmsProviderDeleteKeyArgs: {
997
+ KmsClientProviderDeleteKeyArgs: {
974
998
  type: "object",
975
999
  properties: {
976
1000
  baseUrl: {
@@ -986,7 +1010,7 @@ var plugin_schema_default = {
986
1010
  required: ["providerId", "aliasOrKid"],
987
1011
  additionalProperties: false
988
1012
  },
989
- KmsProviderGenerateKey: {
1013
+ KmsClientProviderGenerateKeyArgs: {
990
1014
  type: "object",
991
1015
  additionalProperties: false,
992
1016
  properties: {
@@ -1015,7 +1039,7 @@ var plugin_schema_default = {
1015
1039
  },
1016
1040
  required: ["providerId"]
1017
1041
  },
1018
- KmsProviderGetKeyArgs: {
1042
+ KmsClientProviderGetKeyArgs: {
1019
1043
  type: "object",
1020
1044
  properties: {
1021
1045
  baseUrl: {
@@ -1031,7 +1055,7 @@ var plugin_schema_default = {
1031
1055
  required: ["providerId", "aliasOrKid"],
1032
1056
  additionalProperties: false
1033
1057
  },
1034
- KmsProviderListKeysArgs: {
1058
+ KmsClientProviderListKeysArgs: {
1035
1059
  type: "object",
1036
1060
  properties: {
1037
1061
  baseUrl: {
@@ -1044,7 +1068,7 @@ var plugin_schema_default = {
1044
1068
  required: ["providerId"],
1045
1069
  additionalProperties: false
1046
1070
  },
1047
- KmsProviderStoreKey: {
1071
+ KmsClientProviderStoreKeyArgs: {
1048
1072
  type: "object",
1049
1073
  additionalProperties: false,
1050
1074
  properties: {
@@ -1116,7 +1140,18 @@ var plugin_schema_default = {
1116
1140
  additionalProperties: false,
1117
1141
  description: "Represents a resolved cryptographic key information where the key is guaranteed to be present and resolved, providing concrete access to the key."
1118
1142
  },
1119
- KmsResolveKeyArgs: {
1143
+ StoreKeyResponse: {
1144
+ type: "object",
1145
+ properties: {
1146
+ keyInfo: {
1147
+ $ref: "#/components/schemas/ManagedKeyInfo"
1148
+ }
1149
+ },
1150
+ required: ["keyInfo"],
1151
+ additionalProperties: false,
1152
+ description: "Response body containing a stored key."
1153
+ },
1154
+ KmsClientResolveKeyArgs: {
1120
1155
  type: "object",
1121
1156
  additionalProperties: false,
1122
1157
  properties: {
@@ -1158,7 +1193,7 @@ var plugin_schema_default = {
1158
1193
  type: "string"
1159
1194
  }
1160
1195
  },
1161
- KmsStoreKeyArgs: {
1196
+ KmsClientStoreKeyArgs: {
1162
1197
  type: "object",
1163
1198
  additionalProperties: false,
1164
1199
  properties: {
@@ -1180,157 +1215,157 @@ var plugin_schema_default = {
1180
1215
  }
1181
1216
  },
1182
1217
  methods: {
1183
- kmsCreateRawSignature: {
1218
+ kmsClientCreateRawSignature: {
1184
1219
  description: "",
1185
1220
  arguments: {
1186
- $ref: "#/components/schemas/KmsCreateRawSignatureArgs"
1221
+ $ref: "#/components/schemas/KmsClientCreateRawSignatureArgs"
1187
1222
  },
1188
1223
  returnType: {
1189
1224
  $ref: "#/components/schemas/CreateRawSignatureResponse"
1190
1225
  }
1191
1226
  },
1192
- kmsDeleteKey: {
1227
+ kmsClientDeleteKey: {
1193
1228
  description: "",
1194
1229
  arguments: {
1195
- $ref: "#/components/schemas/KmsDeleteKeyArgs"
1230
+ $ref: "#/components/schemas/KmsClientDeleteKeyArgs"
1196
1231
  },
1197
1232
  returnType: {
1198
1233
  type: "boolean"
1199
1234
  }
1200
1235
  },
1201
- kmsGenerateKey: {
1236
+ kmsClientGenerateKey: {
1202
1237
  description: "",
1203
1238
  arguments: {
1204
- $ref: "#/components/schemas/KmsGenerateKeyArgs"
1239
+ $ref: "#/components/schemas/KmsClientGenerateKeyArgs"
1205
1240
  },
1206
1241
  returnType: {
1207
- $ref: "#/components/schemas/ManagedKeyPair"
1242
+ $ref: "#/components/schemas/GenerateKeyResponse"
1208
1243
  }
1209
1244
  },
1210
- kmsGetKey: {
1245
+ kmsClientGetKey: {
1211
1246
  description: "",
1212
1247
  arguments: {
1213
- $ref: "#/components/schemas/KmsGetKeyArgs"
1248
+ $ref: "#/components/schemas/KmsClientGetKeyArgs"
1214
1249
  },
1215
1250
  returnType: {
1216
- $ref: "#/components/schemas/ManagedKeyInfo"
1251
+ $ref: "#/components/schemas/GetKeyResponse"
1217
1252
  }
1218
1253
  },
1219
- kmsGetKeyProvider: {
1254
+ kmsClientGetKeyProvider: {
1220
1255
  description: "",
1221
1256
  arguments: {
1222
- $ref: "#/components/schemas/KmsGetKeyProviderArgs"
1257
+ $ref: "#/components/schemas/KmsClientGetKeyProviderArgs"
1223
1258
  },
1224
1259
  returnType: {
1225
1260
  $ref: "#/components/schemas/KeyProviderResponse"
1226
1261
  }
1227
1262
  },
1228
- kmsGetResolver: {
1263
+ kmsClientGetResolver: {
1229
1264
  description: "",
1230
1265
  arguments: {
1231
- $ref: "#/components/schemas/kmsGetResolverArgs"
1266
+ $ref: "#/components/schemas/kmsClientGetResolverArgs"
1232
1267
  },
1233
1268
  returnType: {
1234
1269
  $ref: "#/components/schemas/Resolver"
1235
1270
  }
1236
1271
  },
1237
- kmsIsValidRawSignature: {
1272
+ kmsClientIsValidRawSignature: {
1238
1273
  description: "",
1239
1274
  arguments: {
1240
- $ref: "#/components/schemas/KmsIsValidRawSignatureArgs"
1275
+ $ref: "#/components/schemas/KmsClientIsValidRawSignatureArgs"
1241
1276
  },
1242
1277
  returnType: {
1243
1278
  $ref: "#/components/schemas/VerifyRawSignatureResponse"
1244
1279
  }
1245
1280
  },
1246
- kmsListKeyProviders: {
1281
+ kmsClientListKeyProviders: {
1247
1282
  description: "",
1248
1283
  arguments: {
1249
- $ref: "#/components/schemas/KmsListKeyProvidersArgs"
1284
+ $ref: "#/components/schemas/KmsClientListKeyProvidersArgs"
1250
1285
  },
1251
1286
  returnType: {
1252
1287
  $ref: "#/components/schemas/ListKeyProvidersResponse"
1253
1288
  }
1254
1289
  },
1255
- kmsListKeys: {
1290
+ kmsClientListKeys: {
1256
1291
  description: "",
1257
1292
  arguments: {
1258
- $ref: "#/components/schemas/KmsListKeysArgs"
1293
+ $ref: "#/components/schemas/KmsClientListKeysArgs"
1259
1294
  },
1260
1295
  returnType: {
1261
1296
  $ref: "#/components/schemas/ListKeysResponse"
1262
1297
  }
1263
1298
  },
1264
- kmsListResolvers: {
1299
+ kmsClientListResolvers: {
1265
1300
  description: "",
1266
1301
  arguments: {
1267
- $ref: "#/components/schemas/KmsListResolversArgs"
1302
+ $ref: "#/components/schemas/KmsClientListResolversArgs"
1268
1303
  },
1269
1304
  returnType: {
1270
1305
  $ref: "#/components/schemas/ListResolversResponse"
1271
1306
  }
1272
1307
  },
1273
- kmsProviderDeleteKey: {
1308
+ kmsClientProviderDeleteKey: {
1274
1309
  description: "",
1275
1310
  arguments: {
1276
- $ref: "#/components/schemas/KmsProviderDeleteKeyArgs"
1311
+ $ref: "#/components/schemas/KmsClientProviderDeleteKeyArgs"
1277
1312
  },
1278
1313
  returnType: {
1279
1314
  type: "boolean"
1280
1315
  }
1281
1316
  },
1282
- kmsProviderGenerateKey: {
1317
+ kmsClientProviderGenerateKey: {
1283
1318
  description: "",
1284
1319
  arguments: {
1285
- $ref: "#/components/schemas/KmsProviderGenerateKey"
1320
+ $ref: "#/components/schemas/KmsClientProviderGenerateKeyArgs"
1286
1321
  },
1287
1322
  returnType: {
1288
- $ref: "#/components/schemas/ManagedKeyPair"
1323
+ $ref: "#/components/schemas/GenerateKeyResponse"
1289
1324
  }
1290
1325
  },
1291
- kmsProviderGetKey: {
1326
+ kmsClientProviderGetKey: {
1292
1327
  description: "",
1293
1328
  arguments: {
1294
- $ref: "#/components/schemas/KmsProviderGetKeyArgs"
1329
+ $ref: "#/components/schemas/KmsClientProviderGetKeyArgs"
1295
1330
  },
1296
1331
  returnType: {
1297
- $ref: "#/components/schemas/ManagedKeyInfo"
1332
+ $ref: "#/components/schemas/GetKeyResponse"
1298
1333
  }
1299
1334
  },
1300
- kmsProviderListKeys: {
1335
+ kmsClientProviderListKeys: {
1301
1336
  description: "",
1302
1337
  arguments: {
1303
- $ref: "#/components/schemas/KmsProviderListKeysArgs"
1338
+ $ref: "#/components/schemas/KmsClientProviderListKeysArgs"
1304
1339
  },
1305
1340
  returnType: {
1306
1341
  $ref: "#/components/schemas/ListKeysResponse"
1307
1342
  }
1308
1343
  },
1309
- kmsProviderStoreKey: {
1344
+ kmsClientProviderStoreKey: {
1310
1345
  description: "",
1311
1346
  arguments: {
1312
- $ref: "#/components/schemas/KmsProviderStoreKey"
1347
+ $ref: "#/components/schemas/KmsClientProviderStoreKeyArgs"
1313
1348
  },
1314
1349
  returnType: {
1315
- $ref: "#/components/schemas/ManagedKeyInfo"
1350
+ $ref: "#/components/schemas/StoreKeyResponse"
1316
1351
  }
1317
1352
  },
1318
- kmsResolveKey: {
1353
+ kmsClientResolveKey: {
1319
1354
  description: "",
1320
1355
  arguments: {
1321
- $ref: "#/components/schemas/KmsResolveKeyArgs"
1356
+ $ref: "#/components/schemas/KmsClientResolveKeyArgs"
1322
1357
  },
1323
1358
  returnType: {
1324
1359
  $ref: "#/components/schemas/ResolvedKeyInfo"
1325
1360
  }
1326
1361
  },
1327
- kmsStoreKey: {
1362
+ kmsClientStoreKey: {
1328
1363
  description: "",
1329
1364
  arguments: {
1330
- $ref: "#/components/schemas/KmsStoreKeyArgs"
1365
+ $ref: "#/components/schemas/KmsClientStoreKeyArgs"
1331
1366
  },
1332
1367
  returnType: {
1333
- $ref: "#/components/schemas/ManagedKeyInfo"
1368
+ $ref: "#/components/schemas/StoreKeyResponse"
1334
1369
  }
1335
1370
  }
1336
1371
  }
@@ -3844,7 +3879,8 @@ var KmsRestClient = class _KmsRestClient {
3844
3879
  const body = {
3845
3880
  alg: args.alg,
3846
3881
  keyOperations: args.keyOperations,
3847
- use: args.use
3882
+ use: args.use,
3883
+ alias: args.alias
3848
3884
  };
3849
3885
  const response = await (0, import_cross_fetch.fetch)(url, {
3850
3886
  method: "POST",