@singi-labs/sifa-sdk 0.12.16 → 0.12.18

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.
@@ -469,16 +469,46 @@ interface OrgProfileView {
469
469
  logoBlob: string | null;
470
470
  entityRefs: string[] | null;
471
471
  }
472
+ /**
473
+ * A company entity recognized purely from the handle's registrable domain
474
+ * (#160 auto-recognize), independent of any org record. Present on the verdict
475
+ * when `recognized` is true. `domain` is the handle's registrable domain and
476
+ * round-trips through `/c/<domain>`; `publicId` is nullable because entities
477
+ * minted before the public_id backfill have none.
478
+ */
479
+ interface RecognizedEntity {
480
+ publicId: string | null;
481
+ domain: string;
482
+ name: string;
483
+ }
472
484
  /**
473
485
  * Server-computed org rendering-floor verdict (#160), carried on the profile
474
- * resolve so clients need no extra round-trip. `isOrg` is true when the account
475
- * has an `id.sifa.org.profile` record AND its handle is a custom registrable
476
- * domain (the authoritative, PSL-backed check lives server-side). Read it via
477
- * the `useOrgProfile` hook.
486
+ * resolve so clients need no extra round-trip. Read it via the `useOrgProfile`
487
+ * hook.
488
+ *
489
+ * `isOrg` is the CLAIMED floor: true when the account has an
490
+ * `id.sifa.org.profile` record AND its handle is a custom registrable domain
491
+ * (the authoritative, PSL-backed check lives server-side).
492
+ *
493
+ * `recognized` is INDEPENDENT of `isOrg`: true when the handle's registrable
494
+ * domain resolves to a known, non-suppressed, non-natural-person company entity
495
+ * in Sifa's DB, even with no org record yet (auto-recognize known-company
496
+ * domains). A known company that has not yet claimed is
497
+ * `recognized: true, isOrg: false`; a claimed recognized company is both true.
498
+ * Use it to treat a recognized-but-unclaimed company account as a company
499
+ * (company onboarding, `/c/` routing) before it claims.
478
500
  */
479
501
  interface OrgFloorVerdict {
480
502
  isOrg: boolean;
481
503
  orgProfile?: OrgProfileView;
504
+ recognized: boolean;
505
+ /**
506
+ * Invariant (not encoded in the type, matching the flat wire shape the api
507
+ * sends): present whenever `recognized` is true, absent when false. Callers
508
+ * that read it after narrowing on `recognized === true` should still
509
+ * defensively check, since the type does not enforce the pairing.
510
+ */
511
+ recognizedEntity?: RecognizedEntity;
482
512
  }
483
513
  interface Profile {
484
514
  did: string;
@@ -888,4 +918,4 @@ declare function hasAdultContent(item: {
888
918
  labels?: ActivityLabel[];
889
919
  }): boolean;
890
920
 
891
- export { type ProfileVolunteering as $, type AdultContentLabel as A, type InvolvementView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type LanguageProficiency as G, type HonorView as H, type IndustryDomain as I, type LanguageView as J, type OrgProfileView as K, type LocationValue as L, type PositionView as M, type PresentationDeliveryView as N, type OrgFloorVerdict as O, type ProfileSkill as P, type PresentationLinkView as Q, type PresentationView as R, type SkillSuggestion as S, type ProfileCourse as T, type ProfileIndustry as U, type ProfileInvolvementLink as V, type ProfileLocation as W, type ProfileLocationView as X, type ProfileOverrideSource as Y, type ProfilePresentation as Z, type ProfileView as _, type ActivityLabel as a, type ProjectView as a0, type PublicationContributor as a1, type PublicationView as a2, type SkillRef as a3, type SkillView as a4, type TrustStat as a5, type VerifiedAccount as a6, type VolunteeringView as a7, hasAdultContent as a8, type ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, type ProfilePosition as e, type ProfileCertification as f, type ProfileEducation as g, type ProfileHonor as h, type ProfileLanguage as i, type ProfileProject as j, type ProfilePublication as k, type ProfileInvolvement as l, ADULT_CONTENT_LABELS as m, type ActiveApp as n, type ActiveAppView as o, type AtfundLinkView as p, type CertificationView as q, type CoSpeakerView as r, type ContributorView as s, type CourseView as t, type EducationView as u, type Endorsement as v, type EndorsementData as w, type ExternalAccountKeytraceClaim as x, type ExternalAccountView as y, type InvolvementLinkView as z };
921
+ export { type ProfileVolunteering as $, type AdultContentLabel as A, type InvolvementView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type LanguageProficiency as G, type HonorView as H, type IndustryDomain as I, type LanguageView as J, type OrgProfileView as K, type LocationValue as L, type PositionView as M, type PresentationDeliveryView as N, type OrgFloorVerdict as O, type ProfileSkill as P, type PresentationLinkView as Q, type PresentationView as R, type SkillSuggestion as S, type ProfileCourse as T, type ProfileIndustry as U, type ProfileInvolvementLink as V, type ProfileLocation as W, type ProfileLocationView as X, type ProfileOverrideSource as Y, type ProfilePresentation as Z, type ProfileView as _, type ActivityLabel as a, type ProjectView as a0, type PublicationContributor as a1, type PublicationView as a2, type RecognizedEntity as a3, type SkillRef as a4, type SkillView as a5, type TrustStat as a6, type VerifiedAccount as a7, type VolunteeringView as a8, hasAdultContent as a9, type ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, type ProfilePosition as e, type ProfileCertification as f, type ProfileEducation as g, type ProfileHonor as h, type ProfileLanguage as i, type ProfileProject as j, type ProfilePublication as k, type ProfileInvolvement as l, ADULT_CONTENT_LABELS as m, type ActiveApp as n, type ActiveAppView as o, type AtfundLinkView as p, type CertificationView as q, type CoSpeakerView as r, type ContributorView as s, type CourseView as t, type EducationView as u, type Endorsement as v, type EndorsementData as w, type ExternalAccountKeytraceClaim as x, type ExternalAccountView as y, type InvolvementLinkView as z };
@@ -469,16 +469,46 @@ interface OrgProfileView {
469
469
  logoBlob: string | null;
470
470
  entityRefs: string[] | null;
471
471
  }
472
+ /**
473
+ * A company entity recognized purely from the handle's registrable domain
474
+ * (#160 auto-recognize), independent of any org record. Present on the verdict
475
+ * when `recognized` is true. `domain` is the handle's registrable domain and
476
+ * round-trips through `/c/<domain>`; `publicId` is nullable because entities
477
+ * minted before the public_id backfill have none.
478
+ */
479
+ interface RecognizedEntity {
480
+ publicId: string | null;
481
+ domain: string;
482
+ name: string;
483
+ }
472
484
  /**
473
485
  * Server-computed org rendering-floor verdict (#160), carried on the profile
474
- * resolve so clients need no extra round-trip. `isOrg` is true when the account
475
- * has an `id.sifa.org.profile` record AND its handle is a custom registrable
476
- * domain (the authoritative, PSL-backed check lives server-side). Read it via
477
- * the `useOrgProfile` hook.
486
+ * resolve so clients need no extra round-trip. Read it via the `useOrgProfile`
487
+ * hook.
488
+ *
489
+ * `isOrg` is the CLAIMED floor: true when the account has an
490
+ * `id.sifa.org.profile` record AND its handle is a custom registrable domain
491
+ * (the authoritative, PSL-backed check lives server-side).
492
+ *
493
+ * `recognized` is INDEPENDENT of `isOrg`: true when the handle's registrable
494
+ * domain resolves to a known, non-suppressed, non-natural-person company entity
495
+ * in Sifa's DB, even with no org record yet (auto-recognize known-company
496
+ * domains). A known company that has not yet claimed is
497
+ * `recognized: true, isOrg: false`; a claimed recognized company is both true.
498
+ * Use it to treat a recognized-but-unclaimed company account as a company
499
+ * (company onboarding, `/c/` routing) before it claims.
478
500
  */
479
501
  interface OrgFloorVerdict {
480
502
  isOrg: boolean;
481
503
  orgProfile?: OrgProfileView;
504
+ recognized: boolean;
505
+ /**
506
+ * Invariant (not encoded in the type, matching the flat wire shape the api
507
+ * sends): present whenever `recognized` is true, absent when false. Callers
508
+ * that read it after narrowing on `recognized === true` should still
509
+ * defensively check, since the type does not enforce the pairing.
510
+ */
511
+ recognizedEntity?: RecognizedEntity;
482
512
  }
483
513
  interface Profile {
484
514
  did: string;
@@ -888,4 +918,4 @@ declare function hasAdultContent(item: {
888
918
  labels?: ActivityLabel[];
889
919
  }): boolean;
890
920
 
891
- export { type ProfileVolunteering as $, type AdultContentLabel as A, type InvolvementView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type LanguageProficiency as G, type HonorView as H, type IndustryDomain as I, type LanguageView as J, type OrgProfileView as K, type LocationValue as L, type PositionView as M, type PresentationDeliveryView as N, type OrgFloorVerdict as O, type ProfileSkill as P, type PresentationLinkView as Q, type PresentationView as R, type SkillSuggestion as S, type ProfileCourse as T, type ProfileIndustry as U, type ProfileInvolvementLink as V, type ProfileLocation as W, type ProfileLocationView as X, type ProfileOverrideSource as Y, type ProfilePresentation as Z, type ProfileView as _, type ActivityLabel as a, type ProjectView as a0, type PublicationContributor as a1, type PublicationView as a2, type SkillRef as a3, type SkillView as a4, type TrustStat as a5, type VerifiedAccount as a6, type VolunteeringView as a7, hasAdultContent as a8, type ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, type ProfilePosition as e, type ProfileCertification as f, type ProfileEducation as g, type ProfileHonor as h, type ProfileLanguage as i, type ProfileProject as j, type ProfilePublication as k, type ProfileInvolvement as l, ADULT_CONTENT_LABELS as m, type ActiveApp as n, type ActiveAppView as o, type AtfundLinkView as p, type CertificationView as q, type CoSpeakerView as r, type ContributorView as s, type CourseView as t, type EducationView as u, type Endorsement as v, type EndorsementData as w, type ExternalAccountKeytraceClaim as x, type ExternalAccountView as y, type InvolvementLinkView as z };
921
+ export { type ProfileVolunteering as $, type AdultContentLabel as A, type InvolvementView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type LanguageProficiency as G, type HonorView as H, type IndustryDomain as I, type LanguageView as J, type OrgProfileView as K, type LocationValue as L, type PositionView as M, type PresentationDeliveryView as N, type OrgFloorVerdict as O, type ProfileSkill as P, type PresentationLinkView as Q, type PresentationView as R, type SkillSuggestion as S, type ProfileCourse as T, type ProfileIndustry as U, type ProfileInvolvementLink as V, type ProfileLocation as W, type ProfileLocationView as X, type ProfileOverrideSource as Y, type ProfilePresentation as Z, type ProfileView as _, type ActivityLabel as a, type ProjectView as a0, type PublicationContributor as a1, type PublicationView as a2, type RecognizedEntity as a3, type SkillRef as a4, type SkillView as a5, type TrustStat as a6, type VerifiedAccount as a7, type VolunteeringView as a8, hasAdultContent as a9, type ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, type ProfilePosition as e, type ProfileCertification as f, type ProfileEducation as g, type ProfileHonor as h, type ProfileLanguage as i, type ProfileProject as j, type ProfilePublication as k, type ProfileInvolvement as l, ADULT_CONTENT_LABELS as m, type ActiveApp as n, type ActiveAppView as o, type AtfundLinkView as p, type CertificationView as q, type CoSpeakerView as r, type ContributorView as s, type CourseView as t, type EducationView as u, type Endorsement as v, type EndorsementData as w, type ExternalAccountKeytraceClaim as x, type ExternalAccountView as y, type InvolvementLinkView as z };
@@ -1,5 +1,5 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-Bflg9EiB.js';
2
- import { d as Profile, _ as ProfileView, e as ProfilePosition, a3 as SkillRef } from './adult-content-D2Dy1w2s.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-DKbNPMry.js';
2
+ import { d as Profile, _ as ProfileView, e as ProfilePosition, a4 as SkillRef } from './adult-content-B06bKHpA.js';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.js';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-Df5IjADP.cjs';
2
- import { d as Profile, _ as ProfileView, e as ProfilePosition, a3 as SkillRef } from './adult-content-D2Dy1w2s.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-UaNOo0ya.cjs';
2
+ import { d as Profile, _ as ProfileView, e as ProfilePosition, a4 as SkillRef } from './adult-content-B06bKHpA.cjs';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.cjs';
4
4
 
5
5
  /**
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-Bflg9EiB.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-DKbNPMry.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 { d as Profile, _ as ProfileView, e as ProfilePosition, a3 as SkillRef, E as ExternalAccount, S as SkillSuggestion, O as OrgFloorVerdict } from './adult-content-D2Dy1w2s.js';
6
+ import { d as Profile, _ as ProfileView, e as ProfilePosition, a4 as SkillRef, E as ExternalAccount, S as SkillSuggestion, O as OrgFloorVerdict } from './adult-content-B06bKHpA.js';
7
7
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-D2ZV8Eaj.js';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.js';
9
9
 
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-Df5IjADP.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-UaNOo0ya.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 { d as Profile, _ as ProfileView, e as ProfilePosition, a3 as SkillRef, E as ExternalAccount, S as SkillSuggestion, O as OrgFloorVerdict } from './adult-content-D2Dy1w2s.cjs';
6
+ import { d as Profile, _ as ProfileView, e as ProfilePosition, a4 as SkillRef, E as ExternalAccount, S as SkillSuggestion, O as OrgFloorVerdict } from './adult-content-B06bKHpA.cjs';
7
7
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-D2ZV8Eaj.cjs';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.cjs';
9
9
 
package/dist/index.cjs CHANGED
@@ -3519,6 +3519,7 @@ var GENERIC_TEXT_ORDER = [
3519
3519
  "name",
3520
3520
  "description",
3521
3521
  "content",
3522
+ "excerpt",
3522
3523
  "body",
3523
3524
  "message",
3524
3525
  "note",
@@ -4565,7 +4566,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
4565
4566
  });
4566
4567
 
4567
4568
  // src/index.ts
4568
- var SIFA_SDK_VERSION = "0.12.16";
4569
+ var SIFA_SDK_VERSION = "0.12.18";
4569
4570
 
4570
4571
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
4571
4572
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;