@atproto/api 0.16.7 → 0.16.8
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 +11 -0
- package/dist/client/index.d.ts +51 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +61 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +470 -16
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +329 -7
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/com/atproto/moderation/defs.d.ts +8 -8
- package/dist/client/types/com/atproto/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/com/atproto/moderation/defs.js +7 -7
- package/dist/client/types/com/atproto/moderation/defs.js.map +1 -1
- package/dist/client/types/com/atproto/temp/dereferenceScope.d.ts +27 -0
- package/dist/client/types/com/atproto/temp/dereferenceScope.d.ts.map +1 -0
- package/dist/client/types/com/atproto/temp/dereferenceScope.js +26 -0
- package/dist/client/types/com/atproto/temp/dereferenceScope.js.map +1 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts +92 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/defs.js +98 -0
- package/dist/client/types/tools/ozone/report/defs.js.map +1 -0
- package/package.json +5 -5
- package/src/client/index.ts +84 -0
- package/src/client/lexicons.ts +341 -7
- package/src/client/types/com/atproto/moderation/defs.ts +52 -7
- package/src/client/types/com/atproto/temp/dereferenceScope.ts +53 -0
- package/src/client/types/tools/ozone/report/defs.ts +154 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/src/client/lexicons.ts
CHANGED
|
@@ -10547,36 +10547,86 @@ export const schemaDict = {
|
|
|
10547
10547
|
'com.atproto.moderation.defs#reasonRude',
|
|
10548
10548
|
'com.atproto.moderation.defs#reasonOther',
|
|
10549
10549
|
'com.atproto.moderation.defs#reasonAppeal',
|
|
10550
|
+
'tools.ozone.report.defs#reasonAppeal',
|
|
10551
|
+
'tools.ozone.report.defs#reasonViolenceAnimalWelfare',
|
|
10552
|
+
'tools.ozone.report.defs#reasonViolenceThreats',
|
|
10553
|
+
'tools.ozone.report.defs#reasonViolenceGraphicContent',
|
|
10554
|
+
'tools.ozone.report.defs#reasonViolenceSelfHarm',
|
|
10555
|
+
'tools.ozone.report.defs#reasonViolenceGlorification',
|
|
10556
|
+
'tools.ozone.report.defs#reasonViolenceExtremistContent',
|
|
10557
|
+
'tools.ozone.report.defs#reasonViolenceTrafficking',
|
|
10558
|
+
'tools.ozone.report.defs#reasonViolenceOther',
|
|
10559
|
+
'tools.ozone.report.defs#reasonSexualAbuseContent',
|
|
10560
|
+
'tools.ozone.report.defs#reasonSexualNCII',
|
|
10561
|
+
'tools.ozone.report.defs#reasonSexualSextortion',
|
|
10562
|
+
'tools.ozone.report.defs#reasonSexualDeepfake',
|
|
10563
|
+
'tools.ozone.report.defs#reasonSexualAnimal',
|
|
10564
|
+
'tools.ozone.report.defs#reasonSexualUnlabeled',
|
|
10565
|
+
'tools.ozone.report.defs#reasonSexualOther',
|
|
10566
|
+
'tools.ozone.report.defs#reasonChildSafetyCSAM',
|
|
10567
|
+
'tools.ozone.report.defs#reasonChildSafetyGroom',
|
|
10568
|
+
'tools.ozone.report.defs#reasonChildSafetyMinorPrivacy',
|
|
10569
|
+
'tools.ozone.report.defs#reasonChildSafetyEndangerment',
|
|
10570
|
+
'tools.ozone.report.defs#reasonChildSafetyHarassment',
|
|
10571
|
+
'tools.ozone.report.defs#reasonChildSafetyPromotion',
|
|
10572
|
+
'tools.ozone.report.defs#reasonChildSafetyOther',
|
|
10573
|
+
'tools.ozone.report.defs#reasonHarassmentTroll',
|
|
10574
|
+
'tools.ozone.report.defs#reasonHarassmentTargeted',
|
|
10575
|
+
'tools.ozone.report.defs#reasonHarassmentHateSpeech',
|
|
10576
|
+
'tools.ozone.report.defs#reasonHarassmentDoxxing',
|
|
10577
|
+
'tools.ozone.report.defs#reasonHarassmentOther',
|
|
10578
|
+
'tools.ozone.report.defs#reasonMisleadingBot',
|
|
10579
|
+
'tools.ozone.report.defs#reasonMisleadingImpersonation',
|
|
10580
|
+
'tools.ozone.report.defs#reasonMisleadingSpam',
|
|
10581
|
+
'tools.ozone.report.defs#reasonMisleadingScam',
|
|
10582
|
+
'tools.ozone.report.defs#reasonMisleadingSyntheticContent',
|
|
10583
|
+
'tools.ozone.report.defs#reasonMisleadingMisinformation',
|
|
10584
|
+
'tools.ozone.report.defs#reasonMisleadingOther',
|
|
10585
|
+
'tools.ozone.report.defs#reasonRuleSiteSecurity',
|
|
10586
|
+
'tools.ozone.report.defs#reasonRuleStolenContent',
|
|
10587
|
+
'tools.ozone.report.defs#reasonRuleProhibitedSales',
|
|
10588
|
+
'tools.ozone.report.defs#reasonRuleBanEvasion',
|
|
10589
|
+
'tools.ozone.report.defs#reasonRuleOther',
|
|
10590
|
+
'tools.ozone.report.defs#reasonCivicElectoralProcess',
|
|
10591
|
+
'tools.ozone.report.defs#reasonCivicDisclosure',
|
|
10592
|
+
'tools.ozone.report.defs#reasonCivicInterference',
|
|
10593
|
+
'tools.ozone.report.defs#reasonCivicMisinformation',
|
|
10594
|
+
'tools.ozone.report.defs#reasonCivicImpersonation',
|
|
10550
10595
|
],
|
|
10551
10596
|
},
|
|
10552
10597
|
reasonSpam: {
|
|
10553
10598
|
type: 'token',
|
|
10554
|
-
description:
|
|
10599
|
+
description:
|
|
10600
|
+
'Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`.',
|
|
10555
10601
|
},
|
|
10556
10602
|
reasonViolation: {
|
|
10557
10603
|
type: 'token',
|
|
10558
|
-
description:
|
|
10604
|
+
description:
|
|
10605
|
+
'Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`.',
|
|
10559
10606
|
},
|
|
10560
10607
|
reasonMisleading: {
|
|
10561
10608
|
type: 'token',
|
|
10562
|
-
description:
|
|
10609
|
+
description:
|
|
10610
|
+
'Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`.',
|
|
10563
10611
|
},
|
|
10564
10612
|
reasonSexual: {
|
|
10565
10613
|
type: 'token',
|
|
10566
|
-
description:
|
|
10614
|
+
description:
|
|
10615
|
+
'Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`.',
|
|
10567
10616
|
},
|
|
10568
10617
|
reasonRude: {
|
|
10569
10618
|
type: 'token',
|
|
10570
10619
|
description:
|
|
10571
|
-
'Rude, harassing, explicit, or otherwise unwelcoming behavior',
|
|
10620
|
+
'Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`.',
|
|
10572
10621
|
},
|
|
10573
10622
|
reasonOther: {
|
|
10574
10623
|
type: 'token',
|
|
10575
|
-
description:
|
|
10624
|
+
description:
|
|
10625
|
+
'Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`.',
|
|
10576
10626
|
},
|
|
10577
10627
|
reasonAppeal: {
|
|
10578
10628
|
type: 'token',
|
|
10579
|
-
description: 'Appeal
|
|
10629
|
+
description: 'Appeal a previously taken moderation action',
|
|
10580
10630
|
},
|
|
10581
10631
|
subjectType: {
|
|
10582
10632
|
type: 'string',
|
|
@@ -13650,6 +13700,46 @@ export const schemaDict = {
|
|
|
13650
13700
|
},
|
|
13651
13701
|
},
|
|
13652
13702
|
},
|
|
13703
|
+
ComAtprotoTempDereferenceScope: {
|
|
13704
|
+
lexicon: 1,
|
|
13705
|
+
id: 'com.atproto.temp.dereferenceScope',
|
|
13706
|
+
defs: {
|
|
13707
|
+
main: {
|
|
13708
|
+
type: 'query',
|
|
13709
|
+
description:
|
|
13710
|
+
'Allows finding the oauth permission scope from a reference',
|
|
13711
|
+
parameters: {
|
|
13712
|
+
type: 'params',
|
|
13713
|
+
required: ['scope'],
|
|
13714
|
+
properties: {
|
|
13715
|
+
scope: {
|
|
13716
|
+
type: 'string',
|
|
13717
|
+
description: "The scope reference (starts with 'ref:')",
|
|
13718
|
+
},
|
|
13719
|
+
},
|
|
13720
|
+
},
|
|
13721
|
+
output: {
|
|
13722
|
+
encoding: 'application/json',
|
|
13723
|
+
schema: {
|
|
13724
|
+
type: 'object',
|
|
13725
|
+
required: ['scope'],
|
|
13726
|
+
properties: {
|
|
13727
|
+
scope: {
|
|
13728
|
+
type: 'string',
|
|
13729
|
+
description: 'The full oauth permission scope',
|
|
13730
|
+
},
|
|
13731
|
+
},
|
|
13732
|
+
},
|
|
13733
|
+
},
|
|
13734
|
+
errors: [
|
|
13735
|
+
{
|
|
13736
|
+
name: 'InvalidScopeReference',
|
|
13737
|
+
description: 'An invalid scope reference was provided.',
|
|
13738
|
+
},
|
|
13739
|
+
],
|
|
13740
|
+
},
|
|
13741
|
+
},
|
|
13742
|
+
},
|
|
13653
13743
|
ComAtprotoTempFetchLabels: {
|
|
13654
13744
|
lexicon: 1,
|
|
13655
13745
|
id: 'com.atproto.temp.fetchLabels',
|
|
@@ -16275,6 +16365,248 @@ export const schemaDict = {
|
|
|
16275
16365
|
},
|
|
16276
16366
|
},
|
|
16277
16367
|
},
|
|
16368
|
+
ToolsOzoneReportDefs: {
|
|
16369
|
+
lexicon: 1,
|
|
16370
|
+
id: 'tools.ozone.report.defs',
|
|
16371
|
+
defs: {
|
|
16372
|
+
reasonType: {
|
|
16373
|
+
type: 'string',
|
|
16374
|
+
knownValues: [
|
|
16375
|
+
'tools.ozone.report.defs#reasonAppeal',
|
|
16376
|
+
'tools.ozone.report.defs#reasonViolenceAnimalWelfare',
|
|
16377
|
+
'tools.ozone.report.defs#reasonViolenceThreats',
|
|
16378
|
+
'tools.ozone.report.defs#reasonViolenceGraphicContent',
|
|
16379
|
+
'tools.ozone.report.defs#reasonViolenceSelfHarm',
|
|
16380
|
+
'tools.ozone.report.defs#reasonViolenceGlorification',
|
|
16381
|
+
'tools.ozone.report.defs#reasonViolenceExtremistContent',
|
|
16382
|
+
'tools.ozone.report.defs#reasonViolenceTrafficking',
|
|
16383
|
+
'tools.ozone.report.defs#reasonViolenceOther',
|
|
16384
|
+
'tools.ozone.report.defs#reasonSexualAbuseContent',
|
|
16385
|
+
'tools.ozone.report.defs#reasonSexualNCII',
|
|
16386
|
+
'tools.ozone.report.defs#reasonSexualSextortion',
|
|
16387
|
+
'tools.ozone.report.defs#reasonSexualDeepfake',
|
|
16388
|
+
'tools.ozone.report.defs#reasonSexualAnimal',
|
|
16389
|
+
'tools.ozone.report.defs#reasonSexualUnlabeled',
|
|
16390
|
+
'tools.ozone.report.defs#reasonSexualOther',
|
|
16391
|
+
'tools.ozone.report.defs#reasonChildSafetyCSAM',
|
|
16392
|
+
'tools.ozone.report.defs#reasonChildSafetyGroom',
|
|
16393
|
+
'tools.ozone.report.defs#reasonChildSafetyMinorPrivacy',
|
|
16394
|
+
'tools.ozone.report.defs#reasonChildSafetyEndangerment',
|
|
16395
|
+
'tools.ozone.report.defs#reasonChildSafetyHarassment',
|
|
16396
|
+
'tools.ozone.report.defs#reasonChildSafetyPromotion',
|
|
16397
|
+
'tools.ozone.report.defs#reasonChildSafetyOther',
|
|
16398
|
+
'tools.ozone.report.defs#reasonHarassmentTroll',
|
|
16399
|
+
'tools.ozone.report.defs#reasonHarassmentTargeted',
|
|
16400
|
+
'tools.ozone.report.defs#reasonHarassmentHateSpeech',
|
|
16401
|
+
'tools.ozone.report.defs#reasonHarassmentDoxxing',
|
|
16402
|
+
'tools.ozone.report.defs#reasonHarassmentOther',
|
|
16403
|
+
'tools.ozone.report.defs#reasonMisleadingBot',
|
|
16404
|
+
'tools.ozone.report.defs#reasonMisleadingImpersonation',
|
|
16405
|
+
'tools.ozone.report.defs#reasonMisleadingSpam',
|
|
16406
|
+
'tools.ozone.report.defs#reasonMisleadingScam',
|
|
16407
|
+
'tools.ozone.report.defs#reasonMisleadingSyntheticContent',
|
|
16408
|
+
'tools.ozone.report.defs#reasonMisleadingMisinformation',
|
|
16409
|
+
'tools.ozone.report.defs#reasonMisleadingOther',
|
|
16410
|
+
'tools.ozone.report.defs#reasonRuleSiteSecurity',
|
|
16411
|
+
'tools.ozone.report.defs#reasonRuleStolenContent',
|
|
16412
|
+
'tools.ozone.report.defs#reasonRuleProhibitedSales',
|
|
16413
|
+
'tools.ozone.report.defs#reasonRuleBanEvasion',
|
|
16414
|
+
'tools.ozone.report.defs#reasonRuleOther',
|
|
16415
|
+
'tools.ozone.report.defs#reasonCivicElectoralProcess',
|
|
16416
|
+
'tools.ozone.report.defs#reasonCivicDisclosure',
|
|
16417
|
+
'tools.ozone.report.defs#reasonCivicInterference',
|
|
16418
|
+
'tools.ozone.report.defs#reasonCivicMisinformation',
|
|
16419
|
+
'tools.ozone.report.defs#reasonCivicImpersonation',
|
|
16420
|
+
],
|
|
16421
|
+
},
|
|
16422
|
+
reasonAppeal: {
|
|
16423
|
+
type: 'token',
|
|
16424
|
+
description: 'Appeal a previously taken moderation action',
|
|
16425
|
+
},
|
|
16426
|
+
reasonViolenceAnimalWelfare: {
|
|
16427
|
+
type: 'token',
|
|
16428
|
+
description: 'Animal welfare violations',
|
|
16429
|
+
},
|
|
16430
|
+
reasonViolenceThreats: {
|
|
16431
|
+
type: 'token',
|
|
16432
|
+
description: 'Threats or incitement',
|
|
16433
|
+
},
|
|
16434
|
+
reasonViolenceGraphicContent: {
|
|
16435
|
+
type: 'token',
|
|
16436
|
+
description: 'Graphic violent content',
|
|
16437
|
+
},
|
|
16438
|
+
reasonViolenceSelfHarm: {
|
|
16439
|
+
type: 'token',
|
|
16440
|
+
description: 'Self harm',
|
|
16441
|
+
},
|
|
16442
|
+
reasonViolenceGlorification: {
|
|
16443
|
+
type: 'token',
|
|
16444
|
+
description: 'Glorification of violence',
|
|
16445
|
+
},
|
|
16446
|
+
reasonViolenceExtremistContent: {
|
|
16447
|
+
type: 'token',
|
|
16448
|
+
description:
|
|
16449
|
+
"Extremist content. These reports will be sent only be sent to the application's Moderation Authority.",
|
|
16450
|
+
},
|
|
16451
|
+
reasonViolenceTrafficking: {
|
|
16452
|
+
type: 'token',
|
|
16453
|
+
description: 'Human trafficking',
|
|
16454
|
+
},
|
|
16455
|
+
reasonViolenceOther: {
|
|
16456
|
+
type: 'token',
|
|
16457
|
+
description: 'Other violent content',
|
|
16458
|
+
},
|
|
16459
|
+
reasonSexualAbuseContent: {
|
|
16460
|
+
type: 'token',
|
|
16461
|
+
description: 'Adult sexual abuse content',
|
|
16462
|
+
},
|
|
16463
|
+
reasonSexualNCII: {
|
|
16464
|
+
type: 'token',
|
|
16465
|
+
description: 'Non-consensual intimate imagery',
|
|
16466
|
+
},
|
|
16467
|
+
reasonSexualSextortion: {
|
|
16468
|
+
type: 'token',
|
|
16469
|
+
description: 'Sextortion',
|
|
16470
|
+
},
|
|
16471
|
+
reasonSexualDeepfake: {
|
|
16472
|
+
type: 'token',
|
|
16473
|
+
description: 'Deepfake adult content',
|
|
16474
|
+
},
|
|
16475
|
+
reasonSexualAnimal: {
|
|
16476
|
+
type: 'token',
|
|
16477
|
+
description: 'Animal sexual abuse',
|
|
16478
|
+
},
|
|
16479
|
+
reasonSexualUnlabeled: {
|
|
16480
|
+
type: 'token',
|
|
16481
|
+
description: 'Unlabelled adult content',
|
|
16482
|
+
},
|
|
16483
|
+
reasonSexualOther: {
|
|
16484
|
+
type: 'token',
|
|
16485
|
+
description: 'Other sexual violence content',
|
|
16486
|
+
},
|
|
16487
|
+
reasonChildSafetyCSAM: {
|
|
16488
|
+
type: 'token',
|
|
16489
|
+
description:
|
|
16490
|
+
"Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority.",
|
|
16491
|
+
},
|
|
16492
|
+
reasonChildSafetyGroom: {
|
|
16493
|
+
type: 'token',
|
|
16494
|
+
description:
|
|
16495
|
+
"Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority.",
|
|
16496
|
+
},
|
|
16497
|
+
reasonChildSafetyMinorPrivacy: {
|
|
16498
|
+
type: 'token',
|
|
16499
|
+
description: 'Privacy violation involving a minor',
|
|
16500
|
+
},
|
|
16501
|
+
reasonChildSafetyEndangerment: {
|
|
16502
|
+
type: 'token',
|
|
16503
|
+
description:
|
|
16504
|
+
"Child endangerment. These reports will be sent only be sent to the application's Moderation Authority.",
|
|
16505
|
+
},
|
|
16506
|
+
reasonChildSafetyHarassment: {
|
|
16507
|
+
type: 'token',
|
|
16508
|
+
description: 'Harassment or bullying of minors',
|
|
16509
|
+
},
|
|
16510
|
+
reasonChildSafetyPromotion: {
|
|
16511
|
+
type: 'token',
|
|
16512
|
+
description:
|
|
16513
|
+
"Promotion of child exploitation. These reports will be sent only be sent to the application's Moderation Authority.",
|
|
16514
|
+
},
|
|
16515
|
+
reasonChildSafetyOther: {
|
|
16516
|
+
type: 'token',
|
|
16517
|
+
description:
|
|
16518
|
+
"Other child safety. These reports will be sent only be sent to the application's Moderation Authority.",
|
|
16519
|
+
},
|
|
16520
|
+
reasonHarassmentTroll: {
|
|
16521
|
+
type: 'token',
|
|
16522
|
+
description: 'Trolling',
|
|
16523
|
+
},
|
|
16524
|
+
reasonHarassmentTargeted: {
|
|
16525
|
+
type: 'token',
|
|
16526
|
+
description: 'Targeted harassment',
|
|
16527
|
+
},
|
|
16528
|
+
reasonHarassmentHateSpeech: {
|
|
16529
|
+
type: 'token',
|
|
16530
|
+
description: 'Hate speech',
|
|
16531
|
+
},
|
|
16532
|
+
reasonHarassmentDoxxing: {
|
|
16533
|
+
type: 'token',
|
|
16534
|
+
description: 'Doxxing',
|
|
16535
|
+
},
|
|
16536
|
+
reasonHarassmentOther: {
|
|
16537
|
+
type: 'token',
|
|
16538
|
+
description: 'Other harassing or hateful content',
|
|
16539
|
+
},
|
|
16540
|
+
reasonMisleadingBot: {
|
|
16541
|
+
type: 'token',
|
|
16542
|
+
description: 'Fake account or bot',
|
|
16543
|
+
},
|
|
16544
|
+
reasonMisleadingImpersonation: {
|
|
16545
|
+
type: 'token',
|
|
16546
|
+
description: 'Impersonation',
|
|
16547
|
+
},
|
|
16548
|
+
reasonMisleadingSpam: {
|
|
16549
|
+
type: 'token',
|
|
16550
|
+
description: 'Spam',
|
|
16551
|
+
},
|
|
16552
|
+
reasonMisleadingScam: {
|
|
16553
|
+
type: 'token',
|
|
16554
|
+
description: 'Scam',
|
|
16555
|
+
},
|
|
16556
|
+
reasonMisleadingSyntheticContent: {
|
|
16557
|
+
type: 'token',
|
|
16558
|
+
description: 'Unlabelled gen-AI or synthetic content',
|
|
16559
|
+
},
|
|
16560
|
+
reasonMisleadingMisinformation: {
|
|
16561
|
+
type: 'token',
|
|
16562
|
+
description: 'Harmful false claims',
|
|
16563
|
+
},
|
|
16564
|
+
reasonMisleadingOther: {
|
|
16565
|
+
type: 'token',
|
|
16566
|
+
description: 'Other misleading content',
|
|
16567
|
+
},
|
|
16568
|
+
reasonRuleSiteSecurity: {
|
|
16569
|
+
type: 'token',
|
|
16570
|
+
description: 'Hacking or system attacks',
|
|
16571
|
+
},
|
|
16572
|
+
reasonRuleStolenContent: {
|
|
16573
|
+
type: 'token',
|
|
16574
|
+
description: 'Stolen content',
|
|
16575
|
+
},
|
|
16576
|
+
reasonRuleProhibitedSales: {
|
|
16577
|
+
type: 'token',
|
|
16578
|
+
description: 'Promoting or selling prohibited items or services',
|
|
16579
|
+
},
|
|
16580
|
+
reasonRuleBanEvasion: {
|
|
16581
|
+
type: 'token',
|
|
16582
|
+
description: 'Banned user returning',
|
|
16583
|
+
},
|
|
16584
|
+
reasonRuleOther: {
|
|
16585
|
+
type: 'token',
|
|
16586
|
+
description: 'Other',
|
|
16587
|
+
},
|
|
16588
|
+
reasonCivicElectoralProcess: {
|
|
16589
|
+
type: 'token',
|
|
16590
|
+
description: 'Electoral process violations',
|
|
16591
|
+
},
|
|
16592
|
+
reasonCivicDisclosure: {
|
|
16593
|
+
type: 'token',
|
|
16594
|
+
description: 'Disclosure & transparency violations',
|
|
16595
|
+
},
|
|
16596
|
+
reasonCivicInterference: {
|
|
16597
|
+
type: 'token',
|
|
16598
|
+
description: 'Voter intimidation or interference',
|
|
16599
|
+
},
|
|
16600
|
+
reasonCivicMisinformation: {
|
|
16601
|
+
type: 'token',
|
|
16602
|
+
description: 'Election misinformation',
|
|
16603
|
+
},
|
|
16604
|
+
reasonCivicImpersonation: {
|
|
16605
|
+
type: 'token',
|
|
16606
|
+
description: 'Impersonation of electoral officials/entities',
|
|
16607
|
+
},
|
|
16608
|
+
},
|
|
16609
|
+
},
|
|
16278
16610
|
ToolsOzoneSafelinkAddRule: {
|
|
16279
16611
|
lexicon: 1,
|
|
16280
16612
|
id: 'tools.ozone.safelink.addRule',
|
|
@@ -18362,6 +18694,7 @@ export const ids = {
|
|
|
18362
18694
|
ComAtprotoTempCheckHandleAvailability:
|
|
18363
18695
|
'com.atproto.temp.checkHandleAvailability',
|
|
18364
18696
|
ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
|
|
18697
|
+
ComAtprotoTempDereferenceScope: 'com.atproto.temp.dereferenceScope',
|
|
18365
18698
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
|
18366
18699
|
ComAtprotoTempRequestPhoneVerification:
|
|
18367
18700
|
'com.atproto.temp.requestPhoneVerification',
|
|
@@ -18392,6 +18725,7 @@ export const ids = {
|
|
|
18392
18725
|
ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
|
|
18393
18726
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
18394
18727
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
|
18728
|
+
ToolsOzoneReportDefs: 'tools.ozone.report.defs',
|
|
18395
18729
|
ToolsOzoneSafelinkAddRule: 'tools.ozone.safelink.addRule',
|
|
18396
18730
|
ToolsOzoneSafelinkDefs: 'tools.ozone.safelink.defs',
|
|
18397
18731
|
ToolsOzoneSafelinkQueryEvents: 'tools.ozone.safelink.queryEvents',
|
|
@@ -22,21 +22,66 @@ export type ReasonType =
|
|
|
22
22
|
| 'com.atproto.moderation.defs#reasonRude'
|
|
23
23
|
| 'com.atproto.moderation.defs#reasonOther'
|
|
24
24
|
| 'com.atproto.moderation.defs#reasonAppeal'
|
|
25
|
+
| 'tools.ozone.report.defs#reasonAppeal'
|
|
26
|
+
| 'tools.ozone.report.defs#reasonViolenceAnimalWelfare'
|
|
27
|
+
| 'tools.ozone.report.defs#reasonViolenceThreats'
|
|
28
|
+
| 'tools.ozone.report.defs#reasonViolenceGraphicContent'
|
|
29
|
+
| 'tools.ozone.report.defs#reasonViolenceSelfHarm'
|
|
30
|
+
| 'tools.ozone.report.defs#reasonViolenceGlorification'
|
|
31
|
+
| 'tools.ozone.report.defs#reasonViolenceExtremistContent'
|
|
32
|
+
| 'tools.ozone.report.defs#reasonViolenceTrafficking'
|
|
33
|
+
| 'tools.ozone.report.defs#reasonViolenceOther'
|
|
34
|
+
| 'tools.ozone.report.defs#reasonSexualAbuseContent'
|
|
35
|
+
| 'tools.ozone.report.defs#reasonSexualNCII'
|
|
36
|
+
| 'tools.ozone.report.defs#reasonSexualSextortion'
|
|
37
|
+
| 'tools.ozone.report.defs#reasonSexualDeepfake'
|
|
38
|
+
| 'tools.ozone.report.defs#reasonSexualAnimal'
|
|
39
|
+
| 'tools.ozone.report.defs#reasonSexualUnlabeled'
|
|
40
|
+
| 'tools.ozone.report.defs#reasonSexualOther'
|
|
41
|
+
| 'tools.ozone.report.defs#reasonChildSafetyCSAM'
|
|
42
|
+
| 'tools.ozone.report.defs#reasonChildSafetyGroom'
|
|
43
|
+
| 'tools.ozone.report.defs#reasonChildSafetyMinorPrivacy'
|
|
44
|
+
| 'tools.ozone.report.defs#reasonChildSafetyEndangerment'
|
|
45
|
+
| 'tools.ozone.report.defs#reasonChildSafetyHarassment'
|
|
46
|
+
| 'tools.ozone.report.defs#reasonChildSafetyPromotion'
|
|
47
|
+
| 'tools.ozone.report.defs#reasonChildSafetyOther'
|
|
48
|
+
| 'tools.ozone.report.defs#reasonHarassmentTroll'
|
|
49
|
+
| 'tools.ozone.report.defs#reasonHarassmentTargeted'
|
|
50
|
+
| 'tools.ozone.report.defs#reasonHarassmentHateSpeech'
|
|
51
|
+
| 'tools.ozone.report.defs#reasonHarassmentDoxxing'
|
|
52
|
+
| 'tools.ozone.report.defs#reasonHarassmentOther'
|
|
53
|
+
| 'tools.ozone.report.defs#reasonMisleadingBot'
|
|
54
|
+
| 'tools.ozone.report.defs#reasonMisleadingImpersonation'
|
|
55
|
+
| 'tools.ozone.report.defs#reasonMisleadingSpam'
|
|
56
|
+
| 'tools.ozone.report.defs#reasonMisleadingScam'
|
|
57
|
+
| 'tools.ozone.report.defs#reasonMisleadingSyntheticContent'
|
|
58
|
+
| 'tools.ozone.report.defs#reasonMisleadingMisinformation'
|
|
59
|
+
| 'tools.ozone.report.defs#reasonMisleadingOther'
|
|
60
|
+
| 'tools.ozone.report.defs#reasonRuleSiteSecurity'
|
|
61
|
+
| 'tools.ozone.report.defs#reasonRuleStolenContent'
|
|
62
|
+
| 'tools.ozone.report.defs#reasonRuleProhibitedSales'
|
|
63
|
+
| 'tools.ozone.report.defs#reasonRuleBanEvasion'
|
|
64
|
+
| 'tools.ozone.report.defs#reasonRuleOther'
|
|
65
|
+
| 'tools.ozone.report.defs#reasonCivicElectoralProcess'
|
|
66
|
+
| 'tools.ozone.report.defs#reasonCivicDisclosure'
|
|
67
|
+
| 'tools.ozone.report.defs#reasonCivicInterference'
|
|
68
|
+
| 'tools.ozone.report.defs#reasonCivicMisinformation'
|
|
69
|
+
| 'tools.ozone.report.defs#reasonCivicImpersonation'
|
|
25
70
|
| (string & {})
|
|
26
71
|
|
|
27
|
-
/** Spam: frequent unwanted promotion, replies, mentions */
|
|
72
|
+
/** Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`. */
|
|
28
73
|
export const REASONSPAM = `${id}#reasonSpam`
|
|
29
|
-
/** Direct violation of server rules, laws, terms of service */
|
|
74
|
+
/** Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
|
|
30
75
|
export const REASONVIOLATION = `${id}#reasonViolation`
|
|
31
|
-
/** Misleading identity, affiliation, or content */
|
|
76
|
+
/** Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`. */
|
|
32
77
|
export const REASONMISLEADING = `${id}#reasonMisleading`
|
|
33
|
-
/** Unwanted or mislabeled sexual content */
|
|
78
|
+
/** Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`. */
|
|
34
79
|
export const REASONSEXUAL = `${id}#reasonSexual`
|
|
35
|
-
/** Rude, harassing, explicit, or otherwise unwelcoming behavior */
|
|
80
|
+
/** Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`. */
|
|
36
81
|
export const REASONRUDE = `${id}#reasonRude`
|
|
37
|
-
/**
|
|
82
|
+
/** Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`. */
|
|
38
83
|
export const REASONOTHER = `${id}#reasonOther`
|
|
39
|
-
/** Appeal
|
|
84
|
+
/** Appeal a previously taken moderation action */
|
|
40
85
|
export const REASONAPPEAL = `${id}#reasonAppeal`
|
|
41
86
|
|
|
42
87
|
/** Tag describing a type of subject that might be reported. */
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
|
|
14
|
+
const is$typed = _is$typed,
|
|
15
|
+
validate = _validate
|
|
16
|
+
const id = 'com.atproto.temp.dereferenceScope'
|
|
17
|
+
|
|
18
|
+
export type QueryParams = {
|
|
19
|
+
/** The scope reference (starts with 'ref:') */
|
|
20
|
+
scope: string
|
|
21
|
+
}
|
|
22
|
+
export type InputSchema = undefined
|
|
23
|
+
|
|
24
|
+
export interface OutputSchema {
|
|
25
|
+
/** The full oauth permission scope */
|
|
26
|
+
scope: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface CallOptions {
|
|
30
|
+
signal?: AbortSignal
|
|
31
|
+
headers?: HeadersMap
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface Response {
|
|
35
|
+
success: boolean
|
|
36
|
+
headers: HeadersMap
|
|
37
|
+
data: OutputSchema
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class InvalidScopeReferenceError extends XRPCError {
|
|
41
|
+
constructor(src: XRPCError) {
|
|
42
|
+
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function toKnownErr(e: any) {
|
|
47
|
+
if (e instanceof XRPCError) {
|
|
48
|
+
if (e.error === 'InvalidScopeReference')
|
|
49
|
+
return new InvalidScopeReferenceError(e)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return e
|
|
53
|
+
}
|