From b97b3203c612f3883d7d08d6f3f6282ce726ec59 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 01:40:31 +0000 Subject: [PATCH 1/2] feat: Include login_url in managed auth connection response --- .stats.yml | 4 ++-- src/kernel/resources/auth/connections.py | 16 ++++++++++------ .../types/auth/connection_create_params.py | 5 ++++- src/kernel/types/auth/managed_auth.py | 3 +++ 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4bc313e..7f48513 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 104 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f7024f4171c7c4ec558de1c27f338b1089ffddd0d2dbfdb9bb9f9c2abe8f47bf.yml -openapi_spec_hash: ced43682b49e73a2862f99b49abb4fcd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-ac10847d991ef8ed89124b5550922cb5726af2b4a4c3396ee6ff82938302fc25.yml +openapi_spec_hash: 0d902563108fe2461708c05336eab40a config_hash: 16e4457a0bb26e98a335a1c2a572290a diff --git a/src/kernel/resources/auth/connections.py b/src/kernel/resources/auth/connections.py index c610da4..fd28bd1 100644 --- a/src/kernel/resources/auth/connections.py +++ b/src/kernel/resources/auth/connections.py @@ -76,13 +76,15 @@ def create( ) -> ManagedAuth: """Creates an auth connection for a profile and domain combination. - Returns 409 - Conflict if an auth connection already exists for the given profile and domain. + If the provided + profile_name does not exist, it is created automatically. Returns 409 Conflict + if an auth connection already exists for the given profile and domain. Args: domain: Domain for authentication - profile_name: Name of the profile to manage authentication for + profile_name: Name of the profile to manage authentication for. If the profile does not exist, + it is created automatically. allowed_domains: Additional domains valid for this auth flow (besides the primary domain). Useful when login pages redirect to different domains. @@ -537,13 +539,15 @@ async def create( ) -> ManagedAuth: """Creates an auth connection for a profile and domain combination. - Returns 409 - Conflict if an auth connection already exists for the given profile and domain. + If the provided + profile_name does not exist, it is created automatically. Returns 409 Conflict + if an auth connection already exists for the given profile and domain. Args: domain: Domain for authentication - profile_name: Name of the profile to manage authentication for + profile_name: Name of the profile to manage authentication for. If the profile does not exist, + it is created automatically. allowed_domains: Additional domains valid for this auth flow (besides the primary domain). Useful when login pages redirect to different domains. diff --git a/src/kernel/types/auth/connection_create_params.py b/src/kernel/types/auth/connection_create_params.py index 89c787f..b021994 100644 --- a/src/kernel/types/auth/connection_create_params.py +++ b/src/kernel/types/auth/connection_create_params.py @@ -14,7 +14,10 @@ class ConnectionCreateParams(TypedDict, total=False): """Domain for authentication""" profile_name: Required[str] - """Name of the profile to manage authentication for""" + """Name of the profile to manage authentication for. + + If the profile does not exist, it is created automatically. + """ allowed_domains: SequenceNotStr[str] """Additional domains valid for this auth flow (besides the primary domain). diff --git a/src/kernel/types/auth/managed_auth.py b/src/kernel/types/auth/managed_auth.py index 9f90bc5..10dea63 100644 --- a/src/kernel/types/auth/managed_auth.py +++ b/src/kernel/types/auth/managed_auth.py @@ -215,6 +215,9 @@ class ManagedAuth(BaseModel): live_view_url: Optional[str] = None """Browser live view URL for debugging (present when flow in progress)""" + login_url: Optional[str] = None + """Optional login page URL to skip discovery""" + mfa_options: Optional[List[MfaOption]] = None """ MFA method options (present when flow_step=awaiting_input and MFA selection From 57d80c4612e231e9d4fb9476b257bf0fab3f00a1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 01:40:49 +0000 Subject: [PATCH 2/2] release: 0.47.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/kernel/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 563004f..141e7cd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.46.0" + ".": "0.47.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c5ac20f..5e99ff9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.47.0 (2026-04-07) + +Full Changelog: [v0.46.0...v0.47.0](https://github.com/kernel/kernel-python-sdk/compare/v0.46.0...v0.47.0) + +### Features + +* Include login_url in managed auth connection response ([b97b320](https://github.com/kernel/kernel-python-sdk/commit/b97b3203c612f3883d7d08d6f3f6282ce726ec59)) + ## 0.46.0 (2026-04-06) Full Changelog: [v0.45.0...v0.46.0](https://github.com/kernel/kernel-python-sdk/compare/v0.45.0...v0.46.0) diff --git a/pyproject.toml b/pyproject.toml index 10ca20a..c9fe0cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "kernel" -version = "0.46.0" +version = "0.47.0" 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 5b80010..254e7e2 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.46.0" # x-release-please-version +__version__ = "0.47.0" # x-release-please-version