@atproto/api 0.30.0 → 0.30.3

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 (38) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/client/index.d.ts +34 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +45 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +660 -20
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +343 -10
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts +40 -0
  11. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts.map +1 -0
  12. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.js +21 -0
  13. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.js.map +1 -0
  14. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +3 -4
  15. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -1
  16. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -1
  17. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.d.ts +81 -0
  18. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.d.ts.map +1 -0
  19. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.js +49 -0
  20. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimeline.js.map +1 -0
  21. package/dist/client/types/com/atproto/label/record.d.ts +22 -0
  22. package/dist/client/types/com/atproto/label/record.d.ts.map +1 -0
  23. package/dist/client/types/com/atproto/label/record.js +18 -0
  24. package/dist/client/types/com/atproto/label/record.js.map +1 -0
  25. package/dist/client/types/tools/ozone/inbox/defs.d.ts +12 -0
  26. package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
  27. package/dist/client/types/tools/ozone/inbox/defs.js +7 -0
  28. package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
  29. package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts +4 -0
  30. package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts.map +1 -1
  31. package/dist/client/types/tools/ozone/inbox/getAccountStatus.js.map +1 -1
  32. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +2 -0
  33. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  34. package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
  35. package/dist/client/types/tools/ozone/report/closeReports.d.ts +2 -0
  36. package/dist/client/types/tools/ozone/report/closeReports.d.ts.map +1 -1
  37. package/dist/client/types/tools/ozone/report/closeReports.js.map +1 -1
  38. package/package.json +9 -9
@@ -125,8 +125,10 @@ import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/up
125
125
  import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js';
126
126
  import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js';
127
127
  import * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js';
128
+ import * as AppBskyUnspeccedGetAtmosphereApps from './types/app/bsky/unspecced/getAtmosphereApps.js';
128
129
  import * as AppBskyUnspeccedGetAtmosphereExploreArticleRecommendations from './types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.js';
129
130
  import * as AppBskyUnspeccedGetAtmosphereExploreTab from './types/app/bsky/unspecced/getAtmosphereExploreTab.js';
131
+ import * as AppBskyUnspeccedGetAtmosphereTimeline from './types/app/bsky/unspecced/getAtmosphereTimeline.js';
130
132
  import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js';
131
133
  import * as AppBskyUnspeccedGetOnboardingSuggestedStarterPacks from './types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.js';
132
134
  import * as AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.js';
@@ -250,6 +252,7 @@ import * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/ident
250
252
  import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle.js';
251
253
  import * as ComAtprotoLabelDefs from './types/com/atproto/label/defs.js';
252
254
  import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels.js';
255
+ import * as ComAtprotoLabelRecord from './types/com/atproto/label/record.js';
253
256
  import * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels.js';
254
257
  import * as ComAtprotoLexiconResolveLexicon from './types/com/atproto/lexicon/resolveLexicon.js';
255
258
  import * as ComAtprotoLexiconSchema from './types/com/atproto/lexicon/schema.js';
@@ -531,8 +534,10 @@ export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/up
531
534
  export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js';
532
535
  export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js';
533
536
  export * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js';
537
+ export * as AppBskyUnspeccedGetAtmosphereApps from './types/app/bsky/unspecced/getAtmosphereApps.js';
534
538
  export * as AppBskyUnspeccedGetAtmosphereExploreArticleRecommendations from './types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.js';
535
539
  export * as AppBskyUnspeccedGetAtmosphereExploreTab from './types/app/bsky/unspecced/getAtmosphereExploreTab.js';
540
+ export * as AppBskyUnspeccedGetAtmosphereTimeline from './types/app/bsky/unspecced/getAtmosphereTimeline.js';
536
541
  export * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js';
537
542
  export * as AppBskyUnspeccedGetOnboardingSuggestedStarterPacks from './types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.js';
538
543
  export * as AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.js';
@@ -656,6 +661,7 @@ export * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/ident
656
661
  export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle.js';
657
662
  export * as ComAtprotoLabelDefs from './types/com/atproto/label/defs.js';
658
663
  export * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels.js';
664
+ export * as ComAtprotoLabelRecord from './types/com/atproto/label/record.js';
659
665
  export * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels.js';
660
666
  export * as ComAtprotoLexiconResolveLexicon from './types/com/atproto/lexicon/resolveLexicon.js';
661
667
  export * as ComAtprotoLexiconSchema from './types/com/atproto/lexicon/schema.js';
@@ -2015,12 +2021,18 @@ export class AppBskyUnspeccedNS {
2015
2021
  getAgeAssuranceState(params, opts) {
2016
2022
  return this._client.call('app.bsky.unspecced.getAgeAssuranceState', params, undefined, opts);
2017
2023
  }
2024
+ getAtmosphereApps(params, opts) {
2025
+ return this._client.call('app.bsky.unspecced.getAtmosphereApps', params, undefined, opts);
2026
+ }
2018
2027
  getAtmosphereExploreArticleRecommendations(params, opts) {
2019
2028
  return this._client.call('app.bsky.unspecced.getAtmosphereExploreArticleRecommendations', params, undefined, opts);
2020
2029
  }
2021
2030
  getAtmosphereExploreTab(params, opts) {
2022
2031
  return this._client.call('app.bsky.unspecced.getAtmosphereExploreTab', params, undefined, opts);
2023
2032
  }
2033
+ getAtmosphereTimeline(params, opts) {
2034
+ return this._client.call('app.bsky.unspecced.getAtmosphereTimeline', params, undefined, opts);
2035
+ }
2024
2036
  getConfig(params, opts) {
2025
2037
  return this._client.call('app.bsky.unspecced.getConfig', params, undefined, opts);
2026
2038
  }
@@ -2656,11 +2668,44 @@ export class ComAtprotoIdentityNS {
2656
2668
  export class ComAtprotoLabelNS {
2657
2669
  constructor(client) {
2658
2670
  this._client = client;
2671
+ this.record = new ComAtprotoLabelRecordRecord(client);
2659
2672
  }
2660
2673
  queryLabels(params, opts) {
2661
2674
  return this._client.call('com.atproto.label.queryLabels', params, undefined, opts);
2662
2675
  }
2663
2676
  }
2677
+ export class ComAtprotoLabelRecordRecord {
2678
+ constructor(client) {
2679
+ this._client = client;
2680
+ }
2681
+ async list(params) {
2682
+ const res = await this._client.call('com.atproto.repo.listRecords', {
2683
+ collection: 'com.atproto.label.record',
2684
+ ...params,
2685
+ });
2686
+ return res.data;
2687
+ }
2688
+ async get(params) {
2689
+ const res = await this._client.call('com.atproto.repo.getRecord', {
2690
+ collection: 'com.atproto.label.record',
2691
+ ...params,
2692
+ });
2693
+ return res.data;
2694
+ }
2695
+ async create(params, record, headers) {
2696
+ const collection = 'com.atproto.label.record';
2697
+ const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
2698
+ return res.data;
2699
+ }
2700
+ async put(params, record, headers) {
2701
+ const collection = 'com.atproto.label.record';
2702
+ const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
2703
+ return res.data;
2704
+ }
2705
+ async delete(params, headers) {
2706
+ await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'com.atproto.label.record', ...params }, { headers });
2707
+ }
2708
+ }
2664
2709
  export class ComAtprotoLexiconNS {
2665
2710
  constructor(client) {
2666
2711
  this._client = client;