@atproto/api 0.14.21 → 0.15.0

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/agent.js +17 -7
  3. package/dist/agent.js.map +1 -1
  4. package/dist/client/index.d.ts +63 -32
  5. package/dist/client/index.d.ts.map +1 -1
  6. package/dist/client/index.js +133 -62
  7. package/dist/client/index.js.map +1 -1
  8. package/dist/client/lexicons.d.ts +326 -4
  9. package/dist/client/lexicons.d.ts.map +1 -1
  10. package/dist/client/lexicons.js +171 -2
  11. package/dist/client/lexicons.js.map +1 -1
  12. package/dist/client/types/app/bsky/graph/verification.d.ts +19 -0
  13. package/dist/client/types/app/bsky/graph/verification.d.ts.map +1 -0
  14. package/dist/client/types/app/bsky/graph/verification.js +16 -0
  15. package/dist/client/types/app/bsky/graph/verification.js.map +1 -0
  16. package/dist/client/types/com/atproto/sync/defs.d.ts +2 -0
  17. package/dist/client/types/com/atproto/sync/defs.d.ts.map +1 -0
  18. package/dist/client/types/com/atproto/sync/defs.js +7 -0
  19. package/dist/client/types/com/atproto/sync/defs.js.map +1 -0
  20. package/dist/client/types/com/atproto/sync/getHostStatus.d.ts +32 -0
  21. package/dist/client/types/com/atproto/sync/getHostStatus.d.ts.map +1 -0
  22. package/dist/client/types/com/atproto/sync/getHostStatus.js +26 -0
  23. package/dist/client/types/com/atproto/sync/getHostStatus.js.map +1 -0
  24. package/dist/client/types/com/atproto/sync/listHosts.d.ts +38 -0
  25. package/dist/client/types/com/atproto/sync/listHosts.d.ts.map +1 -0
  26. package/dist/client/types/com/atproto/sync/listHosts.js +20 -0
  27. package/dist/client/types/com/atproto/sync/listHosts.js.map +1 -0
  28. package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +4 -1
  29. package/dist/client/types/com/atproto/sync/requestCrawl.d.ts.map +1 -1
  30. package/dist/client/types/com/atproto/sync/requestCrawl.js +15 -0
  31. package/dist/client/types/com/atproto/sync/requestCrawl.js.map +1 -1
  32. package/dist/client/util.d.ts.map +1 -1
  33. package/dist/util.d.ts.map +1 -1
  34. package/package.json +2 -2
  35. package/src/client/index.ts +151 -54
  36. package/src/client/lexicons.ts +181 -2
  37. package/src/client/types/app/bsky/graph/verification.ts +38 -0
  38. package/src/client/types/com/atproto/sync/defs.ts +23 -0
  39. package/src/client/types/com/atproto/sync/getHostStatus.ts +58 -0
  40. package/src/client/types/com/atproto/sync/listHosts.ts +65 -0
  41. package/src/client/types/com/atproto/sync/requestCrawl.ts +10 -0
  42. package/tsconfig.build.tsbuildinfo +1 -1
  43. package/tsconfig.tests.tsbuildinfo +1 -1
@@ -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
  },
@@ -8807,6 +8936,42 @@ exports.schemaDict = {
8807
8936
  },
8808
8937
  },
8809
8938
  },
8939
+ AppBskyGraphVerification: {
8940
+ lexicon: 1,
8941
+ id: 'app.bsky.graph.verification',
8942
+ defs: {
8943
+ main: {
8944
+ type: 'record',
8945
+ description: 'Record declaring a verification relationship between two accounts. Verifications are only considered valid by an app if issued by an account the app considers trusted.',
8946
+ key: 'tid',
8947
+ record: {
8948
+ type: 'object',
8949
+ required: ['subject', 'handle', 'displayName', 'createdAt'],
8950
+ properties: {
8951
+ subject: {
8952
+ description: 'DID of the subject the verification applies to.',
8953
+ type: 'string',
8954
+ format: 'did',
8955
+ },
8956
+ handle: {
8957
+ description: 'Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.',
8958
+ type: 'string',
8959
+ format: 'handle',
8960
+ },
8961
+ displayName: {
8962
+ description: 'Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.',
8963
+ type: 'string',
8964
+ },
8965
+ createdAt: {
8966
+ description: 'Date of when the verification was created.',
8967
+ type: 'string',
8968
+ format: 'datetime',
8969
+ },
8970
+ },
8971
+ },
8972
+ },
8973
+ },
8974
+ },
8810
8975
  AppBskyLabelerDefs: {
8811
8976
  lexicon: 1,
8812
8977
  id: 'app.bsky.labeler.defs',
@@ -10572,7 +10737,7 @@ exports.schemaDict = {
10572
10737
  value: {
10573
10738
  type: 'string',
10574
10739
  minLength: 1,
10575
- maxLength: 32,
10740
+ maxLength: 64,
10576
10741
  minGraphemes: 1,
10577
10742
  maxGraphemes: 1,
10578
10743
  },
@@ -11352,7 +11517,7 @@ exports.schemaDict = {
11352
11517
  value: {
11353
11518
  type: 'string',
11354
11519
  minLength: 1,
11355
- maxLength: 32,
11520
+ maxLength: 64,
11356
11521
  minGraphemes: 1,
11357
11522
  maxGraphemes: 1,
11358
11523
  },
@@ -14838,15 +15003,18 @@ exports.ids = {
14838
15003
  ComAtprotoServerResetPassword: 'com.atproto.server.resetPassword',
14839
15004
  ComAtprotoServerRevokeAppPassword: 'com.atproto.server.revokeAppPassword',
14840
15005
  ComAtprotoServerUpdateEmail: 'com.atproto.server.updateEmail',
15006
+ ComAtprotoSyncDefs: 'com.atproto.sync.defs',
14841
15007
  ComAtprotoSyncGetBlob: 'com.atproto.sync.getBlob',
14842
15008
  ComAtprotoSyncGetBlocks: 'com.atproto.sync.getBlocks',
14843
15009
  ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout',
14844
15010
  ComAtprotoSyncGetHead: 'com.atproto.sync.getHead',
15011
+ ComAtprotoSyncGetHostStatus: 'com.atproto.sync.getHostStatus',
14845
15012
  ComAtprotoSyncGetLatestCommit: 'com.atproto.sync.getLatestCommit',
14846
15013
  ComAtprotoSyncGetRecord: 'com.atproto.sync.getRecord',
14847
15014
  ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo',
14848
15015
  ComAtprotoSyncGetRepoStatus: 'com.atproto.sync.getRepoStatus',
14849
15016
  ComAtprotoSyncListBlobs: 'com.atproto.sync.listBlobs',
15017
+ ComAtprotoSyncListHosts: 'com.atproto.sync.listHosts',
14850
15018
  ComAtprotoSyncListRepos: 'com.atproto.sync.listRepos',
14851
15019
  ComAtprotoSyncListReposByCollection: 'com.atproto.sync.listReposByCollection',
14852
15020
  ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
@@ -14924,6 +15092,7 @@ exports.ids = {
14924
15092
  AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
14925
15093
  AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
14926
15094
  AppBskyGraphUnmuteThread: 'app.bsky.graph.unmuteThread',
15095
+ AppBskyGraphVerification: 'app.bsky.graph.verification',
14927
15096
  AppBskyLabelerDefs: 'app.bsky.labeler.defs',
14928
15097
  AppBskyLabelerGetServices: 'app.bsky.labeler.getServices',
14929
15098
  AppBskyLabelerService: 'app.bsky.labeler.service',