@singi-labs/sifa-sdk 0.19.43 → 0.19.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atproto/index.js +9 -3
- package/dist/atproto/index.js.map +1 -1
- package/dist/badge/index.js +5 -141
- package/dist/badge/index.js.map +1 -1
- package/dist/cards/adult-content.js +14 -0
- package/dist/cards/adult-content.js.map +1 -0
- package/dist/cards/app-url-patterns.js +369 -0
- package/dist/cards/app-url-patterns.js.map +1 -0
- package/dist/cards/index.js +24 -0
- package/dist/cards/index.js.map +1 -0
- package/dist/cards/resolve-card-url.js +198 -0
- package/dist/cards/resolve-card-url.js.map +1 -0
- package/dist/cards/visibility.js +45 -0
- package/dist/cards/visibility.js.map +1 -0
- package/dist/flags/index.js +4 -3
- package/dist/flags/index.js.map +1 -1
- package/dist/format/collapse-contributors.js +19 -0
- package/dist/format/collapse-contributors.js.map +1 -0
- package/dist/format/company-name.js +61 -0
- package/dist/format/company-name.js.map +1 -0
- package/dist/format/compare-text.js +9 -0
- package/dist/format/compare-text.js.map +1 -0
- package/dist/format/doi.js +8 -0
- package/dist/format/doi.js.map +1 -0
- package/dist/format/embed.js +131 -0
- package/dist/format/embed.js.map +1 -0
- package/dist/format/endorsement-context.js +35 -0
- package/dist/format/endorsement-context.js.map +1 -0
- package/dist/format/format-display-url.js +42 -0
- package/dist/format/format-display-url.js.map +1 -0
- package/dist/format/format-duration.js +13 -0
- package/dist/format/format-duration.js.map +1 -0
- package/dist/format/format-time.js +30 -0
- package/dist/format/format-time.js.map +1 -0
- package/dist/format/handle-utils.js +19 -0
- package/dist/format/handle-utils.js.map +1 -0
- package/dist/format/index.js +100 -0
- package/dist/format/index.js.map +1 -0
- package/dist/format/location-segments.js +29 -0
- package/dist/format/location-segments.js.map +1 -0
- package/dist/format/location-utils.js +42 -0
- package/dist/format/location-utils.js.map +1 -0
- package/dist/format/meta-description.js +35 -0
- package/dist/format/meta-description.js.map +1 -0
- package/dist/format/normalize-company-key.js +12 -0
- package/dist/format/normalize-company-key.js.map +1 -0
- package/dist/format/normalize-legal-form.js +71 -0
- package/dist/format/normalize-legal-form.js.map +1 -0
- package/dist/format/pds-utils.js +73 -0
- package/dist/format/pds-utils.js.map +1 -0
- package/dist/format/sort-by-date.js +39 -0
- package/dist/format/sort-by-date.js.map +1 -0
- package/dist/format/summarize-deliveries.js +37 -0
- package/dist/format/summarize-deliveries.js.map +1 -0
- package/dist/format/talk-slug.js +21 -0
- package/dist/format/talk-slug.js.map +1 -0
- package/dist/format/text-sanitize.js +29 -0
- package/dist/format/text-sanitize.js.map +1 -0
- package/dist/format/text-truncate.js +14 -0
- package/dist/format/text-truncate.js.map +1 -0
- package/dist/format/time-utils.js +19 -0
- package/dist/format/time-utils.js.map +1 -0
- package/dist/format/timeline.js +29 -0
- package/dist/format/timeline.js.map +1 -0
- package/dist/format/wcag-contrast.js +34 -0
- package/dist/format/wcag-contrast.js.map +1 -0
- package/dist/import/index.js +22 -0
- package/dist/import/index.js.map +1 -0
- package/dist/import/presentation-csv.js +116 -0
- package/dist/import/presentation-csv.js.map +1 -0
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +675 -7080
- package/dist/index.js.map +1 -1
- package/dist/jev/index.js +18 -5
- package/dist/jev/index.js.map +1 -1
- package/dist/jsonld/index.cjs.map +1 -1
- package/dist/jsonld/index.js +30 -987
- package/dist/jsonld/index.js.map +1 -1
- package/dist/jsonld/profile.js +222 -0
- package/dist/jsonld/profile.js.map +1 -0
- package/dist/jsonld/terms.js +496 -0
- package/dist/jsonld/terms.js.map +1 -0
- package/dist/jsonld/url.js +17 -0
- package/dist/jsonld/url.js.map +1 -0
- package/dist/jsonld/works-graph.js +41 -0
- package/dist/jsonld/works-graph.js.map +1 -0
- package/dist/jsonld/works.js +178 -0
- package/dist/jsonld/works.js.map +1 -0
- package/dist/logic/actor-identity.js +8 -0
- package/dist/logic/actor-identity.js.map +1 -0
- package/dist/logic/agent-ref.js +24 -0
- package/dist/logic/agent-ref.js.map +1 -0
- package/dist/logic/company-page-indexable.js +23 -0
- package/dist/logic/company-page-indexable.js.map +1 -0
- package/dist/logic/date-lookahead.js +31 -0
- package/dist/logic/date-lookahead.js.map +1 -0
- package/dist/logic/domain-detect.js +43 -0
- package/dist/logic/domain-detect.js.map +1 -0
- package/dist/logic/entity-disambiguation.js +24 -0
- package/dist/logic/entity-disambiguation.js.map +1 -0
- package/dist/logic/entity-ref-anchor.js +33 -0
- package/dist/logic/entity-ref-anchor.js.map +1 -0
- package/dist/logic/index.js +91 -0
- package/dist/logic/index.js.map +1 -0
- package/dist/logic/org-floor.js +66 -0
- package/dist/logic/org-floor.js.map +1 -0
- package/dist/logic/primary-item.js +9 -0
- package/dist/logic/primary-item.js.map +1 -0
- package/dist/logic/primary-position.js +16 -0
- package/dist/logic/primary-position.js.map +1 -0
- package/dist/logic/profile-completeness.js +21 -0
- package/dist/logic/profile-completeness.js.map +1 -0
- package/dist/logic/profile-dimensions.js +50 -0
- package/dist/logic/profile-dimensions.js.map +1 -0
- package/dist/logic/profile-summary.js +23 -0
- package/dist/logic/profile-summary.js.map +1 -0
- package/dist/logic/pseudo-employer.js +34 -0
- package/dist/logic/pseudo-employer.js.map +1 -0
- package/dist/logic/recent-activity.js +10 -0
- package/dist/logic/recent-activity.js.map +1 -0
- package/dist/logic/self-app.js +10 -0
- package/dist/logic/self-app.js.map +1 -0
- package/dist/{org-BCrvebcf.d.ts → org-CxTEjjrm.d.ts} +1 -1
- package/dist/{org-settings-C73Sin5E.d.ts → org-settings-BShvhyFp.d.ts} +1 -1
- package/dist/profile/headline-role-dedupe.js +12 -0
- package/dist/profile/headline-role-dedupe.js.map +1 -0
- package/dist/profile/highlights.js +200 -0
- package/dist/profile/highlights.js.map +1 -0
- package/dist/profile/index.js +66 -0
- package/dist/profile/index.js.map +1 -0
- package/dist/profile/involvement-grouping.js +31 -0
- package/dist/profile/involvement-grouping.js.map +1 -0
- package/dist/profile/language-sort.js +24 -0
- package/dist/profile/language-sort.js.map +1 -0
- package/dist/profile/publication-versions.js +98 -0
- package/dist/profile/publication-versions.js.map +1 -0
- package/dist/profile/range-sort.js +14 -0
- package/dist/profile/range-sort.js.map +1 -0
- package/dist/profile/section-model.js +122 -0
- package/dist/profile/section-model.js.map +1 -0
- package/dist/profile/section-sorts.js +33 -0
- package/dist/profile/section-sorts.js.map +1 -0
- package/dist/publishers/index.js +16 -0
- package/dist/publishers/index.js.map +1 -0
- package/dist/publishers/registry.js +87 -0
- package/dist/publishers/registry.js.map +1 -0
- package/dist/publishing/index.js +46 -184
- package/dist/publishing/index.js.map +1 -1
- package/dist/publishing/linkblog.js +42 -0
- package/dist/publishing/linkblog.js.map +1 -0
- package/dist/publishing/registry.js +32 -0
- package/dist/publishing/registry.js.map +1 -0
- package/dist/publishing/schemas.js +74 -0
- package/dist/publishing/schemas.js.map +1 -0
- package/dist/publishing/types.js +32 -0
- package/dist/publishing/types.js.map +1 -0
- package/dist/query/client.js +119 -0
- package/dist/query/client.js.map +1 -0
- package/dist/query/config.js +23 -0
- package/dist/query/config.js.map +1 -0
- package/dist/query/fetchers/accounts.js +29 -0
- package/dist/query/fetchers/accounts.js.map +1 -0
- package/dist/query/fetchers/activity-items-hide.js +31 -0
- package/dist/query/fetchers/activity-items-hide.js.map +1 -0
- package/dist/query/fetchers/activity.js +61 -0
- package/dist/query/fetchers/activity.js.map +1 -0
- package/dist/query/fetchers/actor.js +30 -0
- package/dist/query/fetchers/actor.js.map +1 -0
- package/dist/query/fetchers/admin-feature-allowlists.js +41 -0
- package/dist/query/fetchers/admin-feature-allowlists.js.map +1 -0
- package/dist/query/fetchers/admin-review-queues.js +30 -0
- package/dist/query/fetchers/admin-review-queues.js.map +1 -0
- package/dist/query/fetchers/apps.js +31 -0
- package/dist/query/fetchers/apps.js.map +1 -0
- package/dist/query/fetchers/bsky-preferences.js +55 -0
- package/dist/query/fetchers/bsky-preferences.js.map +1 -0
- package/dist/query/fetchers/confirmations.js +55 -0
- package/dist/query/fetchers/confirmations.js.map +1 -0
- package/dist/query/fetchers/destructive.js +34 -0
- package/dist/query/fetchers/destructive.js.map +1 -0
- package/dist/query/fetchers/discovery.js +67 -0
- package/dist/query/fetchers/discovery.js.map +1 -0
- package/dist/query/fetchers/education.js +23 -0
- package/dist/query/fetchers/education.js.map +1 -0
- package/dist/query/fetchers/endorsement-inbox.js +36 -0
- package/dist/query/fetchers/endorsement-inbox.js.map +1 -0
- package/dist/query/fetchers/endorsement.js +23 -0
- package/dist/query/fetchers/endorsement.js.map +1 -0
- package/dist/query/fetchers/endorsements.js +20 -0
- package/dist/query/fetchers/endorsements.js.map +1 -0
- package/dist/query/fetchers/entities.js +65 -0
- package/dist/query/fetchers/entities.js.map +1 -0
- package/dist/query/fetchers/external-accounts.js +74 -0
- package/dist/query/fetchers/external-accounts.js.map +1 -0
- package/dist/query/fetchers/follow-extras.js +38 -0
- package/dist/query/fetchers/follow-extras.js.map +1 -0
- package/dist/query/fetchers/follow.js +105 -0
- package/dist/query/fetchers/follow.js.map +1 -0
- package/dist/query/fetchers/get-profile-view.js +21 -0
- package/dist/query/fetchers/get-profile-view.js.map +1 -0
- package/dist/query/fetchers/github-prs.js +45 -0
- package/dist/query/fetchers/github-prs.js.map +1 -0
- package/dist/query/fetchers/inbox.js +29 -0
- package/dist/query/fetchers/inbox.js.map +1 -0
- package/dist/query/fetchers/index.d.ts +2 -2
- package/dist/query/fetchers/index.js +360 -2045
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/fetchers/investments.js +18 -0
- package/dist/query/fetchers/investments.js.map +1 -0
- package/dist/query/fetchers/keytrace-claims.js +23 -0
- package/dist/query/fetchers/keytrace-claims.js.map +1 -0
- package/dist/query/fetchers/marque-domains.js +23 -0
- package/dist/query/fetchers/marque-domains.js.map +1 -0
- package/dist/query/fetchers/network-map.js +36 -0
- package/dist/query/fetchers/network-map.js.map +1 -0
- package/dist/query/fetchers/org.js +48 -0
- package/dist/query/fetchers/org.js.map +1 -0
- package/dist/query/fetchers/positions.js +77 -0
- package/dist/query/fetchers/positions.js.map +1 -0
- package/dist/query/fetchers/profile-completeness.js +45 -0
- package/dist/query/fetchers/profile-completeness.js.map +1 -0
- package/dist/query/fetchers/profile-items-hide.js +36 -0
- package/dist/query/fetchers/profile-items-hide.js.map +1 -0
- package/dist/query/fetchers/profile-locations.js +23 -0
- package/dist/query/fetchers/profile-locations.js.map +1 -0
- package/dist/query/fetchers/profile-mutations.js +82 -0
- package/dist/query/fetchers/profile-mutations.js.map +1 -0
- package/dist/query/fetchers/profile-summary.js +14 -0
- package/dist/query/fetchers/profile-summary.js.map +1 -0
- package/dist/query/fetchers/profile.js +31 -0
- package/dist/query/fetchers/profile.js.map +1 -0
- package/dist/query/fetchers/publications.js +66 -0
- package/dist/query/fetchers/publications.js.map +1 -0
- package/dist/query/fetchers/quoted-posts.js +40 -0
- package/dist/query/fetchers/quoted-posts.js.map +1 -0
- package/dist/query/fetchers/reactions.js +85 -0
- package/dist/query/fetchers/reactions.js.map +1 -0
- package/dist/query/fetchers/received-endorsements.js +20 -0
- package/dist/query/fetchers/received-endorsements.js.map +1 -0
- package/dist/query/fetchers/reciprocity.js +23 -0
- package/dist/query/fetchers/reciprocity.js.map +1 -0
- package/dist/query/fetchers/records.js +27 -0
- package/dist/query/fetchers/records.js.map +1 -0
- package/dist/query/fetchers/repo-inventory.js +23 -0
- package/dist/query/fetchers/repo-inventory.js.map +1 -0
- package/dist/query/fetchers/roadmap.js +73 -0
- package/dist/query/fetchers/roadmap.js.map +1 -0
- package/dist/query/fetchers/rpg.js +36 -0
- package/dist/query/fetchers/rpg.js.map +1 -0
- package/dist/query/fetchers/search.js +78 -0
- package/dist/query/fetchers/search.js.map +1 -0
- package/dist/query/fetchers/section-primary.js +23 -0
- package/dist/query/fetchers/section-primary.js.map +1 -0
- package/dist/query/fetchers/skills.js +30 -0
- package/dist/query/fetchers/skills.js.map +1 -0
- package/dist/query/fetchers/speakers.js +42 -0
- package/dist/query/fetchers/speakers.js.map +1 -0
- package/dist/query/fetchers/stats.js +16 -0
- package/dist/query/fetchers/stats.js.map +1 -0
- package/dist/query/fetchers/stream.js +30 -0
- package/dist/query/fetchers/stream.js.map +1 -0
- package/dist/query/fetchers/unlinked-positions.js +30 -0
- package/dist/query/fetchers/unlinked-positions.js.map +1 -0
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +283 -3555
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/hooks/use-accounts.js +19 -0
- package/dist/query/hooks/use-accounts.js.map +1 -0
- package/dist/query/hooks/use-activity-items-hide.js +52 -0
- package/dist/query/hooks/use-activity-items-hide.js.map +1 -0
- package/dist/query/hooks/use-activity.js +44 -0
- package/dist/query/hooks/use-activity.js.map +1 -0
- package/dist/query/hooks/use-admin-review-queues.js +21 -0
- package/dist/query/hooks/use-admin-review-queues.js.map +1 -0
- package/dist/query/hooks/use-apps.js +31 -0
- package/dist/query/hooks/use-apps.js.map +1 -0
- package/dist/query/hooks/use-bsky-content-prefs.js +45 -0
- package/dist/query/hooks/use-bsky-content-prefs.js.map +1 -0
- package/dist/query/hooks/use-confirmations.js +121 -0
- package/dist/query/hooks/use-confirmations.js.map +1 -0
- package/dist/query/hooks/use-create-position.js +28 -0
- package/dist/query/hooks/use-create-position.js.map +1 -0
- package/dist/query/hooks/use-destructive.js +63 -0
- package/dist/query/hooks/use-destructive.js.map +1 -0
- package/dist/query/hooks/use-discovery.js +53 -0
- package/dist/query/hooks/use-discovery.js.map +1 -0
- package/dist/query/hooks/use-education-mutations.js +67 -0
- package/dist/query/hooks/use-education-mutations.js.map +1 -0
- package/dist/query/hooks/use-endorsement-inbox.js +80 -0
- package/dist/query/hooks/use-endorsement-inbox.js.map +1 -0
- package/dist/query/hooks/use-endorsement-mutations.js +33 -0
- package/dist/query/hooks/use-endorsement-mutations.js.map +1 -0
- package/dist/query/hooks/use-endorsement.js +20 -0
- package/dist/query/hooks/use-endorsement.js.map +1 -0
- package/dist/query/hooks/use-entity-search.js +73 -0
- package/dist/query/hooks/use-entity-search.js.map +1 -0
- package/dist/query/hooks/use-external-accounts.js +143 -0
- package/dist/query/hooks/use-external-accounts.js.map +1 -0
- package/dist/query/hooks/use-feature-allowlist.js +104 -0
- package/dist/query/hooks/use-feature-allowlist.js.map +1 -0
- package/dist/query/hooks/use-follow-extras.js +38 -0
- package/dist/query/hooks/use-follow-extras.js.map +1 -0
- package/dist/query/hooks/use-follow.js +113 -0
- package/dist/query/hooks/use-follow.js.map +1 -0
- package/dist/query/hooks/use-get-profile-view.js +20 -0
- package/dist/query/hooks/use-get-profile-view.js.map +1 -0
- package/dist/query/hooks/use-github-prs.js +21 -0
- package/dist/query/hooks/use-github-prs.js.map +1 -0
- package/dist/query/hooks/use-inbox.js +19 -0
- package/dist/query/hooks/use-inbox.js.map +1 -0
- package/dist/query/hooks/use-investment-mutations.js +65 -0
- package/dist/query/hooks/use-investment-mutations.js.map +1 -0
- package/dist/query/hooks/use-keytrace-claims.js +50 -0
- package/dist/query/hooks/use-keytrace-claims.js.map +1 -0
- package/dist/query/hooks/use-location-mutations.js +71 -0
- package/dist/query/hooks/use-location-mutations.js.map +1 -0
- package/dist/query/hooks/use-marque-domains.js +50 -0
- package/dist/query/hooks/use-marque-domains.js.map +1 -0
- package/dist/query/hooks/use-org-claim.js +29 -0
- package/dist/query/hooks/use-org-claim.js.map +1 -0
- package/dist/query/hooks/use-org-domains.js +28 -0
- package/dist/query/hooks/use-org-domains.js.map +1 -0
- package/dist/query/hooks/use-org-notification-emails.js +28 -0
- package/dist/query/hooks/use-org-notification-emails.js.map +1 -0
- package/dist/query/hooks/use-org-profile-settings.js +29 -0
- package/dist/query/hooks/use-org-profile-settings.js.map +1 -0
- package/dist/query/hooks/use-org-profile.js +21 -0
- package/dist/query/hooks/use-org-profile.js.map +1 -0
- package/dist/query/hooks/use-position-mutations.js +128 -0
- package/dist/query/hooks/use-position-mutations.js.map +1 -0
- package/dist/query/hooks/use-profile-completeness.js +21 -0
- package/dist/query/hooks/use-profile-completeness.js.map +1 -0
- package/dist/query/hooks/use-profile-items-hide.js +53 -0
- package/dist/query/hooks/use-profile-items-hide.js.map +1 -0
- package/dist/query/hooks/use-profile-mutations.js +143 -0
- package/dist/query/hooks/use-profile-mutations.js.map +1 -0
- package/dist/query/hooks/use-profile.js +30 -0
- package/dist/query/hooks/use-profile.js.map +1 -0
- package/dist/query/hooks/use-publication-mutations.js +90 -0
- package/dist/query/hooks/use-publication-mutations.js.map +1 -0
- package/dist/query/hooks/use-reaction-mutations.js +48 -0
- package/dist/query/hooks/use-reaction-mutations.js.map +1 -0
- package/dist/query/hooks/use-reactions.js +32 -0
- package/dist/query/hooks/use-reactions.js.map +1 -0
- package/dist/query/hooks/use-received-endorsements.js +23 -0
- package/dist/query/hooks/use-received-endorsements.js.map +1 -0
- package/dist/query/hooks/use-reciprocity.js +19 -0
- package/dist/query/hooks/use-reciprocity.js.map +1 -0
- package/dist/query/hooks/use-record-mutations.js +67 -0
- package/dist/query/hooks/use-record-mutations.js.map +1 -0
- package/dist/query/hooks/use-repo-inventory.js +43 -0
- package/dist/query/hooks/use-repo-inventory.js.map +1 -0
- package/dist/query/hooks/use-roadmap-mutations.js +51 -0
- package/dist/query/hooks/use-roadmap-mutations.js.map +1 -0
- package/dist/query/hooks/use-roadmap.js +31 -0
- package/dist/query/hooks/use-roadmap.js.map +1 -0
- package/dist/query/hooks/use-search.js +63 -0
- package/dist/query/hooks/use-search.js.map +1 -0
- package/dist/query/hooks/use-section-primary-mutations.js +53 -0
- package/dist/query/hooks/use-section-primary-mutations.js.map +1 -0
- package/dist/query/hooks/use-skill-mutations.js +91 -0
- package/dist/query/hooks/use-skill-mutations.js.map +1 -0
- package/dist/query/hooks/use-stats.js +19 -0
- package/dist/query/hooks/use-stats.js.map +1 -0
- package/dist/query/hooks/use-stream.js +20 -0
- package/dist/query/hooks/use-stream.js.map +1 -0
- package/dist/query/hooks/use-unlinked-positions.js +45 -0
- package/dist/query/hooks/use-unlinked-positions.js.map +1 -0
- package/dist/query/index.d.ts +4 -4
- package/dist/query/index.js +685 -3744
- package/dist/query/index.js.map +1 -1
- package/dist/query/keys.js +138 -0
- package/dist/query/keys.js.map +1 -0
- package/dist/repo/groups.js +81 -0
- package/dist/repo/groups.js.map +1 -0
- package/dist/repo/index.js +9 -0
- package/dist/repo/index.js.map +1 -0
- package/dist/repo/labels.js +121 -0
- package/dist/repo/labels.js.map +1 -0
- package/dist/repo/types.js +1 -0
- package/dist/repo/types.js.map +1 -0
- package/dist/resume/index.js +5 -179
- package/dist/resume/index.js.map +1 -1
- package/dist/resume/json-resume.js +153 -0
- package/dist/resume/json-resume.js.map +1 -0
- package/dist/roadmap/index.js +101 -0
- package/dist/roadmap/index.js.map +1 -0
- package/dist/rpg/catalog.js +101 -0
- package/dist/rpg/catalog.js.map +1 -0
- package/dist/rpg/index.js +13 -116
- package/dist/rpg/index.js.map +1 -1
- package/dist/rpg/unlocks.js +21 -0
- package/dist/rpg/unlocks.js.map +1 -0
- package/dist/schemas/blob-ref.js +12 -0
- package/dist/schemas/blob-ref.js.map +1 -0
- package/dist/schemas/confirmation.js +23 -0
- package/dist/schemas/confirmation.js.map +1 -0
- package/dist/schemas/endorsement-confirmation.js +18 -0
- package/dist/schemas/endorsement-confirmation.js.map +1 -0
- package/dist/schemas/endorsement.js +19 -0
- package/dist/schemas/endorsement.js.map +1 -0
- package/dist/schemas/entity.js +74 -0
- package/dist/schemas/entity.js.map +1 -0
- package/dist/schemas/feed.js +73 -0
- package/dist/schemas/feed.js.map +1 -0
- package/dist/schemas/follow-profile.js +32 -0
- package/dist/schemas/follow-profile.js.map +1 -0
- package/dist/schemas/graph-follow.js +19 -0
- package/dist/schemas/graph-follow.js.map +1 -0
- package/dist/schemas/index.js +164 -629
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/org-employment-attestation.js +28 -0
- package/dist/schemas/org-employment-attestation.js.map +1 -0
- package/dist/schemas/org-profile.js +64 -0
- package/dist/schemas/org-profile.js.map +1 -0
- package/dist/schemas/profile-certification.js +28 -0
- package/dist/schemas/profile-certification.js.map +1 -0
- package/dist/schemas/profile-course.js +32 -0
- package/dist/schemas/profile-course.js.map +1 -0
- package/dist/schemas/profile-education.js +33 -0
- package/dist/schemas/profile-education.js.map +1 -0
- package/dist/schemas/profile-external-account.js +15 -0
- package/dist/schemas/profile-external-account.js.map +1 -0
- package/dist/schemas/profile-honor.js +18 -0
- package/dist/schemas/profile-honor.js.map +1 -0
- package/dist/schemas/profile-investment.js +48 -0
- package/dist/schemas/profile-investment.js.map +1 -0
- package/dist/schemas/profile-involvement.js +47 -0
- package/dist/schemas/profile-involvement.js.map +1 -0
- package/dist/schemas/profile-language.js +12 -0
- package/dist/schemas/profile-language.js.map +1 -0
- package/dist/schemas/profile-position.js +42 -0
- package/dist/schemas/profile-position.js.map +1 -0
- package/dist/schemas/profile-presentation-delivery.js +38 -0
- package/dist/schemas/profile-presentation-delivery.js.map +1 -0
- package/dist/schemas/profile-presentation.js +36 -0
- package/dist/schemas/profile-presentation.js.map +1 -0
- package/dist/schemas/profile-project.js +48 -0
- package/dist/schemas/profile-project.js.map +1 -0
- package/dist/schemas/profile-publication.js +30 -0
- package/dist/schemas/profile-publication.js.map +1 -0
- package/dist/schemas/profile-self.js +22 -0
- package/dist/schemas/profile-self.js.map +1 -0
- package/dist/schemas/profile-skill.js +13 -0
- package/dist/schemas/profile-skill.js.map +1 -0
- package/dist/schemas/profile-volunteering.js +20 -0
- package/dist/schemas/profile-volunteering.js.map +1 -0
- package/dist/schemas/shared.js +56 -0
- package/dist/schemas/shared.js.map +1 -0
- package/dist/schemas/write/certification.js +16 -0
- package/dist/schemas/write/certification.js.map +1 -0
- package/dist/schemas/write/course.js +36 -0
- package/dist/schemas/write/course.js.map +1 -0
- package/dist/schemas/write/education.js +18 -0
- package/dist/schemas/write/education.js.map +1 -0
- package/dist/schemas/write/external-account.js +13 -0
- package/dist/schemas/write/external-account.js.map +1 -0
- package/dist/schemas/write/honor.js +14 -0
- package/dist/schemas/write/honor.js.map +1 -0
- package/dist/schemas/write/index.d.ts +1 -1
- package/dist/schemas/write/index.js +89 -593
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/schemas/write/investment.js +32 -0
- package/dist/schemas/write/investment.js.map +1 -0
- package/dist/schemas/write/involvement.js +34 -0
- package/dist/schemas/write/involvement.js.map +1 -0
- package/dist/schemas/write/language.js +10 -0
- package/dist/schemas/write/language.js.map +1 -0
- package/dist/schemas/write/org-claim.js +56 -0
- package/dist/schemas/write/org-claim.js.map +1 -0
- package/dist/schemas/write/org-employment-attestation.js +19 -0
- package/dist/schemas/write/org-employment-attestation.js.map +1 -0
- package/dist/schemas/write/org-profile.js +54 -0
- package/dist/schemas/write/org-profile.js.map +1 -0
- package/dist/schemas/write/org-settings.js +81 -0
- package/dist/schemas/write/org-settings.js.map +1 -0
- package/dist/schemas/write/position.js +24 -0
- package/dist/schemas/write/position.js.map +1 -0
- package/dist/schemas/write/presentation-delivery.js +34 -0
- package/dist/schemas/write/presentation-delivery.js.map +1 -0
- package/dist/schemas/write/presentation.js +23 -0
- package/dist/schemas/write/presentation.js.map +1 -0
- package/dist/schemas/write/profile-location.js +21 -0
- package/dist/schemas/write/profile-location.js.map +1 -0
- package/dist/schemas/write/profile-self.js +27 -0
- package/dist/schemas/write/profile-self.js.map +1 -0
- package/dist/schemas/write/project.js +27 -0
- package/dist/schemas/write/project.js.map +1 -0
- package/dist/schemas/write/publication.js +41 -0
- package/dist/schemas/write/publication.js.map +1 -0
- package/dist/schemas/write/shared.js +96 -0
- package/dist/schemas/write/shared.js.map +1 -0
- package/dist/schemas/write/skill.js +18 -0
- package/dist/schemas/write/skill.js.map +1 -0
- package/dist/schemas/write/volunteering.js +16 -0
- package/dist/schemas/write/volunteering.js.map +1 -0
- package/dist/stream/activity-item.js +1 -0
- package/dist/stream/activity-item.js.map +1 -0
- package/dist/stream/index.js +49 -0
- package/dist/stream/index.js.map +1 -0
- package/dist/stream/stream-card-vm-schema.js +265 -0
- package/dist/stream/stream-card-vm-schema.js.map +1 -0
- package/dist/stream/stream-card-vm.js +1 -0
- package/dist/stream/stream-card-vm.js.map +1 -0
- package/dist/stream/to-stream-card-vm.js +793 -0
- package/dist/stream/to-stream-card-vm.js.map +1 -0
- package/dist/stream/two-tier.js +30 -0
- package/dist/stream/two-tier.js.map +1 -0
- package/dist/stream/verbs.js +120 -0
- package/dist/stream/verbs.js.map +1 -0
- package/dist/taxonomy/activity-tiers.js +956 -0
- package/dist/taxonomy/activity-tiers.js.map +1 -0
- package/dist/taxonomy/app-categories.js +42 -0
- package/dist/taxonomy/app-categories.js.map +1 -0
- package/dist/taxonomy/app-category-map.js +166 -0
- package/dist/taxonomy/app-category-map.js.map +1 -0
- package/dist/taxonomy/artifact-link-kind.js +29 -0
- package/dist/taxonomy/artifact-link-kind.js.map +1 -0
- package/dist/taxonomy/calendar-event.js +28 -0
- package/dist/taxonomy/calendar-event.js.map +1 -0
- package/dist/taxonomy/continents.js +215 -0
- package/dist/taxonomy/continents.js.map +1 -0
- package/dist/taxonomy/countries.js +203 -0
- package/dist/taxonomy/countries.js.map +1 -0
- package/dist/taxonomy/course-role.js +37 -0
- package/dist/taxonomy/course-role.js.map +1 -0
- package/dist/taxonomy/employment-type.js +82 -0
- package/dist/taxonomy/employment-type.js.map +1 -0
- package/dist/taxonomy/eqf-level.js +59 -0
- package/dist/taxonomy/eqf-level.js.map +1 -0
- package/dist/taxonomy/index.js +263 -0
- package/dist/taxonomy/index.js.map +1 -0
- package/dist/taxonomy/industry-taxonomy.js +281 -0
- package/dist/taxonomy/industry-taxonomy.js.map +1 -0
- package/dist/taxonomy/investment.js +54 -0
- package/dist/taxonomy/investment.js.map +1 -0
- package/dist/taxonomy/involvement-kind.js +30 -0
- package/dist/taxonomy/involvement-kind.js.map +1 -0
- package/dist/taxonomy/open-to.js +128 -0
- package/dist/taxonomy/open-to.js.map +1 -0
- package/dist/taxonomy/platforms.js +56 -0
- package/dist/taxonomy/platforms.js.map +1 -0
- package/dist/taxonomy/presentation-link-type.js +22 -0
- package/dist/taxonomy/presentation-link-type.js.map +1 -0
- package/dist/taxonomy/presentation-role.js +21 -0
- package/dist/taxonomy/presentation-role.js.map +1 -0
- package/dist/taxonomy/publication-type.js +54 -0
- package/dist/taxonomy/publication-type.js.map +1 -0
- package/dist/taxonomy/relational.js +25 -0
- package/dist/taxonomy/relational.js.map +1 -0
- package/dist/taxonomy/search-filter-defs.js +66 -0
- package/dist/taxonomy/search-filter-defs.js.map +1 -0
- package/dist/taxonomy/skill-categories.js +28 -0
- package/dist/taxonomy/skill-categories.js.map +1 -0
- package/dist/taxonomy/skill-display-groups.js +12 -0
- package/dist/taxonomy/skill-display-groups.js.map +1 -0
- package/dist/taxonomy/skill-grouping.js +90 -0
- package/dist/taxonomy/skill-grouping.js.map +1 -0
- package/dist/taxonomy/verification-providers.js +69 -0
- package/dist/taxonomy/verification-providers.js.map +1 -0
- package/dist/taxonomy/workplace-type.js +38 -0
- package/dist/taxonomy/workplace-type.js.map +1 -0
- package/dist/tokens/colors.js +11 -0
- package/dist/tokens/colors.js.map +1 -0
- package/dist/tokens/icons.js +15 -0
- package/dist/tokens/icons.js.map +1 -0
- package/dist/tokens/index.js +10 -39
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/typography.js +23 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/types/index.js +10 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/profile-view.js +1 -0
- package/dist/types/profile-view.js.map +1 -0
- package/dist/{use-org-notification-emails-0hjt-dEw.d.ts → use-org-notification-emails-CWWi1D8t.d.ts} +2 -2
- package/package.json +4 -3
package/dist/schemas/index.js
CHANGED
|
@@ -1,631 +1,166 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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
|