From c59db5f89219e10c31f897e012670f0a9cbfa5c8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 19 May 2026 22:16:26 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...serbase.BrowserbaseClient.FetchCreate.g.cs | 111 +++++++++++-- ...erbase.IBrowserbaseClient.FetchCreate.g.cs | 9 + ...ters.FetchCreateRequestFormatVariant1.g.cs | 53 ++++++ ...chCreateRequestFormatVariant1Nullable.g.cs | 60 +++++++ ...ters.FetchCreateRequestFormatVariant2.g.cs | 53 ++++++ ...chCreateRequestFormatVariant2Nullable.g.cs | 60 +++++++ ...ters.FetchCreateRequestFormatVariant3.g.cs | 53 ++++++ ...chCreateRequestFormatVariant3Nullable.g.cs | 60 +++++++ .../Browserbase.JsonSerializerContext.g.cs | 22 ++- ...rowserbase.JsonSerializerContextTypes.g.cs | 154 ++++++++++-------- ...Browserbase.Models.FetchCreateRequest.g.cs | 27 ++- ...dels.FetchCreateRequestFormatVariant1.g.cs | 45 +++++ ...dels.FetchCreateRequestFormatVariant2.g.cs | 45 +++++ ...dels.FetchCreateRequestFormatVariant3.g.cs | 45 +++++ ....Models.FetchCreateRequestSchema.Json.g.cs | 92 +++++++++++ ...rbase.Models.FetchCreateRequestSchema.g.cs | 19 +++ ...Models.FetchCreateRequestSchema2.Json.g.cs | 92 +++++++++++ ...base.Models.FetchCreateRequestSchema2.g.cs | 19 +++ ...owserbase.Models.FetchCreateResponse3.g.cs | 65 +------- ...owserbase.Models.FetchCreateResponse4.g.cs | 66 +------- ...owserbase.Models.FetchCreateResponse5.g.cs | 7 +- ...base.Models.FetchCreateResponse6.Json.g.cs | 92 +++++++++++ ...owserbase.Models.FetchCreateResponse6.g.cs | 83 ++++++++++ ...base.Models.FetchCreateResponse7.Json.g.cs | 92 +++++++++++ ...owserbase.Models.FetchCreateResponse7.g.cs | 83 ++++++++++ src/libs/Browserbase/openapi.yaml | 29 ++++ 26 files changed, 1319 insertions(+), 217 deletions(-) create mode 100644 src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant1.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant1Nullable.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant2.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant2Nullable.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant3.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant3Nullable.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant1.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant2.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant3.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema.Json.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema2.Json.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema2.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse6.Json.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse6.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse7.Json.g.cs create mode 100644 src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse7.g.cs diff --git a/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.FetchCreate.g.cs b/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.FetchCreate.g.cs index 5268ee0..dd9a597 100644 --- a/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.FetchCreate.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.FetchCreate.g.cs @@ -375,24 +375,100 @@ partial void ProcessFetchCreateResponseContent( h => h.Value), }; } + // Free plan fetch request quota exceeded. + if ((int)__response.StatusCode == 402) + { + string? __content_402 = null; + global::System.Exception? __exception_402 = null; + string? __value_402 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_402 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_402, typeof(string), JsonSerializerContext); + } + else + { + __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_402 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_402, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_402 = __ex; + } + + throw new global::Browserbase.ApiException( + message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_402, + statusCode: __response.StatusCode) + { + ResponseBody = __content_402, + ResponseObject = __value_402, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Project is not enabled for the requested format. Only `raw` is available without enablement. + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + string? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + throw new global::Browserbase.ApiException( + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + statusCode: __response.StatusCode) + { + ResponseBody = __content_403, + ResponseObject = __value_403, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } // Concurrent fetch request limit exceeded. if ((int)__response.StatusCode == 429) { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::Browserbase.FetchCreateResponse3? __value_429 = null; + global::Browserbase.FetchCreateResponse5? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Browserbase.FetchCreateResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Browserbase.FetchCreateResponse5.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Browserbase.FetchCreateResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Browserbase.FetchCreateResponse5.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +476,7 @@ partial void ProcessFetchCreateResponseContent( __exception_429 = __ex; } - throw new global::Browserbase.ApiException( + throw new global::Browserbase.ApiException( message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, statusCode: __response.StatusCode) @@ -418,19 +494,19 @@ partial void ProcessFetchCreateResponseContent( { string? __content_502 = null; global::System.Exception? __exception_502 = null; - global::Browserbase.FetchCreateResponse4? __value_502 = null; + global::Browserbase.FetchCreateResponse6? __value_502 = null; try { if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Browserbase.FetchCreateResponse4.FromJson(__content_502, JsonSerializerContext); + __value_502 = global::Browserbase.FetchCreateResponse6.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Browserbase.FetchCreateResponse4.FromJson(__content_502, JsonSerializerContext); + __value_502 = global::Browserbase.FetchCreateResponse6.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -438,7 +514,7 @@ partial void ProcessFetchCreateResponseContent( __exception_502 = __ex; } - throw new global::Browserbase.ApiException( + throw new global::Browserbase.ApiException( message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, statusCode: __response.StatusCode) @@ -456,19 +532,19 @@ partial void ProcessFetchCreateResponseContent( { string? __content_504 = null; global::System.Exception? __exception_504 = null; - global::Browserbase.FetchCreateResponse5? __value_504 = null; + global::Browserbase.FetchCreateResponse7? __value_504 = null; try { if (__effectiveReadResponseAsString) { __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = global::Browserbase.FetchCreateResponse5.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Browserbase.FetchCreateResponse7.FromJson(__content_504, JsonSerializerContext); } else { __content_504 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_504 = global::Browserbase.FetchCreateResponse5.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Browserbase.FetchCreateResponse7.FromJson(__content_504, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +552,7 @@ partial void ProcessFetchCreateResponseContent( __exception_504 = __ex; } - throw new global::Browserbase.ApiException( + throw new global::Browserbase.ApiException( message: __content_504 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_504, statusCode: __response.StatusCode) @@ -608,6 +684,13 @@ partial void ProcessFetchCreateResponseContent( /// Whether to enable proxy support for the request
/// Default Value: false /// + /// + /// Output format for the response content. `raw` (default) returns the response body unchanged; `json` returns structured data (requires `schema`); `markdown` returns the page as markdown.
+ /// Default Value: raw + /// + /// + /// JSON Schema describing the desired structure of the response. Only used when `format` is `json`. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -616,6 +699,8 @@ partial void ProcessFetchCreateResponseContent( bool? allowRedirects = default, bool? allowInsecureSsl = default, bool? proxies = default, + global::Browserbase.AnyOf? format = default, + object? schema = default, global::Browserbase.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -625,6 +710,8 @@ partial void ProcessFetchCreateResponseContent( AllowRedirects = allowRedirects, AllowInsecureSsl = allowInsecureSsl, Proxies = proxies, + Format = format, + Schema = schema, }; return await FetchCreateAsync( diff --git a/src/libs/Browserbase/Generated/Browserbase.IBrowserbaseClient.FetchCreate.g.cs b/src/libs/Browserbase/Generated/Browserbase.IBrowserbaseClient.FetchCreate.g.cs index 14f6c42..a9d903a 100644 --- a/src/libs/Browserbase/Generated/Browserbase.IBrowserbaseClient.FetchCreate.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.IBrowserbaseClient.FetchCreate.g.cs @@ -49,6 +49,13 @@ public partial interface IBrowserbaseClient /// Whether to enable proxy support for the request
/// Default Value: false /// + /// + /// Output format for the response content. `raw` (default) returns the response body unchanged; `json` returns structured data (requires `schema`); `markdown` returns the page as markdown.
+ /// Default Value: raw + /// + /// + /// JSON Schema describing the desired structure of the response. Only used when `format` is `json`. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -57,6 +64,8 @@ public partial interface IBrowserbaseClient bool? allowRedirects = default, bool? allowInsecureSsl = default, bool? proxies = default, + global::Browserbase.AnyOf? format = default, + object? schema = default, global::Browserbase.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant1.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant1.g.cs new file mode 100644 index 0000000..00cc043 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant1.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Browserbase.JsonConverters +{ + /// + public sealed class FetchCreateRequestFormatVariant1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Browserbase.FetchCreateRequestFormatVariant1 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Browserbase.FetchCreateRequestFormatVariant1Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Browserbase.FetchCreateRequestFormatVariant1)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Browserbase.FetchCreateRequestFormatVariant1); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Browserbase.FetchCreateRequestFormatVariant1 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Browserbase.FetchCreateRequestFormatVariant1Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant1Nullable.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant1Nullable.g.cs new file mode 100644 index 0000000..4864275 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant1Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Browserbase.JsonConverters +{ + /// + public sealed class FetchCreateRequestFormatVariant1NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Browserbase.FetchCreateRequestFormatVariant1? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Browserbase.FetchCreateRequestFormatVariant1Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Browserbase.FetchCreateRequestFormatVariant1)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Browserbase.FetchCreateRequestFormatVariant1?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Browserbase.FetchCreateRequestFormatVariant1? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Browserbase.FetchCreateRequestFormatVariant1Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant2.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant2.g.cs new file mode 100644 index 0000000..3620424 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Browserbase.JsonConverters +{ + /// + public sealed class FetchCreateRequestFormatVariant2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Browserbase.FetchCreateRequestFormatVariant2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Browserbase.FetchCreateRequestFormatVariant2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Browserbase.FetchCreateRequestFormatVariant2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Browserbase.FetchCreateRequestFormatVariant2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Browserbase.FetchCreateRequestFormatVariant2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Browserbase.FetchCreateRequestFormatVariant2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant2Nullable.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant2Nullable.g.cs new file mode 100644 index 0000000..6067b97 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Browserbase.JsonConverters +{ + /// + public sealed class FetchCreateRequestFormatVariant2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Browserbase.FetchCreateRequestFormatVariant2? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Browserbase.FetchCreateRequestFormatVariant2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Browserbase.FetchCreateRequestFormatVariant2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Browserbase.FetchCreateRequestFormatVariant2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Browserbase.FetchCreateRequestFormatVariant2? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Browserbase.FetchCreateRequestFormatVariant2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant3.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant3.g.cs new file mode 100644 index 0000000..51873fa --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant3.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Browserbase.JsonConverters +{ + /// + public sealed class FetchCreateRequestFormatVariant3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Browserbase.FetchCreateRequestFormatVariant3 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Browserbase.FetchCreateRequestFormatVariant3Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Browserbase.FetchCreateRequestFormatVariant3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Browserbase.FetchCreateRequestFormatVariant3); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Browserbase.FetchCreateRequestFormatVariant3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Browserbase.FetchCreateRequestFormatVariant3Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant3Nullable.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant3Nullable.g.cs new file mode 100644 index 0000000..6ae0e72 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.JsonConverters.FetchCreateRequestFormatVariant3Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Browserbase.JsonConverters +{ + /// + public sealed class FetchCreateRequestFormatVariant3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Browserbase.FetchCreateRequestFormatVariant3? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Browserbase.FetchCreateRequestFormatVariant3Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Browserbase.FetchCreateRequestFormatVariant3)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Browserbase.FetchCreateRequestFormatVariant3?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Browserbase.FetchCreateRequestFormatVariant3? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Browserbase.FetchCreateRequestFormatVariant3Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContext.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContext.g.cs index f1ce646..ee34473 100644 --- a/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContext.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContext.g.cs @@ -45,6 +45,18 @@ namespace Browserbase typeof(global::Browserbase.JsonConverters.SessionRegionNullableJsonConverter), + typeof(global::Browserbase.JsonConverters.FetchCreateRequestFormatVariant1JsonConverter), + + typeof(global::Browserbase.JsonConverters.FetchCreateRequestFormatVariant1NullableJsonConverter), + + typeof(global::Browserbase.JsonConverters.FetchCreateRequestFormatVariant2JsonConverter), + + typeof(global::Browserbase.JsonConverters.FetchCreateRequestFormatVariant2NullableJsonConverter), + + typeof(global::Browserbase.JsonConverters.FetchCreateRequestFormatVariant3JsonConverter), + + typeof(global::Browserbase.JsonConverters.FetchCreateRequestFormatVariant3NullableJsonConverter), + typeof(global::Browserbase.JsonConverters.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsOsJsonConverter), typeof(global::Browserbase.JsonConverters.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsOsNullableJsonConverter), @@ -79,6 +91,8 @@ namespace Browserbase typeof(global::Browserbase.JsonConverters.AllOfJsonConverter), + typeof(global::Browserbase.JsonConverters.AnyOfJsonConverter), + typeof(global::Browserbase.JsonConverters.AnyOfJsonConverter>, bool?>), typeof(global::Browserbase.JsonConverters.AnyOfJsonConverter), @@ -147,6 +161,10 @@ namespace Browserbase [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.ExtensionsUploadRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.AnyOf), TypeInfoPropertyName = "AnyOfFetchCreateRequestFormatVariant1FetchCreateRequestFormatVariant2FetchCreateRequestFormatVariant32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateRequestFormatVariant1), TypeInfoPropertyName = "FetchCreateRequestFormatVariant12")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateRequestFormatVariant2), TypeInfoPropertyName = "FetchCreateRequestFormatVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateRequestFormatVariant3), TypeInfoPropertyName = "FetchCreateRequestFormatVariant32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FunctionsInvokeRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FunctionsInvokeRequestSessionCreateParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettings))] @@ -183,9 +201,9 @@ namespace Browserbase [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.AnyOf), TypeInfoPropertyName = "AnyOfStringObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FetchCreateResponse4))] [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.FunctionsListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.FunctionBuildsListResponse))] diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContextTypes.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContextTypes.g.cs index 1d1be06..1966417 100644 --- a/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContextTypes.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContextTypes.g.cs @@ -224,279 +224,295 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Browserbase.FunctionsInvokeRequest? Type49 { get; set; } + public global::Browserbase.AnyOf? Type49 { get; set; } /// /// /// - public global::Browserbase.FunctionsInvokeRequestSessionCreateParams? Type50 { get; set; } + public global::Browserbase.FetchCreateRequestFormatVariant1? Type50 { get; set; } /// /// /// - public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettings? Type51 { get; set; } + public global::Browserbase.FetchCreateRequestFormatVariant2? Type51 { get; set; } /// /// /// - public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsContext? Type52 { get; set; } + public global::Browserbase.FetchCreateRequestFormatVariant3? Type52 { get; set; } /// /// /// - public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsViewport? Type53 { get; set; } + public global::Browserbase.FunctionsInvokeRequest? Type53 { get; set; } /// /// /// - public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsOs? Type54 { get; set; } + public global::Browserbase.FunctionsInvokeRequestSessionCreateParams? Type54 { get; set; } /// /// /// - public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsSize? Type55 { get; set; } + public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettings? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type56 { get; set; } + public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsContext? Type56 { get; set; } /// /// /// - public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsExtension? Type57 { get; set; } + public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsViewport? Type57 { get; set; } /// /// /// - public global::Browserbase.AnyOf>, bool?>? Type58 { get; set; } + public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsOs? Type58 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type59 { get; set; } + public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsSize? Type59 { get; set; } /// /// /// - public global::Browserbase.AnyOf? Type60 { get; set; } + public global::System.Collections.Generic.IList? Type60 { get; set; } /// /// /// - public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsProxySettings? Type61 { get; set; } + public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsBrowserSettingsExtension? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::Browserbase.AnyOf>, bool?>? Type62 { get; set; } /// /// /// - public global::Browserbase.SearchWebRequest? Type63 { get; set; } + public global::System.Collections.Generic.IList>? Type63 { get; set; } /// /// /// - public global::Browserbase.SessionsCreateRequest? Type64 { get; set; } + public global::Browserbase.AnyOf? Type64 { get; set; } /// /// /// - public global::Browserbase.SessionsCreateRequestBrowserSettings? Type65 { get; set; } + public global::Browserbase.FunctionsInvokeRequestSessionCreateParamsProxySettings? Type65 { get; set; } /// /// /// - public global::Browserbase.SessionsCreateRequestBrowserSettingsContext? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::Browserbase.SessionsCreateRequestBrowserSettingsViewport? Type67 { get; set; } + public global::Browserbase.SearchWebRequest? Type67 { get; set; } /// /// /// - public global::Browserbase.SessionsCreateRequestBrowserSettingsOs? Type68 { get; set; } + public global::Browserbase.SessionsCreateRequest? Type68 { get; set; } /// /// /// - public global::Browserbase.SessionsCreateRequestRegion? Type69 { get; set; } + public global::Browserbase.SessionsCreateRequestBrowserSettings? Type69 { get; set; } /// /// /// - public global::Browserbase.SessionsUpdateRequest? Type70 { get; set; } + public global::Browserbase.SessionsCreateRequestBrowserSettingsContext? Type70 { get; set; } /// /// /// - public global::Browserbase.SessionsUpdateRequestStatus? Type71 { get; set; } + public global::Browserbase.SessionsCreateRequestBrowserSettingsViewport? Type71 { get; set; } /// /// /// - public global::Browserbase.SessionsUploadFileRequest? Type72 { get; set; } + public global::Browserbase.SessionsCreateRequestBrowserSettingsOs? Type72 { get; set; } /// /// /// - public global::Browserbase.SessionsListStatus? Type73 { get; set; } + public global::Browserbase.SessionsCreateRequestRegion? Type73 { get; set; } /// /// /// - public global::Browserbase.ContextsCreateResponse? Type74 { get; set; } + public global::Browserbase.SessionsUpdateRequest? Type74 { get; set; } /// /// /// - public byte? Type75 { get; set; } + public global::Browserbase.SessionsUpdateRequestStatus? Type75 { get; set; } /// /// /// - public global::Browserbase.ContextsUpdateResponse? Type76 { get; set; } + public global::Browserbase.SessionsUploadFileRequest? Type76 { get; set; } /// /// /// - public global::Browserbase.DownloadsListResponse? Type77 { get; set; } + public global::Browserbase.SessionsListStatus? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public global::Browserbase.ContextsCreateResponse? Type78 { get; set; } /// /// /// - public global::Browserbase.DownloadsListResponseDownload? Type79 { get; set; } + public byte? Type79 { get; set; } /// /// /// - public global::Browserbase.DownloadsGetResponse? Type80 { get; set; } + public global::Browserbase.ContextsUpdateResponse? Type80 { get; set; } /// /// /// - public global::Browserbase.FetchCreateResponse? Type81 { get; set; } + public global::Browserbase.DownloadsListResponse? Type81 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type82 { get; set; } + public global::System.Collections.Generic.IList? Type82 { get; set; } /// /// /// - public global::Browserbase.AnyOf? Type83 { get; set; } + public global::Browserbase.DownloadsListResponseDownload? Type83 { get; set; } /// /// /// - public global::Browserbase.FetchCreateResponse2? Type84 { get; set; } + public global::Browserbase.DownloadsGetResponse? Type84 { get; set; } /// /// /// - public global::Browserbase.FetchCreateResponse3? Type85 { get; set; } + public global::Browserbase.FetchCreateResponse? Type85 { get; set; } /// /// /// - public global::Browserbase.FetchCreateResponse4? Type86 { get; set; } + public global::System.Collections.Generic.Dictionary? Type86 { get; set; } /// /// /// - public global::Browserbase.FetchCreateResponse5? Type87 { get; set; } + public global::Browserbase.AnyOf? Type87 { get; set; } /// /// /// - public global::Browserbase.FunctionsListResponse? Type88 { get; set; } + public global::Browserbase.FetchCreateResponse2? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public global::Browserbase.FetchCreateResponse5? Type89 { get; set; } /// /// /// - public global::Browserbase.FunctionBuildsListResponse? Type90 { get; set; } + public global::Browserbase.FetchCreateResponse6? Type90 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type91 { get; set; } + public global::Browserbase.FetchCreateResponse7? Type91 { get; set; } /// /// /// - public global::Browserbase.FunctionBuildsGetLogsResponse? Type92 { get; set; } + public global::Browserbase.FunctionsListResponse? Type92 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type93 { get; set; } + public global::System.Collections.Generic.IList? Type93 { get; set; } /// /// /// - public global::Browserbase.AllOf? Type94 { get; set; } + public global::Browserbase.FunctionBuildsListResponse? Type94 { get; set; } /// /// /// - public global::Browserbase.InvocationsGetResponse2? Type95 { get; set; } + public global::System.Collections.Generic.IList? Type95 { get; set; } /// /// /// - public global::Browserbase.InvocationsGetResponseCause? Type96 { get; set; } + public global::Browserbase.FunctionBuildsGetLogsResponse? Type96 { get; set; } /// /// /// - public global::Browserbase.InvocationsGetResponseCauseCode? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::Browserbase.InvocationsGetLogsResponse? Type98 { get; set; } + public global::Browserbase.AllOf? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::Browserbase.InvocationsGetResponse2? Type99 { get; set; } /// /// /// - public global::Browserbase.FunctionVersionsListInvocationsResponse? Type100 { get; set; } + public global::Browserbase.InvocationsGetResponseCause? Type100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type101 { get; set; } + public global::Browserbase.InvocationsGetResponseCauseCode? Type101 { get; set; } /// /// /// - public global::Browserbase.FunctionsListVersionsResponse? Type102 { get; set; } + public global::Browserbase.InvocationsGetLogsResponse? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type104 { get; set; } + public global::Browserbase.FunctionVersionsListInvocationsResponse? Type104 { get; set; } /// /// /// - public global::Browserbase.SearchWebResponse? Type105 { get; set; } + public global::System.Collections.Generic.IList? Type105 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type106 { get; set; } + public global::Browserbase.FunctionsListVersionsResponse? Type106 { get; set; } /// /// /// - public global::Browserbase.SearchWebResponseResult? Type107 { get; set; } + public global::System.Collections.Generic.IList? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::System.Collections.Generic.IList? Type108 { get; set; } /// /// /// - public global::Browserbase.AllOf? Type109 { get; set; } + public global::Browserbase.SearchWebResponse? Type109 { get; set; } /// /// /// - public global::Browserbase.SessionsCreateResponse2? Type110 { get; set; } + public global::System.Collections.Generic.IList? Type110 { get; set; } /// /// /// - public global::Browserbase.AllOf? Type111 { get; set; } + public global::Browserbase.SearchWebResponseResult? Type111 { get; set; } /// /// /// - public global::Browserbase.SessionsGetResponse2? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::Browserbase.AllOf? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type114 { get; set; } + public global::Browserbase.SessionsCreateResponse2? Type114 { get; set; } /// /// /// - public global::Browserbase.SessionsGetReplayResponse? Type115 { get; set; } + public global::Browserbase.AllOf? Type115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type116 { get; set; } + public global::Browserbase.SessionsGetResponse2? Type116 { get; set; } /// /// /// - public global::Browserbase.SessionsUploadFileResponse? Type117 { get; set; } + public global::System.Collections.Generic.IList? Type117 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type118 { get; set; } + /// + /// + /// + public global::Browserbase.SessionsGetReplayResponse? Type119 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type120 { get; set; } + /// + /// + /// + public global::Browserbase.SessionsUploadFileResponse? Type121 { get; set; } /// /// diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequest.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequest.g.cs index 4c5e3cd..4162845 100644 --- a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequest.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequest.g.cs @@ -36,6 +36,20 @@ public sealed partial class FetchCreateRequest [global::System.Text.Json.Serialization.JsonPropertyName("proxies")] public bool? Proxies { get; set; } + /// + /// Output format for the response content. `raw` (default) returns the response body unchanged; `json` returns structured data (requires `schema`); `markdown` returns the page as markdown.
+ /// Default Value: raw + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Browserbase.JsonConverters.AnyOfJsonConverter))] + public global::Browserbase.AnyOf? Format { get; set; } + + /// + /// JSON Schema describing the desired structure of the response. Only used when `format` is `json`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("schema")] + public object? Schema { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -60,6 +74,13 @@ public sealed partial class FetchCreateRequest /// Whether to enable proxy support for the request
/// Default Value: false /// + /// + /// Output format for the response content. `raw` (default) returns the response body unchanged; `json` returns structured data (requires `schema`); `markdown` returns the page as markdown.
+ /// Default Value: raw + /// + /// + /// JSON Schema describing the desired structure of the response. Only used when `format` is `json`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -67,12 +88,16 @@ public FetchCreateRequest( string url, bool? allowRedirects, bool? allowInsecureSsl, - bool? proxies) + bool? proxies, + global::Browserbase.AnyOf? format, + object? schema) { this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); this.AllowRedirects = allowRedirects; this.AllowInsecureSsl = allowInsecureSsl; this.Proxies = proxies; + this.Format = format; + this.Schema = schema; } /// diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant1.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant1.g.cs new file mode 100644 index 0000000..0767881 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant1.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// + /// + public enum FetchCreateRequestFormatVariant1 + { + /// + /// + /// + Raw, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FetchCreateRequestFormatVariant1Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FetchCreateRequestFormatVariant1 value) + { + return value switch + { + FetchCreateRequestFormatVariant1.Raw => "raw", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FetchCreateRequestFormatVariant1? ToEnum(string value) + { + return value switch + { + "raw" => FetchCreateRequestFormatVariant1.Raw, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant2.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant2.g.cs new file mode 100644 index 0000000..79580d0 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// + /// + public enum FetchCreateRequestFormatVariant2 + { + /// + /// + /// + Json, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FetchCreateRequestFormatVariant2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FetchCreateRequestFormatVariant2 value) + { + return value switch + { + FetchCreateRequestFormatVariant2.Json => "json", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FetchCreateRequestFormatVariant2? ToEnum(string value) + { + return value switch + { + "json" => FetchCreateRequestFormatVariant2.Json, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant3.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant3.g.cs new file mode 100644 index 0000000..4b930e6 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestFormatVariant3.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// + /// + public enum FetchCreateRequestFormatVariant3 + { + /// + /// + /// + Markdown, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FetchCreateRequestFormatVariant3Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FetchCreateRequestFormatVariant3 value) + { + return value switch + { + FetchCreateRequestFormatVariant3.Markdown => "markdown", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FetchCreateRequestFormatVariant3? ToEnum(string value) + { + return value switch + { + "markdown" => FetchCreateRequestFormatVariant3.Markdown, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema.Json.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema.Json.g.cs new file mode 100644 index 0000000..abd169c --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Browserbase +{ + public sealed partial class FetchCreateRequestSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Browserbase.FetchCreateRequestSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Browserbase.FetchCreateRequestSchema), + jsonSerializerContext) as global::Browserbase.FetchCreateRequestSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Browserbase.FetchCreateRequestSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Browserbase.FetchCreateRequestSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::Browserbase.FetchCreateRequestSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema.g.cs new file mode 100644 index 0000000..6c15f63 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// JSON Schema describing the desired structure of the response. Only used when `format` is `json`. + /// + public sealed partial class FetchCreateRequestSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema2.Json.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema2.Json.g.cs new file mode 100644 index 0000000..9b60251 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Browserbase +{ + public sealed partial class FetchCreateRequestSchema2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Browserbase.FetchCreateRequestSchema2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Browserbase.FetchCreateRequestSchema2), + jsonSerializerContext) as global::Browserbase.FetchCreateRequestSchema2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Browserbase.FetchCreateRequestSchema2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Browserbase.FetchCreateRequestSchema2), + jsonSerializerContext).ConfigureAwait(false)) as global::Browserbase.FetchCreateRequestSchema2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema2.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema2.g.cs new file mode 100644 index 0000000..c8030f2 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateRequestSchema2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// + /// + public sealed partial class FetchCreateRequestSchema2 + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse3.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse3.g.cs index 2d2382b..fbded30 100644 --- a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse3.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse3.g.cs @@ -4,36 +4,10 @@ namespace Browserbase { /// - /// + /// Free plan fetch request quota exceeded. /// public sealed partial class FetchCreateResponse3 { - /// - /// HTTP status code - /// - [global::System.Text.Json.Serialization.JsonPropertyName("statusCode")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int StatusCode { get; set; } - - /// - /// HTTP error name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Error { get; set; } - - /// - /// Human-readable error message - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Message { get; set; } - - /// - /// Unique identifier for the fetch request - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,42 +15,5 @@ public sealed partial class FetchCreateResponse3 [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - /// - /// Initializes a new instance of the class. - /// - /// - /// HTTP status code - /// - /// - /// HTTP error name - /// - /// - /// Human-readable error message - /// - /// - /// Unique identifier for the fetch request - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FetchCreateResponse3( - int statusCode, - string error, - string message, - string? id) - { - this.StatusCode = statusCode; - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - this.Id = id; - } - - /// - /// Initializes a new instance of the class. - /// - public FetchCreateResponse3() - { - } - } } \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse4.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse4.g.cs index 62bf911..9670a99 100644 --- a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse4.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse4.g.cs @@ -4,37 +4,10 @@ namespace Browserbase { /// - /// + /// Project is not enabled for the requested format. Only `raw` is available without enablement. /// public sealed partial class FetchCreateResponse4 { - /// - /// HTTP status code - /// - [global::System.Text.Json.Serialization.JsonPropertyName("statusCode")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int StatusCode { get; set; } - - /// - /// HTTP error name - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Error { get; set; } - - /// - /// Human-readable error message - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Message { get; set; } - - /// - /// Unique identifier for the fetch request - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,42 +15,5 @@ public sealed partial class FetchCreateResponse4 [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - /// - /// Initializes a new instance of the class. - /// - /// - /// HTTP status code - /// - /// - /// HTTP error name - /// - /// - /// Human-readable error message - /// - /// - /// Unique identifier for the fetch request - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FetchCreateResponse4( - int statusCode, - string error, - string message, - string id) - { - this.StatusCode = statusCode; - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - } - - /// - /// Initializes a new instance of the class. - /// - public FetchCreateResponse4() - { - } - } } \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse5.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse5.g.cs index 9e020de..c5dc638 100644 --- a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse5.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse5.g.cs @@ -33,8 +33,7 @@ public sealed partial class FetchCreateResponse5 /// Unique identifier for the fetch request /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } + public string? Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -64,12 +63,12 @@ public FetchCreateResponse5( int statusCode, string error, string message, - string id) + string? id) { this.StatusCode = statusCode; this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Id = id; } /// diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse6.Json.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse6.Json.g.cs new file mode 100644 index 0000000..5eaa49a --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Browserbase +{ + public sealed partial class FetchCreateResponse6 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Browserbase.FetchCreateResponse6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Browserbase.FetchCreateResponse6), + jsonSerializerContext) as global::Browserbase.FetchCreateResponse6; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Browserbase.FetchCreateResponse6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Browserbase.FetchCreateResponse6), + jsonSerializerContext).ConfigureAwait(false)) as global::Browserbase.FetchCreateResponse6; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse6.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse6.g.cs new file mode 100644 index 0000000..cdbb56d --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse6.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// + /// + public sealed partial class FetchCreateResponse6 + { + /// + /// HTTP status code + /// + [global::System.Text.Json.Serialization.JsonPropertyName("statusCode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int StatusCode { get; set; } + + /// + /// HTTP error name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Human-readable error message + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// Unique identifier for the fetch request + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// HTTP status code + /// + /// + /// HTTP error name + /// + /// + /// Human-readable error message + /// + /// + /// Unique identifier for the fetch request + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public FetchCreateResponse6( + int statusCode, + string error, + string message, + string id) + { + this.StatusCode = statusCode; + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public FetchCreateResponse6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse7.Json.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse7.Json.g.cs new file mode 100644 index 0000000..e41c06a --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse7.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Browserbase +{ + public sealed partial class FetchCreateResponse7 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Browserbase.FetchCreateResponse7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Browserbase.FetchCreateResponse7), + jsonSerializerContext) as global::Browserbase.FetchCreateResponse7; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Browserbase.FetchCreateResponse7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Browserbase.FetchCreateResponse7), + jsonSerializerContext).ConfigureAwait(false)) as global::Browserbase.FetchCreateResponse7; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse7.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse7.g.cs new file mode 100644 index 0000000..a022a3d --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.FetchCreateResponse7.g.cs @@ -0,0 +1,83 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// + /// + public sealed partial class FetchCreateResponse7 + { + /// + /// HTTP status code + /// + [global::System.Text.Json.Serialization.JsonPropertyName("statusCode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int StatusCode { get; set; } + + /// + /// HTTP error name + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// Human-readable error message + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Message { get; set; } + + /// + /// Unique identifier for the fetch request + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// HTTP status code + /// + /// + /// HTTP error name + /// + /// + /// Human-readable error message + /// + /// + /// Unique identifier for the fetch request + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public FetchCreateResponse7( + int statusCode, + string error, + string message, + string id) + { + this.StatusCode = statusCode; + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public FetchCreateResponse7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/openapi.yaml b/src/libs/Browserbase/openapi.yaml index 74e553f..a21dbf3 100644 --- a/src/libs/Browserbase/openapi.yaml +++ b/src/libs/Browserbase/openapi.yaml @@ -393,6 +393,23 @@ paths: description: Whether to enable proxy support for the request type: boolean default: false + format: + description: Output format for the response content. `raw` (default) returns the response body unchanged; `json` returns structured data (requires `schema`); `markdown` returns the page as markdown. + default: raw + anyOf: + - type: string + enum: + - raw + - type: string + enum: + - json + - type: string + enum: + - markdown + schema: + description: JSON Schema describing the desired structure of the response. Only used when `format` is `json`. + type: object + additionalProperties: {} required: - url responses: @@ -456,6 +473,18 @@ paths: - statusCode - error - message + "402": + description: Free plan fetch request quota exceeded. + content: + application/json: + schema: + description: Free plan fetch request quota exceeded. + "403": + description: Project is not enabled for the requested format. Only `raw` is available without enablement. + content: + application/json: + schema: + description: Project is not enabled for the requested format. Only `raw` is available without enablement. "429": description: Concurrent fetch request limit exceeded. content: