Skip to content

Commit 58389ed

Browse files
feat(api): allow setting a name and tags on a pool-acquired browser session
1 parent 31cd51c commit 58389ed

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-9d489e3e43edfa64a754d4281241718e01c85d9a82ef3687df12bbd3c4ff5b42.yml
3-
openapi_spec_hash: a953cafb7f40ec8495dbd7df8bab8bad
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-662a9d6352d842f37e06e0197a61fe10850483302650713345d45780b3128343.yml
3+
openapi_spec_hash: e65977d16d95d48c75d02a1133131149
44
config_hash: bb7acce8576a50dd449b0c8f58ef0f1d

src/resources/browser-pools.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,21 @@ export interface BrowserPoolAcquireParams {
626626
* rate.
627627
*/
628628
acquire_timeout_seconds?: number;
629+
630+
/**
631+
* Optional human-readable name for the acquired browser session, used to find it
632+
* later in the dashboard. Must be unique among active sessions within the pool's
633+
* project. Applies to this lease only and is cleared when the browser is released
634+
* back to the pool.
635+
*/
636+
name?: string;
637+
638+
/**
639+
* Optional user-defined key-value tags for the acquired browser session, used to
640+
* find and group sessions later. Applies to this lease only and are cleared when
641+
* the browser is released back to the pool. Up to 50 pairs.
642+
*/
643+
tags?: BrowsersAPI.Tags;
629644
}
630645

631646
export interface BrowserPoolReleaseParams {

0 commit comments

Comments
 (0)