com.atproto.label.queryLabels

Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.

class atproto_client.models.com.atproto.label.query_labels.Params

Bases: ParamsModelBase

Parameters model for com.atproto.label.queryLabels.

field cursor: str | None = None

Cursor.

field limit: int | None = None

Limit.

Constraints:
  • ge = 1

  • le = 250

field sources: List[Did] | None = None

Optional list of label sources (DIDs) to filter on.

field uri_patterns: List[str] [Required]

List of AT URI patterns to match (boolean β€˜OR’). Each may be a prefix (ending with β€˜*’; will match inclusive of the string leading to β€˜*’), or a full URI.

class atproto_client.models.com.atproto.label.query_labels.ParamsDict

Bases: TypedDict

uri_patterns: List[str]

List of AT URI patterns to match (boolean β€˜OR’). Each may be a prefix (ending with β€˜*’; will match inclusive of the string leading to β€˜*’), or a full URI.

cursor: NotRequired[str | None]

Cursor.

limit: NotRequired[int | None]

Limit.

sources: NotRequired[List[Did] | None]

Optional list of label sources (DIDs) to filter on.

class atproto_client.models.com.atproto.label.query_labels.Response

Bases: ResponseModelBase

Output data model for com.atproto.label.queryLabels.

field cursor: str | None = None

Cursor.

field labels: List[models.ComAtprotoLabelDefs.Label] [Required]

Labels.