@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
@@ -84,6 +84,7 @@ var require_types_cjs_development = __commonJS({
|
|
84
84
|
var __toCommonJS2 = /* @__PURE__ */ __name2((mod2) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod2), "__toCommonJS");
|
85
85
|
var src_exports2 = {};
|
86
86
|
__export2(src_exports2, {
|
87
|
+
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: () => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX,
|
87
88
|
AchievementCredentialValidator: () => AchievementCredentialValidator,
|
88
89
|
AchievementCriteriaValidator: () => AchievementCriteriaValidator,
|
89
90
|
AchievementSubjectValidator: () => AchievementSubjectValidator,
|
@@ -92,6 +93,9 @@ var require_types_cjs_development = __commonJS({
|
|
92
93
|
AddressValidator: () => AddressValidator,
|
93
94
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
94
95
|
AlignmentValidator: () => AlignmentValidator,
|
96
|
+
AuthGrantQueryValidator: () => AuthGrantQueryValidator,
|
97
|
+
AuthGrantStatusValidator: () => AuthGrantStatusValidator,
|
98
|
+
AuthGrantValidator: () => AuthGrantValidator,
|
95
99
|
AutoBoostConfigValidator: () => AutoBoostConfigValidator,
|
96
100
|
BoostPermissionsQueryValidator: () => BoostPermissionsQueryValidator,
|
97
101
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
@@ -129,6 +133,7 @@ var require_types_cjs_development = __commonJS({
|
|
129
133
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
130
134
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
131
135
|
EvidenceValidator: () => EvidenceValidator,
|
136
|
+
FlatAuthGrantValidator: () => FlatAuthGrantValidator,
|
132
137
|
FullClaimHookValidator: () => FullClaimHookValidator,
|
133
138
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
134
139
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
@@ -175,6 +180,7 @@ var require_types_cjs_development = __commonJS({
|
|
175
180
|
ProfileValidator: () => ProfileValidator,
|
176
181
|
ProofValidator: () => ProofValidator,
|
177
182
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
183
|
+
RegExpValidator: () => RegExpValidator,
|
178
184
|
RelatedValidator: () => RelatedValidator,
|
179
185
|
ResultDescriptionValidator: () => ResultDescriptionValidator,
|
180
186
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator,
|
@@ -183,9 +189,12 @@ var require_types_cjs_development = __commonJS({
|
|
183
189
|
RubricCriterionValidator: () => RubricCriterionValidator,
|
184
190
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
185
191
|
ServiceValidator: () => ServiceValidator,
|
192
|
+
StringQuery: () => StringQuery,
|
193
|
+
TermsOfUseValidator: () => TermsOfUseValidator,
|
186
194
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
187
195
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
188
196
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
197
|
+
VC2EvidenceValidator: () => VC2EvidenceValidator,
|
189
198
|
VCValidator: () => VCValidator,
|
190
199
|
VPValidator: () => VPValidator,
|
191
200
|
VerificationCheckValidator: () => VerificationCheckValidator,
|
@@ -3626,18 +3635,31 @@ var require_types_cjs_development = __commonJS({
|
|
3626
3635
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
3627
3636
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
3628
3637
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3629
|
-
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3638
|
+
var RefreshServiceValidator = mod.object({ id: mod.string().optional(), type: mod.string() }).catchall(mod.any());
|
3639
|
+
var TermsOfUseValidator = mod.object({ type: mod.string(), id: mod.string().optional() }).catchall(mod.any());
|
3640
|
+
var VC2EvidenceValidator = mod.object({ type: mod.string().or(mod.string().array().nonempty()), id: mod.string().optional() }).catchall(mod.any());
|
3630
3641
|
var UnsignedVCValidator = mod.object({
|
3631
3642
|
"@context": ContextValidator,
|
3632
3643
|
id: mod.string().optional(),
|
3633
3644
|
type: mod.string().array().nonempty(),
|
3634
3645
|
issuer: ProfileValidator,
|
3635
|
-
issuanceDate: mod.string(),
|
3636
|
-
expirationDate: mod.string().optional(),
|
3637
3646
|
credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
|
3638
|
-
|
3639
|
-
credentialSchema: CredentialSchemaValidator.
|
3640
|
-
|
3647
|
+
refreshService: RefreshServiceValidator.or(RefreshServiceValidator.array()).optional(),
|
3648
|
+
credentialSchema: CredentialSchemaValidator.or(
|
3649
|
+
CredentialSchemaValidator.array()
|
3650
|
+
).optional(),
|
3651
|
+
issuanceDate: mod.string().optional(),
|
3652
|
+
expirationDate: mod.string().optional(),
|
3653
|
+
credentialStatus: CredentialStatusValidator.or(
|
3654
|
+
CredentialStatusValidator.array()
|
3655
|
+
).optional(),
|
3656
|
+
name: mod.string().optional(),
|
3657
|
+
description: mod.string().optional(),
|
3658
|
+
validFrom: mod.string().optional(),
|
3659
|
+
validUntil: mod.string().optional(),
|
3660
|
+
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
3661
|
+
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
3662
|
+
evidence: VC2EvidenceValidator.or(VC2EvidenceValidator.array()).optional()
|
3641
3663
|
}).catchall(mod.any());
|
3642
3664
|
var ProofValidator = mod.object({
|
3643
3665
|
type: mod.string(),
|
@@ -3889,7 +3911,7 @@ var require_types_cjs_development = __commonJS({
|
|
3889
3911
|
}).catchall(mod.any());
|
3890
3912
|
var EvidenceValidator = mod.object({
|
3891
3913
|
id: mod.string().optional(),
|
3892
|
-
type: mod.string().array().nonempty(),
|
3914
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
3893
3915
|
narrative: mod.string().optional(),
|
3894
3916
|
name: mod.string().optional(),
|
3895
3917
|
description: mod.string().optional(),
|
@@ -4362,6 +4384,28 @@ var require_types_cjs_development = __commonJS({
|
|
4362
4384
|
data: LCNNotificationDataValidator.optional(),
|
4363
4385
|
sent: mod.string().datetime().optional()
|
4364
4386
|
});
|
4387
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
4388
|
+
var AuthGrantValidator = mod.object({
|
4389
|
+
id: mod.string(),
|
4390
|
+
name: mod.string(),
|
4391
|
+
description: mod.string().optional(),
|
4392
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
4393
|
+
status: mod.enum(["revoked", "active"], {
|
4394
|
+
required_error: "Status is required",
|
4395
|
+
invalid_type_error: "Status must be either active or revoked"
|
4396
|
+
}),
|
4397
|
+
scope: mod.string(),
|
4398
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
4399
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
4400
|
+
});
|
4401
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
4402
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
4403
|
+
var AuthGrantQueryValidator = mod.object({
|
4404
|
+
id: StringQuery,
|
4405
|
+
name: StringQuery,
|
4406
|
+
description: StringQuery,
|
4407
|
+
status: AuthGrantStatusValidator
|
4408
|
+
}).partial();
|
4365
4409
|
}
|
4366
4410
|
});
|
4367
4411
|
var require_dist = __commonJS({
|