@atproto/bsky 0.0.148 → 0.0.150

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 (47) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE.txt +1 -1
  3. package/dist/api/app/bsky/feed/getFeed.d.ts +1 -0
  4. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  5. package/dist/api/app/bsky/feed/getFeed.js +3 -2
  6. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  7. package/dist/api/app/bsky/unspecced/getConfig.d.ts.map +1 -1
  8. package/dist/api/app/bsky/unspecced/getConfig.js +1 -0
  9. package/dist/api/app/bsky/unspecced/getConfig.js.map +1 -1
  10. package/dist/api/well-known.d.ts.map +1 -1
  11. package/dist/api/well-known.js +4 -1
  12. package/dist/api/well-known.js.map +1 -1
  13. package/dist/config.d.ts +7 -0
  14. package/dist/config.d.ts.map +1 -1
  15. package/dist/config.js +28 -0
  16. package/dist/config.js.map +1 -1
  17. package/dist/lexicon/index.d.ts +2 -2
  18. package/dist/lexicon/index.d.ts.map +1 -1
  19. package/dist/lexicon/index.js +4 -4
  20. package/dist/lexicon/index.js.map +1 -1
  21. package/dist/lexicon/lexicons.d.ts +158 -82
  22. package/dist/lexicon/lexicons.d.ts.map +1 -1
  23. package/dist/lexicon/lexicons.js +80 -42
  24. package/dist/lexicon/lexicons.js.map +1 -1
  25. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +4 -0
  26. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  27. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  28. package/dist/lexicon/types/app/bsky/feed/getFeedSkeleton.d.ts +2 -0
  29. package/dist/lexicon/types/app/bsky/feed/getFeedSkeleton.d.ts.map +1 -1
  30. package/dist/lexicon/types/app/bsky/unspecced/getConfig.d.ts +9 -0
  31. package/dist/lexicon/types/app/bsky/unspecced/getConfig.d.ts.map +1 -1
  32. package/dist/lexicon/types/app/bsky/unspecced/getConfig.js +9 -0
  33. package/dist/lexicon/types/app/bsky/unspecced/getConfig.js.map +1 -1
  34. package/package.json +5 -5
  35. package/src/api/app/bsky/feed/getFeed.ts +5 -1
  36. package/src/api/app/bsky/unspecced/getConfig.ts +1 -0
  37. package/src/api/well-known.ts +4 -1
  38. package/src/config.ts +39 -0
  39. package/src/lexicon/index.ts +9 -9
  40. package/src/lexicon/lexicons.ts +84 -43
  41. package/src/lexicon/types/app/bsky/feed/defs.ts +4 -0
  42. package/src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts +2 -0
  43. package/src/lexicon/types/app/bsky/unspecced/getConfig.ts +17 -0
  44. package/tests/__snapshots__/feed-generation.test.ts.snap +11 -0
  45. package/tests/feed-generation.test.ts +1 -0
  46. package/tests/views/get-config.test.ts +66 -0
  47. package/tsconfig.tests.tsbuildinfo +1 -1
@@ -6000,6 +6000,11 @@ exports.schemaDict = {
6000
6000
  description: 'Context provided by feed generator that may be passed back alongside interactions.',
6001
6001
  maxLength: 2000,
6002
6002
  },
6003
+ reqId: {
6004
+ type: 'string',
6005
+ description: 'Unique identifier per request that may be passed back alongside interactions.',
6006
+ maxLength: 100,
6007
+ },
6003
6008
  },
6004
6009
  },
6005
6010
  replyRef: {
@@ -6293,6 +6298,11 @@ exports.schemaDict = {
6293
6298
  description: 'Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.',
6294
6299
  maxLength: 2000,
6295
6300
  },
6301
+ reqId: {
6302
+ type: 'string',
6303
+ description: 'Unique identifier per request that may be passed back alongside interactions.',
6304
+ maxLength: 100,
6305
+ },
6296
6306
  },
6297
6307
  },
6298
6308
  requestLess: {
@@ -6824,6 +6834,11 @@ exports.schemaDict = {
6824
6834
  ref: 'lex:app.bsky.feed.defs#skeletonFeedPost',
6825
6835
  },
6826
6836
  },
6837
+ reqId: {
6838
+ type: 'string',
6839
+ description: 'Unique identifier per request that may be passed back alongside interactions.',
6840
+ maxLength: 100,
6841
+ },
6827
6842
  },
6828
6843
  },
6829
6844
  },
@@ -6969,6 +6984,47 @@ exports.schemaDict = {
6969
6984
  },
6970
6985
  },
6971
6986
  },
6987
+ AppBskyFeedGetPosts: {
6988
+ lexicon: 1,
6989
+ id: 'app.bsky.feed.getPosts',
6990
+ defs: {
6991
+ main: {
6992
+ type: 'query',
6993
+ description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
6994
+ parameters: {
6995
+ type: 'params',
6996
+ required: ['uris'],
6997
+ properties: {
6998
+ uris: {
6999
+ type: 'array',
7000
+ description: 'List of post AT-URIs to return hydrated views for.',
7001
+ items: {
7002
+ type: 'string',
7003
+ format: 'at-uri',
7004
+ },
7005
+ maxLength: 25,
7006
+ },
7007
+ },
7008
+ },
7009
+ output: {
7010
+ encoding: 'application/json',
7011
+ schema: {
7012
+ type: 'object',
7013
+ required: ['posts'],
7014
+ properties: {
7015
+ posts: {
7016
+ type: 'array',
7017
+ items: {
7018
+ type: 'ref',
7019
+ ref: 'lex:app.bsky.feed.defs#postView',
7020
+ },
7021
+ },
7022
+ },
7023
+ },
7024
+ },
7025
+ },
7026
+ },
7027
+ },
6972
7028
  AppBskyFeedGetPostThread: {
6973
7029
  lexicon: 1,
6974
7030
  id: 'app.bsky.feed.getPostThread',
@@ -7030,47 +7086,6 @@ exports.schemaDict = {
7030
7086
  },
7031
7087
  },
7032
7088
  },
7033
- AppBskyFeedGetPosts: {
7034
- lexicon: 1,
7035
- id: 'app.bsky.feed.getPosts',
7036
- defs: {
7037
- main: {
7038
- type: 'query',
7039
- description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7040
- parameters: {
7041
- type: 'params',
7042
- required: ['uris'],
7043
- properties: {
7044
- uris: {
7045
- type: 'array',
7046
- description: 'List of post AT-URIs to return hydrated views for.',
7047
- items: {
7048
- type: 'string',
7049
- format: 'at-uri',
7050
- },
7051
- maxLength: 25,
7052
- },
7053
- },
7054
- },
7055
- output: {
7056
- encoding: 'application/json',
7057
- schema: {
7058
- type: 'object',
7059
- required: ['posts'],
7060
- properties: {
7061
- posts: {
7062
- type: 'array',
7063
- items: {
7064
- type: 'ref',
7065
- ref: 'lex:app.bsky.feed.defs#postView',
7066
- },
7067
- },
7068
- },
7069
- },
7070
- },
7071
- },
7072
- },
7073
- },
7074
7089
  AppBskyFeedGetQuotes: {
7075
7090
  lexicon: 1,
7076
7091
  id: 'app.bsky.feed.getQuotes',
@@ -9848,6 +9863,29 @@ exports.schemaDict = {
9848
9863
  checkEmailConfirmed: {
9849
9864
  type: 'boolean',
9850
9865
  },
9866
+ liveNow: {
9867
+ type: 'array',
9868
+ items: {
9869
+ type: 'ref',
9870
+ ref: 'lex:app.bsky.unspecced.getConfig#liveNowConfig',
9871
+ },
9872
+ },
9873
+ },
9874
+ },
9875
+ },
9876
+ },
9877
+ liveNowConfig: {
9878
+ type: 'object',
9879
+ required: ['did', 'domains'],
9880
+ properties: {
9881
+ did: {
9882
+ type: 'string',
9883
+ format: 'did',
9884
+ },
9885
+ domains: {
9886
+ type: 'array',
9887
+ items: {
9888
+ type: 'string',
9851
9889
  },
9852
9890
  },
9853
9891
  },
@@ -12185,8 +12223,8 @@ exports.ids = {
12185
12223
  AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
12186
12224
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
12187
12225
  AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
12188
- AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
12189
12226
  AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
12227
+ AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
12190
12228
  AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
12191
12229
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
12192
12230
  AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',