com.atproto.sync.subscribe_repos#

pydantic model atproto.xrpc_client.models.com.atproto.sync.subscribe_repos.Commit#

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos.

Show JSON schema
{
   "title": "Commit",
   "description": "Definition model for :obj:`com.atproto.sync.subscribeRepos`.",
   "type": "object",
   "properties": {
      "blobs": {
         "items": {
            "type": "string"
         },
         "title": "Blobs",
         "type": "array"
      },
      "blocks": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "format": "binary",
               "type": "string"
            }
         ],
         "title": "Blocks"
      },
      "commit": {
         "title": "Commit",
         "type": "string"
      },
      "ops": {
         "items": {
            "$ref": "#/$defs/RepoOp"
         },
         "maxItems": 200,
         "title": "Ops",
         "type": "array"
      },
      "rebase": {
         "title": "Rebase",
         "type": "boolean"
      },
      "repo": {
         "title": "Repo",
         "type": "string"
      },
      "rev": {
         "title": "Rev",
         "type": "string"
      },
      "seq": {
         "title": "Seq",
         "type": "integer"
      },
      "time": {
         "title": "Time",
         "type": "string"
      },
      "tooBig": {
         "title": "Toobig",
         "type": "boolean"
      },
      "prev": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Prev"
      },
      "since": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Since"
      },
      "$type": {
         "const": "com.atproto.sync.subscribeRepos#commit",
         "default": "com.atproto.sync.subscribeRepos#commit",
         "title": "$Type"
      }
   },
   "$defs": {
      "RepoOp": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.sync.subscribeRepos`. A repo operation, ie a write of a single record. For creates and updates, cid is the record's CID as of this operation. For deletes, it's null.",
         "properties": {
            "action": {
               "title": "Action",
               "type": "string"
            },
            "path": {
               "title": "Path",
               "type": "string"
            },
            "cid": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Cid"
            },
            "$type": {
               "const": "com.atproto.sync.subscribeRepos#repoOp",
               "default": "com.atproto.sync.subscribeRepos#repoOp",
               "title": "$Type"
            }
         },
         "required": [
            "action",
            "path"
         ],
         "title": "RepoOp",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "blobs",
      "blocks",
      "commit",
      "ops",
      "rebase",
      "repo",
      "rev",
      "seq",
      "time",
      "tooBig"
   ]
}

Fields:
field blobs: List[CIDType] [Required]#

Blobs.

field blocks: Union[str, bytes] [Required]#

CAR file containing relevant blocks.

field commit: CIDType [Required]#

Commit.

field ops: List[models.ComAtprotoSyncSubscribeRepos.RepoOp] [Required]#

Ops.

Constraints:
  • max_length = 200

field prev: Optional[CIDType] = None#

Prev.

field py_type: typing_extensions.Literal[com.atproto.sync.subscribeRepos#commit] = 'com.atproto.sync.subscribeRepos#commit' (alias '$type')#
field rebase: bool [Required]#

Rebase.

field repo: str [Required]#

Repo.

field rev: str [Required]#

The rev of the emitted commit.

field seq: int [Required]#

Seq.

field since: Optional[str] = None#

The rev of the last emitted commit from this repo.

field time: str [Required]#

Time.

field too_big: bool [Required] (alias 'tooBig')#

Too big.

pydantic model atproto.xrpc_client.models.com.atproto.sync.subscribe_repos.Handle#

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos.

Show JSON schema
{
   "title": "Handle",
   "description": "Definition model for :obj:`com.atproto.sync.subscribeRepos`.",
   "type": "object",
   "properties": {
      "did": {
         "title": "Did",
         "type": "string"
      },
      "handle": {
         "title": "Handle",
         "type": "string"
      },
      "seq": {
         "title": "Seq",
         "type": "integer"
      },
      "time": {
         "title": "Time",
         "type": "string"
      },
      "$type": {
         "const": "com.atproto.sync.subscribeRepos#handle",
         "default": "com.atproto.sync.subscribeRepos#handle",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "did",
      "handle",
      "seq",
      "time"
   ]
}

Fields:
field did: str [Required]#

Did.

field handle: str [Required]#

Handle.

field py_type: typing_extensions.Literal[com.atproto.sync.subscribeRepos#handle] = 'com.atproto.sync.subscribeRepos#handle' (alias '$type')#
field seq: int [Required]#

Seq.

field time: str [Required]#

Time.

pydantic model atproto.xrpc_client.models.com.atproto.sync.subscribe_repos.Info#

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos.

Show JSON schema
{
   "title": "Info",
   "description": "Definition model for :obj:`com.atproto.sync.subscribeRepos`.",
   "type": "object",
   "properties": {
      "name": {
         "title": "Name",
         "type": "string"
      },
      "message": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Message"
      },
      "$type": {
         "const": "com.atproto.sync.subscribeRepos#info",
         "default": "com.atproto.sync.subscribeRepos#info",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "name"
   ]
}

Fields:
field message: Optional[str] = None#

Message.

field name: str [Required]#

Name.

field py_type: typing_extensions.Literal[com.atproto.sync.subscribeRepos#info] = 'com.atproto.sync.subscribeRepos#info' (alias '$type')#
pydantic model atproto.xrpc_client.models.com.atproto.sync.subscribe_repos.Migrate#

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos.

Show JSON schema
{
   "title": "Migrate",
   "description": "Definition model for :obj:`com.atproto.sync.subscribeRepos`.",
   "type": "object",
   "properties": {
      "did": {
         "title": "Did",
         "type": "string"
      },
      "seq": {
         "title": "Seq",
         "type": "integer"
      },
      "time": {
         "title": "Time",
         "type": "string"
      },
      "migrateTo": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Migrateto"
      },
      "$type": {
         "const": "com.atproto.sync.subscribeRepos#migrate",
         "default": "com.atproto.sync.subscribeRepos#migrate",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "did",
      "seq",
      "time"
   ]
}

Fields:
field did: str [Required]#

Did.

field migrate_to: Optional[str] = None (alias 'migrateTo')#

Migrate to.

field py_type: typing_extensions.Literal[com.atproto.sync.subscribeRepos#migrate] = 'com.atproto.sync.subscribeRepos#migrate' (alias '$type')#
field seq: int [Required]#

Seq.

field time: str [Required]#

Time.

pydantic model atproto.xrpc_client.models.com.atproto.sync.subscribe_repos.Params#

Bases: ParamsModelBase

Parameters model for com.atproto.sync.subscribeRepos.

Show JSON schema
{
   "title": "Params",
   "description": "Parameters model for :obj:`com.atproto.sync.subscribeRepos`.",
   "type": "object",
   "properties": {
      "cursor": {
         "anyOf": [
            {
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      }
   },
   "additionalProperties": false
}

Fields:
field cursor: Optional[int] = None#

The last known event to backfill from.

class atproto.xrpc_client.models.com.atproto.sync.subscribe_repos.ParamsDict#

Bases: TypedDict

cursor: typing_extensions.NotRequired[Optional[int]]#

The last known event to backfill from.

pydantic model atproto.xrpc_client.models.com.atproto.sync.subscribe_repos.RepoOp#

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos. A repo operation, ie a write of a single record. For creates and updates, cid is the record’s CID as of this operation. For deletes, it’s null.

Show JSON schema
{
   "title": "RepoOp",
   "description": "Definition model for :obj:`com.atproto.sync.subscribeRepos`. A repo operation, ie a write of a single record. For creates and updates, cid is the record's CID as of this operation. For deletes, it's null.",
   "type": "object",
   "properties": {
      "action": {
         "title": "Action",
         "type": "string"
      },
      "path": {
         "title": "Path",
         "type": "string"
      },
      "cid": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cid"
      },
      "$type": {
         "const": "com.atproto.sync.subscribeRepos#repoOp",
         "default": "com.atproto.sync.subscribeRepos#repoOp",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "action",
      "path"
   ]
}

Fields:
field action: str [Required]#

Action.

field cid: Optional[CIDType] = None#

Cid.

field path: str [Required]#

Path.

field py_type: typing_extensions.Literal[com.atproto.sync.subscribeRepos#repoOp] = 'com.atproto.sync.subscribeRepos#repoOp' (alias '$type')#
pydantic model atproto.xrpc_client.models.com.atproto.sync.subscribe_repos.Tombstone#

Bases: ModelBase

Definition model for com.atproto.sync.subscribeRepos.

Show JSON schema
{
   "title": "Tombstone",
   "description": "Definition model for :obj:`com.atproto.sync.subscribeRepos`.",
   "type": "object",
   "properties": {
      "did": {
         "title": "Did",
         "type": "string"
      },
      "seq": {
         "title": "Seq",
         "type": "integer"
      },
      "time": {
         "title": "Time",
         "type": "string"
      },
      "$type": {
         "const": "com.atproto.sync.subscribeRepos#tombstone",
         "default": "com.atproto.sync.subscribeRepos#tombstone",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "did",
      "seq",
      "time"
   ]
}

Fields:
field did: str [Required]#

Did.

field py_type: typing_extensions.Literal[com.atproto.sync.subscribeRepos#tombstone] = 'com.atproto.sync.subscribeRepos#tombstone' (alias '$type')#
field seq: int [Required]#

Seq.

field time: str [Required]#

Time.