@atproto/pds 0.4.122 → 0.4.123
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 +7 -0
- 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 +254 -4
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +134 -2
- package/dist/lexicon/lexicons.js.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/mailer/templates/plc-operation.js +1 -1
- package/dist/mailer/templates/plc-operation.js.map +1 -1
- package/package.json +6 -6
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +141 -2
- 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/mailer/templates/plc-operation.hbs +2 -2
- 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
|
},
|
@@ -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
|
},
|
@@ -14838,15 +14967,18 @@ exports.ids = {
|
|
14838
14967
|
ComAtprotoServerResetPassword: 'com.atproto.server.resetPassword',
|
14839
14968
|
ComAtprotoServerRevokeAppPassword: 'com.atproto.server.revokeAppPassword',
|
14840
14969
|
ComAtprotoServerUpdateEmail: 'com.atproto.server.updateEmail',
|
14970
|
+
ComAtprotoSyncDefs: 'com.atproto.sync.defs',
|
14841
14971
|
ComAtprotoSyncGetBlob: 'com.atproto.sync.getBlob',
|
14842
14972
|
ComAtprotoSyncGetBlocks: 'com.atproto.sync.getBlocks',
|
14843
14973
|
ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout',
|
14844
14974
|
ComAtprotoSyncGetHead: 'com.atproto.sync.getHead',
|
14975
|
+
ComAtprotoSyncGetHostStatus: 'com.atproto.sync.getHostStatus',
|
14845
14976
|
ComAtprotoSyncGetLatestCommit: 'com.atproto.sync.getLatestCommit',
|
14846
14977
|
ComAtprotoSyncGetRecord: 'com.atproto.sync.getRecord',
|
14847
14978
|
ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo',
|
14848
14979
|
ComAtprotoSyncGetRepoStatus: 'com.atproto.sync.getRepoStatus',
|
14849
14980
|
ComAtprotoSyncListBlobs: 'com.atproto.sync.listBlobs',
|
14981
|
+
ComAtprotoSyncListHosts: 'com.atproto.sync.listHosts',
|
14850
14982
|
ComAtprotoSyncListRepos: 'com.atproto.sync.listRepos',
|
14851
14983
|
ComAtprotoSyncListReposByCollection: 'com.atproto.sync.listReposByCollection',
|
14852
14984
|
ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
|