@atproto/pds 0.4.68 → 0.4.70
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +26 -0
- package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js +11 -6
- package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
- package/dist/config/config.d.ts +1 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +3 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/env.d.ts +1 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +1 -0
- package/dist/config/env.js.map +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +8 -1
- package/dist/context.js.map +1 -1
- package/dist/lexicon/index.d.ts +13 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +36 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +396 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +439 -3
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getConfig.d.ts +34 -0
- package/dist/lexicon/types/app/bsky/unspecced/getConfig.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getConfig.js +3 -0
- package/dist/lexicon/types/app/bsky/unspecced/getConfig.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +60 -2
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js +50 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts +10 -0
- package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/setting/defs.d.ts +20 -0
- package/dist/lexicon/types/tools/ozone/setting/defs.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/setting/defs.js +15 -0
- package/dist/lexicon/types/tools/ozone/setting/defs.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/setting/listOptions.d.ts +43 -0
- package/dist/lexicon/types/tools/ozone/setting/listOptions.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/setting/listOptions.js +3 -0
- package/dist/lexicon/types/tools/ozone/setting/listOptions.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/setting/removeOptions.d.ts +40 -0
- package/dist/lexicon/types/tools/ozone/setting/removeOptions.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/setting/removeOptions.js +3 -0
- package/dist/lexicon/types/tools/ozone/setting/removeOptions.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/setting/upsertOption.d.ts +45 -0
- package/dist/lexicon/types/tools/ozone/setting/upsertOption.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/setting/upsertOption.js +3 -0
- package/dist/lexicon/types/tools/ozone/setting/upsertOption.js.map +1 -0
- package/dist/pipethrough.d.ts +0 -1
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +11 -10
- package/dist/pipethrough.js.map +1 -1
- package/example.env +1 -1
- package/package.json +11 -11
- package/src/api/app/bsky/feed/getPostThread.ts +15 -4
- package/src/config/config.ts +5 -0
- package/src/config/env.ts +2 -0
- package/src/context.ts +11 -3
- package/src/lexicon/index.ts +58 -0
- package/src/lexicon/lexicons.ts +449 -3
- package/src/lexicon/types/app/bsky/unspecced/getConfig.ts +43 -0
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +132 -0
- package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +3 -0
- package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +10 -0
- package/src/lexicon/types/tools/ozone/setting/defs.ts +37 -0
- package/src/lexicon/types/tools/ozone/setting/listOptions.ts +53 -0
- package/src/lexicon/types/tools/ozone/setting/removeOptions.ts +49 -0
- package/src/lexicon/types/tools/ozone/setting/upsertOption.ts +58 -0
- package/src/pipethrough.ts +13 -12
- package/tests/proxied/__snapshots__/admin.test.ts.snap +12 -0
- package/tests/proxied/proxy-catchall.test.ts +1 -1
- package/tests/proxied/read-after-write.test.ts +20 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/src/lexicon/lexicons.ts
CHANGED
@@ -1341,7 +1341,7 @@ export const schemaDict = {
|
|
1341
1341
|
},
|
1342
1342
|
rkey: {
|
1343
1343
|
type: 'string',
|
1344
|
-
maxLength:
|
1344
|
+
maxLength: 512,
|
1345
1345
|
},
|
1346
1346
|
value: {
|
1347
1347
|
type: 'unknown',
|
@@ -1450,7 +1450,7 @@ export const schemaDict = {
|
|
1450
1450
|
rkey: {
|
1451
1451
|
type: 'string',
|
1452
1452
|
description: 'The Record Key.',
|
1453
|
-
maxLength:
|
1453
|
+
maxLength: 512,
|
1454
1454
|
},
|
1455
1455
|
validate: {
|
1456
1456
|
type: 'boolean',
|
@@ -1901,7 +1901,7 @@ export const schemaDict = {
|
|
1901
1901
|
rkey: {
|
1902
1902
|
type: 'string',
|
1903
1903
|
description: 'The Record Key.',
|
1904
|
-
maxLength:
|
1904
|
+
maxLength: 512,
|
1905
1905
|
},
|
1906
1906
|
validate: {
|
1907
1907
|
type: 'boolean',
|
@@ -9155,6 +9155,28 @@ export const schemaDict = {
|
|
9155
9155
|
},
|
9156
9156
|
},
|
9157
9157
|
},
|
9158
|
+
AppBskyUnspeccedGetConfig: {
|
9159
|
+
lexicon: 1,
|
9160
|
+
id: 'app.bsky.unspecced.getConfig',
|
9161
|
+
defs: {
|
9162
|
+
main: {
|
9163
|
+
type: 'query',
|
9164
|
+
description: 'Get miscellaneous runtime configuration.',
|
9165
|
+
output: {
|
9166
|
+
encoding: 'application/json',
|
9167
|
+
schema: {
|
9168
|
+
type: 'object',
|
9169
|
+
required: [],
|
9170
|
+
properties: {
|
9171
|
+
checkEmailConfirmed: {
|
9172
|
+
type: 'boolean',
|
9173
|
+
},
|
9174
|
+
},
|
9175
|
+
},
|
9176
|
+
},
|
9177
|
+
},
|
9178
|
+
},
|
9179
|
+
},
|
9158
9180
|
AppBskyUnspeccedGetPopularFeedGenerators: {
|
9159
9181
|
lexicon: 1,
|
9160
9182
|
id: 'app.bsky.unspecced.getPopularFeedGenerators',
|
@@ -10799,6 +10821,9 @@ export const schemaDict = {
|
|
10799
10821
|
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
10800
10822
|
'lex:tools.ozone.moderation.defs#modEventDivert',
|
10801
10823
|
'lex:tools.ozone.moderation.defs#modEventTag',
|
10824
|
+
'lex:tools.ozone.moderation.defs#accountEvent',
|
10825
|
+
'lex:tools.ozone.moderation.defs#identityEvent',
|
10826
|
+
'lex:tools.ozone.moderation.defs#recordEvent',
|
10802
10827
|
],
|
10803
10828
|
},
|
10804
10829
|
subject: {
|
@@ -10863,6 +10888,9 @@ export const schemaDict = {
|
|
10863
10888
|
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
10864
10889
|
'lex:tools.ozone.moderation.defs#modEventDivert',
|
10865
10890
|
'lex:tools.ozone.moderation.defs#modEventTag',
|
10891
|
+
'lex:tools.ozone.moderation.defs#accountEvent',
|
10892
|
+
'lex:tools.ozone.moderation.defs#identityEvent',
|
10893
|
+
'lex:tools.ozone.moderation.defs#recordEvent',
|
10866
10894
|
],
|
10867
10895
|
},
|
10868
10896
|
subject: {
|
@@ -10905,6 +10933,13 @@ export const schemaDict = {
|
|
10905
10933
|
'lex:com.atproto.repo.strongRef',
|
10906
10934
|
],
|
10907
10935
|
},
|
10936
|
+
hosting: {
|
10937
|
+
type: 'union',
|
10938
|
+
refs: [
|
10939
|
+
'lex:tools.ozone.moderation.defs#accountHosting',
|
10940
|
+
'lex:tools.ozone.moderation.defs#recordHosting',
|
10941
|
+
],
|
10942
|
+
},
|
10908
10943
|
subjectBlobCids: {
|
10909
10944
|
type: 'array',
|
10910
10945
|
items: {
|
@@ -11224,6 +11259,86 @@ export const schemaDict = {
|
|
11224
11259
|
},
|
11225
11260
|
},
|
11226
11261
|
},
|
11262
|
+
accountEvent: {
|
11263
|
+
type: 'object',
|
11264
|
+
description:
|
11265
|
+
'Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.',
|
11266
|
+
required: ['timestamp', 'active'],
|
11267
|
+
properties: {
|
11268
|
+
comment: {
|
11269
|
+
type: 'string',
|
11270
|
+
},
|
11271
|
+
active: {
|
11272
|
+
type: 'boolean',
|
11273
|
+
description:
|
11274
|
+
'Indicates that the account has a repository which can be fetched from the host that emitted this event.',
|
11275
|
+
},
|
11276
|
+
status: {
|
11277
|
+
type: 'string',
|
11278
|
+
knownValues: [
|
11279
|
+
'unknown',
|
11280
|
+
'deactivated',
|
11281
|
+
'deleted',
|
11282
|
+
'takendown',
|
11283
|
+
'suspended',
|
11284
|
+
'tombstoned',
|
11285
|
+
],
|
11286
|
+
},
|
11287
|
+
timestamp: {
|
11288
|
+
type: 'string',
|
11289
|
+
format: 'datetime',
|
11290
|
+
},
|
11291
|
+
},
|
11292
|
+
},
|
11293
|
+
identityEvent: {
|
11294
|
+
type: 'object',
|
11295
|
+
description:
|
11296
|
+
'Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.',
|
11297
|
+
required: ['timestamp'],
|
11298
|
+
properties: {
|
11299
|
+
comment: {
|
11300
|
+
type: 'string',
|
11301
|
+
},
|
11302
|
+
handle: {
|
11303
|
+
type: 'string',
|
11304
|
+
format: 'handle',
|
11305
|
+
},
|
11306
|
+
pdsHost: {
|
11307
|
+
type: 'string',
|
11308
|
+
format: 'uri',
|
11309
|
+
},
|
11310
|
+
tombstone: {
|
11311
|
+
type: 'boolean',
|
11312
|
+
},
|
11313
|
+
timestamp: {
|
11314
|
+
type: 'string',
|
11315
|
+
format: 'datetime',
|
11316
|
+
},
|
11317
|
+
},
|
11318
|
+
},
|
11319
|
+
recordEvent: {
|
11320
|
+
type: 'object',
|
11321
|
+
description:
|
11322
|
+
'Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.',
|
11323
|
+
required: ['timestamp', 'op'],
|
11324
|
+
properties: {
|
11325
|
+
comment: {
|
11326
|
+
type: 'string',
|
11327
|
+
},
|
11328
|
+
op: {
|
11329
|
+
type: 'string',
|
11330
|
+
knownValues: ['create', 'update', 'delete'],
|
11331
|
+
},
|
11332
|
+
cid: {
|
11333
|
+
type: 'string',
|
11334
|
+
format: 'cid',
|
11335
|
+
},
|
11336
|
+
timestamp: {
|
11337
|
+
type: 'string',
|
11338
|
+
format: 'datetime',
|
11339
|
+
},
|
11340
|
+
},
|
11341
|
+
},
|
11227
11342
|
repoView: {
|
11228
11343
|
type: 'object',
|
11229
11344
|
required: [
|
@@ -11273,6 +11388,13 @@ export const schemaDict = {
|
|
11273
11388
|
type: 'string',
|
11274
11389
|
format: 'datetime',
|
11275
11390
|
},
|
11391
|
+
threatSignatures: {
|
11392
|
+
type: 'array',
|
11393
|
+
items: {
|
11394
|
+
type: 'ref',
|
11395
|
+
ref: 'lex:com.atproto.admin.defs#threatSignature',
|
11396
|
+
},
|
11397
|
+
},
|
11276
11398
|
},
|
11277
11399
|
},
|
11278
11400
|
repoViewDetail: {
|
@@ -11342,6 +11464,13 @@ export const schemaDict = {
|
|
11342
11464
|
type: 'string',
|
11343
11465
|
format: 'datetime',
|
11344
11466
|
},
|
11467
|
+
threatSignatures: {
|
11468
|
+
type: 'array',
|
11469
|
+
items: {
|
11470
|
+
type: 'ref',
|
11471
|
+
ref: 'lex:com.atproto.admin.defs#threatSignature',
|
11472
|
+
},
|
11473
|
+
},
|
11345
11474
|
},
|
11346
11475
|
},
|
11347
11476
|
repoViewNotFound: {
|
@@ -11535,6 +11664,64 @@ export const schemaDict = {
|
|
11535
11664
|
},
|
11536
11665
|
},
|
11537
11666
|
},
|
11667
|
+
accountHosting: {
|
11668
|
+
type: 'object',
|
11669
|
+
required: ['status'],
|
11670
|
+
properties: {
|
11671
|
+
status: {
|
11672
|
+
type: 'string',
|
11673
|
+
knownValues: [
|
11674
|
+
'takendown',
|
11675
|
+
'suspended',
|
11676
|
+
'deleted',
|
11677
|
+
'deactivated',
|
11678
|
+
'unknown',
|
11679
|
+
],
|
11680
|
+
},
|
11681
|
+
updatedAt: {
|
11682
|
+
type: 'string',
|
11683
|
+
format: 'datetime',
|
11684
|
+
},
|
11685
|
+
createdAt: {
|
11686
|
+
type: 'string',
|
11687
|
+
format: 'datetime',
|
11688
|
+
},
|
11689
|
+
deletedAt: {
|
11690
|
+
type: 'string',
|
11691
|
+
format: 'datetime',
|
11692
|
+
},
|
11693
|
+
deactivatedAt: {
|
11694
|
+
type: 'string',
|
11695
|
+
format: 'datetime',
|
11696
|
+
},
|
11697
|
+
reactivatedAt: {
|
11698
|
+
type: 'string',
|
11699
|
+
format: 'datetime',
|
11700
|
+
},
|
11701
|
+
},
|
11702
|
+
},
|
11703
|
+
recordHosting: {
|
11704
|
+
type: 'object',
|
11705
|
+
required: ['status'],
|
11706
|
+
properties: {
|
11707
|
+
status: {
|
11708
|
+
type: 'string',
|
11709
|
+
knownValues: ['deleted', 'unknown'],
|
11710
|
+
},
|
11711
|
+
updatedAt: {
|
11712
|
+
type: 'string',
|
11713
|
+
format: 'datetime',
|
11714
|
+
},
|
11715
|
+
createdAt: {
|
11716
|
+
type: 'string',
|
11717
|
+
format: 'datetime',
|
11718
|
+
},
|
11719
|
+
deletedAt: {
|
11720
|
+
type: 'string',
|
11721
|
+
format: 'datetime',
|
11722
|
+
},
|
11723
|
+
},
|
11724
|
+
},
|
11538
11725
|
},
|
11539
11726
|
},
|
11540
11727
|
ToolsOzoneModerationEmitEvent: {
|
@@ -11567,6 +11754,9 @@ export const schemaDict = {
|
|
11567
11754
|
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
11568
11755
|
'lex:tools.ozone.moderation.defs#modEventEmail',
|
11569
11756
|
'lex:tools.ozone.moderation.defs#modEventTag',
|
11757
|
+
'lex:tools.ozone.moderation.defs#accountEvent',
|
11758
|
+
'lex:tools.ozone.moderation.defs#identityEvent',
|
11759
|
+
'lex:tools.ozone.moderation.defs#recordEvent',
|
11570
11760
|
],
|
11571
11761
|
},
|
11572
11762
|
subject: {
|
@@ -11969,6 +12159,38 @@ export const schemaDict = {
|
|
11969
12159
|
format: 'datetime',
|
11970
12160
|
description: 'Search subjects reviewed after a given timestamp',
|
11971
12161
|
},
|
12162
|
+
hostingDeletedAfter: {
|
12163
|
+
type: 'string',
|
12164
|
+
format: 'datetime',
|
12165
|
+
description:
|
12166
|
+
'Search subjects where the associated record/account was deleted after a given timestamp',
|
12167
|
+
},
|
12168
|
+
hostingDeletedBefore: {
|
12169
|
+
type: 'string',
|
12170
|
+
format: 'datetime',
|
12171
|
+
description:
|
12172
|
+
'Search subjects where the associated record/account was deleted before a given timestamp',
|
12173
|
+
},
|
12174
|
+
hostingUpdatedAfter: {
|
12175
|
+
type: 'string',
|
12176
|
+
format: 'datetime',
|
12177
|
+
description:
|
12178
|
+
'Search subjects where the associated record/account was updated after a given timestamp',
|
12179
|
+
},
|
12180
|
+
hostingUpdatedBefore: {
|
12181
|
+
type: 'string',
|
12182
|
+
format: 'datetime',
|
12183
|
+
description:
|
12184
|
+
'Search subjects where the associated record/account was updated before a given timestamp',
|
12185
|
+
},
|
12186
|
+
hostingStatuses: {
|
12187
|
+
type: 'array',
|
12188
|
+
items: {
|
12189
|
+
type: 'string',
|
12190
|
+
},
|
12191
|
+
description:
|
12192
|
+
'Search subjects by the status of the associated record/account',
|
12193
|
+
},
|
11972
12194
|
reviewedBefore: {
|
11973
12195
|
type: 'string',
|
11974
12196
|
format: 'datetime',
|
@@ -12484,6 +12706,225 @@ export const schemaDict = {
|
|
12484
12706
|
},
|
12485
12707
|
},
|
12486
12708
|
},
|
12709
|
+
ToolsOzoneSettingDefs: {
|
12710
|
+
lexicon: 1,
|
12711
|
+
id: 'tools.ozone.setting.defs',
|
12712
|
+
defs: {
|
12713
|
+
option: {
|
12714
|
+
type: 'object',
|
12715
|
+
required: [
|
12716
|
+
'key',
|
12717
|
+
'value',
|
12718
|
+
'did',
|
12719
|
+
'scope',
|
12720
|
+
'createdBy',
|
12721
|
+
'lastUpdatedBy',
|
12722
|
+
],
|
12723
|
+
properties: {
|
12724
|
+
key: {
|
12725
|
+
type: 'string',
|
12726
|
+
format: 'nsid',
|
12727
|
+
},
|
12728
|
+
did: {
|
12729
|
+
type: 'string',
|
12730
|
+
format: 'did',
|
12731
|
+
},
|
12732
|
+
value: {
|
12733
|
+
type: 'unknown',
|
12734
|
+
},
|
12735
|
+
description: {
|
12736
|
+
type: 'string',
|
12737
|
+
maxGraphemes: 1024,
|
12738
|
+
maxLength: 10240,
|
12739
|
+
},
|
12740
|
+
createdAt: {
|
12741
|
+
type: 'string',
|
12742
|
+
format: 'datetime',
|
12743
|
+
},
|
12744
|
+
updatedAt: {
|
12745
|
+
type: 'string',
|
12746
|
+
format: 'datetime',
|
12747
|
+
},
|
12748
|
+
managerRole: {
|
12749
|
+
type: 'string',
|
12750
|
+
knownValues: [
|
12751
|
+
'tools.ozone.team.defs#roleModerator',
|
12752
|
+
'tools.ozone.team.defs#roleTriage',
|
12753
|
+
'tools.ozone.team.defs#roleAdmin',
|
12754
|
+
],
|
12755
|
+
},
|
12756
|
+
scope: {
|
12757
|
+
type: 'string',
|
12758
|
+
knownValues: ['instance', 'personal'],
|
12759
|
+
},
|
12760
|
+
createdBy: {
|
12761
|
+
type: 'string',
|
12762
|
+
format: 'did',
|
12763
|
+
},
|
12764
|
+
lastUpdatedBy: {
|
12765
|
+
type: 'string',
|
12766
|
+
format: 'did',
|
12767
|
+
},
|
12768
|
+
},
|
12769
|
+
},
|
12770
|
+
},
|
12771
|
+
},
|
12772
|
+
ToolsOzoneSettingListOptions: {
|
12773
|
+
lexicon: 1,
|
12774
|
+
id: 'tools.ozone.setting.listOptions',
|
12775
|
+
defs: {
|
12776
|
+
main: {
|
12777
|
+
type: 'query',
|
12778
|
+
description: 'List settings with optional filtering',
|
12779
|
+
parameters: {
|
12780
|
+
type: 'params',
|
12781
|
+
properties: {
|
12782
|
+
limit: {
|
12783
|
+
type: 'integer',
|
12784
|
+
minimum: 1,
|
12785
|
+
maximum: 100,
|
12786
|
+
default: 50,
|
12787
|
+
},
|
12788
|
+
cursor: {
|
12789
|
+
type: 'string',
|
12790
|
+
},
|
12791
|
+
scope: {
|
12792
|
+
type: 'string',
|
12793
|
+
knownValues: ['instance', 'personal'],
|
12794
|
+
default: 'instance',
|
12795
|
+
},
|
12796
|
+
prefix: {
|
12797
|
+
type: 'string',
|
12798
|
+
description: 'Filter keys by prefix',
|
12799
|
+
},
|
12800
|
+
keys: {
|
12801
|
+
type: 'array',
|
12802
|
+
maxLength: 100,
|
12803
|
+
items: {
|
12804
|
+
type: 'string',
|
12805
|
+
format: 'nsid',
|
12806
|
+
},
|
12807
|
+
description:
|
12808
|
+
'Filter for only the specified keys. Ignored if prefix is provided',
|
12809
|
+
},
|
12810
|
+
},
|
12811
|
+
},
|
12812
|
+
output: {
|
12813
|
+
encoding: 'application/json',
|
12814
|
+
schema: {
|
12815
|
+
type: 'object',
|
12816
|
+
required: ['options'],
|
12817
|
+
properties: {
|
12818
|
+
cursor: {
|
12819
|
+
type: 'string',
|
12820
|
+
},
|
12821
|
+
options: {
|
12822
|
+
type: 'array',
|
12823
|
+
items: {
|
12824
|
+
type: 'ref',
|
12825
|
+
ref: 'lex:tools.ozone.setting.defs#option',
|
12826
|
+
},
|
12827
|
+
},
|
12828
|
+
},
|
12829
|
+
},
|
12830
|
+
},
|
12831
|
+
},
|
12832
|
+
},
|
12833
|
+
},
|
12834
|
+
ToolsOzoneSettingRemoveOptions: {
|
12835
|
+
lexicon: 1,
|
12836
|
+
id: 'tools.ozone.setting.removeOptions',
|
12837
|
+
defs: {
|
12838
|
+
main: {
|
12839
|
+
type: 'procedure',
|
12840
|
+
description: 'Delete settings by key',
|
12841
|
+
input: {
|
12842
|
+
encoding: 'application/json',
|
12843
|
+
schema: {
|
12844
|
+
type: 'object',
|
12845
|
+
required: ['keys', 'scope'],
|
12846
|
+
properties: {
|
12847
|
+
keys: {
|
12848
|
+
type: 'array',
|
12849
|
+
minLength: 1,
|
12850
|
+
maxLength: 200,
|
12851
|
+
items: {
|
12852
|
+
type: 'string',
|
12853
|
+
format: 'nsid',
|
12854
|
+
},
|
12855
|
+
},
|
12856
|
+
scope: {
|
12857
|
+
type: 'string',
|
12858
|
+
knownValues: ['instance', 'personal'],
|
12859
|
+
},
|
12860
|
+
},
|
12861
|
+
},
|
12862
|
+
},
|
12863
|
+
output: {
|
12864
|
+
encoding: 'application/json',
|
12865
|
+
schema: {
|
12866
|
+
type: 'object',
|
12867
|
+
properties: {},
|
12868
|
+
},
|
12869
|
+
},
|
12870
|
+
},
|
12871
|
+
},
|
12872
|
+
},
|
12873
|
+
ToolsOzoneSettingUpsertOption: {
|
12874
|
+
lexicon: 1,
|
12875
|
+
id: 'tools.ozone.setting.upsertOption',
|
12876
|
+
defs: {
|
12877
|
+
main: {
|
12878
|
+
type: 'procedure',
|
12879
|
+
description: 'Create or update setting option',
|
12880
|
+
input: {
|
12881
|
+
encoding: 'application/json',
|
12882
|
+
schema: {
|
12883
|
+
type: 'object',
|
12884
|
+
required: ['key', 'scope', 'value'],
|
12885
|
+
properties: {
|
12886
|
+
key: {
|
12887
|
+
type: 'string',
|
12888
|
+
format: 'nsid',
|
12889
|
+
},
|
12890
|
+
scope: {
|
12891
|
+
type: 'string',
|
12892
|
+
knownValues: ['instance', 'personal'],
|
12893
|
+
},
|
12894
|
+
value: {
|
12895
|
+
type: 'unknown',
|
12896
|
+
},
|
12897
|
+
description: {
|
12898
|
+
type: 'string',
|
12899
|
+
maxLength: 2000,
|
12900
|
+
},
|
12901
|
+
managerRole: {
|
12902
|
+
type: 'string',
|
12903
|
+
knownValues: [
|
12904
|
+
'tools.ozone.team.defs#roleModerator',
|
12905
|
+
'tools.ozone.team.defs#roleTriage',
|
12906
|
+
'tools.ozone.team.defs#roleAdmin',
|
12907
|
+
],
|
12908
|
+
},
|
12909
|
+
},
|
12910
|
+
},
|
12911
|
+
},
|
12912
|
+
output: {
|
12913
|
+
encoding: 'application/json',
|
12914
|
+
schema: {
|
12915
|
+
type: 'object',
|
12916
|
+
required: ['option'],
|
12917
|
+
properties: {
|
12918
|
+
option: {
|
12919
|
+
type: 'ref',
|
12920
|
+
ref: 'lex:tools.ozone.setting.defs#option',
|
12921
|
+
},
|
12922
|
+
},
|
12923
|
+
},
|
12924
|
+
},
|
12925
|
+
},
|
12926
|
+
},
|
12927
|
+
},
|
12487
12928
|
ToolsOzoneSignatureDefs: {
|
12488
12929
|
lexicon: 1,
|
12489
12930
|
id: 'tools.ozone.signature.defs',
|
@@ -13056,6 +13497,7 @@ export const ids = {
|
|
13056
13497
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
13057
13498
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
13058
13499
|
AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
|
13500
|
+
AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
|
13059
13501
|
AppBskyUnspeccedGetPopularFeedGenerators:
|
13060
13502
|
'app.bsky.unspecced.getPopularFeedGenerators',
|
13061
13503
|
AppBskyUnspeccedGetSuggestionsSkeleton:
|
@@ -13116,6 +13558,10 @@ export const ids = {
|
|
13116
13558
|
ToolsOzoneSetGetValues: 'tools.ozone.set.getValues',
|
13117
13559
|
ToolsOzoneSetQuerySets: 'tools.ozone.set.querySets',
|
13118
13560
|
ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet',
|
13561
|
+
ToolsOzoneSettingDefs: 'tools.ozone.setting.defs',
|
13562
|
+
ToolsOzoneSettingListOptions: 'tools.ozone.setting.listOptions',
|
13563
|
+
ToolsOzoneSettingRemoveOptions: 'tools.ozone.setting.removeOptions',
|
13564
|
+
ToolsOzoneSettingUpsertOption: 'tools.ozone.setting.upsertOption',
|
13119
13565
|
ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs',
|
13120
13566
|
ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation',
|
13121
13567
|
ToolsOzoneSignatureFindRelatedAccounts:
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
7
|
+
import { isObj, hasProp } from '../../../../util'
|
8
|
+
import { CID } from 'multiformats/cid'
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
10
|
+
|
11
|
+
export interface QueryParams {}
|
12
|
+
|
13
|
+
export type InputSchema = undefined
|
14
|
+
|
15
|
+
export interface OutputSchema {
|
16
|
+
checkEmailConfirmed?: boolean
|
17
|
+
[k: string]: unknown
|
18
|
+
}
|
19
|
+
|
20
|
+
export type HandlerInput = undefined
|
21
|
+
|
22
|
+
export interface HandlerSuccess {
|
23
|
+
encoding: 'application/json'
|
24
|
+
body: OutputSchema
|
25
|
+
headers?: { [key: string]: string }
|
26
|
+
}
|
27
|
+
|
28
|
+
export interface HandlerError {
|
29
|
+
status: number
|
30
|
+
message?: string
|
31
|
+
}
|
32
|
+
|
33
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
34
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
35
|
+
auth: HA
|
36
|
+
params: QueryParams
|
37
|
+
input: HandlerInput
|
38
|
+
req: express.Request
|
39
|
+
res: express.Response
|
40
|
+
}
|
41
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
42
|
+
ctx: HandlerReqCtx<HA>,
|
43
|
+
) => Promise<HandlerOutput> | HandlerOutput
|