@atcute/bluesky 1.0.12 → 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;
@@ -656,6 +670,11 @@ declare module '@atcute/client/lexicons' {
656
670
  [Brand.Type]?: 'app.bsky.feed.defs#skeletonReasonRepost';
657
671
  repost: At.Uri;
658
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
+ }
659
678
  interface ThreadgateView {
660
679
  [Brand.Type]?: 'app.bsky.feed.defs#threadgateView';
661
680
  cid?: At.CID;
@@ -668,6 +687,7 @@ declare module '@atcute/client/lexicons' {
668
687
  post: PostView;
669
688
  parent?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>;
670
689
  replies?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>[];
690
+ threadContext?: ThreadContext;
671
691
  }
672
692
  /** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
673
693
  interface ViewerState {
@@ -774,7 +794,7 @@ declare module '@atcute/client/lexicons' {
774
794
  * Combinations of post/repost types to include in response.
775
795
  * @default "posts_with_replies"
776
796
  */
777
- 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 & {});
778
798
  /** @default false */
779
799
  includePins?: boolean;
780
800
  /**
@@ -1122,7 +1142,10 @@ declare module '@atcute/client/lexicons' {
1122
1142
  * Maximum array length: 50
1123
1143
  */
1124
1144
  detachedEmbeddingUris?: At.Uri[];
1125
- /** 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
+ */
1126
1149
  embeddingRules?: Brand.Union<DisableRule>[];
1127
1150
  }
1128
1151
  /** Disables embedding of this post. */
@@ -1205,14 +1228,21 @@ declare module '@atcute/client/lexicons' {
1205
1228
  createdAt: string;
1206
1229
  /** Reference (AT-URI) to the post record. */
1207
1230
  post: At.Uri;
1208
- /** Maximum array length: 5 */
1209
- 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>[];
1210
1236
  /**
1211
1237
  * List of hidden reply URIs. \
1212
1238
  * Maximum array length: 50
1213
1239
  */
1214
1240
  hiddenReplies?: At.Uri[];
1215
1241
  }
1242
+ /** Allow replies from actors who follow you. */
1243
+ interface FollowerRule {
1244
+ [Brand.Type]?: 'app.bsky.feed.threadgate#followerRule';
1245
+ }
1216
1246
  /** Allow replies from actors you follow. */
1217
1247
  interface FollowingRule {
1218
1248
  [Brand.Type]?: 'app.bsky.feed.threadgate#followingRule';
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
@@ -725,6 +745,11 @@ declare module '@atcute/client/lexicons' {
725
745
  [Brand.Type]?: 'app.bsky.feed.defs#skeletonReasonRepost';
726
746
  repost: At.Uri;
727
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
+ }
728
753
  interface ThreadgateView {
729
754
  [Brand.Type]?: 'app.bsky.feed.defs#threadgateView';
730
755
  cid?: At.CID;
@@ -737,6 +762,7 @@ declare module '@atcute/client/lexicons' {
737
762
  post: PostView;
738
763
  parent?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>;
739
764
  replies?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>[];
765
+ threadContext?: ThreadContext;
740
766
  }
741
767
  /** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
742
768
  interface ViewerState {
@@ -855,6 +881,7 @@ declare module '@atcute/client/lexicons' {
855
881
  | 'posts_no_replies'
856
882
  | 'posts_with_media'
857
883
  | 'posts_with_replies'
884
+ | 'posts_with_video'
858
885
  | (string & {});
859
886
  /** @default false */
860
887
  includePins?: boolean;
@@ -1226,7 +1253,10 @@ declare module '@atcute/client/lexicons' {
1226
1253
  * Maximum array length: 50
1227
1254
  */
1228
1255
  detachedEmbeddingUris?: At.Uri[];
1229
- /** 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
+ */
1230
1260
  embeddingRules?: Brand.Union<DisableRule>[];
1231
1261
  }
1232
1262
  /** Disables embedding of this post. */
@@ -1311,14 +1341,21 @@ declare module '@atcute/client/lexicons' {
1311
1341
  createdAt: string;
1312
1342
  /** Reference (AT-URI) to the post record. */
1313
1343
  post: At.Uri;
1314
- /** Maximum array length: 5 */
1315
- 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>[];
1316
1349
  /**
1317
1350
  * List of hidden reply URIs. \
1318
1351
  * Maximum array length: 50
1319
1352
  */
1320
1353
  hiddenReplies?: At.Uri[];
1321
1354
  }
1355
+ /** Allow replies from actors who follow you. */
1356
+ interface FollowerRule {
1357
+ [Brand.Type]?: 'app.bsky.feed.threadgate#followerRule';
1358
+ }
1322
1359
  /** Allow replies from actors you follow. */
1323
1360
  interface FollowingRule {
1324
1361
  [Brand.Type]?: 'app.bsky.feed.threadgate#followingRule';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/bluesky",
4
- "version": "1.0.12",
4
+ "version": "1.0.13",
5
5
  "description": "Bluesky type definitions for atcute",
6
6
  "license": "MIT",
7
7
  "repository": {