@@ -10,7 +10,7 @@ import * as errors from "../../../../errors/index.js";
10
10
11
11
export declare namespace Sessions {
12
12
export interface Options {
13
- environment : core . Supplier < environments . BrowserUseEnvironment | string > ;
13
+ environment ? : core . Supplier < environments . BrowserUseEnvironment | string > ;
14
14
/** Specify a custom URL to connect the client to. */
15
15
baseUrl ?: core . Supplier < string > ;
16
16
apiKey : core . Supplier < string > ;
@@ -83,7 +83,8 @@ export class Sessions {
83
83
const _response = await core . fetcher ( {
84
84
url : core . url . join (
85
85
( await core . Supplier . get ( this . _options . baseUrl ) ) ??
86
- ( await core . Supplier . get ( this . _options . environment ) ) ,
86
+ ( await core . Supplier . get ( this . _options . environment ) ) ??
87
+ environments . BrowserUseEnvironment . Production ,
87
88
"sessions" ,
88
89
) ,
89
90
method : "GET" ,
@@ -161,7 +162,8 @@ export class Sessions {
161
162
const _response = await core . fetcher ( {
162
163
url : core . url . join (
163
164
( await core . Supplier . get ( this . _options . baseUrl ) ) ??
164
- ( await core . Supplier . get ( this . _options . environment ) ) ,
165
+ ( await core . Supplier . get ( this . _options . environment ) ) ??
166
+ environments . BrowserUseEnvironment . Production ,
165
167
"sessions" ,
166
168
) ,
167
169
method : "POST" ,
@@ -244,7 +246,8 @@ export class Sessions {
244
246
const _response = await core . fetcher ( {
245
247
url : core . url . join (
246
248
( await core . Supplier . get ( this . _options . baseUrl ) ) ??
247
- ( await core . Supplier . get ( this . _options . environment ) ) ,
249
+ ( await core . Supplier . get ( this . _options . environment ) ) ??
250
+ environments . BrowserUseEnvironment . Production ,
248
251
`sessions/${ encodeURIComponent ( sessionId ) } ` ,
249
252
) ,
250
253
method : "GET" ,
@@ -320,7 +323,8 @@ export class Sessions {
320
323
const _response = await core . fetcher ( {
321
324
url : core . url . join (
322
325
( await core . Supplier . get ( this . _options . baseUrl ) ) ??
323
- ( await core . Supplier . get ( this . _options . environment ) ) ,
326
+ ( await core . Supplier . get ( this . _options . environment ) ) ??
327
+ environments . BrowserUseEnvironment . Production ,
324
328
`sessions/${ encodeURIComponent ( sessionId ) } ` ,
325
329
) ,
326
330
method : "DELETE" ,
@@ -401,7 +405,8 @@ export class Sessions {
401
405
const _response = await core . fetcher ( {
402
406
url : core . url . join (
403
407
( await core . Supplier . get ( this . _options . baseUrl ) ) ??
404
- ( await core . Supplier . get ( this . _options . environment ) ) ,
408
+ ( await core . Supplier . get ( this . _options . environment ) ) ??
409
+ environments . BrowserUseEnvironment . Production ,
405
410
`sessions/${ encodeURIComponent ( sessionId ) } ` ,
406
411
) ,
407
412
method : "PATCH" ,
@@ -484,7 +489,8 @@ export class Sessions {
484
489
const _response = await core . fetcher ( {
485
490
url : core . url . join (
486
491
( await core . Supplier . get ( this . _options . baseUrl ) ) ??
487
- ( await core . Supplier . get ( this . _options . environment ) ) ,
492
+ ( await core . Supplier . get ( this . _options . environment ) ) ??
493
+ environments . BrowserUseEnvironment . Production ,
488
494
`sessions/${ encodeURIComponent ( sessionId ) } /public-share` ,
489
495
) ,
490
496
method : "GET" ,
@@ -566,7 +572,8 @@ export class Sessions {
566
572
const _response = await core . fetcher ( {
567
573
url : core . url . join (
568
574
( await core . Supplier . get ( this . _options . baseUrl ) ) ??
569
- ( await core . Supplier . get ( this . _options . environment ) ) ,
575
+ ( await core . Supplier . get ( this . _options . environment ) ) ??
576
+ environments . BrowserUseEnvironment . Production ,
570
577
`sessions/${ encodeURIComponent ( sessionId ) } /public-share` ,
571
578
) ,
572
579
method : "POST" ,
@@ -648,7 +655,8 @@ export class Sessions {
648
655
const _response = await core . fetcher ( {
649
656
url : core . url . join (
650
657
( await core . Supplier . get ( this . _options . baseUrl ) ) ??
651
- ( await core . Supplier . get ( this . _options . environment ) ) ,
658
+ ( await core . Supplier . get ( this . _options . environment ) ) ??
659
+ environments . BrowserUseEnvironment . Production ,
652
660
`sessions/${ encodeURIComponent ( sessionId ) } /public-share` ,
653
661
) ,
654
662
method : "DELETE" ,
0 commit comments