Skip to content

Commit 50a0587

Browse files
authored
Merge pull request #11 from crowdsecurity/$main-9f18563
Update python SDK version: 1.102.3
2 parents 9f18563 + ef95491 commit 50a0587

File tree

9 files changed

+25
-5
lines changed

9 files changed

+25
-5
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

crowdsec_tracker_api/models.py

Lines changed: 19 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-01-29T15:05:21+00:00
3+
# timestamp: 2026-01-29T17:02:55+00:00
44

55
from __future__ import annotations
66

@@ -170,6 +170,15 @@ class CVEResponseBase(BaseModelSdk):
170170
title='Opportunity Score',
171171
),
172172
] = 0
173+
momentum_score: Annotated[
174+
Optional[int],
175+
Field(
176+
description="Momentum score indicating the vulnerability's trendiness based on signal comparison with the previous month. Higher scores (4-5) indicate significantly more signals this month than last month's average, while lower scores (0-1) indicate declining activity (between 0-5)",
177+
ge=0,
178+
le=5,
179+
title='Momentum Score',
180+
),
181+
] = 0
173182
first_seen: Annotated[
174183
Optional[datetime], Field(description='First seen date', title='First Seen')
175184
] = None
@@ -269,6 +278,15 @@ class GetCVEResponse(BaseModelSdk):
269278
title='Opportunity Score',
270279
),
271280
] = 0
281+
momentum_score: Annotated[
282+
Optional[int],
283+
Field(
284+
description="Momentum score indicating the vulnerability's trendiness based on signal comparison with the previous month. Higher scores (4-5) indicate significantly more signals this month than last month's average, while lower scores (0-1) indicate declining activity (between 0-5)",
285+
ge=0,
286+
le=5,
287+
title='Momentum Score',
288+
),
289+
] = 0
272290
first_seen: Annotated[
273291
Optional[datetime], Field(description='First seen date', title='First Seen')
274292
] = None
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.102.2")
14+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.102.3")
1515

1616
def get_cves(
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.102.2")
14+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.102.3")
1515

1616
def get_integrations(
1717
self,

doc/Models.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ id, name, title, affected_components, crowdsec_score, nb_ips, published_date, ha
233233
| affected_components | list[AffectedComponent] | List of affected components ||
234234
| crowdsec_score | int | Live Exploit Tracker score of the CVE ||
235235
| opportunity_score | int | Opportunity score indicating if it's an opportunistic(0) or targeted(5) attack (between 0-5) ||
236+
| momentum_score | int | Momentum score indicating the vulnerability's trendiness based on signal comparison with the previous month. Higher scores (4-5) indicate significantly more signals this month than last month's average, while lower scores (0-1) indicate declining activity (between 0-5) ||
236237
| first_seen | Optional[str] | First seen date ||
237238
| last_seen | Optional[str] | Last seen date ||
238239
| nb_ips | int | Number of unique IPs affected ||
@@ -305,6 +306,7 @@ id, name, title, affected_components, crowdsec_score, nb_ips, published_date, ha
305306
| affected_components | list[AffectedComponent] | List of affected components ||
306307
| crowdsec_score | int | Live Exploit Tracker score of the CVE ||
307308
| opportunity_score | int | Opportunity score indicating if it's an opportunistic(0) or targeted(5) attack (between 0-5) ||
309+
| momentum_score | int | Momentum score indicating the vulnerability's trendiness based on signal comparison with the previous month. Higher scores (4-5) indicate significantly more signals this month than last month's average, while lower scores (0-1) indicate declining activity (between 0-5) ||
308310
| first_seen | Optional[str] | First seen date ||
309311
| last_seen | Optional[str] | Last seen date ||
310312
| nb_ips | int | Number of unique IPs affected ||

let-openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "crowdsec_tracker_api"
7-
version = "1.102.2"
7+
version = "1.102.3"
88
license = { text = "MIT" }
99
authors = [
1010
{ name="crowdsec", email="info@crowdsec.net" }

0 commit comments

Comments
 (0)