Skip to content

Commit a15ca89

Browse files
authored
Merge pull request #7 from ofspectrum/sync-sdk-v1.3.0
Sync SDK v1.3.0 from neo
2 parents a9e645c + c0f7e81 commit a15ca89

33 files changed

Lines changed: 6475 additions & 378 deletions

‎AGENT_GUIDE.md‎

Lines changed: 409 additions & 99 deletions
Large diffs are not rendered by default.

‎CHANGELOG.md‎

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
11
# Changelog
22

3-
## Unreleased
3+
## 1.3.0 - 2026-08-23
4+
5+
- `audio.stream_encode()` reuses a process-local persistent stream pool when `interval` is 0, so repeated TTS-style calls do not open a new WebSocket each time.
6+
- Streaming encode now sends and receives on one thread so live first-window output cannot race the upload.
7+
- Added `audio.open_stream_pool()` for thread-safe persistent streaming encode connections.
8+
- Stream pools use stable opaque connection slots, reuse connections across operations, and close with `pool.close()` or `client.close()`.
9+
- Before an operation sends input, the pool probes and replaces stale connections. Operations are never replayed automatically after input starts.
10+
11+
## 1.2.1 - 2026-08-18
12+
13+
- Exposed OneFile encode persistence and preflight flags that the product API already accepts: `save_file`, `keep_original`, `check_watermark`, `response_format`, and `original_filename`.
14+
- Exposed decode `save_file` instead of hard-coding it.
15+
- Defaults stay compatible with previous SDK behavior (`save_file=True`, `check_watermark=True`).
16+
- `smooth` is the same product option on file encode and streaming encode.
17+
- Added `audio.stream_encode()` for low-latency file encode. Media decode and rebuild libraries install with the SDK.
18+
- `stream_encode()` accepts the previous no-storage flags (`save_file`, `keep_original`, `check_watermark`, `response_format`) and only allows the non-persisting values.
19+
20+
## 1.2.0 - 2026-07-31
21+
22+
- Standard tokens no longer allow new private notebooks; existing private notebooks remain grandfathered.
23+
- Limited Pro tokens to five private notebooks and Enterprise tokens to ten.
24+
- Pro token creation now requires an explicit `public_key`.
25+
- Added permanent account capacity from acquired tokens: 1 GiB for Standard, 6 GiB for Pro, and 11 GiB for Enterprise.
26+
- Added token-level version-control and storage auto-expansion overrides, effective-setting fields, and permanent-capacity fields.
27+
- Preserved omitted, `None`, `False`, and `True` distinctly when creating or updating token settings: omission leaves an update unchanged, `None` selects inheritance, and booleans explicitly disable or enable a setting.
28+
- Documented whole-GiB allocation, immediate first-allocation charging, monthly renewal, successful-charge non-refund, payment-required restrictions, and the 24-hour unpaid reduction window.
29+
- Updated `notebooks.get()` to return the current notebook revision and ordered media projection.
30+
- Added revision-safe notebook save sessions: begin one session, stage multiple files with its `save_session_id`, inspect session or upload status, then cancel or commit the session.
31+
- Changed existing-notebook `update`, `upload_media`, and `delete_media` helpers to read the authoritative complete projection and commit through one atomic save session; `delete_media` now requires the owning `note_id` so only the selected attachment is removed.
32+
- Added UUID `save_batch_id` support for grouping independent notebook commits.
33+
- Added typed save-session, staged-upload, cancellation, and commit results, plus typed notebook conflict, payment, validation, rate-limit, and availability exceptions.
34+
- Raised notebook current media capacity to 500 files while preserving the 100 MiB per-file and 10 MiB UTF-8 text limits.
35+
- Notebook media now accepts detected image, audio, and video content; SVG and unsupported bytes are rejected.
36+
- Added stable notebook error codes for media validation, revision, save-session and idempotency conflicts, payment-required capacity, version-rate limits, and temporary unavailability.
37+
- Documented full-snapshot version behavior and the 60-version-per-notebook rolling-hour and 500-version-per-account UTC-day limits.
38+
- Owner history remains Web-only; SDK `1.2.0` does not provide history list, download, restore, or delete methods.
39+
- Clarified that version history is not an independent file-backup service.
440

541
## 1.1.6
642

7-
- Added notebook media limits of 10 files, 100 MB per file, and 10 GB total.
43+
- Documented the notebook media upload constraints available in that release.
844
- Added SDK methods to list and create reusable AI authorization tags.
9-
- Normalized unlimited private notebook limits to `None` in public SDK token models.
45+
- Normalized legacy private notebook-limit responses in public SDK token models.
1046

1147
## 1.1.4
1248

0 commit comments

Comments
 (0)