@learncard/network-plugin 1.4.33 → 1.5.1

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.
@@ -4225,8 +4225,8 @@ var ProfileValidator = mod.string().or(mod.object({
4225
4225
  dateOfBirth: mod.string().optional()
4226
4226
  }).catchall(mod.any()));
4227
4227
  var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
4228
- var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
4229
- var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
4228
+ var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
4229
+ var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
4230
4230
  var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
4231
4231
  var UnsignedVCValidator = mod.object({
4232
4232
  "@context": ContextValidator,
@@ -4256,7 +4256,7 @@ var VCValidator = UnsignedVCValidator.extend({
4256
4256
  var UnsignedVPValidator = mod.object({
4257
4257
  "@context": ContextValidator,
4258
4258
  id: mod.string().optional(),
4259
- type: mod.string().array().nonempty(),
4259
+ type: mod.string().or(mod.string().array().nonempty()),
4260
4260
  verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
4261
4261
  holder: mod.string().optional()
4262
4262
  }).catchall(mod.any());
@@ -5010,8 +5010,8 @@ var getVerifyBoostPlugin = /* @__PURE__ */ __name(async (learnCard, trustedBoost
5010
5010
  displayName: "Verify Boost Extension",
5011
5011
  description: "Adds a check for validating Boost Credentials.",
5012
5012
  methods: {
5013
- verifyCredential: async (_learnCard, credential) => {
5014
- const verificationCheck = await learnCard.invoke.verifyCredential(credential);
5013
+ verifyCredential: async (_learnCard, credential, options) => {
5014
+ const verificationCheck = await learnCard.invoke.verifyCredential(credential, options);
5015
5015
  const boostCredential = credential?.boostCredential;
5016
5016
  try {
5017
5017
  if (boostCredential) {