@singi-labs/sifa-sdk 0.10.11 → 0.10.13
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 +35 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +34 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -726,6 +726,20 @@ function getOpenToLabelKey(value) {
|
|
|
726
726
|
if (!value) return void 0;
|
|
727
727
|
return OPEN_TO_LABEL_KEY_MAP[value];
|
|
728
728
|
}
|
|
729
|
+
var OPEN_TO_LEGACY_VALUE_ALIASES = {
|
|
730
|
+
"id.sifa.defs#mentoring": "id.sifa.defs#mentoringOthers"
|
|
731
|
+
};
|
|
732
|
+
function normalizeOpenTo(values) {
|
|
733
|
+
const seen = /* @__PURE__ */ new Set();
|
|
734
|
+
const out = [];
|
|
735
|
+
for (const value of values) {
|
|
736
|
+
const canonical = OPEN_TO_LEGACY_VALUE_ALIASES[value] ?? value;
|
|
737
|
+
if (seen.has(canonical)) continue;
|
|
738
|
+
seen.add(canonical);
|
|
739
|
+
out.push(canonical);
|
|
740
|
+
}
|
|
741
|
+
return out;
|
|
742
|
+
}
|
|
729
743
|
|
|
730
744
|
// src/taxonomy/workplace-type.ts
|
|
731
745
|
var WORKPLACE_TYPE_OPTIONS = [
|
|
@@ -743,6 +757,20 @@ function getWorkplaceTypeLabel(value) {
|
|
|
743
757
|
if (!value) return void 0;
|
|
744
758
|
return WORKPLACE_TYPE_LABELS[value] ?? value;
|
|
745
759
|
}
|
|
760
|
+
var WORKPLACE_TYPE_LEGACY_ALIASES = {
|
|
761
|
+
"id.sifa.defs#remote": "id.sifa.defs#remoteGlobal"
|
|
762
|
+
};
|
|
763
|
+
function normalizeWorkplaceTypes(values) {
|
|
764
|
+
const seen = /* @__PURE__ */ new Set();
|
|
765
|
+
const out = [];
|
|
766
|
+
for (const value of values) {
|
|
767
|
+
const canonical = WORKPLACE_TYPE_LEGACY_ALIASES[value] ?? value;
|
|
768
|
+
if (seen.has(canonical)) continue;
|
|
769
|
+
seen.add(canonical);
|
|
770
|
+
out.push(canonical);
|
|
771
|
+
}
|
|
772
|
+
return out;
|
|
773
|
+
}
|
|
746
774
|
|
|
747
775
|
// src/taxonomy/platforms.ts
|
|
748
776
|
var PLATFORM_LABELS = {
|
|
@@ -856,6 +884,7 @@ var APP_CATEGORIES = {
|
|
|
856
884
|
Articles: { phosphorIcon: "Article" },
|
|
857
885
|
Chat: { phosphorIcon: "ChatsCircle" },
|
|
858
886
|
Code: { phosphorIcon: "Code" },
|
|
887
|
+
Domains: { phosphorIcon: "Globe" },
|
|
859
888
|
Endorsements: { phosphorIcon: "HandHeart" },
|
|
860
889
|
Events: { phosphorIcon: "CalendarBlank" },
|
|
861
890
|
Links: { phosphorIcon: "LinkSimple" },
|
|
@@ -921,6 +950,9 @@ var APP_CATEGORY_MAP = {
|
|
|
921
950
|
// declaration (talk topics, formats like keynote/panel/conference-talk).
|
|
922
951
|
// Grouped under Events as the closest fit (speaking engagements).
|
|
923
952
|
kevara: "Events",
|
|
953
|
+
// Marque domain registrar — a domain registration record is a dated
|
|
954
|
+
// identity/ownership action, surfaced as a "registered a domain" event.
|
|
955
|
+
marque: "Domains",
|
|
924
956
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
925
957
|
// no backend scan collection yet)
|
|
926
958
|
linkat: "Links",
|
|
@@ -2293,7 +2325,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
2293
2325
|
});
|
|
2294
2326
|
|
|
2295
2327
|
// src/index.ts
|
|
2296
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2328
|
+
var SIFA_SDK_VERSION = "0.10.13";
|
|
2297
2329
|
|
|
2298
2330
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
2299
2331
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|
|
@@ -2404,6 +2436,8 @@ exports.limitCombiningMarks = limitCombiningMarks;
|
|
|
2404
2436
|
exports.makeGraphFollowRecordSchema = makeGraphFollowRecordSchema;
|
|
2405
2437
|
exports.maxGraphemes = maxGraphemes;
|
|
2406
2438
|
exports.meetsContrastAA = meetsContrastAA;
|
|
2439
|
+
exports.normalizeOpenTo = normalizeOpenTo;
|
|
2440
|
+
exports.normalizeWorkplaceTypes = normalizeWorkplaceTypes;
|
|
2407
2441
|
exports.openToTokenToValue = openToTokenToValue;
|
|
2408
2442
|
exports.openToValueToToken = openToValueToToken;
|
|
2409
2443
|
exports.parseLocationString = parseLocationString;
|