Skip to content

Commit

Permalink
Update lexicons fetched from e4d41d6 committed 2024-09-04T10:42:39Z
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Sep 5, 2024
1 parent 07947e2 commit e4122b4
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lexicons/tools.ozone.communication.createTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"type": "string",
"description": "Subject of the message, used in emails."
},
"lang": {
"type": "string",
"format": "language",
"description": "Message language."
},
"createdBy": {
"type": "string",
"format": "did",
Expand All @@ -37,7 +42,8 @@
"type": "ref",
"ref": "tools.ozone.communication.defs#templateView"
}
}
},
"errors": [{ "name": "DuplicateTemplateName" }]
}
}
}
5 changes: 5 additions & 0 deletions lexicons/tools.ozone.communication.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
"description": "Subject of the message, used in emails."
},
"disabled": { "type": "boolean" },
"lang": {
"type": "string",
"format": "language",
"description": "Message language."
},
"lastUpdatedBy": {
"type": "string",
"format": "did",
Expand Down
8 changes: 7 additions & 1 deletion lexicons/tools.ozone.communication.updateTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"type": "string",
"description": "Name of the template."
},
"lang": {
"type": "string",
"format": "language",
"description": "Message language."
},
"contentMarkdown": {
"type": "string",
"description": "Content of the template, markdown supported, can contain variable placeholders."
Expand All @@ -44,7 +49,8 @@
"type": "ref",
"ref": "tools.ozone.communication.defs#templateView"
}
}
},
"errors": [{ "name": "DuplicateTemplateName" }]
}
}
}
1 change: 1 addition & 0 deletions lexicons/tools.ozone.moderation.emitEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"tools.ozone.moderation.defs#modEventMuteReporter",
"tools.ozone.moderation.defs#modEventUnmuteReporter",
"tools.ozone.moderation.defs#modEventReverseTakedown",
"tools.ozone.moderation.defs#modEventResolveAppeal",
"tools.ozone.moderation.defs#modEventEmail",
"tools.ozone.moderation.defs#modEventTag"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ class Data(base.DataModelBase):
name: str #: Name of the template.
subject: str #: Subject of the message, used in emails.
created_by: t.Optional[str] = None #: DID of the user who is creating the template.
lang: t.Optional[str] = None #: Message language.


class DataDict(t.TypedDict):
content_markdown: str #: Content of the template, markdown supported, can contain variable placeholders.
name: str #: Name of the template.
subject: str #: Subject of the message, used in emails.
created_by: te.NotRequired[t.Optional[str]] #: DID of the user who is creating the template.
lang: te.NotRequired[t.Optional[str]] #: Message language.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class TemplateView(base.ModelBase):
last_updated_by: str #: DID of the user who last updated the template.
name: str #: Name of the template.
updated_at: str #: Updated at.
lang: t.Optional[str] = None #: Message language.
subject: t.Optional[str] = None #: Content of the template, can contain markdown and variable placeholders.

py_type: t.Literal['tools.ozone.communication.defs#templateView'] = Field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Data(base.DataModelBase):
str
] = None #: Content of the template, markdown supported, can contain variable placeholders.
disabled: t.Optional[bool] = None #: Disabled.
lang: t.Optional[str] = None #: Message language.
name: t.Optional[str] = None #: Name of the template.
subject: t.Optional[str] = None #: Subject of the message, used in emails.
updated_by: t.Optional[str] = None #: DID of the user who is updating the template.
Expand All @@ -31,6 +32,7 @@ class DataDict(t.TypedDict):
t.Optional[str]
] #: Content of the template, markdown supported, can contain variable placeholders.
disabled: te.NotRequired[t.Optional[bool]] #: Disabled.
lang: te.NotRequired[t.Optional[str]] #: Message language.
name: te.NotRequired[t.Optional[str]] #: Name of the template.
subject: te.NotRequired[t.Optional[str]] #: Subject of the message, used in emails.
updated_by: te.NotRequired[t.Optional[str]] #: DID of the user who is updating the template.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Data(base.DataModelBase):
'models.ToolsOzoneModerationDefs.ModEventMuteReporter',
'models.ToolsOzoneModerationDefs.ModEventUnmuteReporter',
'models.ToolsOzoneModerationDefs.ModEventReverseTakedown',
'models.ToolsOzoneModerationDefs.ModEventResolveAppeal',
'models.ToolsOzoneModerationDefs.ModEventEmail',
'models.ToolsOzoneModerationDefs.ModEventTag',
],
Expand Down Expand Up @@ -59,6 +60,7 @@ class DataDict(t.TypedDict):
'models.ToolsOzoneModerationDefs.ModEventMuteReporter',
'models.ToolsOzoneModerationDefs.ModEventUnmuteReporter',
'models.ToolsOzoneModerationDefs.ModEventReverseTakedown',
'models.ToolsOzoneModerationDefs.ModEventResolveAppeal',
'models.ToolsOzoneModerationDefs.ModEventEmail',
'models.ToolsOzoneModerationDefs.ModEventTag',
],
Expand Down

0 comments on commit e4122b4

Please sign in to comment.