diff --git a/CHANGELOG.md b/CHANGELOG.md index c177b94..3e57795 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,11 @@ how a consumer would use the library or CLI tool (e.g. adding unit tests, updating documentation, etc) are not captured here. -## Unreleased +## 2.3.1 - 2025-05-13 + +### Fixed + +- An issue where Sessions validation would fail due to an updated content inspection schema. ### Updated diff --git a/src/_incydr_sdk/__version__.py b/src/_incydr_sdk/__version__.py index 92a0111..1d295a2 100644 --- a/src/_incydr_sdk/__version__.py +++ b/src/_incydr_sdk/__version__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2022-present Code42 Software # # SPDX-License-Identifier: MIT -__version__ = "2.3.0" +__version__ = "2.3.1" diff --git a/src/_incydr_sdk/sessions/models/models.py b/src/_incydr_sdk/sessions/models/models.py index 429e369..c3e1801 100644 --- a/src/_incydr_sdk/sessions/models/models.py +++ b/src/_incydr_sdk/sessions/models/models.py @@ -18,11 +18,10 @@ class ContentInspectionEvent(Model): class ContentInspectionResult(Model): - event_results: List[ContentInspectionEvent] = Field( - alias="eventResults", - description="List of all content inspection events that have occurred.", + detected_on_alerts: List[str] = Field( + alias="detectedOnAlerts", + description="A list of content categories or types found on events which triggered alerts.", ) - status: Optional[str] class Note(Model): diff --git a/tests/test_sessions.py b/tests/test_sessions.py index 7562f7f..ff24e75 100644 --- a/tests/test_sessions.py +++ b/tests/test_sessions.py @@ -31,12 +31,7 @@ TEST_SESSION = { "actorId": TEST_SESSION_ID, "beginTime": POSIX_TS, - "contentInspectionResults": { - "eventResults": [ - {"eventId": "event-id", "piiType": ["string"], "status": "PENDING"} - ], - "status": "PENDING", - }, + "contentInspectionResults": {"detectedOnAlerts": ["PII"]}, "contextSummary": "string", "criticalEvents": 0, "endTime": POSIX_TS,