@atproto/bsky 0.0.75 → 0.0.77

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 (268) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/api/app/bsky/actor/getProfiles.d.ts.map +1 -1
  3. package/dist/api/app/bsky/actor/getProfiles.js +9 -1
  4. package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
  5. package/dist/api/app/bsky/actor/searchActorsTypeahead.js +10 -2
  6. package/dist/api/app/bsky/actor/searchActorsTypeahead.js.map +1 -1
  7. package/dist/api/app/bsky/feed/getActorLikes.js +2 -2
  8. package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
  9. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  10. package/dist/api/app/bsky/feed/getFeed.js +8 -1
  11. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  12. package/dist/api/app/bsky/feed/getLikes.js +6 -6
  13. package/dist/api/app/bsky/feed/getLikes.js.map +1 -1
  14. package/dist/api/app/bsky/feed/getPosts.d.ts.map +1 -1
  15. package/dist/api/app/bsky/feed/getPosts.js +12 -5
  16. package/dist/api/app/bsky/feed/getPosts.js.map +1 -1
  17. package/dist/api/app/bsky/feed/getQuotes.d.ts +4 -0
  18. package/dist/api/app/bsky/feed/getQuotes.d.ts.map +1 -0
  19. package/dist/api/app/bsky/feed/getQuotes.js +67 -0
  20. package/dist/api/app/bsky/feed/getQuotes.js.map +1 -0
  21. package/dist/api/app/bsky/feed/getRepostedBy.js +6 -6
  22. package/dist/api/app/bsky/feed/getRepostedBy.js.map +1 -1
  23. package/dist/api/app/bsky/feed/searchPosts.js +4 -4
  24. package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
  25. package/dist/api/app/bsky/graph/getFollowers.js +8 -8
  26. package/dist/api/app/bsky/graph/getFollowers.js.map +1 -1
  27. package/dist/api/app/bsky/graph/getList.d.ts.map +1 -1
  28. package/dist/api/app/bsky/graph/getList.js +32 -2
  29. package/dist/api/app/bsky/graph/getList.js.map +1 -1
  30. package/dist/api/app/bsky/notification/listNotifications.d.ts.map +1 -1
  31. package/dist/api/app/bsky/notification/listNotifications.js +29 -8
  32. package/dist/api/app/bsky/notification/listNotifications.js.map +1 -1
  33. package/dist/api/index.d.ts.map +1 -1
  34. package/dist/api/index.js +2 -0
  35. package/dist/api/index.js.map +1 -1
  36. package/dist/auth-verifier.d.ts +8 -3
  37. package/dist/auth-verifier.d.ts.map +1 -1
  38. package/dist/auth-verifier.js +43 -29
  39. package/dist/auth-verifier.js.map +1 -1
  40. package/dist/data-plane/server/db/database-schema.d.ts +4 -2
  41. package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
  42. package/dist/data-plane/server/db/migrations/20240723T220700077Z-quotes-post-aggs.d.ts +4 -0
  43. package/dist/data-plane/server/db/migrations/20240723T220700077Z-quotes-post-aggs.d.ts.map +1 -0
  44. package/dist/data-plane/server/db/migrations/20240723T220700077Z-quotes-post-aggs.js +15 -0
  45. package/dist/data-plane/server/db/migrations/20240723T220700077Z-quotes-post-aggs.js.map +1 -0
  46. package/dist/data-plane/server/db/migrations/20240723T220703655Z-quotes.d.ts +4 -0
  47. package/dist/data-plane/server/db/migrations/20240723T220703655Z-quotes.d.ts.map +1 -0
  48. package/dist/data-plane/server/db/migrations/20240723T220703655Z-quotes.js +30 -0
  49. package/dist/data-plane/server/db/migrations/20240723T220703655Z-quotes.js.map +1 -0
  50. package/dist/data-plane/server/db/migrations/20240801T193939827Z-post-gate.d.ts +4 -0
  51. package/dist/data-plane/server/db/migrations/20240801T193939827Z-post-gate.d.ts.map +1 -0
  52. package/dist/data-plane/server/db/migrations/20240801T193939827Z-post-gate.js +20 -0
  53. package/dist/data-plane/server/db/migrations/20240801T193939827Z-post-gate.js.map +1 -0
  54. package/dist/data-plane/server/db/migrations/20240808T224251220Z-post-gate-flags.d.ts +4 -0
  55. package/dist/data-plane/server/db/migrations/20240808T224251220Z-post-gate-flags.d.ts.map +1 -0
  56. package/dist/data-plane/server/db/migrations/20240808T224251220Z-post-gate-flags.js +28 -0
  57. package/dist/data-plane/server/db/migrations/20240808T224251220Z-post-gate-flags.js.map +1 -0
  58. package/dist/data-plane/server/db/migrations/index.d.ts +4 -0
  59. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  60. package/dist/data-plane/server/db/migrations/index.js +5 -1
  61. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  62. package/dist/data-plane/server/db/tables/post-agg.d.ts +1 -0
  63. package/dist/data-plane/server/db/tables/post-agg.d.ts.map +1 -1
  64. package/dist/data-plane/server/db/tables/post-gate.d.ts +14 -0
  65. package/dist/data-plane/server/db/tables/post-gate.d.ts.map +1 -0
  66. package/dist/data-plane/server/db/tables/post-gate.js +4 -0
  67. package/dist/data-plane/server/db/tables/post-gate.js.map +1 -0
  68. package/dist/data-plane/server/db/tables/post.d.ts +3 -0
  69. package/dist/data-plane/server/db/tables/post.d.ts.map +1 -1
  70. package/dist/data-plane/server/db/tables/quote.d.ts +16 -0
  71. package/dist/data-plane/server/db/tables/quote.d.ts.map +1 -0
  72. package/dist/data-plane/server/db/tables/quote.js +4 -0
  73. package/dist/data-plane/server/db/tables/quote.js.map +1 -0
  74. package/dist/data-plane/server/indexing/index.d.ts +2 -0
  75. package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
  76. package/dist/data-plane/server/indexing/index.js +6 -0
  77. package/dist/data-plane/server/indexing/index.js.map +1 -1
  78. package/dist/data-plane/server/indexing/plugins/post-gate.d.ts +10 -0
  79. package/dist/data-plane/server/indexing/plugins/post-gate.d.ts.map +1 -0
  80. package/dist/data-plane/server/indexing/plugins/post-gate.js +101 -0
  81. package/dist/data-plane/server/indexing/plugins/post-gate.js.map +1 -0
  82. package/dist/data-plane/server/indexing/plugins/post.d.ts +2 -0
  83. package/dist/data-plane/server/indexing/plugins/post.d.ts.map +1 -1
  84. package/dist/data-plane/server/indexing/plugins/post.js +122 -15
  85. package/dist/data-plane/server/indexing/plugins/post.js.map +1 -1
  86. package/dist/data-plane/server/indexing/plugins/thread-gate.d.ts.map +1 -1
  87. package/dist/data-plane/server/indexing/plugins/thread-gate.js +12 -0
  88. package/dist/data-plane/server/indexing/plugins/thread-gate.js.map +1 -1
  89. package/dist/data-plane/server/routes/index.d.ts.map +1 -1
  90. package/dist/data-plane/server/routes/index.js +2 -0
  91. package/dist/data-plane/server/routes/index.js.map +1 -1
  92. package/dist/data-plane/server/routes/interactions.d.ts.map +1 -1
  93. package/dist/data-plane/server/routes/interactions.js +2 -1
  94. package/dist/data-plane/server/routes/interactions.js.map +1 -1
  95. package/dist/data-plane/server/routes/quotes.d.ts +6 -0
  96. package/dist/data-plane/server/routes/quotes.d.ts.map +1 -0
  97. package/dist/data-plane/server/routes/quotes.js +27 -0
  98. package/dist/data-plane/server/routes/quotes.js.map +1 -0
  99. package/dist/data-plane/server/routes/records.d.ts.map +1 -1
  100. package/dist/data-plane/server/routes/records.js +11 -1
  101. package/dist/data-plane/server/routes/records.js.map +1 -1
  102. package/dist/data-plane/server/util.d.ts +6 -7
  103. package/dist/data-plane/server/util.d.ts.map +1 -1
  104. package/dist/data-plane/server/util.js +1 -9
  105. package/dist/data-plane/server/util.js.map +1 -1
  106. package/dist/hydration/feed.d.ts +10 -0
  107. package/dist/hydration/feed.d.ts.map +1 -1
  108. package/dist/hydration/feed.js +31 -7
  109. package/dist/hydration/feed.js.map +1 -1
  110. package/dist/hydration/hydrator.d.ts +5 -2
  111. package/dist/hydration/hydrator.d.ts.map +1 -1
  112. package/dist/hydration/hydrator.js +102 -38
  113. package/dist/hydration/hydrator.js.map +1 -1
  114. package/dist/hydration/util.d.ts +0 -1
  115. package/dist/hydration/util.d.ts.map +1 -1
  116. package/dist/hydration/util.js +1 -5
  117. package/dist/hydration/util.js.map +1 -1
  118. package/dist/lexicon/index.d.ts +2 -0
  119. package/dist/lexicon/index.d.ts.map +1 -1
  120. package/dist/lexicon/index.js +4 -0
  121. package/dist/lexicon/index.js.map +1 -1
  122. package/dist/lexicon/lexicons.d.ts +141 -0
  123. package/dist/lexicon/lexicons.d.ts.map +1 -1
  124. package/dist/lexicon/lexicons.js +142 -0
  125. package/dist/lexicon/lexicons.js.map +1 -1
  126. package/dist/lexicon/types/app/bsky/embed/record.d.ts +8 -1
  127. package/dist/lexicon/types/app/bsky/embed/record.d.ts.map +1 -1
  128. package/dist/lexicon/types/app/bsky/embed/record.js +11 -1
  129. package/dist/lexicon/types/app/bsky/embed/record.js.map +1 -1
  130. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +2 -0
  131. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  132. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  133. package/dist/lexicon/types/app/bsky/feed/getQuotes.d.ts +44 -0
  134. package/dist/lexicon/types/app/bsky/feed/getQuotes.d.ts.map +1 -0
  135. package/dist/lexicon/types/app/bsky/feed/getQuotes.js +3 -0
  136. package/dist/lexicon/types/app/bsky/feed/getQuotes.js.map +1 -0
  137. package/dist/lexicon/types/app/bsky/feed/postgate.d.ts +25 -0
  138. package/dist/lexicon/types/app/bsky/feed/postgate.d.ts.map +1 -0
  139. package/dist/lexicon/types/app/bsky/feed/postgate.js +27 -0
  140. package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -0
  141. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +2 -0
  142. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
  143. package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
  144. package/dist/proto/bsky_connect.d.ts +21 -1
  145. package/dist/proto/bsky_connect.d.ts.map +1 -1
  146. package/dist/proto/bsky_connect.js +20 -0
  147. package/dist/proto/bsky_connect.js.map +1 -1
  148. package/dist/proto/bsky_pb.d.ts +96 -0
  149. package/dist/proto/bsky_pb.d.ts.map +1 -1
  150. package/dist/proto/bsky_pb.js +306 -4
  151. package/dist/proto/bsky_pb.js.map +1 -1
  152. package/dist/util/uris.d.ts +12 -0
  153. package/dist/util/uris.d.ts.map +1 -0
  154. package/dist/util/uris.js +34 -0
  155. package/dist/util/uris.js.map +1 -0
  156. package/dist/views/index.d.ts +8 -2
  157. package/dist/views/index.d.ts.map +1 -1
  158. package/dist/views/index.js +83 -39
  159. package/dist/views/index.js.map +1 -1
  160. package/dist/views/types.d.ts +1 -1
  161. package/dist/views/types.d.ts.map +1 -1
  162. package/dist/views/types.js.map +1 -1
  163. package/dist/views/util.d.ts +11 -1
  164. package/dist/views/util.d.ts.map +1 -1
  165. package/dist/views/util.js +19 -8
  166. package/dist/views/util.js.map +1 -1
  167. package/package.json +6 -6
  168. package/proto/bsky.proto +33 -0
  169. package/src/api/app/bsky/actor/getProfiles.ts +10 -1
  170. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +9 -4
  171. package/src/api/app/bsky/feed/getActorLikes.ts +1 -1
  172. package/src/api/app/bsky/feed/getFeed.ts +12 -1
  173. package/src/api/app/bsky/feed/getLikes.ts +1 -1
  174. package/src/api/app/bsky/feed/getPosts.ts +10 -2
  175. package/src/api/app/bsky/feed/getQuotes.ts +105 -0
  176. package/src/api/app/bsky/feed/getRepostedBy.ts +1 -1
  177. package/src/api/app/bsky/feed/searchPosts.ts +1 -1
  178. package/src/api/app/bsky/graph/getFollowers.ts +1 -1
  179. package/src/api/app/bsky/graph/getList.ts +47 -4
  180. package/src/api/app/bsky/notification/listNotifications.ts +32 -6
  181. package/src/api/index.ts +2 -0
  182. package/src/auth-verifier.ts +78 -51
  183. package/src/data-plane/server/db/database-schema.ts +7 -3
  184. package/src/data-plane/server/db/migrations/20240723T220700077Z-quotes-post-aggs.ts +12 -0
  185. package/src/data-plane/server/db/migrations/20240723T220703655Z-quotes.ts +28 -0
  186. package/src/data-plane/server/db/migrations/20240801T193939827Z-post-gate.ts +17 -0
  187. package/src/data-plane/server/db/migrations/20240808T224251220Z-post-gate-flags.ts +25 -0
  188. package/src/data-plane/server/db/migrations/index.ts +4 -0
  189. package/src/data-plane/server/db/tables/post-agg.ts +1 -0
  190. package/src/data-plane/server/db/tables/post-gate.ts +12 -0
  191. package/src/data-plane/server/db/tables/post.ts +3 -0
  192. package/src/data-plane/server/db/tables/quote.ts +15 -0
  193. package/src/data-plane/server/indexing/index.ts +7 -0
  194. package/src/data-plane/server/indexing/plugins/post-gate.ts +104 -0
  195. package/src/data-plane/server/indexing/plugins/post.ts +151 -16
  196. package/src/data-plane/server/indexing/plugins/thread-gate.ts +12 -0
  197. package/src/data-plane/server/routes/index.ts +2 -0
  198. package/src/data-plane/server/routes/interactions.ts +2 -1
  199. package/src/data-plane/server/routes/quotes.ts +32 -0
  200. package/src/data-plane/server/routes/records.ts +11 -1
  201. package/src/data-plane/server/util.ts +0 -8
  202. package/src/hydration/feed.ts +58 -12
  203. package/src/hydration/hydrator.ts +112 -24
  204. package/src/hydration/util.ts +0 -4
  205. package/src/lexicon/index.ts +12 -0
  206. package/src/lexicon/lexicons.ts +145 -0
  207. package/src/lexicon/types/app/bsky/embed/record.ts +19 -0
  208. package/src/lexicon/types/app/bsky/feed/defs.ts +2 -0
  209. package/src/lexicon/types/app/bsky/feed/getQuotes.ts +54 -0
  210. package/src/lexicon/types/app/bsky/feed/postgate.ts +47 -0
  211. package/src/lexicon/types/app/bsky/feed/threadgate.ts +2 -0
  212. package/src/proto/bsky_connect.ts +24 -0
  213. package/src/proto/bsky_pb.ts +289 -0
  214. package/src/util/uris.ts +31 -0
  215. package/src/views/index.ts +90 -35
  216. package/src/views/types.ts +1 -0
  217. package/src/views/util.ts +37 -7
  218. package/tests/__snapshots__/feed-generation.test.ts.snap +37 -0
  219. package/tests/admin/admin-auth.test.ts +15 -8
  220. package/tests/auth.test.ts +2 -1
  221. package/tests/data-plane/__snapshots__/indexing.test.ts.snap +18 -0
  222. package/tests/data-plane/handle-invalidation.test.ts +31 -5
  223. package/tests/data-plane/indexing.test.ts +139 -23
  224. package/tests/data-plane/thread-mutes.test.ts +41 -9
  225. package/tests/feed-generation.test.ts +150 -32
  226. package/tests/postgates.test.ts +186 -0
  227. package/tests/seed/feed-hidden-replies.ts +62 -0
  228. package/tests/seed/postgates.ts +56 -0
  229. package/tests/server.test.ts +1 -1
  230. package/tests/views/__snapshots__/author-feed.test.ts.snap +56 -0
  231. package/tests/views/__snapshots__/block-lists.test.ts.snap +6 -0
  232. package/tests/views/__snapshots__/blocks.test.ts.snap +10 -0
  233. package/tests/views/__snapshots__/list-feed.test.ts.snap +22 -0
  234. package/tests/views/__snapshots__/lists.test.ts.snap +145 -26
  235. package/tests/views/__snapshots__/mute-lists.test.ts.snap +8 -0
  236. package/tests/views/__snapshots__/mutes.test.ts.snap +6 -0
  237. package/tests/views/__snapshots__/posts.test.ts.snap +12 -0
  238. package/tests/views/__snapshots__/quotes.test.ts.snap +399 -0
  239. package/tests/views/__snapshots__/starter-packs.test.ts.snap +245 -4
  240. package/tests/views/__snapshots__/thread.test.ts.snap +50 -0
  241. package/tests/views/__snapshots__/timeline.test.ts.snap +170 -0
  242. package/tests/views/account-deactivation.test.ts +8 -2
  243. package/tests/views/actor-likes.test.ts +27 -6
  244. package/tests/views/actor-search.test.ts +5 -1
  245. package/tests/views/author-feed.test.ts +76 -21
  246. package/tests/views/block-lists.test.ts +201 -40
  247. package/tests/views/blocks.test.ts +245 -46
  248. package/tests/views/feed-hidden-replies.test.ts +246 -0
  249. package/tests/views/feed-view-post.test.ts +501 -0
  250. package/tests/views/follows.test.ts +133 -22
  251. package/tests/views/known-followers.test.ts +43 -7
  252. package/tests/views/labeler-service.test.ts +36 -6
  253. package/tests/views/likes.test.ts +8 -5
  254. package/tests/views/list-feed.test.ts +25 -4
  255. package/tests/views/lists.test.ts +73 -31
  256. package/tests/views/mute-lists.test.ts +101 -29
  257. package/tests/views/mutes.test.ts +77 -17
  258. package/tests/views/notifications.test.ts +141 -25
  259. package/tests/views/posts.test.ts +13 -2
  260. package/tests/views/profile.test.ts +37 -11
  261. package/tests/views/quotes.test.ts +105 -0
  262. package/tests/views/reposts.test.ts +31 -5
  263. package/tests/views/starter-packs.test.ts +83 -3
  264. package/tests/views/suggested-follows.test.ts +31 -5
  265. package/tests/views/suggestions.test.ts +37 -6
  266. package/tests/views/thread.test.ts +121 -20
  267. package/tests/views/threadgating.test.ts +128 -22
  268. package/tests/views/timeline.test.ts +67 -14
@@ -0,0 +1,399 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`pds quote views decrements quote count when a quote is deleted 1`] = `
4
+ Object {
5
+ "posts": Array [
6
+ Object {
7
+ "author": Object {
8
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
9
+ "createdAt": "1970-01-01T00:00:00.000Z",
10
+ "did": "user(0)",
11
+ "displayName": "bobby",
12
+ "handle": "bob.test",
13
+ "labels": Array [],
14
+ "viewer": Object {
15
+ "blockedBy": false,
16
+ "muted": false,
17
+ },
18
+ },
19
+ "cid": "cids(0)",
20
+ "embed": Object {
21
+ "$type": "app.bsky.embed.images#view",
22
+ "images": Array [
23
+ Object {
24
+ "alt": "../dev-env/src/seed/img/key-landscape-small.jpg",
25
+ "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(1)/cids(2)@jpeg",
26
+ "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(1)/cids(2)@jpeg",
27
+ },
28
+ ],
29
+ },
30
+ "indexedAt": "1970-01-01T00:00:00.000Z",
31
+ "labels": Array [
32
+ Object {
33
+ "cid": "cids(0)",
34
+ "cts": "1970-01-01T00:00:00.000Z",
35
+ "src": "did:example:labeler",
36
+ "uri": "record(0)",
37
+ "val": "test-label",
38
+ },
39
+ Object {
40
+ "cid": "cids(0)",
41
+ "cts": "1970-01-01T00:00:00.000Z",
42
+ "src": "did:example:labeler",
43
+ "uri": "record(0)",
44
+ "val": "test-label-2",
45
+ },
46
+ ],
47
+ "likeCount": 0,
48
+ "quoteCount": 0,
49
+ "record": Object {
50
+ "$type": "app.bsky.feed.post",
51
+ "createdAt": "1970-01-01T00:00:00.000Z",
52
+ "embed": Object {
53
+ "$type": "app.bsky.embed.images",
54
+ "images": Array [
55
+ Object {
56
+ "alt": "../dev-env/src/seed/img/key-landscape-small.jpg",
57
+ "image": Object {
58
+ "$type": "blob",
59
+ "mimeType": "image/jpeg",
60
+ "ref": Object {
61
+ "$link": "cids(2)",
62
+ },
63
+ "size": 4114,
64
+ },
65
+ },
66
+ ],
67
+ },
68
+ "reply": Object {
69
+ "parent": Object {
70
+ "cid": "cids(3)",
71
+ "uri": "record(1)",
72
+ },
73
+ "root": Object {
74
+ "cid": "cids(3)",
75
+ "uri": "record(1)",
76
+ },
77
+ },
78
+ "text": "hear that label_me label_me_2",
79
+ },
80
+ "replyCount": 1,
81
+ "repostCount": 0,
82
+ "uri": "record(0)",
83
+ "viewer": Object {
84
+ "embeddingDisabled": false,
85
+ "threadMuted": false,
86
+ },
87
+ },
88
+ ],
89
+ }
90
+ `;
91
+
92
+ exports[`pds quote views does not return post when quote is deleted 1`] = `
93
+ Object {
94
+ "cursor": "0000000000000__bafycid",
95
+ "posts": Array [
96
+ Object {
97
+ "author": Object {
98
+ "did": "user(0)",
99
+ "handle": "eve.test",
100
+ "labels": Array [],
101
+ "viewer": Object {
102
+ "blockedBy": false,
103
+ "muted": false,
104
+ },
105
+ },
106
+ "cid": "cids(0)",
107
+ "embed": Object {
108
+ "$type": "app.bsky.embed.record#view",
109
+ "record": Object {
110
+ "$type": "app.bsky.embed.record#viewRecord",
111
+ "author": Object {
112
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(2)@jpeg",
113
+ "createdAt": "1970-01-01T00:00:00.000Z",
114
+ "did": "user(1)",
115
+ "displayName": "ali",
116
+ "handle": "alice.test",
117
+ "labels": Array [
118
+ Object {
119
+ "cid": "cids(3)",
120
+ "cts": "1970-01-01T00:00:00.000Z",
121
+ "src": "user(1)",
122
+ "uri": "record(2)",
123
+ "val": "self-label-a",
124
+ },
125
+ Object {
126
+ "cid": "cids(3)",
127
+ "cts": "1970-01-01T00:00:00.000Z",
128
+ "src": "user(1)",
129
+ "uri": "record(2)",
130
+ "val": "self-label-b",
131
+ },
132
+ ],
133
+ "viewer": Object {
134
+ "blockedBy": false,
135
+ "muted": false,
136
+ },
137
+ },
138
+ "cid": "cids(1)",
139
+ "embeds": Array [],
140
+ "indexedAt": "1970-01-01T00:00:00.000Z",
141
+ "labels": Array [
142
+ Object {
143
+ "cid": "cids(1)",
144
+ "cts": "1970-01-01T00:00:00.000Z",
145
+ "src": "user(1)",
146
+ "uri": "record(1)",
147
+ "val": "self-label",
148
+ },
149
+ ],
150
+ "likeCount": 0,
151
+ "replyCount": 0,
152
+ "repostCount": 0,
153
+ "uri": "record(1)",
154
+ "value": Object {
155
+ "$type": "app.bsky.feed.post",
156
+ "createdAt": "1970-01-01T00:00:00.000Z",
157
+ "labels": Object {
158
+ "$type": "com.atproto.label.defs#selfLabels",
159
+ "values": Array [
160
+ Object {
161
+ "val": "self-label",
162
+ },
163
+ ],
164
+ },
165
+ "text": "hey there",
166
+ },
167
+ },
168
+ },
169
+ "indexedAt": "1970-01-01T00:00:00.000Z",
170
+ "labels": Array [],
171
+ "likeCount": 0,
172
+ "quoteCount": 0,
173
+ "record": Object {
174
+ "$type": "app.bsky.feed.post",
175
+ "createdAt": "1970-01-01T00:00:00.000Z",
176
+ "embed": Object {
177
+ "$type": "app.bsky.embed.record",
178
+ "record": Object {
179
+ "cid": "cids(1)",
180
+ "uri": "record(1)",
181
+ },
182
+ },
183
+ "text": "qUoTe 2",
184
+ },
185
+ "replyCount": 0,
186
+ "repostCount": 0,
187
+ "uri": "record(0)",
188
+ "viewer": Object {
189
+ "embeddingDisabled": false,
190
+ "threadMuted": false,
191
+ },
192
+ },
193
+ ],
194
+ "uri": "record(1)",
195
+ }
196
+ `;
197
+
198
+ exports[`pds quote views fetches post quotes 1`] = `
199
+ Object {
200
+ "cursor": "0000000000000__bafycid",
201
+ "posts": Array [
202
+ Object {
203
+ "author": Object {
204
+ "did": "user(0)",
205
+ "handle": "eve.test",
206
+ "labels": Array [],
207
+ "viewer": Object {
208
+ "blockedBy": false,
209
+ "muted": false,
210
+ },
211
+ },
212
+ "cid": "cids(0)",
213
+ "embed": Object {
214
+ "$type": "app.bsky.embed.record#view",
215
+ "record": Object {
216
+ "$type": "app.bsky.embed.record#viewRecord",
217
+ "author": Object {
218
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(2)@jpeg",
219
+ "createdAt": "1970-01-01T00:00:00.000Z",
220
+ "did": "user(1)",
221
+ "displayName": "ali",
222
+ "handle": "alice.test",
223
+ "labels": Array [
224
+ Object {
225
+ "cid": "cids(3)",
226
+ "cts": "1970-01-01T00:00:00.000Z",
227
+ "src": "user(1)",
228
+ "uri": "record(2)",
229
+ "val": "self-label-a",
230
+ },
231
+ Object {
232
+ "cid": "cids(3)",
233
+ "cts": "1970-01-01T00:00:00.000Z",
234
+ "src": "user(1)",
235
+ "uri": "record(2)",
236
+ "val": "self-label-b",
237
+ },
238
+ ],
239
+ "viewer": Object {
240
+ "blockedBy": false,
241
+ "muted": false,
242
+ },
243
+ },
244
+ "cid": "cids(1)",
245
+ "embeds": Array [],
246
+ "indexedAt": "1970-01-01T00:00:00.000Z",
247
+ "labels": Array [
248
+ Object {
249
+ "cid": "cids(1)",
250
+ "cts": "1970-01-01T00:00:00.000Z",
251
+ "src": "user(1)",
252
+ "uri": "record(1)",
253
+ "val": "self-label",
254
+ },
255
+ ],
256
+ "likeCount": 0,
257
+ "replyCount": 0,
258
+ "repostCount": 0,
259
+ "uri": "record(1)",
260
+ "value": Object {
261
+ "$type": "app.bsky.feed.post",
262
+ "createdAt": "1970-01-01T00:00:00.000Z",
263
+ "labels": Object {
264
+ "$type": "com.atproto.label.defs#selfLabels",
265
+ "values": Array [
266
+ Object {
267
+ "val": "self-label",
268
+ },
269
+ ],
270
+ },
271
+ "text": "hey there",
272
+ },
273
+ },
274
+ },
275
+ "indexedAt": "1970-01-01T00:00:00.000Z",
276
+ "labels": Array [],
277
+ "likeCount": 0,
278
+ "quoteCount": 0,
279
+ "record": Object {
280
+ "$type": "app.bsky.feed.post",
281
+ "createdAt": "1970-01-01T00:00:00.000Z",
282
+ "embed": Object {
283
+ "$type": "app.bsky.embed.record",
284
+ "record": Object {
285
+ "cid": "cids(1)",
286
+ "uri": "record(1)",
287
+ },
288
+ },
289
+ "text": "qUoTe 2",
290
+ },
291
+ "replyCount": 0,
292
+ "repostCount": 0,
293
+ "uri": "record(0)",
294
+ "viewer": Object {
295
+ "embeddingDisabled": false,
296
+ "threadMuted": false,
297
+ },
298
+ },
299
+ Object {
300
+ "author": Object {
301
+ "did": "user(0)",
302
+ "handle": "eve.test",
303
+ "labels": Array [],
304
+ "viewer": Object {
305
+ "blockedBy": false,
306
+ "muted": false,
307
+ },
308
+ },
309
+ "cid": "cids(4)",
310
+ "embed": Object {
311
+ "$type": "app.bsky.embed.record#view",
312
+ "record": Object {
313
+ "$type": "app.bsky.embed.record#viewRecord",
314
+ "author": Object {
315
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(2)@jpeg",
316
+ "createdAt": "1970-01-01T00:00:00.000Z",
317
+ "did": "user(1)",
318
+ "displayName": "ali",
319
+ "handle": "alice.test",
320
+ "labels": Array [
321
+ Object {
322
+ "cid": "cids(3)",
323
+ "cts": "1970-01-01T00:00:00.000Z",
324
+ "src": "user(1)",
325
+ "uri": "record(2)",
326
+ "val": "self-label-a",
327
+ },
328
+ Object {
329
+ "cid": "cids(3)",
330
+ "cts": "1970-01-01T00:00:00.000Z",
331
+ "src": "user(1)",
332
+ "uri": "record(2)",
333
+ "val": "self-label-b",
334
+ },
335
+ ],
336
+ "viewer": Object {
337
+ "blockedBy": false,
338
+ "muted": false,
339
+ },
340
+ },
341
+ "cid": "cids(1)",
342
+ "embeds": Array [],
343
+ "indexedAt": "1970-01-01T00:00:00.000Z",
344
+ "labels": Array [
345
+ Object {
346
+ "cid": "cids(1)",
347
+ "cts": "1970-01-01T00:00:00.000Z",
348
+ "src": "user(1)",
349
+ "uri": "record(1)",
350
+ "val": "self-label",
351
+ },
352
+ ],
353
+ "likeCount": 0,
354
+ "replyCount": 0,
355
+ "repostCount": 0,
356
+ "uri": "record(1)",
357
+ "value": Object {
358
+ "$type": "app.bsky.feed.post",
359
+ "createdAt": "1970-01-01T00:00:00.000Z",
360
+ "labels": Object {
361
+ "$type": "com.atproto.label.defs#selfLabels",
362
+ "values": Array [
363
+ Object {
364
+ "val": "self-label",
365
+ },
366
+ ],
367
+ },
368
+ "text": "hey there",
369
+ },
370
+ },
371
+ },
372
+ "indexedAt": "1970-01-01T00:00:00.000Z",
373
+ "labels": Array [],
374
+ "likeCount": 0,
375
+ "quoteCount": 0,
376
+ "record": Object {
377
+ "$type": "app.bsky.feed.post",
378
+ "createdAt": "1970-01-01T00:00:00.000Z",
379
+ "embed": Object {
380
+ "$type": "app.bsky.embed.record",
381
+ "record": Object {
382
+ "cid": "cids(1)",
383
+ "uri": "record(1)",
384
+ },
385
+ },
386
+ "text": "qUoTe 1",
387
+ },
388
+ "replyCount": 0,
389
+ "repostCount": 0,
390
+ "uri": "record(3)",
391
+ "viewer": Object {
392
+ "embeddingDisabled": false,
393
+ "threadMuted": false,
394
+ },
395
+ },
396
+ ],
397
+ "uri": "record(1)",
398
+ }
399
+ `;
@@ -1,5 +1,208 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`starter packs does include users with creator block relationship in list sample for creator 1`] = `
4
+ Array [
5
+ Object {
6
+ "subject": Object {
7
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
8
+ "createdAt": "1970-01-01T00:00:00.000Z",
9
+ "description": "its me!",
10
+ "did": "user(0)",
11
+ "displayName": "ali",
12
+ "handle": "alice.test",
13
+ "indexedAt": "1970-01-01T00:00:00.000Z",
14
+ "labels": Array [
15
+ Object {
16
+ "cid": "cids(1)",
17
+ "cts": "1970-01-01T00:00:00.000Z",
18
+ "src": "user(0)",
19
+ "uri": "record(1)",
20
+ "val": "self-label-a",
21
+ },
22
+ Object {
23
+ "cid": "cids(1)",
24
+ "cts": "1970-01-01T00:00:00.000Z",
25
+ "src": "user(0)",
26
+ "uri": "record(1)",
27
+ "val": "self-label-b",
28
+ },
29
+ ],
30
+ "viewer": Object {
31
+ "blockedBy": false,
32
+ "muted": false,
33
+ },
34
+ },
35
+ "uri": "record(0)",
36
+ },
37
+ Object {
38
+ "subject": Object {
39
+ "did": "user(2)",
40
+ "handle": "greta.test",
41
+ "labels": Array [],
42
+ "viewer": Object {
43
+ "blockedBy": false,
44
+ "muted": false,
45
+ },
46
+ },
47
+ "uri": "record(2)",
48
+ },
49
+ Object {
50
+ "subject": Object {
51
+ "did": "user(3)",
52
+ "handle": "frankie.test",
53
+ "labels": Array [],
54
+ "viewer": Object {
55
+ "blockedBy": true,
56
+ "muted": false,
57
+ },
58
+ },
59
+ "uri": "record(3)",
60
+ },
61
+ ]
62
+ `;
63
+
64
+ exports[`starter packs does not include users with creator block relationship in list sample for non-creator, in-list viewers 1`] = `
65
+ Array [
66
+ Object {
67
+ "subject": Object {
68
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
69
+ "createdAt": "1970-01-01T00:00:00.000Z",
70
+ "description": "its me!",
71
+ "did": "user(0)",
72
+ "displayName": "ali",
73
+ "handle": "alice.test",
74
+ "indexedAt": "1970-01-01T00:00:00.000Z",
75
+ "labels": Array [
76
+ Object {
77
+ "cid": "cids(1)",
78
+ "cts": "1970-01-01T00:00:00.000Z",
79
+ "src": "user(0)",
80
+ "uri": "record(2)",
81
+ "val": "self-label-a",
82
+ },
83
+ Object {
84
+ "cid": "cids(1)",
85
+ "cts": "1970-01-01T00:00:00.000Z",
86
+ "src": "user(0)",
87
+ "uri": "record(2)",
88
+ "val": "self-label-b",
89
+ },
90
+ ],
91
+ "viewer": Object {
92
+ "blockedBy": false,
93
+ "blocking": "record(1)",
94
+ "muted": false,
95
+ },
96
+ },
97
+ "uri": "record(0)",
98
+ },
99
+ Object {
100
+ "subject": Object {
101
+ "did": "user(2)",
102
+ "handle": "greta.test",
103
+ "labels": Array [],
104
+ "viewer": Object {
105
+ "blockedBy": false,
106
+ "muted": false,
107
+ },
108
+ },
109
+ "uri": "record(3)",
110
+ },
111
+ ]
112
+ `;
113
+
114
+ exports[`starter packs does not include users with creator block relationship in list sample for non-creator, not-in-list viewers 1`] = `
115
+ Array [
116
+ Object {
117
+ "subject": Object {
118
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
119
+ "createdAt": "1970-01-01T00:00:00.000Z",
120
+ "description": "its me!",
121
+ "did": "user(0)",
122
+ "displayName": "ali",
123
+ "handle": "alice.test",
124
+ "indexedAt": "1970-01-01T00:00:00.000Z",
125
+ "labels": Array [
126
+ Object {
127
+ "cid": "cids(1)",
128
+ "cts": "1970-01-01T00:00:00.000Z",
129
+ "src": "user(0)",
130
+ "uri": "record(3)",
131
+ "val": "self-label-a",
132
+ },
133
+ Object {
134
+ "cid": "cids(1)",
135
+ "cts": "1970-01-01T00:00:00.000Z",
136
+ "src": "user(0)",
137
+ "uri": "record(3)",
138
+ "val": "self-label-b",
139
+ },
140
+ ],
141
+ "viewer": Object {
142
+ "blockedBy": false,
143
+ "followedBy": "record(2)",
144
+ "following": "record(1)",
145
+ "muted": false,
146
+ },
147
+ },
148
+ "uri": "record(0)",
149
+ },
150
+ Object {
151
+ "subject": Object {
152
+ "did": "user(2)",
153
+ "handle": "greta.test",
154
+ "labels": Array [],
155
+ "viewer": Object {
156
+ "blockedBy": false,
157
+ "muted": false,
158
+ },
159
+ },
160
+ "uri": "record(4)",
161
+ },
162
+ ]
163
+ `;
164
+
165
+ exports[`starter packs does not include users with creator block relationship in list sample for signed-out viewers 1`] = `
166
+ Array [
167
+ Object {
168
+ "subject": Object {
169
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
170
+ "createdAt": "1970-01-01T00:00:00.000Z",
171
+ "description": "its me!",
172
+ "did": "user(0)",
173
+ "displayName": "ali",
174
+ "handle": "alice.test",
175
+ "indexedAt": "1970-01-01T00:00:00.000Z",
176
+ "labels": Array [
177
+ Object {
178
+ "cid": "cids(1)",
179
+ "cts": "1970-01-01T00:00:00.000Z",
180
+ "src": "user(0)",
181
+ "uri": "record(1)",
182
+ "val": "self-label-a",
183
+ },
184
+ Object {
185
+ "cid": "cids(1)",
186
+ "cts": "1970-01-01T00:00:00.000Z",
187
+ "src": "user(0)",
188
+ "uri": "record(1)",
189
+ "val": "self-label-b",
190
+ },
191
+ ],
192
+ },
193
+ "uri": "record(0)",
194
+ },
195
+ Object {
196
+ "subject": Object {
197
+ "did": "user(2)",
198
+ "handle": "greta.test",
199
+ "labels": Array [],
200
+ },
201
+ "uri": "record(2)",
202
+ },
203
+ ]
204
+ `;
205
+
3
206
  exports[`starter packs generates notifications 1`] = `
4
207
  Array [
5
208
  Object {
@@ -176,7 +379,7 @@ Array [
176
379
  "createdAt": "1970-01-01T00:00:00.000Z",
177
380
  "feeds": Array [],
178
381
  "list": "record(1)",
179
- "name": "alice's empty starter pack",
382
+ "name": "alice's about to get blocked starter pack",
180
383
  },
181
384
  "uri": "record(0)",
182
385
  },
@@ -206,6 +409,44 @@ Array [
206
409
  ],
207
410
  },
208
411
  "indexedAt": "1970-01-01T00:00:00.000Z",
412
+ "joinedAllTimeCount": 0,
413
+ "joinedWeekCount": 0,
414
+ "labels": Array [],
415
+ "record": Object {
416
+ "$type": "app.bsky.graph.starterpack",
417
+ "createdAt": "1970-01-01T00:00:00.000Z",
418
+ "feeds": Array [],
419
+ "list": "record(4)",
420
+ "name": "alice's empty starter pack",
421
+ },
422
+ "uri": "record(3)",
423
+ },
424
+ Object {
425
+ "cid": "cids(4)",
426
+ "creator": Object {
427
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
428
+ "createdAt": "1970-01-01T00:00:00.000Z",
429
+ "did": "user(0)",
430
+ "displayName": "ali",
431
+ "handle": "alice.test",
432
+ "labels": Array [
433
+ Object {
434
+ "cid": "cids(2)",
435
+ "cts": "1970-01-01T00:00:00.000Z",
436
+ "src": "user(0)",
437
+ "uri": "record(2)",
438
+ "val": "self-label-a",
439
+ },
440
+ Object {
441
+ "cid": "cids(2)",
442
+ "cts": "1970-01-01T00:00:00.000Z",
443
+ "src": "user(0)",
444
+ "uri": "record(2)",
445
+ "val": "self-label-b",
446
+ },
447
+ ],
448
+ },
449
+ "indexedAt": "1970-01-01T00:00:00.000Z",
209
450
  "joinedAllTimeCount": 3,
210
451
  "joinedWeekCount": 3,
211
452
  "labels": Array [],
@@ -214,13 +455,13 @@ Array [
214
455
  "createdAt": "1970-01-01T00:00:00.000Z",
215
456
  "feeds": Array [
216
457
  Object {
217
- "uri": "record(5)",
458
+ "uri": "record(7)",
218
459
  },
219
460
  ],
220
- "list": "record(4)",
461
+ "list": "record(6)",
221
462
  "name": "alice's starter pack",
222
463
  },
223
- "uri": "record(3)",
464
+ "uri": "record(5)",
224
465
  },
225
466
  ]
226
467
  `;