@atproto/api 0.13.8 → 0.13.10
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 +12 -0
- package/dist/client/index.d.ts +21 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +49 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +261 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +269 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/com/atproto/repo/getRecord.d.ts +4 -1
- package/dist/client/types/com/atproto/repo/getRecord.d.ts.map +1 -1
- package/dist/client/types/com/atproto/repo/getRecord.js +15 -1
- package/dist/client/types/com/atproto/repo/getRecord.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/getRecords.d.ts +27 -0
- package/dist/client/types/tools/ozone/moderation/getRecords.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/moderation/getRecords.js +8 -0
- package/dist/client/types/tools/ozone/moderation/getRecords.js.map +1 -0
- package/dist/client/types/tools/ozone/moderation/getRepos.d.ts +27 -0
- package/dist/client/types/tools/ozone/moderation/getRepos.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/moderation/getRepos.js +8 -0
- package/dist/client/types/tools/ozone/moderation/getRepos.js.map +1 -0
- package/dist/client/types/tools/ozone/signature/defs.d.ts +12 -0
- package/dist/client/types/tools/ozone/signature/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/signature/defs.js +16 -0
- package/dist/client/types/tools/ozone/signature/defs.js.map +1 -0
- package/dist/client/types/tools/ozone/signature/findCorrelation.d.ts +24 -0
- package/dist/client/types/tools/ozone/signature/findCorrelation.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/signature/findCorrelation.js +8 -0
- package/dist/client/types/tools/ozone/signature/findCorrelation.js.map +1 -0
- package/dist/client/types/tools/ozone/signature/findRelatedAccounts.d.ts +36 -0
- package/dist/client/types/tools/ozone/signature/findRelatedAccounts.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/signature/findRelatedAccounts.js +20 -0
- package/dist/client/types/tools/ozone/signature/findRelatedAccounts.js.map +1 -0
- package/dist/client/types/tools/ozone/signature/searchAccounts.d.ts +27 -0
- package/dist/client/types/tools/ozone/signature/searchAccounts.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/signature/searchAccounts.js +8 -0
- package/dist/client/types/tools/ozone/signature/searchAccounts.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +87 -6
- package/src/client/lexicons.ts +273 -0
- package/src/client/types/com/atproto/repo/getRecord.ts +10 -0
- package/src/client/types/tools/ozone/moderation/getRecords.ts +39 -0
- package/src/client/types/tools/ozone/moderation/getRepos.ts +39 -0
- package/src/client/types/tools/ozone/signature/defs.ts +25 -0
- package/src/client/types/tools/ozone/signature/findCorrelation.ts +35 -0
- package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +60 -0
- package/src/client/types/tools/ozone/signature/searchAccounts.ts +38 -0
- package/tests/{bsky-agent.test.ts → atp-agent.test.ts} +42 -42
package/dist/client/lexicons.js
CHANGED
|
@@ -1631,6 +1631,11 @@ exports.schemaDict = {
|
|
|
1631
1631
|
},
|
|
1632
1632
|
},
|
|
1633
1633
|
},
|
|
1634
|
+
errors: [
|
|
1635
|
+
{
|
|
1636
|
+
name: 'RecordNotFound',
|
|
1637
|
+
},
|
|
1638
|
+
],
|
|
1634
1639
|
},
|
|
1635
1640
|
},
|
|
1636
1641
|
},
|
|
@@ -11331,6 +11336,49 @@ exports.schemaDict = {
|
|
|
11331
11336
|
},
|
|
11332
11337
|
},
|
|
11333
11338
|
},
|
|
11339
|
+
ToolsOzoneModerationGetRecords: {
|
|
11340
|
+
lexicon: 1,
|
|
11341
|
+
id: 'tools.ozone.moderation.getRecords',
|
|
11342
|
+
defs: {
|
|
11343
|
+
main: {
|
|
11344
|
+
type: 'query',
|
|
11345
|
+
description: 'Get details about some records.',
|
|
11346
|
+
parameters: {
|
|
11347
|
+
type: 'params',
|
|
11348
|
+
required: ['uris'],
|
|
11349
|
+
properties: {
|
|
11350
|
+
uris: {
|
|
11351
|
+
type: 'array',
|
|
11352
|
+
maxLength: 100,
|
|
11353
|
+
items: {
|
|
11354
|
+
type: 'string',
|
|
11355
|
+
format: 'at-uri',
|
|
11356
|
+
},
|
|
11357
|
+
},
|
|
11358
|
+
},
|
|
11359
|
+
},
|
|
11360
|
+
output: {
|
|
11361
|
+
encoding: 'application/json',
|
|
11362
|
+
schema: {
|
|
11363
|
+
type: 'object',
|
|
11364
|
+
required: ['records'],
|
|
11365
|
+
properties: {
|
|
11366
|
+
records: {
|
|
11367
|
+
type: 'array',
|
|
11368
|
+
items: {
|
|
11369
|
+
type: 'union',
|
|
11370
|
+
refs: [
|
|
11371
|
+
'lex:tools.ozone.moderation.defs#recordViewDetail',
|
|
11372
|
+
'lex:tools.ozone.moderation.defs#recordViewNotFound',
|
|
11373
|
+
],
|
|
11374
|
+
},
|
|
11375
|
+
},
|
|
11376
|
+
},
|
|
11377
|
+
},
|
|
11378
|
+
},
|
|
11379
|
+
},
|
|
11380
|
+
},
|
|
11381
|
+
},
|
|
11334
11382
|
ToolsOzoneModerationGetRepo: {
|
|
11335
11383
|
lexicon: 1,
|
|
11336
11384
|
id: 'tools.ozone.moderation.getRepo',
|
|
@@ -11363,6 +11411,49 @@ exports.schemaDict = {
|
|
|
11363
11411
|
},
|
|
11364
11412
|
},
|
|
11365
11413
|
},
|
|
11414
|
+
ToolsOzoneModerationGetRepos: {
|
|
11415
|
+
lexicon: 1,
|
|
11416
|
+
id: 'tools.ozone.moderation.getRepos',
|
|
11417
|
+
defs: {
|
|
11418
|
+
main: {
|
|
11419
|
+
type: 'query',
|
|
11420
|
+
description: 'Get details about some repositories.',
|
|
11421
|
+
parameters: {
|
|
11422
|
+
type: 'params',
|
|
11423
|
+
required: ['dids'],
|
|
11424
|
+
properties: {
|
|
11425
|
+
dids: {
|
|
11426
|
+
type: 'array',
|
|
11427
|
+
maxLength: 100,
|
|
11428
|
+
items: {
|
|
11429
|
+
type: 'string',
|
|
11430
|
+
format: 'did',
|
|
11431
|
+
},
|
|
11432
|
+
},
|
|
11433
|
+
},
|
|
11434
|
+
},
|
|
11435
|
+
output: {
|
|
11436
|
+
encoding: 'application/json',
|
|
11437
|
+
schema: {
|
|
11438
|
+
type: 'object',
|
|
11439
|
+
required: ['repos'],
|
|
11440
|
+
properties: {
|
|
11441
|
+
repos: {
|
|
11442
|
+
type: 'array',
|
|
11443
|
+
items: {
|
|
11444
|
+
type: 'union',
|
|
11445
|
+
refs: [
|
|
11446
|
+
'lex:tools.ozone.moderation.defs#repoViewDetail',
|
|
11447
|
+
'lex:tools.ozone.moderation.defs#repoViewNotFound',
|
|
11448
|
+
],
|
|
11449
|
+
},
|
|
11450
|
+
},
|
|
11451
|
+
},
|
|
11452
|
+
},
|
|
11453
|
+
},
|
|
11454
|
+
},
|
|
11455
|
+
},
|
|
11456
|
+
},
|
|
11366
11457
|
ToolsOzoneModerationQueryEvents: {
|
|
11367
11458
|
lexicon: 1,
|
|
11368
11459
|
id: 'tools.ozone.moderation.queryEvents',
|
|
@@ -11724,6 +11815,178 @@ exports.schemaDict = {
|
|
|
11724
11815
|
},
|
|
11725
11816
|
},
|
|
11726
11817
|
},
|
|
11818
|
+
ToolsOzoneSignatureDefs: {
|
|
11819
|
+
lexicon: 1,
|
|
11820
|
+
id: 'tools.ozone.signature.defs',
|
|
11821
|
+
defs: {
|
|
11822
|
+
sigDetail: {
|
|
11823
|
+
type: 'object',
|
|
11824
|
+
required: ['property', 'value'],
|
|
11825
|
+
properties: {
|
|
11826
|
+
property: {
|
|
11827
|
+
type: 'string',
|
|
11828
|
+
},
|
|
11829
|
+
value: {
|
|
11830
|
+
type: 'string',
|
|
11831
|
+
},
|
|
11832
|
+
},
|
|
11833
|
+
},
|
|
11834
|
+
},
|
|
11835
|
+
},
|
|
11836
|
+
ToolsOzoneSignatureFindCorrelation: {
|
|
11837
|
+
lexicon: 1,
|
|
11838
|
+
id: 'tools.ozone.signature.findCorrelation',
|
|
11839
|
+
defs: {
|
|
11840
|
+
main: {
|
|
11841
|
+
type: 'query',
|
|
11842
|
+
description: 'Find all correlated threat signatures between 2 or more accounts.',
|
|
11843
|
+
parameters: {
|
|
11844
|
+
type: 'params',
|
|
11845
|
+
required: ['dids'],
|
|
11846
|
+
properties: {
|
|
11847
|
+
dids: {
|
|
11848
|
+
type: 'array',
|
|
11849
|
+
items: {
|
|
11850
|
+
type: 'string',
|
|
11851
|
+
format: 'did',
|
|
11852
|
+
},
|
|
11853
|
+
},
|
|
11854
|
+
},
|
|
11855
|
+
},
|
|
11856
|
+
output: {
|
|
11857
|
+
encoding: 'application/json',
|
|
11858
|
+
schema: {
|
|
11859
|
+
type: 'object',
|
|
11860
|
+
required: ['details'],
|
|
11861
|
+
properties: {
|
|
11862
|
+
details: {
|
|
11863
|
+
type: 'array',
|
|
11864
|
+
items: {
|
|
11865
|
+
type: 'ref',
|
|
11866
|
+
ref: 'lex:tools.ozone.signature.defs#sigDetail',
|
|
11867
|
+
},
|
|
11868
|
+
},
|
|
11869
|
+
},
|
|
11870
|
+
},
|
|
11871
|
+
},
|
|
11872
|
+
},
|
|
11873
|
+
},
|
|
11874
|
+
},
|
|
11875
|
+
ToolsOzoneSignatureFindRelatedAccounts: {
|
|
11876
|
+
lexicon: 1,
|
|
11877
|
+
id: 'tools.ozone.signature.findRelatedAccounts',
|
|
11878
|
+
defs: {
|
|
11879
|
+
main: {
|
|
11880
|
+
type: 'query',
|
|
11881
|
+
description: 'Get accounts that share some matching threat signatures with the root account.',
|
|
11882
|
+
parameters: {
|
|
11883
|
+
type: 'params',
|
|
11884
|
+
required: ['did'],
|
|
11885
|
+
properties: {
|
|
11886
|
+
did: {
|
|
11887
|
+
type: 'string',
|
|
11888
|
+
format: 'did',
|
|
11889
|
+
},
|
|
11890
|
+
cursor: {
|
|
11891
|
+
type: 'string',
|
|
11892
|
+
},
|
|
11893
|
+
limit: {
|
|
11894
|
+
type: 'integer',
|
|
11895
|
+
minimum: 1,
|
|
11896
|
+
maximum: 100,
|
|
11897
|
+
default: 50,
|
|
11898
|
+
},
|
|
11899
|
+
},
|
|
11900
|
+
},
|
|
11901
|
+
output: {
|
|
11902
|
+
encoding: 'application/json',
|
|
11903
|
+
schema: {
|
|
11904
|
+
type: 'object',
|
|
11905
|
+
required: ['accounts'],
|
|
11906
|
+
properties: {
|
|
11907
|
+
cursor: {
|
|
11908
|
+
type: 'string',
|
|
11909
|
+
},
|
|
11910
|
+
accounts: {
|
|
11911
|
+
type: 'array',
|
|
11912
|
+
items: {
|
|
11913
|
+
type: 'ref',
|
|
11914
|
+
ref: 'lex:tools.ozone.signature.findRelatedAccounts#relatedAccount',
|
|
11915
|
+
},
|
|
11916
|
+
},
|
|
11917
|
+
},
|
|
11918
|
+
},
|
|
11919
|
+
},
|
|
11920
|
+
},
|
|
11921
|
+
relatedAccount: {
|
|
11922
|
+
type: 'object',
|
|
11923
|
+
required: ['account'],
|
|
11924
|
+
properties: {
|
|
11925
|
+
account: {
|
|
11926
|
+
type: 'ref',
|
|
11927
|
+
ref: 'lex:com.atproto.admin.defs#accountView',
|
|
11928
|
+
},
|
|
11929
|
+
similarities: {
|
|
11930
|
+
type: 'array',
|
|
11931
|
+
items: {
|
|
11932
|
+
type: 'ref',
|
|
11933
|
+
ref: 'lex:tools.ozone.signature.defs#sigDetail',
|
|
11934
|
+
},
|
|
11935
|
+
},
|
|
11936
|
+
},
|
|
11937
|
+
},
|
|
11938
|
+
},
|
|
11939
|
+
},
|
|
11940
|
+
ToolsOzoneSignatureSearchAccounts: {
|
|
11941
|
+
lexicon: 1,
|
|
11942
|
+
id: 'tools.ozone.signature.searchAccounts',
|
|
11943
|
+
defs: {
|
|
11944
|
+
main: {
|
|
11945
|
+
type: 'query',
|
|
11946
|
+
description: 'Search for accounts that match one or more threat signature values.',
|
|
11947
|
+
parameters: {
|
|
11948
|
+
type: 'params',
|
|
11949
|
+
required: ['values'],
|
|
11950
|
+
properties: {
|
|
11951
|
+
values: {
|
|
11952
|
+
type: 'array',
|
|
11953
|
+
items: {
|
|
11954
|
+
type: 'string',
|
|
11955
|
+
},
|
|
11956
|
+
},
|
|
11957
|
+
cursor: {
|
|
11958
|
+
type: 'string',
|
|
11959
|
+
},
|
|
11960
|
+
limit: {
|
|
11961
|
+
type: 'integer',
|
|
11962
|
+
minimum: 1,
|
|
11963
|
+
maximum: 100,
|
|
11964
|
+
default: 50,
|
|
11965
|
+
},
|
|
11966
|
+
},
|
|
11967
|
+
},
|
|
11968
|
+
output: {
|
|
11969
|
+
encoding: 'application/json',
|
|
11970
|
+
schema: {
|
|
11971
|
+
type: 'object',
|
|
11972
|
+
required: ['accounts'],
|
|
11973
|
+
properties: {
|
|
11974
|
+
cursor: {
|
|
11975
|
+
type: 'string',
|
|
11976
|
+
},
|
|
11977
|
+
accounts: {
|
|
11978
|
+
type: 'array',
|
|
11979
|
+
items: {
|
|
11980
|
+
type: 'ref',
|
|
11981
|
+
ref: 'lex:com.atproto.admin.defs#accountView',
|
|
11982
|
+
},
|
|
11983
|
+
},
|
|
11984
|
+
},
|
|
11985
|
+
},
|
|
11986
|
+
},
|
|
11987
|
+
},
|
|
11988
|
+
},
|
|
11989
|
+
},
|
|
11727
11990
|
ToolsOzoneTeamAddMember: {
|
|
11728
11991
|
lexicon: 1,
|
|
11729
11992
|
id: 'tools.ozone.team.addMember',
|
|
@@ -12144,11 +12407,17 @@ exports.ids = {
|
|
|
12144
12407
|
ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent',
|
|
12145
12408
|
ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent',
|
|
12146
12409
|
ToolsOzoneModerationGetRecord: 'tools.ozone.moderation.getRecord',
|
|
12410
|
+
ToolsOzoneModerationGetRecords: 'tools.ozone.moderation.getRecords',
|
|
12147
12411
|
ToolsOzoneModerationGetRepo: 'tools.ozone.moderation.getRepo',
|
|
12412
|
+
ToolsOzoneModerationGetRepos: 'tools.ozone.moderation.getRepos',
|
|
12148
12413
|
ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
|
|
12149
12414
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
12150
12415
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
|
12151
12416
|
ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
|
|
12417
|
+
ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs',
|
|
12418
|
+
ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation',
|
|
12419
|
+
ToolsOzoneSignatureFindRelatedAccounts: 'tools.ozone.signature.findRelatedAccounts',
|
|
12420
|
+
ToolsOzoneSignatureSearchAccounts: 'tools.ozone.signature.searchAccounts',
|
|
12152
12421
|
ToolsOzoneTeamAddMember: 'tools.ozone.team.addMember',
|
|
12153
12422
|
ToolsOzoneTeamDefs: 'tools.ozone.team.defs',
|
|
12154
12423
|
ToolsOzoneTeamDeleteMember: 'tools.ozone.team.deleteMember',
|