@atproto/bsky 0.0.29 → 0.0.30
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 +8 -0
- package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +1 -0
- package/dist/db/index.js +285 -15
- package/dist/db/index.js.map +3 -3
- package/dist/index.js +892 -413
- package/dist/index.js.map +3 -3
- package/dist/lexicon/lexicons.d.ts +96 -5
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/actor/getPreferences.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/getProfile.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/getProfiles.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/getSuggestions.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/searchActors.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/actor/searchActorsTypeahead.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/describeFeedGenerator.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getActorFeeds.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getActorLikes.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getFeed.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getFeedGenerator.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getFeedGenerators.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getFeedSkeleton.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getLikes.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getListFeed.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getPostThread.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getPosts.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getRepostedBy.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getSuggestedFeeds.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/getTimeline.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getBlocks.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getFollowers.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getFollows.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getList.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getListBlocks.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getListMutes.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getLists.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getMutes.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getRelationships.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/notification/getUnreadCount.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/createCommunicationTemplate.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getAccountInfo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getAccountInfos.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getInviteCodes.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getModerationEvent.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getRepo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/listCommunicationTemplates.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/sendEmail.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/updateCommunicationTemplate.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/label/queryLabels.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/moderation/createReport.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/createRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/describeRepo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/getRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/putRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/repo/uploadBlob.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createAccount.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createAppPassword.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createInviteCode.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createInviteCodes.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/getAccountInviteCodes.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/listAppPasswords.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/server/reserveSigningKey.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getBlob.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getBlocks.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getCheckout.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getHead.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getLatestCommit.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/getRepo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/listBlobs.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/temp/checkSignupQueue.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/temp/fetchLabels.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/temp/importRepo.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/temp/transferAccount.d.ts +2 -2
- package/dist/services/feed/index.d.ts +2 -1
- package/package.json +6 -6
- package/src/api/app/bsky/feed/getAuthorFeed.ts +12 -4
- package/src/lexicon/lexicons.ts +339 -123
- package/src/lexicon/types/app/bsky/actor/defs.ts +2 -0
- package/src/lexicon/types/app/bsky/actor/getPreferences.ts +2 -2
- package/src/lexicon/types/app/bsky/actor/getProfile.ts +3 -2
- package/src/lexicon/types/app/bsky/actor/getProfiles.ts +2 -2
- package/src/lexicon/types/app/bsky/actor/getSuggestions.ts +2 -2
- package/src/lexicon/types/app/bsky/actor/profile.ts +3 -0
- package/src/lexicon/types/app/bsky/actor/putPreferences.ts +1 -1
- package/src/lexicon/types/app/bsky/actor/searchActors.ts +2 -2
- package/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +2 -2
- package/src/lexicon/types/app/bsky/embed/external.ts +1 -0
- package/src/lexicon/types/app/bsky/embed/images.ts +4 -0
- package/src/lexicon/types/app/bsky/embed/record.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getActorFeeds.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getActorLikes.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/getFeed.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getFeedGenerator.ts +5 -2
- package/src/lexicon/types/app/bsky/feed/getFeedGenerators.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/getLikes.ts +4 -2
- package/src/lexicon/types/app/bsky/feed/getListFeed.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/getPostThread.ts +5 -2
- package/src/lexicon/types/app/bsky/feed/getPosts.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/getRepostedBy.ts +4 -2
- package/src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/getTimeline.ts +3 -2
- package/src/lexicon/types/app/bsky/feed/post.ts +5 -1
- package/src/lexicon/types/app/bsky/feed/searchPosts.ts +2 -2
- package/src/lexicon/types/app/bsky/feed/threadgate.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/block.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/getBlocks.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getFollowers.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getFollows.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getList.ts +3 -2
- package/src/lexicon/types/app/bsky/graph/getListBlocks.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getListMutes.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getLists.ts +3 -2
- package/src/lexicon/types/app/bsky/graph/getMutes.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/getRelationships.ts +4 -2
- package/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +2 -2
- package/src/lexicon/types/app/bsky/graph/list.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/listblock.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/listitem.ts +2 -0
- package/src/lexicon/types/app/bsky/graph/muteActor.ts +1 -1
- package/src/lexicon/types/app/bsky/graph/muteActorList.ts +1 -1
- package/src/lexicon/types/app/bsky/graph/unmuteActor.ts +1 -1
- package/src/lexicon/types/app/bsky/graph/unmuteActorList.ts +1 -1
- package/src/lexicon/types/app/bsky/notification/getUnreadCount.ts +2 -2
- package/src/lexicon/types/app/bsky/notification/listNotifications.ts +2 -2
- package/src/lexicon/types/app/bsky/notification/registerPush.ts +1 -1
- package/src/lexicon/types/app/bsky/notification/updateSeen.ts +1 -1
- package/src/lexicon/types/app/bsky/richtext/facet.ts +5 -4
- package/src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts +2 -2
- package/src/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.ts +2 -2
- package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +2 -2
- package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/createCommunicationTemplate.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/deleteAccount.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/disableAccountInvites.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/disableInviteCodes.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/enableAccountInvites.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/getAccountInfo.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getAccountInfos.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getInviteCodes.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getModerationEvent.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getRecord.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getRepo.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/listCommunicationTemplates.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/searchRepos.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/sendEmail.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/updateAccountEmail.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/updateAccountHandle.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/updateCommunicationTemplate.ts +2 -2
- package/src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts +2 -2
- package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +2 -2
- package/src/lexicon/types/com/atproto/identity/updateHandle.ts +2 -1
- package/src/lexicon/types/com/atproto/label/queryLabels.ts +2 -2
- package/src/lexicon/types/com/atproto/label/subscribeLabels.ts +1 -1
- package/src/lexicon/types/com/atproto/moderation/createReport.ts +3 -2
- package/src/lexicon/types/com/atproto/repo/applyWrites.ts +7 -6
- package/src/lexicon/types/com/atproto/repo/createRecord.ts +6 -6
- package/src/lexicon/types/com/atproto/repo/deleteRecord.ts +3 -3
- package/src/lexicon/types/com/atproto/repo/describeRepo.ts +5 -2
- package/src/lexicon/types/com/atproto/repo/getRecord.ts +3 -3
- package/src/lexicon/types/com/atproto/repo/listRecords.ts +2 -2
- package/src/lexicon/types/com/atproto/repo/putRecord.ts +6 -6
- package/src/lexicon/types/com/atproto/repo/uploadBlob.ts +2 -2
- package/src/lexicon/types/com/atproto/server/confirmEmail.ts +1 -1
- package/src/lexicon/types/com/atproto/server/createAccount.ts +10 -2
- package/src/lexicon/types/com/atproto/server/createAppPassword.ts +3 -2
- package/src/lexicon/types/com/atproto/server/createInviteCode.ts +2 -2
- package/src/lexicon/types/com/atproto/server/createInviteCodes.ts +2 -2
- package/src/lexicon/types/com/atproto/server/createSession.ts +2 -2
- package/src/lexicon/types/com/atproto/server/deleteAccount.ts +1 -1
- package/src/lexicon/types/com/atproto/server/deleteSession.ts +1 -1
- package/src/lexicon/types/com/atproto/server/describeServer.ts +5 -2
- package/src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts +3 -2
- package/src/lexicon/types/com/atproto/server/getSession.ts +2 -2
- package/src/lexicon/types/com/atproto/server/listAppPasswords.ts +2 -2
- package/src/lexicon/types/com/atproto/server/refreshSession.ts +2 -2
- package/src/lexicon/types/com/atproto/server/requestAccountDelete.ts +1 -1
- package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +1 -1
- package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +2 -2
- package/src/lexicon/types/com/atproto/server/requestPasswordReset.ts +1 -1
- package/src/lexicon/types/com/atproto/server/reserveSigningKey.ts +4 -4
- package/src/lexicon/types/com/atproto/server/resetPassword.ts +1 -1
- package/src/lexicon/types/com/atproto/server/revokeAppPassword.ts +1 -1
- package/src/lexicon/types/com/atproto/server/updateEmail.ts +1 -1
- package/src/lexicon/types/com/atproto/sync/getBlob.ts +3 -3
- package/src/lexicon/types/com/atproto/sync/getBlocks.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/getCheckout.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/getHead.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/getLatestCommit.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/getRecord.ts +3 -2
- package/src/lexicon/types/com/atproto/sync/getRepo.ts +3 -3
- package/src/lexicon/types/com/atproto/sync/listBlobs.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/listRepos.ts +3 -2
- package/src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/requestCrawl.ts +2 -2
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +17 -5
- package/src/lexicon/types/com/atproto/temp/checkSignupQueue.ts +2 -2
- package/src/lexicon/types/com/atproto/temp/fetchLabels.ts +2 -2
- package/src/lexicon/types/com/atproto/temp/importRepo.ts +2 -2
- package/src/lexicon/types/com/atproto/temp/pushBlob.ts +1 -1
- package/src/lexicon/types/com/atproto/temp/requestPhoneVerification.ts +1 -1
- package/src/lexicon/types/com/atproto/temp/transferAccount.ts +2 -2
- package/src/services/feed/index.ts +10 -4
- package/src/services/feed/views.ts +3 -1
- package/tests/views/author-feed.test.ts +29 -9
|
@@ -82,6 +82,7 @@ export function validateProfileViewDetailed(v: unknown): ValidationResult {
|
|
|
82
82
|
return lexicons.validate('app.bsky.actor.defs#profileViewDetailed', v)
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
|
|
85
86
|
export interface ViewerState {
|
|
86
87
|
muted?: boolean
|
|
87
88
|
mutedByList?: AppBskyGraphDefs.ListViewBasic
|
|
@@ -154,6 +155,7 @@ export function validateContentLabelPref(v: unknown): ValidationResult {
|
|
|
154
155
|
export interface SavedFeedsPref {
|
|
155
156
|
pinned: string[]
|
|
156
157
|
saved: string[]
|
|
158
|
+
timelineIndex?: number
|
|
157
159
|
[k: string]: unknown
|
|
158
160
|
}
|
|
159
161
|
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {}
|
|
@@ -31,7 +31,7 @@ export interface HandlerError {
|
|
|
31
31
|
message?: string
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
34
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
35
35
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
36
36
|
auth: HA
|
|
37
37
|
params: QueryParams
|
|
@@ -6,10 +6,11 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** Handle or DID of account to fetch profile of. */
|
|
13
14
|
actor: string
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -28,7 +29,7 @@ export interface HandlerError {
|
|
|
28
29
|
message?: string
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
32
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
32
33
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
33
34
|
auth: HA
|
|
34
35
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -33,7 +33,7 @@ export interface HandlerError {
|
|
|
33
33
|
message?: string
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
36
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
37
37
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
38
38
|
auth: HA
|
|
39
39
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -35,7 +35,7 @@ export interface HandlerError {
|
|
|
35
35
|
message?: string
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
38
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
39
39
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
40
40
|
auth: HA
|
|
41
41
|
params: QueryParams
|
|
@@ -9,8 +9,11 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
|
9
9
|
|
|
10
10
|
export interface Record {
|
|
11
11
|
displayName?: string
|
|
12
|
+
/** Free-form profile description text. */
|
|
12
13
|
description?: string
|
|
14
|
+
/** Small image to be displayed next to posts from account. AKA, 'profile picture' */
|
|
13
15
|
avatar?: BlobRef
|
|
16
|
+
/** Larger horizontal image to display behind profile view. */
|
|
14
17
|
banner?: BlobRef
|
|
15
18
|
labels?:
|
|
16
19
|
| ComAtprotoLabelDefs.SelfLabels
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {}
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -39,7 +39,7 @@ export interface HandlerError {
|
|
|
39
39
|
message?: string
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
42
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
43
43
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
44
44
|
auth: HA
|
|
45
45
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -37,7 +37,7 @@ export interface HandlerError {
|
|
|
37
37
|
message?: string
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
41
41
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
42
42
|
auth: HA
|
|
43
43
|
params: QueryParams
|
|
@@ -6,6 +6,7 @@ import { lexicons } from '../../../../lexicons'
|
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
|
|
9
|
+
/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */
|
|
9
10
|
export interface Main {
|
|
10
11
|
external: External
|
|
11
12
|
[k: string]: unknown
|
|
@@ -26,6 +26,7 @@ export function validateMain(v: unknown): ValidationResult {
|
|
|
26
26
|
|
|
27
27
|
export interface Image {
|
|
28
28
|
image: BlobRef
|
|
29
|
+
/** Alt text description of the image, for accessibility. */
|
|
29
30
|
alt: string
|
|
30
31
|
aspectRatio?: AspectRatio
|
|
31
32
|
[k: string]: unknown
|
|
@@ -76,8 +77,11 @@ export function validateView(v: unknown): ValidationResult {
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
export interface ViewImage {
|
|
80
|
+
/** Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. */
|
|
79
81
|
thumb: string
|
|
82
|
+
/** Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. */
|
|
80
83
|
fullsize: string
|
|
84
|
+
/** Alt text description of the image, for accessibility. */
|
|
81
85
|
alt: string
|
|
82
86
|
aspectRatio?: AspectRatio
|
|
83
87
|
[k: string]: unknown
|
|
@@ -45,6 +45,7 @@ export function validatePostView(v: unknown): ValidationResult {
|
|
|
45
45
|
return lexicons.validate('app.bsky.feed.defs#postView', v)
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
/** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
|
|
48
49
|
export interface ViewerState {
|
|
49
50
|
repost?: string
|
|
50
51
|
like?: string
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
@@ -32,7 +32,7 @@ export interface HandlerError {
|
|
|
32
32
|
message?: string
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
35
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
36
36
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
37
37
|
auth: HA
|
|
38
38
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -36,7 +36,7 @@ export interface HandlerError {
|
|
|
36
36
|
message?: string
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
39
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
40
40
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
41
41
|
auth: HA
|
|
42
42
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -37,7 +37,7 @@ export interface HandlerError {
|
|
|
37
37
|
error?: 'BlockedActor' | 'BlockedByActor'
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
41
41
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
42
42
|
auth: HA
|
|
43
43
|
params: QueryParams
|
|
@@ -6,13 +6,14 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
13
|
actor: string
|
|
14
14
|
limit: number
|
|
15
15
|
cursor?: string
|
|
16
|
+
/** Combinations of post/repost types to include in response. */
|
|
16
17
|
filter:
|
|
17
18
|
| 'posts_with_replies'
|
|
18
19
|
| 'posts_no_replies'
|
|
@@ -43,7 +44,7 @@ export interface HandlerError {
|
|
|
43
44
|
error?: 'BlockedActor' | 'BlockedByActor'
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
47
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
47
48
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
48
49
|
auth: HA
|
|
49
50
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -37,7 +37,7 @@ export interface HandlerError {
|
|
|
37
37
|
error?: 'UnknownFeed'
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
41
41
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
42
42
|
auth: HA
|
|
43
43
|
params: QueryParams
|
|
@@ -6,10 +6,11 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** AT-URI of the feed generator record. */
|
|
13
14
|
feed: string
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -17,7 +18,9 @@ export type InputSchema = undefined
|
|
|
17
18
|
|
|
18
19
|
export interface OutputSchema {
|
|
19
20
|
view: AppBskyFeedDefs.GeneratorView
|
|
21
|
+
/** Indicates whether the feed generator service has been online recently, or else seems to be inactive. */
|
|
20
22
|
isOnline: boolean
|
|
23
|
+
/** Indicates whether the feed generator service is compatible with the record declaration. */
|
|
21
24
|
isValid: boolean
|
|
22
25
|
[k: string]: unknown
|
|
23
26
|
}
|
|
@@ -35,7 +38,7 @@ export interface HandlerError {
|
|
|
35
38
|
message?: string
|
|
36
39
|
}
|
|
37
40
|
|
|
38
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
41
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
39
42
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
40
43
|
auth: HA
|
|
41
44
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -33,7 +33,7 @@ export interface HandlerError {
|
|
|
33
33
|
message?: string
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
36
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
37
37
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
38
38
|
auth: HA
|
|
39
39
|
params: QueryParams
|
|
@@ -6,10 +6,11 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** Reference to feed generator record describing the specific feed being requested. */
|
|
13
14
|
feed: string
|
|
14
15
|
limit: number
|
|
15
16
|
cursor?: string
|
|
@@ -37,7 +38,7 @@ export interface HandlerError {
|
|
|
37
38
|
error?: 'UnknownFeed'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
41
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
41
42
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
42
43
|
auth: HA
|
|
43
44
|
params: QueryParams
|
|
@@ -6,11 +6,13 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** AT-URI of the subject (eg, a post record). */
|
|
13
14
|
uri: string
|
|
15
|
+
/** CID of the subject record (aka, specific version of record), to filter likes. */
|
|
14
16
|
cid?: string
|
|
15
17
|
limit: number
|
|
16
18
|
cursor?: string
|
|
@@ -39,7 +41,7 @@ export interface HandlerError {
|
|
|
39
41
|
message?: string
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
44
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
43
45
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
44
46
|
auth: HA
|
|
45
47
|
params: QueryParams
|
|
@@ -6,10 +6,11 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** Reference (AT-URI) to the list record. */
|
|
13
14
|
list: string
|
|
14
15
|
limit: number
|
|
15
16
|
cursor?: string
|
|
@@ -37,7 +38,7 @@ export interface HandlerError {
|
|
|
37
38
|
error?: 'UnknownList'
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
41
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
41
42
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
42
43
|
auth: HA
|
|
43
44
|
params: QueryParams
|
|
@@ -6,12 +6,15 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** Reference (AT-URI) to post record. */
|
|
13
14
|
uri: string
|
|
15
|
+
/** How many levels of reply depth should be included in response. */
|
|
14
16
|
depth: number
|
|
17
|
+
/** How many levels of parent (and grandparent, etc) post to include. */
|
|
15
18
|
parentHeight: number
|
|
16
19
|
}
|
|
17
20
|
|
|
@@ -40,7 +43,7 @@ export interface HandlerError {
|
|
|
40
43
|
error?: 'NotFound'
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
46
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
44
47
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
45
48
|
auth: HA
|
|
46
49
|
params: QueryParams
|
|
@@ -6,10 +6,11 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** List of post AT-URIs to return hydrated views for. */
|
|
13
14
|
uris: string[]
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -33,7 +34,7 @@ export interface HandlerError {
|
|
|
33
34
|
message?: string
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
37
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
37
38
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
38
39
|
auth: HA
|
|
39
40
|
params: QueryParams
|
|
@@ -6,11 +6,13 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** Reference (AT-URI) of post record */
|
|
13
14
|
uri: string
|
|
15
|
+
/** If supplied, filters to reposts of specific version (by CID) of the post record. */
|
|
14
16
|
cid?: string
|
|
15
17
|
limit: number
|
|
16
18
|
cursor?: string
|
|
@@ -39,7 +41,7 @@ export interface HandlerError {
|
|
|
39
41
|
message?: string
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
44
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
43
45
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
44
46
|
auth: HA
|
|
45
47
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -35,7 +35,7 @@ export interface HandlerError {
|
|
|
35
35
|
message?: string
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
38
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
39
39
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
40
40
|
auth: HA
|
|
41
41
|
params: QueryParams
|
|
@@ -6,10 +6,11 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism. */
|
|
13
14
|
algorithm?: string
|
|
14
15
|
limit: number
|
|
15
16
|
cursor?: string
|
|
@@ -36,7 +37,7 @@ export interface HandlerError {
|
|
|
36
37
|
message?: string
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
40
41
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
41
42
|
auth: HA
|
|
42
43
|
params: QueryParams
|
|
@@ -14,9 +14,11 @@ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
|
14
14
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
|
15
15
|
|
|
16
16
|
export interface Record {
|
|
17
|
+
/** The primary post content. May be an empty string, if there are embeds. */
|
|
17
18
|
text: string
|
|
18
|
-
/**
|
|
19
|
+
/** DEPRECATED: replaced by app.bsky.richtext.facet. */
|
|
19
20
|
entities?: Entity[]
|
|
21
|
+
/** Annotations of text (mentions, URLs, hashtags, etc) */
|
|
20
22
|
facets?: AppBskyRichtextFacet.Main[]
|
|
21
23
|
reply?: ReplyRef
|
|
22
24
|
embed?:
|
|
@@ -25,12 +27,14 @@ export interface Record {
|
|
|
25
27
|
| AppBskyEmbedRecord.Main
|
|
26
28
|
| AppBskyEmbedRecordWithMedia.Main
|
|
27
29
|
| { $type: string; [k: string]: unknown }
|
|
30
|
+
/** Indicates human language of post primary text content. */
|
|
28
31
|
langs?: string[]
|
|
29
32
|
labels?:
|
|
30
33
|
| ComAtprotoLabelDefs.SelfLabels
|
|
31
34
|
| { $type: string; [k: string]: unknown }
|
|
32
35
|
/** Additional non-inline tags describing this post. */
|
|
33
36
|
tags?: string[]
|
|
37
|
+
/** Client-declared timestamp when this post was originally created. */
|
|
34
38
|
createdAt: string
|
|
35
39
|
[k: string]: unknown
|
|
36
40
|
}
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyFeedDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -41,7 +41,7 @@ export interface HandlerError {
|
|
|
41
41
|
error?: 'BadQueryString'
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
44
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
45
45
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
46
46
|
auth: HA
|
|
47
47
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -35,7 +35,7 @@ export interface HandlerError {
|
|
|
35
35
|
message?: string
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
38
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
39
39
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
40
40
|
auth: HA
|
|
41
41
|
params: QueryParams
|
|
@@ -6,7 +6,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
6
6
|
import { lexicons } from '../../../../lexicons'
|
|
7
7
|
import { isObj, hasProp } from '../../../../util'
|
|
8
8
|
import { CID } from 'multiformats/cid'
|
|
9
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
10
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -37,7 +37,7 @@ export interface HandlerError {
|
|
|
37
37
|
message?: string
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
40
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
41
41
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
42
42
|
auth: HA
|
|
43
43
|
params: QueryParams
|