@atproto/bsky 0.0.10 → 0.0.12

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.
Files changed (173) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/api/com/atproto/admin/util.d.ts +5 -0
  3. package/dist/config.d.ts +2 -0
  4. package/dist/context.d.ts +8 -0
  5. package/dist/db/index.js +51 -2
  6. package/dist/db/index.js.map +3 -3
  7. package/dist/db/migrations/20230929T192920807Z-record-cursor-indexes.d.ts +3 -0
  8. package/dist/db/migrations/index.d.ts +1 -0
  9. package/dist/did-cache.d.ts +2 -2
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +1818 -580
  12. package/dist/index.js.map +3 -3
  13. package/dist/lexicon/index.d.ts +16 -0
  14. package/dist/lexicon/lexicons.d.ts +330 -3
  15. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -0
  16. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +28 -0
  17. package/dist/lexicon/types/com/atproto/admin/getAccountInfo.d.ts +29 -0
  18. package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +39 -0
  19. package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +0 -1
  20. package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts +46 -0
  21. package/dist/lexicon/types/com/atproto/server/confirmEmail.d.ts +27 -0
  22. package/dist/lexicon/types/com/atproto/server/createAccount.d.ts +2 -0
  23. package/dist/lexicon/types/com/atproto/server/createSession.d.ts +2 -0
  24. package/dist/lexicon/types/com/atproto/server/getSession.d.ts +1 -0
  25. package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +1 -0
  26. package/dist/lexicon/types/com/atproto/server/requestEmailConfirmation.d.ts +19 -0
  27. package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +30 -0
  28. package/dist/lexicon/types/com/atproto/server/reserveSigningKey.d.ts +30 -0
  29. package/dist/lexicon/types/com/atproto/server/updateEmail.d.ts +27 -0
  30. package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +1 -0
  31. package/dist/services/actor/index.d.ts +2 -2
  32. package/dist/services/actor/types.d.ts +1 -0
  33. package/dist/services/graph/index.d.ts +2 -0
  34. package/dist/services/moderation/index.d.ts +13 -3
  35. package/dist/services/util/search.d.ts +3 -3
  36. package/package.json +13 -14
  37. package/src/api/app/bsky/actor/searchActors.ts +36 -22
  38. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +24 -17
  39. package/src/api/app/bsky/feed/getAuthorFeed.ts +2 -2
  40. package/src/api/app/bsky/feed/getPostThread.ts +2 -2
  41. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +1 -0
  42. package/src/api/app/bsky/notification/listNotifications.ts +33 -22
  43. package/src/api/com/atproto/admin/getModerationAction.ts +28 -2
  44. package/src/api/com/atproto/admin/getModerationReport.ts +27 -2
  45. package/src/api/com/atproto/admin/getRecord.ts +14 -2
  46. package/src/api/com/atproto/admin/getRepo.ts +13 -2
  47. package/src/api/com/atproto/admin/reverseModerationAction.ts +31 -5
  48. package/src/api/com/atproto/admin/searchRepos.ts +6 -12
  49. package/src/api/com/atproto/admin/takeModerationAction.ts +41 -7
  50. package/src/api/com/atproto/admin/util.ts +50 -0
  51. package/src/api/well-known.ts +8 -0
  52. package/src/auth.ts +12 -5
  53. package/src/auto-moderator/index.ts +1 -0
  54. package/src/config.ts +7 -0
  55. package/src/context.ts +30 -0
  56. package/src/db/migrations/20230929T192920807Z-record-cursor-indexes.ts +40 -0
  57. package/src/db/migrations/index.ts +1 -0
  58. package/src/did-cache.ts +29 -14
  59. package/src/feed-gen/with-friends.ts +2 -2
  60. package/src/index.ts +9 -1
  61. package/src/indexer/subscription.ts +1 -21
  62. package/src/lexicon/index.ts +96 -0
  63. package/src/lexicon/lexicons.ts +368 -4
  64. package/src/lexicon/types/app/bsky/actor/defs.ts +1 -0
  65. package/src/lexicon/types/com/atproto/admin/defs.ts +61 -0
  66. package/src/lexicon/types/com/atproto/admin/getAccountInfo.ts +41 -0
  67. package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +54 -0
  68. package/src/lexicon/types/com/atproto/admin/searchRepos.ts +0 -1
  69. package/src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts +61 -0
  70. package/src/lexicon/types/com/atproto/server/confirmEmail.ts +40 -0
  71. package/src/lexicon/types/com/atproto/server/createAccount.ts +2 -0
  72. package/src/lexicon/types/com/atproto/server/createSession.ts +2 -0
  73. package/src/lexicon/types/com/atproto/server/getSession.ts +1 -0
  74. package/src/lexicon/types/com/atproto/server/refreshSession.ts +1 -0
  75. package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +31 -0
  76. package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +43 -0
  77. package/src/lexicon/types/com/atproto/server/reserveSigningKey.ts +44 -0
  78. package/src/lexicon/types/com/atproto/server/updateEmail.ts +41 -0
  79. package/src/lexicon/types/com/atproto/sync/listRepos.ts +1 -0
  80. package/src/logger.ts +8 -0
  81. package/src/services/actor/index.ts +16 -10
  82. package/src/services/actor/types.ts +1 -0
  83. package/src/services/actor/views.ts +26 -8
  84. package/src/services/graph/index.ts +26 -7
  85. package/src/services/indexing/index.ts +15 -17
  86. package/src/services/moderation/index.ts +94 -14
  87. package/src/services/moderation/views.ts +1 -0
  88. package/src/services/util/search.ts +24 -23
  89. package/tests/__snapshots__/feed-generation.test.ts.snap +12 -12
  90. package/tests/__snapshots__/indexing.test.ts.snap +4 -4
  91. package/tests/admin/__snapshots__/get-moderation-action.test.ts.snap +172 -0
  92. package/tests/admin/__snapshots__/get-moderation-actions.test.ts.snap +178 -0
  93. package/tests/admin/__snapshots__/get-moderation-report.test.ts.snap +177 -0
  94. package/tests/admin/__snapshots__/get-moderation-reports.test.ts.snap +307 -0
  95. package/tests/admin/__snapshots__/get-record.test.ts.snap +275 -0
  96. package/tests/admin/__snapshots__/get-repo.test.ts.snap +103 -0
  97. package/tests/admin/get-moderation-action.test.ts +100 -0
  98. package/tests/admin/get-moderation-actions.test.ts +164 -0
  99. package/tests/admin/get-moderation-report.test.ts +100 -0
  100. package/tests/admin/get-moderation-reports.test.ts +332 -0
  101. package/tests/admin/get-record.test.ts +115 -0
  102. package/tests/admin/get-repo.test.ts +101 -0
  103. package/tests/{moderation.test.ts → admin/moderation.test.ts} +107 -9
  104. package/tests/admin/repo-search.test.ts +124 -0
  105. package/tests/algos/hot-classic.test.ts +3 -5
  106. package/tests/algos/whats-hot.test.ts +3 -5
  107. package/tests/algos/with-friends.test.ts +2 -4
  108. package/tests/auth.test.ts +64 -0
  109. package/tests/auto-moderator/fuzzy-matcher.test.ts +2 -3
  110. package/tests/auto-moderator/labeler.test.ts +5 -7
  111. package/tests/auto-moderator/takedowns.test.ts +11 -12
  112. package/tests/blob-resolver.test.ts +1 -3
  113. package/tests/did-cache.test.ts +2 -5
  114. package/tests/feed-generation.test.ts +8 -6
  115. package/tests/handle-invalidation.test.ts +2 -3
  116. package/tests/image/server.test.ts +1 -4
  117. package/tests/image/sharp.test.ts +1 -1
  118. package/tests/indexing.test.ts +4 -4
  119. package/tests/notification-server.test.ts +2 -3
  120. package/tests/pipeline/backpressure.test.ts +2 -3
  121. package/tests/pipeline/reingest.test.ts +7 -4
  122. package/tests/pipeline/repartition.test.ts +2 -3
  123. package/tests/reprocessing.test.ts +2 -6
  124. package/tests/seeds/basic.ts +4 -4
  125. package/tests/seeds/follows.ts +1 -1
  126. package/tests/seeds/likes.ts +1 -1
  127. package/tests/seeds/reposts.ts +1 -1
  128. package/tests/seeds/users-bulk.ts +1 -1
  129. package/tests/seeds/users.ts +1 -1
  130. package/tests/server.test.ts +1 -3
  131. package/tests/subscription/repo.test.ts +2 -4
  132. package/tests/views/__snapshots__/author-feed.test.ts.snap +24 -24
  133. package/tests/views/__snapshots__/block-lists.test.ts.snap +42 -7
  134. package/tests/views/__snapshots__/blocks.test.ts.snap +2 -2
  135. package/tests/views/__snapshots__/list-feed.test.ts.snap +6 -6
  136. package/tests/views/__snapshots__/mute-lists.test.ts.snap +15 -4
  137. package/tests/views/__snapshots__/mutes.test.ts.snap +2 -2
  138. package/tests/views/__snapshots__/notifications.test.ts.snap +2 -2
  139. package/tests/views/__snapshots__/posts.test.ts.snap +8 -8
  140. package/tests/views/__snapshots__/thread.test.ts.snap +10 -10
  141. package/tests/views/__snapshots__/timeline.test.ts.snap +58 -58
  142. package/tests/views/actor-likes.test.ts +2 -3
  143. package/tests/views/actor-search.test.ts +5 -5
  144. package/tests/views/admin/repo-search.test.ts +2 -4
  145. package/tests/views/author-feed.test.ts +2 -4
  146. package/tests/views/block-lists.test.ts +34 -7
  147. package/tests/views/blocks.test.ts +6 -3
  148. package/tests/views/follows.test.ts +2 -4
  149. package/tests/views/likes.test.ts +2 -5
  150. package/tests/views/list-feed.test.ts +2 -4
  151. package/tests/views/mute-lists.test.ts +23 -5
  152. package/tests/views/mutes.test.ts +2 -5
  153. package/tests/views/notifications.test.ts +2 -4
  154. package/tests/views/posts.test.ts +2 -5
  155. package/tests/views/profile.test.ts +4 -5
  156. package/tests/views/reposts.test.ts +2 -4
  157. package/tests/views/suggested-follows.test.ts +2 -3
  158. package/tests/views/suggestions.test.ts +2 -4
  159. package/tests/views/thread.test.ts +2 -4
  160. package/tests/views/threadgating.test.ts +2 -3
  161. package/tests/views/timeline.test.ts +2 -4
  162. package/dist/env.d.ts +0 -1
  163. package/example.dev.env +0 -5
  164. package/src/env.ts +0 -9
  165. package/tests/seeds/client.ts +0 -466
  166. /package/tests/{__snapshots__ → admin/__snapshots__}/moderation.test.ts.snap +0 -0
  167. /package/tests/{image/fixtures → sample-img}/at.png +0 -0
  168. /package/tests/{image/fixtures → sample-img}/hd-key.jpg +0 -0
  169. /package/tests/{image/fixtures → sample-img}/key-alt.jpg +0 -0
  170. /package/tests/{image/fixtures → sample-img}/key-landscape-large.jpg +0 -0
  171. /package/tests/{image/fixtures → sample-img}/key-landscape-small.jpg +0 -0
  172. /package/tests/{image/fixtures → sample-img}/key-portrait-large.jpg +0 -0
  173. /package/tests/{image/fixtures → sample-img}/key-portrait-small.jpg +0 -0
@@ -2,6 +2,7 @@ import { Server as XrpcServer, Options as XrpcOptions, AuthVerifier, StreamAuthV
2
2
  import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
3
3
  import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
4
4
  import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
5
+ import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo';
5
6
  import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
6
7
  import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
7
8
  import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
@@ -9,6 +10,7 @@ import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/g
9
10
  import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports';
10
11
  import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord';
11
12
  import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo';
13
+ import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus';
12
14
  import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports';
13
15
  import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
14
16
  import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
@@ -16,6 +18,7 @@ import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
16
18
  import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
17
19
  import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
18
20
  import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
21
+ import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus';
19
22
  import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle';
20
23
  import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle';
21
24
  import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels';
@@ -29,6 +32,7 @@ import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
29
32
  import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
30
33
  import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
31
34
  import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
35
+ import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail';
32
36
  import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
33
37
  import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword';
34
38
  import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode';
@@ -42,9 +46,13 @@ import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSessi
42
46
  import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords';
43
47
  import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession';
44
48
  import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete';
49
+ import * as ComAtprotoServerRequestEmailConfirmation from './types/com/atproto/server/requestEmailConfirmation';
50
+ import * as ComAtprotoServerRequestEmailUpdate from './types/com/atproto/server/requestEmailUpdate';
45
51
  import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset';
52
+ import * as ComAtprotoServerReserveSigningKey from './types/com/atproto/server/reserveSigningKey';
46
53
  import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword';
47
54
  import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword';
55
+ import * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail';
48
56
  import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob';
49
57
  import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks';
50
58
  import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout';
@@ -149,6 +157,7 @@ export declare class AdminNS {
149
157
  disableAccountInvites<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminDisableAccountInvites.Handler<ExtractAuth<AV>>, ComAtprotoAdminDisableAccountInvites.HandlerReqCtx<ExtractAuth<AV>>>): void;
150
158
  disableInviteCodes<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminDisableInviteCodes.Handler<ExtractAuth<AV>>, ComAtprotoAdminDisableInviteCodes.HandlerReqCtx<ExtractAuth<AV>>>): void;
151
159
  enableAccountInvites<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminEnableAccountInvites.Handler<ExtractAuth<AV>>, ComAtprotoAdminEnableAccountInvites.HandlerReqCtx<ExtractAuth<AV>>>): void;
160
+ getAccountInfo<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminGetAccountInfo.Handler<ExtractAuth<AV>>, ComAtprotoAdminGetAccountInfo.HandlerReqCtx<ExtractAuth<AV>>>): void;
152
161
  getInviteCodes<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminGetInviteCodes.Handler<ExtractAuth<AV>>, ComAtprotoAdminGetInviteCodes.HandlerReqCtx<ExtractAuth<AV>>>): void;
153
162
  getModerationAction<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminGetModerationAction.Handler<ExtractAuth<AV>>, ComAtprotoAdminGetModerationAction.HandlerReqCtx<ExtractAuth<AV>>>): void;
154
163
  getModerationActions<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminGetModerationActions.Handler<ExtractAuth<AV>>, ComAtprotoAdminGetModerationActions.HandlerReqCtx<ExtractAuth<AV>>>): void;
@@ -156,6 +165,7 @@ export declare class AdminNS {
156
165
  getModerationReports<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminGetModerationReports.Handler<ExtractAuth<AV>>, ComAtprotoAdminGetModerationReports.HandlerReqCtx<ExtractAuth<AV>>>): void;
157
166
  getRecord<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminGetRecord.Handler<ExtractAuth<AV>>, ComAtprotoAdminGetRecord.HandlerReqCtx<ExtractAuth<AV>>>): void;
158
167
  getRepo<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminGetRepo.Handler<ExtractAuth<AV>>, ComAtprotoAdminGetRepo.HandlerReqCtx<ExtractAuth<AV>>>): void;
168
+ getSubjectStatus<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminGetSubjectStatus.Handler<ExtractAuth<AV>>, ComAtprotoAdminGetSubjectStatus.HandlerReqCtx<ExtractAuth<AV>>>): void;
159
169
  resolveModerationReports<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminResolveModerationReports.Handler<ExtractAuth<AV>>, ComAtprotoAdminResolveModerationReports.HandlerReqCtx<ExtractAuth<AV>>>): void;
160
170
  reverseModerationAction<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminReverseModerationAction.Handler<ExtractAuth<AV>>, ComAtprotoAdminReverseModerationAction.HandlerReqCtx<ExtractAuth<AV>>>): void;
161
171
  searchRepos<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminSearchRepos.Handler<ExtractAuth<AV>>, ComAtprotoAdminSearchRepos.HandlerReqCtx<ExtractAuth<AV>>>): void;
@@ -163,6 +173,7 @@ export declare class AdminNS {
163
173
  takeModerationAction<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminTakeModerationAction.Handler<ExtractAuth<AV>>, ComAtprotoAdminTakeModerationAction.HandlerReqCtx<ExtractAuth<AV>>>): void;
164
174
  updateAccountEmail<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminUpdateAccountEmail.Handler<ExtractAuth<AV>>, ComAtprotoAdminUpdateAccountEmail.HandlerReqCtx<ExtractAuth<AV>>>): void;
165
175
  updateAccountHandle<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminUpdateAccountHandle.Handler<ExtractAuth<AV>>, ComAtprotoAdminUpdateAccountHandle.HandlerReqCtx<ExtractAuth<AV>>>): void;
176
+ updateSubjectStatus<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoAdminUpdateSubjectStatus.Handler<ExtractAuth<AV>>, ComAtprotoAdminUpdateSubjectStatus.HandlerReqCtx<ExtractAuth<AV>>>): void;
166
177
  }
167
178
  export declare class IdentityNS {
168
179
  _server: Server;
@@ -196,6 +207,7 @@ export declare class RepoNS {
196
207
  export declare class ServerNS {
197
208
  _server: Server;
198
209
  constructor(server: Server);
210
+ confirmEmail<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerConfirmEmail.Handler<ExtractAuth<AV>>, ComAtprotoServerConfirmEmail.HandlerReqCtx<ExtractAuth<AV>>>): void;
199
211
  createAccount<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerCreateAccount.Handler<ExtractAuth<AV>>, ComAtprotoServerCreateAccount.HandlerReqCtx<ExtractAuth<AV>>>): void;
200
212
  createAppPassword<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerCreateAppPassword.Handler<ExtractAuth<AV>>, ComAtprotoServerCreateAppPassword.HandlerReqCtx<ExtractAuth<AV>>>): void;
201
213
  createInviteCode<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerCreateInviteCode.Handler<ExtractAuth<AV>>, ComAtprotoServerCreateInviteCode.HandlerReqCtx<ExtractAuth<AV>>>): void;
@@ -209,9 +221,13 @@ export declare class ServerNS {
209
221
  listAppPasswords<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerListAppPasswords.Handler<ExtractAuth<AV>>, ComAtprotoServerListAppPasswords.HandlerReqCtx<ExtractAuth<AV>>>): void;
210
222
  refreshSession<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRefreshSession.Handler<ExtractAuth<AV>>, ComAtprotoServerRefreshSession.HandlerReqCtx<ExtractAuth<AV>>>): void;
211
223
  requestAccountDelete<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRequestAccountDelete.Handler<ExtractAuth<AV>>, ComAtprotoServerRequestAccountDelete.HandlerReqCtx<ExtractAuth<AV>>>): void;
224
+ requestEmailConfirmation<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRequestEmailConfirmation.Handler<ExtractAuth<AV>>, ComAtprotoServerRequestEmailConfirmation.HandlerReqCtx<ExtractAuth<AV>>>): void;
225
+ requestEmailUpdate<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRequestEmailUpdate.Handler<ExtractAuth<AV>>, ComAtprotoServerRequestEmailUpdate.HandlerReqCtx<ExtractAuth<AV>>>): void;
212
226
  requestPasswordReset<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRequestPasswordReset.Handler<ExtractAuth<AV>>, ComAtprotoServerRequestPasswordReset.HandlerReqCtx<ExtractAuth<AV>>>): void;
227
+ reserveSigningKey<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerReserveSigningKey.Handler<ExtractAuth<AV>>, ComAtprotoServerReserveSigningKey.HandlerReqCtx<ExtractAuth<AV>>>): void;
213
228
  resetPassword<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerResetPassword.Handler<ExtractAuth<AV>>, ComAtprotoServerResetPassword.HandlerReqCtx<ExtractAuth<AV>>>): void;
214
229
  revokeAppPassword<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRevokeAppPassword.Handler<ExtractAuth<AV>>, ComAtprotoServerRevokeAppPassword.HandlerReqCtx<ExtractAuth<AV>>>): void;
230
+ updateEmail<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerUpdateEmail.Handler<ExtractAuth<AV>>, ComAtprotoServerUpdateEmail.HandlerReqCtx<ExtractAuth<AV>>>): void;
215
231
  }
216
232
  export declare class SyncNS {
217
233
  _server: Server;
@@ -4,6 +4,18 @@ export declare const schemaDict: {
4
4
  lexicon: number;
5
5
  id: string;
6
6
  defs: {
7
+ statusAttr: {
8
+ type: string;
9
+ required: string[];
10
+ properties: {
11
+ applied: {
12
+ type: string;
13
+ };
14
+ ref: {
15
+ type: string;
16
+ };
17
+ };
18
+ };
7
19
  actionView: {
8
20
  type: string;
9
21
  required: string[];
@@ -348,6 +360,44 @@ export declare const schemaDict: {
348
360
  };
349
361
  };
350
362
  };
363
+ accountView: {
364
+ type: string;
365
+ required: string[];
366
+ properties: {
367
+ did: {
368
+ type: string;
369
+ format: string;
370
+ };
371
+ handle: {
372
+ type: string;
373
+ format: string;
374
+ };
375
+ email: {
376
+ type: string;
377
+ };
378
+ indexedAt: {
379
+ type: string;
380
+ format: string;
381
+ };
382
+ invitedBy: {
383
+ type: string;
384
+ ref: string;
385
+ };
386
+ invites: {
387
+ type: string;
388
+ items: {
389
+ type: string;
390
+ ref: string;
391
+ };
392
+ };
393
+ invitesDisabled: {
394
+ type: string;
395
+ };
396
+ inviteNote: {
397
+ type: string;
398
+ };
399
+ };
400
+ };
351
401
  repoViewNotFound: {
352
402
  type: string;
353
403
  required: string[];
@@ -368,6 +418,24 @@ export declare const schemaDict: {
368
418
  };
369
419
  };
370
420
  };
421
+ repoBlobRef: {
422
+ type: string;
423
+ required: string[];
424
+ properties: {
425
+ did: {
426
+ type: string;
427
+ format: string;
428
+ };
429
+ cid: {
430
+ type: string;
431
+ format: string;
432
+ };
433
+ recordUri: {
434
+ type: string;
435
+ format: string;
436
+ };
437
+ };
438
+ };
371
439
  recordView: {
372
440
  type: string;
373
441
  required: string[];
@@ -631,6 +699,33 @@ export declare const schemaDict: {
631
699
  };
632
700
  };
633
701
  };
702
+ ComAtprotoAdminGetAccountInfo: {
703
+ lexicon: number;
704
+ id: string;
705
+ defs: {
706
+ main: {
707
+ type: string;
708
+ description: string;
709
+ parameters: {
710
+ type: string;
711
+ required: string[];
712
+ properties: {
713
+ did: {
714
+ type: string;
715
+ format: string;
716
+ };
717
+ };
718
+ };
719
+ output: {
720
+ encoding: string;
721
+ schema: {
722
+ type: string;
723
+ ref: string;
724
+ };
725
+ };
726
+ };
727
+ };
728
+ };
634
729
  ComAtprotoAdminGetInviteCodes: {
635
730
  lexicon: number;
636
731
  id: string;
@@ -916,6 +1011,50 @@ export declare const schemaDict: {
916
1011
  };
917
1012
  };
918
1013
  };
1014
+ ComAtprotoAdminGetSubjectStatus: {
1015
+ lexicon: number;
1016
+ id: string;
1017
+ defs: {
1018
+ main: {
1019
+ type: string;
1020
+ description: string;
1021
+ parameters: {
1022
+ type: string;
1023
+ properties: {
1024
+ did: {
1025
+ type: string;
1026
+ format: string;
1027
+ };
1028
+ uri: {
1029
+ type: string;
1030
+ format: string;
1031
+ };
1032
+ blob: {
1033
+ type: string;
1034
+ format: string;
1035
+ };
1036
+ };
1037
+ };
1038
+ output: {
1039
+ encoding: string;
1040
+ schema: {
1041
+ type: string;
1042
+ required: string[];
1043
+ properties: {
1044
+ subject: {
1045
+ type: string;
1046
+ refs: string[];
1047
+ };
1048
+ takedown: {
1049
+ type: string;
1050
+ ref: string;
1051
+ };
1052
+ };
1053
+ };
1054
+ };
1055
+ };
1056
+ };
1057
+ };
919
1058
  ComAtprotoAdminResolveModerationReports: {
920
1059
  lexicon: number;
921
1060
  id: string;
@@ -1008,9 +1147,6 @@ export declare const schemaDict: {
1008
1147
  q: {
1009
1148
  type: string;
1010
1149
  };
1011
- invitedBy: {
1012
- type: string;
1013
- };
1014
1150
  limit: {
1015
1151
  type: string;
1016
1152
  minimum: number;
@@ -1206,6 +1342,50 @@ export declare const schemaDict: {
1206
1342
  };
1207
1343
  };
1208
1344
  };
1345
+ ComAtprotoAdminUpdateSubjectStatus: {
1346
+ lexicon: number;
1347
+ id: string;
1348
+ defs: {
1349
+ main: {
1350
+ type: string;
1351
+ description: string;
1352
+ input: {
1353
+ encoding: string;
1354
+ schema: {
1355
+ type: string;
1356
+ required: string[];
1357
+ properties: {
1358
+ subject: {
1359
+ type: string;
1360
+ refs: string[];
1361
+ };
1362
+ takedown: {
1363
+ type: string;
1364
+ ref: string;
1365
+ };
1366
+ };
1367
+ };
1368
+ };
1369
+ output: {
1370
+ encoding: string;
1371
+ schema: {
1372
+ type: string;
1373
+ required: string[];
1374
+ properties: {
1375
+ subject: {
1376
+ type: string;
1377
+ refs: string[];
1378
+ };
1379
+ takedown: {
1380
+ type: string;
1381
+ ref: string;
1382
+ };
1383
+ };
1384
+ };
1385
+ };
1386
+ };
1387
+ };
1388
+ };
1209
1389
  ComAtprotoIdentityResolveHandle: {
1210
1390
  lexicon: number;
1211
1391
  id: string;
@@ -1490,6 +1670,8 @@ export declare const schemaDict: {
1490
1670
  };
1491
1671
  reason: {
1492
1672
  type: string;
1673
+ maxGraphemes: number;
1674
+ maxLength: number;
1493
1675
  };
1494
1676
  subject: {
1495
1677
  type: string;
@@ -2060,6 +2242,34 @@ export declare const schemaDict: {
2060
2242
  };
2061
2243
  };
2062
2244
  };
2245
+ ComAtprotoServerConfirmEmail: {
2246
+ lexicon: number;
2247
+ id: string;
2248
+ defs: {
2249
+ main: {
2250
+ type: string;
2251
+ description: string;
2252
+ input: {
2253
+ encoding: string;
2254
+ schema: {
2255
+ type: string;
2256
+ required: string[];
2257
+ properties: {
2258
+ email: {
2259
+ type: string;
2260
+ };
2261
+ token: {
2262
+ type: string;
2263
+ };
2264
+ };
2265
+ };
2266
+ };
2267
+ errors: {
2268
+ name: string;
2269
+ }[];
2270
+ };
2271
+ };
2272
+ };
2063
2273
  ComAtprotoServerCreateAccount: {
2064
2274
  lexicon: number;
2065
2275
  id: string;
@@ -2093,6 +2303,9 @@ export declare const schemaDict: {
2093
2303
  recoveryKey: {
2094
2304
  type: string;
2095
2305
  };
2306
+ plcOp: {
2307
+ type: string;
2308
+ };
2096
2309
  };
2097
2310
  };
2098
2311
  };
@@ -2116,6 +2329,9 @@ export declare const schemaDict: {
2116
2329
  type: string;
2117
2330
  format: string;
2118
2331
  };
2332
+ didDoc: {
2333
+ type: string;
2334
+ };
2119
2335
  };
2120
2336
  };
2121
2337
  };
@@ -2318,9 +2534,15 @@ export declare const schemaDict: {
2318
2534
  type: string;
2319
2535
  format: string;
2320
2536
  };
2537
+ didDoc: {
2538
+ type: string;
2539
+ };
2321
2540
  email: {
2322
2541
  type: string;
2323
2542
  };
2543
+ emailConfirmed: {
2544
+ type: string;
2545
+ };
2324
2546
  };
2325
2547
  };
2326
2548
  };
@@ -2533,6 +2755,9 @@ export declare const schemaDict: {
2533
2755
  email: {
2534
2756
  type: string;
2535
2757
  };
2758
+ emailConfirmed: {
2759
+ type: string;
2760
+ };
2536
2761
  };
2537
2762
  };
2538
2763
  };
@@ -2608,6 +2833,9 @@ export declare const schemaDict: {
2608
2833
  type: string;
2609
2834
  format: string;
2610
2835
  };
2836
+ didDoc: {
2837
+ type: string;
2838
+ };
2611
2839
  };
2612
2840
  };
2613
2841
  };
@@ -2627,6 +2855,38 @@ export declare const schemaDict: {
2627
2855
  };
2628
2856
  };
2629
2857
  };
2858
+ ComAtprotoServerRequestEmailConfirmation: {
2859
+ lexicon: number;
2860
+ id: string;
2861
+ defs: {
2862
+ main: {
2863
+ type: string;
2864
+ description: string;
2865
+ };
2866
+ };
2867
+ };
2868
+ ComAtprotoServerRequestEmailUpdate: {
2869
+ lexicon: number;
2870
+ id: string;
2871
+ defs: {
2872
+ main: {
2873
+ type: string;
2874
+ description: string;
2875
+ output: {
2876
+ encoding: string;
2877
+ schema: {
2878
+ type: string;
2879
+ required: string[];
2880
+ properties: {
2881
+ tokenRequired: {
2882
+ type: string;
2883
+ };
2884
+ };
2885
+ };
2886
+ };
2887
+ };
2888
+ };
2889
+ };
2630
2890
  ComAtprotoServerRequestPasswordReset: {
2631
2891
  lexicon: number;
2632
2892
  id: string;
@@ -2649,6 +2909,29 @@ export declare const schemaDict: {
2649
2909
  };
2650
2910
  };
2651
2911
  };
2912
+ ComAtprotoServerReserveSigningKey: {
2913
+ lexicon: number;
2914
+ id: string;
2915
+ defs: {
2916
+ main: {
2917
+ type: string;
2918
+ description: string;
2919
+ output: {
2920
+ encoding: string;
2921
+ schema: {
2922
+ type: string;
2923
+ required: string[];
2924
+ properties: {
2925
+ signingKey: {
2926
+ type: string;
2927
+ description: string;
2928
+ };
2929
+ };
2930
+ };
2931
+ };
2932
+ };
2933
+ };
2934
+ };
2652
2935
  ComAtprotoServerResetPassword: {
2653
2936
  lexicon: number;
2654
2937
  id: string;
@@ -2699,6 +2982,35 @@ export declare const schemaDict: {
2699
2982
  };
2700
2983
  };
2701
2984
  };
2985
+ ComAtprotoServerUpdateEmail: {
2986
+ lexicon: number;
2987
+ id: string;
2988
+ defs: {
2989
+ main: {
2990
+ type: string;
2991
+ description: string;
2992
+ input: {
2993
+ encoding: string;
2994
+ schema: {
2995
+ type: string;
2996
+ required: string[];
2997
+ properties: {
2998
+ email: {
2999
+ type: string;
3000
+ };
3001
+ token: {
3002
+ type: string;
3003
+ description: string;
3004
+ };
3005
+ };
3006
+ };
3007
+ };
3008
+ errors: {
3009
+ name: string;
3010
+ }[];
3011
+ };
3012
+ };
3013
+ };
2702
3014
  ComAtprotoSyncGetBlob: {
2703
3015
  lexicon: number;
2704
3016
  id: string;
@@ -3030,6 +3342,9 @@ export declare const schemaDict: {
3030
3342
  type: string;
3031
3343
  format: string;
3032
3344
  };
3345
+ rev: {
3346
+ type: string;
3347
+ };
3033
3348
  };
3034
3349
  };
3035
3350
  };
@@ -3406,6 +3721,10 @@ export declare const schemaDict: {
3406
3721
  type: string;
3407
3722
  format: string;
3408
3723
  };
3724
+ blockingByList: {
3725
+ type: string;
3726
+ ref: string;
3727
+ };
3409
3728
  following: {
3410
3729
  type: string;
3411
3730
  format: string;
@@ -6806,6 +7125,7 @@ export declare const ids: {
6806
7125
  ComAtprotoAdminDisableAccountInvites: string;
6807
7126
  ComAtprotoAdminDisableInviteCodes: string;
6808
7127
  ComAtprotoAdminEnableAccountInvites: string;
7128
+ ComAtprotoAdminGetAccountInfo: string;
6809
7129
  ComAtprotoAdminGetInviteCodes: string;
6810
7130
  ComAtprotoAdminGetModerationAction: string;
6811
7131
  ComAtprotoAdminGetModerationActions: string;
@@ -6813,6 +7133,7 @@ export declare const ids: {
6813
7133
  ComAtprotoAdminGetModerationReports: string;
6814
7134
  ComAtprotoAdminGetRecord: string;
6815
7135
  ComAtprotoAdminGetRepo: string;
7136
+ ComAtprotoAdminGetSubjectStatus: string;
6816
7137
  ComAtprotoAdminResolveModerationReports: string;
6817
7138
  ComAtprotoAdminReverseModerationAction: string;
6818
7139
  ComAtprotoAdminSearchRepos: string;
@@ -6820,6 +7141,7 @@ export declare const ids: {
6820
7141
  ComAtprotoAdminTakeModerationAction: string;
6821
7142
  ComAtprotoAdminUpdateAccountEmail: string;
6822
7143
  ComAtprotoAdminUpdateAccountHandle: string;
7144
+ ComAtprotoAdminUpdateSubjectStatus: string;
6823
7145
  ComAtprotoIdentityResolveHandle: string;
6824
7146
  ComAtprotoIdentityUpdateHandle: string;
6825
7147
  ComAtprotoLabelDefs: string;
@@ -6836,6 +7158,7 @@ export declare const ids: {
6836
7158
  ComAtprotoRepoPutRecord: string;
6837
7159
  ComAtprotoRepoStrongRef: string;
6838
7160
  ComAtprotoRepoUploadBlob: string;
7161
+ ComAtprotoServerConfirmEmail: string;
6839
7162
  ComAtprotoServerCreateAccount: string;
6840
7163
  ComAtprotoServerCreateAppPassword: string;
6841
7164
  ComAtprotoServerCreateInviteCode: string;
@@ -6850,9 +7173,13 @@ export declare const ids: {
6850
7173
  ComAtprotoServerListAppPasswords: string;
6851
7174
  ComAtprotoServerRefreshSession: string;
6852
7175
  ComAtprotoServerRequestAccountDelete: string;
7176
+ ComAtprotoServerRequestEmailConfirmation: string;
7177
+ ComAtprotoServerRequestEmailUpdate: string;
6853
7178
  ComAtprotoServerRequestPasswordReset: string;
7179
+ ComAtprotoServerReserveSigningKey: string;
6854
7180
  ComAtprotoServerResetPassword: string;
6855
7181
  ComAtprotoServerRevokeAppPassword: string;
7182
+ ComAtprotoServerUpdateEmail: string;
6856
7183
  ComAtprotoSyncGetBlob: string;
6857
7184
  ComAtprotoSyncGetBlocks: string;
6858
7185
  ComAtprotoSyncGetCheckout: string;
@@ -47,6 +47,7 @@ export interface ViewerState {
47
47
  mutedByList?: AppBskyGraphDefs.ListViewBasic;
48
48
  blockedBy?: boolean;
49
49
  blocking?: string;
50
+ blockingByList?: AppBskyGraphDefs.ListViewBasic;
50
51
  following?: string;
51
52
  followedBy?: string;
52
53
  [k: string]: unknown;
@@ -3,6 +3,13 @@ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
3
3
  import * as ComAtprotoModerationDefs from '../moderation/defs';
4
4
  import * as ComAtprotoServerDefs from '../server/defs';
5
5
  import * as ComAtprotoLabelDefs from '../label/defs';
6
+ export interface StatusAttr {
7
+ applied: boolean;
8
+ ref?: string;
9
+ [k: string]: unknown;
10
+ }
11
+ export declare function isStatusAttr(v: unknown): v is StatusAttr;
12
+ export declare function validateStatusAttr(v: unknown): ValidationResult;
6
13
  export interface ActionView {
7
14
  id: number;
8
15
  action: ActionType;
@@ -125,6 +132,19 @@ export interface RepoViewDetail {
125
132
  }
126
133
  export declare function isRepoViewDetail(v: unknown): v is RepoViewDetail;
127
134
  export declare function validateRepoViewDetail(v: unknown): ValidationResult;
135
+ export interface AccountView {
136
+ did: string;
137
+ handle: string;
138
+ email?: string;
139
+ indexedAt: string;
140
+ invitedBy?: ComAtprotoServerDefs.InviteCode;
141
+ invites?: ComAtprotoServerDefs.InviteCode[];
142
+ invitesDisabled?: boolean;
143
+ inviteNote?: string;
144
+ [k: string]: unknown;
145
+ }
146
+ export declare function isAccountView(v: unknown): v is AccountView;
147
+ export declare function validateAccountView(v: unknown): ValidationResult;
128
148
  export interface RepoViewNotFound {
129
149
  did: string;
130
150
  [k: string]: unknown;
@@ -137,6 +157,14 @@ export interface RepoRef {
137
157
  }
138
158
  export declare function isRepoRef(v: unknown): v is RepoRef;
139
159
  export declare function validateRepoRef(v: unknown): ValidationResult;
160
+ export interface RepoBlobRef {
161
+ did: string;
162
+ cid: string;
163
+ recordUri?: string;
164
+ [k: string]: unknown;
165
+ }
166
+ export declare function isRepoBlobRef(v: unknown): v is RepoBlobRef;
167
+ export declare function validateRepoBlobRef(v: unknown): ValidationResult;
140
168
  export interface RecordView {
141
169
  uri: string;
142
170
  cid: string;
@@ -0,0 +1,29 @@
1
+ import express from 'express';
2
+ import { HandlerAuth } from '@atproto/xrpc-server';
3
+ import * as ComAtprotoAdminDefs from './defs';
4
+ export interface QueryParams {
5
+ did: string;
6
+ }
7
+ export declare type InputSchema = undefined;
8
+ export declare type OutputSchema = ComAtprotoAdminDefs.AccountView;
9
+ export declare type HandlerInput = undefined;
10
+ export interface HandlerSuccess {
11
+ encoding: 'application/json';
12
+ body: OutputSchema;
13
+ headers?: {
14
+ [key: string]: string;
15
+ };
16
+ }
17
+ export interface HandlerError {
18
+ status: number;
19
+ message?: string;
20
+ }
21
+ export declare type HandlerOutput = HandlerError | HandlerSuccess;
22
+ export declare type HandlerReqCtx<HA extends HandlerAuth = never> = {
23
+ auth: HA;
24
+ params: QueryParams;
25
+ input: HandlerInput;
26
+ req: express.Request;
27
+ res: express.Response;
28
+ };
29
+ export declare type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;