@atcute/bluesky 1.0.10 → 1.0.12

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.
@@ -296,6 +296,8 @@ declare module '@atcute/client/lexicons' {
296
296
  interface Output {
297
297
  actors: AppBskyActorDefs.ProfileView[];
298
298
  cursor?: string;
299
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
300
+ recId?: number;
299
301
  }
300
302
  }
301
303
  namespace AppBskyActorProfile {
@@ -544,6 +546,8 @@ declare module '@atcute/client/lexicons' {
544
546
  type ClickthroughEmbed = 'app.bsky.feed.defs#clickthroughEmbed';
545
547
  type ClickthroughItem = 'app.bsky.feed.defs#clickthroughItem';
546
548
  type ClickthroughReposter = 'app.bsky.feed.defs#clickthroughReposter';
549
+ type ContentModeUnspecified = 'app.bsky.feed.defs#contentModeUnspecified';
550
+ type ContentModeVideo = 'app.bsky.feed.defs#contentModeVideo';
547
551
  interface FeedViewPost {
548
552
  [Brand.Type]?: 'app.bsky.feed.defs#feedViewPost';
549
553
  post: PostView;
@@ -565,6 +569,7 @@ declare module '@atcute/client/lexicons' {
565
569
  uri: At.Uri;
566
570
  acceptsInteractions?: boolean;
567
571
  avatar?: string;
572
+ contentMode?: 'app.bsky.feed.defs#contentModeUnspecified' | 'app.bsky.feed.defs#contentModeVideo' | (string & {});
568
573
  /**
569
574
  * Maximum string length: 3000 \
570
575
  * Maximum grapheme length: 300
@@ -709,6 +714,7 @@ declare module '@atcute/client/lexicons' {
709
714
  /** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */
710
715
  acceptsInteractions?: boolean;
711
716
  avatar?: At.Blob;
717
+ contentMode?: 'app.bsky.feed.defs#contentModeUnspecified' | 'app.bsky.feed.defs#contentModeVideo' | (string & {});
712
718
  /**
713
719
  * Maximum string length: 3000 \
714
720
  * Maximum grapheme length: 300
@@ -1580,6 +1586,8 @@ declare module '@atcute/client/lexicons' {
1580
1586
  * @default false
1581
1587
  */
1582
1588
  isFallback?: boolean;
1589
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
1590
+ recId?: number;
1583
1591
  }
1584
1592
  }
1585
1593
  namespace AppBskyGraphList {
@@ -1911,6 +1919,13 @@ declare module '@atcute/client/lexicons' {
1911
1919
  [Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchStarterPack';
1912
1920
  uri: At.Uri;
1913
1921
  }
1922
+ interface TrendingTopic {
1923
+ [Brand.Type]?: 'app.bsky.unspecced.defs#trendingTopic';
1924
+ link: string;
1925
+ topic: string;
1926
+ description?: string;
1927
+ displayName?: string;
1928
+ }
1914
1929
  }
1915
1930
  /** Get miscellaneous runtime configuration. */
1916
1931
  namespace AppBskyUnspeccedGetConfig {
@@ -1958,6 +1973,8 @@ declare module '@atcute/client/lexicons' {
1958
1973
  interface Output {
1959
1974
  actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
1960
1975
  cursor?: string;
1976
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
1977
+ recId?: number;
1961
1978
  /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
1962
1979
  relativeToDid?: At.DID;
1963
1980
  }
@@ -1975,6 +1992,24 @@ declare module '@atcute/client/lexicons' {
1975
1992
  tag: string;
1976
1993
  }
1977
1994
  }
1995
+ /** Get a list of trending topics */
1996
+ namespace AppBskyUnspeccedGetTrendingTopics {
1997
+ interface Params {
1998
+ /**
1999
+ * Minimum: 1 \
2000
+ * Maximum: 25
2001
+ * @default 10
2002
+ */
2003
+ limit?: number;
2004
+ /** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */
2005
+ viewer?: At.DID;
2006
+ }
2007
+ type Input = undefined;
2008
+ interface Output {
2009
+ suggested: AppBskyUnspeccedDefs.TrendingTopic[];
2010
+ topics: AppBskyUnspeccedDefs.TrendingTopic[];
2011
+ }
2012
+ }
1978
2013
  /** Backend Actors (profile) search, returns only skeleton. */
1979
2014
  namespace AppBskyUnspeccedSearchActorsSkeleton {
1980
2015
  interface Params {
@@ -2626,6 +2661,10 @@ declare module '@atcute/client/lexicons' {
2626
2661
  'app.bsky.unspecced.getTaggedSuggestions': {
2627
2662
  output: AppBskyUnspeccedGetTaggedSuggestions.Output;
2628
2663
  };
2664
+ 'app.bsky.unspecced.getTrendingTopics': {
2665
+ params: AppBskyUnspeccedGetTrendingTopics.Params;
2666
+ output: AppBskyUnspeccedGetTrendingTopics.Output;
2667
+ };
2629
2668
  'app.bsky.unspecced.searchActorsSkeleton': {
2630
2669
  params: AppBskyUnspeccedSearchActorsSkeleton.Params;
2631
2670
  output: AppBskyUnspeccedSearchActorsSkeleton.Output;
package/lib/lexicons.ts CHANGED
@@ -318,6 +318,8 @@ declare module '@atcute/client/lexicons' {
318
318
  interface Output {
319
319
  actors: AppBskyActorDefs.ProfileView[];
320
320
  cursor?: string;
321
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
322
+ recId?: number;
321
323
  }
322
324
  }
323
325
 
@@ -591,6 +593,8 @@ declare module '@atcute/client/lexicons' {
591
593
  type ClickthroughEmbed = 'app.bsky.feed.defs#clickthroughEmbed';
592
594
  type ClickthroughItem = 'app.bsky.feed.defs#clickthroughItem';
593
595
  type ClickthroughReposter = 'app.bsky.feed.defs#clickthroughReposter';
596
+ type ContentModeUnspecified = 'app.bsky.feed.defs#contentModeUnspecified';
597
+ type ContentModeVideo = 'app.bsky.feed.defs#contentModeVideo';
594
598
  interface FeedViewPost {
595
599
  [Brand.Type]?: 'app.bsky.feed.defs#feedViewPost';
596
600
  post: PostView;
@@ -612,6 +616,10 @@ declare module '@atcute/client/lexicons' {
612
616
  uri: At.Uri;
613
617
  acceptsInteractions?: boolean;
614
618
  avatar?: string;
619
+ contentMode?:
620
+ | 'app.bsky.feed.defs#contentModeUnspecified'
621
+ | 'app.bsky.feed.defs#contentModeVideo'
622
+ | (string & {});
615
623
  /**
616
624
  * Maximum string length: 3000 \
617
625
  * Maximum grapheme length: 300
@@ -776,6 +784,10 @@ declare module '@atcute/client/lexicons' {
776
784
  /** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */
777
785
  acceptsInteractions?: boolean;
778
786
  avatar?: At.Blob;
787
+ contentMode?:
788
+ | 'app.bsky.feed.defs#contentModeUnspecified'
789
+ | 'app.bsky.feed.defs#contentModeVideo'
790
+ | (string & {});
779
791
  /**
780
792
  * Maximum string length: 3000 \
781
793
  * Maximum grapheme length: 300
@@ -1701,6 +1713,8 @@ declare module '@atcute/client/lexicons' {
1701
1713
  * @default false
1702
1714
  */
1703
1715
  isFallback?: boolean;
1716
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
1717
+ recId?: number;
1704
1718
  }
1705
1719
  }
1706
1720
 
@@ -2052,6 +2066,13 @@ declare module '@atcute/client/lexicons' {
2052
2066
  [Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchStarterPack';
2053
2067
  uri: At.Uri;
2054
2068
  }
2069
+ interface TrendingTopic {
2070
+ [Brand.Type]?: 'app.bsky.unspecced.defs#trendingTopic';
2071
+ link: string;
2072
+ topic: string;
2073
+ description?: string;
2074
+ displayName?: string;
2075
+ }
2055
2076
  }
2056
2077
 
2057
2078
  /** Get miscellaneous runtime configuration. */
@@ -2101,6 +2122,8 @@ declare module '@atcute/client/lexicons' {
2101
2122
  interface Output {
2102
2123
  actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
2103
2124
  cursor?: string;
2125
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
2126
+ recId?: number;
2104
2127
  /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
2105
2128
  relativeToDid?: At.DID;
2106
2129
  }
@@ -2120,6 +2143,25 @@ declare module '@atcute/client/lexicons' {
2120
2143
  }
2121
2144
  }
2122
2145
 
2146
+ /** Get a list of trending topics */
2147
+ namespace AppBskyUnspeccedGetTrendingTopics {
2148
+ interface Params {
2149
+ /**
2150
+ * Minimum: 1 \
2151
+ * Maximum: 25
2152
+ * @default 10
2153
+ */
2154
+ limit?: number;
2155
+ /** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */
2156
+ viewer?: At.DID;
2157
+ }
2158
+ type Input = undefined;
2159
+ interface Output {
2160
+ suggested: AppBskyUnspeccedDefs.TrendingTopic[];
2161
+ topics: AppBskyUnspeccedDefs.TrendingTopic[];
2162
+ }
2163
+ }
2164
+
2123
2165
  /** Backend Actors (profile) search, returns only skeleton. */
2124
2166
  namespace AppBskyUnspeccedSearchActorsSkeleton {
2125
2167
  interface Params {
@@ -2791,6 +2833,10 @@ declare module '@atcute/client/lexicons' {
2791
2833
  'app.bsky.unspecced.getTaggedSuggestions': {
2792
2834
  output: AppBskyUnspeccedGetTaggedSuggestions.Output;
2793
2835
  };
2836
+ 'app.bsky.unspecced.getTrendingTopics': {
2837
+ params: AppBskyUnspeccedGetTrendingTopics.Params;
2838
+ output: AppBskyUnspeccedGetTrendingTopics.Output;
2839
+ };
2794
2840
  'app.bsky.unspecced.searchActorsSkeleton': {
2795
2841
  params: AppBskyUnspeccedSearchActorsSkeleton.Params;
2796
2842
  output: AppBskyUnspeccedSearchActorsSkeleton.Output;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/bluesky",
4
- "version": "1.0.10",
4
+ "version": "1.0.12",
5
5
  "description": "Bluesky type definitions for atcute",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -21,8 +21,8 @@
21
21
  "@atcute/client": "^1.0.0 || ^2.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@atcute/client": "^2.0.6",
25
- "@atcute/lex-cli": "^1.0.3"
24
+ "@atcute/client": "^2.0.7",
25
+ "@atcute/lex-cli": "^1.0.4"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsc",