@atproto/api 0.19.12 → 0.19.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.
- package/CHANGELOG.md +8 -0
- package/definitions/labels.json +20 -4
- package/dist/client/lexicons.d.ts +48 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +24 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +6 -0
- package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/moderation/const/labels.d.ts.map +1 -1
- package/dist/moderation/const/labels.js +21 -0
- package/dist/moderation/const/labels.js.map +1 -1
- package/package.json +2 -2
- package/src/client/lexicons.ts +27 -0
- package/src/client/types/chat/bsky/convo/defs.ts +6 -0
- package/tests/moderation-behaviors.test.ts +26 -7
|
@@ -339,10 +339,13 @@ const SCENARIOS: SuiteScenarios = {
|
|
|
339
339
|
author: 'alice',
|
|
340
340
|
labels: { account: ['porn'] },
|
|
341
341
|
behaviors: {
|
|
342
|
-
profileList: ['filter'],
|
|
342
|
+
profileList: ['filter', 'blur'],
|
|
343
|
+
profileView: ['blur'],
|
|
343
344
|
avatar: ['blur'],
|
|
344
345
|
banner: ['blur'],
|
|
345
|
-
contentList: ['filter'],
|
|
346
|
+
contentList: ['filter', 'blur'],
|
|
347
|
+
contentView: ['blur'],
|
|
348
|
+
contentMedia: ['blur'],
|
|
346
349
|
},
|
|
347
350
|
},
|
|
348
351
|
"Blur-media label ('porn') on profile (hide)": {
|
|
@@ -381,10 +384,11 @@ const SCENARIOS: SuiteScenarios = {
|
|
|
381
384
|
author: 'alice',
|
|
382
385
|
labels: { account: ['porn'] },
|
|
383
386
|
behaviors: {
|
|
384
|
-
profileList: ['filter'],
|
|
385
387
|
avatar: ['blur'],
|
|
386
388
|
banner: ['blur'],
|
|
387
|
-
contentList: ['filter'],
|
|
389
|
+
contentList: ['filter', 'blur'],
|
|
390
|
+
contentView: ['blur'],
|
|
391
|
+
contentMedia: ['blur'],
|
|
388
392
|
},
|
|
389
393
|
},
|
|
390
394
|
|
|
@@ -394,8 +398,13 @@ const SCENARIOS: SuiteScenarios = {
|
|
|
394
398
|
author: 'alice',
|
|
395
399
|
labels: { account: ['porn'] },
|
|
396
400
|
behaviors: {
|
|
401
|
+
profileList: ['blur'],
|
|
402
|
+
profileView: ['blur'],
|
|
397
403
|
avatar: ['blur'],
|
|
398
404
|
banner: ['blur'],
|
|
405
|
+
contentList: ['blur'],
|
|
406
|
+
contentView: ['blur'],
|
|
407
|
+
contentMedia: ['blur'],
|
|
399
408
|
},
|
|
400
409
|
},
|
|
401
410
|
"Blur-media label ('porn') on profile (warn)": {
|
|
@@ -435,6 +444,9 @@ const SCENARIOS: SuiteScenarios = {
|
|
|
435
444
|
behaviors: {
|
|
436
445
|
avatar: ['blur'],
|
|
437
446
|
banner: ['blur'],
|
|
447
|
+
contentList: ['blur'],
|
|
448
|
+
contentView: ['blur'],
|
|
449
|
+
contentMedia: ['blur'],
|
|
438
450
|
},
|
|
439
451
|
},
|
|
440
452
|
|
|
@@ -480,10 +492,13 @@ const SCENARIOS: SuiteScenarios = {
|
|
|
480
492
|
author: 'alice',
|
|
481
493
|
labels: { account: ['porn'] },
|
|
482
494
|
behaviors: {
|
|
483
|
-
profileList: ['filter'],
|
|
495
|
+
profileList: ['filter', 'blur', 'noOverride'],
|
|
496
|
+
profileView: ['blur', 'noOverride'],
|
|
484
497
|
avatar: ['blur', 'noOverride'],
|
|
485
498
|
banner: ['blur', 'noOverride'],
|
|
486
|
-
contentList: ['filter'],
|
|
499
|
+
contentList: ['filter', 'blur', 'noOverride'],
|
|
500
|
+
contentView: ['blur', 'noOverride'],
|
|
501
|
+
contentMedia: ['blur', 'noOverride'],
|
|
487
502
|
},
|
|
488
503
|
},
|
|
489
504
|
'Adult-only label on profile when adult content is disabled': {
|
|
@@ -527,7 +542,9 @@ const SCENARIOS: SuiteScenarios = {
|
|
|
527
542
|
behaviors: {
|
|
528
543
|
avatar: ['blur', 'noOverride'],
|
|
529
544
|
banner: ['blur', 'noOverride'],
|
|
530
|
-
contentList: ['filter'],
|
|
545
|
+
contentList: ['filter', 'blur', 'noOverride'],
|
|
546
|
+
contentView: ['blur', 'noOverride'],
|
|
547
|
+
contentMedia: ['blur', 'noOverride'],
|
|
531
548
|
},
|
|
532
549
|
},
|
|
533
550
|
|
|
@@ -787,6 +804,7 @@ const SCENARIOS: SuiteScenarios = {
|
|
|
787
804
|
displayName: ['blur', 'noOverride'],
|
|
788
805
|
contentList: ['filter', 'blur', 'noOverride'],
|
|
789
806
|
contentView: ['blur', 'noOverride'],
|
|
807
|
+
contentMedia: ['blur'],
|
|
790
808
|
},
|
|
791
809
|
},
|
|
792
810
|
"Merging: '!warn' and 'porn' labels on account (hide)": {
|
|
@@ -801,6 +819,7 @@ const SCENARIOS: SuiteScenarios = {
|
|
|
801
819
|
banner: ['blur'],
|
|
802
820
|
contentList: ['filter', 'blur'],
|
|
803
821
|
contentView: ['blur'],
|
|
822
|
+
contentMedia: ['blur'],
|
|
804
823
|
},
|
|
805
824
|
},
|
|
806
825
|
'Merging: !hide on account, !warn on profile': {
|