@singi-labs/sifa-sdk 0.11.0 → 0.11.2
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/{adult-content-o0BxhFzc.d.cts → adult-content-CC8eR44a.d.cts} +4 -0
- package/dist/{adult-content-o0BxhFzc.d.ts → adult-content-CC8eR44a.d.ts} +4 -0
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/{keys-D1qvOp5Q.d.ts → keys-CbkMoJVL.d.ts} +1 -1
- package/dist/{keys-BDzlCEo1.d.cts → keys-CmdNZbla.d.cts} +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/hooks/index.d.cts +5 -5
- package/dist/query/hooks/index.d.ts +5 -5
- package/dist/query/index.d.cts +3 -4
- package/dist/query/index.d.ts +3 -4
- package/dist/schemas/index.cjs +3 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -168,6 +168,10 @@ interface ProfileCourse {
|
|
|
168
168
|
name: string;
|
|
169
169
|
institution?: string;
|
|
170
170
|
number?: string;
|
|
171
|
+
/** rkey of the associated certification, resolved from the course's
|
|
172
|
+
* `credential` at-uri. Used to join the course to a certification in the
|
|
173
|
+
* same profile payload (for the linked-credential date and link). */
|
|
174
|
+
credentialRkey?: string;
|
|
171
175
|
hidden?: boolean;
|
|
172
176
|
}
|
|
173
177
|
interface TrustStat {
|
|
@@ -168,6 +168,10 @@ interface ProfileCourse {
|
|
|
168
168
|
name: string;
|
|
169
169
|
institution?: string;
|
|
170
170
|
number?: string;
|
|
171
|
+
/** rkey of the associated certification, resolved from the course's
|
|
172
|
+
* `credential` at-uri. Used to join the course to a certification in the
|
|
173
|
+
* same profile payload (for the linked-credential date and link). */
|
|
174
|
+
credentialRkey?: string;
|
|
171
175
|
hidden?: boolean;
|
|
172
176
|
}
|
|
173
177
|
interface TrustStat {
|
package/dist/index.cjs
CHANGED
|
@@ -1808,7 +1808,7 @@ function resolveCardUrl(item) {
|
|
|
1808
1808
|
const { collection, record, uri, rkey, authorDid, authorHandle } = item;
|
|
1809
1809
|
const appId = getAppIdForCollection(collection);
|
|
1810
1810
|
if (collection.startsWith("sh.tangled.")) {
|
|
1811
|
-
const repoName = stringOrNull(record.name);
|
|
1811
|
+
const repoName = stringOrNull(record.name) ?? (collection === "sh.tangled.repo" ? rkey : null);
|
|
1812
1812
|
if (repoName && authorHandle && TANGLED_REPO_SLUG.test(repoName)) {
|
|
1813
1813
|
return `https://tangled.sh/${authorHandle}/${repoName}`;
|
|
1814
1814
|
}
|
|
@@ -2235,6 +2235,9 @@ var ProfileCourseRecordSchema = zod.z.object({
|
|
|
2235
2235
|
number: zod.z.string().refine(maxGraphemes(50)).max(500).optional(),
|
|
2236
2236
|
institution: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2237
2237
|
education: strongRefSchema.optional(),
|
|
2238
|
+
// AT-URI of the associated id.sifa.profile.certification record. Plain
|
|
2239
|
+
// at-uri (not a strongRef) so the link tracks the live certification.
|
|
2240
|
+
credential: atUriSchema.optional(),
|
|
2238
2241
|
createdAt: datetimeSchema
|
|
2239
2242
|
});
|
|
2240
2243
|
var ProfileEducationRecordSchema = zod.z.object({
|
|
@@ -2340,7 +2343,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
2340
2343
|
});
|
|
2341
2344
|
|
|
2342
2345
|
// src/index.ts
|
|
2343
|
-
var SIFA_SDK_VERSION = "0.11.
|
|
2346
|
+
var SIFA_SDK_VERSION = "0.11.2";
|
|
2344
2347
|
|
|
2345
2348
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
2346
2349
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|