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 @@ -522,24 +522,61 @@ partial void ProcessFetchCreateResponseContent(
h => h.Key,
h => h.Value));
}
// The fetch service is temporarily unavailable.
if ((int)__response.StatusCode == 503)
{
string? __content_503 = null;
global::System.Exception? __exception_503 = null;
global::Browserbase.FetchCreateResponse7? __value_503 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_503 = global::Browserbase.FetchCreateResponse7.FromJson(__content_503, JsonSerializerContext);
}
else
{
__content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_503 = global::Browserbase.FetchCreateResponse7.FromJson(__content_503, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
{
__exception_503 = __ex;
}


throw global::Browserbase.ApiException<global::Browserbase.FetchCreateResponse7>.Create(
statusCode: __response.StatusCode,
message: __content_503 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_503,
responseBody: __content_503,
responseObject: __value_503,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}
// The fetch request timed out.
if ((int)__response.StatusCode == 504)
{
string? __content_504 = null;
global::System.Exception? __exception_504 = null;
global::Browserbase.FetchCreateResponse7? __value_504 = null;
global::Browserbase.FetchCreateResponse8? __value_504 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_504 = global::Browserbase.FetchCreateResponse7.FromJson(__content_504, JsonSerializerContext);
__value_504 = global::Browserbase.FetchCreateResponse8.FromJson(__content_504, JsonSerializerContext);
}
else
{
__content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_504 = global::Browserbase.FetchCreateResponse7.FromJson(__content_504, JsonSerializerContext);
__value_504 = global::Browserbase.FetchCreateResponse8.FromJson(__content_504, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand All @@ -548,7 +585,7 @@ partial void ProcessFetchCreateResponseContent(
}


throw global::Browserbase.ApiException<global::Browserbase.FetchCreateResponse7>.Create(
throw global::Browserbase.ApiException<global::Browserbase.FetchCreateResponse8>.Create(
statusCode: __response.StatusCode,
message: __content_504 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_504,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ namespace Browserbase
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateResponse5))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateResponse6))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateResponse7))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateResponse8))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FunctionsListResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Browserbase.Function>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FunctionBuildsListResponse))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,123 +420,127 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Browserbase.FunctionsListResponse? Type98 { get; set; }
public global::Browserbase.FetchCreateResponse8? Type98 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.Function>? Type99 { get; set; }
public global::Browserbase.FunctionsListResponse? Type99 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.FunctionBuildsListResponse? Type100 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.Function>? Type100 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.FunctionBuild>? Type101 { get; set; }
public global::Browserbase.FunctionBuildsListResponse? Type101 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.FunctionBuildsGetLogsResponse? Type102 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.FunctionBuild>? Type102 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.FunctionBuildLog>? Type103 { get; set; }
public global::Browserbase.FunctionBuildsGetLogsResponse? Type103 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.AllOf<global::Browserbase.Invocation, global::Browserbase.InvocationsGetResponse2>? Type104 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.FunctionBuildLog>? Type104 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.InvocationsGetResponse2? Type105 { get; set; }
public global::Browserbase.AllOf<global::Browserbase.Invocation, global::Browserbase.InvocationsGetResponse2>? Type105 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.InvocationsGetResponseCause? Type106 { get; set; }
public global::Browserbase.InvocationsGetResponse2? Type106 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.InvocationsGetResponseCauseCode? Type107 { get; set; }
public global::Browserbase.InvocationsGetResponseCause? Type107 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.InvocationsGetLogsResponse? Type108 { get; set; }
public global::Browserbase.InvocationsGetResponseCauseCode? Type108 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.InvocationLog>? Type109 { get; set; }
public global::Browserbase.InvocationsGetLogsResponse? Type109 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.FunctionVersionsListInvocationsResponse? Type110 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.InvocationLog>? Type110 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.Invocation>? Type111 { get; set; }
public global::Browserbase.FunctionVersionsListInvocationsResponse? Type111 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.FunctionsListVersionsResponse? Type112 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.Invocation>? Type112 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.FunctionVersion>? Type113 { get; set; }
public global::Browserbase.FunctionsListVersionsResponse? Type113 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.Project>? Type114 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.FunctionVersion>? Type114 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.SearchWebResponse? Type115 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.Project>? Type115 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.SearchWebResponseResult>? Type116 { get; set; }
public global::Browserbase.SearchWebResponse? Type116 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.SearchWebResponseResult? Type117 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.SearchWebResponseResult>? Type117 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.Session>? Type118 { get; set; }
public global::Browserbase.SearchWebResponseResult? Type118 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.AllOf<global::Browserbase.Session, global::Browserbase.SessionsCreateResponse2>? Type119 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.Session>? Type119 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.SessionsCreateResponse2? Type120 { get; set; }
public global::Browserbase.AllOf<global::Browserbase.Session, global::Browserbase.SessionsCreateResponse2>? Type120 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.AllOf<global::Browserbase.Session, global::Browserbase.SessionsGetResponse2>? Type121 { get; set; }
public global::Browserbase.SessionsCreateResponse2? Type121 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.SessionsGetResponse2? Type122 { get; set; }
public global::Browserbase.AllOf<global::Browserbase.Session, global::Browserbase.SessionsGetResponse2>? Type122 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.SessionLog>? Type123 { get; set; }
public global::Browserbase.SessionsGetResponse2? Type123 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.SessionRecording>? Type124 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.SessionLog>? Type124 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.SessionsGetReplayResponse? Type125 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.SessionRecording>? Type125 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Browserbase.ReplayPage>? Type126 { get; set; }
public global::Browserbase.SessionsGetReplayResponse? Type126 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.SessionsUploadFileResponse? Type127 { get; set; }
public global::System.Collections.Generic.IList<global::Browserbase.ReplayPage>? Type127 { get; set; }
/// <summary>
///
/// </summary>
public global::Browserbase.SessionsUploadFileResponse? Type128 { get; set; }

/// <summary>
///
Expand Down
Loading