com.atproto.repo.put_record#

pydantic model atproto.xrpc_client.models.com.atproto.repo.put_record.Data#

Bases: DataModelBase

Input data model for com.atproto.repo.putRecord.

Show JSON schema
{
   "title": "Data",
   "description": "Input data model for :obj:`com.atproto.repo.putRecord`.",
   "type": "object",
   "properties": {
      "collection": {
         "title": "Collection",
         "type": "string"
      },
      "record": {
         "anyOf": [
            {
               "discriminator": {
                  "mapping": {
                     "app.bsky.actor.profile": "#/$defs/atproto__xrpc_client__models__app__bsky__actor__profile__Main",
                     "app.bsky.feed.generator": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__generator__Main",
                     "app.bsky.feed.like": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__like__Main",
                     "app.bsky.feed.post": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__post__Main",
                     "app.bsky.feed.repost": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__repost__Main",
                     "app.bsky.feed.threadgate": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__threadgate__Main",
                     "app.bsky.graph.block": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__block__Main",
                     "app.bsky.graph.follow": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__follow__Main",
                     "app.bsky.graph.list": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__list__Main",
                     "app.bsky.graph.listblock": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__listblock__Main",
                     "app.bsky.graph.listitem": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__listitem__Main"
                  },
                  "propertyName": "$type"
               },
               "oneOf": [
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__actor__profile__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__generator__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__like__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__post__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__repost__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__feed__threadgate__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__block__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__follow__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__list__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__listblock__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__graph__listitem__Main"
                  }
               ]
            },
            {
               "type": "object"
            }
         ],
         "title": "Record"
      },
      "repo": {
         "title": "Repo",
         "type": "string"
      },
      "rkey": {
         "maxLength": 15,
         "title": "Rkey",
         "type": "string"
      },
      "swapCommit": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Swapcommit"
      },
      "swapRecord": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Swaprecord"
      },
      "validate": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": true,
         "title": "Validate"
      }
   },
   "$defs": {
      "AspectRatio": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.embed.images`. width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.",
         "properties": {
            "height": {
               "minimum": 1,
               "title": "Height",
               "type": "integer"
            },
            "width": {
               "minimum": 1,
               "title": "Width",
               "type": "integer"
            },
            "$type": {
               "const": "app.bsky.embed.images#aspectRatio",
               "default": "app.bsky.embed.images#aspectRatio",
               "title": "$Type"
            }
         },
         "required": [
            "height",
            "width"
         ],
         "title": "AspectRatio",
         "type": "object"
      },
      "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"
      },
      "ByteSlice": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.richtext.facet`. A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.",
         "properties": {
            "byteEnd": {
               "minimum": 0,
               "title": "Byteend",
               "type": "integer"
            },
            "byteStart": {
               "minimum": 0,
               "title": "Bytestart",
               "type": "integer"
            },
            "$type": {
               "const": "app.bsky.richtext.facet#byteSlice",
               "default": "app.bsky.richtext.facet#byteSlice",
               "title": "$Type"
            }
         },
         "required": [
            "byteEnd",
            "byteStart"
         ],
         "title": "ByteSlice",
         "type": "object"
      },
      "Entity": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.feed.post`. Deprecated: use facets instead.",
         "properties": {
            "index": {
               "$ref": "#/$defs/TextSlice"
            },
            "type": {
               "title": "Type",
               "type": "string"
            },
            "value": {
               "title": "Value",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.feed.post#entity",
               "default": "app.bsky.feed.post#entity",
               "title": "$Type"
            }
         },
         "required": [
            "index",
            "type",
            "value"
         ],
         "title": "Entity",
         "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"
      },
      "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"
      },
      "Image": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.embed.images`.",
         "properties": {
            "alt": {
               "title": "Alt",
               "type": "string"
            },
            "image": {
               "$ref": "#/$defs/BlobRef"
            },
            "aspectRatio": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/AspectRatio"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.embed.images#image",
               "default": "app.bsky.embed.images#image",
               "title": "$Type"
            }
         },
         "required": [
            "alt",
            "image"
         ],
         "title": "Image",
         "type": "object"
      },
      "Link": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.richtext.facet`. A facet feature for links.",
         "properties": {
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.richtext.facet#link",
               "default": "app.bsky.richtext.facet#link",
               "title": "$Type"
            }
         },
         "required": [
            "uri"
         ],
         "title": "Link",
         "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"
      },
      "Mention": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.richtext.facet`. A facet feature for actor mentions.",
         "properties": {
            "did": {
               "title": "Did",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.richtext.facet#mention",
               "default": "app.bsky.richtext.facet#mention",
               "title": "$Type"
            }
         },
         "required": [
            "did"
         ],
         "title": "Mention",
         "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"
      },
      "ReplyRef": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.feed.post`.",
         "properties": {
            "parent": {
               "$ref": "#/$defs/atproto__xrpc_client__models__com__atproto__repo__strong_ref__Main"
            },
            "root": {
               "$ref": "#/$defs/atproto__xrpc_client__models__com__atproto__repo__strong_ref__Main"
            },
            "$type": {
               "const": "app.bsky.feed.post#replyRef",
               "default": "app.bsky.feed.post#replyRef",
               "title": "$Type"
            }
         },
         "required": [
            "parent",
            "root"
         ],
         "title": "ReplyRef",
         "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"
      },
      "Tag": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.richtext.facet`. A hashtag.",
         "properties": {
            "tag": {
               "maxLength": 640,
               "title": "Tag",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.richtext.facet#tag",
               "default": "app.bsky.richtext.facet#tag",
               "title": "$Type"
            }
         },
         "required": [
            "tag"
         ],
         "title": "Tag",
         "type": "object"
      },
      "TextSlice": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.feed.post`. Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.",
         "properties": {
            "end": {
               "minimum": 0,
               "title": "End",
               "type": "integer"
            },
            "start": {
               "minimum": 0,
               "title": "Start",
               "type": "integer"
            },
            "$type": {
               "const": "app.bsky.feed.post#textSlice",
               "default": "app.bsky.feed.post#textSlice",
               "title": "$Type"
            }
         },
         "required": [
            "end",
            "start"
         ],
         "title": "TextSlice",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__actor__profile__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.actor.profile`.",
         "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": [
                  {
                     "allOf": [
                        {
                           "$ref": "#/$defs/SelfLabels"
                        }
                     ],
                     "default": null
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.actor.profile",
               "default": "app.bsky.actor.profile",
               "title": "$Type"
            }
         },
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__embed__external__Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.embed.external`.",
         "properties": {
            "external": {
               "$ref": "#/$defs/External"
            },
            "$type": {
               "const": "app.bsky.embed.external",
               "default": "app.bsky.embed.external",
               "title": "$Type"
            }
         },
         "required": [
            "external"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__embed__images__Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.embed.images`.",
         "properties": {
            "images": {
               "items": {
                  "$ref": "#/$defs/Image"
               },
               "maxItems": 4,
               "title": "Images",
               "type": "array"
            },
            "$type": {
               "const": "app.bsky.embed.images",
               "default": "app.bsky.embed.images",
               "title": "$Type"
            }
         },
         "required": [
            "images"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__embed__record__Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.embed.record`.",
         "properties": {
            "record": {
               "$ref": "#/$defs/atproto__xrpc_client__models__com__atproto__repo__strong_ref__Main"
            },
            "$type": {
               "const": "app.bsky.embed.record",
               "default": "app.bsky.embed.record",
               "title": "$Type"
            }
         },
         "required": [
            "record"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__embed__record_with_media__Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.embed.recordWithMedia`.",
         "properties": {
            "media": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__embed__images__Main"
                  },
                  {
                     "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__embed__external__Main"
                  }
               ],
               "title": "Media"
            },
            "record": {
               "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__embed__record__Main"
            },
            "$type": {
               "const": "app.bsky.embed.recordWithMedia",
               "default": "app.bsky.embed.recordWithMedia",
               "title": "$Type"
            }
         },
         "required": [
            "media",
            "record"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__feed__generator__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.feed.generator`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "did": {
               "title": "Did",
               "type": "string"
            },
            "displayName": {
               "maxLength": 240,
               "title": "Displayname",
               "type": "string"
            },
            "avatar": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/BlobRef"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "description": {
               "anyOf": [
                  {
                     "maxLength": 3000,
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Description"
            },
            "descriptionFacets": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__richtext__facet__Main"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Descriptionfacets"
            },
            "labels": {
               "anyOf": [
                  {
                     "allOf": [
                        {
                           "$ref": "#/$defs/SelfLabels"
                        }
                     ],
                     "default": null
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.feed.generator",
               "default": "app.bsky.feed.generator",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "did",
            "displayName"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__feed__like__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.feed.like`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "subject": {
               "$ref": "#/$defs/atproto__xrpc_client__models__com__atproto__repo__strong_ref__Main"
            },
            "$type": {
               "const": "app.bsky.feed.like",
               "default": "app.bsky.feed.like",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "subject"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__feed__post__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.feed.post`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "text": {
               "maxLength": 3000,
               "title": "Text",
               "type": "string"
            },
            "embed": {
               "anyOf": [
                  {
                     "anyOf": [
                        {
                           "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__embed__images__Main"
                        },
                        {
                           "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__embed__external__Main"
                        },
                        {
                           "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__embed__record__Main"
                        },
                        {
                           "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__embed__record_with_media__Main"
                        }
                     ],
                     "default": null
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Embed"
            },
            "entities": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/Entity"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Entities"
            },
            "facets": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__richtext__facet__Main"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Facets"
            },
            "labels": {
               "anyOf": [
                  {
                     "allOf": [
                        {
                           "$ref": "#/$defs/SelfLabels"
                        }
                     ],
                     "default": null
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "langs": {
               "anyOf": [
                  {
                     "items": {
                        "type": "string"
                     },
                     "maxItems": 3,
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Langs"
            },
            "reply": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/ReplyRef"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "tags": {
               "anyOf": [
                  {
                     "items": {
                        "type": "string"
                     },
                     "maxItems": 8,
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Tags"
            },
            "$type": {
               "const": "app.bsky.feed.post",
               "default": "app.bsky.feed.post",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "text"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__feed__repost__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.feed.repost`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "subject": {
               "$ref": "#/$defs/atproto__xrpc_client__models__com__atproto__repo__strong_ref__Main"
            },
            "$type": {
               "const": "app.bsky.feed.repost",
               "default": "app.bsky.feed.repost",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "subject"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__feed__threadgate__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.feed.threadgate`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "post": {
               "title": "Post",
               "type": "string"
            },
            "allow": {
               "anyOf": [
                  {
                     "items": {
                        "anyOf": [
                           {
                              "$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"
            }
         },
         "required": [
            "createdAt",
            "post"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__graph__block__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.graph.block`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "subject": {
               "title": "Subject",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.graph.block",
               "default": "app.bsky.graph.block",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "subject"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__graph__follow__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.graph.follow`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "subject": {
               "title": "Subject",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.graph.follow",
               "default": "app.bsky.graph.follow",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "subject"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__graph__list__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.graph.list`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "name": {
               "maxLength": 64,
               "minLength": 1,
               "title": "Name",
               "type": "string"
            },
            "purpose": {
               "anyOf": [
                  {
                     "const": "app.bsky.graph.defs#modlist"
                  },
                  {
                     "const": "app.bsky.graph.defs#curatelist"
                  }
               ],
               "title": "Purpose"
            },
            "avatar": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/BlobRef"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "description": {
               "anyOf": [
                  {
                     "maxLength": 3000,
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Description"
            },
            "descriptionFacets": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/atproto__xrpc_client__models__app__bsky__richtext__facet__Main"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Descriptionfacets"
            },
            "labels": {
               "anyOf": [
                  {
                     "allOf": [
                        {
                           "$ref": "#/$defs/SelfLabels"
                        }
                     ],
                     "default": null
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.graph.list",
               "default": "app.bsky.graph.list",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "name",
            "purpose"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__graph__listblock__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.graph.listblock`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "subject": {
               "title": "Subject",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.graph.listblock",
               "default": "app.bsky.graph.listblock",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "subject"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__graph__listitem__Main": {
         "additionalProperties": false,
         "description": "Record model for :obj:`app.bsky.graph.listitem`.",
         "properties": {
            "createdAt": {
               "title": "Createdat",
               "type": "string"
            },
            "list": {
               "title": "List",
               "type": "string"
            },
            "subject": {
               "title": "Subject",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.graph.listitem",
               "default": "app.bsky.graph.listitem",
               "title": "$Type"
            }
         },
         "required": [
            "createdAt",
            "list",
            "subject"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__app__bsky__richtext__facet__Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.richtext.facet`.",
         "properties": {
            "features": {
               "items": {
                  "oneOf": [
                     {
                        "$ref": "#/$defs/Mention"
                     },
                     {
                        "$ref": "#/$defs/Link"
                     },
                     {
                        "$ref": "#/$defs/Tag"
                     }
                  ]
               },
               "title": "Features",
               "type": "array"
            },
            "index": {
               "$ref": "#/$defs/ByteSlice"
            },
            "$type": {
               "const": "app.bsky.richtext.facet",
               "default": "app.bsky.richtext.facet",
               "title": "$Type"
            }
         },
         "required": [
            "features",
            "index"
         ],
         "title": "Main",
         "type": "object"
      },
      "atproto__xrpc_client__models__com__atproto__repo__strong_ref__Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.repo.strongRef`.",
         "properties": {
            "cid": {
               "title": "Cid",
               "type": "string"
            },
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.repo.strongRef",
               "default": "com.atproto.repo.strongRef",
               "title": "$Type"
            }
         },
         "required": [
            "cid",
            "uri"
         ],
         "title": "Main",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "collection",
      "record",
      "repo",
      "rkey"
   ]
}

Fields:
field collection: str [Required]#

The NSID of the record collection.

field record: UnknownInputType [Required]#

The record to write.

field repo: str [Required]#

The handle or DID of the repo.

field rkey: str [Required]#

The key of the record.

Constraints:
  • max_length = 15

field swap_commit: Optional[str] = None (alias 'swapCommit')#

Compare and swap with the previous commit by cid.

field swap_record: Optional[str] = None (alias 'swapRecord')#

Compare and swap with the previous record by cid.

field validate_: Optional[bool] = True (alias 'validate')#

Validate the record?

class atproto.xrpc_client.models.com.atproto.repo.put_record.DataDict#

Bases: TypedDict

collection: str#

The NSID of the record collection.

record: UnknownInputType#

The record to write.

repo: str#

The handle or DID of the repo.

rkey: str#

The key of the record.

swap_commit: typing_extensions.NotRequired[Optional[str]]#

Compare and swap with the previous commit by cid.

swap_record: typing_extensions.NotRequired[Optional[str]]#

Compare and swap with the previous record by cid.

validate: typing_extensions.NotRequired[Optional[bool]]#

Validate the record?

pydantic model atproto.xrpc_client.models.com.atproto.repo.put_record.Response#

Bases: ResponseModelBase

Output data model for com.atproto.repo.putRecord.

Show JSON schema
{
   "title": "Response",
   "description": "Output data model for :obj:`com.atproto.repo.putRecord`.",
   "type": "object",
   "properties": {
      "cid": {
         "title": "Cid",
         "type": "string"
      },
      "uri": {
         "title": "Uri",
         "type": "string"
      }
   },
   "additionalProperties": false,
   "required": [
      "cid",
      "uri"
   ]
}

Fields:
field cid: str [Required]#

Cid.

field uri: str [Required]#

Uri.