@singi-labs/sifa-sdk 0.12.27 → 0.12.28

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.
@@ -1,6 +1,6 @@
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-CQMDMN58.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, aw as UpdateProfileOverrideInput, ax as UpdateProfileSelfInput, ay as UploadAvatarResult, j as CreateResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, az as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, av as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-CLRdUB1W.js';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
6
  import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, M as OrgFloorVerdict } from './adult-content-DdY7S5nN.js';
@@ -531,6 +531,29 @@ declare function useHeatmapData(handleOrDid: string | undefined | null, days: nu
531
531
  declare function useActivityTeaser(handleOrDid: string | undefined | null, options?: Omit<UseQueryOptions<ActivityTeaserResponse | null, Error, ActivityTeaserResponse | null, ReturnType<typeof sifaQueryKeys.activity.teaser>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityTeaserResponse | null>, Error>;
532
532
  declare function useActivityFeed(handleOrDid: string | undefined | null, opts?: Pick<FetchActivityFeedOptions, 'category' | 'limit' | 'cursor'>, options?: Omit<UseQueryOptions<ActivityFeedResponse | null, Error, ActivityFeedResponse | null, ReturnType<typeof sifaQueryKeys.activity.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityFeedResponse | null>, Error>;
533
533
 
534
+ interface UseMyGithubPullRequestsParams {
535
+ limit?: number;
536
+ offset?: number;
537
+ }
538
+ /**
539
+ * The authenticated viewer's own ingested merged PRs (newest first). Auth-scoped
540
+ * via the session cookie. Backs the sifa-web GitHub importer (issue #302).
541
+ */
542
+ declare function useMyGithubPullRequests(params?: UseMyGithubPullRequestsParams, options?: Omit<UseQueryOptions<MyGithubPullRequestsResponse, Error, MyGithubPullRequestsResponse, ReturnType<typeof sifaQueryKeys.github.myPullRequests>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<{
543
+ items: {
544
+ prNumber: number;
545
+ repoOwner: string;
546
+ repoName: string;
547
+ title: string;
548
+ url: string;
549
+ language: string | null;
550
+ additions: number;
551
+ deletions: number;
552
+ mergedAt: string;
553
+ }[];
554
+ hasMore: boolean;
555
+ }>, Error>;
556
+
534
557
  /** Count of confirmed endorsements for a DID. Returns 0 on error. */
535
558
  declare function useEndorsementCount(did: string | undefined | null, options?: Omit<UseQueryOptions<number, Error, number, ReturnType<typeof sifaQueryKeys.endorsement.count>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<number, Error>;
536
559
 
@@ -700,4 +723,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
700
723
  email: string;
701
724
  }, unknown>;
702
725
 
703
- export { useFeatureAllowlist as $, type AddFeatureAllowlistVariables as A, useCreateExternalAccount as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreatePosition as E, type FollowVariables as F, useCreateProfileLocation as G, useCreateReaction as H, useCreateRecord as I, useCreateSkill as J, useDebouncedValue as K, useDeleteAccount as L, useDeleteAvatarOverride as M, useDeleteEducation as N, useDeleteExternalAccount as O, type PositionSkillLinkVariables as P, useDeletePosition as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteProfileLocation as T, type UnfollowVariables as U, useDeleteReaction as V, useDeleteRecord as W, useDeleteSkill as X, useEndorsementCount as Y, useEntitySearch as Z, useExternalAccounts as _, type CreateRecordVariables as a, useUpdateRecord as a$, useFeaturedProfile as a0, useFollow as a1, useFollowers as a2, useFollowing as a3, useFollowingFeed as a4, useFollowingList as a5, useGetProfileView as a6, useHeatmapData as a7, useHiddenApps as a8, useHideKeytraceClaim as a9, useSearchProfiles as aA, useSelectEntity as aB, useSetExternalAccountPrimary as aC, useSetPositionPrimary as aD, useSifaConfig as aE, useSimilarProfiles as aF, useSkillSuggestions as aG, useStats as aH, useSuggestionCount as aI, useSuggestions as aJ, useUnfollow as aK, useUnhideKeytraceClaim as aL, useUnhideOrcidPublication as aM, useUnhideProfileItem as aN, useUnhideSifaPublication as aO, useUnhideStandardPublication as aP, useUnlinkSkillFromPosition as aQ, useUnrevealMarqueDomain as aR, useUnsetExternalAccountPrimary as aS, useUnsetPositionPrimary as aT, useUpdateEducation as aU, useUpdateExternalAccount as aV, useUpdateOrgProfile as aW, useUpdatePosition as aX, useUpdateProfileLocation as aY, useUpdateProfileOverride as aZ, useUpdateProfileSelf as a_, useHideOrcidPublication as aa, useHideProfileItem as ab, useHideSifaPublication as ac, useHideStandardPublication as ad, useImportSearchEntities as ae, useLinkSkillToPosition as af, useMintEntityDomain as ag, useMutuals as ah, useMyRoadmapVotes as ai, useNetworkStreamCount as aj, useOrgClaim as ak, useOrgDomainChallenge as al, useOrgDomainVerify as am, useOrgProfile as an, useProfile as ao, useReactionStatus as ap, useRefreshOrcidPublications as aq, useRefreshPds as ar, useRemoveFeatureAllowlist as as, useRemoveOrgNotificationEmail as at, useResetProfile as au, useResolveEntityDomain as av, useRetractRoadmapVote as aw, useRevealMarqueDomain as ax, useRoadmapVotes as ay, useSearchFilters as az, type DeleteRecordVariables as b, useUpdateSkill as b0, useUploadAvatar as b1, useVerifyExternalAccount as b2, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillVariables as i, type UseEntitySearchOptions as j, useActivityTeaser as k, useAddFeatureAllowlist as l, useAddOrgNotificationEmail as m, useAppAccountCheck as n, useAppsRegistry as o, useAtFundLink as p, useBlueskySuggestions as q, useBulkHideProfileItems as r, useBulkHideStandardPublications as s, useBulkUnhideProfileItems as t, useActivityFeed as u, useBulkUnhideStandardPublications as v, useCanonicalSkillSearch as w, useCastRoadmapVote as x, useCreateEducation as y, useCreateEndorsement as z };
726
+ export { useExternalAccounts as $, type AddFeatureAllowlistVariables as A, useCreateEndorsement as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateExternalAccount as E, type FollowVariables as F, useCreatePosition as G, useCreateProfileLocation as H, useCreateReaction as I, useCreateRecord as J, useCreateSkill as K, useDebouncedValue as L, useDeleteAccount as M, useDeleteAvatarOverride as N, useDeleteEducation as O, type PositionSkillLinkVariables as P, useDeleteExternalAccount as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeletePosition as T, type UnfollowVariables as U, useDeleteProfileLocation as V, useDeleteReaction as W, useDeleteRecord as X, useDeleteSkill as Y, useEndorsementCount as Z, useEntitySearch as _, type CreateRecordVariables as a, useUpdateProfileOverride as a$, useFeatureAllowlist as a0, useFeaturedProfile as a1, useFollow as a2, useFollowers as a3, useFollowing as a4, useFollowingFeed as a5, useFollowingList as a6, useGetProfileView as a7, useHeatmapData as a8, useHiddenApps as a9, useRoadmapVotes as aA, useSearchFilters as aB, useSearchProfiles as aC, useSelectEntity as aD, useSetExternalAccountPrimary as aE, useSetPositionPrimary as aF, useSifaConfig as aG, useSimilarProfiles as aH, useSkillSuggestions as aI, useStats as aJ, useSuggestionCount as aK, useSuggestions as aL, useUnfollow as aM, useUnhideKeytraceClaim as aN, useUnhideOrcidPublication as aO, useUnhideProfileItem as aP, useUnhideSifaPublication as aQ, useUnhideStandardPublication as aR, useUnlinkSkillFromPosition as aS, useUnrevealMarqueDomain as aT, useUnsetExternalAccountPrimary as aU, useUnsetPositionPrimary as aV, useUpdateEducation as aW, useUpdateExternalAccount as aX, useUpdateOrgProfile as aY, useUpdatePosition as aZ, useUpdateProfileLocation as a_, useHideKeytraceClaim as aa, useHideOrcidPublication as ab, useHideProfileItem as ac, useHideSifaPublication as ad, useHideStandardPublication as ae, useImportSearchEntities as af, useLinkSkillToPosition as ag, useMintEntityDomain as ah, useMutuals as ai, useMyGithubPullRequests as aj, useMyRoadmapVotes as ak, useNetworkStreamCount as al, useOrgClaim as am, useOrgDomainChallenge as an, useOrgDomainVerify as ao, useOrgProfile as ap, useProfile as aq, useReactionStatus as ar, useRefreshOrcidPublications as as, useRefreshPds as at, useRemoveFeatureAllowlist as au, useRemoveOrgNotificationEmail as av, useResetProfile as aw, useResolveEntityDomain as ax, useRetractRoadmapVote as ay, useRevealMarqueDomain as az, type DeleteRecordVariables as b, useUpdateProfileSelf as b0, useUpdateRecord as b1, useUpdateSkill as b2, useUploadAvatar as b3, useVerifyExternalAccount as b4, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillVariables as i, type UseEntitySearchOptions as j, type UseMyGithubPullRequestsParams as k, useActivityTeaser as l, useAddFeatureAllowlist as m, useAddOrgNotificationEmail as n, useAppAccountCheck as o, useAppsRegistry as p, useAtFundLink as q, useBlueskySuggestions as r, useBulkHideProfileItems as s, useBulkHideStandardPublications as t, useActivityFeed as u, useBulkUnhideProfileItems as v, useBulkUnhideStandardPublications as w, useCanonicalSkillSearch as x, useCastRoadmapVote as y, useCreateEducation as z };
@@ -1,4 +1,4 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-DVIvsT_0.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-Dme1VvNa.cjs';
2
2
  import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef } from './adult-content-DdY7S5nN.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
  import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DjRf3Snf.cjs';
@@ -1,6 +1,6 @@
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-DVIvsT_0.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, aw as UpdateProfileOverrideInput, ax as UpdateProfileSelfInput, ay as UploadAvatarResult, j as CreateResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, az as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, av as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-Dme1VvNa.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
6
  import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, M as OrgFloorVerdict } from './adult-content-DdY7S5nN.cjs';
@@ -531,6 +531,29 @@ declare function useHeatmapData(handleOrDid: string | undefined | null, days: nu
531
531
  declare function useActivityTeaser(handleOrDid: string | undefined | null, options?: Omit<UseQueryOptions<ActivityTeaserResponse | null, Error, ActivityTeaserResponse | null, ReturnType<typeof sifaQueryKeys.activity.teaser>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityTeaserResponse | null>, Error>;
532
532
  declare function useActivityFeed(handleOrDid: string | undefined | null, opts?: Pick<FetchActivityFeedOptions, 'category' | 'limit' | 'cursor'>, options?: Omit<UseQueryOptions<ActivityFeedResponse | null, Error, ActivityFeedResponse | null, ReturnType<typeof sifaQueryKeys.activity.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityFeedResponse | null>, Error>;
533
533
 
534
+ interface UseMyGithubPullRequestsParams {
535
+ limit?: number;
536
+ offset?: number;
537
+ }
538
+ /**
539
+ * The authenticated viewer's own ingested merged PRs (newest first). Auth-scoped
540
+ * via the session cookie. Backs the sifa-web GitHub importer (issue #302).
541
+ */
542
+ declare function useMyGithubPullRequests(params?: UseMyGithubPullRequestsParams, options?: Omit<UseQueryOptions<MyGithubPullRequestsResponse, Error, MyGithubPullRequestsResponse, ReturnType<typeof sifaQueryKeys.github.myPullRequests>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<{
543
+ items: {
544
+ prNumber: number;
545
+ repoOwner: string;
546
+ repoName: string;
547
+ title: string;
548
+ url: string;
549
+ language: string | null;
550
+ additions: number;
551
+ deletions: number;
552
+ mergedAt: string;
553
+ }[];
554
+ hasMore: boolean;
555
+ }>, Error>;
556
+
534
557
  /** Count of confirmed endorsements for a DID. Returns 0 on error. */
535
558
  declare function useEndorsementCount(did: string | undefined | null, options?: Omit<UseQueryOptions<number, Error, number, ReturnType<typeof sifaQueryKeys.endorsement.count>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<number, Error>;
536
559
 
@@ -700,4 +723,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
700
723
  email: string;
701
724
  }, unknown>;
702
725
 
703
- export { useFeatureAllowlist as $, type AddFeatureAllowlistVariables as A, useCreateExternalAccount as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreatePosition as E, type FollowVariables as F, useCreateProfileLocation as G, useCreateReaction as H, useCreateRecord as I, useCreateSkill as J, useDebouncedValue as K, useDeleteAccount as L, useDeleteAvatarOverride as M, useDeleteEducation as N, useDeleteExternalAccount as O, type PositionSkillLinkVariables as P, useDeletePosition as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteProfileLocation as T, type UnfollowVariables as U, useDeleteReaction as V, useDeleteRecord as W, useDeleteSkill as X, useEndorsementCount as Y, useEntitySearch as Z, useExternalAccounts as _, type CreateRecordVariables as a, useUpdateRecord as a$, useFeaturedProfile as a0, useFollow as a1, useFollowers as a2, useFollowing as a3, useFollowingFeed as a4, useFollowingList as a5, useGetProfileView as a6, useHeatmapData as a7, useHiddenApps as a8, useHideKeytraceClaim as a9, useSearchProfiles as aA, useSelectEntity as aB, useSetExternalAccountPrimary as aC, useSetPositionPrimary as aD, useSifaConfig as aE, useSimilarProfiles as aF, useSkillSuggestions as aG, useStats as aH, useSuggestionCount as aI, useSuggestions as aJ, useUnfollow as aK, useUnhideKeytraceClaim as aL, useUnhideOrcidPublication as aM, useUnhideProfileItem as aN, useUnhideSifaPublication as aO, useUnhideStandardPublication as aP, useUnlinkSkillFromPosition as aQ, useUnrevealMarqueDomain as aR, useUnsetExternalAccountPrimary as aS, useUnsetPositionPrimary as aT, useUpdateEducation as aU, useUpdateExternalAccount as aV, useUpdateOrgProfile as aW, useUpdatePosition as aX, useUpdateProfileLocation as aY, useUpdateProfileOverride as aZ, useUpdateProfileSelf as a_, useHideOrcidPublication as aa, useHideProfileItem as ab, useHideSifaPublication as ac, useHideStandardPublication as ad, useImportSearchEntities as ae, useLinkSkillToPosition as af, useMintEntityDomain as ag, useMutuals as ah, useMyRoadmapVotes as ai, useNetworkStreamCount as aj, useOrgClaim as ak, useOrgDomainChallenge as al, useOrgDomainVerify as am, useOrgProfile as an, useProfile as ao, useReactionStatus as ap, useRefreshOrcidPublications as aq, useRefreshPds as ar, useRemoveFeatureAllowlist as as, useRemoveOrgNotificationEmail as at, useResetProfile as au, useResolveEntityDomain as av, useRetractRoadmapVote as aw, useRevealMarqueDomain as ax, useRoadmapVotes as ay, useSearchFilters as az, type DeleteRecordVariables as b, useUpdateSkill as b0, useUploadAvatar as b1, useVerifyExternalAccount as b2, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillVariables as i, type UseEntitySearchOptions as j, useActivityTeaser as k, useAddFeatureAllowlist as l, useAddOrgNotificationEmail as m, useAppAccountCheck as n, useAppsRegistry as o, useAtFundLink as p, useBlueskySuggestions as q, useBulkHideProfileItems as r, useBulkHideStandardPublications as s, useBulkUnhideProfileItems as t, useActivityFeed as u, useBulkUnhideStandardPublications as v, useCanonicalSkillSearch as w, useCastRoadmapVote as x, useCreateEducation as y, useCreateEndorsement as z };
726
+ export { useExternalAccounts as $, type AddFeatureAllowlistVariables as A, useCreateEndorsement as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateExternalAccount as E, type FollowVariables as F, useCreatePosition as G, useCreateProfileLocation as H, useCreateReaction as I, useCreateRecord as J, useCreateSkill as K, useDebouncedValue as L, useDeleteAccount as M, useDeleteAvatarOverride as N, useDeleteEducation as O, type PositionSkillLinkVariables as P, useDeleteExternalAccount as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeletePosition as T, type UnfollowVariables as U, useDeleteProfileLocation as V, useDeleteReaction as W, useDeleteRecord as X, useDeleteSkill as Y, useEndorsementCount as Z, useEntitySearch as _, type CreateRecordVariables as a, useUpdateProfileOverride as a$, useFeatureAllowlist as a0, useFeaturedProfile as a1, useFollow as a2, useFollowers as a3, useFollowing as a4, useFollowingFeed as a5, useFollowingList as a6, useGetProfileView as a7, useHeatmapData as a8, useHiddenApps as a9, useRoadmapVotes as aA, useSearchFilters as aB, useSearchProfiles as aC, useSelectEntity as aD, useSetExternalAccountPrimary as aE, useSetPositionPrimary as aF, useSifaConfig as aG, useSimilarProfiles as aH, useSkillSuggestions as aI, useStats as aJ, useSuggestionCount as aK, useSuggestions as aL, useUnfollow as aM, useUnhideKeytraceClaim as aN, useUnhideOrcidPublication as aO, useUnhideProfileItem as aP, useUnhideSifaPublication as aQ, useUnhideStandardPublication as aR, useUnlinkSkillFromPosition as aS, useUnrevealMarqueDomain as aT, useUnsetExternalAccountPrimary as aU, useUnsetPositionPrimary as aV, useUpdateEducation as aW, useUpdateExternalAccount as aX, useUpdateOrgProfile as aY, useUpdatePosition as aZ, useUpdateProfileLocation as a_, useHideKeytraceClaim as aa, useHideOrcidPublication as ab, useHideProfileItem as ac, useHideSifaPublication as ad, useHideStandardPublication as ae, useImportSearchEntities as af, useLinkSkillToPosition as ag, useMintEntityDomain as ah, useMutuals as ai, useMyGithubPullRequests as aj, useMyRoadmapVotes as ak, useNetworkStreamCount as al, useOrgClaim as am, useOrgDomainChallenge as an, useOrgDomainVerify as ao, useOrgProfile as ap, useProfile as aq, useReactionStatus as ar, useRefreshOrcidPublications as as, useRefreshPds as at, useRemoveFeatureAllowlist as au, useRemoveOrgNotificationEmail as av, useResetProfile as aw, useResolveEntityDomain as ax, useRetractRoadmapVote as ay, useRevealMarqueDomain as az, type DeleteRecordVariables as b, useUpdateProfileSelf as b0, useUpdateRecord as b1, useUpdateSkill as b2, useUploadAvatar as b3, useVerifyExternalAccount as b4, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillVariables as i, type UseEntitySearchOptions as j, type UseMyGithubPullRequestsParams as k, useActivityTeaser as l, useAddFeatureAllowlist as m, useAddOrgNotificationEmail as n, useAppAccountCheck as o, useAppsRegistry as p, useAtFundLink as q, useBlueskySuggestions as r, useBulkHideProfileItems as s, useBulkHideStandardPublications as t, useActivityFeed as u, useBulkUnhideProfileItems as v, useBulkUnhideStandardPublications as w, useCanonicalSkillSearch as x, useCastRoadmapVote as y, useCreateEducation as z };
@@ -1,4 +1,4 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-CQMDMN58.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-CLRdUB1W.js';
2
2
  import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef } from './adult-content-DdY7S5nN.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
  import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-B9SuY-EU.js';
package/dist/index.cjs CHANGED
@@ -4693,7 +4693,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
4693
4693
  });
4694
4694
 
4695
4695
  // src/index.ts
4696
- var SIFA_SDK_VERSION = "0.12.27";
4696
+ var SIFA_SDK_VERSION = "0.12.28";
4697
4697
 
4698
4698
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
4699
4699
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
package/dist/index.js CHANGED
@@ -4691,7 +4691,7 @@ var ProfileVolunteeringRecordSchema = z.object({
4691
4691
  });
4692
4692
 
4693
4693
  // src/index.ts
4694
- var SIFA_SDK_VERSION = "0.12.27";
4694
+ var SIFA_SDK_VERSION = "0.12.28";
4695
4695
 
4696
4696
  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, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, MIN_SKILLS, 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_INVOLVEMENT_NSID, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SECTION_GROUPS, SECTION_LABELS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, 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, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, hasAdultContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, 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, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, 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 };
4697
4697
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,6 @@
1
1
  import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-DdY7S5nN.js';
2
2
  import { F as FollowFeedPage, a as FollowProfileItem, b as FeatureAllowlistEntry, c as FeatureFlag } from './feed-D2ZV8Eaj.js';
3
+ import { z } from 'zod';
3
4
  import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-CmaSX5ZI.js';
4
5
 
5
6
  /**
@@ -895,6 +896,50 @@ interface FetchActivityFeedOptions extends ApiFetchOptions {
895
896
  */
896
897
  declare function fetchActivityFeed(config: SifaApiConfig, handleOrDid: string, options?: FetchActivityFeedOptions): Promise<ActivityFeedResponse | null>;
897
898
 
899
+ /**
900
+ * A single merged pull request ingested from GitHub, as served by sifa-api's
901
+ * `GET /api/me/github/pull-requests`. Mirrors the `github_contributions` row.
902
+ */
903
+ declare const GithubPullRequestSchema: z.ZodObject<{
904
+ prNumber: z.ZodNumber;
905
+ repoOwner: z.ZodString;
906
+ repoName: z.ZodString;
907
+ title: z.ZodString;
908
+ url: z.ZodString;
909
+ language: z.ZodNullable<z.ZodString>;
910
+ additions: z.ZodNumber;
911
+ deletions: z.ZodNumber;
912
+ mergedAt: z.ZodString;
913
+ }, z.core.$strip>;
914
+ type GithubPullRequest = z.infer<typeof GithubPullRequestSchema>;
915
+ declare const MyGithubPullRequestsResponseSchema: z.ZodObject<{
916
+ items: z.ZodArray<z.ZodObject<{
917
+ prNumber: z.ZodNumber;
918
+ repoOwner: z.ZodString;
919
+ repoName: z.ZodString;
920
+ title: z.ZodString;
921
+ url: z.ZodString;
922
+ language: z.ZodNullable<z.ZodString>;
923
+ additions: z.ZodNumber;
924
+ deletions: z.ZodNumber;
925
+ mergedAt: z.ZodString;
926
+ }, z.core.$strip>>;
927
+ hasMore: z.ZodBoolean;
928
+ }, z.core.$strip>;
929
+ type MyGithubPullRequestsResponse = z.infer<typeof MyGithubPullRequestsResponseSchema>;
930
+ interface FetchMyGithubPullRequestsOptions extends ApiFetchOptions {
931
+ limit?: number;
932
+ offset?: number;
933
+ /** Forwarded as the `cookie` header for server-side (SSR) calls. */
934
+ cookieHeader?: string;
935
+ }
936
+ /**
937
+ * Fetch the authenticated viewer's own ingested merged PRs (newest first).
938
+ * Auth-scoped: relies on the session cookie (`credentials: 'include'`), so it
939
+ * returns the caller's PRs, not a public handle's. Backs the GitHub importer.
940
+ */
941
+ declare function fetchMyGithubPullRequests(config: SifaApiConfig, options?: FetchMyGithubPullRequestsOptions): Promise<MyGithubPullRequestsResponse>;
942
+
898
943
  /** Per-URI reaction state for the authenticated viewer. */
899
944
  interface ReactionStatus {
900
945
  reacted: boolean;
@@ -1160,6 +1205,16 @@ declare const sifaQueryKeys: {
1160
1205
  readonly teaser: (handleOrDid: string) => readonly ["sifa", "activity", "teaser", string];
1161
1206
  readonly feed: (handleOrDid: string, opts: Record<string, unknown>) => readonly ["sifa", "activity", "feed", string, Record<string, unknown>];
1162
1207
  };
1208
+ readonly github: {
1209
+ readonly all: () => readonly ["sifa", "github"];
1210
+ readonly myPullRequests: (opts: {
1211
+ limit?: number;
1212
+ offset?: number;
1213
+ }) => readonly ["sifa", "github", "my-pull-requests", {
1214
+ limit?: number;
1215
+ offset?: number;
1216
+ }];
1217
+ };
1163
1218
  readonly endorsement: {
1164
1219
  readonly all: () => readonly ["sifa", "endorsement"];
1165
1220
  readonly count: (did: string) => readonly ["sifa", "endorsement", "count", string];
@@ -1270,4 +1325,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
1270
1325
  */
1271
1326
  declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1272
1327
 
1273
- export { type PdsWipeOutcome as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowUserResult as G, type FollowingResponse as H, HIDDEN_ITEM_SOURCES as I, HIDDEN_ITEM_TYPES as J, type HeatmapDay as K, type HeatmapResponse as L, type HiddenApp as M, type HiddenItemSource as N, type HiddenItemType as O, type HideProfileItemInput as P, type ListFeatureAllowlistOptions as Q, type OrgClaimBinding as R, type SifaApiConfig as S, type OrgClaimResult as T, type OrgDomainChallengeResult as U, type OrgDomainVerifyResult as V, type WriteResult as W, type OrgNotificationEmailAddResult as X, type OrgNotificationEmailRemoveResult as Y, type OrgProfileEcho as Z, type OrgProfileUpdateResult as _, type AccountCheckResult as a, fetchReactionStatus as a$, type ProfileIndustryInput as a0, type ProfileLocationAddress as a1, type ProfileLocationInput as a2, type ProfileSearchResult as a3, type ProfileSelfLocation as a4, QUOTED_POSTS_BATCH_MAX as a5, type QuotedPostAuthor as a6, type QuotedPostImage as a7, type QuotedPostResult as a8, type QuotedPostView as a9, apiFetchOrNull as aA, apiWrite as aB, apiWriteCreate as aC, bulkHideProfileItems as aD, bulkHideStandardPublications as aE, bulkUnhideProfileItems as aF, bulkUnhideStandardPublications as aG, castRoadmapVote as aH, checkAppAccount as aI, createEndorsement as aJ, createExternalAccount as aK, createProfileLocation as aL, createReaction as aM, deleteAccount as aN, deleteAvatarOverride as aO, deleteExternalAccount as aP, deleteProfileLocation as aQ, deleteReaction as aR, fetchActivityFeed as aS, fetchActivityTeaser as aT, fetchAppsRegistry as aU, fetchExternalAccounts as aV, fetchFeaturedProfile as aW, fetchFollowing as aX, fetchHeatmapData as aY, fetchHiddenApps as aZ, fetchMyRoadmapVotes as a_, type ReactionError as aa, type ReactionResult as ab, type ReactionStatus as ac, type RefreshOrcidPublicationsResult as ad, type RefreshPdsResult as ae, type ResetProfileResult as af, type ResolveQuotedPostsOptions as ag, type RoadmapVoteError as ah, type RoadmapVoteResult as ai, type RoadmapVoter as aj, type RoadmapVotesResponse as ak, type SearchFilters as al, type SearchResponse as am, type SifaQueryKey as an, type SimilarProfile as ao, type SkillSearchResult as ap, type StatsResponse as aq, type SuggestionProfile as ar, type SuggestionsResponse as as, type UpdateProfileOverrideInput as at, type UpdateProfileSelfInput as au, type UploadAvatarResult as av, type VerifyExternalAccountResult as aw, addFeatureAllowlist as ax, addOrgNotificationEmail as ay, apiFetch as az, type ActivityFeedResponse as b, fetchRoadmapVotes as b0, fetchSearchFilters as b1, fetchSearchProfiles as b2, fetchSimilarProfiles as b3, fetchSkillSuggestions as b4, fetchStats as b5, fetchSuggestionCount as b6, fetchSuggestions as b7, followUser as b8, getBlueskySuggestions as b9, updateExternalAccount as bA, updateOrgProfile as bB, updateProfileLocation as bC, updateProfileOverride as bD, updateProfileSelf as bE, uploadAvatar as bF, verifyExternalAccount as bG, verifyOrgDomain as bH, getFollowers as ba, getFollowing as bb, getFollowingFeed as bc, getMutuals as bd, hideOrcidPublication as be, hideProfileItem as bf, hideSifaPublication as bg, hideStandardPublication as bh, listFeatureAllowlist as bi, refreshOrcidPublications as bj, refreshPds as bk, removeFeatureAllowlist as bl, removeOrgNotificationEmail as bm, requestOrgDomainChallenge as bn, resetProfile as bo, resolveQuotedPosts as bp, retractRoadmapVote as bq, searchSkills as br, setExternalAccountPrimary as bs, submitOrgClaim as bt, unfollowUser as bu, unhideOrcidPublication as bv, unhideProfileItem as bw, unhideSifaPublication as bx, unhideStandardPublication as by, unsetExternalAccountPrimary as bz, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyRoadmapVotesOptions as t, type FetchReactionStatusOptions as u, type FetchSuggestionsOptions as v, type FilterOptions as w, type FollowListPage as x, type FollowProfile as y, type FollowProfilePageResponse as z };
1328
+ export { type OrgNotificationEmailRemoveResult as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowProfilePageResponse as G, type FollowUserResult as H, type FollowingResponse as I, type GithubPullRequest as J, HIDDEN_ITEM_SOURCES as K, HIDDEN_ITEM_TYPES as L, type HeatmapDay as M, type HeatmapResponse as N, type HiddenApp as O, type HiddenItemSource as P, type HiddenItemType as Q, type HideProfileItemInput as R, type SifaApiConfig as S, type ListFeatureAllowlistOptions as T, type MyGithubPullRequestsResponse as U, type OrgClaimBinding as V, type WriteResult as W, type OrgClaimResult as X, type OrgDomainChallengeResult as Y, type OrgDomainVerifyResult as Z, type OrgNotificationEmailAddResult as _, type AccountCheckResult as a, fetchHeatmapData as a$, type OrgProfileEcho as a0, type OrgProfileUpdateResult as a1, type PdsWipeOutcome as a2, type ProfileIndustryInput as a3, type ProfileLocationAddress as a4, type ProfileLocationInput as a5, type ProfileSearchResult as a6, type ProfileSelfLocation as a7, QUOTED_POSTS_BATCH_MAX as a8, type QuotedPostAuthor as a9, addFeatureAllowlist as aA, addOrgNotificationEmail as aB, apiFetch as aC, apiFetchOrNull as aD, apiWrite as aE, apiWriteCreate as aF, bulkHideProfileItems as aG, bulkHideStandardPublications as aH, bulkUnhideProfileItems as aI, bulkUnhideStandardPublications as aJ, castRoadmapVote as aK, checkAppAccount as aL, createEndorsement as aM, createExternalAccount as aN, createProfileLocation as aO, createReaction as aP, deleteAccount as aQ, deleteAvatarOverride as aR, deleteExternalAccount as aS, deleteProfileLocation as aT, deleteReaction as aU, fetchActivityFeed as aV, fetchActivityTeaser as aW, fetchAppsRegistry as aX, fetchExternalAccounts as aY, fetchFeaturedProfile as aZ, fetchFollowing as a_, type QuotedPostImage as aa, type QuotedPostResult as ab, type QuotedPostView as ac, type ReactionError as ad, type ReactionResult as ae, type ReactionStatus as af, type RefreshOrcidPublicationsResult as ag, type RefreshPdsResult as ah, type ResetProfileResult as ai, type ResolveQuotedPostsOptions as aj, type RoadmapVoteError as ak, type RoadmapVoteResult as al, type RoadmapVoter as am, type RoadmapVotesResponse as an, type SearchFilters as ao, type SearchResponse as ap, type SifaQueryKey as aq, type SimilarProfile as ar, type SkillSearchResult as as, type StatsResponse as at, type SuggestionProfile as au, type SuggestionsResponse as av, type UpdateProfileOverrideInput as aw, type UpdateProfileSelfInput as ax, type UploadAvatarResult as ay, type VerifyExternalAccountResult as az, type ActivityFeedResponse as b, fetchHiddenApps as b0, fetchMyGithubPullRequests as b1, fetchMyRoadmapVotes as b2, fetchReactionStatus as b3, fetchRoadmapVotes as b4, fetchSearchFilters as b5, fetchSearchProfiles as b6, fetchSimilarProfiles as b7, fetchSkillSuggestions as b8, fetchStats as b9, unhideProfileItem as bA, unhideSifaPublication as bB, unhideStandardPublication as bC, unsetExternalAccountPrimary as bD, updateExternalAccount as bE, updateOrgProfile as bF, updateProfileLocation as bG, updateProfileOverride as bH, updateProfileSelf as bI, uploadAvatar as bJ, verifyExternalAccount as bK, verifyOrgDomain as bL, fetchSuggestionCount as ba, fetchSuggestions as bb, followUser as bc, getBlueskySuggestions as bd, getFollowers as be, getFollowing as bf, getFollowingFeed as bg, getMutuals as bh, hideOrcidPublication as bi, hideProfileItem as bj, hideSifaPublication as bk, hideStandardPublication as bl, listFeatureAllowlist as bm, refreshOrcidPublications as bn, refreshPds as bo, removeFeatureAllowlist as bp, removeOrgNotificationEmail as bq, requestOrgDomainChallenge as br, resetProfile as bs, resolveQuotedPosts as bt, retractRoadmapVote as bu, searchSkills as bv, setExternalAccountPrimary as bw, submitOrgClaim as bx, unfollowUser as by, unhideOrcidPublication as bz, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyGithubPullRequestsOptions as t, type FetchMyRoadmapVotesOptions as u, type FetchReactionStatusOptions as v, type FetchSuggestionsOptions as w, type FilterOptions as x, type FollowListPage as y, type FollowProfile as z };
@@ -1,5 +1,6 @@
1
1
  import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-DdY7S5nN.cjs';
2
2
  import { F as FollowFeedPage, a as FollowProfileItem, b as FeatureAllowlistEntry, c as FeatureFlag } from './feed-D2ZV8Eaj.cjs';
3
+ import { z } from 'zod';
3
4
  import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-CmaSX5ZI.cjs';
4
5
 
5
6
  /**
@@ -895,6 +896,50 @@ interface FetchActivityFeedOptions extends ApiFetchOptions {
895
896
  */
896
897
  declare function fetchActivityFeed(config: SifaApiConfig, handleOrDid: string, options?: FetchActivityFeedOptions): Promise<ActivityFeedResponse | null>;
897
898
 
899
+ /**
900
+ * A single merged pull request ingested from GitHub, as served by sifa-api's
901
+ * `GET /api/me/github/pull-requests`. Mirrors the `github_contributions` row.
902
+ */
903
+ declare const GithubPullRequestSchema: z.ZodObject<{
904
+ prNumber: z.ZodNumber;
905
+ repoOwner: z.ZodString;
906
+ repoName: z.ZodString;
907
+ title: z.ZodString;
908
+ url: z.ZodString;
909
+ language: z.ZodNullable<z.ZodString>;
910
+ additions: z.ZodNumber;
911
+ deletions: z.ZodNumber;
912
+ mergedAt: z.ZodString;
913
+ }, z.core.$strip>;
914
+ type GithubPullRequest = z.infer<typeof GithubPullRequestSchema>;
915
+ declare const MyGithubPullRequestsResponseSchema: z.ZodObject<{
916
+ items: z.ZodArray<z.ZodObject<{
917
+ prNumber: z.ZodNumber;
918
+ repoOwner: z.ZodString;
919
+ repoName: z.ZodString;
920
+ title: z.ZodString;
921
+ url: z.ZodString;
922
+ language: z.ZodNullable<z.ZodString>;
923
+ additions: z.ZodNumber;
924
+ deletions: z.ZodNumber;
925
+ mergedAt: z.ZodString;
926
+ }, z.core.$strip>>;
927
+ hasMore: z.ZodBoolean;
928
+ }, z.core.$strip>;
929
+ type MyGithubPullRequestsResponse = z.infer<typeof MyGithubPullRequestsResponseSchema>;
930
+ interface FetchMyGithubPullRequestsOptions extends ApiFetchOptions {
931
+ limit?: number;
932
+ offset?: number;
933
+ /** Forwarded as the `cookie` header for server-side (SSR) calls. */
934
+ cookieHeader?: string;
935
+ }
936
+ /**
937
+ * Fetch the authenticated viewer's own ingested merged PRs (newest first).
938
+ * Auth-scoped: relies on the session cookie (`credentials: 'include'`), so it
939
+ * returns the caller's PRs, not a public handle's. Backs the GitHub importer.
940
+ */
941
+ declare function fetchMyGithubPullRequests(config: SifaApiConfig, options?: FetchMyGithubPullRequestsOptions): Promise<MyGithubPullRequestsResponse>;
942
+
898
943
  /** Per-URI reaction state for the authenticated viewer. */
899
944
  interface ReactionStatus {
900
945
  reacted: boolean;
@@ -1160,6 +1205,16 @@ declare const sifaQueryKeys: {
1160
1205
  readonly teaser: (handleOrDid: string) => readonly ["sifa", "activity", "teaser", string];
1161
1206
  readonly feed: (handleOrDid: string, opts: Record<string, unknown>) => readonly ["sifa", "activity", "feed", string, Record<string, unknown>];
1162
1207
  };
1208
+ readonly github: {
1209
+ readonly all: () => readonly ["sifa", "github"];
1210
+ readonly myPullRequests: (opts: {
1211
+ limit?: number;
1212
+ offset?: number;
1213
+ }) => readonly ["sifa", "github", "my-pull-requests", {
1214
+ limit?: number;
1215
+ offset?: number;
1216
+ }];
1217
+ };
1163
1218
  readonly endorsement: {
1164
1219
  readonly all: () => readonly ["sifa", "endorsement"];
1165
1220
  readonly count: (did: string) => readonly ["sifa", "endorsement", "count", string];
@@ -1270,4 +1325,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
1270
1325
  */
1271
1326
  declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1272
1327
 
1273
- export { type PdsWipeOutcome as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowUserResult as G, type FollowingResponse as H, HIDDEN_ITEM_SOURCES as I, HIDDEN_ITEM_TYPES as J, type HeatmapDay as K, type HeatmapResponse as L, type HiddenApp as M, type HiddenItemSource as N, type HiddenItemType as O, type HideProfileItemInput as P, type ListFeatureAllowlistOptions as Q, type OrgClaimBinding as R, type SifaApiConfig as S, type OrgClaimResult as T, type OrgDomainChallengeResult as U, type OrgDomainVerifyResult as V, type WriteResult as W, type OrgNotificationEmailAddResult as X, type OrgNotificationEmailRemoveResult as Y, type OrgProfileEcho as Z, type OrgProfileUpdateResult as _, type AccountCheckResult as a, fetchReactionStatus as a$, type ProfileIndustryInput as a0, type ProfileLocationAddress as a1, type ProfileLocationInput as a2, type ProfileSearchResult as a3, type ProfileSelfLocation as a4, QUOTED_POSTS_BATCH_MAX as a5, type QuotedPostAuthor as a6, type QuotedPostImage as a7, type QuotedPostResult as a8, type QuotedPostView as a9, apiFetchOrNull as aA, apiWrite as aB, apiWriteCreate as aC, bulkHideProfileItems as aD, bulkHideStandardPublications as aE, bulkUnhideProfileItems as aF, bulkUnhideStandardPublications as aG, castRoadmapVote as aH, checkAppAccount as aI, createEndorsement as aJ, createExternalAccount as aK, createProfileLocation as aL, createReaction as aM, deleteAccount as aN, deleteAvatarOverride as aO, deleteExternalAccount as aP, deleteProfileLocation as aQ, deleteReaction as aR, fetchActivityFeed as aS, fetchActivityTeaser as aT, fetchAppsRegistry as aU, fetchExternalAccounts as aV, fetchFeaturedProfile as aW, fetchFollowing as aX, fetchHeatmapData as aY, fetchHiddenApps as aZ, fetchMyRoadmapVotes as a_, type ReactionError as aa, type ReactionResult as ab, type ReactionStatus as ac, type RefreshOrcidPublicationsResult as ad, type RefreshPdsResult as ae, type ResetProfileResult as af, type ResolveQuotedPostsOptions as ag, type RoadmapVoteError as ah, type RoadmapVoteResult as ai, type RoadmapVoter as aj, type RoadmapVotesResponse as ak, type SearchFilters as al, type SearchResponse as am, type SifaQueryKey as an, type SimilarProfile as ao, type SkillSearchResult as ap, type StatsResponse as aq, type SuggestionProfile as ar, type SuggestionsResponse as as, type UpdateProfileOverrideInput as at, type UpdateProfileSelfInput as au, type UploadAvatarResult as av, type VerifyExternalAccountResult as aw, addFeatureAllowlist as ax, addOrgNotificationEmail as ay, apiFetch as az, type ActivityFeedResponse as b, fetchRoadmapVotes as b0, fetchSearchFilters as b1, fetchSearchProfiles as b2, fetchSimilarProfiles as b3, fetchSkillSuggestions as b4, fetchStats as b5, fetchSuggestionCount as b6, fetchSuggestions as b7, followUser as b8, getBlueskySuggestions as b9, updateExternalAccount as bA, updateOrgProfile as bB, updateProfileLocation as bC, updateProfileOverride as bD, updateProfileSelf as bE, uploadAvatar as bF, verifyExternalAccount as bG, verifyOrgDomain as bH, getFollowers as ba, getFollowing as bb, getFollowingFeed as bc, getMutuals as bd, hideOrcidPublication as be, hideProfileItem as bf, hideSifaPublication as bg, hideStandardPublication as bh, listFeatureAllowlist as bi, refreshOrcidPublications as bj, refreshPds as bk, removeFeatureAllowlist as bl, removeOrgNotificationEmail as bm, requestOrgDomainChallenge as bn, resetProfile as bo, resolveQuotedPosts as bp, retractRoadmapVote as bq, searchSkills as br, setExternalAccountPrimary as bs, submitOrgClaim as bt, unfollowUser as bu, unhideOrcidPublication as bv, unhideProfileItem as bw, unhideSifaPublication as bx, unhideStandardPublication as by, unsetExternalAccountPrimary as bz, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyRoadmapVotesOptions as t, type FetchReactionStatusOptions as u, type FetchSuggestionsOptions as v, type FilterOptions as w, type FollowListPage as x, type FollowProfile as y, type FollowProfilePageResponse as z };
1328
+ export { type OrgNotificationEmailRemoveResult as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowProfilePageResponse as G, type FollowUserResult as H, type FollowingResponse as I, type GithubPullRequest as J, HIDDEN_ITEM_SOURCES as K, HIDDEN_ITEM_TYPES as L, type HeatmapDay as M, type HeatmapResponse as N, type HiddenApp as O, type HiddenItemSource as P, type HiddenItemType as Q, type HideProfileItemInput as R, type SifaApiConfig as S, type ListFeatureAllowlistOptions as T, type MyGithubPullRequestsResponse as U, type OrgClaimBinding as V, type WriteResult as W, type OrgClaimResult as X, type OrgDomainChallengeResult as Y, type OrgDomainVerifyResult as Z, type OrgNotificationEmailAddResult as _, type AccountCheckResult as a, fetchHeatmapData as a$, type OrgProfileEcho as a0, type OrgProfileUpdateResult as a1, type PdsWipeOutcome as a2, type ProfileIndustryInput as a3, type ProfileLocationAddress as a4, type ProfileLocationInput as a5, type ProfileSearchResult as a6, type ProfileSelfLocation as a7, QUOTED_POSTS_BATCH_MAX as a8, type QuotedPostAuthor as a9, addFeatureAllowlist as aA, addOrgNotificationEmail as aB, apiFetch as aC, apiFetchOrNull as aD, apiWrite as aE, apiWriteCreate as aF, bulkHideProfileItems as aG, bulkHideStandardPublications as aH, bulkUnhideProfileItems as aI, bulkUnhideStandardPublications as aJ, castRoadmapVote as aK, checkAppAccount as aL, createEndorsement as aM, createExternalAccount as aN, createProfileLocation as aO, createReaction as aP, deleteAccount as aQ, deleteAvatarOverride as aR, deleteExternalAccount as aS, deleteProfileLocation as aT, deleteReaction as aU, fetchActivityFeed as aV, fetchActivityTeaser as aW, fetchAppsRegistry as aX, fetchExternalAccounts as aY, fetchFeaturedProfile as aZ, fetchFollowing as a_, type QuotedPostImage as aa, type QuotedPostResult as ab, type QuotedPostView as ac, type ReactionError as ad, type ReactionResult as ae, type ReactionStatus as af, type RefreshOrcidPublicationsResult as ag, type RefreshPdsResult as ah, type ResetProfileResult as ai, type ResolveQuotedPostsOptions as aj, type RoadmapVoteError as ak, type RoadmapVoteResult as al, type RoadmapVoter as am, type RoadmapVotesResponse as an, type SearchFilters as ao, type SearchResponse as ap, type SifaQueryKey as aq, type SimilarProfile as ar, type SkillSearchResult as as, type StatsResponse as at, type SuggestionProfile as au, type SuggestionsResponse as av, type UpdateProfileOverrideInput as aw, type UpdateProfileSelfInput as ax, type UploadAvatarResult as ay, type VerifyExternalAccountResult as az, type ActivityFeedResponse as b, fetchHiddenApps as b0, fetchMyGithubPullRequests as b1, fetchMyRoadmapVotes as b2, fetchReactionStatus as b3, fetchRoadmapVotes as b4, fetchSearchFilters as b5, fetchSearchProfiles as b6, fetchSimilarProfiles as b7, fetchSkillSuggestions as b8, fetchStats as b9, unhideProfileItem as bA, unhideSifaPublication as bB, unhideStandardPublication as bC, unsetExternalAccountPrimary as bD, updateExternalAccount as bE, updateOrgProfile as bF, updateProfileLocation as bG, updateProfileOverride as bH, updateProfileSelf as bI, uploadAvatar as bJ, verifyExternalAccount as bK, verifyOrgDomain as bL, fetchSuggestionCount as ba, fetchSuggestions as bb, followUser as bc, getBlueskySuggestions as bd, getFollowers as be, getFollowing as bf, getFollowingFeed as bg, getMutuals as bh, hideOrcidPublication as bi, hideProfileItem as bj, hideSifaPublication as bk, hideStandardPublication as bl, listFeatureAllowlist as bm, refreshOrcidPublications as bn, refreshPds as bo, removeFeatureAllowlist as bp, removeOrgNotificationEmail as bq, requestOrgDomainChallenge as br, resetProfile as bs, resolveQuotedPosts as bt, retractRoadmapVote as bu, searchSkills as bv, setExternalAccountPrimary as bw, submitOrgClaim as bx, unfollowUser as by, unhideOrcidPublication as bz, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyGithubPullRequestsOptions as t, type FetchMyRoadmapVotesOptions as u, type FetchReactionStatusOptions as v, type FetchSuggestionsOptions as w, type FilterOptions as x, type FollowListPage as y, type FollowProfile as z };
@@ -857,6 +857,42 @@ async function fetchActivityFeed(config, handleOrDid, options = {}) {
857
857
  return null;
858
858
  }
859
859
  }
860
+ var GithubPullRequestSchema = zod.z.object({
861
+ prNumber: zod.z.number(),
862
+ repoOwner: zod.z.string(),
863
+ repoName: zod.z.string(),
864
+ title: zod.z.string(),
865
+ url: zod.z.string(),
866
+ language: zod.z.string().nullable(),
867
+ additions: zod.z.number(),
868
+ deletions: zod.z.number(),
869
+ /** ISO 8601 merge timestamp. */
870
+ mergedAt: zod.z.string()
871
+ });
872
+ var MyGithubPullRequestsResponseSchema = zod.z.object({
873
+ items: zod.z.array(GithubPullRequestSchema),
874
+ hasMore: zod.z.boolean()
875
+ });
876
+ async function fetchMyGithubPullRequests(config, options = {}) {
877
+ const { limit, offset, cookieHeader, ...fetchOptions } = options;
878
+ const params = new URLSearchParams();
879
+ if (limit !== void 0) params.set("limit", String(limit));
880
+ if (offset !== void 0) params.set("offset", String(offset));
881
+ const qs = params.toString();
882
+ const headers = { ...options.headers ?? {} };
883
+ if (cookieHeader) headers.cookie = cookieHeader;
884
+ const data = await apiFetch(
885
+ config,
886
+ `/api/me/github/pull-requests${qs ? `?${qs}` : ""}`,
887
+ {
888
+ credentials: "include",
889
+ cache: "no-store",
890
+ ...fetchOptions,
891
+ headers
892
+ }
893
+ );
894
+ return MyGithubPullRequestsResponseSchema.parse(data);
895
+ }
860
896
 
861
897
  // src/query/fetchers/endorsement.ts
862
898
  async function fetchEndorsementCount(config, did, options = {}) {
@@ -1341,6 +1377,10 @@ var sifaQueryKeys = {
1341
1377
  teaser: (handleOrDid) => ["sifa", "activity", "teaser", handleOrDid],
1342
1378
  feed: (handleOrDid, opts) => ["sifa", "activity", "feed", handleOrDid, opts]
1343
1379
  },
1380
+ github: {
1381
+ all: () => ["sifa", "github"],
1382
+ myPullRequests: (opts) => ["sifa", "github", "my-pull-requests", opts]
1383
+ },
1344
1384
  endorsement: {
1345
1385
  all: () => ["sifa", "endorsement"],
1346
1386
  count: (did) => ["sifa", "endorsement", "count", did]
@@ -1411,6 +1451,7 @@ exports.fetchFollowing = fetchFollowing;
1411
1451
  exports.fetchGetProfileView = fetchGetProfileView;
1412
1452
  exports.fetchHeatmapData = fetchHeatmapData;
1413
1453
  exports.fetchHiddenApps = fetchHiddenApps;
1454
+ exports.fetchMyGithubPullRequests = fetchMyGithubPullRequests;
1414
1455
  exports.fetchMyRoadmapVotes = fetchMyRoadmapVotes;
1415
1456
  exports.fetchNetworkMap = fetchNetworkMap;
1416
1457
  exports.fetchNetworkStreamCount = fetchNetworkStreamCount;