@singi-labs/sifa-sdk 0.9.21 → 0.10.0

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.cjs CHANGED
@@ -796,6 +796,82 @@ function groupSkillsByCategory(skills) {
796
796
  return ordered;
797
797
  }
798
798
 
799
+ // src/taxonomy/app-categories.ts
800
+ var APP_CATEGORIES = {
801
+ Articles: { phosphorIcon: "Article" },
802
+ Chat: { phosphorIcon: "ChatsCircle" },
803
+ Code: { phosphorIcon: "Code" },
804
+ Events: { phosphorIcon: "CalendarBlank" },
805
+ Links: { phosphorIcon: "LinkSimple" },
806
+ Lists: { phosphorIcon: "ListBullets" },
807
+ Music: { phosphorIcon: "MusicNote" },
808
+ Pages: { phosphorIcon: "BrowserSimple" },
809
+ Pastes: { phosphorIcon: "Clipboard" },
810
+ Photos: { phosphorIcon: "Camera" },
811
+ Places: { phosphorIcon: "MapPin" },
812
+ Posts: { phosphorIcon: "ChatCircle" },
813
+ "Q&A": { phosphorIcon: "Question" },
814
+ Research: { phosphorIcon: "Path" },
815
+ Reviews: { phosphorIcon: "Star" },
816
+ Social: { phosphorIcon: "UsersThree" },
817
+ Verification: { phosphorIcon: "Key" },
818
+ Video: { phosphorIcon: "VideoCamera" }
819
+ };
820
+ var APP_CATEGORY_IDS = Object.keys(APP_CATEGORIES);
821
+ function isAppCategory(value) {
822
+ return Object.prototype.hasOwnProperty.call(APP_CATEGORIES, value);
823
+ }
824
+ function getAppCategoryIcon(category) {
825
+ return APP_CATEGORIES[category].phosphorIcon;
826
+ }
827
+
828
+ // src/taxonomy/app-category-map.ts
829
+ var APP_CATEGORY_MAP = {
830
+ // Backend-scanned (sifa-api APP_REGISTRY)
831
+ bluesky: "Posts",
832
+ tangled: "Code",
833
+ github: "Code",
834
+ smokesignal: "Events",
835
+ flashes: "Photos",
836
+ grain: "Photos",
837
+ whitewind: "Articles",
838
+ frontpage: "Links",
839
+ picosky: "Chat",
840
+ pastesphere: "Pastes",
841
+ standard: "Articles",
842
+ aetheros: "Pages",
843
+ roomy: "Social",
844
+ keytrace: "Verification",
845
+ popfeed: "Reviews",
846
+ streamplace: "Video",
847
+ semble: "Research",
848
+ youandme: "Social",
849
+ leaflet: "Articles",
850
+ colibri: "Social",
851
+ collectivesocial: "Lists",
852
+ bookhive: "Reviews",
853
+ beaconbits: "Places",
854
+ passports: "Places",
855
+ asq: "Q&A",
856
+ spark: "Posts",
857
+ nooki: "Social",
858
+ atstore: "Reviews",
859
+ plyr: "Music",
860
+ anisota: "Posts",
861
+ // Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
862
+ // no backend scan collection yet)
863
+ linkat: "Links",
864
+ kipclip: "Links",
865
+ statusphere: "Social",
866
+ margin: "Research"
867
+ };
868
+ function isKnownAppId(appId) {
869
+ return Object.prototype.hasOwnProperty.call(APP_CATEGORY_MAP, appId);
870
+ }
871
+ function categoryForApp(appId) {
872
+ return isKnownAppId(appId) ? APP_CATEGORY_MAP[appId] : void 0;
873
+ }
874
+
799
875
  // src/taxonomy/activity-tiers.json
800
876
  var activity_tiers_default = {
801
877
  $schema: "https://sifa.id/schemas/activity-tiers/v1.json",
@@ -1993,10 +2069,13 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
1993
2069
  });
1994
2070
 
1995
2071
  // src/index.ts
1996
- var SIFA_SDK_VERSION = "0.9.21";
2072
+ var SIFA_SDK_VERSION = "0.10.0";
1997
2073
 
1998
2074
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
1999
2075
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
2076
+ exports.APP_CATEGORIES = APP_CATEGORIES;
2077
+ exports.APP_CATEGORY_IDS = APP_CATEGORY_IDS;
2078
+ exports.APP_CATEGORY_MAP = APP_CATEGORY_MAP;
2000
2079
  exports.APP_URL_PATTERNS = APP_URL_PATTERNS;
2001
2080
  exports.AtmosphereFeedItemSchema = AtmosphereFeedItemSchema;
2002
2081
  exports.CATEGORY_LABELS = CATEGORY_LABELS;
@@ -2042,6 +2121,7 @@ exports.SifaFeedItemSchema = SifaFeedItemSchema;
2042
2121
  exports.WORKPLACE_TYPE_LABELS = WORKPLACE_TYPE_LABELS;
2043
2122
  exports.WORKPLACE_TYPE_OPTIONS = WORKPLACE_TYPE_OPTIONS;
2044
2123
  exports.atUriSchema = atUriSchema;
2124
+ exports.categoryForApp = categoryForApp;
2045
2125
  exports.certDateExtractor = certDateExtractor;
2046
2126
  exports.cidSchema = cidSchema;
2047
2127
  exports.completenessPercent = completenessPercent;
@@ -2063,6 +2143,7 @@ exports.formatLocation = formatLocation;
2063
2143
  exports.formatRelativeTime = formatRelativeTime;
2064
2144
  exports.getActivityTaxonomyVersion = getActivityTaxonomyVersion;
2065
2145
  exports.getActivityTier = getActivityTier;
2146
+ exports.getAppCategoryIcon = getAppCategoryIcon;
2066
2147
  exports.getAppIdForCollection = getAppIdForCollection;
2067
2148
  exports.getContinent = getContinent;
2068
2149
  exports.getDisplayLabel = getDisplayLabel;
@@ -2078,6 +2159,8 @@ exports.getPlatformLabel = getPlatformLabel;
2078
2159
  exports.getTierMeta = getTierMeta;
2079
2160
  exports.getWorkplaceTypeLabel = getWorkplaceTypeLabel;
2080
2161
  exports.groupSkillsByCategory = groupSkillsByCategory;
2162
+ exports.isAppCategory = isAppCategory;
2163
+ exports.isKnownAppId = isKnownAppId;
2081
2164
  exports.isKnownPlatform = isKnownPlatform;
2082
2165
  exports.isValidRgbColor = isValidRgbColor;
2083
2166
  exports.isVisibleActivityItem = isVisibleActivityItem;