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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-f1ba1f2c1512973c1640f7e2d27c72c4f5c49ec07e70b026d52818e7f8b1468e.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-6a5cbe2f816042d594335d77f9600cd47cdb9c21d9d60971a2eca87983061c72.yml
20 changes: 14 additions & 6 deletions src/resources/sessions/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ export interface Session {
memoryUsage?: number;

/**
* Arbitrary user metadata to attach to the session.
* Arbitrary user metadata to attach to the session. To learn more about user
* metadata, see [User Metadata](/features/sessions#user-metadata).
*/
userMetadata?: unknown;
userMetadata?: Record<string, unknown>;
}

export interface SessionLiveURLs {
Expand Down Expand Up @@ -210,9 +211,10 @@ export interface SessionCreateResponse {
memoryUsage?: number;

/**
* Arbitrary user metadata to attach to the session.
* Arbitrary user metadata to attach to the session. To learn more about user
* metadata, see [User Metadata](/features/sessions#user-metadata).
*/
userMetadata?: unknown;
userMetadata?: Record<string, unknown>;
}

export type SessionListResponse = Array<Session>;
Expand Down Expand Up @@ -258,9 +260,10 @@ export interface SessionCreateParams {
timeout?: number;

/**
* Arbitrary user metadata to attach to the session.
* Arbitrary user metadata to attach to the session. To learn more about user
* metadata, see [User Metadata](/features/sessions#user-metadata).
*/
userMetadata?: unknown;
userMetadata?: Record<string, unknown>;
}

export namespace SessionCreateParams {
Expand Down Expand Up @@ -450,6 +453,11 @@ export interface SessionUpdateParams {
}

export interface SessionListParams {
/**
* Query sessions by user metadata. See
* [Querying Sessions by User Metadata](/features/sessions#querying-sessions-by-user-metadata)
* for the schema of this query.
*/
q?: string;

status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED';
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/sessions/sessions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('resource sessions', () => {
proxies: true,
region: 'us-west-2',
timeout: 60,
userMetadata: {},
userMetadata: { foo: 'bar' },
});
});

Expand Down