app.bsky.embed.external#

pydantic model atproto.xrpc_client.models.app.bsky.embed.external.External#

Bases: ModelBase

Definition model for app.bsky.embed.external.

Show JSON schema
{
   "title": "External",
   "description": "Definition model for :obj:`app.bsky.embed.external`.",
   "type": "object",
   "properties": {
      "description": {
         "title": "Description",
         "type": "string"
      },
      "title": {
         "title": "Title",
         "type": "string"
      },
      "uri": {
         "title": "Uri",
         "type": "string"
      },
      "thumb": {
         "anyOf": [
            {
               "$ref": "#/$defs/BlobRef"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "$type": {
         "const": "app.bsky.embed.external#external",
         "default": "app.bsky.embed.external#external",
         "title": "$Type"
      }
   },
   "$defs": {
      "BlobRef": {
         "additionalProperties": false,
         "description": "Blob reference.",
         "properties": {
            "mimeType": {
               "title": "Mimetype",
               "type": "string"
            },
            "size": {
               "title": "Size",
               "type": "integer"
            },
            "ref": {
               "$ref": "#/$defs/BlobRefLink"
            },
            "$type": {
               "const": "blob",
               "default": "blob",
               "title": "$Type"
            }
         },
         "required": [
            "mimeType",
            "size",
            "ref"
         ],
         "title": "BlobRef",
         "type": "object"
      },
      "BlobRefLink": {
         "description": "Blob reference link.",
         "properties": {
            "$link": {
               "title": "$Link",
               "type": "string"
            }
         },
         "required": [
            "$link"
         ],
         "title": "BlobRefLink",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "description",
      "title",
      "uri"
   ]
}

Fields:
field description: str [Required]#

Description.

field py_type: typing_extensions.Literal[app.bsky.embed.external#external] = 'app.bsky.embed.external#external' (alias '$type')#
field thumb: Optional[BlobRef] = None#

Thumb.

field title: str [Required]#

Title.

field uri: str [Required]#

Uri.

pydantic model atproto.xrpc_client.models.app.bsky.embed.external.Main#

Bases: ModelBase

Definition model for app.bsky.embed.external.

Show JSON schema
{
   "title": "Main",
   "description": "Definition model for :obj:`app.bsky.embed.external`.",
   "type": "object",
   "properties": {
      "external": {
         "$ref": "#/$defs/External"
      },
      "$type": {
         "const": "app.bsky.embed.external",
         "default": "app.bsky.embed.external",
         "title": "$Type"
      }
   },
   "$defs": {
      "BlobRef": {
         "additionalProperties": false,
         "description": "Blob reference.",
         "properties": {
            "mimeType": {
               "title": "Mimetype",
               "type": "string"
            },
            "size": {
               "title": "Size",
               "type": "integer"
            },
            "ref": {
               "$ref": "#/$defs/BlobRefLink"
            },
            "$type": {
               "const": "blob",
               "default": "blob",
               "title": "$Type"
            }
         },
         "required": [
            "mimeType",
            "size",
            "ref"
         ],
         "title": "BlobRef",
         "type": "object"
      },
      "BlobRefLink": {
         "description": "Blob reference link.",
         "properties": {
            "$link": {
               "title": "$Link",
               "type": "string"
            }
         },
         "required": [
            "$link"
         ],
         "title": "BlobRefLink",
         "type": "object"
      },
      "External": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.embed.external`.",
         "properties": {
            "description": {
               "title": "Description",
               "type": "string"
            },
            "title": {
               "title": "Title",
               "type": "string"
            },
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "thumb": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/BlobRef"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.embed.external#external",
               "default": "app.bsky.embed.external#external",
               "title": "$Type"
            }
         },
         "required": [
            "description",
            "title",
            "uri"
         ],
         "title": "External",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "external"
   ]
}

Fields:
field external: models.AppBskyEmbedExternal.External [Required]#

External.

field py_type: typing_extensions.Literal[app.bsky.embed.external] = 'app.bsky.embed.external' (alias '$type')#
pydantic model atproto.xrpc_client.models.app.bsky.embed.external.View#

Bases: ModelBase

Definition model for app.bsky.embed.external.

Show JSON schema
{
   "title": "View",
   "description": "Definition model for :obj:`app.bsky.embed.external`.",
   "type": "object",
   "properties": {
      "external": {
         "$ref": "#/$defs/ViewExternal"
      },
      "$type": {
         "const": "app.bsky.embed.external#view",
         "default": "app.bsky.embed.external#view",
         "title": "$Type"
      }
   },
   "$defs": {
      "ViewExternal": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.embed.external`.",
         "properties": {
            "description": {
               "title": "Description",
               "type": "string"
            },
            "title": {
               "title": "Title",
               "type": "string"
            },
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "thumb": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Thumb"
            },
            "$type": {
               "const": "app.bsky.embed.external#viewExternal",
               "default": "app.bsky.embed.external#viewExternal",
               "title": "$Type"
            }
         },
         "required": [
            "description",
            "title",
            "uri"
         ],
         "title": "ViewExternal",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "external"
   ]
}

Fields:
field external: models.AppBskyEmbedExternal.ViewExternal [Required]#

External.

field py_type: typing_extensions.Literal[app.bsky.embed.external#view] = 'app.bsky.embed.external#view' (alias '$type')#
pydantic model atproto.xrpc_client.models.app.bsky.embed.external.ViewExternal#

Bases: ModelBase

Definition model for app.bsky.embed.external.

Show JSON schema
{
   "title": "ViewExternal",
   "description": "Definition model for :obj:`app.bsky.embed.external`.",
   "type": "object",
   "properties": {
      "description": {
         "title": "Description",
         "type": "string"
      },
      "title": {
         "title": "Title",
         "type": "string"
      },
      "uri": {
         "title": "Uri",
         "type": "string"
      },
      "thumb": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Thumb"
      },
      "$type": {
         "const": "app.bsky.embed.external#viewExternal",
         "default": "app.bsky.embed.external#viewExternal",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "description",
      "title",
      "uri"
   ]
}

Fields:
field description: str [Required]#

Description.

field py_type: typing_extensions.Literal[app.bsky.embed.external#viewExternal] = 'app.bsky.embed.external#viewExternal' (alias '$type')#
field thumb: Optional[str] = None#

Thumb.

field title: str [Required]#

Title.

field uri: str [Required]#

Uri.