UrlRule

data class UrlRule(val url: String, val pattern: PatternType, val action: ActionType, val reason: ReasonType, val comment: String? = null, val createdBy: Did, val createdAt: Timestamp, val updatedAt: Timestamp)

Input for creating a URL safety rule

Parameters

url

The URL or domain to apply the rule to

comment

Optional comment about the decision

createdBy

DID of the user added the rule.

createdAt

Timestamp when the rule was created

updatedAt

Timestamp when the rule was last updated

Constructors

Link copied to clipboard
constructor(url: String, pattern: PatternType, action: ActionType, reason: ReasonType, comment: String? = null, createdBy: Did, createdAt: Timestamp, updatedAt: Timestamp)

Properties

Link copied to clipboard
Link copied to clipboard

Optional comment about the decision

Link copied to clipboard

Timestamp when the rule was created

Link copied to clipboard

DID of the user added the rule.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Timestamp when the rule was last updated

Link copied to clipboard
val url: String

The URL or domain to apply the rule to