@atproto/ozone 0.1.53 → 0.1.54
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 +14 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +6 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/api/moderation/queryStatuses.js +6 -1
- package/dist/api/moderation/queryStatuses.js.map +1 -1
- package/dist/api/setting/listOptions.d.ts +4 -0
- package/dist/api/setting/listOptions.d.ts.map +1 -0
- package/dist/api/setting/listOptions.js +38 -0
- package/dist/api/setting/listOptions.js.map +1 -0
- package/dist/api/setting/removeOptions.d.ts +4 -0
- package/dist/api/setting/removeOptions.d.ts.map +1 -0
- package/dist/api/setting/removeOptions.js +55 -0
- package/dist/api/setting/removeOptions.js.map +1 -0
- package/dist/api/setting/upsertOption.d.ts +4 -0
- package/dist/api/setting/upsertOption.d.ts.map +1 -0
- package/dist/api/setting/upsertOption.js +109 -0
- package/dist/api/setting/upsertOption.js.map +1 -0
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +6 -0
- package/dist/context.js.map +1 -1
- package/dist/db/migrations/20241018T205730722Z-setting.d.ts +4 -0
- package/dist/db/migrations/20241018T205730722Z-setting.d.ts.map +1 -0
- package/dist/db/migrations/20241018T205730722Z-setting.js +26 -0
- package/dist/db/migrations/20241018T205730722Z-setting.js.map +1 -0
- package/dist/db/migrations/20241026T205730722Z-add-hosting-status-to-subject-status.d.ts +4 -0
- package/dist/db/migrations/20241026T205730722Z-add-hosting-status-to-subject-status.d.ts.map +1 -0
- package/dist/db/migrations/20241026T205730722Z-add-hosting-status-to-subject-status.js +57 -0
- package/dist/db/migrations/20241026T205730722Z-add-hosting-status-to-subject-status.js.map +1 -0
- package/dist/db/migrations/index.d.ts +2 -0
- package/dist/db/migrations/index.d.ts.map +1 -1
- package/dist/db/migrations/index.js +3 -1
- package/dist/db/migrations/index.js.map +1 -1
- package/dist/db/schema/index.d.ts +2 -1
- package/dist/db/schema/index.d.ts.map +1 -1
- package/dist/db/schema/moderation_event.d.ts +1 -1
- package/dist/db/schema/moderation_event.d.ts.map +1 -1
- package/dist/db/schema/moderation_subject_status.d.ts +6 -0
- package/dist/db/schema/moderation_subject_status.d.ts.map +1 -1
- package/dist/db/schema/setting.d.ts +21 -0
- package/dist/db/schema/setting.d.ts.map +1 -0
- package/dist/db/schema/setting.js +5 -0
- package/dist/db/schema/setting.js.map +1 -0
- package/dist/lexicon/index.d.ts +11 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +32 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +359 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +402 -3
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +58 -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/mod-service/index.d.ts +19 -2
- package/dist/mod-service/index.d.ts.map +1 -1
- package/dist/mod-service/index.js +37 -1
- package/dist/mod-service/index.js.map +1 -1
- package/dist/mod-service/status.d.ts +2 -22
- package/dist/mod-service/status.d.ts.map +1 -1
- package/dist/mod-service/status.js +91 -1
- package/dist/mod-service/status.js.map +1 -1
- package/dist/mod-service/types.d.ts +19 -1
- package/dist/mod-service/types.d.ts.map +1 -1
- package/dist/mod-service/views.d.ts.map +1 -1
- package/dist/mod-service/views.js +36 -1
- package/dist/mod-service/views.js.map +1 -1
- package/dist/setting/service.d.ts +33 -0
- package/dist/setting/service.d.ts.map +1 -0
- package/dist/setting/service.js +101 -0
- package/dist/setting/service.js.map +1 -0
- package/package.json +6 -6
- package/src/api/index.ts +6 -0
- package/src/api/moderation/queryStatuses.ts +10 -0
- package/src/api/setting/listOptions.ts +44 -0
- package/src/api/setting/removeOptions.ts +63 -0
- package/src/api/setting/upsertOption.ts +142 -0
- package/src/context.ts +8 -0
- package/src/db/migrations/20241018T205730722Z-setting.ts +27 -0
- package/src/db/migrations/20241026T205730722Z-add-hosting-status-to-subject-status.ts +57 -0
- package/src/db/migrations/index.ts +2 -0
- package/src/db/schema/index.ts +3 -1
- package/src/db/schema/moderation_event.ts +3 -0
- package/src/db/schema/moderation_subject_status.ts +6 -0
- package/src/db/schema/setting.ts +24 -0
- package/src/lexicon/index.ts +46 -0
- package/src/lexicon/lexicons.ts +412 -3
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +130 -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/mod-service/index.ts +52 -0
- package/src/mod-service/status.ts +114 -2
- package/src/mod-service/types.ts +25 -0
- package/src/mod-service/views.ts +45 -2
- package/src/setting/service.ts +148 -0
- package/tests/__snapshots__/get-record.test.ts.snap +8 -0
- package/tests/__snapshots__/get-records.test.ts.snap +4 -0
- package/tests/__snapshots__/get-repo.test.ts.snap +4 -0
- package/tests/__snapshots__/get-repos.test.ts.snap +4 -0
- package/tests/__snapshots__/moderation-events.test.ts.snap +4 -0
- package/tests/__snapshots__/moderation-statuses.test.ts.snap +24 -0
- package/tests/__snapshots__/settings.test.ts.snap +52 -0
- package/tests/record-and-account-events.test.ts +185 -0
- package/tests/settings.test.ts +310 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Generated, GeneratedAlways } from 'kysely'
|
|
2
|
+
import { Member } from './member'
|
|
3
|
+
|
|
4
|
+
export const settingTableName = 'setting'
|
|
5
|
+
|
|
6
|
+
export type SettingScope = 'personal' | 'instance'
|
|
7
|
+
|
|
8
|
+
export interface Setting {
|
|
9
|
+
id: GeneratedAlways<number>
|
|
10
|
+
key: string
|
|
11
|
+
value: Record<string, unknown>
|
|
12
|
+
managerRole: Member['role'] | null
|
|
13
|
+
description: string | null
|
|
14
|
+
did: string
|
|
15
|
+
scope: SettingScope
|
|
16
|
+
lastUpdatedBy: string
|
|
17
|
+
createdBy: string
|
|
18
|
+
createdAt: Generated<Date>
|
|
19
|
+
updatedAt: Generated<Date>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type PartialDB = {
|
|
23
|
+
[settingTableName]: Setting
|
|
24
|
+
}
|
package/src/lexicon/index.ts
CHANGED
|
@@ -180,6 +180,9 @@ import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues
|
|
|
180
180
|
import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues'
|
|
181
181
|
import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets'
|
|
182
182
|
import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet'
|
|
183
|
+
import * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions'
|
|
184
|
+
import * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions'
|
|
185
|
+
import * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption'
|
|
183
186
|
import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
|
|
184
187
|
import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
|
|
185
188
|
import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts'
|
|
@@ -2183,6 +2186,7 @@ export class ToolsOzoneNS {
|
|
|
2183
2186
|
moderation: ToolsOzoneModerationNS
|
|
2184
2187
|
server: ToolsOzoneServerNS
|
|
2185
2188
|
set: ToolsOzoneSetNS
|
|
2189
|
+
setting: ToolsOzoneSettingNS
|
|
2186
2190
|
signature: ToolsOzoneSignatureNS
|
|
2187
2191
|
team: ToolsOzoneTeamNS
|
|
2188
2192
|
|
|
@@ -2192,6 +2196,7 @@ export class ToolsOzoneNS {
|
|
|
2192
2196
|
this.moderation = new ToolsOzoneModerationNS(server)
|
|
2193
2197
|
this.server = new ToolsOzoneServerNS(server)
|
|
2194
2198
|
this.set = new ToolsOzoneSetNS(server)
|
|
2199
|
+
this.setting = new ToolsOzoneSettingNS(server)
|
|
2195
2200
|
this.signature = new ToolsOzoneSignatureNS(server)
|
|
2196
2201
|
this.team = new ToolsOzoneTeamNS(server)
|
|
2197
2202
|
}
|
|
@@ -2449,6 +2454,47 @@ export class ToolsOzoneSetNS {
|
|
|
2449
2454
|
}
|
|
2450
2455
|
}
|
|
2451
2456
|
|
|
2457
|
+
export class ToolsOzoneSettingNS {
|
|
2458
|
+
_server: Server
|
|
2459
|
+
|
|
2460
|
+
constructor(server: Server) {
|
|
2461
|
+
this._server = server
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
listOptions<AV extends AuthVerifier>(
|
|
2465
|
+
cfg: ConfigOf<
|
|
2466
|
+
AV,
|
|
2467
|
+
ToolsOzoneSettingListOptions.Handler<ExtractAuth<AV>>,
|
|
2468
|
+
ToolsOzoneSettingListOptions.HandlerReqCtx<ExtractAuth<AV>>
|
|
2469
|
+
>,
|
|
2470
|
+
) {
|
|
2471
|
+
const nsid = 'tools.ozone.setting.listOptions' // @ts-ignore
|
|
2472
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
removeOptions<AV extends AuthVerifier>(
|
|
2476
|
+
cfg: ConfigOf<
|
|
2477
|
+
AV,
|
|
2478
|
+
ToolsOzoneSettingRemoveOptions.Handler<ExtractAuth<AV>>,
|
|
2479
|
+
ToolsOzoneSettingRemoveOptions.HandlerReqCtx<ExtractAuth<AV>>
|
|
2480
|
+
>,
|
|
2481
|
+
) {
|
|
2482
|
+
const nsid = 'tools.ozone.setting.removeOptions' // @ts-ignore
|
|
2483
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
upsertOption<AV extends AuthVerifier>(
|
|
2487
|
+
cfg: ConfigOf<
|
|
2488
|
+
AV,
|
|
2489
|
+
ToolsOzoneSettingUpsertOption.Handler<ExtractAuth<AV>>,
|
|
2490
|
+
ToolsOzoneSettingUpsertOption.HandlerReqCtx<ExtractAuth<AV>>
|
|
2491
|
+
>,
|
|
2492
|
+
) {
|
|
2493
|
+
const nsid = 'tools.ozone.setting.upsertOption' // @ts-ignore
|
|
2494
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2452
2498
|
export class ToolsOzoneSignatureNS {
|
|
2453
2499
|
_server: Server
|
|
2454
2500
|
|
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',
|
|
@@ -10821,6 +10821,9 @@ export const schemaDict = {
|
|
|
10821
10821
|
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
|
10822
10822
|
'lex:tools.ozone.moderation.defs#modEventDivert',
|
|
10823
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',
|
|
10824
10827
|
],
|
|
10825
10828
|
},
|
|
10826
10829
|
subject: {
|
|
@@ -10885,6 +10888,9 @@ export const schemaDict = {
|
|
|
10885
10888
|
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
|
10886
10889
|
'lex:tools.ozone.moderation.defs#modEventDivert',
|
|
10887
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',
|
|
10888
10894
|
],
|
|
10889
10895
|
},
|
|
10890
10896
|
subject: {
|
|
@@ -10927,6 +10933,13 @@ export const schemaDict = {
|
|
|
10927
10933
|
'lex:com.atproto.repo.strongRef',
|
|
10928
10934
|
],
|
|
10929
10935
|
},
|
|
10936
|
+
hosting: {
|
|
10937
|
+
type: 'union',
|
|
10938
|
+
refs: [
|
|
10939
|
+
'lex:tools.ozone.moderation.defs#accountHosting',
|
|
10940
|
+
'lex:tools.ozone.moderation.defs#recordHosting',
|
|
10941
|
+
],
|
|
10942
|
+
},
|
|
10930
10943
|
subjectBlobCids: {
|
|
10931
10944
|
type: 'array',
|
|
10932
10945
|
items: {
|
|
@@ -11246,6 +11259,86 @@ export const schemaDict = {
|
|
|
11246
11259
|
},
|
|
11247
11260
|
},
|
|
11248
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
|
+
},
|
|
11249
11342
|
repoView: {
|
|
11250
11343
|
type: 'object',
|
|
11251
11344
|
required: [
|
|
@@ -11571,6 +11664,64 @@ export const schemaDict = {
|
|
|
11571
11664
|
},
|
|
11572
11665
|
},
|
|
11573
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
|
+
},
|
|
11574
11725
|
},
|
|
11575
11726
|
},
|
|
11576
11727
|
ToolsOzoneModerationEmitEvent: {
|
|
@@ -11603,6 +11754,9 @@ export const schemaDict = {
|
|
|
11603
11754
|
'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
|
|
11604
11755
|
'lex:tools.ozone.moderation.defs#modEventEmail',
|
|
11605
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',
|
|
11606
11760
|
],
|
|
11607
11761
|
},
|
|
11608
11762
|
subject: {
|
|
@@ -12005,6 +12159,38 @@ export const schemaDict = {
|
|
|
12005
12159
|
format: 'datetime',
|
|
12006
12160
|
description: 'Search subjects reviewed after a given timestamp',
|
|
12007
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
|
+
},
|
|
12008
12194
|
reviewedBefore: {
|
|
12009
12195
|
type: 'string',
|
|
12010
12196
|
format: 'datetime',
|
|
@@ -12520,6 +12706,225 @@ export const schemaDict = {
|
|
|
12520
12706
|
},
|
|
12521
12707
|
},
|
|
12522
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
|
+
},
|
|
12523
12928
|
ToolsOzoneSignatureDefs: {
|
|
12524
12929
|
lexicon: 1,
|
|
12525
12930
|
id: 'tools.ozone.signature.defs',
|
|
@@ -13153,6 +13558,10 @@ export const ids = {
|
|
|
13153
13558
|
ToolsOzoneSetGetValues: 'tools.ozone.set.getValues',
|
|
13154
13559
|
ToolsOzoneSetQuerySets: 'tools.ozone.set.querySets',
|
|
13155
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',
|
|
13156
13565
|
ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs',
|
|
13157
13566
|
ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation',
|
|
13158
13567
|
ToolsOzoneSignatureFindRelatedAccounts:
|