From e4122b45cdadd85df18dab2e6d427168d76262ad Mon Sep 17 00:00:00 2001 From: "Ilya (Marshal)" Date: Thu, 5 Sep 2024 21:05:16 +0000 Subject: [PATCH] Update lexicons fetched from e4d41d6 committed 2024-09-04T10:42:39Z --- lexicons/tools.ozone.communication.createTemplate.json | 8 +++++++- lexicons/tools.ozone.communication.defs.json | 5 +++++ lexicons/tools.ozone.communication.updateTemplate.json | 8 +++++++- lexicons/tools.ozone.moderation.emitEvent.json | 1 + .../models/tools/ozone/communication/create_template.py | 2 ++ .../models/tools/ozone/communication/defs.py | 1 + .../models/tools/ozone/communication/update_template.py | 2 ++ .../models/tools/ozone/moderation/emit_event.py | 2 ++ 8 files changed, 27 insertions(+), 2 deletions(-) diff --git a/lexicons/tools.ozone.communication.createTemplate.json b/lexicons/tools.ozone.communication.createTemplate.json index 175a55f9..902a4644 100644 --- a/lexicons/tools.ozone.communication.createTemplate.json +++ b/lexicons/tools.ozone.communication.createTemplate.json @@ -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", @@ -37,7 +42,8 @@ "type": "ref", "ref": "tools.ozone.communication.defs#templateView" } - } + }, + "errors": [{ "name": "DuplicateTemplateName" }] } } } diff --git a/lexicons/tools.ozone.communication.defs.json b/lexicons/tools.ozone.communication.defs.json index 89d28bdf..fe611569 100644 --- a/lexicons/tools.ozone.communication.defs.json +++ b/lexicons/tools.ozone.communication.defs.json @@ -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", diff --git a/lexicons/tools.ozone.communication.updateTemplate.json b/lexicons/tools.ozone.communication.updateTemplate.json index 153453a8..fc2b3f68 100644 --- a/lexicons/tools.ozone.communication.updateTemplate.json +++ b/lexicons/tools.ozone.communication.updateTemplate.json @@ -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." @@ -44,7 +49,8 @@ "type": "ref", "ref": "tools.ozone.communication.defs#templateView" } - } + }, + "errors": [{ "name": "DuplicateTemplateName" }] } } } diff --git a/lexicons/tools.ozone.moderation.emitEvent.json b/lexicons/tools.ozone.moderation.emitEvent.json index 76590ac6..4692dfe2 100644 --- a/lexicons/tools.ozone.moderation.emitEvent.json +++ b/lexicons/tools.ozone.moderation.emitEvent.json @@ -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" ] diff --git a/packages/atproto_client/models/tools/ozone/communication/create_template.py b/packages/atproto_client/models/tools/ozone/communication/create_template.py index 49dffdd1..90dec3fb 100644 --- a/packages/atproto_client/models/tools/ozone/communication/create_template.py +++ b/packages/atproto_client/models/tools/ozone/communication/create_template.py @@ -19,6 +19,7 @@ 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): @@ -26,3 +27,4 @@ class DataDict(t.TypedDict): 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. diff --git a/packages/atproto_client/models/tools/ozone/communication/defs.py b/packages/atproto_client/models/tools/ozone/communication/defs.py index 2c301062..6c2fe25e 100644 --- a/packages/atproto_client/models/tools/ozone/communication/defs.py +++ b/packages/atproto_client/models/tools/ozone/communication/defs.py @@ -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( diff --git a/packages/atproto_client/models/tools/ozone/communication/update_template.py b/packages/atproto_client/models/tools/ozone/communication/update_template.py index 0fa82ecb..3d69707c 100644 --- a/packages/atproto_client/models/tools/ozone/communication/update_template.py +++ b/packages/atproto_client/models/tools/ozone/communication/update_template.py @@ -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. @@ -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. diff --git a/packages/atproto_client/models/tools/ozone/moderation/emit_event.py b/packages/atproto_client/models/tools/ozone/moderation/emit_event.py index 36210e12..bc9e9a07 100644 --- a/packages/atproto_client/models/tools/ozone/moderation/emit_event.py +++ b/packages/atproto_client/models/tools/ozone/moderation/emit_event.py @@ -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', ], @@ -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', ],