@singi-labs/sifa-sdk 0.19.6 → 0.19.7
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/{network-map-ZV2UJZ3c.d.ts → network-map-BXpm9LIk.d.ts} +1 -1
- package/dist/{network-map-DtmFGMeM.d.cts → network-map-DUIEbJf9.d.cts} +1 -1
- package/dist/{org-eHZkLNx1.d.cts → org-Bfrfa9sD.d.cts} +33 -2
- package/dist/{org-CvJVOYuN.d.ts → org-H2bPqXeC.d.ts} +33 -2
- package/dist/query/fetchers/index.cjs +2 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/fetchers/index.js +2 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +6 -2
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +6 -2
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +6 -2
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +5 -5
- package/dist/query/index.d.ts +5 -5
- package/dist/query/index.js +6 -2
- package/dist/query/index.js.map +1 -1
- package/dist/{use-org-notification-emails-BZiMeD75.d.ts → use-org-notification-emails-CTFwRc0O.d.ts} +2 -2
- package/dist/{use-org-notification-emails-GNUX9-5y.d.cts → use-org-notification-emails-utRDdmt0.d.cts} +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6447,7 +6447,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6447
6447
|
}
|
|
6448
6448
|
|
|
6449
6449
|
// src/index.ts
|
|
6450
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
6450
|
+
var SIFA_SDK_VERSION = "0.19.7";
|
|
6451
6451
|
|
|
6452
6452
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
6453
6453
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
package/dist/index.js
CHANGED
|
@@ -6445,7 +6445,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6445
6445
|
}
|
|
6446
6446
|
|
|
6447
6447
|
// src/index.ts
|
|
6448
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
6448
|
+
var SIFA_SDK_VERSION = "0.19.7";
|
|
6449
6449
|
|
|
6450
6450
|
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, PUBLICATION_TYPE_LABELS, PUBLICATION_TYPE_OPTIONS, 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, SELF_APP_ID, SIFA_REPO_GROUPS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, actorShowsIdentity, agentRefSchema, atUriSchema, buildMetaDescription, buildProfileHighlights, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countRecentActivity, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, describeSifaRecord, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, excludeSelfApp, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDisplayUrl, formatDistanceToNow, formatEventDate, formatLocation, formatPresentationDuration, formatRelativeTime, formatSingleDate, formatSpanDate, 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, getPublicationTypeLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isOnBehalfOfApplicable, isPseudoEmployer, isRegistrableDomainHandle, isRoleLineRedundant, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, locationSegments, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeDoi, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeSkillCategory, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryFlagged, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, rendersCompanyProfile, rendersPersonalProfile, repoGroupForCollection, resolveAccountFacetMode, resolveAgentRef, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, shouldRenderHighlights, 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 };
|
|
6451
6451
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as Profile, d as ProfilePosition, S as SkillRef, w as PresentationLinkView } from './index-HgcjpMWO.js';
|
|
2
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
2
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-H2bPqXeC.js';
|
|
3
3
|
import { n as ProfileView } from './types-CX9OttHr.js';
|
|
4
4
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-FpWgNDBB.js';
|
|
5
5
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, l as EntitySelectRequest, n as EntitySelectResponse } from './follow-profile-D1l6pulB.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as Profile, d as ProfilePosition, S as SkillRef, w as PresentationLinkView } from './index-DDlGa7CO.cjs';
|
|
2
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
2
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-Bfrfa9sD.cjs';
|
|
3
3
|
import { n as ProfileView } from './types-D1Nt3rqN.cjs';
|
|
4
4
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-Cv8TmIe0.cjs';
|
|
5
5
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, l as EntitySelectRequest, n as EntitySelectResponse } from './follow-profile-D1l6pulB.cjs';
|
|
@@ -1290,17 +1290,48 @@ interface FetchFollowListOptions extends ApiFetchOptions {
|
|
|
1290
1290
|
declare function getFollowers(config: SifaApiConfig, handle: string, opts?: FetchFollowListOptions): Promise<FollowListPage>;
|
|
1291
1291
|
/** Paginated list of who `handle` follows. */
|
|
1292
1292
|
declare function getFollowing(config: SifaApiConfig, handle: string, opts?: FetchFollowListOptions): Promise<FollowListPage>;
|
|
1293
|
+
/** One app the viewer's network is active on, for the feed's source tabs. */
|
|
1294
|
+
interface FollowingFeedApp {
|
|
1295
|
+
/** Registry app id, e.g. `tangled`. Pass back as {@link FetchFollowingFeedOptions.app}. */
|
|
1296
|
+
id: string;
|
|
1297
|
+
name: string;
|
|
1298
|
+
/** Summed recent activity across the network; the tab ordering. */
|
|
1299
|
+
count: number;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Why a following-feed page came back empty. Lets a client say something true
|
|
1303
|
+
* per case instead of one catch-all sentence, and point at the right next step.
|
|
1304
|
+
*/
|
|
1305
|
+
type FollowingFeedEmptyReason = 'no_follows' | 'no_visible_follows' | 'no_cross_app_activity' | 'no_recent_records' | 'all_hidden' | 'nothing_renderable' | 'hydration_failed';
|
|
1293
1306
|
/** Options for {@link fetchFollowingFeed}. */
|
|
1294
1307
|
interface FetchFollowingFeedOptions extends ApiFetchOptions {
|
|
1295
1308
|
limit?: number;
|
|
1296
1309
|
/**
|
|
1297
1310
|
* Opt in to the viewer's Bluesky activity too. Off by default: the point of
|
|
1298
1311
|
* the feed is what connections do on OTHER apps.
|
|
1312
|
+
*
|
|
1313
|
+
* Ignored when {@link app} is set, since a source tab selects one app.
|
|
1299
1314
|
*/
|
|
1300
1315
|
includeBluesky?: boolean;
|
|
1316
|
+
/**
|
|
1317
|
+
* Restrict the page to one app (a registry id from the response's `apps`).
|
|
1318
|
+
* This is what a source tab selects. `app: 'bluesky'` selects Bluesky even
|
|
1319
|
+
* though it is excluded from the default mixed view.
|
|
1320
|
+
*/
|
|
1321
|
+
app?: string;
|
|
1301
1322
|
/** Forward a `Cookie` header on Next.js RSC server-side calls (web). */
|
|
1302
1323
|
cookieHeader?: string;
|
|
1303
1324
|
}
|
|
1325
|
+
/** The following feed's response: an activity feed plus its tab metadata. */
|
|
1326
|
+
interface FollowingFeedResponse extends ActivityFeedResponse {
|
|
1327
|
+
/**
|
|
1328
|
+
* Apps the viewer's network is actually active on, most active first.
|
|
1329
|
+
* Present on empty pages too, so a client's tabs survive a quiet tab.
|
|
1330
|
+
*/
|
|
1331
|
+
apps?: FollowingFeedApp[];
|
|
1332
|
+
/** Set only when `items` is empty. */
|
|
1333
|
+
reason?: FollowingFeedEmptyReason;
|
|
1334
|
+
}
|
|
1304
1335
|
/**
|
|
1305
1336
|
* The viewer's cross-app following feed: what OTHER apps their connections use
|
|
1306
1337
|
* (Tangled, WhiteWind, Smoke Signal, ...) — Bluesky is excluded server-side by
|
|
@@ -1312,7 +1343,7 @@ interface FetchFollowingFeedOptions extends ApiFetchOptions {
|
|
|
1312
1343
|
* session cookie (`credentials: 'include'`). Returns `null` on error. v1 is a
|
|
1313
1344
|
* finite first page (no cursor yet).
|
|
1314
1345
|
*/
|
|
1315
|
-
declare function fetchFollowingFeed(config: SifaApiConfig, opts?: FetchFollowingFeedOptions): Promise<
|
|
1346
|
+
declare function fetchFollowingFeed(config: SifaApiConfig, opts?: FetchFollowingFeedOptions): Promise<FollowingFeedResponse | null>;
|
|
1316
1347
|
|
|
1317
1348
|
/**
|
|
1318
1349
|
* Options shared by the cursor-paginated follow-graph endpoints introduced in
|
|
@@ -1938,4 +1969,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1938
1969
|
*/
|
|
1939
1970
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1940
1971
|
|
|
1941
|
-
export {
|
|
1972
|
+
export { type GetAdminReviewQueuesOptions 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 FetchFollowingFeedOptions as G, type FetchHiddenActivityItemsOptions as H, type FetchHiddenAppsOptions as I, type FetchInboxCountsOptions as J, type FetchMyGithubPullRequestsOptions as K, type FetchMyRoadmapVotesOptions as L, type FetchProfileCompletenessOptions as M, type FetchReactionStatusOptions as N, type FetchSuggestionsOptions as O, type FetchUnlinkedPositionsOptions as P, type FilterOptions as Q, type FollowListPage as R, type SifaApiConfig as S, type FollowProfile as T, type FollowProfilePageResponse as U, type FollowUserResult as V, type WriteResult as W, type FollowingFeedApp as X, type FollowingFeedEmptyReason as Y, type FollowingFeedResponse as Z, type FollowingResponse as _, type ConfirmEndorsementInput as a, type UnlinkedPositionsResult as a$, type GithubPullRequest as a0, type GivenConfirmation as a1, HIDDEN_ITEM_SOURCES as a2, HIDDEN_ITEM_TYPES as a3, type HeatmapDay as a4, type HeatmapResponse as a5, type HiddenActivityItem as a6, type HiddenApp as a7, type HiddenItemSource as a8, type HiddenItemType as a9, type QuotedPostAuthor as aA, type QuotedPostImage as aB, type QuotedPostResult as aC, type QuotedPostView as aD, type ReactionError as aE, type ReactionResult as aF, type ReactionStatus as aG, type RefreshOrcidPublicationsResult as aH, type RefreshPdsResult as aI, type RepoDeleteInput as aJ, type ResetProfileResult as aK, type ResolveQuotedPostsOptions as aL, type RoadmapVoteError as aM, type RoadmapVoteResult as aN, type RoadmapVoter as aO, type RoadmapVotesResponse as aP, type SearchFilters as aQ, type SearchResponse as aR, type SifaQueryKey as aS, type SimilarProfile as aT, type SkillSearchResult as aU, type StatsResponse as aV, type SubCategoryBulkResult as aW, type SuggestionProfile as aX, type SuggestionsResponse as aY, type UnhideActivityItemInput as aZ, type UnlinkedPosition as a_, type HideActivityItemInput as aa, type HideProfileItemInput as ab, type InboxCounts as ac, type ListFeatureAllowlistOptions as ad, type MyGithubPullRequestsResponse as ae, type OrgClaimBinding as af, type OrgClaimResult as ag, type OrgDomainChallengeResult as ah, type OrgDomainVerifyResult as ai, type OrgNotificationEmailAddResult as aj, type OrgNotificationEmailRemoveResult as ak, type OrgProfileEcho as al, type OrgProfileUpdateResult as am, PROFILE_COMPLETENESS_SIGNALS as an, type PdsWipeOutcome as ao, type PendingConfirmation as ap, type PendingConfirmationsPage as aq, type PrimarySection as ar, type ProfileCompleteness as as, type ProfileCompletenessSignal as at, type ProfileIndustryInput as au, type ProfileLocationAddress as av, type ProfileLocationInput as aw, type ProfileSearchResult as ax, type ProfileSelfLocation as ay, QUOTED_POSTS_BATCH_MAX as az, type ConfirmEndorsementResult as b, fetchWipePreview as b$, type UpdateProfileOverrideInput as b0, type UpdateProfileSelfInput as b1, type UploadAvatarResult as b2, type UploadPronunciationAudioResult as b3, type VerifyExternalAccountResult as b4, type WipePreview as b5, addFeatureAllowlist as b6, addOrgNotificationEmail as b7, apiFetch as b8, apiFetchOrNull as b9, fetchActivityFeed as bA, fetchActivityTeaser as bB, fetchAppsRegistry as bC, fetchExternalAccounts as bD, fetchFeaturedProfile as bE, fetchFollowing as bF, fetchFollowingFeed as bG, fetchGivenConfirmations as bH, fetchHeatmapData as bI, fetchHiddenActivityItems as bJ, fetchHiddenApps as bK, fetchInboxCounts as bL, fetchMyGithubPullRequests as bM, fetchMyRoadmapVotes as bN, fetchPendingConfirmations as bO, fetchProfileCompleteness as bP, fetchReactionStatus as bQ, fetchRepoInventory as bR, fetchRoadmapVotes as bS, fetchSearchFilters as bT, fetchSearchProfiles as bU, fetchSimilarProfiles as bV, fetchSkillSuggestions as bW, fetchStats as bX, fetchSuggestionCount as bY, fetchSuggestions as bZ, fetchUnlinkedPositions as b_, apiWrite as ba, apiWriteCreate as bb, bulkHideProfileItems as bc, bulkHideStandardPublications as bd, bulkUnhideProfileItems as be, bulkUnhideStandardPublications as bf, castRoadmapVote as bg, checkAppAccount as bh, confirmEndorsement as bi, createConfirmation as bj, createEndorsement as bk, createExternalAccount as bl, createProfileLocation as bm, createReaction as bn, createSkill as bo, deleteAccount as bp, deleteAvatarOverride as bq, deleteExternalAccount as br, deleteNamePronunciationAudio as bs, deleteProfileLocation as bt, deleteReaction as bu, deleteRepoRecords as bv, deleteSkill as bw, dismissConfirmation as bx, dismissUnlinkedPosition as by, fetchAccounts as bz, type AccountCheckResult as c, followUser as c0, getAdminReviewQueues as c1, getBlueskySuggestions as c2, getFollowers as c3, getFollowing as c4, getMutuals as c5, hideActivityItem as c6, hideOrcidPublication as c7, hideProfileItem as c8, hideSifaPublication as c9, updateOrgProfile as cA, updateProfileLocation as cB, updateProfileOverride as cC, updateProfileSelf as cD, updateSkill as cE, updateSkillSubCategories as cF, uploadAvatar as cG, uploadNamePronunciationAudio as cH, verifyExternalAccount as cI, verifyOrgDomain as cJ, type CompanySearchFilters as cK, type CompanySearchResponse as cL, type CompanySearchResult as cM, fetchSearchCompanies as cN, hideStandardPublication as ca, listFeatureAllowlist as cb, refreshOrcidPublications as cc, refreshPds as cd, removeFeatureAllowlist as ce, removeOrgNotificationEmail as cf, repoExportUrl as cg, requestOrgDomainChallenge as ch, resetProfile as ci, resolveQuotedPosts as cj, retractRoadmapVote as ck, revokeConfirmation as cl, searchSkills as cm, setExternalAccountPrimary as cn, setSectionPrimary as co, submitOrgClaim as cp, switchAccount as cq, unfollowUser as cr, unhideActivityItem as cs, unhideOrcidPublication as ct, unhideProfileItem as cu, unhideSifaPublication as cv, unhideStandardPublication as cw, unsetExternalAccountPrimary as cx, unsetSectionPrimary as cy, updateExternalAccount as cz, type AccountSummary as d, type ActivityFeedResponse as e, type ActivityItem as f, type ActivityItemLinkHealth as g, type ActivityTeaserResponse as h, type AdminReviewQueues as i, ApiError as j, type AppRegistryEntry as k, type CastRoadmapVoteResult as l, type CheckAppAccountOptions as m, type ConfirmationInput as n, type ConfirmationSubjectInput as o, type CreateExternalAccountResult as p, type DismissUnlinkedPositionInput as q, type ExternalAccountInput as r, sifaQueryKeys as s, type FeaturedProfile as t, type FetchAccountsOptions as u, type FetchActivityFeedOptions as v, type FetchActivityTeaserOptions as w, type FetchConfirmationsOptions as x, type FetchFollowListOptions as y, type FetchFollowProfilePageOptions as z };
|
|
@@ -1290,17 +1290,48 @@ interface FetchFollowListOptions extends ApiFetchOptions {
|
|
|
1290
1290
|
declare function getFollowers(config: SifaApiConfig, handle: string, opts?: FetchFollowListOptions): Promise<FollowListPage>;
|
|
1291
1291
|
/** Paginated list of who `handle` follows. */
|
|
1292
1292
|
declare function getFollowing(config: SifaApiConfig, handle: string, opts?: FetchFollowListOptions): Promise<FollowListPage>;
|
|
1293
|
+
/** One app the viewer's network is active on, for the feed's source tabs. */
|
|
1294
|
+
interface FollowingFeedApp {
|
|
1295
|
+
/** Registry app id, e.g. `tangled`. Pass back as {@link FetchFollowingFeedOptions.app}. */
|
|
1296
|
+
id: string;
|
|
1297
|
+
name: string;
|
|
1298
|
+
/** Summed recent activity across the network; the tab ordering. */
|
|
1299
|
+
count: number;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Why a following-feed page came back empty. Lets a client say something true
|
|
1303
|
+
* per case instead of one catch-all sentence, and point at the right next step.
|
|
1304
|
+
*/
|
|
1305
|
+
type FollowingFeedEmptyReason = 'no_follows' | 'no_visible_follows' | 'no_cross_app_activity' | 'no_recent_records' | 'all_hidden' | 'nothing_renderable' | 'hydration_failed';
|
|
1293
1306
|
/** Options for {@link fetchFollowingFeed}. */
|
|
1294
1307
|
interface FetchFollowingFeedOptions extends ApiFetchOptions {
|
|
1295
1308
|
limit?: number;
|
|
1296
1309
|
/**
|
|
1297
1310
|
* Opt in to the viewer's Bluesky activity too. Off by default: the point of
|
|
1298
1311
|
* the feed is what connections do on OTHER apps.
|
|
1312
|
+
*
|
|
1313
|
+
* Ignored when {@link app} is set, since a source tab selects one app.
|
|
1299
1314
|
*/
|
|
1300
1315
|
includeBluesky?: boolean;
|
|
1316
|
+
/**
|
|
1317
|
+
* Restrict the page to one app (a registry id from the response's `apps`).
|
|
1318
|
+
* This is what a source tab selects. `app: 'bluesky'` selects Bluesky even
|
|
1319
|
+
* though it is excluded from the default mixed view.
|
|
1320
|
+
*/
|
|
1321
|
+
app?: string;
|
|
1301
1322
|
/** Forward a `Cookie` header on Next.js RSC server-side calls (web). */
|
|
1302
1323
|
cookieHeader?: string;
|
|
1303
1324
|
}
|
|
1325
|
+
/** The following feed's response: an activity feed plus its tab metadata. */
|
|
1326
|
+
interface FollowingFeedResponse extends ActivityFeedResponse {
|
|
1327
|
+
/**
|
|
1328
|
+
* Apps the viewer's network is actually active on, most active first.
|
|
1329
|
+
* Present on empty pages too, so a client's tabs survive a quiet tab.
|
|
1330
|
+
*/
|
|
1331
|
+
apps?: FollowingFeedApp[];
|
|
1332
|
+
/** Set only when `items` is empty. */
|
|
1333
|
+
reason?: FollowingFeedEmptyReason;
|
|
1334
|
+
}
|
|
1304
1335
|
/**
|
|
1305
1336
|
* The viewer's cross-app following feed: what OTHER apps their connections use
|
|
1306
1337
|
* (Tangled, WhiteWind, Smoke Signal, ...) — Bluesky is excluded server-side by
|
|
@@ -1312,7 +1343,7 @@ interface FetchFollowingFeedOptions extends ApiFetchOptions {
|
|
|
1312
1343
|
* session cookie (`credentials: 'include'`). Returns `null` on error. v1 is a
|
|
1313
1344
|
* finite first page (no cursor yet).
|
|
1314
1345
|
*/
|
|
1315
|
-
declare function fetchFollowingFeed(config: SifaApiConfig, opts?: FetchFollowingFeedOptions): Promise<
|
|
1346
|
+
declare function fetchFollowingFeed(config: SifaApiConfig, opts?: FetchFollowingFeedOptions): Promise<FollowingFeedResponse | null>;
|
|
1316
1347
|
|
|
1317
1348
|
/**
|
|
1318
1349
|
* Options shared by the cursor-paginated follow-graph endpoints introduced in
|
|
@@ -1938,4 +1969,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1938
1969
|
*/
|
|
1939
1970
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1940
1971
|
|
|
1941
|
-
export {
|
|
1972
|
+
export { type GetAdminReviewQueuesOptions 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 FetchFollowingFeedOptions as G, type FetchHiddenActivityItemsOptions as H, type FetchHiddenAppsOptions as I, type FetchInboxCountsOptions as J, type FetchMyGithubPullRequestsOptions as K, type FetchMyRoadmapVotesOptions as L, type FetchProfileCompletenessOptions as M, type FetchReactionStatusOptions as N, type FetchSuggestionsOptions as O, type FetchUnlinkedPositionsOptions as P, type FilterOptions as Q, type FollowListPage as R, type SifaApiConfig as S, type FollowProfile as T, type FollowProfilePageResponse as U, type FollowUserResult as V, type WriteResult as W, type FollowingFeedApp as X, type FollowingFeedEmptyReason as Y, type FollowingFeedResponse as Z, type FollowingResponse as _, type ConfirmEndorsementInput as a, type UnlinkedPositionsResult as a$, type GithubPullRequest as a0, type GivenConfirmation as a1, HIDDEN_ITEM_SOURCES as a2, HIDDEN_ITEM_TYPES as a3, type HeatmapDay as a4, type HeatmapResponse as a5, type HiddenActivityItem as a6, type HiddenApp as a7, type HiddenItemSource as a8, type HiddenItemType as a9, type QuotedPostAuthor as aA, type QuotedPostImage as aB, type QuotedPostResult as aC, type QuotedPostView as aD, type ReactionError as aE, type ReactionResult as aF, type ReactionStatus as aG, type RefreshOrcidPublicationsResult as aH, type RefreshPdsResult as aI, type RepoDeleteInput as aJ, type ResetProfileResult as aK, type ResolveQuotedPostsOptions as aL, type RoadmapVoteError as aM, type RoadmapVoteResult as aN, type RoadmapVoter as aO, type RoadmapVotesResponse as aP, type SearchFilters as aQ, type SearchResponse as aR, type SifaQueryKey as aS, type SimilarProfile as aT, type SkillSearchResult as aU, type StatsResponse as aV, type SubCategoryBulkResult as aW, type SuggestionProfile as aX, type SuggestionsResponse as aY, type UnhideActivityItemInput as aZ, type UnlinkedPosition as a_, type HideActivityItemInput as aa, type HideProfileItemInput as ab, type InboxCounts as ac, type ListFeatureAllowlistOptions as ad, type MyGithubPullRequestsResponse as ae, type OrgClaimBinding as af, type OrgClaimResult as ag, type OrgDomainChallengeResult as ah, type OrgDomainVerifyResult as ai, type OrgNotificationEmailAddResult as aj, type OrgNotificationEmailRemoveResult as ak, type OrgProfileEcho as al, type OrgProfileUpdateResult as am, PROFILE_COMPLETENESS_SIGNALS as an, type PdsWipeOutcome as ao, type PendingConfirmation as ap, type PendingConfirmationsPage as aq, type PrimarySection as ar, type ProfileCompleteness as as, type ProfileCompletenessSignal as at, type ProfileIndustryInput as au, type ProfileLocationAddress as av, type ProfileLocationInput as aw, type ProfileSearchResult as ax, type ProfileSelfLocation as ay, QUOTED_POSTS_BATCH_MAX as az, type ConfirmEndorsementResult as b, fetchWipePreview as b$, type UpdateProfileOverrideInput as b0, type UpdateProfileSelfInput as b1, type UploadAvatarResult as b2, type UploadPronunciationAudioResult as b3, type VerifyExternalAccountResult as b4, type WipePreview as b5, addFeatureAllowlist as b6, addOrgNotificationEmail as b7, apiFetch as b8, apiFetchOrNull as b9, fetchActivityFeed as bA, fetchActivityTeaser as bB, fetchAppsRegistry as bC, fetchExternalAccounts as bD, fetchFeaturedProfile as bE, fetchFollowing as bF, fetchFollowingFeed as bG, fetchGivenConfirmations as bH, fetchHeatmapData as bI, fetchHiddenActivityItems as bJ, fetchHiddenApps as bK, fetchInboxCounts as bL, fetchMyGithubPullRequests as bM, fetchMyRoadmapVotes as bN, fetchPendingConfirmations as bO, fetchProfileCompleteness as bP, fetchReactionStatus as bQ, fetchRepoInventory as bR, fetchRoadmapVotes as bS, fetchSearchFilters as bT, fetchSearchProfiles as bU, fetchSimilarProfiles as bV, fetchSkillSuggestions as bW, fetchStats as bX, fetchSuggestionCount as bY, fetchSuggestions as bZ, fetchUnlinkedPositions as b_, apiWrite as ba, apiWriteCreate as bb, bulkHideProfileItems as bc, bulkHideStandardPublications as bd, bulkUnhideProfileItems as be, bulkUnhideStandardPublications as bf, castRoadmapVote as bg, checkAppAccount as bh, confirmEndorsement as bi, createConfirmation as bj, createEndorsement as bk, createExternalAccount as bl, createProfileLocation as bm, createReaction as bn, createSkill as bo, deleteAccount as bp, deleteAvatarOverride as bq, deleteExternalAccount as br, deleteNamePronunciationAudio as bs, deleteProfileLocation as bt, deleteReaction as bu, deleteRepoRecords as bv, deleteSkill as bw, dismissConfirmation as bx, dismissUnlinkedPosition as by, fetchAccounts as bz, type AccountCheckResult as c, followUser as c0, getAdminReviewQueues as c1, getBlueskySuggestions as c2, getFollowers as c3, getFollowing as c4, getMutuals as c5, hideActivityItem as c6, hideOrcidPublication as c7, hideProfileItem as c8, hideSifaPublication as c9, updateOrgProfile as cA, updateProfileLocation as cB, updateProfileOverride as cC, updateProfileSelf as cD, updateSkill as cE, updateSkillSubCategories as cF, uploadAvatar as cG, uploadNamePronunciationAudio as cH, verifyExternalAccount as cI, verifyOrgDomain as cJ, type CompanySearchFilters as cK, type CompanySearchResponse as cL, type CompanySearchResult as cM, fetchSearchCompanies as cN, hideStandardPublication as ca, listFeatureAllowlist as cb, refreshOrcidPublications as cc, refreshPds as cd, removeFeatureAllowlist as ce, removeOrgNotificationEmail as cf, repoExportUrl as cg, requestOrgDomainChallenge as ch, resetProfile as ci, resolveQuotedPosts as cj, retractRoadmapVote as ck, revokeConfirmation as cl, searchSkills as cm, setExternalAccountPrimary as cn, setSectionPrimary as co, submitOrgClaim as cp, switchAccount as cq, unfollowUser as cr, unhideActivityItem as cs, unhideOrcidPublication as ct, unhideProfileItem as cu, unhideSifaPublication as cv, unhideStandardPublication as cw, unsetExternalAccountPrimary as cx, unsetSectionPrimary as cy, updateExternalAccount as cz, type AccountSummary as d, type ActivityFeedResponse as e, type ActivityItem as f, type ActivityItemLinkHealth as g, type ActivityTeaserResponse as h, type AdminReviewQueues as i, ApiError as j, type AppRegistryEntry as k, type CastRoadmapVoteResult as l, type CheckAppAccountOptions as m, type ConfirmationInput as n, type ConfirmationSubjectInput as o, type CreateExternalAccountResult as p, type DismissUnlinkedPositionInput as q, type ExternalAccountInput as r, sifaQueryKeys as s, type FeaturedProfile as t, type FetchAccountsOptions as u, type FetchActivityFeedOptions as v, type FetchActivityTeaserOptions as w, type FetchConfirmationsOptions as x, type FetchFollowListOptions as y, type FetchFollowProfilePageOptions as z };
|
|
@@ -1061,7 +1061,8 @@ var FOLLOWING_FEED_LXM = "id.sifa.feed.getFollowingFeed";
|
|
|
1061
1061
|
async function fetchFollowingFeed(config, opts = {}) {
|
|
1062
1062
|
const params = new URLSearchParams();
|
|
1063
1063
|
if (opts.limit) params.set("limit", String(opts.limit));
|
|
1064
|
-
if (opts.
|
|
1064
|
+
if (opts.app) params.set("app", opts.app);
|
|
1065
|
+
else if (opts.includeBluesky) params.set("includeBluesky", "true");
|
|
1065
1066
|
const qs = params.toString();
|
|
1066
1067
|
const headers = { ...opts.headers ?? {} };
|
|
1067
1068
|
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|