@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,631 +1,166 @@
1
- import { z } from 'zod';
2
-
3
- // src/schemas/blob-ref.ts
4
- var BlobRefSchema = z.object({
5
- $type: z.literal("blob"),
6
- ref: z.object({ $link: z.string().min(1) }),
7
- mimeType: z.string().min(1).max(255),
8
- size: z.number().int().nonnegative()
9
- });
10
- function maxGraphemes(max) {
11
- return (value) => {
12
- const segmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
13
- let count = 0;
14
- for (const _ of segmenter.segment(value)) {
15
- count++;
16
- if (count > max) return false;
17
- }
18
- return true;
19
- };
20
- }
21
- var didSchema = z.string().regex(/^did:[a-z]+:[a-zA-Z0-9._:%-]+$/, "Invalid DID");
22
- var datetimeSchema = z.string().datetime({ offset: true });
23
- var partialDateSchema = z.string().regex(/^\d{4}(-\d{2}(-\d{2}(T.+)?)?)?$/, "Expected YYYY, YYYY-MM, YYYY-MM-DD, or a datetime");
24
- var atUriSchema = z.string().regex(/^at:\/\/[^\s]+$/, "Invalid AT-URI");
25
- var cidSchema = z.string().regex(/^(Qm[1-9A-HJ-NP-Za-km-z]{44}|b[A-Za-z0-9+/=]+)$/, "Invalid CID");
26
- var languageTagSchema = z.string().regex(/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/, "Invalid BCP 47 language tag");
27
- var uriSchema = z.string().url();
28
- var strongRefSchema = z.object({
29
- uri: atUriSchema,
30
- cid: cidSchema
31
- });
32
- var skillRefSchema = z.object({
33
- uri: atUriSchema
34
- });
35
- var externalRecordRefSchema = z.object({
36
- uri: atUriSchema,
37
- cid: cidSchema.optional()
38
- });
39
- var agentRefSchema = z.object({
40
- name: z.string().min(1).refine(maxGraphemes(256)).max(2560),
41
- did: didSchema.optional(),
42
- entityRef: uriSchema.optional()
43
- }).passthrough();
44
- var selfLabelsSchema = z.object({
45
- $type: z.literal("com.atproto.label.defs#selfLabels").optional(),
46
- values: z.array(z.object({ val: z.string() }))
47
- });
48
-
49
- // src/schemas/endorsement-confirmation.ts
50
- var EndorsementConfirmationRecordSchema = z.object({
51
- endorsement: strongRefSchema,
52
- /**
53
- * Skill record this endorsement applies to. Set when the endorsement proposed
54
- * a skill: the subject creates the record and links it here, because the
55
- * endorser cannot write to the subject's repository. Also set when a proposed
56
- * name matched a skill the subject already had.
57
- */
58
- skill: strongRefSchema.optional(),
59
- createdAt: datetimeSchema
60
- });
61
- var httpUrlNullable = z.string().refine((s) => /^https?:\/\//i.test(s), { message: "must be an http(s) URL" }).nullable();
62
- var searchResultCommon = {
63
- kind: z.string(),
64
- name: z.string(),
65
- domain: z.string().nullable(),
66
- country: z.string().nullable(),
67
- logoUrl: httpUrlNullable,
68
- parentName: z.string().nullable()
69
- };
70
- var EntitySearchResultSchema = z.discriminatedUnion("source", [
71
- z.object({
72
- source: z.literal("entity"),
73
- entityId: z.number().int().positive(),
74
- ...searchResultCommon
75
- }),
76
- z.object({
77
- source: z.literal("pdl"),
78
- pdlId: z.string().min(1),
79
- ...searchResultCommon
80
- })
81
- ]);
82
- var EntitySearchResponseSchema = z.object({
83
- results: z.array(EntitySearchResultSchema),
84
- hasMore: z.boolean()
85
- });
86
- var EntitySelectRequestSchema = z.object({
87
- entityId: z.number().int().positive().optional(),
88
- pdlId: z.string().min(1).optional()
89
- }).refine((v) => v.entityId != null !== (v.pdlId != null), {
90
- message: "exactly one of entityId or pdlId is required"
91
- });
92
- var EntitySelectResponseSchema = z.object({
93
- entityId: z.number().int().positive(),
94
- slug: z.string(),
95
- kind: z.string(),
96
- canonicalName: z.string(),
97
- domain: z.string().nullable(),
98
- /**
99
- * The entity's website, gated to sources trustworthy enough to prefill into a
100
- * record the user signs. Narrower than `domain`, which is a display value and
101
- * may come from a crawl. Null when the entity has no such source.
102
- */
103
- website: httpUrlNullable.default(null),
104
- /** Which tier `website` came from. Crawled is never an accepted source. */
105
- websiteTier: z.enum(["org", "curated"]).nullable().default(null),
106
- entityRef: httpUrlNullable
107
- });
108
- var EntityImportSearchResponseSchema = z.object({
109
- results: z.array(EntitySearchResultSchema)
110
- });
111
- var EntityResolveDomainRequestSchema = z.object({
112
- domain: z.string().min(1).max(253)
113
- });
114
- var EntityResolveDomainResponseSchema = z.object({
115
- results: z.array(EntitySearchResultSchema),
116
- canMint: z.boolean()
117
- });
118
- var EntityMintDomainResponseSchema = z.object({
119
- result: EntitySearchResultSchema,
120
- pending: z.boolean()
121
- });
122
- var EndorsementRecordSchema = z.object({
123
- subject: didSchema,
124
- /**
125
- * Absent when the endorser is proposing a skill the subject has not listed,
126
- * named by `skillName`. The record it becomes is linked from the subject's
127
- * confirmation, since only they can write to their own repository.
128
- */
129
- skill: strongRefSchema.optional(),
130
- skillName: z.string().min(1).refine(maxGraphemes(64)).max(640),
131
- comment: z.string().refine(maxGraphemes(300)).max(3e3).optional(),
132
- createdAt: datetimeSchema
133
- });
134
- var CONFIRMATION_RELATIONS = [
135
- "id.sifa.defs#coSpeaker",
136
- "id.sifa.defs#projectMember"
137
- ];
138
- var ConfirmationRecordSchema = z.object({
139
- subject: strongRefSchema,
140
- relation: z.string().min(1),
141
- /**
142
- * Name the subject record carried at confirmation time. Lives in the
143
- * confirming person's repo, out of the claimer's reach, so a rename after
144
- * the fact is detectable.
145
- */
146
- subjectName: z.string().refine(maxGraphemes(300)).max(3e3).optional(),
147
- createdAt: datetimeSchema
148
- });
149
- var orgAddressSchema = z.object({
150
- country: z.string().optional(),
151
- postalCode: z.string().optional(),
152
- region: z.string().optional(),
153
- locality: z.string().optional(),
154
- street: z.string().optional(),
155
- name: z.string().optional()
156
- });
157
- var orgLinkSchema = z.object({
158
- name: z.string().refine(maxGraphemes(60)).max(600),
159
- url: uriSchema.max(2048)
160
- });
161
- var OrgProfileRecordSchema = z.object({
162
- name: z.string().min(1).refine(maxGraphemes(200)).max(2e3),
163
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
164
- /** Blob ref for the org logo (`image/png` | `image/jpeg`). Not deeply validated client-side. */
165
- logo: z.unknown().optional(),
166
- website: uriSchema.optional(),
167
- entityRefs: z.array(uriSchema).max(20).optional(),
168
- /** Contact email. NOT rendered publicly; validated as email at the app layer. */
169
- contact: z.string().optional(),
170
- /** Physical addresses (headquarters, offices). */
171
- addresses: z.array(orgAddressSchema).max(10).optional(),
172
- /**
173
- * Self-selected headcount range (a declared bucket, never a calculated count).
174
- * Open enum (bare-string knownValues in the lexicon): `1-10`, `11-50`,
175
- * `51-200`, `201-500`, `501-1000`, `1001-5000`, `5001-10000`, `10001+`. Any
176
- * string is accepted so future ranges do not break older records.
177
- */
178
- companySize: z.string().optional(),
179
- companyType: z.string().optional(),
180
- /** Featured links or content surfaced on the org profile. */
181
- links: z.array(orgLinkSchema).max(10).optional(),
182
- /**
183
- * Self-declared industry/domain pairs (same shape as the person profile's
184
- * `industries`). Registry-sourced classifications are layered separately.
185
- */
186
- industries: z.array(
187
- z.object({
188
- industry: z.string().max(100),
189
- domain: z.string().max(100).optional()
190
- })
191
- ).max(10).optional(),
192
- /** Self-declared founding date: a year (YYYY), month (YYYY-MM), or full date (YYYY-MM-DD). */
193
- founded: z.string().max(10).optional(),
194
- /** Self-declared alternative names / acronyms ("also known as"). */
195
- aliases: z.array(z.string().refine(maxGraphemes(200)).max(2e3)).max(20).optional(),
196
- /**
197
- * Whether the account holder's personal profile stays visible alongside this
198
- * org profile. For sole traders whose personal domain is also their trade
199
- * name: one account, two facets, both pages render. Absent or false means the
200
- * account presents solely as an organization.
201
- */
202
- personalProfileVisible: z.boolean().optional(),
203
- labels: selfLabelsSchema.optional(),
204
- createdAt: datetimeSchema
205
- });
206
- var OrgEmploymentAttestationRecordSchema = z.object({
207
- subject: didSchema,
208
- position: strongRefSchema,
209
- status: z.enum(["current", "past"]),
210
- title: z.string().min(1).refine(maxGraphemes(256)).max(2560),
211
- startedAt: partialDateSchema,
212
- entityRef: uriSchema.optional(),
213
- companyDid: didSchema.optional(),
214
- endedAt: partialDateSchema.optional(),
215
- comment: z.string().refine(maxGraphemes(300)).max(3e3).optional(),
216
- labels: selfLabelsSchema.optional(),
217
- createdAt: datetimeSchema
218
- });
219
- var GraphFollowRecordSchema = z.object({
220
- subject: didSchema,
221
- createdAt: datetimeSchema,
222
- note: z.string().refine(maxGraphemes(200), "note must be at most 200 graphemes").optional()
223
- });
224
- function makeGraphFollowRecordSchema(followerDid) {
225
- return GraphFollowRecordSchema.refine((record) => record.subject !== followerDid, {
226
- message: "Self-follow is not allowed",
227
- path: ["subject"]
228
- });
229
- }
230
- var FollowProfileSchema = z.object({
231
- did: didSchema,
232
- handle: z.string(),
233
- displayName: z.string().optional(),
234
- headline: z.string().optional(),
235
- avatarUrl: z.string().optional(),
236
- source: z.string(),
237
- claimed: z.boolean(),
238
- followedAt: datetimeSchema,
239
- blueskyVerified: z.boolean().optional(),
240
- blueskyVerifiedAt: datetimeSchema.nullable().optional()
241
- });
242
- var FollowProfilePageSchema = z.object({
243
- items: z.array(FollowProfileSchema),
244
- cursor: z.string().nullable()
245
- });
246
- var FeatureAllowlistEntrySchema = z.object({
247
- did: didSchema,
248
- addedAt: datetimeSchema,
249
- note: z.string().nullable().optional()
250
- });
251
- var FEATURE_FLAGS = ["FEED_V5_ENABLED"];
252
- var FeedActorSchema = z.object({
253
- did: didSchema,
254
- handle: z.string(),
255
- displayName: z.string().optional(),
256
- avatarUrl: z.string().optional()
257
- });
258
- var FeedItemBaseSchema = z.object({
259
- id: z.string(),
260
- actor: FeedActorSchema,
261
- indexedAt: datetimeSchema,
262
- eventType: z.string()
263
- });
264
- var SifaFeedItemSchema = FeedItemBaseSchema.extend({
265
- source: z.literal("sifa"),
266
- appId: z.literal("sifa").optional(),
267
- payload: z.record(z.string(), z.unknown())
268
- });
269
- var AtmosphereFeedItemSchema = FeedItemBaseSchema.extend({
270
- source: z.literal("atmosphere"),
271
- appId: z.string(),
272
- uri: atUriSchema.optional(),
273
- cid: cidSchema.optional(),
274
- payload: z.record(z.string(), z.unknown())
275
- });
276
- var FollowFeedItemSchema = z.discriminatedUnion("source", [
1
+ // src/schemas/index.ts
2
+ import { BlobRefSchema } from "./blob-ref.js";
3
+ import {
4
+ EndorsementConfirmationRecordSchema
5
+ } from "./endorsement-confirmation.js";
6
+ import {
7
+ EntitySearchResultSchema,
8
+ EntitySearchResponseSchema,
9
+ EntitySelectRequestSchema,
10
+ EntitySelectResponseSchema,
11
+ EntityImportSearchResponseSchema,
12
+ EntityResolveDomainRequestSchema,
13
+ EntityResolveDomainResponseSchema,
14
+ EntityMintDomainResponseSchema
15
+ } from "./entity.js";
16
+ import { EndorsementRecordSchema } from "./endorsement.js";
17
+ import {
18
+ ConfirmationRecordSchema,
19
+ CONFIRMATION_RELATIONS
20
+ } from "./confirmation.js";
21
+ import { OrgProfileRecordSchema } from "./org-profile.js";
22
+ import {
23
+ OrgEmploymentAttestationRecordSchema
24
+ } from "./org-employment-attestation.js";
25
+ import {
26
+ GraphFollowRecordSchema,
27
+ makeGraphFollowRecordSchema
28
+ } from "./graph-follow.js";
29
+ import {
30
+ FEATURE_FLAGS,
31
+ FeatureAllowlistEntrySchema,
32
+ FollowProfilePageSchema,
33
+ FollowProfileSchema
34
+ } from "./follow-profile.js";
35
+ import {
36
+ AtmosphereFeedItemSchema,
37
+ FeedActorSchema,
38
+ FollowFeedItemSchema,
39
+ FollowFeedPageSchema,
40
+ SifaFeedItemSchema,
41
+ decodeFeedCursor,
42
+ encodeFeedCursor
43
+ } from "./feed.js";
44
+ import {
45
+ ProfileCertificationRecordSchema
46
+ } from "./profile-certification.js";
47
+ import { ProfileCourseRecordSchema } from "./profile-course.js";
48
+ import { ProfileEducationRecordSchema } from "./profile-education.js";
49
+ import {
50
+ ProfileExternalAccountRecordSchema
51
+ } from "./profile-external-account.js";
52
+ import { ProfileHonorRecordSchema } from "./profile-honor.js";
53
+ import {
54
+ ArtifactLinkSchema,
55
+ PROFILE_INVOLVEMENT_NSID,
56
+ ProfileInvolvementRecordSchema
57
+ } from "./profile-involvement.js";
58
+ import { ProfileLanguageRecordSchema } from "./profile-language.js";
59
+ import { ProfilePositionRecordSchema } from "./profile-position.js";
60
+ import {
61
+ PresentationDurationSchema,
62
+ PresentationLinkSchema,
63
+ ProfilePresentationRecordSchema
64
+ } from "./profile-presentation.js";
65
+ import {
66
+ ProfilePresentationDeliveryRecordSchema
67
+ } from "./profile-presentation-delivery.js";
68
+ import { ProfileProjectRecordSchema } from "./profile-project.js";
69
+ import {
70
+ ProfilePublicationRecordSchema,
71
+ PublicationAuthorSchema,
72
+ RelatedIdentifierSchema
73
+ } from "./profile-publication.js";
74
+ import { ProfileSelfRecordSchema } from "./profile-self.js";
75
+ import { ProfileSkillRecordSchema } from "./profile-skill.js";
76
+ import {
77
+ ProfileVolunteeringRecordSchema
78
+ } from "./profile-volunteering.js";
79
+ import {
80
+ agentRefSchema,
81
+ atUriSchema,
82
+ cidSchema,
83
+ datetimeSchema,
84
+ didSchema,
85
+ externalRecordRefSchema,
86
+ languageTagSchema,
87
+ maxGraphemes,
88
+ partialDateSchema,
89
+ selfLabelsSchema,
90
+ skillRefSchema,
91
+ strongRefSchema,
92
+ uriSchema
93
+ } from "./shared.js";
94
+ import {
95
+ ProfileInvestmentRecordSchema,
96
+ InvestmentAmountSchema,
97
+ PROFILE_INVESTMENT_NSID
98
+ } from "./profile-investment.js";
99
+ export {
100
+ ArtifactLinkSchema,
101
+ AtmosphereFeedItemSchema,
102
+ BlobRefSchema,
103
+ CONFIRMATION_RELATIONS,
104
+ ConfirmationRecordSchema,
105
+ EndorsementConfirmationRecordSchema,
106
+ EndorsementRecordSchema,
107
+ EntityImportSearchResponseSchema,
108
+ EntityMintDomainResponseSchema,
109
+ EntityResolveDomainRequestSchema,
110
+ EntityResolveDomainResponseSchema,
111
+ EntitySearchResponseSchema,
112
+ EntitySearchResultSchema,
113
+ EntitySelectRequestSchema,
114
+ EntitySelectResponseSchema,
115
+ FEATURE_FLAGS,
116
+ FeatureAllowlistEntrySchema,
117
+ FeedActorSchema,
118
+ FollowFeedItemSchema,
119
+ FollowFeedPageSchema,
120
+ FollowProfilePageSchema,
121
+ FollowProfileSchema,
122
+ GraphFollowRecordSchema,
123
+ InvestmentAmountSchema,
124
+ OrgEmploymentAttestationRecordSchema,
125
+ OrgProfileRecordSchema,
126
+ PROFILE_INVESTMENT_NSID,
127
+ PROFILE_INVOLVEMENT_NSID,
128
+ PresentationDurationSchema,
129
+ PresentationLinkSchema,
130
+ ProfileCertificationRecordSchema,
131
+ ProfileCourseRecordSchema,
132
+ ProfileEducationRecordSchema,
133
+ ProfileExternalAccountRecordSchema,
134
+ ProfileHonorRecordSchema,
135
+ ProfileInvestmentRecordSchema,
136
+ ProfileInvolvementRecordSchema,
137
+ ProfileLanguageRecordSchema,
138
+ ProfilePositionRecordSchema,
139
+ ProfilePresentationDeliveryRecordSchema,
140
+ ProfilePresentationRecordSchema,
141
+ ProfileProjectRecordSchema,
142
+ ProfilePublicationRecordSchema,
143
+ ProfileSelfRecordSchema,
144
+ ProfileSkillRecordSchema,
145
+ ProfileVolunteeringRecordSchema,
146
+ PublicationAuthorSchema,
147
+ RelatedIdentifierSchema,
277
148
  SifaFeedItemSchema,
278
- AtmosphereFeedItemSchema
279
- ]);
280
- var FollowFeedPageSchema = z.object({
281
- items: z.array(FollowFeedItemSchema),
282
- cursor: z.string().nullable()
283
- });
284
- var FeedCursorSchema = z.object({
285
- indexedAt: datetimeSchema,
286
- source: z.union([z.literal("sifa"), z.literal("atmosphere")]),
287
- id: z.string().min(1)
288
- });
289
- function toBase64Url(input) {
290
- const g = globalThis;
291
- const b64 = typeof g.btoa === "function" ? g.btoa(unescape(encodeURIComponent(input))) : g.Buffer.from(input, "utf-8").toString("base64");
292
- let end = b64.length;
293
- while (end > 0 && b64.charCodeAt(end - 1) === 61) end--;
294
- return b64.slice(0, end).replace(/\+/g, "-").replace(/\//g, "_");
295
- }
296
- function fromBase64Url(input) {
297
- const padded = input.replace(/-/g, "+").replace(/_/g, "/") + "===".slice((input.length + 3) % 4);
298
- const g = globalThis;
299
- if (typeof g.atob === "function") {
300
- return decodeURIComponent(escape(g.atob(padded)));
301
- }
302
- return g.Buffer.from(padded, "base64").toString("utf-8");
303
- }
304
- function encodeFeedCursor(cursor) {
305
- return toBase64Url(JSON.stringify(cursor));
306
- }
307
- function decodeFeedCursor(encoded) {
308
- const json = fromBase64Url(encoded);
309
- const parsed = JSON.parse(json);
310
- return FeedCursorSchema.parse(parsed);
311
- }
312
- var ProfileCertificationRecordSchema = z.object({
313
- name: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
314
- authority: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
315
- authorityDid: didSchema.optional(),
316
- // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
317
- // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
318
- entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
319
- credentialId: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
320
- credentialUrl: uriSchema.optional(),
321
- issuedAt: partialDateSchema.optional(),
322
- expiresAt: partialDateSchema.optional(),
323
- labels: selfLabelsSchema.optional(),
324
- createdAt: datetimeSchema
325
- });
326
- var ProfileCourseRecordSchema = z.object({
327
- name: z.string().min(1).refine(maxGraphemes(200)).max(2e3),
328
- number: z.string().refine(maxGraphemes(50)).max(500).optional(),
329
- institution: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
330
- // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
331
- // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
332
- entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
333
- // AT-URI of the id.sifa.profile.education the course was part of. Plain
334
- // at-uri (not a strongRef) so the link tracks the live education record.
335
- education: atUriSchema.optional(),
336
- // AT-URI of the associated id.sifa.profile.certification record. Plain
337
- // at-uri (not a strongRef) so the link tracks the live certification.
338
- credential: atUriSchema.optional(),
339
- completedAt: partialDateSchema.optional(),
340
- // id.sifa.defs#courseRole token; absent means the user took the course.
341
- role: z.string().refine(maxGraphemes(64)).max(640).optional(),
342
- // Teaching period of a taught or assisted course.
343
- startedAt: partialDateSchema.optional(),
344
- endedAt: partialDateSchema.optional(),
345
- // AT-URI of the id.sifa.profile.position the course was part of (taught
346
- // under it, or taken as part of the job). Plain at-uri (not a strongRef) so
347
- // the link tracks the live position.
348
- position: atUriSchema.optional(),
349
- createdAt: datetimeSchema
350
- });
351
- var ProfileEducationRecordSchema = z.object({
352
- institution: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
353
- institutionDid: didSchema.optional(),
354
- // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
355
- // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
356
- entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
357
- degree: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
358
- fieldOfStudy: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
359
- // European Qualifications Framework level, 1 to 8 (8 = doctoral) (#594).
360
- eqfLevel: z.number().int().min(1).max(8).optional(),
361
- grade: z.string().refine(maxGraphemes(50)).max(500).optional(),
362
- activities: z.string().refine(maxGraphemes(1e3)).max(1e4).optional(),
363
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
364
- location: z.unknown().optional(),
365
- startedAt: partialDateSchema.optional(),
366
- endedAt: partialDateSchema.optional(),
367
- labels: selfLabelsSchema.optional(),
368
- isPrimary: z.boolean().optional(),
369
- createdAt: datetimeSchema
370
- });
371
- var ProfileExternalAccountRecordSchema = z.object({
372
- platform: z.string(),
373
- url: uriSchema,
374
- label: z.string().refine(maxGraphemes(64)).max(640).optional(),
375
- feedUrl: uriSchema.optional(),
376
- isPrimary: z.boolean().optional(),
377
- createdAt: datetimeSchema
378
- });
379
- var ProfileHonorRecordSchema = z.object({
380
- title: z.string().min(1).refine(maxGraphemes(200)).max(2e3),
381
- issuer: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
382
- issuerDid: didSchema.optional(),
383
- // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
384
- // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
385
- entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
386
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
387
- awardedAt: partialDateSchema.optional(),
388
- createdAt: datetimeSchema
389
- });
390
- var projectMemberRefSchema = z.object({
391
- did: didSchema,
392
- role: z.string().optional(),
393
- title: z.string().refine(maxGraphemes(128)).max(1280).optional()
394
- });
395
- var ProfileProjectRecordSchema = z.object({
396
- name: z.string().min(1).refine(maxGraphemes(256)).max(2560),
397
- // The user's own role on the project (#596), e.g. Maintainer.
398
- role: z.string().refine(maxGraphemes(256)).max(2560).optional(),
399
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
400
- url: uriSchema.optional(),
401
- members: z.array(projectMemberRefSchema).max(50).optional(),
402
- /**
403
- * The canonical `id.sifa.project.self` this personal entry corresponds to.
404
- * A composition link. For the same project recorded on someone else's
405
- * profile, see `sameAs`.
406
- */
407
- projectRef: strongRefSchema.optional(),
408
- /**
409
- * The same project as recorded on another person's profile. Each side stays
410
- * its own record; this only says the two describe one thing. Resolves by
411
- * AT-URI, since they will keep editing their copy.
412
- */
413
- sameAs: externalRecordRefSchema.optional(),
414
- position: strongRefSchema.optional(),
415
- startedAt: partialDateSchema.optional(),
416
- endedAt: partialDateSchema.optional(),
417
- labels: selfLabelsSchema.optional(),
418
- isPrimary: z.boolean().optional(),
419
- createdAt: datetimeSchema
420
- });
421
-
422
- // src/schemas/profile-involvement.ts
423
- var PROFILE_INVOLVEMENT_NSID = "id.sifa.profile.involvement";
424
- var ArtifactLinkSchema = z.object({
425
- url: uriSchema,
426
- kind: z.string().optional(),
427
- label: z.string().refine(maxGraphemes(200)).max(2e3).optional()
428
- }).passthrough();
429
- var ProfileInvolvementRecordSchema = z.object({
430
- kind: z.string(),
431
- upstream: z.string().refine(maxGraphemes(256)).max(2560).optional(),
432
- upstreamDid: didSchema.optional(),
433
- upstreamUrl: uriSchema.optional(),
434
- role: z.string().refine(maxGraphemes(256)).max(2560).optional(),
435
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
436
- startedAt: partialDateSchema.optional(),
437
- endedAt: partialDateSchema.optional(),
438
- links: z.array(ArtifactLinkSchema).max(50).optional(),
439
- // Portable org entity identifier (Wikidata/ROR/LEI URI) from the resolver
440
- // typeahead, constrained to http(s) so a script scheme is never a valid ref.
441
- entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
442
- // community.lexicon.location.address — validated at the app layer.
443
- location: z.unknown().optional(),
444
- // id.sifa.defs#skillRef references (at-uri to a skill record in the same repo).
445
- skills: z.array(z.object({ uri: z.string() })).max(50).optional(),
446
- labels: selfLabelsSchema.optional(),
447
- collaborators: z.array(projectMemberRefSchema).max(50).optional(),
448
- sameAs: externalRecordRefSchema.optional(),
449
- isPrimary: z.boolean().optional(),
450
- createdAt: datetimeSchema
451
- }).passthrough();
452
- var ProfileLanguageRecordSchema = z.object({
453
- name: z.string().min(1).refine(maxGraphemes(64)).max(640),
454
- proficiency: z.string().optional(),
455
- createdAt: datetimeSchema
456
- });
457
- var entityRefField = z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional();
458
- var ProfilePositionRecordSchema = z.object({
459
- company: z.string().min(1).refine(maxGraphemes(100)).max(1e3).optional(),
460
- companyDid: didSchema.optional(),
461
- entityRef: entityRefField,
462
- title: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
463
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
464
- employmentType: z.string().optional(),
465
- // Disclosure that the role is held as someone else's representative -- most often
466
- // a fund whose board seat this is. Capped at the lexicon's 256 graphemes rather
467
- // than the tighter limit used for `company`: a schema stricter than the lexicon
468
- // would reject records other clients can legally write.
469
- onBehalfOf: z.string().refine(maxGraphemes(256)).max(2560).optional(),
470
- // May resolve to an organization or to a person (a family-office principal); a DID
471
- // does not distinguish the two, so this stays permissive.
472
- onBehalfOfDid: didSchema.optional(),
473
- onBehalfOfEntityRef: entityRefField,
474
- workplaceType: z.string().optional(),
475
- location: z.unknown().optional(),
476
- startedAt: partialDateSchema,
477
- endedAt: partialDateSchema.optional(),
478
- // id.sifa.defs#skillRef -- at-uri only, no cid. Skills are mutable records
479
- // in the same repo, so the ref resolves live rather than pinning a version.
480
- skills: z.array(skillRefSchema).max(50).optional(),
481
- isPrimary: z.boolean().optional(),
482
- labels: selfLabelsSchema.optional(),
483
- createdAt: datetimeSchema
484
- }).passthrough();
485
- var PresentationDurationSchema = z.object({
486
- minMinutes: z.number().int().min(1),
487
- maxMinutes: z.number().int().min(1).optional()
488
- }).refine((d) => d.maxMinutes === void 0 || d.maxMinutes >= d.minMinutes, {
489
- message: "maxMinutes must be greater than or equal to minMinutes",
490
- path: ["maxMinutes"]
491
- });
492
- var PresentationLinkSchema = z.object({
493
- uri: uriSchema,
494
- label: z.string().refine(maxGraphemes(64)).max(640).optional(),
495
- type: z.string().optional()
496
- });
497
- var ProfilePresentationRecordSchema = z.object({
498
- title: z.string().min(1).refine(maxGraphemes(300)).max(3e3),
499
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
500
- duration: PresentationDurationSchema.optional(),
501
- intendedAudiences: z.array(z.string().refine(maxGraphemes(100)).max(1e3)).max(20).optional(),
502
- links: z.array(PresentationLinkSchema).max(20).optional(),
503
- // Optional reference to a long-form write-up (pub.leaflet.document or
504
- // site.standard.document). Plain at-uri + optional cid so it tracks edits.
505
- writeupRef: externalRecordRefSchema.optional(),
506
- // Optional uploaded cover image for the talk page.
507
- coverImage: BlobRefSchema.optional(),
508
- isPrimary: z.boolean().optional(),
509
- createdAt: datetimeSchema
510
- });
511
- var communityAddressSchema = z.object({
512
- country: z.string().optional(),
513
- postalCode: z.string().optional(),
514
- region: z.string().optional(),
515
- locality: z.string().optional(),
516
- street: z.string().optional(),
517
- name: z.string().optional()
518
- });
519
- var ProfilePresentationDeliveryRecordSchema = z.object({
520
- // Optional reference to the id.sifa.profile.presentation delivered here.
521
- presentationRef: externalRecordRefSchema.optional(),
522
- // Fallback title used when there is no presentationRef.
523
- title: z.string().refine(maxGraphemes(300)).max(3e3).optional(),
524
- role: z.string().refine(maxGraphemes(64)).max(640).optional(),
525
- eventName: z.string().refine(maxGraphemes(300)).max(3e3).optional(),
526
- // Calendar date as YYYY-MM-DD, or YYYY-MM / YYYY when the exact day is unknown.
527
- date: z.string().regex(/^\d{4}(-\d{2}(-\d{2})?)?$/, "date must be YYYY, YYYY-MM or YYYY-MM-DD").optional(),
528
- location: z.string().refine(maxGraphemes(256)).max(2560).optional(),
529
- // Structured community.lexicon.location.address for the occasion. The
530
- // free-text `location` string above stays as a legacy fallback.
531
- address: communityAddressSchema.optional(),
532
- mode: z.string().optional(),
533
- status: z.string().optional(),
534
- links: z.array(PresentationLinkSchema).max(20).optional(),
535
- // Optional reference to a community.lexicon.calendar.event for this occasion.
536
- eventRef: externalRecordRefSchema.optional(),
537
- // DIDs of co-speakers who presented alongside the author at this occasion.
538
- coSpeakers: z.array(z.string().regex(/^did:[a-z]+:[^\s]+$/, "must be a DID")).max(20).optional(),
539
- createdAt: datetimeSchema
540
- });
541
- var PublicationAuthorSchema = z.object({
542
- name: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
543
- did: didSchema.optional()
544
- });
545
- var RelatedIdentifierSchema = z.object({
546
- identifier: z.string().min(1).max(2048),
547
- identifierType: z.string().max(32).optional(),
548
- relationType: z.string().min(1).max(64)
549
- });
550
- var ProfilePublicationRecordSchema = z.object({
551
- title: z.string().min(1).refine(maxGraphemes(200)).max(2e3),
552
- subtitle: z.string().refine(maxGraphemes(200)).max(2e3).optional(),
553
- publisher: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
554
- url: uriSchema.optional(),
555
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
556
- authors: z.array(PublicationAuthorSchema).max(50).optional(),
557
- relatedIdentifiers: z.array(RelatedIdentifierSchema).max(20).optional(),
558
- publishedAt: partialDateSchema.optional(),
559
- isPrimary: z.boolean().optional(),
560
- createdAt: datetimeSchema
561
- });
562
- var ProfileSelfRecordSchema = z.object({
563
- headline: z.string().refine(maxGraphemes(120)).max(1200).optional(),
564
- about: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
565
- industry: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
566
- givenName: z.string().refine(maxGraphemes(64)).max(640).optional(),
567
- familyName: z.string().refine(maxGraphemes(64)).max(640).optional(),
568
- namePronunciation: z.string().refine(maxGraphemes(64)).max(640).optional(),
569
- location: z.unknown().optional(),
570
- openTo: z.array(z.string()).max(10).optional(),
571
- preferredWorkplace: z.array(z.string()).max(3).optional(),
572
- langs: z.array(languageTagSchema).max(3).optional(),
573
- labels: selfLabelsSchema.optional(),
574
- discoverable: z.boolean().optional(),
575
- createdAt: datetimeSchema
576
- });
577
- var ProfileSkillRecordSchema = z.object({
578
- name: z.string().min(1).refine(maxGraphemes(64)).max(640),
579
- category: z.string().optional(),
580
- subCategory: z.string().refine(maxGraphemes(64)).max(640).optional(),
581
- createdAt: datetimeSchema
582
- });
583
- var ProfileVolunteeringRecordSchema = z.object({
584
- organization: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
585
- organizationDid: didSchema.optional(),
586
- // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
587
- // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
588
- entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
589
- role: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
590
- cause: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
591
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
592
- startedAt: partialDateSchema.optional(),
593
- endedAt: partialDateSchema.optional(),
594
- createdAt: datetimeSchema
595
- });
596
- var entityRefField2 = z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional();
597
- var InvestmentAmountSchema = z.object({
598
- /** Whole major currency units (euros, not cents). Cheque sizes are round numbers. */
599
- value: z.number().int().min(0),
600
- /** ISO 4217 three-letter code, uppercase. */
601
- currency: z.string().length(3)
602
- });
603
- var PROFILE_INVESTMENT_NSID = "id.sifa.profile.investment";
604
- var ProfileInvestmentRecordSchema = z.object({
605
- /** For a limited-partner entry this names the fund, not a portfolio company. */
606
- company: z.string().min(1).refine(maxGraphemes(256)).max(2560),
607
- companyDid: didSchema.optional(),
608
- entityRef: entityRefField2,
609
- role: z.string().optional(),
610
- stage: z.string().optional(),
611
- status: z.string().optional(),
612
- /** The vehicle the capital went through. Absent for a cheque in the person's own name. */
613
- via: z.string().refine(maxGraphemes(256)).max(2560).optional(),
614
- viaDid: didSchema.optional(),
615
- viaEntityRef: entityRefField2,
616
- /**
617
- * Optional and empty by default. Cheque size is a personal financial disclosure,
618
- * and clients must not prompt for it.
619
- */
620
- amount: InvestmentAmountSchema.optional(),
621
- startedAt: partialDateSchema.optional(),
622
- endedAt: partialDateSchema.optional(),
623
- description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
624
- links: z.array(ArtifactLinkSchema).max(50).optional(),
625
- labels: selfLabelsSchema.optional(),
626
- createdAt: datetimeSchema
627
- }).passthrough();
628
-
629
- export { ArtifactLinkSchema, AtmosphereFeedItemSchema, BlobRefSchema, CONFIRMATION_RELATIONS, ConfirmationRecordSchema, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntityMintDomainResponseSchema, EntityResolveDomainRequestSchema, EntityResolveDomainResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, InvestmentAmountSchema, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PROFILE_INVESTMENT_NSID, PROFILE_INVOLVEMENT_NSID, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvestmentRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, RelatedIdentifierSchema, SifaFeedItemSchema, agentRefSchema, atUriSchema, cidSchema, datetimeSchema, decodeFeedCursor, didSchema, encodeFeedCursor, externalRecordRefSchema, languageTagSchema, makeGraphFollowRecordSchema, maxGraphemes, partialDateSchema, selfLabelsSchema, skillRefSchema, strongRefSchema, uriSchema };
630
- //# sourceMappingURL=index.js.map
149
+ agentRefSchema,
150
+ atUriSchema,
151
+ cidSchema,
152
+ datetimeSchema,
153
+ decodeFeedCursor,
154
+ didSchema,
155
+ encodeFeedCursor,
156
+ externalRecordRefSchema,
157
+ languageTagSchema,
158
+ makeGraphFollowRecordSchema,
159
+ maxGraphemes,
160
+ partialDateSchema,
161
+ selfLabelsSchema,
162
+ skillRefSchema,
163
+ strongRefSchema,
164
+ uriSchema
165
+ };
631
166
  //# sourceMappingURL=index.js.map