Skip to content

Commit c42a02e

Browse files
Merge pull request #162 from code42/INTEG-3042/pydantic-upgrade
Integ 3042/pydantic upgrade
2 parents 529eebc + fee1fb7 commit c42a02e

23 files changed

Lines changed: 298 additions & 297 deletions

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
how a consumer would use the library or CLI tool (e.g. adding unit tests, updating documentation, etc) are not captured
1010
here.
1111

12+
## 2.8.0 - 2026-01-16
13+
14+
### Added
15+
- Added the `state_v2` field to session states. Added the new session state `CLOSED_TP_BENIGN`.
16+
- Added support for the `ON` filter in file event queries.
17+
18+
### Fixed
19+
- A bug where the SDK's V2 Watchlist methods were returning the wrong models.
20+
1221
## 2.7.0 - 2025-11-13
1322

1423
### Updated

docs/integration-guides/index.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/integration-guides/sentinel/azure-sentinel-data-collector.md

Lines changed: 0 additions & 153 deletions
This file was deleted.

docs/integration-guides/sentinel/azure-sentinel-log-analytics.md

Lines changed: 0 additions & 69 deletions
This file was deleted.

docs/integration-guides/sentinel/introduction.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/sdk/enums.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ Devices has been replaced by [Agents](#agents)
555555
* **IN_PROGRESS** = `"IN_PROGRESS"`
556556
* **CLOSED** = `"CLOSED"`
557557
* **CLOSED_TP** = `"CLOSED_TP"`
558+
* **CLOSED_TP_BENIGN** = `"CLOSED_TP_BENIGN"`
558559
* **CLOSED_FP** = `"CLOSED_FP"`
559560
* **OPEN_NEW_DATA** = `"OPEN_NEW_DATA"`
560561

mkdocs.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ nav:
9191
- Alerts (Deprecated): 'cli/cmds/alerts.md'
9292
- Devices (Deprecated): 'cli/cmds/devices.md'
9393
- Risk Profiles (Deprecated): 'cli/cmds/risk_profiles.md'
94-
- Guides:
95-
- Introduction: 'integration-guides/index.md'
96-
- Microsoft Sentinel:
97-
- Introduction: 'integration-guides/sentinel/introduction.md'
98-
- Data Collector API: 'integration-guides/sentinel/azure-sentinel-data-collector.md'
99-
- Log Analytics Agent: 'integration-guides/sentinel/azure-sentinel-log-analytics.md'
10094

10195
markdown_extensions:
10296
- attr_list

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies = [
2828
"requests",
2929
"requests-toolbelt",
3030
"rich",
31-
"pydantic>=2.11,<2.12",
31+
"pydantic>=2.11",
3232
"pydantic-settings",
3333
"isodate",
3434
"python-dateutil",

src/_incydr_cli/cmds/sessions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def bulk_update_state(
322322
Bulk update the state of multiple sessions. Optionally attach a note.
323323
324324
NEW_STATE specifies the new state to which sessions will be updated.
325-
Must be one of the following: 'OPEN', 'IN_PROGRESS', 'CLOSED', 'CLOSED_TP', 'CLOSED_FP', 'OPEN_NEW_DATA'
325+
Must be one of the following: 'OPEN', 'IN_PROGRESS', 'CLOSED', 'CLOSED_TP', 'CLOSED_TP_BENIGN', 'CLOSED_FP', 'OPEN_NEW_DATA'
326326
327327
Takes a single arg `FILE` which specifies the path to the file (use "-" to read from stdin).
328328
File format can either be CSV or [JSON Lines format](https://jsonlines.org) (Default is CSV).

src/_incydr_cli/cmds/trusted_activities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def _output_trusted_activity(
334334
t.add_column("Action Groups")
335335

336336
# exclude activity action groups from the info panel
337-
include = list(TrustedActivity.__fields__.keys())
337+
include = list(TrustedActivity.model_fields.keys())
338338
include.remove("activity_action_groups")
339339
t.add_row(
340340
model_as_card(

0 commit comments

Comments
 (0)