@atproto/bsky 0.0.9 → 0.0.11

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 (63) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/config.d.ts +2 -0
  3. package/dist/context.d.ts +3 -0
  4. package/dist/db/index.js +55 -3
  5. package/dist/db/index.js.map +3 -3
  6. package/dist/index.js +1125 -301
  7. package/dist/index.js.map +3 -3
  8. package/dist/lexicon/index.d.ts +14 -2
  9. package/dist/lexicon/lexicons.d.ts +302 -14
  10. package/dist/lexicon/types/app/bsky/actor/searchActors.d.ts +1 -0
  11. package/dist/lexicon/types/app/bsky/actor/searchActorsTypeahead.d.ts +1 -0
  12. package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts +37 -0
  13. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +13 -0
  14. package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +38 -0
  15. package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +37 -0
  16. package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +1 -0
  17. package/dist/lexicon/types/com/atproto/server/confirmEmail.d.ts +27 -0
  18. package/dist/lexicon/types/com/atproto/server/createSession.d.ts +1 -0
  19. package/dist/lexicon/types/com/atproto/server/getSession.d.ts +1 -0
  20. package/dist/lexicon/types/com/atproto/server/requestEmailConfirmation.d.ts +19 -0
  21. package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +30 -0
  22. package/dist/lexicon/types/{app/bsky/unspecced/applyLabels.d.ts → com/atproto/server/updateEmail.d.ts} +3 -2
  23. package/dist/services/actor/index.d.ts +2 -2
  24. package/dist/services/util/search.d.ts +3 -3
  25. package/package.json +13 -14
  26. package/src/api/app/bsky/actor/searchActors.ts +36 -16
  27. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +24 -11
  28. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +1 -0
  29. package/src/api/com/atproto/admin/searchRepos.ts +6 -4
  30. package/src/auto-moderator/index.ts +1 -17
  31. package/src/config.ts +7 -0
  32. package/src/context.ts +6 -0
  33. package/src/index.ts +5 -0
  34. package/src/lexicon/index.ts +84 -12
  35. package/src/lexicon/lexicons.ts +351 -23
  36. package/src/lexicon/types/app/bsky/actor/searchActors.ts +3 -0
  37. package/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +3 -0
  38. package/src/lexicon/types/app/bsky/feed/searchPosts.ts +54 -0
  39. package/src/lexicon/types/app/bsky/unspecced/defs.ts +41 -0
  40. package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +56 -0
  41. package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +54 -0
  42. package/src/lexicon/types/com/atproto/admin/searchRepos.ts +2 -0
  43. package/src/lexicon/types/{app/bsky/unspecced/applyLabels.ts → com/atproto/server/confirmEmail.ts} +3 -2
  44. package/src/lexicon/types/com/atproto/server/createSession.ts +1 -0
  45. package/src/lexicon/types/com/atproto/server/getSession.ts +1 -0
  46. package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +31 -0
  47. package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +43 -0
  48. package/src/lexicon/types/com/atproto/server/updateEmail.ts +41 -0
  49. package/src/services/actor/index.ts +9 -9
  50. package/src/services/indexing/plugins/block.ts +1 -1
  51. package/src/services/indexing/plugins/feed-generator.ts +1 -1
  52. package/src/services/indexing/plugins/follow.ts +1 -1
  53. package/src/services/indexing/plugins/like.ts +1 -1
  54. package/src/services/indexing/plugins/list-block.ts +1 -1
  55. package/src/services/indexing/plugins/list-item.ts +1 -1
  56. package/src/services/indexing/plugins/list.ts +1 -1
  57. package/src/services/indexing/plugins/post.ts +1 -1
  58. package/src/services/indexing/plugins/repost.ts +1 -1
  59. package/src/services/indexing/plugins/thread-gate.ts +1 -1
  60. package/src/services/label/index.ts +1 -1
  61. package/src/services/util/search.ts +24 -23
  62. package/dist/services/indexing/util.d.ts +0 -1
  63. package/src/services/indexing/util.ts +0 -16
@@ -29,6 +29,7 @@ import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
29
29
  import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
30
30
  import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
31
31
  import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
32
+ import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail';
32
33
  import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
33
34
  import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword';
34
35
  import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode';
@@ -42,9 +43,12 @@ import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSessi
42
43
  import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords';
43
44
  import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession';
44
45
  import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete';
46
+ import * as ComAtprotoServerRequestEmailConfirmation from './types/com/atproto/server/requestEmailConfirmation';
47
+ import * as ComAtprotoServerRequestEmailUpdate from './types/com/atproto/server/requestEmailUpdate';
45
48
  import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset';
46
49
  import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword';
47
50
  import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword';
51
+ import * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail';
48
52
  import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob';
49
53
  import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks';
50
54
  import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout';
@@ -79,6 +83,7 @@ import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts';
79
83
  import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
80
84
  import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds';
81
85
  import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
86
+ import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts';
82
87
  import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks';
83
88
  import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers';
84
89
  import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows';
@@ -96,10 +101,11 @@ import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notificatio
96
101
  import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications';
97
102
  import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush';
98
103
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
99
- import * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels';
100
104
  import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular';
101
105
  import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators';
102
106
  import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton';
107
+ import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton';
108
+ import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton';
103
109
  export declare const COM_ATPROTO_ADMIN: {
104
110
  DefsTakedown: string;
105
111
  DefsFlag: string;
@@ -194,6 +200,7 @@ export declare class RepoNS {
194
200
  export declare class ServerNS {
195
201
  _server: Server;
196
202
  constructor(server: Server);
203
+ confirmEmail<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerConfirmEmail.Handler<ExtractAuth<AV>>, ComAtprotoServerConfirmEmail.HandlerReqCtx<ExtractAuth<AV>>>): void;
197
204
  createAccount<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerCreateAccount.Handler<ExtractAuth<AV>>, ComAtprotoServerCreateAccount.HandlerReqCtx<ExtractAuth<AV>>>): void;
198
205
  createAppPassword<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerCreateAppPassword.Handler<ExtractAuth<AV>>, ComAtprotoServerCreateAppPassword.HandlerReqCtx<ExtractAuth<AV>>>): void;
199
206
  createInviteCode<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerCreateInviteCode.Handler<ExtractAuth<AV>>, ComAtprotoServerCreateInviteCode.HandlerReqCtx<ExtractAuth<AV>>>): void;
@@ -207,9 +214,12 @@ export declare class ServerNS {
207
214
  listAppPasswords<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerListAppPasswords.Handler<ExtractAuth<AV>>, ComAtprotoServerListAppPasswords.HandlerReqCtx<ExtractAuth<AV>>>): void;
208
215
  refreshSession<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRefreshSession.Handler<ExtractAuth<AV>>, ComAtprotoServerRefreshSession.HandlerReqCtx<ExtractAuth<AV>>>): void;
209
216
  requestAccountDelete<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRequestAccountDelete.Handler<ExtractAuth<AV>>, ComAtprotoServerRequestAccountDelete.HandlerReqCtx<ExtractAuth<AV>>>): void;
217
+ requestEmailConfirmation<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRequestEmailConfirmation.Handler<ExtractAuth<AV>>, ComAtprotoServerRequestEmailConfirmation.HandlerReqCtx<ExtractAuth<AV>>>): void;
218
+ requestEmailUpdate<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRequestEmailUpdate.Handler<ExtractAuth<AV>>, ComAtprotoServerRequestEmailUpdate.HandlerReqCtx<ExtractAuth<AV>>>): void;
210
219
  requestPasswordReset<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRequestPasswordReset.Handler<ExtractAuth<AV>>, ComAtprotoServerRequestPasswordReset.HandlerReqCtx<ExtractAuth<AV>>>): void;
211
220
  resetPassword<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerResetPassword.Handler<ExtractAuth<AV>>, ComAtprotoServerResetPassword.HandlerReqCtx<ExtractAuth<AV>>>): void;
212
221
  revokeAppPassword<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerRevokeAppPassword.Handler<ExtractAuth<AV>>, ComAtprotoServerRevokeAppPassword.HandlerReqCtx<ExtractAuth<AV>>>): void;
222
+ updateEmail<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoServerUpdateEmail.Handler<ExtractAuth<AV>>, ComAtprotoServerUpdateEmail.HandlerReqCtx<ExtractAuth<AV>>>): void;
213
223
  }
214
224
  export declare class SyncNS {
215
225
  _server: Server;
@@ -276,6 +286,7 @@ export declare class FeedNS {
276
286
  getRepostedBy<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyFeedGetRepostedBy.Handler<ExtractAuth<AV>>, AppBskyFeedGetRepostedBy.HandlerReqCtx<ExtractAuth<AV>>>): void;
277
287
  getSuggestedFeeds<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyFeedGetSuggestedFeeds.Handler<ExtractAuth<AV>>, AppBskyFeedGetSuggestedFeeds.HandlerReqCtx<ExtractAuth<AV>>>): void;
278
288
  getTimeline<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyFeedGetTimeline.Handler<ExtractAuth<AV>>, AppBskyFeedGetTimeline.HandlerReqCtx<ExtractAuth<AV>>>): void;
289
+ searchPosts<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyFeedSearchPosts.Handler<ExtractAuth<AV>>, AppBskyFeedSearchPosts.HandlerReqCtx<ExtractAuth<AV>>>): void;
279
290
  }
280
291
  export declare class GraphNS {
281
292
  _server: Server;
@@ -309,10 +320,11 @@ export declare class RichtextNS {
309
320
  export declare class UnspeccedNS {
310
321
  _server: Server;
311
322
  constructor(server: Server);
312
- applyLabels<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyUnspeccedApplyLabels.Handler<ExtractAuth<AV>>, AppBskyUnspeccedApplyLabels.HandlerReqCtx<ExtractAuth<AV>>>): void;
313
323
  getPopular<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyUnspeccedGetPopular.Handler<ExtractAuth<AV>>, AppBskyUnspeccedGetPopular.HandlerReqCtx<ExtractAuth<AV>>>): void;
314
324
  getPopularFeedGenerators<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyUnspeccedGetPopularFeedGenerators.Handler<ExtractAuth<AV>>, AppBskyUnspeccedGetPopularFeedGenerators.HandlerReqCtx<ExtractAuth<AV>>>): void;
315
325
  getTimelineSkeleton<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyUnspeccedGetTimelineSkeleton.Handler<ExtractAuth<AV>>, AppBskyUnspeccedGetTimelineSkeleton.HandlerReqCtx<ExtractAuth<AV>>>): void;
326
+ searchActorsSkeleton<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyUnspeccedSearchActorsSkeleton.Handler<ExtractAuth<AV>>, AppBskyUnspeccedSearchActorsSkeleton.HandlerReqCtx<ExtractAuth<AV>>>): void;
327
+ searchPostsSkeleton<AV extends AuthVerifier>(cfg: ConfigOf<AV, AppBskyUnspeccedSearchPostsSkeleton.Handler<ExtractAuth<AV>>, AppBskyUnspeccedSearchPostsSkeleton.HandlerReqCtx<ExtractAuth<AV>>>): void;
316
328
  }
317
329
  declare type SharedRateLimitOpts<T> = {
318
330
  name: string;
@@ -1003,6 +1003,10 @@ export declare const schemaDict: {
1003
1003
  properties: {
1004
1004
  term: {
1005
1005
  type: string;
1006
+ description: string;
1007
+ };
1008
+ q: {
1009
+ type: string;
1006
1010
  };
1007
1011
  invitedBy: {
1008
1012
  type: string;
@@ -2056,6 +2060,34 @@ export declare const schemaDict: {
2056
2060
  };
2057
2061
  };
2058
2062
  };
2063
+ ComAtprotoServerConfirmEmail: {
2064
+ lexicon: number;
2065
+ id: string;
2066
+ defs: {
2067
+ main: {
2068
+ type: string;
2069
+ description: string;
2070
+ input: {
2071
+ encoding: string;
2072
+ schema: {
2073
+ type: string;
2074
+ required: string[];
2075
+ properties: {
2076
+ email: {
2077
+ type: string;
2078
+ };
2079
+ token: {
2080
+ type: string;
2081
+ };
2082
+ };
2083
+ };
2084
+ };
2085
+ errors: {
2086
+ name: string;
2087
+ }[];
2088
+ };
2089
+ };
2090
+ };
2059
2091
  ComAtprotoServerCreateAccount: {
2060
2092
  lexicon: number;
2061
2093
  id: string;
@@ -2317,6 +2349,9 @@ export declare const schemaDict: {
2317
2349
  email: {
2318
2350
  type: string;
2319
2351
  };
2352
+ emailConfirmed: {
2353
+ type: string;
2354
+ };
2320
2355
  };
2321
2356
  };
2322
2357
  };
@@ -2529,6 +2564,9 @@ export declare const schemaDict: {
2529
2564
  email: {
2530
2565
  type: string;
2531
2566
  };
2567
+ emailConfirmed: {
2568
+ type: string;
2569
+ };
2532
2570
  };
2533
2571
  };
2534
2572
  };
@@ -2623,6 +2661,38 @@ export declare const schemaDict: {
2623
2661
  };
2624
2662
  };
2625
2663
  };
2664
+ ComAtprotoServerRequestEmailConfirmation: {
2665
+ lexicon: number;
2666
+ id: string;
2667
+ defs: {
2668
+ main: {
2669
+ type: string;
2670
+ description: string;
2671
+ };
2672
+ };
2673
+ };
2674
+ ComAtprotoServerRequestEmailUpdate: {
2675
+ lexicon: number;
2676
+ id: string;
2677
+ defs: {
2678
+ main: {
2679
+ type: string;
2680
+ description: string;
2681
+ output: {
2682
+ encoding: string;
2683
+ schema: {
2684
+ type: string;
2685
+ required: string[];
2686
+ properties: {
2687
+ tokenRequired: {
2688
+ type: string;
2689
+ };
2690
+ };
2691
+ };
2692
+ };
2693
+ };
2694
+ };
2695
+ };
2626
2696
  ComAtprotoServerRequestPasswordReset: {
2627
2697
  lexicon: number;
2628
2698
  id: string;
@@ -2695,6 +2765,35 @@ export declare const schemaDict: {
2695
2765
  };
2696
2766
  };
2697
2767
  };
2768
+ ComAtprotoServerUpdateEmail: {
2769
+ lexicon: number;
2770
+ id: string;
2771
+ defs: {
2772
+ main: {
2773
+ type: string;
2774
+ description: string;
2775
+ input: {
2776
+ encoding: string;
2777
+ schema: {
2778
+ type: string;
2779
+ required: string[];
2780
+ properties: {
2781
+ email: {
2782
+ type: string;
2783
+ };
2784
+ token: {
2785
+ type: string;
2786
+ description: string;
2787
+ };
2788
+ };
2789
+ };
2790
+ };
2791
+ errors: {
2792
+ name: string;
2793
+ }[];
2794
+ };
2795
+ };
2796
+ };
2698
2797
  ComAtprotoSyncGetBlob: {
2699
2798
  lexicon: number;
2700
2799
  id: string;
@@ -3727,6 +3826,11 @@ export declare const schemaDict: {
3727
3826
  properties: {
3728
3827
  term: {
3729
3828
  type: string;
3829
+ description: string;
3830
+ };
3831
+ q: {
3832
+ type: string;
3833
+ description: string;
3730
3834
  };
3731
3835
  limit: {
3732
3836
  type: string;
@@ -3773,6 +3877,11 @@ export declare const schemaDict: {
3773
3877
  properties: {
3774
3878
  term: {
3775
3879
  type: string;
3880
+ description: string;
3881
+ };
3882
+ q: {
3883
+ type: string;
3884
+ description: string;
3776
3885
  };
3777
3886
  limit: {
3778
3887
  type: string;
@@ -5362,6 +5471,62 @@ export declare const schemaDict: {
5362
5471
  };
5363
5472
  };
5364
5473
  };
5474
+ AppBskyFeedSearchPosts: {
5475
+ lexicon: number;
5476
+ id: string;
5477
+ defs: {
5478
+ main: {
5479
+ type: string;
5480
+ description: string;
5481
+ parameters: {
5482
+ type: string;
5483
+ required: string[];
5484
+ properties: {
5485
+ q: {
5486
+ type: string;
5487
+ description: string;
5488
+ };
5489
+ limit: {
5490
+ type: string;
5491
+ minimum: number;
5492
+ maximum: number;
5493
+ default: number;
5494
+ };
5495
+ cursor: {
5496
+ type: string;
5497
+ description: string;
5498
+ };
5499
+ };
5500
+ };
5501
+ output: {
5502
+ encoding: string;
5503
+ schema: {
5504
+ type: string;
5505
+ required: string[];
5506
+ properties: {
5507
+ cursor: {
5508
+ type: string;
5509
+ };
5510
+ hitsTotal: {
5511
+ type: string;
5512
+ description: string;
5513
+ };
5514
+ posts: {
5515
+ type: string;
5516
+ items: {
5517
+ type: string;
5518
+ ref: string;
5519
+ };
5520
+ };
5521
+ };
5522
+ };
5523
+ };
5524
+ errors: {
5525
+ name: string;
5526
+ }[];
5527
+ };
5528
+ };
5529
+ };
5365
5530
  AppBskyFeedThreadgate: {
5366
5531
  lexicon: number;
5367
5532
  id: string;
@@ -6447,20 +6612,67 @@ export declare const schemaDict: {
6447
6612
  };
6448
6613
  };
6449
6614
  };
6450
- AppBskyUnspeccedApplyLabels: {
6615
+ AppBskyUnspeccedDefs: {
6616
+ lexicon: number;
6617
+ id: string;
6618
+ defs: {
6619
+ skeletonSearchPost: {
6620
+ type: string;
6621
+ required: string[];
6622
+ properties: {
6623
+ uri: {
6624
+ type: string;
6625
+ format: string;
6626
+ };
6627
+ };
6628
+ };
6629
+ skeletonSearchActor: {
6630
+ type: string;
6631
+ required: string[];
6632
+ properties: {
6633
+ did: {
6634
+ type: string;
6635
+ format: string;
6636
+ };
6637
+ };
6638
+ };
6639
+ };
6640
+ };
6641
+ AppBskyUnspeccedGetPopular: {
6451
6642
  lexicon: number;
6452
6643
  id: string;
6453
6644
  defs: {
6454
6645
  main: {
6455
6646
  type: string;
6456
6647
  description: string;
6457
- input: {
6648
+ parameters: {
6649
+ type: string;
6650
+ properties: {
6651
+ includeNsfw: {
6652
+ type: string;
6653
+ default: boolean;
6654
+ };
6655
+ limit: {
6656
+ type: string;
6657
+ minimum: number;
6658
+ maximum: number;
6659
+ default: number;
6660
+ };
6661
+ cursor: {
6662
+ type: string;
6663
+ };
6664
+ };
6665
+ };
6666
+ output: {
6458
6667
  encoding: string;
6459
6668
  schema: {
6460
6669
  type: string;
6461
6670
  required: string[];
6462
6671
  properties: {
6463
- labels: {
6672
+ cursor: {
6673
+ type: string;
6674
+ };
6675
+ feed: {
6464
6676
  type: string;
6465
6677
  items: {
6466
6678
  type: string;
@@ -6473,7 +6685,7 @@ export declare const schemaDict: {
6473
6685
  };
6474
6686
  };
6475
6687
  };
6476
- AppBskyUnspeccedGetPopular: {
6688
+ AppBskyUnspeccedGetPopularFeedGenerators: {
6477
6689
  lexicon: number;
6478
6690
  id: string;
6479
6691
  defs: {
@@ -6483,10 +6695,52 @@ export declare const schemaDict: {
6483
6695
  parameters: {
6484
6696
  type: string;
6485
6697
  properties: {
6486
- includeNsfw: {
6698
+ limit: {
6487
6699
  type: string;
6488
- default: boolean;
6700
+ minimum: number;
6701
+ maximum: number;
6702
+ default: number;
6489
6703
  };
6704
+ cursor: {
6705
+ type: string;
6706
+ };
6707
+ query: {
6708
+ type: string;
6709
+ };
6710
+ };
6711
+ };
6712
+ output: {
6713
+ encoding: string;
6714
+ schema: {
6715
+ type: string;
6716
+ required: string[];
6717
+ properties: {
6718
+ cursor: {
6719
+ type: string;
6720
+ };
6721
+ feeds: {
6722
+ type: string;
6723
+ items: {
6724
+ type: string;
6725
+ ref: string;
6726
+ };
6727
+ };
6728
+ };
6729
+ };
6730
+ };
6731
+ };
6732
+ };
6733
+ };
6734
+ AppBskyUnspeccedGetTimelineSkeleton: {
6735
+ lexicon: number;
6736
+ id: string;
6737
+ defs: {
6738
+ main: {
6739
+ type: string;
6740
+ description: string;
6741
+ parameters: {
6742
+ type: string;
6743
+ properties: {
6490
6744
  limit: {
6491
6745
  type: string;
6492
6746
  minimum: number;
@@ -6517,10 +6771,13 @@ export declare const schemaDict: {
6517
6771
  };
6518
6772
  };
6519
6773
  };
6774
+ errors: {
6775
+ name: string;
6776
+ }[];
6520
6777
  };
6521
6778
  };
6522
6779
  };
6523
- AppBskyUnspeccedGetPopularFeedGenerators: {
6780
+ AppBskyUnspeccedSearchActorsSkeleton: {
6524
6781
  lexicon: number;
6525
6782
  id: string;
6526
6783
  defs: {
@@ -6529,7 +6786,16 @@ export declare const schemaDict: {
6529
6786
  description: string;
6530
6787
  parameters: {
6531
6788
  type: string;
6789
+ required: string[];
6532
6790
  properties: {
6791
+ q: {
6792
+ type: string;
6793
+ description: string;
6794
+ };
6795
+ typeahead: {
6796
+ type: string;
6797
+ description: string;
6798
+ };
6533
6799
  limit: {
6534
6800
  type: string;
6535
6801
  minimum: number;
@@ -6538,9 +6804,7 @@ export declare const schemaDict: {
6538
6804
  };
6539
6805
  cursor: {
6540
6806
  type: string;
6541
- };
6542
- query: {
6543
- type: string;
6807
+ description: string;
6544
6808
  };
6545
6809
  };
6546
6810
  };
@@ -6553,7 +6817,11 @@ export declare const schemaDict: {
6553
6817
  cursor: {
6554
6818
  type: string;
6555
6819
  };
6556
- feeds: {
6820
+ hitsTotal: {
6821
+ type: string;
6822
+ description: string;
6823
+ };
6824
+ actors: {
6557
6825
  type: string;
6558
6826
  items: {
6559
6827
  type: string;
@@ -6563,10 +6831,13 @@ export declare const schemaDict: {
6563
6831
  };
6564
6832
  };
6565
6833
  };
6834
+ errors: {
6835
+ name: string;
6836
+ }[];
6566
6837
  };
6567
6838
  };
6568
6839
  };
6569
- AppBskyUnspeccedGetTimelineSkeleton: {
6840
+ AppBskyUnspeccedSearchPostsSkeleton: {
6570
6841
  lexicon: number;
6571
6842
  id: string;
6572
6843
  defs: {
@@ -6575,7 +6846,12 @@ export declare const schemaDict: {
6575
6846
  description: string;
6576
6847
  parameters: {
6577
6848
  type: string;
6849
+ required: string[];
6578
6850
  properties: {
6851
+ q: {
6852
+ type: string;
6853
+ description: string;
6854
+ };
6579
6855
  limit: {
6580
6856
  type: string;
6581
6857
  minimum: number;
@@ -6584,6 +6860,7 @@ export declare const schemaDict: {
6584
6860
  };
6585
6861
  cursor: {
6586
6862
  type: string;
6863
+ description: string;
6587
6864
  };
6588
6865
  };
6589
6866
  };
@@ -6596,7 +6873,11 @@ export declare const schemaDict: {
6596
6873
  cursor: {
6597
6874
  type: string;
6598
6875
  };
6599
- feed: {
6876
+ hitsTotal: {
6877
+ type: string;
6878
+ description: string;
6879
+ };
6880
+ posts: {
6600
6881
  type: string;
6601
6882
  items: {
6602
6883
  type: string;
@@ -6650,6 +6931,7 @@ export declare const ids: {
6650
6931
  ComAtprotoRepoPutRecord: string;
6651
6932
  ComAtprotoRepoStrongRef: string;
6652
6933
  ComAtprotoRepoUploadBlob: string;
6934
+ ComAtprotoServerConfirmEmail: string;
6653
6935
  ComAtprotoServerCreateAccount: string;
6654
6936
  ComAtprotoServerCreateAppPassword: string;
6655
6937
  ComAtprotoServerCreateInviteCode: string;
@@ -6664,9 +6946,12 @@ export declare const ids: {
6664
6946
  ComAtprotoServerListAppPasswords: string;
6665
6947
  ComAtprotoServerRefreshSession: string;
6666
6948
  ComAtprotoServerRequestAccountDelete: string;
6949
+ ComAtprotoServerRequestEmailConfirmation: string;
6950
+ ComAtprotoServerRequestEmailUpdate: string;
6667
6951
  ComAtprotoServerRequestPasswordReset: string;
6668
6952
  ComAtprotoServerResetPassword: string;
6669
6953
  ComAtprotoServerRevokeAppPassword: string;
6954
+ ComAtprotoServerUpdateEmail: string;
6670
6955
  ComAtprotoSyncGetBlob: string;
6671
6956
  ComAtprotoSyncGetBlocks: string;
6672
6957
  ComAtprotoSyncGetCheckout: string;
@@ -6712,6 +6997,7 @@ export declare const ids: {
6712
6997
  AppBskyFeedLike: string;
6713
6998
  AppBskyFeedPost: string;
6714
6999
  AppBskyFeedRepost: string;
7000
+ AppBskyFeedSearchPosts: string;
6715
7001
  AppBskyFeedThreadgate: string;
6716
7002
  AppBskyGraphBlock: string;
6717
7003
  AppBskyGraphDefs: string;
@@ -6737,8 +7023,10 @@ export declare const ids: {
6737
7023
  AppBskyNotificationRegisterPush: string;
6738
7024
  AppBskyNotificationUpdateSeen: string;
6739
7025
  AppBskyRichtextFacet: string;
6740
- AppBskyUnspeccedApplyLabels: string;
7026
+ AppBskyUnspeccedDefs: string;
6741
7027
  AppBskyUnspeccedGetPopular: string;
6742
7028
  AppBskyUnspeccedGetPopularFeedGenerators: string;
6743
7029
  AppBskyUnspeccedGetTimelineSkeleton: string;
7030
+ AppBskyUnspeccedSearchActorsSkeleton: string;
7031
+ AppBskyUnspeccedSearchPostsSkeleton: string;
6744
7032
  };
@@ -3,6 +3,7 @@ import { HandlerAuth } from '@atproto/xrpc-server';
3
3
  import * as AppBskyActorDefs from './defs';
4
4
  export interface QueryParams {
5
5
  term?: string;
6
+ q?: string;
6
7
  limit: number;
7
8
  cursor?: string;
8
9
  }
@@ -3,6 +3,7 @@ import { HandlerAuth } from '@atproto/xrpc-server';
3
3
  import * as AppBskyActorDefs from './defs';
4
4
  export interface QueryParams {
5
5
  term?: string;
6
+ q?: string;
6
7
  limit: number;
7
8
  }
8
9
  export declare type InputSchema = undefined;
@@ -0,0 +1,37 @@
1
+ import express from 'express';
2
+ import { HandlerAuth } from '@atproto/xrpc-server';
3
+ import * as AppBskyFeedDefs from './defs';
4
+ export interface QueryParams {
5
+ q: string;
6
+ limit: number;
7
+ cursor?: string;
8
+ }
9
+ export declare type InputSchema = undefined;
10
+ export interface OutputSchema {
11
+ cursor?: string;
12
+ hitsTotal?: number;
13
+ posts: AppBskyFeedDefs.PostView[];
14
+ [k: string]: unknown;
15
+ }
16
+ export declare type HandlerInput = undefined;
17
+ export interface HandlerSuccess {
18
+ encoding: 'application/json';
19
+ body: OutputSchema;
20
+ headers?: {
21
+ [key: string]: string;
22
+ };
23
+ }
24
+ export interface HandlerError {
25
+ status: number;
26
+ message?: string;
27
+ error?: 'BadQueryString';
28
+ }
29
+ export declare type HandlerOutput = HandlerError | HandlerSuccess;
30
+ export declare type HandlerReqCtx<HA extends HandlerAuth = never> = {
31
+ auth: HA;
32
+ params: QueryParams;
33
+ input: HandlerInput;
34
+ req: express.Request;
35
+ res: express.Response;
36
+ };
37
+ export declare type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
@@ -0,0 +1,13 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ export interface SkeletonSearchPost {
3
+ uri: string;
4
+ [k: string]: unknown;
5
+ }
6
+ export declare function isSkeletonSearchPost(v: unknown): v is SkeletonSearchPost;
7
+ export declare function validateSkeletonSearchPost(v: unknown): ValidationResult;
8
+ export interface SkeletonSearchActor {
9
+ did: string;
10
+ [k: string]: unknown;
11
+ }
12
+ export declare function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor;
13
+ export declare function validateSkeletonSearchActor(v: unknown): ValidationResult;