@learncard/didkey-plugin 1.0.33 → 1.0.35
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/didkey-plugin.cjs.development.js +51 -7
- package/dist/didkey-plugin.cjs.development.js.map +2 -2
- package/dist/didkey-plugin.cjs.production.min.js +1 -1
- package/dist/didkey-plugin.cjs.production.min.js.map +3 -3
- package/dist/didkey-plugin.esm.js +51 -7
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/package.json +4 -4
@@ -60,6 +60,7 @@ var require_types_cjs_development = __commonJS({
|
|
60
60
|
var __toCommonJS = /* @__PURE__ */ __name2((mod2) => __copyProps2(__defProp22({}, "__esModule", { value: true }), mod2), "__toCommonJS");
|
61
61
|
var src_exports = {};
|
62
62
|
__export(src_exports, {
|
63
|
+
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX,
|
63
64
|
AchievementCredentialValidator: () => AchievementCredentialValidator,
|
64
65
|
AchievementCriteriaValidator: () => AchievementCriteriaValidator,
|
65
66
|
AchievementSubjectValidator: () => AchievementSubjectValidator,
|
@@ -68,6 +69,9 @@ var require_types_cjs_development = __commonJS({
|
|
68
69
|
AddressValidator: () => AddressValidator,
|
69
70
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
70
71
|
AlignmentValidator: () => AlignmentValidator,
|
72
|
+
AuthGrantQueryValidator: () => AuthGrantQueryValidator,
|
73
|
+
AuthGrantStatusValidator: () => AuthGrantStatusValidator,
|
74
|
+
AuthGrantValidator: () => AuthGrantValidator,
|
71
75
|
AutoBoostConfigValidator: () => AutoBoostConfigValidator,
|
72
76
|
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
73
77
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
@@ -105,6 +109,7 @@ var require_types_cjs_development = __commonJS({
|
|
105
109
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
106
110
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
107
111
|
EvidenceValidator: () => EvidenceValidator,
|
112
|
+
FlatAuthGrantValidator: () => FlatAuthGrantValidator,
|
108
113
|
FullClaimHookValidator: () => FullClaimHookValidator,
|
109
114
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
110
115
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
@@ -151,6 +156,7 @@ var require_types_cjs_development = __commonJS({
|
|
151
156
|
ProfileValidator: () => ProfileValidator,
|
152
157
|
ProofValidator: () => ProofValidator,
|
153
158
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
159
|
+
RegExpValidator: () => RegExpValidator,
|
154
160
|
RelatedValidator: () => RelatedValidator,
|
155
161
|
ResultDescriptionValidator: () => ResultDescriptionValidator,
|
156
162
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator,
|
@@ -159,9 +165,12 @@ var require_types_cjs_development = __commonJS({
|
|
159
165
|
RubricCriterionValidator: () => RubricCriterionValidator,
|
160
166
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
161
167
|
ServiceValidator: () => ServiceValidator,
|
168
|
+
StringQuery: () => StringQuery,
|
169
|
+
TermsOfUseValidator: () => TermsOfUseValidator,
|
162
170
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
163
171
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
164
172
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
173
|
+
VC2EvidenceValidator: () => VC2EvidenceValidator,
|
165
174
|
VCValidator: () => VCValidator,
|
166
175
|
VPValidator: () => VPValidator,
|
167
176
|
VerificationCheckValidator: () => VerificationCheckValidator,
|
@@ -3602,18 +3611,31 @@ var require_types_cjs_development = __commonJS({
|
|
3602
3611
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
3603
3612
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
3604
3613
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3605
|
-
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3614
|
+
var RefreshServiceValidator = mod.object({ id: mod.string().optional(), type: mod.string() }).catchall(mod.any());
|
3615
|
+
var TermsOfUseValidator = mod.object({ type: mod.string(), id: mod.string().optional() }).catchall(mod.any());
|
3616
|
+
var VC2EvidenceValidator = mod.object({ type: mod.string().or(mod.string().array().nonempty()), id: mod.string().optional() }).catchall(mod.any());
|
3606
3617
|
var UnsignedVCValidator = mod.object({
|
3607
3618
|
"@context": ContextValidator,
|
3608
3619
|
id: mod.string().optional(),
|
3609
3620
|
type: mod.string().array().nonempty(),
|
3610
3621
|
issuer: ProfileValidator,
|
3611
|
-
issuanceDate: mod.string(),
|
3612
|
-
expirationDate: mod.string().optional(),
|
3613
3622
|
credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
|
3614
|
-
|
3615
|
-
credentialSchema: CredentialSchemaValidator.
|
3616
|
-
|
3623
|
+
refreshService: RefreshServiceValidator.or(RefreshServiceValidator.array()).optional(),
|
3624
|
+
credentialSchema: CredentialSchemaValidator.or(
|
3625
|
+
CredentialSchemaValidator.array()
|
3626
|
+
).optional(),
|
3627
|
+
issuanceDate: mod.string().optional(),
|
3628
|
+
expirationDate: mod.string().optional(),
|
3629
|
+
credentialStatus: CredentialStatusValidator.or(
|
3630
|
+
CredentialStatusValidator.array()
|
3631
|
+
).optional(),
|
3632
|
+
name: mod.string().optional(),
|
3633
|
+
description: mod.string().optional(),
|
3634
|
+
validFrom: mod.string().optional(),
|
3635
|
+
validUntil: mod.string().optional(),
|
3636
|
+
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
3637
|
+
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
3638
|
+
evidence: VC2EvidenceValidator.or(VC2EvidenceValidator.array()).optional()
|
3617
3639
|
}).catchall(mod.any());
|
3618
3640
|
var ProofValidator = mod.object({
|
3619
3641
|
type: mod.string(),
|
@@ -3865,7 +3887,7 @@ var require_types_cjs_development = __commonJS({
|
|
3865
3887
|
}).catchall(mod.any());
|
3866
3888
|
var EvidenceValidator = mod.object({
|
3867
3889
|
id: mod.string().optional(),
|
3868
|
-
type: mod.string().array().nonempty(),
|
3890
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
3869
3891
|
narrative: mod.string().optional(),
|
3870
3892
|
name: mod.string().optional(),
|
3871
3893
|
description: mod.string().optional(),
|
@@ -4338,6 +4360,28 @@ var require_types_cjs_development = __commonJS({
|
|
4338
4360
|
data: LCNNotificationDataValidator.optional(),
|
4339
4361
|
sent: mod.string().datetime().optional()
|
4340
4362
|
});
|
4363
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
4364
|
+
var AuthGrantValidator = mod.object({
|
4365
|
+
id: mod.string(),
|
4366
|
+
name: mod.string(),
|
4367
|
+
description: mod.string().optional(),
|
4368
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
4369
|
+
status: mod.enum(["revoked", "active"], {
|
4370
|
+
required_error: "Status is required",
|
4371
|
+
invalid_type_error: "Status must be either active or revoked"
|
4372
|
+
}),
|
4373
|
+
scope: mod.string(),
|
4374
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
4375
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
4376
|
+
});
|
4377
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
4378
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
4379
|
+
var AuthGrantQueryValidator = mod.object({
|
4380
|
+
id: StringQuery,
|
4381
|
+
name: StringQuery,
|
4382
|
+
description: StringQuery,
|
4383
|
+
status: AuthGrantStatusValidator
|
4384
|
+
}).partial();
|
4341
4385
|
}
|
4342
4386
|
});
|
4343
4387
|
var require_dist = __commonJS({
|