@atproto/api 0.20.42 → 0.20.44

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 (30) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/agent.d.ts.map +1 -1
  3. package/dist/agent.js +10 -3
  4. package/dist/agent.js.map +1 -1
  5. package/dist/client/index.d.ts +31 -0
  6. package/dist/client/index.d.ts.map +1 -1
  7. package/dist/client/index.js +40 -0
  8. package/dist/client/index.js.map +1 -1
  9. package/dist/client/lexicons.d.ts +148 -0
  10. package/dist/client/lexicons.d.ts.map +1 -1
  11. package/dist/client/lexicons.js +76 -0
  12. package/dist/client/lexicons.js.map +1 -1
  13. package/dist/client/types/app/bsky/actor/defs.d.ts +2 -0
  14. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  15. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  16. package/dist/client/types/app/bsky/graph/defs.d.ts +4 -0
  17. package/dist/client/types/app/bsky/graph/defs.d.ts.map +1 -1
  18. package/dist/client/types/app/bsky/graph/defs.js.map +1 -1
  19. package/dist/client/types/app/bsky/graph/referencelistoptout.d.ts +15 -0
  20. package/dist/client/types/app/bsky/graph/referencelistoptout.d.ts.map +1 -0
  21. package/dist/client/types/app/bsky/graph/referencelistoptout.js +18 -0
  22. package/dist/client/types/app/bsky/graph/referencelistoptout.js.map +1 -0
  23. package/dist/client/types/tools/ozone/moderation/getAccountPreferences.d.ts +23 -0
  24. package/dist/client/types/tools/ozone/moderation/getAccountPreferences.d.ts.map +1 -0
  25. package/dist/client/types/tools/ozone/moderation/getAccountPreferences.js +14 -0
  26. package/dist/client/types/tools/ozone/moderation/getAccountPreferences.js.map +1 -0
  27. package/dist/types.d.ts +2 -0
  28. package/dist/types.d.ts.map +1 -1
  29. package/dist/types.js.map +1 -1
  30. package/package.json +7 -7
@@ -97,6 +97,7 @@ import * as AppBskyGraphListitem from './types/app/bsky/graph/listitem.js';
97
97
  import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor.js';
98
98
  import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList.js';
99
99
  import * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread.js';
100
+ import * as AppBskyGraphReferencelistoptout from './types/app/bsky/graph/referencelistoptout.js';
100
101
  import * as AppBskyGraphSearchStarterPacks from './types/app/bsky/graph/searchStarterPacks.js';
101
102
  import * as AppBskyGraphSearchStarterPacksV2 from './types/app/bsky/graph/searchStarterPacksV2.js';
102
103
  import * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack.js';
@@ -322,6 +323,7 @@ import * as ToolsOzoneHostingGetAccountHistory from './types/tools/ozone/hosting
322
323
  import * as ToolsOzoneModerationCancelScheduledActions from './types/tools/ozone/moderation/cancelScheduledActions.js';
323
324
  import * as ToolsOzoneModerationDefs from './types/tools/ozone/moderation/defs.js';
324
325
  import * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent.js';
326
+ import * as ToolsOzoneModerationGetAccountPreferences from './types/tools/ozone/moderation/getAccountPreferences.js';
325
327
  import * as ToolsOzoneModerationGetAccountTimeline from './types/tools/ozone/moderation/getAccountTimeline.js';
326
328
  import * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent.js';
327
329
  import * as ToolsOzoneModerationGetRecord from './types/tools/ozone/moderation/getRecord.js';
@@ -482,6 +484,7 @@ export * as AppBskyGraphListitem from './types/app/bsky/graph/listitem.js';
482
484
  export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor.js';
483
485
  export * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList.js';
484
486
  export * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread.js';
487
+ export * as AppBskyGraphReferencelistoptout from './types/app/bsky/graph/referencelistoptout.js';
485
488
  export * as AppBskyGraphSearchStarterPacks from './types/app/bsky/graph/searchStarterPacks.js';
486
489
  export * as AppBskyGraphSearchStarterPacksV2 from './types/app/bsky/graph/searchStarterPacksV2.js';
487
490
  export * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack.js';
@@ -707,6 +710,7 @@ export * as ToolsOzoneHostingGetAccountHistory from './types/tools/ozone/hosting
707
710
  export * as ToolsOzoneModerationCancelScheduledActions from './types/tools/ozone/moderation/cancelScheduledActions.js';
708
711
  export * as ToolsOzoneModerationDefs from './types/tools/ozone/moderation/defs.js';
709
712
  export * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent.js';
713
+ export * as ToolsOzoneModerationGetAccountPreferences from './types/tools/ozone/moderation/getAccountPreferences.js';
710
714
  export * as ToolsOzoneModerationGetAccountTimeline from './types/tools/ozone/moderation/getAccountTimeline.js';
711
715
  export * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent.js';
712
716
  export * as ToolsOzoneModerationGetRecord from './types/tools/ozone/moderation/getRecord.js';
@@ -1469,6 +1473,7 @@ export class AppBskyGraphNS {
1469
1473
  this.list = new AppBskyGraphListRecord(client);
1470
1474
  this.listblock = new AppBskyGraphListblockRecord(client);
1471
1475
  this.listitem = new AppBskyGraphListitemRecord(client);
1476
+ this.referencelistoptout = new AppBskyGraphReferencelistoptoutRecord(client);
1472
1477
  this.starterpack = new AppBskyGraphStarterpackRecord(client);
1473
1478
  this.verification = new AppBskyGraphVerificationRecord(client);
1474
1479
  }
@@ -1709,6 +1714,38 @@ export class AppBskyGraphListitemRecord {
1709
1714
  await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.listitem', ...params }, { headers });
1710
1715
  }
1711
1716
  }
1717
+ export class AppBskyGraphReferencelistoptoutRecord {
1718
+ constructor(client) {
1719
+ this._client = client;
1720
+ }
1721
+ async list(params) {
1722
+ const res = await this._client.call('com.atproto.repo.listRecords', {
1723
+ collection: 'app.bsky.graph.referencelistoptout',
1724
+ ...params,
1725
+ });
1726
+ return res.data;
1727
+ }
1728
+ async get(params) {
1729
+ const res = await this._client.call('com.atproto.repo.getRecord', {
1730
+ collection: 'app.bsky.graph.referencelistoptout',
1731
+ ...params,
1732
+ });
1733
+ return res.data;
1734
+ }
1735
+ async create(params, record, headers) {
1736
+ const collection = 'app.bsky.graph.referencelistoptout';
1737
+ const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
1738
+ return res.data;
1739
+ }
1740
+ async put(params, record, headers) {
1741
+ const collection = 'app.bsky.graph.referencelistoptout';
1742
+ const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
1743
+ return res.data;
1744
+ }
1745
+ async delete(params, headers) {
1746
+ await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.referencelistoptout', ...params }, { headers });
1747
+ }
1748
+ }
1712
1749
  export class AppBskyGraphStarterpackRecord {
1713
1750
  constructor(client) {
1714
1751
  this._client = client;
@@ -3017,6 +3054,9 @@ export class ToolsOzoneModerationNS {
3017
3054
  throw ToolsOzoneModerationEmitEvent.toKnownErr(e);
3018
3055
  });
3019
3056
  }
3057
+ getAccountPreferences(params, opts) {
3058
+ return this._client.call('tools.ozone.moderation.getAccountPreferences', params, undefined, opts);
3059
+ }
3020
3060
  getAccountTimeline(params, opts) {
3021
3061
  return this._client
3022
3062
  .call('tools.ozone.moderation.getAccountTimeline', params, undefined, opts)