@singi-labs/sifa-sdk 0.19.34 → 0.19.36

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.
Files changed (51) hide show
  1. package/dist/{index-CH8NiQwH.d.cts → index-YuN--u4s.d.cts} +8 -2
  2. package/dist/{index-ayiu2kGy.d.ts → index-zH6rKRMx.d.ts} +8 -2
  3. package/dist/index.cjs +9 -4
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +7 -7
  6. package/dist/index.d.ts +7 -7
  7. package/dist/index.js +9 -4
  8. package/dist/index.js.map +1 -1
  9. package/dist/jsonld/index.d.cts +1 -1
  10. package/dist/jsonld/index.d.ts +1 -1
  11. package/dist/{network-map-CtXK5EY7.d.ts → network-map-CjsywYe3.d.ts} +3 -3
  12. package/dist/{network-map-DG4_UpQ4.d.cts → network-map-DzUZbvNV.d.cts} +3 -3
  13. package/dist/{org-9B__E4ad.d.cts → org-Bgi06A5c.d.cts} +2 -2
  14. package/dist/{org-C_s76iQT.d.ts → org-dzSDMm8B.d.ts} +2 -2
  15. package/dist/{profile-investment-BIOYJf-x.d.cts → profile-investment-BdN_H620.d.cts} +2 -4
  16. package/dist/{profile-investment-BIOYJf-x.d.ts → profile-investment-BdN_H620.d.ts} +2 -4
  17. package/dist/{profile-summary-DXnFXPlO.d.ts → profile-summary-BZK3QP-a.d.ts} +1 -1
  18. package/dist/{profile-summary-BYWU098I.d.cts → profile-summary-BpsM-qn7.d.cts} +1 -1
  19. package/dist/query/fetchers/index.cjs +2 -0
  20. package/dist/query/fetchers/index.cjs.map +1 -1
  21. package/dist/query/fetchers/index.d.cts +6 -6
  22. package/dist/query/fetchers/index.d.ts +6 -6
  23. package/dist/query/fetchers/index.js +2 -0
  24. package/dist/query/fetchers/index.js.map +1 -1
  25. package/dist/query/hooks/index.cjs +2 -0
  26. package/dist/query/hooks/index.cjs.map +1 -1
  27. package/dist/query/hooks/index.d.cts +4 -4
  28. package/dist/query/hooks/index.d.ts +4 -4
  29. package/dist/query/hooks/index.js +2 -0
  30. package/dist/query/hooks/index.js.map +1 -1
  31. package/dist/query/index.d.cts +9 -9
  32. package/dist/query/index.d.ts +9 -9
  33. package/dist/resume/index.d.cts +1 -1
  34. package/dist/resume/index.d.ts +1 -1
  35. package/dist/schemas/index.cjs +8 -3
  36. package/dist/schemas/index.cjs.map +1 -1
  37. package/dist/schemas/index.d.cts +1 -1
  38. package/dist/schemas/index.d.ts +1 -1
  39. package/dist/schemas/index.js +8 -3
  40. package/dist/schemas/index.js.map +1 -1
  41. package/dist/schemas/write/index.cjs +6 -2
  42. package/dist/schemas/write/index.cjs.map +1 -1
  43. package/dist/schemas/write/index.d.cts +2 -0
  44. package/dist/schemas/write/index.d.ts +2 -0
  45. package/dist/schemas/write/index.js +6 -2
  46. package/dist/schemas/write/index.js.map +1 -1
  47. package/dist/{types-pK_aShdG.d.ts → types-7-Jq6p_Z.d.cts} +3 -1
  48. package/dist/{types-By-g5caY.d.cts → types-BYiUBDvk.d.ts} +3 -1
  49. package/dist/{use-org-notification-emails-DamYHmQc.d.cts → use-org-notification-emails-D87skWDq.d.cts} +3 -3
  50. package/dist/{use-org-notification-emails-BwYnA7tk.d.ts → use-org-notification-emails-DVEluUaC.d.ts} +3 -3
  51. package/package.json +1 -1
@@ -213,6 +213,8 @@ interface ProfileCertification {
213
213
  interface ProfileProject {
214
214
  rkey: string;
215
215
  name: string;
216
+ /** The user's own role on the project (#596), e.g. Maintainer. */
217
+ role?: string;
216
218
  description?: string;
217
219
  url?: string;
218
220
  startDate?: string;
@@ -525,9 +527,13 @@ interface ProfileCourse {
525
527
  /** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */
526
528
  startedAt?: string;
527
529
  endedAt?: string;
528
- /** rkey of the position the course was taught under. The AppView resolves
529
- * it from the record's `position` at-uri when building the profile view. */
530
+ /** rkey of the position the course was part of (taught under it, or taken
531
+ * as part of the job). The AppView resolves it from the record's `position`
532
+ * at-uri when building the profile view. */
530
533
  positionRkey?: string;
534
+ /** rkey of the education record the course was part of, resolved by the
535
+ * AppView from the record's `education` at-uri. */
536
+ educationRkey?: string;
531
537
  hidden?: boolean;
532
538
  }
533
539
  /** A related link on a presentation or delivery, as returned by the AppView. */
@@ -213,6 +213,8 @@ interface ProfileCertification {
213
213
  interface ProfileProject {
214
214
  rkey: string;
215
215
  name: string;
216
+ /** The user's own role on the project (#596), e.g. Maintainer. */
217
+ role?: string;
216
218
  description?: string;
217
219
  url?: string;
218
220
  startDate?: string;
@@ -525,9 +527,13 @@ interface ProfileCourse {
525
527
  /** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */
526
528
  startedAt?: string;
527
529
  endedAt?: string;
528
- /** rkey of the position the course was taught under. The AppView resolves
529
- * it from the record's `position` at-uri when building the profile view. */
530
+ /** rkey of the position the course was part of (taught under it, or taken
531
+ * as part of the job). The AppView resolves it from the record's `position`
532
+ * at-uri when building the profile view. */
530
533
  positionRkey?: string;
534
+ /** rkey of the education record the course was part of, resolved by the
535
+ * AppView from the record's `education` at-uri. */
536
+ educationRkey?: string;
531
537
  hidden?: boolean;
532
538
  }
533
539
  /** A related link on a presentation or delivery, as returned by the AppView. */
package/dist/index.cjs CHANGED
@@ -6375,7 +6375,9 @@ var ProfileCourseRecordSchema = zod.z.object({
6375
6375
  // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
6376
6376
  // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
6377
6377
  entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
6378
- education: strongRefSchema.optional(),
6378
+ // AT-URI of the id.sifa.profile.education the course was part of. Plain
6379
+ // at-uri (not a strongRef) so the link tracks the live education record.
6380
+ education: atUriSchema.optional(),
6379
6381
  // AT-URI of the associated id.sifa.profile.certification record. Plain
6380
6382
  // at-uri (not a strongRef) so the link tracks the live certification.
6381
6383
  credential: atUriSchema.optional(),
@@ -6385,8 +6387,9 @@ var ProfileCourseRecordSchema = zod.z.object({
6385
6387
  // Teaching period of a taught or assisted course.
6386
6388
  startedAt: partialDateSchema.optional(),
6387
6389
  endedAt: partialDateSchema.optional(),
6388
- // AT-URI of the id.sifa.profile.position the course was taught under. Plain
6389
- // at-uri (not a strongRef) so the link tracks the live position.
6390
+ // AT-URI of the id.sifa.profile.position the course was part of (taught
6391
+ // under it, or taken as part of the job). Plain at-uri (not a strongRef) so
6392
+ // the link tracks the live position.
6390
6393
  position: atUriSchema.optional(),
6391
6394
  createdAt: datetimeSchema
6392
6395
  });
@@ -6434,6 +6437,8 @@ var projectMemberRefSchema = zod.z.object({
6434
6437
  });
6435
6438
  var ProfileProjectRecordSchema = zod.z.object({
6436
6439
  name: zod.z.string().min(1).refine(maxGraphemes(256)).max(2560),
6440
+ // The user's own role on the project (#596), e.g. Maintainer.
6441
+ role: zod.z.string().refine(maxGraphemes(256)).max(2560).optional(),
6437
6442
  description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
6438
6443
  url: uriSchema.optional(),
6439
6444
  members: zod.z.array(projectMemberRefSchema).max(50).optional(),
@@ -6956,7 +6961,7 @@ function describeSifaRecord(collection, value) {
6956
6961
  }
6957
6962
 
6958
6963
  // src/index.ts
6959
- var SIFA_SDK_VERSION = "0.19.34";
6964
+ var SIFA_SDK_VERSION = "0.19.36";
6960
6965
 
6961
6966
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6962
6967
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;