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
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public sealed partial class FunctionsInvokeRequestSessionCreateParamsBrowserSett
public global::System.Collections.Generic.IList<global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsExtension>? Extensions { get; set; }

/// <summary>
/// An optional list of allowed domains for the session. If provided, navigation will be restricted to these domains.<br/>
/// An optional list of allowed domains for the session. If you pass one or more domains, Browserbase restricts top-level (main-frame) page navigations to the listed domains and their subdomains. For example, `example.com` also permits `www.example.com` and `a.b.example.com`, but not `notexample.com`. Matching is domain-based, not full-URL. An empty list (the default) disables the restriction entirely. Browserbase enforces only main-frame navigations; it does not block iframe/subframe loads or other in-page resource requests (images, scripts, XHR, etc.).<br/>
/// Default Value: []
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("allowedDomains")]
Expand Down Expand Up @@ -177,7 +177,7 @@ public sealed partial class FunctionsInvokeRequestSessionCreateParamsBrowserSett
/// Default Value: []
/// </param>
/// <param name="allowedDomains">
/// An optional list of allowed domains for the session. If provided, navigation will be restricted to these domains.<br/>
/// An optional list of allowed domains for the session. If you pass one or more domains, Browserbase restricts top-level (main-frame) page navigations to the listed domains and their subdomains. For example, `example.com` also permits `www.example.com` and `a.b.example.com`, but not `notexample.com`. Matching is domain-based, not full-URL. An empty list (the default) disables the restriction entirely. Browserbase enforces only main-frame navigations; it does not block iframe/subframe loads or other in-page resource requests (images, scripts, XHR, etc.).<br/>
/// Default Value: []
/// </param>
/// <param name="ignoreCertificateErrors">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ public sealed partial class SessionsCreateRequestBrowserSettings
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Browserbase.JsonConverters.SessionsCreateRequestBrowserSettingsOsJsonConverter))]
public global::Browserbase.SessionsCreateRequestBrowserSettingsOs? Os { get; set; }

/// <summary>
/// An optional list of allowed domains for the session. If you pass one or more domains, Browserbase restricts top-level (main-frame) page navigations to the listed domains and their subdomains. For example, `example.com` also permits `www.example.com` and `a.b.example.com`, but not `notexample.com`. Matching is domain-based, not full-URL. An empty list (the default) disables the restriction entirely. Browserbase enforces only main-frame navigations; it does not block iframe/subframe loads or other in-page resource requests (images, scripts, XHR, etc.).<br/>
/// Default Value: []
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("allowedDomains")]
public global::System.Collections.Generic.IList<string>? AllowedDomains { get; set; }

/// <summary>
/// Enable or disable ignoring of certificate errors in the browser. Defaults to `true`.
/// </summary>
Expand Down Expand Up @@ -128,6 +135,10 @@ public sealed partial class SessionsCreateRequestBrowserSettings
/// <param name="os">
/// Operating system for stealth mode. Valid values: windows, mac, linux, mobile, tablet
/// </param>
/// <param name="allowedDomains">
/// An optional list of allowed domains for the session. If you pass one or more domains, Browserbase restricts top-level (main-frame) page navigations to the listed domains and their subdomains. For example, `example.com` also permits `www.example.com` and `a.b.example.com`, but not `notexample.com`. Matching is domain-based, not full-URL. An empty list (the default) disables the restriction entirely. Browserbase enforces only main-frame navigations; it does not block iframe/subframe loads or other in-page resource requests (images, scripts, XHR, etc.).<br/>
/// Default Value: []
/// </param>
/// <param name="ignoreCertificateErrors">
/// Enable or disable ignoring of certificate errors in the browser. Defaults to `true`.
/// </param>
Expand All @@ -147,6 +158,7 @@ public SessionsCreateRequestBrowserSettings(
string? captchaImageSelector,
string? captchaInputSelector,
global::Browserbase.SessionsCreateRequestBrowserSettingsOs? os,
global::System.Collections.Generic.IList<string>? allowedDomains,
bool? ignoreCertificateErrors)
{
this.Context = context;
Expand All @@ -161,6 +173,7 @@ public SessionsCreateRequestBrowserSettings(
this.CaptchaImageSelector = captchaImageSelector;
this.CaptchaInputSelector = captchaInputSelector;
this.Os = os;
this.AllowedDomains = allowedDomains;
this.IgnoreCertificateErrors = ignoreCertificateErrors;
}

Expand Down
Loading