From 84d5d450107cd7ebcf51cf7de15963ffe926ec9d Mon Sep 17 00:00:00 2001 From: Zach Johnson Date: Thu, 4 Jun 2026 00:01:50 +0000 Subject: [PATCH] feat(api): target API version 1.2 The client now sends `lmnt-version: 1.2`. In speech sessions, word timestamps have cumulative start times aligned to the audio you receive and reset after a `flush` or `reset`. Also realigns the package version with the Node and Go SDKs. --- .release-please-manifest.json | 2 +- _carbonsteel.json | 6 +++--- pyproject.toml | 2 +- src/lmnt/_api_version.py | 2 +- src/lmnt/_version.py | 2 +- src/lmnt/types/speech_session_timestamps.py | 4 +--- tests/api_resources/test_sessions.py | 2 +- 7 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8ff2f5e..7a48e52 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.6.1" + ".": "2.12.0" } diff --git a/_carbonsteel.json b/_carbonsteel.json index b23992f..b41f41b 100644 --- a/_carbonsteel.json +++ b/_carbonsteel.json @@ -1,7 +1,7 @@ { - "version": "1.1", - "generated_at": "2026-05-19T21:02:05Z", - "spec_sha": "4c822a78c44f68ac:cc7f4554e955f4fe", + "version": "1.2", + "generated_at": "2026-06-03T23:58:37Z", + "spec_sha": "3ac0d7427265f74f:f147e87623a53da9", "files": [ "api.md", "src/lmnt/__init__.py", diff --git a/pyproject.toml b/pyproject.toml index 4b130fb..083fbfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lmnt" -version = "2.6.1" +version = "2.12.0" description = "The official Python library for the LMNT API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/lmnt/_api_version.py b/src/lmnt/_api_version.py index 25166d0..a838fdb 100644 --- a/src/lmnt/_api_version.py +++ b/src/lmnt/_api_version.py @@ -1,3 +1,3 @@ # Generated by carbonsteel. DO NOT EDIT. -LMNT_API_VERSION = "1.1" +LMNT_API_VERSION = "1.2" diff --git a/src/lmnt/_version.py b/src/lmnt/_version.py index 743d86a..9435129 100644 --- a/src/lmnt/_version.py +++ b/src/lmnt/_version.py @@ -1,4 +1,4 @@ # Generated by carbonsteel. DO NOT EDIT. __title__ = "lmnt" -__version__ = "2.6.1" # x-release-please-version +__version__ = "2.12.0" # x-release-please-version diff --git a/src/lmnt/types/speech_session_timestamps.py b/src/lmnt/types/speech_session_timestamps.py index 0d8728d..e3782d8 100644 --- a/src/lmnt/types/speech_session_timestamps.py +++ b/src/lmnt/types/speech_session_timestamps.py @@ -16,7 +16,5 @@ class SpeechSessionTimestamps(BaseModel): timestamps: Optional[List[Timestamp]] = None """Array of timestamp objects, one per generated text token. - The timestamps array resets its start time for each chunk of audio. - - + Start times are cumulative, and reset to 0.0 after a `flush` or `reset`. """ diff --git a/tests/api_resources/test_sessions.py b/tests/api_resources/test_sessions.py index a03a877..6fafaaf 100644 --- a/tests/api_resources/test_sessions.py +++ b/tests/api_resources/test_sessions.py @@ -82,7 +82,7 @@ async def test_init_operation(self, fake_connect: Any) -> None: assert len(fake.sent) == 1 sent = json.loads(fake.sent[0]) assert sent["X-API-Key"] == "test-api-key" - assert sent["lmnt-version"] == "1.1" + assert sent["lmnt-version"] == "1.2" assert sent["voice"] == "voice-id" @pytest.mark.asyncio