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
9 changes: 9 additions & 0 deletions .claude/skills/seclai-sdk-sync/SKILL.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

217 changes: 156 additions & 61 deletions .claude/skills/seclai-sdk-sync/sdksync.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## [1.8.0] - 2026-10-21

### Changed

- Sync the bundled OpenAPI spec, adding 6 paths and 10 schemas. The typed models gain the new fields, including `accepted_attachments` on agent create and definition requests and on the attachment-reference contract, `trigger_id` on an agent, `include_reasoning` on a streaming run, `run_on_attachment_mismatch` on an email trigger, the `cloud_drive_*`, `document_images`, `email_allowed_senders`, `feed_attachments` and `email_address` source fields, `held_for_review` on a content status, `skipped_attachments` on a content item, `error` on `NonManualEvaluationSummaryResponse` and `NonManualEvaluationModeStatResponse`, and `status` on `TestDraftEvaluationResponse`
- Move `LATEST_API_VERSION` to `2026-10-21`. A client built with `api_version=LATEST_API_VERSION` also opts into `2026-10-05` to `2026-10-21`: a content item held for review reports `content_status` `completed` rather than `failed` (read `held_for_review` instead), `create_source()` and `update_source()` refuse an unknown `media_types` kind, or any on a source other than a website or RSS feed, with a 400, `create_source()` refuses `polling_max_items` on a source other than an RSS feed with a 400, `upload_agent_input()` accepts any file type, `ready` at once, `get_non_manual_evaluation_summary()` leaves results whose evaluator returned no verdict out of `failed` and the pass and failure rates (read `error` instead), `get_evaluation_criteria_summary()` averages `average_score` over passed and failed results only, and `test_draft_evaluation()` returns `score` and `passed` as `None` for an `error` result instead of 0.5 and `False`
- Make `input` and `metadata` optional keys of `AgentRunStreamRequest`, and let `metadata` be `None`, as the API schema does. A run on an uploaded file no longer needs `"input": None, "metadata": {}` as filler to satisfy a type checker

### Added

- Add `list_content_attachments()`, `get_content_attachment()`, `list_content_attachment_embeddings()` and `download_content_attachment()` to read the files attached to a content item, with their indexing status. The first three return the generated `ContentAttachmentsListResponse`, `ContentAttachmentDetailResponse` and `ContentEmbeddingsListResponse` models; the download returns a streaming `httpx.Response` the caller closes. `get_content_attachment()` sends `start` and `end` only when given, including `end=0`
- Add `set_accepted_attachments()` to declare the input attachments an agent trigger accepts, returning `AcceptedAttachmentsResponse`
- Add `list_email_source_rejections()` to list the mail an email content source refused, and why, returning `EmailSourceRejectionListResponse`
- Add `include_reasoning`, `input_upload_id`, `input_upload_ids` and `replay_of_run_id` as optional keys of `AgentRunStreamRequest`. `include_reasoning` asks `run_streaming_agent()` for `stream_reasoning` events; `run_streaming_agent_and_wait()`, which keeps only the `init` and `done` events, removes it from the body before sending
- Add `ApiVersion` members for `2026-10-05`, `2026-10-13`, `2026-10-16`, `2026-10-18`, `2026-10-19` and `2026-10-21`, so each can be selected without `allow_unknown_api_version`

### Fixed

- Make the generated `InsufficientCreditsResponse` read the 402 body the API sends, `{"error": {"code", "message", "account_id"}}`. It expected `{"detail": {"error": ...}}`, so `from_dict` raised `KeyError` on a real body. `run_agent()` was unaffected: it raises `SeclaiAPIStatusError` before the model is read
- Release the connection and raise `SeclaiAPIStatusError` from `download_agent_run_attachment()` and `download_source_export()` when reading an error response's body fails. The connection leaked, and the caller got the transport error instead of the status. The status error has no response text and keeps the transport error as its `__cause__`
- Raise `SeclaiAPIStatusError` from `run_streaming_agent()` and `run_streaming_agent_and_wait()` when reading an error response's body fails, with the transport error as its `__cause__`. The caller got the transport error, or `SeclaiError` for a read timeout, instead of the status
- Correct the streaming-download examples of `download_agent_run_attachment()` and `download_source_export()`. They closed the response with `with response:`, which raises `TypeError` because an `httpx.Response` is not a context manager; they now close it in a `finally` block

## [1.7.2] - 2026-10-05

### Fixed
Expand Down Expand Up @@ -217,6 +240,7 @@ _Stable release. Packaging, CI, and documentation deployment only; no API change

_Initial release._

[1.8.0]: https://github.com/seclai/seclai-python/releases/tag/1.8.0
[1.7.2]: https://github.com/seclai/seclai-python/releases/tag/1.7.2
[1.7.1]: https://github.com/seclai/seclai-python/releases/tag/1.7.1
[1.7.0]: https://github.com/seclai/seclai-python/releases/tag/1.7.0
Expand Down
Loading
Loading