From 22b2c1138d8739400edc27c245aa744a1d774ec6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 20:24:23 +0000 Subject: [PATCH 1/3] feat: Fix my incorrect grammer --- .stats.yml | 4 ++-- src/kernel/resources/invocations.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index be90d46..81ff967 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 51 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-8b5a722e4964d2d1dcdc34afccb6d742e1c927cbbd622264c8734f132e31a0f5.yml -openapi_spec_hash: ed101ff177c2e962653ca65acf939336 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-bfdb7e3d38870a8ba1628f4f83a3a719d470bf4f7fbecb67a6fad110447c9b6a.yml +openapi_spec_hash: fed29c80f9c25f8a7216b8c6de2051ab config_hash: 49c2ff978aaa5ccb4ce324a72f116010 diff --git a/src/kernel/resources/invocations.py b/src/kernel/resources/invocations.py index ed10cf2..073314f 100644 --- a/src/kernel/resources/invocations.py +++ b/src/kernel/resources/invocations.py @@ -154,8 +154,8 @@ def update( ) -> InvocationUpdateResponse: """Update an invocation's status or output. - This can used to cancel an invocation - by setting the status to "failed". + This can be used to cancel an + invocation by setting the status to "failed". Args: status: New status for the invocation. @@ -463,8 +463,8 @@ async def update( ) -> InvocationUpdateResponse: """Update an invocation's status or output. - This can used to cancel an invocation - by setting the status to "failed". + This can be used to cancel an + invocation by setting the status to "failed". Args: status: New status for the invocation. From c703d0bc7b785ff8118b3fc4cb80873c21b7640a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:11:49 +0000 Subject: [PATCH 2/3] feat: Add App Version to Invocation and add filtering on App Version --- .stats.yml | 4 ++-- src/kernel/resources/invocations.py | 8 ++++++++ src/kernel/types/invocation_list_params.py | 3 +++ src/kernel/types/invocation_list_response.py | 3 +++ src/kernel/types/invocation_retrieve_response.py | 3 +++ src/kernel/types/invocation_state_event.py | 3 +++ src/kernel/types/invocation_update_response.py | 3 +++ tests/api_resources/test_invocations.py | 2 ++ 8 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 81ff967..2b8a4b6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 51 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-bfdb7e3d38870a8ba1628f4f83a3a719d470bf4f7fbecb67a6fad110447c9b6a.yml -openapi_spec_hash: fed29c80f9c25f8a7216b8c6de2051ab +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-da8bfd5cfb5a6d9ccb7e4edd123b49284f4eccb32fc9b6fb7165548535122e12.yml +openapi_spec_hash: fd6ded34689331831b5c077f71b5f08f config_hash: 49c2ff978aaa5ccb4ce324a72f116010 diff --git a/src/kernel/resources/invocations.py b/src/kernel/resources/invocations.py index 073314f..4c7e781 100644 --- a/src/kernel/resources/invocations.py +++ b/src/kernel/resources/invocations.py @@ -197,6 +197,7 @@ def list( offset: int | Omit = omit, since: str | Omit = omit, status: Literal["queued", "running", "succeeded", "failed"] | Omit = omit, + version: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -225,6 +226,8 @@ def list( status: Filter results by invocation status. + version: Filter results by application version. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -250,6 +253,7 @@ def list( "offset": offset, "since": since, "status": status, + "version": version, }, invocation_list_params.InvocationListParams, ), @@ -506,6 +510,7 @@ def list( offset: int | Omit = omit, since: str | Omit = omit, status: Literal["queued", "running", "succeeded", "failed"] | Omit = omit, + version: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -534,6 +539,8 @@ def list( status: Filter results by invocation status. + version: Filter results by application version. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -559,6 +566,7 @@ def list( "offset": offset, "since": since, "status": status, + "version": version, }, invocation_list_params.InvocationListParams, ), diff --git a/src/kernel/types/invocation_list_params.py b/src/kernel/types/invocation_list_params.py index 06f75ff..9673f2d 100644 --- a/src/kernel/types/invocation_list_params.py +++ b/src/kernel/types/invocation_list_params.py @@ -31,3 +31,6 @@ class InvocationListParams(TypedDict, total=False): status: Literal["queued", "running", "succeeded", "failed"] """Filter results by invocation status.""" + + version: str + """Filter results by application version.""" diff --git a/src/kernel/types/invocation_list_response.py b/src/kernel/types/invocation_list_response.py index 4c26585..e635b4d 100644 --- a/src/kernel/types/invocation_list_response.py +++ b/src/kernel/types/invocation_list_response.py @@ -25,6 +25,9 @@ class InvocationListResponse(BaseModel): status: Literal["queued", "running", "succeeded", "failed"] """Status of the invocation""" + version: str + """Version label for the application""" + finished_at: Optional[datetime] = None """ RFC 3339 Nanoseconds timestamp when the invocation finished (null if still diff --git a/src/kernel/types/invocation_retrieve_response.py b/src/kernel/types/invocation_retrieve_response.py index 6626b53..580424e 100644 --- a/src/kernel/types/invocation_retrieve_response.py +++ b/src/kernel/types/invocation_retrieve_response.py @@ -25,6 +25,9 @@ class InvocationRetrieveResponse(BaseModel): status: Literal["queued", "running", "succeeded", "failed"] """Status of the invocation""" + version: str + """Version label for the application""" + finished_at: Optional[datetime] = None """ RFC 3339 Nanoseconds timestamp when the invocation finished (null if still diff --git a/src/kernel/types/invocation_state_event.py b/src/kernel/types/invocation_state_event.py index 6f30ea6..48a2fa3 100644 --- a/src/kernel/types/invocation_state_event.py +++ b/src/kernel/types/invocation_state_event.py @@ -25,6 +25,9 @@ class Invocation(BaseModel): status: Literal["queued", "running", "succeeded", "failed"] """Status of the invocation""" + version: str + """Version label for the application""" + finished_at: Optional[datetime] = None """ RFC 3339 Nanoseconds timestamp when the invocation finished (null if still diff --git a/src/kernel/types/invocation_update_response.py b/src/kernel/types/invocation_update_response.py index e0029a9..3bcc8bc 100644 --- a/src/kernel/types/invocation_update_response.py +++ b/src/kernel/types/invocation_update_response.py @@ -25,6 +25,9 @@ class InvocationUpdateResponse(BaseModel): status: Literal["queued", "running", "succeeded", "failed"] """Status of the invocation""" + version: str + """Version label for the application""" + finished_at: Optional[datetime] = None """ RFC 3339 Nanoseconds timestamp when the invocation finished (null if still diff --git a/tests/api_resources/test_invocations.py b/tests/api_resources/test_invocations.py index 1abf41d..d36ea25 100644 --- a/tests/api_resources/test_invocations.py +++ b/tests/api_resources/test_invocations.py @@ -190,6 +190,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: offset=0, since="2025-06-20T12:00:00Z", status="queued", + version="version", ) assert_matches_type(SyncOffsetPagination[InvocationListResponse], invocation, path=["response"]) @@ -480,6 +481,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N offset=0, since="2025-06-20T12:00:00Z", status="queued", + version="version", ) assert_matches_type(AsyncOffsetPagination[InvocationListResponse], invocation, path=["response"]) From c5d2f4e5033c6574dd34c2de7ac576c7c307d1e6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:19:43 +0000 Subject: [PATCH 3/3] release: 0.11.5 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ pyproject.toml | 2 +- src/kernel/_version.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 536ca31..d87cca6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.11.4" + ".": "0.11.5" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 90f11ca..4948fd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.11.5 (2025-09-29) + +Full Changelog: [v0.11.4...v0.11.5](https://github.com/onkernel/kernel-python-sdk/compare/v0.11.4...v0.11.5) + +### Features + +* Add App Version to Invocation and add filtering on App Version ([c703d0b](https://github.com/onkernel/kernel-python-sdk/commit/c703d0bc7b785ff8118b3fc4cb80873c21b7640a)) +* Fix my incorrect grammer ([22b2c11](https://github.com/onkernel/kernel-python-sdk/commit/22b2c1138d8739400edc27c245aa744a1d774ec6)) + ## 0.11.4 (2025-09-25) Full Changelog: [v0.11.3...v0.11.4](https://github.com/onkernel/kernel-python-sdk/compare/v0.11.3...v0.11.4) diff --git a/pyproject.toml b/pyproject.toml index c45dd07..4001f30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "kernel" -version = "0.11.4" +version = "0.11.5" description = "The official Python library for the kernel API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/kernel/_version.py b/src/kernel/_version.py index acdc658..a8e88a1 100644 --- a/src/kernel/_version.py +++ b/src/kernel/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "kernel" -__version__ = "0.11.4" # x-release-please-version +__version__ = "0.11.5" # x-release-please-version