app.bsky.actor.profile#

pydantic model atproto.xrpc_client.models.app.bsky.actor.profile.Main#

Bases: RecordModelBase

Record model for app.bsky.actor.profile.

Show JSON schema
{
   "title": "Main",
   "description": "Record model for :obj:`app.bsky.actor.profile`.",
   "type": "object",
   "properties": {
      "avatar": {
         "anyOf": [
            {
               "$ref": "#/$defs/BlobRef"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "banner": {
         "anyOf": [
            {
               "$ref": "#/$defs/BlobRef"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "description": {
         "anyOf": [
            {
               "maxLength": 2560,
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Description"
      },
      "displayName": {
         "anyOf": [
            {
               "maxLength": 640,
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Displayname"
      },
      "labels": {
         "anyOf": [
            {
               "default": null,
               "discriminator": {
                  "mapping": {
                     "com.atproto.label.defs#selfLabels": "#/$defs/SelfLabels"
                  },
                  "propertyName": "$type"
               },
               "oneOf": [
                  {
                     "$ref": "#/$defs/SelfLabels"
                  }
               ]
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Labels"
      },
      "$type": {
         "const": "app.bsky.actor.profile",
         "default": "app.bsky.actor.profile",
         "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"
      },
      "SelfLabel": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.label.defs`. Metadata tag on an atproto record, published by the author within the record. Note -- schemas should use #selfLabels, not #selfLabel.",
         "properties": {
            "val": {
               "maxLength": 128,
               "title": "Val",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.label.defs#selfLabel",
               "default": "com.atproto.label.defs#selfLabel",
               "title": "$Type"
            }
         },
         "required": [
            "val"
         ],
         "title": "SelfLabel",
         "type": "object"
      },
      "SelfLabels": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.label.defs`. Metadata tags on an atproto record, published by the author within the record.",
         "properties": {
            "values": {
               "items": {
                  "$ref": "#/$defs/SelfLabel"
               },
               "maxItems": 10,
               "title": "Values",
               "type": "array"
            },
            "$type": {
               "const": "com.atproto.label.defs#selfLabels",
               "default": "com.atproto.label.defs#selfLabels",
               "title": "$Type"
            }
         },
         "required": [
            "values"
         ],
         "title": "SelfLabels",
         "type": "object"
      }
   },
   "additionalProperties": false
}

Fields:
field avatar: Optional[BlobRef] = None#

Avatar.

field banner: Optional[BlobRef] = None#

Banner.

field description: Optional[str] = None#

Description.

Constraints:
  • max_length = 2560

field display_name: Optional[str] = None (alias 'displayName')#

Display name.

Constraints:
  • max_length = 640

field labels: Optional[SelfLabels[models.ComAtprotoLabelDefs.SelfLabels]] = None#
field py_type: typing_extensions.Literal[app.bsky.actor.profile] = 'app.bsky.actor.profile' (alias '$type')#