@learncard/vc-api-plugin 1.0.12 → 1.0.14
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 +61 -45
- 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 +60 -45
- package/dist/vc-api-plugin.esm.js.map +3 -3
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -786,11 +787,14 @@ var ZodString = class extends ZodType {
|
|
|
786
787
|
const parsedType = this._getType(input);
|
|
787
788
|
if (parsedType !== ZodParsedType.string) {
|
|
788
789
|
const ctx2 = this._getOrReturnCtx(input);
|
|
789
|
-
addIssueToContext(
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
790
|
+
addIssueToContext(
|
|
791
|
+
ctx2,
|
|
792
|
+
{
|
|
793
|
+
code: ZodIssueCode.invalid_type,
|
|
794
|
+
expected: ZodParsedType.string,
|
|
795
|
+
received: ctx2.parsedType
|
|
796
|
+
}
|
|
797
|
+
);
|
|
794
798
|
return INVALID;
|
|
795
799
|
}
|
|
796
800
|
const status = new ParseStatus();
|
|
@@ -1796,7 +1800,9 @@ var ZodObject = class extends ZodType {
|
|
|
1796
1800
|
const value = ctx.data[key];
|
|
1797
1801
|
pairs.push({
|
|
1798
1802
|
key: { status: "valid", value: key },
|
|
1799
|
-
value: catchall._parse(
|
|
1803
|
+
value: catchall._parse(
|
|
1804
|
+
new ParseInputLazyPath(ctx, value, ctx.path, key)
|
|
1805
|
+
),
|
|
1800
1806
|
alwaysSet: key in ctx.data
|
|
1801
1807
|
});
|
|
1802
1808
|
}
|
|
@@ -3347,11 +3353,13 @@ var AchievementCriteriaValidator = mod.object({
|
|
|
3347
3353
|
type: mod.string().optional(),
|
|
3348
3354
|
narrative: mod.string().optional()
|
|
3349
3355
|
});
|
|
3350
|
-
var ImageValidator = mod.string().or(
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3356
|
+
var ImageValidator = mod.string().or(
|
|
3357
|
+
mod.object({
|
|
3358
|
+
id: mod.string(),
|
|
3359
|
+
type: mod.string(),
|
|
3360
|
+
caption: mod.string().optional()
|
|
3361
|
+
})
|
|
3362
|
+
);
|
|
3355
3363
|
var GeoCoordinatesValidator = mod.object({
|
|
3356
3364
|
type: mod.string().min(1).or(mod.string().array().nonempty()),
|
|
3357
3365
|
latitude: mod.number(),
|
|
@@ -3393,29 +3401,31 @@ var IdentifierEntryValidator = mod.object({
|
|
|
3393
3401
|
identifier: mod.string(),
|
|
3394
3402
|
identifierType: IdentifierTypeValidator
|
|
3395
3403
|
});
|
|
3396
|
-
var ProfileValidator = mod.string().or(
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3404
|
+
var ProfileValidator = mod.string().or(
|
|
3405
|
+
mod.object({
|
|
3406
|
+
id: mod.string().optional(),
|
|
3407
|
+
type: mod.string().or(mod.string().array().nonempty().optional()),
|
|
3408
|
+
name: mod.string().optional(),
|
|
3409
|
+
url: mod.string().optional(),
|
|
3410
|
+
phone: mod.string().optional(),
|
|
3411
|
+
description: mod.string().optional(),
|
|
3412
|
+
endorsement: mod.any().array().optional(),
|
|
3413
|
+
image: ImageValidator.optional(),
|
|
3414
|
+
email: mod.string().email().optional(),
|
|
3415
|
+
address: AddressValidator.optional(),
|
|
3416
|
+
otherIdentifier: IdentifierEntryValidator.array().optional(),
|
|
3417
|
+
official: mod.string().optional(),
|
|
3418
|
+
parentOrg: mod.any().optional(),
|
|
3419
|
+
familyName: mod.string().optional(),
|
|
3420
|
+
givenName: mod.string().optional(),
|
|
3421
|
+
additionalName: mod.string().optional(),
|
|
3422
|
+
patronymicName: mod.string().optional(),
|
|
3423
|
+
honorificPrefix: mod.string().optional(),
|
|
3424
|
+
honorificSuffix: mod.string().optional(),
|
|
3425
|
+
familyNamePrefix: mod.string().optional(),
|
|
3426
|
+
dateOfBirth: mod.string().optional()
|
|
3427
|
+
}).catchall(mod.any())
|
|
3428
|
+
);
|
|
3419
3429
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
|
3420
3430
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
|
3421
3431
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
@@ -3484,15 +3494,17 @@ var JWEValidator = mod.object({
|
|
|
3484
3494
|
aad: mod.string().optional(),
|
|
3485
3495
|
recipients: JWERecipientValidator.array().optional()
|
|
3486
3496
|
});
|
|
3487
|
-
var VerificationMethodValidator = mod.string().or(
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3497
|
+
var VerificationMethodValidator = mod.string().or(
|
|
3498
|
+
mod.object({
|
|
3499
|
+
"@context": ContextValidator.optional(),
|
|
3500
|
+
id: mod.string(),
|
|
3501
|
+
type: mod.string(),
|
|
3502
|
+
controller: mod.string(),
|
|
3503
|
+
publicKeyJwk: JWKValidator.optional(),
|
|
3504
|
+
publicKeyBase58: mod.string().optional(),
|
|
3505
|
+
blockChainAccountId: mod.string().optional()
|
|
3506
|
+
}).catchall(mod.any())
|
|
3507
|
+
);
|
|
3496
3508
|
var ServiceValidator = mod.object({
|
|
3497
3509
|
id: mod.string(),
|
|
3498
3510
|
type: mod.string().or(mod.string().array().nonempty()),
|
|
@@ -3690,7 +3702,9 @@ var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
|
|
|
3690
3702
|
name: mod.string().optional(),
|
|
3691
3703
|
description: mod.string().optional(),
|
|
3692
3704
|
image: ImageValidator.optional(),
|
|
3693
|
-
credentialSubject: AchievementSubjectValidator.or(
|
|
3705
|
+
credentialSubject: AchievementSubjectValidator.or(
|
|
3706
|
+
AchievementSubjectValidator.array()
|
|
3707
|
+
),
|
|
3694
3708
|
endorsement: UnsignedVCValidator.array().optional(),
|
|
3695
3709
|
evidence: EvidenceValidator.array().optional()
|
|
3696
3710
|
});
|
|
@@ -3919,7 +3933,9 @@ var ConsentFlowTransactionActionValidator = mod.enum([
|
|
|
3919
3933
|
]);
|
|
3920
3934
|
var ConsentFlowTransactionsQueryValidator = mod.object({
|
|
3921
3935
|
terms: ConsentFlowTermsQueryValidator.optional(),
|
|
3922
|
-
action: ConsentFlowTransactionActionValidator.or(
|
|
3936
|
+
action: ConsentFlowTransactionActionValidator.or(
|
|
3937
|
+
ConsentFlowTransactionActionValidator.array()
|
|
3938
|
+
).optional(),
|
|
3923
3939
|
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
3924
3940
|
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
3925
3941
|
oneTime: mod.boolean().optional()
|