@atproto/api 0.13.7 → 0.13.9
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 +17 -0
- package/README.md +1 -1
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +17 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +118 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +135 -3
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +2 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.d.ts +1 -0
- package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts +13 -2
- package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.js +21 -1
- package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +1 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/getAuthorFeed.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +2 -0
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts +2 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestionsSkeleton.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/package.json +5 -5
- package/src/client/index.ts +33 -6
- package/src/client/lexicons.ts +137 -3
- package/src/client/types/app/bsky/actor/defs.ts +2 -0
- package/src/client/types/app/bsky/actor/profile.ts +1 -0
- package/src/client/types/app/bsky/feed/defs.ts +38 -2
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +1 -0
- package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +2 -0
- package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +2 -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/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
|
},
|
|
@@ -4053,6 +4058,10 @@ exports.schemaDict = {
|
|
|
4053
4058
|
ref: 'lex:com.atproto.label.defs#label',
|
|
4054
4059
|
},
|
|
4055
4060
|
},
|
|
4061
|
+
pinnedPost: {
|
|
4062
|
+
type: 'ref',
|
|
4063
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
4064
|
+
},
|
|
4056
4065
|
},
|
|
4057
4066
|
},
|
|
4058
4067
|
profileAssociated: {
|
|
@@ -4655,6 +4664,10 @@ exports.schemaDict = {
|
|
|
4655
4664
|
type: 'ref',
|
|
4656
4665
|
ref: 'lex:com.atproto.repo.strongRef',
|
|
4657
4666
|
},
|
|
4667
|
+
pinnedPost: {
|
|
4668
|
+
type: 'ref',
|
|
4669
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
4670
|
+
},
|
|
4658
4671
|
createdAt: {
|
|
4659
4672
|
type: 'string',
|
|
4660
4673
|
format: 'datetime',
|
|
@@ -5298,6 +5311,9 @@ exports.schemaDict = {
|
|
|
5298
5311
|
embeddingDisabled: {
|
|
5299
5312
|
type: 'boolean',
|
|
5300
5313
|
},
|
|
5314
|
+
pinned: {
|
|
5315
|
+
type: 'boolean',
|
|
5316
|
+
},
|
|
5301
5317
|
},
|
|
5302
5318
|
},
|
|
5303
5319
|
feedViewPost: {
|
|
@@ -5314,7 +5330,10 @@ exports.schemaDict = {
|
|
|
5314
5330
|
},
|
|
5315
5331
|
reason: {
|
|
5316
5332
|
type: 'union',
|
|
5317
|
-
refs: [
|
|
5333
|
+
refs: [
|
|
5334
|
+
'lex:app.bsky.feed.defs#reasonRepost',
|
|
5335
|
+
'lex:app.bsky.feed.defs#reasonPin',
|
|
5336
|
+
],
|
|
5318
5337
|
},
|
|
5319
5338
|
feedContext: {
|
|
5320
5339
|
type: 'string',
|
|
@@ -5364,6 +5383,10 @@ exports.schemaDict = {
|
|
|
5364
5383
|
},
|
|
5365
5384
|
},
|
|
5366
5385
|
},
|
|
5386
|
+
reasonPin: {
|
|
5387
|
+
type: 'object',
|
|
5388
|
+
properties: {},
|
|
5389
|
+
},
|
|
5367
5390
|
threadViewPost: {
|
|
5368
5391
|
type: 'object',
|
|
5369
5392
|
required: ['post'],
|
|
@@ -5521,7 +5544,10 @@ exports.schemaDict = {
|
|
|
5521
5544
|
},
|
|
5522
5545
|
reason: {
|
|
5523
5546
|
type: 'union',
|
|
5524
|
-
refs: [
|
|
5547
|
+
refs: [
|
|
5548
|
+
'lex:app.bsky.feed.defs#skeletonReasonRepost',
|
|
5549
|
+
'lex:app.bsky.feed.defs#skeletonReasonPin',
|
|
5550
|
+
],
|
|
5525
5551
|
},
|
|
5526
5552
|
feedContext: {
|
|
5527
5553
|
type: 'string',
|
|
@@ -5540,6 +5566,10 @@ exports.schemaDict = {
|
|
|
5540
5566
|
},
|
|
5541
5567
|
},
|
|
5542
5568
|
},
|
|
5569
|
+
skeletonReasonPin: {
|
|
5570
|
+
type: 'object',
|
|
5571
|
+
properties: {},
|
|
5572
|
+
},
|
|
5543
5573
|
threadgateView: {
|
|
5544
5574
|
type: 'object',
|
|
5545
5575
|
properties: {
|
|
@@ -5894,6 +5924,10 @@ exports.schemaDict = {
|
|
|
5894
5924
|
],
|
|
5895
5925
|
default: 'posts_with_replies',
|
|
5896
5926
|
},
|
|
5927
|
+
includePins: {
|
|
5928
|
+
type: 'boolean',
|
|
5929
|
+
default: false,
|
|
5930
|
+
},
|
|
5897
5931
|
},
|
|
5898
5932
|
},
|
|
5899
5933
|
output: {
|
|
@@ -6936,7 +6970,7 @@ exports.schemaDict = {
|
|
|
6936
6970
|
main: {
|
|
6937
6971
|
type: 'record',
|
|
6938
6972
|
key: 'tid',
|
|
6939
|
-
description: "Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository
|
|
6973
|
+
description: "Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository.",
|
|
6940
6974
|
record: {
|
|
6941
6975
|
type: 'object',
|
|
6942
6976
|
required: ['post', 'createdAt'],
|
|
@@ -7989,6 +8023,11 @@ exports.schemaDict = {
|
|
|
7989
8023
|
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
7990
8024
|
},
|
|
7991
8025
|
},
|
|
8026
|
+
isFallback: {
|
|
8027
|
+
type: 'boolean',
|
|
8028
|
+
description: 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid',
|
|
8029
|
+
default: false,
|
|
8030
|
+
},
|
|
7992
8031
|
},
|
|
7993
8032
|
},
|
|
7994
8033
|
},
|
|
@@ -8921,6 +8960,11 @@ exports.schemaDict = {
|
|
|
8921
8960
|
ref: 'lex:app.bsky.unspecced.defs#skeletonSearchActor',
|
|
8922
8961
|
},
|
|
8923
8962
|
},
|
|
8963
|
+
relativeToDid: {
|
|
8964
|
+
type: 'string',
|
|
8965
|
+
format: 'did',
|
|
8966
|
+
description: 'DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer.',
|
|
8967
|
+
},
|
|
8924
8968
|
},
|
|
8925
8969
|
},
|
|
8926
8970
|
},
|
|
@@ -11292,6 +11336,49 @@ exports.schemaDict = {
|
|
|
11292
11336
|
},
|
|
11293
11337
|
},
|
|
11294
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
|
+
},
|
|
11295
11382
|
ToolsOzoneModerationGetRepo: {
|
|
11296
11383
|
lexicon: 1,
|
|
11297
11384
|
id: 'tools.ozone.moderation.getRepo',
|
|
@@ -11324,6 +11411,49 @@ exports.schemaDict = {
|
|
|
11324
11411
|
},
|
|
11325
11412
|
},
|
|
11326
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
|
+
},
|
|
11327
11457
|
ToolsOzoneModerationQueryEvents: {
|
|
11328
11458
|
lexicon: 1,
|
|
11329
11459
|
id: 'tools.ozone.moderation.queryEvents',
|
|
@@ -12105,7 +12235,9 @@ exports.ids = {
|
|
|
12105
12235
|
ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent',
|
|
12106
12236
|
ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent',
|
|
12107
12237
|
ToolsOzoneModerationGetRecord: 'tools.ozone.moderation.getRecord',
|
|
12238
|
+
ToolsOzoneModerationGetRecords: 'tools.ozone.moderation.getRecords',
|
|
12108
12239
|
ToolsOzoneModerationGetRepo: 'tools.ozone.moderation.getRepo',
|
|
12240
|
+
ToolsOzoneModerationGetRepos: 'tools.ozone.moderation.getRepos',
|
|
12109
12241
|
ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
|
|
12110
12242
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
12111
12243
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|