birdclaw 0.8.3 → 0.8.4
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/CHANGELOG.md +17 -0
- package/README.md +10 -8
- package/bin/birdclaw.mjs +4 -66
- package/dist/cli/birdclaw.js +28165 -0
- package/dist/client/assets/AvatarChip-DLoqM5xD.js +1 -0
- package/dist/client/assets/ProfilePreview-BejAuYsJ.js +1 -0
- package/dist/client/assets/SavedTimelineView-BIS7HKpp.js +1 -0
- package/dist/client/assets/SmartTimestamp-BR0-9se2.js +1 -0
- package/dist/client/assets/TimelineRouteFrame-CyGPj0eM.js +1 -0
- package/dist/client/assets/blocks-7UDKQp8H.js +1 -0
- package/dist/client/assets/bookmarks-CbBkMvXk.js +1 -0
- package/dist/client/assets/chunk-C0phanGV.js +1 -0
- package/dist/client/assets/circle-check-C_Vq3ElD.js +1 -0
- package/dist/client/assets/client-stream-contracts-ys3XhWG4.js +5 -0
- package/dist/client/assets/createLucideIcon-JV8isFFR.js +1 -0
- package/dist/client/assets/data-sources-Cm2bpNvg.js +1 -0
- package/dist/client/assets/discuss-DTjaOugw.js +1 -0
- package/dist/client/assets/dms-CGd6Eogq.js +1 -0
- package/dist/client/assets/inbox-BHlGuOy2.js +1 -0
- package/dist/client/assets/index-CEIG7S6s.js +31 -0
- package/dist/client/assets/index-bpFrQ5yG.css +1 -0
- package/dist/client/assets/likes-cLrcAQem.js +1 -0
- package/dist/client/assets/links-CM9QO1LC.js +1 -0
- package/dist/client/assets/mapbox-BxTlqXt9.js +2 -0
- package/dist/client/assets/mapbox-gl-dgf_hX3a.js +3215 -0
- package/dist/client/assets/mentions-CxKCgzIf.js +1 -0
- package/dist/client/assets/network-map-B5a3whqj.js +2 -0
- package/dist/client/assets/profile-analyze-CRtNEwlb.js +1 -0
- package/dist/client/assets/profile-hydration-client-YEtJsNTv.js +1 -0
- package/dist/client/assets/profiles._handle-C82_HoKX.js +1 -0
- package/dist/client/assets/query-client-fYu2rzRC.js +17 -0
- package/dist/client/assets/rate-limits-ScaEwdVK.js +1 -0
- package/dist/client/assets/react-dom-DHl6Ug7F.js +1 -0
- package/dist/client/assets/react-nBylq1U5.js +1 -0
- package/dist/client/assets/repeat-2-xCwHM9hD.js +1 -0
- package/dist/client/assets/routes-q7ZaW4En.js +1 -0
- package/dist/client/assets/schemas-I9r6F6ya.js +64 -0
- package/dist/client/assets/search-Dq5kYsxA.js +1 -0
- package/dist/client/assets/sparkles-CQVlvHsZ.js +1 -0
- package/dist/client/assets/styles-B8s3tt3r.css +2 -0
- package/dist/client/assets/today-CeG1O7Py.js +1 -0
- package/dist/client/assets/triangle-alert-CBL7s2pf.js +1 -0
- package/dist/client/assets/useTimelineRouteData-1HsqgvUi.js +1 -0
- package/dist/client/assets/users-CHbKlqUr.js +1 -0
- package/dist/server/assets/AvatarChip-zUDAEmjL.js +105 -0
- package/dist/server/assets/FeedState-ntW0Q2GB.js +214 -0
- package/dist/server/assets/ProfileAnalysisStream-BFvhVdhn.js +198 -0
- package/dist/server/assets/ProfilePreview-C6gAor_j.js +752 -0
- package/dist/server/assets/SavedTimelineView-BG1jnBp1.js +64 -0
- package/dist/server/assets/SmartTimestamp-DfwE1NGf.js +45 -0
- package/dist/server/assets/SyncNowButton-BOn_IBXS.js +76 -0
- package/dist/server/assets/TimelineRouteFrame-CU7ilM7U.js +85 -0
- package/dist/server/assets/TweetRichText-DhCVv1-6.js +74 -0
- package/dist/server/assets/_tanstack-start-manifest_v-C-ZRnG_n.js +148 -0
- package/dist/server/assets/account-selection-CTdFGWRk.js +44 -0
- package/dist/server/assets/blocks-C1mgGTB3.js +299 -0
- package/dist/server/assets/blocks-DSgQghqP.js +17 -0
- package/dist/server/assets/bookmarks-BJN8tykY.js +14 -0
- package/dist/server/assets/client-stream-contracts-C2xbWVjm.js +769 -0
- package/dist/server/assets/data-sources-BnA1Q94p.js +180 -0
- package/dist/server/assets/discuss-CJ1dau1j.js +15 -0
- package/dist/server/assets/discuss-QTo08NCN.js +338 -0
- package/dist/server/assets/dms-BuLj4bp8.js +368 -0
- package/dist/server/assets/dms-DAyQrVM2.js +240 -0
- package/dist/server/assets/empty-plugin-adapters-DzrEkdBF.js +5 -0
- package/dist/server/assets/inbox-CkGOaW1q.js +214 -0
- package/dist/server/assets/inbox-DpWd1EzC.js +146 -0
- package/dist/server/assets/likes-DBOAtsJU.js +14 -0
- package/dist/server/assets/links-DAhSjynu.js +240 -0
- package/dist/server/assets/links-DmH5lxHO.js +468 -0
- package/dist/server/assets/mentions-BH2MzKtB.js +26 -0
- package/dist/server/assets/network-map-D3CzRcC4.js +224 -0
- package/dist/server/assets/network-map-D5DoLOwR.js +582 -0
- package/dist/server/assets/profile-analyze-BP65PED0.js +90 -0
- package/dist/server/assets/profile-analyze-C1NoM0tV.js +9 -0
- package/dist/server/assets/profile-hydration-client-GJ4kwJS8.js +133 -0
- package/dist/server/assets/profiles._handle-DjwlN_ac.js +184 -0
- package/dist/server/assets/profiles._handle-DsLNj2Ca.js +12 -0
- package/dist/server/assets/query-client-BdauHBgd.js +923 -0
- package/dist/server/assets/rate-limits-VAr2qzYD.js +262 -0
- package/dist/server/assets/route-search-BUlQ5lGM.js +117 -0
- package/dist/server/assets/router-DqkwSPiM.js +17026 -0
- package/dist/server/assets/routes-A9c9ZhwN.js +26 -0
- package/dist/server/assets/start-FaDOTmto.js +4 -0
- package/dist/server/assets/today-B5hVM57Z.js +17 -0
- package/dist/server/assets/today-fvGiZ7ud.js +303 -0
- package/dist/server/assets/ui-qbmcMSSX.js +137 -0
- package/{src/components/useDebouncedValue.ts → dist/server/assets/useDebouncedValue-DOnA6Xcy.js} +4 -4
- package/dist/server/assets/useTimelineRouteData-27cxynxa.js +1101 -0
- package/dist/server/server.js +5520 -0
- package/package.json +26 -34
- package/playwright.config.ts +0 -35
- package/scripts/browser-perf.mjs +0 -427
- package/scripts/build-docs-site.mjs +0 -967
- package/scripts/docs-site-assets.mjs +0 -311
- package/scripts/run-vitest.mjs +0 -21
- package/scripts/sanitize-node-options.mjs +0 -23
- package/scripts/start-test-server.mjs +0 -42
- package/src/cli/command-context.ts +0 -17
- package/src/cli/register-analysis.ts +0 -500
- package/src/cli/register-compose.ts +0 -40
- package/src/cli/register-graph.ts +0 -132
- package/src/cli/register-inbox.ts +0 -41
- package/src/cli/register-storage.ts +0 -106
- package/src/cli-moderation.ts +0 -210
- package/src/cli.ts +0 -1616
- package/src/components/AccountSwitcher.tsx +0 -178
- package/src/components/AppNav.tsx +0 -118
- package/src/components/AvatarChip.tsx +0 -58
- package/src/components/AvatarPreload.ts +0 -149
- package/src/components/BrandMark.tsx +0 -67
- package/src/components/ConversationThread.tsx +0 -131
- package/src/components/DmWorkspace.tsx +0 -286
- package/src/components/EmbeddedTweetCard.tsx +0 -55
- package/src/components/FeedState.tsx +0 -147
- package/src/components/FloatingPreview.tsx +0 -382
- package/src/components/InboxCard.tsx +0 -152
- package/src/components/LinkPreviewCard.tsx +0 -292
- package/src/components/MarkdownCitations.tsx +0 -680
- package/src/components/MarkdownViewer.tsx +0 -111
- package/src/components/ProfileAnalysisClient.ts +0 -191
- package/src/components/ProfileAnalysisStream.tsx +0 -259
- package/src/components/ProfilePreview.tsx +0 -131
- package/src/components/SavedTimelineView.tsx +0 -155
- package/src/components/SmartTimestamp.tsx +0 -72
- package/src/components/SyncNowButton.tsx +0 -140
- package/src/components/ThemeSlider.tsx +0 -80
- package/src/components/TimelineCard.tsx +0 -533
- package/src/components/TimelineRouteFrame.tsx +0 -186
- package/src/components/TweetArticleCard.tsx +0 -66
- package/src/components/TweetMediaGrid.tsx +0 -185
- package/src/components/TweetRichText.tsx +0 -159
- package/src/components/account-selection.ts +0 -64
- package/src/components/links-controller.ts +0 -162
- package/src/components/links-model.ts +0 -198
- package/src/components/network-map-controller.ts +0 -84
- package/src/components/network-map-model.ts +0 -255
- package/src/components/useTimelineRouteData.ts +0 -193
- package/src/lib/account-sync-job.ts +0 -666
- package/src/lib/actions-transport.ts +0 -300
- package/src/lib/analysis-runtime.ts +0 -238
- package/src/lib/api-client.ts +0 -220
- package/src/lib/api-contracts.ts +0 -328
- package/src/lib/archive-finder.ts +0 -185
- package/src/lib/archive-import-plan.ts +0 -102
- package/src/lib/archive-import.ts +0 -2695
- package/src/lib/authored-live.ts +0 -1027
- package/src/lib/avatar-cache.ts +0 -349
- package/src/lib/backup.ts +0 -2652
- package/src/lib/bird-actions.ts +0 -294
- package/src/lib/bird-command.ts +0 -130
- package/src/lib/bird.ts +0 -1140
- package/src/lib/blocklist.ts +0 -136
- package/src/lib/blocks-write.ts +0 -171
- package/src/lib/blocks.ts +0 -387
- package/src/lib/bookmark-sync-job.ts +0 -536
- package/src/lib/config.ts +0 -224
- package/src/lib/conversation-surface.ts +0 -205
- package/src/lib/data-sources.ts +0 -219
- package/src/lib/database-metrics.ts +0 -88
- package/src/lib/database-migrations.ts +0 -34
- package/src/lib/database-schema.ts +0 -312
- package/src/lib/database-writer.ts +0 -69
- package/src/lib/db.ts +0 -889
- package/src/lib/dm-read-model.ts +0 -533
- package/src/lib/dms-live.ts +0 -870
- package/src/lib/effect-runtime.ts +0 -45
- package/src/lib/follow-graph.ts +0 -1087
- package/src/lib/geocoding.ts +0 -296
- package/src/lib/http-effect.ts +0 -222
- package/src/lib/identity-search-index.ts +0 -369
- package/src/lib/import-repository.ts +0 -138
- package/src/lib/inbox.ts +0 -242
- package/src/lib/link-index.ts +0 -641
- package/src/lib/link-insights.ts +0 -860
- package/src/lib/link-preview-metadata.ts +0 -754
- package/src/lib/live-sync-engine.ts +0 -209
- package/src/lib/live-transport-gateway.ts +0 -128
- package/src/lib/location.ts +0 -137
- package/src/lib/media-fetch.ts +0 -860
- package/src/lib/media-includes.ts +0 -165
- package/src/lib/mention-threads-live.ts +0 -830
- package/src/lib/mentions-export.ts +0 -147
- package/src/lib/mentions-live.ts +0 -1114
- package/src/lib/moderation-target.ts +0 -227
- package/src/lib/moderation-write.ts +0 -131
- package/src/lib/mutes-write.ts +0 -171
- package/src/lib/mutes.ts +0 -84
- package/src/lib/ndjson-stream.ts +0 -106
- package/src/lib/network-map.ts +0 -382
- package/src/lib/openai-response-runtime.ts +0 -251
- package/src/lib/openai.ts +0 -117
- package/src/lib/paginated-sync.ts +0 -93
- package/src/lib/period-digest.ts +0 -1364
- package/src/lib/present.ts +0 -118
- package/src/lib/profile-affiliation-hydration.ts +0 -228
- package/src/lib/profile-affiliations.ts +0 -262
- package/src/lib/profile-analysis.ts +0 -1198
- package/src/lib/profile-bio-entities.ts +0 -318
- package/src/lib/profile-history.ts +0 -164
- package/src/lib/profile-hydration.ts +0 -180
- package/src/lib/profile-replies.ts +0 -77
- package/src/lib/profile-resolver.ts +0 -650
- package/src/lib/queries.ts +0 -6
- package/src/lib/query-actions.ts +0 -437
- package/src/lib/query-client.tsx +0 -47
- package/src/lib/query-read-model-shared.ts +0 -52
- package/src/lib/query-read-models.ts +0 -5
- package/src/lib/query-resource.ts +0 -41
- package/src/lib/query-status.ts +0 -164
- package/src/lib/research.ts +0 -652
- package/src/lib/runtime-services.ts +0 -20
- package/src/lib/search-discussion.ts +0 -812
- package/src/lib/seed.ts +0 -613
- package/src/lib/server-runtime-services.ts +0 -30
- package/src/lib/sqlite.ts +0 -183
- package/src/lib/streaming-ingestion.ts +0 -240
- package/src/lib/sync-cache.ts +0 -70
- package/src/lib/sync-plan.ts +0 -175
- package/src/lib/theme-transition.ts +0 -113
- package/src/lib/theme.tsx +0 -165
- package/src/lib/timeline-collections-live.ts +0 -407
- package/src/lib/timeline-live.ts +0 -302
- package/src/lib/timeline-read-model.ts +0 -1191
- package/src/lib/tweet-account-edges.ts +0 -48
- package/src/lib/tweet-lookup.ts +0 -46
- package/src/lib/tweet-render.ts +0 -430
- package/src/lib/tweet-repository.ts +0 -156
- package/src/lib/tweet-search-live.ts +0 -462
- package/src/lib/types.ts +0 -723
- package/src/lib/ui.ts +0 -529
- package/src/lib/url-expansion-store.ts +0 -110
- package/src/lib/url-expansion.ts +0 -343
- package/src/lib/url-safety.ts +0 -220
- package/src/lib/web-sync.ts +0 -533
- package/src/lib/whois.ts +0 -1080
- package/src/lib/x-profile.ts +0 -365
- package/src/lib/x-web.ts +0 -199
- package/src/lib/xurl-rate-limits.ts +0 -267
- package/src/lib/xurl.ts +0 -1677
- package/src/routeTree.gen.ts +0 -723
- package/src/router.tsx +0 -20
- package/src/routes/__root.tsx +0 -82
- package/src/routes/api/action.tsx +0 -147
- package/src/routes/api/avatar.tsx +0 -50
- package/src/routes/api/blocks.tsx +0 -35
- package/src/routes/api/conversation.tsx +0 -45
- package/src/routes/api/data-sources.tsx +0 -24
- package/src/routes/api/inbox.tsx +0 -43
- package/src/routes/api/link-insights.tsx +0 -85
- package/src/routes/api/link-preview.tsx +0 -47
- package/src/routes/api/network-map.tsx +0 -55
- package/src/routes/api/period-digest.tsx +0 -101
- package/src/routes/api/profile-analysis.tsx +0 -97
- package/src/routes/api/profile-hydrate.tsx +0 -54
- package/src/routes/api/query.tsx +0 -121
- package/src/routes/api/search-discussion.tsx +0 -113
- package/src/routes/api/status.tsx +0 -30
- package/src/routes/api/sync.tsx +0 -108
- package/src/routes/api/xurl-rate-limits.tsx +0 -24
- package/src/routes/blocks.tsx +0 -343
- package/src/routes/bookmarks.tsx +0 -18
- package/src/routes/data-sources.tsx +0 -249
- package/src/routes/discuss.tsx +0 -419
- package/src/routes/dms.tsx +0 -415
- package/src/routes/inbox.tsx +0 -232
- package/src/routes/index.tsx +0 -32
- package/src/routes/likes.tsx +0 -18
- package/src/routes/links.tsx +0 -631
- package/src/routes/mentions.tsx +0 -32
- package/src/routes/network-map.tsx +0 -732
- package/src/routes/profile-analyze.tsx +0 -112
- package/src/routes/profiles.$handle.tsx +0 -228
- package/src/routes/rate-limits.tsx +0 -305
- package/src/routes/today.tsx +0 -511
- package/src/styles.css +0 -257
- package/tsconfig.json +0 -29
- package/vite.config.ts +0 -29
- /package/{public → dist/client}/birdclaw-mark.png +0 -0
- /package/{public → dist/client}/favicon.ico +0 -0
- /package/{public → dist/client}/logo192.png +0 -0
- /package/{public → dist/client}/logo512.png +0 -0
- /package/{public → dist/client}/manifest.json +0 -0
- /package/{public → dist/client}/robots.txt +0 -0
package/src/lib/types.ts
DELETED
|
@@ -1,723 +0,0 @@
|
|
|
1
|
-
export type ResourceKind = "home" | "mentions" | "authored" | "search" | "dms";
|
|
2
|
-
export type InboxKind = "mixed" | "mentions" | "dms";
|
|
3
|
-
|
|
4
|
-
export type ReplyFilter = "all" | "replied" | "unreplied";
|
|
5
|
-
export type TimelineQualityFilter = "all" | "summary";
|
|
6
|
-
|
|
7
|
-
export interface AccountRecord {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
handle: string;
|
|
11
|
-
externalUserId?: string | null;
|
|
12
|
-
profileId?: string;
|
|
13
|
-
avatarHue?: number;
|
|
14
|
-
avatarUrl?: string;
|
|
15
|
-
transport: string;
|
|
16
|
-
isDefault: number;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface ProfileRecord {
|
|
21
|
-
id: string;
|
|
22
|
-
handle: string;
|
|
23
|
-
displayName: string;
|
|
24
|
-
bio: string;
|
|
25
|
-
followersCount: number;
|
|
26
|
-
followingCount?: number;
|
|
27
|
-
avatarHue: number;
|
|
28
|
-
avatarUrl?: string;
|
|
29
|
-
location?: string;
|
|
30
|
-
url?: string;
|
|
31
|
-
verifiedType?: string;
|
|
32
|
-
entities?: Record<string, unknown>;
|
|
33
|
-
affiliations?: ProfileAffiliation[];
|
|
34
|
-
primaryAffiliation?: ProfileAffiliation;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ProfileAffiliation {
|
|
39
|
-
organizationProfileId: string;
|
|
40
|
-
organizationName?: string;
|
|
41
|
-
organizationHandle?: string;
|
|
42
|
-
badgeUrl?: string | null;
|
|
43
|
-
url?: string | null;
|
|
44
|
-
label?: string | null;
|
|
45
|
-
source: string;
|
|
46
|
-
firstSeenAt: string;
|
|
47
|
-
lastSeenAt: string;
|
|
48
|
-
isActive: boolean;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface ProfileSnapshot {
|
|
52
|
-
profileId: string;
|
|
53
|
-
snapshotHash: string;
|
|
54
|
-
observedAt: string;
|
|
55
|
-
lastSeenAt: string;
|
|
56
|
-
source: string;
|
|
57
|
-
handle: string;
|
|
58
|
-
displayName: string;
|
|
59
|
-
bio: string;
|
|
60
|
-
location: string | null;
|
|
61
|
-
url: string | null;
|
|
62
|
-
verifiedType: string | null;
|
|
63
|
-
followersCount: number;
|
|
64
|
-
followingCount: number;
|
|
65
|
-
affiliations: unknown[];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface ProfileBioEntity {
|
|
69
|
-
profileId: string;
|
|
70
|
-
kind: "handle" | "domain" | "company_phrase";
|
|
71
|
-
value: string;
|
|
72
|
-
source: string;
|
|
73
|
-
firstSeenAt: string;
|
|
74
|
-
lastSeenAt: string;
|
|
75
|
-
isActive: boolean;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface TweetMentionEntity {
|
|
79
|
-
username: string;
|
|
80
|
-
id?: string;
|
|
81
|
-
start: number;
|
|
82
|
-
end: number;
|
|
83
|
-
profile?: ProfileRecord;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface TweetUrlEntity {
|
|
87
|
-
url: string;
|
|
88
|
-
expandedUrl: string;
|
|
89
|
-
displayUrl: string;
|
|
90
|
-
start: number;
|
|
91
|
-
end: number;
|
|
92
|
-
title?: string;
|
|
93
|
-
description?: string | null;
|
|
94
|
-
imageUrl?: string | null;
|
|
95
|
-
siteName?: string | null;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface TweetHashtagEntity {
|
|
99
|
-
tag: string;
|
|
100
|
-
start: number;
|
|
101
|
-
end: number;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface TweetArticle {
|
|
105
|
-
title: string;
|
|
106
|
-
previewText?: string;
|
|
107
|
-
url: string;
|
|
108
|
-
coverImageUrl?: string;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface TweetEntities {
|
|
112
|
-
mentions?: TweetMentionEntity[];
|
|
113
|
-
urls?: TweetUrlEntity[];
|
|
114
|
-
hashtags?: TweetHashtagEntity[];
|
|
115
|
-
article?: TweetArticle;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface TweetMediaItem {
|
|
119
|
-
url: string;
|
|
120
|
-
type: "image" | "video" | "gif" | "unknown";
|
|
121
|
-
altText?: string;
|
|
122
|
-
width?: number;
|
|
123
|
-
height?: number;
|
|
124
|
-
thumbnailUrl?: string;
|
|
125
|
-
durationMs?: number;
|
|
126
|
-
variants?: Array<{
|
|
127
|
-
url: string;
|
|
128
|
-
contentType?: string;
|
|
129
|
-
bitRate?: number;
|
|
130
|
-
}>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface EmbeddedTweet {
|
|
134
|
-
id: string;
|
|
135
|
-
text: string;
|
|
136
|
-
createdAt: string;
|
|
137
|
-
replyToId?: string | null;
|
|
138
|
-
isReplied?: boolean;
|
|
139
|
-
likeCount?: number;
|
|
140
|
-
mediaCount?: number;
|
|
141
|
-
bookmarked?: boolean;
|
|
142
|
-
liked?: boolean;
|
|
143
|
-
author: ProfileRecord;
|
|
144
|
-
entities: TweetEntities;
|
|
145
|
-
media: TweetMediaItem[];
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface TweetConversationResponse {
|
|
149
|
-
anchorId: string;
|
|
150
|
-
items: EmbeddedTweet[];
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface BlockItem {
|
|
154
|
-
accountId: string;
|
|
155
|
-
accountHandle: string;
|
|
156
|
-
source: string;
|
|
157
|
-
blockedAt: string;
|
|
158
|
-
profile: ProfileRecord;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface BlockSearchItem {
|
|
162
|
-
profile: ProfileRecord;
|
|
163
|
-
isBlocked: boolean;
|
|
164
|
-
blockedAt?: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface BlockListResponse {
|
|
168
|
-
items: BlockItem[];
|
|
169
|
-
matches: BlockSearchItem[];
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export interface TimelineItem {
|
|
173
|
-
id: string;
|
|
174
|
-
accountId: string;
|
|
175
|
-
accountHandle: string;
|
|
176
|
-
kind: "home" | "mention" | "authored" | "search" | "like" | "bookmark";
|
|
177
|
-
text: string;
|
|
178
|
-
searchSnippet?: string;
|
|
179
|
-
createdAt: string;
|
|
180
|
-
replyToId?: string | null;
|
|
181
|
-
isReplied: boolean;
|
|
182
|
-
likeCount: number;
|
|
183
|
-
mediaCount: number;
|
|
184
|
-
bookmarked: boolean;
|
|
185
|
-
liked: boolean;
|
|
186
|
-
author: ProfileRecord;
|
|
187
|
-
entities: TweetEntities;
|
|
188
|
-
media: TweetMediaItem[];
|
|
189
|
-
replyToTweet?: EmbeddedTweet | null;
|
|
190
|
-
quotedTweet?: EmbeddedTweet | null;
|
|
191
|
-
retweetedTweet?: EmbeddedTweet | null;
|
|
192
|
-
qualityReason?: string | null;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export interface DmMessageItem {
|
|
196
|
-
id: string;
|
|
197
|
-
conversationId: string;
|
|
198
|
-
text: string;
|
|
199
|
-
createdAt: string;
|
|
200
|
-
direction: "inbound" | "outbound";
|
|
201
|
-
isReplied: boolean;
|
|
202
|
-
mediaCount: number;
|
|
203
|
-
sender: ProfileRecord;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface UrlExpansionItem {
|
|
207
|
-
url: string;
|
|
208
|
-
expandedUrl: string;
|
|
209
|
-
finalUrl: string;
|
|
210
|
-
status: "hit" | "miss" | "error";
|
|
211
|
-
source: "cache" | "network";
|
|
212
|
-
title?: string;
|
|
213
|
-
description?: string | null;
|
|
214
|
-
error?: string;
|
|
215
|
-
updatedAt: string;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface LinkOccurrenceItem {
|
|
219
|
-
sourceKind: "dm" | "tweet";
|
|
220
|
-
sourceId: string;
|
|
221
|
-
sourcePosition: number;
|
|
222
|
-
shortUrl: string;
|
|
223
|
-
accountId?: string | null;
|
|
224
|
-
conversationId?: string | null;
|
|
225
|
-
direction?: string | null;
|
|
226
|
-
createdAt: string;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export interface LinkIndexItem {
|
|
230
|
-
shortUrl: string;
|
|
231
|
-
expandedUrl: string;
|
|
232
|
-
finalUrl: string;
|
|
233
|
-
status: "hit" | "miss" | "error";
|
|
234
|
-
expandedTweetId?: string | null;
|
|
235
|
-
expandedHandle?: string | null;
|
|
236
|
-
title?: string | null;
|
|
237
|
-
description?: string | null;
|
|
238
|
-
imageUrl?: string | null;
|
|
239
|
-
siteName?: string | null;
|
|
240
|
-
error?: string | null;
|
|
241
|
-
source: string;
|
|
242
|
-
updatedAt: string;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export interface LinkSearchItem {
|
|
246
|
-
occurrence: LinkOccurrenceItem;
|
|
247
|
-
expansion: LinkIndexItem;
|
|
248
|
-
sourceText: string;
|
|
249
|
-
sourceAuthor?: ProfileRecord | null;
|
|
250
|
-
participant?: ProfileRecord | null;
|
|
251
|
-
linkedTweet?: TimelineItem | null;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export type LinkInsightKind = "links" | "videos";
|
|
255
|
-
export type LinkInsightRange = "today" | "week" | "month" | "year" | "all";
|
|
256
|
-
export type LinkInsightSort = "rank" | "recent" | "comments";
|
|
257
|
-
export type LinkInsightSource = "all" | "tweet" | "dm";
|
|
258
|
-
|
|
259
|
-
export interface LinkInsightMention {
|
|
260
|
-
id: string;
|
|
261
|
-
sourceKind: "dm" | "tweet";
|
|
262
|
-
sourceId: string;
|
|
263
|
-
sourceUrl?: string | null;
|
|
264
|
-
sourceLabel: string;
|
|
265
|
-
shortUrl: string;
|
|
266
|
-
conversationId?: string | null;
|
|
267
|
-
createdAt: string;
|
|
268
|
-
text: string;
|
|
269
|
-
rawText: string;
|
|
270
|
-
commentText: string;
|
|
271
|
-
sharedContentText?: string | null;
|
|
272
|
-
hasComment: boolean;
|
|
273
|
-
isPureShare: boolean;
|
|
274
|
-
timelineTweetId?: string | null;
|
|
275
|
-
contentTweetId?: string | null;
|
|
276
|
-
contentTweetUrl?: string | null;
|
|
277
|
-
contentAuthor?: ProfileRecord | null;
|
|
278
|
-
media: TweetMediaItem[];
|
|
279
|
-
direction?: string | null;
|
|
280
|
-
accountHandle?: string | null;
|
|
281
|
-
sharedBy?: ProfileRecord | null;
|
|
282
|
-
participant?: ProfileRecord | null;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export interface LinkInsightItem {
|
|
286
|
-
id: string;
|
|
287
|
-
kind: LinkInsightKind;
|
|
288
|
-
url: string;
|
|
289
|
-
canonicalKey: string;
|
|
290
|
-
displayUrl: string;
|
|
291
|
-
host: string;
|
|
292
|
-
title?: string | null;
|
|
293
|
-
description?: string | null;
|
|
294
|
-
shareCount: number;
|
|
295
|
-
uniqueSharers: number;
|
|
296
|
-
totalInfluence: number;
|
|
297
|
-
mentionCount: number;
|
|
298
|
-
commentCount: number;
|
|
299
|
-
pureShareCount: number;
|
|
300
|
-
hiddenMentionCount: number;
|
|
301
|
-
firstSeenAt: string;
|
|
302
|
-
lastSeenAt: string;
|
|
303
|
-
topSharer?: ProfileRecord | null;
|
|
304
|
-
sharers: ProfileRecord[];
|
|
305
|
-
mentions: LinkInsightMention[];
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export interface LinkInsightQuery {
|
|
309
|
-
account?: string;
|
|
310
|
-
kind?: LinkInsightKind;
|
|
311
|
-
range?: LinkInsightRange;
|
|
312
|
-
sort?: LinkInsightSort;
|
|
313
|
-
source?: LinkInsightSource;
|
|
314
|
-
since?: string;
|
|
315
|
-
until?: string;
|
|
316
|
-
limit?: number;
|
|
317
|
-
commentsLimit?: number;
|
|
318
|
-
now?: Date;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export interface LinkInsightResponse {
|
|
322
|
-
kind: LinkInsightKind;
|
|
323
|
-
range: LinkInsightRange;
|
|
324
|
-
sort: LinkInsightSort;
|
|
325
|
-
source: LinkInsightSource;
|
|
326
|
-
since: string | null;
|
|
327
|
-
until: string | null;
|
|
328
|
-
items: LinkInsightItem[];
|
|
329
|
-
stats: {
|
|
330
|
-
occurrences: number;
|
|
331
|
-
groups: number;
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export interface DmSearchMatchItem {
|
|
336
|
-
message: DmMessageItem;
|
|
337
|
-
before: DmMessageItem[];
|
|
338
|
-
after: DmMessageItem[];
|
|
339
|
-
urlExpansions?: UrlExpansionItem[];
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export interface DmConversationItem {
|
|
343
|
-
id: string;
|
|
344
|
-
accountId: string;
|
|
345
|
-
accountHandle: string;
|
|
346
|
-
title: string;
|
|
347
|
-
searchSnippet?: string;
|
|
348
|
-
inboxKind?: "accepted" | "request";
|
|
349
|
-
isMessageRequest?: boolean;
|
|
350
|
-
lastMessageAt: string;
|
|
351
|
-
lastMessagePreview: string;
|
|
352
|
-
unreadCount: number;
|
|
353
|
-
needsReply: boolean;
|
|
354
|
-
influenceScore: number;
|
|
355
|
-
influenceLabel: string;
|
|
356
|
-
participant: ProfileRecord;
|
|
357
|
-
matches?: DmSearchMatchItem[];
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export interface TimelineQuery {
|
|
361
|
-
resource: Exclude<ResourceKind, "dms">;
|
|
362
|
-
account?: string;
|
|
363
|
-
search?: string;
|
|
364
|
-
replyFilter?: ReplyFilter;
|
|
365
|
-
since?: string;
|
|
366
|
-
until?: string;
|
|
367
|
-
untilId?: string;
|
|
368
|
-
includeReplies?: boolean;
|
|
369
|
-
qualityFilter?: TimelineQualityFilter;
|
|
370
|
-
lowQualityThreshold?: number;
|
|
371
|
-
includeQualityReason?: boolean;
|
|
372
|
-
likedOnly?: boolean;
|
|
373
|
-
bookmarkedOnly?: boolean;
|
|
374
|
-
limit?: number;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export interface DmQuery {
|
|
378
|
-
account?: string;
|
|
379
|
-
conversationIds?: string[];
|
|
380
|
-
inbox?: "all" | "accepted" | "requests";
|
|
381
|
-
participant?: string;
|
|
382
|
-
search?: string;
|
|
383
|
-
replyFilter?: ReplyFilter;
|
|
384
|
-
since?: string;
|
|
385
|
-
until?: string;
|
|
386
|
-
minFollowers?: number;
|
|
387
|
-
maxFollowers?: number;
|
|
388
|
-
minInfluenceScore?: number;
|
|
389
|
-
maxInfluenceScore?: number;
|
|
390
|
-
sort?: "recent" | "followers" | "influence";
|
|
391
|
-
context?: number;
|
|
392
|
-
limit?: number;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
export interface TransportStatus {
|
|
396
|
-
installed: boolean;
|
|
397
|
-
availableTransport: "xurl" | "local";
|
|
398
|
-
statusText: string;
|
|
399
|
-
rawStatus?: string;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export type LiveDataSourceKind = "birdclaw" | "bird" | "xurl";
|
|
403
|
-
|
|
404
|
-
export interface LiveDataSourceAccount {
|
|
405
|
-
id?: string;
|
|
406
|
-
username?: string;
|
|
407
|
-
handle?: string;
|
|
408
|
-
app?: string;
|
|
409
|
-
isDefault?: boolean;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export interface LiveDataSourceStatus {
|
|
413
|
-
source: LiveDataSourceKind;
|
|
414
|
-
label: string;
|
|
415
|
-
works: boolean;
|
|
416
|
-
installed?: boolean;
|
|
417
|
-
status: "ok" | "warning" | "error";
|
|
418
|
-
detail: string;
|
|
419
|
-
accounts: LiveDataSourceAccount[];
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export interface LiveDataSourceCapability {
|
|
423
|
-
key: string;
|
|
424
|
-
label: string;
|
|
425
|
-
primary: LiveDataSourceKind;
|
|
426
|
-
fallbacks: LiveDataSourceKind[];
|
|
427
|
-
notes?: string;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
export interface LiveDataSourcesResponse {
|
|
431
|
-
generatedAt: string;
|
|
432
|
-
sources: LiveDataSourceStatus[];
|
|
433
|
-
capabilities: LiveDataSourceCapability[];
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export type ModerationAction = "block" | "unblock" | "mute" | "unmute";
|
|
437
|
-
export type ModerationTransportKind = "bird" | "xurl" | "x-web";
|
|
438
|
-
|
|
439
|
-
export interface ModerationActionTransportResult {
|
|
440
|
-
ok: boolean;
|
|
441
|
-
output: string;
|
|
442
|
-
transport: ModerationTransportKind;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
export interface ArchiveCandidate {
|
|
446
|
-
path: string;
|
|
447
|
-
name: string;
|
|
448
|
-
size: number;
|
|
449
|
-
sizeFormatted: string;
|
|
450
|
-
modifiedTime: string;
|
|
451
|
-
dateFormatted: string;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
export interface QueryEnvelope {
|
|
455
|
-
accounts: AccountRecord[];
|
|
456
|
-
archives: ArchiveCandidate[];
|
|
457
|
-
transport: TransportStatus;
|
|
458
|
-
stats: {
|
|
459
|
-
home: number;
|
|
460
|
-
mentions: number;
|
|
461
|
-
dms: number;
|
|
462
|
-
needsReply: number;
|
|
463
|
-
inbox: number;
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
export interface QueryResponse {
|
|
468
|
-
resource: ResourceKind;
|
|
469
|
-
items: TimelineItem[] | DmConversationItem[];
|
|
470
|
-
selectedConversation?: {
|
|
471
|
-
conversation: DmConversationItem;
|
|
472
|
-
messages: DmMessageItem[];
|
|
473
|
-
} | null;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
export interface InboxItem {
|
|
477
|
-
id: string;
|
|
478
|
-
entityId: string;
|
|
479
|
-
entityKind: "mention" | "dm";
|
|
480
|
-
accountId: string;
|
|
481
|
-
accountHandle: string;
|
|
482
|
-
title: string;
|
|
483
|
-
text: string;
|
|
484
|
-
createdAt: string;
|
|
485
|
-
needsReply: boolean;
|
|
486
|
-
influenceScore: number;
|
|
487
|
-
participant: ProfileRecord;
|
|
488
|
-
source: "heuristic" | "openai";
|
|
489
|
-
score: number;
|
|
490
|
-
summary: string;
|
|
491
|
-
reasoning: string;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
export interface InboxQuery {
|
|
495
|
-
kind?: InboxKind;
|
|
496
|
-
account?: string;
|
|
497
|
-
minScore?: number;
|
|
498
|
-
hideLowSignal?: boolean;
|
|
499
|
-
limit?: number;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
export interface InboxResponse {
|
|
503
|
-
items: InboxItem[];
|
|
504
|
-
stats: {
|
|
505
|
-
total: number;
|
|
506
|
-
openai: number;
|
|
507
|
-
heuristic: number;
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
export interface XurlPublicMetrics {
|
|
512
|
-
retweet_count?: number;
|
|
513
|
-
reply_count?: number;
|
|
514
|
-
like_count?: number;
|
|
515
|
-
quote_count?: number;
|
|
516
|
-
bookmark_count?: number;
|
|
517
|
-
impression_count?: number;
|
|
518
|
-
followers_count?: number;
|
|
519
|
-
following_count?: number;
|
|
520
|
-
tweet_count?: number;
|
|
521
|
-
listed_count?: number;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
export interface XurlMentionUser {
|
|
525
|
-
id: string;
|
|
526
|
-
name: string;
|
|
527
|
-
username: string;
|
|
528
|
-
description?: string;
|
|
529
|
-
location?: string;
|
|
530
|
-
url?: string;
|
|
531
|
-
verified?: boolean;
|
|
532
|
-
verified_type?: string;
|
|
533
|
-
profile_image_url?: string;
|
|
534
|
-
entities?: Record<string, unknown>;
|
|
535
|
-
affiliation?: Record<string, unknown>;
|
|
536
|
-
public_metrics?: XurlPublicMetrics;
|
|
537
|
-
created_at?: string;
|
|
538
|
-
protected?: boolean;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
export interface XurlMentionData {
|
|
542
|
-
id: string;
|
|
543
|
-
author_id: string;
|
|
544
|
-
text: string;
|
|
545
|
-
created_at: string;
|
|
546
|
-
conversation_id?: string;
|
|
547
|
-
in_reply_to_user_id?: string;
|
|
548
|
-
attachments?: XurlTweetAttachments;
|
|
549
|
-
entities?: Record<string, unknown>;
|
|
550
|
-
referenced_tweets?: XurlReferencedTweet[];
|
|
551
|
-
public_metrics?: XurlPublicMetrics;
|
|
552
|
-
edit_history_tweet_ids?: string[];
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
export interface XurlReferencedTweet {
|
|
556
|
-
type: string;
|
|
557
|
-
id: string;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
export interface XurlUserTweet {
|
|
561
|
-
id: string;
|
|
562
|
-
author_id?: string;
|
|
563
|
-
text: string;
|
|
564
|
-
created_at: string;
|
|
565
|
-
conversation_id?: string;
|
|
566
|
-
attachments?: XurlTweetAttachments;
|
|
567
|
-
entities?: Record<string, unknown>;
|
|
568
|
-
referenced_tweets?: XurlReferencedTweet[];
|
|
569
|
-
public_metrics?: XurlPublicMetrics;
|
|
570
|
-
edit_history_tweet_ids?: string[];
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
export interface XurlTweetData {
|
|
574
|
-
id: string;
|
|
575
|
-
author_id: string;
|
|
576
|
-
text: string;
|
|
577
|
-
created_at: string;
|
|
578
|
-
conversation_id?: string;
|
|
579
|
-
in_reply_to_user_id?: string;
|
|
580
|
-
attachments?: XurlTweetAttachments;
|
|
581
|
-
entities?: Record<string, unknown>;
|
|
582
|
-
referenced_tweets?: XurlReferencedTweet[];
|
|
583
|
-
public_metrics?: XurlPublicMetrics;
|
|
584
|
-
edit_history_tweet_ids?: string[];
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
export interface XurlTweetAttachments {
|
|
588
|
-
media_keys?: string[];
|
|
589
|
-
poll_ids?: string[];
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
export interface XurlMediaItem {
|
|
593
|
-
media_key: string;
|
|
594
|
-
type: "photo" | "video" | "animated_gif" | string;
|
|
595
|
-
url?: string;
|
|
596
|
-
preview_image_url?: string;
|
|
597
|
-
duration_ms?: number;
|
|
598
|
-
width?: number;
|
|
599
|
-
height?: number;
|
|
600
|
-
alt_text?: string;
|
|
601
|
-
public_metrics?: XurlPublicMetrics;
|
|
602
|
-
variants?: Array<{
|
|
603
|
-
url: string;
|
|
604
|
-
content_type: string;
|
|
605
|
-
bit_rate?: number;
|
|
606
|
-
}>;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
export type XurlMedia = XurlMediaItem;
|
|
610
|
-
|
|
611
|
-
export interface XurlTweetIncludes {
|
|
612
|
-
users?: XurlMentionUser[];
|
|
613
|
-
tweets?: XurlTweetData[];
|
|
614
|
-
media?: XurlMedia[];
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
export interface XurlUserTweetsResponse {
|
|
618
|
-
items: XurlUserTweet[];
|
|
619
|
-
nextToken: string | null;
|
|
620
|
-
includes?: XurlTweetIncludes;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
export interface ProfileReplyItem {
|
|
624
|
-
id: string;
|
|
625
|
-
text: string;
|
|
626
|
-
createdAt: string;
|
|
627
|
-
conversationId?: string;
|
|
628
|
-
replyToTweetId?: string;
|
|
629
|
-
likeCount: number;
|
|
630
|
-
replyCount: number;
|
|
631
|
-
retweetCount: number;
|
|
632
|
-
quoteCount: number;
|
|
633
|
-
bookmarkCount: number;
|
|
634
|
-
impressionCount: number;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
export interface ProfileRepliesResponse {
|
|
638
|
-
profile: ProfileRecord;
|
|
639
|
-
externalUserId: string;
|
|
640
|
-
items: ProfileReplyItem[];
|
|
641
|
-
meta: {
|
|
642
|
-
scannedCount: number;
|
|
643
|
-
returnedCount: number;
|
|
644
|
-
nextToken: string | null;
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
export interface XurlMentionsResponse {
|
|
649
|
-
data: XurlMentionData[];
|
|
650
|
-
includes?: {
|
|
651
|
-
users?: XurlMentionUser[];
|
|
652
|
-
media?: XurlMediaItem[];
|
|
653
|
-
};
|
|
654
|
-
meta?: Record<string, unknown>;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
export interface XurlDmEvent {
|
|
658
|
-
id: string;
|
|
659
|
-
event_type?: string;
|
|
660
|
-
text?: string;
|
|
661
|
-
created_at?: string;
|
|
662
|
-
dm_conversation_id?: string;
|
|
663
|
-
sender_id?: string;
|
|
664
|
-
participant_ids?: string[];
|
|
665
|
-
attachments?: Record<string, unknown>;
|
|
666
|
-
entities?: Record<string, unknown>;
|
|
667
|
-
referenced_tweets?: XurlReferencedTweet[];
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
export interface XurlDmEventsResponse {
|
|
671
|
-
data: XurlDmEvent[];
|
|
672
|
-
includes?: {
|
|
673
|
-
users?: XurlMentionUser[];
|
|
674
|
-
};
|
|
675
|
-
meta?: Record<string, unknown>;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
export interface XurlTweetsResponse {
|
|
679
|
-
data: XurlTweetData[];
|
|
680
|
-
includes?: {
|
|
681
|
-
users?: XurlMentionUser[];
|
|
682
|
-
media?: XurlMediaItem[];
|
|
683
|
-
};
|
|
684
|
-
meta?: Record<string, unknown>;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
export type FollowDirection = "followers" | "following";
|
|
688
|
-
|
|
689
|
-
export interface XurlFollowUsersResponse {
|
|
690
|
-
data: XurlMentionUser[];
|
|
691
|
-
meta?: Record<string, unknown>;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
export interface FollowGraphProfile {
|
|
695
|
-
id: string;
|
|
696
|
-
externalUserId: string;
|
|
697
|
-
handle: string;
|
|
698
|
-
displayName: string;
|
|
699
|
-
bio: string;
|
|
700
|
-
followersCount: number;
|
|
701
|
-
publicMetrics: XurlPublicMetrics;
|
|
702
|
-
avatarUrl?: string;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
export type FollowEventKind = "started" | "ended";
|
|
706
|
-
|
|
707
|
-
export interface FollowGraphEvent {
|
|
708
|
-
eventAt: string;
|
|
709
|
-
direction: FollowDirection;
|
|
710
|
-
kind: FollowEventKind;
|
|
711
|
-
snapshotId: string;
|
|
712
|
-
profile: FollowGraphProfile;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
export interface FollowGraphSummary {
|
|
716
|
-
accountId: string;
|
|
717
|
-
followers: number;
|
|
718
|
-
following: number;
|
|
719
|
-
mutuals: number;
|
|
720
|
-
nonMutualFollowing: number;
|
|
721
|
-
lastCompleteSnapshots: Partial<Record<FollowDirection, string>>;
|
|
722
|
-
lastIncompleteSnapshots: Partial<Record<FollowDirection, string>>;
|
|
723
|
-
}
|