@atproto/api 0.13.20 → 0.13.22

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 +12 -0
  2. package/definitions/labels.json +1 -0
  3. package/dist/client/index.d.ts +3 -0
  4. package/dist/client/index.d.ts.map +1 -1
  5. package/dist/client/index.js +7 -3
  6. package/dist/client/index.js.map +1 -1
  7. package/dist/client/lexicons.d.ts +138 -0
  8. package/dist/client/lexicons.d.ts.map +1 -1
  9. package/dist/client/lexicons.js +70 -0
  10. package/dist/client/lexicons.js.map +1 -1
  11. package/dist/client/types/app/bsky/unspecced/defs.d.ts +9 -0
  12. package/dist/client/types/app/bsky/unspecced/defs.d.ts.map +1 -1
  13. package/dist/client/types/app/bsky/unspecced/defs.js +10 -0
  14. package/dist/client/types/app/bsky/unspecced/defs.js.map +1 -1
  15. package/dist/client/types/app/bsky/unspecced/getTrendingTopics.d.ts +27 -0
  16. package/dist/client/types/app/bsky/unspecced/getTrendingTopics.d.ts.map +1 -0
  17. package/dist/client/types/app/bsky/unspecced/getTrendingTopics.js +7 -0
  18. package/dist/client/types/app/bsky/unspecced/getTrendingTopics.js.map +1 -0
  19. package/dist/moderation/const/labels.d.ts +1 -1
  20. package/dist/moderation/const/labels.d.ts.map +1 -1
  21. package/dist/moderation/const/labels.js +23 -0
  22. package/dist/moderation/const/labels.js.map +1 -1
  23. package/package.json +2 -2
  24. package/scripts/code/labels.mjs +33 -9
  25. package/src/client/index.ts +14 -0
  26. package/src/client/lexicons.ts +72 -0
  27. package/src/client/types/app/bsky/unspecced/defs.ts +20 -0
  28. package/src/client/types/app/bsky/unspecced/getTrendingTopics.ts +38 -0
  29. package/src/moderation/const/labels.ts +24 -0
  30. package/tsconfig.build.tsbuildinfo +1 -1
@@ -8985,6 +8985,24 @@ exports.schemaDict = {
8985
8985
  },
8986
8986
  },
8987
8987
  },
8988
+ trendingTopic: {
8989
+ type: 'object',
8990
+ required: ['topic', 'link'],
8991
+ properties: {
8992
+ topic: {
8993
+ type: 'string',
8994
+ },
8995
+ displayName: {
8996
+ type: 'string',
8997
+ },
8998
+ description: {
8999
+ type: 'string',
9000
+ },
9001
+ link: {
9002
+ type: 'string',
9003
+ },
9004
+ },
9005
+ },
8988
9006
  },
8989
9007
  },
8990
9008
  AppBskyUnspeccedGetConfig: {
@@ -9160,6 +9178,55 @@ exports.schemaDict = {
9160
9178
  },
9161
9179
  },
9162
9180
  },
9181
+ AppBskyUnspeccedGetTrendingTopics: {
9182
+ lexicon: 1,
9183
+ id: 'app.bsky.unspecced.getTrendingTopics',
9184
+ defs: {
9185
+ main: {
9186
+ type: 'query',
9187
+ description: 'Get a list of trending topics',
9188
+ parameters: {
9189
+ type: 'params',
9190
+ properties: {
9191
+ viewer: {
9192
+ type: 'string',
9193
+ format: 'did',
9194
+ description: 'DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.',
9195
+ },
9196
+ limit: {
9197
+ type: 'integer',
9198
+ minimum: 1,
9199
+ maximum: 25,
9200
+ default: 10,
9201
+ },
9202
+ },
9203
+ },
9204
+ output: {
9205
+ encoding: 'application/json',
9206
+ schema: {
9207
+ type: 'object',
9208
+ required: ['topics', 'suggested'],
9209
+ properties: {
9210
+ topics: {
9211
+ type: 'array',
9212
+ items: {
9213
+ type: 'ref',
9214
+ ref: 'lex:app.bsky.unspecced.defs#trendingTopic',
9215
+ },
9216
+ },
9217
+ suggested: {
9218
+ type: 'array',
9219
+ items: {
9220
+ type: 'ref',
9221
+ ref: 'lex:app.bsky.unspecced.defs#trendingTopic',
9222
+ },
9223
+ },
9224
+ },
9225
+ },
9226
+ },
9227
+ },
9228
+ },
9229
+ },
9163
9230
  AppBskyUnspeccedSearchActorsSkeleton: {
9164
9231
  lexicon: 1,
9165
9232
  id: 'app.bsky.unspecced.searchActorsSkeleton',
@@ -12086,6 +12153,8 @@ exports.schemaDict = {
12086
12153
  type: 'array',
12087
12154
  items: {
12088
12155
  type: 'string',
12156
+ maxLength: 25,
12157
+ description: 'Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters',
12089
12158
  },
12090
12159
  },
12091
12160
  excludeTags: {
@@ -13314,6 +13383,7 @@ exports.ids = {
13314
13383
  AppBskyUnspeccedGetPopularFeedGenerators: 'app.bsky.unspecced.getPopularFeedGenerators',
13315
13384
  AppBskyUnspeccedGetSuggestionsSkeleton: 'app.bsky.unspecced.getSuggestionsSkeleton',
13316
13385
  AppBskyUnspeccedGetTaggedSuggestions: 'app.bsky.unspecced.getTaggedSuggestions',
13386
+ AppBskyUnspeccedGetTrendingTopics: 'app.bsky.unspecced.getTrendingTopics',
13317
13387
  AppBskyUnspeccedSearchActorsSkeleton: 'app.bsky.unspecced.searchActorsSkeleton',
13318
13388
  AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
13319
13389
  AppBskyUnspeccedSearchStarterPacksSkeleton: 'app.bsky.unspecced.searchStarterPacksSkeleton',