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
10 changes: 5 additions & 5 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ workflows:
'.github/workflows/release-doctor.yml':
- 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd'
'.github/workflows/release-please.yml':
- 'actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547'
- 'actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510'
- 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020'
- 'pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1'
'.github/workflows/semgrep.yml': []
'.github/workflows/stlc-promote.yml':
- 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd'
- 'actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547'
- 'actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510'
'.github/workflows/stlc-sync.yml':
- 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd'
'.github/workflows/vuln-remediation.yml': []
Expand All @@ -27,9 +27,9 @@ dependencies:
commit: 'sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd'
owner_id: 44036562
repo_id: 197814629
'actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547':
ref: 'v1.12.0'
commit: 'sha1-d72941d797fd3113feb6b93fd0dec494b13a2547'
'actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510':
ref: 'v3.3.0'
commit: 'sha1-64ab729a6294000f5aa4a4bc0b73d1f32bc45510'
owner_id: 44036562
repo_id: 642580244
'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd':
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ jobs:
steps:
- name: Mint release token
id: release-token
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
app-id: ${{ secrets.ADMIN_APP_ID }}
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
owner: kernel
repositories: kernel-python-sdk
permission-contents: write
permission-issues: write
permission-pull-requests: write
permission-workflows: write

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stlc-promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Mint production token
id: production-token
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
app-id: ${{ secrets.ADMIN_APP_ID }}
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
Expand Down
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.154.0"
".": "0.155.0"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [0.155.0](https://github.com/kernel/kernel-python-sdk/compare/v0.154.0...v0.155.0) (2026-11-25)


### Features

* Accept a proxy object on browser pools ([37f0e8b](https://github.com/kernel/kernel-python-sdk/commit/37f0e8b489698bfe2d0f6047ae90fe1c852fd8b9))
* Let alias Kernel cards record a merchant outcome ([24bbc41](https://github.com/kernel/kernel-python-sdk/commit/24bbc41ea434fbe7b3e8bf3d700a2733e750b40c))

## [0.154.0](https://github.com/kernel/kernel-python-sdk/compare/v0.153.0...v0.154.0) (2026-11-20)


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.154.0"
version = "0.155.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.154.0" # x-release-please-version
__version__ = "0.155.0" # x-release-please-version
89 changes: 63 additions & 26 deletions src/kernel/resources/browser_pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from ..types.tags_param import TagsParam
from ..types.browser_pool import BrowserPool
from ..types.browser_memory_request import BrowserMemoryRequest
from ..types.browser_proxy_config_param import BrowserProxyConfigParam
from ..types.browser_captcha_solver_param import BrowserCaptchaSolverParam
from ..types.browser_network_config_param import BrowserNetworkConfigParam
from ..types.browser_pool_acquire_response import BrowserPoolAcquireResponse
Expand Down Expand Up @@ -77,6 +78,7 @@ def create(
name: str | Omit = omit,
network: BrowserNetworkConfigParam | Omit = omit,
profile: browser_pool_create_params.Profile | Omit = omit,
proxy: BrowserProxyConfigParam | Omit = omit,
proxy_id: str | Omit = omit,
refresh_on_profile_update: bool | Omit = omit,
region: Literal["us-east", "us-west", "eu-west", "ap-southeast"] | Omit = omit,
Expand Down Expand Up @@ -107,8 +109,9 @@ def create(
exceed your limit).

captcha_solver: Automatic CAPTCHA solving for browsers in this pool. Disabled by default.
Enabling it does not select a proxy: when proxy_id is omitted, browsers use
direct egress unless stealth=true.
Enabling it does not select a proxy: when proxy and proxy_id are omitted,
browsers use direct egress unless stealth=true. Set proxy.mode=default for
Kernel's default stealth proxy.

chrome_policy: Custom Chrome enterprise policy overrides applied to all browsers in this pool.
Keys are Chrome enterprise policy names; values must match their expected types.
Expand Down Expand Up @@ -142,8 +145,16 @@ def create(
omitted here. Any save_changes value sent on a pool profile is silently ignored
rather than rejected.

proxy_id: Optional proxy to associate to the browser session. Must reference a proxy in
the same project as the browser session.
proxy: Proxy configuration for browsers in this pool. Cannot be combined with proxy_id.
Omit to use direct egress, or Kernel's default stealth proxy when stealth=true.
Set mode to direct to force direct egress. Set mode to default to use Kernel's
default stealth proxy when captcha_solver.enabled=true, or direct egress
otherwise. Select id or name to use that proxy. Proxy selection does not change
CAPTCHA solver behavior.

proxy_id: Optional proxy to associate to browsers in this pool. Must reference a proxy in
the same project as the pool. Cannot be combined with proxy. Deprecated in favor
of proxy.

refresh_on_profile_update: When true, flush idle browsers when the profile the pool uses is updated, so
pool browsers pick up the latest profile data. When a profile is provided during
Expand All @@ -161,10 +172,9 @@ def create(
previous lease left them on. Accepts any URL Chromium can resolve, including
chrome:// pages.

stealth: If true, enables the CAPTCHA solver and, when proxy_id is omitted, uses Kernel's
default stealth proxy. Defaults to false. Cannot be combined with
captcha_solver.enabled=false. Deprecated in favor of captcha_solver and
proxy_id.
stealth: If true, enables the CAPTCHA solver and, when proxy and proxy_id are omitted,
uses Kernel's default stealth proxy. Defaults to false. Cannot be combined with
captcha_solver.enabled=false. Deprecated in favor of captcha_solver and proxy.

telemetry: Telemetry configuration applied to browsers warmed into this pool. Set enabled
to true to start capture using the default set, or provide browser category
Expand Down Expand Up @@ -214,6 +224,7 @@ def create(
"name": name,
"network": network,
"profile": profile,
"proxy": proxy,
"proxy_id": proxy_id,
"refresh_on_profile_update": refresh_on_profile_update,
"region": region,
Expand Down Expand Up @@ -285,6 +296,7 @@ def update(
name: str | Omit = omit,
network: BrowserNetworkConfigParam | Omit = omit,
profile: browser_pool_update_params.Profile | Omit = omit,
proxy: BrowserProxyConfigParam | Omit = omit,
proxy_id: str | Omit = omit,
refresh_on_profile_update: bool | Omit = omit,
size: int | Omit = omit,
Expand Down Expand Up @@ -313,7 +325,7 @@ def update(
Args:
captcha_solver: If provided, replaces whether browsers in this pool automatically solve
CAPTCHAs. Enabling it on a pool with direct egress keeps direct egress unless
proxy_id or stealth=true is also set.
proxy, proxy_id, or stealth=true is also set.

chrome_policy: If provided, replaces the custom Chrome enterprise policy overrides applied to
all browsers in this pool. Empty object clears any previously-set policy. Keys
Expand Down Expand Up @@ -374,8 +386,14 @@ def update(
omitted here. Any save_changes value sent on a pool profile is silently ignored
rather than rejected.

proxy: Proxy configuration to apply to browsers warmed after the update. Omit to leave
the current configuration unchanged. Cannot be combined with proxy_id. Set mode
to direct to switch to direct egress. Set mode to default to use Kernel's
default stealth proxy for a pool with CAPTCHA solving enabled, or direct egress
otherwise. Updating proxy does not change CAPTCHA solver behavior.

proxy_id: Empty string clears the previously-selected proxy. Omit this field to leave the
proxy unchanged.
proxy unchanged. Cannot be combined with proxy. Deprecated in favor of proxy.

refresh_on_profile_update: If provided, replaces whether idle browsers are flushed when the profile the
pool uses is updated. When the pool's profile reference is changed (including
Expand All @@ -395,9 +413,9 @@ def update(
it unchanged.

stealth: If provided, replaces whether browsers launch in stealth mode. stealth=true
without proxy_id moves a pool on direct egress to Kernel's default stealth
proxy. Cannot be combined with captcha_solver.enabled=false. Deprecated in favor
of captcha_solver and proxy_id.
without proxy or proxy_id moves a pool on direct egress to Kernel's default
stealth proxy. Cannot be combined with captcha_solver.enabled=false. Deprecated
in favor of captcha_solver and proxy.

telemetry: If provided, updates the pool's telemetry configuration. Omit, set to null, or
set to an empty object ({}) to leave the existing configuration unchanged. Set
Expand Down Expand Up @@ -451,6 +469,7 @@ def update(
"name": name,
"network": network,
"profile": profile,
"proxy": proxy,
"proxy_id": proxy_id,
"refresh_on_profile_update": refresh_on_profile_update,
"size": size,
Expand Down Expand Up @@ -817,6 +836,7 @@ async def create(
name: str | Omit = omit,
network: BrowserNetworkConfigParam | Omit = omit,
profile: browser_pool_create_params.Profile | Omit = omit,
proxy: BrowserProxyConfigParam | Omit = omit,
proxy_id: str | Omit = omit,
refresh_on_profile_update: bool | Omit = omit,
region: Literal["us-east", "us-west", "eu-west", "ap-southeast"] | Omit = omit,
Expand Down Expand Up @@ -847,8 +867,9 @@ async def create(
exceed your limit).

captcha_solver: Automatic CAPTCHA solving for browsers in this pool. Disabled by default.
Enabling it does not select a proxy: when proxy_id is omitted, browsers use
direct egress unless stealth=true.
Enabling it does not select a proxy: when proxy and proxy_id are omitted,
browsers use direct egress unless stealth=true. Set proxy.mode=default for
Kernel's default stealth proxy.

chrome_policy: Custom Chrome enterprise policy overrides applied to all browsers in this pool.
Keys are Chrome enterprise policy names; values must match their expected types.
Expand Down Expand Up @@ -882,8 +903,16 @@ async def create(
omitted here. Any save_changes value sent on a pool profile is silently ignored
rather than rejected.

proxy_id: Optional proxy to associate to the browser session. Must reference a proxy in
the same project as the browser session.
proxy: Proxy configuration for browsers in this pool. Cannot be combined with proxy_id.
Omit to use direct egress, or Kernel's default stealth proxy when stealth=true.
Set mode to direct to force direct egress. Set mode to default to use Kernel's
default stealth proxy when captcha_solver.enabled=true, or direct egress
otherwise. Select id or name to use that proxy. Proxy selection does not change
CAPTCHA solver behavior.

proxy_id: Optional proxy to associate to browsers in this pool. Must reference a proxy in
the same project as the pool. Cannot be combined with proxy. Deprecated in favor
of proxy.

refresh_on_profile_update: When true, flush idle browsers when the profile the pool uses is updated, so
pool browsers pick up the latest profile data. When a profile is provided during
Expand All @@ -901,10 +930,9 @@ async def create(
previous lease left them on. Accepts any URL Chromium can resolve, including
chrome:// pages.

stealth: If true, enables the CAPTCHA solver and, when proxy_id is omitted, uses Kernel's
default stealth proxy. Defaults to false. Cannot be combined with
captcha_solver.enabled=false. Deprecated in favor of captcha_solver and
proxy_id.
stealth: If true, enables the CAPTCHA solver and, when proxy and proxy_id are omitted,
uses Kernel's default stealth proxy. Defaults to false. Cannot be combined with
captcha_solver.enabled=false. Deprecated in favor of captcha_solver and proxy.

telemetry: Telemetry configuration applied to browsers warmed into this pool. Set enabled
to true to start capture using the default set, or provide browser category
Expand Down Expand Up @@ -954,6 +982,7 @@ async def create(
"name": name,
"network": network,
"profile": profile,
"proxy": proxy,
"proxy_id": proxy_id,
"refresh_on_profile_update": refresh_on_profile_update,
"region": region,
Expand Down Expand Up @@ -1025,6 +1054,7 @@ async def update(
name: str | Omit = omit,
network: BrowserNetworkConfigParam | Omit = omit,
profile: browser_pool_update_params.Profile | Omit = omit,
proxy: BrowserProxyConfigParam | Omit = omit,
proxy_id: str | Omit = omit,
refresh_on_profile_update: bool | Omit = omit,
size: int | Omit = omit,
Expand Down Expand Up @@ -1053,7 +1083,7 @@ async def update(
Args:
captcha_solver: If provided, replaces whether browsers in this pool automatically solve
CAPTCHAs. Enabling it on a pool with direct egress keeps direct egress unless
proxy_id or stealth=true is also set.
proxy, proxy_id, or stealth=true is also set.

chrome_policy: If provided, replaces the custom Chrome enterprise policy overrides applied to
all browsers in this pool. Empty object clears any previously-set policy. Keys
Expand Down Expand Up @@ -1114,8 +1144,14 @@ async def update(
omitted here. Any save_changes value sent on a pool profile is silently ignored
rather than rejected.

proxy: Proxy configuration to apply to browsers warmed after the update. Omit to leave
the current configuration unchanged. Cannot be combined with proxy_id. Set mode
to direct to switch to direct egress. Set mode to default to use Kernel's
default stealth proxy for a pool with CAPTCHA solving enabled, or direct egress
otherwise. Updating proxy does not change CAPTCHA solver behavior.

proxy_id: Empty string clears the previously-selected proxy. Omit this field to leave the
proxy unchanged.
proxy unchanged. Cannot be combined with proxy. Deprecated in favor of proxy.

refresh_on_profile_update: If provided, replaces whether idle browsers are flushed when the profile the
pool uses is updated. When the pool's profile reference is changed (including
Expand All @@ -1135,9 +1171,9 @@ async def update(
it unchanged.

stealth: If provided, replaces whether browsers launch in stealth mode. stealth=true
without proxy_id moves a pool on direct egress to Kernel's default stealth
proxy. Cannot be combined with captcha_solver.enabled=false. Deprecated in favor
of captcha_solver and proxy_id.
without proxy or proxy_id moves a pool on direct egress to Kernel's default
stealth proxy. Cannot be combined with captcha_solver.enabled=false. Deprecated
in favor of captcha_solver and proxy.

telemetry: If provided, updates the pool's telemetry configuration. Omit, set to null, or
set to an empty object ({}) to leave the existing configuration unchanged. Set
Expand Down Expand Up @@ -1191,6 +1227,7 @@ async def update(
"name": name,
"network": network,
"profile": profile,
"proxy": proxy,
"proxy_id": proxy_id,
"refresh_on_profile_update": refresh_on_profile_update,
"size": size,
Expand Down
Loading
Loading