1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package ozone
4
5// schema: tools.ozone.safelink.defs
6
7// SafelinkDefs_Event is a "event" in the tools.ozone.safelink.defs schema.
8//
9// An event for URL safety decisions
10type SafelinkDefs_Event struct {
11 Action *string `json:"action" cborgen:"action"`
12 // comment: Optional comment about the decision
13 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
14 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
15 // createdBy: DID of the user who created this rule
16 CreatedBy string `json:"createdBy" cborgen:"createdBy"`
17 EventType *string `json:"eventType" cborgen:"eventType"`
18 // id: Auto-incrementing row ID
19 Id int64 `json:"id" cborgen:"id"`
20 Pattern *string `json:"pattern" cborgen:"pattern"`
21 Reason *string `json:"reason" cborgen:"reason"`
22 // url: The URL that this rule applies to
23 Url string `json:"url" cborgen:"url"`
24}
25
26// SafelinkDefs_UrlRule is a "urlRule" in the tools.ozone.safelink.defs schema.
27//
28// Input for creating a URL safety rule
29type SafelinkDefs_UrlRule struct {
30 Action *string `json:"action" cborgen:"action"`
31 // comment: Optional comment about the decision
32 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
33 // createdAt: Timestamp when the rule was created
34 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
35 // createdBy: DID of the user added the rule.
36 CreatedBy string `json:"createdBy" cborgen:"createdBy"`
37 Pattern *string `json:"pattern" cborgen:"pattern"`
38 Reason *string `json:"reason" cborgen:"reason"`
39 // updatedAt: Timestamp when the rule was last updated
40 UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"`
41 // url: The URL or domain to apply the rule to
42 Url string `json:"url" cborgen:"url"`
43}