@atproto/pds 0.4.175 → 0.4.177
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 +40 -0
- package/dist/account-manager/db/migrations/007-lexicon-failures-index.d.ts +4 -0
- package/dist/account-manager/db/migrations/007-lexicon-failures-index.d.ts.map +1 -0
- package/dist/account-manager/db/migrations/007-lexicon-failures-index.js +17 -0
- package/dist/account-manager/db/migrations/007-lexicon-failures-index.js.map +1 -0
- package/dist/account-manager/db/migrations/index.d.ts +2 -0
- package/dist/account-manager/db/migrations/index.d.ts.map +1 -1
- package/dist/account-manager/db/migrations/index.js +2 -0
- package/dist/account-manager/db/migrations/index.js.map +1 -1
- package/dist/account-manager/helpers/lexicon.d.ts.map +1 -1
- package/dist/account-manager/helpers/lexicon.js +7 -0
- package/dist/account-manager/helpers/lexicon.js.map +1 -1
- package/dist/account-manager/helpers/token.d.ts +32 -32
- package/dist/account-manager/scope-reference-getter.d.ts +14 -0
- package/dist/account-manager/scope-reference-getter.d.ts.map +1 -0
- package/dist/account-manager/scope-reference-getter.js +69 -0
- package/dist/account-manager/scope-reference-getter.js.map +1 -0
- package/dist/actor-store/actor-store.d.ts.map +1 -1
- package/dist/actor-store/actor-store.js +4 -1
- package/dist/actor-store/actor-store.js.map +1 -1
- package/dist/actor-store/blob/transactor.d.ts +2 -2
- package/dist/actor-store/blob/transactor.d.ts.map +1 -1
- package/dist/actor-store/blob/transactor.js +73 -24
- package/dist/actor-store/blob/transactor.js.map +1 -1
- package/dist/actor-store/record/reader.d.ts.map +1 -1
- package/dist/actor-store/record/reader.js +12 -9
- package/dist/actor-store/record/reader.js.map +1 -1
- package/dist/actor-store/repo/sql-repo-reader.d.ts.map +1 -1
- package/dist/actor-store/repo/sql-repo-reader.js +2 -2
- package/dist/actor-store/repo/sql-repo-reader.js.map +1 -1
- package/dist/actor-store/repo/sql-repo-transactor.d.ts.map +1 -1
- package/dist/actor-store/repo/sql-repo-transactor.js +16 -19
- package/dist/actor-store/repo/sql-repo-transactor.js.map +1 -1
- package/dist/actor-store/repo/transactor.d.ts.map +1 -1
- package/dist/actor-store/repo/transactor.js +11 -15
- package/dist/actor-store/repo/transactor.js.map +1 -1
- package/dist/api/com/atproto/admin/updateSubjectStatus.js +6 -2
- package/dist/api/com/atproto/admin/updateSubjectStatus.js.map +1 -1
- package/dist/api/com/atproto/repo/importRepo.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/importRepo.js +43 -51
- package/dist/api/com/atproto/repo/importRepo.js.map +1 -1
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +2 -12
- package/dist/auth-verifier.js.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +20 -4
- package/dist/context.js.map +1 -1
- package/dist/disk-blobstore.d.ts.map +1 -1
- package/dist/disk-blobstore.js +10 -2
- package/dist/disk-blobstore.js.map +1 -1
- package/dist/lexicon/index.d.ts +60 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +83 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +758 -16
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +485 -7
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/bookmark/createBookmark.d.ts +16 -0
- package/dist/lexicon/types/app/bsky/bookmark/createBookmark.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/bookmark/createBookmark.js +7 -0
- package/dist/lexicon/types/app/bsky/bookmark/createBookmark.js.map +1 -0
- package/dist/lexicon/types/app/bsky/bookmark/defs.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/bookmark/defs.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/bookmark/defs.js +25 -0
- package/dist/lexicon/types/app/bsky/bookmark/defs.js.map +1 -0
- package/dist/lexicon/types/app/bsky/bookmark/deleteBookmark.d.ts +15 -0
- package/dist/lexicon/types/app/bsky/bookmark/deleteBookmark.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/bookmark/deleteBookmark.js +7 -0
- package/dist/lexicon/types/app/bsky/bookmark/deleteBookmark.js.map +1 -0
- package/dist/lexicon/types/app/bsky/bookmark/getBookmarks.d.ts +24 -0
- package/dist/lexicon/types/app/bsky/bookmark/getBookmarks.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/bookmark/getBookmarks.js +7 -0
- package/dist/lexicon/types/app/bsky/bookmark/getBookmarks.js.map +1 -0
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts +8 -8
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/moderation/defs.js +7 -7
- package/dist/lexicon/types/com/atproto/moderation/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/temp/dereferenceScope.d.ts +24 -0
- package/dist/lexicon/types/com/atproto/temp/dereferenceScope.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/temp/dereferenceScope.js +7 -0
- package/dist/lexicon/types/com/atproto/temp/dereferenceScope.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/report/defs.d.ts +92 -0
- package/dist/lexicon/types/tools/ozone/report/defs.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/report/defs.js +98 -0
- package/dist/lexicon/types/tools/ozone/report/defs.js.map +1 -0
- package/dist/logger.d.ts +1 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +2 -1
- package/dist/logger.js.map +1 -1
- package/dist/scripts/rebuild-repo.d.ts.map +1 -1
- package/dist/scripts/rebuild-repo.js +3 -5
- package/dist/scripts/rebuild-repo.js.map +1 -1
- package/dist/scripts/sequencer-recovery/recoverer.js +8 -10
- package/dist/scripts/sequencer-recovery/recoverer.js.map +1 -1
- package/dist/sequencer/sequencer.js +2 -2
- package/dist/sequencer/sequencer.js.map +1 -1
- package/package.json +20 -17
- package/src/account-manager/db/migrations/007-lexicon-failures-index.ts +14 -0
- package/src/account-manager/db/migrations/index.ts +2 -0
- package/src/account-manager/helpers/lexicon.ts +14 -1
- package/src/account-manager/scope-reference-getter.ts +92 -0
- package/src/actor-store/actor-store.ts +5 -9
- package/src/actor-store/blob/transactor.ts +115 -42
- package/src/actor-store/record/reader.ts +14 -12
- package/src/actor-store/repo/sql-repo-reader.ts +12 -14
- package/src/actor-store/repo/sql-repo-transactor.ts +17 -23
- package/src/actor-store/repo/transactor.ts +29 -32
- package/src/api/com/atproto/admin/updateSubjectStatus.ts +7 -7
- package/src/api/com/atproto/repo/importRepo.ts +41 -55
- package/src/auth-verifier.ts +4 -20
- package/src/context.ts +26 -5
- package/src/disk-blobstore.ts +20 -3
- package/src/lexicon/index.ts +131 -0
- package/src/lexicon/lexicons.ts +503 -7
- package/src/lexicon/types/app/bsky/bookmark/createBookmark.ts +35 -0
- package/src/lexicon/types/app/bsky/bookmark/defs.ts +54 -0
- package/src/lexicon/types/app/bsky/bookmark/deleteBookmark.ts +34 -0
- package/src/lexicon/types/app/bsky/bookmark/getBookmarks.ts +42 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +2 -0
- package/src/lexicon/types/com/atproto/moderation/defs.ts +52 -7
- package/src/lexicon/types/com/atproto/temp/dereferenceScope.ts +42 -0
- package/src/lexicon/types/tools/ozone/report/defs.ts +154 -0
- package/src/logger.ts +1 -0
- package/src/scripts/rebuild-repo.ts +4 -5
- package/src/scripts/sequencer-recovery/recoverer.ts +8 -12
- package/src/sequencer/sequencer.ts +3 -3
- package/tests/proxied/__snapshots__/feedgen.test.ts.snap +4 -0
- package/tests/proxied/__snapshots__/views.test.ts.snap +80 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/src/lexicon/lexicons.ts
CHANGED
@@ -1165,6 +1165,158 @@ export const schemaDict = {
|
|
1165
1165
|
},
|
1166
1166
|
},
|
1167
1167
|
},
|
1168
|
+
AppBskyBookmarkCreateBookmark: {
|
1169
|
+
lexicon: 1,
|
1170
|
+
id: 'app.bsky.bookmark.createBookmark',
|
1171
|
+
defs: {
|
1172
|
+
main: {
|
1173
|
+
type: 'procedure',
|
1174
|
+
description:
|
1175
|
+
'Creates a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.',
|
1176
|
+
input: {
|
1177
|
+
encoding: 'application/json',
|
1178
|
+
schema: {
|
1179
|
+
type: 'object',
|
1180
|
+
required: ['uri', 'cid'],
|
1181
|
+
properties: {
|
1182
|
+
uri: {
|
1183
|
+
type: 'string',
|
1184
|
+
format: 'at-uri',
|
1185
|
+
},
|
1186
|
+
cid: {
|
1187
|
+
type: 'string',
|
1188
|
+
format: 'cid',
|
1189
|
+
},
|
1190
|
+
},
|
1191
|
+
},
|
1192
|
+
},
|
1193
|
+
errors: [
|
1194
|
+
{
|
1195
|
+
name: 'UnsupportedCollection',
|
1196
|
+
description:
|
1197
|
+
'The URI to be bookmarked is for an unsupported collection.',
|
1198
|
+
},
|
1199
|
+
],
|
1200
|
+
},
|
1201
|
+
},
|
1202
|
+
},
|
1203
|
+
AppBskyBookmarkDefs: {
|
1204
|
+
lexicon: 1,
|
1205
|
+
id: 'app.bsky.bookmark.defs',
|
1206
|
+
defs: {
|
1207
|
+
bookmark: {
|
1208
|
+
description: 'Object used to store bookmark data in stash.',
|
1209
|
+
type: 'object',
|
1210
|
+
required: ['subject'],
|
1211
|
+
properties: {
|
1212
|
+
subject: {
|
1213
|
+
description:
|
1214
|
+
'A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.',
|
1215
|
+
type: 'ref',
|
1216
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
1217
|
+
},
|
1218
|
+
},
|
1219
|
+
},
|
1220
|
+
bookmarkView: {
|
1221
|
+
type: 'object',
|
1222
|
+
required: ['subject', 'item'],
|
1223
|
+
properties: {
|
1224
|
+
subject: {
|
1225
|
+
description: 'A strong ref to the bookmarked record.',
|
1226
|
+
type: 'ref',
|
1227
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
1228
|
+
},
|
1229
|
+
createdAt: {
|
1230
|
+
type: 'string',
|
1231
|
+
format: 'datetime',
|
1232
|
+
},
|
1233
|
+
item: {
|
1234
|
+
type: 'union',
|
1235
|
+
refs: [
|
1236
|
+
'lex:app.bsky.feed.defs#blockedPost',
|
1237
|
+
'lex:app.bsky.feed.defs#notFoundPost',
|
1238
|
+
'lex:app.bsky.feed.defs#postView',
|
1239
|
+
],
|
1240
|
+
},
|
1241
|
+
},
|
1242
|
+
},
|
1243
|
+
},
|
1244
|
+
},
|
1245
|
+
AppBskyBookmarkDeleteBookmark: {
|
1246
|
+
lexicon: 1,
|
1247
|
+
id: 'app.bsky.bookmark.deleteBookmark',
|
1248
|
+
defs: {
|
1249
|
+
main: {
|
1250
|
+
type: 'procedure',
|
1251
|
+
description:
|
1252
|
+
'Deletes a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.',
|
1253
|
+
input: {
|
1254
|
+
encoding: 'application/json',
|
1255
|
+
schema: {
|
1256
|
+
type: 'object',
|
1257
|
+
required: ['uri'],
|
1258
|
+
properties: {
|
1259
|
+
uri: {
|
1260
|
+
type: 'string',
|
1261
|
+
format: 'at-uri',
|
1262
|
+
},
|
1263
|
+
},
|
1264
|
+
},
|
1265
|
+
},
|
1266
|
+
errors: [
|
1267
|
+
{
|
1268
|
+
name: 'UnsupportedCollection',
|
1269
|
+
description:
|
1270
|
+
'The URI to be bookmarked is for an unsupported collection.',
|
1271
|
+
},
|
1272
|
+
],
|
1273
|
+
},
|
1274
|
+
},
|
1275
|
+
},
|
1276
|
+
AppBskyBookmarkGetBookmarks: {
|
1277
|
+
lexicon: 1,
|
1278
|
+
id: 'app.bsky.bookmark.getBookmarks',
|
1279
|
+
defs: {
|
1280
|
+
main: {
|
1281
|
+
type: 'query',
|
1282
|
+
description:
|
1283
|
+
'Gets views of records bookmarked by the authenticated user. Requires authentication.',
|
1284
|
+
parameters: {
|
1285
|
+
type: 'params',
|
1286
|
+
properties: {
|
1287
|
+
limit: {
|
1288
|
+
type: 'integer',
|
1289
|
+
minimum: 1,
|
1290
|
+
maximum: 100,
|
1291
|
+
default: 50,
|
1292
|
+
},
|
1293
|
+
cursor: {
|
1294
|
+
type: 'string',
|
1295
|
+
},
|
1296
|
+
},
|
1297
|
+
},
|
1298
|
+
output: {
|
1299
|
+
encoding: 'application/json',
|
1300
|
+
schema: {
|
1301
|
+
type: 'object',
|
1302
|
+
required: ['bookmarks'],
|
1303
|
+
properties: {
|
1304
|
+
cursor: {
|
1305
|
+
type: 'string',
|
1306
|
+
},
|
1307
|
+
bookmarks: {
|
1308
|
+
type: 'array',
|
1309
|
+
items: {
|
1310
|
+
type: 'ref',
|
1311
|
+
ref: 'lex:app.bsky.bookmark.defs#bookmarkView',
|
1312
|
+
},
|
1313
|
+
},
|
1314
|
+
},
|
1315
|
+
},
|
1316
|
+
},
|
1317
|
+
},
|
1318
|
+
},
|
1319
|
+
},
|
1168
1320
|
AppBskyEmbedDefs: {
|
1169
1321
|
lexicon: 1,
|
1170
1322
|
id: 'app.bsky.embed.defs',
|
@@ -1637,6 +1789,9 @@ export const schemaDict = {
|
|
1637
1789
|
'lex:app.bsky.embed.recordWithMedia#view',
|
1638
1790
|
],
|
1639
1791
|
},
|
1792
|
+
bookmarkCount: {
|
1793
|
+
type: 'integer',
|
1794
|
+
},
|
1640
1795
|
replyCount: {
|
1641
1796
|
type: 'integer',
|
1642
1797
|
},
|
@@ -1683,6 +1838,9 @@ export const schemaDict = {
|
|
1683
1838
|
type: 'string',
|
1684
1839
|
format: 'at-uri',
|
1685
1840
|
},
|
1841
|
+
bookmarked: {
|
1842
|
+
type: 'boolean',
|
1843
|
+
},
|
1686
1844
|
threadMuted: {
|
1687
1845
|
type: 'boolean',
|
1688
1846
|
},
|
@@ -10389,36 +10547,86 @@ export const schemaDict = {
|
|
10389
10547
|
'com.atproto.moderation.defs#reasonRude',
|
10390
10548
|
'com.atproto.moderation.defs#reasonOther',
|
10391
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',
|
10392
10595
|
],
|
10393
10596
|
},
|
10394
10597
|
reasonSpam: {
|
10395
10598
|
type: 'token',
|
10396
|
-
description:
|
10599
|
+
description:
|
10600
|
+
'Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`.',
|
10397
10601
|
},
|
10398
10602
|
reasonViolation: {
|
10399
10603
|
type: 'token',
|
10400
|
-
description:
|
10604
|
+
description:
|
10605
|
+
'Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`.',
|
10401
10606
|
},
|
10402
10607
|
reasonMisleading: {
|
10403
10608
|
type: 'token',
|
10404
|
-
description:
|
10609
|
+
description:
|
10610
|
+
'Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`.',
|
10405
10611
|
},
|
10406
10612
|
reasonSexual: {
|
10407
10613
|
type: 'token',
|
10408
|
-
description:
|
10614
|
+
description:
|
10615
|
+
'Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`.',
|
10409
10616
|
},
|
10410
10617
|
reasonRude: {
|
10411
10618
|
type: 'token',
|
10412
10619
|
description:
|
10413
|
-
'Rude, harassing, explicit, or otherwise unwelcoming behavior',
|
10620
|
+
'Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`.',
|
10414
10621
|
},
|
10415
10622
|
reasonOther: {
|
10416
10623
|
type: 'token',
|
10417
|
-
description:
|
10624
|
+
description:
|
10625
|
+
'Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`.',
|
10418
10626
|
},
|
10419
10627
|
reasonAppeal: {
|
10420
10628
|
type: 'token',
|
10421
|
-
description: 'Appeal
|
10629
|
+
description: 'Appeal a previously taken moderation action',
|
10422
10630
|
},
|
10423
10631
|
subjectType: {
|
10424
10632
|
type: 'string',
|
@@ -13492,6 +13700,46 @@ export const schemaDict = {
|
|
13492
13700
|
},
|
13493
13701
|
},
|
13494
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
|
+
},
|
13495
13743
|
ComAtprotoTempFetchLabels: {
|
13496
13744
|
lexicon: 1,
|
13497
13745
|
id: 'com.atproto.temp.fetchLabels',
|
@@ -16117,6 +16365,248 @@ export const schemaDict = {
|
|
16117
16365
|
},
|
16118
16366
|
},
|
16119
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
|
+
},
|
16120
16610
|
ToolsOzoneSafelinkAddRule: {
|
16121
16611
|
lexicon: 1,
|
16122
16612
|
id: 'tools.ozone.safelink.addRule',
|
@@ -17955,6 +18445,10 @@ export const ids = {
|
|
17955
18445
|
AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
|
17956
18446
|
AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
|
17957
18447
|
AppBskyActorStatus: 'app.bsky.actor.status',
|
18448
|
+
AppBskyBookmarkCreateBookmark: 'app.bsky.bookmark.createBookmark',
|
18449
|
+
AppBskyBookmarkDefs: 'app.bsky.bookmark.defs',
|
18450
|
+
AppBskyBookmarkDeleteBookmark: 'app.bsky.bookmark.deleteBookmark',
|
18451
|
+
AppBskyBookmarkGetBookmarks: 'app.bsky.bookmark.getBookmarks',
|
17958
18452
|
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
17959
18453
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
17960
18454
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
@@ -18200,6 +18694,7 @@ export const ids = {
|
|
18200
18694
|
ComAtprotoTempCheckHandleAvailability:
|
18201
18695
|
'com.atproto.temp.checkHandleAvailability',
|
18202
18696
|
ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
|
18697
|
+
ComAtprotoTempDereferenceScope: 'com.atproto.temp.dereferenceScope',
|
18203
18698
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
18204
18699
|
ComAtprotoTempRequestPhoneVerification:
|
18205
18700
|
'com.atproto.temp.requestPhoneVerification',
|
@@ -18230,6 +18725,7 @@ export const ids = {
|
|
18230
18725
|
ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
|
18231
18726
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
18232
18727
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
18728
|
+
ToolsOzoneReportDefs: 'tools.ozone.report.defs',
|
18233
18729
|
ToolsOzoneSafelinkAddRule: 'tools.ozone.safelink.addRule',
|
18234
18730
|
ToolsOzoneSafelinkDefs: 'tools.ozone.safelink.defs',
|
18235
18731
|
ToolsOzoneSafelinkQueryEvents: 'tools.ozone.safelink.queryEvents',
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { CID } from 'multiformats/cid'
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
7
|
+
import {
|
8
|
+
type $Typed,
|
9
|
+
is$typed as _is$typed,
|
10
|
+
type OmitKey,
|
11
|
+
} from '../../../../util'
|
12
|
+
|
13
|
+
const is$typed = _is$typed,
|
14
|
+
validate = _validate
|
15
|
+
const id = 'app.bsky.bookmark.createBookmark'
|
16
|
+
|
17
|
+
export type QueryParams = {}
|
18
|
+
|
19
|
+
export interface InputSchema {
|
20
|
+
uri: string
|
21
|
+
cid: string
|
22
|
+
}
|
23
|
+
|
24
|
+
export interface HandlerInput {
|
25
|
+
encoding: 'application/json'
|
26
|
+
body: InputSchema
|
27
|
+
}
|
28
|
+
|
29
|
+
export interface HandlerError {
|
30
|
+
status: number
|
31
|
+
message?: string
|
32
|
+
error?: 'UnsupportedCollection'
|
33
|
+
}
|
34
|
+
|
35
|
+
export type HandlerOutput = HandlerError | void
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { CID } from 'multiformats/cid'
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
7
|
+
import {
|
8
|
+
type $Typed,
|
9
|
+
is$typed as _is$typed,
|
10
|
+
type OmitKey,
|
11
|
+
} from '../../../../util'
|
12
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'
|
13
|
+
import type * as AppBskyFeedDefs from '../feed/defs.js'
|
14
|
+
|
15
|
+
const is$typed = _is$typed,
|
16
|
+
validate = _validate
|
17
|
+
const id = 'app.bsky.bookmark.defs'
|
18
|
+
|
19
|
+
/** Object used to store bookmark data in stash. */
|
20
|
+
export interface Bookmark {
|
21
|
+
$type?: 'app.bsky.bookmark.defs#bookmark'
|
22
|
+
subject: ComAtprotoRepoStrongRef.Main
|
23
|
+
}
|
24
|
+
|
25
|
+
const hashBookmark = 'bookmark'
|
26
|
+
|
27
|
+
export function isBookmark<V>(v: V) {
|
28
|
+
return is$typed(v, id, hashBookmark)
|
29
|
+
}
|
30
|
+
|
31
|
+
export function validateBookmark<V>(v: V) {
|
32
|
+
return validate<Bookmark & V>(v, id, hashBookmark)
|
33
|
+
}
|
34
|
+
|
35
|
+
export interface BookmarkView {
|
36
|
+
$type?: 'app.bsky.bookmark.defs#bookmarkView'
|
37
|
+
subject: ComAtprotoRepoStrongRef.Main
|
38
|
+
createdAt?: string
|
39
|
+
item:
|
40
|
+
| $Typed<AppBskyFeedDefs.BlockedPost>
|
41
|
+
| $Typed<AppBskyFeedDefs.NotFoundPost>
|
42
|
+
| $Typed<AppBskyFeedDefs.PostView>
|
43
|
+
| { $type: string }
|
44
|
+
}
|
45
|
+
|
46
|
+
const hashBookmarkView = 'bookmarkView'
|
47
|
+
|
48
|
+
export function isBookmarkView<V>(v: V) {
|
49
|
+
return is$typed(v, id, hashBookmarkView)
|
50
|
+
}
|
51
|
+
|
52
|
+
export function validateBookmarkView<V>(v: V) {
|
53
|
+
return validate<BookmarkView & V>(v, id, hashBookmarkView)
|
54
|
+
}
|