@singi-labs/sifa-sdk 0.11.21 → 0.11.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 CHANGED
@@ -2733,6 +2733,9 @@ var ProfileCertificationRecordSchema = zod.z.object({
2733
2733
  name: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2734
2734
  authority: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2735
2735
  authorityDid: didSchema.optional(),
2736
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2737
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2738
+ entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2736
2739
  credentialId: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2737
2740
  credentialUrl: uriSchema.optional(),
2738
2741
  issuedAt: datetimeSchema.optional(),
@@ -2744,6 +2747,9 @@ var ProfileCourseRecordSchema = zod.z.object({
2744
2747
  name: zod.z.string().min(1).refine(maxGraphemes(200)).max(2e3),
2745
2748
  number: zod.z.string().refine(maxGraphemes(50)).max(500).optional(),
2746
2749
  institution: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2750
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2751
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2752
+ entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2747
2753
  education: strongRefSchema.optional(),
2748
2754
  // AT-URI of the associated id.sifa.profile.certification record. Plain
2749
2755
  // at-uri (not a strongRef) so the link tracks the live certification.
@@ -2753,6 +2759,9 @@ var ProfileCourseRecordSchema = zod.z.object({
2753
2759
  var ProfileEducationRecordSchema = zod.z.object({
2754
2760
  institution: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2755
2761
  institutionDid: didSchema.optional(),
2762
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2763
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2764
+ entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2756
2765
  degree: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2757
2766
  fieldOfStudy: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2758
2767
  grade: zod.z.string().refine(maxGraphemes(50)).max(500).optional(),
@@ -2776,6 +2785,9 @@ var ProfileHonorRecordSchema = zod.z.object({
2776
2785
  title: zod.z.string().min(1).refine(maxGraphemes(200)).max(2e3),
2777
2786
  issuer: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2778
2787
  issuerDid: didSchema.optional(),
2788
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2789
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2790
+ entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2779
2791
  description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
2780
2792
  awardedAt: datetimeSchema.optional(),
2781
2793
  createdAt: datetimeSchema
@@ -2890,6 +2902,9 @@ var ProfileSkillRecordSchema = zod.z.object({
2890
2902
  var ProfileVolunteeringRecordSchema = zod.z.object({
2891
2903
  organization: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2892
2904
  organizationDid: didSchema.optional(),
2905
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2906
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2907
+ entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2893
2908
  role: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2894
2909
  cause: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2895
2910
  description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
@@ -2899,7 +2914,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
2899
2914
  });
2900
2915
 
2901
2916
  // src/index.ts
2902
- var SIFA_SDK_VERSION = "0.11.21";
2917
+ var SIFA_SDK_VERSION = "0.11.22";
2903
2918
 
2904
2919
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
2905
2920
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;