com.atproto.label.defs#

pydantic model atproto.xrpc_client.models.com.atproto.label.defs.Label#

Bases: ModelBase

Definition model for com.atproto.label.defs. Metadata tag on an atproto resource (eg, repo or record)

Show JSON schema
{
   "title": "Label",
   "description": "Definition model for :obj:`com.atproto.label.defs`. Metadata tag on an atproto resource (eg, repo or record)",
   "type": "object",
   "properties": {
      "cts": {
         "title": "Cts",
         "type": "string"
      },
      "src": {
         "title": "Src",
         "type": "string"
      },
      "uri": {
         "title": "Uri",
         "type": "string"
      },
      "val": {
         "maxLength": 128,
         "title": "Val",
         "type": "string"
      },
      "cid": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cid"
      },
      "neg": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Neg"
      },
      "$type": {
         "const": "com.atproto.label.defs#label",
         "default": "com.atproto.label.defs#label",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "cts",
      "src",
      "uri",
      "val"
   ]
}

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

optionally, CID specifying the specific version of ‘uri’ resource this label applies to.

field cts: str [Required]#

timestamp when this label was created.

field neg: Optional[bool] = None#

if true, this is a negation label, overwriting a previous label.

field py_type: typing_extensions.Literal[com.atproto.label.defs#label] = 'com.atproto.label.defs#label' (alias '$type')#
field src: str [Required]#

DID of the actor who created this label.

field uri: str [Required]#

AT URI of the record, repository (account), or other resource which this label applies to.

field val: str [Required]#

the short string name of the value or type of this label.

Constraints:
  • max_length = 128

pydantic model atproto.xrpc_client.models.com.atproto.label.defs.SelfLabel#

Bases: ModelBase

Definition model for com.atproto.label.defs. Metadata tag on an atproto record, published by the author within the record. Note – schemas should use #selfLabels, not #selfLabel.

Show JSON schema
{
   "title": "SelfLabel",
   "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.",
   "type": "object",
   "properties": {
      "val": {
         "maxLength": 128,
         "title": "Val",
         "type": "string"
      },
      "$type": {
         "const": "com.atproto.label.defs#selfLabel",
         "default": "com.atproto.label.defs#selfLabel",
         "title": "$Type"
      }
   },
   "additionalProperties": false,
   "required": [
      "val"
   ]
}

Fields:
field py_type: typing_extensions.Literal[com.atproto.label.defs#selfLabel] = 'com.atproto.label.defs#selfLabel' (alias '$type')#
field val: str [Required]#

the short string name of the value or type of this label.

Constraints:
  • max_length = 128

pydantic model atproto.xrpc_client.models.com.atproto.label.defs.SelfLabels#

Bases: ModelBase

Definition model for com.atproto.label.defs. Metadata tags on an atproto record, published by the author within the record.

Show JSON schema
{
   "title": "SelfLabels",
   "description": "Definition model for :obj:`com.atproto.label.defs`. Metadata tags on an atproto record, published by the author within the record.",
   "type": "object",
   "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"
      }
   },
   "$defs": {
      "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"
      }
   },
   "additionalProperties": false,
   "required": [
      "values"
   ]
}

Fields:
field py_type: typing_extensions.Literal[com.atproto.label.defs#selfLabels] = 'com.atproto.label.defs#selfLabels' (alias '$type')#
field values: List[models.ComAtprotoLabelDefs.SelfLabel] [Required]#

Values.

Constraints:
  • max_length = 10