Skip to content

Commit 10ab182

Browse files
feat: Add start_url to browser session updates
Stainless-Generated-From: 59b07331e3bf5513100765ecff61bb79536e7b55
1 parent 92a7d13 commit 10ab182

4 files changed

Lines changed: 33 additions & 12 deletions

File tree

src/resources/browser-pools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ export interface BrowserPoolAcquireResponse {
477477
proxy_id?: string;
478478

479479
/**
480-
* URL the session was asked to navigate to on creation, if any. Recorded for
480+
* URL the session was most recently asked to navigate to, if any. Recorded for
481481
* debugging. Navigation is fire-and-forget — the URL is dispatched to the browser
482482
* without waiting for it to load, and any errors (DNS failure, bad status,
483483
* timeout) are silently dropped. Captures what was requested, not what the browser

src/resources/browsers/browsers.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ export interface BrowserCreateResponse {
607607
proxy_id?: string;
608608

609609
/**
610-
* URL the session was asked to navigate to on creation, if any. Recorded for
610+
* URL the session was most recently asked to navigate to, if any. Recorded for
611611
* debugging. Navigation is fire-and-forget — the URL is dispatched to the browser
612612
* without waiting for it to load, and any errors (DNS failure, bad status,
613613
* timeout) are silently dropped. Captures what was requested, not what the browser
@@ -778,7 +778,7 @@ export interface BrowserRetrieveResponse {
778778
proxy_id?: string;
779779

780780
/**
781-
* URL the session was asked to navigate to on creation, if any. Recorded for
781+
* URL the session was most recently asked to navigate to, if any. Recorded for
782782
* debugging. Navigation is fire-and-forget — the URL is dispatched to the browser
783783
* without waiting for it to load, and any errors (DNS failure, bad status,
784784
* timeout) are silently dropped. Captures what was requested, not what the browser
@@ -949,7 +949,7 @@ export interface BrowserUpdateResponse {
949949
proxy_id?: string;
950950

951951
/**
952-
* URL the session was asked to navigate to on creation, if any. Recorded for
952+
* URL the session was most recently asked to navigate to, if any. Recorded for
953953
* debugging. Navigation is fire-and-forget — the URL is dispatched to the browser
954954
* without waiting for it to load, and any errors (DNS failure, bad status,
955955
* timeout) are silently dropped. Captures what was requested, not what the browser
@@ -1120,7 +1120,7 @@ export interface BrowserListResponse {
11201120
proxy_id?: string;
11211121

11221122
/**
1123-
* URL the session was asked to navigate to on creation, if any. Recorded for
1123+
* URL the session was most recently asked to navigate to, if any. Recorded for
11241124
* debugging. Navigation is fire-and-forget — the URL is dispatched to the browser
11251125
* without waiting for it to load, and any errors (DNS failure, bad status,
11261126
* timeout) are silently dropped. Captures what was requested, not what the browser
@@ -1482,6 +1482,14 @@ export interface BrowserUpdateParams {
14821482
*/
14831483
proxy_id?: string | null;
14841484

1485+
/**
1486+
* Optional URL to navigate the browser to after applying this update. When a
1487+
* profile is loaded in the same update, this overrides the profile's restored
1488+
* tabs. Navigation is best-effort, so failures do not fail the update. Omit or set
1489+
* to an empty string to leave the current page unchanged.
1490+
*/
1491+
start_url?: string;
1492+
14851493
/**
14861494
* User-defined key-value tags for the browser session. Omit to leave unchanged.
14871495
* Provide a map to replace the entire tag set (full replace, not a merge). Set to

src/resources/invocations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ export namespace InvocationListBrowsersResponse {
566566
proxy_id?: string;
567567

568568
/**
569-
* URL the session was asked to navigate to on creation, if any. Recorded for
569+
* URL the session was most recently asked to navigate to, if any. Recorded for
570570
* debugging. Navigation is fire-and-forget — the URL is dispatched to the browser
571571
* without waiting for it to load, and any errors (DNS failure, bad status,
572572
* timeout) are silently dropped. Captures what was requested, not what the browser

src/resources/vaults/items.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,17 @@ export namespace CardVaultItemSpec {
433433
}
434434
}
435435

436+
/**
437+
* Issued Link cards retain encrypted card material for the fill operation. Link
438+
* cards do not expose aliases or support egress substitution.
439+
*/
436440
export type CardVaultItemState = CardVaultItemState.LinkCardState | CardVaultItemState.AgentCardCardState;
437441

438442
export namespace CardVaultItemState {
443+
/**
444+
* Issued Link cards retain encrypted card material for the fill operation. Link
445+
* cards do not expose aliases or support egress substitution.
446+
*/
439447
export interface LinkCardState {
440448
provider: 'link';
441449

@@ -455,8 +463,6 @@ export namespace CardVaultItemState {
455463
| 'declined'
456464
| 'recovery_required';
457465

458-
aliases?: ItemsAPI.VaultCardAliases;
459-
460466
domains?: Array<string>;
461467

462468
masks?: LinkCardState.Masks;
@@ -895,10 +901,9 @@ export interface CredentialVaultItemUpdateRequest {
895901
*
896902
* Fill in request order and stop on the first failure. This operation is not
897903
* atomic: previously filled fields are not rolled back. Never submit the form or
898-
* click buttons, though input/change events may trigger site behavior. Fill is the
899-
* preferred browser-checkout path. Aliases remain an alternative for explicitly
900-
* chosen egress-substitution integrations. Do not automatically retry or fall back
901-
* to aliases after a failed or indeterminate operation.
904+
* click buttons, though input/change events may trigger site behavior. Link cards
905+
* use fill for browser checkout and do not expose aliases or support egress
906+
* substitution. Do not automatically retry a failed or indeterminate operation.
902907
*
903908
* Secret values are never returned or included in operation logs, traces, audit
904909
* events, or error details. This does not prevent an agent with unrestricted
@@ -1203,6 +1208,10 @@ export namespace VaultItem {
12031208
*/
12041209
spec: ItemsAPI.CardVaultItemSpec;
12051210

1211+
/**
1212+
* Issued Link cards retain encrypted card material for the fill operation. Link
1213+
* cards do not expose aliases or support egress substitution.
1214+
*/
12061215
state: ItemsAPI.CardVaultItemState;
12071216

12081217
type: 'card';
@@ -1397,6 +1406,10 @@ export namespace VaultItemOperationResponse {
13971406
*/
13981407
spec: ItemsAPI.CardVaultItemSpec;
13991408

1409+
/**
1410+
* Issued Link cards retain encrypted card material for the fill operation. Link
1411+
* cards do not expose aliases or support egress substitution.
1412+
*/
14001413
state: ItemsAPI.CardVaultItemState;
14011414

14021415
type: 'card';

0 commit comments

Comments
 (0)