From 49006636ab6ffbcc581dd722f85b8ad152c78630 Mon Sep 17 00:00:00 2001 From: topher-lo <46541035+topher-lo@users.noreply.github.com> Date: Tue, 14 Jan 2025 20:28:16 -0800 Subject: [PATCH] Add deprecated field to RegistryActionUpdate kwargs --- tracecat/registry/actions/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tracecat/registry/actions/models.py b/tracecat/registry/actions/models.py index cb78f8fbb..59d23ae70 100644 --- a/tracecat/registry/actions/models.py +++ b/tracecat/registry/actions/models.py @@ -410,6 +410,12 @@ class RegistryActionUpdate(BaseModel): min_length=1, max_length=100, ) + deprecated: str | None = Field( + default=None, + description="Update the deprecation message of the action", + min_length=1, + max_length=1000, + ) options: RegistryActionOptions | None = Field( default=None, description="Update the options of the action", @@ -426,6 +432,7 @@ def from_bound(action: BoundRegistryAction) -> RegistryActionUpdate: display_group=action.display_group, doc_url=action.doc_url, author=action.author, + deprecated=action.deprecated, options=RegistryActionOptions(include_in_schema=action.include_in_schema), )