Skip to content

Commit 4164908

Browse files
feat(api): update via SDK Studio
1 parent b07afdd commit 4164908

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-39aa058a60035c34a636e7f580b4b9c76b05400ae401ef04a761572b20a5425b.yml
3-
openapi_spec_hash: bb79a204f9edb6b6ccfe783a0a82a423
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-2813f659cb4e9e81cd3d9c94df748fd6c54f966fd6fd4881da369394aa981ace.yml
3+
openapi_spec_hash: facb760f50156c700b5c016087a70d64
44
config_hash: 3eb1ed1dd0067258984b31d53a0dab48

src/resources/browsers.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@ export interface BrowserCreateResponse {
5050
* Unique identifier for the browser session
5151
*/
5252
session_id: string;
53+
54+
/**
55+
* Optional persistence configuration for the browser session.
56+
*/
57+
persistence?: BrowserCreateResponse.Persistence;
58+
}
59+
60+
export namespace BrowserCreateResponse {
61+
/**
62+
* Optional persistence configuration for the browser session.
63+
*/
64+
export interface Persistence {
65+
/**
66+
* Unique identifier for the persistent browser session.
67+
*/
68+
id: string;
69+
}
5370
}
5471

5572
export interface BrowserRetrieveResponse {
@@ -67,13 +84,47 @@ export interface BrowserRetrieveResponse {
6784
* Unique identifier for the browser session
6885
*/
6986
session_id: string;
87+
88+
/**
89+
* Optional persistence configuration for the browser session.
90+
*/
91+
persistence?: BrowserRetrieveResponse.Persistence;
92+
}
93+
94+
export namespace BrowserRetrieveResponse {
95+
/**
96+
* Optional persistence configuration for the browser session.
97+
*/
98+
export interface Persistence {
99+
/**
100+
* Unique identifier for the persistent browser session.
101+
*/
102+
id: string;
103+
}
70104
}
71105

72106
export interface BrowserCreateParams {
73107
/**
74108
* action invocation ID
75109
*/
76110
invocation_id: string;
111+
112+
/**
113+
* Optional persistence configuration for the browser session.
114+
*/
115+
persistence?: BrowserCreateParams.Persistence;
116+
}
117+
118+
export namespace BrowserCreateParams {
119+
/**
120+
* Optional persistence configuration for the browser session.
121+
*/
122+
export interface Persistence {
123+
/**
124+
* Unique identifier for the persistent browser session.
125+
*/
126+
id: string;
127+
}
77128
}
78129

79130
export declare namespace Browsers {

tests/api-resources/browsers.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ describe('resource browsers', () => {
2222

2323
// skipped: tests are disabled for the time being
2424
test.skip('create: required and optional params', async () => {
25-
const response = await client.browsers.create({ invocation_id: 'ckqwer3o20000jb9s7abcdef' });
25+
const response = await client.browsers.create({
26+
invocation_id: 'ckqwer3o20000jb9s7abcdef',
27+
persistence: { id: 'my-shared-browser' },
28+
});
2629
});
2730

2831
// skipped: tests are disabled for the time being

0 commit comments

Comments
 (0)