@singi-labs/sifa-sdk 0.10.6 → 0.10.8

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/index.d.cts CHANGED
@@ -58,9 +58,12 @@ declare function getIndustryLabelKey(value: string): string;
58
58
  * Shape matches `INDUSTRY_OPTIONS`: `{ value, labelKey }` so consumers can run
59
59
  * `labelKey` through their own i18n layer (e.g. next-intl `useTranslations`).
60
60
  */
61
+ type OpenToGroup = 'work' | 'mentorship' | 'peer';
61
62
  interface OpenToOption {
62
63
  value: string;
63
64
  labelKey: string;
65
+ token: string;
66
+ group: OpenToGroup;
64
67
  }
65
68
  declare const OPEN_TO_OPTIONS: OpenToOption[];
66
69
  /**
@@ -197,6 +200,9 @@ declare const APP_CATEGORIES: {
197
200
  readonly Code: {
198
201
  readonly phosphorIcon: "Code";
199
202
  };
203
+ readonly Endorsements: {
204
+ readonly phosphorIcon: "HandHeart";
205
+ };
200
206
  readonly Events: {
201
207
  readonly phosphorIcon: "CalendarBlank";
202
208
  };
@@ -288,6 +294,7 @@ declare const APP_CATEGORY_MAP: {
288
294
  readonly atstore: "Reviews";
289
295
  readonly plyr: "Music";
290
296
  readonly anisota: "Posts";
297
+ readonly atfund: "Endorsements";
291
298
  readonly linkat: "Links";
292
299
  readonly kipclip: "Links";
293
300
  readonly statusphere: "Social";
package/dist/index.d.ts CHANGED
@@ -58,9 +58,12 @@ declare function getIndustryLabelKey(value: string): string;
58
58
  * Shape matches `INDUSTRY_OPTIONS`: `{ value, labelKey }` so consumers can run
59
59
  * `labelKey` through their own i18n layer (e.g. next-intl `useTranslations`).
60
60
  */
61
+ type OpenToGroup = 'work' | 'mentorship' | 'peer';
61
62
  interface OpenToOption {
62
63
  value: string;
63
64
  labelKey: string;
65
+ token: string;
66
+ group: OpenToGroup;
64
67
  }
65
68
  declare const OPEN_TO_OPTIONS: OpenToOption[];
66
69
  /**
@@ -197,6 +200,9 @@ declare const APP_CATEGORIES: {
197
200
  readonly Code: {
198
201
  readonly phosphorIcon: "Code";
199
202
  };
203
+ readonly Endorsements: {
204
+ readonly phosphorIcon: "HandHeart";
205
+ };
200
206
  readonly Events: {
201
207
  readonly phosphorIcon: "CalendarBlank";
202
208
  };
@@ -288,6 +294,7 @@ declare const APP_CATEGORY_MAP: {
288
294
  readonly atstore: "Reviews";
289
295
  readonly plyr: "Music";
290
296
  readonly anisota: "Posts";
297
+ readonly atfund: "Endorsements";
291
298
  readonly linkat: "Links";
292
299
  readonly kipclip: "Links";
293
300
  readonly statusphere: "Social";
package/dist/index.js CHANGED
@@ -649,15 +649,62 @@ function getIndustryLabelKey(value) {
649
649
 
650
650
  // src/taxonomy/open-to.ts
651
651
  var OPEN_TO_OPTIONS = [
652
- { value: "id.sifa.defs#fullTimeRoles", labelKey: "fullTimeRoles" },
653
- { value: "id.sifa.defs#partTimeRoles", labelKey: "partTimeRoles" },
654
- { value: "id.sifa.defs#contractRoles", labelKey: "contractRoles" },
655
- { value: "id.sifa.defs#commissions", labelKey: "commissions" },
656
- { value: "id.sifa.defs#boardPositions", labelKey: "boardPositions" },
657
- { value: "id.sifa.defs#mentoringOthers", labelKey: "mentoringOthers" },
658
- { value: "id.sifa.defs#beingMentored", labelKey: "beingMentored" },
659
- { value: "id.sifa.defs#collaborations", labelKey: "collaborations" }
652
+ {
653
+ value: "id.sifa.defs#fullTimeRoles",
654
+ labelKey: "fullTimeRoles",
655
+ token: "fullTime",
656
+ group: "work"
657
+ },
658
+ {
659
+ value: "id.sifa.defs#partTimeRoles",
660
+ labelKey: "partTimeRoles",
661
+ token: "partTime",
662
+ group: "work"
663
+ },
664
+ {
665
+ value: "id.sifa.defs#contractRoles",
666
+ labelKey: "contractRoles",
667
+ token: "contract",
668
+ group: "work"
669
+ },
670
+ {
671
+ value: "id.sifa.defs#commissions",
672
+ labelKey: "commissions",
673
+ token: "commissions",
674
+ group: "work"
675
+ },
676
+ {
677
+ value: "id.sifa.defs#boardPositions",
678
+ labelKey: "boardPositions",
679
+ token: "board",
680
+ group: "work"
681
+ },
682
+ {
683
+ value: "id.sifa.defs#mentoringOthers",
684
+ labelKey: "mentoringOthers",
685
+ token: "mentor",
686
+ group: "mentorship"
687
+ },
688
+ {
689
+ value: "id.sifa.defs#beingMentored",
690
+ labelKey: "beingMentored",
691
+ token: "mentee",
692
+ group: "mentorship"
693
+ },
694
+ {
695
+ value: "id.sifa.defs#collaborations",
696
+ labelKey: "collaborations",
697
+ token: "collab",
698
+ group: "peer"
699
+ }
660
700
  ];
701
+ Object.fromEntries(
702
+ OPEN_TO_OPTIONS.map((o) => [o.token, o.value])
703
+ );
704
+ Object.fromEntries(
705
+ OPEN_TO_OPTIONS.map((o) => [o.value, o.token])
706
+ );
707
+ OPEN_TO_OPTIONS.map((o) => o.token);
661
708
  var OPEN_TO_LEGACY_ALIASES = {
662
709
  "id.sifa.defs#mentoring": "mentoringOthers"
663
710
  };
@@ -799,6 +846,7 @@ var APP_CATEGORIES = {
799
846
  Articles: { phosphorIcon: "Article" },
800
847
  Chat: { phosphorIcon: "ChatsCircle" },
801
848
  Code: { phosphorIcon: "Code" },
849
+ Endorsements: { phosphorIcon: "HandHeart" },
802
850
  Events: { phosphorIcon: "CalendarBlank" },
803
851
  Links: { phosphorIcon: "LinkSimple" },
804
852
  Lists: { phosphorIcon: "ListBullets" },
@@ -855,6 +903,7 @@ var APP_CATEGORY_MAP = {
855
903
  atstore: "Reviews",
856
904
  plyr: "Music",
857
905
  anisota: "Posts",
906
+ atfund: "Endorsements",
858
907
  // Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
859
908
  // no backend scan collection yet)
860
909
  linkat: "Links",
@@ -1564,6 +1613,12 @@ var APP_URL_PATTERNS = Object.freeze({
1564
1613
  // SPA — per-record URLs require JS routing. plyr.fm doesn't expose a
1565
1614
  // public per-handle profile page server-side either; falls back to root.
1566
1615
  profileUrlPattern: "https://plyr.fm"
1616
+ },
1617
+ atfund: {
1618
+ // at.fund is auth-gated — `/give/{did}` 307s to `/` when not signed in,
1619
+ // and there's no public per-endorsement permalink. Profile fallback only,
1620
+ // pointing at the main /give listing.
1621
+ profileUrlPattern: "https://www.at.fund/give"
1567
1622
  }
1568
1623
  });
1569
1624
  var COLLECTION_TO_APP = [
@@ -1604,7 +1659,8 @@ var COLLECTION_TO_APP = [
1604
1659
  ["so.sprk.", "spark"],
1605
1660
  ["community.nooki.", "nooki"],
1606
1661
  ["fyi.atstore.", "atstore"],
1607
- ["fm.plyr.", "plyr"]
1662
+ ["fm.plyr.", "plyr"],
1663
+ ["fund.at.", "atfund"]
1608
1664
  ];
1609
1665
 
1610
1666
  // src/cards/resolve-card-url.ts
@@ -2169,7 +2225,7 @@ var ProfileVolunteeringRecordSchema = z.object({
2169
2225
  });
2170
2226
 
2171
2227
  // src/index.ts
2172
- var SIFA_SDK_VERSION = "0.10.6";
2228
+ var SIFA_SDK_VERSION = "0.10.8";
2173
2229
 
2174
2230
  export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, AtmosphereFeedItemSchema, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, PLATFORM_LABELS, PLATFORM_OPTIONS, PUBLISHERS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, SifaFeedItemSchema, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, categoryForApp, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, encodeFeedCursor, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getActivityTaxonomyVersion, getActivityTier, getAppCategoryIcon, getAppIdForCollection, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getWorkplaceTypeLabel, groupSkillsByCategory, hasAdultContent, isAppCategory, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
2175
2231
  //# sourceMappingURL=index.js.map