@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
@@ -9482,6 +9482,86 @@ export const schemaDict = {
9482
9482
  },
9483
9483
  },
9484
9484
  },
9485
+ AppBskyUnspeccedGetAtmosphereApps: {
9486
+ lexicon: 1,
9487
+ id: 'app.bsky.unspecced.getAtmosphereApps',
9488
+ defs: {
9489
+ main: {
9490
+ type: 'query',
9491
+ description: 'Get curated Atmosphere apps. Authentication is optional; authenticated requests include viewer-specific profile state and known followers.',
9492
+ parameters: {
9493
+ type: 'params',
9494
+ properties: {
9495
+ category: {
9496
+ type: 'string',
9497
+ maxLength: 100,
9498
+ description: 'Only return apps with this category (exact match). Omit to return all apps.',
9499
+ },
9500
+ },
9501
+ },
9502
+ output: {
9503
+ encoding: 'application/json',
9504
+ schema: {
9505
+ type: 'object',
9506
+ required: ['apps'],
9507
+ properties: {
9508
+ apps: {
9509
+ type: 'array',
9510
+ maxLength: 100,
9511
+ items: {
9512
+ type: 'ref',
9513
+ ref: 'lex:app.bsky.unspecced.getAtmosphereApps#appCard',
9514
+ },
9515
+ },
9516
+ },
9517
+ },
9518
+ },
9519
+ },
9520
+ appCard: {
9521
+ type: 'object',
9522
+ properties: {
9523
+ id: {
9524
+ type: 'string',
9525
+ maxLength: 4096,
9526
+ },
9527
+ title: {
9528
+ type: 'string',
9529
+ maxLength: 4096,
9530
+ },
9531
+ description: {
9532
+ type: 'string',
9533
+ maxLength: 4096,
9534
+ },
9535
+ logo: {
9536
+ type: 'string',
9537
+ format: 'uri',
9538
+ maxLength: 4096,
9539
+ description: "The app's logo, using its account avatar when available.",
9540
+ },
9541
+ banner: {
9542
+ type: 'string',
9543
+ format: 'uri',
9544
+ maxLength: 4096,
9545
+ description: "The app's banner, using its account banner when available.",
9546
+ },
9547
+ url: {
9548
+ type: 'string',
9549
+ format: 'uri',
9550
+ maxLength: 4096,
9551
+ },
9552
+ category: {
9553
+ type: 'string',
9554
+ maxLength: 100,
9555
+ },
9556
+ profile: {
9557
+ type: 'ref',
9558
+ ref: 'lex:app.bsky.actor.defs#profileViewDetailed',
9559
+ description: "The app's account profile, when available.",
9560
+ },
9561
+ },
9562
+ },
9563
+ },
9564
+ },
9485
9565
  AppBskyUnspeccedGetAtmosphereExploreArticleRecommendations: {
9486
9566
  lexicon: 1,
9487
9567
  id: 'app.bsky.unspecced.getAtmosphereExploreArticleRecommendations',
@@ -9545,7 +9625,7 @@ export const schemaDict = {
9545
9625
  defs: {
9546
9626
  main: {
9547
9627
  type: 'query',
9548
- description: 'Get Atmosphere Explore content. Articles are recommended when algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Authentication is optional; authenticated requests include viewer-specific profile state.',
9628
+ description: 'Get Atmosphere Explore content. Articles are recommended when algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Curated content is selected using the x-atproto-bsky-geo-country, x-atproto-bsky-geo-region, and x-atproto-bsky-topics request headers. Authentication is optional; authenticated requests include viewer-specific profile state.',
9549
9629
  parameters: {
9550
9630
  type: 'params',
9551
9631
  properties: {
@@ -9557,14 +9637,6 @@ export const schemaDict = {
9557
9637
  format: 'language',
9558
9638
  },
9559
9639
  },
9560
- countryCode: {
9561
- type: 'string',
9562
- description: 'The ISO 3166-1 alpha-2 country code used to select curated content.',
9563
- },
9564
- regionCode: {
9565
- type: 'string',
9566
- description: 'The ISO 3166-2 region code used to select curated content.',
9567
- },
9568
9640
  },
9569
9641
  },
9570
9642
  output: {
@@ -9687,6 +9759,11 @@ export const schemaDict = {
9687
9759
  type: 'boolean',
9688
9760
  description: 'Deprecated. Retained for compatibility; always false.',
9689
9761
  },
9762
+ bskyPostRef: {
9763
+ type: 'ref',
9764
+ ref: 'lex:com.atproto.repo.strongRef',
9765
+ description: 'The Bluesky post associated with the article, as declared by its author. The referenced post may not be available.',
9766
+ },
9690
9767
  view: {
9691
9768
  type: 'ref',
9692
9769
  ref: 'lex:app.bsky.embed.external#viewArticle',
@@ -9729,6 +9806,11 @@ export const schemaDict = {
9729
9806
  type: 'boolean',
9730
9807
  description: 'Deprecated. Retained for compatibility; always false.',
9731
9808
  },
9809
+ bskyPostRef: {
9810
+ type: 'ref',
9811
+ ref: 'lex:com.atproto.repo.strongRef',
9812
+ description: 'The Bluesky post that announced the livestream, as declared by its author. The referenced post may not be available.',
9813
+ },
9732
9814
  view: {
9733
9815
  type: 'ref',
9734
9816
  ref: 'lex:app.bsky.embed.external#viewLivestream',
@@ -9825,6 +9907,175 @@ export const schemaDict = {
9825
9907
  },
9826
9908
  },
9827
9909
  },
9910
+ AppBskyUnspeccedGetAtmosphereTimeline: {
9911
+ lexicon: 1,
9912
+ id: 'app.bsky.unspecced.getAtmosphereTimeline',
9913
+ defs: {
9914
+ main: {
9915
+ type: 'query',
9916
+ description: "Get the authenticated viewer's Atmosphere activity timeline. Grouping and related activity are limited to the returned page.",
9917
+ parameters: {
9918
+ type: 'params',
9919
+ properties: {
9920
+ cursor: {
9921
+ type: 'string',
9922
+ },
9923
+ },
9924
+ },
9925
+ output: {
9926
+ encoding: 'application/json',
9927
+ schema: {
9928
+ type: 'object',
9929
+ required: ['feed'],
9930
+ properties: {
9931
+ cursor: {
9932
+ type: 'string',
9933
+ },
9934
+ feed: {
9935
+ type: 'array',
9936
+ items: {
9937
+ type: 'union',
9938
+ refs: [
9939
+ 'lex:app.bsky.unspecced.getAtmosphereTimeline#activityItem',
9940
+ 'lex:app.bsky.unspecced.getAtmosphereTimeline#activityItemOverflow',
9941
+ 'lex:app.bsky.unspecced.getAtmosphereTimeline#activityGroup',
9942
+ ],
9943
+ },
9944
+ },
9945
+ },
9946
+ },
9947
+ },
9948
+ },
9949
+ activityRecord: {
9950
+ type: 'object',
9951
+ required: ['uri', 'cid', 'indexedAt'],
9952
+ properties: {
9953
+ uri: {
9954
+ type: 'string',
9955
+ format: 'at-uri',
9956
+ },
9957
+ cid: {
9958
+ type: 'string',
9959
+ format: 'cid',
9960
+ },
9961
+ indexedAt: {
9962
+ type: 'string',
9963
+ format: 'datetime',
9964
+ },
9965
+ },
9966
+ },
9967
+ viewerState: {
9968
+ type: 'object',
9969
+ required: ['subscribed'],
9970
+ properties: {
9971
+ subscribed: {
9972
+ type: 'boolean',
9973
+ },
9974
+ },
9975
+ },
9976
+ activityItem: {
9977
+ type: 'object',
9978
+ required: ['record', 'collection', 'viewerState'],
9979
+ properties: {
9980
+ record: {
9981
+ type: 'ref',
9982
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimeline#activityRecord',
9983
+ },
9984
+ collection: {
9985
+ type: 'string',
9986
+ format: 'nsid',
9987
+ },
9988
+ viewerState: {
9989
+ type: 'ref',
9990
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimeline#viewerState',
9991
+ },
9992
+ bskyPostRef: {
9993
+ type: 'ref',
9994
+ ref: 'lex:com.atproto.repo.strongRef',
9995
+ description: 'The Bluesky post associated with the rendered article or livestream, as declared by its author. The referenced post may not be available.',
9996
+ },
9997
+ view: {
9998
+ type: 'union',
9999
+ refs: [
10000
+ 'lex:app.bsky.embed.external#viewArticle',
10001
+ 'lex:app.bsky.embed.external#viewArticlePublication',
10002
+ 'lex:app.bsky.embed.external#viewGallery',
10003
+ 'lex:app.bsky.embed.external#viewLivestream',
10004
+ 'lex:app.bsky.feed.defs#postView',
10005
+ ],
10006
+ },
10007
+ relatedActivity: {
10008
+ type: 'array',
10009
+ description: 'Recommendations and shares attached to this article. Attached activities do not themselves contain related activity.',
10010
+ items: {
10011
+ type: 'ref',
10012
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimeline#activityItem',
10013
+ },
10014
+ },
10015
+ },
10016
+ },
10017
+ activityItemOverflow: {
10018
+ type: 'object',
10019
+ description: 'Distinct additional activities omitted from this page for an author and collection, without hydrating the omitted records.',
10020
+ required: ['count', 'collection', 'associatedProfiles'],
10021
+ properties: {
10022
+ count: {
10023
+ type: 'integer',
10024
+ minimum: 1,
10025
+ },
10026
+ collection: {
10027
+ type: 'string',
10028
+ format: 'nsid',
10029
+ },
10030
+ associatedProfiles: {
10031
+ type: 'array',
10032
+ items: {
10033
+ type: 'ref',
10034
+ ref: 'lex:app.bsky.actor.defs#profileViewBasic',
10035
+ },
10036
+ },
10037
+ },
10038
+ },
10039
+ activityGroup: {
10040
+ type: 'object',
10041
+ description: "Two or more activities of the same collection, within a fixed window anchored at the newest member. The group occupies the newest member's position.",
10042
+ required: ['id', 'groupBy', 'collection', 'indexedAt', 'items'],
10043
+ properties: {
10044
+ id: {
10045
+ type: 'string',
10046
+ },
10047
+ groupBy: {
10048
+ type: 'string',
10049
+ knownValues: ['subject', 'actor'],
10050
+ },
10051
+ collection: {
10052
+ type: 'string',
10053
+ format: 'nsid',
10054
+ },
10055
+ indexedAt: {
10056
+ type: 'string',
10057
+ format: 'datetime',
10058
+ },
10059
+ items: {
10060
+ type: 'array',
10061
+ minLength: 2,
10062
+ items: {
10063
+ type: 'ref',
10064
+ ref: 'lex:app.bsky.unspecced.getAtmosphereTimeline#activityItem',
10065
+ },
10066
+ },
10067
+ subject: {
10068
+ type: 'string',
10069
+ format: 'at-uri',
10070
+ },
10071
+ actor: {
10072
+ type: 'string',
10073
+ format: 'did',
10074
+ },
10075
+ },
10076
+ },
10077
+ },
10078
+ },
9828
10079
  AppBskyUnspeccedGetConfig: {
9829
10080
  lexicon: 1,
9830
10081
  id: 'app.bsky.unspecced.getConfig',
@@ -17640,6 +17891,48 @@ export const schemaDict = {
17640
17891
  },
17641
17892
  },
17642
17893
  },
17894
+ ComAtprotoLabelRecord: {
17895
+ lexicon: 1,
17896
+ id: 'com.atproto.label.record',
17897
+ defs: {
17898
+ main: {
17899
+ type: 'record',
17900
+ description: "Metadata tag on an atproto resource (eg, repo or record), published as a record in the labeler's repository. Currently ONLY intended to be used in atproto space repos, not the public broadcast repository. For public data, continue to use signed label objects. This guidance may be updated in the future.",
17901
+ key: 'tid',
17902
+ record: {
17903
+ type: 'object',
17904
+ required: ['uri', 'val', 'cts'],
17905
+ properties: {
17906
+ uri: {
17907
+ type: 'string',
17908
+ format: 'uri',
17909
+ description: 'URI of the record, repository (account), or other resource that this label applies to. Currently only intended for use in the context of atproto spaces.',
17910
+ },
17911
+ cid: {
17912
+ type: 'string',
17913
+ format: 'cid',
17914
+ description: "Optionally, CID specifying the specific version of 'uri' resource this label applies to.",
17915
+ },
17916
+ val: {
17917
+ type: 'string',
17918
+ maxLength: 128,
17919
+ description: 'The short string name of the value or type of this label.',
17920
+ },
17921
+ cts: {
17922
+ type: 'string',
17923
+ format: 'datetime',
17924
+ description: 'Timestamp when this label was created.',
17925
+ },
17926
+ exp: {
17927
+ type: 'string',
17928
+ format: 'datetime',
17929
+ description: 'Timestamp at which this label expires (no longer applies).',
17930
+ },
17931
+ },
17932
+ },
17933
+ },
17934
+ },
17935
+ },
17643
17936
  ComAtprotoLabelSubscribeLabels: {
17644
17937
  lexicon: 1,
17645
17938
  id: 'com.atproto.label.subscribeLabels',
@@ -21790,6 +22083,11 @@ export const schemaDict = {
21790
22083
  type: 'unknown',
21791
22084
  description: 'Raw record JSON for the subject, when the subject is a record and the record is available.',
21792
22085
  },
22086
+ account: {
22087
+ type: 'ref',
22088
+ ref: 'lex:tools.ozone.inbox.defs#accountPreview',
22089
+ description: 'Best-effort current profile information for an account subject.',
22090
+ },
21793
22091
  enforcement: {
21794
22092
  type: 'ref',
21795
22093
  ref: 'lex:tools.ozone.inbox.defs#enforcementView',
@@ -21833,6 +22131,20 @@ export const schemaDict = {
21833
22131
  },
21834
22132
  },
21835
22133
  },
22134
+ accountPreview: {
22135
+ type: 'object',
22136
+ description: 'Current account information, when available; this is not a snapshot of the account at the time of the action.',
22137
+ properties: {
22138
+ handle: {
22139
+ type: 'string',
22140
+ format: 'handle',
22141
+ },
22142
+ profile: {
22143
+ type: 'unknown',
22144
+ description: 'Raw app.bsky.actor.profile record, when available.',
22145
+ },
22146
+ },
22147
+ },
21836
22148
  reportsSummary: {
21837
22149
  type: 'object',
21838
22150
  description: 'Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities.',
@@ -21994,6 +22306,15 @@ export const schemaDict = {
21994
22306
  type: 'string',
21995
22307
  knownValues: ['good', 'warning', 'atRisk'],
21996
22308
  },
22309
+ hasActiveStrikes: {
22310
+ type: 'boolean',
22311
+ description: 'Whether the account currently has any active strikes.',
22312
+ },
22313
+ enforcement: {
22314
+ type: 'ref',
22315
+ ref: 'lex:tools.ozone.inbox.defs#enforcementView',
22316
+ description: 'Current account takedown or suspension, independent of strike standing.',
22317
+ },
21997
22318
  updatedAt: {
21998
22319
  type: 'string',
21999
22320
  format: 'datetime',
@@ -24339,6 +24660,10 @@ export const schemaDict = {
24339
24660
  type: 'boolean',
24340
24661
  description: 'Target ALL reports on the subject. Excludes assigned and escalated reports.',
24341
24662
  },
24663
+ allOwned: {
24664
+ type: 'boolean',
24665
+ description: 'Target all eligible reports on the account and its owned subjects, including records, messages, and conversations. Only valid for account subjects and events that close reports. Excludes assigned, escalated, and actively assigned reports unless explicitly targeted by ID.',
24666
+ },
24342
24667
  note: {
24343
24668
  type: 'string',
24344
24669
  description: 'Note to send to reporter(s) when actioning their report',
@@ -26207,7 +26532,7 @@ export const schemaDict = {
26207
26532
  defs: {
26208
26533
  main: {
26209
26534
  type: 'procedure',
26210
- description: 'Close eligible reports on a subject matching the given criteria. Assigned and escalated reports are excluded. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.',
26535
+ description: 'Close eligible reports on a subject matching the given criteria, optionally linking an existing moderation action. Assigned, escalated, and actively assigned reports are excluded. Reports whose current status does not permit a transition to closed are skipped silently.',
26211
26536
  input: {
26212
26537
  encoding: 'application/json',
26213
26538
  schema: {
@@ -26238,6 +26563,11 @@ export const schemaDict = {
26238
26563
  },
26239
26564
  description: 'Reports of these types (fully qualified reason NSIDs) are excluded from closure and left unchanged. When omitted or empty, no report types are excluded.',
26240
26565
  },
26566
+ actionEventId: {
26567
+ type: 'integer',
26568
+ minimum: 1,
26569
+ description: 'Optional existing moderation event that closes reports. It must target the exact subject or its owning account; account-wide closure requires an account event. The event is linked to each closed report and may predate the report. The link does not imply the action is still in effect.',
26570
+ },
26241
26571
  internalNote: {
26242
26572
  type: 'string',
26243
26573
  description: 'Optional moderator-only note recorded on each close activity. Not visible to reporters.',
@@ -29830,8 +30160,10 @@ export const ids = {
29830
30160
  AppBskyRichtextFacet: 'app.bsky.richtext.facet',
29831
30161
  AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
29832
30162
  AppBskyUnspeccedGetAgeAssuranceState: 'app.bsky.unspecced.getAgeAssuranceState',
30163
+ AppBskyUnspeccedGetAtmosphereApps: 'app.bsky.unspecced.getAtmosphereApps',
29833
30164
  AppBskyUnspeccedGetAtmosphereExploreArticleRecommendations: 'app.bsky.unspecced.getAtmosphereExploreArticleRecommendations',
29834
30165
  AppBskyUnspeccedGetAtmosphereExploreTab: 'app.bsky.unspecced.getAtmosphereExploreTab',
30166
+ AppBskyUnspeccedGetAtmosphereTimeline: 'app.bsky.unspecced.getAtmosphereTimeline',
29835
30167
  AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
29836
30168
  AppBskyUnspeccedGetOnboardingSuggestedStarterPacks: 'app.bsky.unspecced.getOnboardingSuggestedStarterPacks',
29837
30169
  AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeleton: 'app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton',
@@ -29955,6 +30287,7 @@ export const ids = {
29955
30287
  ComAtprotoIdentityUpdateHandle: 'com.atproto.identity.updateHandle',
29956
30288
  ComAtprotoLabelDefs: 'com.atproto.label.defs',
29957
30289
  ComAtprotoLabelQueryLabels: 'com.atproto.label.queryLabels',
30290
+ ComAtprotoLabelRecord: 'com.atproto.label.record',
29958
30291
  ComAtprotoLabelSubscribeLabels: 'com.atproto.label.subscribeLabels',
29959
30292
  ComAtprotoLexiconResolveLexicon: 'com.atproto.lexicon.resolveLexicon',
29960
30293
  ComAtprotoLexiconSchema: 'com.atproto.lexicon.schema',