@learncard/types 5.13.1 → 5.13.3
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/lcn.d.ts +964 -8
- package/dist/lcn.d.ts.map +1 -1
- package/dist/types.cjs.development.js +67 -3
- package/dist/types.cjs.development.js.map +2 -2
- package/dist/types.cjs.production.min.js +5 -5
- package/dist/types.cjs.production.min.js.map +3 -3
- package/dist/types.esm.js +67 -3
- package/dist/types.esm.js.map +2 -2
- package/package.json +1 -1
package/dist/types.esm.js
CHANGED
|
@@ -508,6 +508,8 @@ var LCNProfileDisplayValidator = z9.object({
|
|
|
508
508
|
idBackgroundColor: z9.string().optional(),
|
|
509
509
|
repeatIdBackgroundImage: z9.boolean().optional()
|
|
510
510
|
});
|
|
511
|
+
var ProfileVisibilityEnum = z9.enum(["public", "connections_only", "private"]);
|
|
512
|
+
var AllowConnectionRequestsEnum = z9.enum(["anyone", "invite_only"]);
|
|
511
513
|
var LCNProfileValidator = z9.object({
|
|
512
514
|
profileId: z9.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
513
515
|
displayName: z9.string().default("").describe("Human-readable display name for the profile."),
|
|
@@ -515,6 +517,9 @@ var LCNProfileValidator = z9.object({
|
|
|
515
517
|
bio: z9.string().default("").describe("Longer bio for the profile."),
|
|
516
518
|
did: z9.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
517
519
|
isPrivate: z9.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
520
|
+
profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
|
|
521
|
+
showEmail: z9.boolean().default(false).optional().describe("Whether to show email to connections."),
|
|
522
|
+
allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
|
|
518
523
|
email: z9.string().optional().describe("Contact email address for the profile. (deprecated)"),
|
|
519
524
|
image: z9.string().optional().describe("Profile image URL for the profile."),
|
|
520
525
|
heroImage: z9.string().optional().describe("Hero image URL for the profile."),
|
|
@@ -529,6 +534,32 @@ var LCNProfileValidator = z9.object({
|
|
|
529
534
|
country: z9.string().optional().describe("Country for the profile."),
|
|
530
535
|
approved: z9.boolean().optional().describe("Approval status for the profile.")
|
|
531
536
|
});
|
|
537
|
+
var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
538
|
+
profileId: true,
|
|
539
|
+
displayName: true,
|
|
540
|
+
shortBio: true,
|
|
541
|
+
image: true,
|
|
542
|
+
heroImage: true,
|
|
543
|
+
type: true,
|
|
544
|
+
isServiceProfile: true,
|
|
545
|
+
display: true
|
|
546
|
+
});
|
|
547
|
+
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
548
|
+
bio: LCNProfileValidator.shape.bio,
|
|
549
|
+
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
550
|
+
role: LCNProfileValidator.shape.role,
|
|
551
|
+
highlightedCredentials: LCNProfileValidator.shape.highlightedCredentials,
|
|
552
|
+
did: LCNProfileValidator.shape.did
|
|
553
|
+
});
|
|
554
|
+
var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
|
|
555
|
+
email: LCNProfileValidator.shape.email
|
|
556
|
+
});
|
|
557
|
+
var LCNVisibleProfileValidator = z9.union([
|
|
558
|
+
LCNConnectionProfileValidator.strict(),
|
|
559
|
+
LCNAuthedProfileValidator.strict(),
|
|
560
|
+
LCNPublicProfileValidator.strict(),
|
|
561
|
+
LCNProfileValidator
|
|
562
|
+
]);
|
|
532
563
|
var LCNProfileQueryValidator = z9.object({
|
|
533
564
|
profileId: StringQuery,
|
|
534
565
|
displayName: StringQuery,
|
|
@@ -542,6 +573,9 @@ var LCNProfileQueryValidator = z9.object({
|
|
|
542
573
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
543
574
|
records: LCNProfileValidator.array()
|
|
544
575
|
});
|
|
576
|
+
var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
577
|
+
records: LCNVisibleProfileValidator.array()
|
|
578
|
+
});
|
|
545
579
|
var LCNProfileConnectionStatusEnum = z9.enum([
|
|
546
580
|
"CONNECTED",
|
|
547
581
|
"PENDING_REQUEST_SENT",
|
|
@@ -675,7 +709,7 @@ var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
|
675
709
|
records: BoostValidator.array()
|
|
676
710
|
});
|
|
677
711
|
var BoostRecipientValidator = z9.object({
|
|
678
|
-
to:
|
|
712
|
+
to: LCNVisibleProfileValidator,
|
|
679
713
|
from: z9.string(),
|
|
680
714
|
received: z9.string().optional(),
|
|
681
715
|
uri: z9.string().optional()
|
|
@@ -684,7 +718,7 @@ var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
|
684
718
|
records: BoostRecipientValidator.array()
|
|
685
719
|
});
|
|
686
720
|
var BoostRecipientWithChildrenValidator = z9.object({
|
|
687
|
-
to:
|
|
721
|
+
to: LCNVisibleProfileValidator,
|
|
688
722
|
from: z9.string(),
|
|
689
723
|
received: z9.string().optional(),
|
|
690
724
|
boostUris: z9.array(z9.string()),
|
|
@@ -828,6 +862,16 @@ var ConsentFlowContractDetailsValidator = z9.object({
|
|
|
828
862
|
autoBoosts: z9.string().array().optional(),
|
|
829
863
|
writers: z9.array(LCNProfileValidator).optional()
|
|
830
864
|
});
|
|
865
|
+
var ConsentFlowContractRequestStatusValidator = z9.enum(["pending", "accepted", "denied"]).nullable();
|
|
866
|
+
var ConsentFlowContractRequestReadStatusValidator = z9.enum(["unseen", "seen"]).nullable();
|
|
867
|
+
var ConsentFlowContractRequestForProfileValidator = z9.object({
|
|
868
|
+
profile: LCNProfileValidator,
|
|
869
|
+
status: ConsentFlowContractRequestStatusValidator,
|
|
870
|
+
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
871
|
+
});
|
|
872
|
+
var ConsentFlowContractRequestForProfileListValidator = z9.array(
|
|
873
|
+
ConsentFlowContractRequestForProfileValidator
|
|
874
|
+
);
|
|
831
875
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
832
876
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
833
877
|
});
|
|
@@ -1517,6 +1561,11 @@ var PromotionLevelValidator = z9.enum([
|
|
|
1517
1561
|
"DEMOTED"
|
|
1518
1562
|
]);
|
|
1519
1563
|
var AgeRatingValidator = z9.enum(["4+", "9+", "12+", "17+"]);
|
|
1564
|
+
var AppStoreListingSubmitterValidator = z9.object({
|
|
1565
|
+
profileId: z9.string(),
|
|
1566
|
+
displayName: z9.string(),
|
|
1567
|
+
email: z9.string().optional()
|
|
1568
|
+
});
|
|
1520
1569
|
var AppStoreListingValidator = z9.object({
|
|
1521
1570
|
listing_id: z9.string(),
|
|
1522
1571
|
slug: z9.string().optional(),
|
|
@@ -1538,7 +1587,10 @@ var AppStoreListingValidator = z9.object({
|
|
|
1538
1587
|
screenshots: z9.array(z9.string()).optional(),
|
|
1539
1588
|
hero_background_color: z9.string().optional(),
|
|
1540
1589
|
min_age: z9.number().int().min(0).max(18).optional(),
|
|
1541
|
-
age_rating: AgeRatingValidator.optional()
|
|
1590
|
+
age_rating: AgeRatingValidator.optional(),
|
|
1591
|
+
submitted_at: z9.string().optional(),
|
|
1592
|
+
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
1593
|
+
contact_email: z9.string().email().optional()
|
|
1542
1594
|
});
|
|
1543
1595
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
1544
1596
|
listing_id: true,
|
|
@@ -1685,12 +1737,14 @@ export {
|
|
|
1685
1737
|
AgeRatingValidator,
|
|
1686
1738
|
AlignmentTargetTypeValidator,
|
|
1687
1739
|
AlignmentValidator,
|
|
1740
|
+
AllowConnectionRequestsEnum,
|
|
1688
1741
|
AppBoostValidator,
|
|
1689
1742
|
AppEventInputValidator,
|
|
1690
1743
|
AppEventResponseValidator,
|
|
1691
1744
|
AppEventValidator,
|
|
1692
1745
|
AppListingStatusValidator,
|
|
1693
1746
|
AppStoreListingCreateValidator,
|
|
1747
|
+
AppStoreListingSubmitterValidator,
|
|
1694
1748
|
AppStoreListingUpdateValidator,
|
|
1695
1749
|
AppStoreListingValidator,
|
|
1696
1750
|
AuthGrantQueryValidator,
|
|
@@ -1715,6 +1769,10 @@ export {
|
|
|
1715
1769
|
ConsentFlowContractDataValidator,
|
|
1716
1770
|
ConsentFlowContractDetailsValidator,
|
|
1717
1771
|
ConsentFlowContractQueryValidator,
|
|
1772
|
+
ConsentFlowContractRequestForProfileListValidator,
|
|
1773
|
+
ConsentFlowContractRequestForProfileValidator,
|
|
1774
|
+
ConsentFlowContractRequestReadStatusValidator,
|
|
1775
|
+
ConsentFlowContractRequestStatusValidator,
|
|
1718
1776
|
ConsentFlowContractValidator,
|
|
1719
1777
|
ConsentFlowDataForDidQueryValidator,
|
|
1720
1778
|
ConsentFlowDataQueryValidator,
|
|
@@ -1786,9 +1844,11 @@ export {
|
|
|
1786
1844
|
JWKValidator,
|
|
1787
1845
|
JWKWithPrivateKeyValidator,
|
|
1788
1846
|
KnownAchievementTypeValidator,
|
|
1847
|
+
LCNAuthedProfileValidator,
|
|
1789
1848
|
LCNBoostClaimLinkOptionsValidator,
|
|
1790
1849
|
LCNBoostClaimLinkSigningAuthorityValidator,
|
|
1791
1850
|
LCNBoostStatus,
|
|
1851
|
+
LCNConnectionProfileValidator,
|
|
1792
1852
|
LCNDomainOrOriginValidator,
|
|
1793
1853
|
LCNInboxContactMethodValidator,
|
|
1794
1854
|
LCNInboxStatusEnumValidator,
|
|
@@ -1808,8 +1868,10 @@ export {
|
|
|
1808
1868
|
LCNProfileManagerValidator,
|
|
1809
1869
|
LCNProfileQueryValidator,
|
|
1810
1870
|
LCNProfileValidator,
|
|
1871
|
+
LCNPublicProfileValidator,
|
|
1811
1872
|
LCNSigningAuthorityForUserValidator,
|
|
1812
1873
|
LCNSigningAuthorityValidator,
|
|
1874
|
+
LCNVisibleProfileValidator,
|
|
1813
1875
|
LaunchTypeValidator,
|
|
1814
1876
|
LinkProviderFrameworkInputValidator,
|
|
1815
1877
|
PaginatedAppStoreListingsValidator,
|
|
@@ -1834,9 +1896,11 @@ export {
|
|
|
1834
1896
|
PaginatedLCNProfilesValidator,
|
|
1835
1897
|
PaginatedSkillFrameworksValidator,
|
|
1836
1898
|
PaginatedSkillTreeValidator,
|
|
1899
|
+
PaginatedVisibleLCNProfilesValidator,
|
|
1837
1900
|
PaginationOptionsValidator,
|
|
1838
1901
|
PaginationResponseValidator,
|
|
1839
1902
|
ProfileValidator,
|
|
1903
|
+
ProfileVisibilityEnum,
|
|
1840
1904
|
PromotionLevelValidator,
|
|
1841
1905
|
ProofValidator,
|
|
1842
1906
|
RefreshServiceValidator,
|