@atproto/bsky 0.0.250 → 0.0.253

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 (473) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/api/age-assurance/const.js +19 -19
  3. package/dist/api/age-assurance/const.js.map +1 -1
  4. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  5. package/dist/api/app/bsky/feed/getFeed.js +4 -0
  6. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  7. package/dist/api/app/bsky/feed/searchPosts.js +5 -0
  8. package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
  9. package/dist/api/app/bsky/feed/searchPostsV2.js +5 -0
  10. package/dist/api/app/bsky/feed/searchPostsV2.js.map +1 -1
  11. package/dist/config.d.ts +2 -0
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/config.js +5 -0
  14. package/dist/config.js.map +1 -1
  15. package/dist/hydration/feed.d.ts +1 -2
  16. package/dist/hydration/feed.d.ts.map +1 -1
  17. package/dist/hydration/feed.js.map +1 -1
  18. package/dist/kws.d.ts +8 -0
  19. package/dist/kws.d.ts.map +1 -1
  20. package/dist/kws.js +53 -4
  21. package/dist/kws.js.map +1 -1
  22. package/package.json +28 -23
  23. package/bin/migration-create.ts +0 -46
  24. package/buf.gen.yaml +0 -12
  25. package/proto/bsky.proto +0 -1907
  26. package/proto/courier.proto +0 -84
  27. package/proto/rolodex.proto +0 -116
  28. package/src/api/age-assurance/const.ts +0 -203
  29. package/src/api/age-assurance/index.ts +0 -34
  30. package/src/api/age-assurance/kws/age-verified.test.ts +0 -98
  31. package/src/api/age-assurance/kws/age-verified.ts +0 -81
  32. package/src/api/age-assurance/kws/const.ts +0 -33
  33. package/src/api/age-assurance/kws/external-payload.test.ts +0 -72
  34. package/src/api/age-assurance/kws/external-payload.ts +0 -149
  35. package/src/api/age-assurance/redirects/kws-age-verified.ts +0 -107
  36. package/src/api/age-assurance/stash.ts +0 -23
  37. package/src/api/age-assurance/types.ts +0 -10
  38. package/src/api/age-assurance/util.ts +0 -68
  39. package/src/api/age-assurance/webhooks/kws-age-verified.ts +0 -75
  40. package/src/api/app/bsky/actor/getProfile.ts +0 -106
  41. package/src/api/app/bsky/actor/getProfiles.ts +0 -99
  42. package/src/api/app/bsky/actor/getSuggestions.ts +0 -163
  43. package/src/api/app/bsky/actor/searchActors.ts +0 -171
  44. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +0 -164
  45. package/src/api/app/bsky/ageassurance/begin.ts +0 -175
  46. package/src/api/app/bsky/ageassurance/getConfig.ts +0 -16
  47. package/src/api/app/bsky/ageassurance/getState.ts +0 -58
  48. package/src/api/app/bsky/bookmark/createBookmark.ts +0 -39
  49. package/src/api/app/bsky/bookmark/deleteBookmark.ts +0 -32
  50. package/src/api/app/bsky/bookmark/getBookmarks.ts +0 -97
  51. package/src/api/app/bsky/bookmark/util.ts +0 -13
  52. package/src/api/app/bsky/contact/dismissMatch.ts +0 -26
  53. package/src/api/app/bsky/contact/getMatches.ts +0 -111
  54. package/src/api/app/bsky/contact/getSyncStatus.ts +0 -38
  55. package/src/api/app/bsky/contact/importContacts.ts +0 -119
  56. package/src/api/app/bsky/contact/removeData.ts +0 -25
  57. package/src/api/app/bsky/contact/sendNotification.ts +0 -33
  58. package/src/api/app/bsky/contact/startPhoneVerification.ts +0 -26
  59. package/src/api/app/bsky/contact/util.ts +0 -92
  60. package/src/api/app/bsky/contact/verifyPhone.ts +0 -29
  61. package/src/api/app/bsky/draft/createDraft.ts +0 -45
  62. package/src/api/app/bsky/draft/deleteDraft.ts +0 -20
  63. package/src/api/app/bsky/draft/getDrafts.ts +0 -44
  64. package/src/api/app/bsky/draft/updateDraft.ts +0 -26
  65. package/src/api/app/bsky/embed/getEmbedExternalView.ts +0 -154
  66. package/src/api/app/bsky/feed/getActorFeeds.ts +0 -101
  67. package/src/api/app/bsky/feed/getActorLikes.ts +0 -128
  68. package/src/api/app/bsky/feed/getAuthorFeed.ts +0 -279
  69. package/src/api/app/bsky/feed/getFeed.ts +0 -277
  70. package/src/api/app/bsky/feed/getFeedGenerator.ts +0 -68
  71. package/src/api/app/bsky/feed/getFeedGenerators.ts +0 -86
  72. package/src/api/app/bsky/feed/getLikes.ts +0 -151
  73. package/src/api/app/bsky/feed/getListFeed.ts +0 -147
  74. package/src/api/app/bsky/feed/getPostThread.ts +0 -156
  75. package/src/api/app/bsky/feed/getPosts.ts +0 -100
  76. package/src/api/app/bsky/feed/getQuotes.ts +0 -122
  77. package/src/api/app/bsky/feed/getRepostedBy.ts +0 -121
  78. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +0 -39
  79. package/src/api/app/bsky/feed/getTimeline.ts +0 -127
  80. package/src/api/app/bsky/feed/searchPosts.ts +0 -267
  81. package/src/api/app/bsky/feed/searchPostsV2.ts +0 -236
  82. package/src/api/app/bsky/graph/getActorStarterPacks.ts +0 -103
  83. package/src/api/app/bsky/graph/getBlocks.ts +0 -94
  84. package/src/api/app/bsky/graph/getFollowers.ts +0 -153
  85. package/src/api/app/bsky/graph/getFollows.ts +0 -151
  86. package/src/api/app/bsky/graph/getKnownFollowers.ts +0 -123
  87. package/src/api/app/bsky/graph/getList.ts +0 -152
  88. package/src/api/app/bsky/graph/getListBlocks.ts +0 -87
  89. package/src/api/app/bsky/graph/getListMutes.ts +0 -87
  90. package/src/api/app/bsky/graph/getLists.ts +0 -125
  91. package/src/api/app/bsky/graph/getListsWithMembership.ts +0 -146
  92. package/src/api/app/bsky/graph/getMutes.ts +0 -87
  93. package/src/api/app/bsky/graph/getRelationships.ts +0 -58
  94. package/src/api/app/bsky/graph/getStarterPack.ts +0 -82
  95. package/src/api/app/bsky/graph/getStarterPacks.ts +0 -86
  96. package/src/api/app/bsky/graph/getStarterPacksWithMembership.ts +0 -136
  97. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -171
  98. package/src/api/app/bsky/graph/muteActor.ts +0 -24
  99. package/src/api/app/bsky/graph/muteActorList.ts +0 -19
  100. package/src/api/app/bsky/graph/muteThread.ts +0 -19
  101. package/src/api/app/bsky/graph/searchStarterPacks.ts +0 -169
  102. package/src/api/app/bsky/graph/unmuteActor.ts +0 -21
  103. package/src/api/app/bsky/graph/unmuteActorList.ts +0 -19
  104. package/src/api/app/bsky/graph/unmuteThread.ts +0 -19
  105. package/src/api/app/bsky/labeler/getServices.ts +0 -41
  106. package/src/api/app/bsky/notification/getPreferences.ts +0 -49
  107. package/src/api/app/bsky/notification/getUnreadCount.ts +0 -83
  108. package/src/api/app/bsky/notification/listActivitySubscriptions.ts +0 -116
  109. package/src/api/app/bsky/notification/listNotifications.ts +0 -272
  110. package/src/api/app/bsky/notification/putActivitySubscription.ts +0 -69
  111. package/src/api/app/bsky/notification/putPreferences.ts +0 -17
  112. package/src/api/app/bsky/notification/putPreferencesV2.ts +0 -64
  113. package/src/api/app/bsky/notification/registerPush.ts +0 -40
  114. package/src/api/app/bsky/notification/unregisterPush.ts +0 -39
  115. package/src/api/app/bsky/notification/updateSeen.ts +0 -52
  116. package/src/api/app/bsky/notification/util.ts +0 -134
  117. package/src/api/app/bsky/unspecced/getAgeAssuranceState.ts +0 -48
  118. package/src/api/app/bsky/unspecced/getConfig.ts +0 -20
  119. package/src/api/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +0 -162
  120. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -91
  121. package/src/api/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -126
  122. package/src/api/app/bsky/unspecced/getPostThreadV2.ts +0 -148
  123. package/src/api/app/bsky/unspecced/getSuggestedFeeds.ts +0 -100
  124. package/src/api/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +0 -143
  125. package/src/api/app/bsky/unspecced/getSuggestedStarterPacks.ts +0 -165
  126. package/src/api/app/bsky/unspecced/getSuggestedUsers.ts +0 -183
  127. package/src/api/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +0 -175
  128. package/src/api/app/bsky/unspecced/getSuggestedUsersForExplore.ts +0 -178
  129. package/src/api/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +0 -178
  130. package/src/api/app/bsky/unspecced/getTaggedSuggestions.ts +0 -27
  131. package/src/api/app/bsky/unspecced/getTrendingTopics.ts +0 -96
  132. package/src/api/app/bsky/unspecced/getTrends.ts +0 -162
  133. package/src/api/app/bsky/unspecced/initAgeAssurance.ts +0 -150
  134. package/src/api/blob-dispatcher.ts +0 -41
  135. package/src/api/blob-resolver.ts +0 -401
  136. package/src/api/com/atproto/admin/getAccountInfos.ts +0 -49
  137. package/src/api/com/atproto/admin/getSubjectStatus.ts +0 -79
  138. package/src/api/com/atproto/admin/updateSubjectStatus.ts +0 -80
  139. package/src/api/com/atproto/identity/resolveHandle.ts +0 -19
  140. package/src/api/com/atproto/label/queryLabels.ts +0 -42
  141. package/src/api/com/atproto/repo/getRecord.ts +0 -44
  142. package/src/api/com/atproto/temp/fetchLabels.ts +0 -9
  143. package/src/api/external.ts +0 -15
  144. package/src/api/health.ts +0 -47
  145. package/src/api/index.ts +0 -216
  146. package/src/api/internal/bsky/actor/getProfiles.ts +0 -87
  147. package/src/api/kws/api.ts +0 -113
  148. package/src/api/kws/index.ts +0 -29
  149. package/src/api/kws/types.ts +0 -78
  150. package/src/api/kws/util.test.ts +0 -50
  151. package/src/api/kws/util.ts +0 -109
  152. package/src/api/kws/webhook.ts +0 -134
  153. package/src/api/sitemap.ts +0 -76
  154. package/src/api/util.ts +0 -45
  155. package/src/api/well-known.ts +0 -44
  156. package/src/auth-verifier.ts +0 -522
  157. package/src/bsync.ts +0 -41
  158. package/src/cache/read-through.ts +0 -157
  159. package/src/config.ts +0 -710
  160. package/src/context.ts +0 -143
  161. package/src/courier.ts +0 -41
  162. package/src/data-plane/client/hosts.ts +0 -103
  163. package/src/data-plane/client/index.ts +0 -125
  164. package/src/data-plane/client/util.test.ts +0 -29
  165. package/src/data-plane/client/util.ts +0 -74
  166. package/src/data-plane/index.ts +0 -2
  167. package/src/data-plane/server/background.ts +0 -66
  168. package/src/data-plane/server/bsync-subscription.ts +0 -590
  169. package/src/data-plane/server/db/database-schema.ts +0 -90
  170. package/src/data-plane/server/db/db.ts +0 -204
  171. package/src/data-plane/server/db/index.ts +0 -2
  172. package/src/data-plane/server/db/migrations/20230309T045948368Z-init.ts +0 -305
  173. package/src/data-plane/server/db/migrations/20230408T152211201Z-notification-init.ts +0 -25
  174. package/src/data-plane/server/db/migrations/20230417T210628672Z-moderation-init.ts +0 -127
  175. package/src/data-plane/server/db/migrations/20230420T211446071Z-did-cache.ts +0 -14
  176. package/src/data-plane/server/db/migrations/20230427T194702079Z-notif-record-index.ts +0 -14
  177. package/src/data-plane/server/db/migrations/20230605T144730094Z-post-profile-aggs.ts +0 -23
  178. package/src/data-plane/server/db/migrations/20230607T211442112Z-feed-generator-init.ts +0 -34
  179. package/src/data-plane/server/db/migrations/20230608T155101190Z-algo-whats-hot-view.ts +0 -85
  180. package/src/data-plane/server/db/migrations/20230608T201813132Z-mute-lists.ts +0 -78
  181. package/src/data-plane/server/db/migrations/20230608T205147239Z-mutes.ts +0 -15
  182. package/src/data-plane/server/db/migrations/20230609T153623961Z-blocks.ts +0 -33
  183. package/src/data-plane/server/db/migrations/20230609T232122649Z-actor-deletion-indexes.ts +0 -27
  184. package/src/data-plane/server/db/migrations/20230610T203555962Z-suggested-follows.ts +0 -13
  185. package/src/data-plane/server/db/migrations/20230611T215300060Z-actor-state.ts +0 -13
  186. package/src/data-plane/server/db/migrations/20230620T161134972Z-post-langs.ts +0 -9
  187. package/src/data-plane/server/db/migrations/20230627T212437895Z-optional-handle.ts +0 -15
  188. package/src/data-plane/server/db/migrations/20230629T220835893Z-remove-post-hierarchy.ts +0 -32
  189. package/src/data-plane/server/db/migrations/20230703T045536691Z-feed-and-label-indices.ts +0 -31
  190. package/src/data-plane/server/db/migrations/20230720T164800037Z-posts-cursor-idx.ts +0 -19
  191. package/src/data-plane/server/db/migrations/20230807T035309811Z-feed-item-delete-invite-for-user-idx.ts +0 -14
  192. package/src/data-plane/server/db/migrations/20230808T172902639Z-repo-rev.ts +0 -12
  193. package/src/data-plane/server/db/migrations/20230810T203349843Z-action-duration.ts +0 -23
  194. package/src/data-plane/server/db/migrations/20230817T195936007Z-native-notifications.ts +0 -16
  195. package/src/data-plane/server/db/migrations/20230830T205507322Z-suggested-feeds.ts +0 -13
  196. package/src/data-plane/server/db/migrations/20230904T211011773Z-block-lists.ts +0 -24
  197. package/src/data-plane/server/db/migrations/20230906T222220386Z-thread-gating.ts +0 -27
  198. package/src/data-plane/server/db/migrations/20230920T213858047Z-add-tags-to-post.ts +0 -9
  199. package/src/data-plane/server/db/migrations/20230929T192920807Z-record-cursor-indexes.ts +0 -40
  200. package/src/data-plane/server/db/migrations/20231003T202833377Z-create-moderation-subject-status.ts +0 -123
  201. package/src/data-plane/server/db/migrations/20231220T225126090Z-blob-takedowns.ts +0 -66
  202. package/src/data-plane/server/db/migrations/20240124T023719200Z-tagged-suggestions.ts +0 -15
  203. package/src/data-plane/server/db/migrations/20240226T225725627Z-labelers.ts +0 -27
  204. package/src/data-plane/server/db/migrations/20240530T170337073Z-account-deactivation.ts +0 -12
  205. package/src/data-plane/server/db/migrations/20240606T171229898Z-thread-mutes.ts +0 -15
  206. package/src/data-plane/server/db/migrations/20240606T222548219Z-starter-packs.ts +0 -45
  207. package/src/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.ts +0 -25
  208. package/src/data-plane/server/db/migrations/20240723T220700077Z-quotes-post-aggs.ts +0 -12
  209. package/src/data-plane/server/db/migrations/20240723T220703655Z-quotes.ts +0 -28
  210. package/src/data-plane/server/db/migrations/20240801T193939827Z-post-gate.ts +0 -17
  211. package/src/data-plane/server/db/migrations/20240808T224251220Z-post-gate-flags.ts +0 -25
  212. package/src/data-plane/server/db/migrations/20240829T211238293Z-simplify-actor-sync.ts +0 -23
  213. package/src/data-plane/server/db/migrations/20240831T134810923Z-pinned-posts.ts +0 -17
  214. package/src/data-plane/server/db/migrations/20241114T153108102Z-add-starter-packs-name.ts +0 -19
  215. package/src/data-plane/server/db/migrations/20250116T222618297Z-post-embed-video.ts +0 -17
  216. package/src/data-plane/server/db/migrations/20250207T174822012Z-add-label-exp.ts +0 -9
  217. package/src/data-plane/server/db/migrations/20250404T163421487Z-verifications.ts +0 -39
  218. package/src/data-plane/server/db/migrations/20250526T023712742Z-like-repost-via.ts +0 -17
  219. package/src/data-plane/server/db/migrations/20250528T221913281Z-add-record-tags.ts +0 -9
  220. package/src/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.ts +0 -22
  221. package/src/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.ts +0 -22
  222. package/src/data-plane/server/db/migrations/20250627T025331240Z-add-actor-age-assurance-columns.ts +0 -22
  223. package/src/data-plane/server/db/migrations/20250812T183735692Z-add-bookmarks.ts +0 -23
  224. package/src/data-plane/server/db/migrations/20250813T174955711Z-add-post-agg-bookmarks.ts +0 -12
  225. package/src/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.ts +0 -28
  226. package/src/data-plane/server/db/migrations/20260112T133951271Z-add-drafts.ts +0 -24
  227. package/src/data-plane/server/db/migrations/20260604T224952774Z-post-embed-gallery-image.ts +0 -19
  228. package/src/data-plane/server/db/migrations/index.ts +0 -60
  229. package/src/data-plane/server/db/migrations/provider.ts +0 -26
  230. package/src/data-plane/server/db/pagination.ts +0 -341
  231. package/src/data-plane/server/db/tables/activity-subscription.ts +0 -12
  232. package/src/data-plane/server/db/tables/actor-block.ts +0 -14
  233. package/src/data-plane/server/db/tables/actor-state.ts +0 -10
  234. package/src/data-plane/server/db/tables/actor-sync.ts +0 -9
  235. package/src/data-plane/server/db/tables/actor.ts +0 -19
  236. package/src/data-plane/server/db/tables/algo.ts +0 -11
  237. package/src/data-plane/server/db/tables/blob-takedown.ts +0 -9
  238. package/src/data-plane/server/db/tables/bookmark.ts +0 -11
  239. package/src/data-plane/server/db/tables/did-cache.ts +0 -13
  240. package/src/data-plane/server/db/tables/draft.ts +0 -11
  241. package/src/data-plane/server/db/tables/duplicate-record.ts +0 -12
  242. package/src/data-plane/server/db/tables/feed-generator.ts +0 -21
  243. package/src/data-plane/server/db/tables/feed-item.ts +0 -12
  244. package/src/data-plane/server/db/tables/follow.ts +0 -15
  245. package/src/data-plane/server/db/tables/label.ts +0 -13
  246. package/src/data-plane/server/db/tables/labeler.ts +0 -16
  247. package/src/data-plane/server/db/tables/like.ts +0 -18
  248. package/src/data-plane/server/db/tables/list-block.ts +0 -15
  249. package/src/data-plane/server/db/tables/list-item.ts +0 -16
  250. package/src/data-plane/server/db/tables/list-mute.ts +0 -9
  251. package/src/data-plane/server/db/tables/list.ts +0 -19
  252. package/src/data-plane/server/db/tables/mute.ts +0 -9
  253. package/src/data-plane/server/db/tables/notification-push-token.ts +0 -10
  254. package/src/data-plane/server/db/tables/notification.ts +0 -16
  255. package/src/data-plane/server/db/tables/post-agg.ts +0 -16
  256. package/src/data-plane/server/db/tables/post-embed.ts +0 -47
  257. package/src/data-plane/server/db/tables/post-gate.ts +0 -12
  258. package/src/data-plane/server/db/tables/post.ts +0 -28
  259. package/src/data-plane/server/db/tables/private-data.ts +0 -13
  260. package/src/data-plane/server/db/tables/profile-agg.ts +0 -14
  261. package/src/data-plane/server/db/tables/profile.ts +0 -17
  262. package/src/data-plane/server/db/tables/quote.ts +0 -15
  263. package/src/data-plane/server/db/tables/record.ts +0 -15
  264. package/src/data-plane/server/db/tables/repost.ts +0 -18
  265. package/src/data-plane/server/db/tables/starter-pack.ts +0 -17
  266. package/src/data-plane/server/db/tables/subscription.ts +0 -9
  267. package/src/data-plane/server/db/tables/suggested-feed.ts +0 -10
  268. package/src/data-plane/server/db/tables/suggested-follow.ts +0 -10
  269. package/src/data-plane/server/db/tables/tagged-suggestion.ts +0 -11
  270. package/src/data-plane/server/db/tables/thread-gate.ts +0 -12
  271. package/src/data-plane/server/db/tables/thread-mute.ts +0 -9
  272. package/src/data-plane/server/db/tables/verification.ts +0 -20
  273. package/src/data-plane/server/db/tables/view-param.ts +0 -12
  274. package/src/data-plane/server/db/types.ts +0 -12
  275. package/src/data-plane/server/db/util.ts +0 -67
  276. package/src/data-plane/server/index.ts +0 -44
  277. package/src/data-plane/server/indexing/index.ts +0 -458
  278. package/src/data-plane/server/indexing/plugins/block.ts +0 -84
  279. package/src/data-plane/server/indexing/plugins/chat-declaration.ts +0 -60
  280. package/src/data-plane/server/indexing/plugins/feed-generator.ts +0 -80
  281. package/src/data-plane/server/indexing/plugins/follow.ts +0 -132
  282. package/src/data-plane/server/indexing/plugins/germ-declaration.ts +0 -57
  283. package/src/data-plane/server/indexing/plugins/labeler.ts +0 -74
  284. package/src/data-plane/server/indexing/plugins/like.ts +0 -151
  285. package/src/data-plane/server/indexing/plugins/list-block.ts +0 -84
  286. package/src/data-plane/server/indexing/plugins/list-item.ts +0 -92
  287. package/src/data-plane/server/indexing/plugins/list.ts +0 -80
  288. package/src/data-plane/server/indexing/plugins/notif-declaration.ts +0 -57
  289. package/src/data-plane/server/indexing/plugins/post-gate.ts +0 -101
  290. package/src/data-plane/server/indexing/plugins/post.ts +0 -675
  291. package/src/data-plane/server/indexing/plugins/profile.ts +0 -90
  292. package/src/data-plane/server/indexing/plugins/repost.ts +0 -176
  293. package/src/data-plane/server/indexing/plugins/starter-pack.ts +0 -74
  294. package/src/data-plane/server/indexing/plugins/status.ts +0 -57
  295. package/src/data-plane/server/indexing/plugins/thread-gate.ts +0 -101
  296. package/src/data-plane/server/indexing/plugins/verification.ts +0 -113
  297. package/src/data-plane/server/indexing/processor.ts +0 -292
  298. package/src/data-plane/server/routes/activity-subscription.ts +0 -84
  299. package/src/data-plane/server/routes/blocks.ts +0 -127
  300. package/src/data-plane/server/routes/bookmarks.ts +0 -83
  301. package/src/data-plane/server/routes/drafts.ts +0 -37
  302. package/src/data-plane/server/routes/feed-gens.ts +0 -89
  303. package/src/data-plane/server/routes/feeds.ts +0 -176
  304. package/src/data-plane/server/routes/follows.ts +0 -141
  305. package/src/data-plane/server/routes/identity.ts +0 -59
  306. package/src/data-plane/server/routes/index.ts +0 -67
  307. package/src/data-plane/server/routes/interactions.ts +0 -120
  308. package/src/data-plane/server/routes/labels.ts +0 -55
  309. package/src/data-plane/server/routes/likes.ts +0 -92
  310. package/src/data-plane/server/routes/lists.ts +0 -88
  311. package/src/data-plane/server/routes/moderation.ts +0 -102
  312. package/src/data-plane/server/routes/mutes.ts +0 -195
  313. package/src/data-plane/server/routes/notifs.ts +0 -239
  314. package/src/data-plane/server/routes/profile.ts +0 -220
  315. package/src/data-plane/server/routes/quotes.ts +0 -32
  316. package/src/data-plane/server/routes/records.ts +0 -119
  317. package/src/data-plane/server/routes/relationships.ts +0 -174
  318. package/src/data-plane/server/routes/reposts.ts +0 -76
  319. package/src/data-plane/server/routes/search.ts +0 -181
  320. package/src/data-plane/server/routes/site-standard.ts +0 -12
  321. package/src/data-plane/server/routes/sitemap.ts +0 -43
  322. package/src/data-plane/server/routes/starter-packs.ts +0 -32
  323. package/src/data-plane/server/routes/suggestions.ts +0 -175
  324. package/src/data-plane/server/routes/sync.ts +0 -16
  325. package/src/data-plane/server/routes/threads.ts +0 -33
  326. package/src/data-plane/server/subscription.ts +0 -152
  327. package/src/data-plane/server/util.ts +0 -202
  328. package/src/error.ts +0 -12
  329. package/src/etcd.ts +0 -90
  330. package/src/feature-gates/README.md +0 -83
  331. package/src/feature-gates/gates.ts +0 -25
  332. package/src/feature-gates/index.ts +0 -235
  333. package/src/feature-gates/metrics.test.ts +0 -196
  334. package/src/feature-gates/metrics.ts +0 -107
  335. package/src/feature-gates/types.ts +0 -62
  336. package/src/feature-gates/utils.test.ts +0 -66
  337. package/src/feature-gates/utils.ts +0 -135
  338. package/src/hydration/actor.ts +0 -578
  339. package/src/hydration/external.test.ts +0 -281
  340. package/src/hydration/external.ts +0 -268
  341. package/src/hydration/feed.ts +0 -456
  342. package/src/hydration/graph.ts +0 -354
  343. package/src/hydration/hydrator.ts +0 -1835
  344. package/src/hydration/label.ts +0 -207
  345. package/src/hydration/util.ts +0 -199
  346. package/src/image/index.ts +0 -2
  347. package/src/image/invalidator.ts +0 -33
  348. package/src/image/logger.ts +0 -6
  349. package/src/image/server.ts +0 -228
  350. package/src/image/sharp.ts +0 -89
  351. package/src/image/uri.ts +0 -114
  352. package/src/image/util.ts +0 -41
  353. package/src/index.ts +0 -312
  354. package/src/kws.ts +0 -197
  355. package/src/logger.ts +0 -40
  356. package/src/pipeline.ts +0 -60
  357. package/src/redis.ts +0 -205
  358. package/src/rolodex.ts +0 -42
  359. package/src/stash.ts +0 -76
  360. package/src/util/debug.ts +0 -10
  361. package/src/util/http.ts +0 -42
  362. package/src/util/retry.ts +0 -10
  363. package/src/util/standard-site.test.ts +0 -423
  364. package/src/util/standard-site.ts +0 -196
  365. package/src/util/uris.ts +0 -38
  366. package/src/util.ts +0 -48
  367. package/src/views/index.ts +0 -2783
  368. package/src/views/threads-v2.ts +0 -510
  369. package/src/views/types.ts +0 -193
  370. package/src/views/util.ts +0 -114
  371. package/test.env +0 -2
  372. package/tests/__snapshots__/feed-generation.test.ts.snap +0 -2463
  373. package/tests/_util.ts +0 -292
  374. package/tests/admin/admin-auth.test.ts +0 -190
  375. package/tests/admin/moderation.test.ts +0 -222
  376. package/tests/auth.test.ts +0 -90
  377. package/tests/blob-resolver.test.ts +0 -125
  378. package/tests/data-plane/__snapshots__/indexing.test.ts.snap +0 -887
  379. package/tests/data-plane/db.test.ts +0 -189
  380. package/tests/data-plane/duplicate-records.test.ts +0 -156
  381. package/tests/data-plane/handle-invalidation.test.ts +0 -153
  382. package/tests/data-plane/indexing.test.ts +0 -827
  383. package/tests/data-plane/subscription.test.ts +0 -128
  384. package/tests/data-plane/thread-mutes.test.ts +0 -175
  385. package/tests/entryway-auth.test.ts +0 -177
  386. package/tests/etcd.test.ts +0 -302
  387. package/tests/feed-generation.test.ts +0 -919
  388. package/tests/hydration/util.test.ts +0 -119
  389. package/tests/image/server.test.ts +0 -97
  390. package/tests/image/sharp.test.ts +0 -199
  391. package/tests/image/uri.test.ts +0 -106
  392. package/tests/label-hydration.test.ts +0 -245
  393. package/tests/postgates.test.ts +0 -182
  394. package/tests/query-labels.test.ts +0 -85
  395. package/tests/redis-cache.test.ts +0 -230
  396. package/tests/seed/feed-hidden-replies.ts +0 -63
  397. package/tests/seed/get-suggested-starter-packs.ts +0 -64
  398. package/tests/seed/get-trends.ts +0 -71
  399. package/tests/seed/known-followers.ts +0 -111
  400. package/tests/seed/postgates.ts +0 -57
  401. package/tests/server.test.ts +0 -115
  402. package/tests/sitemap.test.ts +0 -75
  403. package/tests/stash.test.ts +0 -180
  404. package/tests/utils.test.ts +0 -36
  405. package/tests/views/__snapshots__/actor-search.test.ts.snap +0 -155
  406. package/tests/views/__snapshots__/author-feed.test.ts.snap +0 -6301
  407. package/tests/views/__snapshots__/block-lists.test.ts.snap +0 -690
  408. package/tests/views/__snapshots__/blocks.test.ts.snap +0 -462
  409. package/tests/views/__snapshots__/bookmarks.test.ts.snap +0 -379
  410. package/tests/views/__snapshots__/follows.test.ts.snap +0 -798
  411. package/tests/views/__snapshots__/labeler-service.test.ts.snap +0 -233
  412. package/tests/views/__snapshots__/likes.test.ts.snap +0 -124
  413. package/tests/views/__snapshots__/list-feed.test.ts.snap +0 -883
  414. package/tests/views/__snapshots__/lists.test.ts.snap +0 -650
  415. package/tests/views/__snapshots__/mute-lists.test.ts.snap +0 -705
  416. package/tests/views/__snapshots__/mutes.test.ts.snap +0 -353
  417. package/tests/views/__snapshots__/notifications.test.ts.snap +0 -3074
  418. package/tests/views/__snapshots__/posts.test.ts.snap +0 -1019
  419. package/tests/views/__snapshots__/profile.test.ts.snap +0 -811
  420. package/tests/views/__snapshots__/quotes.test.ts.snap +0 -445
  421. package/tests/views/__snapshots__/reposts.test.ts.snap +0 -112
  422. package/tests/views/__snapshots__/starter-packs.test.ts.snap +0 -836
  423. package/tests/views/__snapshots__/thread-v2.test.ts.snap +0 -1298
  424. package/tests/views/__snapshots__/thread.test.ts.snap +0 -2051
  425. package/tests/views/__snapshots__/threadgating.test.ts.snap +0 -189
  426. package/tests/views/__snapshots__/timeline.test.ts.snap +0 -7252
  427. package/tests/views/account-deactivation.test.ts +0 -81
  428. package/tests/views/actor-likes.test.ts +0 -138
  429. package/tests/views/actor-search.test.ts +0 -261
  430. package/tests/views/age-assurance-v2.test.ts +0 -823
  431. package/tests/views/age-assurance.test.ts +0 -479
  432. package/tests/views/author-feed.test.ts +0 -694
  433. package/tests/views/block-lists.test.ts +0 -661
  434. package/tests/views/blocks.test.ts +0 -889
  435. package/tests/views/bookmarks.test.ts +0 -345
  436. package/tests/views/drafts.test.ts +0 -430
  437. package/tests/views/feed-hidden-replies.test.ts +0 -243
  438. package/tests/views/feed-view-post.test.ts +0 -501
  439. package/tests/views/follows.test.ts +0 -372
  440. package/tests/views/get-config.test.ts +0 -64
  441. package/tests/views/get-suggested-onboarding-users.test.ts +0 -193
  442. package/tests/views/get-suggested-starter-packs.test.ts +0 -137
  443. package/tests/views/get-trends.test.ts +0 -141
  444. package/tests/views/internal-actor.test.ts +0 -127
  445. package/tests/views/known-followers.test.ts +0 -193
  446. package/tests/views/labeler-service.test.ts +0 -242
  447. package/tests/views/labels-needs-review.test.ts +0 -316
  448. package/tests/views/labels-takedown.test.ts +0 -247
  449. package/tests/views/likes.test.ts +0 -192
  450. package/tests/views/list-feed.test.ts +0 -195
  451. package/tests/views/lists.test.ts +0 -412
  452. package/tests/views/mute-lists.test.ts +0 -509
  453. package/tests/views/mutes.test.ts +0 -308
  454. package/tests/views/notifications.test.ts +0 -1581
  455. package/tests/views/post-search.test.ts +0 -200
  456. package/tests/views/posts-debug.test.ts +0 -79
  457. package/tests/views/posts.test.ts +0 -427
  458. package/tests/views/profile-debug.test.ts +0 -75
  459. package/tests/views/profile.test.ts +0 -795
  460. package/tests/views/quotes.test.ts +0 -133
  461. package/tests/views/reposts.test.ts +0 -112
  462. package/tests/views/starter-packs.test.ts +0 -395
  463. package/tests/views/suggestions.test.ts +0 -145
  464. package/tests/views/thread-v2.test.ts +0 -2005
  465. package/tests/views/thread.test.ts +0 -637
  466. package/tests/views/threadgating.test.ts +0 -843
  467. package/tests/views/timeline.test.ts +0 -328
  468. package/tests/views/verification.test.ts +0 -296
  469. package/tsconfig.build.json +0 -10
  470. package/tsconfig.build.tsbuildinfo +0 -1
  471. package/tsconfig.json +0 -7
  472. package/tsconfig.tests.json +0 -8
  473. package/vitest.config.ts +0 -10
@@ -1,3074 +0,0 @@
1
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
-
3
- exports[`notification views > does not generate self notifications for likes via own repost 1`] = `
4
- [
5
- {
6
- "author": {
7
- "associated": {
8
- "activitySubscription": {
9
- "allowSubscriptions": "followers",
10
- },
11
- },
12
- "did": "user(0)",
13
- "handle": "carol.test",
14
- "labels": [],
15
- "viewer": {
16
- "blockedBy": false,
17
- "muted": false,
18
- },
19
- },
20
- "cid": "cids(0)",
21
- "indexedAt": "1970-01-01T00:00:00.000Z",
22
- "isRead": false,
23
- "labels": [],
24
- "reason": "like",
25
- "reasonSubject": "record(1)",
26
- "record": {
27
- "$type": "app.bsky.feed.like",
28
- "createdAt": "1970-01-01T00:00:00.000Z",
29
- "subject": {
30
- "cid": "cids(2)",
31
- "uri": "record(1)",
32
- },
33
- "via": {
34
- "cid": "cids(1)",
35
- "uri": "record(2)",
36
- },
37
- },
38
- "uri": "record(0)",
39
- },
40
- {
41
- "author": {
42
- "associated": {
43
- "activitySubscription": {
44
- "allowSubscriptions": "followers",
45
- },
46
- },
47
- "avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(4)",
48
- "createdAt": "1970-01-01T00:00:00.000Z",
49
- "description": "its me!",
50
- "did": "user(1)",
51
- "displayName": "ali",
52
- "handle": "alice.test",
53
- "indexedAt": "1970-01-01T00:00:00.000Z",
54
- "labels": [
55
- {
56
- "cid": "cids(5)",
57
- "cts": "1970-01-01T00:00:00.000Z",
58
- "src": "user(1)",
59
- "uri": "record(5)",
60
- "val": "self-label-a",
61
- },
62
- {
63
- "cid": "cids(5)",
64
- "cts": "1970-01-01T00:00:00.000Z",
65
- "src": "user(1)",
66
- "uri": "record(5)",
67
- "val": "self-label-b",
68
- },
69
- ],
70
- "viewer": {
71
- "blockedBy": false,
72
- "followedBy": "record(4)",
73
- "muted": false,
74
- },
75
- },
76
- "cid": "cids(3)",
77
- "indexedAt": "1970-01-01T00:00:00.000Z",
78
- "isRead": true,
79
- "labels": [],
80
- "reason": "like",
81
- "reasonSubject": "record(1)",
82
- "record": {
83
- "$type": "app.bsky.feed.like",
84
- "createdAt": "1970-01-01T00:00:00.000Z",
85
- "subject": {
86
- "cid": "cids(2)",
87
- "uri": "record(1)",
88
- },
89
- "via": {
90
- "cid": "cids(1)",
91
- "uri": "record(2)",
92
- },
93
- },
94
- "uri": "record(3)",
95
- },
96
- ]
97
- `;
98
-
99
- exports[`notification views > does not generate self notifications for likes via own repost 2`] = `
100
- [
101
- {
102
- "author": {
103
- "associated": {
104
- "activitySubscription": {
105
- "allowSubscriptions": "followers",
106
- },
107
- },
108
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
109
- "createdAt": "1970-01-01T00:00:00.000Z",
110
- "description": "its me!",
111
- "did": "user(0)",
112
- "displayName": "ali",
113
- "handle": "alice.test",
114
- "indexedAt": "1970-01-01T00:00:00.000Z",
115
- "labels": [
116
- {
117
- "cid": "cids(2)",
118
- "cts": "1970-01-01T00:00:00.000Z",
119
- "src": "user(0)",
120
- "uri": "record(3)",
121
- "val": "self-label-a",
122
- },
123
- {
124
- "cid": "cids(2)",
125
- "cts": "1970-01-01T00:00:00.000Z",
126
- "src": "user(0)",
127
- "uri": "record(3)",
128
- "val": "self-label-b",
129
- },
130
- ],
131
- "viewer": {
132
- "blockedBy": false,
133
- "followedBy": "record(2)",
134
- "following": "record(1)",
135
- "muted": false,
136
- },
137
- },
138
- "cid": "cids(0)",
139
- "indexedAt": "1970-01-01T00:00:00.000Z",
140
- "isRead": false,
141
- "labels": [],
142
- "reason": "like-via-repost",
143
- "reasonSubject": "record(4)",
144
- "record": {
145
- "$type": "app.bsky.feed.like",
146
- "createdAt": "1970-01-01T00:00:00.000Z",
147
- "subject": {
148
- "cid": "cids(4)",
149
- "uri": "record(5)",
150
- },
151
- "via": {
152
- "cid": "cids(3)",
153
- "uri": "record(4)",
154
- },
155
- },
156
- "uri": "record(0)",
157
- },
158
- ]
159
- `;
160
-
161
- exports[`notification views > fetches notifications omitting mentions and replies for taken-down posts 1`] = `
162
- [
163
- {
164
- "author": {
165
- "associated": {
166
- "activitySubscription": {
167
- "allowSubscriptions": "followers",
168
- },
169
- "chat": {
170
- "allowIncoming": "none",
171
- },
172
- },
173
- "did": "user(0)",
174
- "handle": "dan.test",
175
- "labels": [],
176
- "viewer": {
177
- "blockedBy": false,
178
- "following": "record(1)",
179
- "muted": false,
180
- },
181
- },
182
- "cid": "cids(0)",
183
- "indexedAt": "1970-01-01T00:00:00.000Z",
184
- "isRead": false,
185
- "labels": [],
186
- "reason": "repost",
187
- "reasonSubject": "record(2)",
188
- "record": {
189
- "$type": "app.bsky.feed.repost",
190
- "createdAt": "1970-01-01T00:00:00.000Z",
191
- "subject": {
192
- "cid": "cids(1)",
193
- "uri": "record(2)",
194
- },
195
- },
196
- "uri": "record(0)",
197
- },
198
- {
199
- "author": {
200
- "associated": {
201
- "activitySubscription": {
202
- "allowSubscriptions": "followers",
203
- },
204
- "chat": {
205
- "allowIncoming": "none",
206
- },
207
- },
208
- "did": "user(0)",
209
- "handle": "dan.test",
210
- "labels": [],
211
- "viewer": {
212
- "blockedBy": false,
213
- "following": "record(1)",
214
- "muted": false,
215
- },
216
- },
217
- "cid": "cids(2)",
218
- "indexedAt": "1970-01-01T00:00:00.000Z",
219
- "isRead": false,
220
- "labels": [],
221
- "reason": "repost",
222
- "reasonSubject": "record(4)",
223
- "record": {
224
- "$type": "app.bsky.feed.repost",
225
- "createdAt": "1970-01-01T00:00:00.000Z",
226
- "subject": {
227
- "cid": "cids(3)",
228
- "uri": "record(4)",
229
- },
230
- },
231
- "uri": "record(3)",
232
- },
233
- {
234
- "author": {
235
- "associated": {
236
- "activitySubscription": {
237
- "allowSubscriptions": "followers",
238
- },
239
- "chat": {
240
- "allowIncoming": "none",
241
- },
242
- },
243
- "did": "user(0)",
244
- "handle": "dan.test",
245
- "labels": [],
246
- "viewer": {
247
- "blockedBy": false,
248
- "following": "record(1)",
249
- "muted": false,
250
- },
251
- },
252
- "cid": "cids(4)",
253
- "indexedAt": "1970-01-01T00:00:00.000Z",
254
- "isRead": false,
255
- "labels": [],
256
- "reason": "like",
257
- "reasonSubject": "record(4)",
258
- "record": {
259
- "$type": "app.bsky.feed.like",
260
- "createdAt": "1970-01-01T00:00:00.000Z",
261
- "subject": {
262
- "cid": "cids(3)",
263
- "uri": "record(4)",
264
- },
265
- },
266
- "uri": "record(5)",
267
- },
268
- {
269
- "author": {
270
- "associated": {
271
- "activitySubscription": {
272
- "allowSubscriptions": "followers",
273
- },
274
- },
275
- "did": "user(1)",
276
- "handle": "carol.test",
277
- "labels": [],
278
- "viewer": {
279
- "blockedBy": false,
280
- "followedBy": "record(6)",
281
- "following": "record(7)",
282
- "muted": false,
283
- },
284
- },
285
- "cid": "cids(5)",
286
- "indexedAt": "1970-01-01T00:00:00.000Z",
287
- "isRead": false,
288
- "labels": [],
289
- "reason": "follow",
290
- "record": {
291
- "$type": "app.bsky.graph.follow",
292
- "createdAt": "1970-01-01T00:00:00.000Z",
293
- "subject": "user(2)",
294
- },
295
- "uri": "record(6)",
296
- },
297
- {
298
- "author": {
299
- "associated": {
300
- "activitySubscription": {
301
- "allowSubscriptions": "followers",
302
- },
303
- },
304
- "did": "user(1)",
305
- "handle": "carol.test",
306
- "labels": [],
307
- "viewer": {
308
- "blockedBy": false,
309
- "followedBy": "record(6)",
310
- "following": "record(7)",
311
- "muted": false,
312
- },
313
- },
314
- "cid": "cids(6)",
315
- "indexedAt": "1970-01-01T00:00:00.000Z",
316
- "isRead": false,
317
- "labels": [],
318
- "reason": "reply",
319
- "reasonSubject": "record(2)",
320
- "record": {
321
- "$type": "app.bsky.feed.post",
322
- "createdAt": "1970-01-01T00:00:00.000Z",
323
- "reply": {
324
- "parent": {
325
- "cid": "cids(1)",
326
- "uri": "record(2)",
327
- },
328
- "root": {
329
- "cid": "cids(3)",
330
- "uri": "record(4)",
331
- },
332
- },
333
- "text": "indeed",
334
- },
335
- "uri": "record(8)",
336
- },
337
- {
338
- "author": {
339
- "associated": {
340
- "activitySubscription": {
341
- "allowSubscriptions": "followers",
342
- },
343
- },
344
- "did": "user(1)",
345
- "handle": "carol.test",
346
- "labels": [],
347
- "viewer": {
348
- "blockedBy": false,
349
- "followedBy": "record(6)",
350
- "following": "record(7)",
351
- "muted": false,
352
- },
353
- },
354
- "cid": "cids(7)",
355
- "indexedAt": "1970-01-01T00:00:00.000Z",
356
- "isRead": false,
357
- "labels": [],
358
- "reason": "like",
359
- "reasonSubject": "record(10)",
360
- "record": {
361
- "$type": "app.bsky.feed.like",
362
- "createdAt": "1970-01-01T00:00:00.000Z",
363
- "subject": {
364
- "cid": "cids(8)",
365
- "uri": "record(10)",
366
- },
367
- },
368
- "uri": "record(9)",
369
- },
370
- {
371
- "author": {
372
- "associated": {
373
- "activitySubscription": {
374
- "allowSubscriptions": "followers",
375
- },
376
- },
377
- "did": "user(1)",
378
- "handle": "carol.test",
379
- "labels": [],
380
- "viewer": {
381
- "blockedBy": false,
382
- "followedBy": "record(6)",
383
- "following": "record(7)",
384
- "muted": false,
385
- },
386
- },
387
- "cid": "cids(9)",
388
- "indexedAt": "1970-01-01T00:00:00.000Z",
389
- "isRead": false,
390
- "labels": [],
391
- "reason": "like",
392
- "reasonSubject": "record(4)",
393
- "record": {
394
- "$type": "app.bsky.feed.like",
395
- "createdAt": "1970-01-01T00:00:00.000Z",
396
- "subject": {
397
- "cid": "cids(3)",
398
- "uri": "record(4)",
399
- },
400
- },
401
- "uri": "record(11)",
402
- },
403
- {
404
- "author": {
405
- "associated": {
406
- "activitySubscription": {
407
- "allowSubscriptions": "followers",
408
- },
409
- },
410
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(11)",
411
- "createdAt": "1970-01-01T00:00:00.000Z",
412
- "description": "hi im bob label_me",
413
- "did": "user(3)",
414
- "displayName": "bobby",
415
- "handle": "bob.test",
416
- "indexedAt": "1970-01-01T00:00:00.000Z",
417
- "labels": [],
418
- "viewer": {
419
- "blockedBy": false,
420
- "followedBy": "record(12)",
421
- "following": "record(13)",
422
- "muted": false,
423
- },
424
- },
425
- "cid": "cids(10)",
426
- "indexedAt": "1970-01-01T00:00:00.000Z",
427
- "isRead": false,
428
- "labels": [],
429
- "reason": "follow",
430
- "record": {
431
- "$type": "app.bsky.graph.follow",
432
- "createdAt": "1970-01-01T00:00:00.000Z",
433
- "subject": "user(2)",
434
- },
435
- "uri": "record(12)",
436
- },
437
- {
438
- "author": {
439
- "associated": {
440
- "activitySubscription": {
441
- "allowSubscriptions": "followers",
442
- },
443
- },
444
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(11)",
445
- "createdAt": "1970-01-01T00:00:00.000Z",
446
- "description": "hi im bob label_me",
447
- "did": "user(3)",
448
- "displayName": "bobby",
449
- "handle": "bob.test",
450
- "indexedAt": "1970-01-01T00:00:00.000Z",
451
- "labels": [],
452
- "viewer": {
453
- "blockedBy": false,
454
- "followedBy": "record(12)",
455
- "following": "record(13)",
456
- "muted": false,
457
- },
458
- },
459
- "cid": "cids(12)",
460
- "indexedAt": "1970-01-01T00:00:00.000Z",
461
- "isRead": false,
462
- "labels": [
463
- {
464
- "cid": "cids(12)",
465
- "cts": "1970-01-01T00:00:00.000Z",
466
- "src": "did:example:labeler",
467
- "uri": "record(14)",
468
- "val": "test-label",
469
- },
470
- {
471
- "cid": "cids(12)",
472
- "cts": "1970-01-01T00:00:00.000Z",
473
- "src": "did:example:labeler",
474
- "uri": "record(14)",
475
- "val": "test-label-2",
476
- },
477
- ],
478
- "reason": "reply",
479
- "reasonSubject": "record(4)",
480
- "record": {
481
- "$type": "app.bsky.feed.post",
482
- "createdAt": "1970-01-01T00:00:00.000Z",
483
- "embed": {
484
- "$type": "app.bsky.embed.images",
485
- "images": [
486
- {
487
- "alt": "../dev-env/assets/key-landscape-small.jpg",
488
- "image": {
489
- "$type": "blob",
490
- "mimeType": "image/jpeg",
491
- "ref": {
492
- "$link": "cids(13)",
493
- },
494
- "size": 4114,
495
- },
496
- },
497
- ],
498
- },
499
- "reply": {
500
- "parent": {
501
- "cid": "cids(3)",
502
- "uri": "record(4)",
503
- },
504
- "root": {
505
- "cid": "cids(3)",
506
- "uri": "record(4)",
507
- },
508
- },
509
- "text": "hear that label_me label_me_2",
510
- },
511
- "uri": "record(14)",
512
- },
513
- {
514
- "author": {
515
- "associated": {
516
- "activitySubscription": {
517
- "allowSubscriptions": "followers",
518
- },
519
- },
520
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(11)",
521
- "createdAt": "1970-01-01T00:00:00.000Z",
522
- "description": "hi im bob label_me",
523
- "did": "user(3)",
524
- "displayName": "bobby",
525
- "handle": "bob.test",
526
- "indexedAt": "1970-01-01T00:00:00.000Z",
527
- "labels": [],
528
- "viewer": {
529
- "blockedBy": false,
530
- "followedBy": "record(12)",
531
- "following": "record(13)",
532
- "muted": false,
533
- },
534
- },
535
- "cid": "cids(14)",
536
- "indexedAt": "1970-01-01T00:00:00.000Z",
537
- "isRead": false,
538
- "labels": [],
539
- "reason": "like",
540
- "reasonSubject": "record(10)",
541
- "record": {
542
- "$type": "app.bsky.feed.like",
543
- "createdAt": "1970-01-01T00:00:00.000Z",
544
- "subject": {
545
- "cid": "cids(8)",
546
- "uri": "record(10)",
547
- },
548
- },
549
- "uri": "record(15)",
550
- },
551
- {
552
- "author": {
553
- "associated": {
554
- "activitySubscription": {
555
- "allowSubscriptions": "followers",
556
- },
557
- },
558
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(11)",
559
- "createdAt": "1970-01-01T00:00:00.000Z",
560
- "description": "hi im bob label_me",
561
- "did": "user(3)",
562
- "displayName": "bobby",
563
- "handle": "bob.test",
564
- "indexedAt": "1970-01-01T00:00:00.000Z",
565
- "labels": [],
566
- "viewer": {
567
- "blockedBy": false,
568
- "followedBy": "record(12)",
569
- "following": "record(13)",
570
- "muted": false,
571
- },
572
- },
573
- "cid": "cids(15)",
574
- "indexedAt": "1970-01-01T00:00:00.000Z",
575
- "isRead": false,
576
- "labels": [],
577
- "reason": "like",
578
- "reasonSubject": "record(4)",
579
- "record": {
580
- "$type": "app.bsky.feed.like",
581
- "createdAt": "1970-01-01T00:00:00.000Z",
582
- "subject": {
583
- "cid": "cids(3)",
584
- "uri": "record(4)",
585
- },
586
- },
587
- "uri": "record(16)",
588
- },
589
- ]
590
- `;
591
-
592
- exports[`notification views > fetches notifications with default priority 1`] = `
593
- {
594
- "cursor": "1970-01-01T00:00:00.000Z",
595
- "notifications": [
596
- {
597
- "author": {
598
- "associated": {
599
- "activitySubscription": {
600
- "allowSubscriptions": "followers",
601
- },
602
- },
603
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
604
- "createdAt": "1970-01-01T00:00:00.000Z",
605
- "description": "its me!",
606
- "did": "user(0)",
607
- "displayName": "ali",
608
- "handle": "alice.test",
609
- "indexedAt": "1970-01-01T00:00:00.000Z",
610
- "labels": [
611
- {
612
- "cid": "cids(2)",
613
- "cts": "1970-01-01T00:00:00.000Z",
614
- "src": "user(0)",
615
- "uri": "record(3)",
616
- "val": "self-label-a",
617
- },
618
- {
619
- "cid": "cids(2)",
620
- "cts": "1970-01-01T00:00:00.000Z",
621
- "src": "user(0)",
622
- "uri": "record(3)",
623
- "val": "self-label-b",
624
- },
625
- ],
626
- "viewer": {
627
- "blockedBy": false,
628
- "followedBy": "record(2)",
629
- "following": "record(1)",
630
- "muted": false,
631
- },
632
- },
633
- "cid": "cids(0)",
634
- "indexedAt": "1970-01-01T00:00:00.000Z",
635
- "isRead": true,
636
- "labels": [],
637
- "reason": "repost-via-repost",
638
- "reasonSubject": "record(4)",
639
- "record": {
640
- "$type": "app.bsky.feed.repost",
641
- "createdAt": "1970-01-01T00:00:00.000Z",
642
- "subject": {
643
- "cid": "cids(4)",
644
- "uri": "record(5)",
645
- },
646
- "via": {
647
- "cid": "cids(3)",
648
- "uri": "record(4)",
649
- },
650
- },
651
- "uri": "record(0)",
652
- },
653
- {
654
- "author": {
655
- "associated": {
656
- "activitySubscription": {
657
- "allowSubscriptions": "followers",
658
- },
659
- },
660
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
661
- "createdAt": "1970-01-01T00:00:00.000Z",
662
- "description": "its me!",
663
- "did": "user(0)",
664
- "displayName": "ali",
665
- "handle": "alice.test",
666
- "indexedAt": "1970-01-01T00:00:00.000Z",
667
- "labels": [
668
- {
669
- "cid": "cids(2)",
670
- "cts": "1970-01-01T00:00:00.000Z",
671
- "src": "user(0)",
672
- "uri": "record(3)",
673
- "val": "self-label-a",
674
- },
675
- {
676
- "cid": "cids(2)",
677
- "cts": "1970-01-01T00:00:00.000Z",
678
- "src": "user(0)",
679
- "uri": "record(3)",
680
- "val": "self-label-b",
681
- },
682
- ],
683
- "viewer": {
684
- "blockedBy": false,
685
- "followedBy": "record(2)",
686
- "following": "record(1)",
687
- "muted": false,
688
- },
689
- },
690
- "cid": "cids(5)",
691
- "indexedAt": "1970-01-01T00:00:00.000Z",
692
- "isRead": true,
693
- "labels": [],
694
- "reason": "like-via-repost",
695
- "reasonSubject": "record(4)",
696
- "record": {
697
- "$type": "app.bsky.feed.like",
698
- "createdAt": "1970-01-01T00:00:00.000Z",
699
- "subject": {
700
- "cid": "cids(4)",
701
- "uri": "record(5)",
702
- },
703
- "via": {
704
- "cid": "cids(3)",
705
- "uri": "record(4)",
706
- },
707
- },
708
- "uri": "record(6)",
709
- },
710
- {
711
- "author": {
712
- "associated": {
713
- "activitySubscription": {
714
- "allowSubscriptions": "followers",
715
- },
716
- },
717
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
718
- "createdAt": "1970-01-01T00:00:00.000Z",
719
- "description": "its me!",
720
- "did": "user(0)",
721
- "displayName": "ali",
722
- "handle": "alice.test",
723
- "indexedAt": "1970-01-01T00:00:00.000Z",
724
- "labels": [
725
- {
726
- "cid": "cids(2)",
727
- "cts": "1970-01-01T00:00:00.000Z",
728
- "src": "user(0)",
729
- "uri": "record(3)",
730
- "val": "self-label-a",
731
- },
732
- {
733
- "cid": "cids(2)",
734
- "cts": "1970-01-01T00:00:00.000Z",
735
- "src": "user(0)",
736
- "uri": "record(3)",
737
- "val": "self-label-b",
738
- },
739
- ],
740
- "viewer": {
741
- "blockedBy": false,
742
- "followedBy": "record(2)",
743
- "following": "record(1)",
744
- "muted": false,
745
- },
746
- },
747
- "cid": "cids(6)",
748
- "indexedAt": "1970-01-01T00:00:00.000Z",
749
- "isRead": true,
750
- "labels": [],
751
- "reason": "like",
752
- "reasonSubject": "record(8)",
753
- "record": {
754
- "$type": "app.bsky.feed.like",
755
- "createdAt": "1970-01-01T00:00:00.000000Z",
756
- "subject": {
757
- "cid": "cids(7)",
758
- "uri": "record(8)",
759
- },
760
- },
761
- "uri": "record(7)",
762
- },
763
- {
764
- "author": {
765
- "associated": {
766
- "activitySubscription": {
767
- "allowSubscriptions": "followers",
768
- },
769
- },
770
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
771
- "createdAt": "1970-01-01T00:00:00.000Z",
772
- "description": "its me!",
773
- "did": "user(0)",
774
- "displayName": "ali",
775
- "handle": "alice.test",
776
- "indexedAt": "1970-01-01T00:00:00.000Z",
777
- "labels": [
778
- {
779
- "cid": "cids(2)",
780
- "cts": "1970-01-01T00:00:00.000Z",
781
- "src": "user(0)",
782
- "uri": "record(3)",
783
- "val": "self-label-a",
784
- },
785
- {
786
- "cid": "cids(2)",
787
- "cts": "1970-01-01T00:00:00.000Z",
788
- "src": "user(0)",
789
- "uri": "record(3)",
790
- "val": "self-label-b",
791
- },
792
- ],
793
- "viewer": {
794
- "blockedBy": false,
795
- "followedBy": "record(2)",
796
- "following": "record(1)",
797
- "muted": false,
798
- },
799
- },
800
- "cid": "cids(8)",
801
- "indexedAt": "1970-01-01T00:00:00.000Z",
802
- "isRead": true,
803
- "labels": [],
804
- "reason": "follow",
805
- "record": {
806
- "$type": "app.bsky.graph.follow",
807
- "createdAt": "1970-01-01T00:00:00.000Z",
808
- "subject": "user(2)",
809
- },
810
- "uri": "record(2)",
811
- },
812
- ],
813
- "priority": true,
814
- "seenAt": "1970-01-01T00:00:00.000Z",
815
- }
816
- `;
817
-
818
- exports[`notification views > fetches notifications with explicit priority 1`] = `
819
- {
820
- "cursor": "1970-01-01T00:00:00.000Z",
821
- "notifications": [
822
- {
823
- "author": {
824
- "associated": {
825
- "activitySubscription": {
826
- "allowSubscriptions": "followers",
827
- },
828
- },
829
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
830
- "createdAt": "1970-01-01T00:00:00.000Z",
831
- "description": "its me!",
832
- "did": "user(0)",
833
- "displayName": "ali",
834
- "handle": "alice.test",
835
- "indexedAt": "1970-01-01T00:00:00.000Z",
836
- "labels": [
837
- {
838
- "cid": "cids(2)",
839
- "cts": "1970-01-01T00:00:00.000Z",
840
- "src": "user(0)",
841
- "uri": "record(3)",
842
- "val": "self-label-a",
843
- },
844
- {
845
- "cid": "cids(2)",
846
- "cts": "1970-01-01T00:00:00.000Z",
847
- "src": "user(0)",
848
- "uri": "record(3)",
849
- "val": "self-label-b",
850
- },
851
- ],
852
- "viewer": {
853
- "blockedBy": false,
854
- "followedBy": "record(2)",
855
- "following": "record(1)",
856
- "muted": false,
857
- },
858
- },
859
- "cid": "cids(0)",
860
- "indexedAt": "1970-01-01T00:00:00.000Z",
861
- "isRead": false,
862
- "labels": [],
863
- "reason": "repost-via-repost",
864
- "reasonSubject": "record(4)",
865
- "record": {
866
- "$type": "app.bsky.feed.repost",
867
- "createdAt": "1970-01-01T00:00:00.000Z",
868
- "subject": {
869
- "cid": "cids(4)",
870
- "uri": "record(5)",
871
- },
872
- "via": {
873
- "cid": "cids(3)",
874
- "uri": "record(4)",
875
- },
876
- },
877
- "uri": "record(0)",
878
- },
879
- {
880
- "author": {
881
- "associated": {
882
- "activitySubscription": {
883
- "allowSubscriptions": "followers",
884
- },
885
- },
886
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
887
- "createdAt": "1970-01-01T00:00:00.000Z",
888
- "description": "its me!",
889
- "did": "user(0)",
890
- "displayName": "ali",
891
- "handle": "alice.test",
892
- "indexedAt": "1970-01-01T00:00:00.000Z",
893
- "labels": [
894
- {
895
- "cid": "cids(2)",
896
- "cts": "1970-01-01T00:00:00.000Z",
897
- "src": "user(0)",
898
- "uri": "record(3)",
899
- "val": "self-label-a",
900
- },
901
- {
902
- "cid": "cids(2)",
903
- "cts": "1970-01-01T00:00:00.000Z",
904
- "src": "user(0)",
905
- "uri": "record(3)",
906
- "val": "self-label-b",
907
- },
908
- ],
909
- "viewer": {
910
- "blockedBy": false,
911
- "followedBy": "record(2)",
912
- "following": "record(1)",
913
- "muted": false,
914
- },
915
- },
916
- "cid": "cids(5)",
917
- "indexedAt": "1970-01-01T00:00:00.000Z",
918
- "isRead": true,
919
- "labels": [],
920
- "reason": "like-via-repost",
921
- "reasonSubject": "record(4)",
922
- "record": {
923
- "$type": "app.bsky.feed.like",
924
- "createdAt": "1970-01-01T00:00:00.000Z",
925
- "subject": {
926
- "cid": "cids(4)",
927
- "uri": "record(5)",
928
- },
929
- "via": {
930
- "cid": "cids(3)",
931
- "uri": "record(4)",
932
- },
933
- },
934
- "uri": "record(6)",
935
- },
936
- {
937
- "author": {
938
- "associated": {
939
- "activitySubscription": {
940
- "allowSubscriptions": "followers",
941
- },
942
- },
943
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
944
- "createdAt": "1970-01-01T00:00:00.000Z",
945
- "description": "its me!",
946
- "did": "user(0)",
947
- "displayName": "ali",
948
- "handle": "alice.test",
949
- "indexedAt": "1970-01-01T00:00:00.000Z",
950
- "labels": [
951
- {
952
- "cid": "cids(2)",
953
- "cts": "1970-01-01T00:00:00.000Z",
954
- "src": "user(0)",
955
- "uri": "record(3)",
956
- "val": "self-label-a",
957
- },
958
- {
959
- "cid": "cids(2)",
960
- "cts": "1970-01-01T00:00:00.000Z",
961
- "src": "user(0)",
962
- "uri": "record(3)",
963
- "val": "self-label-b",
964
- },
965
- ],
966
- "viewer": {
967
- "blockedBy": false,
968
- "followedBy": "record(2)",
969
- "following": "record(1)",
970
- "muted": false,
971
- },
972
- },
973
- "cid": "cids(6)",
974
- "indexedAt": "1970-01-01T00:00:00.000Z",
975
- "isRead": true,
976
- "labels": [],
977
- "reason": "like",
978
- "reasonSubject": "record(8)",
979
- "record": {
980
- "$type": "app.bsky.feed.like",
981
- "createdAt": "1970-01-01T00:00:00.000000Z",
982
- "subject": {
983
- "cid": "cids(7)",
984
- "uri": "record(8)",
985
- },
986
- },
987
- "uri": "record(7)",
988
- },
989
- {
990
- "author": {
991
- "associated": {
992
- "activitySubscription": {
993
- "allowSubscriptions": "followers",
994
- },
995
- },
996
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
997
- "createdAt": "1970-01-01T00:00:00.000Z",
998
- "description": "its me!",
999
- "did": "user(0)",
1000
- "displayName": "ali",
1001
- "handle": "alice.test",
1002
- "indexedAt": "1970-01-01T00:00:00.000Z",
1003
- "labels": [
1004
- {
1005
- "cid": "cids(2)",
1006
- "cts": "1970-01-01T00:00:00.000Z",
1007
- "src": "user(0)",
1008
- "uri": "record(3)",
1009
- "val": "self-label-a",
1010
- },
1011
- {
1012
- "cid": "cids(2)",
1013
- "cts": "1970-01-01T00:00:00.000Z",
1014
- "src": "user(0)",
1015
- "uri": "record(3)",
1016
- "val": "self-label-b",
1017
- },
1018
- ],
1019
- "viewer": {
1020
- "blockedBy": false,
1021
- "followedBy": "record(2)",
1022
- "following": "record(1)",
1023
- "muted": false,
1024
- },
1025
- },
1026
- "cid": "cids(8)",
1027
- "indexedAt": "1970-01-01T00:00:00.000Z",
1028
- "isRead": true,
1029
- "labels": [],
1030
- "reason": "follow",
1031
- "record": {
1032
- "$type": "app.bsky.graph.follow",
1033
- "createdAt": "1970-01-01T00:00:00.000Z",
1034
- "subject": "user(2)",
1035
- },
1036
- "uri": "record(2)",
1037
- },
1038
- ],
1039
- "priority": true,
1040
- "seenAt": "1970-01-01T00:00:00.000Z",
1041
- }
1042
- `;
1043
-
1044
- exports[`notification views > fetches notifications with explicit priority 2`] = `
1045
- {
1046
- "cursor": "1970-01-01T00:00:00.000Z",
1047
- "notifications": [
1048
- {
1049
- "author": {
1050
- "associated": {
1051
- "activitySubscription": {
1052
- "allowSubscriptions": "followers",
1053
- },
1054
- },
1055
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
1056
- "createdAt": "1970-01-01T00:00:00.000Z",
1057
- "description": "its me!",
1058
- "did": "user(0)",
1059
- "displayName": "ali",
1060
- "handle": "alice.test",
1061
- "indexedAt": "1970-01-01T00:00:00.000Z",
1062
- "labels": [
1063
- {
1064
- "cid": "cids(2)",
1065
- "cts": "1970-01-01T00:00:00.000Z",
1066
- "src": "user(0)",
1067
- "uri": "record(3)",
1068
- "val": "self-label-a",
1069
- },
1070
- {
1071
- "cid": "cids(2)",
1072
- "cts": "1970-01-01T00:00:00.000Z",
1073
- "src": "user(0)",
1074
- "uri": "record(3)",
1075
- "val": "self-label-b",
1076
- },
1077
- ],
1078
- "viewer": {
1079
- "blockedBy": false,
1080
- "followedBy": "record(2)",
1081
- "following": "record(1)",
1082
- "muted": false,
1083
- },
1084
- },
1085
- "cid": "cids(0)",
1086
- "indexedAt": "1970-01-01T00:00:00.000Z",
1087
- "isRead": false,
1088
- "labels": [],
1089
- "reason": "repost-via-repost",
1090
- "reasonSubject": "record(4)",
1091
- "record": {
1092
- "$type": "app.bsky.feed.repost",
1093
- "createdAt": "1970-01-01T00:00:00.000Z",
1094
- "subject": {
1095
- "cid": "cids(4)",
1096
- "uri": "record(5)",
1097
- },
1098
- "via": {
1099
- "cid": "cids(3)",
1100
- "uri": "record(4)",
1101
- },
1102
- },
1103
- "uri": "record(0)",
1104
- },
1105
- {
1106
- "author": {
1107
- "associated": {
1108
- "activitySubscription": {
1109
- "allowSubscriptions": "followers",
1110
- },
1111
- },
1112
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
1113
- "createdAt": "1970-01-01T00:00:00.000Z",
1114
- "description": "its me!",
1115
- "did": "user(0)",
1116
- "displayName": "ali",
1117
- "handle": "alice.test",
1118
- "indexedAt": "1970-01-01T00:00:00.000Z",
1119
- "labels": [
1120
- {
1121
- "cid": "cids(2)",
1122
- "cts": "1970-01-01T00:00:00.000Z",
1123
- "src": "user(0)",
1124
- "uri": "record(3)",
1125
- "val": "self-label-a",
1126
- },
1127
- {
1128
- "cid": "cids(2)",
1129
- "cts": "1970-01-01T00:00:00.000Z",
1130
- "src": "user(0)",
1131
- "uri": "record(3)",
1132
- "val": "self-label-b",
1133
- },
1134
- ],
1135
- "viewer": {
1136
- "blockedBy": false,
1137
- "followedBy": "record(2)",
1138
- "following": "record(1)",
1139
- "muted": false,
1140
- },
1141
- },
1142
- "cid": "cids(5)",
1143
- "indexedAt": "1970-01-01T00:00:00.000Z",
1144
- "isRead": true,
1145
- "labels": [],
1146
- "reason": "like-via-repost",
1147
- "reasonSubject": "record(4)",
1148
- "record": {
1149
- "$type": "app.bsky.feed.like",
1150
- "createdAt": "1970-01-01T00:00:00.000Z",
1151
- "subject": {
1152
- "cid": "cids(4)",
1153
- "uri": "record(5)",
1154
- },
1155
- "via": {
1156
- "cid": "cids(3)",
1157
- "uri": "record(4)",
1158
- },
1159
- },
1160
- "uri": "record(6)",
1161
- },
1162
- {
1163
- "author": {
1164
- "associated": {
1165
- "activitySubscription": {
1166
- "allowSubscriptions": "followers",
1167
- },
1168
- },
1169
- "avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)",
1170
- "createdAt": "1970-01-01T00:00:00.000Z",
1171
- "description": "hi im bob label_me",
1172
- "did": "user(2)",
1173
- "displayName": "bobby",
1174
- "handle": "bob.test",
1175
- "indexedAt": "1970-01-01T00:00:00.000Z",
1176
- "labels": [],
1177
- "viewer": {
1178
- "blockedBy": false,
1179
- "followedBy": "record(8)",
1180
- "muted": false,
1181
- },
1182
- },
1183
- "cid": "cids(6)",
1184
- "indexedAt": "1970-01-01T00:00:00.000Z",
1185
- "isRead": true,
1186
- "labels": [],
1187
- "reason": "like",
1188
- "reasonSubject": "record(9)",
1189
- "record": {
1190
- "$type": "app.bsky.feed.like",
1191
- "createdAt": "1970-01-01T00:00:00.000+00:00",
1192
- "subject": {
1193
- "cid": "cids(7)",
1194
- "uri": "record(9)",
1195
- },
1196
- },
1197
- "uri": "record(7)",
1198
- },
1199
- {
1200
- "author": {
1201
- "associated": {
1202
- "activitySubscription": {
1203
- "allowSubscriptions": "followers",
1204
- },
1205
- },
1206
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
1207
- "createdAt": "1970-01-01T00:00:00.000Z",
1208
- "description": "its me!",
1209
- "did": "user(0)",
1210
- "displayName": "ali",
1211
- "handle": "alice.test",
1212
- "indexedAt": "1970-01-01T00:00:00.000Z",
1213
- "labels": [
1214
- {
1215
- "cid": "cids(2)",
1216
- "cts": "1970-01-01T00:00:00.000Z",
1217
- "src": "user(0)",
1218
- "uri": "record(3)",
1219
- "val": "self-label-a",
1220
- },
1221
- {
1222
- "cid": "cids(2)",
1223
- "cts": "1970-01-01T00:00:00.000Z",
1224
- "src": "user(0)",
1225
- "uri": "record(3)",
1226
- "val": "self-label-b",
1227
- },
1228
- ],
1229
- "viewer": {
1230
- "blockedBy": false,
1231
- "followedBy": "record(2)",
1232
- "following": "record(1)",
1233
- "muted": false,
1234
- },
1235
- },
1236
- "cid": "cids(8)",
1237
- "indexedAt": "1970-01-01T00:00:00.000Z",
1238
- "isRead": true,
1239
- "labels": [],
1240
- "reason": "like",
1241
- "reasonSubject": "record(9)",
1242
- "record": {
1243
- "$type": "app.bsky.feed.like",
1244
- "createdAt": "1970-01-01T00:00:00.000000Z",
1245
- "subject": {
1246
- "cid": "cids(7)",
1247
- "uri": "record(9)",
1248
- },
1249
- },
1250
- "uri": "record(10)",
1251
- },
1252
- {
1253
- "author": {
1254
- "associated": {
1255
- "activitySubscription": {
1256
- "allowSubscriptions": "followers",
1257
- },
1258
- "chat": {
1259
- "allowIncoming": "none",
1260
- },
1261
- },
1262
- "did": "user(4)",
1263
- "handle": "dan.test",
1264
- "labels": [],
1265
- "viewer": {
1266
- "blockedBy": false,
1267
- "muted": false,
1268
- },
1269
- },
1270
- "cid": "cids(4)",
1271
- "indexedAt": "1970-01-01T00:00:00.000Z",
1272
- "isRead": true,
1273
- "labels": [],
1274
- "reason": "quote",
1275
- "reasonSubject": "record(9)",
1276
- "record": {
1277
- "$type": "app.bsky.feed.post",
1278
- "createdAt": "1970-01-01T00:00:00.000Z",
1279
- "embed": {
1280
- "$type": "app.bsky.embed.record",
1281
- "record": {
1282
- "cid": "cids(7)",
1283
- "uri": "record(9)",
1284
- },
1285
- },
1286
- "facets": [
1287
- {
1288
- "features": [
1289
- {
1290
- "$type": "app.bsky.richtext.facet#mention",
1291
- "did": "user(0)",
1292
- },
1293
- ],
1294
- "index": {
1295
- "byteEnd": 18,
1296
- "byteStart": 0,
1297
- },
1298
- },
1299
- ],
1300
- "text": "@alice.bluesky.xyz is the best",
1301
- },
1302
- "uri": "record(5)",
1303
- },
1304
- {
1305
- "author": {
1306
- "associated": {
1307
- "activitySubscription": {
1308
- "allowSubscriptions": "followers",
1309
- },
1310
- },
1311
- "avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(1)",
1312
- "createdAt": "1970-01-01T00:00:00.000Z",
1313
- "description": "hi im bob label_me",
1314
- "did": "user(2)",
1315
- "displayName": "bobby",
1316
- "handle": "bob.test",
1317
- "indexedAt": "1970-01-01T00:00:00.000Z",
1318
- "labels": [],
1319
- "viewer": {
1320
- "blockedBy": false,
1321
- "followedBy": "record(8)",
1322
- "muted": false,
1323
- },
1324
- },
1325
- "cid": "cids(9)",
1326
- "indexedAt": "1970-01-01T00:00:00.000Z",
1327
- "isRead": true,
1328
- "labels": [],
1329
- "reason": "follow",
1330
- "record": {
1331
- "$type": "app.bsky.graph.follow",
1332
- "createdAt": "1970-01-01T00:00:00.000000Z",
1333
- "subject": "user(5)",
1334
- },
1335
- "uri": "record(8)",
1336
- },
1337
- {
1338
- "author": {
1339
- "associated": {
1340
- "activitySubscription": {
1341
- "allowSubscriptions": "followers",
1342
- },
1343
- },
1344
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
1345
- "createdAt": "1970-01-01T00:00:00.000Z",
1346
- "description": "its me!",
1347
- "did": "user(0)",
1348
- "displayName": "ali",
1349
- "handle": "alice.test",
1350
- "indexedAt": "1970-01-01T00:00:00.000Z",
1351
- "labels": [
1352
- {
1353
- "cid": "cids(2)",
1354
- "cts": "1970-01-01T00:00:00.000Z",
1355
- "src": "user(0)",
1356
- "uri": "record(3)",
1357
- "val": "self-label-a",
1358
- },
1359
- {
1360
- "cid": "cids(2)",
1361
- "cts": "1970-01-01T00:00:00.000Z",
1362
- "src": "user(0)",
1363
- "uri": "record(3)",
1364
- "val": "self-label-b",
1365
- },
1366
- ],
1367
- "viewer": {
1368
- "blockedBy": false,
1369
- "followedBy": "record(2)",
1370
- "following": "record(1)",
1371
- "muted": false,
1372
- },
1373
- },
1374
- "cid": "cids(10)",
1375
- "indexedAt": "1970-01-01T00:00:00.000Z",
1376
- "isRead": true,
1377
- "labels": [],
1378
- "reason": "follow",
1379
- "record": {
1380
- "$type": "app.bsky.graph.follow",
1381
- "createdAt": "1970-01-01T00:00:00.000Z",
1382
- "subject": "user(5)",
1383
- },
1384
- "uri": "record(2)",
1385
- },
1386
- ],
1387
- "priority": false,
1388
- "seenAt": "1970-01-01T00:00:00.000Z",
1389
- }
1390
- `;
1391
-
1392
- exports[`notification views > fetches notifications without a last-seen 1`] = `
1393
- [
1394
- {
1395
- "author": {
1396
- "associated": {
1397
- "activitySubscription": {
1398
- "allowSubscriptions": "followers",
1399
- },
1400
- "chat": {
1401
- "allowIncoming": "none",
1402
- },
1403
- },
1404
- "did": "user(0)",
1405
- "handle": "dan.test",
1406
- "labels": [],
1407
- "viewer": {
1408
- "blockedBy": false,
1409
- "following": "record(1)",
1410
- "muted": false,
1411
- },
1412
- },
1413
- "cid": "cids(0)",
1414
- "indexedAt": "1970-01-01T00:00:00.000Z",
1415
- "isRead": true,
1416
- "labels": [],
1417
- "reason": "repost",
1418
- "reasonSubject": "record(2)",
1419
- "record": {
1420
- "$type": "app.bsky.feed.repost",
1421
- "createdAt": "1970-01-01T00:00:00.000Z",
1422
- "subject": {
1423
- "cid": "cids(1)",
1424
- "uri": "record(2)",
1425
- },
1426
- },
1427
- "uri": "record(0)",
1428
- },
1429
- {
1430
- "author": {
1431
- "associated": {
1432
- "activitySubscription": {
1433
- "allowSubscriptions": "followers",
1434
- },
1435
- "chat": {
1436
- "allowIncoming": "none",
1437
- },
1438
- },
1439
- "did": "user(0)",
1440
- "handle": "dan.test",
1441
- "labels": [],
1442
- "viewer": {
1443
- "blockedBy": false,
1444
- "following": "record(1)",
1445
- "muted": false,
1446
- },
1447
- },
1448
- "cid": "cids(2)",
1449
- "indexedAt": "1970-01-01T00:00:00.000Z",
1450
- "isRead": true,
1451
- "labels": [],
1452
- "reason": "repost",
1453
- "reasonSubject": "record(4)",
1454
- "record": {
1455
- "$type": "app.bsky.feed.repost",
1456
- "createdAt": "1970-01-01T00:00:00.000Z",
1457
- "subject": {
1458
- "cid": "cids(3)",
1459
- "uri": "record(4)",
1460
- },
1461
- },
1462
- "uri": "record(3)",
1463
- },
1464
- {
1465
- "author": {
1466
- "associated": {
1467
- "activitySubscription": {
1468
- "allowSubscriptions": "followers",
1469
- },
1470
- "chat": {
1471
- "allowIncoming": "none",
1472
- },
1473
- },
1474
- "did": "user(0)",
1475
- "handle": "dan.test",
1476
- "labels": [],
1477
- "viewer": {
1478
- "blockedBy": false,
1479
- "following": "record(1)",
1480
- "muted": false,
1481
- },
1482
- },
1483
- "cid": "cids(4)",
1484
- "indexedAt": "1970-01-01T00:00:00.000Z",
1485
- "isRead": true,
1486
- "labels": [],
1487
- "reason": "mention",
1488
- "record": {
1489
- "$type": "app.bsky.feed.post",
1490
- "createdAt": "1970-01-01T00:00:00.000Z",
1491
- "embed": {
1492
- "$type": "app.bsky.embed.record",
1493
- "record": {
1494
- "cid": "cids(5)",
1495
- "uri": "record(6)",
1496
- },
1497
- },
1498
- "facets": [
1499
- {
1500
- "features": [
1501
- {
1502
- "$type": "app.bsky.richtext.facet#mention",
1503
- "did": "user(1)",
1504
- },
1505
- ],
1506
- "index": {
1507
- "byteEnd": 18,
1508
- "byteStart": 0,
1509
- },
1510
- },
1511
- ],
1512
- "text": "@alice.bluesky.xyz is the best",
1513
- },
1514
- "uri": "record(5)",
1515
- },
1516
- {
1517
- "author": {
1518
- "associated": {
1519
- "activitySubscription": {
1520
- "allowSubscriptions": "followers",
1521
- },
1522
- "chat": {
1523
- "allowIncoming": "none",
1524
- },
1525
- },
1526
- "did": "user(0)",
1527
- "handle": "dan.test",
1528
- "labels": [],
1529
- "viewer": {
1530
- "blockedBy": false,
1531
- "following": "record(1)",
1532
- "muted": false,
1533
- },
1534
- },
1535
- "cid": "cids(6)",
1536
- "indexedAt": "1970-01-01T00:00:00.000Z",
1537
- "isRead": true,
1538
- "labels": [],
1539
- "reason": "like",
1540
- "reasonSubject": "record(4)",
1541
- "record": {
1542
- "$type": "app.bsky.feed.like",
1543
- "createdAt": "1970-01-01T00:00:00.000Z",
1544
- "subject": {
1545
- "cid": "cids(3)",
1546
- "uri": "record(4)",
1547
- },
1548
- },
1549
- "uri": "record(7)",
1550
- },
1551
- {
1552
- "author": {
1553
- "associated": {
1554
- "activitySubscription": {
1555
- "allowSubscriptions": "followers",
1556
- },
1557
- },
1558
- "did": "user(2)",
1559
- "handle": "carol.test",
1560
- "labels": [],
1561
- "viewer": {
1562
- "blockedBy": false,
1563
- "followedBy": "record(8)",
1564
- "following": "record(9)",
1565
- "muted": false,
1566
- },
1567
- },
1568
- "cid": "cids(7)",
1569
- "indexedAt": "1970-01-01T00:00:00.000Z",
1570
- "isRead": true,
1571
- "labels": [],
1572
- "reason": "follow",
1573
- "record": {
1574
- "$type": "app.bsky.graph.follow",
1575
- "createdAt": "1970-01-01T00:00:00.000Z",
1576
- "subject": "user(1)",
1577
- },
1578
- "uri": "record(8)",
1579
- },
1580
- {
1581
- "author": {
1582
- "associated": {
1583
- "activitySubscription": {
1584
- "allowSubscriptions": "followers",
1585
- },
1586
- },
1587
- "did": "user(2)",
1588
- "handle": "carol.test",
1589
- "labels": [],
1590
- "viewer": {
1591
- "blockedBy": false,
1592
- "followedBy": "record(8)",
1593
- "following": "record(9)",
1594
- "muted": false,
1595
- },
1596
- },
1597
- "cid": "cids(8)",
1598
- "indexedAt": "1970-01-01T00:00:00.000Z",
1599
- "isRead": false,
1600
- "labels": [],
1601
- "reason": "reply",
1602
- "reasonSubject": "record(2)",
1603
- "record": {
1604
- "$type": "app.bsky.feed.post",
1605
- "createdAt": "1970-01-01T00:00:00.000Z",
1606
- "reply": {
1607
- "parent": {
1608
- "cid": "cids(1)",
1609
- "uri": "record(2)",
1610
- },
1611
- "root": {
1612
- "cid": "cids(3)",
1613
- "uri": "record(4)",
1614
- },
1615
- },
1616
- "text": "indeed",
1617
- },
1618
- "uri": "record(10)",
1619
- },
1620
- {
1621
- "author": {
1622
- "associated": {
1623
- "activitySubscription": {
1624
- "allowSubscriptions": "followers",
1625
- },
1626
- },
1627
- "did": "user(2)",
1628
- "handle": "carol.test",
1629
- "labels": [],
1630
- "viewer": {
1631
- "blockedBy": false,
1632
- "followedBy": "record(8)",
1633
- "following": "record(9)",
1634
- "muted": false,
1635
- },
1636
- },
1637
- "cid": "cids(9)",
1638
- "indexedAt": "1970-01-01T00:00:00.000Z",
1639
- "isRead": true,
1640
- "labels": [],
1641
- "reason": "reply",
1642
- "reasonSubject": "record(4)",
1643
- "record": {
1644
- "$type": "app.bsky.feed.post",
1645
- "createdAt": "1970-01-01T00:00:00.000Z",
1646
- "reply": {
1647
- "parent": {
1648
- "cid": "cids(3)",
1649
- "uri": "record(4)",
1650
- },
1651
- "root": {
1652
- "cid": "cids(3)",
1653
- "uri": "record(4)",
1654
- },
1655
- },
1656
- "text": "of course",
1657
- },
1658
- "uri": "record(11)",
1659
- },
1660
- {
1661
- "author": {
1662
- "associated": {
1663
- "activitySubscription": {
1664
- "allowSubscriptions": "followers",
1665
- },
1666
- },
1667
- "did": "user(2)",
1668
- "handle": "carol.test",
1669
- "labels": [],
1670
- "viewer": {
1671
- "blockedBy": false,
1672
- "followedBy": "record(8)",
1673
- "following": "record(9)",
1674
- "muted": false,
1675
- },
1676
- },
1677
- "cid": "cids(10)",
1678
- "indexedAt": "1970-01-01T00:00:00.000Z",
1679
- "isRead": true,
1680
- "labels": [],
1681
- "reason": "like",
1682
- "reasonSubject": "record(13)",
1683
- "record": {
1684
- "$type": "app.bsky.feed.like",
1685
- "createdAt": "1970-01-01T00:00:00.000Z",
1686
- "subject": {
1687
- "cid": "cids(11)",
1688
- "uri": "record(13)",
1689
- },
1690
- },
1691
- "uri": "record(12)",
1692
- },
1693
- {
1694
- "author": {
1695
- "associated": {
1696
- "activitySubscription": {
1697
- "allowSubscriptions": "followers",
1698
- },
1699
- },
1700
- "did": "user(2)",
1701
- "handle": "carol.test",
1702
- "labels": [],
1703
- "viewer": {
1704
- "blockedBy": false,
1705
- "followedBy": "record(8)",
1706
- "following": "record(9)",
1707
- "muted": false,
1708
- },
1709
- },
1710
- "cid": "cids(12)",
1711
- "indexedAt": "1970-01-01T00:00:00.000Z",
1712
- "isRead": true,
1713
- "labels": [],
1714
- "reason": "like",
1715
- "reasonSubject": "record(4)",
1716
- "record": {
1717
- "$type": "app.bsky.feed.like",
1718
- "createdAt": "1970-01-01T00:00:00.000Z",
1719
- "subject": {
1720
- "cid": "cids(3)",
1721
- "uri": "record(4)",
1722
- },
1723
- },
1724
- "uri": "record(14)",
1725
- },
1726
- {
1727
- "author": {
1728
- "associated": {
1729
- "activitySubscription": {
1730
- "allowSubscriptions": "followers",
1731
- },
1732
- },
1733
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(14)",
1734
- "createdAt": "1970-01-01T00:00:00.000Z",
1735
- "description": "hi im bob label_me",
1736
- "did": "user(3)",
1737
- "displayName": "bobby",
1738
- "handle": "bob.test",
1739
- "indexedAt": "1970-01-01T00:00:00.000Z",
1740
- "labels": [],
1741
- "viewer": {
1742
- "blockedBy": false,
1743
- "followedBy": "record(15)",
1744
- "following": "record(16)",
1745
- "muted": false,
1746
- },
1747
- },
1748
- "cid": "cids(13)",
1749
- "indexedAt": "1970-01-01T00:00:00.000Z",
1750
- "isRead": true,
1751
- "labels": [],
1752
- "reason": "follow",
1753
- "record": {
1754
- "$type": "app.bsky.graph.follow",
1755
- "createdAt": "1970-01-01T00:00:00.000Z",
1756
- "subject": "user(1)",
1757
- },
1758
- "uri": "record(15)",
1759
- },
1760
- {
1761
- "author": {
1762
- "associated": {
1763
- "activitySubscription": {
1764
- "allowSubscriptions": "followers",
1765
- },
1766
- },
1767
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(14)",
1768
- "createdAt": "1970-01-01T00:00:00.000Z",
1769
- "description": "hi im bob label_me",
1770
- "did": "user(3)",
1771
- "displayName": "bobby",
1772
- "handle": "bob.test",
1773
- "indexedAt": "1970-01-01T00:00:00.000Z",
1774
- "labels": [],
1775
- "viewer": {
1776
- "blockedBy": false,
1777
- "followedBy": "record(15)",
1778
- "following": "record(16)",
1779
- "muted": false,
1780
- },
1781
- },
1782
- "cid": "cids(15)",
1783
- "indexedAt": "1970-01-01T00:00:00.000Z",
1784
- "isRead": true,
1785
- "labels": [
1786
- {
1787
- "cid": "cids(15)",
1788
- "cts": "1970-01-01T00:00:00.000Z",
1789
- "src": "did:example:labeler",
1790
- "uri": "record(17)",
1791
- "val": "test-label",
1792
- },
1793
- {
1794
- "cid": "cids(15)",
1795
- "cts": "1970-01-01T00:00:00.000Z",
1796
- "src": "did:example:labeler",
1797
- "uri": "record(17)",
1798
- "val": "test-label-2",
1799
- },
1800
- ],
1801
- "reason": "reply",
1802
- "reasonSubject": "record(4)",
1803
- "record": {
1804
- "$type": "app.bsky.feed.post",
1805
- "createdAt": "1970-01-01T00:00:00.000Z",
1806
- "embed": {
1807
- "$type": "app.bsky.embed.images",
1808
- "images": [
1809
- {
1810
- "alt": "../dev-env/assets/key-landscape-small.jpg",
1811
- "image": {
1812
- "$type": "blob",
1813
- "mimeType": "image/jpeg",
1814
- "ref": {
1815
- "$link": "cids(16)",
1816
- },
1817
- "size": 4114,
1818
- },
1819
- },
1820
- ],
1821
- },
1822
- "reply": {
1823
- "parent": {
1824
- "cid": "cids(3)",
1825
- "uri": "record(4)",
1826
- },
1827
- "root": {
1828
- "cid": "cids(3)",
1829
- "uri": "record(4)",
1830
- },
1831
- },
1832
- "text": "hear that label_me label_me_2",
1833
- },
1834
- "uri": "record(17)",
1835
- },
1836
- {
1837
- "author": {
1838
- "associated": {
1839
- "activitySubscription": {
1840
- "allowSubscriptions": "followers",
1841
- },
1842
- },
1843
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(14)",
1844
- "createdAt": "1970-01-01T00:00:00.000Z",
1845
- "description": "hi im bob label_me",
1846
- "did": "user(3)",
1847
- "displayName": "bobby",
1848
- "handle": "bob.test",
1849
- "indexedAt": "1970-01-01T00:00:00.000Z",
1850
- "labels": [],
1851
- "viewer": {
1852
- "blockedBy": false,
1853
- "followedBy": "record(15)",
1854
- "following": "record(16)",
1855
- "muted": false,
1856
- },
1857
- },
1858
- "cid": "cids(17)",
1859
- "indexedAt": "1970-01-01T00:00:00.000Z",
1860
- "isRead": true,
1861
- "labels": [],
1862
- "reason": "like",
1863
- "reasonSubject": "record(13)",
1864
- "record": {
1865
- "$type": "app.bsky.feed.like",
1866
- "createdAt": "1970-01-01T00:00:00.000Z",
1867
- "subject": {
1868
- "cid": "cids(11)",
1869
- "uri": "record(13)",
1870
- },
1871
- },
1872
- "uri": "record(18)",
1873
- },
1874
- {
1875
- "author": {
1876
- "associated": {
1877
- "activitySubscription": {
1878
- "allowSubscriptions": "followers",
1879
- },
1880
- },
1881
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(14)",
1882
- "createdAt": "1970-01-01T00:00:00.000Z",
1883
- "description": "hi im bob label_me",
1884
- "did": "user(3)",
1885
- "displayName": "bobby",
1886
- "handle": "bob.test",
1887
- "indexedAt": "1970-01-01T00:00:00.000Z",
1888
- "labels": [],
1889
- "viewer": {
1890
- "blockedBy": false,
1891
- "followedBy": "record(15)",
1892
- "following": "record(16)",
1893
- "muted": false,
1894
- },
1895
- },
1896
- "cid": "cids(18)",
1897
- "indexedAt": "1970-01-01T00:00:00.000Z",
1898
- "isRead": true,
1899
- "labels": [],
1900
- "reason": "like",
1901
- "reasonSubject": "record(4)",
1902
- "record": {
1903
- "$type": "app.bsky.feed.like",
1904
- "createdAt": "1970-01-01T00:00:00.000Z",
1905
- "subject": {
1906
- "cid": "cids(3)",
1907
- "uri": "record(4)",
1908
- },
1909
- },
1910
- "uri": "record(19)",
1911
- },
1912
- ]
1913
- `;
1914
-
1915
- exports[`notification views > filters notifications by multiple reasons 1`] = `
1916
- {
1917
- "notifications": [
1918
- {
1919
- "author": {
1920
- "associated": {
1921
- "activitySubscription": {
1922
- "allowSubscriptions": "followers",
1923
- },
1924
- },
1925
- "did": "user(0)",
1926
- "handle": "carol.test",
1927
- "labels": [],
1928
- "viewer": {
1929
- "blockedBy": false,
1930
- "followedBy": "record(2)",
1931
- "following": "record(1)",
1932
- "muted": false,
1933
- },
1934
- },
1935
- "cid": "cids(0)",
1936
- "indexedAt": "1970-01-01T00:00:00.000Z",
1937
- "isRead": false,
1938
- "labels": [],
1939
- "reason": "reply",
1940
- "reasonSubject": "record(3)",
1941
- "record": {
1942
- "$type": "app.bsky.feed.post",
1943
- "createdAt": "1970-01-01T00:00:00.000Z",
1944
- "reply": {
1945
- "parent": {
1946
- "cid": "cids(2)",
1947
- "uri": "record(3)",
1948
- },
1949
- "root": {
1950
- "cid": "cids(1)",
1951
- "uri": "record(4)",
1952
- },
1953
- },
1954
- "text": "indeed",
1955
- },
1956
- "uri": "record(0)",
1957
- },
1958
- {
1959
- "author": {
1960
- "associated": {
1961
- "activitySubscription": {
1962
- "allowSubscriptions": "followers",
1963
- },
1964
- },
1965
- "did": "user(0)",
1966
- "handle": "carol.test",
1967
- "labels": [],
1968
- "viewer": {
1969
- "blockedBy": false,
1970
- "followedBy": "record(2)",
1971
- "following": "record(1)",
1972
- "muted": false,
1973
- },
1974
- },
1975
- "cid": "cids(3)",
1976
- "indexedAt": "1970-01-01T00:00:00.000Z",
1977
- "isRead": false,
1978
- "labels": [],
1979
- "reason": "reply",
1980
- "reasonSubject": "record(4)",
1981
- "record": {
1982
- "$type": "app.bsky.feed.post",
1983
- "createdAt": "1970-01-01T00:00:00.000Z",
1984
- "reply": {
1985
- "parent": {
1986
- "cid": "cids(1)",
1987
- "uri": "record(4)",
1988
- },
1989
- "root": {
1990
- "cid": "cids(1)",
1991
- "uri": "record(4)",
1992
- },
1993
- },
1994
- "text": "of course",
1995
- },
1996
- "uri": "record(5)",
1997
- },
1998
- {
1999
- "author": {
2000
- "associated": {
2001
- "activitySubscription": {
2002
- "allowSubscriptions": "followers",
2003
- },
2004
- },
2005
- "avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(5)",
2006
- "createdAt": "1970-01-01T00:00:00.000Z",
2007
- "description": "hi im bob label_me",
2008
- "did": "user(1)",
2009
- "displayName": "bobby",
2010
- "handle": "bob.test",
2011
- "indexedAt": "1970-01-01T00:00:00.000Z",
2012
- "labels": [],
2013
- "viewer": {
2014
- "blockedBy": false,
2015
- "followedBy": "record(8)",
2016
- "following": "record(7)",
2017
- "muted": false,
2018
- },
2019
- },
2020
- "cid": "cids(4)",
2021
- "indexedAt": "1970-01-01T00:00:00.000Z",
2022
- "isRead": false,
2023
- "labels": [
2024
- {
2025
- "cid": "cids(4)",
2026
- "cts": "1970-01-01T00:00:00.000Z",
2027
- "src": "did:example:labeler",
2028
- "uri": "record(6)",
2029
- "val": "test-label",
2030
- },
2031
- {
2032
- "cid": "cids(4)",
2033
- "cts": "1970-01-01T00:00:00.000Z",
2034
- "src": "did:example:labeler",
2035
- "uri": "record(6)",
2036
- "val": "test-label-2",
2037
- },
2038
- ],
2039
- "reason": "reply",
2040
- "reasonSubject": "record(4)",
2041
- "record": {
2042
- "$type": "app.bsky.feed.post",
2043
- "createdAt": "1970-01-01T00:00:00.000Z",
2044
- "embed": {
2045
- "$type": "app.bsky.embed.images",
2046
- "images": [
2047
- {
2048
- "alt": "../dev-env/assets/key-landscape-small.jpg",
2049
- "image": {
2050
- "$type": "blob",
2051
- "mimeType": "image/jpeg",
2052
- "ref": {
2053
- "$link": "cids(6)",
2054
- },
2055
- "size": 4114,
2056
- },
2057
- },
2058
- ],
2059
- },
2060
- "reply": {
2061
- "parent": {
2062
- "cid": "cids(1)",
2063
- "uri": "record(4)",
2064
- },
2065
- "root": {
2066
- "cid": "cids(1)",
2067
- "uri": "record(4)",
2068
- },
2069
- },
2070
- "text": "hear that label_me label_me_2",
2071
- },
2072
- "uri": "record(6)",
2073
- },
2074
- {
2075
- "author": {
2076
- "associated": {
2077
- "activitySubscription": {
2078
- "allowSubscriptions": "followers",
2079
- },
2080
- "chat": {
2081
- "allowIncoming": "none",
2082
- },
2083
- },
2084
- "did": "user(3)",
2085
- "handle": "dan.test",
2086
- "labels": [],
2087
- "viewer": {
2088
- "blockedBy": false,
2089
- "following": "record(10)",
2090
- "muted": false,
2091
- },
2092
- },
2093
- "cid": "cids(7)",
2094
- "indexedAt": "1970-01-01T00:00:00.000Z",
2095
- "isRead": false,
2096
- "labels": [],
2097
- "reason": "mention",
2098
- "record": {
2099
- "$type": "app.bsky.feed.post",
2100
- "createdAt": "1970-01-01T00:00:00.000Z",
2101
- "embed": {
2102
- "$type": "app.bsky.embed.record",
2103
- "record": {
2104
- "cid": "cids(8)",
2105
- "uri": "record(11)",
2106
- },
2107
- },
2108
- "facets": [
2109
- {
2110
- "features": [
2111
- {
2112
- "$type": "app.bsky.richtext.facet#mention",
2113
- "did": "user(4)",
2114
- },
2115
- ],
2116
- "index": {
2117
- "byteEnd": 18,
2118
- "byteStart": 0,
2119
- },
2120
- },
2121
- ],
2122
- "text": "@alice.bluesky.xyz is the best",
2123
- },
2124
- "uri": "record(9)",
2125
- },
2126
- ],
2127
- "priority": false,
2128
- "seenAt": "1970-01-01T00:00:00.000Z",
2129
- }
2130
- `;
2131
-
2132
- exports[`notification views > filters notifications by reason 1`] = `
2133
- {
2134
- "notifications": [
2135
- {
2136
- "author": {
2137
- "associated": {
2138
- "activitySubscription": {
2139
- "allowSubscriptions": "followers",
2140
- },
2141
- "chat": {
2142
- "allowIncoming": "none",
2143
- },
2144
- },
2145
- "did": "user(0)",
2146
- "handle": "dan.test",
2147
- "labels": [],
2148
- "viewer": {
2149
- "blockedBy": false,
2150
- "following": "record(1)",
2151
- "muted": false,
2152
- },
2153
- },
2154
- "cid": "cids(0)",
2155
- "indexedAt": "1970-01-01T00:00:00.000Z",
2156
- "isRead": false,
2157
- "labels": [],
2158
- "reason": "mention",
2159
- "record": {
2160
- "$type": "app.bsky.feed.post",
2161
- "createdAt": "1970-01-01T00:00:00.000Z",
2162
- "embed": {
2163
- "$type": "app.bsky.embed.record",
2164
- "record": {
2165
- "cid": "cids(1)",
2166
- "uri": "record(2)",
2167
- },
2168
- },
2169
- "facets": [
2170
- {
2171
- "features": [
2172
- {
2173
- "$type": "app.bsky.richtext.facet#mention",
2174
- "did": "user(1)",
2175
- },
2176
- ],
2177
- "index": {
2178
- "byteEnd": 18,
2179
- "byteStart": 0,
2180
- },
2181
- },
2182
- ],
2183
- "text": "@alice.bluesky.xyz is the best",
2184
- },
2185
- "uri": "record(0)",
2186
- },
2187
- ],
2188
- "priority": false,
2189
- "seenAt": "1970-01-01T00:00:00.000Z",
2190
- }
2191
- `;
2192
-
2193
- exports[`notification views > generates notifications for likes 1`] = `
2194
- [
2195
- {
2196
- "author": {
2197
- "associated": {
2198
- "activitySubscription": {
2199
- "allowSubscriptions": "followers",
2200
- },
2201
- "chat": {
2202
- "allowIncoming": "none",
2203
- },
2204
- },
2205
- "did": "user(0)",
2206
- "handle": "dan.test",
2207
- "labels": [],
2208
- "viewer": {
2209
- "blockedBy": false,
2210
- "following": "record(1)",
2211
- "muted": false,
2212
- },
2213
- },
2214
- "cid": "cids(0)",
2215
- "indexedAt": "1970-01-01T00:00:00.000Z",
2216
- "isRead": true,
2217
- "labels": [],
2218
- "reason": "like",
2219
- "reasonSubject": "record(2)",
2220
- "record": {
2221
- "$type": "app.bsky.feed.like",
2222
- "createdAt": "1970-01-01T00:00:00.000Z",
2223
- "subject": {
2224
- "cid": "cids(1)",
2225
- "uri": "record(2)",
2226
- },
2227
- },
2228
- "uri": "record(0)",
2229
- },
2230
- {
2231
- "author": {
2232
- "associated": {
2233
- "activitySubscription": {
2234
- "allowSubscriptions": "followers",
2235
- },
2236
- },
2237
- "did": "user(1)",
2238
- "handle": "carol.test",
2239
- "labels": [],
2240
- "viewer": {
2241
- "blockedBy": false,
2242
- "followedBy": "record(5)",
2243
- "following": "record(4)",
2244
- "muted": false,
2245
- },
2246
- },
2247
- "cid": "cids(2)",
2248
- "indexedAt": "1970-01-01T00:00:00.000Z",
2249
- "isRead": true,
2250
- "labels": [],
2251
- "reason": "like",
2252
- "reasonSubject": "record(6)",
2253
- "record": {
2254
- "$type": "app.bsky.feed.like",
2255
- "createdAt": "1970-01-01T00:00:00.000Z",
2256
- "subject": {
2257
- "cid": "cids(3)",
2258
- "uri": "record(6)",
2259
- },
2260
- },
2261
- "uri": "record(3)",
2262
- },
2263
- {
2264
- "author": {
2265
- "associated": {
2266
- "activitySubscription": {
2267
- "allowSubscriptions": "followers",
2268
- },
2269
- },
2270
- "did": "user(1)",
2271
- "handle": "carol.test",
2272
- "labels": [],
2273
- "viewer": {
2274
- "blockedBy": false,
2275
- "followedBy": "record(5)",
2276
- "following": "record(4)",
2277
- "muted": false,
2278
- },
2279
- },
2280
- "cid": "cids(4)",
2281
- "indexedAt": "1970-01-01T00:00:00.000Z",
2282
- "isRead": true,
2283
- "labels": [],
2284
- "reason": "like",
2285
- "reasonSubject": "record(2)",
2286
- "record": {
2287
- "$type": "app.bsky.feed.like",
2288
- "createdAt": "1970-01-01T00:00:00.000Z",
2289
- "subject": {
2290
- "cid": "cids(1)",
2291
- "uri": "record(2)",
2292
- },
2293
- },
2294
- "uri": "record(7)",
2295
- },
2296
- {
2297
- "author": {
2298
- "associated": {
2299
- "activitySubscription": {
2300
- "allowSubscriptions": "followers",
2301
- },
2302
- },
2303
- "avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(6)",
2304
- "createdAt": "1970-01-01T00:00:00.000Z",
2305
- "description": "hi im bob label_me",
2306
- "did": "user(2)",
2307
- "displayName": "bobby",
2308
- "handle": "bob.test",
2309
- "indexedAt": "1970-01-01T00:00:00.000Z",
2310
- "labels": [],
2311
- "viewer": {
2312
- "blockedBy": false,
2313
- "followedBy": "record(10)",
2314
- "following": "record(9)",
2315
- "muted": false,
2316
- },
2317
- },
2318
- "cid": "cids(5)",
2319
- "indexedAt": "1970-01-01T00:00:00.000Z",
2320
- "isRead": true,
2321
- "labels": [],
2322
- "reason": "like",
2323
- "reasonSubject": "record(6)",
2324
- "record": {
2325
- "$type": "app.bsky.feed.like",
2326
- "createdAt": "1970-01-01T00:00:00.000Z",
2327
- "subject": {
2328
- "cid": "cids(3)",
2329
- "uri": "record(6)",
2330
- },
2331
- },
2332
- "uri": "record(8)",
2333
- },
2334
- {
2335
- "author": {
2336
- "associated": {
2337
- "activitySubscription": {
2338
- "allowSubscriptions": "followers",
2339
- },
2340
- },
2341
- "avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(6)",
2342
- "createdAt": "1970-01-01T00:00:00.000Z",
2343
- "description": "hi im bob label_me",
2344
- "did": "user(2)",
2345
- "displayName": "bobby",
2346
- "handle": "bob.test",
2347
- "indexedAt": "1970-01-01T00:00:00.000Z",
2348
- "labels": [],
2349
- "viewer": {
2350
- "blockedBy": false,
2351
- "followedBy": "record(10)",
2352
- "following": "record(9)",
2353
- "muted": false,
2354
- },
2355
- },
2356
- "cid": "cids(7)",
2357
- "indexedAt": "1970-01-01T00:00:00.000Z",
2358
- "isRead": true,
2359
- "labels": [],
2360
- "reason": "like",
2361
- "reasonSubject": "record(2)",
2362
- "record": {
2363
- "$type": "app.bsky.feed.like",
2364
- "createdAt": "1970-01-01T00:00:00.000Z",
2365
- "subject": {
2366
- "cid": "cids(1)",
2367
- "uri": "record(2)",
2368
- },
2369
- },
2370
- "uri": "record(11)",
2371
- },
2372
- ]
2373
- `;
2374
-
2375
- exports[`notification views > generates notifications for likes via repost 1`] = `
2376
- [
2377
- {
2378
- "author": {
2379
- "associated": {
2380
- "activitySubscription": {
2381
- "allowSubscriptions": "followers",
2382
- },
2383
- },
2384
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
2385
- "createdAt": "1970-01-01T00:00:00.000Z",
2386
- "description": "its me!",
2387
- "did": "user(0)",
2388
- "displayName": "ali",
2389
- "handle": "alice.test",
2390
- "indexedAt": "1970-01-01T00:00:00.000Z",
2391
- "labels": [
2392
- {
2393
- "cid": "cids(2)",
2394
- "cts": "1970-01-01T00:00:00.000Z",
2395
- "src": "user(0)",
2396
- "uri": "record(2)",
2397
- "val": "self-label-a",
2398
- },
2399
- {
2400
- "cid": "cids(2)",
2401
- "cts": "1970-01-01T00:00:00.000Z",
2402
- "src": "user(0)",
2403
- "uri": "record(2)",
2404
- "val": "self-label-b",
2405
- },
2406
- ],
2407
- "viewer": {
2408
- "blockedBy": false,
2409
- "followedBy": "record(1)",
2410
- "muted": false,
2411
- },
2412
- },
2413
- "cid": "cids(0)",
2414
- "indexedAt": "1970-01-01T00:00:00.000Z",
2415
- "isRead": false,
2416
- "labels": [],
2417
- "reason": "like",
2418
- "reasonSubject": "record(3)",
2419
- "record": {
2420
- "$type": "app.bsky.feed.like",
2421
- "createdAt": "1970-01-01T00:00:00.000Z",
2422
- "subject": {
2423
- "cid": "cids(4)",
2424
- "uri": "record(3)",
2425
- },
2426
- "via": {
2427
- "cid": "cids(3)",
2428
- "uri": "record(4)",
2429
- },
2430
- },
2431
- "uri": "record(0)",
2432
- },
2433
- ]
2434
- `;
2435
-
2436
- exports[`notification views > generates notifications for likes via repost 2`] = `
2437
- [
2438
- {
2439
- "author": {
2440
- "associated": {
2441
- "activitySubscription": {
2442
- "allowSubscriptions": "followers",
2443
- },
2444
- },
2445
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
2446
- "createdAt": "1970-01-01T00:00:00.000Z",
2447
- "description": "its me!",
2448
- "did": "user(0)",
2449
- "displayName": "ali",
2450
- "handle": "alice.test",
2451
- "indexedAt": "1970-01-01T00:00:00.000Z",
2452
- "labels": [
2453
- {
2454
- "cid": "cids(2)",
2455
- "cts": "1970-01-01T00:00:00.000Z",
2456
- "src": "user(0)",
2457
- "uri": "record(3)",
2458
- "val": "self-label-a",
2459
- },
2460
- {
2461
- "cid": "cids(2)",
2462
- "cts": "1970-01-01T00:00:00.000Z",
2463
- "src": "user(0)",
2464
- "uri": "record(3)",
2465
- "val": "self-label-b",
2466
- },
2467
- ],
2468
- "viewer": {
2469
- "blockedBy": false,
2470
- "followedBy": "record(2)",
2471
- "following": "record(1)",
2472
- "muted": false,
2473
- },
2474
- },
2475
- "cid": "cids(0)",
2476
- "indexedAt": "1970-01-01T00:00:00.000Z",
2477
- "isRead": false,
2478
- "labels": [],
2479
- "reason": "like-via-repost",
2480
- "reasonSubject": "record(4)",
2481
- "record": {
2482
- "$type": "app.bsky.feed.like",
2483
- "createdAt": "1970-01-01T00:00:00.000Z",
2484
- "subject": {
2485
- "cid": "cids(4)",
2486
- "uri": "record(5)",
2487
- },
2488
- "via": {
2489
- "cid": "cids(3)",
2490
- "uri": "record(4)",
2491
- },
2492
- },
2493
- "uri": "record(0)",
2494
- },
2495
- ]
2496
- `;
2497
-
2498
- exports[`notification views > generates notifications for quotes 1`] = `
2499
- [
2500
- {
2501
- "author": {
2502
- "associated": {
2503
- "activitySubscription": {
2504
- "allowSubscriptions": "followers",
2505
- },
2506
- },
2507
- "did": "user(0)",
2508
- "handle": "carol.test",
2509
- "labels": [],
2510
- "viewer": {
2511
- "blockedBy": false,
2512
- "muted": false,
2513
- },
2514
- },
2515
- "cid": "cids(0)",
2516
- "indexedAt": "1970-01-01T00:00:00.000Z",
2517
- "isRead": false,
2518
- "labels": [],
2519
- "reason": "repost",
2520
- "reasonSubject": "record(1)",
2521
- "record": {
2522
- "$type": "app.bsky.feed.repost",
2523
- "createdAt": "1970-01-01T00:00:00.000Z",
2524
- "subject": {
2525
- "cid": "cids(1)",
2526
- "uri": "record(1)",
2527
- },
2528
- },
2529
- "uri": "record(0)",
2530
- },
2531
- {
2532
- "author": {
2533
- "associated": {
2534
- "activitySubscription": {
2535
- "allowSubscriptions": "followers",
2536
- },
2537
- },
2538
- "avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(3)",
2539
- "createdAt": "1970-01-01T00:00:00.000Z",
2540
- "description": "its me!",
2541
- "did": "user(1)",
2542
- "displayName": "ali",
2543
- "handle": "alice.test",
2544
- "indexedAt": "1970-01-01T00:00:00.000Z",
2545
- "labels": [
2546
- {
2547
- "cid": "cids(4)",
2548
- "cts": "1970-01-01T00:00:00.000Z",
2549
- "src": "user(1)",
2550
- "uri": "record(3)",
2551
- "val": "self-label-a",
2552
- },
2553
- {
2554
- "cid": "cids(4)",
2555
- "cts": "1970-01-01T00:00:00.000Z",
2556
- "src": "user(1)",
2557
- "uri": "record(3)",
2558
- "val": "self-label-b",
2559
- },
2560
- ],
2561
- "viewer": {
2562
- "blockedBy": false,
2563
- "followedBy": "record(2)",
2564
- "muted": false,
2565
- },
2566
- },
2567
- "cid": "cids(2)",
2568
- "indexedAt": "1970-01-01T00:00:00.000Z",
2569
- "isRead": true,
2570
- "labels": [],
2571
- "reason": "follow",
2572
- "record": {
2573
- "$type": "app.bsky.graph.follow",
2574
- "createdAt": "1970-01-01T00:00:00.000Z",
2575
- "subject": "user(3)",
2576
- },
2577
- "uri": "record(2)",
2578
- },
2579
- {
2580
- "author": {
2581
- "associated": {
2582
- "activitySubscription": {
2583
- "allowSubscriptions": "followers",
2584
- },
2585
- },
2586
- "avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(3)",
2587
- "createdAt": "1970-01-01T00:00:00.000Z",
2588
- "description": "its me!",
2589
- "did": "user(1)",
2590
- "displayName": "ali",
2591
- "handle": "alice.test",
2592
- "indexedAt": "1970-01-01T00:00:00.000Z",
2593
- "labels": [
2594
- {
2595
- "cid": "cids(4)",
2596
- "cts": "1970-01-01T00:00:00.000Z",
2597
- "src": "user(1)",
2598
- "uri": "record(3)",
2599
- "val": "self-label-a",
2600
- },
2601
- {
2602
- "cid": "cids(4)",
2603
- "cts": "1970-01-01T00:00:00.000Z",
2604
- "src": "user(1)",
2605
- "uri": "record(3)",
2606
- "val": "self-label-b",
2607
- },
2608
- ],
2609
- "viewer": {
2610
- "blockedBy": false,
2611
- "followedBy": "record(2)",
2612
- "muted": false,
2613
- },
2614
- },
2615
- "cid": "cids(5)",
2616
- "indexedAt": "1970-01-01T00:00:00.000Z",
2617
- "isRead": true,
2618
- "labels": [
2619
- {
2620
- "cid": "cids(5)",
2621
- "cts": "1970-01-01T00:00:00.000Z",
2622
- "src": "did:example:labeler",
2623
- "uri": "record(4)",
2624
- "val": "test-label",
2625
- },
2626
- ],
2627
- "reason": "quote",
2628
- "reasonSubject": "record(1)",
2629
- "record": {
2630
- "$type": "app.bsky.feed.post",
2631
- "createdAt": "1970-01-01T00:00:00.000Z",
2632
- "embed": {
2633
- "$type": "app.bsky.embed.record",
2634
- "record": {
2635
- "cid": "cids(1)",
2636
- "uri": "record(1)",
2637
- },
2638
- },
2639
- "text": "yoohoo label_me",
2640
- },
2641
- "uri": "record(4)",
2642
- },
2643
- ]
2644
- `;
2645
-
2646
- exports[`notification views > generates notifications for reposts 1`] = `
2647
- [
2648
- {
2649
- "author": {
2650
- "associated": {
2651
- "activitySubscription": {
2652
- "allowSubscriptions": "followers",
2653
- },
2654
- "chat": {
2655
- "allowIncoming": "none",
2656
- },
2657
- },
2658
- "did": "user(0)",
2659
- "handle": "dan.test",
2660
- "labels": [],
2661
- "viewer": {
2662
- "blockedBy": false,
2663
- "following": "record(1)",
2664
- "muted": false,
2665
- },
2666
- },
2667
- "cid": "cids(0)",
2668
- "indexedAt": "1970-01-01T00:00:00.000Z",
2669
- "isRead": true,
2670
- "labels": [],
2671
- "reason": "repost",
2672
- "reasonSubject": "record(2)",
2673
- "record": {
2674
- "$type": "app.bsky.feed.repost",
2675
- "createdAt": "1970-01-01T00:00:00.000Z",
2676
- "subject": {
2677
- "cid": "cids(1)",
2678
- "uri": "record(2)",
2679
- },
2680
- },
2681
- "uri": "record(0)",
2682
- },
2683
- {
2684
- "author": {
2685
- "associated": {
2686
- "activitySubscription": {
2687
- "allowSubscriptions": "followers",
2688
- },
2689
- "chat": {
2690
- "allowIncoming": "none",
2691
- },
2692
- },
2693
- "did": "user(0)",
2694
- "handle": "dan.test",
2695
- "labels": [],
2696
- "viewer": {
2697
- "blockedBy": false,
2698
- "following": "record(1)",
2699
- "muted": false,
2700
- },
2701
- },
2702
- "cid": "cids(2)",
2703
- "indexedAt": "1970-01-01T00:00:00.000Z",
2704
- "isRead": true,
2705
- "labels": [],
2706
- "reason": "repost",
2707
- "reasonSubject": "record(4)",
2708
- "record": {
2709
- "$type": "app.bsky.feed.repost",
2710
- "createdAt": "1970-01-01T00:00:00.000Z",
2711
- "subject": {
2712
- "cid": "cids(3)",
2713
- "uri": "record(4)",
2714
- },
2715
- },
2716
- "uri": "record(3)",
2717
- },
2718
- ]
2719
- `;
2720
-
2721
- exports[`notification views > generates notifications for reposts via repost 1`] = `
2722
- [
2723
- {
2724
- "author": {
2725
- "associated": {
2726
- "activitySubscription": {
2727
- "allowSubscriptions": "followers",
2728
- },
2729
- },
2730
- "did": "user(0)",
2731
- "handle": "carol.test",
2732
- "labels": [],
2733
- "viewer": {
2734
- "blockedBy": false,
2735
- "muted": false,
2736
- },
2737
- },
2738
- "cid": "cids(0)",
2739
- "indexedAt": "1970-01-01T00:00:00.000Z",
2740
- "isRead": true,
2741
- "labels": [],
2742
- "reason": "repost",
2743
- "reasonSubject": "record(1)",
2744
- "record": {
2745
- "$type": "app.bsky.feed.repost",
2746
- "createdAt": "1970-01-01T00:00:00.000Z",
2747
- "subject": {
2748
- "cid": "cids(1)",
2749
- "uri": "record(1)",
2750
- },
2751
- },
2752
- "uri": "record(0)",
2753
- },
2754
- {
2755
- "author": {
2756
- "associated": {
2757
- "activitySubscription": {
2758
- "allowSubscriptions": "followers",
2759
- },
2760
- },
2761
- "avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(3)",
2762
- "createdAt": "1970-01-01T00:00:00.000Z",
2763
- "description": "its me!",
2764
- "did": "user(1)",
2765
- "displayName": "ali",
2766
- "handle": "alice.test",
2767
- "indexedAt": "1970-01-01T00:00:00.000Z",
2768
- "labels": [
2769
- {
2770
- "cid": "cids(4)",
2771
- "cts": "1970-01-01T00:00:00.000Z",
2772
- "src": "user(1)",
2773
- "uri": "record(4)",
2774
- "val": "self-label-a",
2775
- },
2776
- {
2777
- "cid": "cids(4)",
2778
- "cts": "1970-01-01T00:00:00.000Z",
2779
- "src": "user(1)",
2780
- "uri": "record(4)",
2781
- "val": "self-label-b",
2782
- },
2783
- ],
2784
- "viewer": {
2785
- "blockedBy": false,
2786
- "followedBy": "record(3)",
2787
- "muted": false,
2788
- },
2789
- },
2790
- "cid": "cids(2)",
2791
- "indexedAt": "1970-01-01T00:00:00.000Z",
2792
- "isRead": false,
2793
- "labels": [],
2794
- "reason": "repost",
2795
- "reasonSubject": "record(1)",
2796
- "record": {
2797
- "$type": "app.bsky.feed.repost",
2798
- "createdAt": "1970-01-01T00:00:00.000Z",
2799
- "subject": {
2800
- "cid": "cids(1)",
2801
- "uri": "record(1)",
2802
- },
2803
- "via": {
2804
- "cid": "cids(0)",
2805
- "uri": "record(0)",
2806
- },
2807
- },
2808
- "uri": "record(2)",
2809
- },
2810
- ]
2811
- `;
2812
-
2813
- exports[`notification views > generates notifications for reposts via repost 2`] = `
2814
- [
2815
- {
2816
- "author": {
2817
- "associated": {
2818
- "activitySubscription": {
2819
- "allowSubscriptions": "followers",
2820
- },
2821
- },
2822
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
2823
- "createdAt": "1970-01-01T00:00:00.000Z",
2824
- "description": "its me!",
2825
- "did": "user(0)",
2826
- "displayName": "ali",
2827
- "handle": "alice.test",
2828
- "indexedAt": "1970-01-01T00:00:00.000Z",
2829
- "labels": [
2830
- {
2831
- "cid": "cids(2)",
2832
- "cts": "1970-01-01T00:00:00.000Z",
2833
- "src": "user(0)",
2834
- "uri": "record(3)",
2835
- "val": "self-label-a",
2836
- },
2837
- {
2838
- "cid": "cids(2)",
2839
- "cts": "1970-01-01T00:00:00.000Z",
2840
- "src": "user(0)",
2841
- "uri": "record(3)",
2842
- "val": "self-label-b",
2843
- },
2844
- ],
2845
- "viewer": {
2846
- "blockedBy": false,
2847
- "followedBy": "record(2)",
2848
- "following": "record(1)",
2849
- "muted": false,
2850
- },
2851
- },
2852
- "cid": "cids(0)",
2853
- "indexedAt": "1970-01-01T00:00:00.000Z",
2854
- "isRead": false,
2855
- "labels": [],
2856
- "reason": "repost-via-repost",
2857
- "reasonSubject": "record(4)",
2858
- "record": {
2859
- "$type": "app.bsky.feed.repost",
2860
- "createdAt": "1970-01-01T00:00:00.000Z",
2861
- "subject": {
2862
- "cid": "cids(4)",
2863
- "uri": "record(5)",
2864
- },
2865
- "via": {
2866
- "cid": "cids(3)",
2867
- "uri": "record(4)",
2868
- },
2869
- },
2870
- "uri": "record(0)",
2871
- },
2872
- ]
2873
- `;
2874
-
2875
- exports[`notification views > generates notifications for verification created and removed 1`] = `
2876
- [
2877
- {
2878
- "author": {
2879
- "associated": {
2880
- "activitySubscription": {
2881
- "allowSubscriptions": "followers",
2882
- },
2883
- },
2884
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
2885
- "createdAt": "1970-01-01T00:00:00.000Z",
2886
- "description": "its me!",
2887
- "did": "user(0)",
2888
- "displayName": "ali",
2889
- "handle": "alice.test",
2890
- "indexedAt": "1970-01-01T00:00:00.000Z",
2891
- "labels": [
2892
- {
2893
- "cid": "cids(2)",
2894
- "cts": "1970-01-01T00:00:00.000Z",
2895
- "src": "user(0)",
2896
- "uri": "record(3)",
2897
- "val": "self-label-a",
2898
- },
2899
- {
2900
- "cid": "cids(2)",
2901
- "cts": "1970-01-01T00:00:00.000Z",
2902
- "src": "user(0)",
2903
- "uri": "record(3)",
2904
- "val": "self-label-b",
2905
- },
2906
- ],
2907
- "viewer": {
2908
- "blockedBy": false,
2909
- "followedBy": "record(2)",
2910
- "following": "record(1)",
2911
- "muted": false,
2912
- },
2913
- },
2914
- "cid": "cids(0)",
2915
- "indexedAt": "1970-01-01T00:00:00.000Z",
2916
- "isRead": false,
2917
- "labels": [],
2918
- "reason": "verified",
2919
- "record": {
2920
- "$type": "app.bsky.graph.verification",
2921
- "createdAt": "1970-01-01T00:00:00.000Z",
2922
- "displayName": "bobby",
2923
- "handle": "bob.test",
2924
- "subject": "user(2)",
2925
- },
2926
- "uri": "record(0)",
2927
- },
2928
- ]
2929
- `;
2930
-
2931
- exports[`notification views > generates notifications for verification created and removed 2`] = `
2932
- [
2933
- {
2934
- "author": {
2935
- "associated": {
2936
- "activitySubscription": {
2937
- "allowSubscriptions": "followers",
2938
- },
2939
- },
2940
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
2941
- "createdAt": "1970-01-01T00:00:00.000Z",
2942
- "description": "its me!",
2943
- "did": "user(0)",
2944
- "displayName": "ali",
2945
- "handle": "alice.test",
2946
- "indexedAt": "1970-01-01T00:00:00.000Z",
2947
- "labels": [
2948
- {
2949
- "cid": "cids(2)",
2950
- "cts": "1970-01-01T00:00:00.000Z",
2951
- "src": "user(0)",
2952
- "uri": "record(3)",
2953
- "val": "self-label-a",
2954
- },
2955
- {
2956
- "cid": "cids(2)",
2957
- "cts": "1970-01-01T00:00:00.000Z",
2958
- "src": "user(0)",
2959
- "uri": "record(3)",
2960
- "val": "self-label-b",
2961
- },
2962
- ],
2963
- "viewer": {
2964
- "blockedBy": false,
2965
- "followedBy": "record(2)",
2966
- "following": "record(1)",
2967
- "muted": false,
2968
- },
2969
- },
2970
- "cid": "cids(0)",
2971
- "indexedAt": "1970-01-01T00:00:00.000Z",
2972
- "isRead": false,
2973
- "labels": [],
2974
- "reason": "unverified",
2975
- "record": {
2976
- "$type": "app.bsky.notification.defs#recordDeleted",
2977
- },
2978
- "uri": "record(0)",
2979
- },
2980
- {
2981
- "author": {
2982
- "associated": {
2983
- "activitySubscription": {
2984
- "allowSubscriptions": "followers",
2985
- },
2986
- },
2987
- "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)",
2988
- "createdAt": "1970-01-01T00:00:00.000Z",
2989
- "description": "its me!",
2990
- "did": "user(0)",
2991
- "displayName": "ali",
2992
- "handle": "alice.test",
2993
- "indexedAt": "1970-01-01T00:00:00.000Z",
2994
- "labels": [
2995
- {
2996
- "cid": "cids(2)",
2997
- "cts": "1970-01-01T00:00:00.000Z",
2998
- "src": "user(0)",
2999
- "uri": "record(3)",
3000
- "val": "self-label-a",
3001
- },
3002
- {
3003
- "cid": "cids(2)",
3004
- "cts": "1970-01-01T00:00:00.000Z",
3005
- "src": "user(0)",
3006
- "uri": "record(3)",
3007
- "val": "self-label-b",
3008
- },
3009
- ],
3010
- "viewer": {
3011
- "blockedBy": false,
3012
- "followedBy": "record(2)",
3013
- "following": "record(1)",
3014
- "muted": false,
3015
- },
3016
- },
3017
- "cid": "cids(0)",
3018
- "indexedAt": "1970-01-01T00:00:00.000Z",
3019
- "isRead": true,
3020
- "labels": [],
3021
- "reason": "verified",
3022
- "record": {
3023
- "$type": "app.bsky.notification.defs#recordDeleted",
3024
- },
3025
- "uri": "record(0)",
3026
- },
3027
- ]
3028
- `;
3029
-
3030
- exports[`notification views > handles hide tag filters > filters posts with hide tag 1`] = `[]`;
3031
-
3032
- exports[`notification views > handles hide tag filters > shows posts with hide tag if they are followed 1`] = `
3033
- [
3034
- {
3035
- "author": {
3036
- "associated": {
3037
- "activitySubscription": {
3038
- "allowSubscriptions": "followers",
3039
- },
3040
- },
3041
- "did": "user(0)",
3042
- "handle": "eve.test",
3043
- "labels": [],
3044
- "viewer": {
3045
- "blockedBy": false,
3046
- "following": "record(1)",
3047
- "muted": false,
3048
- },
3049
- },
3050
- "cid": "cids(0)",
3051
- "indexedAt": "1970-01-01T00:00:00.000Z",
3052
- "isRead": false,
3053
- "labels": [],
3054
- "reason": "reply",
3055
- "reasonSubject": "record(2)",
3056
- "record": {
3057
- "$type": "app.bsky.feed.post",
3058
- "createdAt": "1970-01-01T00:00:00.000Z",
3059
- "reply": {
3060
- "parent": {
3061
- "cid": "cids(1)",
3062
- "uri": "record(2)",
3063
- },
3064
- "root": {
3065
- "cid": "cids(1)",
3066
- "uri": "record(2)",
3067
- },
3068
- },
3069
- "text": "no thanks",
3070
- },
3071
- "uri": "record(0)",
3072
- },
3073
- ]
3074
- `;