@singi-labs/sifa-sdk 0.11.14 → 0.11.16

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.
@@ -13,7 +13,17 @@ interface SkillRef {
13
13
  }
14
14
  interface ProfilePosition {
15
15
  rkey: string;
16
- company: string;
16
+ /**
17
+ * Optional: omitted for self-employed / freelance / independent positions.
18
+ * The lexicon and the record schema already make company optional.
19
+ */
20
+ company?: string;
21
+ /**
22
+ * Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user
23
+ * picks an organization from the resolver typeahead. Absent for free-text or
24
+ * independent positions (#159).
25
+ */
26
+ entityRef?: string;
17
27
  title: string;
18
28
  description?: string;
19
29
  startedAt: string;
@@ -13,7 +13,17 @@ interface SkillRef {
13
13
  }
14
14
  interface ProfilePosition {
15
15
  rkey: string;
16
- company: string;
16
+ /**
17
+ * Optional: omitted for self-employed / freelance / independent positions.
18
+ * The lexicon and the record schema already make company optional.
19
+ */
20
+ company?: string;
21
+ /**
22
+ * Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user
23
+ * picks an organization from the resolver typeahead. Absent for free-text or
24
+ * independent positions (#159).
25
+ */
26
+ entityRef?: string;
17
27
  title: string;
18
28
  description?: string;
19
29
  startedAt: string;
package/dist/index.cjs CHANGED
@@ -2690,6 +2690,9 @@ var ProfileLanguageRecordSchema = zod.z.object({
2690
2690
  var ProfilePositionRecordSchema = zod.z.object({
2691
2691
  company: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3).optional(),
2692
2692
  companyDid: didSchema.optional(),
2693
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2694
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2695
+ entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2693
2696
  title: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2694
2697
  description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
2695
2698
  employmentType: zod.z.string().optional(),
@@ -2797,7 +2800,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
2797
2800
  });
2798
2801
 
2799
2802
  // src/index.ts
2800
- var SIFA_SDK_VERSION = "0.11.14";
2803
+ var SIFA_SDK_VERSION = "0.11.16";
2801
2804
 
2802
2805
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
2803
2806
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;