@singi-labs/sifa-sdk 0.12.75 → 0.12.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5816,7 +5816,7 @@ function describeSifaRecord(collection, value) {
5816
5816
  }
5817
5817
 
5818
5818
  // src/index.ts
5819
- var SIFA_SDK_VERSION = "0.12.75";
5819
+ var SIFA_SDK_VERSION = "0.12.76";
5820
5820
 
5821
5821
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
5822
5822
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
package/dist/index.js CHANGED
@@ -5814,7 +5814,7 @@ function describeSifaRecord(collection, value) {
5814
5814
  }
5815
5815
 
5816
5816
  // src/index.ts
5817
- var SIFA_SDK_VERSION = "0.12.75";
5817
+ var SIFA_SDK_VERSION = "0.12.76";
5818
5818
 
5819
5819
  export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, ArtifactLinkSchema, AtmosphereFeedItemSchema, BlobRefSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntityMintDomainResponseSchema, EntityResolveDomainRequestSchema, EntityResolveDomainResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, INVESTMENT_ROLE_LABELS, INVESTMENT_ROLE_OPTIONS, INVESTMENT_STAGE_LABELS, INVESTMENT_STAGE_OPTIONS, INVESTMENT_STATUS_LABELS, INVESTMENT_STATUS_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, InvestmentAmountSchema, MIN_SKILLS, ON_BEHALF_OF_EMPLOYMENT_TYPES, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PROFILE_INVESTMENT_NSID, PROFILE_INVOLVEMENT_NSID, PROJECT_ROLES, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvestmentRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, ROADMAP_ISSUES_REPO, ROADMAP_ITEM_META, SECTION_GROUPS, SECTION_LABELS, SIFA_REPO_GROUPS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, buildMetaDescription, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, describeSifaRecord, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, getActivityVerbsVersion, getAppCategoryIcon, getAppIdForCollection, getArtifactLinkKindLabel, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getInvestmentRoleLabel, getInvestmentStageLabel, getInvestmentStatusLabel, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isOnBehalfOfApplicable, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, locationSegments, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, rendersCompanyProfile, rendersPersonalProfile, repoGroupForCollection, resolveAccountFacetMode, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, skillRefSchema, slugifyTitle, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamAddressSchema, streamAuthorSchema, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamGeoSchema, streamMediaSchema, streamRichSegmentSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, summarizeProfileView, toStreamCardVM, toStreamCardVMs, truncateGraphemes, uriSchema, verbForCollection, visibleItems, youtubeThumbnailUrl, youtubeVideoId };
5820
5820
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { c as Profile, d as ProfilePosition, S as SkillRef } from './index-a3xqWsNm.js';
2
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-DxhtogOn.js';
2
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-Co9muK52.js';
3
3
  import { n as ProfileView } from './types-C3xxTGUE.js';
4
4
  import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-Do5FY7Q0.js';
5
5
  import { j as EntitySearchResponse, E as EntitySearchResult, d as EntityMintDomainResponse, h as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-BMm9Pkew.js';
@@ -1,5 +1,5 @@
1
1
  import { c as Profile, d as ProfilePosition, S as SkillRef } from './index-a3xqWsNm.cjs';
2
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-DJyiwPcL.cjs';
2
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-BOivj-0M.cjs';
3
3
  import { n as ProfileView } from './types-D0LWpGtY.cjs';
4
4
  import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-BTZAwG1z.cjs';
5
5
  import { j as EntitySearchResponse, E as EntitySearchResult, d as EntityMintDomainResponse, h as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-BMm9Pkew.cjs';
@@ -650,12 +650,46 @@ interface FilterOptions {
650
650
  count: number;
651
651
  }[];
652
652
  }
653
+ /** Company entry returned by company search (workspace#299). */
654
+ interface CompanySearchResult {
655
+ /** Immutable catalogue id; the durable `/c/{publicId}` link. */
656
+ publicId: string;
657
+ name: string;
658
+ domain: string | null;
659
+ country: string | null;
660
+ industry: string | null;
661
+ logoUrl: string | null;
662
+ employeeCount: number | null;
663
+ }
664
+ interface CompanySearchFilters {
665
+ q?: string;
666
+ /** ISO 3166-1 alpha-2. */
667
+ country?: string;
668
+ industry?: string;
669
+ limit?: number;
670
+ }
671
+ interface CompanySearchResponse {
672
+ results: CompanySearchResult[];
673
+ hasMore: boolean;
674
+ }
653
675
  /**
654
676
  * Search profiles by free-text query and optional filters. Returns an
655
677
  * empty result set when no filters are provided (matching sifa-web's
656
678
  * "no input, no fetch" behavior).
657
679
  */
658
680
  declare function fetchSearchProfiles(config: SifaApiConfig, filters: SearchFilters, options?: ApiFetchOptions): Promise<SearchResponse>;
681
+ /**
682
+ * Company search over the entity catalogue (workspace#299).
683
+ *
684
+ * A category of its own rather than part of profile search: the two rank
685
+ * differently and carry different filters, and a slow category should not hold
686
+ * up the rest of a blended results page.
687
+ *
688
+ * An empty query returns nothing without a network call. The API rejects a
689
+ * blank `q` rather than scanning ~200k rows, so asking would only spend a round
690
+ * trip to be told no.
691
+ */
692
+ declare function fetchSearchCompanies(config: SifaApiConfig, filters: CompanySearchFilters, options?: ApiFetchOptions): Promise<CompanySearchResponse>;
659
693
  /**
660
694
  * Skill typeahead. Returns up to 8 matches for the given prefix. Empty
661
695
  * input returns an empty array without hitting the server.
@@ -1442,6 +1476,7 @@ declare const sifaQueryKeys: {
1442
1476
  readonly search: {
1443
1477
  readonly all: () => readonly ["sifa", "search"];
1444
1478
  readonly profiles: (filters: Record<string, unknown>) => readonly ["sifa", "search", "profiles", Record<string, unknown>];
1479
+ readonly companies: (filters: Record<string, unknown>) => readonly ["sifa", "search", "companies", Record<string, unknown>];
1445
1480
  readonly skills: (query: string) => readonly ["sifa", "search", "skills", string];
1446
1481
  readonly canonicalSkills: (query: string, limit: number) => readonly ["sifa", "search", "canonical-skills", string, number];
1447
1482
  readonly filters: () => readonly ["sifa", "search", "filters"];
@@ -1621,4 +1656,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
1621
1656
  */
1622
1657
  declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1623
1658
 
1624
- export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a, createExternalAccount as a$, type MyGithubPullRequestsResponse as a0, type OrgClaimBinding as a1, type OrgClaimResult as a2, type OrgDomainChallengeResult as a3, type OrgDomainVerifyResult as a4, type OrgNotificationEmailAddResult as a5, type OrgNotificationEmailRemoveResult as a6, type OrgProfileEcho as a7, type OrgProfileUpdateResult as a8, type PdsWipeOutcome as a9, type SifaQueryKey as aA, type SimilarProfile as aB, type SkillSearchResult as aC, type StatsResponse as aD, type SubCategoryBulkResult as aE, type SuggestionProfile as aF, type SuggestionsResponse as aG, type UpdateProfileOverrideInput as aH, type UpdateProfileSelfInput as aI, type UploadAvatarResult as aJ, type VerifyExternalAccountResult as aK, type WipePreview as aL, addFeatureAllowlist as aM, addOrgNotificationEmail as aN, apiFetch as aO, apiFetchOrNull as aP, apiWrite as aQ, apiWriteCreate as aR, bulkHideProfileItems as aS, bulkHideStandardPublications as aT, bulkUnhideProfileItems as aU, bulkUnhideStandardPublications as aV, castRoadmapVote as aW, checkAppAccount as aX, confirmEndorsement as aY, createConfirmation as aZ, createEndorsement as a_, type PendingConfirmation as aa, type PendingConfirmationsPage as ab, type ProfileIndustryInput as ac, type ProfileLocationAddress as ad, type ProfileLocationInput as ae, type ProfileSearchResult as af, type ProfileSelfLocation as ag, QUOTED_POSTS_BATCH_MAX as ah, type QuotedPostAuthor as ai, type QuotedPostImage as aj, type QuotedPostResult as ak, type QuotedPostView as al, type ReactionError as am, type ReactionResult as an, type ReactionStatus as ao, type RefreshOrcidPublicationsResult as ap, type RefreshPdsResult as aq, type RepoDeleteInput as ar, type ResetProfileResult as as, type ResolveQuotedPostsOptions as at, type RoadmapVoteError as au, type RoadmapVoteResult as av, type RoadmapVoter as aw, type RoadmapVotesResponse as ax, type SearchFilters as ay, type SearchResponse as az, type ConfirmEndorsementResult as b, unhideStandardPublication as b$, createProfileLocation as b0, createReaction as b1, createSkill as b2, deleteAccount as b3, deleteAvatarOverride as b4, deleteExternalAccount as b5, deleteProfileLocation as b6, deleteReaction as b7, deleteRepoRecords as b8, deleteSkill as b9, getBlueskySuggestions as bA, getFollowers as bB, getFollowing as bC, getFollowingFeed as bD, getMutuals as bE, hideOrcidPublication as bF, hideProfileItem as bG, hideSifaPublication as bH, hideStandardPublication as bI, listFeatureAllowlist as bJ, refreshOrcidPublications as bK, refreshPds as bL, removeFeatureAllowlist as bM, removeOrgNotificationEmail as bN, repoExportUrl as bO, requestOrgDomainChallenge as bP, resetProfile as bQ, resolveQuotedPosts as bR, retractRoadmapVote as bS, revokeConfirmation as bT, searchSkills as bU, setExternalAccountPrimary as bV, submitOrgClaim as bW, unfollowUser as bX, unhideOrcidPublication as bY, unhideProfileItem as bZ, unhideSifaPublication as b_, dismissConfirmation as ba, fetchActivityFeed as bb, fetchActivityTeaser as bc, fetchAppsRegistry as bd, fetchExternalAccounts as be, fetchFeaturedProfile as bf, fetchFollowing as bg, fetchGivenConfirmations as bh, fetchHeatmapData as bi, fetchHiddenApps as bj, fetchMyGithubPullRequests as bk, fetchMyRoadmapVotes as bl, fetchPendingConfirmations as bm, fetchReactionStatus as bn, fetchRepoInventory as bo, fetchRoadmapVotes as bp, fetchSearchFilters as bq, fetchSearchProfiles as br, fetchSimilarProfiles as bs, fetchSkillSuggestions as bt, fetchStats as bu, fetchSuggestionCount as bv, fetchSuggestions as bw, fetchWipePreview as bx, followUser as by, getAdminReviewQueues as bz, type AccountCheckResult as c, unsetExternalAccountPrimary as c0, updateExternalAccount as c1, updateOrgProfile as c2, updateProfileLocation as c3, updateProfileOverride as c4, updateProfileSelf as c5, updateSkill as c6, updateSkillSubCategories as c7, uploadAvatar as c8, verifyExternalAccount as c9, verifyOrgDomain as ca, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
1659
+ export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a, createExternalAccount as a$, type MyGithubPullRequestsResponse as a0, type OrgClaimBinding as a1, type OrgClaimResult as a2, type OrgDomainChallengeResult as a3, type OrgDomainVerifyResult as a4, type OrgNotificationEmailAddResult as a5, type OrgNotificationEmailRemoveResult as a6, type OrgProfileEcho as a7, type OrgProfileUpdateResult as a8, type PdsWipeOutcome as a9, type SifaQueryKey as aA, type SimilarProfile as aB, type SkillSearchResult as aC, type StatsResponse as aD, type SubCategoryBulkResult as aE, type SuggestionProfile as aF, type SuggestionsResponse as aG, type UpdateProfileOverrideInput as aH, type UpdateProfileSelfInput as aI, type UploadAvatarResult as aJ, type VerifyExternalAccountResult as aK, type WipePreview as aL, addFeatureAllowlist as aM, addOrgNotificationEmail as aN, apiFetch as aO, apiFetchOrNull as aP, apiWrite as aQ, apiWriteCreate as aR, bulkHideProfileItems as aS, bulkHideStandardPublications as aT, bulkUnhideProfileItems as aU, bulkUnhideStandardPublications as aV, castRoadmapVote as aW, checkAppAccount as aX, confirmEndorsement as aY, createConfirmation as aZ, createEndorsement as a_, type PendingConfirmation as aa, type PendingConfirmationsPage as ab, type ProfileIndustryInput as ac, type ProfileLocationAddress as ad, type ProfileLocationInput as ae, type ProfileSearchResult as af, type ProfileSelfLocation as ag, QUOTED_POSTS_BATCH_MAX as ah, type QuotedPostAuthor as ai, type QuotedPostImage as aj, type QuotedPostResult as ak, type QuotedPostView as al, type ReactionError as am, type ReactionResult as an, type ReactionStatus as ao, type RefreshOrcidPublicationsResult as ap, type RefreshPdsResult as aq, type RepoDeleteInput as ar, type ResetProfileResult as as, type ResolveQuotedPostsOptions as at, type RoadmapVoteError as au, type RoadmapVoteResult as av, type RoadmapVoter as aw, type RoadmapVotesResponse as ax, type SearchFilters as ay, type SearchResponse as az, type ConfirmEndorsementResult as b, unhideStandardPublication as b$, createProfileLocation as b0, createReaction as b1, createSkill as b2, deleteAccount as b3, deleteAvatarOverride as b4, deleteExternalAccount as b5, deleteProfileLocation as b6, deleteReaction as b7, deleteRepoRecords as b8, deleteSkill as b9, getBlueskySuggestions as bA, getFollowers as bB, getFollowing as bC, getFollowingFeed as bD, getMutuals as bE, hideOrcidPublication as bF, hideProfileItem as bG, hideSifaPublication as bH, hideStandardPublication as bI, listFeatureAllowlist as bJ, refreshOrcidPublications as bK, refreshPds as bL, removeFeatureAllowlist as bM, removeOrgNotificationEmail as bN, repoExportUrl as bO, requestOrgDomainChallenge as bP, resetProfile as bQ, resolveQuotedPosts as bR, retractRoadmapVote as bS, revokeConfirmation as bT, searchSkills as bU, setExternalAccountPrimary as bV, submitOrgClaim as bW, unfollowUser as bX, unhideOrcidPublication as bY, unhideProfileItem as bZ, unhideSifaPublication as b_, dismissConfirmation as ba, fetchActivityFeed as bb, fetchActivityTeaser as bc, fetchAppsRegistry as bd, fetchExternalAccounts as be, fetchFeaturedProfile as bf, fetchFollowing as bg, fetchGivenConfirmations as bh, fetchHeatmapData as bi, fetchHiddenApps as bj, fetchMyGithubPullRequests as bk, fetchMyRoadmapVotes as bl, fetchPendingConfirmations as bm, fetchReactionStatus as bn, fetchRepoInventory as bo, fetchRoadmapVotes as bp, fetchSearchFilters as bq, fetchSearchProfiles as br, fetchSimilarProfiles as bs, fetchSkillSuggestions as bt, fetchStats as bu, fetchSuggestionCount as bv, fetchSuggestions as bw, fetchWipePreview as bx, followUser as by, getAdminReviewQueues as bz, type AccountCheckResult as c, unsetExternalAccountPrimary as c0, updateExternalAccount as c1, updateOrgProfile as c2, updateProfileLocation as c3, updateProfileOverride as c4, updateProfileSelf as c5, updateSkill as c6, updateSkillSubCategories as c7, uploadAvatar as c8, verifyExternalAccount as c9, verifyOrgDomain as ca, type CompanySearchFilters as cb, type CompanySearchResponse as cc, type CompanySearchResult as cd, fetchSearchCompanies as ce, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
@@ -650,12 +650,46 @@ interface FilterOptions {
650
650
  count: number;
651
651
  }[];
652
652
  }
653
+ /** Company entry returned by company search (workspace#299). */
654
+ interface CompanySearchResult {
655
+ /** Immutable catalogue id; the durable `/c/{publicId}` link. */
656
+ publicId: string;
657
+ name: string;
658
+ domain: string | null;
659
+ country: string | null;
660
+ industry: string | null;
661
+ logoUrl: string | null;
662
+ employeeCount: number | null;
663
+ }
664
+ interface CompanySearchFilters {
665
+ q?: string;
666
+ /** ISO 3166-1 alpha-2. */
667
+ country?: string;
668
+ industry?: string;
669
+ limit?: number;
670
+ }
671
+ interface CompanySearchResponse {
672
+ results: CompanySearchResult[];
673
+ hasMore: boolean;
674
+ }
653
675
  /**
654
676
  * Search profiles by free-text query and optional filters. Returns an
655
677
  * empty result set when no filters are provided (matching sifa-web's
656
678
  * "no input, no fetch" behavior).
657
679
  */
658
680
  declare function fetchSearchProfiles(config: SifaApiConfig, filters: SearchFilters, options?: ApiFetchOptions): Promise<SearchResponse>;
681
+ /**
682
+ * Company search over the entity catalogue (workspace#299).
683
+ *
684
+ * A category of its own rather than part of profile search: the two rank
685
+ * differently and carry different filters, and a slow category should not hold
686
+ * up the rest of a blended results page.
687
+ *
688
+ * An empty query returns nothing without a network call. The API rejects a
689
+ * blank `q` rather than scanning ~200k rows, so asking would only spend a round
690
+ * trip to be told no.
691
+ */
692
+ declare function fetchSearchCompanies(config: SifaApiConfig, filters: CompanySearchFilters, options?: ApiFetchOptions): Promise<CompanySearchResponse>;
659
693
  /**
660
694
  * Skill typeahead. Returns up to 8 matches for the given prefix. Empty
661
695
  * input returns an empty array without hitting the server.
@@ -1442,6 +1476,7 @@ declare const sifaQueryKeys: {
1442
1476
  readonly search: {
1443
1477
  readonly all: () => readonly ["sifa", "search"];
1444
1478
  readonly profiles: (filters: Record<string, unknown>) => readonly ["sifa", "search", "profiles", Record<string, unknown>];
1479
+ readonly companies: (filters: Record<string, unknown>) => readonly ["sifa", "search", "companies", Record<string, unknown>];
1445
1480
  readonly skills: (query: string) => readonly ["sifa", "search", "skills", string];
1446
1481
  readonly canonicalSkills: (query: string, limit: number) => readonly ["sifa", "search", "canonical-skills", string, number];
1447
1482
  readonly filters: () => readonly ["sifa", "search", "filters"];
@@ -1621,4 +1656,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
1621
1656
  */
1622
1657
  declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1623
1658
 
1624
- export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a, createExternalAccount as a$, type MyGithubPullRequestsResponse as a0, type OrgClaimBinding as a1, type OrgClaimResult as a2, type OrgDomainChallengeResult as a3, type OrgDomainVerifyResult as a4, type OrgNotificationEmailAddResult as a5, type OrgNotificationEmailRemoveResult as a6, type OrgProfileEcho as a7, type OrgProfileUpdateResult as a8, type PdsWipeOutcome as a9, type SifaQueryKey as aA, type SimilarProfile as aB, type SkillSearchResult as aC, type StatsResponse as aD, type SubCategoryBulkResult as aE, type SuggestionProfile as aF, type SuggestionsResponse as aG, type UpdateProfileOverrideInput as aH, type UpdateProfileSelfInput as aI, type UploadAvatarResult as aJ, type VerifyExternalAccountResult as aK, type WipePreview as aL, addFeatureAllowlist as aM, addOrgNotificationEmail as aN, apiFetch as aO, apiFetchOrNull as aP, apiWrite as aQ, apiWriteCreate as aR, bulkHideProfileItems as aS, bulkHideStandardPublications as aT, bulkUnhideProfileItems as aU, bulkUnhideStandardPublications as aV, castRoadmapVote as aW, checkAppAccount as aX, confirmEndorsement as aY, createConfirmation as aZ, createEndorsement as a_, type PendingConfirmation as aa, type PendingConfirmationsPage as ab, type ProfileIndustryInput as ac, type ProfileLocationAddress as ad, type ProfileLocationInput as ae, type ProfileSearchResult as af, type ProfileSelfLocation as ag, QUOTED_POSTS_BATCH_MAX as ah, type QuotedPostAuthor as ai, type QuotedPostImage as aj, type QuotedPostResult as ak, type QuotedPostView as al, type ReactionError as am, type ReactionResult as an, type ReactionStatus as ao, type RefreshOrcidPublicationsResult as ap, type RefreshPdsResult as aq, type RepoDeleteInput as ar, type ResetProfileResult as as, type ResolveQuotedPostsOptions as at, type RoadmapVoteError as au, type RoadmapVoteResult as av, type RoadmapVoter as aw, type RoadmapVotesResponse as ax, type SearchFilters as ay, type SearchResponse as az, type ConfirmEndorsementResult as b, unhideStandardPublication as b$, createProfileLocation as b0, createReaction as b1, createSkill as b2, deleteAccount as b3, deleteAvatarOverride as b4, deleteExternalAccount as b5, deleteProfileLocation as b6, deleteReaction as b7, deleteRepoRecords as b8, deleteSkill as b9, getBlueskySuggestions as bA, getFollowers as bB, getFollowing as bC, getFollowingFeed as bD, getMutuals as bE, hideOrcidPublication as bF, hideProfileItem as bG, hideSifaPublication as bH, hideStandardPublication as bI, listFeatureAllowlist as bJ, refreshOrcidPublications as bK, refreshPds as bL, removeFeatureAllowlist as bM, removeOrgNotificationEmail as bN, repoExportUrl as bO, requestOrgDomainChallenge as bP, resetProfile as bQ, resolveQuotedPosts as bR, retractRoadmapVote as bS, revokeConfirmation as bT, searchSkills as bU, setExternalAccountPrimary as bV, submitOrgClaim as bW, unfollowUser as bX, unhideOrcidPublication as bY, unhideProfileItem as bZ, unhideSifaPublication as b_, dismissConfirmation as ba, fetchActivityFeed as bb, fetchActivityTeaser as bc, fetchAppsRegistry as bd, fetchExternalAccounts as be, fetchFeaturedProfile as bf, fetchFollowing as bg, fetchGivenConfirmations as bh, fetchHeatmapData as bi, fetchHiddenApps as bj, fetchMyGithubPullRequests as bk, fetchMyRoadmapVotes as bl, fetchPendingConfirmations as bm, fetchReactionStatus as bn, fetchRepoInventory as bo, fetchRoadmapVotes as bp, fetchSearchFilters as bq, fetchSearchProfiles as br, fetchSimilarProfiles as bs, fetchSkillSuggestions as bt, fetchStats as bu, fetchSuggestionCount as bv, fetchSuggestions as bw, fetchWipePreview as bx, followUser as by, getAdminReviewQueues as bz, type AccountCheckResult as c, unsetExternalAccountPrimary as c0, updateExternalAccount as c1, updateOrgProfile as c2, updateProfileLocation as c3, updateProfileOverride as c4, updateProfileSelf as c5, updateSkill as c6, updateSkillSubCategories as c7, uploadAvatar as c8, verifyExternalAccount as c9, verifyOrgDomain as ca, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
1659
+ export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a, createExternalAccount as a$, type MyGithubPullRequestsResponse as a0, type OrgClaimBinding as a1, type OrgClaimResult as a2, type OrgDomainChallengeResult as a3, type OrgDomainVerifyResult as a4, type OrgNotificationEmailAddResult as a5, type OrgNotificationEmailRemoveResult as a6, type OrgProfileEcho as a7, type OrgProfileUpdateResult as a8, type PdsWipeOutcome as a9, type SifaQueryKey as aA, type SimilarProfile as aB, type SkillSearchResult as aC, type StatsResponse as aD, type SubCategoryBulkResult as aE, type SuggestionProfile as aF, type SuggestionsResponse as aG, type UpdateProfileOverrideInput as aH, type UpdateProfileSelfInput as aI, type UploadAvatarResult as aJ, type VerifyExternalAccountResult as aK, type WipePreview as aL, addFeatureAllowlist as aM, addOrgNotificationEmail as aN, apiFetch as aO, apiFetchOrNull as aP, apiWrite as aQ, apiWriteCreate as aR, bulkHideProfileItems as aS, bulkHideStandardPublications as aT, bulkUnhideProfileItems as aU, bulkUnhideStandardPublications as aV, castRoadmapVote as aW, checkAppAccount as aX, confirmEndorsement as aY, createConfirmation as aZ, createEndorsement as a_, type PendingConfirmation as aa, type PendingConfirmationsPage as ab, type ProfileIndustryInput as ac, type ProfileLocationAddress as ad, type ProfileLocationInput as ae, type ProfileSearchResult as af, type ProfileSelfLocation as ag, QUOTED_POSTS_BATCH_MAX as ah, type QuotedPostAuthor as ai, type QuotedPostImage as aj, type QuotedPostResult as ak, type QuotedPostView as al, type ReactionError as am, type ReactionResult as an, type ReactionStatus as ao, type RefreshOrcidPublicationsResult as ap, type RefreshPdsResult as aq, type RepoDeleteInput as ar, type ResetProfileResult as as, type ResolveQuotedPostsOptions as at, type RoadmapVoteError as au, type RoadmapVoteResult as av, type RoadmapVoter as aw, type RoadmapVotesResponse as ax, type SearchFilters as ay, type SearchResponse as az, type ConfirmEndorsementResult as b, unhideStandardPublication as b$, createProfileLocation as b0, createReaction as b1, createSkill as b2, deleteAccount as b3, deleteAvatarOverride as b4, deleteExternalAccount as b5, deleteProfileLocation as b6, deleteReaction as b7, deleteRepoRecords as b8, deleteSkill as b9, getBlueskySuggestions as bA, getFollowers as bB, getFollowing as bC, getFollowingFeed as bD, getMutuals as bE, hideOrcidPublication as bF, hideProfileItem as bG, hideSifaPublication as bH, hideStandardPublication as bI, listFeatureAllowlist as bJ, refreshOrcidPublications as bK, refreshPds as bL, removeFeatureAllowlist as bM, removeOrgNotificationEmail as bN, repoExportUrl as bO, requestOrgDomainChallenge as bP, resetProfile as bQ, resolveQuotedPosts as bR, retractRoadmapVote as bS, revokeConfirmation as bT, searchSkills as bU, setExternalAccountPrimary as bV, submitOrgClaim as bW, unfollowUser as bX, unhideOrcidPublication as bY, unhideProfileItem as bZ, unhideSifaPublication as b_, dismissConfirmation as ba, fetchActivityFeed as bb, fetchActivityTeaser as bc, fetchAppsRegistry as bd, fetchExternalAccounts as be, fetchFeaturedProfile as bf, fetchFollowing as bg, fetchGivenConfirmations as bh, fetchHeatmapData as bi, fetchHiddenApps as bj, fetchMyGithubPullRequests as bk, fetchMyRoadmapVotes as bl, fetchPendingConfirmations as bm, fetchReactionStatus as bn, fetchRepoInventory as bo, fetchRoadmapVotes as bp, fetchSearchFilters as bq, fetchSearchProfiles as br, fetchSimilarProfiles as bs, fetchSkillSuggestions as bt, fetchStats as bu, fetchSuggestionCount as bv, fetchSuggestions as bw, fetchWipePreview as bx, followUser as by, getAdminReviewQueues as bz, type AccountCheckResult as c, unsetExternalAccountPrimary as c0, updateExternalAccount as c1, updateOrgProfile as c2, updateProfileLocation as c3, updateProfileOverride as c4, updateProfileSelf as c5, updateSkill as c6, updateSkillSubCategories as c7, uploadAvatar as c8, verifyExternalAccount as c9, verifyOrgDomain as ca, type CompanySearchFilters as cb, type CompanySearchResponse as cc, type CompanySearchResult as cd, fetchSearchCompanies as ce, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
@@ -601,6 +601,7 @@ async function fetchHiddenApps(config, options = {}) {
601
601
  // src/query/fetchers/search.ts
602
602
  var EMPTY_SEARCH = { profiles: [], total: 0, limit: 20, offset: 0 };
603
603
  var EMPTY_FILTERS = { countries: [], industries: [], apps: [], openTo: [] };
604
+ var EMPTY_COMPANY_SEARCH = { results: [], hasMore: false };
604
605
  async function fetchSearchProfiles(config, filters, options = {}) {
605
606
  const params = new URLSearchParams();
606
607
  if (filters.q) params.set("q", filters.q);
@@ -622,6 +623,18 @@ async function fetchSearchProfiles(config, filters, options = {}) {
622
623
  ...options
623
624
  });
624
625
  }
626
+ async function fetchSearchCompanies(config, filters, options = {}) {
627
+ const q = filters.q?.trim();
628
+ if (!q) return EMPTY_COMPANY_SEARCH;
629
+ const params = new URLSearchParams({ q });
630
+ if (filters.country) params.set("country", filters.country);
631
+ if (filters.industry) params.set("industry", filters.industry);
632
+ if (filters.limit !== void 0) params.set("limit", String(filters.limit));
633
+ return apiFetch(config, `/api/search/companies?${params.toString()}`, {
634
+ cache: "no-store",
635
+ ...options
636
+ });
637
+ }
625
638
  async function fetchSkillSuggestions(config, query, options = {}) {
626
639
  if (!query.trim()) return [];
627
640
  const path = `/api/search/skills?q=${encodeURIComponent(query)}&limit=8`;
@@ -1457,6 +1470,7 @@ var sifaQueryKeys = {
1457
1470
  search: {
1458
1471
  all: () => ["sifa", "search"],
1459
1472
  profiles: (filters) => ["sifa", "search", "profiles", filters],
1473
+ companies: (filters) => ["sifa", "search", "companies", filters],
1460
1474
  skills: (query) => ["sifa", "search", "skills", query],
1461
1475
  canonicalSkills: (query, limit) => ["sifa", "search", "canonical-skills", query, limit],
1462
1476
  filters: () => ["sifa", "search", "filters"]
@@ -1749,6 +1763,7 @@ exports.fetchProfileSummary = fetchProfileSummary;
1749
1763
  exports.fetchReactionStatus = fetchReactionStatus;
1750
1764
  exports.fetchRepoInventory = fetchRepoInventory;
1751
1765
  exports.fetchRoadmapVotes = fetchRoadmapVotes;
1766
+ exports.fetchSearchCompanies = fetchSearchCompanies;
1752
1767
  exports.fetchSearchFilters = fetchSearchFilters;
1753
1768
  exports.fetchSearchProfiles = fetchSearchProfiles;
1754
1769
  exports.fetchSimilarProfiles = fetchSimilarProfiles;