@atproto/api 0.28.0 → 0.29.0
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 +18 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +304 -10
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +155 -5
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +2 -0
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/queue/createQueue.d.ts +5 -1
- package/dist/client/types/tools/ozone/queue/createQueue.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/queue/createQueue.js.map +1 -1
- package/dist/client/types/tools/ozone/queue/defs.d.ts +5 -1
- package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/queue/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/safelink/addRule.d.ts +5 -0
- package/dist/client/types/tools/ozone/safelink/addRule.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/safelink/addRule.js +7 -0
- package/dist/client/types/tools/ozone/safelink/addRule.js.map +1 -1
- package/dist/client/types/tools/ozone/safelink/defs.d.ts +5 -1
- package/dist/client/types/tools/ozone/safelink/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/safelink/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/safelink/removeRule.d.ts +2 -0
- package/dist/client/types/tools/ozone/safelink/removeRule.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/safelink/removeRule.js.map +1 -1
- package/dist/client/types/tools/ozone/safelink/syncSource.d.ts +40 -0
- package/dist/client/types/tools/ozone/safelink/syncSource.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/safelink/syncSource.js +21 -0
- package/dist/client/types/tools/ozone/safelink/syncSource.js.map +1 -0
- package/dist/client/types/tools/ozone/safelink/updateRule.d.ts +5 -0
- package/dist/client/types/tools/ozone/safelink/updateRule.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/safelink/updateRule.js +7 -0
- package/dist/client/types/tools/ozone/safelink/updateRule.js.map +1 -1
- package/package.json +4 -4
package/dist/client/lexicons.js
CHANGED
|
@@ -23201,6 +23201,11 @@ export const schemaDict = {
|
|
|
23201
23201
|
type: 'integer',
|
|
23202
23202
|
description: "Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity.",
|
|
23203
23203
|
},
|
|
23204
|
+
strikeExpiresAt: {
|
|
23205
|
+
type: 'string',
|
|
23206
|
+
format: 'datetime',
|
|
23207
|
+
description: 'When the strike should expire. If not provided, the strike never expires.',
|
|
23208
|
+
},
|
|
23204
23209
|
},
|
|
23205
23210
|
},
|
|
23206
23211
|
modEventResolveAppeal: {
|
|
@@ -25454,7 +25459,7 @@ export const schemaDict = {
|
|
|
25454
25459
|
defs: {
|
|
25455
25460
|
main: {
|
|
25456
25461
|
type: 'procedure',
|
|
25457
|
-
description:
|
|
25462
|
+
description: 'Create a new moderation queue. A queue with omitted or empty subjectTypes or reportTypes must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`.',
|
|
25458
25463
|
input: {
|
|
25459
25464
|
encoding: 'application/json',
|
|
25460
25465
|
schema: {
|
|
@@ -25476,16 +25481,33 @@ export const schemaDict = {
|
|
|
25476
25481
|
collection: {
|
|
25477
25482
|
type: 'string',
|
|
25478
25483
|
format: 'nsid',
|
|
25479
|
-
description:
|
|
25484
|
+
description: 'Collection name for record subjects. Omit to accept every collection.',
|
|
25480
25485
|
},
|
|
25481
25486
|
reportTypes: {
|
|
25482
25487
|
type: 'array',
|
|
25483
25488
|
items: {
|
|
25484
25489
|
type: 'string',
|
|
25485
25490
|
},
|
|
25486
|
-
maxLength: 25,
|
|
25487
25491
|
description: 'Report reason types (fully qualified NSIDs)',
|
|
25488
25492
|
},
|
|
25493
|
+
reporterTags: {
|
|
25494
|
+
type: 'array',
|
|
25495
|
+
maxLength: 25,
|
|
25496
|
+
items: {
|
|
25497
|
+
type: 'string',
|
|
25498
|
+
minLength: 1,
|
|
25499
|
+
},
|
|
25500
|
+
description: 'Match any listed tag on the account submitting the report.',
|
|
25501
|
+
},
|
|
25502
|
+
accountTags: {
|
|
25503
|
+
type: 'array',
|
|
25504
|
+
maxLength: 25,
|
|
25505
|
+
items: {
|
|
25506
|
+
type: 'string',
|
|
25507
|
+
minLength: 1,
|
|
25508
|
+
},
|
|
25509
|
+
description: 'Match any of these tags on the account that is being reported against.',
|
|
25510
|
+
},
|
|
25489
25511
|
description: {
|
|
25490
25512
|
type: 'string',
|
|
25491
25513
|
description: 'Optional description of the queue',
|
|
@@ -25568,7 +25590,7 @@ export const schemaDict = {
|
|
|
25568
25590
|
collection: {
|
|
25569
25591
|
type: 'string',
|
|
25570
25592
|
format: 'nsid',
|
|
25571
|
-
description:
|
|
25593
|
+
description: 'Collection name for record subjects. Omit to accept every collection.',
|
|
25572
25594
|
},
|
|
25573
25595
|
reportTypes: {
|
|
25574
25596
|
type: 'array',
|
|
@@ -25577,6 +25599,24 @@ export const schemaDict = {
|
|
|
25577
25599
|
},
|
|
25578
25600
|
description: 'Report reason types this queue accepts (fully qualified NSIDs)',
|
|
25579
25601
|
},
|
|
25602
|
+
reporterTags: {
|
|
25603
|
+
type: 'array',
|
|
25604
|
+
maxLength: 25,
|
|
25605
|
+
items: {
|
|
25606
|
+
type: 'string',
|
|
25607
|
+
minLength: 1,
|
|
25608
|
+
},
|
|
25609
|
+
description: 'Match any listed tag on the account submitting the report.',
|
|
25610
|
+
},
|
|
25611
|
+
accountTags: {
|
|
25612
|
+
type: 'array',
|
|
25613
|
+
maxLength: 25,
|
|
25614
|
+
items: {
|
|
25615
|
+
type: 'string',
|
|
25616
|
+
minLength: 1,
|
|
25617
|
+
},
|
|
25618
|
+
description: 'Match tags on the account that is being reported against. For record subjects, use the author account. Match any listed tag.',
|
|
25619
|
+
},
|
|
25580
25620
|
description: {
|
|
25581
25621
|
type: 'string',
|
|
25582
25622
|
description: 'Optional description of the queue',
|
|
@@ -27671,6 +27711,12 @@ export const schemaDict = {
|
|
|
27671
27711
|
type: 'ref',
|
|
27672
27712
|
ref: 'lex:tools.ozone.safelink.defs#reasonType',
|
|
27673
27713
|
},
|
|
27714
|
+
source: {
|
|
27715
|
+
type: 'string',
|
|
27716
|
+
maxLength: 128,
|
|
27717
|
+
default: 'ozone/default',
|
|
27718
|
+
description: 'Source of the rule',
|
|
27719
|
+
},
|
|
27674
27720
|
comment: {
|
|
27675
27721
|
type: 'string',
|
|
27676
27722
|
description: 'Optional comment about the decision',
|
|
@@ -27699,6 +27745,10 @@ export const schemaDict = {
|
|
|
27699
27745
|
name: 'RuleAlreadyExists',
|
|
27700
27746
|
description: 'A rule for this URL/domain already exists',
|
|
27701
27747
|
},
|
|
27748
|
+
{
|
|
27749
|
+
name: 'RuleSourceConflict',
|
|
27750
|
+
description: 'A rule for this URL/domain is owned by another source',
|
|
27751
|
+
},
|
|
27702
27752
|
],
|
|
27703
27753
|
},
|
|
27704
27754
|
},
|
|
@@ -27745,6 +27795,11 @@ export const schemaDict = {
|
|
|
27745
27795
|
type: 'ref',
|
|
27746
27796
|
ref: 'lex:tools.ozone.safelink.defs#reasonType',
|
|
27747
27797
|
},
|
|
27798
|
+
source: {
|
|
27799
|
+
type: 'string',
|
|
27800
|
+
default: 'ozone/default',
|
|
27801
|
+
description: 'Source of the decision',
|
|
27802
|
+
},
|
|
27748
27803
|
createdBy: {
|
|
27749
27804
|
type: 'string',
|
|
27750
27805
|
format: 'did',
|
|
@@ -27778,7 +27833,7 @@ export const schemaDict = {
|
|
|
27778
27833
|
},
|
|
27779
27834
|
urlRule: {
|
|
27780
27835
|
type: 'object',
|
|
27781
|
-
description: '
|
|
27836
|
+
description: 'An active URL safety rule',
|
|
27782
27837
|
required: [
|
|
27783
27838
|
'url',
|
|
27784
27839
|
'pattern',
|
|
@@ -27805,6 +27860,11 @@ export const schemaDict = {
|
|
|
27805
27860
|
type: 'ref',
|
|
27806
27861
|
ref: 'lex:tools.ozone.safelink.defs#reasonType',
|
|
27807
27862
|
},
|
|
27863
|
+
source: {
|
|
27864
|
+
type: 'string',
|
|
27865
|
+
default: 'ozone/default',
|
|
27866
|
+
description: 'Source of the rule',
|
|
27867
|
+
},
|
|
27808
27868
|
comment: {
|
|
27809
27869
|
type: 'string',
|
|
27810
27870
|
description: 'Optional comment about the decision',
|
|
@@ -27997,6 +28057,12 @@ export const schemaDict = {
|
|
|
27997
28057
|
type: 'ref',
|
|
27998
28058
|
ref: 'lex:tools.ozone.safelink.defs#patternType',
|
|
27999
28059
|
},
|
|
28060
|
+
source: {
|
|
28061
|
+
type: 'string',
|
|
28062
|
+
maxLength: 128,
|
|
28063
|
+
default: 'ozone/default',
|
|
28064
|
+
description: 'Source of the rule to remove',
|
|
28065
|
+
},
|
|
28000
28066
|
comment: {
|
|
28001
28067
|
type: 'string',
|
|
28002
28068
|
description: 'Optional comment about why the rule is being removed',
|
|
@@ -28025,6 +28091,79 @@ export const schemaDict = {
|
|
|
28025
28091
|
},
|
|
28026
28092
|
},
|
|
28027
28093
|
},
|
|
28094
|
+
ToolsOzoneSafelinkSyncSource: {
|
|
28095
|
+
lexicon: 1,
|
|
28096
|
+
id: 'tools.ozone.safelink.syncSource',
|
|
28097
|
+
defs: {
|
|
28098
|
+
main: {
|
|
28099
|
+
type: 'procedure',
|
|
28100
|
+
description: 'Replace stored rules for one source from a complete snapshot. Existing rules owned by another source remain unchanged.',
|
|
28101
|
+
input: {
|
|
28102
|
+
encoding: 'application/json',
|
|
28103
|
+
schema: {
|
|
28104
|
+
type: 'object',
|
|
28105
|
+
required: ['source', 'rules'],
|
|
28106
|
+
properties: {
|
|
28107
|
+
source: {
|
|
28108
|
+
type: 'string',
|
|
28109
|
+
maxLength: 128,
|
|
28110
|
+
description: 'Source whose rules are being synchronized',
|
|
28111
|
+
},
|
|
28112
|
+
rules: {
|
|
28113
|
+
type: 'array',
|
|
28114
|
+
items: {
|
|
28115
|
+
type: 'ref',
|
|
28116
|
+
ref: 'lex:tools.ozone.safelink.syncSource#sourceRule',
|
|
28117
|
+
},
|
|
28118
|
+
},
|
|
28119
|
+
},
|
|
28120
|
+
},
|
|
28121
|
+
},
|
|
28122
|
+
output: {
|
|
28123
|
+
encoding: 'application/json',
|
|
28124
|
+
schema: {
|
|
28125
|
+
type: 'object',
|
|
28126
|
+
required: ['added', 'updated', 'removed', 'events'],
|
|
28127
|
+
properties: {
|
|
28128
|
+
added: {
|
|
28129
|
+
type: 'integer',
|
|
28130
|
+
},
|
|
28131
|
+
updated: {
|
|
28132
|
+
type: 'integer',
|
|
28133
|
+
},
|
|
28134
|
+
removed: {
|
|
28135
|
+
type: 'integer',
|
|
28136
|
+
},
|
|
28137
|
+
events: {
|
|
28138
|
+
type: 'integer',
|
|
28139
|
+
},
|
|
28140
|
+
},
|
|
28141
|
+
},
|
|
28142
|
+
},
|
|
28143
|
+
},
|
|
28144
|
+
sourceRule: {
|
|
28145
|
+
type: 'object',
|
|
28146
|
+
required: ['url', 'pattern', 'action', 'reason'],
|
|
28147
|
+
properties: {
|
|
28148
|
+
url: {
|
|
28149
|
+
type: 'string',
|
|
28150
|
+
},
|
|
28151
|
+
pattern: {
|
|
28152
|
+
type: 'ref',
|
|
28153
|
+
ref: 'lex:tools.ozone.safelink.defs#patternType',
|
|
28154
|
+
},
|
|
28155
|
+
action: {
|
|
28156
|
+
type: 'ref',
|
|
28157
|
+
ref: 'lex:tools.ozone.safelink.defs#actionType',
|
|
28158
|
+
},
|
|
28159
|
+
reason: {
|
|
28160
|
+
type: 'ref',
|
|
28161
|
+
ref: 'lex:tools.ozone.safelink.defs#reasonType',
|
|
28162
|
+
},
|
|
28163
|
+
},
|
|
28164
|
+
},
|
|
28165
|
+
},
|
|
28166
|
+
},
|
|
28028
28167
|
ToolsOzoneSafelinkUpdateRule: {
|
|
28029
28168
|
lexicon: 1,
|
|
28030
28169
|
id: 'tools.ozone.safelink.updateRule',
|
|
@@ -28054,6 +28193,12 @@ export const schemaDict = {
|
|
|
28054
28193
|
type: 'ref',
|
|
28055
28194
|
ref: 'lex:tools.ozone.safelink.defs#reasonType',
|
|
28056
28195
|
},
|
|
28196
|
+
source: {
|
|
28197
|
+
type: 'string',
|
|
28198
|
+
maxLength: 128,
|
|
28199
|
+
default: 'ozone/default',
|
|
28200
|
+
description: 'Source of the rule to update',
|
|
28201
|
+
},
|
|
28057
28202
|
comment: {
|
|
28058
28203
|
type: 'string',
|
|
28059
28204
|
description: 'Optional comment about the update',
|
|
@@ -28078,6 +28223,10 @@ export const schemaDict = {
|
|
|
28078
28223
|
name: 'RuleNotFound',
|
|
28079
28224
|
description: 'No active rule found for this URL/domain',
|
|
28080
28225
|
},
|
|
28226
|
+
{
|
|
28227
|
+
name: 'RuleSourceConflict',
|
|
28228
|
+
description: 'A rule for this URL/domain is owned by another source',
|
|
28229
|
+
},
|
|
28081
28230
|
],
|
|
28082
28231
|
},
|
|
28083
28232
|
},
|
|
@@ -29830,6 +29979,7 @@ export const ids = {
|
|
|
29830
29979
|
ToolsOzoneSafelinkQueryEvents: 'tools.ozone.safelink.queryEvents',
|
|
29831
29980
|
ToolsOzoneSafelinkQueryRules: 'tools.ozone.safelink.queryRules',
|
|
29832
29981
|
ToolsOzoneSafelinkRemoveRule: 'tools.ozone.safelink.removeRule',
|
|
29982
|
+
ToolsOzoneSafelinkSyncSource: 'tools.ozone.safelink.syncSource',
|
|
29833
29983
|
ToolsOzoneSafelinkUpdateRule: 'tools.ozone.safelink.updateRule',
|
|
29834
29984
|
ToolsOzoneServerGetCapabilities: 'tools.ozone.server.getCapabilities',
|
|
29835
29985
|
ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
|