@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
@@ -79,15 +79,18 @@ import * as ComAtprotoServerReserveSigningKey from './types/com/atproto/server/r
79
79
  import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword.js'
80
80
  import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword.js'
81
81
  import * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail.js'
82
+ import * as ComAtprotoSyncDefs from './types/com/atproto/sync/defs.js'
82
83
  import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob.js'
83
84
  import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks.js'
84
85
  import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout.js'
85
86
  import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead.js'
87
+ import * as ComAtprotoSyncGetHostStatus from './types/com/atproto/sync/getHostStatus.js'
86
88
  import * as ComAtprotoSyncGetLatestCommit from './types/com/atproto/sync/getLatestCommit.js'
87
89
  import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord.js'
88
90
  import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo.js'
89
91
  import * as ComAtprotoSyncGetRepoStatus from './types/com/atproto/sync/getRepoStatus.js'
90
92
  import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs.js'
93
+ import * as ComAtprotoSyncListHosts from './types/com/atproto/sync/listHosts.js'
91
94
  import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos.js'
92
95
  import * as ComAtprotoSyncListReposByCollection from './types/com/atproto/sync/listReposByCollection.js'
93
96
  import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate.js'
@@ -165,6 +168,7 @@ import * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack.js'
165
168
  import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor.js'
166
169
  import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList.js'
167
170
  import * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread.js'
171
+ import * as AppBskyGraphVerification from './types/app/bsky/graph/verification.js'
168
172
  import * as AppBskyLabelerDefs from './types/app/bsky/labeler/defs.js'
169
173
  import * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js'
170
174
  import * as AppBskyLabelerService from './types/app/bsky/labeler/service.js'
@@ -329,15 +333,18 @@ export * as ComAtprotoServerReserveSigningKey from './types/com/atproto/server/r
329
333
  export * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword.js'
330
334
  export * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword.js'
331
335
  export * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail.js'
336
+ export * as ComAtprotoSyncDefs from './types/com/atproto/sync/defs.js'
332
337
  export * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob.js'
333
338
  export * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks.js'
334
339
  export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout.js'
335
340
  export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead.js'
341
+ export * as ComAtprotoSyncGetHostStatus from './types/com/atproto/sync/getHostStatus.js'
336
342
  export * as ComAtprotoSyncGetLatestCommit from './types/com/atproto/sync/getLatestCommit.js'
337
343
  export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord.js'
338
344
  export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo.js'
339
345
  export * as ComAtprotoSyncGetRepoStatus from './types/com/atproto/sync/getRepoStatus.js'
340
346
  export * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs.js'
347
+ export * as ComAtprotoSyncListHosts from './types/com/atproto/sync/listHosts.js'
341
348
  export * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos.js'
342
349
  export * as ComAtprotoSyncListReposByCollection from './types/com/atproto/sync/listReposByCollection.js'
343
350
  export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate.js'
@@ -415,6 +422,7 @@ export * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack.js'
415
422
  export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor.js'
416
423
  export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList.js'
417
424
  export * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread.js'
425
+ export * as AppBskyGraphVerification from './types/app/bsky/graph/verification.js'
418
426
  export * as AppBskyLabelerDefs from './types/app/bsky/labeler/defs.js'
419
427
  export * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js'
420
428
  export * as AppBskyLabelerService from './types/app/bsky/labeler/service.js'
@@ -929,15 +937,15 @@ export class ComAtprotoLabelNS {
929
937
 
930
938
  export class ComAtprotoLexiconNS {
931
939
  _client: XrpcClient
932
- schema: SchemaRecord
940
+ schema: ComAtprotoLexiconSchemaRecord
933
941
 
934
942
  constructor(client: XrpcClient) {
935
943
  this._client = client
936
- this.schema = new SchemaRecord(client)
944
+ this.schema = new ComAtprotoLexiconSchemaRecord(client)
937
945
  }
938
946
  }
939
947
 
940
- export class SchemaRecord {
948
+ export class ComAtprotoLexiconSchemaRecord {
941
949
  _client: XrpcClient
942
950
 
943
951
  constructor(client: XrpcClient) {
@@ -1494,6 +1502,17 @@ export class ComAtprotoSyncNS {
1494
1502
  })
1495
1503
  }
1496
1504
 
1505
+ getHostStatus(
1506
+ params?: ComAtprotoSyncGetHostStatus.QueryParams,
1507
+ opts?: ComAtprotoSyncGetHostStatus.CallOptions,
1508
+ ): Promise<ComAtprotoSyncGetHostStatus.Response> {
1509
+ return this._client
1510
+ .call('com.atproto.sync.getHostStatus', params, undefined, opts)
1511
+ .catch((e) => {
1512
+ throw ComAtprotoSyncGetHostStatus.toKnownErr(e)
1513
+ })
1514
+ }
1515
+
1497
1516
  getLatestCommit(
1498
1517
  params?: ComAtprotoSyncGetLatestCommit.QueryParams,
1499
1518
  opts?: ComAtprotoSyncGetLatestCommit.CallOptions,
@@ -1549,6 +1568,18 @@ export class ComAtprotoSyncNS {
1549
1568
  })
1550
1569
  }
1551
1570
 
1571
+ listHosts(
1572
+ params?: ComAtprotoSyncListHosts.QueryParams,
1573
+ opts?: ComAtprotoSyncListHosts.CallOptions,
1574
+ ): Promise<ComAtprotoSyncListHosts.Response> {
1575
+ return this._client.call(
1576
+ 'com.atproto.sync.listHosts',
1577
+ params,
1578
+ undefined,
1579
+ opts,
1580
+ )
1581
+ }
1582
+
1552
1583
  listRepos(
1553
1584
  params?: ComAtprotoSyncListRepos.QueryParams,
1554
1585
  opts?: ComAtprotoSyncListRepos.CallOptions,
@@ -1589,12 +1620,11 @@ export class ComAtprotoSyncNS {
1589
1620
  data?: ComAtprotoSyncRequestCrawl.InputSchema,
1590
1621
  opts?: ComAtprotoSyncRequestCrawl.CallOptions,
1591
1622
  ): Promise<ComAtprotoSyncRequestCrawl.Response> {
1592
- return this._client.call(
1593
- 'com.atproto.sync.requestCrawl',
1594
- opts?.qp,
1595
- data,
1596
- opts,
1597
- )
1623
+ return this._client
1624
+ .call('com.atproto.sync.requestCrawl', opts?.qp, data, opts)
1625
+ .catch((e) => {
1626
+ throw ComAtprotoSyncRequestCrawl.toKnownErr(e)
1627
+ })
1598
1628
  }
1599
1629
  }
1600
1630
 
@@ -1692,11 +1722,11 @@ export class AppBskyNS {
1692
1722
 
1693
1723
  export class AppBskyActorNS {
1694
1724
  _client: XrpcClient
1695
- profile: ProfileRecord
1725
+ profile: AppBskyActorProfileRecord
1696
1726
 
1697
1727
  constructor(client: XrpcClient) {
1698
1728
  this._client = client
1699
- this.profile = new ProfileRecord(client)
1729
+ this.profile = new AppBskyActorProfileRecord(client)
1700
1730
  }
1701
1731
 
1702
1732
  getPreferences(
@@ -1784,7 +1814,7 @@ export class AppBskyActorNS {
1784
1814
  }
1785
1815
  }
1786
1816
 
1787
- export class ProfileRecord {
1817
+ export class AppBskyActorProfileRecord {
1788
1818
  _client: XrpcClient
1789
1819
 
1790
1820
  constructor(client: XrpcClient) {
@@ -1860,21 +1890,21 @@ export class AppBskyEmbedNS {
1860
1890
 
1861
1891
  export class AppBskyFeedNS {
1862
1892
  _client: XrpcClient
1863
- generator: GeneratorRecord
1864
- like: LikeRecord
1865
- post: PostRecord
1866
- postgate: PostgateRecord
1867
- repost: RepostRecord
1868
- threadgate: ThreadgateRecord
1893
+ generator: AppBskyFeedGeneratorRecord
1894
+ like: AppBskyFeedLikeRecord
1895
+ post: AppBskyFeedPostRecord
1896
+ postgate: AppBskyFeedPostgateRecord
1897
+ repost: AppBskyFeedRepostRecord
1898
+ threadgate: AppBskyFeedThreadgateRecord
1869
1899
 
1870
1900
  constructor(client: XrpcClient) {
1871
1901
  this._client = client
1872
- this.generator = new GeneratorRecord(client)
1873
- this.like = new LikeRecord(client)
1874
- this.post = new PostRecord(client)
1875
- this.postgate = new PostgateRecord(client)
1876
- this.repost = new RepostRecord(client)
1877
- this.threadgate = new ThreadgateRecord(client)
1902
+ this.generator = new AppBskyFeedGeneratorRecord(client)
1903
+ this.like = new AppBskyFeedLikeRecord(client)
1904
+ this.post = new AppBskyFeedPostRecord(client)
1905
+ this.postgate = new AppBskyFeedPostgateRecord(client)
1906
+ this.repost = new AppBskyFeedRepostRecord(client)
1907
+ this.threadgate = new AppBskyFeedThreadgateRecord(client)
1878
1908
  }
1879
1909
 
1880
1910
  describeFeedGenerator(
@@ -2072,7 +2102,7 @@ export class AppBskyFeedNS {
2072
2102
  }
2073
2103
  }
2074
2104
 
2075
- export class GeneratorRecord {
2105
+ export class AppBskyFeedGeneratorRecord {
2076
2106
  _client: XrpcClient
2077
2107
 
2078
2108
  constructor(client: XrpcClient) {
@@ -2133,7 +2163,7 @@ export class GeneratorRecord {
2133
2163
  }
2134
2164
  }
2135
2165
 
2136
- export class LikeRecord {
2166
+ export class AppBskyFeedLikeRecord {
2137
2167
  _client: XrpcClient
2138
2168
 
2139
2169
  constructor(client: XrpcClient) {
@@ -2194,7 +2224,7 @@ export class LikeRecord {
2194
2224
  }
2195
2225
  }
2196
2226
 
2197
- export class PostRecord {
2227
+ export class AppBskyFeedPostRecord {
2198
2228
  _client: XrpcClient
2199
2229
 
2200
2230
  constructor(client: XrpcClient) {
@@ -2255,7 +2285,7 @@ export class PostRecord {
2255
2285
  }
2256
2286
  }
2257
2287
 
2258
- export class PostgateRecord {
2288
+ export class AppBskyFeedPostgateRecord {
2259
2289
  _client: XrpcClient
2260
2290
 
2261
2291
  constructor(client: XrpcClient) {
@@ -2316,7 +2346,7 @@ export class PostgateRecord {
2316
2346
  }
2317
2347
  }
2318
2348
 
2319
- export class RepostRecord {
2349
+ export class AppBskyFeedRepostRecord {
2320
2350
  _client: XrpcClient
2321
2351
 
2322
2352
  constructor(client: XrpcClient) {
@@ -2377,7 +2407,7 @@ export class RepostRecord {
2377
2407
  }
2378
2408
  }
2379
2409
 
2380
- export class ThreadgateRecord {
2410
+ export class AppBskyFeedThreadgateRecord {
2381
2411
  _client: XrpcClient
2382
2412
 
2383
2413
  constructor(client: XrpcClient) {
@@ -2444,21 +2474,23 @@ export class ThreadgateRecord {
2444
2474
 
2445
2475
  export class AppBskyGraphNS {
2446
2476
  _client: XrpcClient
2447
- block: BlockRecord
2448
- follow: FollowRecord
2449
- list: ListRecord
2450
- listblock: ListblockRecord
2451
- listitem: ListitemRecord
2452
- starterpack: StarterpackRecord
2477
+ block: AppBskyGraphBlockRecord
2478
+ follow: AppBskyGraphFollowRecord
2479
+ list: AppBskyGraphListRecord
2480
+ listblock: AppBskyGraphListblockRecord
2481
+ listitem: AppBskyGraphListitemRecord
2482
+ starterpack: AppBskyGraphStarterpackRecord
2483
+ verification: AppBskyGraphVerificationRecord
2453
2484
 
2454
2485
  constructor(client: XrpcClient) {
2455
2486
  this._client = client
2456
- this.block = new BlockRecord(client)
2457
- this.follow = new FollowRecord(client)
2458
- this.list = new ListRecord(client)
2459
- this.listblock = new ListblockRecord(client)
2460
- this.listitem = new ListitemRecord(client)
2461
- this.starterpack = new StarterpackRecord(client)
2487
+ this.block = new AppBskyGraphBlockRecord(client)
2488
+ this.follow = new AppBskyGraphFollowRecord(client)
2489
+ this.list = new AppBskyGraphListRecord(client)
2490
+ this.listblock = new AppBskyGraphListblockRecord(client)
2491
+ this.listitem = new AppBskyGraphListitemRecord(client)
2492
+ this.starterpack = new AppBskyGraphStarterpackRecord(client)
2493
+ this.verification = new AppBskyGraphVerificationRecord(client)
2462
2494
  }
2463
2495
 
2464
2496
  getActorStarterPacks(
@@ -2683,7 +2715,7 @@ export class AppBskyGraphNS {
2683
2715
  }
2684
2716
  }
2685
2717
 
2686
- export class BlockRecord {
2718
+ export class AppBskyGraphBlockRecord {
2687
2719
  _client: XrpcClient
2688
2720
 
2689
2721
  constructor(client: XrpcClient) {
@@ -2744,7 +2776,7 @@ export class BlockRecord {
2744
2776
  }
2745
2777
  }
2746
2778
 
2747
- export class FollowRecord {
2779
+ export class AppBskyGraphFollowRecord {
2748
2780
  _client: XrpcClient
2749
2781
 
2750
2782
  constructor(client: XrpcClient) {
@@ -2805,7 +2837,7 @@ export class FollowRecord {
2805
2837
  }
2806
2838
  }
2807
2839
 
2808
- export class ListRecord {
2840
+ export class AppBskyGraphListRecord {
2809
2841
  _client: XrpcClient
2810
2842
 
2811
2843
  constructor(client: XrpcClient) {
@@ -2866,7 +2898,7 @@ export class ListRecord {
2866
2898
  }
2867
2899
  }
2868
2900
 
2869
- export class ListblockRecord {
2901
+ export class AppBskyGraphListblockRecord {
2870
2902
  _client: XrpcClient
2871
2903
 
2872
2904
  constructor(client: XrpcClient) {
@@ -2931,7 +2963,7 @@ export class ListblockRecord {
2931
2963
  }
2932
2964
  }
2933
2965
 
2934
- export class ListitemRecord {
2966
+ export class AppBskyGraphListitemRecord {
2935
2967
  _client: XrpcClient
2936
2968
 
2937
2969
  constructor(client: XrpcClient) {
@@ -2992,7 +3024,7 @@ export class ListitemRecord {
2992
3024
  }
2993
3025
  }
2994
3026
 
2995
- export class StarterpackRecord {
3027
+ export class AppBskyGraphStarterpackRecord {
2996
3028
  _client: XrpcClient
2997
3029
 
2998
3030
  constructor(client: XrpcClient) {
@@ -3057,13 +3089,78 @@ export class StarterpackRecord {
3057
3089
  }
3058
3090
  }
3059
3091
 
3092
+ export class AppBskyGraphVerificationRecord {
3093
+ _client: XrpcClient
3094
+
3095
+ constructor(client: XrpcClient) {
3096
+ this._client = client
3097
+ }
3098
+
3099
+ async list(
3100
+ params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
3101
+ ): Promise<{
3102
+ cursor?: string
3103
+ records: { uri: string; value: AppBskyGraphVerification.Record }[]
3104
+ }> {
3105
+ const res = await this._client.call('com.atproto.repo.listRecords', {
3106
+ collection: 'app.bsky.graph.verification',
3107
+ ...params,
3108
+ })
3109
+ return res.data
3110
+ }
3111
+
3112
+ async get(
3113
+ params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
3114
+ ): Promise<{
3115
+ uri: string
3116
+ cid: string
3117
+ value: AppBskyGraphVerification.Record
3118
+ }> {
3119
+ const res = await this._client.call('com.atproto.repo.getRecord', {
3120
+ collection: 'app.bsky.graph.verification',
3121
+ ...params,
3122
+ })
3123
+ return res.data
3124
+ }
3125
+
3126
+ async create(
3127
+ params: OmitKey<
3128
+ ComAtprotoRepoCreateRecord.InputSchema,
3129
+ 'collection' | 'record'
3130
+ >,
3131
+ record: Un$Typed<AppBskyGraphVerification.Record>,
3132
+ headers?: Record<string, string>,
3133
+ ): Promise<{ uri: string; cid: string }> {
3134
+ const collection = 'app.bsky.graph.verification'
3135
+ const res = await this._client.call(
3136
+ 'com.atproto.repo.createRecord',
3137
+ undefined,
3138
+ { collection, ...params, record: { ...record, $type: collection } },
3139
+ { encoding: 'application/json', headers },
3140
+ )
3141
+ return res.data
3142
+ }
3143
+
3144
+ async delete(
3145
+ params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
3146
+ headers?: Record<string, string>,
3147
+ ): Promise<void> {
3148
+ await this._client.call(
3149
+ 'com.atproto.repo.deleteRecord',
3150
+ undefined,
3151
+ { collection: 'app.bsky.graph.verification', ...params },
3152
+ { headers },
3153
+ )
3154
+ }
3155
+ }
3156
+
3060
3157
  export class AppBskyLabelerNS {
3061
3158
  _client: XrpcClient
3062
- service: ServiceRecord
3159
+ service: AppBskyLabelerServiceRecord
3063
3160
 
3064
3161
  constructor(client: XrpcClient) {
3065
3162
  this._client = client
3066
- this.service = new ServiceRecord(client)
3163
+ this.service = new AppBskyLabelerServiceRecord(client)
3067
3164
  }
3068
3165
 
3069
3166
  getServices(
@@ -3079,7 +3176,7 @@ export class AppBskyLabelerNS {
3079
3176
  }
3080
3177
  }
3081
3178
 
3082
- export class ServiceRecord {
3179
+ export class AppBskyLabelerServiceRecord {
3083
3180
  _client: XrpcClient
3084
3181
 
3085
3182
  constructor(client: XrpcClient) {
@@ -3492,11 +3589,11 @@ export class ChatBskyNS {
3492
3589
 
3493
3590
  export class ChatBskyActorNS {
3494
3591
  _client: XrpcClient
3495
- declaration: DeclarationRecord
3592
+ declaration: ChatBskyActorDeclarationRecord
3496
3593
 
3497
3594
  constructor(client: XrpcClient) {
3498
3595
  this._client = client
3499
- this.declaration = new DeclarationRecord(client)
3596
+ this.declaration = new ChatBskyActorDeclarationRecord(client)
3500
3597
  }
3501
3598
 
3502
3599
  deleteAccount(
@@ -3524,7 +3621,7 @@ export class ChatBskyActorNS {
3524
3621
  }
3525
3622
  }
3526
3623
 
3527
- export class DeclarationRecord {
3624
+ export class ChatBskyActorDeclarationRecord {
3528
3625
  _client: XrpcClient
3529
3626
 
3530
3627
  constructor(client: XrpcClient) {
@@ -3365,6 +3365,16 @@ export const schemaDict = {
3365
3365
  },
3366
3366
  },
3367
3367
  },
3368
+ ComAtprotoSyncDefs: {
3369
+ lexicon: 1,
3370
+ id: 'com.atproto.sync.defs',
3371
+ defs: {
3372
+ hostStatus: {
3373
+ type: 'string',
3374
+ knownValues: ['active', 'idle', 'offline', 'throttled', 'banned'],
3375
+ },
3376
+ },
3377
+ },
3368
3378
  ComAtprotoSyncGetBlob: {
3369
3379
  lexicon: 1,
3370
3380
  id: 'com.atproto.sync.getBlob',
@@ -3525,6 +3535,59 @@ export const schemaDict = {
3525
3535
  },
3526
3536
  },
3527
3537
  },
3538
+ ComAtprotoSyncGetHostStatus: {
3539
+ lexicon: 1,
3540
+ id: 'com.atproto.sync.getHostStatus',
3541
+ defs: {
3542
+ main: {
3543
+ type: 'query',
3544
+ description:
3545
+ 'Returns information about a specified upstream host, as consumed by the server. Implemented by relays.',
3546
+ parameters: {
3547
+ type: 'params',
3548
+ required: ['hostname'],
3549
+ properties: {
3550
+ hostname: {
3551
+ type: 'string',
3552
+ description:
3553
+ 'Hostname of the host (eg, PDS or relay) being queried.',
3554
+ },
3555
+ },
3556
+ },
3557
+ output: {
3558
+ encoding: 'application/json',
3559
+ schema: {
3560
+ type: 'object',
3561
+ required: ['hostname'],
3562
+ properties: {
3563
+ hostname: {
3564
+ type: 'string',
3565
+ },
3566
+ seq: {
3567
+ type: 'integer',
3568
+ description:
3569
+ 'Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).',
3570
+ },
3571
+ accountCount: {
3572
+ type: 'integer',
3573
+ description:
3574
+ 'Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts.',
3575
+ },
3576
+ status: {
3577
+ type: 'ref',
3578
+ ref: 'lex:com.atproto.sync.defs#hostStatus',
3579
+ },
3580
+ },
3581
+ },
3582
+ },
3583
+ errors: [
3584
+ {
3585
+ name: 'HostNotFound',
3586
+ },
3587
+ ],
3588
+ },
3589
+ },
3590
+ },
3528
3591
  ComAtprotoSyncGetLatestCommit: {
3529
3592
  lexicon: 1,
3530
3593
  id: 'com.atproto.sync.getLatestCommit',
@@ -3805,6 +3868,74 @@ export const schemaDict = {
3805
3868
  },
3806
3869
  },
3807
3870
  },
3871
+ ComAtprotoSyncListHosts: {
3872
+ lexicon: 1,
3873
+ id: 'com.atproto.sync.listHosts',
3874
+ defs: {
3875
+ main: {
3876
+ type: 'query',
3877
+ description:
3878
+ 'Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays.',
3879
+ parameters: {
3880
+ type: 'params',
3881
+ properties: {
3882
+ limit: {
3883
+ type: 'integer',
3884
+ minimum: 1,
3885
+ maximum: 1000,
3886
+ default: 200,
3887
+ },
3888
+ cursor: {
3889
+ type: 'string',
3890
+ },
3891
+ },
3892
+ },
3893
+ output: {
3894
+ encoding: 'application/json',
3895
+ schema: {
3896
+ type: 'object',
3897
+ required: ['hosts'],
3898
+ properties: {
3899
+ cursor: {
3900
+ type: 'string',
3901
+ },
3902
+ hosts: {
3903
+ type: 'array',
3904
+ items: {
3905
+ type: 'ref',
3906
+ ref: 'lex:com.atproto.sync.listHosts#host',
3907
+ },
3908
+ description:
3909
+ 'Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first.',
3910
+ },
3911
+ },
3912
+ },
3913
+ },
3914
+ },
3915
+ host: {
3916
+ type: 'object',
3917
+ required: ['hostname'],
3918
+ properties: {
3919
+ hostname: {
3920
+ type: 'string',
3921
+ description: 'hostname of server; not a URL (no scheme)',
3922
+ },
3923
+ seq: {
3924
+ type: 'integer',
3925
+ description:
3926
+ 'Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).',
3927
+ },
3928
+ accountCount: {
3929
+ type: 'integer',
3930
+ },
3931
+ status: {
3932
+ type: 'ref',
3933
+ ref: 'lex:com.atproto.sync.defs#hostStatus',
3934
+ },
3935
+ },
3936
+ },
3937
+ },
3938
+ },
3808
3939
  ComAtprotoSyncListRepos: {
3809
3940
  lexicon: 1,
3810
3941
  id: 'com.atproto.sync.listRepos',
@@ -3992,6 +4123,11 @@ export const schemaDict = {
3992
4123
  },
3993
4124
  },
3994
4125
  },
4126
+ errors: [
4127
+ {
4128
+ name: 'HostBanned',
4129
+ },
4130
+ ],
3995
4131
  },
3996
4132
  },
3997
4133
  },
@@ -9105,6 +9241,45 @@ export const schemaDict = {
9105
9241
  },
9106
9242
  },
9107
9243
  },
9244
+ AppBskyGraphVerification: {
9245
+ lexicon: 1,
9246
+ id: 'app.bsky.graph.verification',
9247
+ defs: {
9248
+ main: {
9249
+ type: 'record',
9250
+ description:
9251
+ '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.',
9252
+ key: 'tid',
9253
+ record: {
9254
+ type: 'object',
9255
+ required: ['subject', 'handle', 'displayName', 'createdAt'],
9256
+ properties: {
9257
+ subject: {
9258
+ description: 'DID of the subject the verification applies to.',
9259
+ type: 'string',
9260
+ format: 'did',
9261
+ },
9262
+ handle: {
9263
+ description:
9264
+ '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.',
9265
+ type: 'string',
9266
+ format: 'handle',
9267
+ },
9268
+ displayName: {
9269
+ description:
9270
+ '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.',
9271
+ type: 'string',
9272
+ },
9273
+ createdAt: {
9274
+ description: 'Date of when the verification was created.',
9275
+ type: 'string',
9276
+ format: 'datetime',
9277
+ },
9278
+ },
9279
+ },
9280
+ },
9281
+ },
9282
+ },
9108
9283
  AppBskyLabelerDefs: {
9109
9284
  lexicon: 1,
9110
9285
  id: 'app.bsky.labeler.defs',
@@ -10928,7 +11103,7 @@ export const schemaDict = {
10928
11103
  value: {
10929
11104
  type: 'string',
10930
11105
  minLength: 1,
10931
- maxLength: 32,
11106
+ maxLength: 64,
10932
11107
  minGraphemes: 1,
10933
11108
  maxGraphemes: 1,
10934
11109
  },
@@ -11714,7 +11889,7 @@ export const schemaDict = {
11714
11889
  value: {
11715
11890
  type: 'string',
11716
11891
  minLength: 1,
11717
- maxLength: 32,
11892
+ maxLength: 64,
11718
11893
  minGraphemes: 1,
11719
11894
  maxGraphemes: 1,
11720
11895
  },
@@ -15315,15 +15490,18 @@ export const ids = {
15315
15490
  ComAtprotoServerResetPassword: 'com.atproto.server.resetPassword',
15316
15491
  ComAtprotoServerRevokeAppPassword: 'com.atproto.server.revokeAppPassword',
15317
15492
  ComAtprotoServerUpdateEmail: 'com.atproto.server.updateEmail',
15493
+ ComAtprotoSyncDefs: 'com.atproto.sync.defs',
15318
15494
  ComAtprotoSyncGetBlob: 'com.atproto.sync.getBlob',
15319
15495
  ComAtprotoSyncGetBlocks: 'com.atproto.sync.getBlocks',
15320
15496
  ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout',
15321
15497
  ComAtprotoSyncGetHead: 'com.atproto.sync.getHead',
15498
+ ComAtprotoSyncGetHostStatus: 'com.atproto.sync.getHostStatus',
15322
15499
  ComAtprotoSyncGetLatestCommit: 'com.atproto.sync.getLatestCommit',
15323
15500
  ComAtprotoSyncGetRecord: 'com.atproto.sync.getRecord',
15324
15501
  ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo',
15325
15502
  ComAtprotoSyncGetRepoStatus: 'com.atproto.sync.getRepoStatus',
15326
15503
  ComAtprotoSyncListBlobs: 'com.atproto.sync.listBlobs',
15504
+ ComAtprotoSyncListHosts: 'com.atproto.sync.listHosts',
15327
15505
  ComAtprotoSyncListRepos: 'com.atproto.sync.listRepos',
15328
15506
  ComAtprotoSyncListReposByCollection: 'com.atproto.sync.listReposByCollection',
15329
15507
  ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
@@ -15403,6 +15581,7 @@ export const ids = {
15403
15581
  AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
15404
15582
  AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
15405
15583
  AppBskyGraphUnmuteThread: 'app.bsky.graph.unmuteThread',
15584
+ AppBskyGraphVerification: 'app.bsky.graph.verification',
15406
15585
  AppBskyLabelerDefs: 'app.bsky.labeler.defs',
15407
15586
  AppBskyLabelerGetServices: 'app.bsky.labeler.getServices',
15408
15587
  AppBskyLabelerService: 'app.bsky.labeler.service',