@singi-labs/sifa-sdk 0.9.2 → 0.9.3
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-DT_foGBl.d.cts → index-De8hX7ZH.d.cts} +12 -0
- package/dist/{index-DT_foGBl.d.ts → index-De8hX7ZH.d.ts} +12 -0
- package/dist/index.cjs +3 -1
- 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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +5 -1
- package/dist/query/fetchers/index.d.ts +5 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/index.cjs +2 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +2 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -207,6 +207,18 @@ interface Profile {
|
|
|
207
207
|
did: string;
|
|
208
208
|
handle: string;
|
|
209
209
|
displayName?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Given (first) name from `id.sifa.profile.self.givenName`. Schema.org
|
|
212
|
+
* `Person.givenName`. Optional; absent for users who haven't filled in
|
|
213
|
+
* structured name fields. Consumers wanting a rendered name should use
|
|
214
|
+
* `formatStructuredName(givenName, familyName) ?? displayName ?? handle`.
|
|
215
|
+
*/
|
|
216
|
+
givenName?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Family (last) name from `id.sifa.profile.self.familyName`. Schema.org
|
|
219
|
+
* `Person.familyName`. See `givenName` for fallback guidance.
|
|
220
|
+
*/
|
|
221
|
+
familyName?: string;
|
|
210
222
|
avatar?: string;
|
|
211
223
|
pronouns?: string;
|
|
212
224
|
headline?: string;
|
|
@@ -207,6 +207,18 @@ interface Profile {
|
|
|
207
207
|
did: string;
|
|
208
208
|
handle: string;
|
|
209
209
|
displayName?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Given (first) name from `id.sifa.profile.self.givenName`. Schema.org
|
|
212
|
+
* `Person.givenName`. Optional; absent for users who haven't filled in
|
|
213
|
+
* structured name fields. Consumers wanting a rendered name should use
|
|
214
|
+
* `formatStructuredName(givenName, familyName) ?? displayName ?? handle`.
|
|
215
|
+
*/
|
|
216
|
+
givenName?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Family (last) name from `id.sifa.profile.self.familyName`. Schema.org
|
|
219
|
+
* `Person.familyName`. See `givenName` for fallback guidance.
|
|
220
|
+
*/
|
|
221
|
+
familyName?: string;
|
|
210
222
|
avatar?: string;
|
|
211
223
|
pronouns?: string;
|
|
212
224
|
headline?: string;
|
package/dist/index.cjs
CHANGED
|
@@ -1204,6 +1204,8 @@ var ProfileSelfRecordSchema = zod.z.object({
|
|
|
1204
1204
|
headline: zod.z.string().refine(maxGraphemes(120)).max(1200).optional(),
|
|
1205
1205
|
about: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
1206
1206
|
industry: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
1207
|
+
givenName: zod.z.string().refine(maxGraphemes(64)).max(640).optional(),
|
|
1208
|
+
familyName: zod.z.string().refine(maxGraphemes(64)).max(640).optional(),
|
|
1207
1209
|
location: zod.z.unknown().optional(),
|
|
1208
1210
|
openTo: zod.z.array(zod.z.string()).max(10).optional(),
|
|
1209
1211
|
preferredWorkplace: zod.z.array(zod.z.string()).max(3).optional(),
|
|
@@ -1229,7 +1231,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
1229
1231
|
});
|
|
1230
1232
|
|
|
1231
1233
|
// src/index.ts
|
|
1232
|
-
var SIFA_SDK_VERSION = "0.9.
|
|
1234
|
+
var SIFA_SDK_VERSION = "0.9.3";
|
|
1233
1235
|
|
|
1234
1236
|
exports.CATEGORY_LABELS = CATEGORY_LABELS;
|
|
1235
1237
|
exports.CATEGORY_ORDER = CATEGORY_ORDER;
|