@atcute/bluesky 1.0.11 → 1.0.13

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.
@@ -141,7 +141,21 @@ declare module '@atcute/client/lexicons' {
141
141
  /** The birth date of account owner. */
142
142
  birthDate?: string;
143
143
  }
144
- type Preferences = Brand.Union<AdultContentPref | BskyAppStatePref | ContentLabelPref | FeedViewPref | HiddenPostsPref | InterestsPref | LabelersPref | MutedWordsPref | PersonalDetailsPref | SavedFeedsPref | SavedFeedsPrefV2 | ThreadViewPref>[];
144
+ /** Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. */
145
+ interface PostInteractionSettingsPref {
146
+ [Brand.Type]?: 'app.bsky.actor.defs#postInteractionSettingsPref';
147
+ /**
148
+ * Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. \
149
+ * Maximum array length: 5
150
+ */
151
+ postgateEmbeddingRules?: Brand.Union<AppBskyFeedPostgate.DisableRule>[];
152
+ /**
153
+ * Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. \
154
+ * Maximum array length: 5
155
+ */
156
+ threadgateAllowRules?: Brand.Union<AppBskyFeedThreadgate.FollowerRule | AppBskyFeedThreadgate.FollowingRule | AppBskyFeedThreadgate.ListRule | AppBskyFeedThreadgate.MentionRule>[];
157
+ }
158
+ type Preferences = Brand.Union<AdultContentPref | BskyAppStatePref | ContentLabelPref | FeedViewPref | HiddenPostsPref | InterestsPref | LabelersPref | MutedWordsPref | PersonalDetailsPref | PostInteractionSettingsPref | SavedFeedsPref | SavedFeedsPrefV2 | ThreadViewPref>[];
145
159
  interface ProfileAssociated {
146
160
  [Brand.Type]?: 'app.bsky.actor.defs#profileAssociated';
147
161
  chat?: ProfileAssociatedChat;
@@ -296,6 +310,8 @@ declare module '@atcute/client/lexicons' {
296
310
  interface Output {
297
311
  actors: AppBskyActorDefs.ProfileView[];
298
312
  cursor?: string;
313
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
314
+ recId?: number;
299
315
  }
300
316
  }
301
317
  namespace AppBskyActorProfile {
@@ -544,6 +560,8 @@ declare module '@atcute/client/lexicons' {
544
560
  type ClickthroughEmbed = 'app.bsky.feed.defs#clickthroughEmbed';
545
561
  type ClickthroughItem = 'app.bsky.feed.defs#clickthroughItem';
546
562
  type ClickthroughReposter = 'app.bsky.feed.defs#clickthroughReposter';
563
+ type ContentModeUnspecified = 'app.bsky.feed.defs#contentModeUnspecified';
564
+ type ContentModeVideo = 'app.bsky.feed.defs#contentModeVideo';
547
565
  interface FeedViewPost {
548
566
  [Brand.Type]?: 'app.bsky.feed.defs#feedViewPost';
549
567
  post: PostView;
@@ -565,6 +583,7 @@ declare module '@atcute/client/lexicons' {
565
583
  uri: At.Uri;
566
584
  acceptsInteractions?: boolean;
567
585
  avatar?: string;
586
+ contentMode?: 'app.bsky.feed.defs#contentModeUnspecified' | 'app.bsky.feed.defs#contentModeVideo' | (string & {});
568
587
  /**
569
588
  * Maximum string length: 3000 \
570
589
  * Maximum grapheme length: 300
@@ -651,6 +670,11 @@ declare module '@atcute/client/lexicons' {
651
670
  [Brand.Type]?: 'app.bsky.feed.defs#skeletonReasonRepost';
652
671
  repost: At.Uri;
653
672
  }
673
+ /** Metadata about this post within the context of the thread it is in. */
674
+ interface ThreadContext {
675
+ [Brand.Type]?: 'app.bsky.feed.defs#threadContext';
676
+ rootAuthorLike?: At.Uri;
677
+ }
654
678
  interface ThreadgateView {
655
679
  [Brand.Type]?: 'app.bsky.feed.defs#threadgateView';
656
680
  cid?: At.CID;
@@ -663,6 +687,7 @@ declare module '@atcute/client/lexicons' {
663
687
  post: PostView;
664
688
  parent?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>;
665
689
  replies?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>[];
690
+ threadContext?: ThreadContext;
666
691
  }
667
692
  /** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
668
693
  interface ViewerState {
@@ -709,6 +734,7 @@ declare module '@atcute/client/lexicons' {
709
734
  /** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */
710
735
  acceptsInteractions?: boolean;
711
736
  avatar?: At.Blob;
737
+ contentMode?: 'app.bsky.feed.defs#contentModeUnspecified' | 'app.bsky.feed.defs#contentModeVideo' | (string & {});
712
738
  /**
713
739
  * Maximum string length: 3000 \
714
740
  * Maximum grapheme length: 300
@@ -768,7 +794,7 @@ declare module '@atcute/client/lexicons' {
768
794
  * Combinations of post/repost types to include in response.
769
795
  * @default "posts_with_replies"
770
796
  */
771
- filter?: 'posts_and_author_threads' | 'posts_no_replies' | 'posts_with_media' | 'posts_with_replies' | (string & {});
797
+ filter?: 'posts_and_author_threads' | 'posts_no_replies' | 'posts_with_media' | 'posts_with_replies' | 'posts_with_video' | (string & {});
772
798
  /** @default false */
773
799
  includePins?: boolean;
774
800
  /**
@@ -1116,7 +1142,10 @@ declare module '@atcute/client/lexicons' {
1116
1142
  * Maximum array length: 50
1117
1143
  */
1118
1144
  detachedEmbeddingUris?: At.Uri[];
1119
- /** Maximum array length: 5 */
1145
+ /**
1146
+ * List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. \
1147
+ * Maximum array length: 5
1148
+ */
1120
1149
  embeddingRules?: Brand.Union<DisableRule>[];
1121
1150
  }
1122
1151
  /** Disables embedding of this post. */
@@ -1199,14 +1228,21 @@ declare module '@atcute/client/lexicons' {
1199
1228
  createdAt: string;
1200
1229
  /** Reference (AT-URI) to the post record. */
1201
1230
  post: At.Uri;
1202
- /** Maximum array length: 5 */
1203
- allow?: Brand.Union<FollowingRule | ListRule | MentionRule>[];
1231
+ /**
1232
+ * List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. \
1233
+ * Maximum array length: 5
1234
+ */
1235
+ allow?: Brand.Union<FollowerRule | FollowingRule | ListRule | MentionRule>[];
1204
1236
  /**
1205
1237
  * List of hidden reply URIs. \
1206
1238
  * Maximum array length: 50
1207
1239
  */
1208
1240
  hiddenReplies?: At.Uri[];
1209
1241
  }
1242
+ /** Allow replies from actors who follow you. */
1243
+ interface FollowerRule {
1244
+ [Brand.Type]?: 'app.bsky.feed.threadgate#followerRule';
1245
+ }
1210
1246
  /** Allow replies from actors you follow. */
1211
1247
  interface FollowingRule {
1212
1248
  [Brand.Type]?: 'app.bsky.feed.threadgate#followingRule';
@@ -1580,6 +1616,8 @@ declare module '@atcute/client/lexicons' {
1580
1616
  * @default false
1581
1617
  */
1582
1618
  isFallback?: boolean;
1619
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
1620
+ recId?: number;
1583
1621
  }
1584
1622
  }
1585
1623
  namespace AppBskyGraphList {
@@ -1965,6 +2003,8 @@ declare module '@atcute/client/lexicons' {
1965
2003
  interface Output {
1966
2004
  actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
1967
2005
  cursor?: string;
2006
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
2007
+ recId?: number;
1968
2008
  /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
1969
2009
  relativeToDid?: At.DID;
1970
2010
  }
package/lib/lexicons.ts CHANGED
@@ -146,6 +146,25 @@ declare module '@atcute/client/lexicons' {
146
146
  /** The birth date of account owner. */
147
147
  birthDate?: string;
148
148
  }
149
+ /** Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. */
150
+ interface PostInteractionSettingsPref {
151
+ [Brand.Type]?: 'app.bsky.actor.defs#postInteractionSettingsPref';
152
+ /**
153
+ * Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. \
154
+ * Maximum array length: 5
155
+ */
156
+ postgateEmbeddingRules?: Brand.Union<AppBskyFeedPostgate.DisableRule>[];
157
+ /**
158
+ * Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. \
159
+ * Maximum array length: 5
160
+ */
161
+ threadgateAllowRules?: Brand.Union<
162
+ | AppBskyFeedThreadgate.FollowerRule
163
+ | AppBskyFeedThreadgate.FollowingRule
164
+ | AppBskyFeedThreadgate.ListRule
165
+ | AppBskyFeedThreadgate.MentionRule
166
+ >[];
167
+ }
149
168
  type Preferences = Brand.Union<
150
169
  | AdultContentPref
151
170
  | BskyAppStatePref
@@ -156,6 +175,7 @@ declare module '@atcute/client/lexicons' {
156
175
  | LabelersPref
157
176
  | MutedWordsPref
158
177
  | PersonalDetailsPref
178
+ | PostInteractionSettingsPref
159
179
  | SavedFeedsPref
160
180
  | SavedFeedsPrefV2
161
181
  | ThreadViewPref
@@ -318,6 +338,8 @@ declare module '@atcute/client/lexicons' {
318
338
  interface Output {
319
339
  actors: AppBskyActorDefs.ProfileView[];
320
340
  cursor?: string;
341
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
342
+ recId?: number;
321
343
  }
322
344
  }
323
345
 
@@ -591,6 +613,8 @@ declare module '@atcute/client/lexicons' {
591
613
  type ClickthroughEmbed = 'app.bsky.feed.defs#clickthroughEmbed';
592
614
  type ClickthroughItem = 'app.bsky.feed.defs#clickthroughItem';
593
615
  type ClickthroughReposter = 'app.bsky.feed.defs#clickthroughReposter';
616
+ type ContentModeUnspecified = 'app.bsky.feed.defs#contentModeUnspecified';
617
+ type ContentModeVideo = 'app.bsky.feed.defs#contentModeVideo';
594
618
  interface FeedViewPost {
595
619
  [Brand.Type]?: 'app.bsky.feed.defs#feedViewPost';
596
620
  post: PostView;
@@ -612,6 +636,10 @@ declare module '@atcute/client/lexicons' {
612
636
  uri: At.Uri;
613
637
  acceptsInteractions?: boolean;
614
638
  avatar?: string;
639
+ contentMode?:
640
+ | 'app.bsky.feed.defs#contentModeUnspecified'
641
+ | 'app.bsky.feed.defs#contentModeVideo'
642
+ | (string & {});
615
643
  /**
616
644
  * Maximum string length: 3000 \
617
645
  * Maximum grapheme length: 300
@@ -717,6 +745,11 @@ declare module '@atcute/client/lexicons' {
717
745
  [Brand.Type]?: 'app.bsky.feed.defs#skeletonReasonRepost';
718
746
  repost: At.Uri;
719
747
  }
748
+ /** Metadata about this post within the context of the thread it is in. */
749
+ interface ThreadContext {
750
+ [Brand.Type]?: 'app.bsky.feed.defs#threadContext';
751
+ rootAuthorLike?: At.Uri;
752
+ }
720
753
  interface ThreadgateView {
721
754
  [Brand.Type]?: 'app.bsky.feed.defs#threadgateView';
722
755
  cid?: At.CID;
@@ -729,6 +762,7 @@ declare module '@atcute/client/lexicons' {
729
762
  post: PostView;
730
763
  parent?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>;
731
764
  replies?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>[];
765
+ threadContext?: ThreadContext;
732
766
  }
733
767
  /** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
734
768
  interface ViewerState {
@@ -776,6 +810,10 @@ declare module '@atcute/client/lexicons' {
776
810
  /** Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions */
777
811
  acceptsInteractions?: boolean;
778
812
  avatar?: At.Blob;
813
+ contentMode?:
814
+ | 'app.bsky.feed.defs#contentModeUnspecified'
815
+ | 'app.bsky.feed.defs#contentModeVideo'
816
+ | (string & {});
779
817
  /**
780
818
  * Maximum string length: 3000 \
781
819
  * Maximum grapheme length: 300
@@ -843,6 +881,7 @@ declare module '@atcute/client/lexicons' {
843
881
  | 'posts_no_replies'
844
882
  | 'posts_with_media'
845
883
  | 'posts_with_replies'
884
+ | 'posts_with_video'
846
885
  | (string & {});
847
886
  /** @default false */
848
887
  includePins?: boolean;
@@ -1214,7 +1253,10 @@ declare module '@atcute/client/lexicons' {
1214
1253
  * Maximum array length: 50
1215
1254
  */
1216
1255
  detachedEmbeddingUris?: At.Uri[];
1217
- /** Maximum array length: 5 */
1256
+ /**
1257
+ * List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. \
1258
+ * Maximum array length: 5
1259
+ */
1218
1260
  embeddingRules?: Brand.Union<DisableRule>[];
1219
1261
  }
1220
1262
  /** Disables embedding of this post. */
@@ -1299,14 +1341,21 @@ declare module '@atcute/client/lexicons' {
1299
1341
  createdAt: string;
1300
1342
  /** Reference (AT-URI) to the post record. */
1301
1343
  post: At.Uri;
1302
- /** Maximum array length: 5 */
1303
- allow?: Brand.Union<FollowingRule | ListRule | MentionRule>[];
1344
+ /**
1345
+ * List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. \
1346
+ * Maximum array length: 5
1347
+ */
1348
+ allow?: Brand.Union<FollowerRule | FollowingRule | ListRule | MentionRule>[];
1304
1349
  /**
1305
1350
  * List of hidden reply URIs. \
1306
1351
  * Maximum array length: 50
1307
1352
  */
1308
1353
  hiddenReplies?: At.Uri[];
1309
1354
  }
1355
+ /** Allow replies from actors who follow you. */
1356
+ interface FollowerRule {
1357
+ [Brand.Type]?: 'app.bsky.feed.threadgate#followerRule';
1358
+ }
1310
1359
  /** Allow replies from actors you follow. */
1311
1360
  interface FollowingRule {
1312
1361
  [Brand.Type]?: 'app.bsky.feed.threadgate#followingRule';
@@ -1701,6 +1750,8 @@ declare module '@atcute/client/lexicons' {
1701
1750
  * @default false
1702
1751
  */
1703
1752
  isFallback?: boolean;
1753
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
1754
+ recId?: number;
1704
1755
  }
1705
1756
  }
1706
1757
 
@@ -2108,6 +2159,8 @@ declare module '@atcute/client/lexicons' {
2108
2159
  interface Output {
2109
2160
  actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
2110
2161
  cursor?: string;
2162
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
2163
+ recId?: number;
2111
2164
  /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
2112
2165
  relativeToDid?: At.DID;
2113
2166
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/bluesky",
4
- "version": "1.0.11",
4
+ "version": "1.0.13",
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/lex-cli": "^1.0.3",
25
- "@atcute/client": "^2.0.6"
24
+ "@atcute/client": "^2.0.7",
25
+ "@atcute/lex-cli": "^1.0.4"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsc",