@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,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 ComAtprotoAdminDefs 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,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 ComAtprotoAdminDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -56,7 +56,7 @@ export interface HandlerError {
|
|
|
56
56
|
message?: string
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
59
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
60
60
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
61
61
|
auth: HA
|
|
62
62
|
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 ComAtprotoAdminDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -59,7 +59,7 @@ export interface HandlerError {
|
|
|
59
59
|
message?: string
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
62
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
63
63
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
64
64
|
auth: HA
|
|
65
65
|
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 ComAtprotoAdminDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
@@ -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
|
|
|
@@ -41,7 +41,7 @@ export interface HandlerError {
|
|
|
41
41
|
message?: string
|
|
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
|
|
|
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
|
import * as ComAtprotoAdminDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {}
|
|
@@ -44,7 +44,7 @@ export interface HandlerError {
|
|
|
44
44
|
message?: string
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
47
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
48
48
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
49
49
|
auth: HA
|
|
50
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 ComAtprotoAdminDefs from './defs'
|
|
11
11
|
import * as ComAtprotoRepoStrongRef from '../repo/strongRef'
|
|
12
12
|
|
|
@@ -48,7 +48,7 @@ export interface HandlerError {
|
|
|
48
48
|
message?: string
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
51
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
52
52
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
53
53
|
auth: HA
|
|
54
54
|
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 handle to resolve. */
|
|
@@ -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,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
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
13
13
|
export interface InputSchema {
|
|
14
|
+
/** The new handle. */
|
|
14
15
|
handle: string
|
|
15
16
|
[k: string]: unknown
|
|
16
17
|
}
|
|
@@ -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 './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
|
|
@@ -10,7 +10,7 @@ import { IncomingMessage } from 'http'
|
|
|
10
10
|
import * as ComAtprotoLabelDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
-
/** The last known event to backfill from. */
|
|
13
|
+
/** The last known event seq number to backfill from. */
|
|
14
14
|
cursor?: number
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -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 ComAtprotoModerationDefs from './defs'
|
|
11
11
|
import * as ComAtprotoAdminDefs from '../admin/defs'
|
|
12
12
|
import * as ComAtprotoRepoStrongRef from '../repo/strongRef'
|
|
@@ -15,6 +15,7 @@ export interface QueryParams {}
|
|
|
15
15
|
|
|
16
16
|
export interface InputSchema {
|
|
17
17
|
reasonType: ComAtprotoModerationDefs.ReasonType
|
|
18
|
+
/** Additional context about the content and violation. */
|
|
18
19
|
reason?: string
|
|
19
20
|
subject:
|
|
20
21
|
| ComAtprotoAdminDefs.RepoRef
|
|
@@ -52,7 +53,7 @@ export interface HandlerError {
|
|
|
52
53
|
message?: string
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
56
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
56
57
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
57
58
|
auth: HA
|
|
58
59
|
params: QueryParams
|
|
@@ -6,16 +6,17 @@ 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 handle or DID of the repo. */
|
|
14
|
+
/** The handle or DID of the repo (aka, current account). */
|
|
15
15
|
repo: string
|
|
16
|
-
/**
|
|
16
|
+
/** Can be set to 'false' to skip Lexicon schema validation of record data, for all operations. */
|
|
17
17
|
validate: boolean
|
|
18
18
|
writes: (Create | Update | Delete)[]
|
|
19
|
+
/** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
|
|
19
20
|
swapCommit?: string
|
|
20
21
|
[k: string]: unknown
|
|
21
22
|
}
|
|
@@ -43,7 +44,7 @@ export type Handler<HA extends HandlerAuth = never> = (
|
|
|
43
44
|
ctx: HandlerReqCtx<HA>,
|
|
44
45
|
) => Promise<HandlerOutput> | HandlerOutput
|
|
45
46
|
|
|
46
|
-
/**
|
|
47
|
+
/** Operation which creates a new record. */
|
|
47
48
|
export interface Create {
|
|
48
49
|
collection: string
|
|
49
50
|
rkey?: string
|
|
@@ -63,7 +64,7 @@ export function validateCreate(v: unknown): ValidationResult {
|
|
|
63
64
|
return lexicons.validate('com.atproto.repo.applyWrites#create', v)
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
/**
|
|
67
|
+
/** Operation which updates an existing record. */
|
|
67
68
|
export interface Update {
|
|
68
69
|
collection: string
|
|
69
70
|
rkey: string
|
|
@@ -83,7 +84,7 @@ export function validateUpdate(v: unknown): ValidationResult {
|
|
|
83
84
|
return lexicons.validate('com.atproto.repo.applyWrites#update', v)
|
|
84
85
|
}
|
|
85
86
|
|
|
86
|
-
/**
|
|
87
|
+
/** Operation which deletes an existing record. */
|
|
87
88
|
export interface Delete {
|
|
88
89
|
collection: string
|
|
89
90
|
rkey: string
|
|
@@ -6,20 +6,20 @@ 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 handle or DID of the repo. */
|
|
14
|
+
/** The handle or DID of the repo (aka, current account). */
|
|
15
15
|
repo: string
|
|
16
16
|
/** The NSID of the record collection. */
|
|
17
17
|
collection: string
|
|
18
|
-
/** The
|
|
18
|
+
/** The Record Key. */
|
|
19
19
|
rkey?: string
|
|
20
|
-
/**
|
|
20
|
+
/** Can be set to 'false' to skip Lexicon schema validation of record data. */
|
|
21
21
|
validate: boolean
|
|
22
|
-
/** The record
|
|
22
|
+
/** The record itself. Must contain a $type field. */
|
|
23
23
|
record: {}
|
|
24
24
|
/** Compare and swap with the previous commit by CID. */
|
|
25
25
|
swapCommit?: string
|
|
@@ -49,7 +49,7 @@ export interface HandlerError {
|
|
|
49
49
|
error?: 'InvalidSwap'
|
|
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
|
|
@@ -6,16 +6,16 @@ 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 handle or DID of the repo. */
|
|
14
|
+
/** The handle or DID of the repo (aka, current account). */
|
|
15
15
|
repo: string
|
|
16
16
|
/** The NSID of the record collection. */
|
|
17
17
|
collection: string
|
|
18
|
-
/** The
|
|
18
|
+
/** The Record Key. */
|
|
19
19
|
rkey: string
|
|
20
20
|
/** Compare and swap with the previous record by CID. */
|
|
21
21
|
swapRecord?: 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
|
/** The handle or DID of the repo. */
|
|
@@ -18,8 +18,11 @@ export type InputSchema = undefined
|
|
|
18
18
|
export interface OutputSchema {
|
|
19
19
|
handle: string
|
|
20
20
|
did: string
|
|
21
|
+
/** The complete DID document for this account. */
|
|
21
22
|
didDoc: {}
|
|
23
|
+
/** List of all the collections (NSIDs) for which this repo contains at least one record. */
|
|
22
24
|
collections: string[]
|
|
25
|
+
/** Indicates if handle is currently valid (resolves bi-directionally) */
|
|
23
26
|
handleIsCorrect: boolean
|
|
24
27
|
[k: string]: unknown
|
|
25
28
|
}
|
|
@@ -37,7 +40,7 @@ export interface HandlerError {
|
|
|
37
40
|
message?: string
|
|
38
41
|
}
|
|
39
42
|
|
|
40
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
43
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
41
44
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
42
45
|
auth: HA
|
|
43
46
|
params: QueryParams
|
|
@@ -6,14 +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
|
|
|
11
11
|
export interface QueryParams {
|
|
12
12
|
/** The handle or DID of the repo. */
|
|
13
13
|
repo: string
|
|
14
14
|
/** The NSID of the record collection. */
|
|
15
15
|
collection: string
|
|
16
|
-
/** The
|
|
16
|
+
/** The Record Key. */
|
|
17
17
|
rkey: string
|
|
18
18
|
/** The CID of the version of the record. If not specified, then return the most recent version. */
|
|
19
19
|
cid?: string
|
|
@@ -41,7 +41,7 @@ export interface HandlerError {
|
|
|
41
41
|
message?: string
|
|
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
|
|
|
11
11
|
export interface QueryParams {
|
|
12
12
|
/** The handle or DID of the repo. */
|
|
@@ -45,7 +45,7 @@ export interface HandlerError {
|
|
|
45
45
|
message?: string
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
48
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
49
49
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
50
50
|
auth: HA
|
|
51
51
|
params: QueryParams
|
|
@@ -6,22 +6,22 @@ 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 handle or DID of the repo. */
|
|
14
|
+
/** The handle or DID of the repo (aka, current account). */
|
|
15
15
|
repo: string
|
|
16
16
|
/** The NSID of the record collection. */
|
|
17
17
|
collection: string
|
|
18
|
-
/** The
|
|
18
|
+
/** The Record Key. */
|
|
19
19
|
rkey: string
|
|
20
|
-
/**
|
|
20
|
+
/** Can be set to 'false' to skip Lexicon schema validation of record data. */
|
|
21
21
|
validate: boolean
|
|
22
22
|
/** The record to write. */
|
|
23
23
|
record: {}
|
|
24
|
-
/** Compare and swap with the previous record by CID. */
|
|
24
|
+
/** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
|
|
25
25
|
swapRecord?: string | null
|
|
26
26
|
/** Compare and swap with the previous commit by CID. */
|
|
27
27
|
swapCommit?: string
|
|
@@ -51,7 +51,7 @@ export interface HandlerError {
|
|
|
51
51
|
error?: 'InvalidSwap'
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
54
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
55
55
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
56
56
|
auth: HA
|
|
57
57
|
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
|
|
|
@@ -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
|
|
|
@@ -6,28 +6,36 @@ 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
14
|
email?: string
|
|
15
|
+
/** Requested handle for the account. */
|
|
15
16
|
handle: string
|
|
17
|
+
/** Pre-existing atproto DID, being imported to a new account. */
|
|
16
18
|
did?: string
|
|
17
19
|
inviteCode?: string
|
|
18
20
|
verificationCode?: string
|
|
19
21
|
verificationPhone?: string
|
|
22
|
+
/** Initial account password. May need to meet instance-specific password strength requirements. */
|
|
20
23
|
password?: string
|
|
24
|
+
/** DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. */
|
|
21
25
|
recoveryKey?: string
|
|
26
|
+
/** A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. */
|
|
22
27
|
plcOp?: {}
|
|
23
28
|
[k: string]: unknown
|
|
24
29
|
}
|
|
25
30
|
|
|
31
|
+
/** Account login session returned on successful account creation. */
|
|
26
32
|
export interface OutputSchema {
|
|
27
33
|
accessJwt: string
|
|
28
34
|
refreshJwt: string
|
|
29
35
|
handle: string
|
|
36
|
+
/** The DID of the new account. */
|
|
30
37
|
did: string
|
|
38
|
+
/** Complete DID document. */
|
|
31
39
|
didDoc?: {}
|
|
32
40
|
[k: string]: unknown
|
|
33
41
|
}
|
|
@@ -56,7 +64,7 @@ export interface HandlerError {
|
|
|
56
64
|
| 'IncompatibleDidDoc'
|
|
57
65
|
}
|
|
58
66
|
|
|
59
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
67
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
60
68
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
61
69
|
auth: HA
|
|
62
70
|
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
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
13
13
|
export interface InputSchema {
|
|
14
|
+
/** A short name for the App Password, to help distinguish them. */
|
|
14
15
|
name: string
|
|
15
16
|
[k: string]: unknown
|
|
16
17
|
}
|
|
@@ -34,7 +35,7 @@ export interface HandlerError {
|
|
|
34
35
|
error?: 'AccountTakedown'
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
38
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
38
39
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
39
40
|
auth: HA
|
|
40
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
|
|
|
@@ -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,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
|
|
|
@@ -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
|
|
|
@@ -45,7 +45,7 @@ export interface HandlerError {
|
|
|
45
45
|
error?: 'AccountTakedown'
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export type HandlerOutput = HandlerError | HandlerSuccess
|
|
48
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
49
49
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
50
50
|
auth: HA
|
|
51
51
|
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
|
|