@singi-labs/sifa-sdk 0.12.25 → 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.
- package/dist/{index-M_BYlvDY.d.ts → index-B6GHpvcg.d.ts} +25 -2
- package/dist/{index-Bz0xL4us.d.cts → index-ZXWW6RsR.d.cts} +1 -1
- package/dist/{index-4SE7Z9SK.d.cts → index-ipyzSVry.d.cts} +25 -2
- package/dist/{index-BpEeBgRr.d.ts → index-wMuFhu7d.d.ts} +1 -1
- package/dist/index.cjs +44 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +44 -5
- package/dist/index.js.map +1 -1
- package/dist/{org-CQMDMN58.d.ts → org-CLRdUB1W.d.ts} +56 -1
- package/dist/{org-DVIvsT_0.d.cts → org-Dme1VvNa.d.cts} +56 -1
- package/dist/query/fetchers/index.cjs +41 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +2 -2
- package/dist/query/fetchers/index.d.ts +2 -2
- package/dist/query/fetchers/index.js +41 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +51 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +2 -2
- package/dist/query/hooks/index.d.ts +2 -2
- package/dist/query/hooks/index.js +51 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +50 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +4 -4
- package/dist/query/index.d.ts +4 -4
- package/dist/query/index.js +49 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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 {
|
|
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-
|
|
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,
|
|
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 {
|
|
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-
|
|
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
|
@@ -1025,6 +1025,9 @@ var APP_CATEGORY_MAP = {
|
|
|
1025
1025
|
// Onboard from willow.sh profile audit.
|
|
1026
1026
|
guestbook: "Social",
|
|
1027
1027
|
// dev.baileytownsend.guestbook.entry — a note left on someone's cross-site guestbook
|
|
1028
|
+
// Onboard from trezy.codes profile audit.
|
|
1029
|
+
atmobb: "Social",
|
|
1030
|
+
// app.atmobb.discussion.{thread,reply} — federated forum threads + replies
|
|
1028
1031
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
1029
1032
|
// no backend scan collection yet)
|
|
1030
1033
|
linkat: "Links",
|
|
@@ -2292,6 +2295,9 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
2292
2295
|
profileUrlPattern: "https://grain.social/profile/{did}"
|
|
2293
2296
|
},
|
|
2294
2297
|
youandme: { profileUrlPattern: "https://youandme.at" },
|
|
2298
|
+
// atmoBB per-item thread/reply URLs are built bespoke in resolve-card-url.ts
|
|
2299
|
+
// (raw-colon /t/{did}/{rkey}); this is only the member-profile fallback.
|
|
2300
|
+
atmobb: { profileUrlPattern: "https://atmobb.app/members/{did}" },
|
|
2295
2301
|
// anisota: upgraded with per-record URL pattern below.
|
|
2296
2302
|
margin: { profileUrlPattern: "https://margin.at" },
|
|
2297
2303
|
beaconbits: { profileUrlPattern: "https://beaconbits.app" },
|
|
@@ -2479,7 +2485,9 @@ var COLLECTION_TO_APP = [
|
|
|
2479
2485
|
// Onboard from moll.dev profile audit.
|
|
2480
2486
|
["exchange.recipe.recipe", "recipe"],
|
|
2481
2487
|
// Onboard from willow.sh profile audit.
|
|
2482
|
-
["dev.baileytownsend.guestbook.", "guestbook"]
|
|
2488
|
+
["dev.baileytownsend.guestbook.", "guestbook"],
|
|
2489
|
+
// Onboard from trezy.codes profile audit.
|
|
2490
|
+
["app.atmobb.", "atmobb"]
|
|
2483
2491
|
];
|
|
2484
2492
|
|
|
2485
2493
|
// src/cards/resolve-card-url.ts
|
|
@@ -2600,6 +2608,26 @@ function resolveCardHealth(item) {
|
|
|
2600
2608
|
}
|
|
2601
2609
|
return { url: null, strategy: "none" };
|
|
2602
2610
|
}
|
|
2611
|
+
if (collection === "app.atmobb.discussion.reply") {
|
|
2612
|
+
const thread = record.thread;
|
|
2613
|
+
if (thread != null && typeof thread === "object") {
|
|
2614
|
+
const threadUri = stringOrNull(thread.uri);
|
|
2615
|
+
if (threadUri) {
|
|
2616
|
+
const parsed3 = parseAtUri(threadUri);
|
|
2617
|
+
if (parsed3) {
|
|
2618
|
+
return urlHealth(`https://atmobb.app/t/${parsed3.did}/${parsed3.rkey}`);
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
return { url: null, strategy: "none" };
|
|
2623
|
+
}
|
|
2624
|
+
if (collection === "app.atmobb.discussion.thread") {
|
|
2625
|
+
const parsed3 = parseAtUri(uri);
|
|
2626
|
+
if (parsed3) {
|
|
2627
|
+
return recordHealth(`https://atmobb.app/t/${parsed3.did}/${parsed3.rkey}`);
|
|
2628
|
+
}
|
|
2629
|
+
return { url: null, strategy: "none" };
|
|
2630
|
+
}
|
|
2603
2631
|
if (collection === "fyi.atstore.listing.review") {
|
|
2604
2632
|
const listingMeta = record.listingMeta;
|
|
2605
2633
|
if (listingMeta != null && typeof listingMeta === "object") {
|
|
@@ -3254,10 +3282,18 @@ function bskyImages(embed, did) {
|
|
|
3254
3282
|
for (const raw of images) {
|
|
3255
3283
|
const img = asRecord(raw);
|
|
3256
3284
|
if (!img) continue;
|
|
3285
|
+
const alt = asNonEmptyString(img.alt) ?? "";
|
|
3286
|
+
const ratio = aspectRatio(img.aspectRatio);
|
|
3287
|
+
const resolvedUrl = asNonEmptyString(img.thumb) ?? asNonEmptyString(img.fullsize);
|
|
3288
|
+
if (resolvedUrl) {
|
|
3289
|
+
const media2 = { url: resolvedUrl, alt };
|
|
3290
|
+
if (ratio) media2.aspectRatio = ratio;
|
|
3291
|
+
out.push(media2);
|
|
3292
|
+
continue;
|
|
3293
|
+
}
|
|
3257
3294
|
const cid = blobCid(img.image);
|
|
3258
3295
|
if (!cid) continue;
|
|
3259
|
-
const media = { did, cid, alt
|
|
3260
|
-
const ratio = aspectRatio(img.aspectRatio);
|
|
3296
|
+
const media = { did, cid, alt };
|
|
3261
3297
|
if (ratio) media.aspectRatio = ratio;
|
|
3262
3298
|
const mimeType = asNonEmptyString(asRecord(img.image)?.mimeType);
|
|
3263
3299
|
if (mimeType) media.mimeType = mimeType;
|
|
@@ -3273,13 +3309,16 @@ function bskyExternal(embed) {
|
|
|
3273
3309
|
const link2 = { url };
|
|
3274
3310
|
const title = asNonEmptyString(external.title);
|
|
3275
3311
|
if (title) link2.title = title;
|
|
3312
|
+
const thumb = asNonEmptyString(external.thumb);
|
|
3313
|
+
if (thumb) link2.thumb = thumb;
|
|
3276
3314
|
return link2;
|
|
3277
3315
|
}
|
|
3278
3316
|
function bskyEmbedContent(record, did) {
|
|
3279
3317
|
const embed = asRecord(record.embed);
|
|
3280
3318
|
if (!embed) return {};
|
|
3281
3319
|
const type = asNonEmptyString(embed["$type"]);
|
|
3282
|
-
const
|
|
3320
|
+
const isRecordWithMedia = type === "app.bsky.embed.recordWithMedia" || type === "app.bsky.embed.recordWithMedia#view";
|
|
3321
|
+
const target = isRecordWithMedia ? asRecord(embed.media) : embed;
|
|
3283
3322
|
if (!target) return {};
|
|
3284
3323
|
if (Array.isArray(target.images)) {
|
|
3285
3324
|
const media = bskyImages(target, did);
|
|
@@ -4654,7 +4693,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
4654
4693
|
});
|
|
4655
4694
|
|
|
4656
4695
|
// src/index.ts
|
|
4657
|
-
var SIFA_SDK_VERSION = "0.12.
|
|
4696
|
+
var SIFA_SDK_VERSION = "0.12.28";
|
|
4658
4697
|
|
|
4659
4698
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
4660
4699
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|