@singi-labs/sifa-sdk 0.9.21 → 0.9.22
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 +78 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -1
- package/dist/index.d.ts +121 -1
- package/dist/index.js +72 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -796,6 +796,76 @@ 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
|
+
Pages: { phosphorIcon: "BrowserSimple" },
|
|
808
|
+
Pastes: { phosphorIcon: "Clipboard" },
|
|
809
|
+
Photos: { phosphorIcon: "Camera" },
|
|
810
|
+
Places: { phosphorIcon: "MapPin" },
|
|
811
|
+
Posts: { phosphorIcon: "ChatCircle" },
|
|
812
|
+
Questions: { phosphorIcon: "Question" },
|
|
813
|
+
Research: { phosphorIcon: "Path" },
|
|
814
|
+
Reviews: { phosphorIcon: "Star" },
|
|
815
|
+
Social: { phosphorIcon: "UsersThree" },
|
|
816
|
+
Verification: { phosphorIcon: "Key" },
|
|
817
|
+
Video: { phosphorIcon: "VideoCamera" }
|
|
818
|
+
};
|
|
819
|
+
var APP_CATEGORY_IDS = Object.keys(APP_CATEGORIES);
|
|
820
|
+
function isAppCategory(value) {
|
|
821
|
+
return Object.prototype.hasOwnProperty.call(APP_CATEGORIES, value);
|
|
822
|
+
}
|
|
823
|
+
function getAppCategoryIcon(category) {
|
|
824
|
+
return APP_CATEGORIES[category].phosphorIcon;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
// src/taxonomy/app-category-map.ts
|
|
828
|
+
var APP_CATEGORY_MAP = {
|
|
829
|
+
// API registry (backend-scanned)
|
|
830
|
+
bluesky: "Posts",
|
|
831
|
+
tangled: "Code",
|
|
832
|
+
github: "Code",
|
|
833
|
+
smokesignal: "Events",
|
|
834
|
+
flashes: "Photos",
|
|
835
|
+
grain: "Photos",
|
|
836
|
+
whitewind: "Articles",
|
|
837
|
+
frontpage: "Links",
|
|
838
|
+
picosky: "Chat",
|
|
839
|
+
pastesphere: "Pastes",
|
|
840
|
+
standard: "Articles",
|
|
841
|
+
aetheros: "Pages",
|
|
842
|
+
roomy: "Social",
|
|
843
|
+
keytrace: "Verification",
|
|
844
|
+
popfeed: "Reviews",
|
|
845
|
+
streamplace: "Video",
|
|
846
|
+
semble: "Research",
|
|
847
|
+
youandme: "Social",
|
|
848
|
+
leaflet: "Articles",
|
|
849
|
+
colibri: "Social",
|
|
850
|
+
collectivesocial: "Lists",
|
|
851
|
+
// Web-only (rendered in pills/cards; not scanned as standalone collections yet)
|
|
852
|
+
linkat: "Links",
|
|
853
|
+
kipclip: "Links",
|
|
854
|
+
statusphere: "Social",
|
|
855
|
+
bookhive: "Reviews",
|
|
856
|
+
passports: "Social",
|
|
857
|
+
beaconbits: "Places",
|
|
858
|
+
margin: "Research",
|
|
859
|
+
anisota: "Posts",
|
|
860
|
+
asq: "Questions"
|
|
861
|
+
};
|
|
862
|
+
function isKnownAppId(appId) {
|
|
863
|
+
return Object.prototype.hasOwnProperty.call(APP_CATEGORY_MAP, appId);
|
|
864
|
+
}
|
|
865
|
+
function categoryForApp(appId) {
|
|
866
|
+
return isKnownAppId(appId) ? APP_CATEGORY_MAP[appId] : void 0;
|
|
867
|
+
}
|
|
868
|
+
|
|
799
869
|
// src/taxonomy/activity-tiers.json
|
|
800
870
|
var activity_tiers_default = {
|
|
801
871
|
$schema: "https://sifa.id/schemas/activity-tiers/v1.json",
|
|
@@ -1993,10 +2063,13 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
1993
2063
|
});
|
|
1994
2064
|
|
|
1995
2065
|
// src/index.ts
|
|
1996
|
-
var SIFA_SDK_VERSION = "0.9.
|
|
2066
|
+
var SIFA_SDK_VERSION = "0.9.22";
|
|
1997
2067
|
|
|
1998
2068
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
1999
2069
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|
|
2070
|
+
exports.APP_CATEGORIES = APP_CATEGORIES;
|
|
2071
|
+
exports.APP_CATEGORY_IDS = APP_CATEGORY_IDS;
|
|
2072
|
+
exports.APP_CATEGORY_MAP = APP_CATEGORY_MAP;
|
|
2000
2073
|
exports.APP_URL_PATTERNS = APP_URL_PATTERNS;
|
|
2001
2074
|
exports.AtmosphereFeedItemSchema = AtmosphereFeedItemSchema;
|
|
2002
2075
|
exports.CATEGORY_LABELS = CATEGORY_LABELS;
|
|
@@ -2042,6 +2115,7 @@ exports.SifaFeedItemSchema = SifaFeedItemSchema;
|
|
|
2042
2115
|
exports.WORKPLACE_TYPE_LABELS = WORKPLACE_TYPE_LABELS;
|
|
2043
2116
|
exports.WORKPLACE_TYPE_OPTIONS = WORKPLACE_TYPE_OPTIONS;
|
|
2044
2117
|
exports.atUriSchema = atUriSchema;
|
|
2118
|
+
exports.categoryForApp = categoryForApp;
|
|
2045
2119
|
exports.certDateExtractor = certDateExtractor;
|
|
2046
2120
|
exports.cidSchema = cidSchema;
|
|
2047
2121
|
exports.completenessPercent = completenessPercent;
|
|
@@ -2063,6 +2137,7 @@ exports.formatLocation = formatLocation;
|
|
|
2063
2137
|
exports.formatRelativeTime = formatRelativeTime;
|
|
2064
2138
|
exports.getActivityTaxonomyVersion = getActivityTaxonomyVersion;
|
|
2065
2139
|
exports.getActivityTier = getActivityTier;
|
|
2140
|
+
exports.getAppCategoryIcon = getAppCategoryIcon;
|
|
2066
2141
|
exports.getAppIdForCollection = getAppIdForCollection;
|
|
2067
2142
|
exports.getContinent = getContinent;
|
|
2068
2143
|
exports.getDisplayLabel = getDisplayLabel;
|
|
@@ -2078,6 +2153,8 @@ exports.getPlatformLabel = getPlatformLabel;
|
|
|
2078
2153
|
exports.getTierMeta = getTierMeta;
|
|
2079
2154
|
exports.getWorkplaceTypeLabel = getWorkplaceTypeLabel;
|
|
2080
2155
|
exports.groupSkillsByCategory = groupSkillsByCategory;
|
|
2156
|
+
exports.isAppCategory = isAppCategory;
|
|
2157
|
+
exports.isKnownAppId = isKnownAppId;
|
|
2081
2158
|
exports.isKnownPlatform = isKnownPlatform;
|
|
2082
2159
|
exports.isValidRgbColor = isValidRgbColor;
|
|
2083
2160
|
exports.isVisibleActivityItem = isVisibleActivityItem;
|