@atproto/pds 0.4.156 → 0.4.158

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/lexicon/index.d.ts +15 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +40 -1
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +3427 -2489
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +499 -0
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/com/atproto/moderation/createReport.d.ts +14 -0
  11. package/dist/lexicon/types/com/atproto/moderation/createReport.d.ts.map +1 -1
  12. package/dist/lexicon/types/com/atproto/moderation/createReport.js +9 -0
  13. package/dist/lexicon/types/com/atproto/moderation/createReport.js.map +1 -1
  14. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +14 -0
  15. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  16. package/dist/lexicon/types/tools/ozone/moderation/defs.js +9 -0
  17. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  18. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +1 -0
  19. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  20. package/dist/lexicon/types/tools/ozone/moderation/queryEvents.d.ts +2 -0
  21. package/dist/lexicon/types/tools/ozone/moderation/queryEvents.d.ts.map +1 -1
  22. package/dist/lexicon/types/tools/ozone/safelink/addRule.d.ts +47 -0
  23. package/dist/lexicon/types/tools/ozone/safelink/addRule.d.ts.map +1 -0
  24. package/dist/lexicon/types/tools/ozone/safelink/addRule.js +7 -0
  25. package/dist/lexicon/types/tools/ozone/safelink/addRule.js.map +1 -0
  26. package/dist/lexicon/types/tools/ozone/safelink/defs.d.ts +47 -0
  27. package/dist/lexicon/types/tools/ozone/safelink/defs.d.ts.map +1 -0
  28. package/dist/lexicon/types/tools/ozone/safelink/defs.js +25 -0
  29. package/dist/lexicon/types/tools/ozone/safelink/defs.js.map +1 -0
  30. package/dist/lexicon/types/tools/ozone/safelink/queryEvents.d.ts +51 -0
  31. package/dist/lexicon/types/tools/ozone/safelink/queryEvents.d.ts.map +1 -0
  32. package/dist/lexicon/types/tools/ozone/safelink/queryEvents.js +7 -0
  33. package/dist/lexicon/types/tools/ozone/safelink/queryEvents.js.map +1 -0
  34. package/dist/lexicon/types/tools/ozone/safelink/queryRules.d.ts +57 -0
  35. package/dist/lexicon/types/tools/ozone/safelink/queryRules.d.ts.map +1 -0
  36. package/dist/lexicon/types/tools/ozone/safelink/queryRules.js +7 -0
  37. package/dist/lexicon/types/tools/ozone/safelink/queryRules.js.map +1 -0
  38. package/dist/lexicon/types/tools/ozone/safelink/removeRule.d.ts +45 -0
  39. package/dist/lexicon/types/tools/ozone/safelink/removeRule.d.ts.map +1 -0
  40. package/dist/lexicon/types/tools/ozone/safelink/removeRule.js +7 -0
  41. package/dist/lexicon/types/tools/ozone/safelink/removeRule.js.map +1 -0
  42. package/dist/lexicon/types/tools/ozone/safelink/updateRule.d.ts +47 -0
  43. package/dist/lexicon/types/tools/ozone/safelink/updateRule.d.ts.map +1 -0
  44. package/dist/lexicon/types/tools/ozone/safelink/updateRule.js +7 -0
  45. package/dist/lexicon/types/tools/ozone/safelink/updateRule.js.map +1 -0
  46. package/dist/pipethrough.js +5 -0
  47. package/dist/pipethrough.js.map +1 -1
  48. package/package.json +5 -5
  49. package/src/lexicon/index.ts +70 -0
  50. package/src/lexicon/lexicons.ts +509 -0
  51. package/src/lexicon/types/com/atproto/moderation/createReport.ts +20 -0
  52. package/src/lexicon/types/tools/ozone/moderation/defs.ts +21 -0
  53. package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +1 -0
  54. package/src/lexicon/types/tools/ozone/moderation/queryEvents.ts +2 -0
  55. package/src/lexicon/types/tools/ozone/safelink/addRule.ts +64 -0
  56. package/src/lexicon/types/tools/ozone/safelink/defs.ts +76 -0
  57. package/src/lexicon/types/tools/ozone/safelink/queryEvents.ts +68 -0
  58. package/src/lexicon/types/tools/ozone/safelink/queryRules.ts +74 -0
  59. package/src/lexicon/types/tools/ozone/safelink/removeRule.ts +62 -0
  60. package/src/lexicon/types/tools/ozone/safelink/updateRule.ts +64 -0
  61. package/src/pipethrough.ts +5 -0
  62. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1333,6 +1333,10 @@ exports.schemaDict = {
1333
1333
  'lex:com.atproto.repo.strongRef',
1334
1334
  ],
1335
1335
  },
1336
+ modTool: {
1337
+ type: 'ref',
1338
+ ref: 'lex:com.atproto.moderation.createReport#modTool',
1339
+ },
1336
1340
  },
1337
1341
  },
1338
1342
  },
@@ -1379,6 +1383,21 @@ exports.schemaDict = {
1379
1383
  },
1380
1384
  },
1381
1385
  },
1386
+ modTool: {
1387
+ type: 'object',
1388
+ description: 'Moderation tool information for tracing the source of the action',
1389
+ required: ['name'],
1390
+ properties: {
1391
+ name: {
1392
+ type: 'string',
1393
+ description: "Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome')",
1394
+ },
1395
+ meta: {
1396
+ type: 'unknown',
1397
+ description: 'Additional arbitrary metadata about the source',
1398
+ },
1399
+ },
1400
+ },
1382
1401
  },
1383
1402
  },
1384
1403
  ComAtprotoModerationDefs: {
@@ -13122,6 +13141,10 @@ exports.schemaDict = {
13122
13141
  subjectHandle: {
13123
13142
  type: 'string',
13124
13143
  },
13144
+ modTool: {
13145
+ type: 'ref',
13146
+ ref: 'lex:tools.ozone.moderation.defs#modTool',
13147
+ },
13125
13148
  },
13126
13149
  },
13127
13150
  modEventViewDetail: {
@@ -13186,6 +13209,10 @@ exports.schemaDict = {
13186
13209
  type: 'string',
13187
13210
  format: 'datetime',
13188
13211
  },
13212
+ modTool: {
13213
+ type: 'ref',
13214
+ ref: 'lex:tools.ozone.moderation.defs#modTool',
13215
+ },
13189
13216
  },
13190
13217
  },
13191
13218
  subjectStatusView: {
@@ -14165,6 +14192,21 @@ exports.schemaDict = {
14165
14192
  },
14166
14193
  },
14167
14194
  },
14195
+ modTool: {
14196
+ type: 'object',
14197
+ description: 'Moderation tool information for tracing the source of the action',
14198
+ required: ['name'],
14199
+ properties: {
14200
+ name: {
14201
+ type: 'string',
14202
+ description: "Name/identifier of the source (e.g., 'automod', 'ozone/workspace')",
14203
+ },
14204
+ meta: {
14205
+ type: 'unknown',
14206
+ description: 'Additional arbitrary metadata about the source',
14207
+ },
14208
+ },
14209
+ },
14168
14210
  },
14169
14211
  },
14170
14212
  ToolsOzoneModerationEmitEvent: {
@@ -14222,6 +14264,10 @@ exports.schemaDict = {
14222
14264
  type: 'string',
14223
14265
  format: 'did',
14224
14266
  },
14267
+ modTool: {
14268
+ type: 'ref',
14269
+ ref: 'lex:tools.ozone.moderation.defs#modTool',
14270
+ },
14225
14271
  },
14226
14272
  },
14227
14273
  },
@@ -14615,6 +14661,13 @@ exports.schemaDict = {
14615
14661
  description: 'If specified, only events where the action policies match any of the given policies are returned',
14616
14662
  },
14617
14663
  },
14664
+ modTool: {
14665
+ type: 'array',
14666
+ items: {
14667
+ type: 'string',
14668
+ },
14669
+ description: 'If specified, only events where the modTool name matches any of the given values are returned',
14670
+ },
14618
14671
  cursor: {
14619
14672
  type: 'string',
14620
14673
  },
@@ -14901,6 +14954,446 @@ exports.schemaDict = {
14901
14954
  },
14902
14955
  },
14903
14956
  },
14957
+ ToolsOzoneSafelinkAddRule: {
14958
+ lexicon: 1,
14959
+ id: 'tools.ozone.safelink.addRule',
14960
+ defs: {
14961
+ main: {
14962
+ type: 'procedure',
14963
+ description: 'Add a new URL safety rule',
14964
+ input: {
14965
+ encoding: 'application/json',
14966
+ schema: {
14967
+ type: 'object',
14968
+ required: ['url', 'pattern', 'action', 'reason'],
14969
+ properties: {
14970
+ url: {
14971
+ type: 'string',
14972
+ description: 'The URL or domain to apply the rule to',
14973
+ },
14974
+ pattern: {
14975
+ type: 'ref',
14976
+ ref: 'lex:tools.ozone.safelink.defs#patternType',
14977
+ },
14978
+ action: {
14979
+ type: 'ref',
14980
+ ref: 'lex:tools.ozone.safelink.defs#actionType',
14981
+ },
14982
+ reason: {
14983
+ type: 'ref',
14984
+ ref: 'lex:tools.ozone.safelink.defs#reasonType',
14985
+ },
14986
+ comment: {
14987
+ type: 'string',
14988
+ description: 'Optional comment about the decision',
14989
+ },
14990
+ createdBy: {
14991
+ type: 'string',
14992
+ format: 'did',
14993
+ description: 'Author DID. Only respected when using admin auth',
14994
+ },
14995
+ },
14996
+ },
14997
+ },
14998
+ output: {
14999
+ encoding: 'application/json',
15000
+ schema: {
15001
+ type: 'ref',
15002
+ ref: 'lex:tools.ozone.safelink.defs#event',
15003
+ },
15004
+ },
15005
+ errors: [
15006
+ {
15007
+ name: 'InvalidUrl',
15008
+ description: 'The provided URL is invalid',
15009
+ },
15010
+ {
15011
+ name: 'RuleAlreadyExists',
15012
+ description: 'A rule for this URL/domain already exists',
15013
+ },
15014
+ ],
15015
+ },
15016
+ },
15017
+ },
15018
+ ToolsOzoneSafelinkDefs: {
15019
+ lexicon: 1,
15020
+ id: 'tools.ozone.safelink.defs',
15021
+ defs: {
15022
+ event: {
15023
+ type: 'object',
15024
+ description: 'An event for URL safety decisions',
15025
+ required: [
15026
+ 'id',
15027
+ 'eventType',
15028
+ 'url',
15029
+ 'pattern',
15030
+ 'action',
15031
+ 'reason',
15032
+ 'createdBy',
15033
+ 'createdAt',
15034
+ ],
15035
+ properties: {
15036
+ id: {
15037
+ type: 'integer',
15038
+ description: 'Auto-incrementing row ID',
15039
+ },
15040
+ eventType: {
15041
+ type: 'ref',
15042
+ ref: 'lex:tools.ozone.safelink.defs#eventType',
15043
+ },
15044
+ url: {
15045
+ type: 'string',
15046
+ description: 'The URL that this rule applies to',
15047
+ },
15048
+ pattern: {
15049
+ type: 'ref',
15050
+ ref: 'lex:tools.ozone.safelink.defs#patternType',
15051
+ },
15052
+ action: {
15053
+ type: 'ref',
15054
+ ref: 'lex:tools.ozone.safelink.defs#actionType',
15055
+ },
15056
+ reason: {
15057
+ type: 'ref',
15058
+ ref: 'lex:tools.ozone.safelink.defs#reasonType',
15059
+ },
15060
+ createdBy: {
15061
+ type: 'string',
15062
+ format: 'did',
15063
+ description: 'DID of the user who created this rule',
15064
+ },
15065
+ createdAt: {
15066
+ type: 'string',
15067
+ format: 'datetime',
15068
+ },
15069
+ comment: {
15070
+ type: 'string',
15071
+ description: 'Optional comment about the decision',
15072
+ },
15073
+ },
15074
+ },
15075
+ eventType: {
15076
+ type: 'string',
15077
+ knownValues: ['addRule', 'updateRule', 'removeRule'],
15078
+ },
15079
+ patternType: {
15080
+ type: 'string',
15081
+ knownValues: ['domain', 'url'],
15082
+ },
15083
+ actionType: {
15084
+ type: 'string',
15085
+ knownValues: ['block', 'warn', 'whitelist'],
15086
+ },
15087
+ reasonType: {
15088
+ type: 'string',
15089
+ knownValues: ['csam', 'spam', 'phishing', 'none'],
15090
+ },
15091
+ urlRule: {
15092
+ type: 'object',
15093
+ description: 'Input for creating a URL safety rule',
15094
+ required: [
15095
+ 'url',
15096
+ 'pattern',
15097
+ 'action',
15098
+ 'reason',
15099
+ 'createdBy',
15100
+ 'createdAt',
15101
+ 'updatedAt',
15102
+ ],
15103
+ properties: {
15104
+ url: {
15105
+ type: 'string',
15106
+ description: 'The URL or domain to apply the rule to',
15107
+ },
15108
+ pattern: {
15109
+ type: 'ref',
15110
+ ref: 'lex:tools.ozone.safelink.defs#patternType',
15111
+ },
15112
+ action: {
15113
+ type: 'ref',
15114
+ ref: 'lex:tools.ozone.safelink.defs#actionType',
15115
+ },
15116
+ reason: {
15117
+ type: 'ref',
15118
+ ref: 'lex:tools.ozone.safelink.defs#reasonType',
15119
+ },
15120
+ comment: {
15121
+ type: 'string',
15122
+ description: 'Optional comment about the decision',
15123
+ },
15124
+ createdBy: {
15125
+ type: 'string',
15126
+ format: 'did',
15127
+ description: 'DID of the user added the rule.',
15128
+ },
15129
+ createdAt: {
15130
+ type: 'string',
15131
+ format: 'datetime',
15132
+ description: 'Timestamp when the rule was created',
15133
+ },
15134
+ updatedAt: {
15135
+ type: 'string',
15136
+ format: 'datetime',
15137
+ description: 'Timestamp when the rule was last updated',
15138
+ },
15139
+ },
15140
+ },
15141
+ },
15142
+ },
15143
+ ToolsOzoneSafelinkQueryEvents: {
15144
+ lexicon: 1,
15145
+ id: 'tools.ozone.safelink.queryEvents',
15146
+ defs: {
15147
+ main: {
15148
+ type: 'procedure',
15149
+ description: 'Query URL safety audit events',
15150
+ input: {
15151
+ encoding: 'application/json',
15152
+ schema: {
15153
+ type: 'object',
15154
+ properties: {
15155
+ cursor: {
15156
+ type: 'string',
15157
+ description: 'Cursor for pagination',
15158
+ },
15159
+ limit: {
15160
+ type: 'integer',
15161
+ minimum: 1,
15162
+ maximum: 100,
15163
+ default: 50,
15164
+ description: 'Maximum number of results to return',
15165
+ },
15166
+ urls: {
15167
+ type: 'array',
15168
+ items: {
15169
+ type: 'string',
15170
+ },
15171
+ description: 'Filter by specific URLs or domains',
15172
+ },
15173
+ patternType: {
15174
+ type: 'string',
15175
+ description: 'Filter by pattern type',
15176
+ },
15177
+ sortDirection: {
15178
+ type: 'string',
15179
+ knownValues: ['asc', 'desc'],
15180
+ default: 'desc',
15181
+ description: 'Sort direction',
15182
+ },
15183
+ },
15184
+ },
15185
+ },
15186
+ output: {
15187
+ encoding: 'application/json',
15188
+ schema: {
15189
+ type: 'object',
15190
+ required: ['events'],
15191
+ properties: {
15192
+ cursor: {
15193
+ type: 'string',
15194
+ description: 'Next cursor for pagination. Only present if there are more results.',
15195
+ },
15196
+ events: {
15197
+ type: 'array',
15198
+ items: {
15199
+ type: 'ref',
15200
+ ref: 'lex:tools.ozone.safelink.defs#event',
15201
+ },
15202
+ },
15203
+ },
15204
+ },
15205
+ },
15206
+ },
15207
+ },
15208
+ },
15209
+ ToolsOzoneSafelinkQueryRules: {
15210
+ lexicon: 1,
15211
+ id: 'tools.ozone.safelink.queryRules',
15212
+ defs: {
15213
+ main: {
15214
+ type: 'procedure',
15215
+ description: 'Query URL safety rules',
15216
+ input: {
15217
+ encoding: 'application/json',
15218
+ schema: {
15219
+ type: 'object',
15220
+ properties: {
15221
+ cursor: {
15222
+ type: 'string',
15223
+ description: 'Cursor for pagination',
15224
+ },
15225
+ limit: {
15226
+ type: 'integer',
15227
+ minimum: 1,
15228
+ maximum: 100,
15229
+ default: 50,
15230
+ description: 'Maximum number of results to return',
15231
+ },
15232
+ urls: {
15233
+ type: 'array',
15234
+ items: {
15235
+ type: 'string',
15236
+ },
15237
+ description: 'Filter by specific URLs or domains',
15238
+ },
15239
+ patternType: {
15240
+ type: 'string',
15241
+ description: 'Filter by pattern type',
15242
+ },
15243
+ actions: {
15244
+ type: 'array',
15245
+ items: {
15246
+ type: 'string',
15247
+ },
15248
+ description: 'Filter by action types',
15249
+ },
15250
+ reason: {
15251
+ type: 'string',
15252
+ description: 'Filter by reason type',
15253
+ },
15254
+ createdBy: {
15255
+ type: 'string',
15256
+ format: 'did',
15257
+ description: 'Filter by rule creator',
15258
+ },
15259
+ sortDirection: {
15260
+ type: 'string',
15261
+ knownValues: ['asc', 'desc'],
15262
+ default: 'desc',
15263
+ description: 'Sort direction',
15264
+ },
15265
+ },
15266
+ },
15267
+ },
15268
+ output: {
15269
+ encoding: 'application/json',
15270
+ schema: {
15271
+ type: 'object',
15272
+ required: ['rules'],
15273
+ properties: {
15274
+ cursor: {
15275
+ type: 'string',
15276
+ description: 'Next cursor for pagination. Only present if there are more results.',
15277
+ },
15278
+ rules: {
15279
+ type: 'array',
15280
+ items: {
15281
+ type: 'ref',
15282
+ ref: 'lex:tools.ozone.safelink.defs#urlRule',
15283
+ },
15284
+ },
15285
+ },
15286
+ },
15287
+ },
15288
+ },
15289
+ },
15290
+ },
15291
+ ToolsOzoneSafelinkRemoveRule: {
15292
+ lexicon: 1,
15293
+ id: 'tools.ozone.safelink.removeRule',
15294
+ defs: {
15295
+ main: {
15296
+ type: 'procedure',
15297
+ description: 'Remove an existing URL safety rule',
15298
+ input: {
15299
+ encoding: 'application/json',
15300
+ schema: {
15301
+ type: 'object',
15302
+ required: ['url', 'pattern'],
15303
+ properties: {
15304
+ url: {
15305
+ type: 'string',
15306
+ description: 'The URL or domain to remove the rule for',
15307
+ },
15308
+ pattern: {
15309
+ type: 'ref',
15310
+ ref: 'lex:tools.ozone.safelink.defs#patternType',
15311
+ },
15312
+ comment: {
15313
+ type: 'string',
15314
+ description: 'Optional comment about why the rule is being removed',
15315
+ },
15316
+ createdBy: {
15317
+ type: 'string',
15318
+ format: 'did',
15319
+ description: 'Optional DID of the user. Only respected when using admin auth.',
15320
+ },
15321
+ },
15322
+ },
15323
+ },
15324
+ output: {
15325
+ encoding: 'application/json',
15326
+ schema: {
15327
+ type: 'ref',
15328
+ ref: 'lex:tools.ozone.safelink.defs#event',
15329
+ },
15330
+ },
15331
+ errors: [
15332
+ {
15333
+ name: 'RuleNotFound',
15334
+ description: 'No active rule found for this URL/domain',
15335
+ },
15336
+ ],
15337
+ },
15338
+ },
15339
+ },
15340
+ ToolsOzoneSafelinkUpdateRule: {
15341
+ lexicon: 1,
15342
+ id: 'tools.ozone.safelink.updateRule',
15343
+ defs: {
15344
+ main: {
15345
+ type: 'procedure',
15346
+ description: 'Update an existing URL safety rule',
15347
+ input: {
15348
+ encoding: 'application/json',
15349
+ schema: {
15350
+ type: 'object',
15351
+ required: ['url', 'pattern', 'action', 'reason'],
15352
+ properties: {
15353
+ url: {
15354
+ type: 'string',
15355
+ description: 'The URL or domain to update the rule for',
15356
+ },
15357
+ pattern: {
15358
+ type: 'ref',
15359
+ ref: 'lex:tools.ozone.safelink.defs#patternType',
15360
+ },
15361
+ action: {
15362
+ type: 'ref',
15363
+ ref: 'lex:tools.ozone.safelink.defs#actionType',
15364
+ },
15365
+ reason: {
15366
+ type: 'ref',
15367
+ ref: 'lex:tools.ozone.safelink.defs#reasonType',
15368
+ },
15369
+ comment: {
15370
+ type: 'string',
15371
+ description: 'Optional comment about the update',
15372
+ },
15373
+ createdBy: {
15374
+ type: 'string',
15375
+ format: 'did',
15376
+ description: 'Optional DID to credit as the creator. Only respected for admin_token authentication.',
15377
+ },
15378
+ },
15379
+ },
15380
+ },
15381
+ output: {
15382
+ encoding: 'application/json',
15383
+ schema: {
15384
+ type: 'ref',
15385
+ ref: 'lex:tools.ozone.safelink.defs#event',
15386
+ },
15387
+ },
15388
+ errors: [
15389
+ {
15390
+ name: 'RuleNotFound',
15391
+ description: 'No active rule found for this URL/domain',
15392
+ },
15393
+ ],
15394
+ },
15395
+ },
15396
+ },
14904
15397
  ToolsOzoneServerGetConfig: {
14905
15398
  lexicon: 1,
14906
15399
  id: 'tools.ozone.server.getConfig',
@@ -16479,6 +16972,12 @@ exports.ids = {
16479
16972
  ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
16480
16973
  ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
16481
16974
  ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
16975
+ ToolsOzoneSafelinkAddRule: 'tools.ozone.safelink.addRule',
16976
+ ToolsOzoneSafelinkDefs: 'tools.ozone.safelink.defs',
16977
+ ToolsOzoneSafelinkQueryEvents: 'tools.ozone.safelink.queryEvents',
16978
+ ToolsOzoneSafelinkQueryRules: 'tools.ozone.safelink.queryRules',
16979
+ ToolsOzoneSafelinkRemoveRule: 'tools.ozone.safelink.removeRule',
16980
+ ToolsOzoneSafelinkUpdateRule: 'tools.ozone.safelink.updateRule',
16482
16981
  ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
16483
16982
  ToolsOzoneSetAddValues: 'tools.ozone.set.addValues',
16484
16983
  ToolsOzoneSetDefs: 'tools.ozone.set.defs',