@atproto/bsky 0.0.38 → 0.0.40

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 (65) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/hydration/hydrator.d.ts +12 -2
  3. package/dist/hydration/label.d.ts +7 -3
  4. package/dist/hydration/util.d.ts +5 -2
  5. package/dist/index.js +216 -104
  6. package/dist/index.js.map +2 -2
  7. package/dist/lexicon/lexicons.d.ts +13 -0
  8. package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +7 -0
  9. package/package.json +5 -5
  10. package/src/api/app/bsky/actor/getProfile.ts +10 -6
  11. package/src/api/app/bsky/actor/getProfiles.ts +2 -2
  12. package/src/api/app/bsky/actor/getSuggestions.ts +2 -2
  13. package/src/api/app/bsky/actor/searchActors.ts +7 -3
  14. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +2 -2
  15. package/src/api/app/bsky/feed/getActorFeeds.ts +2 -2
  16. package/src/api/app/bsky/feed/getActorLikes.ts +2 -2
  17. package/src/api/app/bsky/feed/getAuthorFeed.ts +6 -2
  18. package/src/api/app/bsky/feed/getFeed.ts +2 -2
  19. package/src/api/app/bsky/feed/getFeedGenerator.ts +3 -6
  20. package/src/api/app/bsky/feed/getFeedGenerators.ts +2 -2
  21. package/src/api/app/bsky/feed/getLikes.ts +2 -2
  22. package/src/api/app/bsky/feed/getListFeed.ts +2 -2
  23. package/src/api/app/bsky/feed/getPostThread.ts +2 -2
  24. package/src/api/app/bsky/feed/getPosts.ts +2 -2
  25. package/src/api/app/bsky/feed/getRepostedBy.ts +2 -2
  26. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +3 -5
  27. package/src/api/app/bsky/feed/getTimeline.ts +6 -3
  28. package/src/api/app/bsky/feed/searchPosts.ts +2 -2
  29. package/src/api/app/bsky/graph/getBlocks.ts +6 -3
  30. package/src/api/app/bsky/graph/getFollowers.ts +6 -2
  31. package/src/api/app/bsky/graph/getFollows.ts +6 -2
  32. package/src/api/app/bsky/graph/getList.ts +2 -2
  33. package/src/api/app/bsky/graph/getListBlocks.ts +6 -3
  34. package/src/api/app/bsky/graph/getListMutes.ts +6 -3
  35. package/src/api/app/bsky/graph/getLists.ts +2 -2
  36. package/src/api/app/bsky/graph/getMutes.ts +6 -3
  37. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +3 -3
  38. package/src/api/app/bsky/labeler/getServices.ts +3 -3
  39. package/src/api/app/bsky/notification/listNotifications.ts +6 -3
  40. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +2 -2
  41. package/src/data-plane/server/routes/labels.ts +26 -8
  42. package/src/hydration/hydrator.ts +55 -10
  43. package/src/hydration/label.ts +33 -7
  44. package/src/hydration/util.ts +6 -2
  45. package/src/index.ts +1 -1
  46. package/src/lexicon/lexicons.ts +13 -0
  47. package/src/lexicon/types/com/atproto/server/describeServer.ts +18 -0
  48. package/src/views/index.ts +8 -8
  49. package/tests/__snapshots__/feed-generation.test.ts.snap +0 -45
  50. package/tests/data-plane/__snapshots__/indexing.test.ts.snap +0 -8
  51. package/tests/label-hydration.test.ts +31 -0
  52. package/tests/views/__snapshots__/author-feed.test.ts.snap +0 -46
  53. package/tests/views/__snapshots__/block-lists.test.ts.snap +0 -17
  54. package/tests/views/__snapshots__/blocks.test.ts.snap +0 -9
  55. package/tests/views/__snapshots__/labeler-service.test.ts.snap +0 -4
  56. package/tests/views/__snapshots__/list-feed.test.ts.snap +0 -20
  57. package/tests/views/__snapshots__/mute-lists.test.ts.snap +0 -18
  58. package/tests/views/__snapshots__/mutes.test.ts.snap +0 -4
  59. package/tests/views/__snapshots__/notifications.test.ts.snap +0 -9
  60. package/tests/views/__snapshots__/posts.test.ts.snap +0 -7
  61. package/tests/views/__snapshots__/profile.test.ts.snap +0 -6
  62. package/tests/views/__snapshots__/thread.test.ts.snap +0 -38
  63. package/tests/views/__snapshots__/timeline.test.ts.snap +0 -145
  64. package/tests/views/labeler-service.test.ts +2 -7
  65. package/tests/views/takedown-labels.test.ts +52 -0
@@ -17,7 +17,6 @@ Object {
17
17
  Object {
18
18
  "cid": "cids(2)",
19
19
  "cts": "1970-01-01T00:00:00.000Z",
20
- "neg": false,
21
20
  "src": "user(0)",
22
21
  "uri": "record(3)",
23
22
  "val": "self-label-a",
@@ -25,7 +24,6 @@ Object {
25
24
  Object {
26
25
  "cid": "cids(2)",
27
26
  "cts": "1970-01-01T00:00:00.000Z",
28
- "neg": false,
29
27
  "src": "user(0)",
30
28
  "uri": "record(3)",
31
29
  "val": "self-label-b",
@@ -83,7 +81,6 @@ Object {
83
81
  Object {
84
82
  "cid": "cids(4)",
85
83
  "cts": "1970-01-01T00:00:00.000Z",
86
- "neg": false,
87
84
  "src": "did:example:labeler",
88
85
  "uri": "record(5)",
89
86
  "val": "test-label",
@@ -91,7 +88,6 @@ Object {
91
88
  Object {
92
89
  "cid": "cids(4)",
93
90
  "cts": "1970-01-01T00:00:00.000Z",
94
- "neg": false,
95
91
  "src": "did:example:labeler",
96
92
  "uri": "record(5)",
97
93
  "val": "test-label-2",
@@ -145,7 +141,6 @@ Object {
145
141
  Object {
146
142
  "cid": "cids(2)",
147
143
  "cts": "1970-01-01T00:00:00.000Z",
148
- "neg": false,
149
144
  "src": "user(0)",
150
145
  "uri": "record(3)",
151
146
  "val": "self-label-a",
@@ -153,7 +148,6 @@ Object {
153
148
  Object {
154
149
  "cid": "cids(2)",
155
150
  "cts": "1970-01-01T00:00:00.000Z",
156
- "neg": false,
157
151
  "src": "user(0)",
158
152
  "uri": "record(3)",
159
153
  "val": "self-label-b",
@@ -209,7 +203,6 @@ Object {
209
203
  Object {
210
204
  "cid": "cids(2)",
211
205
  "cts": "1970-01-01T00:00:00.000Z",
212
- "neg": false,
213
206
  "src": "user(0)",
214
207
  "uri": "record(3)",
215
208
  "val": "self-label-a",
@@ -217,7 +210,6 @@ Object {
217
210
  Object {
218
211
  "cid": "cids(2)",
219
212
  "cts": "1970-01-01T00:00:00.000Z",
220
- "neg": false,
221
213
  "src": "user(0)",
222
214
  "uri": "record(3)",
223
215
  "val": "self-label-b",
@@ -316,7 +308,6 @@ Object {
316
308
  Object {
317
309
  "cid": "cids(4)",
318
310
  "cts": "1970-01-01T00:00:00.000Z",
319
- "neg": false,
320
311
  "src": "did:example:labeler",
321
312
  "uri": "record(7)",
322
313
  "val": "test-label",
@@ -324,7 +315,6 @@ Object {
324
315
  Object {
325
316
  "cid": "cids(4)",
326
317
  "cts": "1970-01-01T00:00:00.000Z",
327
- "neg": false,
328
318
  "src": "did:example:labeler",
329
319
  "uri": "record(7)",
330
320
  "val": "test-label-2",
@@ -380,7 +370,6 @@ Object {
380
370
  Object {
381
371
  "cid": "cids(2)",
382
372
  "cts": "1970-01-01T00:00:00.000Z",
383
- "neg": false,
384
373
  "src": "user(0)",
385
374
  "uri": "record(3)",
386
375
  "val": "self-label-a",
@@ -388,7 +377,6 @@ Object {
388
377
  Object {
389
378
  "cid": "cids(2)",
390
379
  "cts": "1970-01-01T00:00:00.000Z",
391
- "neg": false,
392
380
  "src": "user(0)",
393
381
  "uri": "record(3)",
394
382
  "val": "self-label-b",
@@ -448,7 +436,6 @@ Object {
448
436
  Object {
449
437
  "cid": "cids(2)",
450
438
  "cts": "1970-01-01T00:00:00.000Z",
451
- "neg": false,
452
439
  "src": "user(0)",
453
440
  "uri": "record(3)",
454
441
  "val": "self-label-a",
@@ -456,7 +443,6 @@ Object {
456
443
  Object {
457
444
  "cid": "cids(2)",
458
445
  "cts": "1970-01-01T00:00:00.000Z",
459
- "neg": false,
460
446
  "src": "user(0)",
461
447
  "uri": "record(3)",
462
448
  "val": "self-label-b",
@@ -554,7 +540,6 @@ Object {
554
540
  Object {
555
541
  "cid": "cids(4)",
556
542
  "cts": "1970-01-01T00:00:00.000Z",
557
- "neg": false,
558
543
  "src": "did:example:labeler",
559
544
  "uri": "record(7)",
560
545
  "val": "test-label",
@@ -562,7 +547,6 @@ Object {
562
547
  Object {
563
548
  "cid": "cids(4)",
564
549
  "cts": "1970-01-01T00:00:00.000Z",
565
- "neg": false,
566
550
  "src": "did:example:labeler",
567
551
  "uri": "record(7)",
568
552
  "val": "test-label-2",
@@ -623,7 +607,6 @@ Object {
623
607
  Object {
624
608
  "cid": "cids(2)",
625
609
  "cts": "1970-01-01T00:00:00.000Z",
626
- "neg": false,
627
610
  "src": "user(0)",
628
611
  "uri": "record(3)",
629
612
  "val": "self-label-a",
@@ -631,7 +614,6 @@ Object {
631
614
  Object {
632
615
  "cid": "cids(2)",
633
616
  "cts": "1970-01-01T00:00:00.000Z",
634
- "neg": false,
635
617
  "src": "user(0)",
636
618
  "uri": "record(3)",
637
619
  "val": "self-label-b",
@@ -710,7 +692,6 @@ Object {
710
692
  Object {
711
693
  "cid": "cids(2)",
712
694
  "cts": "1970-01-01T00:00:00.000Z",
713
- "neg": false,
714
695
  "src": "user(0)",
715
696
  "uri": "record(3)",
716
697
  "val": "self-label-a",
@@ -718,7 +699,6 @@ Object {
718
699
  Object {
719
700
  "cid": "cids(2)",
720
701
  "cts": "1970-01-01T00:00:00.000Z",
721
- "neg": false,
722
702
  "src": "user(0)",
723
703
  "uri": "record(3)",
724
704
  "val": "self-label-b",
@@ -776,7 +756,6 @@ Object {
776
756
  Object {
777
757
  "cid": "cids(2)",
778
758
  "cts": "1970-01-01T00:00:00.000Z",
779
- "neg": false,
780
759
  "src": "user(0)",
781
760
  "uri": "record(3)",
782
761
  "val": "self-label-a",
@@ -784,7 +763,6 @@ Object {
784
763
  Object {
785
764
  "cid": "cids(2)",
786
765
  "cts": "1970-01-01T00:00:00.000Z",
787
- "neg": false,
788
766
  "src": "user(0)",
789
767
  "uri": "record(3)",
790
768
  "val": "self-label-b",
@@ -833,7 +811,6 @@ Object {
833
811
  Object {
834
812
  "cid": "cids(2)",
835
813
  "cts": "1970-01-01T00:00:00.000Z",
836
- "neg": false,
837
814
  "src": "user(0)",
838
815
  "uri": "record(3)",
839
816
  "val": "self-label-a",
@@ -841,7 +818,6 @@ Object {
841
818
  Object {
842
819
  "cid": "cids(2)",
843
820
  "cts": "1970-01-01T00:00:00.000Z",
844
- "neg": false,
845
821
  "src": "user(0)",
846
822
  "uri": "record(3)",
847
823
  "val": "self-label-b",
@@ -900,7 +876,6 @@ Object {
900
876
  Object {
901
877
  "cid": "cids(2)",
902
878
  "cts": "1970-01-01T00:00:00.000Z",
903
- "neg": false,
904
879
  "src": "user(0)",
905
880
  "uri": "record(3)",
906
881
  "val": "self-label-a",
@@ -908,7 +883,6 @@ Object {
908
883
  Object {
909
884
  "cid": "cids(2)",
910
885
  "cts": "1970-01-01T00:00:00.000Z",
911
- "neg": false,
912
886
  "src": "user(0)",
913
887
  "uri": "record(3)",
914
888
  "val": "self-label-b",
@@ -969,7 +943,6 @@ Object {
969
943
  Object {
970
944
  "cid": "cids(2)",
971
945
  "cts": "1970-01-01T00:00:00.000Z",
972
- "neg": false,
973
946
  "src": "user(0)",
974
947
  "uri": "record(3)",
975
948
  "val": "self-label-a",
@@ -977,7 +950,6 @@ Object {
977
950
  Object {
978
951
  "cid": "cids(2)",
979
952
  "cts": "1970-01-01T00:00:00.000Z",
980
- "neg": false,
981
953
  "src": "user(0)",
982
954
  "uri": "record(3)",
983
955
  "val": "self-label-b",
@@ -1033,7 +1005,6 @@ Object {
1033
1005
  Object {
1034
1006
  "cid": "cids(2)",
1035
1007
  "cts": "1970-01-01T00:00:00.000Z",
1036
- "neg": false,
1037
1008
  "src": "user(0)",
1038
1009
  "uri": "record(3)",
1039
1010
  "val": "self-label-a",
@@ -1041,7 +1012,6 @@ Object {
1041
1012
  Object {
1042
1013
  "cid": "cids(2)",
1043
1014
  "cts": "1970-01-01T00:00:00.000Z",
1044
- "neg": false,
1045
1015
  "src": "user(0)",
1046
1016
  "uri": "record(3)",
1047
1017
  "val": "self-label-b",
@@ -1106,7 +1076,6 @@ Object {
1106
1076
  Object {
1107
1077
  "cid": "cids(3)",
1108
1078
  "cts": "1970-01-01T00:00:00.000Z",
1109
- "neg": false,
1110
1079
  "src": "did:example:labeler",
1111
1080
  "uri": "record(6)",
1112
1081
  "val": "test-label",
@@ -1114,7 +1083,6 @@ Object {
1114
1083
  Object {
1115
1084
  "cid": "cids(3)",
1116
1085
  "cts": "1970-01-01T00:00:00.000Z",
1117
- "neg": false,
1118
1086
  "src": "did:example:labeler",
1119
1087
  "uri": "record(6)",
1120
1088
  "val": "test-label-2",
@@ -1170,7 +1138,6 @@ Object {
1170
1138
  Object {
1171
1139
  "cid": "cids(2)",
1172
1140
  "cts": "1970-01-01T00:00:00.000Z",
1173
- "neg": false,
1174
1141
  "src": "user(0)",
1175
1142
  "uri": "record(3)",
1176
1143
  "val": "self-label-a",
@@ -1178,7 +1145,6 @@ Object {
1178
1145
  Object {
1179
1146
  "cid": "cids(2)",
1180
1147
  "cts": "1970-01-01T00:00:00.000Z",
1181
- "neg": false,
1182
1148
  "src": "user(0)",
1183
1149
  "uri": "record(3)",
1184
1150
  "val": "self-label-b",
@@ -1238,7 +1204,6 @@ Object {
1238
1204
  Object {
1239
1205
  "cid": "cids(2)",
1240
1206
  "cts": "1970-01-01T00:00:00.000Z",
1241
- "neg": false,
1242
1207
  "src": "user(0)",
1243
1208
  "uri": "record(3)",
1244
1209
  "val": "self-label-a",
@@ -1246,7 +1211,6 @@ Object {
1246
1211
  Object {
1247
1212
  "cid": "cids(2)",
1248
1213
  "cts": "1970-01-01T00:00:00.000Z",
1249
- "neg": false,
1250
1214
  "src": "user(0)",
1251
1215
  "uri": "record(3)",
1252
1216
  "val": "self-label-b",
@@ -1306,7 +1270,6 @@ Object {
1306
1270
  Object {
1307
1271
  "cid": "cids(3)",
1308
1272
  "cts": "1970-01-01T00:00:00.000Z",
1309
- "neg": false,
1310
1273
  "src": "did:example:labeler",
1311
1274
  "uri": "record(5)",
1312
1275
  "val": "test-label",
@@ -1314,7 +1277,6 @@ Object {
1314
1277
  Object {
1315
1278
  "cid": "cids(3)",
1316
1279
  "cts": "1970-01-01T00:00:00.000Z",
1317
- "neg": false,
1318
1280
  "src": "did:example:labeler",
1319
1281
  "uri": "record(5)",
1320
1282
  "val": "test-label-2",