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 @@ -417,7 +417,7 @@ partial void ProcessSessionsCreateResponseContent(
/// Default Value: us-west-2
/// </param>
/// <param name="userMetadata">
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/platform/browser/core-features/session-metadata).
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/features/sessions#user-metadata).
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public partial interface IBrowserbaseClient
/// Default Value: us-west-2
/// </param>
/// <param name="userMetadata">
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/platform/browser/core-features/session-metadata).
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/features/sessions#user-metadata).
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#nullable enable

namespace Browserbase
{
public partial interface IBrowserbaseClient
{
/// <summary>
/// Session Recording
/// </summary>
/// <param name="id"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Browserbase.ApiException"></exception>
global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::Browserbase.SessionRecording>> SessionsGetRecordingAsync(
string id,
global::Browserbase.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace Browserbase
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionLog))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionLogRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionLogResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionReplay))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionRecording))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.ContextsCreateRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.ExtensionsUploadRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))]
Expand Down Expand Up @@ -208,7 +208,7 @@ namespace Browserbase
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.AllOf<global::Browserbase.Session, global::Browserbase.SessionsGetResponse2>), TypeInfoPropertyName = "AllOfSessionSessionsGetResponse22")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsGetResponse2))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Browserbase.SessionLog>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Browserbase.SessionReplay>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Browserbase.SessionRecording>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsUploadFileResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Browserbase.AllOf<global::Browserbase.Function, global::Browserbase.FunctionBuildBuiltFunction>>))]
Expand All @@ -228,7 +228,7 @@ namespace Browserbase
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Browserbase.SearchWebResponseResult>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Browserbase.Session>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Browserbase.SessionLog>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Browserbase.SessionReplay>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Browserbase.SessionRecording>))]
public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Browserbase.SessionReplay? Type43 { get; set; }
public global::Browserbase.SessionRecording? Type43 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -476,7 +476,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.SessionReplay>? Type112 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.SessionRecording>? Type112 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -557,6 +557,6 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.List<global::Browserbase.SessionReplay>? ListType18 { get; set; }
public global::System.Collections.Generic.List<global::Browserbase.SessionRecording>? ListType18 { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed partial class FunctionBuildsGetLogsResponse
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("total")]
[global::System.Text.Json.Serialization.JsonRequired]
public required double Total { get; set; }
public required int Total { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -38,7 +38,7 @@ public sealed partial class FunctionBuildsGetLogsResponse
#endif
public FunctionBuildsGetLogsResponse(
global::System.Collections.Generic.IList<global::Browserbase.FunctionBuildLog> logs,
double total)
int total)
{
this.Logs = logs ?? throw new global::System.ArgumentNullException(nameof(logs));
this.Total = total;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ public sealed partial class FunctionsInvokeRequestSessionCreateParams
[global::System.Text.Json.Serialization.JsonPropertyName("browserSettings")]
public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettings? BrowserSettings { get; set; }

/// <summary>
/// Duration in seconds after which the session will automatically end. Defaults to the Project's `defaultTimeout`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("timeout")]
public int? Timeout { get; set; }

/// <summary>
/// Proxy configuration. Can be true for default proxy, or an array of proxy configurations.
/// </summary>
Expand All @@ -40,11 +34,18 @@ public sealed partial class FunctionsInvokeRequestSessionCreateParams
public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsProxySettings? ProxySettings { get; set; }

/// <summary>
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/platform/browser/core-features/session-metadata).
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/features/sessions#user-metadata).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("userMetadata")]
public object? UserMetadata { get; set; }

/// <summary>
/// Duration in seconds after which the function invocation will automatically end. Defaults to 900 (15 minutes).<br/>
/// Default Value: 900
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("timeout")]
public int? Timeout { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -58,35 +59,36 @@ public sealed partial class FunctionsInvokeRequestSessionCreateParams
/// The uploaded Extension ID. See [Upload Extension](/reference/api/upload-an-extension).
/// </param>
/// <param name="browserSettings"></param>
/// <param name="timeout">
/// Duration in seconds after which the session will automatically end. Defaults to the Project's `defaultTimeout`.
/// </param>
/// <param name="proxies">
/// Proxy configuration. Can be true for default proxy, or an array of proxy configurations.
/// </param>
/// <param name="proxySettings">
/// [NOT IN DOCS] Supplementary proxy settings. Optional.
/// </param>
/// <param name="userMetadata">
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/platform/browser/core-features/session-metadata).
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/features/sessions#user-metadata).
/// </param>
/// <param name="timeout">
/// Duration in seconds after which the function invocation will automatically end. Defaults to 900 (15 minutes).<br/>
/// Default Value: 900
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public FunctionsInvokeRequestSessionCreateParams(
string? extensionId,
global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettings? browserSettings,
int? timeout,
global::Browserbase.AnyOf<global::System.Collections.Generic.IList<global::Browserbase.AnyOf<global::Browserbase.BrowserbaseProxyConfig, global::Browserbase.ExternalProxyConfig, global::Browserbase.NoneProxyConfig>>, bool?>? proxies,
global::Browserbase.FunctionsInvokeRequestSessionCreateParamsProxySettings? proxySettings,
object? userMetadata)
object? userMetadata,
int? timeout)
{
this.ExtensionId = extensionId;
this.BrowserSettings = browserSettings;
this.Timeout = timeout;
this.Proxies = proxies;
this.ProxySettings = proxySettings;
this.UserMetadata = userMetadata;
this.Timeout = timeout;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ public sealed partial class FunctionsInvokeRequestSessionCreateParamsBrowserSett
[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>
[global::System.Text.Json.Serialization.JsonPropertyName("ignoreCertificateErrors")]
public bool? IgnoreCertificateErrors { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -174,6 +180,9 @@ public sealed partial class FunctionsInvokeRequestSessionCreateParamsBrowserSett
/// An optional list of allowed domains for the session. If provided, navigation will be restricted to these domains.<br/>
/// Default Value: []
/// </param>
/// <param name="ignoreCertificateErrors">
/// Enable or disable ignoring of certificate errors in the browser. Defaults to `true`.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -194,7 +203,8 @@ public FunctionsInvokeRequestSessionCreateParamsBrowserSettings(
bool? enableNativeSelectPolyfill,
bool? enablePdfViewer,
global::System.Collections.Generic.IList<global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsExtension>? extensions,
global::System.Collections.Generic.IList<string>? allowedDomains)
global::System.Collections.Generic.IList<string>? allowedDomains,
bool? ignoreCertificateErrors)
{
this.Context = context;
this.ExtensionId = extensionId;
Expand All @@ -213,6 +223,7 @@ public FunctionsInvokeRequestSessionCreateParamsBrowserSettings(
this.EnablePdfViewer = enablePdfViewer;
this.Extensions = extensions;
this.AllowedDomains = allowedDomains;
this.IgnoreCertificateErrors = ignoreCertificateErrors;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Browserbase
{
/// <summary>
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/platform/browser/core-features/session-metadata).
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/features/sessions#user-metadata).
/// </summary>
public sealed partial class FunctionsInvokeRequestSessionCreateParamsUserMetadata
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed partial class InvocationsGetLogsResponse
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("total")]
[global::System.Text.Json.Serialization.JsonRequired]
public required double Total { get; set; }
public required int Total { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -38,7 +38,7 @@ public sealed partial class InvocationsGetLogsResponse
#endif
public InvocationsGetLogsResponse(
global::System.Collections.Generic.IList<global::Browserbase.InvocationLog> logs,
double total)
int total)
{
this.Logs = logs ?? throw new global::System.ArgumentNullException(nameof(logs));
this.Total = total;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public sealed partial class Session
public required global::Browserbase.SessionRegion Region { get; set; }

/// <summary>
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/platform/browser/core-features/session-metadata).
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/features/sessions#user-metadata).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("userMetadata")]
public object? UserMetadata { get; set; }
Expand Down Expand Up @@ -130,7 +130,7 @@ public sealed partial class Session
/// Optional. The Context linked to the Session.
/// </param>
/// <param name="userMetadata">
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/platform/browser/core-features/session-metadata).
/// Arbitrary user metadata to attach to the session. To learn more about user metadata, see [User Metadata](/features/sessions#user-metadata).
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Loading