@atproto/bsky 0.0.11 → 0.0.13

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 (158) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/LICENSE.txt +7 -0
  3. package/README.md +6 -1
  4. package/dist/api/com/atproto/admin/util.d.ts +5 -0
  5. package/dist/context.d.ts +6 -1
  6. package/dist/db/index.js +51 -2
  7. package/dist/db/index.js.map +3 -3
  8. package/dist/db/migrations/20230929T192920807Z-record-cursor-indexes.d.ts +3 -0
  9. package/dist/db/migrations/index.d.ts +1 -0
  10. package/dist/did-cache.d.ts +2 -2
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.js +1630 -755
  13. package/dist/index.js.map +3 -3
  14. package/dist/lexicon/index.d.ts +8 -0
  15. package/dist/lexicon/lexicons.d.ts +243 -3
  16. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -0
  17. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +28 -0
  18. package/dist/lexicon/types/com/atproto/admin/getAccountInfo.d.ts +29 -0
  19. package/dist/lexicon/types/com/atproto/admin/getSubjectStatus.d.ts +39 -0
  20. package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +0 -1
  21. package/dist/lexicon/types/com/atproto/admin/updateSubjectStatus.d.ts +46 -0
  22. package/dist/lexicon/types/com/atproto/server/createAccount.d.ts +4 -2
  23. package/dist/lexicon/types/com/atproto/server/createSession.d.ts +1 -0
  24. package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +1 -0
  25. package/dist/lexicon/types/com/atproto/server/reserveSigningKey.d.ts +36 -0
  26. package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +1 -0
  27. package/dist/services/actor/types.d.ts +1 -0
  28. package/dist/services/graph/index.d.ts +2 -0
  29. package/dist/services/moderation/index.d.ts +13 -3
  30. package/package.json +14 -15
  31. package/src/api/app/bsky/feed/getAuthorFeed.ts +2 -2
  32. package/src/api/app/bsky/feed/getPostThread.ts +2 -2
  33. package/src/api/app/bsky/notification/listNotifications.ts +33 -22
  34. package/src/api/com/atproto/admin/getModerationAction.ts +28 -2
  35. package/src/api/com/atproto/admin/getModerationReport.ts +27 -2
  36. package/src/api/com/atproto/admin/getRecord.ts +14 -2
  37. package/src/api/com/atproto/admin/getRepo.ts +13 -2
  38. package/src/api/com/atproto/admin/reverseModerationAction.ts +31 -5
  39. package/src/api/com/atproto/admin/searchRepos.ts +2 -5
  40. package/src/api/com/atproto/admin/takeModerationAction.ts +41 -7
  41. package/src/api/com/atproto/admin/util.ts +50 -0
  42. package/src/api/well-known.ts +8 -0
  43. package/src/auth.ts +12 -5
  44. package/src/auto-moderator/index.ts +1 -0
  45. package/src/context.ts +25 -1
  46. package/src/db/migrations/20230929T192920807Z-record-cursor-indexes.ts +40 -0
  47. package/src/db/migrations/index.ts +1 -0
  48. package/src/did-cache.ts +29 -14
  49. package/src/feed-gen/with-friends.ts +2 -2
  50. package/src/index.ts +4 -1
  51. package/src/indexer/subscription.ts +1 -21
  52. package/src/lexicon/index.ts +48 -0
  53. package/src/lexicon/lexicons.ts +259 -5
  54. package/src/lexicon/types/app/bsky/actor/defs.ts +1 -0
  55. package/src/lexicon/types/com/atproto/admin/defs.ts +61 -0
  56. package/src/lexicon/types/com/atproto/admin/getAccountInfo.ts +41 -0
  57. package/src/lexicon/types/com/atproto/admin/getSubjectStatus.ts +54 -0
  58. package/src/lexicon/types/com/atproto/admin/searchRepos.ts +0 -1
  59. package/src/lexicon/types/com/atproto/admin/updateSubjectStatus.ts +61 -0
  60. package/src/lexicon/types/com/atproto/server/createAccount.ts +4 -2
  61. package/src/lexicon/types/com/atproto/server/createSession.ts +1 -0
  62. package/src/lexicon/types/com/atproto/server/refreshSession.ts +1 -0
  63. package/src/lexicon/types/com/atproto/server/reserveSigningKey.ts +51 -0
  64. package/src/lexicon/types/com/atproto/sync/listRepos.ts +1 -0
  65. package/src/logger.ts +8 -0
  66. package/src/services/actor/index.ts +7 -1
  67. package/src/services/actor/types.ts +1 -0
  68. package/src/services/actor/views.ts +26 -8
  69. package/src/services/graph/index.ts +26 -7
  70. package/src/services/indexing/index.ts +15 -17
  71. package/src/services/moderation/index.ts +94 -14
  72. package/src/services/moderation/views.ts +1 -0
  73. package/tests/__snapshots__/feed-generation.test.ts.snap +12 -12
  74. package/tests/__snapshots__/indexing.test.ts.snap +4 -4
  75. package/tests/admin/__snapshots__/get-moderation-action.test.ts.snap +172 -0
  76. package/tests/admin/__snapshots__/get-moderation-actions.test.ts.snap +178 -0
  77. package/tests/admin/__snapshots__/get-moderation-report.test.ts.snap +177 -0
  78. package/tests/admin/__snapshots__/get-moderation-reports.test.ts.snap +307 -0
  79. package/tests/admin/__snapshots__/get-record.test.ts.snap +275 -0
  80. package/tests/admin/__snapshots__/get-repo.test.ts.snap +103 -0
  81. package/tests/admin/get-moderation-action.test.ts +100 -0
  82. package/tests/admin/get-moderation-actions.test.ts +164 -0
  83. package/tests/admin/get-moderation-report.test.ts +100 -0
  84. package/tests/admin/get-moderation-reports.test.ts +332 -0
  85. package/tests/admin/get-record.test.ts +115 -0
  86. package/tests/admin/get-repo.test.ts +101 -0
  87. package/tests/{moderation.test.ts → admin/moderation.test.ts} +107 -9
  88. package/tests/admin/repo-search.test.ts +124 -0
  89. package/tests/algos/hot-classic.test.ts +3 -5
  90. package/tests/algos/whats-hot.test.ts +3 -5
  91. package/tests/algos/with-friends.test.ts +2 -4
  92. package/tests/auth.test.ts +64 -0
  93. package/tests/auto-moderator/fuzzy-matcher.test.ts +2 -3
  94. package/tests/auto-moderator/labeler.test.ts +5 -7
  95. package/tests/auto-moderator/takedowns.test.ts +11 -12
  96. package/tests/blob-resolver.test.ts +1 -3
  97. package/tests/did-cache.test.ts +2 -5
  98. package/tests/feed-generation.test.ts +8 -6
  99. package/tests/handle-invalidation.test.ts +2 -3
  100. package/tests/image/server.test.ts +1 -4
  101. package/tests/image/sharp.test.ts +1 -1
  102. package/tests/indexing.test.ts +4 -4
  103. package/tests/notification-server.test.ts +2 -3
  104. package/tests/pipeline/backpressure.test.ts +2 -3
  105. package/tests/pipeline/reingest.test.ts +7 -4
  106. package/tests/pipeline/repartition.test.ts +2 -3
  107. package/tests/reprocessing.test.ts +2 -6
  108. package/tests/seeds/basic.ts +4 -4
  109. package/tests/seeds/follows.ts +1 -1
  110. package/tests/seeds/likes.ts +1 -1
  111. package/tests/seeds/reposts.ts +1 -1
  112. package/tests/seeds/users-bulk.ts +1 -1
  113. package/tests/seeds/users.ts +1 -1
  114. package/tests/server.test.ts +1 -3
  115. package/tests/subscription/repo.test.ts +2 -4
  116. package/tests/views/__snapshots__/author-feed.test.ts.snap +24 -24
  117. package/tests/views/__snapshots__/block-lists.test.ts.snap +42 -7
  118. package/tests/views/__snapshots__/blocks.test.ts.snap +2 -2
  119. package/tests/views/__snapshots__/list-feed.test.ts.snap +6 -6
  120. package/tests/views/__snapshots__/mute-lists.test.ts.snap +15 -4
  121. package/tests/views/__snapshots__/mutes.test.ts.snap +2 -2
  122. package/tests/views/__snapshots__/notifications.test.ts.snap +2 -2
  123. package/tests/views/__snapshots__/posts.test.ts.snap +8 -8
  124. package/tests/views/__snapshots__/thread.test.ts.snap +10 -10
  125. package/tests/views/__snapshots__/timeline.test.ts.snap +58 -58
  126. package/tests/views/actor-likes.test.ts +2 -3
  127. package/tests/views/actor-search.test.ts +5 -5
  128. package/tests/views/admin/repo-search.test.ts +2 -4
  129. package/tests/views/author-feed.test.ts +2 -4
  130. package/tests/views/block-lists.test.ts +34 -7
  131. package/tests/views/blocks.test.ts +6 -3
  132. package/tests/views/follows.test.ts +2 -4
  133. package/tests/views/likes.test.ts +2 -5
  134. package/tests/views/list-feed.test.ts +2 -4
  135. package/tests/views/mute-lists.test.ts +23 -5
  136. package/tests/views/mutes.test.ts +2 -5
  137. package/tests/views/notifications.test.ts +2 -4
  138. package/tests/views/posts.test.ts +2 -5
  139. package/tests/views/profile.test.ts +4 -5
  140. package/tests/views/reposts.test.ts +2 -4
  141. package/tests/views/suggested-follows.test.ts +2 -3
  142. package/tests/views/suggestions.test.ts +2 -4
  143. package/tests/views/thread.test.ts +2 -4
  144. package/tests/views/threadgating.test.ts +2 -3
  145. package/tests/views/timeline.test.ts +2 -4
  146. package/LICENSE +0 -21
  147. package/dist/env.d.ts +0 -1
  148. package/example.dev.env +0 -5
  149. package/src/env.ts +0 -9
  150. package/tests/seeds/client.ts +0 -466
  151. /package/tests/{__snapshots__ → admin/__snapshots__}/moderation.test.ts.snap +0 -0
  152. /package/tests/{image/fixtures → sample-img}/at.png +0 -0
  153. /package/tests/{image/fixtures → sample-img}/hd-key.jpg +0 -0
  154. /package/tests/{image/fixtures → sample-img}/key-alt.jpg +0 -0
  155. /package/tests/{image/fixtures → sample-img}/key-landscape-large.jpg +0 -0
  156. /package/tests/{image/fixtures → sample-img}/key-landscape-small.jpg +0 -0
  157. /package/tests/{image/fixtures → sample-img}/key-portrait-large.jpg +0 -0
  158. /package/tests/{image/fixtures → sample-img}/key-portrait-small.jpg +0 -0
@@ -77,7 +77,7 @@ Array [
77
77
  "$type": "app.bsky.embed.images#view",
78
78
  "images": Array [
79
79
  Object {
80
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
80
+ "alt": "tests/sample-img/key-landscape-small.jpg",
81
81
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
82
82
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
83
83
  },
@@ -110,7 +110,7 @@ Array [
110
110
  "$type": "app.bsky.embed.images",
111
111
  "images": Array [
112
112
  Object {
113
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
113
+ "alt": "tests/sample-img/key-landscape-small.jpg",
114
114
  "image": Object {
115
115
  "$type": "blob",
116
116
  "mimeType": "image/jpeg",
@@ -260,7 +260,7 @@ Array [
260
260
  "$type": "app.bsky.embed.images",
261
261
  "images": Array [
262
262
  Object {
263
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
263
+ "alt": "tests/sample-img/key-landscape-small.jpg",
264
264
  "image": Object {
265
265
  "$type": "blob",
266
266
  "mimeType": "image/jpeg",
@@ -271,7 +271,7 @@ Array [
271
271
  },
272
272
  },
273
273
  Object {
274
- "alt": "tests/image/fixtures/key-alt.jpg",
274
+ "alt": "tests/sample-img/key-alt.jpg",
275
275
  "image": Object {
276
276
  "$type": "blob",
277
277
  "mimeType": "image/jpeg",
@@ -486,7 +486,7 @@ Array [
486
486
  "$type": "app.bsky.embed.images#view",
487
487
  "images": Array [
488
488
  Object {
489
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
489
+ "alt": "tests/sample-img/key-landscape-small.jpg",
490
490
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(1)/cids(2)@jpeg",
491
491
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(1)/cids(2)@jpeg",
492
492
  },
@@ -519,7 +519,7 @@ Array [
519
519
  "$type": "app.bsky.embed.images",
520
520
  "images": Array [
521
521
  Object {
522
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
522
+ "alt": "tests/sample-img/key-landscape-small.jpg",
523
523
  "image": Object {
524
524
  "$type": "blob",
525
525
  "mimeType": "image/jpeg",
@@ -745,12 +745,12 @@ Array [
745
745
  "$type": "app.bsky.embed.images#view",
746
746
  "images": Array [
747
747
  Object {
748
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
748
+ "alt": "tests/sample-img/key-landscape-small.jpg",
749
749
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(2)@jpeg",
750
750
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(2)@jpeg",
751
751
  },
752
752
  Object {
753
- "alt": "tests/image/fixtures/key-alt.jpg",
753
+ "alt": "tests/sample-img/key-alt.jpg",
754
754
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(3)@jpeg",
755
755
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(3)@jpeg",
756
756
  },
@@ -800,7 +800,7 @@ Array [
800
800
  "$type": "app.bsky.embed.images",
801
801
  "images": Array [
802
802
  Object {
803
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
803
+ "alt": "tests/sample-img/key-landscape-small.jpg",
804
804
  "image": Object {
805
805
  "$type": "blob",
806
806
  "mimeType": "image/jpeg",
@@ -811,7 +811,7 @@ Array [
811
811
  },
812
812
  },
813
813
  Object {
814
- "alt": "tests/image/fixtures/key-alt.jpg",
814
+ "alt": "tests/sample-img/key-alt.jpg",
815
815
  "image": Object {
816
816
  "$type": "blob",
817
817
  "mimeType": "image/jpeg",
@@ -1036,12 +1036,12 @@ Array [
1036
1036
  "$type": "app.bsky.embed.images#view",
1037
1037
  "images": Array [
1038
1038
  Object {
1039
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1039
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1040
1040
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(2)@jpeg",
1041
1041
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(2)@jpeg",
1042
1042
  },
1043
1043
  Object {
1044
- "alt": "tests/image/fixtures/key-alt.jpg",
1044
+ "alt": "tests/sample-img/key-alt.jpg",
1045
1045
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(3)@jpeg",
1046
1046
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(3)@jpeg",
1047
1047
  },
@@ -1091,7 +1091,7 @@ Array [
1091
1091
  "$type": "app.bsky.embed.images",
1092
1092
  "images": Array [
1093
1093
  Object {
1094
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1094
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1095
1095
  "image": Object {
1096
1096
  "$type": "blob",
1097
1097
  "mimeType": "image/jpeg",
@@ -1102,7 +1102,7 @@ Array [
1102
1102
  },
1103
1103
  },
1104
1104
  Object {
1105
- "alt": "tests/image/fixtures/key-alt.jpg",
1105
+ "alt": "tests/sample-img/key-alt.jpg",
1106
1106
  "image": Object {
1107
1107
  "$type": "blob",
1108
1108
  "mimeType": "image/jpeg",
@@ -1224,7 +1224,7 @@ Array [
1224
1224
  "$type": "app.bsky.embed.images#view",
1225
1225
  "images": Array [
1226
1226
  Object {
1227
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1227
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1228
1228
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(5)@jpeg",
1229
1229
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(5)@jpeg",
1230
1230
  },
@@ -1257,7 +1257,7 @@ Array [
1257
1257
  "$type": "app.bsky.embed.images",
1258
1258
  "images": Array [
1259
1259
  Object {
1260
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1260
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1261
1261
  "image": Object {
1262
1262
  "$type": "blob",
1263
1263
  "mimeType": "image/jpeg",
@@ -1431,12 +1431,12 @@ Array [
1431
1431
  "$type": "app.bsky.embed.images#view",
1432
1432
  "images": Array [
1433
1433
  Object {
1434
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1434
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1435
1435
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(6)/cids(5)@jpeg",
1436
1436
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(6)/cids(5)@jpeg",
1437
1437
  },
1438
1438
  Object {
1439
- "alt": "tests/image/fixtures/key-alt.jpg",
1439
+ "alt": "tests/sample-img/key-alt.jpg",
1440
1440
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(6)/cids(8)@jpeg",
1441
1441
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(6)/cids(8)@jpeg",
1442
1442
  },
@@ -1486,7 +1486,7 @@ Array [
1486
1486
  "$type": "app.bsky.embed.images",
1487
1487
  "images": Array [
1488
1488
  Object {
1489
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1489
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1490
1490
  "image": Object {
1491
1491
  "$type": "blob",
1492
1492
  "mimeType": "image/jpeg",
@@ -1497,7 +1497,7 @@ Array [
1497
1497
  },
1498
1498
  },
1499
1499
  Object {
1500
- "alt": "tests/image/fixtures/key-alt.jpg",
1500
+ "alt": "tests/sample-img/key-alt.jpg",
1501
1501
  "image": Object {
1502
1502
  "$type": "blob",
1503
1503
  "mimeType": "image/jpeg",
@@ -1662,7 +1662,7 @@ Array [
1662
1662
  "$type": "app.bsky.embed.images#view",
1663
1663
  "images": Array [
1664
1664
  Object {
1665
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1665
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1666
1666
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
1667
1667
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
1668
1668
  },
@@ -1695,7 +1695,7 @@ Array [
1695
1695
  "$type": "app.bsky.embed.images",
1696
1696
  "images": Array [
1697
1697
  Object {
1698
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1698
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1699
1699
  "image": Object {
1700
1700
  "$type": "blob",
1701
1701
  "mimeType": "image/jpeg",
@@ -1848,7 +1848,7 @@ Array [
1848
1848
  "$type": "app.bsky.embed.images",
1849
1849
  "images": Array [
1850
1850
  Object {
1851
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1851
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1852
1852
  "image": Object {
1853
1853
  "$type": "blob",
1854
1854
  "mimeType": "image/jpeg",
@@ -1859,7 +1859,7 @@ Array [
1859
1859
  },
1860
1860
  },
1861
1861
  Object {
1862
- "alt": "tests/image/fixtures/key-alt.jpg",
1862
+ "alt": "tests/sample-img/key-alt.jpg",
1863
1863
  "image": Object {
1864
1864
  "$type": "blob",
1865
1865
  "mimeType": "image/jpeg",
@@ -335,7 +335,7 @@ Object {
335
335
  "description": "blah blah",
336
336
  "indexedAt": "1970-01-01T00:00:00.000Z",
337
337
  "name": "new list",
338
- "purpose": "app.bsky.graph.defs#blocklist",
338
+ "purpose": "app.bsky.graph.defs#modlist",
339
339
  "uri": "record(0)",
340
340
  "viewer": Object {
341
341
  "blocked": "record(1)",
@@ -379,7 +379,7 @@ Object {
379
379
  "description": "big list of blocks",
380
380
  "indexedAt": "1970-01-01T00:00:00.000Z",
381
381
  "name": "alice blocks",
382
- "purpose": "app.bsky.graph.defs#blocklist",
382
+ "purpose": "app.bsky.graph.defs#modlist",
383
383
  "uri": "record(4)",
384
384
  "viewer": Object {
385
385
  "blocked": "record(5)",
@@ -430,7 +430,7 @@ Object {
430
430
  "description": "blah blah",
431
431
  "indexedAt": "1970-01-01T00:00:00.000Z",
432
432
  "name": "new list",
433
- "purpose": "app.bsky.graph.defs#blocklist",
433
+ "purpose": "app.bsky.graph.defs#modlist",
434
434
  "uri": "record(0)",
435
435
  "viewer": Object {
436
436
  "muted": false,
@@ -473,7 +473,7 @@ Object {
473
473
  "description": "big list of blocks",
474
474
  "indexedAt": "1970-01-01T00:00:00.000Z",
475
475
  "name": "alice blocks",
476
- "purpose": "app.bsky.graph.defs#blocklist",
476
+ "purpose": "app.bsky.graph.defs#modlist",
477
477
  "uri": "record(3)",
478
478
  "viewer": Object {
479
479
  "blocked": "record(4)",
@@ -491,20 +491,43 @@ Object {
491
491
  Object {
492
492
  "subject": Object {
493
493
  "did": "user(2)",
494
+ "handle": "dan.test",
495
+ "labels": Array [],
496
+ "viewer": Object {
497
+ "blockedBy": false,
498
+ "muted": false,
499
+ },
500
+ },
501
+ },
502
+ Object {
503
+ "subject": Object {
504
+ "did": "user(3)",
494
505
  "handle": "carol.test",
495
506
  "labels": Array [],
496
507
  "viewer": Object {
497
508
  "blockedBy": false,
498
509
  "blocking": "record(0)",
510
+ "blockingByList": Object {
511
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(0)/cids(1)@jpeg",
512
+ "cid": "cids(0)",
513
+ "indexedAt": "1970-01-01T00:00:00.000Z",
514
+ "name": "alice blocks",
515
+ "purpose": "app.bsky.graph.defs#modlist",
516
+ "uri": "record(0)",
517
+ "viewer": Object {
518
+ "blocked": "record(1)",
519
+ "muted": false,
520
+ },
521
+ },
499
522
  "muted": false,
500
523
  },
501
524
  },
502
525
  },
503
526
  Object {
504
527
  "subject": Object {
505
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
528
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(1)@jpeg",
506
529
  "description": "hi im bob label_me",
507
- "did": "user(3)",
530
+ "did": "user(4)",
508
531
  "displayName": "bobby",
509
532
  "handle": "bob.test",
510
533
  "indexedAt": "1970-01-01T00:00:00.000Z",
@@ -512,6 +535,18 @@ Object {
512
535
  "viewer": Object {
513
536
  "blockedBy": false,
514
537
  "blocking": "record(0)",
538
+ "blockingByList": Object {
539
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(0)/cids(1)@jpeg",
540
+ "cid": "cids(0)",
541
+ "indexedAt": "1970-01-01T00:00:00.000Z",
542
+ "name": "alice blocks",
543
+ "purpose": "app.bsky.graph.defs#modlist",
544
+ "uri": "record(0)",
545
+ "viewer": Object {
546
+ "blocked": "record(1)",
547
+ "muted": false,
548
+ },
549
+ },
515
550
  "muted": false,
516
551
  },
517
552
  },
@@ -554,7 +589,7 @@ Object {
554
589
  "description": "big list of blocks",
555
590
  "indexedAt": "1970-01-01T00:00:00.000Z",
556
591
  "name": "alice blocks",
557
- "purpose": "app.bsky.graph.defs#blocklist",
592
+ "purpose": "app.bsky.graph.defs#modlist",
558
593
  "uri": "record(0)",
559
594
  "viewer": Object {
560
595
  "blocked": "record(1)",
@@ -295,7 +295,7 @@ Object {
295
295
  "$type": "app.bsky.embed.images#view",
296
296
  "images": Array [
297
297
  Object {
298
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
298
+ "alt": "tests/sample-img/key-landscape-small.jpg",
299
299
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(4)@jpeg",
300
300
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(4)@jpeg",
301
301
  },
@@ -328,7 +328,7 @@ Object {
328
328
  "$type": "app.bsky.embed.images",
329
329
  "images": Array [
330
330
  Object {
331
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
331
+ "alt": "tests/sample-img/key-landscape-small.jpg",
332
332
  "image": Object {
333
333
  "$type": "blob",
334
334
  "mimeType": "image/jpeg",
@@ -78,7 +78,7 @@ Array [
78
78
  "$type": "app.bsky.embed.images#view",
79
79
  "images": Array [
80
80
  Object {
81
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
81
+ "alt": "tests/sample-img/key-landscape-small.jpg",
82
82
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
83
83
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
84
84
  },
@@ -111,7 +111,7 @@ Array [
111
111
  "$type": "app.bsky.embed.images",
112
112
  "images": Array [
113
113
  Object {
114
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
114
+ "alt": "tests/sample-img/key-landscape-small.jpg",
115
115
  "image": Object {
116
116
  "$type": "blob",
117
117
  "mimeType": "image/jpeg",
@@ -209,7 +209,7 @@ Array [
209
209
  "$type": "app.bsky.embed.images#view",
210
210
  "images": Array [
211
211
  Object {
212
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
212
+ "alt": "tests/sample-img/key-landscape-small.jpg",
213
213
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
214
214
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
215
215
  },
@@ -242,7 +242,7 @@ Array [
242
242
  "$type": "app.bsky.embed.images",
243
243
  "images": Array [
244
244
  Object {
245
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
245
+ "alt": "tests/sample-img/key-landscape-small.jpg",
246
246
  "image": Object {
247
247
  "$type": "blob",
248
248
  "mimeType": "image/jpeg",
@@ -444,7 +444,7 @@ Array [
444
444
  "$type": "app.bsky.embed.images",
445
445
  "images": Array [
446
446
  Object {
447
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
447
+ "alt": "tests/sample-img/key-landscape-small.jpg",
448
448
  "image": Object {
449
449
  "$type": "blob",
450
450
  "mimeType": "image/jpeg",
@@ -455,7 +455,7 @@ Array [
455
455
  },
456
456
  },
457
457
  Object {
458
- "alt": "tests/image/fixtures/key-alt.jpg",
458
+ "alt": "tests/sample-img/key-alt.jpg",
459
459
  "image": Object {
460
460
  "$type": "blob",
461
461
  "mimeType": "image/jpeg",
@@ -228,7 +228,7 @@ Object {
228
228
  "$type": "app.bsky.embed.images#view",
229
229
  "images": Array [
230
230
  Object {
231
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
231
+ "alt": "tests/sample-img/key-landscape-small.jpg",
232
232
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(6)@jpeg",
233
233
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(6)@jpeg",
234
234
  },
@@ -261,7 +261,7 @@ Object {
261
261
  "$type": "app.bsky.embed.images",
262
262
  "images": Array [
263
263
  Object {
264
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
264
+ "alt": "tests/sample-img/key-landscape-small.jpg",
265
265
  "image": Object {
266
266
  "$type": "blob",
267
267
  "mimeType": "image/jpeg",
@@ -491,6 +491,17 @@ Object {
491
491
  Object {
492
492
  "subject": Object {
493
493
  "did": "user(2)",
494
+ "handle": "dan.test",
495
+ "labels": Array [],
496
+ "viewer": Object {
497
+ "blockedBy": false,
498
+ "muted": false,
499
+ },
500
+ },
501
+ },
502
+ Object {
503
+ "subject": Object {
504
+ "did": "user(3)",
494
505
  "handle": "carol.test",
495
506
  "labels": Array [],
496
507
  "viewer": Object {
@@ -513,9 +524,9 @@ Object {
513
524
  },
514
525
  Object {
515
526
  "subject": Object {
516
- "avatar": "https://bsky.public.url/img/avatar/plain/user(4)/cids(1)@jpeg",
527
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(1)@jpeg",
517
528
  "description": "hi im bob label_me",
518
- "did": "user(3)",
529
+ "did": "user(4)",
519
530
  "displayName": "bobby",
520
531
  "handle": "bob.test",
521
532
  "indexedAt": "1970-01-01T00:00:00.000Z",
@@ -205,7 +205,7 @@ Object {
205
205
  "$type": "app.bsky.embed.images#view",
206
206
  "images": Array [
207
207
  Object {
208
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
208
+ "alt": "tests/sample-img/key-landscape-small.jpg",
209
209
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(5)@jpeg",
210
210
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(5)@jpeg",
211
211
  },
@@ -238,7 +238,7 @@ Object {
238
238
  "$type": "app.bsky.embed.images",
239
239
  "images": Array [
240
240
  Object {
241
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
241
+ "alt": "tests/sample-img/key-landscape-small.jpg",
242
242
  "image": Object {
243
243
  "$type": "blob",
244
244
  "mimeType": "image/jpeg",
@@ -272,7 +272,7 @@ Array [
272
272
  "$type": "app.bsky.embed.images",
273
273
  "images": Array [
274
274
  Object {
275
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
275
+ "alt": "tests/sample-img/key-landscape-small.jpg",
276
276
  "image": Object {
277
277
  "$type": "blob",
278
278
  "mimeType": "image/jpeg",
@@ -716,7 +716,7 @@ Array [
716
716
  "$type": "app.bsky.embed.images",
717
717
  "images": Array [
718
718
  Object {
719
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
719
+ "alt": "tests/sample-img/key-landscape-small.jpg",
720
720
  "image": Object {
721
721
  "$type": "blob",
722
722
  "mimeType": "image/jpeg",
@@ -156,12 +156,12 @@ Array [
156
156
  "$type": "app.bsky.embed.images#view",
157
157
  "images": Array [
158
158
  Object {
159
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
159
+ "alt": "tests/sample-img/key-landscape-small.jpg",
160
160
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(6)@jpeg",
161
161
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(6)@jpeg",
162
162
  },
163
163
  Object {
164
- "alt": "tests/image/fixtures/key-alt.jpg",
164
+ "alt": "tests/sample-img/key-alt.jpg",
165
165
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(7)@jpeg",
166
166
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(7)@jpeg",
167
167
  },
@@ -212,7 +212,7 @@ Array [
212
212
  "$type": "app.bsky.embed.images",
213
213
  "images": Array [
214
214
  Object {
215
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
215
+ "alt": "tests/sample-img/key-landscape-small.jpg",
216
216
  "image": Object {
217
217
  "$type": "blob",
218
218
  "mimeType": "image/jpeg",
@@ -223,7 +223,7 @@ Array [
223
223
  },
224
224
  },
225
225
  Object {
226
- "alt": "tests/image/fixtures/key-alt.jpg",
226
+ "alt": "tests/sample-img/key-alt.jpg",
227
227
  "image": Object {
228
228
  "$type": "blob",
229
229
  "mimeType": "image/jpeg",
@@ -286,12 +286,12 @@ Array [
286
286
  "$type": "app.bsky.embed.images#view",
287
287
  "images": Array [
288
288
  Object {
289
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
289
+ "alt": "tests/sample-img/key-landscape-small.jpg",
290
290
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(6)@jpeg",
291
291
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(6)@jpeg",
292
292
  },
293
293
  Object {
294
- "alt": "tests/image/fixtures/key-alt.jpg",
294
+ "alt": "tests/sample-img/key-alt.jpg",
295
295
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(5)/cids(7)@jpeg",
296
296
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(5)/cids(7)@jpeg",
297
297
  },
@@ -342,7 +342,7 @@ Array [
342
342
  "$type": "app.bsky.embed.images",
343
343
  "images": Array [
344
344
  Object {
345
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
345
+ "alt": "tests/sample-img/key-landscape-small.jpg",
346
346
  "image": Object {
347
347
  "$type": "blob",
348
348
  "mimeType": "image/jpeg",
@@ -353,7 +353,7 @@ Array [
353
353
  },
354
354
  },
355
355
  Object {
356
- "alt": "tests/image/fixtures/key-alt.jpg",
356
+ "alt": "tests/sample-img/key-alt.jpg",
357
357
  "image": Object {
358
358
  "$type": "blob",
359
359
  "mimeType": "image/jpeg",
@@ -73,7 +73,7 @@ Object {
73
73
  "$type": "app.bsky.embed.images#view",
74
74
  "images": Array [
75
75
  Object {
76
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
76
+ "alt": "tests/sample-img/key-landscape-small.jpg",
77
77
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(5)@jpeg",
78
78
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(5)@jpeg",
79
79
  },
@@ -106,7 +106,7 @@ Object {
106
106
  "$type": "app.bsky.embed.images",
107
107
  "images": Array [
108
108
  Object {
109
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
109
+ "alt": "tests/sample-img/key-landscape-small.jpg",
110
110
  "image": Object {
111
111
  "$type": "blob",
112
112
  "mimeType": "image/jpeg",
@@ -310,7 +310,7 @@ Object {
310
310
  "$type": "app.bsky.embed.images#view",
311
311
  "images": Array [
312
312
  Object {
313
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
313
+ "alt": "tests/sample-img/key-landscape-small.jpg",
314
314
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(5)@jpeg",
315
315
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(5)@jpeg",
316
316
  },
@@ -343,7 +343,7 @@ Object {
343
343
  "$type": "app.bsky.embed.images",
344
344
  "images": Array [
345
345
  Object {
346
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
346
+ "alt": "tests/sample-img/key-landscape-small.jpg",
347
347
  "image": Object {
348
348
  "$type": "blob",
349
349
  "mimeType": "image/jpeg",
@@ -551,7 +551,7 @@ Object {
551
551
  "$type": "app.bsky.embed.images#view",
552
552
  "images": Array [
553
553
  Object {
554
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
554
+ "alt": "tests/sample-img/key-landscape-small.jpg",
555
555
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(4)/cids(5)@jpeg",
556
556
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(4)/cids(5)@jpeg",
557
557
  },
@@ -584,7 +584,7 @@ Object {
584
584
  "$type": "app.bsky.embed.images",
585
585
  "images": Array [
586
586
  Object {
587
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
587
+ "alt": "tests/sample-img/key-landscape-small.jpg",
588
588
  "image": Object {
589
589
  "$type": "blob",
590
590
  "mimeType": "image/jpeg",
@@ -1116,7 +1116,7 @@ Object {
1116
1116
  "$type": "app.bsky.embed.images#view",
1117
1117
  "images": Array [
1118
1118
  Object {
1119
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1119
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1120
1120
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(4)@jpeg",
1121
1121
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(4)@jpeg",
1122
1122
  },
@@ -1149,7 +1149,7 @@ Object {
1149
1149
  "$type": "app.bsky.embed.images",
1150
1150
  "images": Array [
1151
1151
  Object {
1152
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1152
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1153
1153
  "image": Object {
1154
1154
  "$type": "blob",
1155
1155
  "mimeType": "image/jpeg",
@@ -1319,7 +1319,7 @@ Object {
1319
1319
  "$type": "app.bsky.embed.images#view",
1320
1320
  "images": Array [
1321
1321
  Object {
1322
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1322
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1323
1323
  "fullsize": "https://bsky.public.url/img/feed_fullsize/plain/user(3)/cids(4)@jpeg",
1324
1324
  "thumb": "https://bsky.public.url/img/feed_thumbnail/plain/user(3)/cids(4)@jpeg",
1325
1325
  },
@@ -1352,7 +1352,7 @@ Object {
1352
1352
  "$type": "app.bsky.embed.images",
1353
1353
  "images": Array [
1354
1354
  Object {
1355
- "alt": "tests/image/fixtures/key-landscape-small.jpg",
1355
+ "alt": "tests/sample-img/key-landscape-small.jpg",
1356
1356
  "image": Object {
1357
1357
  "$type": "blob",
1358
1358
  "mimeType": "image/jpeg",