@singi-labs/sifa-sdk 0.19.44 → 0.19.46

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 (582) hide show
  1. package/dist/atproto/index.js +9 -3
  2. package/dist/atproto/index.js.map +1 -1
  3. package/dist/badge/index.cjs.map +1 -1
  4. package/dist/badge/index.js +5 -141
  5. package/dist/badge/index.js.map +1 -1
  6. package/dist/cards/adult-content.js +14 -0
  7. package/dist/cards/adult-content.js.map +1 -0
  8. package/dist/cards/app-url-patterns.js +369 -0
  9. package/dist/cards/app-url-patterns.js.map +1 -0
  10. package/dist/cards/index.js +24 -0
  11. package/dist/cards/index.js.map +1 -0
  12. package/dist/cards/resolve-card-url.js +198 -0
  13. package/dist/cards/resolve-card-url.js.map +1 -0
  14. package/dist/cards/visibility.js +45 -0
  15. package/dist/cards/visibility.js.map +1 -0
  16. package/dist/flags/index.js +4 -3
  17. package/dist/flags/index.js.map +1 -1
  18. package/dist/format/collapse-contributors.js +19 -0
  19. package/dist/format/collapse-contributors.js.map +1 -0
  20. package/dist/format/company-name.js +61 -0
  21. package/dist/format/company-name.js.map +1 -0
  22. package/dist/format/compare-text.js +9 -0
  23. package/dist/format/compare-text.js.map +1 -0
  24. package/dist/format/doi.js +8 -0
  25. package/dist/format/doi.js.map +1 -0
  26. package/dist/format/embed.js +131 -0
  27. package/dist/format/embed.js.map +1 -0
  28. package/dist/format/endorsement-context.js +35 -0
  29. package/dist/format/endorsement-context.js.map +1 -0
  30. package/dist/format/format-display-url.js +42 -0
  31. package/dist/format/format-display-url.js.map +1 -0
  32. package/dist/format/format-duration.js +13 -0
  33. package/dist/format/format-duration.js.map +1 -0
  34. package/dist/format/format-time.js +30 -0
  35. package/dist/format/format-time.js.map +1 -0
  36. package/dist/format/handle-utils.js +19 -0
  37. package/dist/format/handle-utils.js.map +1 -0
  38. package/dist/format/index.js +106 -0
  39. package/dist/format/index.js.map +1 -0
  40. package/dist/format/location-segments.js +29 -0
  41. package/dist/format/location-segments.js.map +1 -0
  42. package/dist/format/location-utils.js +42 -0
  43. package/dist/format/location-utils.js.map +1 -0
  44. package/dist/format/meta-description.js +35 -0
  45. package/dist/format/meta-description.js.map +1 -0
  46. package/dist/format/normalize-company-key.js +12 -0
  47. package/dist/format/normalize-company-key.js.map +1 -0
  48. package/dist/format/normalize-legal-form.js +71 -0
  49. package/dist/format/normalize-legal-form.js.map +1 -0
  50. package/dist/format/pds-utils.js +73 -0
  51. package/dist/format/pds-utils.js.map +1 -0
  52. package/dist/format/sort-by-date.js +39 -0
  53. package/dist/format/sort-by-date.js.map +1 -0
  54. package/dist/format/summarize-deliveries.js +37 -0
  55. package/dist/format/summarize-deliveries.js.map +1 -0
  56. package/dist/format/talk-slug.js +21 -0
  57. package/dist/format/talk-slug.js.map +1 -0
  58. package/dist/format/text-sanitize.js +29 -0
  59. package/dist/format/text-sanitize.js.map +1 -0
  60. package/dist/format/text-truncate.js +14 -0
  61. package/dist/format/text-truncate.js.map +1 -0
  62. package/dist/format/time-utils.js +19 -0
  63. package/dist/format/time-utils.js.map +1 -0
  64. package/dist/format/timeline.js +33 -0
  65. package/dist/format/timeline.js.map +1 -0
  66. package/dist/format/wcag-contrast.js +34 -0
  67. package/dist/format/wcag-contrast.js.map +1 -0
  68. package/dist/import/index.js +22 -0
  69. package/dist/import/index.js.map +1 -0
  70. package/dist/import/presentation-csv.js +116 -0
  71. package/dist/import/presentation-csv.js.map +1 -0
  72. package/dist/index.cjs +7 -1
  73. package/dist/index.cjs.map +1 -1
  74. package/dist/index.d.cts +8 -1
  75. package/dist/index.d.ts +8 -1
  76. package/dist/index.js +677 -7086
  77. package/dist/index.js.map +1 -1
  78. package/dist/jev/index.js +18 -5
  79. package/dist/jev/index.js.map +1 -1
  80. package/dist/jsonld/index.cjs.map +1 -1
  81. package/dist/jsonld/index.js +30 -987
  82. package/dist/jsonld/index.js.map +1 -1
  83. package/dist/jsonld/profile.js +222 -0
  84. package/dist/jsonld/profile.js.map +1 -0
  85. package/dist/jsonld/terms.js +496 -0
  86. package/dist/jsonld/terms.js.map +1 -0
  87. package/dist/jsonld/url.js +17 -0
  88. package/dist/jsonld/url.js.map +1 -0
  89. package/dist/jsonld/works-graph.js +41 -0
  90. package/dist/jsonld/works-graph.js.map +1 -0
  91. package/dist/jsonld/works.js +178 -0
  92. package/dist/jsonld/works.js.map +1 -0
  93. package/dist/logic/actor-identity.js +8 -0
  94. package/dist/logic/actor-identity.js.map +1 -0
  95. package/dist/logic/agent-ref.js +24 -0
  96. package/dist/logic/agent-ref.js.map +1 -0
  97. package/dist/logic/company-page-indexable.js +23 -0
  98. package/dist/logic/company-page-indexable.js.map +1 -0
  99. package/dist/logic/date-lookahead.js +33 -0
  100. package/dist/logic/date-lookahead.js.map +1 -0
  101. package/dist/logic/domain-detect.js +43 -0
  102. package/dist/logic/domain-detect.js.map +1 -0
  103. package/dist/logic/entity-disambiguation.js +24 -0
  104. package/dist/logic/entity-disambiguation.js.map +1 -0
  105. package/dist/logic/entity-ref-anchor.js +33 -0
  106. package/dist/logic/entity-ref-anchor.js.map +1 -0
  107. package/dist/logic/index.js +91 -0
  108. package/dist/logic/index.js.map +1 -0
  109. package/dist/logic/org-floor.js +66 -0
  110. package/dist/logic/org-floor.js.map +1 -0
  111. package/dist/logic/primary-item.js +9 -0
  112. package/dist/logic/primary-item.js.map +1 -0
  113. package/dist/logic/primary-position.js +16 -0
  114. package/dist/logic/primary-position.js.map +1 -0
  115. package/dist/logic/profile-completeness.js +21 -0
  116. package/dist/logic/profile-completeness.js.map +1 -0
  117. package/dist/logic/profile-dimensions.js +50 -0
  118. package/dist/logic/profile-dimensions.js.map +1 -0
  119. package/dist/logic/profile-summary.js +23 -0
  120. package/dist/logic/profile-summary.js.map +1 -0
  121. package/dist/logic/pseudo-employer.js +34 -0
  122. package/dist/logic/pseudo-employer.js.map +1 -0
  123. package/dist/logic/recent-activity.js +10 -0
  124. package/dist/logic/recent-activity.js.map +1 -0
  125. package/dist/logic/self-app.js +10 -0
  126. package/dist/logic/self-app.js.map +1 -0
  127. package/dist/{org-BCrvebcf.d.ts → org-CxTEjjrm.d.ts} +1 -1
  128. package/dist/{org-settings-C73Sin5E.d.ts → org-settings-BShvhyFp.d.ts} +1 -1
  129. package/dist/profile/headline-role-dedupe.js +12 -0
  130. package/dist/profile/headline-role-dedupe.js.map +1 -0
  131. package/dist/profile/highlights.js +200 -0
  132. package/dist/profile/highlights.js.map +1 -0
  133. package/dist/profile/index.js +66 -0
  134. package/dist/profile/index.js.map +1 -0
  135. package/dist/profile/involvement-grouping.js +31 -0
  136. package/dist/profile/involvement-grouping.js.map +1 -0
  137. package/dist/profile/language-sort.js +24 -0
  138. package/dist/profile/language-sort.js.map +1 -0
  139. package/dist/profile/publication-versions.js +98 -0
  140. package/dist/profile/publication-versions.js.map +1 -0
  141. package/dist/profile/range-sort.js +14 -0
  142. package/dist/profile/range-sort.js.map +1 -0
  143. package/dist/profile/section-model.js +122 -0
  144. package/dist/profile/section-model.js.map +1 -0
  145. package/dist/profile/section-sorts.js +33 -0
  146. package/dist/profile/section-sorts.js.map +1 -0
  147. package/dist/publishers/index.js +16 -0
  148. package/dist/publishers/index.js.map +1 -0
  149. package/dist/publishers/registry.js +87 -0
  150. package/dist/publishers/registry.js.map +1 -0
  151. package/dist/publishing/index.js +46 -184
  152. package/dist/publishing/index.js.map +1 -1
  153. package/dist/publishing/linkblog.js +42 -0
  154. package/dist/publishing/linkblog.js.map +1 -0
  155. package/dist/publishing/registry.js +32 -0
  156. package/dist/publishing/registry.js.map +1 -0
  157. package/dist/publishing/schemas.js +74 -0
  158. package/dist/publishing/schemas.js.map +1 -0
  159. package/dist/publishing/types.js +32 -0
  160. package/dist/publishing/types.js.map +1 -0
  161. package/dist/query/client.js +119 -0
  162. package/dist/query/client.js.map +1 -0
  163. package/dist/query/config.js +23 -0
  164. package/dist/query/config.js.map +1 -0
  165. package/dist/query/fetchers/accounts.js +29 -0
  166. package/dist/query/fetchers/accounts.js.map +1 -0
  167. package/dist/query/fetchers/activity-items-hide.js +31 -0
  168. package/dist/query/fetchers/activity-items-hide.js.map +1 -0
  169. package/dist/query/fetchers/activity.js +61 -0
  170. package/dist/query/fetchers/activity.js.map +1 -0
  171. package/dist/query/fetchers/actor.js +30 -0
  172. package/dist/query/fetchers/actor.js.map +1 -0
  173. package/dist/query/fetchers/admin-feature-allowlists.js +41 -0
  174. package/dist/query/fetchers/admin-feature-allowlists.js.map +1 -0
  175. package/dist/query/fetchers/admin-review-queues.js +30 -0
  176. package/dist/query/fetchers/admin-review-queues.js.map +1 -0
  177. package/dist/query/fetchers/apps.js +31 -0
  178. package/dist/query/fetchers/apps.js.map +1 -0
  179. package/dist/query/fetchers/bsky-preferences.js +55 -0
  180. package/dist/query/fetchers/bsky-preferences.js.map +1 -0
  181. package/dist/query/fetchers/confirmations.js +55 -0
  182. package/dist/query/fetchers/confirmations.js.map +1 -0
  183. package/dist/query/fetchers/destructive.js +34 -0
  184. package/dist/query/fetchers/destructive.js.map +1 -0
  185. package/dist/query/fetchers/discovery.js +67 -0
  186. package/dist/query/fetchers/discovery.js.map +1 -0
  187. package/dist/query/fetchers/education.js +23 -0
  188. package/dist/query/fetchers/education.js.map +1 -0
  189. package/dist/query/fetchers/endorsement-inbox.js +36 -0
  190. package/dist/query/fetchers/endorsement-inbox.js.map +1 -0
  191. package/dist/query/fetchers/endorsement.js +23 -0
  192. package/dist/query/fetchers/endorsement.js.map +1 -0
  193. package/dist/query/fetchers/endorsements.js +20 -0
  194. package/dist/query/fetchers/endorsements.js.map +1 -0
  195. package/dist/query/fetchers/entities.js +65 -0
  196. package/dist/query/fetchers/entities.js.map +1 -0
  197. package/dist/query/fetchers/external-accounts.js +74 -0
  198. package/dist/query/fetchers/external-accounts.js.map +1 -0
  199. package/dist/query/fetchers/follow-extras.js +38 -0
  200. package/dist/query/fetchers/follow-extras.js.map +1 -0
  201. package/dist/query/fetchers/follow.js +105 -0
  202. package/dist/query/fetchers/follow.js.map +1 -0
  203. package/dist/query/fetchers/get-profile-view.js +21 -0
  204. package/dist/query/fetchers/get-profile-view.js.map +1 -0
  205. package/dist/query/fetchers/github-prs.js +45 -0
  206. package/dist/query/fetchers/github-prs.js.map +1 -0
  207. package/dist/query/fetchers/inbox.js +29 -0
  208. package/dist/query/fetchers/inbox.js.map +1 -0
  209. package/dist/query/fetchers/index.cjs.map +1 -1
  210. package/dist/query/fetchers/index.d.ts +2 -2
  211. package/dist/query/fetchers/index.js +360 -2045
  212. package/dist/query/fetchers/index.js.map +1 -1
  213. package/dist/query/fetchers/investments.js +18 -0
  214. package/dist/query/fetchers/investments.js.map +1 -0
  215. package/dist/query/fetchers/keytrace-claims.js +23 -0
  216. package/dist/query/fetchers/keytrace-claims.js.map +1 -0
  217. package/dist/query/fetchers/marque-domains.js +23 -0
  218. package/dist/query/fetchers/marque-domains.js.map +1 -0
  219. package/dist/query/fetchers/network-map.js +36 -0
  220. package/dist/query/fetchers/network-map.js.map +1 -0
  221. package/dist/query/fetchers/org.js +48 -0
  222. package/dist/query/fetchers/org.js.map +1 -0
  223. package/dist/query/fetchers/positions.js +77 -0
  224. package/dist/query/fetchers/positions.js.map +1 -0
  225. package/dist/query/fetchers/profile-completeness.js +45 -0
  226. package/dist/query/fetchers/profile-completeness.js.map +1 -0
  227. package/dist/query/fetchers/profile-items-hide.js +36 -0
  228. package/dist/query/fetchers/profile-items-hide.js.map +1 -0
  229. package/dist/query/fetchers/profile-locations.js +23 -0
  230. package/dist/query/fetchers/profile-locations.js.map +1 -0
  231. package/dist/query/fetchers/profile-mutations.js +82 -0
  232. package/dist/query/fetchers/profile-mutations.js.map +1 -0
  233. package/dist/query/fetchers/profile-summary.js +14 -0
  234. package/dist/query/fetchers/profile-summary.js.map +1 -0
  235. package/dist/query/fetchers/profile.js +31 -0
  236. package/dist/query/fetchers/profile.js.map +1 -0
  237. package/dist/query/fetchers/publications.js +66 -0
  238. package/dist/query/fetchers/publications.js.map +1 -0
  239. package/dist/query/fetchers/quoted-posts.js +40 -0
  240. package/dist/query/fetchers/quoted-posts.js.map +1 -0
  241. package/dist/query/fetchers/reactions.js +85 -0
  242. package/dist/query/fetchers/reactions.js.map +1 -0
  243. package/dist/query/fetchers/received-endorsements.js +20 -0
  244. package/dist/query/fetchers/received-endorsements.js.map +1 -0
  245. package/dist/query/fetchers/reciprocity.js +23 -0
  246. package/dist/query/fetchers/reciprocity.js.map +1 -0
  247. package/dist/query/fetchers/records.js +27 -0
  248. package/dist/query/fetchers/records.js.map +1 -0
  249. package/dist/query/fetchers/repo-inventory.js +23 -0
  250. package/dist/query/fetchers/repo-inventory.js.map +1 -0
  251. package/dist/query/fetchers/roadmap.js +73 -0
  252. package/dist/query/fetchers/roadmap.js.map +1 -0
  253. package/dist/query/fetchers/rpg.js +36 -0
  254. package/dist/query/fetchers/rpg.js.map +1 -0
  255. package/dist/query/fetchers/search.js +78 -0
  256. package/dist/query/fetchers/search.js.map +1 -0
  257. package/dist/query/fetchers/section-primary.js +23 -0
  258. package/dist/query/fetchers/section-primary.js.map +1 -0
  259. package/dist/query/fetchers/skills.js +30 -0
  260. package/dist/query/fetchers/skills.js.map +1 -0
  261. package/dist/query/fetchers/speakers.js +42 -0
  262. package/dist/query/fetchers/speakers.js.map +1 -0
  263. package/dist/query/fetchers/stats.js +16 -0
  264. package/dist/query/fetchers/stats.js.map +1 -0
  265. package/dist/query/fetchers/stream.js +30 -0
  266. package/dist/query/fetchers/stream.js.map +1 -0
  267. package/dist/query/fetchers/unlinked-positions.js +30 -0
  268. package/dist/query/fetchers/unlinked-positions.js.map +1 -0
  269. package/dist/query/hooks/index.d.ts +3 -3
  270. package/dist/query/hooks/index.js +283 -3555
  271. package/dist/query/hooks/index.js.map +1 -1
  272. package/dist/query/hooks/use-accounts.js +19 -0
  273. package/dist/query/hooks/use-accounts.js.map +1 -0
  274. package/dist/query/hooks/use-activity-items-hide.js +52 -0
  275. package/dist/query/hooks/use-activity-items-hide.js.map +1 -0
  276. package/dist/query/hooks/use-activity.js +44 -0
  277. package/dist/query/hooks/use-activity.js.map +1 -0
  278. package/dist/query/hooks/use-admin-review-queues.js +21 -0
  279. package/dist/query/hooks/use-admin-review-queues.js.map +1 -0
  280. package/dist/query/hooks/use-apps.js +31 -0
  281. package/dist/query/hooks/use-apps.js.map +1 -0
  282. package/dist/query/hooks/use-bsky-content-prefs.js +45 -0
  283. package/dist/query/hooks/use-bsky-content-prefs.js.map +1 -0
  284. package/dist/query/hooks/use-confirmations.js +121 -0
  285. package/dist/query/hooks/use-confirmations.js.map +1 -0
  286. package/dist/query/hooks/use-create-position.js +28 -0
  287. package/dist/query/hooks/use-create-position.js.map +1 -0
  288. package/dist/query/hooks/use-destructive.js +63 -0
  289. package/dist/query/hooks/use-destructive.js.map +1 -0
  290. package/dist/query/hooks/use-discovery.js +53 -0
  291. package/dist/query/hooks/use-discovery.js.map +1 -0
  292. package/dist/query/hooks/use-education-mutations.js +67 -0
  293. package/dist/query/hooks/use-education-mutations.js.map +1 -0
  294. package/dist/query/hooks/use-endorsement-inbox.js +80 -0
  295. package/dist/query/hooks/use-endorsement-inbox.js.map +1 -0
  296. package/dist/query/hooks/use-endorsement-mutations.js +33 -0
  297. package/dist/query/hooks/use-endorsement-mutations.js.map +1 -0
  298. package/dist/query/hooks/use-endorsement.js +20 -0
  299. package/dist/query/hooks/use-endorsement.js.map +1 -0
  300. package/dist/query/hooks/use-entity-search.js +73 -0
  301. package/dist/query/hooks/use-entity-search.js.map +1 -0
  302. package/dist/query/hooks/use-external-accounts.js +143 -0
  303. package/dist/query/hooks/use-external-accounts.js.map +1 -0
  304. package/dist/query/hooks/use-feature-allowlist.js +104 -0
  305. package/dist/query/hooks/use-feature-allowlist.js.map +1 -0
  306. package/dist/query/hooks/use-follow-extras.js +38 -0
  307. package/dist/query/hooks/use-follow-extras.js.map +1 -0
  308. package/dist/query/hooks/use-follow.js +113 -0
  309. package/dist/query/hooks/use-follow.js.map +1 -0
  310. package/dist/query/hooks/use-get-profile-view.js +20 -0
  311. package/dist/query/hooks/use-get-profile-view.js.map +1 -0
  312. package/dist/query/hooks/use-github-prs.js +21 -0
  313. package/dist/query/hooks/use-github-prs.js.map +1 -0
  314. package/dist/query/hooks/use-inbox.js +19 -0
  315. package/dist/query/hooks/use-inbox.js.map +1 -0
  316. package/dist/query/hooks/use-investment-mutations.js +65 -0
  317. package/dist/query/hooks/use-investment-mutations.js.map +1 -0
  318. package/dist/query/hooks/use-keytrace-claims.js +50 -0
  319. package/dist/query/hooks/use-keytrace-claims.js.map +1 -0
  320. package/dist/query/hooks/use-location-mutations.js +71 -0
  321. package/dist/query/hooks/use-location-mutations.js.map +1 -0
  322. package/dist/query/hooks/use-marque-domains.js +50 -0
  323. package/dist/query/hooks/use-marque-domains.js.map +1 -0
  324. package/dist/query/hooks/use-org-claim.js +29 -0
  325. package/dist/query/hooks/use-org-claim.js.map +1 -0
  326. package/dist/query/hooks/use-org-domains.js +28 -0
  327. package/dist/query/hooks/use-org-domains.js.map +1 -0
  328. package/dist/query/hooks/use-org-notification-emails.js +28 -0
  329. package/dist/query/hooks/use-org-notification-emails.js.map +1 -0
  330. package/dist/query/hooks/use-org-profile-settings.js +29 -0
  331. package/dist/query/hooks/use-org-profile-settings.js.map +1 -0
  332. package/dist/query/hooks/use-org-profile.js +21 -0
  333. package/dist/query/hooks/use-org-profile.js.map +1 -0
  334. package/dist/query/hooks/use-position-mutations.js +128 -0
  335. package/dist/query/hooks/use-position-mutations.js.map +1 -0
  336. package/dist/query/hooks/use-profile-completeness.js +21 -0
  337. package/dist/query/hooks/use-profile-completeness.js.map +1 -0
  338. package/dist/query/hooks/use-profile-items-hide.js +53 -0
  339. package/dist/query/hooks/use-profile-items-hide.js.map +1 -0
  340. package/dist/query/hooks/use-profile-mutations.js +143 -0
  341. package/dist/query/hooks/use-profile-mutations.js.map +1 -0
  342. package/dist/query/hooks/use-profile.js +30 -0
  343. package/dist/query/hooks/use-profile.js.map +1 -0
  344. package/dist/query/hooks/use-publication-mutations.js +90 -0
  345. package/dist/query/hooks/use-publication-mutations.js.map +1 -0
  346. package/dist/query/hooks/use-reaction-mutations.js +48 -0
  347. package/dist/query/hooks/use-reaction-mutations.js.map +1 -0
  348. package/dist/query/hooks/use-reactions.js +32 -0
  349. package/dist/query/hooks/use-reactions.js.map +1 -0
  350. package/dist/query/hooks/use-received-endorsements.js +23 -0
  351. package/dist/query/hooks/use-received-endorsements.js.map +1 -0
  352. package/dist/query/hooks/use-reciprocity.js +19 -0
  353. package/dist/query/hooks/use-reciprocity.js.map +1 -0
  354. package/dist/query/hooks/use-record-mutations.js +67 -0
  355. package/dist/query/hooks/use-record-mutations.js.map +1 -0
  356. package/dist/query/hooks/use-repo-inventory.js +43 -0
  357. package/dist/query/hooks/use-repo-inventory.js.map +1 -0
  358. package/dist/query/hooks/use-roadmap-mutations.js +51 -0
  359. package/dist/query/hooks/use-roadmap-mutations.js.map +1 -0
  360. package/dist/query/hooks/use-roadmap.js +31 -0
  361. package/dist/query/hooks/use-roadmap.js.map +1 -0
  362. package/dist/query/hooks/use-search.js +63 -0
  363. package/dist/query/hooks/use-search.js.map +1 -0
  364. package/dist/query/hooks/use-section-primary-mutations.js +53 -0
  365. package/dist/query/hooks/use-section-primary-mutations.js.map +1 -0
  366. package/dist/query/hooks/use-skill-mutations.js +91 -0
  367. package/dist/query/hooks/use-skill-mutations.js.map +1 -0
  368. package/dist/query/hooks/use-stats.js +19 -0
  369. package/dist/query/hooks/use-stats.js.map +1 -0
  370. package/dist/query/hooks/use-stream.js +20 -0
  371. package/dist/query/hooks/use-stream.js.map +1 -0
  372. package/dist/query/hooks/use-unlinked-positions.js +45 -0
  373. package/dist/query/hooks/use-unlinked-positions.js.map +1 -0
  374. package/dist/query/index.cjs.map +1 -1
  375. package/dist/query/index.d.ts +4 -4
  376. package/dist/query/index.js +685 -3744
  377. package/dist/query/index.js.map +1 -1
  378. package/dist/query/keys.js +138 -0
  379. package/dist/query/keys.js.map +1 -0
  380. package/dist/repo/groups.js +81 -0
  381. package/dist/repo/groups.js.map +1 -0
  382. package/dist/repo/index.js +9 -0
  383. package/dist/repo/index.js.map +1 -0
  384. package/dist/repo/labels.js +121 -0
  385. package/dist/repo/labels.js.map +1 -0
  386. package/dist/repo/types.js +1 -0
  387. package/dist/repo/types.js.map +1 -0
  388. package/dist/resume/index.js +5 -179
  389. package/dist/resume/index.js.map +1 -1
  390. package/dist/resume/json-resume.js +153 -0
  391. package/dist/resume/json-resume.js.map +1 -0
  392. package/dist/roadmap/index.js +101 -0
  393. package/dist/roadmap/index.js.map +1 -0
  394. package/dist/rpg/catalog.js +101 -0
  395. package/dist/rpg/catalog.js.map +1 -0
  396. package/dist/rpg/index.js +13 -116
  397. package/dist/rpg/index.js.map +1 -1
  398. package/dist/rpg/unlocks.js +21 -0
  399. package/dist/rpg/unlocks.js.map +1 -0
  400. package/dist/schemas/blob-ref.js +12 -0
  401. package/dist/schemas/blob-ref.js.map +1 -0
  402. package/dist/schemas/confirmation.js +23 -0
  403. package/dist/schemas/confirmation.js.map +1 -0
  404. package/dist/schemas/endorsement-confirmation.js +18 -0
  405. package/dist/schemas/endorsement-confirmation.js.map +1 -0
  406. package/dist/schemas/endorsement.js +19 -0
  407. package/dist/schemas/endorsement.js.map +1 -0
  408. package/dist/schemas/entity.js +74 -0
  409. package/dist/schemas/entity.js.map +1 -0
  410. package/dist/schemas/feed.js +73 -0
  411. package/dist/schemas/feed.js.map +1 -0
  412. package/dist/schemas/follow-profile.js +32 -0
  413. package/dist/schemas/follow-profile.js.map +1 -0
  414. package/dist/schemas/graph-follow.js +19 -0
  415. package/dist/schemas/graph-follow.js.map +1 -0
  416. package/dist/schemas/index.js +164 -629
  417. package/dist/schemas/index.js.map +1 -1
  418. package/dist/schemas/org-employment-attestation.js +28 -0
  419. package/dist/schemas/org-employment-attestation.js.map +1 -0
  420. package/dist/schemas/org-profile.js +64 -0
  421. package/dist/schemas/org-profile.js.map +1 -0
  422. package/dist/schemas/profile-certification.js +28 -0
  423. package/dist/schemas/profile-certification.js.map +1 -0
  424. package/dist/schemas/profile-course.js +32 -0
  425. package/dist/schemas/profile-course.js.map +1 -0
  426. package/dist/schemas/profile-education.js +33 -0
  427. package/dist/schemas/profile-education.js.map +1 -0
  428. package/dist/schemas/profile-external-account.js +15 -0
  429. package/dist/schemas/profile-external-account.js.map +1 -0
  430. package/dist/schemas/profile-honor.js +18 -0
  431. package/dist/schemas/profile-honor.js.map +1 -0
  432. package/dist/schemas/profile-investment.js +48 -0
  433. package/dist/schemas/profile-investment.js.map +1 -0
  434. package/dist/schemas/profile-involvement.js +47 -0
  435. package/dist/schemas/profile-involvement.js.map +1 -0
  436. package/dist/schemas/profile-language.js +12 -0
  437. package/dist/schemas/profile-language.js.map +1 -0
  438. package/dist/schemas/profile-position.js +42 -0
  439. package/dist/schemas/profile-position.js.map +1 -0
  440. package/dist/schemas/profile-presentation-delivery.js +38 -0
  441. package/dist/schemas/profile-presentation-delivery.js.map +1 -0
  442. package/dist/schemas/profile-presentation.js +36 -0
  443. package/dist/schemas/profile-presentation.js.map +1 -0
  444. package/dist/schemas/profile-project.js +48 -0
  445. package/dist/schemas/profile-project.js.map +1 -0
  446. package/dist/schemas/profile-publication.js +30 -0
  447. package/dist/schemas/profile-publication.js.map +1 -0
  448. package/dist/schemas/profile-self.js +22 -0
  449. package/dist/schemas/profile-self.js.map +1 -0
  450. package/dist/schemas/profile-skill.js +13 -0
  451. package/dist/schemas/profile-skill.js.map +1 -0
  452. package/dist/schemas/profile-volunteering.js +20 -0
  453. package/dist/schemas/profile-volunteering.js.map +1 -0
  454. package/dist/schemas/shared.js +56 -0
  455. package/dist/schemas/shared.js.map +1 -0
  456. package/dist/schemas/write/certification.js +16 -0
  457. package/dist/schemas/write/certification.js.map +1 -0
  458. package/dist/schemas/write/course.js +36 -0
  459. package/dist/schemas/write/course.js.map +1 -0
  460. package/dist/schemas/write/education.js +18 -0
  461. package/dist/schemas/write/education.js.map +1 -0
  462. package/dist/schemas/write/external-account.js +13 -0
  463. package/dist/schemas/write/external-account.js.map +1 -0
  464. package/dist/schemas/write/honor.js +14 -0
  465. package/dist/schemas/write/honor.js.map +1 -0
  466. package/dist/schemas/write/index.d.ts +1 -1
  467. package/dist/schemas/write/index.js +89 -593
  468. package/dist/schemas/write/index.js.map +1 -1
  469. package/dist/schemas/write/investment.js +32 -0
  470. package/dist/schemas/write/investment.js.map +1 -0
  471. package/dist/schemas/write/involvement.js +34 -0
  472. package/dist/schemas/write/involvement.js.map +1 -0
  473. package/dist/schemas/write/language.js +10 -0
  474. package/dist/schemas/write/language.js.map +1 -0
  475. package/dist/schemas/write/org-claim.js +56 -0
  476. package/dist/schemas/write/org-claim.js.map +1 -0
  477. package/dist/schemas/write/org-employment-attestation.js +19 -0
  478. package/dist/schemas/write/org-employment-attestation.js.map +1 -0
  479. package/dist/schemas/write/org-profile.js +54 -0
  480. package/dist/schemas/write/org-profile.js.map +1 -0
  481. package/dist/schemas/write/org-settings.js +81 -0
  482. package/dist/schemas/write/org-settings.js.map +1 -0
  483. package/dist/schemas/write/position.js +24 -0
  484. package/dist/schemas/write/position.js.map +1 -0
  485. package/dist/schemas/write/presentation-delivery.js +34 -0
  486. package/dist/schemas/write/presentation-delivery.js.map +1 -0
  487. package/dist/schemas/write/presentation.js +23 -0
  488. package/dist/schemas/write/presentation.js.map +1 -0
  489. package/dist/schemas/write/profile-location.js +21 -0
  490. package/dist/schemas/write/profile-location.js.map +1 -0
  491. package/dist/schemas/write/profile-self.js +27 -0
  492. package/dist/schemas/write/profile-self.js.map +1 -0
  493. package/dist/schemas/write/project.js +27 -0
  494. package/dist/schemas/write/project.js.map +1 -0
  495. package/dist/schemas/write/publication.js +41 -0
  496. package/dist/schemas/write/publication.js.map +1 -0
  497. package/dist/schemas/write/shared.js +96 -0
  498. package/dist/schemas/write/shared.js.map +1 -0
  499. package/dist/schemas/write/skill.js +18 -0
  500. package/dist/schemas/write/skill.js.map +1 -0
  501. package/dist/schemas/write/volunteering.js +16 -0
  502. package/dist/schemas/write/volunteering.js.map +1 -0
  503. package/dist/stream/activity-item.js +1 -0
  504. package/dist/stream/activity-item.js.map +1 -0
  505. package/dist/stream/index.js +49 -0
  506. package/dist/stream/index.js.map +1 -0
  507. package/dist/stream/stream-card-vm-schema.js +265 -0
  508. package/dist/stream/stream-card-vm-schema.js.map +1 -0
  509. package/dist/stream/stream-card-vm.js +1 -0
  510. package/dist/stream/stream-card-vm.js.map +1 -0
  511. package/dist/stream/to-stream-card-vm.js +793 -0
  512. package/dist/stream/to-stream-card-vm.js.map +1 -0
  513. package/dist/stream/two-tier.js +30 -0
  514. package/dist/stream/two-tier.js.map +1 -0
  515. package/dist/stream/verbs.js +120 -0
  516. package/dist/stream/verbs.js.map +1 -0
  517. package/dist/taxonomy/activity-tiers.js +956 -0
  518. package/dist/taxonomy/activity-tiers.js.map +1 -0
  519. package/dist/taxonomy/app-categories.js +42 -0
  520. package/dist/taxonomy/app-categories.js.map +1 -0
  521. package/dist/taxonomy/app-category-map.js +166 -0
  522. package/dist/taxonomy/app-category-map.js.map +1 -0
  523. package/dist/taxonomy/artifact-link-kind.js +29 -0
  524. package/dist/taxonomy/artifact-link-kind.js.map +1 -0
  525. package/dist/taxonomy/calendar-event.js +28 -0
  526. package/dist/taxonomy/calendar-event.js.map +1 -0
  527. package/dist/taxonomy/continents.js +215 -0
  528. package/dist/taxonomy/continents.js.map +1 -0
  529. package/dist/taxonomy/countries.js +203 -0
  530. package/dist/taxonomy/countries.js.map +1 -0
  531. package/dist/taxonomy/course-role.js +37 -0
  532. package/dist/taxonomy/course-role.js.map +1 -0
  533. package/dist/taxonomy/employment-type.js +82 -0
  534. package/dist/taxonomy/employment-type.js.map +1 -0
  535. package/dist/taxonomy/eqf-level.js +59 -0
  536. package/dist/taxonomy/eqf-level.js.map +1 -0
  537. package/dist/taxonomy/index.js +263 -0
  538. package/dist/taxonomy/index.js.map +1 -0
  539. package/dist/taxonomy/industry-taxonomy.js +281 -0
  540. package/dist/taxonomy/industry-taxonomy.js.map +1 -0
  541. package/dist/taxonomy/investment.js +54 -0
  542. package/dist/taxonomy/investment.js.map +1 -0
  543. package/dist/taxonomy/involvement-kind.js +30 -0
  544. package/dist/taxonomy/involvement-kind.js.map +1 -0
  545. package/dist/taxonomy/open-to.js +128 -0
  546. package/dist/taxonomy/open-to.js.map +1 -0
  547. package/dist/taxonomy/platforms.js +56 -0
  548. package/dist/taxonomy/platforms.js.map +1 -0
  549. package/dist/taxonomy/presentation-link-type.js +22 -0
  550. package/dist/taxonomy/presentation-link-type.js.map +1 -0
  551. package/dist/taxonomy/presentation-role.js +21 -0
  552. package/dist/taxonomy/presentation-role.js.map +1 -0
  553. package/dist/taxonomy/publication-type.js +54 -0
  554. package/dist/taxonomy/publication-type.js.map +1 -0
  555. package/dist/taxonomy/relational.js +25 -0
  556. package/dist/taxonomy/relational.js.map +1 -0
  557. package/dist/taxonomy/search-filter-defs.js +66 -0
  558. package/dist/taxonomy/search-filter-defs.js.map +1 -0
  559. package/dist/taxonomy/skill-categories.js +28 -0
  560. package/dist/taxonomy/skill-categories.js.map +1 -0
  561. package/dist/taxonomy/skill-display-groups.js +12 -0
  562. package/dist/taxonomy/skill-display-groups.js.map +1 -0
  563. package/dist/taxonomy/skill-grouping.js +90 -0
  564. package/dist/taxonomy/skill-grouping.js.map +1 -0
  565. package/dist/taxonomy/verification-providers.js +69 -0
  566. package/dist/taxonomy/verification-providers.js.map +1 -0
  567. package/dist/taxonomy/workplace-type.js +38 -0
  568. package/dist/taxonomy/workplace-type.js.map +1 -0
  569. package/dist/tokens/colors.js +11 -0
  570. package/dist/tokens/colors.js.map +1 -0
  571. package/dist/tokens/icons.js +15 -0
  572. package/dist/tokens/icons.js.map +1 -0
  573. package/dist/tokens/index.js +10 -39
  574. package/dist/tokens/index.js.map +1 -1
  575. package/dist/tokens/typography.js +23 -0
  576. package/dist/tokens/typography.js.map +1 -0
  577. package/dist/types/index.js +10 -0
  578. package/dist/types/index.js.map +1 -0
  579. package/dist/types/profile-view.js +1 -0
  580. package/dist/types/profile-view.js.map +1 -0
  581. package/dist/{use-org-notification-emails-0hjt-dEw.d.ts → use-org-notification-emails-CWWi1D8t.d.ts} +2 -2
  582. package/package.json +4 -3
@@ -1,594 +1,90 @@
1
- import { z } from 'zod';
2
-
3
- // src/schemas/write/shared.ts
4
- function normalizeUrl(val) {
5
- const trimmed = val.trim();
6
- if (/^https?:\/\//i.test(trimmed)) return trimmed;
7
- return `https://${trimmed}`;
8
- }
9
- var optionalUrl = () => z.string().optional().transform((val) => {
10
- if (!val) return void 0;
11
- return httpUrlOrNull(val) ?? void 0;
12
- });
13
- var writeLocationSchema = z.union([
14
- z.object({
15
- country: z.string().nullish(),
16
- countryCode: z.string().length(2).nullish(),
17
- region: z.string().nullish(),
18
- city: z.string().nullish(),
19
- locality: z.string().nullish(),
20
- street: z.string().nullish(),
21
- postalCode: z.string().nullish(),
22
- name: z.string().nullish()
23
- }),
24
- z.string()
25
- ]).nullable().optional();
26
- var skillRefSchema = z.object({
27
- uri: z.string()
28
- });
29
- var VALID_PLATFORMS = [
30
- "rss",
31
- "fediverse",
32
- "twitter",
33
- "instagram",
34
- "github",
35
- "codeberg",
36
- "gitlab",
37
- "forgejo",
38
- "gitea",
39
- "youtube",
40
- "linkedin",
41
- "substack",
42
- "website",
43
- "orcid",
44
- "keyoxide",
45
- "other"
46
- ];
47
- function httpUrlOrNull(input) {
48
- if (typeof input !== "string") return null;
49
- try {
50
- const url = new URL(input);
51
- return url.protocol === "http:" || url.protocol === "https:" ? input : null;
52
- } catch {
53
- return null;
54
- }
55
- }
56
- var DATE_ONLY_RE = /^\d{4}-\d{2}-\d{2}$/;
57
- function isValidDateOnly(input) {
58
- if (typeof input !== "string" || !DATE_ONLY_RE.test(input)) return false;
59
- const parsed = /* @__PURE__ */ new Date(`${input}T00:00:00Z`);
60
- return !Number.isNaN(parsed.getTime()) && parsed.toISOString().startsWith(input);
61
- }
62
- var PARTIAL_DATE_RE = /^\d{4}(-(0[1-9]|1[0-2]))?$/;
63
- function isValidPartialDate(input) {
64
- if (typeof input !== "string") return false;
65
- return PARTIAL_DATE_RE.test(input) || isValidDateOnly(input);
66
- }
67
- var entityRefSchema = z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional();
68
- var artifactLinkSchema = z.object({
69
- url: z.string().max(2048).refine((v) => httpUrlOrNull(v) !== null, "must be an http(s) URL"),
70
- kind: z.string().max(64).nullable().optional(),
71
- label: z.string().max(2e3).nullable().optional()
72
- });
73
- var externalRecordRefSchema = z.object({
74
- uri: z.string().regex(/^at:\/\/[^/\s]+\/[^/\s]+\/[^/\s]+$/, "must be an at-uri"),
75
- // CIDv0 (`Qm…`) or CIDv1 (base32, `b…`). Loose but rejects arbitrary strings.
76
- cid: z.string().max(256).regex(/^(Qm[1-9A-HJ-NP-Za-km-z]{44}|b[A-Za-z2-7]+)$/, "must be a CID").optional()
77
- });
78
- var presentationLinkSchema = z.object({
79
- uri: z.string().max(2048).refine((v) => httpUrlOrNull(v) !== null, "must be an http(s) URL"),
80
- label: z.string().max(640).nullable().optional(),
81
- type: z.string().max(256).nullable().optional()
82
- });
83
- var CertificationWriteSchema = z.object({
84
- name: z.string().min(1).max(256),
85
- authority: z.string().max(256).nullable().optional(),
86
- entityRef: entityRefSchema,
87
- credentialId: z.string().max(256).nullable().optional(),
88
- credentialUrl: optionalUrl(),
89
- issuedAt: z.string().nullable().optional(),
90
- expiresAt: z.string().nullable().optional()
91
- });
92
- var AT_URI_RE = /^at:\/\/[^/\s]+\/[^/\s]+\/[^/\s]+$/;
93
- var teachingDate = z.string().refine(isValidPartialDate, "must be a valid YYYY, YYYY-MM or YYYY-MM-DD date").nullable().optional();
94
- var CourseWriteSchema = z.object({
95
- name: z.string().min(1).max(200),
96
- number: z.string().max(50).nullable().optional(),
97
- institution: z.string().max(256).nullable().optional(),
98
- entityRef: entityRefSchema,
99
- /**
100
- * at-uri of the linked `id.sifa.profile.certification` record. Structurally
101
- * validated (`at://authority/collection/rkey`) so a bad value can't be
102
- * stored and later split into a bogus rkey.
103
- */
104
- credential: z.string().max(512).regex(AT_URI_RE, "must be an at-uri").nullable().optional(),
105
- /**
106
- * RFC 3339 datetime the course was completed. The editor collects month
107
- * granularity (YYYY-MM) and converts to a datetime before the write; stored
108
- * and passed through as-is, mirroring `certification.issuedAt`.
109
- */
110
- completedAt: z.string().nullable().optional(),
111
- /** `id.sifa.defs#courseRole` token. Absent or null means the user took the course. */
112
- role: z.string().max(64).nullable().optional(),
113
- /** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */
114
- startedAt: teachingDate,
115
- endedAt: teachingDate,
116
- /** at-uri of the `id.sifa.profile.position` the course was part of (taken or taught). */
117
- position: z.string().max(512).regex(AT_URI_RE, "must be an at-uri").nullable().optional(),
118
- /** at-uri of the `id.sifa.profile.education` the course was part of. */
119
- education: z.string().max(512).regex(AT_URI_RE, "must be an at-uri").nullable().optional()
120
- });
121
- var EducationWriteSchema = z.object({
122
- institution: z.string().min(1).max(256),
123
- entityRef: entityRefSchema,
124
- degree: z.string().max(256).nullable().optional(),
125
- fieldOfStudy: z.string().max(256).nullable().optional(),
126
- eqfLevel: z.number().int().min(1).max(8).nullable().optional(),
127
- description: z.string().max(5e4).nullable().optional(),
128
- activities: z.string().max(1e3).nullable().optional(),
129
- startedAt: z.string().nullable().optional(),
130
- endedAt: z.string().nullable().optional()
131
- });
132
- var ExternalAccountWriteSchema = z.object({
133
- platform: z.enum(VALID_PLATFORMS),
134
- url: z.string().max(2e3).transform(normalizeUrl).pipe(z.string().url()),
135
- label: z.string().max(100).optional(),
136
- feedUrl: z.string().max(2e3).transform(normalizeUrl).pipe(z.string().url()).optional()
137
- });
138
- var HonorWriteSchema = z.object({
139
- title: z.string().min(1).max(200),
140
- issuer: z.string().max(256).nullable().optional(),
141
- entityRef: entityRefSchema,
142
- description: z.string().max(5e4).nullable().optional(),
143
- awardedAt: z.string().nullable().optional()
144
- });
145
- var projectMemberWriteSchema = z.object({
146
- did: z.string().regex(/^did:[a-z]+:[^\s]+$/, "must be a DID"),
147
- role: z.string().max(256).nullable().optional(),
148
- title: z.string().max(1280).nullable().optional()
149
- });
150
- var ProjectWriteSchema = z.object({
151
- name: z.string().min(1).max(256),
152
- /** The user's own role on the project (#596), e.g. Maintainer. */
153
- role: z.string().max(256).nullable().optional(),
154
- description: z.string().max(5e4).nullable().optional(),
155
- url: optionalUrl(),
156
- members: z.array(projectMemberWriteSchema).max(50).optional(),
157
- /** The canonical project.self this entry corresponds to. Composition, not peer sameness. */
158
- projectRef: externalRecordRefSchema.optional(),
159
- /** The same project as recorded on another person's profile. */
160
- sameAs: externalRecordRefSchema.optional(),
161
- startedAt: z.string().nullable().optional(),
162
- endedAt: z.string().nullable().optional()
163
- });
164
-
165
- // src/schemas/write/involvement.ts
166
- var InvolvementWriteSchema = z.object({
167
- kind: z.string().min(1).max(256),
168
- upstream: z.string().max(2560).nullable().optional(),
169
- upstreamDid: z.string().regex(/^did:[a-z]+:[^\s]+$/, "must be a DID").nullable().optional(),
170
- upstreamUrl: optionalUrl(),
171
- role: z.string().max(2560).nullable().optional(),
172
- description: z.string().max(5e4).nullable().optional(),
173
- // Freeform YYYY / YYYY-MM / YYYY-MM-DD; validated loosely so partial dates pass.
174
- startedAt: z.string().max(32).nullable().optional(),
175
- endedAt: z.string().max(32).nullable().optional(),
176
- links: z.array(artifactLinkSchema).max(50).nullable().optional(),
177
- /** Other people who worked on this alongside you. Same shape as project members. */
178
- collaborators: z.array(projectMemberWriteSchema).max(50).optional(),
179
- /** The same involvement as recorded on another person's profile. */
180
- sameAs: externalRecordRefSchema.optional(),
181
- entityRef: entityRefSchema,
182
- location: writeLocationSchema,
183
- skills: z.array(skillRefSchema).max(50).nullable().optional()
184
- });
185
- var InvestmentWriteSchema = z.object({
186
- /** For a limited-partner entry this names the fund, not a portfolio company. */
187
- company: z.string().min(1).max(256),
188
- companyDid: z.string().max(256).nullable().optional(),
189
- entityRef: entityRefSchema.nullable(),
190
- role: z.string().max(256).nullable().optional(),
191
- stage: z.string().max(256).nullable().optional(),
192
- status: z.string().max(256).nullable().optional(),
193
- via: z.string().max(256).nullable().optional(),
194
- viaDid: z.string().max(256).nullable().optional(),
195
- viaEntityRef: entityRefSchema.nullable(),
196
- /**
197
- * Optional and empty by default -- cheque size is a personal financial disclosure.
198
- * Structured rather than free text: an unparseable money string cannot be repaired
199
- * once people have written them.
200
- */
201
- amount: z.object({
202
- value: z.number().int().min(0),
203
- currency: z.string().length(3)
204
- }).nullable().optional(),
205
- startedAt: z.string().nullable().optional(),
206
- endedAt: z.string().nullable().optional(),
207
- description: z.string().max(5e4).nullable().optional(),
208
- links: z.array(artifactLinkSchema).max(50).nullable().optional()
209
- });
210
- var LanguageWriteSchema = z.object({
211
- name: z.string().min(1).max(64),
212
- proficiency: z.string().max(50).optional()
213
- });
214
- var OrgEmploymentAttestationWriteSchema = z.object({
215
- subject: z.string().regex(/^did:[a-z]+:[^\s]+$/, "must be a DID"),
216
- position: externalRecordRefSchema,
217
- status: z.enum(["current", "past"]),
218
- title: z.string().min(1).max(2560),
219
- startedAt: z.string().max(32),
220
- entityRef: z.string().max(2048).nullable().optional(),
221
- companyDid: z.string().regex(/^did:[a-z]+:[^\s]+$/, "must be a DID").nullable().optional(),
222
- endedAt: z.string().max(32).nullable().optional(),
223
- comment: z.string().max(3e3).nullable().optional(),
224
- createdAt: z.string()
225
- });
226
- var orgAddressWriteSchema = z.object({
227
- country: z.string().max(255).nullable().optional(),
228
- postalCode: z.string().max(64).nullable().optional(),
229
- region: z.string().max(255).nullable().optional(),
230
- locality: z.string().max(255).nullable().optional(),
231
- street: z.string().max(2048).nullable().optional(),
232
- name: z.string().max(255).nullable().optional()
233
- });
234
- var orgLinkWriteSchema = z.object({
235
- name: z.string().min(1).max(255),
236
- url: z.string().max(2048).refine(
237
- (u) => {
238
- try {
239
- const { protocol } = new URL(u);
240
- return protocol === "http:" || protocol === "https:";
241
- } catch {
242
- return false;
243
- }
244
- },
245
- { message: "Only http(s) URLs are allowed" }
246
- )
247
- });
248
- var OrgProfileWriteSchema = z.object({
249
- name: z.string().min(1).max(2e3),
250
- description: z.string().max(5e4).nullable().optional(),
251
- logo: z.unknown().nullable().optional(),
252
- website: z.string().max(2048).nullable().optional(),
253
- entityRefs: z.array(z.string().max(2048)).max(20).nullable().optional(),
254
- contact: z.string().max(320).nullable().optional(),
255
- // Array caps stay at 10 (the sifa-web owner-editor limit) by design, even
256
- // though the sifa-api endpoint tolerates 20. Field caps below mirror the API.
257
- addresses: z.array(orgAddressWriteSchema).max(10).nullable().optional(),
258
- companySize: z.string().max(64).nullable().optional(),
259
- companyType: z.string().max(64).nullable().optional(),
260
- links: z.array(orgLinkWriteSchema).max(10).nullable().optional(),
261
- // Self-declared narrative fields; registry facts (LEI, registration number,
262
- // legal form, ticker) stay internal and are never self-declared.
263
- industries: z.array(
264
- z.object({
265
- industry: z.string().max(100),
266
- domain: z.string().max(100).nullable().optional()
267
- })
268
- ).max(10).nullable().optional(),
269
- founded: z.string().max(10).nullable().optional(),
270
- aliases: z.array(z.string().max(200)).max(20).nullable().optional(),
271
- personalProfileVisible: z.boolean().nullable().optional(),
272
- createdAt: z.string()
273
- });
274
- var orgAddressSchema = z.object({
275
- country: z.string().max(255).optional(),
276
- postalCode: z.string().max(64).optional(),
277
- region: z.string().max(255).optional(),
278
- locality: z.string().max(255).optional(),
279
- street: z.string().max(2048).optional(),
280
- name: z.string().max(255).optional()
281
- });
282
- var orgLinkSchema = z.object({
283
- name: z.string().min(1).max(255),
284
- url: z.string().max(2048).refine(
285
- (u) => {
286
- try {
287
- const { protocol } = new URL(u);
288
- return protocol === "http:" || protocol === "https:";
289
- } catch {
290
- return false;
291
- }
292
- },
293
- { message: "Only http(s) URLs are allowed" }
294
- )
295
- });
296
- var orgIndustrySchema = z.object({
297
- industry: z.string().min(1).max(100),
298
- domain: z.string().max(100).optional()
299
- });
300
- var orgFoundedSchema = z.string().max(10).regex(/^\d{4}(-\d{2}(-\d{2})?)?$/, {
301
- message: "Must be a year (YYYY), month (YYYY-MM), or date (YYYY-MM-DD)"
302
- });
303
- var OrgClaimRequestSchema = z.object({
304
- name: z.string().min(1).max(2e3),
305
- description: z.string().max(5e4).optional(),
306
- website: z.string().max(2048).optional(),
307
- contact: z.string().max(320).optional(),
308
- entityRefs: z.array(z.string().min(1).max(2048)).min(1).max(20),
309
- addresses: z.array(orgAddressSchema).max(20).optional(),
310
- companySize: z.string().max(64).optional(),
311
- companyType: z.string().max(64).optional(),
312
- links: z.array(orgLinkSchema).max(20).optional(),
313
- industries: z.array(orgIndustrySchema).max(10).optional(),
314
- founded: orgFoundedSchema.optional(),
315
- aliases: z.array(z.string().min(1).max(200)).max(20).optional(),
316
- /**
317
- * Sole-trader opt-in: keep the claimant's personal profile visible at `/p/`
318
- * alongside the new company page at `/c/`. Omitted or false presents the
319
- * account solely as an organization.
320
- */
321
- personalProfileVisible: z.boolean().optional(),
322
- authorityAck: z.literal(true)
323
- });
324
- var orgLogoBlobSchema = z.object({
325
- $type: z.literal("blob"),
326
- ref: z.object({ $link: z.string().min(1) }),
327
- mimeType: z.string().min(1).max(255),
328
- size: z.number().int().nonnegative()
329
- });
330
- var orgAddressSchema2 = z.object({
331
- country: z.string().max(255).optional(),
332
- postalCode: z.string().max(64).optional(),
333
- region: z.string().max(255).optional(),
334
- locality: z.string().max(255).optional(),
335
- street: z.string().max(2048).optional(),
336
- name: z.string().max(255).optional()
337
- });
338
- var orgLinkSchema2 = z.object({
339
- name: z.string().min(1).max(255),
340
- url: z.string().max(2048).refine(
341
- (u) => {
342
- try {
343
- const { protocol } = new URL(u);
344
- return protocol === "http:" || protocol === "https:";
345
- } catch {
346
- return false;
347
- }
348
- },
349
- { message: "Only http(s) URLs are allowed" }
350
- )
351
- });
352
- var OrgProfileUpdateRequestSchema = z.object({
353
- name: z.string().min(1).max(2e3),
354
- description: z.string().max(5e4).optional(),
355
- website: z.string().max(2048).optional(),
356
- contact: z.string().max(320).optional(),
357
- entityRefs: z.array(z.string().min(1).max(2048)).min(1).max(20),
358
- logo: orgLogoBlobSchema.optional(),
359
- /** Structured physical locations (headquarters, offices) shown on the org page. */
360
- addresses: z.array(orgAddressSchema2).max(20).optional(),
361
- /**
362
- * Self-selected headcount band (a declared bucket, never a calculated count).
363
- * Open string: any value is accepted so future ranges do not break the
364
- * contract; the lexicon documents the offered `knownValues`.
365
- */
366
- companySize: z.string().max(64).optional(),
367
- companyType: z.string().max(64).optional(),
368
- /** Featured links surfaced on the org page (each url http(s)). */
369
- links: z.array(orgLinkSchema2).max(20).optional(),
370
- /**
371
- * Self-declared industry/domain pairs (same shape as the person profile).
372
- * Registry-sourced classifications are layered separately, not self-declared.
373
- */
374
- industries: z.array(
375
- z.object({
376
- industry: z.string().max(100),
377
- domain: z.string().max(100).optional()
378
- })
379
- ).max(10).optional(),
380
- /** Self-declared founding date: year (YYYY), month (YYYY-MM), or full date (YYYY-MM-DD). */
381
- founded: z.string().max(10).optional(),
382
- /** Self-declared alternative names / acronyms ("also known as"). */
383
- aliases: z.array(z.string().max(200)).max(20).optional(),
384
- /** Sole-trader opt-in; see {@link OrgClaimRequestSchema}. Flippable after the claim. */
385
- personalProfileVisible: z.boolean().optional()
386
- });
387
- var OrgDomainChallengeRequestSchema = z.object({
388
- domain: z.string().min(1).max(255)
389
- });
390
- var OrgDomainVerifyRequestSchema = z.object({
391
- token: z.string().min(1).max(2048)
392
- });
393
- var OrgNotificationEmailRequestSchema = z.object({
394
- email: z.string().email().max(320)
395
- });
396
- var PositionWriteSchema = z.object({
397
- company: z.string().min(1).max(256).nullable().optional(),
398
- entityRef: entityRefSchema,
399
- title: z.string().min(1).max(256),
400
- description: z.string().max(5e4).nullable().optional(),
401
- employmentType: z.string().nullable().optional(),
402
- // Held-on-behalf-of disclosure for board and advisory roles. Nullable so a client
403
- // can clear it when a seat stops being a representative one.
404
- onBehalfOf: z.string().max(256).nullable().optional(),
405
- onBehalfOfDid: z.string().max(256).nullable().optional(),
406
- onBehalfOfEntityRef: entityRefSchema.nullable(),
407
- workplaceType: z.string().nullable().optional(),
408
- location: writeLocationSchema,
409
- startedAt: z.string().nullable().optional(),
410
- endedAt: z.string().nullable().optional(),
411
- skills: z.array(skillRefSchema).max(50).nullable().optional()
412
- });
413
- var PresentationDeliveryWriteSchema = z.object({
414
- presentationRef: externalRecordRefSchema.optional(),
415
- /**
416
- * The same session as recorded on another person's profile. Distinct from
417
- * presentationRef above, which points at the talk this session delivered.
418
- */
419
- sameAs: externalRecordRefSchema.optional(),
420
- title: z.string().max(3e3).nullable().optional(),
421
- role: z.string().max(640).nullable().optional(),
422
- eventName: z.string().max(3e3).nullable().optional(),
423
- // YYYY-MM-DD, or YYYY-MM / YYYY when the exact day is unknown.
424
- date: z.string().refine(isValidPartialDate, "must be a valid YYYY, YYYY-MM or YYYY-MM-DD date").nullable().optional(),
425
- location: z.string().max(2560).nullable().optional(),
426
- // Structured community.lexicon.location.address; `location` above stays as
427
- // the legacy free-text fallback. writeLocationSchema is already nullable+optional.
428
- address: writeLocationSchema,
429
- mode: z.string().max(256).nullable().optional(),
430
- status: z.string().max(256).nullable().optional(),
431
- links: z.array(presentationLinkSchema).max(20).optional(),
432
- eventRef: externalRecordRefSchema.optional(),
433
- coSpeakers: z.array(z.string().regex(/^did:[a-z]+:[^\s]+$/, "must be a DID")).max(20).optional()
434
- });
435
- var BlobRefSchema = z.object({
436
- $type: z.literal("blob"),
437
- ref: z.object({ $link: z.string().min(1) }),
438
- mimeType: z.string().min(1).max(255),
439
- size: z.number().int().nonnegative()
440
- });
441
-
442
- // src/schemas/write/presentation.ts
443
- var PresentationWriteSchema = z.object({
444
- title: z.string().min(1).max(3e3),
445
- description: z.string().max(5e4).nullable().optional(),
446
- duration: z.object({
447
- minMinutes: z.number().int().min(1),
448
- maxMinutes: z.number().int().min(1).optional()
449
- }).refine((d) => d.maxMinutes === void 0 || d.maxMinutes >= d.minMinutes, {
450
- message: "maxMinutes must be greater than or equal to minMinutes",
451
- path: ["maxMinutes"]
452
- }).optional(),
453
- intendedAudiences: z.array(z.string().max(1e3)).max(20).optional(),
454
- links: z.array(presentationLinkSchema).max(20).optional(),
455
- writeupRef: externalRecordRefSchema.optional(),
456
- coverImage: BlobRefSchema.nullable().optional()
457
- });
458
- var ProfileLocationWriteSchema = z.object({
459
- address: z.object({
460
- country: z.string().nullish(),
461
- countryCode: z.string().length(2).nullish(),
462
- region: z.string().nullish(),
463
- city: z.string().nullish(),
464
- locality: z.string().nullish(),
465
- street: z.string().nullish(),
466
- postalCode: z.string().nullish(),
467
- name: z.string().nullish()
468
- }),
469
- type: z.string().min(1),
470
- label: z.string().max(60).nullable().optional(),
471
- isPrimary: z.boolean().optional()
472
- });
473
- var ProfileSelfWriteSchema = z.object({
474
- headline: z.string().max(300).optional(),
475
- about: z.string().max(5e4).optional(),
476
- givenName: z.string().max(640).optional(),
477
- familyName: z.string().max(640).optional(),
478
- namePronunciation: z.string().max(640).optional(),
479
- industries: z.array(
480
- z.object({
481
- industry: z.string().max(100),
482
- domain: z.string().max(100).optional()
483
- })
484
- ).max(10).optional(),
485
- location: writeLocationSchema,
486
- openTo: z.array(z.string()).max(10).optional(),
487
- preferredWorkplace: z.array(z.string()).max(5).optional(),
488
- availableFromUtc: z.number().int().min(0).max(23).optional(),
489
- availableToUtc: z.number().int().min(0).max(23).optional(),
490
- langs: z.array(z.string()).max(3).optional(),
491
- discoverable: z.boolean().optional()
492
- }).passthrough();
493
-
494
- // src/format/doi.ts
495
- function normalizeDoi(value) {
496
- return value.trim().replace(/^https?:\/\/(dx\.)?doi\.org\//i, "").replace(/^doi:\s*/i, "");
497
- }
498
-
499
- // src/schemas/write/publication.ts
500
- var publicationAuthorWriteSchema = z.object({
501
- name: z.string().min(1).max(100),
502
- did: z.string().regex(/^did:[a-z]+:[^\s]+$/, "must be a DID").optional()
503
- });
504
- var relatedIdentifierWriteSchema = z.object({
505
- identifier: z.string().min(1).max(2048),
506
- identifierType: z.enum(["DOI", "AT-URI", "URL"]).optional(),
507
- relationType: z.string().min(1).max(64)
508
- }).transform(
509
- (rel) => !rel.identifierType || rel.identifierType === "DOI" ? { ...rel, identifier: normalizeDoi(rel.identifier) } : rel
510
- );
511
- var PublicationWriteSchema = z.object({
512
- title: z.string().min(1).max(200),
513
- subtitle: z.string().max(2e3).nullable().optional(),
514
- publisher: z.string().max(256).nullable().optional(),
515
- url: optionalUrl(),
516
- description: z.string().max(5e4).nullable().optional(),
517
- publishedAt: z.string().nullable().optional(),
518
- // Absent here until now, so the write route stripped every co-author before
519
- // it reached the PDS: the lexicon field, the indexer, the claim flattening
520
- // and the editor all existed, and nothing joined them. An object schema
521
- // drops unknown keys silently, so the editor reported success and wrote
522
- // nothing.
523
- authors: z.array(publicationAuthorWriteSchema).max(50).optional(),
524
- relatedIdentifiers: z.array(relatedIdentifierWriteSchema).max(20).optional(),
525
- doi: z.string().max(256).nullable().optional().transform((val) => val ? normalizeDoi(val) : val),
526
- // Open set. The known values are ORCID's work types (PUBLICATION_TYPE_OPTIONS),
527
- // and a value outside them is kept as written: a publication that reached Sifa
528
- // from Standard.site, RSS, or by hand need not fit ORCID's list.
529
- type: z.string().max(64).nullable().optional()
530
- });
531
- function maxGraphemes(max) {
532
- return (value) => {
533
- const segmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
534
- let count = 0;
535
- for (const _ of segmenter.segment(value)) {
536
- count++;
537
- if (count > max) return false;
538
- }
539
- return true;
540
- };
541
- }
542
- var didSchema = z.string().regex(/^did:[a-z]+:[a-zA-Z0-9._:%-]+$/, "Invalid DID");
543
- z.string().datetime({ offset: true });
544
- z.string().regex(/^\d{4}(-\d{2}(-\d{2}(T.+)?)?)?$/, "Expected YYYY, YYYY-MM, YYYY-MM-DD, or a datetime");
545
- var atUriSchema = z.string().regex(/^at:\/\/[^\s]+$/, "Invalid AT-URI");
546
- var cidSchema = z.string().regex(/^(Qm[1-9A-HJ-NP-Za-km-z]{44}|b[A-Za-z0-9+/=]+)$/, "Invalid CID");
547
- z.string().regex(/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/, "Invalid BCP 47 language tag");
548
- var uriSchema = z.string().url();
549
- z.object({
550
- uri: atUriSchema,
551
- cid: cidSchema
552
- });
553
- z.object({
554
- uri: atUriSchema
555
- });
556
- z.object({
557
- uri: atUriSchema,
558
- cid: cidSchema.optional()
559
- });
560
- z.object({
561
- name: z.string().min(1).refine(maxGraphemes(256)).max(2560),
562
- did: didSchema.optional(),
563
- entityRef: uriSchema.optional()
564
- }).passthrough();
565
- z.object({
566
- $type: z.literal("com.atproto.label.defs#selfLabels").optional(),
567
- values: z.array(z.object({ val: z.string() }))
568
- });
569
-
570
- // src/schemas/write/skill.ts
571
- var SkillWriteSchema = z.object({
572
- name: z.string().min(1).max(100),
573
- category: z.string().max(100).optional(),
574
- // Mirror the record schema bound (id.sifa.profile.skill) so a value that
575
- // passes here cannot then fail the PDS write. Empty/whitespace-only input is
576
- // treated as absent so we never persist a meaningless grouping label.
577
- subCategory: z.preprocess(
578
- (v) => typeof v === "string" && v.trim() === "" ? void 0 : v,
579
- z.string().refine(maxGraphemes(64)).max(640).optional()
580
- )
581
- });
582
- var VolunteeringWriteSchema = z.object({
583
- organization: z.string().min(1).max(256),
584
- entityRef: entityRefSchema,
585
- role: z.string().max(256).nullable().optional(),
586
- cause: z.string().max(256).nullable().optional(),
587
- description: z.string().max(5e4).nullable().optional(),
588
- startedAt: z.string().nullable().optional(),
589
- endedAt: z.string().nullable().optional()
590
- });
591
-
592
- export { CertificationWriteSchema, CourseWriteSchema, EducationWriteSchema, ExternalAccountWriteSchema, HonorWriteSchema, InvestmentWriteSchema, InvolvementWriteSchema, LanguageWriteSchema, OrgClaimRequestSchema, OrgDomainChallengeRequestSchema, OrgDomainVerifyRequestSchema, OrgEmploymentAttestationWriteSchema, OrgNotificationEmailRequestSchema, OrgProfileUpdateRequestSchema, OrgProfileWriteSchema, PositionWriteSchema, PresentationDeliveryWriteSchema, PresentationWriteSchema, ProfileLocationWriteSchema, ProfileSelfWriteSchema, ProjectWriteSchema, PublicationWriteSchema, SkillWriteSchema, VALID_PLATFORMS, VolunteeringWriteSchema, artifactLinkSchema, entityRefSchema, externalRecordRefSchema, httpUrlOrNull, isValidDateOnly, isValidPartialDate, normalizeUrl, optionalUrl, presentationLinkSchema, publicationAuthorWriteSchema, relatedIdentifierWriteSchema, skillRefSchema, writeLocationSchema };
593
- //# sourceMappingURL=index.js.map
1
+ // src/schemas/write/index.ts
2
+ import {
3
+ artifactLinkSchema,
4
+ entityRefSchema,
5
+ externalRecordRefSchema,
6
+ httpUrlOrNull,
7
+ isValidDateOnly,
8
+ isValidPartialDate,
9
+ normalizeUrl,
10
+ optionalUrl,
11
+ presentationLinkSchema,
12
+ skillRefSchema,
13
+ VALID_PLATFORMS,
14
+ writeLocationSchema
15
+ } from "./shared.js";
16
+ import { CertificationWriteSchema } from "./certification.js";
17
+ import { CourseWriteSchema } from "./course.js";
18
+ import { EducationWriteSchema } from "./education.js";
19
+ import { ExternalAccountWriteSchema } from "./external-account.js";
20
+ import { HonorWriteSchema } from "./honor.js";
21
+ import { InvolvementWriteSchema } from "./involvement.js";
22
+ import { InvestmentWriteSchema } from "./investment.js";
23
+ import { LanguageWriteSchema } from "./language.js";
24
+ import {
25
+ OrgEmploymentAttestationWriteSchema
26
+ } from "./org-employment-attestation.js";
27
+ import { OrgProfileWriteSchema } from "./org-profile.js";
28
+ import { OrgClaimRequestSchema } from "./org-claim.js";
29
+ import {
30
+ OrgProfileUpdateRequestSchema,
31
+ OrgDomainChallengeRequestSchema,
32
+ OrgDomainVerifyRequestSchema,
33
+ OrgNotificationEmailRequestSchema
34
+ } from "./org-settings.js";
35
+ import { PositionWriteSchema } from "./position.js";
36
+ import {
37
+ PresentationDeliveryWriteSchema
38
+ } from "./presentation-delivery.js";
39
+ import { PresentationWriteSchema } from "./presentation.js";
40
+ import { ProfileLocationWriteSchema } from "./profile-location.js";
41
+ import { ProfileSelfWriteSchema } from "./profile-self.js";
42
+ import { ProjectWriteSchema } from "./project.js";
43
+ import {
44
+ PublicationWriteSchema,
45
+ relatedIdentifierWriteSchema,
46
+ publicationAuthorWriteSchema
47
+ } from "./publication.js";
48
+ import { SkillWriteSchema } from "./skill.js";
49
+ import { VolunteeringWriteSchema } from "./volunteering.js";
50
+ export {
51
+ CertificationWriteSchema,
52
+ CourseWriteSchema,
53
+ EducationWriteSchema,
54
+ ExternalAccountWriteSchema,
55
+ HonorWriteSchema,
56
+ InvestmentWriteSchema,
57
+ InvolvementWriteSchema,
58
+ LanguageWriteSchema,
59
+ OrgClaimRequestSchema,
60
+ OrgDomainChallengeRequestSchema,
61
+ OrgDomainVerifyRequestSchema,
62
+ OrgEmploymentAttestationWriteSchema,
63
+ OrgNotificationEmailRequestSchema,
64
+ OrgProfileUpdateRequestSchema,
65
+ OrgProfileWriteSchema,
66
+ PositionWriteSchema,
67
+ PresentationDeliveryWriteSchema,
68
+ PresentationWriteSchema,
69
+ ProfileLocationWriteSchema,
70
+ ProfileSelfWriteSchema,
71
+ ProjectWriteSchema,
72
+ PublicationWriteSchema,
73
+ SkillWriteSchema,
74
+ VALID_PLATFORMS,
75
+ VolunteeringWriteSchema,
76
+ artifactLinkSchema,
77
+ entityRefSchema,
78
+ externalRecordRefSchema,
79
+ httpUrlOrNull,
80
+ isValidDateOnly,
81
+ isValidPartialDate,
82
+ normalizeUrl,
83
+ optionalUrl,
84
+ presentationLinkSchema,
85
+ publicationAuthorWriteSchema,
86
+ relatedIdentifierWriteSchema,
87
+ skillRefSchema,
88
+ writeLocationSchema
89
+ };
594
90
  //# sourceMappingURL=index.js.map