@atproto/bsky 0.0.238 → 0.0.240

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 (109) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/api/app/bsky/actor/searchActors.d.ts.map +1 -1
  3. package/dist/api/app/bsky/actor/searchActors.js +26 -1
  4. package/dist/api/app/bsky/actor/searchActors.js.map +1 -1
  5. package/dist/api/app/bsky/actor/searchActorsTypeahead.d.ts.map +1 -1
  6. package/dist/api/app/bsky/actor/searchActorsTypeahead.js +26 -2
  7. package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +1 -1
  8. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  9. package/dist/api/app/bsky/feed/getFeed.js +1 -0
  10. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  11. package/dist/api/app/bsky/feed/searchPosts.d.ts.map +1 -1
  12. package/dist/api/app/bsky/feed/searchPosts.js +56 -1
  13. package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
  14. package/dist/api/app/bsky/graph/searchStarterPacks.d.ts.map +1 -1
  15. package/dist/api/app/bsky/graph/searchStarterPacks.js +26 -1
  16. package/dist/api/app/bsky/graph/searchStarterPacks.js.map +1 -1
  17. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.d.ts.map +1 -1
  18. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js +27 -6
  19. package/dist/api/app/bsky/unspecced/getPopularFeedGenerators.js.map +1 -1
  20. package/dist/data-plane/server/db/migrations/20260604T224952774Z-post-embed-gallery-image.d.ts +4 -0
  21. package/dist/data-plane/server/db/migrations/20260604T224952774Z-post-embed-gallery-image.d.ts.map +1 -0
  22. package/dist/data-plane/server/db/migrations/20260604T224952774Z-post-embed-gallery-image.js +17 -0
  23. package/dist/data-plane/server/db/migrations/20260604T224952774Z-post-embed-gallery-image.js.map +1 -0
  24. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  25. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  26. package/dist/data-plane/server/db/migrations/index.js +1 -0
  27. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  28. package/dist/data-plane/server/db/tables/post-embed.d.ts +8 -0
  29. package/dist/data-plane/server/db/tables/post-embed.d.ts.map +1 -1
  30. package/dist/data-plane/server/db/tables/post-embed.js +1 -0
  31. package/dist/data-plane/server/db/tables/post-embed.js.map +1 -1
  32. package/dist/data-plane/server/indexing/index.d.ts +1 -1
  33. package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
  34. package/dist/data-plane/server/indexing/index.js +8 -0
  35. package/dist/data-plane/server/indexing/index.js.map +1 -1
  36. package/dist/data-plane/server/indexing/plugins/post.d.ts +2 -1
  37. package/dist/data-plane/server/indexing/plugins/post.d.ts.map +1 -1
  38. package/dist/data-plane/server/indexing/plugins/post.js +39 -1
  39. package/dist/data-plane/server/indexing/plugins/post.js.map +1 -1
  40. package/dist/data-plane/server/routes/feed-gens.d.ts.map +1 -1
  41. package/dist/data-plane/server/routes/feed-gens.js +21 -12
  42. package/dist/data-plane/server/routes/feed-gens.js.map +1 -1
  43. package/dist/data-plane/server/routes/feeds.d.ts.map +1 -1
  44. package/dist/data-plane/server/routes/feeds.js +7 -2
  45. package/dist/data-plane/server/routes/feeds.js.map +1 -1
  46. package/dist/data-plane/server/routes/search.d.ts.map +1 -1
  47. package/dist/data-plane/server/routes/search.js +62 -12
  48. package/dist/data-plane/server/routes/search.js.map +1 -1
  49. package/dist/feature-gates/gates.d.ts +1 -0
  50. package/dist/feature-gates/gates.d.ts.map +1 -1
  51. package/dist/feature-gates/gates.js +1 -0
  52. package/dist/feature-gates/gates.js.map +1 -1
  53. package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts +4 -0
  54. package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts.map +1 -1
  55. package/dist/lexicons/chat/bsky/convo/defs.defs.js +1 -0
  56. package/dist/lexicons/chat/bsky/convo/defs.defs.js.map +1 -1
  57. package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.d.ts +1 -1
  58. package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.d.ts.map +1 -1
  59. package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.js +1 -0
  60. package/dist/lexicons/chat/bsky/convo/unlockConvo.defs.js.map +1 -1
  61. package/dist/lexicons/chat/bsky/embed/joinLink.defs.d.ts +1 -1
  62. package/dist/lexicons/chat/bsky/embed/joinLink.defs.d.ts.map +1 -1
  63. package/dist/lexicons/chat/bsky/embed/joinLink.defs.js +5 -1
  64. package/dist/lexicons/chat/bsky/embed/joinLink.defs.js.map +1 -1
  65. package/dist/lexicons/chat/bsky/group/createGroup.defs.d.ts +4 -4
  66. package/dist/lexicons/chat/bsky/group/createGroup.defs.js +2 -2
  67. package/dist/lexicons/chat/bsky/group/createGroup.defs.js.map +1 -1
  68. package/dist/lexicons/chat/bsky/group/defs.defs.d.ts +26 -2
  69. package/dist/lexicons/chat/bsky/group/defs.defs.d.ts.map +1 -1
  70. package/dist/lexicons/chat/bsky/group/defs.defs.js +15 -2
  71. package/dist/lexicons/chat/bsky/group/defs.defs.js.map +1 -1
  72. package/dist/lexicons/chat/bsky/group/getJoinLinkPreviews.defs.d.ts +3 -3
  73. package/dist/lexicons/chat/bsky/group/getJoinLinkPreviews.defs.d.ts.map +1 -1
  74. package/dist/lexicons/chat/bsky/group/getJoinLinkPreviews.defs.js +6 -2
  75. package/dist/lexicons/chat/bsky/group/getJoinLinkPreviews.defs.js.map +1 -1
  76. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.d.ts +1 -1
  77. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.d.ts.map +1 -1
  78. package/dist/lexicons/chat/bsky/moderation/subscribeModEvents.defs.js.map +1 -1
  79. package/dist/proto/bsky_connect.d.ts +49 -2
  80. package/dist/proto/bsky_connect.d.ts.map +1 -1
  81. package/dist/proto/bsky_connect.js +49 -2
  82. package/dist/proto/bsky_connect.js.map +1 -1
  83. package/dist/proto/bsky_pb.d.ts +482 -0
  84. package/dist/proto/bsky_pb.d.ts.map +1 -1
  85. package/dist/proto/bsky_pb.js +608 -0
  86. package/dist/proto/bsky_pb.js.map +1 -1
  87. package/package.json +2 -2
  88. package/proto/bsky.proto +166 -2
  89. package/src/api/app/bsky/actor/searchActors.ts +35 -1
  90. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +35 -2
  91. package/src/api/app/bsky/feed/getFeed.ts +1 -0
  92. package/src/api/app/bsky/feed/searchPosts.ts +60 -1
  93. package/src/api/app/bsky/graph/searchStarterPacks.ts +35 -1
  94. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +28 -6
  95. package/src/data-plane/server/db/migrations/20260604T224952774Z-post-embed-gallery-image.ts +19 -0
  96. package/src/data-plane/server/db/migrations/index.ts +1 -0
  97. package/src/data-plane/server/db/tables/post-embed.ts +9 -0
  98. package/src/data-plane/server/indexing/index.ts +8 -0
  99. package/src/data-plane/server/indexing/plugins/post.ts +49 -1
  100. package/src/data-plane/server/routes/feed-gens.ts +33 -14
  101. package/src/data-plane/server/routes/feeds.ts +17 -4
  102. package/src/data-plane/server/routes/search.ts +81 -13
  103. package/src/feature-gates/gates.ts +1 -0
  104. package/tests/data-plane/handle-invalidation.test.ts +2 -1
  105. package/tests/views/author-feed.test.ts +47 -0
  106. package/tsconfig.build.json +2 -2
  107. package/tsconfig.build.tsbuildinfo +1 -1
  108. package/tsconfig.json +2 -2
  109. package/tsconfig.tests.json +2 -2
@@ -85,6 +85,72 @@ proto3.util.setEnumType(FeedType, "bsky.FeedType", [
85
85
  { no: 3, name: "FEED_TYPE_POSTS_WITH_MEDIA" },
86
86
  { no: 4, name: "FEED_TYPE_POSTS_WITH_VIDEO" },
87
87
  ]);
88
+ /**
89
+ * @generated from enum bsky.SearchSortOrder
90
+ */
91
+ export var SearchSortOrder;
92
+ (function (SearchSortOrder) {
93
+ /**
94
+ * @generated from enum value: SEARCH_SORT_ORDER_UNSPECIFIED = 0;
95
+ */
96
+ SearchSortOrder[SearchSortOrder["UNSPECIFIED"] = 0] = "UNSPECIFIED";
97
+ /**
98
+ * @generated from enum value: SEARCH_SORT_ORDER_RECENT = 1;
99
+ */
100
+ SearchSortOrder[SearchSortOrder["RECENT"] = 1] = "RECENT";
101
+ /**
102
+ * @generated from enum value: SEARCH_SORT_ORDER_TOP = 2;
103
+ */
104
+ SearchSortOrder[SearchSortOrder["TOP"] = 2] = "TOP";
105
+ })(SearchSortOrder || (SearchSortOrder = {}));
106
+ // Retrieve enum metadata with: proto3.getEnumType(SearchSortOrder)
107
+ proto3.util.setEnumType(SearchSortOrder, "bsky.SearchSortOrder", [
108
+ { no: 0, name: "SEARCH_SORT_ORDER_UNSPECIFIED" },
109
+ { no: 1, name: "SEARCH_SORT_ORDER_RECENT" },
110
+ { no: 2, name: "SEARCH_SORT_ORDER_TOP" },
111
+ ]);
112
+ /**
113
+ * @generated from enum bsky.SearchQueryLanguage
114
+ */
115
+ export var SearchQueryLanguage;
116
+ (function (SearchQueryLanguage) {
117
+ /**
118
+ * @generated from enum value: SEARCH_QUERY_LANGUAGE_UNSPECIFIED = 0;
119
+ */
120
+ SearchQueryLanguage[SearchQueryLanguage["UNSPECIFIED"] = 0] = "UNSPECIFIED";
121
+ /**
122
+ * Japanese (Kuromoji)
123
+ *
124
+ * @generated from enum value: SEARCH_QUERY_LANGUAGE_JA = 1;
125
+ */
126
+ SearchQueryLanguage[SearchQueryLanguage["JA"] = 1] = "JA";
127
+ /**
128
+ * Chinese (smartcn)
129
+ *
130
+ * @generated from enum value: SEARCH_QUERY_LANGUAGE_ZH = 2;
131
+ */
132
+ SearchQueryLanguage[SearchQueryLanguage["ZH"] = 2] = "ZH";
133
+ /**
134
+ * Korean (nori)
135
+ *
136
+ * @generated from enum value: SEARCH_QUERY_LANGUAGE_KO = 3;
137
+ */
138
+ SearchQueryLanguage[SearchQueryLanguage["KO"] = 3] = "KO";
139
+ /**
140
+ * Thai
141
+ *
142
+ * @generated from enum value: SEARCH_QUERY_LANGUAGE_TH = 4;
143
+ */
144
+ SearchQueryLanguage[SearchQueryLanguage["TH"] = 4] = "TH";
145
+ })(SearchQueryLanguage || (SearchQueryLanguage = {}));
146
+ // Retrieve enum metadata with: proto3.getEnumType(SearchQueryLanguage)
147
+ proto3.util.setEnumType(SearchQueryLanguage, "bsky.SearchQueryLanguage", [
148
+ { no: 0, name: "SEARCH_QUERY_LANGUAGE_UNSPECIFIED" },
149
+ { no: 1, name: "SEARCH_QUERY_LANGUAGE_JA" },
150
+ { no: 2, name: "SEARCH_QUERY_LANGUAGE_ZH" },
151
+ { no: 3, name: "SEARCH_QUERY_LANGUAGE_KO" },
152
+ { no: 4, name: "SEARCH_QUERY_LANGUAGE_TH" },
153
+ ]);
88
154
  /**
89
155
  * @generated from enum bsky.SitemapPageType
90
156
  */
@@ -6489,6 +6555,548 @@ export class SearchStarterPacksResponse extends Message {
6489
6555
  return proto3.util.equals(SearchStarterPacksResponse, a, b);
6490
6556
  }
6491
6557
  }
6558
+ /**
6559
+ * @generated from message bsky.SearchParams
6560
+ */
6561
+ export class SearchParams extends Message {
6562
+ constructor(data) {
6563
+ super();
6564
+ /**
6565
+ * @generated from field: string query = 1;
6566
+ */
6567
+ this.query = "";
6568
+ /**
6569
+ * @generated from field: string viewer = 2;
6570
+ */
6571
+ this.viewer = "";
6572
+ /**
6573
+ * Pagination
6574
+ *
6575
+ * @generated from field: int32 limit = 3;
6576
+ */
6577
+ this.limit = 0;
6578
+ /**
6579
+ * @generated from field: string cursor = 4;
6580
+ */
6581
+ this.cursor = "";
6582
+ proto3.util.initPartial(data, this);
6583
+ }
6584
+ static { this.runtime = proto3; }
6585
+ static { this.typeName = "bsky.SearchParams"; }
6586
+ static { this.fields = proto3.util.newFieldList(() => [
6587
+ { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6588
+ { no: 2, name: "viewer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6589
+ { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
6590
+ { no: 4, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6591
+ ]); }
6592
+ static fromBinary(bytes, options) {
6593
+ return new SearchParams().fromBinary(bytes, options);
6594
+ }
6595
+ static fromJson(jsonValue, options) {
6596
+ return new SearchParams().fromJson(jsonValue, options);
6597
+ }
6598
+ static fromJsonString(jsonString, options) {
6599
+ return new SearchParams().fromJsonString(jsonString, options);
6600
+ }
6601
+ static equals(a, b) {
6602
+ return proto3.util.equals(SearchParams, a, b);
6603
+ }
6604
+ }
6605
+ /**
6606
+ * SearchRecordResult represents a generic result hit corresponding to a record.
6607
+ *
6608
+ * @generated from message bsky.SearchRecordResult
6609
+ */
6610
+ export class SearchRecordResult extends Message {
6611
+ constructor(data) {
6612
+ super();
6613
+ /**
6614
+ * AT URI of the record, e.g. "at://did:example:alice/app.bsky.feed.post/12345"
6615
+ *
6616
+ * @generated from field: string uri = 1;
6617
+ */
6618
+ this.uri = "";
6619
+ /**
6620
+ * @generated from field: double score = 2;
6621
+ */
6622
+ this.score = 0;
6623
+ proto3.util.initPartial(data, this);
6624
+ }
6625
+ static { this.runtime = proto3; }
6626
+ static { this.typeName = "bsky.SearchRecordResult"; }
6627
+ static { this.fields = proto3.util.newFieldList(() => [
6628
+ { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6629
+ { no: 2, name: "score", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
6630
+ ]); }
6631
+ static fromBinary(bytes, options) {
6632
+ return new SearchRecordResult().fromBinary(bytes, options);
6633
+ }
6634
+ static fromJson(jsonValue, options) {
6635
+ return new SearchRecordResult().fromJson(jsonValue, options);
6636
+ }
6637
+ static fromJsonString(jsonString, options) {
6638
+ return new SearchRecordResult().fromJsonString(jsonString, options);
6639
+ }
6640
+ static equals(a, b) {
6641
+ return proto3.util.equals(SearchRecordResult, a, b);
6642
+ }
6643
+ }
6644
+ /**
6645
+ * @generated from message bsky.SearchActorResult
6646
+ */
6647
+ export class SearchActorResult extends Message {
6648
+ constructor(data) {
6649
+ super();
6650
+ /**
6651
+ * @generated from field: string did = 1;
6652
+ */
6653
+ this.did = "";
6654
+ /**
6655
+ * @generated from field: double score = 2;
6656
+ */
6657
+ this.score = 0;
6658
+ proto3.util.initPartial(data, this);
6659
+ }
6660
+ static { this.runtime = proto3; }
6661
+ static { this.typeName = "bsky.SearchActorResult"; }
6662
+ static { this.fields = proto3.util.newFieldList(() => [
6663
+ { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6664
+ { no: 2, name: "score", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
6665
+ ]); }
6666
+ static fromBinary(bytes, options) {
6667
+ return new SearchActorResult().fromBinary(bytes, options);
6668
+ }
6669
+ static fromJson(jsonValue, options) {
6670
+ return new SearchActorResult().fromJson(jsonValue, options);
6671
+ }
6672
+ static fromJsonString(jsonString, options) {
6673
+ return new SearchActorResult().fromJsonString(jsonString, options);
6674
+ }
6675
+ static equals(a, b) {
6676
+ return proto3.util.equals(SearchActorResult, a, b);
6677
+ }
6678
+ }
6679
+ /**
6680
+ * @generated from message bsky.PageInfo
6681
+ */
6682
+ export class PageInfo extends Message {
6683
+ constructor(data) {
6684
+ super();
6685
+ /**
6686
+ * @generated from field: string cursor = 1;
6687
+ */
6688
+ this.cursor = "";
6689
+ /**
6690
+ * @generated from field: int64 hits_total = 2;
6691
+ */
6692
+ this.hitsTotal = protoInt64.zero;
6693
+ proto3.util.initPartial(data, this);
6694
+ }
6695
+ static { this.runtime = proto3; }
6696
+ static { this.typeName = "bsky.PageInfo"; }
6697
+ static { this.fields = proto3.util.newFieldList(() => [
6698
+ { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6699
+ { no: 2, name: "hits_total", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
6700
+ ]); }
6701
+ static fromBinary(bytes, options) {
6702
+ return new PageInfo().fromBinary(bytes, options);
6703
+ }
6704
+ static fromJson(jsonValue, options) {
6705
+ return new PageInfo().fromJson(jsonValue, options);
6706
+ }
6707
+ static fromJsonString(jsonString, options) {
6708
+ return new PageInfo().fromJsonString(jsonString, options);
6709
+ }
6710
+ static equals(a, b) {
6711
+ return proto3.util.equals(PageInfo, a, b);
6712
+ }
6713
+ }
6714
+ /**
6715
+ * PostFilters are logical filters that should be used to match or exclude posts.
6716
+ * Each repeated field is applied as OR within the field with all fields applied together as AND.
6717
+ * example:
6718
+ * filters: {
6719
+ * authors: [alice, bob]
6720
+ * mentions: [carol]
6721
+ * }
6722
+ * => (author is alice OR bob) AND (mentions carol)
6723
+ *
6724
+ *
6725
+ * @generated from message bsky.PostsFilters
6726
+ */
6727
+ export class PostsFilters extends Message {
6728
+ constructor(data) {
6729
+ super();
6730
+ /**
6731
+ * Author/mention filters
6732
+ *
6733
+ * @generated from field: repeated string authors = 1;
6734
+ */
6735
+ this.authors = [];
6736
+ /**
6737
+ * @generated from field: repeated string mentions = 2;
6738
+ */
6739
+ this.mentions = [];
6740
+ /**
6741
+ * Content filters
6742
+ *
6743
+ * @generated from field: repeated string domains = 3;
6744
+ */
6745
+ this.domains = [];
6746
+ /**
6747
+ * @generated from field: repeated string urls = 4;
6748
+ */
6749
+ this.urls = [];
6750
+ /**
6751
+ * @generated from field: repeated string embed_uris = 5;
6752
+ */
6753
+ this.embedUris = [];
6754
+ /**
6755
+ * @generated from field: repeated string hashtags = 6;
6756
+ */
6757
+ this.hashtags = [];
6758
+ proto3.util.initPartial(data, this);
6759
+ }
6760
+ static { this.runtime = proto3; }
6761
+ static { this.typeName = "bsky.PostsFilters"; }
6762
+ static { this.fields = proto3.util.newFieldList(() => [
6763
+ { no: 1, name: "authors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
6764
+ { no: 2, name: "mentions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
6765
+ { no: 3, name: "domains", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
6766
+ { no: 4, name: "urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
6767
+ { no: 5, name: "embed_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
6768
+ { no: 6, name: "hashtags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
6769
+ ]); }
6770
+ static fromBinary(bytes, options) {
6771
+ return new PostsFilters().fromBinary(bytes, options);
6772
+ }
6773
+ static fromJson(jsonValue, options) {
6774
+ return new PostsFilters().fromJson(jsonValue, options);
6775
+ }
6776
+ static fromJsonString(jsonString, options) {
6777
+ return new PostsFilters().fromJsonString(jsonString, options);
6778
+ }
6779
+ static equals(a, b) {
6780
+ return proto3.util.equals(PostsFilters, a, b);
6781
+ }
6782
+ }
6783
+ /**
6784
+ * @generated from message bsky.SearchPostsV2Request
6785
+ */
6786
+ export class SearchPostsV2Request extends Message {
6787
+ constructor(data) {
6788
+ super();
6789
+ /**
6790
+ * @generated from field: bsky.SearchSortOrder sort = 2;
6791
+ */
6792
+ this.sort = SearchSortOrder.UNSPECIFIED;
6793
+ proto3.util.initPartial(data, this);
6794
+ }
6795
+ static { this.runtime = proto3; }
6796
+ static { this.typeName = "bsky.SearchPostsV2Request"; }
6797
+ static { this.fields = proto3.util.newFieldList(() => [
6798
+ { no: 1, name: "params", kind: "message", T: SearchParams },
6799
+ { no: 2, name: "sort", kind: "enum", T: proto3.getEnumType(SearchSortOrder) },
6800
+ { no: 3, name: "filters", kind: "message", T: PostsFilters },
6801
+ { no: 4, name: "exclude", kind: "message", T: PostsFilters },
6802
+ { no: 5, name: "since", kind: "message", T: Timestamp, opt: true },
6803
+ { no: 6, name: "until", kind: "message", T: Timestamp, opt: true },
6804
+ { no: 7, name: "all_time", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
6805
+ { no: 8, name: "language", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6806
+ { no: 9, name: "has_media", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
6807
+ { no: 10, name: "has_video", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
6808
+ { no: 11, name: "reply_parent_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6809
+ { no: 12, name: "thread_root_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6810
+ { no: 13, name: "exclude_replies", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
6811
+ { no: 14, name: "replies_only", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
6812
+ { no: 15, name: "following", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
6813
+ { no: 16, name: "query_language", kind: "enum", T: proto3.getEnumType(SearchQueryLanguage), opt: true },
6814
+ ]); }
6815
+ static fromBinary(bytes, options) {
6816
+ return new SearchPostsV2Request().fromBinary(bytes, options);
6817
+ }
6818
+ static fromJson(jsonValue, options) {
6819
+ return new SearchPostsV2Request().fromJson(jsonValue, options);
6820
+ }
6821
+ static fromJsonString(jsonString, options) {
6822
+ return new SearchPostsV2Request().fromJsonString(jsonString, options);
6823
+ }
6824
+ static equals(a, b) {
6825
+ return proto3.util.equals(SearchPostsV2Request, a, b);
6826
+ }
6827
+ }
6828
+ /**
6829
+ * @generated from message bsky.SearchPostsV2Response
6830
+ */
6831
+ export class SearchPostsV2Response extends Message {
6832
+ constructor(data) {
6833
+ super();
6834
+ /**
6835
+ * @generated from field: repeated bsky.SearchRecordResult posts = 1;
6836
+ */
6837
+ this.posts = [];
6838
+ proto3.util.initPartial(data, this);
6839
+ }
6840
+ static { this.runtime = proto3; }
6841
+ static { this.typeName = "bsky.SearchPostsV2Response"; }
6842
+ static { this.fields = proto3.util.newFieldList(() => [
6843
+ { no: 1, name: "posts", kind: "message", T: SearchRecordResult, repeated: true },
6844
+ { no: 2, name: "page_info", kind: "message", T: PageInfo },
6845
+ ]); }
6846
+ static fromBinary(bytes, options) {
6847
+ return new SearchPostsV2Response().fromBinary(bytes, options);
6848
+ }
6849
+ static fromJson(jsonValue, options) {
6850
+ return new SearchPostsV2Response().fromJson(jsonValue, options);
6851
+ }
6852
+ static fromJsonString(jsonString, options) {
6853
+ return new SearchPostsV2Response().fromJsonString(jsonString, options);
6854
+ }
6855
+ static equals(a, b) {
6856
+ return proto3.util.equals(SearchPostsV2Response, a, b);
6857
+ }
6858
+ }
6859
+ /**
6860
+ * @generated from message bsky.SearchActorsV2Request
6861
+ */
6862
+ export class SearchActorsV2Request extends Message {
6863
+ constructor(data) {
6864
+ super();
6865
+ proto3.util.initPartial(data, this);
6866
+ }
6867
+ static { this.runtime = proto3; }
6868
+ static { this.typeName = "bsky.SearchActorsV2Request"; }
6869
+ static { this.fields = proto3.util.newFieldList(() => [
6870
+ { no: 1, name: "params", kind: "message", T: SearchParams },
6871
+ ]); }
6872
+ static fromBinary(bytes, options) {
6873
+ return new SearchActorsV2Request().fromBinary(bytes, options);
6874
+ }
6875
+ static fromJson(jsonValue, options) {
6876
+ return new SearchActorsV2Request().fromJson(jsonValue, options);
6877
+ }
6878
+ static fromJsonString(jsonString, options) {
6879
+ return new SearchActorsV2Request().fromJsonString(jsonString, options);
6880
+ }
6881
+ static equals(a, b) {
6882
+ return proto3.util.equals(SearchActorsV2Request, a, b);
6883
+ }
6884
+ }
6885
+ /**
6886
+ * @generated from message bsky.SearchActorsV2Response
6887
+ */
6888
+ export class SearchActorsV2Response extends Message {
6889
+ constructor(data) {
6890
+ super();
6891
+ /**
6892
+ * @generated from field: repeated bsky.SearchActorResult actors = 1;
6893
+ */
6894
+ this.actors = [];
6895
+ proto3.util.initPartial(data, this);
6896
+ }
6897
+ static { this.runtime = proto3; }
6898
+ static { this.typeName = "bsky.SearchActorsV2Response"; }
6899
+ static { this.fields = proto3.util.newFieldList(() => [
6900
+ { no: 1, name: "actors", kind: "message", T: SearchActorResult, repeated: true },
6901
+ { no: 2, name: "page_info", kind: "message", T: PageInfo },
6902
+ ]); }
6903
+ static fromBinary(bytes, options) {
6904
+ return new SearchActorsV2Response().fromBinary(bytes, options);
6905
+ }
6906
+ static fromJson(jsonValue, options) {
6907
+ return new SearchActorsV2Response().fromJson(jsonValue, options);
6908
+ }
6909
+ static fromJsonString(jsonString, options) {
6910
+ return new SearchActorsV2Response().fromJsonString(jsonString, options);
6911
+ }
6912
+ static equals(a, b) {
6913
+ return proto3.util.equals(SearchActorsV2Response, a, b);
6914
+ }
6915
+ }
6916
+ /**
6917
+ * @generated from message bsky.SearchActorsTypeaheadRequest
6918
+ */
6919
+ export class SearchActorsTypeaheadRequest extends Message {
6920
+ constructor(data) {
6921
+ super();
6922
+ /**
6923
+ * @generated from field: string viewer = 1;
6924
+ */
6925
+ this.viewer = "";
6926
+ /**
6927
+ * @generated from field: string query = 2;
6928
+ */
6929
+ this.query = "";
6930
+ /**
6931
+ * @generated from field: int32 limit = 3;
6932
+ */
6933
+ this.limit = 0;
6934
+ proto3.util.initPartial(data, this);
6935
+ }
6936
+ static { this.runtime = proto3; }
6937
+ static { this.typeName = "bsky.SearchActorsTypeaheadRequest"; }
6938
+ static { this.fields = proto3.util.newFieldList(() => [
6939
+ { no: 1, name: "viewer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6940
+ { no: 2, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6941
+ { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
6942
+ ]); }
6943
+ static fromBinary(bytes, options) {
6944
+ return new SearchActorsTypeaheadRequest().fromBinary(bytes, options);
6945
+ }
6946
+ static fromJson(jsonValue, options) {
6947
+ return new SearchActorsTypeaheadRequest().fromJson(jsonValue, options);
6948
+ }
6949
+ static fromJsonString(jsonString, options) {
6950
+ return new SearchActorsTypeaheadRequest().fromJsonString(jsonString, options);
6951
+ }
6952
+ static equals(a, b) {
6953
+ return proto3.util.equals(SearchActorsTypeaheadRequest, a, b);
6954
+ }
6955
+ }
6956
+ /**
6957
+ * @generated from message bsky.SearchActorsTypeaheadResponse
6958
+ */
6959
+ export class SearchActorsTypeaheadResponse extends Message {
6960
+ constructor(data) {
6961
+ super();
6962
+ /**
6963
+ * @generated from field: repeated bsky.SearchActorResult actors = 1;
6964
+ */
6965
+ this.actors = [];
6966
+ proto3.util.initPartial(data, this);
6967
+ }
6968
+ static { this.runtime = proto3; }
6969
+ static { this.typeName = "bsky.SearchActorsTypeaheadResponse"; }
6970
+ static { this.fields = proto3.util.newFieldList(() => [
6971
+ { no: 1, name: "actors", kind: "message", T: SearchActorResult, repeated: true },
6972
+ ]); }
6973
+ static fromBinary(bytes, options) {
6974
+ return new SearchActorsTypeaheadResponse().fromBinary(bytes, options);
6975
+ }
6976
+ static fromJson(jsonValue, options) {
6977
+ return new SearchActorsTypeaheadResponse().fromJson(jsonValue, options);
6978
+ }
6979
+ static fromJsonString(jsonString, options) {
6980
+ return new SearchActorsTypeaheadResponse().fromJsonString(jsonString, options);
6981
+ }
6982
+ static equals(a, b) {
6983
+ return proto3.util.equals(SearchActorsTypeaheadResponse, a, b);
6984
+ }
6985
+ }
6986
+ /**
6987
+ * @generated from message bsky.SearchFeedGeneratorsV2Request
6988
+ */
6989
+ export class SearchFeedGeneratorsV2Request extends Message {
6990
+ constructor(data) {
6991
+ super();
6992
+ proto3.util.initPartial(data, this);
6993
+ }
6994
+ static { this.runtime = proto3; }
6995
+ static { this.typeName = "bsky.SearchFeedGeneratorsV2Request"; }
6996
+ static { this.fields = proto3.util.newFieldList(() => [
6997
+ { no: 1, name: "params", kind: "message", T: SearchParams },
6998
+ ]); }
6999
+ static fromBinary(bytes, options) {
7000
+ return new SearchFeedGeneratorsV2Request().fromBinary(bytes, options);
7001
+ }
7002
+ static fromJson(jsonValue, options) {
7003
+ return new SearchFeedGeneratorsV2Request().fromJson(jsonValue, options);
7004
+ }
7005
+ static fromJsonString(jsonString, options) {
7006
+ return new SearchFeedGeneratorsV2Request().fromJsonString(jsonString, options);
7007
+ }
7008
+ static equals(a, b) {
7009
+ return proto3.util.equals(SearchFeedGeneratorsV2Request, a, b);
7010
+ }
7011
+ }
7012
+ /**
7013
+ * @generated from message bsky.SearchFeedGeneratorsV2Response
7014
+ */
7015
+ export class SearchFeedGeneratorsV2Response extends Message {
7016
+ constructor(data) {
7017
+ super();
7018
+ /**
7019
+ * @generated from field: repeated bsky.SearchRecordResult feed_generators = 1;
7020
+ */
7021
+ this.feedGenerators = [];
7022
+ proto3.util.initPartial(data, this);
7023
+ }
7024
+ static { this.runtime = proto3; }
7025
+ static { this.typeName = "bsky.SearchFeedGeneratorsV2Response"; }
7026
+ static { this.fields = proto3.util.newFieldList(() => [
7027
+ { no: 1, name: "feed_generators", kind: "message", T: SearchRecordResult, repeated: true },
7028
+ { no: 2, name: "page_info", kind: "message", T: PageInfo },
7029
+ ]); }
7030
+ static fromBinary(bytes, options) {
7031
+ return new SearchFeedGeneratorsV2Response().fromBinary(bytes, options);
7032
+ }
7033
+ static fromJson(jsonValue, options) {
7034
+ return new SearchFeedGeneratorsV2Response().fromJson(jsonValue, options);
7035
+ }
7036
+ static fromJsonString(jsonString, options) {
7037
+ return new SearchFeedGeneratorsV2Response().fromJsonString(jsonString, options);
7038
+ }
7039
+ static equals(a, b) {
7040
+ return proto3.util.equals(SearchFeedGeneratorsV2Response, a, b);
7041
+ }
7042
+ }
7043
+ /**
7044
+ * @generated from message bsky.SearchStarterPacksV2Request
7045
+ */
7046
+ export class SearchStarterPacksV2Request extends Message {
7047
+ constructor(data) {
7048
+ super();
7049
+ proto3.util.initPartial(data, this);
7050
+ }
7051
+ static { this.runtime = proto3; }
7052
+ static { this.typeName = "bsky.SearchStarterPacksV2Request"; }
7053
+ static { this.fields = proto3.util.newFieldList(() => [
7054
+ { no: 1, name: "params", kind: "message", T: SearchParams },
7055
+ ]); }
7056
+ static fromBinary(bytes, options) {
7057
+ return new SearchStarterPacksV2Request().fromBinary(bytes, options);
7058
+ }
7059
+ static fromJson(jsonValue, options) {
7060
+ return new SearchStarterPacksV2Request().fromJson(jsonValue, options);
7061
+ }
7062
+ static fromJsonString(jsonString, options) {
7063
+ return new SearchStarterPacksV2Request().fromJsonString(jsonString, options);
7064
+ }
7065
+ static equals(a, b) {
7066
+ return proto3.util.equals(SearchStarterPacksV2Request, a, b);
7067
+ }
7068
+ }
7069
+ /**
7070
+ * @generated from message bsky.SearchStarterPacksV2Response
7071
+ */
7072
+ export class SearchStarterPacksV2Response extends Message {
7073
+ constructor(data) {
7074
+ super();
7075
+ /**
7076
+ * @generated from field: repeated bsky.SearchRecordResult starter_packs = 1;
7077
+ */
7078
+ this.starterPacks = [];
7079
+ proto3.util.initPartial(data, this);
7080
+ }
7081
+ static { this.runtime = proto3; }
7082
+ static { this.typeName = "bsky.SearchStarterPacksV2Response"; }
7083
+ static { this.fields = proto3.util.newFieldList(() => [
7084
+ { no: 1, name: "starter_packs", kind: "message", T: SearchRecordResult, repeated: true },
7085
+ { no: 2, name: "page_info", kind: "message", T: PageInfo },
7086
+ ]); }
7087
+ static fromBinary(bytes, options) {
7088
+ return new SearchStarterPacksV2Response().fromBinary(bytes, options);
7089
+ }
7090
+ static fromJson(jsonValue, options) {
7091
+ return new SearchStarterPacksV2Response().fromJson(jsonValue, options);
7092
+ }
7093
+ static fromJsonString(jsonString, options) {
7094
+ return new SearchStarterPacksV2Response().fromJsonString(jsonString, options);
7095
+ }
7096
+ static equals(a, b) {
7097
+ return proto3.util.equals(SearchStarterPacksV2Response, a, b);
7098
+ }
7099
+ }
6492
7100
  /**
6493
7101
  * - Return DIDs of suggested follows for a user, excluding anyone they already follow
6494
7102
  * - `getSuggestions`, `getSuggestedFollowsByActor`