@atproto/pds 0.4.6 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/config/config.d.ts +1 -0
- package/dist/config/env.d.ts +1 -0
- package/dist/index.js +34 -1
- package/dist/index.js.map +2 -2
- package/dist/lexicon/lexicons.d.ts +13 -0
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +7 -0
- package/package.json +6 -6
- package/src/api/com/atproto/server/describeServer.ts +4 -0
- package/src/config/config.ts +2 -0
- package/src/config/env.ts +2 -0
- package/src/lexicon/lexicons.ts +13 -0
- package/src/lexicon/types/com/atproto/server/describeServer.ts +18 -0
- package/tests/account.test.ts +2 -0
- package/tests/proxied/__snapshots__/feedgen.test.ts.snap +0 -3
- package/tests/proxied/__snapshots__/views.test.ts.snap +0 -73
- package/tests/proxied/admin.test.ts +22 -17
@@ -47,7 +47,6 @@ Object {
|
|
47
47
|
Object {
|
48
48
|
"cid": "cids(1)",
|
49
49
|
"cts": "1970-01-01T00:00:00.000Z",
|
50
|
-
"neg": false,
|
51
50
|
"src": "user(0)",
|
52
51
|
"uri": "record(0)",
|
53
52
|
"val": "self-label-a",
|
@@ -55,7 +54,6 @@ Object {
|
|
55
54
|
Object {
|
56
55
|
"cid": "cids(1)",
|
57
56
|
"cts": "1970-01-01T00:00:00.000Z",
|
58
|
-
"neg": false,
|
59
57
|
"src": "user(0)",
|
60
58
|
"uri": "record(0)",
|
61
59
|
"val": "self-label-b",
|
@@ -117,7 +115,6 @@ Object {
|
|
117
115
|
"labels": Array [
|
118
116
|
Object {
|
119
117
|
"cts": "1970-01-01T00:00:00.000Z",
|
120
|
-
"neg": false,
|
121
118
|
"src": "did:example:labeler",
|
122
119
|
"uri": "user(2)",
|
123
120
|
"val": "repo-action-label",
|
@@ -146,7 +143,6 @@ Array [
|
|
146
143
|
Object {
|
147
144
|
"cid": "cids(1)",
|
148
145
|
"cts": "1970-01-01T00:00:00.000Z",
|
149
|
-
"neg": false,
|
150
146
|
"src": "user(0)",
|
151
147
|
"uri": "record(0)",
|
152
148
|
"val": "self-label-a",
|
@@ -154,7 +150,6 @@ Array [
|
|
154
150
|
Object {
|
155
151
|
"cid": "cids(1)",
|
156
152
|
"cts": "1970-01-01T00:00:00.000Z",
|
157
|
-
"neg": false,
|
158
153
|
"src": "user(0)",
|
159
154
|
"uri": "record(0)",
|
160
155
|
"val": "self-label-b",
|
@@ -197,7 +192,6 @@ Array [
|
|
197
192
|
"labels": Array [
|
198
193
|
Object {
|
199
194
|
"cts": "1970-01-01T00:00:00.000Z",
|
200
|
-
"neg": false,
|
201
195
|
"src": "did:example:labeler",
|
202
196
|
"uri": "user(5)",
|
203
197
|
"val": "repo-action-label",
|
@@ -223,7 +217,6 @@ Array [
|
|
223
217
|
Object {
|
224
218
|
"cid": "cids(1)",
|
225
219
|
"cts": "1970-01-01T00:00:00.000Z",
|
226
|
-
"neg": false,
|
227
220
|
"src": "user(0)",
|
228
221
|
"uri": "record(0)",
|
229
222
|
"val": "self-label-a",
|
@@ -231,7 +224,6 @@ Array [
|
|
231
224
|
Object {
|
232
225
|
"cid": "cids(1)",
|
233
226
|
"cts": "1970-01-01T00:00:00.000Z",
|
234
|
-
"neg": false,
|
235
227
|
"src": "user(0)",
|
236
228
|
"uri": "record(0)",
|
237
229
|
"val": "self-label-b",
|
@@ -272,7 +264,6 @@ Array [
|
|
272
264
|
"labels": Array [
|
273
265
|
Object {
|
274
266
|
"cts": "1970-01-01T00:00:00.000Z",
|
275
|
-
"neg": false,
|
276
267
|
"src": "did:example:labeler",
|
277
268
|
"uri": "user(5)",
|
278
269
|
"val": "repo-action-label",
|
@@ -368,7 +359,6 @@ Object {
|
|
368
359
|
Object {
|
369
360
|
"cid": "cids(4)",
|
370
361
|
"cts": "1970-01-01T00:00:00.000Z",
|
371
|
-
"neg": false,
|
372
362
|
"src": "user(2)",
|
373
363
|
"uri": "record(4)",
|
374
364
|
"val": "self-label-a",
|
@@ -376,7 +366,6 @@ Object {
|
|
376
366
|
Object {
|
377
367
|
"cid": "cids(4)",
|
378
368
|
"cts": "1970-01-01T00:00:00.000Z",
|
379
|
-
"neg": false,
|
380
369
|
"src": "user(2)",
|
381
370
|
"uri": "record(4)",
|
382
371
|
"val": "self-label-b",
|
@@ -412,7 +401,6 @@ Object {
|
|
412
401
|
Object {
|
413
402
|
"cid": "cids(4)",
|
414
403
|
"cts": "1970-01-01T00:00:00.000Z",
|
415
|
-
"neg": false,
|
416
404
|
"src": "user(2)",
|
417
405
|
"uri": "record(4)",
|
418
406
|
"val": "self-label-a",
|
@@ -420,7 +408,6 @@ Object {
|
|
420
408
|
Object {
|
421
409
|
"cid": "cids(4)",
|
422
410
|
"cts": "1970-01-01T00:00:00.000Z",
|
423
|
-
"neg": false,
|
424
411
|
"src": "user(2)",
|
425
412
|
"uri": "record(4)",
|
426
413
|
"val": "self-label-b",
|
@@ -532,7 +519,6 @@ Object {
|
|
532
519
|
Object {
|
533
520
|
"cid": "cids(2)",
|
534
521
|
"cts": "1970-01-01T00:00:00.000Z",
|
535
|
-
"neg": false,
|
536
522
|
"src": "user(1)",
|
537
523
|
"uri": "record(1)",
|
538
524
|
"val": "self-label-a",
|
@@ -540,7 +526,6 @@ Object {
|
|
540
526
|
Object {
|
541
527
|
"cid": "cids(2)",
|
542
528
|
"cts": "1970-01-01T00:00:00.000Z",
|
543
|
-
"neg": false,
|
544
529
|
"src": "user(1)",
|
545
530
|
"uri": "record(1)",
|
546
531
|
"val": "self-label-b",
|
@@ -578,7 +563,6 @@ Object {
|
|
578
563
|
Object {
|
579
564
|
"cid": "cids(2)",
|
580
565
|
"cts": "1970-01-01T00:00:00.000Z",
|
581
|
-
"neg": false,
|
582
566
|
"src": "user(1)",
|
583
567
|
"uri": "record(1)",
|
584
568
|
"val": "self-label-a",
|
@@ -586,7 +570,6 @@ Object {
|
|
586
570
|
Object {
|
587
571
|
"cid": "cids(2)",
|
588
572
|
"cts": "1970-01-01T00:00:00.000Z",
|
589
|
-
"neg": false,
|
590
573
|
"src": "user(1)",
|
591
574
|
"uri": "record(1)",
|
592
575
|
"val": "self-label-b",
|
@@ -644,7 +627,6 @@ Object {
|
|
644
627
|
Object {
|
645
628
|
"cid": "cids(1)",
|
646
629
|
"cts": "1970-01-01T00:00:00.000Z",
|
647
|
-
"neg": false,
|
648
630
|
"src": "user(2)",
|
649
631
|
"uri": "record(2)",
|
650
632
|
"val": "self-label-a",
|
@@ -652,7 +634,6 @@ Object {
|
|
652
634
|
Object {
|
653
635
|
"cid": "cids(1)",
|
654
636
|
"cts": "1970-01-01T00:00:00.000Z",
|
655
|
-
"neg": false,
|
656
637
|
"src": "user(2)",
|
657
638
|
"uri": "record(2)",
|
658
639
|
"val": "self-label-b",
|
@@ -686,7 +667,6 @@ Object {
|
|
686
667
|
Object {
|
687
668
|
"cid": "cids(2)",
|
688
669
|
"cts": "1970-01-01T00:00:00.000Z",
|
689
|
-
"neg": false,
|
690
670
|
"src": "user(0)",
|
691
671
|
"uri": "record(1)",
|
692
672
|
"val": "self-label-a",
|
@@ -694,7 +674,6 @@ Object {
|
|
694
674
|
Object {
|
695
675
|
"cid": "cids(2)",
|
696
676
|
"cts": "1970-01-01T00:00:00.000Z",
|
697
|
-
"neg": false,
|
698
677
|
"src": "user(0)",
|
699
678
|
"uri": "record(1)",
|
700
679
|
"val": "self-label-b",
|
@@ -806,7 +785,6 @@ Object {
|
|
806
785
|
Object {
|
807
786
|
"cid": "cids(2)",
|
808
787
|
"cts": "1970-01-01T00:00:00.000Z",
|
809
|
-
"neg": false,
|
810
788
|
"src": "user(0)",
|
811
789
|
"uri": "record(1)",
|
812
790
|
"val": "self-label-a",
|
@@ -814,7 +792,6 @@ Object {
|
|
814
792
|
Object {
|
815
793
|
"cid": "cids(2)",
|
816
794
|
"cts": "1970-01-01T00:00:00.000Z",
|
817
|
-
"neg": false,
|
818
795
|
"src": "user(0)",
|
819
796
|
"uri": "record(1)",
|
820
797
|
"val": "self-label-b",
|
@@ -918,7 +895,6 @@ Object {
|
|
918
895
|
Object {
|
919
896
|
"cid": "cids(2)",
|
920
897
|
"cts": "1970-01-01T00:00:00.000Z",
|
921
|
-
"neg": false,
|
922
898
|
"src": "user(0)",
|
923
899
|
"uri": "record(1)",
|
924
900
|
"val": "self-label-a",
|
@@ -926,7 +902,6 @@ Object {
|
|
926
902
|
Object {
|
927
903
|
"cid": "cids(2)",
|
928
904
|
"cts": "1970-01-01T00:00:00.000Z",
|
929
|
-
"neg": false,
|
930
905
|
"src": "user(0)",
|
931
906
|
"uri": "record(1)",
|
932
907
|
"val": "self-label-b",
|
@@ -962,7 +937,6 @@ Object {
|
|
962
937
|
Object {
|
963
938
|
"cid": "cids(2)",
|
964
939
|
"cts": "1970-01-01T00:00:00.000Z",
|
965
|
-
"neg": false,
|
966
940
|
"src": "user(0)",
|
967
941
|
"uri": "record(1)",
|
968
942
|
"val": "self-label-a",
|
@@ -970,7 +944,6 @@ Object {
|
|
970
944
|
Object {
|
971
945
|
"cid": "cids(2)",
|
972
946
|
"cts": "1970-01-01T00:00:00.000Z",
|
973
|
-
"neg": false,
|
974
947
|
"src": "user(0)",
|
975
948
|
"uri": "record(1)",
|
976
949
|
"val": "self-label-b",
|
@@ -1008,7 +981,6 @@ Object {
|
|
1008
981
|
Object {
|
1009
982
|
"cid": "cids(2)",
|
1010
983
|
"cts": "1970-01-01T00:00:00.000Z",
|
1011
|
-
"neg": false,
|
1012
984
|
"src": "user(0)",
|
1013
985
|
"uri": "record(1)",
|
1014
986
|
"val": "self-label-a",
|
@@ -1016,7 +988,6 @@ Object {
|
|
1016
988
|
Object {
|
1017
989
|
"cid": "cids(2)",
|
1018
990
|
"cts": "1970-01-01T00:00:00.000Z",
|
1019
|
-
"neg": false,
|
1020
991
|
"src": "user(0)",
|
1021
992
|
"uri": "record(1)",
|
1022
993
|
"val": "self-label-b",
|
@@ -1038,7 +1009,6 @@ Object {
|
|
1038
1009
|
"labels": Array [
|
1039
1010
|
Object {
|
1040
1011
|
"cts": "1970-01-01T00:00:00.000Z",
|
1041
|
-
"neg": false,
|
1042
1012
|
"src": "did:example:labeler",
|
1043
1013
|
"uri": "user(4)",
|
1044
1014
|
"val": "repo-action-label",
|
@@ -1208,7 +1178,6 @@ Object {
|
|
1208
1178
|
Object {
|
1209
1179
|
"cid": "cids(2)",
|
1210
1180
|
"cts": "1970-01-01T00:00:00.000Z",
|
1211
|
-
"neg": false,
|
1212
1181
|
"src": "user(0)",
|
1213
1182
|
"uri": "record(1)",
|
1214
1183
|
"val": "self-label-a",
|
@@ -1216,7 +1185,6 @@ Object {
|
|
1216
1185
|
Object {
|
1217
1186
|
"cid": "cids(2)",
|
1218
1187
|
"cts": "1970-01-01T00:00:00.000Z",
|
1219
|
-
"neg": false,
|
1220
1188
|
"src": "user(0)",
|
1221
1189
|
"uri": "record(1)",
|
1222
1190
|
"val": "self-label-b",
|
@@ -1287,7 +1255,6 @@ Object {
|
|
1287
1255
|
Object {
|
1288
1256
|
"cid": "cids(2)",
|
1289
1257
|
"cts": "1970-01-01T00:00:00.000Z",
|
1290
|
-
"neg": false,
|
1291
1258
|
"src": "user(0)",
|
1292
1259
|
"uri": "record(1)",
|
1293
1260
|
"val": "self-label-a",
|
@@ -1295,7 +1262,6 @@ Object {
|
|
1295
1262
|
Object {
|
1296
1263
|
"cid": "cids(2)",
|
1297
1264
|
"cts": "1970-01-01T00:00:00.000Z",
|
1298
|
-
"neg": false,
|
1299
1265
|
"src": "user(0)",
|
1300
1266
|
"uri": "record(1)",
|
1301
1267
|
"val": "self-label-b",
|
@@ -1312,7 +1278,6 @@ Object {
|
|
1312
1278
|
Object {
|
1313
1279
|
"cid": "cids(12)",
|
1314
1280
|
"cts": "1970-01-01T00:00:00.000Z",
|
1315
|
-
"neg": false,
|
1316
1281
|
"src": "user(0)",
|
1317
1282
|
"uri": "record(14)",
|
1318
1283
|
"val": "self-label",
|
@@ -1530,7 +1495,6 @@ Object {
|
|
1530
1495
|
Object {
|
1531
1496
|
"cid": "cids(2)",
|
1532
1497
|
"cts": "1970-01-01T00:00:00.000Z",
|
1533
|
-
"neg": false,
|
1534
1498
|
"src": "user(0)",
|
1535
1499
|
"uri": "record(1)",
|
1536
1500
|
"val": "self-label-a",
|
@@ -1538,7 +1502,6 @@ Object {
|
|
1538
1502
|
Object {
|
1539
1503
|
"cid": "cids(2)",
|
1540
1504
|
"cts": "1970-01-01T00:00:00.000Z",
|
1541
|
-
"neg": false,
|
1542
1505
|
"src": "user(0)",
|
1543
1506
|
"uri": "record(1)",
|
1544
1507
|
"val": "self-label-b",
|
@@ -1581,7 +1544,6 @@ Object {
|
|
1581
1544
|
"labels": Array [
|
1582
1545
|
Object {
|
1583
1546
|
"cts": "1970-01-01T00:00:00.000Z",
|
1584
|
-
"neg": false,
|
1585
1547
|
"src": "did:example:labeler",
|
1586
1548
|
"uri": "user(2)",
|
1587
1549
|
"val": "repo-action-label",
|
@@ -1672,7 +1634,6 @@ Object {
|
|
1672
1634
|
Object {
|
1673
1635
|
"cid": "cids(2)",
|
1674
1636
|
"cts": "1970-01-01T00:00:00.000Z",
|
1675
|
-
"neg": false,
|
1676
1637
|
"src": "user(0)",
|
1677
1638
|
"uri": "record(1)",
|
1678
1639
|
"val": "self-label-a",
|
@@ -1680,7 +1641,6 @@ Object {
|
|
1680
1641
|
Object {
|
1681
1642
|
"cid": "cids(2)",
|
1682
1643
|
"cts": "1970-01-01T00:00:00.000Z",
|
1683
|
-
"neg": false,
|
1684
1644
|
"src": "user(0)",
|
1685
1645
|
"uri": "record(1)",
|
1686
1646
|
"val": "self-label-b",
|
@@ -1718,7 +1678,6 @@ Object {
|
|
1718
1678
|
Object {
|
1719
1679
|
"cid": "cids(2)",
|
1720
1680
|
"cts": "1970-01-01T00:00:00.000Z",
|
1721
|
-
"neg": false,
|
1722
1681
|
"src": "user(0)",
|
1723
1682
|
"uri": "record(1)",
|
1724
1683
|
"val": "self-label-a",
|
@@ -1726,7 +1685,6 @@ Object {
|
|
1726
1685
|
Object {
|
1727
1686
|
"cid": "cids(2)",
|
1728
1687
|
"cts": "1970-01-01T00:00:00.000Z",
|
1729
|
-
"neg": false,
|
1730
1688
|
"src": "user(0)",
|
1731
1689
|
"uri": "record(1)",
|
1732
1690
|
"val": "self-label-b",
|
@@ -1759,7 +1717,6 @@ Object {
|
|
1759
1717
|
"labels": Array [
|
1760
1718
|
Object {
|
1761
1719
|
"cts": "1970-01-01T00:00:00.000Z",
|
1762
|
-
"neg": false,
|
1763
1720
|
"src": "did:example:labeler",
|
1764
1721
|
"uri": "user(2)",
|
1765
1722
|
"val": "repo-action-label",
|
@@ -1782,7 +1739,6 @@ Object {
|
|
1782
1739
|
"labels": Array [
|
1783
1740
|
Object {
|
1784
1741
|
"cts": "1970-01-01T00:00:00.000Z",
|
1785
|
-
"neg": false,
|
1786
1742
|
"src": "did:example:labeler",
|
1787
1743
|
"uri": "user(2)",
|
1788
1744
|
"val": "repo-action-label",
|
@@ -1969,7 +1925,6 @@ Object {
|
|
1969
1925
|
Object {
|
1970
1926
|
"cid": "cids(2)",
|
1971
1927
|
"cts": "1970-01-01T00:00:00.000Z",
|
1972
|
-
"neg": false,
|
1973
1928
|
"src": "user(0)",
|
1974
1929
|
"uri": "record(1)",
|
1975
1930
|
"val": "self-label-a",
|
@@ -1977,7 +1932,6 @@ Object {
|
|
1977
1932
|
Object {
|
1978
1933
|
"cid": "cids(2)",
|
1979
1934
|
"cts": "1970-01-01T00:00:00.000Z",
|
1980
|
-
"neg": false,
|
1981
1935
|
"src": "user(0)",
|
1982
1936
|
"uri": "record(1)",
|
1983
1937
|
"val": "self-label-b",
|
@@ -2089,7 +2043,6 @@ Object {
|
|
2089
2043
|
Object {
|
2090
2044
|
"cid": "cids(2)",
|
2091
2045
|
"cts": "1970-01-01T00:00:00.000Z",
|
2092
|
-
"neg": false,
|
2093
2046
|
"src": "user(0)",
|
2094
2047
|
"uri": "record(1)",
|
2095
2048
|
"val": "self-label-a",
|
@@ -2097,7 +2050,6 @@ Object {
|
|
2097
2050
|
Object {
|
2098
2051
|
"cid": "cids(2)",
|
2099
2052
|
"cts": "1970-01-01T00:00:00.000Z",
|
2100
|
-
"neg": false,
|
2101
2053
|
"src": "user(0)",
|
2102
2054
|
"uri": "record(1)",
|
2103
2055
|
"val": "self-label-b",
|
@@ -2173,7 +2125,6 @@ Object {
|
|
2173
2125
|
Object {
|
2174
2126
|
"cid": "cids(2)",
|
2175
2127
|
"cts": "1970-01-01T00:00:00.000Z",
|
2176
|
-
"neg": false,
|
2177
2128
|
"src": "user(0)",
|
2178
2129
|
"uri": "record(1)",
|
2179
2130
|
"val": "self-label-a",
|
@@ -2181,7 +2132,6 @@ Object {
|
|
2181
2132
|
Object {
|
2182
2133
|
"cid": "cids(2)",
|
2183
2134
|
"cts": "1970-01-01T00:00:00.000Z",
|
2184
|
-
"neg": false,
|
2185
2135
|
"src": "user(0)",
|
2186
2136
|
"uri": "record(1)",
|
2187
2137
|
"val": "self-label-b",
|
@@ -2217,7 +2167,6 @@ Object {
|
|
2217
2167
|
Object {
|
2218
2168
|
"cid": "cids(2)",
|
2219
2169
|
"cts": "1970-01-01T00:00:00.000Z",
|
2220
|
-
"neg": false,
|
2221
2170
|
"src": "user(0)",
|
2222
2171
|
"uri": "record(1)",
|
2223
2172
|
"val": "self-label-a",
|
@@ -2225,7 +2174,6 @@ Object {
|
|
2225
2174
|
Object {
|
2226
2175
|
"cid": "cids(2)",
|
2227
2176
|
"cts": "1970-01-01T00:00:00.000Z",
|
2228
|
-
"neg": false,
|
2229
2177
|
"src": "user(0)",
|
2230
2178
|
"uri": "record(1)",
|
2231
2179
|
"val": "self-label-b",
|
@@ -2329,7 +2277,6 @@ Object {
|
|
2329
2277
|
Object {
|
2330
2278
|
"cid": "cids(2)",
|
2331
2279
|
"cts": "1970-01-01T00:00:00.000Z",
|
2332
|
-
"neg": false,
|
2333
2280
|
"src": "user(0)",
|
2334
2281
|
"uri": "record(1)",
|
2335
2282
|
"val": "self-label-a",
|
@@ -2337,7 +2284,6 @@ Object {
|
|
2337
2284
|
Object {
|
2338
2285
|
"cid": "cids(2)",
|
2339
2286
|
"cts": "1970-01-01T00:00:00.000Z",
|
2340
|
-
"neg": false,
|
2341
2287
|
"src": "user(0)",
|
2342
2288
|
"uri": "record(1)",
|
2343
2289
|
"val": "self-label-b",
|
@@ -2373,7 +2319,6 @@ Object {
|
|
2373
2319
|
Object {
|
2374
2320
|
"cid": "cids(2)",
|
2375
2321
|
"cts": "1970-01-01T00:00:00.000Z",
|
2376
|
-
"neg": false,
|
2377
2322
|
"src": "user(0)",
|
2378
2323
|
"uri": "record(1)",
|
2379
2324
|
"val": "self-label-a",
|
@@ -2381,7 +2326,6 @@ Object {
|
|
2381
2326
|
Object {
|
2382
2327
|
"cid": "cids(2)",
|
2383
2328
|
"cts": "1970-01-01T00:00:00.000Z",
|
2384
|
-
"neg": false,
|
2385
2329
|
"src": "user(0)",
|
2386
2330
|
"uri": "record(1)",
|
2387
2331
|
"val": "self-label-b",
|
@@ -2419,7 +2363,6 @@ Object {
|
|
2419
2363
|
Object {
|
2420
2364
|
"cid": "cids(2)",
|
2421
2365
|
"cts": "1970-01-01T00:00:00.000Z",
|
2422
|
-
"neg": false,
|
2423
2366
|
"src": "user(0)",
|
2424
2367
|
"uri": "record(1)",
|
2425
2368
|
"val": "self-label-a",
|
@@ -2427,7 +2370,6 @@ Object {
|
|
2427
2370
|
Object {
|
2428
2371
|
"cid": "cids(2)",
|
2429
2372
|
"cts": "1970-01-01T00:00:00.000Z",
|
2430
|
-
"neg": false,
|
2431
2373
|
"src": "user(0)",
|
2432
2374
|
"uri": "record(1)",
|
2433
2375
|
"val": "self-label-b",
|
@@ -2449,7 +2391,6 @@ Object {
|
|
2449
2391
|
"labels": Array [
|
2450
2392
|
Object {
|
2451
2393
|
"cts": "1970-01-01T00:00:00.000Z",
|
2452
|
-
"neg": false,
|
2453
2394
|
"src": "did:example:labeler",
|
2454
2395
|
"uri": "user(2)",
|
2455
2396
|
"val": "repo-action-label",
|
@@ -2619,7 +2560,6 @@ Object {
|
|
2619
2560
|
Object {
|
2620
2561
|
"cid": "cids(2)",
|
2621
2562
|
"cts": "1970-01-01T00:00:00.000Z",
|
2622
|
-
"neg": false,
|
2623
2563
|
"src": "user(0)",
|
2624
2564
|
"uri": "record(1)",
|
2625
2565
|
"val": "self-label-a",
|
@@ -2627,7 +2567,6 @@ Object {
|
|
2627
2567
|
Object {
|
2628
2568
|
"cid": "cids(2)",
|
2629
2569
|
"cts": "1970-01-01T00:00:00.000Z",
|
2630
|
-
"neg": false,
|
2631
2570
|
"src": "user(0)",
|
2632
2571
|
"uri": "record(1)",
|
2633
2572
|
"val": "self-label-b",
|
@@ -2661,7 +2600,6 @@ Object {
|
|
2661
2600
|
"labels": Array [
|
2662
2601
|
Object {
|
2663
2602
|
"cts": "1970-01-01T00:00:00.000Z",
|
2664
|
-
"neg": false,
|
2665
2603
|
"src": "did:example:labeler",
|
2666
2604
|
"uri": "user(2)",
|
2667
2605
|
"val": "repo-action-label",
|
@@ -2830,7 +2768,6 @@ Object {
|
|
2830
2768
|
"labels": Array [
|
2831
2769
|
Object {
|
2832
2770
|
"cts": "1970-01-01T00:00:00.000Z",
|
2833
|
-
"neg": false,
|
2834
2771
|
"src": "did:example:labeler",
|
2835
2772
|
"uri": "user(2)",
|
2836
2773
|
"val": "repo-action-label",
|
@@ -3018,7 +2955,6 @@ Object {
|
|
3018
2955
|
Object {
|
3019
2956
|
"cid": "cids(2)",
|
3020
2957
|
"cts": "1970-01-01T00:00:00.000Z",
|
3021
|
-
"neg": false,
|
3022
2958
|
"src": "user(0)",
|
3023
2959
|
"uri": "record(1)",
|
3024
2960
|
"val": "self-label-a",
|
@@ -3026,7 +2962,6 @@ Object {
|
|
3026
2962
|
Object {
|
3027
2963
|
"cid": "cids(2)",
|
3028
2964
|
"cts": "1970-01-01T00:00:00.000Z",
|
3029
|
-
"neg": false,
|
3030
2965
|
"src": "user(0)",
|
3031
2966
|
"uri": "record(1)",
|
3032
2967
|
"val": "self-label-b",
|
@@ -3043,7 +2978,6 @@ Object {
|
|
3043
2978
|
Object {
|
3044
2979
|
"cid": "cids(14)",
|
3045
2980
|
"cts": "1970-01-01T00:00:00.000Z",
|
3046
|
-
"neg": false,
|
3047
2981
|
"src": "user(0)",
|
3048
2982
|
"uri": "record(17)",
|
3049
2983
|
"val": "self-label",
|
@@ -3115,7 +3049,6 @@ Object {
|
|
3115
3049
|
"labels": Array [
|
3116
3050
|
Object {
|
3117
3051
|
"cts": "1970-01-01T00:00:00.000Z",
|
3118
|
-
"neg": false,
|
3119
3052
|
"src": "did:example:labeler",
|
3120
3053
|
"uri": "user(0)",
|
3121
3054
|
"val": "repo-action-label",
|
@@ -3138,7 +3071,6 @@ Object {
|
|
3138
3071
|
Object {
|
3139
3072
|
"cid": "cids(1)",
|
3140
3073
|
"cts": "1970-01-01T00:00:00.000Z",
|
3141
|
-
"neg": false,
|
3142
3074
|
"src": "user(1)",
|
3143
3075
|
"uri": "record(1)",
|
3144
3076
|
"val": "self-label-a",
|
@@ -3146,7 +3078,6 @@ Object {
|
|
3146
3078
|
Object {
|
3147
3079
|
"cid": "cids(1)",
|
3148
3080
|
"cts": "1970-01-01T00:00:00.000Z",
|
3149
|
-
"neg": false,
|
3150
3081
|
"src": "user(1)",
|
3151
3082
|
"uri": "record(1)",
|
3152
3083
|
"val": "self-label-b",
|
@@ -3202,7 +3133,6 @@ Object {
|
|
3202
3133
|
Object {
|
3203
3134
|
"cid": "cids(1)",
|
3204
3135
|
"cts": "1970-01-01T00:00:00.000Z",
|
3205
|
-
"neg": false,
|
3206
3136
|
"src": "user(1)",
|
3207
3137
|
"uri": "record(2)",
|
3208
3138
|
"val": "self-label-a",
|
@@ -3210,7 +3140,6 @@ Object {
|
|
3210
3140
|
Object {
|
3211
3141
|
"cid": "cids(1)",
|
3212
3142
|
"cts": "1970-01-01T00:00:00.000Z",
|
3213
|
-
"neg": false,
|
3214
3143
|
"src": "user(1)",
|
3215
3144
|
"uri": "record(2)",
|
3216
3145
|
"val": "self-label-b",
|
@@ -3270,7 +3199,6 @@ Object {
|
|
3270
3199
|
Object {
|
3271
3200
|
"cid": "cids(2)",
|
3272
3201
|
"cts": "1970-01-01T00:00:00.000Z",
|
3273
|
-
"neg": false,
|
3274
3202
|
"src": "user(3)",
|
3275
3203
|
"uri": "record(7)",
|
3276
3204
|
"val": "self-label-a",
|
@@ -3278,7 +3206,6 @@ Object {
|
|
3278
3206
|
Object {
|
3279
3207
|
"cid": "cids(2)",
|
3280
3208
|
"cts": "1970-01-01T00:00:00.000Z",
|
3281
|
-
"neg": false,
|
3282
3209
|
"src": "user(3)",
|
3283
3210
|
"uri": "record(7)",
|
3284
3211
|
"val": "self-label-b",
|
@@ -6,7 +6,6 @@ import {
|
|
6
6
|
REASONSPAM,
|
7
7
|
} from '@atproto/api/src/client/types/com/atproto/moderation/defs'
|
8
8
|
import { forSnapshot } from '../_util'
|
9
|
-
import { NotFoundError } from '@atproto/api/src/client/types/app/bsky/feed/getPostThread'
|
10
9
|
|
11
10
|
describe('proxies admin requests', () => {
|
12
11
|
let network: TestNetwork
|
@@ -291,12 +290,18 @@ describe('proxies admin requests', () => {
|
|
291
290
|
},
|
292
291
|
)
|
293
292
|
await network.processAll()
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
293
|
+
|
294
|
+
// check takedown label has been created
|
295
|
+
const label = await network.ozone.ctx.db.db
|
296
|
+
.selectFrom('label')
|
297
|
+
.selectAll()
|
298
|
+
.where('val', '=', '!takedown')
|
299
|
+
.where('uri', '=', post.ref.uriStr)
|
300
|
+
.where('cid', '=', post.ref.cidStr)
|
301
|
+
.executeTakeFirst()
|
302
|
+
expect(label).toBeDefined()
|
303
|
+
expect(label?.neg).toBe(false)
|
304
|
+
|
300
305
|
// reverse action
|
301
306
|
await agent.api.tools.ozone.moderation.emitEvent(
|
302
307
|
{
|
@@ -315,15 +320,15 @@ describe('proxies admin requests', () => {
|
|
315
320
|
},
|
316
321
|
)
|
317
322
|
await network.processAll()
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
)
|
323
|
+
|
324
|
+
// check takedown label has been negated
|
325
|
+
const labelNeg = await network.ozone.ctx.db.db
|
326
|
+
.selectFrom('label')
|
327
|
+
.selectAll()
|
328
|
+
.where('val', '=', '!takedown')
|
329
|
+
.where('uri', '=', post.ref.uriStr)
|
330
|
+
.where('cid', '=', post.ref.cidStr)
|
331
|
+
.executeTakeFirst()
|
332
|
+
expect(labelNeg?.neg).toBe(true)
|
328
333
|
})
|
329
334
|
})
|