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

## [0.141.0](https://github.com/kernel/kernel-node-sdk/compare/v0.140.0...v0.141.0) (2026-11-05)


### Features

* Add customer-managed VGS vault card payments ([0caa5b0](https://github.com/kernel/kernel-node-sdk/commit/0caa5b0c57b0c4c278f138b41f1504074972f802))
* Move GPU browsers to L40S-3Q and 6Q vGPU profiles ([83e0781](https://github.com/kernel/kernel-node-sdk/commit/83e0781aa667b0cd238acc19b52aa99ce5fed328))
* Remove SerpApi and Valyu search providers ([80829c7](https://github.com/kernel/kernel-node-sdk/commit/80829c75c62f1c0002e349a3501e3ca866b299f6))
* Return access_token_rejected code when Link rejects a customer-supplied token ([d8c7df1](https://github.com/kernel/kernel-node-sdk/commit/d8c7df1730838dd4bcdf48b50eda833a77513951))


### Bug Fixes

* generate VGS card aliases in the TypeScript SDK ([f59f588](https://github.com/kernel/kernel-node-sdk/commit/f59f588595cba39391dbf91db44002cf6547bcbb))

## [0.140.0](https://github.com/kernel/kernel-node-sdk/compare/v0.139.0...v0.140.0) (2026-11-04)


Expand Down
5 changes: 5 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,11 @@ Types:
- <code><a href="./src/resources/vaults/items.ts">VaultItemOperationResponse</a></code>
- <code><a href="./src/resources/vaults/items.ts">VaultPaymentMethod</a></code>
- <code><a href="./src/resources/vaults/items.ts">VaultWebmcpBinding</a></code>
- <code><a href="./src/resources/vaults/items.ts">VgsCardInput</a></code>
- <code><a href="./src/resources/vaults/items.ts">VgsCardState</a></code>
- <code><a href="./src/resources/vaults/items.ts">VgsCardVaultItemSpec</a></code>
- <code><a href="./src/resources/vaults/items.ts">VgsWalletState</a></code>
- <code><a href="./src/resources/vaults/items.ts">VgsWalletVaultItemSpec</a></code>
- <code><a href="./src/resources/vaults/items.ts">WalletVaultItemSpec</a></code>
- <code><a href="./src/resources/vaults/items.ts">WalletVaultItemState</a></code>
- <code><a href="./src/resources/vaults/items.ts">WebmcpInvokeVaultItemOperationRequest</a></code>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onkernel/sdk",
"version": "0.140.0",
"version": "0.141.0",
"description": "The official TypeScript library for the Kernel API",
"author": "Kernel <>",
"types": "dist/index.d.ts",
Expand Down
11 changes: 6 additions & 5 deletions src/resources/browsers/browsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,11 @@ export interface BrowserUsage {
}

/**
* Video memory (VRAM) of a GPU browser session. 2GiB sessions have 4 vCPU and 6GiB
* memory. 4GiB sessions have 8 vCPU and 12GiB memory.
* Video memory (VRAM) of a GPU browser session. 3GiB sessions have 4 vCPU and 6GiB
* memory. 6GiB sessions have 8 vCPU and 12GiB memory. 2GiB and 4GiB are deprecated
* aliases for 3GiB and 6GiB: they are accepted on create and never returned.
*/
export type BrowserVideoMemory = '2GiB' | '4GiB';
export type BrowserVideoMemory = '3GiB' | '6GiB' | '2GiB' | '4GiB';

/**
* Browser profile metadata.
Expand Down Expand Up @@ -1827,8 +1828,8 @@ export interface BrowserCreateParams {

/**
* Video memory (VRAM) for a GPU browser session. Requires gpu=true. Defaults to
* 2GiB, which comes with 4 vCPU and 6GiB memory. 4GiB comes with 8 vCPU and 12GiB
* memory.
* 3GiB, which comes with 4 vCPU and 6GiB memory. 6GiB comes with 8 vCPU and 12GiB
* memory. 2GiB and 4GiB are deprecated aliases for 3GiB and 6GiB.
*/
video_memory?: BrowserVideoMemory;

Expand Down
12 changes: 1 addition & 11 deletions src/resources/search/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,7 @@ export interface ProviderListParams {
* Optional concrete provider slug filter. Omit to list every provider. A slug that
* is not listed returns an empty array.
*/
slug?:
| 'brave'
| 'exa'
| 'perplexity'
| 'context'
| 'parallel'
| 'valyu'
| 'octen'
| 'you'
| 'tavily'
| 'serpapi';
slug?: 'brave' | 'exa' | 'perplexity' | 'context' | 'parallel' | 'octen' | 'you' | 'tavily';
}

export declare namespace Providers {
Expand Down
157 changes: 1 addition & 156 deletions src/resources/search/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,9 @@ export type ProviderTarget =
| ProviderTarget.SearchPerplexityTarget
| ProviderTarget.SearchContextTarget
| ProviderTarget.SearchParallelTarget
| ProviderTarget.SearchValyuTarget
| ProviderTarget.SearchOctenTarget
| ProviderTarget.SearchYouTarget
| ProviderTarget.SearchTavilyTarget
| ProviderTarget.SearchSerpAPITarget;
| ProviderTarget.SearchTavilyTarget;

export namespace ProviderTarget {
export interface SearchBraveTarget {
Expand Down Expand Up @@ -464,78 +462,6 @@ export namespace ProviderTarget {
}
}

export interface SearchValyuTarget {
provider: 'valyu';

options?: SearchValyuTarget.Options;
}

export namespace SearchValyuTarget {
export interface Options {
/**
* Trade depth for latency.
*/
fast_mode?: boolean;

/**
* Allow historical cached results.
*/
historical_cache?: boolean;

/**
* Include abstracts for academic sources.
*/
include_abstracts?: boolean;

/**
* Natural-language retrieval guidance.
*/
instructions?: string;

/**
* Mark the search as an agent tool call.
*/
is_tool_call?: boolean;

/**
* Provider-native count. Lower-only alias for max_results.
*/
max_num_results?: number;

/**
* Provider-native USD-per-thousand-results price ceiling. Forwarded to Valyu.
*/
max_price?: number;

/**
* Provider-native minimum relevance threshold. Not a normalized cross-provider
* score.
*/
relevance_threshold?: number;

/**
* Provider result-content length preset.
*/
response_length?: 'short' | 'medium' | 'large' | 'max';

/**
* Corpus selector, including all, web, proprietary, and news. Provider corpus
* choice may change billing; Kernel does not force web-only searches.
*/
search_type?: string;

/**
* Bias retrieval toward these sources.
*/
source_biases?: Array<string>;

/**
* Return URLs without content.
*/
url_only?: boolean;
}
}

export interface SearchOctenTarget {
provider: 'octen';

Expand Down Expand Up @@ -747,87 +673,6 @@ export namespace ProviderTarget {
topic?: 'general' | 'news' | 'finance';
}
}

export interface SearchSerpAPITarget {
provider: 'serpapi';

options?: SearchSerpAPITarget.Options;
}

export namespace SearchSerpAPITarget {
export interface Options {
/**
* SerpApi engine identifier. The Kernel integration currently supports google
* only.
*/
engine: string;

/**
* Device profile used for the search.
*/
device?: 'desktop' | 'mobile' | 'tablet';

/**
* Google duplicate-content filter.
*/
filter?: 0 | 1;

/**
* Two-letter Google country code.
*/
gl?: string;

/**
* Google domain to search when using the google engine.
*/
google_domain?: string;

/**
* Interface language code.
*/
hl?: string;

/**
* Free-form geographic location used for localized results.
*/
location?: string;

/**
* Google auto-correction filter.
*/
nfpr?: 0 | 1;

/**
* When true, bypass SerpApi cached results when supported.
*/
no_cache?: boolean;

/**
* Number of results requested from the search engine.
*/
num?: number;

/**
* Safe-search setting for engines that support it.
*/
safe?: 'active' | 'off';

/**
* Zero-based result offset for pagination.
*/
start?: number;

/**
* Google vertical search selector, such as images, video, news, or shopping.
*/
tbm?: string;

/**
* Google time and search modifiers, including freshness filters.
*/
tbs?: string;
}
}
}

export interface Request {
Expand Down
78 changes: 76 additions & 2 deletions src/resources/vault-provider-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export type VaultProviderConfigsOffsetPagination = OffsetPagination<VaultProvide
*/
export type VaultProviderConfig =
| VaultProviderConfig.VaultLinkProviderConfig
| VaultProviderConfig.VaultAgentCardProviderConfig;
| VaultProviderConfig.VaultAgentCardProviderConfig
| VaultProviderConfig.VaultVgsProviderConfig;

export namespace VaultProviderConfig {
/**
Expand Down Expand Up @@ -175,11 +176,47 @@ export namespace VaultProviderConfig {

updated_at: string;
}

/**
* Response schema for a customer-managed VGS vault configuration, without the
* client secret. Kernel generates the ID and timestamps. Configuration creation
* uses VaultVgsProviderConfigRequest.
*/
export interface VaultVgsProviderConfig {
id: string;

/**
* Service account identity; immutable. The client secret is never returned.
*/
client_id: string;

created_at: string;

/**
* The vault's VGS environment; immutable.
*/
environment: 'sandbox' | 'live';

/**
* Unique within the organization.
*/
name: string;

provider: 'vgs';

updated_at: string;

/**
* The customer's VGS vault ID; immutable.
*/
vault_id: string;
}
}

export type VaultProviderConfigCreateParams =
| VaultProviderConfigCreateParams.VaultLinkProviderConfigRequest
| VaultProviderConfigCreateParams.VaultAgentCardProviderConfigRequest;
| VaultProviderConfigCreateParams.VaultAgentCardProviderConfigRequest
| VaultProviderConfigCreateParams.VaultVgsProviderConfigRequest;

export declare namespace VaultProviderConfigCreateParams {
export interface VaultLinkProviderConfigRequest {
Expand Down Expand Up @@ -227,6 +264,43 @@ export declare namespace VaultProviderConfigCreateParams {
client_secret: string;
}
}

export interface VaultVgsProviderConfigRequest {
/**
* A VGS service account with the aliases:read scope on the customer's vault, which
* Kernel uses to reveal the aliases each purchase sends.
*/
credentials: VaultVgsProviderConfigRequest.Credentials;

/**
* Unique within the organization.
*/
name: string;

provider: 'vgs';
}

export namespace VaultVgsProviderConfigRequest {
/**
* A VGS service account with the aliases:read scope on the customer's vault, which
* Kernel uses to reveal the aliases each purchase sends.
*/
export interface Credentials {
client_id: string;

client_secret: string;

/**
* The vault's VGS environment.
*/
environment: 'sandbox' | 'live';

/**
* The customer's VGS vault ID.
*/
vault_id: string;
}
}
}

export interface VaultProviderConfigUpdateParams {
Expand Down
5 changes: 5 additions & 0 deletions src/resources/vaults/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ export {
type VaultItemOperationResponse,
type VaultPaymentMethod,
type VaultWebmcpBinding,
type VgsCardInput,
type VgsCardState,
type VgsCardVaultItemSpec,
type VgsWalletState,
type VgsWalletVaultItemSpec,
type WalletVaultItemSpec,
type WalletVaultItemState,
type WebmcpInvokeVaultItemOperationRequest,
Expand Down
Loading
Loading