app.bsky.feed.threadgate#

pydantic model atproto.xrpc_client.models.app.bsky.feed.threadgate.FollowingRule#

Bases: ModelBase

Definition model for app.bsky.feed.threadgate. Allow replies from actors you follow.

Show JSON schema
{
   "title": "FollowingRule",
   "description": "Definition model for :obj:`app.bsky.feed.threadgate`. Allow replies from actors you follow.",
   "type": "object",
   "properties": {
      "$type": {
         "const": "app.bsky.feed.threadgate#followingRule",
         "default": "app.bsky.feed.threadgate#followingRule",
         "title": "$Type"
      }
   },
   "additionalProperties": false
}

Fields:
field py_type: typing_extensions.Literal[app.bsky.feed.threadgate#followingRule] = 'app.bsky.feed.threadgate#followingRule' (alias '$type')#
pydantic model atproto.xrpc_client.models.app.bsky.feed.threadgate.ListRule#

Bases: ModelBase

Definition model for app.bsky.feed.threadgate. Allow replies from actors on a list.

Show JSON schema
{
   "title": "ListRule",
   "description": "Definition model for :obj:`app.bsky.feed.threadgate`. Allow replies from actors on a list.",
   "type": "object",
   "properties": {
      "list": {
         "title": "List",
         "type": "string"
      },
      "$type": {
         "const": "app.bsky.feed.threadgate#listRule",
         "default": "app.bsky.feed.threadgate#listRule",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "list"
   ]
}

Fields:
field list: str [Required]#

List.

field py_type: typing_extensions.Literal[app.bsky.feed.threadgate#listRule] = 'app.bsky.feed.threadgate#listRule' (alias '$type')#
pydantic model atproto.xrpc_client.models.app.bsky.feed.threadgate.Main#

Bases: RecordModelBase

Record model for app.bsky.feed.threadgate.

Show JSON schema
{
   "title": "Main",
   "description": "Record model for :obj:`app.bsky.feed.threadgate`.",
   "type": "object",
   "properties": {
      "createdAt": {
         "title": "Createdat",
         "type": "string"
      },
      "post": {
         "title": "Post",
         "type": "string"
      },
      "allow": {
         "anyOf": [
            {
               "items": {
                  "discriminator": {
                     "mapping": {
                        "app.bsky.feed.threadgate#followingRule": "#/$defs/FollowingRule",
                        "app.bsky.feed.threadgate#listRule": "#/$defs/ListRule",
                        "app.bsky.feed.threadgate#mentionRule": "#/$defs/MentionRule"
                     },
                     "propertyName": "$type"
                  },
                  "oneOf": [
                     {
                        "$ref": "#/$defs/MentionRule"
                     },
                     {
                        "$ref": "#/$defs/FollowingRule"
                     },
                     {
                        "$ref": "#/$defs/ListRule"
                     }
                  ]
               },
               "maxItems": 5,
               "type": "array"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Allow"
      },
      "$type": {
         "const": "app.bsky.feed.threadgate",
         "default": "app.bsky.feed.threadgate",
         "title": "$Type"
      }
   },
   "$defs": {
      "FollowingRule": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.feed.threadgate`. Allow replies from actors you follow.",
         "properties": {
            "$type": {
               "const": "app.bsky.feed.threadgate#followingRule",
               "default": "app.bsky.feed.threadgate#followingRule",
               "title": "$Type"
            }
         },
         "title": "FollowingRule",
         "type": "object"
      },
      "ListRule": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.feed.threadgate`. Allow replies from actors on a list.",
         "properties": {
            "list": {
               "title": "List",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.feed.threadgate#listRule",
               "default": "app.bsky.feed.threadgate#listRule",
               "title": "$Type"
            }
         },
         "required": [
            "list"
         ],
         "title": "ListRule",
         "type": "object"
      },
      "MentionRule": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.feed.threadgate`. Allow replies from actors mentioned in your post.",
         "properties": {
            "$type": {
               "const": "app.bsky.feed.threadgate#mentionRule",
               "default": "app.bsky.feed.threadgate#mentionRule",
               "title": "$Type"
            }
         },
         "title": "MentionRule",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "createdAt",
      "post"
   ]
}

Fields:
field allow: Optional[List[Union[models.AppBskyFeedThreadgate.MentionRule, models.AppBskyFeedThreadgate.FollowingRule, models.AppBskyFeedThreadgate.ListRule][Union[models.AppBskyFeedThreadgate.MentionRule, models.AppBskyFeedThreadgate.FollowingRule, models.AppBskyFeedThreadgate.ListRule]]]] = None#
Constraints:
  • max_length = 5

field created_at: str [Required] (alias 'createdAt')#

Created at.

field post: str [Required]#

Post.

field py_type: typing_extensions.Literal[app.bsky.feed.threadgate] = 'app.bsky.feed.threadgate' (alias '$type')#
pydantic model atproto.xrpc_client.models.app.bsky.feed.threadgate.MentionRule#

Bases: ModelBase

Definition model for app.bsky.feed.threadgate. Allow replies from actors mentioned in your post.

Show JSON schema
{
   "title": "MentionRule",
   "description": "Definition model for :obj:`app.bsky.feed.threadgate`. Allow replies from actors mentioned in your post.",
   "type": "object",
   "properties": {
      "$type": {
         "const": "app.bsky.feed.threadgate#mentionRule",
         "default": "app.bsky.feed.threadgate#mentionRule",
         "title": "$Type"
      }
   },
   "additionalProperties": false
}

Fields:
field py_type: typing_extensions.Literal[app.bsky.feed.threadgate#mentionRule] = 'app.bsky.feed.threadgate#mentionRule' (alias '$type')#