Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +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

### Added
- Support for the `actorName` and `ruleName` fields on the Session response object.

## 2.12.1 - 2026-06-05

### Fixed
Expand Down
1 change: 1 addition & 0 deletions src/_incydr_cli/cmds/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def search(
"context_summary",
"exfiltration_summary",
"actor_id",
"actor_name",
"low_events",
"moderate_events",
"high_events",
Expand Down
1 change: 1 addition & 0 deletions src/_incydr_sdk/sessions/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Alert(Model):
alert_id: Optional[str] = Field(alias="alertId")
lesson_id: Optional[str] = Field(alias="lessonId")
rule_id: Optional[str] = Field(alias="ruleId")
rule_name: Optional[str] = Field(None, alias="ruleName")


class SessionsCriteriaRequest(BaseModel):
Expand Down
2 changes: 2 additions & 0 deletions src/_incydr_sdk/sessions/models/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Session(ResponseModel):
**Fields**:

* **actor_id**: `str` The ID of the actor that generated the session.
* **actor_name**: `str` The name of the actor that generated the session.
* **type**: `str` The type of the session.
* **begin_time**: `datetime` The date and time when this session began.
* **content_inspection_results**: `List[ContentInspectionResult]` The results of content inspection.
Expand All @@ -43,6 +44,7 @@ class Session(ResponseModel):
"""

actor_id: Optional[str] = Field(None, alias="actorId")
actor_name: Optional[str] = Field(None, alias="actorName")
type: Optional[str] = Field(None)
begin_time: Optional[int] = Field(None, alias="beginTime")
content_inspection_results: Optional[ContentInspectionResult] = Field(
Expand Down
8 changes: 7 additions & 1 deletion tests/test_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

TEST_SESSION = {
"actorId": TEST_SESSION_ID,
"actorName": "test_actor_name",
"type": "STANDARD",
"beginTime": POSIX_TS,
"contentInspectionResults": {"detectedOnAlerts": ["PII"]},
Expand Down Expand Up @@ -66,7 +67,12 @@
],
"tenantId": "string",
"triggeredAlerts": [
{"alertId": "alert-id", "lessonId": "lesson-id", "ruleId": "rule-id"}
{
"alertId": "alert-id",
"lessonId": "lesson-id",
"ruleId": "rule-id",
"ruleName": "rule name",
}
],
"userId": "string",
}
Expand Down
Loading