@atproto/bsky 0.0.44 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/api/app/bsky/actor/searchActors.js +1 -0
- package/dist/api/app/bsky/actor/searchActors.js.map +1 -1
- package/dist/api/app/bsky/actor/searchActorsTypeahead.js +1 -0
- package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +1 -1
- package/dist/api/app/bsky/feed/searchPosts.js +10 -0
- package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/data-plane/server/db/pagination.d.ts +5 -5
- package/dist/data-plane/server/db/pagination.d.ts.map +1 -1
- package/dist/data-plane/server/routes/records.d.ts.map +1 -1
- package/dist/data-plane/server/util.d.ts.map +1 -1
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +8 -1
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/hydration/util.d.ts.map +1 -1
- package/dist/lexicon/index.d.ts +16 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +19 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +230 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +243 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/record.d.ts +3 -0
- package/dist/lexicon/types/app/bsky/embed/record.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/record.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.js +35 -1
- package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/generator.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/feed/generator.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/generator.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts +18 -0
- package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/sendInteractions.d.ts +40 -0
- package/dist/lexicon/types/app/bsky/feed/sendInteractions.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/feed/sendInteractions.js +3 -0
- package/dist/lexicon/types/app/bsky/feed/sendInteractions.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +20 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts.map +1 -1
- package/dist/util/debug.d.ts.map +1 -1
- package/dist/views/index.d.ts +2 -2
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +29 -22
- package/dist/views/index.js.map +1 -1
- package/package.json +4 -4
- package/src/api/app/bsky/actor/searchActors.ts +1 -0
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +1 -0
- package/src/api/app/bsky/feed/searchPosts.ts +10 -0
- package/src/hydration/hydrator.ts +9 -1
- package/src/lexicon/index.ts +26 -0
- package/src/lexicon/lexicons.ts +269 -0
- package/src/lexicon/types/app/bsky/embed/record.ts +3 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +63 -0
- package/src/lexicon/types/app/bsky/feed/generator.ts +2 -0
- package/src/lexicon/types/app/bsky/feed/searchPosts.ts +18 -0
- package/src/lexicon/types/app/bsky/feed/sendInteractions.ts +49 -0
- package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +2 -0
- package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +20 -0
- package/src/views/index.ts +27 -30
- package/tests/__snapshots__/feed-generation.test.ts.snap +15 -0
- package/tests/data-plane/__snapshots__/indexing.test.ts.snap +6 -0
- package/tests/views/__snapshots__/actor-search.test.ts.snap +2 -2
- package/tests/views/__snapshots__/author-feed.test.ts.snap +27 -0
- package/tests/views/__snapshots__/block-lists.test.ts.snap +3 -0
- package/tests/views/__snapshots__/blocks.test.ts.snap +3 -0
- package/tests/views/__snapshots__/list-feed.test.ts.snap +6 -0
- package/tests/views/__snapshots__/posts.test.ts.snap +9 -0
- package/tests/views/__snapshots__/timeline.test.ts.snap +259 -0
- package/tests/views/actor-search.test.ts +3 -3
- package/tests/views/blocks.test.ts +11 -2
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -4413,6 +4413,15 @@ exports.schemaDict = {
|
|
|
4413
4413
|
ref: 'lex:com.atproto.label.defs#label',
|
|
4414
4414
|
},
|
|
4415
4415
|
},
|
|
4416
|
+
replyCount: {
|
|
4417
|
+
type: 'integer',
|
|
4418
|
+
},
|
|
4419
|
+
repostCount: {
|
|
4420
|
+
type: 'integer',
|
|
4421
|
+
},
|
|
4422
|
+
likeCount: {
|
|
4423
|
+
type: 'integer',
|
|
4424
|
+
},
|
|
4416
4425
|
embeds: {
|
|
4417
4426
|
type: 'array',
|
|
4418
4427
|
items: {
|
|
@@ -4598,6 +4607,11 @@ exports.schemaDict = {
|
|
|
4598
4607
|
type: 'union',
|
|
4599
4608
|
refs: ['lex:app.bsky.feed.defs#reasonRepost'],
|
|
4600
4609
|
},
|
|
4610
|
+
feedContext: {
|
|
4611
|
+
type: 'string',
|
|
4612
|
+
description: 'Context provided by feed generator that may be passed back alongside interactions.',
|
|
4613
|
+
maxLength: 2000,
|
|
4614
|
+
},
|
|
4601
4615
|
},
|
|
4602
4616
|
},
|
|
4603
4617
|
replyRef: {
|
|
@@ -4754,6 +4768,9 @@ exports.schemaDict = {
|
|
|
4754
4768
|
type: 'integer',
|
|
4755
4769
|
minimum: 0,
|
|
4756
4770
|
},
|
|
4771
|
+
acceptsInteractions: {
|
|
4772
|
+
type: 'boolean',
|
|
4773
|
+
},
|
|
4757
4774
|
labels: {
|
|
4758
4775
|
type: 'array',
|
|
4759
4776
|
items: {
|
|
@@ -4792,6 +4809,11 @@ exports.schemaDict = {
|
|
|
4792
4809
|
type: 'union',
|
|
4793
4810
|
refs: ['lex:app.bsky.feed.defs#skeletonReasonRepost'],
|
|
4794
4811
|
},
|
|
4812
|
+
feedContext: {
|
|
4813
|
+
type: 'string',
|
|
4814
|
+
description: 'Context that will be passed through to client and may be passed to feed generator back alongside interactions.',
|
|
4815
|
+
maxLength: 2000,
|
|
4816
|
+
},
|
|
4795
4817
|
},
|
|
4796
4818
|
},
|
|
4797
4819
|
skeletonReasonRepost: {
|
|
@@ -4827,6 +4849,85 @@ exports.schemaDict = {
|
|
|
4827
4849
|
},
|
|
4828
4850
|
},
|
|
4829
4851
|
},
|
|
4852
|
+
interaction: {
|
|
4853
|
+
type: 'object',
|
|
4854
|
+
properties: {
|
|
4855
|
+
item: {
|
|
4856
|
+
type: 'string',
|
|
4857
|
+
format: 'at-uri',
|
|
4858
|
+
},
|
|
4859
|
+
event: {
|
|
4860
|
+
type: 'string',
|
|
4861
|
+
knownValues: [
|
|
4862
|
+
'app.bsky.feed.defs#requestLess',
|
|
4863
|
+
'app.bsky.feed.defs#requestMore',
|
|
4864
|
+
'app.bsky.feed.defs#clickthroughItem',
|
|
4865
|
+
'app.bsky.feed.defs#clickthroughAuthor',
|
|
4866
|
+
'app.bsky.feed.defs#clickthroughReposter',
|
|
4867
|
+
'app.bsky.feed.defs#clickthroughEmbed',
|
|
4868
|
+
'app.bsky.feed.defs#interactionSeen',
|
|
4869
|
+
'app.bsky.feed.defs#interactionLike',
|
|
4870
|
+
'app.bsky.feed.defs#interactionRepost',
|
|
4871
|
+
'app.bsky.feed.defs#interactionReply',
|
|
4872
|
+
'app.bsky.feed.defs#interactionQuote',
|
|
4873
|
+
'app.bsky.feed.defs#interactionShare',
|
|
4874
|
+
],
|
|
4875
|
+
},
|
|
4876
|
+
feedContext: {
|
|
4877
|
+
type: 'string',
|
|
4878
|
+
description: 'Context on a feed item that was orginally supplied by the feed generator on getFeedSkeleton.',
|
|
4879
|
+
maxLength: 2000,
|
|
4880
|
+
},
|
|
4881
|
+
},
|
|
4882
|
+
},
|
|
4883
|
+
requestLess: {
|
|
4884
|
+
type: 'token',
|
|
4885
|
+
description: 'Request that less content like the given feed item be shown in the feed',
|
|
4886
|
+
},
|
|
4887
|
+
requestMore: {
|
|
4888
|
+
type: 'token',
|
|
4889
|
+
description: 'Request that more content like the given feed item be shown in the feed',
|
|
4890
|
+
},
|
|
4891
|
+
clickthroughItem: {
|
|
4892
|
+
type: 'token',
|
|
4893
|
+
description: 'User clicked through to the feed item',
|
|
4894
|
+
},
|
|
4895
|
+
clickthroughAuthor: {
|
|
4896
|
+
type: 'token',
|
|
4897
|
+
description: 'User clicked through to the author of the feed item',
|
|
4898
|
+
},
|
|
4899
|
+
clickthroughReposter: {
|
|
4900
|
+
type: 'token',
|
|
4901
|
+
description: 'User clicked through to the reposter of the feed item',
|
|
4902
|
+
},
|
|
4903
|
+
clickthroughEmbed: {
|
|
4904
|
+
type: 'token',
|
|
4905
|
+
description: 'User clicked through to the embedded content of the feed item',
|
|
4906
|
+
},
|
|
4907
|
+
interactionSeen: {
|
|
4908
|
+
type: 'token',
|
|
4909
|
+
description: 'Feed item was seen by user',
|
|
4910
|
+
},
|
|
4911
|
+
interactionLike: {
|
|
4912
|
+
type: 'token',
|
|
4913
|
+
description: 'User liked the feed item',
|
|
4914
|
+
},
|
|
4915
|
+
interactionRepost: {
|
|
4916
|
+
type: 'token',
|
|
4917
|
+
description: 'User reposted the feed item',
|
|
4918
|
+
},
|
|
4919
|
+
interactionReply: {
|
|
4920
|
+
type: 'token',
|
|
4921
|
+
description: 'User replied to the feed item',
|
|
4922
|
+
},
|
|
4923
|
+
interactionQuote: {
|
|
4924
|
+
type: 'token',
|
|
4925
|
+
description: 'User quoted the feed item',
|
|
4926
|
+
},
|
|
4927
|
+
interactionShare: {
|
|
4928
|
+
type: 'token',
|
|
4929
|
+
description: 'User shared the feed item',
|
|
4930
|
+
},
|
|
4830
4931
|
},
|
|
4831
4932
|
},
|
|
4832
4933
|
AppBskyFeedDescribeFeedGenerator: {
|
|
@@ -4922,6 +5023,10 @@ exports.schemaDict = {
|
|
|
4922
5023
|
accept: ['image/png', 'image/jpeg'],
|
|
4923
5024
|
maxSize: 1000000,
|
|
4924
5025
|
},
|
|
5026
|
+
acceptsInteractions: {
|
|
5027
|
+
type: 'boolean',
|
|
5028
|
+
description: 'Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions',
|
|
5029
|
+
},
|
|
4925
5030
|
labels: {
|
|
4926
5031
|
type: 'union',
|
|
4927
5032
|
description: 'Self-label values',
|
|
@@ -5872,6 +5977,53 @@ exports.schemaDict = {
|
|
|
5872
5977
|
type: 'string',
|
|
5873
5978
|
description: 'Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.',
|
|
5874
5979
|
},
|
|
5980
|
+
sort: {
|
|
5981
|
+
type: 'string',
|
|
5982
|
+
knownValues: ['top', 'latest'],
|
|
5983
|
+
default: 'latest',
|
|
5984
|
+
description: 'Specifies the ranking order of results.',
|
|
5985
|
+
},
|
|
5986
|
+
since: {
|
|
5987
|
+
type: 'string',
|
|
5988
|
+
description: "Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).",
|
|
5989
|
+
},
|
|
5990
|
+
until: {
|
|
5991
|
+
type: 'string',
|
|
5992
|
+
description: "Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).",
|
|
5993
|
+
},
|
|
5994
|
+
mentions: {
|
|
5995
|
+
type: 'string',
|
|
5996
|
+
format: 'at-identifier',
|
|
5997
|
+
description: 'Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.',
|
|
5998
|
+
},
|
|
5999
|
+
author: {
|
|
6000
|
+
type: 'string',
|
|
6001
|
+
format: 'at-identifier',
|
|
6002
|
+
description: 'Filter to posts by the given account. Handles are resolved to DID before query-time.',
|
|
6003
|
+
},
|
|
6004
|
+
lang: {
|
|
6005
|
+
type: 'string',
|
|
6006
|
+
format: 'language',
|
|
6007
|
+
description: 'Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.',
|
|
6008
|
+
},
|
|
6009
|
+
domain: {
|
|
6010
|
+
type: 'string',
|
|
6011
|
+
description: 'Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.',
|
|
6012
|
+
},
|
|
6013
|
+
url: {
|
|
6014
|
+
type: 'string',
|
|
6015
|
+
format: 'uri',
|
|
6016
|
+
description: 'Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.',
|
|
6017
|
+
},
|
|
6018
|
+
tag: {
|
|
6019
|
+
type: 'array',
|
|
6020
|
+
items: {
|
|
6021
|
+
type: 'string',
|
|
6022
|
+
maxLength: 640,
|
|
6023
|
+
maxGraphemes: 64,
|
|
6024
|
+
},
|
|
6025
|
+
description: "Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching.",
|
|
6026
|
+
},
|
|
5875
6027
|
limit: {
|
|
5876
6028
|
type: 'integer',
|
|
5877
6029
|
minimum: 1,
|
|
@@ -5915,6 +6067,39 @@ exports.schemaDict = {
|
|
|
5915
6067
|
},
|
|
5916
6068
|
},
|
|
5917
6069
|
},
|
|
6070
|
+
AppBskyFeedSendInteractions: {
|
|
6071
|
+
lexicon: 1,
|
|
6072
|
+
id: 'app.bsky.feed.sendInteractions',
|
|
6073
|
+
defs: {
|
|
6074
|
+
main: {
|
|
6075
|
+
type: 'procedure',
|
|
6076
|
+
description: 'Send information about interactions with feed items back to the feed generator that served them.',
|
|
6077
|
+
input: {
|
|
6078
|
+
encoding: 'application/json',
|
|
6079
|
+
schema: {
|
|
6080
|
+
type: 'object',
|
|
6081
|
+
required: ['interactions'],
|
|
6082
|
+
properties: {
|
|
6083
|
+
interactions: {
|
|
6084
|
+
type: 'array',
|
|
6085
|
+
items: {
|
|
6086
|
+
type: 'ref',
|
|
6087
|
+
ref: 'lex:app.bsky.feed.defs#interaction',
|
|
6088
|
+
},
|
|
6089
|
+
},
|
|
6090
|
+
},
|
|
6091
|
+
},
|
|
6092
|
+
},
|
|
6093
|
+
output: {
|
|
6094
|
+
encoding: 'application/json',
|
|
6095
|
+
schema: {
|
|
6096
|
+
type: 'object',
|
|
6097
|
+
properties: {},
|
|
6098
|
+
},
|
|
6099
|
+
},
|
|
6100
|
+
},
|
|
6101
|
+
},
|
|
6102
|
+
},
|
|
5918
6103
|
AppBskyFeedThreadgate: {
|
|
5919
6104
|
lexicon: 1,
|
|
5920
6105
|
id: 'app.bsky.feed.threadgate',
|
|
@@ -7481,6 +7666,11 @@ exports.schemaDict = {
|
|
|
7481
7666
|
type: 'string',
|
|
7482
7667
|
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.',
|
|
7483
7668
|
},
|
|
7669
|
+
viewer: {
|
|
7670
|
+
type: 'string',
|
|
7671
|
+
format: 'did',
|
|
7672
|
+
description: 'DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.',
|
|
7673
|
+
},
|
|
7484
7674
|
typeahead: {
|
|
7485
7675
|
type: 'boolean',
|
|
7486
7676
|
description: "If true, acts as fast/simple 'typeahead' query.",
|
|
@@ -7543,6 +7733,58 @@ exports.schemaDict = {
|
|
|
7543
7733
|
type: 'string',
|
|
7544
7734
|
description: 'Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.',
|
|
7545
7735
|
},
|
|
7736
|
+
sort: {
|
|
7737
|
+
type: 'string',
|
|
7738
|
+
knownValues: ['top', 'latest'],
|
|
7739
|
+
default: 'latest',
|
|
7740
|
+
description: 'Specifies the ranking order of results.',
|
|
7741
|
+
},
|
|
7742
|
+
since: {
|
|
7743
|
+
type: 'string',
|
|
7744
|
+
description: "Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).",
|
|
7745
|
+
},
|
|
7746
|
+
until: {
|
|
7747
|
+
type: 'string',
|
|
7748
|
+
description: "Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).",
|
|
7749
|
+
},
|
|
7750
|
+
mentions: {
|
|
7751
|
+
type: 'string',
|
|
7752
|
+
format: 'at-identifier',
|
|
7753
|
+
description: 'Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.',
|
|
7754
|
+
},
|
|
7755
|
+
author: {
|
|
7756
|
+
type: 'string',
|
|
7757
|
+
format: 'at-identifier',
|
|
7758
|
+
description: 'Filter to posts by the given account. Handles are resolved to DID before query-time.',
|
|
7759
|
+
},
|
|
7760
|
+
lang: {
|
|
7761
|
+
type: 'string',
|
|
7762
|
+
format: 'language',
|
|
7763
|
+
description: 'Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.',
|
|
7764
|
+
},
|
|
7765
|
+
domain: {
|
|
7766
|
+
type: 'string',
|
|
7767
|
+
description: 'Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.',
|
|
7768
|
+
},
|
|
7769
|
+
url: {
|
|
7770
|
+
type: 'string',
|
|
7771
|
+
format: 'uri',
|
|
7772
|
+
description: 'Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.',
|
|
7773
|
+
},
|
|
7774
|
+
tag: {
|
|
7775
|
+
type: 'array',
|
|
7776
|
+
items: {
|
|
7777
|
+
type: 'string',
|
|
7778
|
+
maxLength: 640,
|
|
7779
|
+
maxGraphemes: 64,
|
|
7780
|
+
},
|
|
7781
|
+
description: "Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching.",
|
|
7782
|
+
},
|
|
7783
|
+
viewer: {
|
|
7784
|
+
type: 'string',
|
|
7785
|
+
format: 'did',
|
|
7786
|
+
description: "DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries.",
|
|
7787
|
+
},
|
|
7546
7788
|
limit: {
|
|
7547
7789
|
type: 'integer',
|
|
7548
7790
|
minimum: 1,
|
|
@@ -7701,6 +7943,7 @@ exports.ids = {
|
|
|
7701
7943
|
AppBskyFeedPost: 'app.bsky.feed.post',
|
|
7702
7944
|
AppBskyFeedRepost: 'app.bsky.feed.repost',
|
|
7703
7945
|
AppBskyFeedSearchPosts: 'app.bsky.feed.searchPosts',
|
|
7946
|
+
AppBskyFeedSendInteractions: 'app.bsky.feed.sendInteractions',
|
|
7704
7947
|
AppBskyFeedThreadgate: 'app.bsky.feed.threadgate',
|
|
7705
7948
|
AppBskyGraphBlock: 'app.bsky.graph.block',
|
|
7706
7949
|
AppBskyGraphDefs: 'app.bsky.graph.defs',
|