@atproto/bsky 0.0.137 → 0.0.139
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 +16 -0
- package/dist/api/app/bsky/feed/getAuthorFeed.js +4 -1
- package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
- package/dist/api/app/bsky/notification/getUnreadCount.js +3 -1
- package/dist/api/app/bsky/notification/getUnreadCount.js.map +1 -1
- package/dist/api/app/bsky/notification/listNotifications.js +3 -1
- package/dist/api/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/api/app/bsky/unspecced/getSuggestedUsers.js +4 -4
- package/dist/api/app/bsky/unspecced/getSuggestedUsers.js.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getAccountInfos.js +4 -1
- package/dist/api/com/atproto/admin/getAccountInfos.js.map +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.js +4 -1
- package/dist/api/com/atproto/admin/getSubjectStatus.js.map +1 -1
- package/dist/api/com/atproto/repo/getRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/getRecord.js +3 -1
- package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
- package/dist/hydration/actor.d.ts +4 -1
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +3 -2
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +1 -0
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +19 -5
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +256 -6
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +135 -3
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/defs.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/sync/defs.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/defs.js +7 -0
- package/dist/lexicon/types/com/atproto/sync/defs.js.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/getHostStatus.d.ts +43 -0
- package/dist/lexicon/types/com/atproto/sync/getHostStatus.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/getHostStatus.js +7 -0
- package/dist/lexicon/types/com/atproto/sync/getHostStatus.js.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/listHosts.d.ts +51 -0
- package/dist/lexicon/types/com/atproto/sync/listHosts.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/listHosts.js +16 -0
- package/dist/lexicon/types/com/atproto/sync/listHosts.js.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/requestCrawl.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/sync/requestCrawl.d.ts.map +1 -1
- package/dist/proto/bsky_pb.d.ts +4 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +16 -0
- package/dist/proto/bsky_pb.js.map +1 -1
- package/package.json +4 -4
- package/proto/bsky.proto +1 -0
- package/src/api/app/bsky/feed/getAuthorFeed.ts +4 -4
- package/src/api/app/bsky/notification/getUnreadCount.ts +3 -1
- package/src/api/app/bsky/notification/listNotifications.ts +3 -1
- package/src/api/app/bsky/unspecced/getSuggestedUsers.ts +4 -4
- package/src/api/com/atproto/admin/getAccountInfos.ts +4 -1
- package/src/api/com/atproto/admin/getSubjectStatus.ts +6 -1
- package/src/api/com/atproto/repo/getRecord.ts +3 -1
- package/src/hydration/actor.ts +9 -2
- package/src/hydration/hydrator.ts +20 -13
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +142 -3
- package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsers.ts +1 -1
- package/src/lexicon/types/com/atproto/sync/defs.ts +23 -0
- package/src/lexicon/types/com/atproto/sync/getHostStatus.ts +61 -0
- package/src/lexicon/types/com/atproto/sync/listHosts.ts +77 -0
- package/src/lexicon/types/com/atproto/sync/requestCrawl.ts +1 -0
- package/src/proto/bsky_pb.ts +12 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -3244,6 +3244,16 @@ exports.schemaDict = {
|
|
|
3244
3244
|
},
|
|
3245
3245
|
},
|
|
3246
3246
|
},
|
|
3247
|
+
ComAtprotoSyncDefs: {
|
|
3248
|
+
lexicon: 1,
|
|
3249
|
+
id: 'com.atproto.sync.defs',
|
|
3250
|
+
defs: {
|
|
3251
|
+
hostStatus: {
|
|
3252
|
+
type: 'string',
|
|
3253
|
+
knownValues: ['active', 'idle', 'offline', 'throttled', 'banned'],
|
|
3254
|
+
},
|
|
3255
|
+
},
|
|
3256
|
+
},
|
|
3247
3257
|
ComAtprotoSyncGetBlob: {
|
|
3248
3258
|
lexicon: 1,
|
|
3249
3259
|
id: 'com.atproto.sync.getBlob',
|
|
@@ -3401,6 +3411,55 @@ exports.schemaDict = {
|
|
|
3401
3411
|
},
|
|
3402
3412
|
},
|
|
3403
3413
|
},
|
|
3414
|
+
ComAtprotoSyncGetHostStatus: {
|
|
3415
|
+
lexicon: 1,
|
|
3416
|
+
id: 'com.atproto.sync.getHostStatus',
|
|
3417
|
+
defs: {
|
|
3418
|
+
main: {
|
|
3419
|
+
type: 'query',
|
|
3420
|
+
description: 'Returns information about a specified upstream host, as consumed by the server. Implemented by relays.',
|
|
3421
|
+
parameters: {
|
|
3422
|
+
type: 'params',
|
|
3423
|
+
required: ['hostname'],
|
|
3424
|
+
properties: {
|
|
3425
|
+
hostname: {
|
|
3426
|
+
type: 'string',
|
|
3427
|
+
description: 'Hostname of the host (eg, PDS or relay) being queried.',
|
|
3428
|
+
},
|
|
3429
|
+
},
|
|
3430
|
+
},
|
|
3431
|
+
output: {
|
|
3432
|
+
encoding: 'application/json',
|
|
3433
|
+
schema: {
|
|
3434
|
+
type: 'object',
|
|
3435
|
+
required: ['hostname'],
|
|
3436
|
+
properties: {
|
|
3437
|
+
hostname: {
|
|
3438
|
+
type: 'string',
|
|
3439
|
+
},
|
|
3440
|
+
seq: {
|
|
3441
|
+
type: 'integer',
|
|
3442
|
+
description: 'Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).',
|
|
3443
|
+
},
|
|
3444
|
+
accountCount: {
|
|
3445
|
+
type: 'integer',
|
|
3446
|
+
description: 'Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts.',
|
|
3447
|
+
},
|
|
3448
|
+
status: {
|
|
3449
|
+
type: 'ref',
|
|
3450
|
+
ref: 'lex:com.atproto.sync.defs#hostStatus',
|
|
3451
|
+
},
|
|
3452
|
+
},
|
|
3453
|
+
},
|
|
3454
|
+
},
|
|
3455
|
+
errors: [
|
|
3456
|
+
{
|
|
3457
|
+
name: 'HostNotFound',
|
|
3458
|
+
},
|
|
3459
|
+
],
|
|
3460
|
+
},
|
|
3461
|
+
},
|
|
3462
|
+
},
|
|
3404
3463
|
ComAtprotoSyncGetLatestCommit: {
|
|
3405
3464
|
lexicon: 1,
|
|
3406
3465
|
id: 'com.atproto.sync.getLatestCommit',
|
|
@@ -3673,6 +3732,71 @@ exports.schemaDict = {
|
|
|
3673
3732
|
},
|
|
3674
3733
|
},
|
|
3675
3734
|
},
|
|
3735
|
+
ComAtprotoSyncListHosts: {
|
|
3736
|
+
lexicon: 1,
|
|
3737
|
+
id: 'com.atproto.sync.listHosts',
|
|
3738
|
+
defs: {
|
|
3739
|
+
main: {
|
|
3740
|
+
type: 'query',
|
|
3741
|
+
description: 'Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays.',
|
|
3742
|
+
parameters: {
|
|
3743
|
+
type: 'params',
|
|
3744
|
+
properties: {
|
|
3745
|
+
limit: {
|
|
3746
|
+
type: 'integer',
|
|
3747
|
+
minimum: 1,
|
|
3748
|
+
maximum: 1000,
|
|
3749
|
+
default: 200,
|
|
3750
|
+
},
|
|
3751
|
+
cursor: {
|
|
3752
|
+
type: 'string',
|
|
3753
|
+
},
|
|
3754
|
+
},
|
|
3755
|
+
},
|
|
3756
|
+
output: {
|
|
3757
|
+
encoding: 'application/json',
|
|
3758
|
+
schema: {
|
|
3759
|
+
type: 'object',
|
|
3760
|
+
required: ['hosts'],
|
|
3761
|
+
properties: {
|
|
3762
|
+
cursor: {
|
|
3763
|
+
type: 'string',
|
|
3764
|
+
},
|
|
3765
|
+
hosts: {
|
|
3766
|
+
type: 'array',
|
|
3767
|
+
items: {
|
|
3768
|
+
type: 'ref',
|
|
3769
|
+
ref: 'lex:com.atproto.sync.listHosts#host',
|
|
3770
|
+
},
|
|
3771
|
+
description: 'Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first.',
|
|
3772
|
+
},
|
|
3773
|
+
},
|
|
3774
|
+
},
|
|
3775
|
+
},
|
|
3776
|
+
},
|
|
3777
|
+
host: {
|
|
3778
|
+
type: 'object',
|
|
3779
|
+
required: ['hostname'],
|
|
3780
|
+
properties: {
|
|
3781
|
+
hostname: {
|
|
3782
|
+
type: 'string',
|
|
3783
|
+
description: 'hostname of server; not a URL (no scheme)',
|
|
3784
|
+
},
|
|
3785
|
+
seq: {
|
|
3786
|
+
type: 'integer',
|
|
3787
|
+
description: 'Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).',
|
|
3788
|
+
},
|
|
3789
|
+
accountCount: {
|
|
3790
|
+
type: 'integer',
|
|
3791
|
+
},
|
|
3792
|
+
status: {
|
|
3793
|
+
type: 'ref',
|
|
3794
|
+
ref: 'lex:com.atproto.sync.defs#hostStatus',
|
|
3795
|
+
},
|
|
3796
|
+
},
|
|
3797
|
+
},
|
|
3798
|
+
},
|
|
3799
|
+
},
|
|
3676
3800
|
ComAtprotoSyncListRepos: {
|
|
3677
3801
|
lexicon: 1,
|
|
3678
3802
|
id: 'com.atproto.sync.listRepos',
|
|
@@ -3852,6 +3976,11 @@ exports.schemaDict = {
|
|
|
3852
3976
|
},
|
|
3853
3977
|
},
|
|
3854
3978
|
},
|
|
3979
|
+
errors: [
|
|
3980
|
+
{
|
|
3981
|
+
name: 'HostBanned',
|
|
3982
|
+
},
|
|
3983
|
+
],
|
|
3855
3984
|
},
|
|
3856
3985
|
},
|
|
3857
3986
|
},
|
|
@@ -9757,7 +9886,7 @@ exports.schemaDict = {
|
|
|
9757
9886
|
type: 'array',
|
|
9758
9887
|
items: {
|
|
9759
9888
|
type: 'ref',
|
|
9760
|
-
ref: 'lex:app.bsky.actor.defs#
|
|
9889
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
9761
9890
|
},
|
|
9762
9891
|
},
|
|
9763
9892
|
},
|
|
@@ -10572,7 +10701,7 @@ exports.schemaDict = {
|
|
|
10572
10701
|
value: {
|
|
10573
10702
|
type: 'string',
|
|
10574
10703
|
minLength: 1,
|
|
10575
|
-
maxLength:
|
|
10704
|
+
maxLength: 64,
|
|
10576
10705
|
minGraphemes: 1,
|
|
10577
10706
|
maxGraphemes: 1,
|
|
10578
10707
|
},
|
|
@@ -11352,7 +11481,7 @@ exports.schemaDict = {
|
|
|
11352
11481
|
value: {
|
|
11353
11482
|
type: 'string',
|
|
11354
11483
|
minLength: 1,
|
|
11355
|
-
maxLength:
|
|
11484
|
+
maxLength: 64,
|
|
11356
11485
|
minGraphemes: 1,
|
|
11357
11486
|
maxGraphemes: 1,
|
|
11358
11487
|
},
|
|
@@ -11799,15 +11928,18 @@ exports.ids = {
|
|
|
11799
11928
|
ComAtprotoServerResetPassword: 'com.atproto.server.resetPassword',
|
|
11800
11929
|
ComAtprotoServerRevokeAppPassword: 'com.atproto.server.revokeAppPassword',
|
|
11801
11930
|
ComAtprotoServerUpdateEmail: 'com.atproto.server.updateEmail',
|
|
11931
|
+
ComAtprotoSyncDefs: 'com.atproto.sync.defs',
|
|
11802
11932
|
ComAtprotoSyncGetBlob: 'com.atproto.sync.getBlob',
|
|
11803
11933
|
ComAtprotoSyncGetBlocks: 'com.atproto.sync.getBlocks',
|
|
11804
11934
|
ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout',
|
|
11805
11935
|
ComAtprotoSyncGetHead: 'com.atproto.sync.getHead',
|
|
11936
|
+
ComAtprotoSyncGetHostStatus: 'com.atproto.sync.getHostStatus',
|
|
11806
11937
|
ComAtprotoSyncGetLatestCommit: 'com.atproto.sync.getLatestCommit',
|
|
11807
11938
|
ComAtprotoSyncGetRecord: 'com.atproto.sync.getRecord',
|
|
11808
11939
|
ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo',
|
|
11809
11940
|
ComAtprotoSyncGetRepoStatus: 'com.atproto.sync.getRepoStatus',
|
|
11810
11941
|
ComAtprotoSyncListBlobs: 'com.atproto.sync.listBlobs',
|
|
11942
|
+
ComAtprotoSyncListHosts: 'com.atproto.sync.listHosts',
|
|
11811
11943
|
ComAtprotoSyncListRepos: 'com.atproto.sync.listRepos',
|
|
11812
11944
|
ComAtprotoSyncListReposByCollection: 'com.atproto.sync.listReposByCollection',
|
|
11813
11945
|
ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
|