@atcute/client 3.0.0 → 3.0.1

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.
@@ -292,6 +292,17 @@ export declare namespace ComAtprotoAdminUpdateAccountPassword {
292
292
  }
293
293
  type Output = undefined;
294
294
  }
295
+ /** Administrative action to update an account's signing key in their Did document. */
296
+ export declare namespace ComAtprotoAdminUpdateAccountSigningKey {
297
+ interface Params {
298
+ }
299
+ interface Input {
300
+ did: At.Did;
301
+ /** Did-key formatted public key */
302
+ signingKey: At.Did;
303
+ }
304
+ type Output = undefined;
305
+ }
295
306
  /** Update the service-specific admin status of a subject (account, record, or blob). */
296
307
  export declare namespace ComAtprotoAdminUpdateSubjectStatus {
297
308
  interface Params {
@@ -1270,6 +1281,9 @@ export declare namespace ComAtprotoServerUpdateEmail {
1270
1281
  TokenRequired: {};
1271
1282
  }
1272
1283
  }
1284
+ export declare namespace ComAtprotoSyncDefs {
1285
+ type HostStatus = 'active' | 'banned' | 'idle' | 'offline' | 'throttled' | (string & {});
1286
+ }
1273
1287
  /** Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS. */
1274
1288
  export declare namespace ComAtprotoSyncGetBlob {
1275
1289
  interface Params {
@@ -1334,6 +1348,25 @@ export declare namespace ComAtprotoSyncGetHead {
1334
1348
  HeadNotFound: {};
1335
1349
  }
1336
1350
  }
1351
+ /** Returns information about a specified upstream host, as consumed by the server. Implemented by relays. */
1352
+ export declare namespace ComAtprotoSyncGetHostStatus {
1353
+ interface Params {
1354
+ /** Hostname of the host (eg, PDS or relay) being queried. */
1355
+ hostname: string;
1356
+ }
1357
+ type Input = undefined;
1358
+ interface Output {
1359
+ hostname: string;
1360
+ /** Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts. */
1361
+ accountCount?: number;
1362
+ /** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */
1363
+ seq?: number;
1364
+ status?: ComAtprotoSyncDefs.HostStatus;
1365
+ }
1366
+ interface Errors {
1367
+ HostNotFound: {};
1368
+ }
1369
+ }
1337
1370
  /** Get the current commit CID & revision of the specified repo. Does not require auth. */
1338
1371
  export declare namespace ComAtprotoSyncGetLatestCommit {
1339
1372
  interface Params {
@@ -1434,6 +1467,33 @@ export declare namespace ComAtprotoSyncListBlobs {
1434
1467
  RepoDeactivated: {};
1435
1468
  }
1436
1469
  }
1470
+ /** Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays. */
1471
+ export declare namespace ComAtprotoSyncListHosts {
1472
+ interface Params {
1473
+ cursor?: string;
1474
+ /**
1475
+ * Minimum: 1 \
1476
+ * Maximum: 1000
1477
+ * @default 200
1478
+ */
1479
+ limit?: number;
1480
+ }
1481
+ type Input = undefined;
1482
+ interface Output {
1483
+ /** Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first. */
1484
+ hosts: Host[];
1485
+ cursor?: string;
1486
+ }
1487
+ interface Host {
1488
+ [Brand.Type]?: 'com.atproto.sync.listHosts#host';
1489
+ /** hostname of server; not a URL (no scheme) */
1490
+ hostname: string;
1491
+ accountCount?: number;
1492
+ /** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */
1493
+ seq?: number;
1494
+ status?: ComAtprotoSyncDefs.HostStatus;
1495
+ }
1496
+ }
1437
1497
  /** Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay. */
1438
1498
  export declare namespace ComAtprotoSyncListRepos {
1439
1499
  interface Params {
@@ -1503,6 +1563,9 @@ export declare namespace ComAtprotoSyncRequestCrawl {
1503
1563
  hostname: string;
1504
1564
  }
1505
1565
  type Output = undefined;
1566
+ interface Errors {
1567
+ HostBanned: {};
1568
+ }
1506
1569
  }
1507
1570
  export declare namespace ComAtprotoSyncSubscribeRepos {
1508
1571
  /** Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active. */
@@ -1829,6 +1892,14 @@ export declare interface Queries {
1829
1892
  json: ComAtprotoSyncGetHead.Output;
1830
1893
  };
1831
1894
  };
1895
+ 'com.atproto.sync.getHostStatus': {
1896
+ params: ComAtprotoSyncGetHostStatus.Params;
1897
+ /** @deprecated */
1898
+ output: ComAtprotoSyncGetHostStatus.Output;
1899
+ response: {
1900
+ json: ComAtprotoSyncGetHostStatus.Output;
1901
+ };
1902
+ };
1832
1903
  'com.atproto.sync.getLatestCommit': {
1833
1904
  params: ComAtprotoSyncGetLatestCommit.Params;
1834
1905
  /** @deprecated */
@@ -1865,6 +1936,14 @@ export declare interface Queries {
1865
1936
  json: ComAtprotoSyncListBlobs.Output;
1866
1937
  };
1867
1938
  };
1939
+ 'com.atproto.sync.listHosts': {
1940
+ params: ComAtprotoSyncListHosts.Params;
1941
+ /** @deprecated */
1942
+ output: ComAtprotoSyncListHosts.Output;
1943
+ response: {
1944
+ json: ComAtprotoSyncListHosts.Output;
1945
+ };
1946
+ };
1868
1947
  'com.atproto.sync.listRepos': {
1869
1948
  params: ComAtprotoSyncListRepos.Params;
1870
1949
  /** @deprecated */
@@ -1927,6 +2006,9 @@ export declare interface Procedures {
1927
2006
  'com.atproto.admin.updateAccountPassword': {
1928
2007
  input: ComAtprotoAdminUpdateAccountPassword.Input;
1929
2008
  };
2009
+ 'com.atproto.admin.updateAccountSigningKey': {
2010
+ input: ComAtprotoAdminUpdateAccountSigningKey.Input;
2011
+ };
1930
2012
  'com.atproto.admin.updateSubjectStatus': {
1931
2013
  input: ComAtprotoAdminUpdateSubjectStatus.Input;
1932
2014
  /** @deprecated */
package/lib/lexicons.ts CHANGED
@@ -316,6 +316,17 @@ export declare namespace ComAtprotoAdminUpdateAccountPassword {
316
316
  type Output = undefined;
317
317
  }
318
318
 
319
+ /** Administrative action to update an account's signing key in their Did document. */
320
+ export declare namespace ComAtprotoAdminUpdateAccountSigningKey {
321
+ interface Params {}
322
+ interface Input {
323
+ did: At.Did;
324
+ /** Did-key formatted public key */
325
+ signingKey: At.Did;
326
+ }
327
+ type Output = undefined;
328
+ }
329
+
319
330
  /** Update the service-specific admin status of a subject (account, record, or blob). */
320
331
  export declare namespace ComAtprotoAdminUpdateSubjectStatus {
321
332
  interface Params {}
@@ -1336,6 +1347,10 @@ export declare namespace ComAtprotoServerUpdateEmail {
1336
1347
  }
1337
1348
  }
1338
1349
 
1350
+ export declare namespace ComAtprotoSyncDefs {
1351
+ type HostStatus = 'active' | 'banned' | 'idle' | 'offline' | 'throttled' | (string & {});
1352
+ }
1353
+
1339
1354
  /** Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS. */
1340
1355
  export declare namespace ComAtprotoSyncGetBlob {
1341
1356
  interface Params {
@@ -1404,6 +1419,26 @@ export declare namespace ComAtprotoSyncGetHead {
1404
1419
  }
1405
1420
  }
1406
1421
 
1422
+ /** Returns information about a specified upstream host, as consumed by the server. Implemented by relays. */
1423
+ export declare namespace ComAtprotoSyncGetHostStatus {
1424
+ interface Params {
1425
+ /** Hostname of the host (eg, PDS or relay) being queried. */
1426
+ hostname: string;
1427
+ }
1428
+ type Input = undefined;
1429
+ interface Output {
1430
+ hostname: string;
1431
+ /** Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts. */
1432
+ accountCount?: number;
1433
+ /** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */
1434
+ seq?: number;
1435
+ status?: ComAtprotoSyncDefs.HostStatus;
1436
+ }
1437
+ interface Errors {
1438
+ HostNotFound: {};
1439
+ }
1440
+ }
1441
+
1407
1442
  /** Get the current commit CID & revision of the specified repo. Does not require auth. */
1408
1443
  export declare namespace ComAtprotoSyncGetLatestCommit {
1409
1444
  interface Params {
@@ -1516,6 +1551,34 @@ export declare namespace ComAtprotoSyncListBlobs {
1516
1551
  }
1517
1552
  }
1518
1553
 
1554
+ /** Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays. */
1555
+ export declare namespace ComAtprotoSyncListHosts {
1556
+ interface Params {
1557
+ cursor?: string;
1558
+ /**
1559
+ * Minimum: 1 \
1560
+ * Maximum: 1000
1561
+ * @default 200
1562
+ */
1563
+ limit?: number;
1564
+ }
1565
+ type Input = undefined;
1566
+ interface Output {
1567
+ /** Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first. */
1568
+ hosts: Host[];
1569
+ cursor?: string;
1570
+ }
1571
+ interface Host {
1572
+ [Brand.Type]?: 'com.atproto.sync.listHosts#host';
1573
+ /** hostname of server; not a URL (no scheme) */
1574
+ hostname: string;
1575
+ accountCount?: number;
1576
+ /** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */
1577
+ seq?: number;
1578
+ status?: ComAtprotoSyncDefs.HostStatus;
1579
+ }
1580
+ }
1581
+
1519
1582
  /** Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay. */
1520
1583
  export declare namespace ComAtprotoSyncListRepos {
1521
1584
  interface Params {
@@ -1593,6 +1656,9 @@ export declare namespace ComAtprotoSyncRequestCrawl {
1593
1656
  hostname: string;
1594
1657
  }
1595
1658
  type Output = undefined;
1659
+ interface Errors {
1660
+ HostBanned: {};
1661
+ }
1596
1662
  }
1597
1663
 
1598
1664
  export declare namespace ComAtprotoSyncSubscribeRepos {
@@ -1887,6 +1953,12 @@ export declare interface Queries {
1887
1953
  output: ComAtprotoSyncGetHead.Output;
1888
1954
  response: { json: ComAtprotoSyncGetHead.Output };
1889
1955
  };
1956
+ 'com.atproto.sync.getHostStatus': {
1957
+ params: ComAtprotoSyncGetHostStatus.Params;
1958
+ /** @deprecated */
1959
+ output: ComAtprotoSyncGetHostStatus.Output;
1960
+ response: { json: ComAtprotoSyncGetHostStatus.Output };
1961
+ };
1890
1962
  'com.atproto.sync.getLatestCommit': {
1891
1963
  params: ComAtprotoSyncGetLatestCommit.Params;
1892
1964
  /** @deprecated */
@@ -1917,6 +1989,12 @@ export declare interface Queries {
1917
1989
  output: ComAtprotoSyncListBlobs.Output;
1918
1990
  response: { json: ComAtprotoSyncListBlobs.Output };
1919
1991
  };
1992
+ 'com.atproto.sync.listHosts': {
1993
+ params: ComAtprotoSyncListHosts.Params;
1994
+ /** @deprecated */
1995
+ output: ComAtprotoSyncListHosts.Output;
1996
+ response: { json: ComAtprotoSyncListHosts.Output };
1997
+ };
1920
1998
  'com.atproto.sync.listRepos': {
1921
1999
  params: ComAtprotoSyncListRepos.Params;
1922
2000
  /** @deprecated */
@@ -1970,6 +2048,9 @@ export declare interface Procedures {
1970
2048
  'com.atproto.admin.updateAccountPassword': {
1971
2049
  input: ComAtprotoAdminUpdateAccountPassword.Input;
1972
2050
  };
2051
+ 'com.atproto.admin.updateAccountSigningKey': {
2052
+ input: ComAtprotoAdminUpdateAccountSigningKey.Input;
2053
+ };
1973
2054
  'com.atproto.admin.updateSubjectStatus': {
1974
2055
  input: ComAtprotoAdminUpdateSubjectStatus.Input;
1975
2056
  /** @deprecated */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/client",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "description": "lightweight and cute API client for AT Protocol",
6
6
  "license": "MIT",
7
7
  "repository": {