@@ -10,7 +10,7 @@ import * as errors from "../../../../errors/index.js";
1010
1111export declare namespace Sessions {
1212 export interface Options {
13- environment : core . Supplier < environments . BrowserUseEnvironment | string > ;
13+ environment ? : core . Supplier < environments . BrowserUseEnvironment | string > ;
1414 /** Specify a custom URL to connect the client to. */
1515 baseUrl ?: core . Supplier < string > ;
1616 apiKey : core . Supplier < string > ;
@@ -83,7 +83,8 @@ export class Sessions {
8383 const _response = await core . fetcher ( {
8484 url : core . url . join (
8585 ( 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 ,
8788 "sessions" ,
8889 ) ,
8990 method : "GET" ,
@@ -161,7 +162,8 @@ export class Sessions {
161162 const _response = await core . fetcher ( {
162163 url : core . url . join (
163164 ( 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 ,
165167 "sessions" ,
166168 ) ,
167169 method : "POST" ,
@@ -244,7 +246,8 @@ export class Sessions {
244246 const _response = await core . fetcher ( {
245247 url : core . url . join (
246248 ( 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 ,
248251 `sessions/${ encodeURIComponent ( sessionId ) } ` ,
249252 ) ,
250253 method : "GET" ,
@@ -320,7 +323,8 @@ export class Sessions {
320323 const _response = await core . fetcher ( {
321324 url : core . url . join (
322325 ( 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 ,
324328 `sessions/${ encodeURIComponent ( sessionId ) } ` ,
325329 ) ,
326330 method : "DELETE" ,
@@ -401,7 +405,8 @@ export class Sessions {
401405 const _response = await core . fetcher ( {
402406 url : core . url . join (
403407 ( 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 ,
405410 `sessions/${ encodeURIComponent ( sessionId ) } ` ,
406411 ) ,
407412 method : "PATCH" ,
@@ -484,7 +489,8 @@ export class Sessions {
484489 const _response = await core . fetcher ( {
485490 url : core . url . join (
486491 ( 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 ,
488494 `sessions/${ encodeURIComponent ( sessionId ) } /public-share` ,
489495 ) ,
490496 method : "GET" ,
@@ -566,7 +572,8 @@ export class Sessions {
566572 const _response = await core . fetcher ( {
567573 url : core . url . join (
568574 ( 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 ,
570577 `sessions/${ encodeURIComponent ( sessionId ) } /public-share` ,
571578 ) ,
572579 method : "POST" ,
@@ -648,7 +655,8 @@ export class Sessions {
648655 const _response = await core . fetcher ( {
649656 url : core . url . join (
650657 ( 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 ,
652660 `sessions/${ encodeURIComponent ( sessionId ) } /public-share` ,
653661 ) ,
654662 method : "DELETE" ,
0 commit comments