Skip to content

Commit 70454bb

Browse files
authored
Merge pull request #211 from kernel/release-please--branches--main--changes--next
release: 0.141.0
2 parents 31e11ee + 19328b8 commit 70454bb

31 files changed

Lines changed: 624 additions & 140 deletions

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.140.0"
2+
".": "0.141.0"
33
}

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## [0.141.0](https://github.com/kernel/kernel-python-sdk/compare/v0.140.0...v0.141.0) (2026-11-05)
4+
5+
6+
### Features
7+
8+
* Add customer-managed VGS vault card payments ([01c7767](https://github.com/kernel/kernel-python-sdk/commit/01c7767ccc13cd14521048a974c255bc583eb73c))
9+
* Move GPU browsers to L40S-3Q and 6Q vGPU profiles ([d3eb44c](https://github.com/kernel/kernel-python-sdk/commit/d3eb44c75ecf31727e72b8fb7d780c31ac2ecdde))
10+
* Remove SerpApi and Valyu search providers ([1eec830](https://github.com/kernel/kernel-python-sdk/commit/1eec830f4de4e1aabf2890119967e4a6d3e5633c))
11+
* Return access_token_rejected code when Link rejects a customer-supplied token ([3f9a384](https://github.com/kernel/kernel-python-sdk/commit/3f9a3844fd95e262f55f798a2f2601d105cf9512))
12+
13+
14+
### Bug Fixes
15+
16+
* generate VGS card aliases in the TypeScript SDK ([814e522](https://github.com/kernel/kernel-python-sdk/commit/814e522467a6d436d73fa27381b944b3d46d03ca))
17+
318
## [0.140.0](https://github.com/kernel/kernel-python-sdk/compare/v0.139.0...v0.140.0) (2026-11-04)
419

520

‎api.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,11 @@ from kernel.types.vaults import (
652652
VaultItemOperationResponse,
653653
VaultPaymentMethod,
654654
VaultWebmcpBinding,
655+
VgsCardInput,
656+
VgsCardState,
657+
VgsCardVaultItemSpec,
658+
VgsWalletState,
659+
VgsWalletVaultItemSpec,
655660
WalletVaultItemSpec,
656661
WalletVaultItemState,
657662
WebmcpInvokeVaultItemOperationRequest,

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "kernel"
3-
version = "0.140.0"
3+
version = "0.141.0"
44
description = "The official Python library for the kernel API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

‎src/kernel/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "kernel"
4-
__version__ = "0.140.0" # x-release-please-version
4+
__version__ = "0.141.0" # x-release-please-version

‎src/kernel/resources/browsers/browsers.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ def create(
315315
creation.
316316
317317
video_memory: Video memory (VRAM) for a GPU browser session. Requires gpu=true. Defaults to
318-
2GiB, which comes with 4 vCPU and 6GiB memory. 4GiB comes with 8 vCPU and 12GiB
319-
memory.
318+
3GiB, which comes with 4 vCPU and 6GiB memory. 6GiB comes with 8 vCPU and 12GiB
319+
memory. 2GiB and 4GiB are deprecated aliases for 3GiB and 6GiB.
320320
321321
viewport: Initial browser window size in pixels with optional refresh rate. If omitted,
322322
image defaults apply (1920x1080@25). For GPU images, the default is
@@ -1176,8 +1176,8 @@ async def create(
11761176
creation.
11771177
11781178
video_memory: Video memory (VRAM) for a GPU browser session. Requires gpu=true. Defaults to
1179-
2GiB, which comes with 4 vCPU and 6GiB memory. 4GiB comes with 8 vCPU and 12GiB
1180-
memory.
1179+
3GiB, which comes with 4 vCPU and 6GiB memory. 6GiB comes with 8 vCPU and 12GiB
1180+
memory. 2GiB and 4GiB are deprecated aliases for 3GiB and 6GiB.
11811181
11821182
viewport: Initial browser window size in pixels with optional refresh rate. If omitted,
11831183
image defaults apply (1920x1080@25). For GPU images, the default is

‎src/kernel/resources/search/providers.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def with_streaming_response(self) -> ProvidersResourceWithStreamingResponse:
4848
def list(
4949
self,
5050
*,
51-
slug: Literal["brave", "exa", "perplexity", "context", "parallel", "valyu", "octen", "you", "tavily", "serpapi"]
52-
| Omit = omit,
51+
slug: Literal["brave", "exa", "perplexity", "context", "parallel", "octen", "you", "tavily"] | Omit = omit,
5352
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5453
# The extra values given here take precedence over values defined on the client or passed to this method.
5554
extra_headers: Headers | None = None,
@@ -113,8 +112,7 @@ def with_streaming_response(self) -> AsyncProvidersResourceWithStreamingResponse
113112
async def list(
114113
self,
115114
*,
116-
slug: Literal["brave", "exa", "perplexity", "context", "parallel", "valyu", "octen", "you", "tavily", "serpapi"]
117-
| Omit = omit,
115+
slug: Literal["brave", "exa", "perplexity", "context", "parallel", "octen", "you", "tavily"] | Omit = omit,
118116
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
119117
# The extra values given here take precedence over values defined on the client or passed to this method.
120118
extra_headers: Headers | None = None,

‎src/kernel/resources/vault_provider_configs.py‎

Lines changed: 88 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,56 @@ def create(
125125
"""
126126
...
127127

128+
@overload
129+
def create(
130+
self,
131+
*,
132+
credentials: vault_provider_config_create_params.VaultVgsProviderConfigRequestCredentials,
133+
name: str,
134+
provider: Literal["vgs"],
135+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
136+
# The extra values given here take precedence over values defined on the client or passed to this method.
137+
extra_headers: Headers | None = None,
138+
extra_query: Query | None = None,
139+
extra_body: Body | None = None,
140+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
141+
idempotency_key: str | None = None,
142+
) -> VaultProviderConfig:
143+
"""Register a configuration shared across the organization's projects.
144+
145+
Names are
146+
unique within the organization; duplicate names return 409 without replacing
147+
credentials. A configuration serves many wallets. Secret credentials are never
148+
returned. Requires an organization-scoped credential or dashboard
149+
authentication; project-scoped credentials receive 403.
150+
151+
Args:
152+
credentials: A VGS service account with the aliases:read scope on the customer's vault, which
153+
Kernel uses to reveal the aliases each purchase sends.
154+
155+
name: Unique within the organization.
156+
157+
extra_headers: Send extra headers
158+
159+
extra_query: Add additional query parameters to the request
160+
161+
extra_body: Add additional JSON properties to the request
162+
163+
timeout: Override the client-level default timeout for this request, in seconds
164+
165+
idempotency_key: Specify a custom idempotency key for this request
166+
"""
167+
...
168+
128169
@required_args(["credentials", "name", "provider"])
129170
def create(
130171
self,
131172
*,
132173
credentials: vault_provider_config_create_params.VaultLinkProviderConfigRequestCredentials
133-
| vault_provider_config_create_params.VaultAgentCardProviderConfigRequestCredentials,
174+
| vault_provider_config_create_params.VaultAgentCardProviderConfigRequestCredentials
175+
| vault_provider_config_create_params.VaultVgsProviderConfigRequestCredentials,
134176
name: str,
135-
provider: Literal["link"] | Literal["agentcard"],
177+
provider: Literal["link"] | Literal["agentcard"] | Literal["vgs"],
136178
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
137179
# The extra values given here take precedence over values defined on the client or passed to this method.
138180
extra_headers: Headers | None = None,
@@ -454,14 +496,56 @@ async def create(
454496
"""
455497
...
456498

499+
@overload
500+
async def create(
501+
self,
502+
*,
503+
credentials: vault_provider_config_create_params.VaultVgsProviderConfigRequestCredentials,
504+
name: str,
505+
provider: Literal["vgs"],
506+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
507+
# The extra values given here take precedence over values defined on the client or passed to this method.
508+
extra_headers: Headers | None = None,
509+
extra_query: Query | None = None,
510+
extra_body: Body | None = None,
511+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
512+
idempotency_key: str | None = None,
513+
) -> VaultProviderConfig:
514+
"""Register a configuration shared across the organization's projects.
515+
516+
Names are
517+
unique within the organization; duplicate names return 409 without replacing
518+
credentials. A configuration serves many wallets. Secret credentials are never
519+
returned. Requires an organization-scoped credential or dashboard
520+
authentication; project-scoped credentials receive 403.
521+
522+
Args:
523+
credentials: A VGS service account with the aliases:read scope on the customer's vault, which
524+
Kernel uses to reveal the aliases each purchase sends.
525+
526+
name: Unique within the organization.
527+
528+
extra_headers: Send extra headers
529+
530+
extra_query: Add additional query parameters to the request
531+
532+
extra_body: Add additional JSON properties to the request
533+
534+
timeout: Override the client-level default timeout for this request, in seconds
535+
536+
idempotency_key: Specify a custom idempotency key for this request
537+
"""
538+
...
539+
457540
@required_args(["credentials", "name", "provider"])
458541
async def create(
459542
self,
460543
*,
461544
credentials: vault_provider_config_create_params.VaultLinkProviderConfigRequestCredentials
462-
| vault_provider_config_create_params.VaultAgentCardProviderConfigRequestCredentials,
545+
| vault_provider_config_create_params.VaultAgentCardProviderConfigRequestCredentials
546+
| vault_provider_config_create_params.VaultVgsProviderConfigRequestCredentials,
463547
name: str,
464-
provider: Literal["link"] | Literal["agentcard"],
548+
provider: Literal["link"] | Literal["agentcard"] | Literal["vgs"],
465549
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
466550
# The extra values given here take precedence over values defined on the client or passed to this method.
467551
extra_headers: Headers | None = None,

‎src/kernel/types/browser_create_params.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ class BrowserCreateParams(TypedDict, total=False):
182182
video_memory: BrowserVideoMemory
183183
"""Video memory (VRAM) for a GPU browser session.
184184
185-
Requires gpu=true. Defaults to 2GiB, which comes with 4 vCPU and 6GiB memory.
186-
4GiB comes with 8 vCPU and 12GiB memory.
185+
Requires gpu=true. Defaults to 3GiB, which comes with 4 vCPU and 6GiB memory.
186+
6GiB comes with 8 vCPU and 12GiB memory. 2GiB and 4GiB are deprecated aliases
187+
for 3GiB and 6GiB.
187188
"""
188189

189190
viewport: BrowserViewport

‎src/kernel/types/browser_video_memory.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
__all__ = ["BrowserVideoMemory"]
66

7-
BrowserVideoMemory: TypeAlias = Literal["2GiB", "4GiB"]
7+
BrowserVideoMemory: TypeAlias = Literal["3GiB", "6GiB", "2GiB", "4GiB"]

0 commit comments

Comments
 (0)