@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
|
@@ -6,15 +6,18 @@ 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
|
|
|
13
13
|
export type InputSchema = undefined
|
|
14
14
|
|
|
15
15
|
export interface OutputSchema {
|
|
16
|
+
/** If true, an invite code must be supplied to create an account on this instance. */
|
|
16
17
|
inviteCodeRequired?: boolean
|
|
18
|
+
/** If true, a phone verification token must be supplied to create an account on this instance. */
|
|
17
19
|
phoneVerificationRequired?: boolean
|
|
20
|
+
/** List of domain suffixes that can be used in account handles. */
|
|
18
21
|
availableUserDomains: string[]
|
|
19
22
|
links?: Links
|
|
20
23
|
[k: string]: unknown
|
|
@@ -33,7 +36,7 @@ export interface HandlerError {
|
|
|
33
36
|
message?: string
|
|
34
37
|
}
|
|
35
38
|
|
|
36
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
39
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
37
40
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
38
41
|
auth: HA
|
|
39
42
|
params: QueryParams
|
|
@@ -6,11 +6,12 @@ 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 ComAtprotoServerDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
13
|
includeUsed: boolean
|
|
14
|
+
/** Controls whether any new 'earned' but not 'created' invites should be created. */
|
|
14
15
|
createAvailable: boolean
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -35,7 +36,7 @@ export interface HandlerError {
|
|
|
35
36
|
error?: 'DuplicateCreate'
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
39
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
39
40
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
40
41
|
auth: HA
|
|
41
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
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
@@ -34,7 +34,7 @@ export interface HandlerError {
|
|
|
34
34
|
message?: string
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
37
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
38
38
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
39
39
|
auth: HA
|
|
40
40
|
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
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
@@ -31,7 +31,7 @@ export interface HandlerError {
|
|
|
31
31
|
error?: 'AccountTakedown'
|
|
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,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
|
|
|
@@ -35,7 +35,7 @@ export interface HandlerError {
|
|
|
35
35
|
error?: 'AccountTakedown'
|
|
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
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -30,7 +30,7 @@ export interface HandlerError {
|
|
|
30
30
|
message?: string
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
33
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
34
34
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
35
35
|
auth: HA
|
|
36
36
|
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
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
@@ -6,18 +6,18 @@ 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
|
|
|
13
13
|
export interface InputSchema {
|
|
14
|
-
/** The
|
|
14
|
+
/** The DID to reserve a key for. */
|
|
15
15
|
did?: string
|
|
16
16
|
[k: string]: unknown
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface OutputSchema {
|
|
20
|
-
/**
|
|
20
|
+
/** The public key for the reserved signing key, in did:key serialization. */
|
|
21
21
|
signingKey: string
|
|
22
22
|
[k: string]: unknown
|
|
23
23
|
}
|
|
@@ -38,7 +38,7 @@ export interface HandlerError {
|
|
|
38
38
|
message?: string
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
41
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
42
42
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
43
43
|
auth: HA
|
|
44
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
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -7,10 +7,10 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { isObj, hasProp } from '../../../../util'
|
|
9
9
|
import { CID } from 'multiformats/cid'
|
|
10
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
10
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
-
/** The DID of the
|
|
13
|
+
/** The DID of the account. */
|
|
14
14
|
did: string
|
|
15
15
|
/** The CID of the blob to fetch */
|
|
16
16
|
cid: string
|
|
@@ -30,7 +30,7 @@ export interface HandlerError {
|
|
|
30
30
|
message?: string
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
33
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
34
34
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
35
35
|
auth: HA
|
|
36
36
|
params: QueryParams
|
|
@@ -7,7 +7,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { isObj, hasProp } from '../../../../util'
|
|
9
9
|
import { CID } from 'multiformats/cid'
|
|
10
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
10
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
13
|
/** The DID of the repo. */
|
|
@@ -29,7 +29,7 @@ export interface HandlerError {
|
|
|
29
29
|
message?: string
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
32
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
33
33
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
34
34
|
auth: HA
|
|
35
35
|
params: QueryParams
|
|
@@ -7,7 +7,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { isObj, hasProp } from '../../../../util'
|
|
9
9
|
import { CID } from 'multiformats/cid'
|
|
10
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
10
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
13
|
/** The DID of the repo. */
|
|
@@ -28,7 +28,7 @@ export interface HandlerError {
|
|
|
28
28
|
message?: string
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
31
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
32
32
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
33
33
|
auth: HA
|
|
34
34
|
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
|
|
|
11
11
|
export interface QueryParams {
|
|
12
12
|
/** The DID of the repo. */
|
|
@@ -34,7 +34,7 @@ export interface HandlerError {
|
|
|
34
34
|
error?: 'HeadNotFound'
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
37
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
38
38
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
39
39
|
auth: HA
|
|
40
40
|
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
|
|
|
11
11
|
export interface QueryParams {
|
|
12
12
|
/** The DID of the repo. */
|
|
@@ -35,7 +35,7 @@ export interface HandlerError {
|
|
|
35
35
|
error?: 'RepoNotFound'
|
|
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
|
|
@@ -7,12 +7,13 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { isObj, hasProp } from '../../../../util'
|
|
9
9
|
import { CID } from 'multiformats/cid'
|
|
10
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
10
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
13
|
/** The DID of the repo. */
|
|
14
14
|
did: string
|
|
15
15
|
collection: string
|
|
16
|
+
/** Record Key */
|
|
16
17
|
rkey: string
|
|
17
18
|
/** An optional past commit CID. */
|
|
18
19
|
commit?: string
|
|
@@ -32,7 +33,7 @@ export interface HandlerError {
|
|
|
32
33
|
message?: string
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
36
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
36
37
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
37
38
|
auth: HA
|
|
38
39
|
params: QueryParams
|
|
@@ -7,12 +7,12 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { isObj, hasProp } from '../../../../util'
|
|
9
9
|
import { CID } from 'multiformats/cid'
|
|
10
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
10
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
13
|
/** The DID of the repo. */
|
|
14
14
|
did: string
|
|
15
|
-
/** The revision of the repo to
|
|
15
|
+
/** The revision ('rev') of the repo to create a diff from. */
|
|
16
16
|
since?: string
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -30,7 +30,7 @@ export interface HandlerError {
|
|
|
30
30
|
message?: string
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
33
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
34
34
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
35
35
|
auth: HA
|
|
36
36
|
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
|
|
|
11
11
|
export interface QueryParams {
|
|
12
12
|
/** The DID of the repo. */
|
|
@@ -38,7 +38,7 @@ export interface HandlerError {
|
|
|
38
38
|
message?: string
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
41
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
42
42
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
43
43
|
auth: HA
|
|
44
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
|
|
|
11
11
|
export interface QueryParams {
|
|
12
12
|
limit: number
|
|
@@ -34,7 +34,7 @@ export interface HandlerError {
|
|
|
34
34
|
message?: string
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
37
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
38
38
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
39
39
|
auth: HA
|
|
40
40
|
params: QueryParams
|
|
@@ -48,6 +48,7 @@ export type Handler<HA extends HandlerAuth = never> = (
|
|
|
48
48
|
|
|
49
49
|
export interface Repo {
|
|
50
50
|
did: string
|
|
51
|
+
/** Current repo commit CID */
|
|
51
52
|
head: string
|
|
52
53
|
rev: string
|
|
53
54
|
[k: string]: unknown
|
|
@@ -6,12 +6,12 @@ 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
|
|
|
13
13
|
export interface InputSchema {
|
|
14
|
-
/** Hostname of the service that is notifying of update. */
|
|
14
|
+
/** Hostname of the current service (usually a PDS) that is notifying of update. */
|
|
15
15
|
hostname: string
|
|
16
16
|
[k: string]: unknown
|
|
17
17
|
}
|
|
@@ -6,12 +6,12 @@ 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
|
|
|
13
13
|
export interface InputSchema {
|
|
14
|
-
/** Hostname of the service that is requesting to be crawled. */
|
|
14
|
+
/** Hostname of the current service (eg, PDS) that is requesting to be crawled. */
|
|
15
15
|
hostname: string
|
|
16
16
|
[k: string]: unknown
|
|
17
17
|
}
|
|
@@ -9,7 +9,7 @@ import { HandlerAuth, ErrorFrame } from '@atproto/xrpc-server'
|
|
|
9
9
|
import { IncomingMessage } from 'http'
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {
|
|
12
|
-
/** The last known event to backfill from. */
|
|
12
|
+
/** The last known event seq number to backfill from. */
|
|
13
13
|
cursor?: number
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -32,21 +32,29 @@ export type Handler<HA extends HandlerAuth = never> = (
|
|
|
32
32
|
ctx: HandlerReqCtx<HA>,
|
|
33
33
|
) => AsyncIterable<HandlerOutput>
|
|
34
34
|
|
|
35
|
+
/** Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature. */
|
|
35
36
|
export interface Commit {
|
|
37
|
+
/** The stream sequence number of this message. */
|
|
36
38
|
seq: number
|
|
39
|
+
/** DEPRECATED -- unused */
|
|
37
40
|
rebase: boolean
|
|
41
|
+
/** Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. */
|
|
38
42
|
tooBig: boolean
|
|
43
|
+
/** The repo this event comes from. */
|
|
39
44
|
repo: string
|
|
45
|
+
/** Repo commit object CID. */
|
|
40
46
|
commit: CID
|
|
47
|
+
/** DEPRECATED -- unused. WARNING -- nullable and optional; stick with optional to ensure golang interoperability. */
|
|
41
48
|
prev?: CID | null
|
|
42
|
-
/** The rev of the emitted commit. */
|
|
49
|
+
/** The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event. */
|
|
43
50
|
rev: string
|
|
44
|
-
/** The rev of the last emitted commit from this repo. */
|
|
51
|
+
/** The rev of the last emitted commit from this repo (if any). */
|
|
45
52
|
since: string | null
|
|
46
|
-
/** CAR file containing relevant blocks. */
|
|
53
|
+
/** CAR file containing relevant blocks, as a diff since the previous repo state. */
|
|
47
54
|
blocks: Uint8Array
|
|
48
55
|
ops: RepoOp[]
|
|
49
56
|
blobs: CID[]
|
|
57
|
+
/** Timestamp of when this message was originally broadcast. */
|
|
50
58
|
time: string
|
|
51
59
|
[k: string]: unknown
|
|
52
60
|
}
|
|
@@ -63,6 +71,7 @@ export function validateCommit(v: unknown): ValidationResult {
|
|
|
63
71
|
return lexicons.validate('com.atproto.sync.subscribeRepos#commit', v)
|
|
64
72
|
}
|
|
65
73
|
|
|
74
|
+
/** Represents an update of the account's handle, or transition to/from invalid state. */
|
|
66
75
|
export interface Handle {
|
|
67
76
|
seq: number
|
|
68
77
|
did: string
|
|
@@ -83,6 +92,7 @@ export function validateHandle(v: unknown): ValidationResult {
|
|
|
83
92
|
return lexicons.validate('com.atproto.sync.subscribeRepos#handle', v)
|
|
84
93
|
}
|
|
85
94
|
|
|
95
|
+
/** Represents an account moving from one PDS instance to another. NOTE: not implemented; full account migration may introduce a new message instead. */
|
|
86
96
|
export interface Migrate {
|
|
87
97
|
seq: number
|
|
88
98
|
did: string
|
|
@@ -103,6 +113,7 @@ export function validateMigrate(v: unknown): ValidationResult {
|
|
|
103
113
|
return lexicons.validate('com.atproto.sync.subscribeRepos#migrate', v)
|
|
104
114
|
}
|
|
105
115
|
|
|
116
|
+
/** Indicates that an account has been deleted. */
|
|
106
117
|
export interface Tombstone {
|
|
107
118
|
seq: number
|
|
108
119
|
did: string
|
|
@@ -140,10 +151,11 @@ export function validateInfo(v: unknown): ValidationResult {
|
|
|
140
151
|
return lexicons.validate('com.atproto.sync.subscribeRepos#info', v)
|
|
141
152
|
}
|
|
142
153
|
|
|
143
|
-
/** A repo operation, ie a
|
|
154
|
+
/** A repo operation, ie a mutation of a single record. */
|
|
144
155
|
export interface RepoOp {
|
|
145
156
|
action: 'create' | 'update' | 'delete' | (string & {})
|
|
146
157
|
path: string
|
|
158
|
+
/** For creates and updates, the new record CID. For deletions, null. */
|
|
147
159
|
cid: CID | null
|
|
148
160
|
[k: string]: unknown
|
|
149
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
|
|
|
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 ComAtprotoLabelDefs from '../label/defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -34,7 +34,7 @@ export interface HandlerError {
|
|
|
34
34
|
message?: string
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
37
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
38
38
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
39
39
|
auth: HA
|
|
40
40
|
params: QueryParams
|
|
@@ -7,7 +7,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { isObj, hasProp } from '../../../../util'
|
|
9
9
|
import { CID } from 'multiformats/cid'
|
|
10
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
10
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
13
|
/** The DID of the repo. */
|
|
@@ -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
|
|
@@ -7,7 +7,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
|
7
7
|
import { lexicons } from '../../../../lexicons'
|
|
8
8
|
import { isObj, hasProp } from '../../../../util'
|
|
9
9
|
import { CID } from 'multiformats/cid'
|
|
10
|
-
import { HandlerAuth } from '@atproto/xrpc-server'
|
|
10
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
13
|
/** The DID of the repo. */
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -49,7 +49,7 @@ export interface HandlerError {
|
|
|
49
49
|
| 'IncompatibleDidDoc'
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
52
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
53
53
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
54
54
|
auth: HA
|
|
55
55
|
params: QueryParams
|