@singi-labs/sifa-sdk 0.19.55 → 0.19.57

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 (56) hide show
  1. package/dist/{follow-profile-D1l6pulB.d.ts → follow-profile-CQ3DTTak.d.cts} +3 -0
  2. package/dist/{follow-profile-D1l6pulB.d.cts → follow-profile-ceqefXAw.d.ts} +3 -0
  3. package/dist/{index-DmlIG8sJ.d.cts → index-BeQbepFn.d.cts} +7 -1
  4. package/dist/{index-D9GC0u__.d.ts → index-CT-A3BEe.d.ts} +7 -1
  5. package/dist/index.cjs +16 -2
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +10 -81
  8. package/dist/index.d.ts +10 -81
  9. package/dist/index.js +1 -1
  10. package/dist/jsonld/index.d.cts +2 -2
  11. package/dist/jsonld/index.d.ts +2 -2
  12. package/dist/{network-map-CiWrQ1fF.d.ts → network-map-CKF7Yozc.d.ts} +4 -4
  13. package/dist/{network-map-CdYpUy-t.d.cts → network-map-DHOOMSCP.d.cts} +4 -4
  14. package/dist/{org-fmpG85L0.d.cts → org-Bq3HbpLD.d.cts} +33 -6
  15. package/dist/{org-hxHnoBfg.d.ts → org-CelDIOiN.d.ts} +33 -6
  16. package/dist/{profile-summary-5T1hDw6Q.d.cts → profile-summary-CD3-QflX.d.cts} +1 -1
  17. package/dist/{profile-summary-Bj7ufSDK.d.ts → profile-summary-CyRzFe7f.d.ts} +1 -1
  18. package/dist/query/fetchers/discovery.js.map +1 -1
  19. package/dist/query/fetchers/follow.js +13 -4
  20. package/dist/query/fetchers/follow.js.map +1 -1
  21. package/dist/query/fetchers/index.cjs +21 -6
  22. package/dist/query/fetchers/index.cjs.map +1 -1
  23. package/dist/query/fetchers/index.d.cts +8 -8
  24. package/dist/query/fetchers/index.d.ts +8 -8
  25. package/dist/query/fetchers/index.js.map +1 -1
  26. package/dist/query/fetchers/search.js +8 -2
  27. package/dist/query/fetchers/search.js.map +1 -1
  28. package/dist/query/hooks/index.cjs +17 -4
  29. package/dist/query/hooks/index.cjs.map +1 -1
  30. package/dist/query/hooks/index.d.cts +6 -6
  31. package/dist/query/hooks/index.d.ts +6 -6
  32. package/dist/query/hooks/use-follow.js +1 -1
  33. package/dist/query/hooks/use-follow.js.map +1 -1
  34. package/dist/query/index.cjs +22 -7
  35. package/dist/query/index.cjs.map +1 -1
  36. package/dist/query/index.d.cts +12 -12
  37. package/dist/query/index.d.ts +12 -12
  38. package/dist/query/index.js.map +1 -1
  39. package/dist/resume/index.d.cts +2 -2
  40. package/dist/resume/index.d.ts +2 -2
  41. package/dist/schemas/follow-profile.js +18 -1
  42. package/dist/schemas/follow-profile.js.map +1 -1
  43. package/dist/schemas/index.cjs +53 -1
  44. package/dist/schemas/index.cjs.map +1 -1
  45. package/dist/schemas/index.d.cts +2 -2
  46. package/dist/schemas/index.d.ts +2 -2
  47. package/dist/types/index.js.map +1 -1
  48. package/dist/{types-jB67EFpw.d.ts → types-BHnGSJ3z.d.cts} +34 -4
  49. package/dist/{types-DHT7jcZc.d.cts → types-BKEBVobU.d.ts} +34 -4
  50. package/dist/{use-org-notification-emails-Cj8IDI_7.d.cts → use-org-notification-emails-BTR2Yxq8.d.cts} +9 -8
  51. package/dist/{use-org-notification-emails-CWLCWkmb.d.ts → use-org-notification-emails-DDIi6giD.d.ts} +9 -8
  52. package/dist/verification-providers-7il3kPQS.d.cts +158 -0
  53. package/dist/verification-providers-7il3kPQS.d.ts +158 -0
  54. package/package.json +1 -1
  55. package/dist/shared-v0vl5hov.d.cts +0 -87
  56. package/dist/shared-v0vl5hov.d.ts +0 -87
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["import type { AgentRef } from '../schemas/shared.js';\n\nexport interface LocationValue {\n city?: string;\n /** community.lexicon.location.address field -- preferred over `city`. */\n locality?: string;\n region?: string;\n country: string;\n countryCode?: string;\n postalCode?: string;\n geonameId?: number;\n}\n\nexport interface SkillRef {\n uri: string;\n}\n\nexport interface ProfilePosition {\n rkey: string;\n /**\n * Optional: omitted for self-employed / freelance / independent positions.\n * The lexicon and the record schema already make company optional.\n */\n company?: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user\n * picks an organization from the resolver typeahead. Absent for free-text or\n * independent positions (#159).\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked company (#240),\n * computed by the AppView at read time. Render this over `company` for a\n * linked position, so a name correction reaches every linked profile without\n * a PDS write. Absent for free-text or unresolved positions (fall back to\n * `company`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n /**\n * Company-page slug for a durably-linked position, resolved by the AppView at\n * read time alongside `entityName` (#159). Lets a consumer link the company\n * name to its `/c/{domain}` page without re-resolving `entityRef`. `domain` is\n * the readable form, `publicId` the durable fallback; build the link as\n * `/c/${companyDomain ?? companyPublicId}`. Both absent for free-text /\n * unlinked positions.\n */\n companyDomain?: string;\n companyPublicId?: string;\n title: string;\n description?: string;\n startedAt: string;\n endedAt?: string;\n location?: LocationValue | null;\n employmentType?: string;\n /**\n * Party this role is held on behalf of, when the person represents someone else --\n * most often a fund whose board seat this is. A disclosure rather than a role type,\n * so it is a separate field from `employmentType`. Absent for independent roles.\n */\n onBehalfOf?: string;\n /** DID of the represented party, when known. May be an organization or a person. */\n onBehalfOfDid?: string;\n /** Portable entity identifier for the represented party (Wikidata/ROR/LEI URI). */\n onBehalfOfEntityRef?: string;\n workplaceType?: string;\n skills?: SkillRef[];\n linkedSkills?: ProfileSkill[];\n primary?: boolean;\n hidden?: boolean;\n}\n\nexport interface ProfileEducation {\n rkey: string;\n institution: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user\n * links the institution to a resolved organization (#159/#241). Absent for\n * free-text entries. Mirrors `ProfilePosition.entityRef`; the AppView sends it\n * for display (the \"Linked\" badge).\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked institution (#252),\n * computed by the AppView at read time. Render this over `institution` for a\n * linked entry, so a name correction reaches every linked profile without a\n * PDS write. Absent for free-text or unresolved entries (fall back to\n * `institution`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n degree?: string;\n fieldOfStudy?: string;\n /** European Qualifications Framework level, 1 to 8 (8 = doctoral). */\n eqfLevel?: number;\n description?: string;\n activities?: string;\n startedAt?: string;\n endedAt?: string;\n hidden?: boolean;\n /** User-flagged primary education entry, surfaced in the Highlights block. */\n primary?: boolean;\n}\n\nexport interface ProfileSkill {\n rkey: string;\n name: string;\n /**\n * CID of the skill record, needed as a strongRef when endorsing it. Often\n * absent: only the firehose carries a CID, so a skill added moments ago has\n * none indexed yet. Pass it to `createEndorsement` when present and omit it\n * otherwise -- the AppView resolves it from the owner's PDS.\n */\n cid?: string;\n category?: string;\n /**\n * Freeform user-defined grouping label nested under `category` (e.g.\n * \"Frontend\", \"Backend\"). No known values; renderers decide the display\n * label. See `groupSkillsBySubCategory`.\n */\n subCategory?: string;\n endorsementCount?: number;\n endorsed?: boolean;\n /**\n * Names this skill was endorsed under, where they differ from what it is\n * called now. Absent when nothing has drifted.\n *\n * A rename keeps the same record, so endorsements follow it and stay\n * counted. Showing the original name is what keeps that honest: a reader can\n * see that a skill now called one thing was vouched for as another, instead\n * of the rename quietly laundering the endorsement.\n */\n endorsedAs?: string[];\n activityBacked?: boolean;\n}\n\nexport interface SkillSuggestion {\n canonicalName: string;\n slug: string;\n category: string;\n}\n\nexport interface Endorsement {\n endorserDid: string;\n endorserHandle: string;\n endorserDisplayName?: string;\n endorserAvatar?: string;\n comment?: string;\n relationshipContext?: string;\n createdAt: string;\n}\n\nexport interface EndorsementData {\n skillRkey: string;\n comment?: string;\n relationshipContext?: string;\n}\n\nexport interface ProfileLocation {\n rkey: string;\n type: string;\n label?: string | null;\n isPrimary: boolean;\n locationCountry?: string | null;\n locationRegion?: string | null;\n /** Legacy alias for `locationLocality`; emitted by sifa-api during the additive response window. */\n locationCity?: string | null;\n /** community.lexicon.location.address field name -- prefer over `locationCity`. */\n locationLocality?: string | null;\n countryCode?: string | null;\n location?: string | null;\n}\n\nexport interface ProfileCertification {\n rkey: string;\n name: string;\n /**\n * Issuing organization. The write contract names this field `authority`\n * everywhere (record schema, DB column, PDS record); the AppView read view\n * emits `authority` as the canonical field (#249). Optional during the\n * deprecation window while consumers migrate off the legacy `issuingOrg`\n * alias below.\n */\n authority?: string;\n /**\n * @deprecated Legacy read-view alias for {@link authority} (#249). Carries the\n * same value; will be dropped once web + SDK consumers read `authority`.\n */\n issuingOrg?: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuing\n * organization to a resolved entity (#159/#241). Absent for free-text entries.\n * Mirrors `ProfilePosition.entityRef`; the AppView sends it for display.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked issuing organization\n * (#252), computed by the AppView at read time. Render this over `authority`\n * for a linked entry. Absent for free-text or unresolved entries (fall back to\n * `authority`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n issueDate?: string;\n expiryDate?: string;\n credentialUrl?: string;\n hidden?: boolean;\n}\n\nexport interface ProfileProject {\n rkey: string;\n name: string;\n /** The user's own role on the project (#596), e.g. Maintainer. */\n role?: string;\n description?: string;\n url?: string;\n startDate?: string;\n endDate?: string;\n /** Other people named on this project, hydrated from the stored DIDs. */\n members?: ProjectMemberCard[];\n /**\n * AT-URI of the same project as recorded elsewhere, when this entry\n * duplicates another person's. Set so consumers can tell the two describe one\n * project; both still render from their own owner's record.\n */\n /** AT-URI of the same record on another person's profile, when they keep one. */\n sameAs?: string;\n hidden?: boolean;\n /** User-flagged primary project, surfaced in the Highlights block. Ongoing only. */\n primary?: boolean;\n}\n\nexport interface PublicationContributor {\n name: string;\n orcidId?: string;\n did?: string;\n handle?: string;\n}\n\n/**\n * A co-author an importer produced that the profile owner can offer to link to\n * a Sifa account.\n *\n * Matched on verified ORCID iD only, never on name: \"A. Example\", \"Alice\n * Example\", and \"Example, A.\" are one person, and \"J. Smith\" is four hundred.\n *\n * A suggestion, never a claim. Nothing reaches any repository until the owner\n * acts, which is what makes ORCID re-syncing safe: matching writes nothing, so\n * a re-sync cannot generate a confirmation request.\n */\nexport interface AuthorSuggestion {\n /** ORCID iD the match was made on. The join key back to a contributor. */\n orcidId: string;\n did: string;\n handle: string;\n /** Display name on the matched account, for showing what is being proposed. */\n displayName?: string;\n}\n\n/**\n * A typed link from a work to another version or form of it\n * (`id.sifa.defs#relatedIdentifier`). `relationType` uses the DataCite\n * vocabulary, e.g. `IsPreprintOf` on a preprint pointing at its published\n * version. `identifierType` is `DOI` (the default when absent), `AT-URI` or `URL`.\n */\nexport interface RelatedIdentifier {\n identifier: string;\n identifierType?: string;\n relationType: string;\n}\n\nexport interface ProfilePublication {\n rkey: string;\n title: string;\n subtitle?: string;\n publisher?: string;\n date?: string;\n url?: string;\n description?: string;\n source?: 'sifa' | 'standard' | 'orcid';\n doi?: string;\n type?: string;\n typeLabel?: string;\n contributors?: PublicationContributor[];\n verified?: boolean;\n verifiedVia?: string;\n orcidPutCode?: number;\n hidden?: boolean;\n /** User-flagged primary publication, surfaced in the Highlights block. */\n primary?: boolean;\n orcidCorroborated?: boolean;\n pendingVerification?: boolean;\n appId?: string;\n /**\n * AT-URI of the parent `site.standard.publication` for Standard.site\n * articles — the subscribable unit. Used to group articles by publication\n * on the profile. Undefined for Sifa/ORCID publications.\n */\n publicationUri?: string | null;\n /** Canonical publication origin — the subscribe / link-out target. */\n publicationUrl?: string | null;\n /** Publication display name for the group header (falls back to host). */\n publicationName?: string | null;\n /**\n * Cover image URL for Standard.site articles — the document's `coverImage`\n * blob (CDN-served), falling back to the article page's og:image. Undefined\n * for Sifa/ORCID publications, null when none could be resolved.\n */\n image?: string | null;\n /**\n * Other versions or forms of this work: relations declared on the record\n * plus, for a DOI, those registered with DataCite or Crossref (#590). Feed\n * to `groupPublicationVersions` to fold a preprint under its published version.\n */\n relatedIdentifiers?: RelatedIdentifier[];\n}\n\nexport interface ProfileVolunteering {\n rkey: string;\n organization: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) linking the\n * organization to a resolved entity (#159/#241). Absent for free-text entries.\n * Mirrors `ProfilePosition.entityRef`; the AppView sends it for display.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked organization (#252),\n * computed by the AppView at read time. Render this over `organization` for a\n * linked entry. Absent for free-text or unresolved entries (fall back to\n * `organization`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n role?: string;\n cause?: string;\n startDate?: string;\n endDate?: string;\n description?: string;\n hidden?: boolean;\n}\n\nexport interface ProfileHonor {\n rkey: string;\n title: string;\n issuer?: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuer to a\n * resolved entity (#159/#241). Absent for free-text entries. Mirrors\n * `ProfilePosition.entityRef`; the AppView sends it for display.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked issuer (#252),\n * computed by the AppView at read time. Render this over `issuer` for a linked\n * entry. Absent for free-text or unresolved entries (fall back to `issuer`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n date?: string;\n description?: string;\n hidden?: boolean;\n}\n\n/**\n * One proof link on an involvement record, as served by the AppView. Mirrors\n * `id.sifa.defs#artifactLink`, plus the computed rung-2 verification signal.\n */\nexport interface ProfileInvolvementLink {\n url: string;\n kind?: string;\n label?: string;\n /**\n * Rung-2 cross-ref: true when the link host matches one of the owner's\n * *verified* `externalAccount` records (GitHub, GitLab, ORCID, ...).\n * Computed by the AppView; deterministic host match, no new primitive.\n */\n verified?: boolean;\n /**\n * Platform token of the matched verified external account (e.g.\n * `id.sifa.defs#platformGithub`), for the badge label. Absent when\n * `verified` is not true.\n */\n verifiedPlatform?: string;\n}\n\n/**\n * An involvement entry as served by the AppView: an `id.sifa.profile.involvement`\n * record, or a mapped legacy `id.sifa.profile.volunteering` record (`legacy`),\n * grouped in the UI by `kind` via the SDK's involvement-kind taxonomy.\n */\n/** One artifact link on an investment (round announcement, portfolio page, filing). */\nexport interface ProfileInvestmentLink {\n url: string;\n kind?: string;\n label?: string;\n}\n\n/** A capital position: money the person put in. Roles with duties are positions. */\nexport interface ProfileInvestment {\n rkey: string;\n /** For a limited-partner entry this names the fund, not a portfolio company. */\n company: string;\n companyDid?: string;\n entityRef?: string;\n /** Resolved canonical name of the linked company. Render over `company` when present. */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n /** How the capital went in. Angel, syndicate member or LP -- never GP. */\n role?: string;\n /** The company's funding stage at the time of the investment, not its stage today. */\n stage?: string;\n /** active / exited / written off / undisclosed. */\n status?: string;\n /** The vehicle the capital went through. Absent for a cheque in the person's own name. */\n via?: string;\n viaDid?: string;\n viaEntityRef?: string;\n /** Whole major currency units plus an ISO 4217 code. Absent unless the person opted in. */\n amount?: { value: number; currency: string };\n startedAt?: string;\n endedAt?: string;\n description?: string;\n links?: ProfileInvestmentLink[];\n hidden?: boolean;\n}\n\nexport interface ProfileInvolvement {\n rkey: string;\n /** Involvement-kind token; drives the display heading. Legacy rows map to charity. */\n kind: string;\n upstream?: string;\n upstreamDid?: string;\n upstreamUrl?: string;\n role?: string;\n description?: string;\n startedAt?: string;\n endedAt?: string;\n links?: ProfileInvolvementLink[];\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user\n * picks the upstream from the resolver typeahead. Absent for free-text or\n * one-off involvement.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked upstream, computed by\n * the AppView at read time. Render over `upstream` when present. Absent for\n * free-text or unresolved entries.\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n location?: LocationValue | null;\n skills?: SkillRef[];\n /** Skill records resolved from `skills`, for display. */\n linkedSkills?: ProfileSkill[];\n /**\n * True when this row is a mapped legacy `id.sifa.profile.volunteering` record\n * (no `kind`), rendered under \"Volunteering\". Editing it backfills to an\n * `involvement` record and deletes the legacy one.\n */\n legacy?: boolean;\n hidden?: boolean;\n /** User-flagged primary involvement, surfaced in the Highlights block. Ongoing only. */\n primary?: boolean;\n /** Other people named on this involvement, hydrated from the stored DIDs. */\n collaborators?: ProjectMemberCard[];\n /** AT-URI of the same involvement as recorded on another person's profile. */\n sameAs?: string;\n}\n\nexport type LanguageProficiency =\n 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';\n\nexport interface ProfileLanguage {\n rkey: string;\n language: string;\n proficiency?: LanguageProficiency;\n hidden?: boolean;\n}\n\nexport interface ProfileCourse {\n rkey: string;\n name: string;\n institution?: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) linking the institution\n * to a resolved entity (#159/#241). Absent for free-text entries. Mirrors\n * `ProfilePosition.entityRef`; the AppView sends it for display.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked institution (#252),\n * computed by the AppView at read time. Render this over `institution` for a\n * linked entry. Absent for free-text or unresolved entries (fall back to\n * `institution`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n number?: string;\n /** rkey of the associated certification, resolved from the course's\n * `credential` at-uri. Used to join the course to a certification in the\n * same profile payload (for the linked-credential date and link). */\n credentialRkey?: string;\n /** Date the course was completed, as an RFC 3339 datetime. Optional; the\n * editor collects month granularity (YYYY-MM). */\n completedAt?: string;\n /** `id.sifa.defs#courseRole` token. Absent means the user took the course. */\n role?: string;\n /** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */\n startedAt?: string;\n endedAt?: string;\n /** rkey of the position the course was part of (taught under it, or taken\n * as part of the job). The AppView resolves it from the record's `position`\n * at-uri when building the profile view. */\n positionRkey?: string;\n /** rkey of the education record the course was part of, resolved by the\n * AppView from the record's `education` at-uri. */\n educationRkey?: string;\n hidden?: boolean;\n}\n\n/** A related link on a presentation or delivery, as returned by the AppView. */\nexport interface PresentationLinkView {\n uri: string;\n label?: string;\n type?: string;\n}\n\n/**\n * Another person named on someone's record, as rendered by the AppView.\n *\n * `displayName` and `avatar` are present when the person's identity may be\n * shown -- i.e. when {@link actorShowsIdentity} holds (`confirmed` or\n * `claimed`). Otherwise the card is a bare handle with no identity attached and\n * no link to a profile: naming someone is a claim, and until they affirm it (or\n * hold a claimed Sifa account that can be notified of the claim) the claim must\n * not borrow their face.\n */\nexport interface ActorCard {\n did: string;\n handle: string;\n displayName?: string;\n avatar?: string;\n /**\n * True when Sifa has indexed this account at all -- including an unclaimed\n * atproto account seen via the firehose, which still renders at /p/<handle>.\n * Broader than {@link claimed}; not on its own a reason to show identity.\n */\n hasSifaProfile?: boolean;\n /**\n * True when the named person has a claimed Sifa account (has authenticated\n * via OAuth). A claimed account can be notified of a pending claim, so its\n * identity is shown even before confirmation -- see {@link actorShowsIdentity}.\n */\n claimed?: boolean;\n /** True once the named person has published a matching `id.sifa.confirmation`. */\n confirmed?: boolean;\n /**\n * True when the record was materially changed after being confirmed -- a\n * rename, or a changed role. The confirmation stands until withdrawn, but the\n * UI should say the claim has moved since it was affirmed.\n */\n confirmedStale?: boolean;\n}\n\n/** @deprecated Use {@link ActorCard}. Kept so existing co-speaker call sites keep compiling. */\nexport type CoSpeaker = ActorCard;\n\n/**\n * Roles shipped today. The lexicon declares these as `knownValues`, so the\n * field itself stays a plain string: a consumer meeting a role it does not\n * recognise should show it rather than discard it.\n *\n * Display only. A record living in someone else's repository cannot grant\n * write access to anything, and the UI must not imply that it does.\n */\nexport const PROJECT_ROLES = [\n 'id.sifa.defs#projectOwner',\n 'id.sifa.defs#projectCore',\n 'id.sifa.defs#projectContributor',\n] as const;\n\nexport type ProjectRole = (typeof PROJECT_ROLES)[number];\n\n/** A person named as a member of a project, with their role alongside the actor card. */\nexport interface ProjectMemberCard extends ActorCard {\n role?: string;\n title?: string;\n}\n\n/** An occasion on which a presentation was delivered (the AppView view-model). */\nexport interface ProfilePresentationDelivery {\n rkey: string;\n /** rkey of the parent presentation when this delivery references one. */\n presentationRkey?: string | null;\n /** Co-speakers at this occasion, hydrated from the stored DIDs. */\n coSpeakers?: CoSpeaker[];\n /** AT-URI of the same session as recorded on another person's profile. */\n sameAs?: string;\n title?: string | null;\n role?: string | null;\n eventName?: string | null;\n /** YYYY-MM-DD, or YYYY-MM / YYYY when the exact day is unknown. */\n date?: string | null;\n location?: string | null;\n locationCountry?: string | null;\n locationRegion?: string | null;\n locationLocality?: string | null;\n countryCode?: string | null;\n /** Full community.lexicon.calendar.event mode token. */\n mode?: string | null;\n /** Full community.lexicon.calendar.event status token. */\n status?: string | null;\n links?: PresentationLinkView[];\n /** at-uri of the linked calendar event, when present. */\n eventUri?: string | null;\n hidden?: boolean;\n}\n\n/** A reusable presentation with its deliveries grouped underneath (AppView view-model). */\nexport interface ProfilePresentation {\n rkey: string;\n title: string;\n description?: string | null;\n /** Duration in minutes: a fixed value (min only) or a range. */\n duration?: { minMinutes: number; maxMinutes?: number } | null;\n intendedAudiences?: string[];\n links?: PresentationLinkView[];\n /** at-uri of a long-form write-up (Leaflet / site.standard document). */\n writeupUri?: string | null;\n /** Resolved URL of the uploaded cover image, when present. */\n coverImageUrl?: string | null;\n hidden?: boolean;\n /** User-flagged primary talk, surfaced in the Highlights block. Talks only, not sessions. */\n primary?: boolean;\n deliveries?: ProfilePresentationDelivery[];\n}\n\nexport interface TrustStat {\n key: string;\n label: string;\n value: number;\n}\n\nexport interface ActiveApp {\n id: string;\n name: string;\n category: string;\n recentCount: number;\n latestRecordAt?: string | null;\n}\n\nexport interface VerifiedAccount {\n platform: string;\n identifier: string;\n url?: string;\n}\n\nexport interface ExternalAccountKeytraceClaim {\n rkey: string;\n claimedAt: string;\n}\n\nexport interface ExternalAccount {\n rkey: string;\n platform: string;\n url: string;\n label?: string;\n feedUrl?: string;\n primary?: boolean;\n verifiable: boolean;\n verified: boolean;\n verifiedVia?: string | null;\n source?: 'sifa' | 'keytrace' | 'keyoxide' | 'marque';\n hidden?: boolean;\n keytraceVerified?: boolean;\n keytraceClaim?: ExternalAccountKeytraceClaim;\n}\n\nexport interface FeedItem {\n title: string;\n excerpt: string;\n url: string;\n timestamp: string;\n source: string;\n}\n\nexport interface PdsProviderInfo {\n name: string;\n host: string;\n}\n\nexport interface ProfileIndustry {\n industry: string;\n domain?: string;\n}\n\nexport interface ProfileOverrideSource {\n headline?: string;\n about?: string;\n displayName?: string;\n avatarUrl?: string;\n}\n\n/**\n * A structured physical address on the org view. Mirrors\n * `community.lexicon.location.address`; every field is optional.\n */\nexport interface OrgAddressView {\n country: string | null;\n postalCode: string | null;\n region: string | null;\n locality: string | null;\n street: string | null;\n name: string | null;\n}\n\n/** A featured link on the org view. Both `name` and `url` are present. */\nexport interface OrgLinkView {\n name: string;\n url: string;\n}\n\n/**\n * A self-declared industry/domain pair on the org view. Mirrors the person\n * profile's industry/domain shape; `industry` is always present, `domain` is an\n * optional refinement (`null` when absent).\n */\nexport interface OrgIndustryView {\n industry: string;\n domain: string | null;\n}\n\n/**\n * The org-profile fields exposed on the profile resolve when the org rendering\n * floor is met. Narrow on purpose: `contact` is never included (not rendered\n * publicly); record URI/CID are internal. Mirrors sifa-api's `OrgProfileView`.\n */\nexport interface OrgProfileView {\n name: string;\n description: string | null;\n website: string | null;\n /** Blob CID (or resolved URL) of the org logo, when present. */\n logoBlob: string | null;\n entityRefs: string[] | null;\n addresses: OrgAddressView[] | null;\n /** Self-selected headcount range (declared bucket, never calculated). */\n companySize: string | null;\n companyType: string | null;\n links: OrgLinkView[] | null;\n /** Self-declared industry/domain pairs. */\n industries: OrgIndustryView[] | null;\n /** Self-declared founding date (year / YYYY-MM / YYYY-MM-DD). */\n founded: string | null;\n /** Self-declared \"also known as\" names / acronyms. */\n aliases: string[] | null;\n}\n\n/**\n * A company entity recognized purely from the handle's registrable domain\n * (#160 auto-recognize), independent of any org record. Present on the verdict\n * when `recognized` is true. `domain` is the handle's registrable domain and\n * round-trips through `/c/<domain>`; `publicId` is nullable because entities\n * minted before the public_id backfill have none.\n */\nexport interface RecognizedEntity {\n publicId: string | null;\n domain: string;\n name: string;\n}\n\n/**\n * Server-computed org rendering-floor verdict (#160), carried on the profile\n * resolve so clients need no extra round-trip. Read it via the `useOrgProfile`\n * hook.\n *\n * `isOrg` is the CLAIMED floor: true when the account has an\n * `id.sifa.org.profile` record AND its handle is a custom registrable domain\n * (the authoritative, PSL-backed check lives server-side).\n *\n * `recognized` is INDEPENDENT of `isOrg`: true when the handle's registrable\n * domain resolves to a known, non-suppressed, non-natural-person company entity\n * in Sifa's DB, even with no org record yet (auto-recognize known-company\n * domains). A known company that has not yet claimed is\n * `recognized: true, isOrg: false`; a claimed recognized company is both true.\n * Use it to treat a recognized-but-unclaimed company account as a company\n * (company onboarding, `/c/` routing) before it claims.\n */\nexport interface OrgFloorVerdict {\n isOrg: boolean;\n orgProfile?: OrgProfileView;\n recognized: boolean;\n /**\n * Whether the account's handle is a custom registrable apex domain, i.e.\n * eligible to CLAIM an org page (#306). Mirrors the `isBindableHandleDomain`\n * floor the api enforces at write time, surfaced so the `/claim` wizard can\n * gate on eligibility BEFORE the authority consent rather than failing the\n * final PDS write. Independent of `isOrg`/`recognized` -- purely the handle's\n * shape, so a `*.bsky.social` account reads false and a not-yet-claimed\n * custom domain reads true.\n *\n * Optional here (a tolerant reader): the api always emits it, but a profile\n * payload cached before this field shipped may omit it. Gate on the explicit\n * `customDomain === false` for the up-front block; treat absent as unknown and\n * let the api 403 stay the authoritative backstop -- never enforce on this\n * field alone.\n */\n customDomain?: boolean;\n /**\n * Whether the account also keeps a visible personal profile, from\n * `id.sifa.org.profile.personalProfileVisible`. True only for a claimed org\n * (`isOrg`) that opted in -- the sole-trader case, where one DID carries both\n * a person facet at `/p/` and a company facet at `/c/` and neither route\n * redirects to the other. Absent or false is the exclusive default: the\n * account presents solely as an organization and `/p/` redirects to `/c/`.\n */\n personalProfileVisible?: boolean;\n /**\n * Invariant (not encoded in the type, matching the flat wire shape the api\n * sends): present whenever `recognized` is true, absent when false. Callers\n * that read it after narrowing on `recognized === true` should still\n * defensively check, since the type does not enforce the pairing.\n */\n recognizedEntity?: RecognizedEntity;\n}\n\n/**\n * The account owner's answer to \"are you a person, a company, or both?\".\n *\n * `'person'` and `'company'` are Sifa-local overrides stored in\n * `account_render_overrides` (set via `POST /api/account/render-preference`).\n * `'both'` is NOT stored here -- it is the portable\n * `id.sifa.org.profile.personalProfileVisible` declaration in the account's own\n * PDS, so any AppView can evaluate it without asking Sifa. Resolve the combined\n * answer with `resolveAccountFacetMode`.\n */\nexport type AccountFacetMode = 'person' | 'company' | 'both';\n\nexport interface Profile {\n did: string;\n handle: string;\n /**\n * Sifa-local render override, absent when the account has never set one\n * (auto: today's recognition behaviour). `'person'` is the escape hatch for a\n * personal domain that Sifa catalogued as a company.\n */\n renderPreference?: 'person' | 'company' | null;\n /**\n * Org rendering-floor verdict (#160). Present on the profile resolve; absent\n * on payloads that predate the field. When `org.isOrg` is true the account\n * renders as an organization (`/c/`).\n */\n org?: OrgFloorVerdict;\n displayName?: string;\n /**\n * Given (first) name from `id.sifa.profile.self.givenName`. Schema.org\n * `Person.givenName`. Optional; absent for users who haven't filled in\n * structured name fields. Consumers wanting a rendered name should use\n * `formatStructuredName(givenName, familyName) ?? displayName ?? handle`.\n */\n givenName?: string;\n /**\n * Family (last) name from `id.sifa.profile.self.familyName`. Schema.org\n * `Person.familyName`. See `givenName` for fallback guidance.\n */\n familyName?: string;\n /**\n * Free-form phonetic respelling of the user's name from\n * `id.sifa.profile.self.namePronunciation` (e.g. `Foo-kuh`). Optional; a\n * native field with no `app.bsky.actor.profile` equivalent. Text only.\n */\n namePronunciation?: string;\n /**\n * Resolved URL of the name-pronunciation audio clip from\n * `id.sifa.profile.self.namePronunciationAudio`, served from the user's PDS\n * (`com.atproto.sync.getBlob`). Optional; absent when no clip is set.\n */\n namePronunciationAudioUrl?: string;\n avatar?: string;\n pronouns?: string;\n headline?: string;\n about?: string;\n hasHeadlineOverride?: boolean;\n hasAboutOverride?: boolean;\n hasDisplayNameOverride?: boolean;\n hasAvatarUrlOverride?: boolean;\n source?: ProfileOverrideSource;\n industries?: ProfileIndustry[];\n location?: LocationValue | null;\n locations?: ProfileLocation[];\n /**\n * @deprecated Flat location field emitted at the response root during the\n * additive response window for `community.lexicon.location.address`.\n * Prefer the structured `locations[]` array (use the entry where\n * `isPrimary` is true).\n */\n locationCountry?: string | null;\n /**\n * @deprecated See `locationCountry`. Prefer `locations[].locationRegion`.\n */\n locationRegion?: string | null;\n /**\n * @deprecated Legacy alias for `locationLocality`; emitted alongside it\n * during the additive response window. Prefer `locations[].locationLocality`.\n */\n locationCity?: string | null;\n /**\n * @deprecated community.lexicon.location.address field name. Prefer\n * `locations[].locationLocality`.\n */\n locationLocality?: string | null;\n /**\n * @deprecated See `locationCountry`. Prefer `locations[].countryCode`.\n */\n countryCode?: string | null;\n website?: string;\n openTo?: string[];\n preferredWorkplace?: string[];\n availableFromUtc?: number;\n availableToUtc?: number;\n pdsProvider?: PdsProviderInfo | null;\n claimed: boolean;\n /**\n * User-set opt-out flag from `id.sifa.profile.self.discoverable`. When\n * `false`, the rendering app emits `noindex` and excludes the page from\n * sitemaps. Absent means default-true (current behavior for existing\n * records that predate this field).\n */\n discoverable?: boolean;\n isOwnProfile?: boolean;\n createdAt?: string;\n trustStats?: TrustStat[];\n verifiedAccounts?: VerifiedAccount[];\n activeApps?: ActiveApp[];\n blueskyVerified?: boolean;\n blueskyVerifiedAt?: string | null;\n followersCount: number;\n followingCount: number;\n connectionsCount: number;\n atprotoFollowersCount?: number;\n positions: ProfilePosition[];\n education: ProfileEducation[];\n skills: ProfileSkill[];\n certifications?: ProfileCertification[];\n projects?: ProfileProject[];\n publications?: ProfilePublication[];\n /**\n * Co-authors on imported publications that resolve to a Sifa account.\n *\n * Owner-only, and absent rather than empty for every other viewer, so a\n * consumer cannot tell \"no suggestions\" from \"not yours\". Join to a\n * publication contributor by `orcidId`.\n */\n authorSuggestions?: AuthorSuggestion[];\n volunteering?: ProfileVolunteering[];\n involvement?: ProfileInvolvement[];\n investments?: ProfileInvestment[];\n honors?: ProfileHonor[];\n languages?: ProfileLanguage[];\n courses?: ProfileCourse[];\n presentations?: ProfilePresentation[];\n presentationDeliveries?: ProfilePresentationDelivery[];\n externalAccounts?: ExternalAccount[];\n}\n"],"mappings":";AAymBO,IAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["import type { AgentRef } from '../schemas/shared.js';\nimport type { AccountVerification } from '../taxonomy/verification-providers.js';\n\nexport interface LocationValue {\n city?: string;\n /** community.lexicon.location.address field -- preferred over `city`. */\n locality?: string;\n region?: string;\n country: string;\n countryCode?: string;\n postalCode?: string;\n geonameId?: number;\n}\n\nexport interface SkillRef {\n uri: string;\n}\n\nexport interface ProfilePosition {\n rkey: string;\n /**\n * Optional: omitted for self-employed / freelance / independent positions.\n * The lexicon and the record schema already make company optional.\n */\n company?: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user\n * picks an organization from the resolver typeahead. Absent for free-text or\n * independent positions (#159).\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked company (#240),\n * computed by the AppView at read time. Render this over `company` for a\n * linked position, so a name correction reaches every linked profile without\n * a PDS write. Absent for free-text or unresolved positions (fall back to\n * `company`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n /**\n * Company-page slug for a durably-linked position, resolved by the AppView at\n * read time alongside `entityName` (#159). Lets a consumer link the company\n * name to its `/c/{domain}` page without re-resolving `entityRef`. `domain` is\n * the readable form, `publicId` the durable fallback; build the link as\n * `/c/${companyDomain ?? companyPublicId}`. Both absent for free-text /\n * unlinked positions.\n */\n companyDomain?: string;\n companyPublicId?: string;\n title: string;\n description?: string;\n startedAt: string;\n endedAt?: string;\n location?: LocationValue | null;\n employmentType?: string;\n /**\n * Party this role is held on behalf of, when the person represents someone else --\n * most often a fund whose board seat this is. A disclosure rather than a role type,\n * so it is a separate field from `employmentType`. Absent for independent roles.\n */\n onBehalfOf?: string;\n /** DID of the represented party, when known. May be an organization or a person. */\n onBehalfOfDid?: string;\n /** Portable entity identifier for the represented party (Wikidata/ROR/LEI URI). */\n onBehalfOfEntityRef?: string;\n workplaceType?: string;\n skills?: SkillRef[];\n linkedSkills?: ProfileSkill[];\n primary?: boolean;\n hidden?: boolean;\n}\n\nexport interface ProfileEducation {\n rkey: string;\n institution: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user\n * links the institution to a resolved organization (#159/#241). Absent for\n * free-text entries. Mirrors `ProfilePosition.entityRef`; the AppView sends it\n * for display (the \"Linked\" badge).\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked institution (#252),\n * computed by the AppView at read time. Render this over `institution` for a\n * linked entry, so a name correction reaches every linked profile without a\n * PDS write. Absent for free-text or unresolved entries (fall back to\n * `institution`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n degree?: string;\n fieldOfStudy?: string;\n /** European Qualifications Framework level, 1 to 8 (8 = doctoral). */\n eqfLevel?: number;\n description?: string;\n activities?: string;\n startedAt?: string;\n endedAt?: string;\n hidden?: boolean;\n /** User-flagged primary education entry, surfaced in the Highlights block. */\n primary?: boolean;\n}\n\nexport interface ProfileSkill {\n rkey: string;\n name: string;\n /**\n * CID of the skill record, needed as a strongRef when endorsing it. Often\n * absent: only the firehose carries a CID, so a skill added moments ago has\n * none indexed yet. Pass it to `createEndorsement` when present and omit it\n * otherwise -- the AppView resolves it from the owner's PDS.\n */\n cid?: string;\n category?: string;\n /**\n * Freeform user-defined grouping label nested under `category` (e.g.\n * \"Frontend\", \"Backend\"). No known values; renderers decide the display\n * label. See `groupSkillsBySubCategory`.\n */\n subCategory?: string;\n endorsementCount?: number;\n endorsed?: boolean;\n /**\n * Names this skill was endorsed under, where they differ from what it is\n * called now. Absent when nothing has drifted.\n *\n * A rename keeps the same record, so endorsements follow it and stay\n * counted. Showing the original name is what keeps that honest: a reader can\n * see that a skill now called one thing was vouched for as another, instead\n * of the rename quietly laundering the endorsement.\n */\n endorsedAs?: string[];\n activityBacked?: boolean;\n}\n\nexport interface SkillSuggestion {\n canonicalName: string;\n slug: string;\n category: string;\n}\n\nexport interface Endorsement {\n endorserDid: string;\n endorserHandle: string;\n endorserDisplayName?: string;\n endorserAvatar?: string;\n comment?: string;\n relationshipContext?: string;\n createdAt: string;\n}\n\nexport interface EndorsementData {\n skillRkey: string;\n comment?: string;\n relationshipContext?: string;\n}\n\nexport interface ProfileLocation {\n rkey: string;\n type: string;\n label?: string | null;\n isPrimary: boolean;\n locationCountry?: string | null;\n locationRegion?: string | null;\n /** Legacy alias for `locationLocality`; emitted by sifa-api during the additive response window. */\n locationCity?: string | null;\n /** community.lexicon.location.address field name -- prefer over `locationCity`. */\n locationLocality?: string | null;\n countryCode?: string | null;\n location?: string | null;\n}\n\nexport interface ProfileCertification {\n rkey: string;\n name: string;\n /**\n * Issuing organization. The write contract names this field `authority`\n * everywhere (record schema, DB column, PDS record); the AppView read view\n * emits `authority` as the canonical field (#249). Optional during the\n * deprecation window while consumers migrate off the legacy `issuingOrg`\n * alias below.\n */\n authority?: string;\n /**\n * @deprecated Legacy read-view alias for {@link authority} (#249). Carries the\n * same value; will be dropped once web + SDK consumers read `authority`.\n */\n issuingOrg?: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuing\n * organization to a resolved entity (#159/#241). Absent for free-text entries.\n * Mirrors `ProfilePosition.entityRef`; the AppView sends it for display.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked issuing organization\n * (#252), computed by the AppView at read time. Render this over `authority`\n * for a linked entry. Absent for free-text or unresolved entries (fall back to\n * `authority`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n issueDate?: string;\n expiryDate?: string;\n credentialUrl?: string;\n hidden?: boolean;\n}\n\nexport interface ProfileProject {\n rkey: string;\n name: string;\n /** The user's own role on the project (#596), e.g. Maintainer. */\n role?: string;\n description?: string;\n url?: string;\n startDate?: string;\n endDate?: string;\n /** Other people named on this project, hydrated from the stored DIDs. */\n members?: ProjectMemberCard[];\n /**\n * AT-URI of the same project as recorded elsewhere, when this entry\n * duplicates another person's. Set so consumers can tell the two describe one\n * project; both still render from their own owner's record.\n */\n /** AT-URI of the same record on another person's profile, when they keep one. */\n sameAs?: string;\n hidden?: boolean;\n /** User-flagged primary project, surfaced in the Highlights block. Ongoing only. */\n primary?: boolean;\n}\n\nexport interface PublicationContributor {\n name: string;\n orcidId?: string;\n did?: string;\n handle?: string;\n}\n\n/**\n * A co-author an importer produced that the profile owner can offer to link to\n * a Sifa account.\n *\n * Matched on verified ORCID iD only, never on name: \"A. Example\", \"Alice\n * Example\", and \"Example, A.\" are one person, and \"J. Smith\" is four hundred.\n *\n * A suggestion, never a claim. Nothing reaches any repository until the owner\n * acts, which is what makes ORCID re-syncing safe: matching writes nothing, so\n * a re-sync cannot generate a confirmation request.\n */\nexport interface AuthorSuggestion {\n /** ORCID iD the match was made on. The join key back to a contributor. */\n orcidId: string;\n did: string;\n handle: string;\n /** Display name on the matched account, for showing what is being proposed. */\n displayName?: string;\n}\n\n/**\n * A typed link from a work to another version or form of it\n * (`id.sifa.defs#relatedIdentifier`). `relationType` uses the DataCite\n * vocabulary, e.g. `IsPreprintOf` on a preprint pointing at its published\n * version. `identifierType` is `DOI` (the default when absent), `AT-URI` or `URL`.\n */\nexport interface RelatedIdentifier {\n identifier: string;\n identifierType?: string;\n relationType: string;\n}\n\nexport interface ProfilePublication {\n rkey: string;\n title: string;\n subtitle?: string;\n publisher?: string;\n date?: string;\n url?: string;\n description?: string;\n source?: 'sifa' | 'standard' | 'orcid';\n doi?: string;\n type?: string;\n typeLabel?: string;\n contributors?: PublicationContributor[];\n verified?: boolean;\n verifiedVia?: string;\n orcidPutCode?: number;\n hidden?: boolean;\n /** User-flagged primary publication, surfaced in the Highlights block. */\n primary?: boolean;\n orcidCorroborated?: boolean;\n pendingVerification?: boolean;\n appId?: string;\n /**\n * AT-URI of the parent `site.standard.publication` for Standard.site\n * articles — the subscribable unit. Used to group articles by publication\n * on the profile. Undefined for Sifa/ORCID publications.\n */\n publicationUri?: string | null;\n /** Canonical publication origin — the subscribe / link-out target. */\n publicationUrl?: string | null;\n /** Publication display name for the group header (falls back to host). */\n publicationName?: string | null;\n /**\n * Cover image URL for Standard.site articles — the document's `coverImage`\n * blob (CDN-served), falling back to the article page's og:image. Undefined\n * for Sifa/ORCID publications, null when none could be resolved.\n */\n image?: string | null;\n /**\n * Other versions or forms of this work: relations declared on the record\n * plus, for a DOI, those registered with DataCite or Crossref (#590). Feed\n * to `groupPublicationVersions` to fold a preprint under its published version.\n */\n relatedIdentifiers?: RelatedIdentifier[];\n}\n\nexport interface ProfileVolunteering {\n rkey: string;\n organization: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) linking the\n * organization to a resolved entity (#159/#241). Absent for free-text entries.\n * Mirrors `ProfilePosition.entityRef`; the AppView sends it for display.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked organization (#252),\n * computed by the AppView at read time. Render this over `organization` for a\n * linked entry. Absent for free-text or unresolved entries (fall back to\n * `organization`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n role?: string;\n cause?: string;\n startDate?: string;\n endDate?: string;\n description?: string;\n hidden?: boolean;\n}\n\nexport interface ProfileHonor {\n rkey: string;\n title: string;\n issuer?: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuer to a\n * resolved entity (#159/#241). Absent for free-text entries. Mirrors\n * `ProfilePosition.entityRef`; the AppView sends it for display.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked issuer (#252),\n * computed by the AppView at read time. Render this over `issuer` for a linked\n * entry. Absent for free-text or unresolved entries (fall back to `issuer`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n date?: string;\n description?: string;\n hidden?: boolean;\n}\n\n/**\n * One proof link on an involvement record, as served by the AppView. Mirrors\n * `id.sifa.defs#artifactLink`, plus the computed rung-2 verification signal.\n */\nexport interface ProfileInvolvementLink {\n url: string;\n kind?: string;\n label?: string;\n /**\n * Rung-2 cross-ref: true when the link host matches one of the owner's\n * *verified* `externalAccount` records (GitHub, GitLab, ORCID, ...).\n * Computed by the AppView; deterministic host match, no new primitive.\n */\n verified?: boolean;\n /**\n * Platform token of the matched verified external account (e.g.\n * `id.sifa.defs#platformGithub`), for the badge label. Absent when\n * `verified` is not true.\n */\n verifiedPlatform?: string;\n}\n\n/**\n * An involvement entry as served by the AppView: an `id.sifa.profile.involvement`\n * record, or a mapped legacy `id.sifa.profile.volunteering` record (`legacy`),\n * grouped in the UI by `kind` via the SDK's involvement-kind taxonomy.\n */\n/** One artifact link on an investment (round announcement, portfolio page, filing). */\nexport interface ProfileInvestmentLink {\n url: string;\n kind?: string;\n label?: string;\n}\n\n/** A capital position: money the person put in. Roles with duties are positions. */\nexport interface ProfileInvestment {\n rkey: string;\n /** For a limited-partner entry this names the fund, not a portfolio company. */\n company: string;\n companyDid?: string;\n entityRef?: string;\n /** Resolved canonical name of the linked company. Render over `company` when present. */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n /** How the capital went in. Angel, syndicate member or LP -- never GP. */\n role?: string;\n /** The company's funding stage at the time of the investment, not its stage today. */\n stage?: string;\n /** active / exited / written off / undisclosed. */\n status?: string;\n /** The vehicle the capital went through. Absent for a cheque in the person's own name. */\n via?: string;\n viaDid?: string;\n viaEntityRef?: string;\n /** Whole major currency units plus an ISO 4217 code. Absent unless the person opted in. */\n amount?: { value: number; currency: string };\n startedAt?: string;\n endedAt?: string;\n description?: string;\n links?: ProfileInvestmentLink[];\n hidden?: boolean;\n}\n\nexport interface ProfileInvolvement {\n rkey: string;\n /** Involvement-kind token; drives the display heading. Legacy rows map to charity. */\n kind: string;\n upstream?: string;\n upstreamDid?: string;\n upstreamUrl?: string;\n role?: string;\n description?: string;\n startedAt?: string;\n endedAt?: string;\n links?: ProfileInvolvementLink[];\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user\n * picks the upstream from the resolver typeahead. Absent for free-text or\n * one-off involvement.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked upstream, computed by\n * the AppView at read time. Render over `upstream` when present. Absent for\n * free-text or unresolved entries.\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n location?: LocationValue | null;\n skills?: SkillRef[];\n /** Skill records resolved from `skills`, for display. */\n linkedSkills?: ProfileSkill[];\n /**\n * True when this row is a mapped legacy `id.sifa.profile.volunteering` record\n * (no `kind`), rendered under \"Volunteering\". Editing it backfills to an\n * `involvement` record and deletes the legacy one.\n */\n legacy?: boolean;\n hidden?: boolean;\n /** User-flagged primary involvement, surfaced in the Highlights block. Ongoing only. */\n primary?: boolean;\n /** Other people named on this involvement, hydrated from the stored DIDs. */\n collaborators?: ProjectMemberCard[];\n /** AT-URI of the same involvement as recorded on another person's profile. */\n sameAs?: string;\n}\n\nexport type LanguageProficiency =\n 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';\n\nexport interface ProfileLanguage {\n rkey: string;\n language: string;\n proficiency?: LanguageProficiency;\n hidden?: boolean;\n}\n\nexport interface ProfileCourse {\n rkey: string;\n name: string;\n institution?: string;\n /**\n * Portable org entity identifier (Wikidata/ROR/LEI URI) linking the institution\n * to a resolved entity (#159/#241). Absent for free-text entries. Mirrors\n * `ProfilePosition.entityRef`; the AppView sends it for display.\n */\n entityRef?: string;\n /**\n * Resolved current canonical name of the durably-linked institution (#252),\n * computed by the AppView at read time. Render this over `institution` for a\n * linked entry. Absent for free-text or unresolved entries (fall back to\n * `institution`).\n */\n entityName?: string;\n /**\n * Canonical org reference (#511): a nested mirror of the flat\n * name / did / entityRef fields. Prefer it when present; the nested\n * shape wins over the flat fields (resolveAgentRef precedence).\n */\n agentRef?: AgentRef;\n number?: string;\n /** rkey of the associated certification, resolved from the course's\n * `credential` at-uri. Used to join the course to a certification in the\n * same profile payload (for the linked-credential date and link). */\n credentialRkey?: string;\n /** Date the course was completed, as an RFC 3339 datetime. Optional; the\n * editor collects month granularity (YYYY-MM). */\n completedAt?: string;\n /** `id.sifa.defs#courseRole` token. Absent means the user took the course. */\n role?: string;\n /** Teaching period of a taught or assisted course (YYYY, YYYY-MM or YYYY-MM-DD). */\n startedAt?: string;\n endedAt?: string;\n /** rkey of the position the course was part of (taught under it, or taken\n * as part of the job). The AppView resolves it from the record's `position`\n * at-uri when building the profile view. */\n positionRkey?: string;\n /** rkey of the education record the course was part of, resolved by the\n * AppView from the record's `education` at-uri. */\n educationRkey?: string;\n hidden?: boolean;\n}\n\n/** A related link on a presentation or delivery, as returned by the AppView. */\nexport interface PresentationLinkView {\n uri: string;\n label?: string;\n type?: string;\n}\n\n/**\n * Another person named on someone's record, as rendered by the AppView.\n *\n * `displayName` and `avatar` are present when the person's identity may be\n * shown -- i.e. when {@link actorShowsIdentity} holds (`confirmed` or\n * `claimed`). Otherwise the card is a bare handle with no identity attached and\n * no link to a profile: naming someone is a claim, and until they affirm it (or\n * hold a claimed Sifa account that can be notified of the claim) the claim must\n * not borrow their face.\n */\nexport interface ActorCard {\n did: string;\n handle: string;\n displayName?: string;\n avatar?: string;\n /**\n * True when Sifa has indexed this account at all -- including an unclaimed\n * atproto account seen via the firehose, which still renders at /p/<handle>.\n * Broader than {@link claimed}; not on its own a reason to show identity.\n */\n hasSifaProfile?: boolean;\n /**\n * True when the named person has a claimed Sifa account (has authenticated\n * via OAuth). A claimed account can be notified of a pending claim, so its\n * identity is shown even before confirmation -- see {@link actorShowsIdentity}.\n */\n claimed?: boolean;\n /** True once the named person has published a matching `id.sifa.confirmation`. */\n confirmed?: boolean;\n /**\n * True when the record was materially changed after being confirmed -- a\n * rename, or a changed role. The confirmation stands until withdrawn, but the\n * UI should say the claim has moved since it was affirmed.\n */\n confirmedStale?: boolean;\n}\n\n/** @deprecated Use {@link ActorCard}. Kept so existing co-speaker call sites keep compiling. */\nexport type CoSpeaker = ActorCard;\n\n/**\n * Roles shipped today. The lexicon declares these as `knownValues`, so the\n * field itself stays a plain string: a consumer meeting a role it does not\n * recognise should show it rather than discard it.\n *\n * Display only. A record living in someone else's repository cannot grant\n * write access to anything, and the UI must not imply that it does.\n */\nexport const PROJECT_ROLES = [\n 'id.sifa.defs#projectOwner',\n 'id.sifa.defs#projectCore',\n 'id.sifa.defs#projectContributor',\n] as const;\n\nexport type ProjectRole = (typeof PROJECT_ROLES)[number];\n\n/** A person named as a member of a project, with their role alongside the actor card. */\nexport interface ProjectMemberCard extends ActorCard {\n role?: string;\n title?: string;\n}\n\n/** An occasion on which a presentation was delivered (the AppView view-model). */\nexport interface ProfilePresentationDelivery {\n rkey: string;\n /** rkey of the parent presentation when this delivery references one. */\n presentationRkey?: string | null;\n /** Co-speakers at this occasion, hydrated from the stored DIDs. */\n coSpeakers?: CoSpeaker[];\n /** AT-URI of the same session as recorded on another person's profile. */\n sameAs?: string;\n title?: string | null;\n role?: string | null;\n eventName?: string | null;\n /** YYYY-MM-DD, or YYYY-MM / YYYY when the exact day is unknown. */\n date?: string | null;\n location?: string | null;\n locationCountry?: string | null;\n locationRegion?: string | null;\n locationLocality?: string | null;\n countryCode?: string | null;\n /** Full community.lexicon.calendar.event mode token. */\n mode?: string | null;\n /** Full community.lexicon.calendar.event status token. */\n status?: string | null;\n links?: PresentationLinkView[];\n /** at-uri of the linked calendar event, when present. */\n eventUri?: string | null;\n hidden?: boolean;\n}\n\n/** A reusable presentation with its deliveries grouped underneath (AppView view-model). */\nexport interface ProfilePresentation {\n rkey: string;\n title: string;\n description?: string | null;\n /** Duration in minutes: a fixed value (min only) or a range. */\n duration?: { minMinutes: number; maxMinutes?: number } | null;\n intendedAudiences?: string[];\n links?: PresentationLinkView[];\n /** at-uri of a long-form write-up (Leaflet / site.standard document). */\n writeupUri?: string | null;\n /** Resolved URL of the uploaded cover image, when present. */\n coverImageUrl?: string | null;\n hidden?: boolean;\n /** User-flagged primary talk, surfaced in the Highlights block. Talks only, not sessions. */\n primary?: boolean;\n deliveries?: ProfilePresentationDelivery[];\n}\n\nexport interface TrustStat {\n key: string;\n label: string;\n value: number;\n}\n\nexport interface ActiveApp {\n id: string;\n name: string;\n category: string;\n recentCount: number;\n latestRecordAt?: string | null;\n}\n\nexport interface VerifiedAccount {\n platform: string;\n identifier: string;\n url?: string;\n}\n\nexport interface ExternalAccountKeytraceClaim {\n rkey: string;\n claimedAt: string;\n}\n\nexport interface ExternalAccount {\n rkey: string;\n platform: string;\n url: string;\n label?: string;\n feedUrl?: string;\n primary?: boolean;\n verifiable: boolean;\n verified: boolean;\n verifiedVia?: string | null;\n source?: 'sifa' | 'keytrace' | 'keyoxide' | 'marque';\n hidden?: boolean;\n keytraceVerified?: boolean;\n keytraceClaim?: ExternalAccountKeytraceClaim;\n}\n\nexport interface FeedItem {\n title: string;\n excerpt: string;\n url: string;\n timestamp: string;\n source: string;\n}\n\nexport interface PdsProviderInfo {\n name: string;\n host: string;\n}\n\nexport interface ProfileIndustry {\n industry: string;\n domain?: string;\n}\n\nexport interface ProfileOverrideSource {\n headline?: string;\n about?: string;\n displayName?: string;\n avatarUrl?: string;\n}\n\n/**\n * A structured physical address on the org view. Mirrors\n * `community.lexicon.location.address`; every field is optional.\n */\nexport interface OrgAddressView {\n country: string | null;\n postalCode: string | null;\n region: string | null;\n locality: string | null;\n street: string | null;\n name: string | null;\n}\n\n/** A featured link on the org view. Both `name` and `url` are present. */\nexport interface OrgLinkView {\n name: string;\n url: string;\n}\n\n/**\n * A self-declared industry/domain pair on the org view. Mirrors the person\n * profile's industry/domain shape; `industry` is always present, `domain` is an\n * optional refinement (`null` when absent).\n */\nexport interface OrgIndustryView {\n industry: string;\n domain: string | null;\n}\n\n/**\n * The org-profile fields exposed on the profile resolve when the org rendering\n * floor is met. Narrow on purpose: `contact` is never included (not rendered\n * publicly); record URI/CID are internal. Mirrors sifa-api's `OrgProfileView`.\n */\nexport interface OrgProfileView {\n name: string;\n description: string | null;\n website: string | null;\n /** Blob CID (or resolved URL) of the org logo, when present. */\n logoBlob: string | null;\n entityRefs: string[] | null;\n addresses: OrgAddressView[] | null;\n /** Self-selected headcount range (declared bucket, never calculated). */\n companySize: string | null;\n companyType: string | null;\n links: OrgLinkView[] | null;\n /** Self-declared industry/domain pairs. */\n industries: OrgIndustryView[] | null;\n /** Self-declared founding date (year / YYYY-MM / YYYY-MM-DD). */\n founded: string | null;\n /** Self-declared \"also known as\" names / acronyms. */\n aliases: string[] | null;\n}\n\n/**\n * A company entity recognized purely from the handle's registrable domain\n * (#160 auto-recognize), independent of any org record. Present on the verdict\n * when `recognized` is true. `domain` is the handle's registrable domain and\n * round-trips through `/c/<domain>`; `publicId` is nullable because entities\n * minted before the public_id backfill have none.\n */\nexport interface RecognizedEntity {\n publicId: string | null;\n domain: string;\n name: string;\n}\n\n/**\n * Server-computed org rendering-floor verdict (#160), carried on the profile\n * resolve so clients need no extra round-trip. Read it via the `useOrgProfile`\n * hook.\n *\n * `isOrg` is the CLAIMED floor: true when the account has an\n * `id.sifa.org.profile` record AND its handle is a custom registrable domain\n * (the authoritative, PSL-backed check lives server-side).\n *\n * `recognized` is INDEPENDENT of `isOrg`: true when the handle's registrable\n * domain resolves to a known, non-suppressed, non-natural-person company entity\n * in Sifa's DB, even with no org record yet (auto-recognize known-company\n * domains). A known company that has not yet claimed is\n * `recognized: true, isOrg: false`; a claimed recognized company is both true.\n * Use it to treat a recognized-but-unclaimed company account as a company\n * (company onboarding, `/c/` routing) before it claims.\n */\nexport interface OrgFloorVerdict {\n isOrg: boolean;\n orgProfile?: OrgProfileView;\n recognized: boolean;\n /**\n * Whether the account's handle is a custom registrable apex domain, i.e.\n * eligible to CLAIM an org page (#306). Mirrors the `isBindableHandleDomain`\n * floor the api enforces at write time, surfaced so the `/claim` wizard can\n * gate on eligibility BEFORE the authority consent rather than failing the\n * final PDS write. Independent of `isOrg`/`recognized` -- purely the handle's\n * shape, so a `*.bsky.social` account reads false and a not-yet-claimed\n * custom domain reads true.\n *\n * Optional here (a tolerant reader): the api always emits it, but a profile\n * payload cached before this field shipped may omit it. Gate on the explicit\n * `customDomain === false` for the up-front block; treat absent as unknown and\n * let the api 403 stay the authoritative backstop -- never enforce on this\n * field alone.\n */\n customDomain?: boolean;\n /**\n * Whether the account also keeps a visible personal profile, from\n * `id.sifa.org.profile.personalProfileVisible`. True only for a claimed org\n * (`isOrg`) that opted in -- the sole-trader case, where one DID carries both\n * a person facet at `/p/` and a company facet at `/c/` and neither route\n * redirects to the other. Absent or false is the exclusive default: the\n * account presents solely as an organization and `/p/` redirects to `/c/`.\n */\n personalProfileVisible?: boolean;\n /**\n * Invariant (not encoded in the type, matching the flat wire shape the api\n * sends): present whenever `recognized` is true, absent when false. Callers\n * that read it after narrowing on `recognized === true` should still\n * defensively check, since the type does not enforce the pairing.\n */\n recognizedEntity?: RecognizedEntity;\n}\n\n/**\n * The account owner's answer to \"are you a person, a company, or both?\".\n *\n * `'person'` and `'company'` are Sifa-local overrides stored in\n * `account_render_overrides` (set via `POST /api/account/render-preference`).\n * `'both'` is NOT stored here -- it is the portable\n * `id.sifa.org.profile.personalProfileVisible` declaration in the account's own\n * PDS, so any AppView can evaluate it without asking Sifa. Resolve the combined\n * answer with `resolveAccountFacetMode`.\n */\nexport type AccountFacetMode = 'person' | 'company' | 'both';\n\nexport interface Profile {\n did: string;\n handle: string;\n /**\n * Sifa-local render override, absent when the account has never set one\n * (auto: today's recognition behaviour). `'person'` is the escape hatch for a\n * personal domain that Sifa catalogued as a company.\n */\n renderPreference?: 'person' | 'company' | null;\n /**\n * Org rendering-floor verdict (#160). Present on the profile resolve; absent\n * on payloads that predate the field. When `org.isOrg` is true the account\n * renders as an organization (`/c/`).\n */\n org?: OrgFloorVerdict;\n displayName?: string;\n /**\n * Given (first) name from `id.sifa.profile.self.givenName`. Schema.org\n * `Person.givenName`. Optional; absent for users who haven't filled in\n * structured name fields. Consumers wanting a rendered name should use\n * `formatStructuredName(givenName, familyName) ?? displayName ?? handle`.\n */\n givenName?: string;\n /**\n * Family (last) name from `id.sifa.profile.self.familyName`. Schema.org\n * `Person.familyName`. See `givenName` for fallback guidance.\n */\n familyName?: string;\n /**\n * Free-form phonetic respelling of the user's name from\n * `id.sifa.profile.self.namePronunciation` (e.g. `Foo-kuh`). Optional; a\n * native field with no `app.bsky.actor.profile` equivalent. Text only.\n */\n namePronunciation?: string;\n /**\n * Resolved URL of the name-pronunciation audio clip from\n * `id.sifa.profile.self.namePronunciationAudio`, served from the user's PDS\n * (`com.atproto.sync.getBlob`). Optional; absent when no clip is set.\n */\n namePronunciationAudioUrl?: string;\n avatar?: string;\n pronouns?: string;\n headline?: string;\n about?: string;\n hasHeadlineOverride?: boolean;\n hasAboutOverride?: boolean;\n hasDisplayNameOverride?: boolean;\n hasAvatarUrlOverride?: boolean;\n source?: ProfileOverrideSource;\n industries?: ProfileIndustry[];\n location?: LocationValue | null;\n locations?: ProfileLocation[];\n /**\n * @deprecated Flat location field emitted at the response root during the\n * additive response window for `community.lexicon.location.address`.\n * Prefer the structured `locations[]` array (use the entry where\n * `isPrimary` is true).\n */\n locationCountry?: string | null;\n /**\n * @deprecated See `locationCountry`. Prefer `locations[].locationRegion`.\n */\n locationRegion?: string | null;\n /**\n * @deprecated Legacy alias for `locationLocality`; emitted alongside it\n * during the additive response window. Prefer `locations[].locationLocality`.\n */\n locationCity?: string | null;\n /**\n * @deprecated community.lexicon.location.address field name. Prefer\n * `locations[].locationLocality`.\n */\n locationLocality?: string | null;\n /**\n * @deprecated See `locationCountry`. Prefer `locations[].countryCode`.\n */\n countryCode?: string | null;\n website?: string;\n openTo?: string[];\n preferredWorkplace?: string[];\n availableFromUtc?: number;\n availableToUtc?: number;\n pdsProvider?: PdsProviderInfo | null;\n claimed: boolean;\n /**\n * User-set opt-out flag from `id.sifa.profile.self.discoverable`. When\n * `false`, the rendering app emits `noindex` and excludes the page from\n * sitemaps. Absent means default-true (current behavior for existing\n * records that predate this field).\n */\n discoverable?: boolean;\n isOwnProfile?: boolean;\n createdAt?: string;\n trustStats?: TrustStat[];\n verifiedAccounts?: VerifiedAccount[];\n activeApps?: ActiveApp[];\n blueskyVerified?: boolean;\n blueskyVerifiedAt?: string | null;\n /**\n * Every verification the account holds, across all recognized providers\n * (Bluesky and firehose-sourced ones like mu). Supersedes the Bluesky-only\n * `blueskyVerified` pair for badge rendering. Absent on older API responses.\n */\n verificationBadges?: AccountVerification[];\n followersCount: number;\n followingCount: number;\n connectionsCount: number;\n atprotoFollowersCount?: number;\n positions: ProfilePosition[];\n education: ProfileEducation[];\n skills: ProfileSkill[];\n certifications?: ProfileCertification[];\n projects?: ProfileProject[];\n publications?: ProfilePublication[];\n /**\n * Co-authors on imported publications that resolve to a Sifa account.\n *\n * Owner-only, and absent rather than empty for every other viewer, so a\n * consumer cannot tell \"no suggestions\" from \"not yours\". Join to a\n * publication contributor by `orcidId`.\n */\n authorSuggestions?: AuthorSuggestion[];\n volunteering?: ProfileVolunteering[];\n involvement?: ProfileInvolvement[];\n investments?: ProfileInvestment[];\n honors?: ProfileHonor[];\n languages?: ProfileLanguage[];\n courses?: ProfileCourse[];\n presentations?: ProfilePresentation[];\n presentationDeliveries?: ProfilePresentationDelivery[];\n externalAccounts?: ExternalAccount[];\n}\n"],"mappings":";AA0mBO,IAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
@@ -1,4 +1,5 @@
1
- import { w as PresentationLinkView, b as PdsProviderInfo, T as SkillSuggestion } from './index-D9GC0u__.js';
1
+ import { w as PresentationLinkView, b as PdsProviderInfo, T as SkillSuggestion } from './index-BeQbepFn.cjs';
2
+ import { a as AccountVerification } from './verification-providers-7il3kPQS.cjs';
2
3
 
3
4
  /**
4
5
  * Types for the `id.sifa.getProfileView` XRPC query: the aggregated public
@@ -511,11 +512,35 @@ interface ProfileSearchResult {
511
512
  claimed?: boolean;
512
513
  blueskyVerified?: boolean;
513
514
  blueskyVerifiedAt?: string | null;
515
+ /**
516
+ * Every verification the account holds, across all recognized providers
517
+ * (Bluesky and firehose-sourced ones like mu). Supersedes the Bluesky-only
518
+ * `blueskyVerified` pair for badge rendering. Absent on older API responses.
519
+ */
520
+ verificationBadges?: AccountVerification[];
521
+ /**
522
+ * The profile's Open To selections as lex values (e.g.
523
+ * `id.sifa.defs#mentoringOthers`), the same values the profile view
524
+ * exposes. Empty when none are set; absent on older API responses.
525
+ */
526
+ openTo?: string[];
527
+ }
528
+ /** "Did you mean" entry returned alongside a zero-result text search. */
529
+ interface ProfileSearchSuggestion {
530
+ did: string;
531
+ handle: string;
532
+ displayName: string | null;
533
+ avatar: string | null;
514
534
  }
515
535
  interface SearchFilters {
516
536
  q?: string;
517
- skill?: string;
518
- country?: string;
537
+ /**
538
+ * Skill filter. An array is sent as repeated `skill` params; the API
539
+ * OR-combines values within the facet and ANDs across facets (max 10).
540
+ */
541
+ skill?: string | string[];
542
+ /** ISO 3166-1 alpha-2 country filter. An array is sent as repeated params. */
543
+ country?: string | string[];
519
544
  industry?: string;
520
545
  domain?: string;
521
546
  workplace?: string;
@@ -534,6 +559,11 @@ interface SearchResponse {
534
559
  total: number;
535
560
  limit: number;
536
561
  offset: number;
562
+ /**
563
+ * Close name/handle matches, filled only when a text search finds nothing.
564
+ * Absent on older API responses.
565
+ */
566
+ suggestions?: ProfileSearchSuggestion[];
537
567
  }
538
568
  /** Skill typeahead suggestion. */
539
569
  interface SkillSearchResult {
@@ -829,4 +859,4 @@ interface RepoDeleteResult {
829
859
  };
830
860
  }
831
861
 
832
- export { apiWriteCreate as $, ADULT_CONTENT_LABELS as A, type SkillView as B, type CertificationView as C, type DurationView as D, type EducationView as E, describeSifaRecord as F, hasAdultContent as G, type HonorView as H, type IndustryDomain as I, repoGroupForCollection as J, type SifaApiConfig as K, type LanguageView as L, type ApiFetchOptions as M, type CreateResult as N, ApiError as O, type PositionView as P, type FilterOptions as Q, type RepoCollectionGroup as R, type SearchFilters as S, type ProfileSearchResult as T, type SearchResponse as U, type VolunteeringView as V, type WriteResult as W, type SkillSearchResult as X, apiFetch as Y, apiFetchOrNull as Z, apiWrite as _, type ActiveAppView as a, fetchSearchFilters as a0, fetchSearchProfiles as a1, fetchSkillSuggestions as a2, searchSkills as a3, type CompanySearchFilters as a4, type CompanySearchResponse as a5, type CompanySearchResult as a6, fetchSearchCompanies as a7, type ActivityLabel as b, type AdultContentLabel as c, type AtfundLinkView as d, type CoSpeakerView as e, type ContributorView as f, type CourseView as g, type ExternalAccountView as h, type InvolvementLinkView as i, type InvolvementView as j, type PresentationDeliveryView as k, type PresentationView as l, type ProfileLocationView as m, type ProfileView as n, type ProjectMemberView as o, type ProjectView as p, type PublicationView as q, type RepoDeleteOutcome as r, type RepoDeleteRecordResult as s, type RepoDeleteResult as t, type RepoGroupDefinition as u, type RepoGroupId as v, type RepoInventory as w, type RepoRecordLabel as x, type RepoRecordSummary as y, SIFA_REPO_GROUPS as z };
862
+ export { apiWrite as $, ADULT_CONTENT_LABELS as A, type SkillView as B, type CertificationView as C, type DurationView as D, type EducationView as E, describeSifaRecord as F, hasAdultContent as G, type HonorView as H, type IndustryDomain as I, repoGroupForCollection as J, type SifaApiConfig as K, type LanguageView as L, type ApiFetchOptions as M, type CreateResult as N, ApiError as O, type PositionView as P, type FilterOptions as Q, type RepoCollectionGroup as R, type SearchFilters as S, type ProfileSearchResult as T, type ProfileSearchSuggestion as U, type VolunteeringView as V, type WriteResult as W, type SearchResponse as X, type SkillSearchResult as Y, apiFetch as Z, apiFetchOrNull as _, type ActiveAppView as a, apiWriteCreate as a0, fetchSearchFilters as a1, fetchSearchProfiles as a2, fetchSkillSuggestions as a3, searchSkills as a4, type CompanySearchFilters as a5, type CompanySearchResponse as a6, type CompanySearchResult as a7, fetchSearchCompanies as a8, type ActivityLabel as b, type AdultContentLabel as c, type AtfundLinkView as d, type CoSpeakerView as e, type ContributorView as f, type CourseView as g, type ExternalAccountView as h, type InvolvementLinkView as i, type InvolvementView as j, type PresentationDeliveryView as k, type PresentationView as l, type ProfileLocationView as m, type ProfileView as n, type ProjectMemberView as o, type ProjectView as p, type PublicationView as q, type RepoDeleteOutcome as r, type RepoDeleteRecordResult as s, type RepoDeleteResult as t, type RepoGroupDefinition as u, type RepoGroupId as v, type RepoInventory as w, type RepoRecordLabel as x, type RepoRecordSummary as y, SIFA_REPO_GROUPS as z };
@@ -1,4 +1,5 @@
1
- import { w as PresentationLinkView, b as PdsProviderInfo, T as SkillSuggestion } from './index-DmlIG8sJ.cjs';
1
+ import { w as PresentationLinkView, b as PdsProviderInfo, T as SkillSuggestion } from './index-CT-A3BEe.js';
2
+ import { a as AccountVerification } from './verification-providers-7il3kPQS.js';
2
3
 
3
4
  /**
4
5
  * Types for the `id.sifa.getProfileView` XRPC query: the aggregated public
@@ -511,11 +512,35 @@ interface ProfileSearchResult {
511
512
  claimed?: boolean;
512
513
  blueskyVerified?: boolean;
513
514
  blueskyVerifiedAt?: string | null;
515
+ /**
516
+ * Every verification the account holds, across all recognized providers
517
+ * (Bluesky and firehose-sourced ones like mu). Supersedes the Bluesky-only
518
+ * `blueskyVerified` pair for badge rendering. Absent on older API responses.
519
+ */
520
+ verificationBadges?: AccountVerification[];
521
+ /**
522
+ * The profile's Open To selections as lex values (e.g.
523
+ * `id.sifa.defs#mentoringOthers`), the same values the profile view
524
+ * exposes. Empty when none are set; absent on older API responses.
525
+ */
526
+ openTo?: string[];
527
+ }
528
+ /** "Did you mean" entry returned alongside a zero-result text search. */
529
+ interface ProfileSearchSuggestion {
530
+ did: string;
531
+ handle: string;
532
+ displayName: string | null;
533
+ avatar: string | null;
514
534
  }
515
535
  interface SearchFilters {
516
536
  q?: string;
517
- skill?: string;
518
- country?: string;
537
+ /**
538
+ * Skill filter. An array is sent as repeated `skill` params; the API
539
+ * OR-combines values within the facet and ANDs across facets (max 10).
540
+ */
541
+ skill?: string | string[];
542
+ /** ISO 3166-1 alpha-2 country filter. An array is sent as repeated params. */
543
+ country?: string | string[];
519
544
  industry?: string;
520
545
  domain?: string;
521
546
  workplace?: string;
@@ -534,6 +559,11 @@ interface SearchResponse {
534
559
  total: number;
535
560
  limit: number;
536
561
  offset: number;
562
+ /**
563
+ * Close name/handle matches, filled only when a text search finds nothing.
564
+ * Absent on older API responses.
565
+ */
566
+ suggestions?: ProfileSearchSuggestion[];
537
567
  }
538
568
  /** Skill typeahead suggestion. */
539
569
  interface SkillSearchResult {
@@ -829,4 +859,4 @@ interface RepoDeleteResult {
829
859
  };
830
860
  }
831
861
 
832
- export { apiWriteCreate as $, ADULT_CONTENT_LABELS as A, type SkillView as B, type CertificationView as C, type DurationView as D, type EducationView as E, describeSifaRecord as F, hasAdultContent as G, type HonorView as H, type IndustryDomain as I, repoGroupForCollection as J, type SifaApiConfig as K, type LanguageView as L, type ApiFetchOptions as M, type CreateResult as N, ApiError as O, type PositionView as P, type FilterOptions as Q, type RepoCollectionGroup as R, type SearchFilters as S, type ProfileSearchResult as T, type SearchResponse as U, type VolunteeringView as V, type WriteResult as W, type SkillSearchResult as X, apiFetch as Y, apiFetchOrNull as Z, apiWrite as _, type ActiveAppView as a, fetchSearchFilters as a0, fetchSearchProfiles as a1, fetchSkillSuggestions as a2, searchSkills as a3, type CompanySearchFilters as a4, type CompanySearchResponse as a5, type CompanySearchResult as a6, fetchSearchCompanies as a7, type ActivityLabel as b, type AdultContentLabel as c, type AtfundLinkView as d, type CoSpeakerView as e, type ContributorView as f, type CourseView as g, type ExternalAccountView as h, type InvolvementLinkView as i, type InvolvementView as j, type PresentationDeliveryView as k, type PresentationView as l, type ProfileLocationView as m, type ProfileView as n, type ProjectMemberView as o, type ProjectView as p, type PublicationView as q, type RepoDeleteOutcome as r, type RepoDeleteRecordResult as s, type RepoDeleteResult as t, type RepoGroupDefinition as u, type RepoGroupId as v, type RepoInventory as w, type RepoRecordLabel as x, type RepoRecordSummary as y, SIFA_REPO_GROUPS as z };
862
+ export { apiWrite as $, ADULT_CONTENT_LABELS as A, type SkillView as B, type CertificationView as C, type DurationView as D, type EducationView as E, describeSifaRecord as F, hasAdultContent as G, type HonorView as H, type IndustryDomain as I, repoGroupForCollection as J, type SifaApiConfig as K, type LanguageView as L, type ApiFetchOptions as M, type CreateResult as N, ApiError as O, type PositionView as P, type FilterOptions as Q, type RepoCollectionGroup as R, type SearchFilters as S, type ProfileSearchResult as T, type ProfileSearchSuggestion as U, type VolunteeringView as V, type WriteResult as W, type SearchResponse as X, type SkillSearchResult as Y, apiFetch as Z, apiFetchOrNull as _, type ActiveAppView as a, apiWriteCreate as a0, fetchSearchFilters as a1, fetchSearchProfiles as a2, fetchSkillSuggestions as a3, searchSkills as a4, type CompanySearchFilters as a5, type CompanySearchResponse as a6, type CompanySearchResult as a7, fetchSearchCompanies as a8, type ActivityLabel as b, type AdultContentLabel as c, type AtfundLinkView as d, type CoSpeakerView as e, type ContributorView as f, type CourseView as g, type ExternalAccountView as h, type InvolvementLinkView as i, type InvolvementView as j, type PresentationDeliveryView as k, type PresentationView as l, type ProfileLocationView as m, type ProfileView as n, type ProjectMemberView as o, type ProjectView as p, type PublicationView as q, type RepoDeleteOutcome as r, type RepoDeleteRecordResult as s, type RepoDeleteResult as t, type RepoGroupDefinition as u, type RepoGroupId as v, type RepoInventory as w, type RepoRecordLabel as x, type RepoRecordSummary as y, SIFA_REPO_GROUPS as z };
@@ -1,11 +1,11 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { K as SifaApiConfig, n as ProfileView, W as WriteResult, N as CreateResult, Q as FilterOptions, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, a4 as CompanySearchFilters, a5 as CompanySearchResponse, t as RepoDeleteResult, w as RepoInventory } from './types-DHT7jcZc.cjs';
3
+ import { K as SifaApiConfig, n as ProfileView, W as WriteResult, N as CreateResult, Q as FilterOptions, S as SearchFilters, X as SearchResponse, Y as SkillSearchResult, a5 as CompanySearchFilters, a6 as CompanySearchResponse, t as RepoDeleteResult, w as RepoInventory } from './types-BHnGSJ3z.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, T as SkillSuggestion, s as OrgFloorVerdict } from './index-DmlIG8sJ.cjs';
7
- import { s as sifaQueryKeys, aC as RefreshPdsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, am as PrimarySection, aN as SubCategoryBulkResult, ar as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aX as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Y as GivenConfirmation, al as PendingConfirmationsPage, a7 as InboxCounts, n as DismissUnlinkedPositionInput, aS as UnlinkedPositionsResult, an as ProfileCompleteness, aB as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a6 as HideProfileItemInput, a1 as HiddenActivityItem, a5 as HideActivityItemInput, aQ as UnhideActivityItemInput, aM as StatsResponse, h as AppRegistryEntry, a2 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aL as SimilarProfile, L as FetchSuggestionsOptions, aP as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, V as FollowingResponse, x as FetchFollowingFeedOptions, T as FollowingFeedResponse, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a0 as HeatmapResponse, a9 as MyGithubPullRequestsResponse, A as AccountCheckResult, aA as ReactionStatus, az as ReactionResult, ay as ReactionError, aJ as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aE as ResetProfileResult, aY as WipePreview, aD as RepoDeleteInput, ab as OrgClaimResult, ah as OrgProfileUpdateResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult } from './org-fmpG85L0.cjs';
8
- import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-D1l6pulB.cjs';
6
+ import { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, T as SkillSuggestion, s as OrgFloorVerdict } from './index-BeQbepFn.cjs';
7
+ import { s as sifaQueryKeys, aD as RefreshPdsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, an as PrimarySection, aO as SubCategoryBulkResult, as as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aY as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Z as GivenConfirmation, am as PendingConfirmationsPage, a8 as InboxCounts, n as DismissUnlinkedPositionInput, aT as UnlinkedPositionsResult, ao as ProfileCompleteness, aC as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a7 as HideProfileItemInput, a2 as HiddenActivityItem, a6 as HideActivityItemInput, aR as UnhideActivityItemInput, aN as StatsResponse, h as AppRegistryEntry, a3 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aM as SimilarProfile, L as FetchSuggestionsOptions, aQ as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, W as FollowingResponse, x as FetchFollowingFeedOptions, U as FollowingFeedResponse, V as FollowingFeedVersion, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a1 as HeatmapResponse, aa as MyGithubPullRequestsResponse, A as AccountCheckResult, aB as ReactionStatus, aA as ReactionResult, az as ReactionError, aK as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aF as ResetProfileResult, aZ as WipePreview, aE as RepoDeleteInput, ac as OrgClaimResult, ai as OrgProfileUpdateResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult } from './org-Bq3HbpLD.cjs';
8
+ import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-CQ3DTTak.cjs';
9
9
  import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-C73Sin5E.cjs';
10
10
 
11
11
  interface SifaProviderProps {
@@ -570,11 +570,12 @@ declare function useFollowingList(handle: string, opts?: Omit<FetchFollowListOpt
570
570
  */
571
571
  declare function useFollowingFeed(opts?: FetchFollowingFeedOptions, options?: Omit<UseQueryOptions<FollowingFeedResponse, Error, FollowingFeedResponse, ReturnType<typeof sifaQueryKeys.follow.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<FollowingFeedResponse>, Error>;
572
572
  /**
573
- * When the cached following feed for the same query was built (ISO 8601, or
574
- * null). Poll it while a `stale` feed is shown, e.g. with `refetchInterval`,
575
- * and offer the newer feed once {@link isNewerFollowingFeed} is true.
573
+ * When the cached following feed for the same query was built, and a
574
+ * fingerprint of its items (or null). Poll it while a `stale` feed is shown,
575
+ * e.g. with `refetchInterval`, and offer the newer feed once
576
+ * {@link isNewerFollowingFeed} is true.
576
577
  */
577
- declare function useFollowingFeedVersion(opts?: FetchFollowingFeedOptions, options?: Omit<UseQueryOptions<string | null, Error, string | null, ReturnType<typeof sifaQueryKeys.follow.feedVersion>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<string | null, Error>;
578
+ declare function useFollowingFeedVersion(opts?: FetchFollowingFeedOptions, options?: Omit<UseQueryOptions<FollowingFeedVersion | null, Error, FollowingFeedVersion | null, ReturnType<typeof sifaQueryKeys.follow.feedVersion>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<FollowingFeedVersion | null>, Error>;
578
579
 
579
580
  /**
580
581
  * Infinite-query hook for the mutuals list of `handleOrDid`. Backed by
@@ -1,11 +1,11 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { K as SifaApiConfig, n as ProfileView, W as WriteResult, N as CreateResult, Q as FilterOptions, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, a4 as CompanySearchFilters, a5 as CompanySearchResponse, t as RepoDeleteResult, w as RepoInventory } from './types-jB67EFpw.js';
3
+ import { K as SifaApiConfig, n as ProfileView, W as WriteResult, N as CreateResult, Q as FilterOptions, S as SearchFilters, X as SearchResponse, Y as SkillSearchResult, a5 as CompanySearchFilters, a6 as CompanySearchResponse, t as RepoDeleteResult, w as RepoInventory } from './types-BKEBVobU.js';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, T as SkillSuggestion, s as OrgFloorVerdict } from './index-D9GC0u__.js';
7
- import { s as sifaQueryKeys, aC as RefreshPdsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, am as PrimarySection, aN as SubCategoryBulkResult, ar as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aX as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Y as GivenConfirmation, al as PendingConfirmationsPage, a7 as InboxCounts, n as DismissUnlinkedPositionInput, aS as UnlinkedPositionsResult, an as ProfileCompleteness, aB as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a6 as HideProfileItemInput, a1 as HiddenActivityItem, a5 as HideActivityItemInput, aQ as UnhideActivityItemInput, aM as StatsResponse, h as AppRegistryEntry, a2 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aL as SimilarProfile, L as FetchSuggestionsOptions, aP as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, V as FollowingResponse, x as FetchFollowingFeedOptions, T as FollowingFeedResponse, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a0 as HeatmapResponse, a9 as MyGithubPullRequestsResponse, A as AccountCheckResult, aA as ReactionStatus, az as ReactionResult, ay as ReactionError, aJ as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aE as ResetProfileResult, aY as WipePreview, aD as RepoDeleteInput, ab as OrgClaimResult, ah as OrgProfileUpdateResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult } from './org-hxHnoBfg.js';
8
- import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-D1l6pulB.js';
6
+ import { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, T as SkillSuggestion, s as OrgFloorVerdict } from './index-CT-A3BEe.js';
7
+ import { s as sifaQueryKeys, aD as RefreshPdsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, an as PrimarySection, aO as SubCategoryBulkResult, as as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aY as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Z as GivenConfirmation, am as PendingConfirmationsPage, a8 as InboxCounts, n as DismissUnlinkedPositionInput, aT as UnlinkedPositionsResult, ao as ProfileCompleteness, aC as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a7 as HideProfileItemInput, a2 as HiddenActivityItem, a6 as HideActivityItemInput, aR as UnhideActivityItemInput, aN as StatsResponse, h as AppRegistryEntry, a3 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aM as SimilarProfile, L as FetchSuggestionsOptions, aQ as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, W as FollowingResponse, x as FetchFollowingFeedOptions, U as FollowingFeedResponse, V as FollowingFeedVersion, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a1 as HeatmapResponse, aa as MyGithubPullRequestsResponse, A as AccountCheckResult, aB as ReactionStatus, aA as ReactionResult, az as ReactionError, aK as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aF as ResetProfileResult, aZ as WipePreview, aE as RepoDeleteInput, ac as OrgClaimResult, ai as OrgProfileUpdateResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult } from './org-CelDIOiN.js';
8
+ import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-ceqefXAw.js';
9
9
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-BShvhyFp.js';
10
10
 
11
11
  interface SifaProviderProps {
@@ -570,11 +570,12 @@ declare function useFollowingList(handle: string, opts?: Omit<FetchFollowListOpt
570
570
  */
571
571
  declare function useFollowingFeed(opts?: FetchFollowingFeedOptions, options?: Omit<UseQueryOptions<FollowingFeedResponse, Error, FollowingFeedResponse, ReturnType<typeof sifaQueryKeys.follow.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<FollowingFeedResponse>, Error>;
572
572
  /**
573
- * When the cached following feed for the same query was built (ISO 8601, or
574
- * null). Poll it while a `stale` feed is shown, e.g. with `refetchInterval`,
575
- * and offer the newer feed once {@link isNewerFollowingFeed} is true.
573
+ * When the cached following feed for the same query was built, and a
574
+ * fingerprint of its items (or null). Poll it while a `stale` feed is shown,
575
+ * e.g. with `refetchInterval`, and offer the newer feed once
576
+ * {@link isNewerFollowingFeed} is true.
576
577
  */
577
- declare function useFollowingFeedVersion(opts?: FetchFollowingFeedOptions, options?: Omit<UseQueryOptions<string | null, Error, string | null, ReturnType<typeof sifaQueryKeys.follow.feedVersion>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<string | null, Error>;
578
+ declare function useFollowingFeedVersion(opts?: FetchFollowingFeedOptions, options?: Omit<UseQueryOptions<FollowingFeedVersion | null, Error, FollowingFeedVersion | null, ReturnType<typeof sifaQueryKeys.follow.feedVersion>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<FollowingFeedVersion | null>, Error>;
578
579
 
579
580
  /**
580
581
  * Infinite-query hook for the mutuals list of `handleOrDid`. Backed by
@@ -0,0 +1,158 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Grapheme-aware refinement matching the AT Protocol lexicon `maxGraphemes`
5
+ * constraint. JS strings are sequences of UTF-16 code units, but lexicon
6
+ * `maxGraphemes` counts user-perceived characters (grapheme clusters), so
7
+ * emoji sequences, regional indicators, ZWJ joins, and combining marks all
8
+ * count as one unit each. We use `Intl.Segmenter` to enforce this correctly.
9
+ */
10
+ declare function maxGraphemes(max: number): (value: string) => boolean;
11
+ /** Decentralized identifier, AT Protocol `format: did`. */
12
+ declare const didSchema: z.ZodString;
13
+ /** RFC 3339 datetime with timezone offset, AT Protocol `format: datetime`. */
14
+ declare const datetimeSchema: z.ZodString;
15
+ /**
16
+ * Freeform calendar date for user-facing profile dates (start/end, issued,
17
+ * completed, awarded, published, etc.). Accepts a bare year, year-month,
18
+ * year-month-day, or a full datetime (so a legacy record's RFC-3339 date maps
19
+ * through on backfill without loss). NOT strict `datetime` -- users typically
20
+ * remember only month/year, and LinkedIn-importer writes carry partial dates,
21
+ * so the lexicons document these as freeform `YYYY-MM` / `YYYY-MM-DD`. Record
22
+ * metadata like `createdAt` stays on `datetimeSchema`.
23
+ */
24
+ declare const partialDateSchema: z.ZodString;
25
+ /** Generic AT-URI, AT Protocol `format: at-uri`. */
26
+ declare const atUriSchema: z.ZodString;
27
+ /** Content identifier, AT Protocol `format: cid`. Loose validation -- accepts CIDv0 and CIDv1. */
28
+ declare const cidSchema: z.ZodString;
29
+ /** BCP 47 language tag, AT Protocol `format: language`. */
30
+ declare const languageTagSchema: z.ZodString;
31
+ /** Generic URI, AT Protocol `format: uri`. */
32
+ declare const uriSchema: z.ZodString;
33
+ /**
34
+ * StrongRef shape from `com.atproto.repo.strongRef` -- pins a record by both
35
+ * AT-URI (identity) and CID (version).
36
+ */
37
+ declare const strongRefSchema: z.ZodObject<{
38
+ uri: z.ZodString;
39
+ cid: z.ZodString;
40
+ }, z.core.$strip>;
41
+ /**
42
+ * Reference to an `id.sifa.profile.skill` record by AT-URI. Mirrors
43
+ * `id.sifa.defs#skillRef`, which carries no CID at all: skills are mutable
44
+ * records in the same user's repo, so the reference resolves live and tracks
45
+ * edits to the target.
46
+ */
47
+ declare const skillRefSchema: z.ZodObject<{
48
+ uri: z.ZodString;
49
+ }, z.core.$strip>;
50
+ /**
51
+ * Reference to a record by AT-URI, with an optional CID. Mirrors
52
+ * `id.sifa.defs#externalRecordRef`. Unlike a strongRef the CID is optional:
53
+ * consumers resolve the AT-URI live so the reference tracks edits to the
54
+ * target, and the CID is a best-effort integrity hint only.
55
+ */
56
+ declare const externalRecordRefSchema: z.ZodObject<{
57
+ uri: z.ZodString;
58
+ cid: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>;
60
+ /**
61
+ * Shared reference to an organization or person named by a record. Mirrors
62
+ * `id.sifa.defs#agentRef`. `name` is a point-in-time snapshot label captured
63
+ * when the record was saved; `did` and `entityRef` are the durable identity and
64
+ * should be resolved live. `name` is required so an empty object cannot validate
65
+ * as a no-op. `.passthrough()` (not `.strict()`): external apps may emit fields a
66
+ * newer schema will define, and dropping them on a round-trip would silently
67
+ * lose data.
68
+ */
69
+ declare const agentRefSchema: z.ZodObject<{
70
+ name: z.ZodString;
71
+ did: z.ZodOptional<z.ZodString>;
72
+ entityRef: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$loose>;
74
+ type AgentRef = z.infer<typeof agentRefSchema>;
75
+ /**
76
+ * Self-labels shape from `com.atproto.label.defs#selfLabels`. Modelled
77
+ * permissively because clients rarely construct this directly; the AppView
78
+ * handles label validation.
79
+ */
80
+ declare const selfLabelsSchema: z.ZodObject<{
81
+ $type: z.ZodOptional<z.ZodLiteral<"com.atproto.label.defs#selfLabels">>;
82
+ values: z.ZodArray<z.ZodObject<{
83
+ val: z.ZodString;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>;
86
+
87
+ /**
88
+ * Verification providers -- the trust roots Sifa recognizes for AT Protocol
89
+ * `app.bsky.graph.verification` records.
90
+ *
91
+ * Framing (see decisions/2026-07-13-third-party-verification-providers.md, D4):
92
+ * a verification checkmark is ONE low-tier trust layer, not Sifa's headline.
93
+ * Most of what it certifies is "this account is who they claim to be" -- useful,
94
+ * and worth carrying because it's an already-recognized network signal, but low
95
+ * value on its own. It sits among Sifa's other trust signals and never becomes a
96
+ * score or a gate. This registry only decides which issuers Sifa displays and
97
+ * with what provenance.
98
+ *
99
+ * Data-only: badge colors and icons are consumer concerns (React DOM on web,
100
+ * React Native on mobile), same split as {@link PLATFORM_LABELS}. Consumers map
101
+ * a provider id to a token/color.
102
+ */
103
+ type VerificationProviderId = 'bluesky' | 'mu';
104
+ /** How Sifa learns about a provider's verifications. */
105
+ type VerificationSource = 'bluesky-api' | 'firehose';
106
+ interface VerificationProvider {
107
+ id: VerificationProviderId;
108
+ /** Human label for the badge popover, e.g. "Bluesky", "mu (Eurosky)". */
109
+ label: string;
110
+ /**
111
+ * Primary-display priority (D1): when an account holds verifications from
112
+ * multiple providers, the lowest number wins the single inline badge and the
113
+ * rest move into the popover. Must be unique across providers.
114
+ */
115
+ priority: number;
116
+ /**
117
+ * - `bluesky-api`: sourced from Bluesky's public-API `verifiedStatus`. Bluesky
118
+ * maintains its own trusted-verifier set, so Sifa keeps no local DID list.
119
+ * - `firehose`: sourced from the Jetstream, gated on {@link verifierDids}.
120
+ */
121
+ source: VerificationSource;
122
+ /**
123
+ * Trusted verifier DIDs for firehose-sourced providers. A verification record
124
+ * counts only if its ISSUER DID is in this list. Empty for `bluesky-api`
125
+ * providers (Bluesky's AppView owns that decision). DIDs, not handles: a handle
126
+ * takeover must never confer verifier status.
127
+ */
128
+ verifierDids: readonly string[];
129
+ }
130
+ /**
131
+ * A verification held by an account, as surfaced to the UI. `issuerDid` is
132
+ * present for firehose-sourced providers and absent for `bluesky-api`.
133
+ */
134
+ interface AccountVerification {
135
+ provider: VerificationProviderId;
136
+ verifiedAt?: string | null;
137
+ issuerDid?: string | null;
138
+ }
139
+ declare const VERIFICATION_PROVIDERS: Record<VerificationProviderId, VerificationProvider>;
140
+ declare function isKnownVerificationProvider(id: string): id is VerificationProviderId;
141
+ declare function getVerificationProvider(id: string): VerificationProvider | undefined;
142
+ /**
143
+ * The firehose issuer gate: given the DID that authored an
144
+ * `app.bsky.graph.verification` record, return the provider it verifies for, or
145
+ * `null` if the issuer is not a recognized firehose verifier. API-sourced
146
+ * providers (Bluesky) are never matched here -- their verifications do not enter
147
+ * through the firehose, so a self-issued record cannot resolve to them.
148
+ */
149
+ declare function resolveVerifierProvider(issuerDid: string): VerificationProviderId | null;
150
+ /**
151
+ * D1 primary-provider selection: from all verifications an account holds, pick
152
+ * the one whose provider has the highest priority (lowest `priority` number) for
153
+ * the single inline badge. The rest belong in the popover. Verifications from
154
+ * unknown providers are ignored. Returns `null` when nothing is displayable.
155
+ */
156
+ declare function primaryVerification(verifications: readonly AccountVerification[]): AccountVerification | null;
157
+
158
+ export { type AgentRef as A, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, agentRefSchema as e, atUriSchema as f, cidSchema as g, datetimeSchema as h, didSchema as i, externalRecordRefSchema as j, getVerificationProvider as k, isKnownVerificationProvider as l, languageTagSchema as m, maxGraphemes as n, primaryVerification as o, partialDateSchema as p, skillRefSchema as q, resolveVerifierProvider as r, selfLabelsSchema as s, strongRefSchema as t, uriSchema as u };