Skip to content

Commit c557efe

Browse files
nitescucgithub-actions[bot]
authored andcommitted
Update python SDK 1.115.2
1 parent 4a44fef commit c557efe

File tree

15 files changed

+53
-32
lines changed

15 files changed

+53
-32
lines changed

crowdsec_tracker_api/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ class Server(Enum):
4141
'AllowlistSubscription',
4242
'AttackDetail',
4343
'Behavior',
44-
'CVEEvent',
44+
'CVEEventOutput',
4545
'CVEResponseBase',
4646
'CVEsubscription',
4747
'CWE',
4848
'Classification',
4949
'Classifications',
5050
'EntityType',
5151
'ExploitationPhase',
52+
'FingerprintEventOutput',
5253
'FingerprintRuleResponse',
5354
'FingerprintRuleSummary',
5455
'FingerprintTimelineItem',
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

crowdsec_tracker_api/models.py

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: <stdin>
3-
# timestamp: 2026-02-24T17:00:06+00:00
3+
# timestamp: 2026-03-17T09:30:42+00:00
44

55
from __future__ import annotations
66

@@ -142,13 +142,12 @@ class Behavior(BaseModelSdk):
142142
]
143143

144144

145-
class CVEEvent(BaseModelSdk):
146-
date: Annotated[datetime, Field(description='Date of the event', title='Date')]
147-
description: Annotated[
148-
str, Field(description='Description of the event', title='Description')
149-
]
150-
label: Annotated[str, Field(description='Label of the event', title='Label')]
151-
name: Annotated[str, Field(description='Name of the event', title='Name')]
145+
class CVEEventOutput(BaseModelSdk):
146+
name: Annotated[str, Field(title='Name')]
147+
date: Annotated[str, Field(title='Date')]
148+
description: Annotated[str, Field(title='Description')]
149+
label: Annotated[str, Field(title='Label')]
150+
sorting_priority: Annotated[int, Field(title='Sorting Priority')]
152151

153152

154153
class CvssScore(RootModelSdk[float]):
@@ -212,6 +211,13 @@ class ExploitationPhase(BaseModelSdk):
212211
]
213212

214213

214+
class FingerprintEventOutput(BaseModelSdk):
215+
name: Annotated[str, Field(title='Name')]
216+
date: Annotated[str, Field(title='Date')]
217+
description: Annotated[str, Field(title='Description')]
218+
label: Annotated[str, Field(title='Label')]
219+
220+
215221
class FingerprintRuleResponse(BaseModelSdk):
216222
id: Annotated[str, Field(description='Fingerprint rule identifier', title='Id')]
217223
name: Annotated[str, Field(description='Fingerprint rule name', title='Name')]
@@ -290,7 +296,7 @@ class FingerprintRuleResponse(BaseModelSdk):
290296
),
291297
] = None
292298
events: Annotated[
293-
Optional[List[CVEEvent]],
299+
Optional[List[FingerprintEventOutput]],
294300
Field(
295301
description='List of events related to the fingerprint rule', title='Events'
296302
),
@@ -459,7 +465,7 @@ class GetCVEResponse(BaseModelSdk):
459465
Field(description='List of CWEs associated with the CVE', title='Cwes'),
460466
]
461467
events: Annotated[
462-
Optional[List[CVEEvent]],
468+
Optional[List[CVEEventOutput]],
463469
Field(description='List of events related to the CVE', title='Events'),
464470
] = None
465471

@@ -674,7 +680,7 @@ class LookupImpactCVEItem(BaseModelSdk):
674680
Field(description='List of CWEs associated with the CVE', title='Cwes'),
675681
]
676682
events: Annotated[
677-
Optional[List[CVEEvent]],
683+
Optional[List[CVEEventOutput]],
678684
Field(description='List of events related to the CVE', title='Events'),
679685
] = None
680686
type: Annotated[
@@ -760,7 +766,7 @@ class LookupImpactFingerprintItem(BaseModelSdk):
760766
),
761767
] = None
762768
events: Annotated[
763-
Optional[List[CVEEvent]],
769+
Optional[List[FingerprintEventOutput]],
764770
Field(
765771
description='List of events related to the fingerprint rule', title='Events'
766772
),
Binary file not shown.

crowdsec_tracker_api/services/cves.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class Cves(Service):
1313
def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
14-
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.108.1")
14+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.115.2")
1515

1616
def get_cves(
1717
self,

crowdsec_tracker_api/services/fingerprints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class Fingerprints(Service):
1313
def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
14-
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.108.1")
14+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.115.2")
1515

1616
def get_fingerprint_rules(
1717
self,

crowdsec_tracker_api/services/integrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class Integrations(Service):
1313
def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
14-
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.108.1")
14+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.115.2")
1515

1616
def get_integrations(
1717
self,

crowdsec_tracker_api/services/products.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class Products(Service):
1313
def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
14-
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.108.1")
14+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.115.2")
1515

1616
def get_products(
1717
self,

crowdsec_tracker_api/services/tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class Tags(Service):
1313
def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
14-
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.108.1")
14+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.115.2")
1515

1616
def get_tags(
1717
self,

0 commit comments

Comments
 (0)