diff --git a/thehive4py/types/alert.py b/thehive4py/types/alert.py index d0c24a4..6799e63 100644 --- a/thehive4py/types/alert.py +++ b/thehive4py/types/alert.py @@ -2,6 +2,7 @@ from thehive4py.types.custom_field import InputCustomFieldValue, OutputCustomFieldValue from thehive4py.types.observable import InputObservable +from thehive4py.types.page import InputCasePage from thehive4py.types.procedure import InputProcedure from thehive4py.types.share import InputShare from thehive4py.types.task import InputTask @@ -26,6 +27,7 @@ class InputAlert(InputAlertRequired, total=False): customFields: List[InputCustomFieldValue] summary: str status: str + assignee: str caseTemplate: str observables: List[InputObservable] procedures: List[InputProcedure] @@ -42,9 +44,12 @@ class OutputAlertRequired(TypedDict): title: str description: str severity: int + severityLabel: str date: int tlp: int + tlpLabel: str pap: int + papLabel: str follow: bool observableCount: int status: str @@ -62,6 +67,7 @@ class OutputAlert(OutputAlertRequired, total=False): customFields: List[OutputCustomFieldValue] caseTemplate: str caseId: str + assignee: str summary: str inProgressDate: int closedDate: int @@ -88,6 +94,9 @@ class InputUpdateAlert(TypedDict, total=False): customFields: List[InputCustomFieldValue] status: str summary: str + assignee: str + addTags: List[str] + removeTags: List[str] class InputBulkUpdateAlert(InputUpdateAlert): @@ -110,6 +119,7 @@ class InputPromoteAlert(TypedDict, total=False): customFields: List[InputCustomFieldValue] caseTemplate: str tasks: List[InputTask] + pages: List[InputCasePage] sharingParameters: List[InputShare] taskRule: str observableRule: str diff --git a/thehive4py/types/case.py b/thehive4py/types/case.py index ac9142f..b2a0608 100644 --- a/thehive4py/types/case.py +++ b/thehive4py/types/case.py @@ -1,5 +1,6 @@ from typing import List, Literal, TypedDict +from thehive4py.types.page import InputCasePage from thehive4py.types.share import InputShare from .custom_field import InputCustomFieldValue, OutputCustomFieldValue @@ -54,6 +55,7 @@ class InputCase(InputCaseRequired, total=False): customFields: List[InputCustomFieldValue] caseTemplate: str tasks: List[InputTask] + pages: List[InputCasePage] sharingParameters: List[InputShare] taskRule: str observableRule: str @@ -68,10 +70,13 @@ class OutputCaseRequired(TypedDict): title: str description: str severity: int + severityLabel: str startDate: int flag: bool tlp: int + tlpLabel: str pap: int + papLabel: str status: CaseStatusValue stage: str extraData: dict @@ -119,6 +124,8 @@ class InputUpdateCase(TypedDict, total=False): customFields: List[InputCustomFieldValue] taskRule: str observableRule: str + addTags: List[str] + removeTags: List[str] class InputBulkUpdateCase(InputUpdateCase):