Skip to content

Commit 6c1dc59

Browse files
feat: [CORE-1928][apps/api] Add PENDING as a valid session state
1 parent 6ff98d3 commit 6c1dc59

3 files changed

Lines changed: 5 additions & 5 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: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-921d3c61c7aa06269f74bee63cee993597944f913429caa2aa2e00dd51fab60f.yml
3-
openapi_spec_hash: d35b9613c41bf172fa2b28aceef10b39
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-592ec7680e78e2cb6f33a051cb82c208b93c174b7458186efb54fca8254312d1.yml
3+
openapi_spec_hash: 77b58db061531c44f27d9bd5fbff9e93
44
config_hash: cf04ecfb8dad5fbd8b85be25d6e9ec55

src/resources/sessions/sessions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export interface Session {
9999

100100
startedAt: string;
101101

102-
status: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED';
102+
status: 'PENDING' | 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED';
103103

104104
updatedAt: string;
105105

@@ -424,7 +424,7 @@ export interface SessionListParams {
424424
*/
425425
q?: string;
426426

427-
status?: 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED';
427+
status?: 'PENDING' | 'RUNNING' | 'ERROR' | 'TIMED_OUT' | 'COMPLETED';
428428
}
429429

430430
Sessions.Downloads = Downloads;

tests/api-resources/sessions/sessions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('resource sessions', () => {
126126
test('list: request options and params are passed correctly', async () => {
127127
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
128128
await expect(
129-
client.sessions.list({ q: 'q', status: 'RUNNING' }, { path: '/_stainless_unknown_path' }),
129+
client.sessions.list({ q: 'q', status: 'PENDING' }, { path: '/_stainless_unknown_path' }),
130130
).rejects.toThrow(Browserbase.NotFoundError);
131131
});
132132

0 commit comments

Comments
 (0)