Skip to content

Commit cee031a

Browse files
AlteredCodergithub-actions[bot]
authored andcommitted
Update python SDK v0.15.26
1 parent 7207188 commit cee031a

38 files changed

+207
-116
lines changed

crowdsec_service_api/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class Server(Enum):
133133
'AffectedComponent',
134134
'AllowlistSubscription',
135135
'AttackDetail',
136+
'AttackerObjective',
136137
'Behavior',
137138
'CVEEventOutput',
138139
'CVEExploitationPhase',
@@ -163,6 +164,8 @@ class Server(Enum):
163164
'GetVendorSubscribedIntegrationsResponsePage',
164165
'History',
165166
'IPItem',
167+
'IndustryRiskProfile',
168+
'IndustryType',
166169
'IntegrationResponse',
167170
'IntervalOptions',
168171
'IpsDetailsStats',
46 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.
1.26 KB
Binary file not shown.

crowdsec_service_api/models.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: <stdin>
3-
# timestamp: 2026-04-17T08:46:01+00:00
3+
# timestamp: 2026-04-21T09:21:23+00:00
44

55
from __future__ import annotations
66

@@ -612,6 +612,12 @@ class AttackDetail(BaseModelSdk):
612612
] = None
613613

614614

615+
class AttackerObjective(StrEnum):
616+
INFRASTRUCTURE_TAKEOVER = 'infrastructure_takeover'
617+
RANSOMWARE = 'ransomware'
618+
DATA_EXFILTRATION = 'data_exfiltration'
619+
620+
615621
class Behavior(BaseModelSdk):
616622
name: Annotated[str, Field(description='Behavior name', title='Name')]
617623
label: Annotated[str, Field(description='Behavior label', title='Label')]
@@ -767,6 +773,26 @@ class History(BaseModelSdk):
767773
days_age: Annotated[int, Field(description='Days age', title='Days Age')]
768774

769775

776+
class IndustryRiskProfile(StrEnum):
777+
TECHNOLOGY_BUSINESS = 'technology_business'
778+
TRADITIONAL_BUSINESS = 'traditional_business'
779+
CRITICAL_INFRASTRUCTURE = 'critical_infrastructure'
780+
PUBLIC_SERVICE = 'public_service'
781+
SOHO = 'SOHO'
782+
783+
784+
class IndustryType(StrEnum):
785+
COMMERCE = 'commerce'
786+
FINANCIAL_SERVICES = 'financial_services'
787+
HEALTHCARE = 'healthcare'
788+
GOVERNMENT = 'government'
789+
NON_PROFIT = 'non_profit'
790+
INDUSTRY = 'industry'
791+
MEDIA = 'media'
792+
EDUCATION = 'education'
793+
SOHO = 'SOHO'
794+
795+
770796
class IntegrationResponse(BaseModelSdk):
771797
tags: Annotated[Optional[List[str]], Field(title='Tags')] = []
772798
organization_id: Annotated[str, Field(title='Organization Id')]
-8 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
-7 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)