Skip to content
Merged
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
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Zscaler Python SDK Changelog

## 1.10.1 (September 29 2026)

### Notes

- Python Versions: **v3.9, v3.10, v3.11, v3.12**

### Enhancements

* Added an optional `headers` argument to AI Guard `resolve_and_execute_policy`. Extra headers are
merged into the request, which lets a caller send the tenant's configured custom request headers
— including the one AI Guard reads the conversation ID from, so multi-turn interactions can be
correlated on the dashboard.

## 1.10.0 (September 18 2026)

### Notes

- Python Versions: **v3.9, v3.10, v3.11, v3.12**

### Enhancements

* [PR #587](https://github.com/zscaler/zscaler-sdk-python/pull/587) - Added an optional `user`
argument to AI Guard `resolve_and_execute_policy`. The end-user identity is recorded on the
detection event so the user surfaces on the dashboard.

## 1.9.44 (September 1 2026)

### Notes
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "zscaler-sdk-python"
version = "1.10.0"
version = "1.10.1"
description = "Official Python SDK for the Zscaler Products"
authors = ["Zscaler, Inc. <devrel@zscaler.com>"]
license = "MIT"
Expand Down
5 changes: 5 additions & 0 deletions zscaler/aiguard/policy_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def resolve_and_execute_policy(
direction: str,
transaction_id: Optional[str] = None,
user: Optional[str] = None,
headers: Optional[dict] = None,
) -> APIResult[ResolveAndExecuteDetectionsPolicyResponse]:
"""
Resolves and executes a policy detection (automatic policy selection).
Expand All @@ -151,6 +152,9 @@ def resolve_and_execute_policy(
transaction_id (str, optional): Optional transaction ID for tracking
user (str, optional): Optional end-user identity associated with the request,
recorded on the detection event so the user surfaces on the dashboard
headers (dict, optional): Extra HTTP headers to send with this request. Used for
the tenant's configured custom request headers, such as the one carrying the
conversation ID; the header names are set per tenant, so the caller supplies them

Returns:
APIResult[ResolveAndExecuteDetectionsPolicyResponse]: Tuple of (result, response, error)
Expand Down Expand Up @@ -190,6 +194,7 @@ def resolve_and_execute_policy(
method=http_method,
endpoint=api_url,
body=body,
headers=headers,
)

if error:
Expand Down
Loading