@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
package/dist/index.js CHANGED
@@ -105856,6 +105856,20 @@ var MethodNotImplementedError = class extends XRPCError2 {
105856
105856
  }
105857
105857
  };
105858
105858
 
105859
+ // ../common/src/dates.ts
105860
+ var import_iso_datestring_validator2 = __toESM(require_dist2());
105861
+ function toSimplifiedISOSafe(dateStr) {
105862
+ const date = new Date(dateStr);
105863
+ if (isNaN(date.getTime())) {
105864
+ return new Date(0).toISOString();
105865
+ }
105866
+ const iso = date.toISOString();
105867
+ if (!(0, import_iso_datestring_validator2.isValidISODateString)(iso)) {
105868
+ return new Date(0).toISOString();
105869
+ }
105870
+ return iso;
105871
+ }
105872
+
105859
105873
  // ../common/src/ipld.ts
105860
105874
  var import_crypto3 = __toESM(require("crypto"));
105861
105875
  var import_stream = require("stream");
@@ -119883,6 +119897,10 @@ var schemaDict = {
119883
119897
  type: "params",
119884
119898
  properties: {
119885
119899
  term: {
119900
+ type: "string",
119901
+ description: "DEPRECATED: use 'q' instead"
119902
+ },
119903
+ q: {
119886
119904
  type: "string"
119887
119905
  },
119888
119906
  invitedBy: {
@@ -120988,6 +121006,45 @@ var schemaDict = {
120988
121006
  }
120989
121007
  }
120990
121008
  },
121009
+ ComAtprotoServerConfirmEmail: {
121010
+ lexicon: 1,
121011
+ id: "com.atproto.server.confirmEmail",
121012
+ defs: {
121013
+ main: {
121014
+ type: "procedure",
121015
+ description: "Confirm an email using a token from com.atproto.server.requestEmailConfirmation.",
121016
+ input: {
121017
+ encoding: "application/json",
121018
+ schema: {
121019
+ type: "object",
121020
+ required: ["email", "token"],
121021
+ properties: {
121022
+ email: {
121023
+ type: "string"
121024
+ },
121025
+ token: {
121026
+ type: "string"
121027
+ }
121028
+ }
121029
+ }
121030
+ },
121031
+ errors: [
121032
+ {
121033
+ name: "AccountNotFound"
121034
+ },
121035
+ {
121036
+ name: "ExpiredToken"
121037
+ },
121038
+ {
121039
+ name: "InvalidToken"
121040
+ },
121041
+ {
121042
+ name: "InvalidEmail"
121043
+ }
121044
+ ]
121045
+ }
121046
+ }
121047
+ },
120991
121048
  ComAtprotoServerCreateAccount: {
120992
121049
  lexicon: 1,
120993
121050
  id: "com.atproto.server.createAccount",
@@ -121270,6 +121327,9 @@ var schemaDict = {
121270
121327
  },
121271
121328
  email: {
121272
121329
  type: "string"
121330
+ },
121331
+ emailConfirmed: {
121332
+ type: "boolean"
121273
121333
  }
121274
121334
  }
121275
121335
  }
@@ -121499,6 +121559,9 @@ var schemaDict = {
121499
121559
  },
121500
121560
  email: {
121501
121561
  type: "string"
121562
+ },
121563
+ emailConfirmed: {
121564
+ type: "boolean"
121502
121565
  }
121503
121566
  }
121504
121567
  }
@@ -121598,6 +121661,38 @@ var schemaDict = {
121598
121661
  }
121599
121662
  }
121600
121663
  },
121664
+ ComAtprotoServerRequestEmailConfirmation: {
121665
+ lexicon: 1,
121666
+ id: "com.atproto.server.requestEmailConfirmation",
121667
+ defs: {
121668
+ main: {
121669
+ type: "procedure",
121670
+ description: "Request an email with a code to confirm ownership of email"
121671
+ }
121672
+ }
121673
+ },
121674
+ ComAtprotoServerRequestEmailUpdate: {
121675
+ lexicon: 1,
121676
+ id: "com.atproto.server.requestEmailUpdate",
121677
+ defs: {
121678
+ main: {
121679
+ type: "procedure",
121680
+ description: "Request a token in order to update email.",
121681
+ output: {
121682
+ encoding: "application/json",
121683
+ schema: {
121684
+ type: "object",
121685
+ required: ["tokenRequired"],
121686
+ properties: {
121687
+ tokenRequired: {
121688
+ type: "boolean"
121689
+ }
121690
+ }
121691
+ }
121692
+ }
121693
+ }
121694
+ }
121695
+ },
121601
121696
  ComAtprotoServerRequestPasswordReset: {
121602
121697
  lexicon: 1,
121603
121698
  id: "com.atproto.server.requestPasswordReset",
@@ -121675,6 +121770,43 @@ var schemaDict = {
121675
121770
  }
121676
121771
  }
121677
121772
  },
121773
+ ComAtprotoServerUpdateEmail: {
121774
+ lexicon: 1,
121775
+ id: "com.atproto.server.updateEmail",
121776
+ defs: {
121777
+ main: {
121778
+ type: "procedure",
121779
+ description: "Update an account's email.",
121780
+ input: {
121781
+ encoding: "application/json",
121782
+ schema: {
121783
+ type: "object",
121784
+ required: ["email"],
121785
+ properties: {
121786
+ email: {
121787
+ type: "string"
121788
+ },
121789
+ token: {
121790
+ type: "string",
121791
+ description: "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."
121792
+ }
121793
+ }
121794
+ }
121795
+ },
121796
+ errors: [
121797
+ {
121798
+ name: "ExpiredToken"
121799
+ },
121800
+ {
121801
+ name: "InvalidToken"
121802
+ },
121803
+ {
121804
+ name: "TokenRequired"
121805
+ }
121806
+ ]
121807
+ }
121808
+ }
121809
+ },
121678
121810
  ComAtprotoSyncGetBlob: {
121679
121811
  lexicon: 1,
121680
121812
  id: "com.atproto.sync.getBlob",
@@ -122735,18 +122867,23 @@ var schemaDict = {
122735
122867
  defs: {
122736
122868
  main: {
122737
122869
  type: "query",
122738
- description: "Find actors matching search criteria.",
122870
+ description: "Find actors (profiles) matching search criteria.",
122739
122871
  parameters: {
122740
122872
  type: "params",
122741
122873
  properties: {
122742
122874
  term: {
122743
- type: "string"
122875
+ type: "string",
122876
+ description: "DEPRECATED: use 'q' instead"
122877
+ },
122878
+ q: {
122879
+ type: "string",
122880
+ description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
122744
122881
  },
122745
122882
  limit: {
122746
122883
  type: "integer",
122747
122884
  minimum: 1,
122748
122885
  maximum: 100,
122749
- default: 50
122886
+ default: 25
122750
122887
  },
122751
122888
  cursor: {
122752
122889
  type: "string"
@@ -122786,13 +122923,18 @@ var schemaDict = {
122786
122923
  type: "params",
122787
122924
  properties: {
122788
122925
  term: {
122789
- type: "string"
122926
+ type: "string",
122927
+ description: "DEPRECATED: use 'q' instead"
122928
+ },
122929
+ q: {
122930
+ type: "string",
122931
+ description: "search query prefix; not a full query string"
122790
122932
  },
122791
122933
  limit: {
122792
122934
  type: "integer",
122793
122935
  minimum: 1,
122794
122936
  maximum: 100,
122795
- default: 50
122937
+ default: 10
122796
122938
  }
122797
122939
  }
122798
122940
  },
@@ -124442,6 +124584,64 @@ var schemaDict = {
124442
124584
  }
124443
124585
  }
124444
124586
  },
124587
+ AppBskyFeedSearchPosts: {
124588
+ lexicon: 1,
124589
+ id: "app.bsky.feed.searchPosts",
124590
+ defs: {
124591
+ main: {
124592
+ type: "query",
124593
+ description: "Find posts matching search criteria",
124594
+ parameters: {
124595
+ type: "params",
124596
+ required: ["q"],
124597
+ properties: {
124598
+ q: {
124599
+ type: "string",
124600
+ description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
124601
+ },
124602
+ limit: {
124603
+ type: "integer",
124604
+ minimum: 1,
124605
+ maximum: 100,
124606
+ default: 25
124607
+ },
124608
+ cursor: {
124609
+ type: "string",
124610
+ description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
124611
+ }
124612
+ }
124613
+ },
124614
+ output: {
124615
+ encoding: "application/json",
124616
+ schema: {
124617
+ type: "object",
124618
+ required: ["posts"],
124619
+ properties: {
124620
+ cursor: {
124621
+ type: "string"
124622
+ },
124623
+ hitsTotal: {
124624
+ type: "integer",
124625
+ description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
124626
+ },
124627
+ posts: {
124628
+ type: "array",
124629
+ items: {
124630
+ type: "ref",
124631
+ ref: "lex:app.bsky.feed.defs#postView"
124632
+ }
124633
+ }
124634
+ }
124635
+ }
124636
+ },
124637
+ errors: [
124638
+ {
124639
+ name: "BadQueryString"
124640
+ }
124641
+ ]
124642
+ }
124643
+ }
124644
+ },
124445
124645
  AppBskyFeedThreadgate: {
124446
124646
  lexicon: 1,
124447
124647
  id: "app.bsky.feed.threadgate",
@@ -125553,24 +125753,71 @@ var schemaDict = {
125553
125753
  }
125554
125754
  }
125555
125755
  },
125556
- AppBskyUnspeccedApplyLabels: {
125756
+ AppBskyUnspeccedDefs: {
125557
125757
  lexicon: 1,
125558
- id: "app.bsky.unspecced.applyLabels",
125758
+ id: "app.bsky.unspecced.defs",
125759
+ defs: {
125760
+ skeletonSearchPost: {
125761
+ type: "object",
125762
+ required: ["uri"],
125763
+ properties: {
125764
+ uri: {
125765
+ type: "string",
125766
+ format: "at-uri"
125767
+ }
125768
+ }
125769
+ },
125770
+ skeletonSearchActor: {
125771
+ type: "object",
125772
+ required: ["did"],
125773
+ properties: {
125774
+ did: {
125775
+ type: "string",
125776
+ format: "did"
125777
+ }
125778
+ }
125779
+ }
125780
+ }
125781
+ },
125782
+ AppBskyUnspeccedGetPopular: {
125783
+ lexicon: 1,
125784
+ id: "app.bsky.unspecced.getPopular",
125559
125785
  defs: {
125560
125786
  main: {
125561
- type: "procedure",
125562
- description: "Allow a labeler to apply labels directly.",
125563
- input: {
125787
+ type: "query",
125788
+ description: "DEPRECATED: will be removed soon, please find a feed generator alternative",
125789
+ parameters: {
125790
+ type: "params",
125791
+ properties: {
125792
+ includeNsfw: {
125793
+ type: "boolean",
125794
+ default: false
125795
+ },
125796
+ limit: {
125797
+ type: "integer",
125798
+ minimum: 1,
125799
+ maximum: 100,
125800
+ default: 50
125801
+ },
125802
+ cursor: {
125803
+ type: "string"
125804
+ }
125805
+ }
125806
+ },
125807
+ output: {
125564
125808
  encoding: "application/json",
125565
125809
  schema: {
125566
125810
  type: "object",
125567
- required: ["labels"],
125811
+ required: ["feed"],
125568
125812
  properties: {
125569
- labels: {
125813
+ cursor: {
125814
+ type: "string"
125815
+ },
125816
+ feed: {
125570
125817
  type: "array",
125571
125818
  items: {
125572
125819
  type: "ref",
125573
- ref: "lex:com.atproto.label.defs#label"
125820
+ ref: "lex:app.bsky.feed.defs#feedViewPost"
125574
125821
  }
125575
125822
  }
125576
125823
  }
@@ -125579,20 +125826,62 @@ var schemaDict = {
125579
125826
  }
125580
125827
  }
125581
125828
  },
125582
- AppBskyUnspeccedGetPopular: {
125829
+ AppBskyUnspeccedGetPopularFeedGenerators: {
125583
125830
  lexicon: 1,
125584
- id: "app.bsky.unspecced.getPopular",
125831
+ id: "app.bsky.unspecced.getPopularFeedGenerators",
125585
125832
  defs: {
125586
125833
  main: {
125587
125834
  type: "query",
125588
- description: "DEPRECATED: will be removed soon, please find a feed generator alternative",
125835
+ description: "An unspecced view of globally popular feed generators",
125589
125836
  parameters: {
125590
125837
  type: "params",
125591
125838
  properties: {
125592
- includeNsfw: {
125593
- type: "boolean",
125594
- default: false
125839
+ limit: {
125840
+ type: "integer",
125841
+ minimum: 1,
125842
+ maximum: 100,
125843
+ default: 50
125844
+ },
125845
+ cursor: {
125846
+ type: "string"
125595
125847
  },
125848
+ query: {
125849
+ type: "string"
125850
+ }
125851
+ }
125852
+ },
125853
+ output: {
125854
+ encoding: "application/json",
125855
+ schema: {
125856
+ type: "object",
125857
+ required: ["feeds"],
125858
+ properties: {
125859
+ cursor: {
125860
+ type: "string"
125861
+ },
125862
+ feeds: {
125863
+ type: "array",
125864
+ items: {
125865
+ type: "ref",
125866
+ ref: "lex:app.bsky.feed.defs#generatorView"
125867
+ }
125868
+ }
125869
+ }
125870
+ }
125871
+ }
125872
+ }
125873
+ }
125874
+ },
125875
+ AppBskyUnspeccedGetTimelineSkeleton: {
125876
+ lexicon: 1,
125877
+ id: "app.bsky.unspecced.getTimelineSkeleton",
125878
+ defs: {
125879
+ main: {
125880
+ type: "query",
125881
+ description: "A skeleton of a timeline - UNSPECCED & WILL GO AWAY SOON",
125882
+ parameters: {
125883
+ type: "params",
125884
+ properties: {
125596
125885
  limit: {
125597
125886
  type: "integer",
125598
125887
  minimum: 1,
@@ -125617,36 +125906,48 @@ var schemaDict = {
125617
125906
  type: "array",
125618
125907
  items: {
125619
125908
  type: "ref",
125620
- ref: "lex:app.bsky.feed.defs#feedViewPost"
125909
+ ref: "lex:app.bsky.feed.defs#skeletonFeedPost"
125621
125910
  }
125622
125911
  }
125623
125912
  }
125624
125913
  }
125625
- }
125914
+ },
125915
+ errors: [
125916
+ {
125917
+ name: "UnknownFeed"
125918
+ }
125919
+ ]
125626
125920
  }
125627
125921
  }
125628
125922
  },
125629
- AppBskyUnspeccedGetPopularFeedGenerators: {
125923
+ AppBskyUnspeccedSearchActorsSkeleton: {
125630
125924
  lexicon: 1,
125631
- id: "app.bsky.unspecced.getPopularFeedGenerators",
125925
+ id: "app.bsky.unspecced.searchActorsSkeleton",
125632
125926
  defs: {
125633
125927
  main: {
125634
125928
  type: "query",
125635
- description: "An unspecced view of globally popular feed generators",
125929
+ description: "Backend Actors (profile) search, returning only skeleton",
125636
125930
  parameters: {
125637
125931
  type: "params",
125932
+ required: ["q"],
125638
125933
  properties: {
125934
+ q: {
125935
+ type: "string",
125936
+ description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax"
125937
+ },
125938
+ typeahead: {
125939
+ type: "boolean",
125940
+ description: "if true, acts as fast/simple 'typeahead' query"
125941
+ },
125639
125942
  limit: {
125640
125943
  type: "integer",
125641
125944
  minimum: 1,
125642
125945
  maximum: 100,
125643
- default: 50
125946
+ default: 25
125644
125947
  },
125645
125948
  cursor: {
125646
- type: "string"
125647
- },
125648
- query: {
125649
- type: "string"
125949
+ type: "string",
125950
+ description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
125650
125951
  }
125651
125952
  }
125652
125953
  },
@@ -125654,42 +125955,57 @@ var schemaDict = {
125654
125955
  encoding: "application/json",
125655
125956
  schema: {
125656
125957
  type: "object",
125657
- required: ["feeds"],
125958
+ required: ["actors"],
125658
125959
  properties: {
125659
125960
  cursor: {
125660
125961
  type: "string"
125661
125962
  },
125662
- feeds: {
125963
+ hitsTotal: {
125964
+ type: "integer",
125965
+ description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
125966
+ },
125967
+ actors: {
125663
125968
  type: "array",
125664
125969
  items: {
125665
125970
  type: "ref",
125666
- ref: "lex:app.bsky.feed.defs#generatorView"
125971
+ ref: "lex:app.bsky.unspecced.defs#skeletonSearchActor"
125667
125972
  }
125668
125973
  }
125669
125974
  }
125670
125975
  }
125671
- }
125976
+ },
125977
+ errors: [
125978
+ {
125979
+ name: "BadQueryString"
125980
+ }
125981
+ ]
125672
125982
  }
125673
125983
  }
125674
125984
  },
125675
- AppBskyUnspeccedGetTimelineSkeleton: {
125985
+ AppBskyUnspeccedSearchPostsSkeleton: {
125676
125986
  lexicon: 1,
125677
- id: "app.bsky.unspecced.getTimelineSkeleton",
125987
+ id: "app.bsky.unspecced.searchPostsSkeleton",
125678
125988
  defs: {
125679
125989
  main: {
125680
125990
  type: "query",
125681
- description: "A skeleton of a timeline - UNSPECCED & WILL GO AWAY SOON",
125991
+ description: "Backend Posts search, returning only skeleton",
125682
125992
  parameters: {
125683
125993
  type: "params",
125994
+ required: ["q"],
125684
125995
  properties: {
125996
+ q: {
125997
+ type: "string",
125998
+ description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
125999
+ },
125685
126000
  limit: {
125686
126001
  type: "integer",
125687
126002
  minimum: 1,
125688
126003
  maximum: 100,
125689
- default: 50
126004
+ default: 25
125690
126005
  },
125691
126006
  cursor: {
125692
- type: "string"
126007
+ type: "string",
126008
+ description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
125693
126009
  }
125694
126010
  }
125695
126011
  },
@@ -125697,16 +126013,20 @@ var schemaDict = {
125697
126013
  encoding: "application/json",
125698
126014
  schema: {
125699
126015
  type: "object",
125700
- required: ["feed"],
126016
+ required: ["posts"],
125701
126017
  properties: {
125702
126018
  cursor: {
125703
126019
  type: "string"
125704
126020
  },
125705
- feed: {
126021
+ hitsTotal: {
126022
+ type: "integer",
126023
+ description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
126024
+ },
126025
+ posts: {
125706
126026
  type: "array",
125707
126027
  items: {
125708
126028
  type: "ref",
125709
- ref: "lex:app.bsky.feed.defs#skeletonFeedPost"
126029
+ ref: "lex:app.bsky.unspecced.defs#skeletonSearchPost"
125710
126030
  }
125711
126031
  }
125712
126032
  }
@@ -125714,7 +126034,7 @@ var schemaDict = {
125714
126034
  },
125715
126035
  errors: [
125716
126036
  {
125717
- name: "UnknownFeed"
126037
+ name: "BadQueryString"
125718
126038
  }
125719
126039
  ]
125720
126040
  }
@@ -125976,6 +126296,41 @@ function toKnownErr29(e) {
125976
126296
  return e;
125977
126297
  }
125978
126298
 
126299
+ // ../api/src/client/types/com/atproto/server/confirmEmail.ts
126300
+ var AccountNotFoundError = class extends XRPCError {
126301
+ constructor(src3) {
126302
+ super(src3.status, src3.error, src3.message, src3.headers);
126303
+ }
126304
+ };
126305
+ var ExpiredTokenError = class extends XRPCError {
126306
+ constructor(src3) {
126307
+ super(src3.status, src3.error, src3.message, src3.headers);
126308
+ }
126309
+ };
126310
+ var InvalidTokenError = class extends XRPCError {
126311
+ constructor(src3) {
126312
+ super(src3.status, src3.error, src3.message, src3.headers);
126313
+ }
126314
+ };
126315
+ var InvalidEmailError = class extends XRPCError {
126316
+ constructor(src3) {
126317
+ super(src3.status, src3.error, src3.message, src3.headers);
126318
+ }
126319
+ };
126320
+ function toKnownErr30(e) {
126321
+ if (e instanceof XRPCError) {
126322
+ if (e.error === "AccountNotFound")
126323
+ return new AccountNotFoundError(e);
126324
+ if (e.error === "ExpiredToken")
126325
+ return new ExpiredTokenError(e);
126326
+ if (e.error === "InvalidToken")
126327
+ return new InvalidTokenError(e);
126328
+ if (e.error === "InvalidEmail")
126329
+ return new InvalidEmailError(e);
126330
+ }
126331
+ return e;
126332
+ }
126333
+
125979
126334
  // ../api/src/client/types/com/atproto/server/createAccount.ts
125980
126335
  var InvalidHandleError2 = class extends XRPCError {
125981
126336
  constructor(src3) {
@@ -126012,7 +126367,7 @@ var IncompatibleDidDocError = class extends XRPCError {
126012
126367
  super(src3.status, src3.error, src3.message, src3.headers);
126013
126368
  }
126014
126369
  };
126015
- function toKnownErr30(e) {
126370
+ function toKnownErr31(e) {
126016
126371
  if (e instanceof XRPCError) {
126017
126372
  if (e.error === "InvalidHandle")
126018
126373
  return new InvalidHandleError2(e);
@@ -126038,7 +126393,7 @@ var AccountTakedownError = class extends XRPCError {
126038
126393
  super(src3.status, src3.error, src3.message, src3.headers);
126039
126394
  }
126040
126395
  };
126041
- function toKnownErr31(e) {
126396
+ function toKnownErr32(e) {
126042
126397
  if (e instanceof XRPCError) {
126043
126398
  if (e.error === "AccountTakedown")
126044
126399
  return new AccountTakedownError(e);
@@ -126047,14 +126402,14 @@ function toKnownErr31(e) {
126047
126402
  }
126048
126403
 
126049
126404
  // ../api/src/client/types/com/atproto/server/createInviteCode.ts
126050
- function toKnownErr32(e) {
126405
+ function toKnownErr33(e) {
126051
126406
  if (e instanceof XRPCError) {
126052
126407
  }
126053
126408
  return e;
126054
126409
  }
126055
126410
 
126056
126411
  // ../api/src/client/types/com/atproto/server/createInviteCodes.ts
126057
- function toKnownErr33(e) {
126412
+ function toKnownErr34(e) {
126058
126413
  if (e instanceof XRPCError) {
126059
126414
  }
126060
126415
  return e;
@@ -126066,7 +126421,7 @@ var AccountTakedownError2 = class extends XRPCError {
126066
126421
  super(src3.status, src3.error, src3.message, src3.headers);
126067
126422
  }
126068
126423
  };
126069
- function toKnownErr34(e) {
126424
+ function toKnownErr35(e) {
126070
126425
  if (e instanceof XRPCError) {
126071
126426
  if (e.error === "AccountTakedown")
126072
126427
  return new AccountTakedownError2(e);
@@ -126075,35 +126430,35 @@ function toKnownErr34(e) {
126075
126430
  }
126076
126431
 
126077
126432
  // ../api/src/client/types/com/atproto/server/deleteAccount.ts
126078
- var ExpiredTokenError = class extends XRPCError {
126433
+ var ExpiredTokenError2 = class extends XRPCError {
126079
126434
  constructor(src3) {
126080
126435
  super(src3.status, src3.error, src3.message, src3.headers);
126081
126436
  }
126082
126437
  };
126083
- var InvalidTokenError = class extends XRPCError {
126438
+ var InvalidTokenError2 = class extends XRPCError {
126084
126439
  constructor(src3) {
126085
126440
  super(src3.status, src3.error, src3.message, src3.headers);
126086
126441
  }
126087
126442
  };
126088
- function toKnownErr35(e) {
126443
+ function toKnownErr36(e) {
126089
126444
  if (e instanceof XRPCError) {
126090
126445
  if (e.error === "ExpiredToken")
126091
- return new ExpiredTokenError(e);
126446
+ return new ExpiredTokenError2(e);
126092
126447
  if (e.error === "InvalidToken")
126093
- return new InvalidTokenError(e);
126448
+ return new InvalidTokenError2(e);
126094
126449
  }
126095
126450
  return e;
126096
126451
  }
126097
126452
 
126098
126453
  // ../api/src/client/types/com/atproto/server/deleteSession.ts
126099
- function toKnownErr36(e) {
126454
+ function toKnownErr37(e) {
126100
126455
  if (e instanceof XRPCError) {
126101
126456
  }
126102
126457
  return e;
126103
126458
  }
126104
126459
 
126105
126460
  // ../api/src/client/types/com/atproto/server/describeServer.ts
126106
- function toKnownErr37(e) {
126461
+ function toKnownErr38(e) {
126107
126462
  if (e instanceof XRPCError) {
126108
126463
  }
126109
126464
  return e;
@@ -126115,7 +126470,7 @@ var DuplicateCreateError = class extends XRPCError {
126115
126470
  super(src3.status, src3.error, src3.message, src3.headers);
126116
126471
  }
126117
126472
  };
126118
- function toKnownErr38(e) {
126473
+ function toKnownErr39(e) {
126119
126474
  if (e instanceof XRPCError) {
126120
126475
  if (e.error === "DuplicateCreate")
126121
126476
  return new DuplicateCreateError(e);
@@ -126124,7 +126479,7 @@ function toKnownErr38(e) {
126124
126479
  }
126125
126480
 
126126
126481
  // ../api/src/client/types/com/atproto/server/getSession.ts
126127
- function toKnownErr39(e) {
126482
+ function toKnownErr40(e) {
126128
126483
  if (e instanceof XRPCError) {
126129
126484
  }
126130
126485
  return e;
@@ -126136,7 +126491,7 @@ var AccountTakedownError3 = class extends XRPCError {
126136
126491
  super(src3.status, src3.error, src3.message, src3.headers);
126137
126492
  }
126138
126493
  };
126139
- function toKnownErr40(e) {
126494
+ function toKnownErr41(e) {
126140
126495
  if (e instanceof XRPCError) {
126141
126496
  if (e.error === "AccountTakedown")
126142
126497
  return new AccountTakedownError3(e);
@@ -126150,7 +126505,7 @@ var AccountTakedownError4 = class extends XRPCError {
126150
126505
  super(src3.status, src3.error, src3.message, src3.headers);
126151
126506
  }
126152
126507
  };
126153
- function toKnownErr41(e) {
126508
+ function toKnownErr42(e) {
126154
126509
  if (e instanceof XRPCError) {
126155
126510
  if (e.error === "AccountTakedown")
126156
126511
  return new AccountTakedownError4(e);
@@ -126159,63 +126514,105 @@ function toKnownErr41(e) {
126159
126514
  }
126160
126515
 
126161
126516
  // ../api/src/client/types/com/atproto/server/requestAccountDelete.ts
126162
- function toKnownErr42(e) {
126517
+ function toKnownErr43(e) {
126518
+ if (e instanceof XRPCError) {
126519
+ }
126520
+ return e;
126521
+ }
126522
+
126523
+ // ../api/src/client/types/com/atproto/server/requestEmailConfirmation.ts
126524
+ function toKnownErr44(e) {
126525
+ if (e instanceof XRPCError) {
126526
+ }
126527
+ return e;
126528
+ }
126529
+
126530
+ // ../api/src/client/types/com/atproto/server/requestEmailUpdate.ts
126531
+ function toKnownErr45(e) {
126163
126532
  if (e instanceof XRPCError) {
126164
126533
  }
126165
126534
  return e;
126166
126535
  }
126167
126536
 
126168
126537
  // ../api/src/client/types/com/atproto/server/requestPasswordReset.ts
126169
- function toKnownErr43(e) {
126538
+ function toKnownErr46(e) {
126170
126539
  if (e instanceof XRPCError) {
126171
126540
  }
126172
126541
  return e;
126173
126542
  }
126174
126543
 
126175
126544
  // ../api/src/client/types/com/atproto/server/resetPassword.ts
126176
- var ExpiredTokenError2 = class extends XRPCError {
126545
+ var ExpiredTokenError3 = class extends XRPCError {
126177
126546
  constructor(src3) {
126178
126547
  super(src3.status, src3.error, src3.message, src3.headers);
126179
126548
  }
126180
126549
  };
126181
- var InvalidTokenError2 = class extends XRPCError {
126550
+ var InvalidTokenError3 = class extends XRPCError {
126182
126551
  constructor(src3) {
126183
126552
  super(src3.status, src3.error, src3.message, src3.headers);
126184
126553
  }
126185
126554
  };
126186
- function toKnownErr44(e) {
126555
+ function toKnownErr47(e) {
126187
126556
  if (e instanceof XRPCError) {
126188
126557
  if (e.error === "ExpiredToken")
126189
- return new ExpiredTokenError2(e);
126558
+ return new ExpiredTokenError3(e);
126190
126559
  if (e.error === "InvalidToken")
126191
- return new InvalidTokenError2(e);
126560
+ return new InvalidTokenError3(e);
126192
126561
  }
126193
126562
  return e;
126194
126563
  }
126195
126564
 
126196
126565
  // ../api/src/client/types/com/atproto/server/revokeAppPassword.ts
126197
- function toKnownErr45(e) {
126566
+ function toKnownErr48(e) {
126567
+ if (e instanceof XRPCError) {
126568
+ }
126569
+ return e;
126570
+ }
126571
+
126572
+ // ../api/src/client/types/com/atproto/server/updateEmail.ts
126573
+ var ExpiredTokenError4 = class extends XRPCError {
126574
+ constructor(src3) {
126575
+ super(src3.status, src3.error, src3.message, src3.headers);
126576
+ }
126577
+ };
126578
+ var InvalidTokenError4 = class extends XRPCError {
126579
+ constructor(src3) {
126580
+ super(src3.status, src3.error, src3.message, src3.headers);
126581
+ }
126582
+ };
126583
+ var TokenRequiredError = class extends XRPCError {
126584
+ constructor(src3) {
126585
+ super(src3.status, src3.error, src3.message, src3.headers);
126586
+ }
126587
+ };
126588
+ function toKnownErr49(e) {
126198
126589
  if (e instanceof XRPCError) {
126590
+ if (e.error === "ExpiredToken")
126591
+ return new ExpiredTokenError4(e);
126592
+ if (e.error === "InvalidToken")
126593
+ return new InvalidTokenError4(e);
126594
+ if (e.error === "TokenRequired")
126595
+ return new TokenRequiredError(e);
126199
126596
  }
126200
126597
  return e;
126201
126598
  }
126202
126599
 
126203
126600
  // ../api/src/client/types/com/atproto/sync/getBlob.ts
126204
- function toKnownErr46(e) {
126601
+ function toKnownErr50(e) {
126205
126602
  if (e instanceof XRPCError) {
126206
126603
  }
126207
126604
  return e;
126208
126605
  }
126209
126606
 
126210
126607
  // ../api/src/client/types/com/atproto/sync/getBlocks.ts
126211
- function toKnownErr47(e) {
126608
+ function toKnownErr51(e) {
126212
126609
  if (e instanceof XRPCError) {
126213
126610
  }
126214
126611
  return e;
126215
126612
  }
126216
126613
 
126217
126614
  // ../api/src/client/types/com/atproto/sync/getCheckout.ts
126218
- function toKnownErr48(e) {
126615
+ function toKnownErr52(e) {
126219
126616
  if (e instanceof XRPCError) {
126220
126617
  }
126221
126618
  return e;
@@ -126227,7 +126624,7 @@ var HeadNotFoundError = class extends XRPCError {
126227
126624
  super(src3.status, src3.error, src3.message, src3.headers);
126228
126625
  }
126229
126626
  };
126230
- function toKnownErr49(e) {
126627
+ function toKnownErr53(e) {
126231
126628
  if (e instanceof XRPCError) {
126232
126629
  if (e.error === "HeadNotFound")
126233
126630
  return new HeadNotFoundError(e);
@@ -126239,14 +126636,14 @@ function toKnownErr49(e) {
126239
126636
  var getLatestCommit_exports = {};
126240
126637
  __export(getLatestCommit_exports, {
126241
126638
  RepoNotFoundError: () => RepoNotFoundError2,
126242
- toKnownErr: () => toKnownErr50
126639
+ toKnownErr: () => toKnownErr54
126243
126640
  });
126244
126641
  var RepoNotFoundError2 = class extends XRPCError {
126245
126642
  constructor(src3) {
126246
126643
  super(src3.status, src3.error, src3.message, src3.headers);
126247
126644
  }
126248
126645
  };
126249
- function toKnownErr50(e) {
126646
+ function toKnownErr54(e) {
126250
126647
  if (e instanceof XRPCError) {
126251
126648
  if (e.error === "RepoNotFound")
126252
126649
  return new RepoNotFoundError2(e);
@@ -126255,105 +126652,105 @@ function toKnownErr50(e) {
126255
126652
  }
126256
126653
 
126257
126654
  // ../api/src/client/types/com/atproto/sync/getRecord.ts
126258
- function toKnownErr51(e) {
126655
+ function toKnownErr55(e) {
126259
126656
  if (e instanceof XRPCError) {
126260
126657
  }
126261
126658
  return e;
126262
126659
  }
126263
126660
 
126264
126661
  // ../api/src/client/types/com/atproto/sync/getRepo.ts
126265
- function toKnownErr52(e) {
126662
+ function toKnownErr56(e) {
126266
126663
  if (e instanceof XRPCError) {
126267
126664
  }
126268
126665
  return e;
126269
126666
  }
126270
126667
 
126271
126668
  // ../api/src/client/types/com/atproto/sync/listBlobs.ts
126272
- function toKnownErr53(e) {
126669
+ function toKnownErr57(e) {
126273
126670
  if (e instanceof XRPCError) {
126274
126671
  }
126275
126672
  return e;
126276
126673
  }
126277
126674
 
126278
126675
  // ../api/src/client/types/com/atproto/sync/listRepos.ts
126279
- function toKnownErr54(e) {
126676
+ function toKnownErr58(e) {
126280
126677
  if (e instanceof XRPCError) {
126281
126678
  }
126282
126679
  return e;
126283
126680
  }
126284
126681
 
126285
126682
  // ../api/src/client/types/com/atproto/sync/notifyOfUpdate.ts
126286
- function toKnownErr55(e) {
126683
+ function toKnownErr59(e) {
126287
126684
  if (e instanceof XRPCError) {
126288
126685
  }
126289
126686
  return e;
126290
126687
  }
126291
126688
 
126292
126689
  // ../api/src/client/types/com/atproto/sync/requestCrawl.ts
126293
- function toKnownErr56(e) {
126690
+ function toKnownErr60(e) {
126294
126691
  if (e instanceof XRPCError) {
126295
126692
  }
126296
126693
  return e;
126297
126694
  }
126298
126695
 
126299
126696
  // ../api/src/client/types/app/bsky/actor/getPreferences.ts
126300
- function toKnownErr57(e) {
126697
+ function toKnownErr61(e) {
126301
126698
  if (e instanceof XRPCError) {
126302
126699
  }
126303
126700
  return e;
126304
126701
  }
126305
126702
 
126306
126703
  // ../api/src/client/types/app/bsky/actor/getProfile.ts
126307
- function toKnownErr58(e) {
126704
+ function toKnownErr62(e) {
126308
126705
  if (e instanceof XRPCError) {
126309
126706
  }
126310
126707
  return e;
126311
126708
  }
126312
126709
 
126313
126710
  // ../api/src/client/types/app/bsky/actor/getProfiles.ts
126314
- function toKnownErr59(e) {
126711
+ function toKnownErr63(e) {
126315
126712
  if (e instanceof XRPCError) {
126316
126713
  }
126317
126714
  return e;
126318
126715
  }
126319
126716
 
126320
126717
  // ../api/src/client/types/app/bsky/actor/getSuggestions.ts
126321
- function toKnownErr60(e) {
126718
+ function toKnownErr64(e) {
126322
126719
  if (e instanceof XRPCError) {
126323
126720
  }
126324
126721
  return e;
126325
126722
  }
126326
126723
 
126327
126724
  // ../api/src/client/types/app/bsky/actor/putPreferences.ts
126328
- function toKnownErr61(e) {
126725
+ function toKnownErr65(e) {
126329
126726
  if (e instanceof XRPCError) {
126330
126727
  }
126331
126728
  return e;
126332
126729
  }
126333
126730
 
126334
126731
  // ../api/src/client/types/app/bsky/actor/searchActors.ts
126335
- function toKnownErr62(e) {
126732
+ function toKnownErr66(e) {
126336
126733
  if (e instanceof XRPCError) {
126337
126734
  }
126338
126735
  return e;
126339
126736
  }
126340
126737
 
126341
126738
  // ../api/src/client/types/app/bsky/actor/searchActorsTypeahead.ts
126342
- function toKnownErr63(e) {
126739
+ function toKnownErr67(e) {
126343
126740
  if (e instanceof XRPCError) {
126344
126741
  }
126345
126742
  return e;
126346
126743
  }
126347
126744
 
126348
126745
  // ../api/src/client/types/app/bsky/feed/describeFeedGenerator.ts
126349
- function toKnownErr64(e) {
126746
+ function toKnownErr68(e) {
126350
126747
  if (e instanceof XRPCError) {
126351
126748
  }
126352
126749
  return e;
126353
126750
  }
126354
126751
 
126355
126752
  // ../api/src/client/types/app/bsky/feed/getActorFeeds.ts
126356
- function toKnownErr65(e) {
126753
+ function toKnownErr69(e) {
126357
126754
  if (e instanceof XRPCError) {
126358
126755
  }
126359
126756
  return e;
@@ -126370,7 +126767,7 @@ var BlockedByActorError = class extends XRPCError {
126370
126767
  super(src3.status, src3.error, src3.message, src3.headers);
126371
126768
  }
126372
126769
  };
126373
- function toKnownErr66(e) {
126770
+ function toKnownErr70(e) {
126374
126771
  if (e instanceof XRPCError) {
126375
126772
  if (e.error === "BlockedActor")
126376
126773
  return new BlockedActorError(e);
@@ -126391,7 +126788,7 @@ var BlockedByActorError2 = class extends XRPCError {
126391
126788
  super(src3.status, src3.error, src3.message, src3.headers);
126392
126789
  }
126393
126790
  };
126394
- function toKnownErr67(e) {
126791
+ function toKnownErr71(e) {
126395
126792
  if (e instanceof XRPCError) {
126396
126793
  if (e.error === "BlockedActor")
126397
126794
  return new BlockedActorError2(e);
@@ -126407,7 +126804,7 @@ var UnknownFeedError = class extends XRPCError {
126407
126804
  super(src3.status, src3.error, src3.message, src3.headers);
126408
126805
  }
126409
126806
  };
126410
- function toKnownErr68(e) {
126807
+ function toKnownErr72(e) {
126411
126808
  if (e instanceof XRPCError) {
126412
126809
  if (e.error === "UnknownFeed")
126413
126810
  return new UnknownFeedError(e);
@@ -126416,14 +126813,14 @@ function toKnownErr68(e) {
126416
126813
  }
126417
126814
 
126418
126815
  // ../api/src/client/types/app/bsky/feed/getFeedGenerator.ts
126419
- function toKnownErr69(e) {
126816
+ function toKnownErr73(e) {
126420
126817
  if (e instanceof XRPCError) {
126421
126818
  }
126422
126819
  return e;
126423
126820
  }
126424
126821
 
126425
126822
  // ../api/src/client/types/app/bsky/feed/getFeedGenerators.ts
126426
- function toKnownErr70(e) {
126823
+ function toKnownErr74(e) {
126427
126824
  if (e instanceof XRPCError) {
126428
126825
  }
126429
126826
  return e;
@@ -126433,14 +126830,14 @@ function toKnownErr70(e) {
126433
126830
  var getFeedSkeleton_exports = {};
126434
126831
  __export(getFeedSkeleton_exports, {
126435
126832
  UnknownFeedError: () => UnknownFeedError2,
126436
- toKnownErr: () => toKnownErr71
126833
+ toKnownErr: () => toKnownErr75
126437
126834
  });
126438
126835
  var UnknownFeedError2 = class extends XRPCError {
126439
126836
  constructor(src3) {
126440
126837
  super(src3.status, src3.error, src3.message, src3.headers);
126441
126838
  }
126442
126839
  };
126443
- function toKnownErr71(e) {
126840
+ function toKnownErr75(e) {
126444
126841
  if (e instanceof XRPCError) {
126445
126842
  if (e.error === "UnknownFeed")
126446
126843
  return new UnknownFeedError2(e);
@@ -126449,7 +126846,7 @@ function toKnownErr71(e) {
126449
126846
  }
126450
126847
 
126451
126848
  // ../api/src/client/types/app/bsky/feed/getLikes.ts
126452
- function toKnownErr72(e) {
126849
+ function toKnownErr76(e) {
126453
126850
  if (e instanceof XRPCError) {
126454
126851
  }
126455
126852
  return e;
@@ -126461,7 +126858,7 @@ var UnknownListError = class extends XRPCError {
126461
126858
  super(src3.status, src3.error, src3.message, src3.headers);
126462
126859
  }
126463
126860
  };
126464
- function toKnownErr73(e) {
126861
+ function toKnownErr77(e) {
126465
126862
  if (e instanceof XRPCError) {
126466
126863
  if (e.error === "UnknownList")
126467
126864
  return new UnknownListError(e);
@@ -126475,7 +126872,7 @@ var NotFoundError = class extends XRPCError {
126475
126872
  super(src3.status, src3.error, src3.message, src3.headers);
126476
126873
  }
126477
126874
  };
126478
- function toKnownErr74(e) {
126875
+ function toKnownErr78(e) {
126479
126876
  if (e instanceof XRPCError) {
126480
126877
  if (e.error === "NotFound")
126481
126878
  return new NotFoundError(e);
@@ -126484,168 +126881,175 @@ function toKnownErr74(e) {
126484
126881
  }
126485
126882
 
126486
126883
  // ../api/src/client/types/app/bsky/feed/getPosts.ts
126487
- function toKnownErr75(e) {
126884
+ function toKnownErr79(e) {
126488
126885
  if (e instanceof XRPCError) {
126489
126886
  }
126490
126887
  return e;
126491
126888
  }
126492
126889
 
126493
126890
  // ../api/src/client/types/app/bsky/feed/getRepostedBy.ts
126494
- function toKnownErr76(e) {
126891
+ function toKnownErr80(e) {
126495
126892
  if (e instanceof XRPCError) {
126496
126893
  }
126497
126894
  return e;
126498
126895
  }
126499
126896
 
126500
126897
  // ../api/src/client/types/app/bsky/feed/getSuggestedFeeds.ts
126501
- function toKnownErr77(e) {
126898
+ function toKnownErr81(e) {
126502
126899
  if (e instanceof XRPCError) {
126503
126900
  }
126504
126901
  return e;
126505
126902
  }
126506
126903
 
126507
126904
  // ../api/src/client/types/app/bsky/feed/getTimeline.ts
126508
- function toKnownErr78(e) {
126905
+ function toKnownErr82(e) {
126906
+ if (e instanceof XRPCError) {
126907
+ }
126908
+ return e;
126909
+ }
126910
+
126911
+ // ../api/src/client/types/app/bsky/feed/searchPosts.ts
126912
+ var BadQueryStringError = class extends XRPCError {
126913
+ constructor(src3) {
126914
+ super(src3.status, src3.error, src3.message, src3.headers);
126915
+ }
126916
+ };
126917
+ function toKnownErr83(e) {
126509
126918
  if (e instanceof XRPCError) {
126919
+ if (e.error === "BadQueryString")
126920
+ return new BadQueryStringError(e);
126510
126921
  }
126511
126922
  return e;
126512
126923
  }
126513
126924
 
126514
126925
  // ../api/src/client/types/app/bsky/graph/getBlocks.ts
126515
- function toKnownErr79(e) {
126926
+ function toKnownErr84(e) {
126516
126927
  if (e instanceof XRPCError) {
126517
126928
  }
126518
126929
  return e;
126519
126930
  }
126520
126931
 
126521
126932
  // ../api/src/client/types/app/bsky/graph/getFollowers.ts
126522
- function toKnownErr80(e) {
126933
+ function toKnownErr85(e) {
126523
126934
  if (e instanceof XRPCError) {
126524
126935
  }
126525
126936
  return e;
126526
126937
  }
126527
126938
 
126528
126939
  // ../api/src/client/types/app/bsky/graph/getFollows.ts
126529
- function toKnownErr81(e) {
126940
+ function toKnownErr86(e) {
126530
126941
  if (e instanceof XRPCError) {
126531
126942
  }
126532
126943
  return e;
126533
126944
  }
126534
126945
 
126535
126946
  // ../api/src/client/types/app/bsky/graph/getList.ts
126536
- function toKnownErr82(e) {
126947
+ function toKnownErr87(e) {
126537
126948
  if (e instanceof XRPCError) {
126538
126949
  }
126539
126950
  return e;
126540
126951
  }
126541
126952
 
126542
126953
  // ../api/src/client/types/app/bsky/graph/getListBlocks.ts
126543
- function toKnownErr83(e) {
126954
+ function toKnownErr88(e) {
126544
126955
  if (e instanceof XRPCError) {
126545
126956
  }
126546
126957
  return e;
126547
126958
  }
126548
126959
 
126549
126960
  // ../api/src/client/types/app/bsky/graph/getListMutes.ts
126550
- function toKnownErr84(e) {
126961
+ function toKnownErr89(e) {
126551
126962
  if (e instanceof XRPCError) {
126552
126963
  }
126553
126964
  return e;
126554
126965
  }
126555
126966
 
126556
126967
  // ../api/src/client/types/app/bsky/graph/getLists.ts
126557
- function toKnownErr85(e) {
126968
+ function toKnownErr90(e) {
126558
126969
  if (e instanceof XRPCError) {
126559
126970
  }
126560
126971
  return e;
126561
126972
  }
126562
126973
 
126563
126974
  // ../api/src/client/types/app/bsky/graph/getMutes.ts
126564
- function toKnownErr86(e) {
126975
+ function toKnownErr91(e) {
126565
126976
  if (e instanceof XRPCError) {
126566
126977
  }
126567
126978
  return e;
126568
126979
  }
126569
126980
 
126570
126981
  // ../api/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
126571
- function toKnownErr87(e) {
126982
+ function toKnownErr92(e) {
126572
126983
  if (e instanceof XRPCError) {
126573
126984
  }
126574
126985
  return e;
126575
126986
  }
126576
126987
 
126577
126988
  // ../api/src/client/types/app/bsky/graph/muteActor.ts
126578
- function toKnownErr88(e) {
126989
+ function toKnownErr93(e) {
126579
126990
  if (e instanceof XRPCError) {
126580
126991
  }
126581
126992
  return e;
126582
126993
  }
126583
126994
 
126584
126995
  // ../api/src/client/types/app/bsky/graph/muteActorList.ts
126585
- function toKnownErr89(e) {
126996
+ function toKnownErr94(e) {
126586
126997
  if (e instanceof XRPCError) {
126587
126998
  }
126588
126999
  return e;
126589
127000
  }
126590
127001
 
126591
127002
  // ../api/src/client/types/app/bsky/graph/unmuteActor.ts
126592
- function toKnownErr90(e) {
127003
+ function toKnownErr95(e) {
126593
127004
  if (e instanceof XRPCError) {
126594
127005
  }
126595
127006
  return e;
126596
127007
  }
126597
127008
 
126598
127009
  // ../api/src/client/types/app/bsky/graph/unmuteActorList.ts
126599
- function toKnownErr91(e) {
127010
+ function toKnownErr96(e) {
126600
127011
  if (e instanceof XRPCError) {
126601
127012
  }
126602
127013
  return e;
126603
127014
  }
126604
127015
 
126605
127016
  // ../api/src/client/types/app/bsky/notification/getUnreadCount.ts
126606
- function toKnownErr92(e) {
127017
+ function toKnownErr97(e) {
126607
127018
  if (e instanceof XRPCError) {
126608
127019
  }
126609
127020
  return e;
126610
127021
  }
126611
127022
 
126612
127023
  // ../api/src/client/types/app/bsky/notification/listNotifications.ts
126613
- function toKnownErr93(e) {
127024
+ function toKnownErr98(e) {
126614
127025
  if (e instanceof XRPCError) {
126615
127026
  }
126616
127027
  return e;
126617
127028
  }
126618
127029
 
126619
127030
  // ../api/src/client/types/app/bsky/notification/registerPush.ts
126620
- function toKnownErr94(e) {
127031
+ function toKnownErr99(e) {
126621
127032
  if (e instanceof XRPCError) {
126622
127033
  }
126623
127034
  return e;
126624
127035
  }
126625
127036
 
126626
127037
  // ../api/src/client/types/app/bsky/notification/updateSeen.ts
126627
- function toKnownErr95(e) {
126628
- if (e instanceof XRPCError) {
126629
- }
126630
- return e;
126631
- }
126632
-
126633
- // ../api/src/client/types/app/bsky/unspecced/applyLabels.ts
126634
- function toKnownErr96(e) {
127038
+ function toKnownErr100(e) {
126635
127039
  if (e instanceof XRPCError) {
126636
127040
  }
126637
127041
  return e;
126638
127042
  }
126639
127043
 
126640
127044
  // ../api/src/client/types/app/bsky/unspecced/getPopular.ts
126641
- function toKnownErr97(e) {
127045
+ function toKnownErr101(e) {
126642
127046
  if (e instanceof XRPCError) {
126643
127047
  }
126644
127048
  return e;
126645
127049
  }
126646
127050
 
126647
127051
  // ../api/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
126648
- function toKnownErr98(e) {
127052
+ function toKnownErr102(e) {
126649
127053
  if (e instanceof XRPCError) {
126650
127054
  }
126651
127055
  return e;
@@ -126657,7 +127061,7 @@ var UnknownFeedError3 = class extends XRPCError {
126657
127061
  super(src3.status, src3.error, src3.message, src3.headers);
126658
127062
  }
126659
127063
  };
126660
- function toKnownErr99(e) {
127064
+ function toKnownErr103(e) {
126661
127065
  if (e instanceof XRPCError) {
126662
127066
  if (e.error === "UnknownFeed")
126663
127067
  return new UnknownFeedError3(e);
@@ -126665,6 +127069,34 @@ function toKnownErr99(e) {
126665
127069
  return e;
126666
127070
  }
126667
127071
 
127072
+ // ../api/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts
127073
+ var BadQueryStringError2 = class extends XRPCError {
127074
+ constructor(src3) {
127075
+ super(src3.status, src3.error, src3.message, src3.headers);
127076
+ }
127077
+ };
127078
+ function toKnownErr104(e) {
127079
+ if (e instanceof XRPCError) {
127080
+ if (e.error === "BadQueryString")
127081
+ return new BadQueryStringError2(e);
127082
+ }
127083
+ return e;
127084
+ }
127085
+
127086
+ // ../api/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts
127087
+ var BadQueryStringError3 = class extends XRPCError {
127088
+ constructor(src3) {
127089
+ super(src3.status, src3.error, src3.message, src3.headers);
127090
+ }
127091
+ };
127092
+ function toKnownErr105(e) {
127093
+ if (e instanceof XRPCError) {
127094
+ if (e.error === "BadQueryString")
127095
+ return new BadQueryStringError3(e);
127096
+ }
127097
+ return e;
127098
+ }
127099
+
126668
127100
  // ../api/src/client/index.ts
126669
127101
  var AtpBaseClient = class {
126670
127102
  constructor() {
@@ -126878,84 +127310,104 @@ var ServerNS = class {
126878
127310
  constructor(service2) {
126879
127311
  this._service = service2;
126880
127312
  }
127313
+ confirmEmail(data, opts) {
127314
+ return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
127315
+ throw toKnownErr30(e);
127316
+ });
127317
+ }
126881
127318
  createAccount(data, opts) {
126882
127319
  return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
126883
- throw toKnownErr30(e);
127320
+ throw toKnownErr31(e);
126884
127321
  });
126885
127322
  }
126886
127323
  createAppPassword(data, opts) {
126887
127324
  return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
126888
- throw toKnownErr31(e);
127325
+ throw toKnownErr32(e);
126889
127326
  });
126890
127327
  }
126891
127328
  createInviteCode(data, opts) {
126892
127329
  return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
126893
- throw toKnownErr32(e);
127330
+ throw toKnownErr33(e);
126894
127331
  });
126895
127332
  }
126896
127333
  createInviteCodes(data, opts) {
126897
127334
  return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
126898
- throw toKnownErr33(e);
127335
+ throw toKnownErr34(e);
126899
127336
  });
126900
127337
  }
126901
127338
  createSession(data, opts) {
126902
127339
  return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
126903
- throw toKnownErr34(e);
127340
+ throw toKnownErr35(e);
126904
127341
  });
126905
127342
  }
126906
127343
  deleteAccount(data, opts) {
126907
127344
  return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
126908
- throw toKnownErr35(e);
127345
+ throw toKnownErr36(e);
126909
127346
  });
126910
127347
  }
126911
127348
  deleteSession(data, opts) {
126912
127349
  return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
126913
- throw toKnownErr36(e);
127350
+ throw toKnownErr37(e);
126914
127351
  });
126915
127352
  }
126916
127353
  describeServer(params2, opts) {
126917
127354
  return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
126918
- throw toKnownErr37(e);
127355
+ throw toKnownErr38(e);
126919
127356
  });
126920
127357
  }
126921
127358
  getAccountInviteCodes(params2, opts) {
126922
127359
  return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
126923
- throw toKnownErr38(e);
127360
+ throw toKnownErr39(e);
126924
127361
  });
126925
127362
  }
126926
127363
  getSession(params2, opts) {
126927
127364
  return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
126928
- throw toKnownErr39(e);
127365
+ throw toKnownErr40(e);
126929
127366
  });
126930
127367
  }
126931
127368
  listAppPasswords(params2, opts) {
126932
127369
  return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
126933
- throw toKnownErr40(e);
127370
+ throw toKnownErr41(e);
126934
127371
  });
126935
127372
  }
126936
127373
  refreshSession(data, opts) {
126937
127374
  return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
126938
- throw toKnownErr41(e);
127375
+ throw toKnownErr42(e);
126939
127376
  });
126940
127377
  }
126941
127378
  requestAccountDelete(data, opts) {
126942
127379
  return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
126943
- throw toKnownErr42(e);
127380
+ throw toKnownErr43(e);
127381
+ });
127382
+ }
127383
+ requestEmailConfirmation(data, opts) {
127384
+ return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
127385
+ throw toKnownErr44(e);
127386
+ });
127387
+ }
127388
+ requestEmailUpdate(data, opts) {
127389
+ return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
127390
+ throw toKnownErr45(e);
126944
127391
  });
126945
127392
  }
126946
127393
  requestPasswordReset(data, opts) {
126947
127394
  return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
126948
- throw toKnownErr43(e);
127395
+ throw toKnownErr46(e);
126949
127396
  });
126950
127397
  }
126951
127398
  resetPassword(data, opts) {
126952
127399
  return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
126953
- throw toKnownErr44(e);
127400
+ throw toKnownErr47(e);
126954
127401
  });
126955
127402
  }
126956
127403
  revokeAppPassword(data, opts) {
126957
127404
  return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
126958
- throw toKnownErr45(e);
127405
+ throw toKnownErr48(e);
127406
+ });
127407
+ }
127408
+ updateEmail(data, opts) {
127409
+ return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
127410
+ throw toKnownErr49(e);
126959
127411
  });
126960
127412
  }
126961
127413
  };
@@ -126965,57 +127417,57 @@ var SyncNS = class {
126965
127417
  }
126966
127418
  getBlob(params2, opts) {
126967
127419
  return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
126968
- throw toKnownErr46(e);
127420
+ throw toKnownErr50(e);
126969
127421
  });
126970
127422
  }
126971
127423
  getBlocks(params2, opts) {
126972
127424
  return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
126973
- throw toKnownErr47(e);
127425
+ throw toKnownErr51(e);
126974
127426
  });
126975
127427
  }
126976
127428
  getCheckout(params2, opts) {
126977
127429
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
126978
- throw toKnownErr48(e);
127430
+ throw toKnownErr52(e);
126979
127431
  });
126980
127432
  }
126981
127433
  getHead(params2, opts) {
126982
127434
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
126983
- throw toKnownErr49(e);
127435
+ throw toKnownErr53(e);
126984
127436
  });
126985
127437
  }
126986
127438
  getLatestCommit(params2, opts) {
126987
127439
  return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
126988
- throw toKnownErr50(e);
127440
+ throw toKnownErr54(e);
126989
127441
  });
126990
127442
  }
126991
127443
  getRecord(params2, opts) {
126992
127444
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
126993
- throw toKnownErr51(e);
127445
+ throw toKnownErr55(e);
126994
127446
  });
126995
127447
  }
126996
127448
  getRepo(params2, opts) {
126997
127449
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
126998
- throw toKnownErr52(e);
127450
+ throw toKnownErr56(e);
126999
127451
  });
127000
127452
  }
127001
127453
  listBlobs(params2, opts) {
127002
127454
  return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
127003
- throw toKnownErr53(e);
127455
+ throw toKnownErr57(e);
127004
127456
  });
127005
127457
  }
127006
127458
  listRepos(params2, opts) {
127007
127459
  return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
127008
- throw toKnownErr54(e);
127460
+ throw toKnownErr58(e);
127009
127461
  });
127010
127462
  }
127011
127463
  notifyOfUpdate(data, opts) {
127012
127464
  return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
127013
- throw toKnownErr55(e);
127465
+ throw toKnownErr59(e);
127014
127466
  });
127015
127467
  }
127016
127468
  requestCrawl(data, opts) {
127017
127469
  return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
127018
- throw toKnownErr56(e);
127470
+ throw toKnownErr60(e);
127019
127471
  });
127020
127472
  }
127021
127473
  };
@@ -127044,37 +127496,37 @@ var ActorNS = class {
127044
127496
  }
127045
127497
  getPreferences(params2, opts) {
127046
127498
  return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
127047
- throw toKnownErr57(e);
127499
+ throw toKnownErr61(e);
127048
127500
  });
127049
127501
  }
127050
127502
  getProfile(params2, opts) {
127051
127503
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
127052
- throw toKnownErr58(e);
127504
+ throw toKnownErr62(e);
127053
127505
  });
127054
127506
  }
127055
127507
  getProfiles(params2, opts) {
127056
127508
  return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
127057
- throw toKnownErr59(e);
127509
+ throw toKnownErr63(e);
127058
127510
  });
127059
127511
  }
127060
127512
  getSuggestions(params2, opts) {
127061
127513
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
127062
- throw toKnownErr60(e);
127514
+ throw toKnownErr64(e);
127063
127515
  });
127064
127516
  }
127065
127517
  putPreferences(data, opts) {
127066
127518
  return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
127067
- throw toKnownErr61(e);
127519
+ throw toKnownErr65(e);
127068
127520
  });
127069
127521
  }
127070
127522
  searchActors(params2, opts) {
127071
127523
  return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
127072
- throw toKnownErr62(e);
127524
+ throw toKnownErr66(e);
127073
127525
  });
127074
127526
  }
127075
127527
  searchActorsTypeahead(params2, opts) {
127076
127528
  return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
127077
- throw toKnownErr63(e);
127529
+ throw toKnownErr67(e);
127078
127530
  });
127079
127531
  }
127080
127532
  };
@@ -127121,77 +127573,82 @@ var FeedNS = class {
127121
127573
  }
127122
127574
  describeFeedGenerator(params2, opts) {
127123
127575
  return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
127124
- throw toKnownErr64(e);
127576
+ throw toKnownErr68(e);
127125
127577
  });
127126
127578
  }
127127
127579
  getActorFeeds(params2, opts) {
127128
127580
  return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
127129
- throw toKnownErr65(e);
127581
+ throw toKnownErr69(e);
127130
127582
  });
127131
127583
  }
127132
127584
  getActorLikes(params2, opts) {
127133
127585
  return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
127134
- throw toKnownErr66(e);
127586
+ throw toKnownErr70(e);
127135
127587
  });
127136
127588
  }
127137
127589
  getAuthorFeed(params2, opts) {
127138
127590
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
127139
- throw toKnownErr67(e);
127591
+ throw toKnownErr71(e);
127140
127592
  });
127141
127593
  }
127142
127594
  getFeed(params2, opts) {
127143
127595
  return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
127144
- throw toKnownErr68(e);
127596
+ throw toKnownErr72(e);
127145
127597
  });
127146
127598
  }
127147
127599
  getFeedGenerator(params2, opts) {
127148
127600
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
127149
- throw toKnownErr69(e);
127601
+ throw toKnownErr73(e);
127150
127602
  });
127151
127603
  }
127152
127604
  getFeedGenerators(params2, opts) {
127153
127605
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
127154
- throw toKnownErr70(e);
127606
+ throw toKnownErr74(e);
127155
127607
  });
127156
127608
  }
127157
127609
  getFeedSkeleton(params2, opts) {
127158
127610
  return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
127159
- throw toKnownErr71(e);
127611
+ throw toKnownErr75(e);
127160
127612
  });
127161
127613
  }
127162
127614
  getLikes(params2, opts) {
127163
127615
  return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
127164
- throw toKnownErr72(e);
127616
+ throw toKnownErr76(e);
127165
127617
  });
127166
127618
  }
127167
127619
  getListFeed(params2, opts) {
127168
127620
  return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
127169
- throw toKnownErr73(e);
127621
+ throw toKnownErr77(e);
127170
127622
  });
127171
127623
  }
127172
127624
  getPostThread(params2, opts) {
127173
127625
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
127174
- throw toKnownErr74(e);
127626
+ throw toKnownErr78(e);
127175
127627
  });
127176
127628
  }
127177
127629
  getPosts(params2, opts) {
127178
127630
  return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
127179
- throw toKnownErr75(e);
127631
+ throw toKnownErr79(e);
127180
127632
  });
127181
127633
  }
127182
127634
  getRepostedBy(params2, opts) {
127183
127635
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
127184
- throw toKnownErr76(e);
127636
+ throw toKnownErr80(e);
127185
127637
  });
127186
127638
  }
127187
127639
  getSuggestedFeeds(params2, opts) {
127188
127640
  return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
127189
- throw toKnownErr77(e);
127641
+ throw toKnownErr81(e);
127190
127642
  });
127191
127643
  }
127192
127644
  getTimeline(params2, opts) {
127193
127645
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
127194
- throw toKnownErr78(e);
127646
+ throw toKnownErr82(e);
127647
+ });
127648
+ }
127649
+ searchPosts(params2, opts) {
127650
+ return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
127651
+ throw toKnownErr83(e);
127195
127652
  });
127196
127653
  }
127197
127654
  };
@@ -127341,67 +127798,67 @@ var GraphNS = class {
127341
127798
  }
127342
127799
  getBlocks(params2, opts) {
127343
127800
  return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
127344
- throw toKnownErr79(e);
127801
+ throw toKnownErr84(e);
127345
127802
  });
127346
127803
  }
127347
127804
  getFollowers(params2, opts) {
127348
127805
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
127349
- throw toKnownErr80(e);
127806
+ throw toKnownErr85(e);
127350
127807
  });
127351
127808
  }
127352
127809
  getFollows(params2, opts) {
127353
127810
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
127354
- throw toKnownErr81(e);
127811
+ throw toKnownErr86(e);
127355
127812
  });
127356
127813
  }
127357
127814
  getList(params2, opts) {
127358
127815
  return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
127359
- throw toKnownErr82(e);
127816
+ throw toKnownErr87(e);
127360
127817
  });
127361
127818
  }
127362
127819
  getListBlocks(params2, opts) {
127363
127820
  return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
127364
- throw toKnownErr83(e);
127821
+ throw toKnownErr88(e);
127365
127822
  });
127366
127823
  }
127367
127824
  getListMutes(params2, opts) {
127368
127825
  return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
127369
- throw toKnownErr84(e);
127826
+ throw toKnownErr89(e);
127370
127827
  });
127371
127828
  }
127372
127829
  getLists(params2, opts) {
127373
127830
  return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
127374
- throw toKnownErr85(e);
127831
+ throw toKnownErr90(e);
127375
127832
  });
127376
127833
  }
127377
127834
  getMutes(params2, opts) {
127378
127835
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
127379
- throw toKnownErr86(e);
127836
+ throw toKnownErr91(e);
127380
127837
  });
127381
127838
  }
127382
127839
  getSuggestedFollowsByActor(params2, opts) {
127383
127840
  return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
127384
- throw toKnownErr87(e);
127841
+ throw toKnownErr92(e);
127385
127842
  });
127386
127843
  }
127387
127844
  muteActor(data, opts) {
127388
127845
  return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
127389
- throw toKnownErr88(e);
127846
+ throw toKnownErr93(e);
127390
127847
  });
127391
127848
  }
127392
127849
  muteActorList(data, opts) {
127393
127850
  return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
127394
- throw toKnownErr89(e);
127851
+ throw toKnownErr94(e);
127395
127852
  });
127396
127853
  }
127397
127854
  unmuteActor(data, opts) {
127398
127855
  return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
127399
- throw toKnownErr90(e);
127856
+ throw toKnownErr95(e);
127400
127857
  });
127401
127858
  }
127402
127859
  unmuteActorList(data, opts) {
127403
127860
  return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
127404
- throw toKnownErr91(e);
127861
+ throw toKnownErr96(e);
127405
127862
  });
127406
127863
  }
127407
127864
  };
@@ -127546,22 +128003,22 @@ var NotificationNS = class {
127546
128003
  }
127547
128004
  getUnreadCount(params2, opts) {
127548
128005
  return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
127549
- throw toKnownErr92(e);
128006
+ throw toKnownErr97(e);
127550
128007
  });
127551
128008
  }
127552
128009
  listNotifications(params2, opts) {
127553
128010
  return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
127554
- throw toKnownErr93(e);
128011
+ throw toKnownErr98(e);
127555
128012
  });
127556
128013
  }
127557
128014
  registerPush(data, opts) {
127558
128015
  return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
127559
- throw toKnownErr94(e);
128016
+ throw toKnownErr99(e);
127560
128017
  });
127561
128018
  }
127562
128019
  updateSeen(data, opts) {
127563
128020
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
127564
- throw toKnownErr95(e);
128021
+ throw toKnownErr100(e);
127565
128022
  });
127566
128023
  }
127567
128024
  };
@@ -127574,24 +128031,29 @@ var UnspeccedNS = class {
127574
128031
  constructor(service2) {
127575
128032
  this._service = service2;
127576
128033
  }
127577
- applyLabels(data, opts) {
127578
- return this._service.xrpc.call("app.bsky.unspecced.applyLabels", opts?.qp, data, opts).catch((e) => {
127579
- throw toKnownErr96(e);
127580
- });
127581
- }
127582
128034
  getPopular(params2, opts) {
127583
128035
  return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
127584
- throw toKnownErr97(e);
128036
+ throw toKnownErr101(e);
127585
128037
  });
127586
128038
  }
127587
128039
  getPopularFeedGenerators(params2, opts) {
127588
128040
  return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
127589
- throw toKnownErr98(e);
128041
+ throw toKnownErr102(e);
127590
128042
  });
127591
128043
  }
127592
128044
  getTimelineSkeleton(params2, opts) {
127593
128045
  return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
127594
- throw toKnownErr99(e);
128046
+ throw toKnownErr103(e);
128047
+ });
128048
+ }
128049
+ searchActorsSkeleton(params2, opts) {
128050
+ return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
128051
+ throw toKnownErr104(e);
128052
+ });
128053
+ }
128054
+ searchPostsSkeleton(params2, opts) {
128055
+ return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
128056
+ throw toKnownErr105(e);
127595
128057
  });
127596
128058
  }
127597
128059
  };
@@ -127635,7 +128097,8 @@ var _AtpAgent = class {
127635
128097
  refreshJwt: res.data.refreshJwt,
127636
128098
  handle: res.data.handle,
127637
128099
  did: res.data.did,
127638
- email: opts.email
128100
+ email: opts.email,
128101
+ emailConfirmed: false
127639
128102
  };
127640
128103
  return res;
127641
128104
  } catch (e) {
@@ -127660,7 +128123,8 @@ var _AtpAgent = class {
127660
128123
  refreshJwt: res.data.refreshJwt,
127661
128124
  handle: res.data.handle,
127662
128125
  did: res.data.did,
127663
- email: res.data.email
128126
+ email: res.data.email,
128127
+ emailConfirmed: res.data.emailConfirmed
127664
128128
  };
127665
128129
  return res;
127666
128130
  } catch (e) {
@@ -127683,6 +128147,7 @@ var _AtpAgent = class {
127683
128147
  }
127684
128148
  this.session.email = res.data.email;
127685
128149
  this.session.handle = res.data.handle;
128150
+ this.session.emailConfirmed = res.data.emailConfirmed;
127686
128151
  return res;
127687
128152
  } catch (e) {
127688
128153
  this.session = void 0;
@@ -127744,6 +128209,7 @@ var _AtpAgent = class {
127744
128209
  this._persistSession?.("expired", void 0);
127745
128210
  } else if (isNewSessionObject(this._baseClient, res.body)) {
127746
128211
  this.session = {
128212
+ ...this.session || {},
127747
128213
  accessJwt: res.body.accessJwt,
127748
128214
  refreshJwt: res.body.refreshJwt,
127749
128215
  handle: res.body.handle,
@@ -130188,6 +130654,10 @@ var schemaDict2 = {
130188
130654
  type: "params",
130189
130655
  properties: {
130190
130656
  term: {
130657
+ type: "string",
130658
+ description: "DEPRECATED: use 'q' instead"
130659
+ },
130660
+ q: {
130191
130661
  type: "string"
130192
130662
  },
130193
130663
  invitedBy: {
@@ -131293,6 +131763,45 @@ var schemaDict2 = {
131293
131763
  }
131294
131764
  }
131295
131765
  },
131766
+ ComAtprotoServerConfirmEmail: {
131767
+ lexicon: 1,
131768
+ id: "com.atproto.server.confirmEmail",
131769
+ defs: {
131770
+ main: {
131771
+ type: "procedure",
131772
+ description: "Confirm an email using a token from com.atproto.server.requestEmailConfirmation.",
131773
+ input: {
131774
+ encoding: "application/json",
131775
+ schema: {
131776
+ type: "object",
131777
+ required: ["email", "token"],
131778
+ properties: {
131779
+ email: {
131780
+ type: "string"
131781
+ },
131782
+ token: {
131783
+ type: "string"
131784
+ }
131785
+ }
131786
+ }
131787
+ },
131788
+ errors: [
131789
+ {
131790
+ name: "AccountNotFound"
131791
+ },
131792
+ {
131793
+ name: "ExpiredToken"
131794
+ },
131795
+ {
131796
+ name: "InvalidToken"
131797
+ },
131798
+ {
131799
+ name: "InvalidEmail"
131800
+ }
131801
+ ]
131802
+ }
131803
+ }
131804
+ },
131296
131805
  ComAtprotoServerCreateAccount: {
131297
131806
  lexicon: 1,
131298
131807
  id: "com.atproto.server.createAccount",
@@ -131575,6 +132084,9 @@ var schemaDict2 = {
131575
132084
  },
131576
132085
  email: {
131577
132086
  type: "string"
132087
+ },
132088
+ emailConfirmed: {
132089
+ type: "boolean"
131578
132090
  }
131579
132091
  }
131580
132092
  }
@@ -131804,6 +132316,9 @@ var schemaDict2 = {
131804
132316
  },
131805
132317
  email: {
131806
132318
  type: "string"
132319
+ },
132320
+ emailConfirmed: {
132321
+ type: "boolean"
131807
132322
  }
131808
132323
  }
131809
132324
  }
@@ -131903,6 +132418,38 @@ var schemaDict2 = {
131903
132418
  }
131904
132419
  }
131905
132420
  },
132421
+ ComAtprotoServerRequestEmailConfirmation: {
132422
+ lexicon: 1,
132423
+ id: "com.atproto.server.requestEmailConfirmation",
132424
+ defs: {
132425
+ main: {
132426
+ type: "procedure",
132427
+ description: "Request an email with a code to confirm ownership of email"
132428
+ }
132429
+ }
132430
+ },
132431
+ ComAtprotoServerRequestEmailUpdate: {
132432
+ lexicon: 1,
132433
+ id: "com.atproto.server.requestEmailUpdate",
132434
+ defs: {
132435
+ main: {
132436
+ type: "procedure",
132437
+ description: "Request a token in order to update email.",
132438
+ output: {
132439
+ encoding: "application/json",
132440
+ schema: {
132441
+ type: "object",
132442
+ required: ["tokenRequired"],
132443
+ properties: {
132444
+ tokenRequired: {
132445
+ type: "boolean"
132446
+ }
132447
+ }
132448
+ }
132449
+ }
132450
+ }
132451
+ }
132452
+ },
131906
132453
  ComAtprotoServerRequestPasswordReset: {
131907
132454
  lexicon: 1,
131908
132455
  id: "com.atproto.server.requestPasswordReset",
@@ -131980,6 +132527,43 @@ var schemaDict2 = {
131980
132527
  }
131981
132528
  }
131982
132529
  },
132530
+ ComAtprotoServerUpdateEmail: {
132531
+ lexicon: 1,
132532
+ id: "com.atproto.server.updateEmail",
132533
+ defs: {
132534
+ main: {
132535
+ type: "procedure",
132536
+ description: "Update an account's email.",
132537
+ input: {
132538
+ encoding: "application/json",
132539
+ schema: {
132540
+ type: "object",
132541
+ required: ["email"],
132542
+ properties: {
132543
+ email: {
132544
+ type: "string"
132545
+ },
132546
+ token: {
132547
+ type: "string",
132548
+ description: "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."
132549
+ }
132550
+ }
132551
+ }
132552
+ },
132553
+ errors: [
132554
+ {
132555
+ name: "ExpiredToken"
132556
+ },
132557
+ {
132558
+ name: "InvalidToken"
132559
+ },
132560
+ {
132561
+ name: "TokenRequired"
132562
+ }
132563
+ ]
132564
+ }
132565
+ }
132566
+ },
131983
132567
  ComAtprotoSyncGetBlob: {
131984
132568
  lexicon: 1,
131985
132569
  id: "com.atproto.sync.getBlob",
@@ -133040,18 +133624,23 @@ var schemaDict2 = {
133040
133624
  defs: {
133041
133625
  main: {
133042
133626
  type: "query",
133043
- description: "Find actors matching search criteria.",
133627
+ description: "Find actors (profiles) matching search criteria.",
133044
133628
  parameters: {
133045
133629
  type: "params",
133046
133630
  properties: {
133047
133631
  term: {
133048
- type: "string"
133632
+ type: "string",
133633
+ description: "DEPRECATED: use 'q' instead"
133634
+ },
133635
+ q: {
133636
+ type: "string",
133637
+ description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
133049
133638
  },
133050
133639
  limit: {
133051
133640
  type: "integer",
133052
133641
  minimum: 1,
133053
133642
  maximum: 100,
133054
- default: 50
133643
+ default: 25
133055
133644
  },
133056
133645
  cursor: {
133057
133646
  type: "string"
@@ -133091,13 +133680,18 @@ var schemaDict2 = {
133091
133680
  type: "params",
133092
133681
  properties: {
133093
133682
  term: {
133094
- type: "string"
133683
+ type: "string",
133684
+ description: "DEPRECATED: use 'q' instead"
133685
+ },
133686
+ q: {
133687
+ type: "string",
133688
+ description: "search query prefix; not a full query string"
133095
133689
  },
133096
133690
  limit: {
133097
133691
  type: "integer",
133098
133692
  minimum: 1,
133099
133693
  maximum: 100,
133100
- default: 50
133694
+ default: 10
133101
133695
  }
133102
133696
  }
133103
133697
  },
@@ -134747,6 +135341,64 @@ var schemaDict2 = {
134747
135341
  }
134748
135342
  }
134749
135343
  },
135344
+ AppBskyFeedSearchPosts: {
135345
+ lexicon: 1,
135346
+ id: "app.bsky.feed.searchPosts",
135347
+ defs: {
135348
+ main: {
135349
+ type: "query",
135350
+ description: "Find posts matching search criteria",
135351
+ parameters: {
135352
+ type: "params",
135353
+ required: ["q"],
135354
+ properties: {
135355
+ q: {
135356
+ type: "string",
135357
+ description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
135358
+ },
135359
+ limit: {
135360
+ type: "integer",
135361
+ minimum: 1,
135362
+ maximum: 100,
135363
+ default: 25
135364
+ },
135365
+ cursor: {
135366
+ type: "string",
135367
+ description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
135368
+ }
135369
+ }
135370
+ },
135371
+ output: {
135372
+ encoding: "application/json",
135373
+ schema: {
135374
+ type: "object",
135375
+ required: ["posts"],
135376
+ properties: {
135377
+ cursor: {
135378
+ type: "string"
135379
+ },
135380
+ hitsTotal: {
135381
+ type: "integer",
135382
+ description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
135383
+ },
135384
+ posts: {
135385
+ type: "array",
135386
+ items: {
135387
+ type: "ref",
135388
+ ref: "lex:app.bsky.feed.defs#postView"
135389
+ }
135390
+ }
135391
+ }
135392
+ }
135393
+ },
135394
+ errors: [
135395
+ {
135396
+ name: "BadQueryString"
135397
+ }
135398
+ ]
135399
+ }
135400
+ }
135401
+ },
134750
135402
  AppBskyFeedThreadgate: {
134751
135403
  lexicon: 1,
134752
135404
  id: "app.bsky.feed.threadgate",
@@ -135858,27 +136510,27 @@ var schemaDict2 = {
135858
136510
  }
135859
136511
  }
135860
136512
  },
135861
- AppBskyUnspeccedApplyLabels: {
136513
+ AppBskyUnspeccedDefs: {
135862
136514
  lexicon: 1,
135863
- id: "app.bsky.unspecced.applyLabels",
136515
+ id: "app.bsky.unspecced.defs",
135864
136516
  defs: {
135865
- main: {
135866
- type: "procedure",
135867
- description: "Allow a labeler to apply labels directly.",
135868
- input: {
135869
- encoding: "application/json",
135870
- schema: {
135871
- type: "object",
135872
- required: ["labels"],
135873
- properties: {
135874
- labels: {
135875
- type: "array",
135876
- items: {
135877
- type: "ref",
135878
- ref: "lex:com.atproto.label.defs#label"
135879
- }
135880
- }
135881
- }
136517
+ skeletonSearchPost: {
136518
+ type: "object",
136519
+ required: ["uri"],
136520
+ properties: {
136521
+ uri: {
136522
+ type: "string",
136523
+ format: "at-uri"
136524
+ }
136525
+ }
136526
+ },
136527
+ skeletonSearchActor: {
136528
+ type: "object",
136529
+ required: ["did"],
136530
+ properties: {
136531
+ did: {
136532
+ type: "string",
136533
+ format: "did"
135882
136534
  }
135883
136535
  }
135884
136536
  }
@@ -136024,6 +136676,126 @@ var schemaDict2 = {
136024
136676
  ]
136025
136677
  }
136026
136678
  }
136679
+ },
136680
+ AppBskyUnspeccedSearchActorsSkeleton: {
136681
+ lexicon: 1,
136682
+ id: "app.bsky.unspecced.searchActorsSkeleton",
136683
+ defs: {
136684
+ main: {
136685
+ type: "query",
136686
+ description: "Backend Actors (profile) search, returning only skeleton",
136687
+ parameters: {
136688
+ type: "params",
136689
+ required: ["q"],
136690
+ properties: {
136691
+ q: {
136692
+ type: "string",
136693
+ description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax"
136694
+ },
136695
+ typeahead: {
136696
+ type: "boolean",
136697
+ description: "if true, acts as fast/simple 'typeahead' query"
136698
+ },
136699
+ limit: {
136700
+ type: "integer",
136701
+ minimum: 1,
136702
+ maximum: 100,
136703
+ default: 25
136704
+ },
136705
+ cursor: {
136706
+ type: "string",
136707
+ description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
136708
+ }
136709
+ }
136710
+ },
136711
+ output: {
136712
+ encoding: "application/json",
136713
+ schema: {
136714
+ type: "object",
136715
+ required: ["actors"],
136716
+ properties: {
136717
+ cursor: {
136718
+ type: "string"
136719
+ },
136720
+ hitsTotal: {
136721
+ type: "integer",
136722
+ description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
136723
+ },
136724
+ actors: {
136725
+ type: "array",
136726
+ items: {
136727
+ type: "ref",
136728
+ ref: "lex:app.bsky.unspecced.defs#skeletonSearchActor"
136729
+ }
136730
+ }
136731
+ }
136732
+ }
136733
+ },
136734
+ errors: [
136735
+ {
136736
+ name: "BadQueryString"
136737
+ }
136738
+ ]
136739
+ }
136740
+ }
136741
+ },
136742
+ AppBskyUnspeccedSearchPostsSkeleton: {
136743
+ lexicon: 1,
136744
+ id: "app.bsky.unspecced.searchPostsSkeleton",
136745
+ defs: {
136746
+ main: {
136747
+ type: "query",
136748
+ description: "Backend Posts search, returning only skeleton",
136749
+ parameters: {
136750
+ type: "params",
136751
+ required: ["q"],
136752
+ properties: {
136753
+ q: {
136754
+ type: "string",
136755
+ description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
136756
+ },
136757
+ limit: {
136758
+ type: "integer",
136759
+ minimum: 1,
136760
+ maximum: 100,
136761
+ default: 25
136762
+ },
136763
+ cursor: {
136764
+ type: "string",
136765
+ description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
136766
+ }
136767
+ }
136768
+ },
136769
+ output: {
136770
+ encoding: "application/json",
136771
+ schema: {
136772
+ type: "object",
136773
+ required: ["posts"],
136774
+ properties: {
136775
+ cursor: {
136776
+ type: "string"
136777
+ },
136778
+ hitsTotal: {
136779
+ type: "integer",
136780
+ description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
136781
+ },
136782
+ posts: {
136783
+ type: "array",
136784
+ items: {
136785
+ type: "ref",
136786
+ ref: "lex:app.bsky.unspecced.defs#skeletonSearchPost"
136787
+ }
136788
+ }
136789
+ }
136790
+ }
136791
+ },
136792
+ errors: [
136793
+ {
136794
+ name: "BadQueryString"
136795
+ }
136796
+ ]
136797
+ }
136798
+ }
136027
136799
  }
136028
136800
  };
136029
136801
  var schemas2 = Object.values(schemaDict2);
@@ -136063,6 +136835,7 @@ var ids = {
136063
136835
  ComAtprotoRepoPutRecord: "com.atproto.repo.putRecord",
136064
136836
  ComAtprotoRepoStrongRef: "com.atproto.repo.strongRef",
136065
136837
  ComAtprotoRepoUploadBlob: "com.atproto.repo.uploadBlob",
136838
+ ComAtprotoServerConfirmEmail: "com.atproto.server.confirmEmail",
136066
136839
  ComAtprotoServerCreateAccount: "com.atproto.server.createAccount",
136067
136840
  ComAtprotoServerCreateAppPassword: "com.atproto.server.createAppPassword",
136068
136841
  ComAtprotoServerCreateInviteCode: "com.atproto.server.createInviteCode",
@@ -136077,9 +136850,12 @@ var ids = {
136077
136850
  ComAtprotoServerListAppPasswords: "com.atproto.server.listAppPasswords",
136078
136851
  ComAtprotoServerRefreshSession: "com.atproto.server.refreshSession",
136079
136852
  ComAtprotoServerRequestAccountDelete: "com.atproto.server.requestAccountDelete",
136853
+ ComAtprotoServerRequestEmailConfirmation: "com.atproto.server.requestEmailConfirmation",
136854
+ ComAtprotoServerRequestEmailUpdate: "com.atproto.server.requestEmailUpdate",
136080
136855
  ComAtprotoServerRequestPasswordReset: "com.atproto.server.requestPasswordReset",
136081
136856
  ComAtprotoServerResetPassword: "com.atproto.server.resetPassword",
136082
136857
  ComAtprotoServerRevokeAppPassword: "com.atproto.server.revokeAppPassword",
136858
+ ComAtprotoServerUpdateEmail: "com.atproto.server.updateEmail",
136083
136859
  ComAtprotoSyncGetBlob: "com.atproto.sync.getBlob",
136084
136860
  ComAtprotoSyncGetBlocks: "com.atproto.sync.getBlocks",
136085
136861
  ComAtprotoSyncGetCheckout: "com.atproto.sync.getCheckout",
@@ -136125,6 +136901,7 @@ var ids = {
136125
136901
  AppBskyFeedLike: "app.bsky.feed.like",
136126
136902
  AppBskyFeedPost: "app.bsky.feed.post",
136127
136903
  AppBskyFeedRepost: "app.bsky.feed.repost",
136904
+ AppBskyFeedSearchPosts: "app.bsky.feed.searchPosts",
136128
136905
  AppBskyFeedThreadgate: "app.bsky.feed.threadgate",
136129
136906
  AppBskyGraphBlock: "app.bsky.graph.block",
136130
136907
  AppBskyGraphDefs: "app.bsky.graph.defs",
@@ -136150,10 +136927,12 @@ var ids = {
136150
136927
  AppBskyNotificationRegisterPush: "app.bsky.notification.registerPush",
136151
136928
  AppBskyNotificationUpdateSeen: "app.bsky.notification.updateSeen",
136152
136929
  AppBskyRichtextFacet: "app.bsky.richtext.facet",
136153
- AppBskyUnspeccedApplyLabels: "app.bsky.unspecced.applyLabels",
136930
+ AppBskyUnspeccedDefs: "app.bsky.unspecced.defs",
136154
136931
  AppBskyUnspeccedGetPopular: "app.bsky.unspecced.getPopular",
136155
136932
  AppBskyUnspeccedGetPopularFeedGenerators: "app.bsky.unspecced.getPopularFeedGenerators",
136156
- AppBskyUnspeccedGetTimelineSkeleton: "app.bsky.unspecced.getTimelineSkeleton"
136933
+ AppBskyUnspeccedGetTimelineSkeleton: "app.bsky.unspecced.getTimelineSkeleton",
136934
+ AppBskyUnspeccedSearchActorsSkeleton: "app.bsky.unspecced.searchActorsSkeleton",
136935
+ AppBskyUnspeccedSearchPostsSkeleton: "app.bsky.unspecced.searchPostsSkeleton"
136157
136936
  };
136158
136937
 
136159
136938
  // src/lexicon/util.ts
@@ -137287,7 +138066,7 @@ function getSuggestedFollowsByActor_default(server, ctx) {
137287
138066
  }
137288
138067
  async function getSkeleton(params2, ctx) {
137289
138068
  const actorsViewerFollows = ctx.db.db.selectFrom("follow").where("creator", "=", params2.viewer).select("subjectDid");
137290
- const mostLikedAccounts = await ctx.db.db.selectFrom(ctx.db.db.selectFrom("like").where("creator", "=", params2.actor).select(sql`split_part(subject, '/', 3)`.as("subjectDid")).limit(1e3).as("likes")).select("likes.subjectDid as did").select((qb) => qb.fn.count("likes.subjectDid").as("count")).where("likes.subjectDid", "not in", actorsViewerFollows).where("likes.subjectDid", "not in", [params2.actor, params2.viewer]).groupBy("likes.subjectDid").orderBy("count", "desc").limit(RESULT_LENGTH).execute();
138069
+ const mostLikedAccounts = await ctx.db.db.selectFrom(ctx.db.db.selectFrom("like").where("creator", "=", params2.actor).select(sql`split_part(subject, '/', 3)`.as("subjectDid")).orderBy("sortAt", "desc").limit(1e3).as("likes")).select("likes.subjectDid as did").select((qb) => qb.fn.count("likes.subjectDid").as("count")).where("likes.subjectDid", "not in", actorsViewerFollows).where("likes.subjectDid", "not in", [params2.actor, params2.viewer]).groupBy("likes.subjectDid").orderBy("count", "desc").limit(RESULT_LENGTH).execute();
137291
138070
  const resultDids = mostLikedAccounts.map((a) => ({ did: a.did }));
137292
138071
  if (resultDids.length < RESULT_LENGTH) {
137293
138072
  const mostPopularAccountsActorFollows = await ctx.db.db.selectFrom("follow").innerJoin("profile_agg", "follow.subjectDid", "profile_agg.did").select("follow.subjectDid as did").where("follow.creator", "=", params2.actor).where("follow.subjectDid", "!=", params2.viewer).where("follow.subjectDid", "not in", actorsViewerFollows).if(resultDids.length > 0, (qb) => qb.where("subjectDid", "not in", resultDids.map((a) => a.did))).orderBy("profile_agg.followersCount", "desc").limit(RESULT_LENGTH).execute();
@@ -137303,17 +138082,17 @@ async function getSkeleton(params2, ctx) {
137303
138082
  // src/services/util/search.ts
137304
138083
  var getUserSearchQuery = (db, opts) => {
137305
138084
  const { ref } = db.db.dynamic;
137306
- const { term, limit, cursor, includeSoftDeleted } = opts;
137307
- const distanceAccount = distance(term, ref("handle"));
137308
- let accountsQb = getMatchingAccountsQb(db, { term, includeSoftDeleted });
138085
+ const { query, limit, cursor, includeSoftDeleted } = opts;
138086
+ const distanceAccount = distance(query, ref("handle"));
138087
+ let accountsQb = getMatchingAccountsQb(db, { query, includeSoftDeleted });
137309
138088
  accountsQb = paginate(accountsQb, {
137310
138089
  limit,
137311
138090
  cursor,
137312
138091
  direction: "asc",
137313
138092
  keyset: new SearchKeyset(distanceAccount, ref("actor.did"))
137314
138093
  });
137315
- const distanceProfile = distance(term, ref("displayName"));
137316
- let profilesQb = getMatchingProfilesQb(db, { term, includeSoftDeleted });
138094
+ const distanceProfile = distance(query, ref("displayName"));
138095
+ let profilesQb = getMatchingProfilesQb(db, { query, includeSoftDeleted });
137317
138096
  profilesQb = paginate(profilesQb, {
137318
138097
  limit,
137319
138098
  cursor,
@@ -137329,9 +138108,9 @@ var getUserSearchQuery = (db, opts) => {
137329
138108
  };
137330
138109
  var getUserSearchQuerySimple = (db, opts) => {
137331
138110
  const { ref } = db.db.dynamic;
137332
- const { term, limit } = opts;
137333
- const accountsQb = getMatchingAccountsQb(db, { term }).orderBy("distance", "asc").limit(limit);
137334
- const profilesQb = getMatchingProfilesQb(db, { term }).orderBy("distance", "asc").limit(limit);
138111
+ const { query, limit } = opts;
138112
+ const accountsQb = getMatchingAccountsQb(db, { query }).orderBy("distance", "asc").limit(limit);
138113
+ const profilesQb = getMatchingProfilesQb(db, { query }).orderBy("distance", "asc").limit(limit);
137335
138114
  return paginate(combineAccountsAndProfilesQb(db, accountsQb, profilesQb), {
137336
138115
  limit,
137337
138116
  direction: "asc",
@@ -137340,24 +138119,24 @@ var getUserSearchQuerySimple = (db, opts) => {
137340
138119
  };
137341
138120
  var getMatchingAccountsQb = (db, opts) => {
137342
138121
  const { ref } = db.db.dynamic;
137343
- const { term, includeSoftDeleted } = opts;
137344
- const distanceAccount = distance(term, ref("handle"));
137345
- return db.db.selectFrom("actor").if(!includeSoftDeleted, (qb) => qb.where(notSoftDeletedClause(ref("actor")))).where("actor.handle", "is not", null).where(similar(term, ref("handle"))).select(["actor.did as did", distanceAccount.as("distance")]);
138122
+ const { query, includeSoftDeleted } = opts;
138123
+ const distanceAccount = distance(query, ref("handle"));
138124
+ return db.db.selectFrom("actor").if(!includeSoftDeleted, (qb) => qb.where(notSoftDeletedClause(ref("actor")))).where("actor.handle", "is not", null).where(similar(query, ref("handle"))).select(["actor.did as did", distanceAccount.as("distance")]);
137346
138125
  };
137347
138126
  var getMatchingProfilesQb = (db, opts) => {
137348
138127
  const { ref } = db.db.dynamic;
137349
- const { term, includeSoftDeleted } = opts;
137350
- const distanceProfile = distance(term, ref("displayName"));
137351
- return db.db.selectFrom("profile").innerJoin("actor", "actor.did", "profile.creator").if(!includeSoftDeleted, (qb) => qb.where(notSoftDeletedClause(ref("actor")))).where("actor.handle", "is not", null).where(similar(term, ref("displayName"))).select(["profile.creator as did", distanceProfile.as("distance")]);
138128
+ const { query, includeSoftDeleted } = opts;
138129
+ const distanceProfile = distance(query, ref("displayName"));
138130
+ return db.db.selectFrom("profile").innerJoin("actor", "actor.did", "profile.creator").if(!includeSoftDeleted, (qb) => qb.where(notSoftDeletedClause(ref("actor")))).where("actor.handle", "is not", null).where(similar(query, ref("displayName"))).select(["profile.creator as did", distanceProfile.as("distance")]);
137352
138131
  };
137353
138132
  var combineAccountsAndProfilesQb = (db, accountsQb, profilesQb) => {
137354
138133
  const emptyQb = db.db.selectFrom("actor").where(sql`1 = 0`).select([sql.literal("").as("did"), sql`0`.as("distance")]);
137355
138134
  const resultsQb = db.db.selectFrom(emptyQb.unionAll(sql`${accountsQb}`).unionAll(sql`${profilesQb}`).as("accounts_and_profiles")).selectAll().distinctOn("did").orderBy("did").orderBy("distance");
137356
138135
  return db.db.selectFrom(resultsQb.as("results")).innerJoin("actor", "actor.did", "results.did");
137357
138136
  };
137358
- var cleanTerm = (term) => term.trim().replace(/^@/g, "");
137359
- var distance = (term, ref) => sql`(${term} <<-> ${ref})`;
137360
- var similar = (term, ref) => sql`(${term} <% ${ref})`;
138137
+ var cleanQuery = (query) => query.trim().replace(/^@/g, "");
138138
+ var distance = (query, ref) => sql`(${query} <<-> ${ref})`;
138139
+ var similar = (query, ref) => sql`(${query} <% ${ref})`;
137361
138140
  var SearchKeyset = class extends GenericKeyset {
137362
138141
  labelResult(result) {
137363
138142
  return {
@@ -137388,18 +138167,41 @@ function searchActors_default(server, ctx) {
137388
138167
  server.app.bsky.actor.searchActors({
137389
138168
  auth: ctx.authOptionalVerifier,
137390
138169
  handler: async ({ auth, params: params2 }) => {
137391
- const { cursor, limit, term: rawTerm } = params2;
138170
+ const { cursor, limit } = params2;
137392
138171
  const requester = auth.credentials.did;
137393
- const term = cleanTerm(rawTerm || "");
138172
+ const rawQuery = params2.q ?? params2.term;
138173
+ const query = cleanQuery(rawQuery || "");
137394
138174
  const db = ctx.db.getReplica("search");
137395
- const results = term ? await getUserSearchQuery(db, { term, limit, cursor }).select("distance").selectAll("actor").execute() : [];
137396
- const keyset = new SearchKeyset(sql``, sql``);
137397
- const actors = await ctx.services.actor(db).views.profilesList(results, requester);
137398
- const filtered = actors.filter((actor) => !actor.viewer?.blocking && !actor.viewer?.blockedBy);
138175
+ let results;
138176
+ let resCursor;
138177
+ if (ctx.searchAgent) {
138178
+ const res = await ctx.searchAgent.api.app.bsky.unspecced.searchActorsSkeleton({
138179
+ q: query,
138180
+ cursor,
138181
+ limit
138182
+ });
138183
+ results = res.data.actors.map((a) => a.did);
138184
+ resCursor = res.data.cursor;
138185
+ } else {
138186
+ const res = query ? await getUserSearchQuery(db, { query, limit, cursor }).select("distance").selectAll("actor").execute() : [];
138187
+ results = res.map((a) => a.did);
138188
+ const keyset = new SearchKeyset(sql``, sql``);
138189
+ resCursor = keyset.packFromResult(res);
138190
+ }
138191
+ const actors = await ctx.services.actor(db).views.profiles(results, requester);
138192
+ const SKIP = [];
138193
+ const filtered = results.flatMap((did2) => {
138194
+ const actor = actors[did2];
138195
+ if (!actor)
138196
+ return SKIP;
138197
+ if (actor.viewer?.blocking || actor.viewer?.blockedBy)
138198
+ return SKIP;
138199
+ return actor;
138200
+ });
137399
138201
  return {
137400
138202
  encoding: "application/json",
137401
138203
  body: {
137402
- cursor: keyset.packFromResult(results),
138204
+ cursor: resCursor,
137403
138205
  actors: filtered
137404
138206
  }
137405
138207
  };
@@ -137412,15 +138214,29 @@ function searchActorsTypeahead_default(server, ctx) {
137412
138214
  server.app.bsky.actor.searchActorsTypeahead({
137413
138215
  auth: ctx.authOptionalVerifier,
137414
138216
  handler: async ({ params: params2, auth }) => {
137415
- const { limit, term: rawTerm } = params2;
138217
+ const { limit } = params2;
137416
138218
  const requester = auth.credentials.did;
137417
- const term = cleanTerm(rawTerm || "");
138219
+ const rawQuery = params2.q ?? params2.term;
138220
+ const query = cleanQuery(rawQuery || "");
137418
138221
  const db = ctx.db.getReplica("search");
137419
- const results = term ? await getUserSearchQuerySimple(db, { term, limit }).selectAll("actor").execute() : [];
138222
+ let results;
138223
+ if (ctx.searchAgent) {
138224
+ const res = await ctx.searchAgent.api.app.bsky.unspecced.searchActorsSkeleton({
138225
+ q: query,
138226
+ typeahead: true,
138227
+ limit
138228
+ });
138229
+ results = res.data.actors.map((a) => a.did);
138230
+ } else {
138231
+ const res = query ? await getUserSearchQuerySimple(db, { query, limit }).selectAll("actor").execute() : [];
138232
+ results = res.map((a) => a.did);
138233
+ }
137420
138234
  const actors = await ctx.services.actor(db).views.profilesBasic(results, requester, { omitLabels: true });
137421
138235
  const SKIP = [];
137422
- const filtered = results.flatMap((res) => {
137423
- const actor = actors[res.did];
138236
+ const filtered = results.flatMap((did2) => {
138237
+ const actor = actors[did2];
138238
+ if (!actor)
138239
+ return SKIP;
137424
138240
  if (actor.viewer?.blocking || actor.viewer?.blockedBy)
137425
138241
  return SKIP;
137426
138242
  return actor;
@@ -137516,20 +138332,6 @@ function isSelfLabels(v) {
137516
138332
  return isObj3(v) && hasProp3(v, "$type") && v.$type === "com.atproto.label.defs#selfLabels";
137517
138333
  }
137518
138334
 
137519
- // src/services/indexing/util.ts
137520
- var import_iso_datestring_validator2 = __toESM(require_dist2());
137521
- function toSimplifiedISOSafe(dateStr) {
137522
- const date = new Date(dateStr);
137523
- if (isNaN(date.getTime())) {
137524
- return new Date(0).toISOString();
137525
- }
137526
- const iso = date.toISOString();
137527
- if (!(0, import_iso_datestring_validator2.isValidISODateString)(iso)) {
137528
- return new Date(0).toISOString();
137529
- }
137530
- return iso;
137531
- }
137532
-
137533
138335
  // src/services/label/index.ts
137534
138336
  var LabelService = class {
137535
138337
  constructor(db, cache) {
@@ -138104,15 +138906,16 @@ function searchRepos_default(server, ctx) {
138104
138906
  handler: async ({ params: params2 }) => {
138105
138907
  const db = ctx.db.getPrimary();
138106
138908
  const moderationService = ctx.services.moderation(db);
138107
- const { invitedBy } = params2;
138909
+ const { invitedBy, limit, cursor } = params2;
138108
138910
  if (invitedBy) {
138109
138911
  throw new InvalidRequestError("The invitedBy parameter is unsupported");
138110
138912
  }
138111
- const { results, cursor } = await ctx.services.actor(db).getSearchResults({ ...params2, includeSoftDeleted: true });
138913
+ const query = params2.q ?? params2.term;
138914
+ const { results, cursor: resCursor } = await ctx.services.actor(db).getSearchResults({ query, limit, cursor, includeSoftDeleted: true });
138112
138915
  return {
138113
138916
  encoding: "application/json",
138114
138917
  body: {
138115
- cursor,
138918
+ cursor: resCursor,
138116
138919
  repos: await moderationService.views.repo(results)
138117
138920
  }
138118
138921
  };
@@ -138765,6 +139568,10 @@ var ServerNS2 = class {
138765
139568
  constructor(server) {
138766
139569
  this._server = server;
138767
139570
  }
139571
+ confirmEmail(cfg) {
139572
+ const nsid2 = "com.atproto.server.confirmEmail";
139573
+ return this._server.xrpc.method(nsid2, cfg);
139574
+ }
138768
139575
  createAccount(cfg) {
138769
139576
  const nsid2 = "com.atproto.server.createAccount";
138770
139577
  return this._server.xrpc.method(nsid2, cfg);
@@ -138817,6 +139624,14 @@ var ServerNS2 = class {
138817
139624
  const nsid2 = "com.atproto.server.requestAccountDelete";
138818
139625
  return this._server.xrpc.method(nsid2, cfg);
138819
139626
  }
139627
+ requestEmailConfirmation(cfg) {
139628
+ const nsid2 = "com.atproto.server.requestEmailConfirmation";
139629
+ return this._server.xrpc.method(nsid2, cfg);
139630
+ }
139631
+ requestEmailUpdate(cfg) {
139632
+ const nsid2 = "com.atproto.server.requestEmailUpdate";
139633
+ return this._server.xrpc.method(nsid2, cfg);
139634
+ }
138820
139635
  requestPasswordReset(cfg) {
138821
139636
  const nsid2 = "com.atproto.server.requestPasswordReset";
138822
139637
  return this._server.xrpc.method(nsid2, cfg);
@@ -138829,6 +139644,10 @@ var ServerNS2 = class {
138829
139644
  const nsid2 = "com.atproto.server.revokeAppPassword";
138830
139645
  return this._server.xrpc.method(nsid2, cfg);
138831
139646
  }
139647
+ updateEmail(cfg) {
139648
+ const nsid2 = "com.atproto.server.updateEmail";
139649
+ return this._server.xrpc.method(nsid2, cfg);
139650
+ }
138832
139651
  };
138833
139652
  var SyncNS2 = class {
138834
139653
  constructor(server) {
@@ -139003,6 +139822,10 @@ var FeedNS2 = class {
139003
139822
  const nsid2 = "app.bsky.feed.getTimeline";
139004
139823
  return this._server.xrpc.method(nsid2, cfg);
139005
139824
  }
139825
+ searchPosts(cfg) {
139826
+ const nsid2 = "app.bsky.feed.searchPosts";
139827
+ return this._server.xrpc.method(nsid2, cfg);
139828
+ }
139006
139829
  };
139007
139830
  var GraphNS2 = class {
139008
139831
  constructor(server) {
@@ -139091,10 +139914,6 @@ var UnspeccedNS2 = class {
139091
139914
  constructor(server) {
139092
139915
  this._server = server;
139093
139916
  }
139094
- applyLabels(cfg) {
139095
- const nsid2 = "app.bsky.unspecced.applyLabels";
139096
- return this._server.xrpc.method(nsid2, cfg);
139097
- }
139098
139917
  getPopular(cfg) {
139099
139918
  const nsid2 = "app.bsky.unspecced.getPopular";
139100
139919
  return this._server.xrpc.method(nsid2, cfg);
@@ -139107,6 +139926,14 @@ var UnspeccedNS2 = class {
139107
139926
  const nsid2 = "app.bsky.unspecced.getTimelineSkeleton";
139108
139927
  return this._server.xrpc.method(nsid2, cfg);
139109
139928
  }
139929
+ searchActorsSkeleton(cfg) {
139930
+ const nsid2 = "app.bsky.unspecced.searchActorsSkeleton";
139931
+ return this._server.xrpc.method(nsid2, cfg);
139932
+ }
139933
+ searchPostsSkeleton(cfg) {
139934
+ const nsid2 = "app.bsky.unspecced.searchPostsSkeleton";
139935
+ return this._server.xrpc.method(nsid2, cfg);
139936
+ }
139110
139937
  };
139111
139938
 
139112
139939
  // src/image/uri.ts
@@ -141675,10 +142502,10 @@ var ActorService = class {
141675
142502
  async getSearchResults({
141676
142503
  cursor,
141677
142504
  limit = 25,
141678
- term = "",
142505
+ query = "",
141679
142506
  includeSoftDeleted
141680
142507
  }) {
141681
- const searchField = term.startsWith("did:") ? "did" : "handle";
142508
+ const searchField = query.startsWith("did:") ? "did" : "handle";
141682
142509
  let paginatedBuilder;
141683
142510
  const { ref } = this.db.db.dynamic;
141684
142511
  const paginationOptions = {
@@ -141687,18 +142514,18 @@ var ActorService = class {
141687
142514
  direction: "asc"
141688
142515
  };
141689
142516
  let keyset;
141690
- if (term && searchField === "handle") {
142517
+ if (query && searchField === "handle") {
141691
142518
  keyset = new SearchKeyset(sql``, sql``);
141692
142519
  paginatedBuilder = getUserSearchQuery(this.db, {
141693
- term,
142520
+ query,
141694
142521
  includeSoftDeleted,
141695
142522
  ...paginationOptions
141696
142523
  }).select("distance");
141697
142524
  } else {
141698
142525
  paginatedBuilder = this.db.db.selectFrom("actor").select([sql`0`.as("distance")]);
141699
142526
  keyset = new ListKeyset(ref("indexedAt"), ref("did"));
141700
- if (term && searchField === "did") {
141701
- paginatedBuilder = paginatedBuilder.where("actor.did", "=", term);
142527
+ if (query && searchField === "did") {
142528
+ paginatedBuilder = paginatedBuilder.where("actor.did", "=", query);
141702
142529
  }
141703
142530
  paginatedBuilder = paginate(paginatedBuilder, {
141704
142531
  keyset,
@@ -143100,6 +143927,9 @@ var AppContext = class {
143100
143927
  get notifServer() {
143101
143928
  return this.opts.notifServer;
143102
143929
  }
143930
+ get searchAgent() {
143931
+ return this.opts.searchAgent;
143932
+ }
143103
143933
  get authVerifier() {
143104
143934
  return authVerifier(this.idResolver, { aud: this.cfg.serverDid });
143105
143935
  }
@@ -143538,6 +144368,7 @@ var ServerConfig = class {
143538
144368
  const handleResolveNameservers = process.env.HANDLE_RESOLVE_NAMESERVERS ? process.env.HANDLE_RESOLVE_NAMESERVERS.split(",") : [];
143539
144369
  const imgUriEndpoint = process.env.IMG_URI_ENDPOINT;
143540
144370
  const blobCacheLocation = process.env.BLOB_CACHE_LOC;
144371
+ const searchEndpoint = process.env.SEARCH_ENDPOINT;
143541
144372
  const dbPrimaryPostgresUrl = overrides?.dbPrimaryPostgresUrl || process.env.DB_PRIMARY_POSTGRES_URL;
143542
144373
  let dbReplicaPostgresUrls = overrides?.dbReplicaPostgresUrls;
143543
144374
  if (!dbReplicaPostgresUrls && process.env.DB_REPLICA_POSTGRES_URLS) {
@@ -143575,6 +144406,7 @@ var ServerConfig = class {
143575
144406
  handleResolveNameservers,
143576
144407
  imgUriEndpoint,
143577
144408
  blobCacheLocation,
144409
+ searchEndpoint,
143578
144410
  labelerDid,
143579
144411
  adminPassword,
143580
144412
  moderatorPassword,
@@ -143639,6 +144471,9 @@ var ServerConfig = class {
143639
144471
  get blobCacheLocation() {
143640
144472
  return this.cfg.blobCacheLocation;
143641
144473
  }
144474
+ get searchEndpoint() {
144475
+ return this.cfg.searchEndpoint;
144476
+ }
143642
144477
  get labelerDid() {
143643
144478
  return this.cfg.labelerDid;
143644
144479
  }
@@ -147004,20 +147839,7 @@ var AutoModerator = class {
147004
147839
  if (labels.length < 1)
147005
147840
  return;
147006
147841
  const labelSrvc = this.services.label(this.ctx.db);
147007
- const formatted = await labelSrvc.formatAndCreate(this.ctx.cfg.labelerDid, uri2.toString(), cid2.toString(), { create: labels });
147008
- if (this.pushAgent) {
147009
- const agent = this.pushAgent;
147010
- try {
147011
- await agent.api.app.bsky.unspecced.applyLabels({ labels: formatted });
147012
- } catch (err) {
147013
- labelerLogger.error({
147014
- err,
147015
- uri: uri2.toString(),
147016
- labels,
147017
- receiver: agent.service.toString()
147018
- }, "failed to push labels");
147019
- }
147020
- }
147842
+ await labelSrvc.formatAndCreate(this.ctx.cfg.labelerDid, uri2.toString(), cid2.toString(), { create: labels });
147021
147843
  }
147022
147844
  async processAll() {
147023
147845
  await this.ctx.backgroundQueue.processAll();
@@ -147719,6 +148541,7 @@ var BskyAppView = class {
147719
148541
  const backgroundQueue = new BackgroundQueue(db.getPrimary());
147720
148542
  const labelCache = new LabelCache(db.getPrimary());
147721
148543
  const notifServer = new NotificationServer(db.getPrimary());
148544
+ const searchAgent = config2.searchEndpoint ? new AtpAgent({ service: config2.searchEndpoint }) : void 0;
147722
148545
  const services = createServices({
147723
148546
  imgUriBuilder,
147724
148547
  imgInvalidator,
@@ -147733,6 +148556,7 @@ var BskyAppView = class {
147733
148556
  didCache,
147734
148557
  labelCache,
147735
148558
  backgroundQueue,
148559
+ searchAgent,
147736
148560
  algos,
147737
148561
  notifServer
147738
148562
  });