@atproto/api 0.24.3 → 0.26.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 (34) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/client/index.d.ts +28 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +35 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +498 -28
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +253 -14
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/actor/defs.d.ts +16 -0
  11. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/actor/defs.js +7 -0
  13. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  14. package/dist/client/types/app/bsky/actor/link.d.ts +24 -0
  15. package/dist/client/types/app/bsky/actor/link.d.ts.map +1 -0
  16. package/dist/client/types/app/bsky/actor/link.js +18 -0
  17. package/dist/client/types/app/bsky/actor/link.js.map +1 -0
  18. package/dist/client/types/app/bsky/actor/profile.d.ts +2 -0
  19. package/dist/client/types/app/bsky/actor/profile.d.ts.map +1 -1
  20. package/dist/client/types/app/bsky/actor/profile.js.map +1 -1
  21. package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts +11 -4
  22. package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -1
  23. package/dist/client/types/app/bsky/embed/getEmbedExternalView.js.map +1 -1
  24. package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts +49 -2
  25. package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts.map +1 -1
  26. package/dist/client/types/app/bsky/notification/getGroupedNotifications.js +42 -0
  27. package/dist/client/types/app/bsky/notification/getGroupedNotifications.js.map +1 -1
  28. package/dist/client/types/tools/ozone/inbox/defs.d.ts +7 -1
  29. package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
  30. package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
  31. package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts +6 -1
  32. package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts.map +1 -1
  33. package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js.map +1 -1
  34. package/package.json +2 -2
@@ -11,6 +11,7 @@ import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferenc
11
11
  import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile.js';
12
12
  import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles.js';
13
13
  import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions.js';
14
+ import * as AppBskyActorLink from './types/app/bsky/actor/link.js';
14
15
  import * as AppBskyActorProfile from './types/app/bsky/actor/profile.js';
15
16
  import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences.js';
16
17
  import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors.js';
@@ -413,6 +414,7 @@ export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferenc
413
414
  export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile.js';
414
415
  export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles.js';
415
416
  export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions.js';
417
+ export * as AppBskyActorLink from './types/app/bsky/actor/link.js';
416
418
  export * as AppBskyActorProfile from './types/app/bsky/actor/profile.js';
417
419
  export * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences.js';
418
420
  export * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors.js';
@@ -941,6 +943,7 @@ export class AppBskyActorNS {
941
943
  this._client = client;
942
944
  this.contentVisibilityDeclaration =
943
945
  new AppBskyActorContentVisibilityDeclarationRecord(client);
946
+ this.link = new AppBskyActorLinkRecord(client);
944
947
  this.profile = new AppBskyActorProfileRecord(client);
945
948
  this.status = new AppBskyActorStatusRecord(client);
946
949
  }
@@ -1003,6 +1006,38 @@ export class AppBskyActorContentVisibilityDeclarationRecord {
1003
1006
  await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.actor.contentVisibilityDeclaration', ...params }, { headers });
1004
1007
  }
1005
1008
  }
1009
+ export class AppBskyActorLinkRecord {
1010
+ constructor(client) {
1011
+ this._client = client;
1012
+ }
1013
+ async list(params) {
1014
+ const res = await this._client.call('com.atproto.repo.listRecords', {
1015
+ collection: 'app.bsky.actor.link',
1016
+ ...params,
1017
+ });
1018
+ return res.data;
1019
+ }
1020
+ async get(params) {
1021
+ const res = await this._client.call('com.atproto.repo.getRecord', {
1022
+ collection: 'app.bsky.actor.link',
1023
+ ...params,
1024
+ });
1025
+ return res.data;
1026
+ }
1027
+ async create(params, record, headers) {
1028
+ const collection = 'app.bsky.actor.link';
1029
+ const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
1030
+ return res.data;
1031
+ }
1032
+ async put(params, record, headers) {
1033
+ const collection = 'app.bsky.actor.link';
1034
+ const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
1035
+ return res.data;
1036
+ }
1037
+ async delete(params, headers) {
1038
+ await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.actor.link', ...params }, { headers });
1039
+ }
1040
+ }
1006
1041
  export class AppBskyActorProfileRecord {
1007
1042
  constructor(client) {
1008
1043
  this._client = client;