@learncard/learn-cloud-plugin 2.1.18 → 2.1.20
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/learn-cloud-plugin.cjs.development.js +48 -16
- package/dist/learn-cloud-plugin.cjs.development.js.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.js +11 -11
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +48 -16
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -7420,9 +7420,11 @@ var require_types_cjs_development = __commonJS2({
|
|
|
7420
7420
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
7421
7421
|
ServiceValidator: () => ServiceValidator2,
|
|
7422
7422
|
StringQuery: () => StringQuery2,
|
|
7423
|
+
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
7423
7424
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
7424
7425
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
7425
7426
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
7427
|
+
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
7426
7428
|
VCValidator: () => VCValidator2,
|
|
7427
7429
|
VPValidator: () => VPValidator2,
|
|
7428
7430
|
VerificationCheckValidator: () => VerificationCheckValidator2,
|
|
@@ -10863,18 +10865,31 @@ var require_types_cjs_development = __commonJS2({
|
|
|
10863
10865
|
var CredentialSubjectValidator2 = mod2.object({ id: mod2.string().optional() }).catchall(mod2.any());
|
|
10864
10866
|
var CredentialStatusValidator2 = mod2.object({ type: mod2.string(), id: mod2.string() }).catchall(mod2.any());
|
|
10865
10867
|
var CredentialSchemaValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
10866
|
-
var RefreshServiceValidator2 = mod2.object({ id: mod2.string(), type: mod2.string() }).catchall(mod2.any());
|
|
10868
|
+
var RefreshServiceValidator2 = mod2.object({ id: mod2.string().optional(), type: mod2.string() }).catchall(mod2.any());
|
|
10869
|
+
var TermsOfUseValidator2 = mod2.object({ type: mod2.string(), id: mod2.string().optional() }).catchall(mod2.any());
|
|
10870
|
+
var VC2EvidenceValidator2 = mod2.object({ type: mod2.string().or(mod2.string().array().nonempty()), id: mod2.string().optional() }).catchall(mod2.any());
|
|
10867
10871
|
var UnsignedVCValidator2 = mod2.object({
|
|
10868
10872
|
"@context": ContextValidator2,
|
|
10869
10873
|
id: mod2.string().optional(),
|
|
10870
10874
|
type: mod2.string().array().nonempty(),
|
|
10871
10875
|
issuer: ProfileValidator2,
|
|
10872
|
-
issuanceDate: mod2.string(),
|
|
10873
|
-
expirationDate: mod2.string().optional(),
|
|
10874
10876
|
credentialSubject: CredentialSubjectValidator2.or(CredentialSubjectValidator2.array()),
|
|
10875
|
-
|
|
10876
|
-
credentialSchema: CredentialSchemaValidator2.
|
|
10877
|
-
|
|
10877
|
+
refreshService: RefreshServiceValidator2.or(RefreshServiceValidator2.array()).optional(),
|
|
10878
|
+
credentialSchema: CredentialSchemaValidator2.or(
|
|
10879
|
+
CredentialSchemaValidator2.array()
|
|
10880
|
+
).optional(),
|
|
10881
|
+
issuanceDate: mod2.string().optional(),
|
|
10882
|
+
expirationDate: mod2.string().optional(),
|
|
10883
|
+
credentialStatus: CredentialStatusValidator2.or(
|
|
10884
|
+
CredentialStatusValidator2.array()
|
|
10885
|
+
).optional(),
|
|
10886
|
+
name: mod2.string().optional(),
|
|
10887
|
+
description: mod2.string().optional(),
|
|
10888
|
+
validFrom: mod2.string().optional(),
|
|
10889
|
+
validUntil: mod2.string().optional(),
|
|
10890
|
+
status: CredentialStatusValidator2.or(CredentialStatusValidator2.array()).optional(),
|
|
10891
|
+
termsOfUse: TermsOfUseValidator2.or(TermsOfUseValidator2.array()).optional(),
|
|
10892
|
+
evidence: VC2EvidenceValidator2.or(VC2EvidenceValidator2.array()).optional()
|
|
10878
10893
|
}).catchall(mod2.any());
|
|
10879
10894
|
var ProofValidator2 = mod2.object({
|
|
10880
10895
|
type: mod2.string(),
|
|
@@ -11126,7 +11141,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
11126
11141
|
}).catchall(mod2.any());
|
|
11127
11142
|
var EvidenceValidator2 = mod2.object({
|
|
11128
11143
|
id: mod2.string().optional(),
|
|
11129
|
-
type: mod2.string().array().nonempty(),
|
|
11144
|
+
type: mod2.string().or(mod2.string().array().nonempty()),
|
|
11130
11145
|
narrative: mod2.string().optional(),
|
|
11131
11146
|
name: mod2.string().optional(),
|
|
11132
11147
|
description: mod2.string().optional(),
|
|
@@ -11242,7 +11257,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
11242
11257
|
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
11243
11258
|
type: mod2.string().optional(),
|
|
11244
11259
|
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
11245
|
-
display: LCNProfileDisplayValidator2.optional()
|
|
11260
|
+
display: LCNProfileDisplayValidator2.optional(),
|
|
11261
|
+
role: mod2.string().default("").optional(),
|
|
11262
|
+
dob: mod2.string().default("").optional()
|
|
11246
11263
|
});
|
|
11247
11264
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
11248
11265
|
profileId: StringQuery2,
|
|
@@ -15044,18 +15061,31 @@ var ProfileValidator = mod.string().or(
|
|
|
15044
15061
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
|
15045
15062
|
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
|
15046
15063
|
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
15047
|
-
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
|
15064
|
+
var RefreshServiceValidator = mod.object({ id: mod.string().optional(), type: mod.string() }).catchall(mod.any());
|
|
15065
|
+
var TermsOfUseValidator = mod.object({ type: mod.string(), id: mod.string().optional() }).catchall(mod.any());
|
|
15066
|
+
var VC2EvidenceValidator = mod.object({ type: mod.string().or(mod.string().array().nonempty()), id: mod.string().optional() }).catchall(mod.any());
|
|
15048
15067
|
var UnsignedVCValidator = mod.object({
|
|
15049
15068
|
"@context": ContextValidator,
|
|
15050
15069
|
id: mod.string().optional(),
|
|
15051
15070
|
type: mod.string().array().nonempty(),
|
|
15052
15071
|
issuer: ProfileValidator,
|
|
15053
|
-
issuanceDate: mod.string(),
|
|
15054
|
-
expirationDate: mod.string().optional(),
|
|
15055
15072
|
credentialSubject: CredentialSubjectValidator.or(CredentialSubjectValidator.array()),
|
|
15056
|
-
|
|
15057
|
-
credentialSchema: CredentialSchemaValidator.
|
|
15058
|
-
|
|
15073
|
+
refreshService: RefreshServiceValidator.or(RefreshServiceValidator.array()).optional(),
|
|
15074
|
+
credentialSchema: CredentialSchemaValidator.or(
|
|
15075
|
+
CredentialSchemaValidator.array()
|
|
15076
|
+
).optional(),
|
|
15077
|
+
issuanceDate: mod.string().optional(),
|
|
15078
|
+
expirationDate: mod.string().optional(),
|
|
15079
|
+
credentialStatus: CredentialStatusValidator.or(
|
|
15080
|
+
CredentialStatusValidator.array()
|
|
15081
|
+
).optional(),
|
|
15082
|
+
name: mod.string().optional(),
|
|
15083
|
+
description: mod.string().optional(),
|
|
15084
|
+
validFrom: mod.string().optional(),
|
|
15085
|
+
validUntil: mod.string().optional(),
|
|
15086
|
+
status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
|
|
15087
|
+
termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
|
|
15088
|
+
evidence: VC2EvidenceValidator.or(VC2EvidenceValidator.array()).optional()
|
|
15059
15089
|
}).catchall(mod.any());
|
|
15060
15090
|
var ProofValidator = mod.object({
|
|
15061
15091
|
type: mod.string(),
|
|
@@ -15307,7 +15337,7 @@ var AchievementSubjectValidator = mod.object({
|
|
|
15307
15337
|
}).catchall(mod.any());
|
|
15308
15338
|
var EvidenceValidator = mod.object({
|
|
15309
15339
|
id: mod.string().optional(),
|
|
15310
|
-
type: mod.string().array().nonempty(),
|
|
15340
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
|
15311
15341
|
narrative: mod.string().optional(),
|
|
15312
15342
|
name: mod.string().optional(),
|
|
15313
15343
|
description: mod.string().optional(),
|
|
@@ -15423,7 +15453,9 @@ var LCNProfileValidator = mod.object({
|
|
|
15423
15453
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
15424
15454
|
type: mod.string().optional(),
|
|
15425
15455
|
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
15426
|
-
display: LCNProfileDisplayValidator.optional()
|
|
15456
|
+
display: LCNProfileDisplayValidator.optional(),
|
|
15457
|
+
role: mod.string().default("").optional(),
|
|
15458
|
+
dob: mod.string().default("").optional()
|
|
15427
15459
|
});
|
|
15428
15460
|
var LCNProfileQueryValidator = mod.object({
|
|
15429
15461
|
profileId: StringQuery,
|