Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class AddRuleRequest(val url: String, val pattern: PatternType, val action: ActionType, val reason: ReasonType, val comment: String? = null, val createdBy: Did? = null)
Link copied to clipboard
Link copied to clipboard
data class Event(val id: Long, val eventType: EventType, val url: String, val pattern: PatternType, val action: ActionType, val reason: ReasonType, val createdBy: Did, val createdAt: Timestamp, val comment: String? = null)

An event for URL safety decisions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class QueryEventsRequest(val cursor: String? = null, val limit: Long? = 50, val urls: List<String>? = null, val patternType: String? = null, val sortDirection: QueryEventsSortDirection? = QueryEventsSortDirection.Desc)
Link copied to clipboard
data class QueryEventsResponse(val cursor: String? = null, val events: List<Event>)
Link copied to clipboard
data class QueryRulesRequest(val cursor: String? = null, val limit: Long? = 50, val urls: List<String>? = null, val patternType: String? = null, val actions: List<String>? = null, val reason: String? = null, val createdBy: Did? = null, val sortDirection: QueryRulesSortDirection? = QueryRulesSortDirection.Desc)
Link copied to clipboard
data class QueryRulesResponse(val cursor: String? = null, val rules: List<UrlRule>)
Link copied to clipboard
Link copied to clipboard
data class RemoveRuleRequest(val url: String, val pattern: PatternType, val comment: String? = null, val createdBy: Did? = null)
Link copied to clipboard
Link copied to clipboard
data class UpdateRuleRequest(val url: String, val pattern: PatternType, val action: ActionType, val reason: ReasonType, val comment: String? = null, val createdBy: Did? = null)
Link copied to clipboard
Link copied to clipboard
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