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.134.0"
".": "0.135.0"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.135.0](https://github.com/kernel/kernel-python-sdk/compare/v0.134.0...v0.135.0) (2026-10-28)


### Features

* api: sort API keys by last_used_at ([3501230](https://github.com/kernel/kernel-python-sdk/commit/3501230a16dd8fddf7cc29a1595a68d793fb44ef))

## [0.134.0](https://github.com/kernel/kernel-python-sdk/compare/v0.133.0...v0.134.0) (2026-10-28)


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.134.0"
version = "0.135.0"
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.134.0" # x-release-please-version
__version__ = "0.135.0" # x-release-please-version
10 changes: 6 additions & 4 deletions src/kernel/resources/api_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def list(
name: str | Omit = omit,
offset: int | Omit = omit,
query: str | Omit = omit,
sort_by: Literal["created_at", "name", "expires_at"] | Omit = omit,
sort_by: Literal["created_at", "name", "expires_at", "last_used_at"] | Omit = omit,
sort_direction: Literal["asc", "desc"] | Omit = omit,
status: Literal["active", "deleted", "all"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -249,7 +249,8 @@ def list(
query: Case-insensitive substring match against API key name, creator, and project. API
key identifiers and masked keys match by exact value or prefix.

sort_by: Field to sort API keys by.
sort_by: Field to sort API keys by. Keys with no expiry or no recorded use sort last for
expires_at and last_used_at in either direction.

sort_direction: Sort direction for API keys.

Expand Down Expand Up @@ -578,7 +579,7 @@ def list(
name: str | Omit = omit,
offset: int | Omit = omit,
query: str | Omit = omit,
sort_by: Literal["created_at", "name", "expires_at"] | Omit = omit,
sort_by: Literal["created_at", "name", "expires_at", "last_used_at"] | Omit = omit,
sort_direction: Literal["asc", "desc"] | Omit = omit,
status: Literal["active", "deleted", "all"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -608,7 +609,8 @@ def list(
query: Case-insensitive substring match against API key name, creator, and project. API
key identifiers and masked keys match by exact value or prefix.

sort_by: Field to sort API keys by.
sort_by: Field to sort API keys by. Keys with no expiry or no recorded use sort last for
expires_at and last_used_at in either direction.

sort_direction: Sort direction for API keys.

Expand Down
8 changes: 6 additions & 2 deletions src/kernel/types/api_key_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ class APIKeyListParams(TypedDict, total=False):
API key identifiers and masked keys match by exact value or prefix.
"""

sort_by: Literal["created_at", "name", "expires_at"]
"""Field to sort API keys by."""
sort_by: Literal["created_at", "name", "expires_at", "last_used_at"]
"""Field to sort API keys by.

Keys with no expiry or no recorded use sort last for expires_at and last_used_at
in either direction.
"""

sort_direction: Literal["asc", "desc"]
"""Sort direction for API keys."""
Expand Down
Loading