@atproto/pds 0.4.33 → 0.4.34
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/dist/actor-store/preference/reader.d.ts +2 -1
- package/dist/actor-store/preference/reader.d.ts.map +1 -1
- package/dist/actor-store/preference/reader.js +3 -1
- package/dist/actor-store/preference/reader.js.map +1 -1
- package/dist/actor-store/preference/transactor.d.ts +2 -1
- package/dist/actor-store/preference/transactor.d.ts.map +1 -1
- package/dist/actor-store/preference/transactor.js +7 -1
- package/dist/actor-store/preference/transactor.js.map +1 -1
- package/dist/actor-store/preference/util.d.ts +3 -0
- package/dist/actor-store/preference/util.d.ts.map +1 -0
- package/dist/actor-store/preference/util.js +12 -0
- package/dist/actor-store/preference/util.js.map +1 -0
- package/dist/api/app/bsky/actor/getPreferences.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/getPreferences.js +1 -6
- package/dist/api/app/bsky/actor/getPreferences.js.map +1 -1
- package/dist/api/app/bsky/actor/putPreferences.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/putPreferences.js +1 -1
- package/dist/api/app/bsky/actor/putPreferences.js.map +1 -1
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +51 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +51 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/muteThread.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/graph/muteThread.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/muteThread.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/muteThread.js.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteThread.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteThread.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteThread.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteThread.js.map +1 -0
- package/package.json +4 -4
- package/src/actor-store/preference/reader.ts +7 -1
- package/src/actor-store/preference/transactor.ts +10 -0
- package/src/actor-store/preference/util.ts +8 -0
- package/src/api/app/bsky/actor/getPreferences.ts +2 -9
- package/src/api/app/bsky/actor/putPreferences.ts +5 -1
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +52 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/muteThread.ts +38 -0
- package/src/lexicon/types/app/bsky/graph/unmuteThread.ts +38 -0
- package/tests/preferences.test.ts +67 -1
- package/tests/proxied/__snapshots__/feedgen.test.ts.snap +4 -1
- package/tests/proxied/__snapshots__/views.test.ts.snap +116 -38
@@ -446,7 +446,9 @@ Object {
|
|
446
446
|
"replyCount": 1,
|
447
447
|
"repostCount": 0,
|
448
448
|
"uri": "record(0)",
|
449
|
-
"viewer": Object {
|
449
|
+
"viewer": Object {
|
450
|
+
"threadMuted": false,
|
451
|
+
},
|
450
452
|
},
|
451
453
|
"reply": Object {
|
452
454
|
"parent": Object {
|
@@ -489,7 +491,9 @@ Object {
|
|
489
491
|
"replyCount": 2,
|
490
492
|
"repostCount": 1,
|
491
493
|
"uri": "record(3)",
|
492
|
-
"viewer": Object {
|
494
|
+
"viewer": Object {
|
495
|
+
"threadMuted": false,
|
496
|
+
},
|
493
497
|
},
|
494
498
|
"root": Object {
|
495
499
|
"$type": "app.bsky.feed.defs#postView",
|
@@ -531,7 +535,9 @@ Object {
|
|
531
535
|
"replyCount": 2,
|
532
536
|
"repostCount": 1,
|
533
537
|
"uri": "record(3)",
|
534
|
-
"viewer": Object {
|
538
|
+
"viewer": Object {
|
539
|
+
"threadMuted": false,
|
540
|
+
},
|
535
541
|
},
|
536
542
|
},
|
537
543
|
},
|
@@ -562,7 +568,9 @@ Object {
|
|
562
568
|
"replyCount": 0,
|
563
569
|
"repostCount": 0,
|
564
570
|
"uri": "record(5)",
|
565
|
-
"viewer": Object {
|
571
|
+
"viewer": Object {
|
572
|
+
"threadMuted": false,
|
573
|
+
},
|
566
574
|
},
|
567
575
|
},
|
568
576
|
Object {
|
@@ -596,7 +604,9 @@ Object {
|
|
596
604
|
"replyCount": 0,
|
597
605
|
"repostCount": 0,
|
598
606
|
"uri": "record(6)",
|
599
|
-
"viewer": Object {
|
607
|
+
"viewer": Object {
|
608
|
+
"threadMuted": false,
|
609
|
+
},
|
600
610
|
},
|
601
611
|
},
|
602
612
|
],
|
@@ -807,7 +817,9 @@ Object {
|
|
807
817
|
"replyCount": 0,
|
808
818
|
"repostCount": 1,
|
809
819
|
"uri": "record(0)",
|
810
|
-
"viewer": Object {
|
820
|
+
"viewer": Object {
|
821
|
+
"threadMuted": false,
|
822
|
+
},
|
811
823
|
},
|
812
824
|
"reply": Object {
|
813
825
|
"grandparentAuthor": Object {
|
@@ -899,7 +911,9 @@ Object {
|
|
899
911
|
"replyCount": 1,
|
900
912
|
"repostCount": 0,
|
901
913
|
"uri": "record(3)",
|
902
|
-
"viewer": Object {
|
914
|
+
"viewer": Object {
|
915
|
+
"threadMuted": false,
|
916
|
+
},
|
903
917
|
},
|
904
918
|
"root": Object {
|
905
919
|
"$type": "app.bsky.feed.defs#postView",
|
@@ -941,7 +955,9 @@ Object {
|
|
941
955
|
"replyCount": 2,
|
942
956
|
"repostCount": 1,
|
943
957
|
"uri": "record(2)",
|
944
|
-
"viewer": Object {
|
958
|
+
"viewer": Object {
|
959
|
+
"threadMuted": false,
|
960
|
+
},
|
945
961
|
},
|
946
962
|
},
|
947
963
|
},
|
@@ -1008,7 +1024,9 @@ Object {
|
|
1008
1024
|
"replyCount": 1,
|
1009
1025
|
"repostCount": 0,
|
1010
1026
|
"uri": "record(3)",
|
1011
|
-
"viewer": Object {
|
1027
|
+
"viewer": Object {
|
1028
|
+
"threadMuted": false,
|
1029
|
+
},
|
1012
1030
|
},
|
1013
1031
|
"reply": Object {
|
1014
1032
|
"parent": Object {
|
@@ -1051,7 +1069,9 @@ Object {
|
|
1051
1069
|
"replyCount": 2,
|
1052
1070
|
"repostCount": 1,
|
1053
1071
|
"uri": "record(2)",
|
1054
|
-
"viewer": Object {
|
1072
|
+
"viewer": Object {
|
1073
|
+
"threadMuted": false,
|
1074
|
+
},
|
1055
1075
|
},
|
1056
1076
|
"root": Object {
|
1057
1077
|
"$type": "app.bsky.feed.defs#postView",
|
@@ -1093,7 +1113,9 @@ Object {
|
|
1093
1113
|
"replyCount": 2,
|
1094
1114
|
"repostCount": 1,
|
1095
1115
|
"uri": "record(2)",
|
1096
|
-
"viewer": Object {
|
1116
|
+
"viewer": Object {
|
1117
|
+
"threadMuted": false,
|
1118
|
+
},
|
1097
1119
|
},
|
1098
1120
|
},
|
1099
1121
|
},
|
@@ -1267,7 +1289,9 @@ Object {
|
|
1267
1289
|
"replyCount": 0,
|
1268
1290
|
"repostCount": 0,
|
1269
1291
|
"uri": "record(6)",
|
1270
|
-
"viewer": Object {
|
1292
|
+
"viewer": Object {
|
1293
|
+
"threadMuted": false,
|
1294
|
+
},
|
1271
1295
|
},
|
1272
1296
|
},
|
1273
1297
|
Object {
|
@@ -1297,7 +1321,9 @@ Object {
|
|
1297
1321
|
"replyCount": 0,
|
1298
1322
|
"repostCount": 0,
|
1299
1323
|
"uri": "record(13)",
|
1300
|
-
"viewer": Object {
|
1324
|
+
"viewer": Object {
|
1325
|
+
"threadMuted": false,
|
1326
|
+
},
|
1301
1327
|
},
|
1302
1328
|
},
|
1303
1329
|
Object {
|
@@ -1340,7 +1366,9 @@ Object {
|
|
1340
1366
|
"replyCount": 2,
|
1341
1367
|
"repostCount": 1,
|
1342
1368
|
"uri": "record(2)",
|
1343
|
-
"viewer": Object {
|
1369
|
+
"viewer": Object {
|
1370
|
+
"threadMuted": false,
|
1371
|
+
},
|
1344
1372
|
},
|
1345
1373
|
},
|
1346
1374
|
Object {
|
@@ -1374,7 +1402,9 @@ Object {
|
|
1374
1402
|
"replyCount": 0,
|
1375
1403
|
"repostCount": 0,
|
1376
1404
|
"uri": "record(12)",
|
1377
|
-
"viewer": Object {
|
1405
|
+
"viewer": Object {
|
1406
|
+
"threadMuted": false,
|
1407
|
+
},
|
1378
1408
|
},
|
1379
1409
|
},
|
1380
1410
|
Object {
|
@@ -1433,7 +1463,9 @@ Object {
|
|
1433
1463
|
"replyCount": 0,
|
1434
1464
|
"repostCount": 0,
|
1435
1465
|
"uri": "record(14)",
|
1436
|
-
"viewer": Object {
|
1466
|
+
"viewer": Object {
|
1467
|
+
"threadMuted": false,
|
1468
|
+
},
|
1437
1469
|
},
|
1438
1470
|
},
|
1439
1471
|
],
|
@@ -1473,7 +1505,9 @@ Object {
|
|
1473
1505
|
"replyCount": 0,
|
1474
1506
|
"repostCount": 0,
|
1475
1507
|
"uri": "record(0)",
|
1476
|
-
"viewer": Object {
|
1508
|
+
"viewer": Object {
|
1509
|
+
"threadMuted": false,
|
1510
|
+
},
|
1477
1511
|
},
|
1478
1512
|
Object {
|
1479
1513
|
"author": Object {
|
@@ -1590,6 +1624,7 @@ Object {
|
|
1590
1624
|
"uri": "record(3)",
|
1591
1625
|
"viewer": Object {
|
1592
1626
|
"like": "record(6)",
|
1627
|
+
"threadMuted": false,
|
1593
1628
|
},
|
1594
1629
|
},
|
1595
1630
|
],
|
@@ -1670,7 +1705,9 @@ Object {
|
|
1670
1705
|
"replyCount": 0,
|
1671
1706
|
"repostCount": 1,
|
1672
1707
|
"uri": "record(0)",
|
1673
|
-
"viewer": Object {
|
1708
|
+
"viewer": Object {
|
1709
|
+
"threadMuted": false,
|
1710
|
+
},
|
1674
1711
|
},
|
1675
1712
|
"reason": Object {
|
1676
1713
|
"$type": "app.bsky.feed.defs#reasonRepost",
|
@@ -1783,7 +1820,9 @@ Object {
|
|
1783
1820
|
"replyCount": 1,
|
1784
1821
|
"repostCount": 0,
|
1785
1822
|
"uri": "record(3)",
|
1786
|
-
"viewer": Object {
|
1823
|
+
"viewer": Object {
|
1824
|
+
"threadMuted": false,
|
1825
|
+
},
|
1787
1826
|
},
|
1788
1827
|
"root": Object {
|
1789
1828
|
"$type": "app.bsky.feed.defs#postView",
|
@@ -1825,7 +1864,9 @@ Object {
|
|
1825
1864
|
"replyCount": 2,
|
1826
1865
|
"repostCount": 1,
|
1827
1866
|
"uri": "record(2)",
|
1828
|
-
"viewer": Object {
|
1867
|
+
"viewer": Object {
|
1868
|
+
"threadMuted": false,
|
1869
|
+
},
|
1829
1870
|
},
|
1830
1871
|
},
|
1831
1872
|
},
|
@@ -1869,7 +1910,9 @@ Object {
|
|
1869
1910
|
"replyCount": 2,
|
1870
1911
|
"repostCount": 1,
|
1871
1912
|
"uri": "record(2)",
|
1872
|
-
"viewer": Object {
|
1913
|
+
"viewer": Object {
|
1914
|
+
"threadMuted": false,
|
1915
|
+
},
|
1873
1916
|
},
|
1874
1917
|
"reason": Object {
|
1875
1918
|
"$type": "app.bsky.feed.defs#reasonRepost",
|
@@ -2064,7 +2107,9 @@ Object {
|
|
2064
2107
|
"replyCount": 0,
|
2065
2108
|
"repostCount": 1,
|
2066
2109
|
"uri": "record(7)",
|
2067
|
-
"viewer": Object {
|
2110
|
+
"viewer": Object {
|
2111
|
+
"threadMuted": false,
|
2112
|
+
},
|
2068
2113
|
},
|
2069
2114
|
"reason": Object {
|
2070
2115
|
"$type": "app.bsky.feed.defs#reasonRepost",
|
@@ -2132,7 +2177,9 @@ Object {
|
|
2132
2177
|
"replyCount": 0,
|
2133
2178
|
"repostCount": 1,
|
2134
2179
|
"uri": "record(0)",
|
2135
|
-
"viewer": Object {
|
2180
|
+
"viewer": Object {
|
2181
|
+
"threadMuted": false,
|
2182
|
+
},
|
2136
2183
|
},
|
2137
2184
|
"reply": Object {
|
2138
2185
|
"grandparentAuthor": Object {
|
@@ -2224,7 +2271,9 @@ Object {
|
|
2224
2271
|
"replyCount": 1,
|
2225
2272
|
"repostCount": 0,
|
2226
2273
|
"uri": "record(3)",
|
2227
|
-
"viewer": Object {
|
2274
|
+
"viewer": Object {
|
2275
|
+
"threadMuted": false,
|
2276
|
+
},
|
2228
2277
|
},
|
2229
2278
|
"root": Object {
|
2230
2279
|
"$type": "app.bsky.feed.defs#postView",
|
@@ -2266,7 +2315,9 @@ Object {
|
|
2266
2315
|
"replyCount": 2,
|
2267
2316
|
"repostCount": 1,
|
2268
2317
|
"uri": "record(2)",
|
2269
|
-
"viewer": Object {
|
2318
|
+
"viewer": Object {
|
2319
|
+
"threadMuted": false,
|
2320
|
+
},
|
2270
2321
|
},
|
2271
2322
|
},
|
2272
2323
|
},
|
@@ -2305,7 +2356,9 @@ Object {
|
|
2305
2356
|
"replyCount": 0,
|
2306
2357
|
"repostCount": 0,
|
2307
2358
|
"uri": "record(12)",
|
2308
|
-
"viewer": Object {
|
2359
|
+
"viewer": Object {
|
2360
|
+
"threadMuted": false,
|
2361
|
+
},
|
2309
2362
|
},
|
2310
2363
|
"reply": Object {
|
2311
2364
|
"parent": Object {
|
@@ -2348,7 +2401,9 @@ Object {
|
|
2348
2401
|
"replyCount": 2,
|
2349
2402
|
"repostCount": 1,
|
2350
2403
|
"uri": "record(2)",
|
2351
|
-
"viewer": Object {
|
2404
|
+
"viewer": Object {
|
2405
|
+
"threadMuted": false,
|
2406
|
+
},
|
2352
2407
|
},
|
2353
2408
|
"root": Object {
|
2354
2409
|
"$type": "app.bsky.feed.defs#postView",
|
@@ -2390,7 +2445,9 @@ Object {
|
|
2390
2445
|
"replyCount": 2,
|
2391
2446
|
"repostCount": 1,
|
2392
2447
|
"uri": "record(2)",
|
2393
|
-
"viewer": Object {
|
2448
|
+
"viewer": Object {
|
2449
|
+
"threadMuted": false,
|
2450
|
+
},
|
2394
2451
|
},
|
2395
2452
|
},
|
2396
2453
|
},
|
@@ -2457,7 +2514,9 @@ Object {
|
|
2457
2514
|
"replyCount": 1,
|
2458
2515
|
"repostCount": 0,
|
2459
2516
|
"uri": "record(3)",
|
2460
|
-
"viewer": Object {
|
2517
|
+
"viewer": Object {
|
2518
|
+
"threadMuted": false,
|
2519
|
+
},
|
2461
2520
|
},
|
2462
2521
|
"reply": Object {
|
2463
2522
|
"parent": Object {
|
@@ -2500,7 +2559,9 @@ Object {
|
|
2500
2559
|
"replyCount": 2,
|
2501
2560
|
"repostCount": 1,
|
2502
2561
|
"uri": "record(2)",
|
2503
|
-
"viewer": Object {
|
2562
|
+
"viewer": Object {
|
2563
|
+
"threadMuted": false,
|
2564
|
+
},
|
2504
2565
|
},
|
2505
2566
|
"root": Object {
|
2506
2567
|
"$type": "app.bsky.feed.defs#postView",
|
@@ -2542,7 +2603,9 @@ Object {
|
|
2542
2603
|
"replyCount": 2,
|
2543
2604
|
"repostCount": 1,
|
2544
2605
|
"uri": "record(2)",
|
2545
|
-
"viewer": Object {
|
2606
|
+
"viewer": Object {
|
2607
|
+
"threadMuted": false,
|
2608
|
+
},
|
2546
2609
|
},
|
2547
2610
|
},
|
2548
2611
|
},
|
@@ -2716,7 +2779,9 @@ Object {
|
|
2716
2779
|
"replyCount": 0,
|
2717
2780
|
"repostCount": 0,
|
2718
2781
|
"uri": "record(13)",
|
2719
|
-
"viewer": Object {
|
2782
|
+
"viewer": Object {
|
2783
|
+
"threadMuted": false,
|
2784
|
+
},
|
2720
2785
|
},
|
2721
2786
|
},
|
2722
2787
|
Object {
|
@@ -2746,7 +2811,9 @@ Object {
|
|
2746
2811
|
"replyCount": 0,
|
2747
2812
|
"repostCount": 0,
|
2748
2813
|
"uri": "record(14)",
|
2749
|
-
"viewer": Object {
|
2814
|
+
"viewer": Object {
|
2815
|
+
"threadMuted": false,
|
2816
|
+
},
|
2750
2817
|
},
|
2751
2818
|
},
|
2752
2819
|
Object {
|
@@ -2789,7 +2856,9 @@ Object {
|
|
2789
2856
|
"replyCount": 2,
|
2790
2857
|
"repostCount": 1,
|
2791
2858
|
"uri": "record(2)",
|
2792
|
-
"viewer": Object {
|
2859
|
+
"viewer": Object {
|
2860
|
+
"threadMuted": false,
|
2861
|
+
},
|
2793
2862
|
},
|
2794
2863
|
},
|
2795
2864
|
Object {
|
@@ -2963,7 +3032,9 @@ Object {
|
|
2963
3032
|
"replyCount": 0,
|
2964
3033
|
"repostCount": 1,
|
2965
3034
|
"uri": "record(7)",
|
2966
|
-
"viewer": Object {
|
3035
|
+
"viewer": Object {
|
3036
|
+
"threadMuted": false,
|
3037
|
+
},
|
2967
3038
|
},
|
2968
3039
|
},
|
2969
3040
|
Object {
|
@@ -2997,7 +3068,9 @@ Object {
|
|
2997
3068
|
"replyCount": 0,
|
2998
3069
|
"repostCount": 0,
|
2999
3070
|
"uri": "record(15)",
|
3000
|
-
"viewer": Object {
|
3071
|
+
"viewer": Object {
|
3072
|
+
"threadMuted": false,
|
3073
|
+
},
|
3001
3074
|
},
|
3002
3075
|
},
|
3003
3076
|
Object {
|
@@ -3116,6 +3189,7 @@ Object {
|
|
3116
3189
|
"uri": "record(8)",
|
3117
3190
|
"viewer": Object {
|
3118
3191
|
"like": "record(16)",
|
3192
|
+
"threadMuted": false,
|
3119
3193
|
},
|
3120
3194
|
},
|
3121
3195
|
},
|
@@ -3150,7 +3224,9 @@ Object {
|
|
3150
3224
|
"replyCount": 0,
|
3151
3225
|
"repostCount": 0,
|
3152
3226
|
"uri": "record(11)",
|
3153
|
-
"viewer": Object {
|
3227
|
+
"viewer": Object {
|
3228
|
+
"threadMuted": false,
|
3229
|
+
},
|
3154
3230
|
},
|
3155
3231
|
},
|
3156
3232
|
Object {
|
@@ -3209,7 +3285,9 @@ Object {
|
|
3209
3285
|
"replyCount": 0,
|
3210
3286
|
"repostCount": 0,
|
3211
3287
|
"uri": "record(17)",
|
3212
|
-
"viewer": Object {
|
3288
|
+
"viewer": Object {
|
3289
|
+
"threadMuted": false,
|
3290
|
+
},
|
3213
3291
|
},
|
3214
3292
|
},
|
3215
3293
|
],
|