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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.36.0"
".": "0.36.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 101
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-bbc3dbdd0410eb315cfaeb21aad9f85e4a7f92ac55526ebb702a8bee343c2ab7.yml
openapi_spec_hash: 60a5134c45a8f3a217e128d4e3335cae
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-ea5c9cb25c29fa5a8758bbf8732eb306783bb6f13b4df29bf1ad5ad3cb32da1e.yml
openapi_spec_hash: 597031840469b011f5cf22a4d8b9d750
config_hash: 147340811dd6fbb9c2d80515a7e31f9a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.36.1 (2026-02-21)

Full Changelog: [v0.36.0...v0.36.1](https://github.com/kernel/kernel-python-sdk/compare/v0.36.0...v0.36.1)

### Features

* Add version filter to GET /deployments endpoint ([b4cb1ac](https://github.com/kernel/kernel-python-sdk/commit/b4cb1ac6658900c71fb75e16a54da3ad96113eec))

## 0.36.0 (2026-02-21)

Full Changelog: [v0.35.0...v0.36.0](https://github.com/kernel/kernel-python-sdk/compare/v0.35.0...v0.36.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kernel"
version = "0.36.0"
version = "0.36.1"
description = "The official Python library for the kernel API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "kernel"
__version__ = "0.36.0" # x-release-please-version
__version__ = "0.36.1" # x-release-please-version
12 changes: 10 additions & 2 deletions src/kernel/resources/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def list(
self,
*,
app_name: str | Omit = omit,
app_version: str | Omit = omit,
limit: int | Omit = omit,
offset: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -167,11 +168,13 @@ def list(
) -> SyncOffsetPagination[DeploymentListResponse]:
"""List deployments.

Optionally filter by application name.
Optionally filter by application name and version.

Args:
app_name: Filter results by application name.

app_version: Filter results by application version. Requires app_name to be set.

limit: Limit the number of deployments to return.

offset: Offset the number of deployments to return.
Expand All @@ -195,6 +198,7 @@ def list(
query=maybe_transform(
{
"app_name": app_name,
"app_version": app_version,
"limit": limit,
"offset": offset,
},
Expand Down Expand Up @@ -415,6 +419,7 @@ def list(
self,
*,
app_name: str | Omit = omit,
app_version: str | Omit = omit,
limit: int | Omit = omit,
offset: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -426,11 +431,13 @@ def list(
) -> AsyncPaginator[DeploymentListResponse, AsyncOffsetPagination[DeploymentListResponse]]:
"""List deployments.

Optionally filter by application name.
Optionally filter by application name and version.

Args:
app_name: Filter results by application name.

app_version: Filter results by application version. Requires app_name to be set.

limit: Limit the number of deployments to return.

offset: Offset the number of deployments to return.
Expand All @@ -454,6 +461,7 @@ def list(
query=maybe_transform(
{
"app_name": app_name,
"app_version": app_version,
"limit": limit,
"offset": offset,
},
Expand Down
3 changes: 3 additions & 0 deletions src/kernel/types/deployment_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class DeploymentListParams(TypedDict, total=False):
app_name: str
"""Filter results by application name."""

app_version: str
"""Filter results by application version. Requires app_name to be set."""

limit: int
"""Limit the number of deployments to return."""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def test_method_list(self, client: Kernel) -> None:
def test_method_list_with_all_params(self, client: Kernel) -> None:
deployment = client.deployments.list(
app_name="app_name",
app_version="app_version",
limit=1,
offset=0,
)
Expand Down Expand Up @@ -357,6 +358,7 @@ async def test_method_list(self, async_client: AsyncKernel) -> None:
async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> None:
deployment = await async_client.deployments.list(
app_name="app_name",
app_version="app_version",
limit=1,
offset=0,
)
Expand Down