@learncard/react 2.9.21 → 2.9.24
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/cjs/{BoostGenericCard-7fadd6af.js → BoostGenericCard-a7715516.js} +2 -2
- package/dist/cjs/{BoostGenericCard-7fadd6af.js.map → BoostGenericCard-a7715516.js.map} +1 -1
- package/dist/cjs/{CertificateDisplayCard-3dd9a3f8.js → CertificateDisplayCard-068acbdd.js} +4 -4
- package/dist/cjs/{CertificateDisplayCard-3dd9a3f8.js.map → CertificateDisplayCard-068acbdd.js.map} +1 -1
- package/dist/cjs/{MeritBadgeDisplayCard-2a690a63.js → MeritBadgeDisplayCard-889bdf99.js} +4 -4
- package/dist/cjs/{MeritBadgeDisplayCard-2a690a63.js.map → MeritBadgeDisplayCard-889bdf99.js.map} +1 -1
- package/dist/cjs/{MeritBadgeSkillsCount-ae6e8ed4.js → MeritBadgeSkillsCount-63c3b095.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-ae6e8ed4.js.map → MeritBadgeSkillsCount-63c3b095.js.map} +1 -1
- package/dist/cjs/{SchoolIDCard-dddb3b1d.js → SchoolIDCard-e22d0d80.js} +1184 -3
- package/dist/cjs/SchoolIDCard-e22d0d80.js.map +1 -0
- package/dist/cjs/{VCCard-7473b581.js → VCCard-a3d910f5.js} +3 -3
- package/dist/cjs/{VCCard-7473b581.js.map → VCCard-a3d910f5.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-a05e4046.js → VCDisplayBackFace-cf35d92f.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-a05e4046.js.map → VCDisplayBackFace-cf35d92f.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-3346d2f9.js → VCDisplayCard-0eeef4fa.js} +3 -3
- package/dist/cjs/{VCDisplayCard-3346d2f9.js.map → VCDisplayCard-0eeef4fa.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-d713808f.js → VCDisplayCard2-396dab11.js} +6 -7
- package/dist/{esm/VCDisplayCard2-325d6536.js.map → cjs/VCDisplayCard2-396dab11.js.map} +1 -1
- package/dist/cjs/{VCVerificationPill-08b37c5d.js → VCVerificationPill-9f71e54c.js} +2 -2
- package/dist/cjs/{VCVerificationPill-08b37c5d.js.map → VCVerificationPill-9f71e54c.js.map} +1 -1
- package/dist/cjs/{VerifierStateBadgeAndText-af68fd70.js → VerifierStateBadgeAndText-880406af.js} +168 -10
- package/dist/cjs/VerifierStateBadgeAndText-880406af.js.map +1 -0
- package/dist/cjs/{credential.helpers-f060ee96.js → credential.helpers-446ef2ea.js} +2 -2
- package/dist/cjs/{credential.helpers-f060ee96.js.map → credential.helpers-446ef2ea.js.map} +1 -1
- package/dist/cjs/index.js +13 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index13.js +13 -14
- package/dist/cjs/index13.js.map +1 -1
- package/dist/cjs/index21.js +5 -5
- package/dist/cjs/index3.js +3 -3
- package/dist/cjs/index30.js +1 -2
- package/dist/cjs/index30.js.map +1 -1
- package/dist/cjs/index38.js +10 -11
- package/dist/cjs/index38.js.map +1 -1
- package/dist/cjs/index39.js +4 -4
- package/dist/cjs/index40.js +5 -5
- package/dist/cjs/index41.js +6 -7
- package/dist/cjs/index41.js.map +1 -1
- package/dist/cjs/index42.js +1 -1
- package/dist/cjs/index45.js +2 -2
- package/dist/cjs/index6.js +4 -4
- package/dist/cjs/{types.esm-4a1c2fcd.js → types.esm-9618781d.js} +153 -9
- package/dist/cjs/types.esm-9618781d.js.map +1 -0
- package/dist/esm/{BoostGenericCard-39cf631c.js → BoostGenericCard-b427f2aa.js} +2 -2
- package/dist/esm/{BoostGenericCard-39cf631c.js.map → BoostGenericCard-b427f2aa.js.map} +1 -1
- package/dist/esm/{CertificateDisplayCard-110ddfae.js → CertificateDisplayCard-62416984.js} +4 -4
- package/dist/esm/{CertificateDisplayCard-110ddfae.js.map → CertificateDisplayCard-62416984.js.map} +1 -1
- package/dist/esm/{MeritBadgeDisplayCard-8a1cb8fb.js → MeritBadgeDisplayCard-b41cfcd5.js} +4 -4
- package/dist/esm/{MeritBadgeDisplayCard-8a1cb8fb.js.map → MeritBadgeDisplayCard-b41cfcd5.js.map} +1 -1
- package/dist/esm/{MeritBadgeSkillsCount-0d7bec55.js → MeritBadgeSkillsCount-31d1f453.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-0d7bec55.js.map → MeritBadgeSkillsCount-31d1f453.js.map} +1 -1
- package/dist/esm/{SchoolIDCard-4e51671c.js → SchoolIDCard-8b151cd3.js} +1183 -2
- package/dist/esm/SchoolIDCard-8b151cd3.js.map +1 -0
- package/dist/esm/{VCCard-e89d7a98.js → VCCard-60cb51cd.js} +3 -3
- package/dist/esm/{VCCard-e89d7a98.js.map → VCCard-60cb51cd.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-eeaa642e.js → VCDisplayBackFace-accc7026.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-eeaa642e.js.map → VCDisplayBackFace-accc7026.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-fb1b7706.js → VCDisplayCard-5b0a8f0a.js} +3 -3
- package/dist/esm/{VCDisplayCard-fb1b7706.js.map → VCDisplayCard-5b0a8f0a.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-325d6536.js → VCDisplayCard2-b187b19f.js} +6 -7
- package/dist/{cjs/VCDisplayCard2-d713808f.js.map → esm/VCDisplayCard2-b187b19f.js.map} +1 -1
- package/dist/esm/{VCVerificationPill-ba90b49b.js → VCVerificationPill-6c44c9e5.js} +2 -2
- package/dist/esm/{VCVerificationPill-ba90b49b.js.map → VCVerificationPill-6c44c9e5.js.map} +1 -1
- package/dist/esm/{VerifierStateBadgeAndText-6d33089b.js → VerifierStateBadgeAndText-1b3a663a.js} +168 -10
- package/dist/esm/VerifierStateBadgeAndText-1b3a663a.js.map +1 -0
- package/dist/esm/{credential.helpers-30058000.js → credential.helpers-a136b2db.js} +2 -2
- package/dist/esm/{credential.helpers-30058000.js.map → credential.helpers-a136b2db.js.map} +1 -1
- package/dist/esm/index.js +13 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index13.js +13 -14
- package/dist/esm/index13.js.map +1 -1
- package/dist/esm/index21.js +5 -5
- package/dist/esm/index3.js +3 -3
- package/dist/esm/index30.js +1 -2
- package/dist/esm/index30.js.map +1 -1
- package/dist/esm/index38.js +10 -11
- package/dist/esm/index38.js.map +1 -1
- package/dist/esm/index39.js +4 -4
- package/dist/esm/index40.js +5 -5
- package/dist/esm/index41.js +6 -7
- package/dist/esm/index41.js.map +1 -1
- package/dist/esm/index42.js +1 -1
- package/dist/esm/index45.js +2 -2
- package/dist/esm/index6.js +4 -4
- package/dist/esm/{types.esm-f58818d5.js → types.esm-707b2e76.js} +153 -9
- package/dist/esm/types.esm-707b2e76.js.map +1 -0
- package/package.json +4 -4
- package/dist/cjs/SchoolIDCard-dddb3b1d.js.map +0 -1
- package/dist/cjs/VerifierStateBadgeAndText-af68fd70.js.map +0 -1
- package/dist/cjs/index-838fa72c.js +0 -1186
- package/dist/cjs/index-838fa72c.js.map +0 -1
- package/dist/cjs/types.esm-4a1c2fcd.js.map +0 -1
- package/dist/esm/SchoolIDCard-4e51671c.js.map +0 -1
- package/dist/esm/VerifierStateBadgeAndText-6d33089b.js.map +0 -1
- package/dist/esm/index-4fa491c1.js +0 -1184
- package/dist/esm/index-4fa491c1.js.map +0 -1
- package/dist/esm/types.esm-f58818d5.js.map +0 -1
|
@@ -4331,6 +4331,42 @@ var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
|
|
|
4331
4331
|
UnsignedAchievementCredentialValidator.extend({
|
|
4332
4332
|
proof: ProofValidator.or(ProofValidator.array())
|
|
4333
4333
|
});
|
|
4334
|
+
var AssociationTypeValidator = _enum([
|
|
4335
|
+
"exactMatchOf",
|
|
4336
|
+
"extends",
|
|
4337
|
+
"isChildOf",
|
|
4338
|
+
"isParentOf",
|
|
4339
|
+
"isPartOf",
|
|
4340
|
+
"isPeerOf",
|
|
4341
|
+
"isRelatedTo",
|
|
4342
|
+
"precedes",
|
|
4343
|
+
"replacedBy"
|
|
4344
|
+
]).or(string());
|
|
4345
|
+
var AssociationValidator = object({
|
|
4346
|
+
type: string().array().nonempty(),
|
|
4347
|
+
associationType: AssociationTypeValidator,
|
|
4348
|
+
sourceId: string().optional(),
|
|
4349
|
+
targetId: string()
|
|
4350
|
+
}).catchall(any());
|
|
4351
|
+
var ClrSubjectValidator = object({
|
|
4352
|
+
id: string().optional(),
|
|
4353
|
+
type: string().array().nonempty(),
|
|
4354
|
+
identifier: any().array().optional(),
|
|
4355
|
+
achievement: AchievementValidator.array().optional(),
|
|
4356
|
+
association: AssociationValidator.array().optional(),
|
|
4357
|
+
verifiableCredential: any().array().optional()
|
|
4358
|
+
}).catchall(any());
|
|
4359
|
+
var UnsignedClrCredentialValidator = UnsignedVCValidator.extend({
|
|
4360
|
+
name: string().optional(),
|
|
4361
|
+
description: string().optional(),
|
|
4362
|
+
image: ImageValidator.optional(),
|
|
4363
|
+
credentialSubject: ClrSubjectValidator.or(ClrSubjectValidator.array()),
|
|
4364
|
+
endorsement: EndorsementCredentialValidator.array().optional(),
|
|
4365
|
+
partial: boolean().optional()
|
|
4366
|
+
});
|
|
4367
|
+
UnsignedClrCredentialValidator.extend({
|
|
4368
|
+
proof: ProofValidator.or(ProofValidator.array())
|
|
4369
|
+
});
|
|
4334
4370
|
object({
|
|
4335
4371
|
checks: string().array(),
|
|
4336
4372
|
warnings: string().array(),
|
|
@@ -4682,10 +4718,16 @@ var SendBrandingOptionsValidator = object({
|
|
|
4682
4718
|
credentialName: string().optional().describe("Display name for the credential"),
|
|
4683
4719
|
recipientName: string().optional().describe("Name of the recipient for personalization")
|
|
4684
4720
|
});
|
|
4721
|
+
var GuardianStatusValidator = _enum([
|
|
4722
|
+
"AWAITING_GUARDIAN",
|
|
4723
|
+
"GUARDIAN_APPROVED",
|
|
4724
|
+
"GUARDIAN_REJECTED"
|
|
4725
|
+
]);
|
|
4685
4726
|
var SendOptionsValidator = object({
|
|
4686
4727
|
webhookUrl: string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
4687
4728
|
suppressDelivery: boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
4688
|
-
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery")
|
|
4729
|
+
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery"),
|
|
4730
|
+
guardianEmail: string().email().optional().describe("Guardian email that must approve before student can claim")
|
|
4689
4731
|
});
|
|
4690
4732
|
var SendBoostInputValidator = object({
|
|
4691
4733
|
type: literal("boost"),
|
|
@@ -4702,11 +4744,26 @@ var SendBoostInputValidator = object({
|
|
|
4702
4744
|
}).refine((data) => data.templateUri || data.template || data.signedCredential, {
|
|
4703
4745
|
message: "Either templateUri, template, or signedCredential must be provided.",
|
|
4704
4746
|
path: ["templateUri"]
|
|
4705
|
-
})
|
|
4747
|
+
}).refine(
|
|
4748
|
+
(data) => {
|
|
4749
|
+
var _a2;
|
|
4750
|
+
if ((_a2 = data.options) == null ? void 0 : _a2.guardianEmail) {
|
|
4751
|
+
return data.options.guardianEmail.toLowerCase() !== data.recipient.toLowerCase();
|
|
4752
|
+
}
|
|
4753
|
+
return true;
|
|
4754
|
+
},
|
|
4755
|
+
{
|
|
4756
|
+
message: "guardianEmail must differ from recipient (self-approval not allowed)",
|
|
4757
|
+
path: ["options", "guardianEmail"]
|
|
4758
|
+
}
|
|
4759
|
+
);
|
|
4706
4760
|
var SendInboxResponseValidator = object({
|
|
4707
4761
|
issuanceId: string(),
|
|
4708
4762
|
status: _enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
|
|
4709
|
-
claimUrl: string().url().optional().describe("Present when suppressDelivery=true")
|
|
4763
|
+
claimUrl: string().url().optional().describe("Present when suppressDelivery=true"),
|
|
4764
|
+
guardianStatus: GuardianStatusValidator.optional().describe(
|
|
4765
|
+
"Present when guardianEmail was specified"
|
|
4766
|
+
)
|
|
4710
4767
|
});
|
|
4711
4768
|
var SendBoostResponseValidator = object({
|
|
4712
4769
|
type: literal("boost"),
|
|
@@ -4943,7 +5000,11 @@ var LCNNotificationTypeEnumValidator = _enum([
|
|
|
4943
5000
|
"APP_LISTING_APPROVED",
|
|
4944
5001
|
"APP_LISTING_REJECTED",
|
|
4945
5002
|
"APP_LISTING_WITHDRAWN",
|
|
4946
|
-
"DEVICE_LINK_REQUEST"
|
|
5003
|
+
"DEVICE_LINK_REQUEST",
|
|
5004
|
+
"GUARDIAN_APPROVAL_PENDING",
|
|
5005
|
+
"GUARDIAN_APPROVED",
|
|
5006
|
+
"GUARDIAN_REJECTED",
|
|
5007
|
+
"APP_NOTIFICATION"
|
|
4947
5008
|
]);
|
|
4948
5009
|
var LCNNotificationMessageValidator = object({
|
|
4949
5010
|
title: string().optional(),
|
|
@@ -4981,7 +5042,10 @@ var LCNNotificationDataValidator = object({
|
|
|
4981
5042
|
object({
|
|
4982
5043
|
type: LCNNotificationTypeEnumValidator,
|
|
4983
5044
|
to: LCNProfileValidator.partial().and(object({ did: string() })),
|
|
4984
|
-
from:
|
|
5045
|
+
from: union([
|
|
5046
|
+
string(),
|
|
5047
|
+
LCNProfileValidator.partial().and(object({ did: string() }))
|
|
5048
|
+
]),
|
|
4985
5049
|
message: LCNNotificationMessageValidator.optional(),
|
|
4986
5050
|
data: LCNNotificationDataValidator.optional(),
|
|
4987
5051
|
sent: datetime().optional(),
|
|
@@ -5086,7 +5150,12 @@ var InboxCredentialValidator = object({
|
|
|
5086
5150
|
signingAuthority: object({
|
|
5087
5151
|
endpoint: string().optional(),
|
|
5088
5152
|
name: string().optional()
|
|
5089
|
-
}).optional()
|
|
5153
|
+
}).optional(),
|
|
5154
|
+
// Guardian gate fields (all optional — absent on pre-existing credentials)
|
|
5155
|
+
guardianEmail: string().email().optional(),
|
|
5156
|
+
guardianStatus: GuardianStatusValidator.optional(),
|
|
5157
|
+
guardianApprovedAt: string().optional(),
|
|
5158
|
+
guardianApprovedByDid: string().optional()
|
|
5090
5159
|
});
|
|
5091
5160
|
object({
|
|
5092
5161
|
hasMore: boolean(),
|
|
@@ -5554,11 +5623,86 @@ var GetTemplateRecipientsEventValidator = object({
|
|
|
5554
5623
|
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
5555
5624
|
message: "Exactly one of templateAlias or boostUri is required"
|
|
5556
5625
|
});
|
|
5626
|
+
var RequestLearnerContextEventValidator = object({
|
|
5627
|
+
type: literal("request-learner-context"),
|
|
5628
|
+
includeCredentials: boolean().optional().default(true),
|
|
5629
|
+
includePersonalData: boolean().optional().default(false),
|
|
5630
|
+
format: _enum(["prompt", "structured"]).optional().default("prompt"),
|
|
5631
|
+
instructions: string().optional(),
|
|
5632
|
+
detailLevel: _enum(["compact", "expanded"]).optional().default("compact")
|
|
5633
|
+
});
|
|
5634
|
+
var SummaryCredentialKeywordValidator = object({
|
|
5635
|
+
occupations: array(string()).nullable(),
|
|
5636
|
+
careers: array(string()).nullable(),
|
|
5637
|
+
jobs: array(string()).nullable(),
|
|
5638
|
+
skills: array(string()).nullable(),
|
|
5639
|
+
fieldOfStudy: string().nullable()
|
|
5640
|
+
});
|
|
5641
|
+
var SummaryCredentialDataValidator = object({
|
|
5642
|
+
title: string().describe("Short, concise title for the learning session or credential"),
|
|
5643
|
+
summary: string().describe("Comprehensive summary of what happened during the session"),
|
|
5644
|
+
learned: array(string()).describe("Bullet points of key knowledge gained"),
|
|
5645
|
+
skills: array(
|
|
5646
|
+
object({
|
|
5647
|
+
title: string().describe("Name of the skill category"),
|
|
5648
|
+
description: string().describe("Detailed description of what this skill category involves")
|
|
5649
|
+
})
|
|
5650
|
+
).describe("Categorized skills learned during the session"),
|
|
5651
|
+
nextSteps: array(
|
|
5652
|
+
object({
|
|
5653
|
+
title: string().describe("Title of the suggested next step"),
|
|
5654
|
+
description: string().describe("Description explaining why this next step is recommended"),
|
|
5655
|
+
keywords: SummaryCredentialKeywordValidator.optional().describe(
|
|
5656
|
+
"Optional taxonomy keywords for occupations/careers/jobs/skills/fieldOfStudy. Omit if not relevant."
|
|
5657
|
+
)
|
|
5658
|
+
})
|
|
5659
|
+
).describe("Recommended follow-up activities or learning modules"),
|
|
5660
|
+
reflections: array(
|
|
5661
|
+
object({
|
|
5662
|
+
title: string().describe("Title of the reflection"),
|
|
5663
|
+
description: string().describe("Detailed description of what this reflection involves")
|
|
5664
|
+
})
|
|
5665
|
+
).describe("Reflections on the learning experience")
|
|
5666
|
+
});
|
|
5667
|
+
var SendAiSessionCredentialEventValidator = object({
|
|
5668
|
+
type: literal("send-ai-session-credential"),
|
|
5669
|
+
sessionTitle: string(),
|
|
5670
|
+
summaryData: SummaryCredentialDataValidator,
|
|
5671
|
+
metadata: record(string(), unknown()).optional()
|
|
5672
|
+
});
|
|
5673
|
+
var SendNotificationEventValidator = object({
|
|
5674
|
+
type: literal("send-notification"),
|
|
5675
|
+
title: string().optional(),
|
|
5676
|
+
body: string().optional(),
|
|
5677
|
+
actionPath: string().optional(),
|
|
5678
|
+
category: string().optional(),
|
|
5679
|
+
priority: _enum(["normal", "high"]).optional()
|
|
5680
|
+
});
|
|
5681
|
+
var counterKeyValidator = string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/, "Key must be alphanumeric with _ or -");
|
|
5682
|
+
var IncrementCounterEventValidator = object({
|
|
5683
|
+
type: literal("increment-counter"),
|
|
5684
|
+
key: counterKeyValidator,
|
|
5685
|
+
amount: number().int().finite()
|
|
5686
|
+
});
|
|
5687
|
+
var GetCounterEventValidator = object({
|
|
5688
|
+
type: literal("get-counter"),
|
|
5689
|
+
key: counterKeyValidator
|
|
5690
|
+
});
|
|
5691
|
+
var GetCountersEventValidator = object({
|
|
5692
|
+
type: literal("get-counters"),
|
|
5693
|
+
keys: array(counterKeyValidator).min(1).max(50).optional()
|
|
5694
|
+
});
|
|
5557
5695
|
var AppEventValidator = discriminatedUnion("type", [
|
|
5558
5696
|
SendCredentialEventValidator,
|
|
5559
5697
|
CheckCredentialEventValidator,
|
|
5560
5698
|
CheckIssuanceStatusEventValidator,
|
|
5561
|
-
GetTemplateRecipientsEventValidator
|
|
5699
|
+
GetTemplateRecipientsEventValidator,
|
|
5700
|
+
RequestLearnerContextEventValidator,
|
|
5701
|
+
SendAiSessionCredentialEventValidator,
|
|
5702
|
+
SendNotificationEventValidator,
|
|
5703
|
+
IncrementCounterEventValidator,
|
|
5704
|
+
GetCounterEventValidator,
|
|
5705
|
+
GetCountersEventValidator
|
|
5562
5706
|
]);
|
|
5563
5707
|
object({
|
|
5564
5708
|
listingId: string(),
|
|
@@ -5589,7 +5733,7 @@ var CredentialActivityValidator = object({
|
|
|
5589
5733
|
activityId: string(),
|
|
5590
5734
|
eventType: CredentialActivityEventTypeValidator,
|
|
5591
5735
|
timestamp: string(),
|
|
5592
|
-
actorProfileId: string(),
|
|
5736
|
+
actorProfileId: string().optional(),
|
|
5593
5737
|
recipientType: CredentialActivityRecipientTypeValidator,
|
|
5594
5738
|
recipientIdentifier: string(),
|
|
5595
5739
|
boostUri: string().optional(),
|
|
@@ -5631,4 +5775,4 @@ object({
|
|
|
5631
5775
|
}, __name(_a, "AuthSessionError"), _a);
|
|
5632
5776
|
|
|
5633
5777
|
export { VerificationStatusEnum as V, literal as l, number as n, object as o, string as s, union as u };
|
|
5634
|
-
//# sourceMappingURL=types.esm-
|
|
5778
|
+
//# sourceMappingURL=types.esm-707b2e76.js.map
|