@atproto/api 0.13.14 → 0.13.15
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/agent.d.ts +2 -2
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +15 -9
- package/dist/agent.js.map +1 -1
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +34 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +359 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +402 -3
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.d.ts +58 -2
- package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/defs.js +50 -0
- package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts +10 -0
- package/dist/client/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryStatuses.js.map +1 -1
- package/dist/client/types/tools/ozone/setting/defs.d.ts +20 -0
- package/dist/client/types/tools/ozone/setting/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/setting/defs.js +15 -0
- package/dist/client/types/tools/ozone/setting/defs.js.map +1 -0
- package/dist/client/types/tools/ozone/setting/listOptions.d.ts +31 -0
- package/dist/client/types/tools/ozone/setting/listOptions.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/setting/listOptions.js +7 -0
- package/dist/client/types/tools/ozone/setting/listOptions.js.map +1 -0
- package/dist/client/types/tools/ozone/setting/removeOptions.d.ts +27 -0
- package/dist/client/types/tools/ozone/setting/removeOptions.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/setting/removeOptions.js +7 -0
- package/dist/client/types/tools/ozone/setting/removeOptions.js.map +1 -0
- package/dist/client/types/tools/ozone/setting/upsertOption.d.ts +32 -0
- package/dist/client/types/tools/ozone/setting/upsertOption.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/setting/upsertOption.js +7 -0
- package/dist/client/types/tools/ozone/setting/upsertOption.js.map +1 -0
- package/dist/rich-text/rich-text.d.ts.map +1 -1
- package/dist/rich-text/rich-text.js +11 -4
- package/dist/rich-text/rich-text.js.map +1 -1
- package/package.json +1 -1
- package/src/agent.ts +19 -4
- package/src/client/index.ts +54 -0
- package/src/client/lexicons.ts +412 -3
- package/src/client/types/tools/ozone/moderation/defs.ts +130 -0
- package/src/client/types/tools/ozone/moderation/emitEvent.ts +3 -0
- package/src/client/types/tools/ozone/moderation/queryStatuses.ts +10 -0
- package/src/client/types/tools/ozone/setting/defs.ts +37 -0
- package/src/client/types/tools/ozone/setting/listOptions.ts +42 -0
- package/src/client/types/tools/ozone/setting/removeOptions.ts +37 -0
- package/src/client/types/tools/ozone/setting/upsertOption.ts +46 -0
- package/src/rich-text/rich-text.ts +17 -7
- package/tests/rich-text.test.ts +44 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text.js","sourceRoot":"","sources":["../../src/rich-text/rich-text.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;;;AAEH,sCAAgF;AAChF,uCAAyC;AACzC,iDAAiD;AACjD,2CAA0C;AAqB1C,MAAa,eAAe;IAC1B,YACS,IAAY,EACZ,KAAa;QADpB;;;;mBAAO,IAAI;WAAQ;QACnB;;;;mBAAO,KAAK;WAAQ;IACnB,CAAC;IAEJ,IAA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AO,EAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;iBACnD;gBACD,QAAQ,EAAE;oBACR,EAAE,KAAK,EAAE,iCAAiC,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,EAAE;iBAC7D;aACF,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,SAAS,CAAI,CAAI;IACxB,IAAI,OAAO,CAAC,KAAK,WAAW,EAAE,CAAC;QAC7B,OAAO,CAAC,CAAA;IACV,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;AACtC,CAAC"}
|
package/package.json
CHANGED
package/src/agent.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { TID } from '@atproto/common-web'
|
|
2
2
|
import { AtUri, ensureValidDid } from '@atproto/syntax'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
buildFetchHandler,
|
|
5
|
+
BuildFetchHandlerOptions,
|
|
6
|
+
FetchHandler,
|
|
7
|
+
XrpcClient,
|
|
8
|
+
} from '@atproto/xrpc'
|
|
4
9
|
import AwaitLock from 'await-lock'
|
|
5
10
|
import {
|
|
6
11
|
AppBskyActorDefs,
|
|
@@ -105,8 +110,16 @@ export class Agent extends XrpcClient {
|
|
|
105
110
|
return this
|
|
106
111
|
}
|
|
107
112
|
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
readonly sessionManager: SessionManager
|
|
114
|
+
|
|
115
|
+
constructor(options: string | URL | SessionManager) {
|
|
116
|
+
const sessionManager: SessionManager =
|
|
117
|
+
typeof options === 'string' || options instanceof URL
|
|
118
|
+
? {
|
|
119
|
+
did: undefined,
|
|
120
|
+
fetchHandler: buildFetchHandler(options),
|
|
121
|
+
}
|
|
122
|
+
: options
|
|
110
123
|
|
|
111
124
|
super((url, init) => {
|
|
112
125
|
const headers = new Headers(init?.headers)
|
|
@@ -128,8 +141,10 @@ export class Agent extends XrpcClient {
|
|
|
128
141
|
.join(', '),
|
|
129
142
|
)
|
|
130
143
|
|
|
131
|
-
return fetchHandler(url, { ...init, headers })
|
|
144
|
+
return this.sessionManager.fetchHandler(url, { ...init, headers })
|
|
132
145
|
}, schemas)
|
|
146
|
+
|
|
147
|
+
this.sessionManager = sessionManager
|
|
133
148
|
}
|
|
134
149
|
|
|
135
150
|
//#region Cloning utilities
|
package/src/client/index.ts
CHANGED
|
@@ -214,6 +214,10 @@ import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues
|
|
|
214
214
|
import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues'
|
|
215
215
|
import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets'
|
|
216
216
|
import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet'
|
|
217
|
+
import * as ToolsOzoneSettingDefs from './types/tools/ozone/setting/defs'
|
|
218
|
+
import * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions'
|
|
219
|
+
import * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions'
|
|
220
|
+
import * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption'
|
|
217
221
|
import * as ToolsOzoneSignatureDefs from './types/tools/ozone/signature/defs'
|
|
218
222
|
import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
|
|
219
223
|
import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
|
|
@@ -434,6 +438,10 @@ export * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues
|
|
|
434
438
|
export * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues'
|
|
435
439
|
export * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets'
|
|
436
440
|
export * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet'
|
|
441
|
+
export * as ToolsOzoneSettingDefs from './types/tools/ozone/setting/defs'
|
|
442
|
+
export * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions'
|
|
443
|
+
export * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions'
|
|
444
|
+
export * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption'
|
|
437
445
|
export * as ToolsOzoneSignatureDefs from './types/tools/ozone/signature/defs'
|
|
438
446
|
export * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
|
|
439
447
|
export * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
|
|
@@ -3433,6 +3441,7 @@ export class ToolsOzoneNS {
|
|
|
3433
3441
|
moderation: ToolsOzoneModerationNS
|
|
3434
3442
|
server: ToolsOzoneServerNS
|
|
3435
3443
|
set: ToolsOzoneSetNS
|
|
3444
|
+
setting: ToolsOzoneSettingNS
|
|
3436
3445
|
signature: ToolsOzoneSignatureNS
|
|
3437
3446
|
team: ToolsOzoneTeamNS
|
|
3438
3447
|
|
|
@@ -3442,6 +3451,7 @@ export class ToolsOzoneNS {
|
|
|
3442
3451
|
this.moderation = new ToolsOzoneModerationNS(client)
|
|
3443
3452
|
this.server = new ToolsOzoneServerNS(client)
|
|
3444
3453
|
this.set = new ToolsOzoneSetNS(client)
|
|
3454
|
+
this.setting = new ToolsOzoneSettingNS(client)
|
|
3445
3455
|
this.signature = new ToolsOzoneSignatureNS(client)
|
|
3446
3456
|
this.team = new ToolsOzoneTeamNS(client)
|
|
3447
3457
|
}
|
|
@@ -3701,6 +3711,50 @@ export class ToolsOzoneSetNS {
|
|
|
3701
3711
|
}
|
|
3702
3712
|
}
|
|
3703
3713
|
|
|
3714
|
+
export class ToolsOzoneSettingNS {
|
|
3715
|
+
_client: XrpcClient
|
|
3716
|
+
|
|
3717
|
+
constructor(client: XrpcClient) {
|
|
3718
|
+
this._client = client
|
|
3719
|
+
}
|
|
3720
|
+
|
|
3721
|
+
listOptions(
|
|
3722
|
+
params?: ToolsOzoneSettingListOptions.QueryParams,
|
|
3723
|
+
opts?: ToolsOzoneSettingListOptions.CallOptions,
|
|
3724
|
+
): Promise<ToolsOzoneSettingListOptions.Response> {
|
|
3725
|
+
return this._client.call(
|
|
3726
|
+
'tools.ozone.setting.listOptions',
|
|
3727
|
+
params,
|
|
3728
|
+
undefined,
|
|
3729
|
+
opts,
|
|
3730
|
+
)
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
removeOptions(
|
|
3734
|
+
data?: ToolsOzoneSettingRemoveOptions.InputSchema,
|
|
3735
|
+
opts?: ToolsOzoneSettingRemoveOptions.CallOptions,
|
|
3736
|
+
): Promise<ToolsOzoneSettingRemoveOptions.Response> {
|
|
3737
|
+
return this._client.call(
|
|
3738
|
+
'tools.ozone.setting.removeOptions',
|
|
3739
|
+
opts?.qp,
|
|
3740
|
+
data,
|
|
3741
|
+
opts,
|
|
3742
|
+
)
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
upsertOption(
|
|
3746
|
+
data?: ToolsOzoneSettingUpsertOption.InputSchema,
|
|
3747
|
+
opts?: ToolsOzoneSettingUpsertOption.CallOptions,
|
|
3748
|
+
): Promise<ToolsOzoneSettingUpsertOption.Response> {
|
|
3749
|
+
return this._client.call(
|
|
3750
|
+
'tools.ozone.setting.upsertOption',
|
|
3751
|
+
opts?.qp,
|
|
3752
|
+
data,
|
|
3753
|
+
opts,
|
|
3754
|
+
)
|
|
3755
|
+
}
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3704
3758
|
export class ToolsOzoneSignatureNS {
|
|
3705
3759
|
_client: XrpcClient
|
|
3706
3760
|
|
package/src/client/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:
|