Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit a973066

Browse files
committed
[client] Implement Case RFI custom object
1 parent 282ada1 commit a973066

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pycti/utils/constants.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def has_value(cls, value):
148148
("severity", StringProperty()),
149149
("priority", StringProperty()),
150150
("response_types", ListProperty(StringProperty)),
151+
("x_opencti_workflow_id", StringProperty()),
151152
(
152153
"object_refs",
153154
ListProperty(
@@ -162,6 +163,30 @@ class CustomObjectCaseIncident:
162163
pass
163164

164165

166+
@CustomObject(
167+
"case-rfi",
168+
[
169+
("name", StringProperty(required=True)),
170+
("spec_version", StringProperty(fixed="2.1")),
171+
("description", StringProperty()),
172+
("severity", StringProperty()),
173+
("priority", StringProperty()),
174+
("information_types", ListProperty(StringProperty)),
175+
("x_opencti_workflow_id", StringProperty()),
176+
(
177+
"object_refs",
178+
ListProperty(
179+
ReferenceProperty(valid_types=["SCO", "SDO", "SRO"], spec_version="2.1")
180+
),
181+
),
182+
],
183+
)
184+
class CustomObjectCaseRfit:
185+
"""Case-Rfi object."""
186+
187+
pass
188+
189+
165190
@CustomObject(
166191
"task",
167192
[
@@ -174,6 +199,7 @@ class CustomObjectCaseIncident:
174199
default=lambda: NOW, precision="millisecond", precision_constraint="min"
175200
),
176201
),
202+
("x_opencti_workflow_id", StringProperty()),
177203
(
178204
"object_refs",
179205
ListProperty(

0 commit comments

Comments
 (0)