tools.ozone.safelink.defs¶

atproto_client.models.tools.ozone.safelink.defs.ActionType¶

Action type

alias of Union[Literal[‘block’], Literal[‘warn’], Literal[‘whitelist’], str]

class atproto_client.models.tools.ozone.safelink.defs.Event¶

Bases: ModelBase

Definition model for tools.ozone.safelink.defs. An event for URL safety decisions.

field action: models.ToolsOzoneSafelinkDefs.ActionType [Required]¶

Action.

field comment: str | None = None¶

Optional comment about the decision.

field created_at: str [Required]¶

Created at.

Constraints:
field created_by: str [Required]¶

DID of the user who created this rule.

Constraints:
field event_type: models.ToolsOzoneSafelinkDefs.EventType [Required]¶

Event type.

field id: int [Required]¶

Auto-incrementing row ID.

field pattern: models.ToolsOzoneSafelinkDefs.PatternType [Required]¶

Pattern.

field py_type: Literal['tools.ozone.safelink.defs#event'] = 'tools.ozone.safelink.defs#event'¶
field reason: models.ToolsOzoneSafelinkDefs.ReasonType [Required]¶

Reason.

field url: str [Required]¶

The URL that this rule applies to.

atproto_client.models.tools.ozone.safelink.defs.EventType¶

Event type

alias of Union[Literal[‘addRule’], Literal[‘updateRule’], Literal[‘removeRule’], str]

atproto_client.models.tools.ozone.safelink.defs.PatternType¶

Pattern type

alias of Union[Literal[‘domain’], Literal[‘url’], str]

atproto_client.models.tools.ozone.safelink.defs.ReasonType¶

Reason type

alias of Union[Literal[‘csam’], Literal[‘spam’], Literal[‘phishing’], Literal[‘none’], str]

class atproto_client.models.tools.ozone.safelink.defs.UrlRule¶

Bases: ModelBase

Definition model for tools.ozone.safelink.defs. Input for creating a URL safety rule.

field action: models.ToolsOzoneSafelinkDefs.ActionType [Required]¶

Action.

field comment: str | None = None¶

Optional comment about the decision.

field created_at: str [Required]¶

Timestamp when the rule was created.

Constraints:
field created_by: str [Required]¶

DID of the user added the rule.

Constraints:
field pattern: models.ToolsOzoneSafelinkDefs.PatternType [Required]¶

Pattern.

field py_type: Literal['tools.ozone.safelink.defs#urlRule'] = 'tools.ozone.safelink.defs#urlRule'¶
field reason: models.ToolsOzoneSafelinkDefs.ReasonType [Required]¶

Reason.

field updated_at: str [Required]¶

Timestamp when the rule was last updated.

Constraints:
field url: str [Required]¶

The URL or domain to apply the rule to.