app.bsky.graph.get_list#

pydantic model atproto.xrpc_client.models.app.bsky.graph.get_list.Params#

Bases: ParamsModelBase

Parameters model for app.bsky.graph.getList.

Show JSON schema
{
   "title": "Params",
   "description": "Parameters model for :obj:`app.bsky.graph.getList`.",
   "type": "object",
   "properties": {
      "list": {
         "title": "List",
         "type": "string"
      },
      "cursor": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      },
      "limit": {
         "anyOf": [
            {
               "maximum": 100,
               "minimum": 1,
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": 50,
         "title": "Limit"
      }
   },
   "additionalProperties": false,
   "required": [
      "list"
   ]
}

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

Cursor.

field limit: Optional[int] = 50#

Limit.

Constraints:
  • ge = 1

  • le = 100

field list: str [Required]#

List.

class atproto.xrpc_client.models.app.bsky.graph.get_list.ParamsDict#

Bases: TypedDict

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

Cursor.

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

Limit.

list: str#

List.

pydantic model atproto.xrpc_client.models.app.bsky.graph.get_list.Response#

Bases: ResponseModelBase

Output data model for app.bsky.graph.getList.

Show JSON schema
{
   "title": "Response",
   "description": "Output data model for :obj:`app.bsky.graph.getList`.",
   "type": "object",
   "properties": {
      "items": {
         "items": {
            "$ref": "#/$defs/ListItemView"
         },
         "title": "Items",
         "type": "array"
      },
      "list": {
         "$ref": "#/$defs/ListView"
      },
      "cursor": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      }
   },
   "$defs": {
      "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"
      },
      "Label": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.label.defs`. Metadata tag on an atproto resource (eg, repo or record)",
         "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"
            }
         },
         "required": [
            "cts",
            "src",
            "uri",
            "val"
         ],
         "title": "Label",
         "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"
      },
      "ListItemView": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.graph.defs`.",
         "properties": {
            "subject": {
               "$ref": "#/$defs/ProfileView"
            },
            "$type": {
               "const": "app.bsky.graph.defs#listItemView",
               "default": "app.bsky.graph.defs#listItemView",
               "title": "$Type"
            }
         },
         "required": [
            "subject"
         ],
         "title": "ListItemView",
         "type": "object"
      },
      "ListView": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.graph.defs`.",
         "properties": {
            "cid": {
               "title": "Cid",
               "type": "string"
            },
            "creator": {
               "$ref": "#/$defs/ProfileView"
            },
            "indexedAt": {
               "title": "Indexedat",
               "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"
            },
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "avatar": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Avatar"
            },
            "description": {
               "anyOf": [
                  {
                     "maxLength": 3000,
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Description"
            },
            "descriptionFacets": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/Main"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Descriptionfacets"
            },
            "viewer": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/ListViewerState"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.graph.defs#listView",
               "default": "app.bsky.graph.defs#listView",
               "title": "$Type"
            }
         },
         "required": [
            "cid",
            "creator",
            "indexedAt",
            "name",
            "purpose",
            "uri"
         ],
         "title": "ListView",
         "type": "object"
      },
      "ListViewBasic": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.graph.defs`.",
         "properties": {
            "cid": {
               "title": "Cid",
               "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"
            },
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "avatar": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Avatar"
            },
            "indexedAt": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Indexedat"
            },
            "viewer": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/ListViewerState"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.graph.defs#listViewBasic",
               "default": "app.bsky.graph.defs#listViewBasic",
               "title": "$Type"
            }
         },
         "required": [
            "cid",
            "name",
            "purpose",
            "uri"
         ],
         "title": "ListViewBasic",
         "type": "object"
      },
      "ListViewerState": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.graph.defs`.",
         "properties": {
            "blocked": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Blocked"
            },
            "muted": {
               "anyOf": [
                  {
                     "type": "boolean"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Muted"
            },
            "$type": {
               "const": "app.bsky.graph.defs#listViewerState",
               "default": "app.bsky.graph.defs#listViewerState",
               "title": "$Type"
            }
         },
         "title": "ListViewerState",
         "type": "object"
      },
      "Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.richtext.facet`.",
         "properties": {
            "features": {
               "items": {
                  "discriminator": {
                     "mapping": {
                        "app.bsky.richtext.facet#link": "#/$defs/Link",
                        "app.bsky.richtext.facet#mention": "#/$defs/Mention",
                        "app.bsky.richtext.facet#tag": "#/$defs/Tag"
                     },
                     "propertyName": "$type"
                  },
                  "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"
      },
      "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"
      },
      "ProfileView": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.actor.defs`.",
         "properties": {
            "did": {
               "title": "Did",
               "type": "string"
            },
            "handle": {
               "title": "Handle",
               "type": "string"
            },
            "avatar": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Avatar"
            },
            "description": {
               "anyOf": [
                  {
                     "maxLength": 2560,
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Description"
            },
            "displayName": {
               "anyOf": [
                  {
                     "maxLength": 640,
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Displayname"
            },
            "indexedAt": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Indexedat"
            },
            "labels": {
               "anyOf": [
                  {
                     "items": {
                        "$ref": "#/$defs/Label"
                     },
                     "type": "array"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Labels"
            },
            "viewer": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/ViewerState"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.actor.defs#profileView",
               "default": "app.bsky.actor.defs#profileView",
               "title": "$Type"
            }
         },
         "required": [
            "did",
            "handle"
         ],
         "title": "ProfileView",
         "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"
      },
      "ViewerState": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.actor.defs`.",
         "properties": {
            "blockedBy": {
               "anyOf": [
                  {
                     "type": "boolean"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Blockedby"
            },
            "blocking": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Blocking"
            },
            "blockingByList": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/ListViewBasic"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "followedBy": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Followedby"
            },
            "following": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Following"
            },
            "muted": {
               "anyOf": [
                  {
                     "type": "boolean"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Muted"
            },
            "mutedByList": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/ListViewBasic"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "$type": {
               "const": "app.bsky.actor.defs#viewerState",
               "default": "app.bsky.actor.defs#viewerState",
               "title": "$Type"
            }
         },
         "title": "ViewerState",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "items",
      "list"
   ]
}

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

Cursor.

field items: List[models.AppBskyGraphDefs.ListItemView] [Required]#

Items.

field list: models.AppBskyGraphDefs.ListView [Required]#

List.