diff --git a/.changeset/cool-yaks-change.md b/.changeset/cool-yaks-change.md new file mode 100644 index 00000000000..d64e6dbda74 --- /dev/null +++ b/.changeset/cool-yaks-change.md @@ -0,0 +1,5 @@ +--- +"@atproto/api": patch +--- + +Include `followerRule` as valid setting in `postInteractionSettings` pref diff --git a/lexicons/app/bsky/actor/defs.json b/lexicons/app/bsky/actor/defs.json index 5c1cb3ff021..1a26ee09c30 100644 --- a/lexicons/app/bsky/actor/defs.json +++ b/lexicons/app/bsky/actor/defs.json @@ -483,6 +483,7 @@ "type": "union", "refs": [ "app.bsky.feed.threadgate#mentionRule", + "app.bsky.feed.threadgate#followerRule", "app.bsky.feed.threadgate#followingRule", "app.bsky.feed.threadgate#listRule" ] diff --git a/packages/api/src/client/lexicons.ts b/packages/api/src/client/lexicons.ts index cd5db7cf588..3723fedd186 100644 --- a/packages/api/src/client/lexicons.ts +++ b/packages/api/src/client/lexicons.ts @@ -4730,6 +4730,7 @@ export const schemaDict = { type: 'union', refs: [ 'lex:app.bsky.feed.threadgate#mentionRule', + 'lex:app.bsky.feed.threadgate#followerRule', 'lex:app.bsky.feed.threadgate#followingRule', 'lex:app.bsky.feed.threadgate#listRule', ], diff --git a/packages/api/src/client/types/app/bsky/actor/defs.ts b/packages/api/src/client/types/app/bsky/actor/defs.ts index fa1dc66a0ca..84234ed2d08 100644 --- a/packages/api/src/client/types/app/bsky/actor/defs.ts +++ b/packages/api/src/client/types/app/bsky/actor/defs.ts @@ -541,6 +541,7 @@ export interface PostInteractionSettingsPref { /** 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. */ threadgateAllowRules?: ( | AppBskyFeedThreadgate.MentionRule + | AppBskyFeedThreadgate.FollowerRule | AppBskyFeedThreadgate.FollowingRule | AppBskyFeedThreadgate.ListRule | { $type: string; [k: string]: unknown } diff --git a/packages/bsky/src/lexicon/lexicons.ts b/packages/bsky/src/lexicon/lexicons.ts index 02f3daa30cd..f0392dccfde 100644 --- a/packages/bsky/src/lexicon/lexicons.ts +++ b/packages/bsky/src/lexicon/lexicons.ts @@ -4730,6 +4730,7 @@ export const schemaDict = { type: 'union', refs: [ 'lex:app.bsky.feed.threadgate#mentionRule', + 'lex:app.bsky.feed.threadgate#followerRule', 'lex:app.bsky.feed.threadgate#followingRule', 'lex:app.bsky.feed.threadgate#listRule', ], diff --git a/packages/bsky/src/lexicon/types/app/bsky/actor/defs.ts b/packages/bsky/src/lexicon/types/app/bsky/actor/defs.ts index 41af221ed7c..730b979dcea 100644 --- a/packages/bsky/src/lexicon/types/app/bsky/actor/defs.ts +++ b/packages/bsky/src/lexicon/types/app/bsky/actor/defs.ts @@ -541,6 +541,7 @@ export interface PostInteractionSettingsPref { /** 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. */ threadgateAllowRules?: ( | AppBskyFeedThreadgate.MentionRule + | AppBskyFeedThreadgate.FollowerRule | AppBskyFeedThreadgate.FollowingRule | AppBskyFeedThreadgate.ListRule | { $type: string; [k: string]: unknown } diff --git a/packages/ozone/src/lexicon/lexicons.ts b/packages/ozone/src/lexicon/lexicons.ts index cd5db7cf588..3723fedd186 100644 --- a/packages/ozone/src/lexicon/lexicons.ts +++ b/packages/ozone/src/lexicon/lexicons.ts @@ -4730,6 +4730,7 @@ export const schemaDict = { type: 'union', refs: [ 'lex:app.bsky.feed.threadgate#mentionRule', + 'lex:app.bsky.feed.threadgate#followerRule', 'lex:app.bsky.feed.threadgate#followingRule', 'lex:app.bsky.feed.threadgate#listRule', ], diff --git a/packages/ozone/src/lexicon/types/app/bsky/actor/defs.ts b/packages/ozone/src/lexicon/types/app/bsky/actor/defs.ts index 41af221ed7c..730b979dcea 100644 --- a/packages/ozone/src/lexicon/types/app/bsky/actor/defs.ts +++ b/packages/ozone/src/lexicon/types/app/bsky/actor/defs.ts @@ -541,6 +541,7 @@ export interface PostInteractionSettingsPref { /** 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. */ threadgateAllowRules?: ( | AppBskyFeedThreadgate.MentionRule + | AppBskyFeedThreadgate.FollowerRule | AppBskyFeedThreadgate.FollowingRule | AppBskyFeedThreadgate.ListRule | { $type: string; [k: string]: unknown } diff --git a/packages/pds/src/lexicon/lexicons.ts b/packages/pds/src/lexicon/lexicons.ts index cd5db7cf588..3723fedd186 100644 --- a/packages/pds/src/lexicon/lexicons.ts +++ b/packages/pds/src/lexicon/lexicons.ts @@ -4730,6 +4730,7 @@ export const schemaDict = { type: 'union', refs: [ 'lex:app.bsky.feed.threadgate#mentionRule', + 'lex:app.bsky.feed.threadgate#followerRule', 'lex:app.bsky.feed.threadgate#followingRule', 'lex:app.bsky.feed.threadgate#listRule', ], diff --git a/packages/pds/src/lexicon/types/app/bsky/actor/defs.ts b/packages/pds/src/lexicon/types/app/bsky/actor/defs.ts index 41af221ed7c..730b979dcea 100644 --- a/packages/pds/src/lexicon/types/app/bsky/actor/defs.ts +++ b/packages/pds/src/lexicon/types/app/bsky/actor/defs.ts @@ -541,6 +541,7 @@ export interface PostInteractionSettingsPref { /** 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. */ threadgateAllowRules?: ( | AppBskyFeedThreadgate.MentionRule + | AppBskyFeedThreadgate.FollowerRule | AppBskyFeedThreadgate.FollowingRule | AppBskyFeedThreadgate.ListRule | { $type: string; [k: string]: unknown }