@learncard/vc-api-plugin 1.0.11 → 1.0.13
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/vc-api-plugin.cjs.development.js +68 -46
- package/dist/vc-api-plugin.cjs.development.js.map +3 -3
- package/dist/vc-api-plugin.cjs.production.min.js +1 -1
- package/dist/vc-api-plugin.cjs.production.min.js.map +3 -3
- package/dist/vc-api-plugin.esm.js +67 -46
- package/dist/vc-api-plugin.esm.js.map +3 -3
- package/package.json +3 -3
|
@@ -763,11 +763,14 @@ var ZodString = class extends ZodType {
|
|
|
763
763
|
const parsedType = this._getType(input);
|
|
764
764
|
if (parsedType !== ZodParsedType.string) {
|
|
765
765
|
const ctx2 = this._getOrReturnCtx(input);
|
|
766
|
-
addIssueToContext(
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
766
|
+
addIssueToContext(
|
|
767
|
+
ctx2,
|
|
768
|
+
{
|
|
769
|
+
code: ZodIssueCode.invalid_type,
|
|
770
|
+
expected: ZodParsedType.string,
|
|
771
|
+
received: ctx2.parsedType
|
|
772
|
+
}
|
|
773
|
+
);
|
|
771
774
|
return INVALID;
|
|
772
775
|
}
|
|
773
776
|
const status = new ParseStatus();
|
|
@@ -1773,7 +1776,9 @@ var ZodObject = class extends ZodType {
|
|
|
1773
1776
|
const value = ctx.data[key];
|
|
1774
1777
|
pairs.push({
|
|
1775
1778
|
key: { status: "valid", value: key },
|
|
1776
|
-
value: catchall._parse(
|
|
1779
|
+
value: catchall._parse(
|
|
1780
|
+
new ParseInputLazyPath(ctx, value, ctx.path, key)
|
|
1781
|
+
),
|
|
1777
1782
|
alwaysSet: key in ctx.data
|
|
1778
1783
|
});
|
|
1779
1784
|
}
|
|
@@ -3324,11 +3329,13 @@ var AchievementCriteriaValidator = mod.object({
|
|
|
3324
3329
|
type: mod.string().optional(),
|
|
3325
3330
|
narrative: mod.string().optional()
|
|
3326
3331
|
});
|
|
3327
|
-
var ImageValidator = mod.string().or(
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
+
var ImageValidator = mod.string().or(
|
|
3333
|
+
mod.object({
|
|
3334
|
+
id: mod.string(),
|
|
3335
|
+
type: mod.string(),
|
|
3336
|
+
caption: mod.string().optional()
|
|
3337
|
+
})
|
|
3338
|
+
);
|
|
3332
3339
|
var GeoCoordinatesValidator = mod.object({
|
|
3333
3340
|
type: mod.string().min(1).or(mod.string().array().nonempty()),
|
|
3334
3341
|
latitude: mod.number(),
|
|
@@ -3370,29 +3377,31 @@ var IdentifierEntryValidator = mod.object({
|
|
|
3370
3377
|
identifier: mod.string(),
|
|
3371
3378
|
identifierType: IdentifierTypeValidator
|
|
3372
3379
|
});
|
|
3373
|
-
var ProfileValidator = mod.string().or(
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3380
|
+
var ProfileValidator = mod.string().or(
|
|
3381
|
+
mod.object({
|
|
3382
|
+
id: mod.string().optional(),
|
|
3383
|
+
type: mod.string().or(mod.string().array().nonempty().optional()),
|
|
3384
|
+
name: mod.string().optional(),
|
|
3385
|
+
url: mod.string().optional(),
|
|
3386
|
+
phone: mod.string().optional(),
|
|
3387
|
+
description: mod.string().optional(),
|
|
3388
|
+
endorsement: mod.any().array().optional(),
|
|
3389
|
+
image: ImageValidator.optional(),
|
|
3390
|
+
email: mod.string().email().optional(),
|
|
3391
|
+
address: AddressValidator.optional(),
|
|
3392
|
+
otherIdentifier: IdentifierEntryValidator.array().optional(),
|
|
3393
|
+
official: mod.string().optional(),
|
|
3394
|
+
parentOrg: mod.any().optional(),
|
|
3395
|
+
familyName: mod.string().optional(),
|
|
3396
|
+
givenName: mod.string().optional(),
|
|
3397
|
+
additionalName: mod.string().optional(),
|
|
3398
|
+
patronymicName: mod.string().optional(),
|
|
3399
|
+
honorificPrefix: mod.string().optional(),
|
|
3400
|
+
honorificSuffix: mod.string().optional(),
|
|
3401
|
+
familyNamePrefix: mod.string().optional(),
|
|
3402
|
+
dateOfBirth: mod.string().optional()
|
|
3403
|
+
}).catchall(mod.any())
|
|
3404
|
+
);
|
|
3396
3405
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
|
3397
3406
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
|
3398
3407
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
@@ -3461,15 +3470,17 @@ var JWEValidator = mod.object({
|
|
|
3461
3470
|
aad: mod.string().optional(),
|
|
3462
3471
|
recipients: JWERecipientValidator.array().optional()
|
|
3463
3472
|
});
|
|
3464
|
-
var VerificationMethodValidator = mod.string().or(
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
+
var VerificationMethodValidator = mod.string().or(
|
|
3474
|
+
mod.object({
|
|
3475
|
+
"@context": ContextValidator.optional(),
|
|
3476
|
+
id: mod.string(),
|
|
3477
|
+
type: mod.string(),
|
|
3478
|
+
controller: mod.string(),
|
|
3479
|
+
publicKeyJwk: JWKValidator.optional(),
|
|
3480
|
+
publicKeyBase58: mod.string().optional(),
|
|
3481
|
+
blockChainAccountId: mod.string().optional()
|
|
3482
|
+
}).catchall(mod.any())
|
|
3483
|
+
);
|
|
3473
3484
|
var ServiceValidator = mod.object({
|
|
3474
3485
|
id: mod.string(),
|
|
3475
3486
|
type: mod.string().or(mod.string().array().nonempty()),
|
|
@@ -3667,7 +3678,9 @@ var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
|
|
|
3667
3678
|
name: mod.string().optional(),
|
|
3668
3679
|
description: mod.string().optional(),
|
|
3669
3680
|
image: ImageValidator.optional(),
|
|
3670
|
-
credentialSubject: AchievementSubjectValidator.or(
|
|
3681
|
+
credentialSubject: AchievementSubjectValidator.or(
|
|
3682
|
+
AchievementSubjectValidator.array()
|
|
3683
|
+
),
|
|
3671
3684
|
endorsement: UnsignedVCValidator.array().optional(),
|
|
3672
3685
|
evidence: EvidenceValidator.array().optional()
|
|
3673
3686
|
});
|
|
@@ -3726,7 +3739,7 @@ var LCNProfileValidator = mod.object({
|
|
|
3726
3739
|
websiteLink: mod.string().optional(),
|
|
3727
3740
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
3728
3741
|
type: mod.string().optional(),
|
|
3729
|
-
notificationsWebhook: mod.string().url().startsWith("
|
|
3742
|
+
notificationsWebhook: mod.string().url().startsWith("http").optional()
|
|
3730
3743
|
});
|
|
3731
3744
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
3732
3745
|
records: LCNProfileValidator.array()
|
|
@@ -3753,11 +3766,17 @@ var BoostValidator = mod.object({
|
|
|
3753
3766
|
status: LCNBoostStatus.optional(),
|
|
3754
3767
|
autoConnectRecipients: mod.boolean().optional()
|
|
3755
3768
|
});
|
|
3769
|
+
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
3770
|
+
records: BoostValidator.array()
|
|
3771
|
+
});
|
|
3756
3772
|
var BoostRecipientValidator = mod.object({
|
|
3757
3773
|
to: LCNProfileValidator,
|
|
3758
3774
|
from: mod.string(),
|
|
3759
3775
|
received: mod.string().optional()
|
|
3760
3776
|
});
|
|
3777
|
+
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
3778
|
+
records: BoostRecipientValidator.array()
|
|
3779
|
+
});
|
|
3761
3780
|
var LCNBoostClaimLinkSigningAuthorityValidator = mod.object({
|
|
3762
3781
|
endpoint: mod.string(),
|
|
3763
3782
|
name: mod.string(),
|
|
@@ -3890,7 +3909,9 @@ var ConsentFlowTransactionActionValidator = mod.enum([
|
|
|
3890
3909
|
]);
|
|
3891
3910
|
var ConsentFlowTransactionsQueryValidator = mod.object({
|
|
3892
3911
|
terms: ConsentFlowTermsQueryValidator.optional(),
|
|
3893
|
-
action: ConsentFlowTransactionActionValidator.or(
|
|
3912
|
+
action: ConsentFlowTransactionActionValidator.or(
|
|
3913
|
+
ConsentFlowTransactionActionValidator.array()
|
|
3914
|
+
).optional(),
|
|
3894
3915
|
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
3895
3916
|
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
3896
3917
|
oneTime: mod.boolean().optional()
|