diff --git a/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.SessionsCreateRecordingDownloads.g.cs b/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.SessionsCreateRecordingDownloads.g.cs index be91ef5..945c533 100644 --- a/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.SessionsCreateRecordingDownloads.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.SessionsCreateRecordingDownloads.g.cs @@ -437,24 +437,61 @@ partial void ProcessSessionsCreateRecordingDownloadsResponseContent( h => h.Key, h => h.Value)); } + // Recording was disabled for this session (`recordSession: false`), so there is nothing to assemble. + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Browserbase.SessionsCreateRecordingDownloadsResponse5? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Browserbase.SessionsCreateRecordingDownloadsResponse5.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Browserbase.SessionsCreateRecordingDownloadsResponse5.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Browserbase.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Failed to reach the recording service. Retry the request. if ((int)__response.StatusCode == 502) { string? __content_502 = null; global::System.Exception? __exception_502 = null; - global::Browserbase.SessionsCreateRecordingDownloadsResponse5? __value_502 = null; + global::Browserbase.SessionsCreateRecordingDownloadsResponse6? __value_502 = null; try { if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Browserbase.SessionsCreateRecordingDownloadsResponse5.FromJson(__content_502, JsonSerializerContext); + __value_502 = global::Browserbase.SessionsCreateRecordingDownloadsResponse6.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Browserbase.SessionsCreateRecordingDownloadsResponse5.FromJson(__content_502, JsonSerializerContext); + __value_502 = global::Browserbase.SessionsCreateRecordingDownloadsResponse6.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +500,7 @@ partial void ProcessSessionsCreateRecordingDownloadsResponseContent( } - throw global::Browserbase.ApiException.Create( + throw global::Browserbase.ApiException.Create( statusCode: __response.StatusCode, message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, diff --git a/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.SessionsListRecordingDownloads.g.cs b/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.SessionsListRecordingDownloads.g.cs index 6cb6267..c61121e 100644 --- a/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.SessionsListRecordingDownloads.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.BrowserbaseClient.SessionsListRecordingDownloads.g.cs @@ -437,24 +437,61 @@ partial void ProcessSessionsListRecordingDownloadsResponseContent( h => h.Key, h => h.Value)); } + // Recording was disabled for this session (`recordSession: false`), so there is nothing to download. + if ((int)__response.StatusCode == 422) + { + string? __content_422 = null; + global::System.Exception? __exception_422 = null; + global::Browserbase.SessionsListRecordingDownloadsResponse5? __value_422 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_422 = global::Browserbase.SessionsListRecordingDownloadsResponse5.FromJson(__content_422, JsonSerializerContext); + } + else + { + __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_422 = global::Browserbase.SessionsListRecordingDownloadsResponse5.FromJson(__content_422, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_422 = __ex; + } + + + throw global::Browserbase.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_422, + responseBody: __content_422, + responseObject: __value_422, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // Failed to reach the recording service. Retry the request. if ((int)__response.StatusCode == 502) { string? __content_502 = null; global::System.Exception? __exception_502 = null; - global::Browserbase.SessionsListRecordingDownloadsResponse5? __value_502 = null; + global::Browserbase.SessionsListRecordingDownloadsResponse6? __value_502 = null; try { if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Browserbase.SessionsListRecordingDownloadsResponse5.FromJson(__content_502, JsonSerializerContext); + __value_502 = global::Browserbase.SessionsListRecordingDownloadsResponse6.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Browserbase.SessionsListRecordingDownloadsResponse5.FromJson(__content_502, JsonSerializerContext); + __value_502 = global::Browserbase.SessionsListRecordingDownloadsResponse6.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +500,7 @@ partial void ProcessSessionsListRecordingDownloadsResponseContent( } - throw global::Browserbase.ApiException.Create( + throw global::Browserbase.ApiException.Create( statusCode: __response.StatusCode, message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContext.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContext.g.cs index 5d4ba29..e74bf5b 100644 --- a/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContext.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContext.g.cs @@ -290,11 +290,13 @@ namespace Browserbase [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsCreateRecordingDownloadsResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsCreateRecordingDownloadsResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsCreateRecordingDownloadsResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsCreateRecordingDownloadsResponse6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsListRecordingDownloadsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsListRecordingDownloadsResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsListRecordingDownloadsResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsListRecordingDownloadsResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsListRecordingDownloadsResponse5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsListRecordingDownloadsResponse6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsGetReplayResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Browserbase.SessionsUploadFileResponse))] diff --git a/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContextTypes.g.cs b/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContextTypes.g.cs index 39ea8c8..be10748 100644 --- a/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContextTypes.g.cs +++ b/src/libs/Browserbase/Generated/Browserbase.JsonSerializerContextTypes.g.cs @@ -660,35 +660,43 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Browserbase.SessionsListRecordingDownloadsResponse? Type158 { get; set; } + public global::Browserbase.SessionsCreateRecordingDownloadsResponse6? Type158 { get; set; } /// /// /// - public global::Browserbase.SessionsListRecordingDownloadsResponse2? Type159 { get; set; } + public global::Browserbase.SessionsListRecordingDownloadsResponse? Type159 { get; set; } /// /// /// - public global::Browserbase.SessionsListRecordingDownloadsResponse3? Type160 { get; set; } + public global::Browserbase.SessionsListRecordingDownloadsResponse2? Type160 { get; set; } /// /// /// - public global::Browserbase.SessionsListRecordingDownloadsResponse4? Type161 { get; set; } + public global::Browserbase.SessionsListRecordingDownloadsResponse3? Type161 { get; set; } /// /// /// - public global::Browserbase.SessionsListRecordingDownloadsResponse5? Type162 { get; set; } + public global::Browserbase.SessionsListRecordingDownloadsResponse4? Type162 { get; set; } /// /// /// - public global::Browserbase.SessionsGetReplayResponse? Type163 { get; set; } + public global::Browserbase.SessionsListRecordingDownloadsResponse5? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::Browserbase.SessionsListRecordingDownloadsResponse6? Type164 { get; set; } /// /// /// - public global::Browserbase.SessionsUploadFileResponse? Type165 { get; set; } + public global::Browserbase.SessionsGetReplayResponse? Type165 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type166 { get; set; } + /// + /// + /// + public global::Browserbase.SessionsUploadFileResponse? Type167 { get; set; } /// /// diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.SessionsCreateRecordingDownloadsResponse6.Json.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.SessionsCreateRecordingDownloadsResponse6.Json.g.cs new file mode 100644 index 0000000..8c9dd40 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.SessionsCreateRecordingDownloadsResponse6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Browserbase +{ + public sealed partial class SessionsCreateRecordingDownloadsResponse6 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Browserbase.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Browserbase.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Browserbase.SessionsCreateRecordingDownloadsResponse6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Browserbase.SessionsCreateRecordingDownloadsResponse6), + jsonSerializerContext) as global::Browserbase.SessionsCreateRecordingDownloadsResponse6; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Browserbase.SessionsCreateRecordingDownloadsResponse6? FromJson( + string json) + { + return FromJson( + json, + global::Browserbase.SourceGenerationContext.Default); + } + + /// + /// 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.SessionsCreateRecordingDownloadsResponse6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Browserbase.SourceGenerationContext.Default); + } + + 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.SessionsCreateRecordingDownloadsResponse6), + jsonSerializerContext).ConfigureAwait(false)) as global::Browserbase.SessionsCreateRecordingDownloadsResponse6; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Browserbase.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Browserbase.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.SessionsCreateRecordingDownloadsResponse6.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.SessionsCreateRecordingDownloadsResponse6.g.cs new file mode 100644 index 0000000..1849792 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.SessionsCreateRecordingDownloadsResponse6.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// + /// + public sealed partial class SessionsCreateRecordingDownloadsResponse6 + { + /// + /// 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; } + + /// + /// 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 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SessionsCreateRecordingDownloadsResponse6( + int statusCode, + string error, + string message) + { + this.StatusCode = statusCode; + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public SessionsCreateRecordingDownloadsResponse6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.SessionsListRecordingDownloadsResponse6.Json.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.SessionsListRecordingDownloadsResponse6.Json.g.cs new file mode 100644 index 0000000..0a49cb2 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.SessionsListRecordingDownloadsResponse6.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Browserbase +{ + public sealed partial class SessionsListRecordingDownloadsResponse6 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Browserbase.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Browserbase.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Browserbase.SessionsListRecordingDownloadsResponse6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Browserbase.SessionsListRecordingDownloadsResponse6), + jsonSerializerContext) as global::Browserbase.SessionsListRecordingDownloadsResponse6; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Browserbase.SessionsListRecordingDownloadsResponse6? FromJson( + string json) + { + return FromJson( + json, + global::Browserbase.SourceGenerationContext.Default); + } + + /// + /// 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.SessionsListRecordingDownloadsResponse6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Browserbase.SourceGenerationContext.Default); + } + + 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.SessionsListRecordingDownloadsResponse6), + jsonSerializerContext).ConfigureAwait(false)) as global::Browserbase.SessionsListRecordingDownloadsResponse6; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Browserbase.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Browserbase.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Browserbase/Generated/Browserbase.Models.SessionsListRecordingDownloadsResponse6.g.cs b/src/libs/Browserbase/Generated/Browserbase.Models.SessionsListRecordingDownloadsResponse6.g.cs new file mode 100644 index 0000000..13751e4 --- /dev/null +++ b/src/libs/Browserbase/Generated/Browserbase.Models.SessionsListRecordingDownloadsResponse6.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Browserbase +{ + /// + /// + /// + public sealed partial class SessionsListRecordingDownloadsResponse6 + { + /// + /// 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; } + + /// + /// 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 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public SessionsListRecordingDownloadsResponse6( + int statusCode, + string error, + string message) + { + this.StatusCode = statusCode; + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + } + + /// + /// Initializes a new instance of the class. + /// + public SessionsListRecordingDownloadsResponse6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Browserbase/openapi.yaml b/src/libs/Browserbase/openapi.yaml index a007761..692fd2e 100644 --- a/src/libs/Browserbase/openapi.yaml +++ b/src/libs/Browserbase/openapi.yaml @@ -2147,6 +2147,7 @@ paths: type: integer maximum: 21600 minimum: 60 + x-stainless-param: api_timeout keepAlive: description: Set to true to keep the session alive even after disconnections. Available on the Hobby Plan and above. type: boolean @@ -2238,6 +2239,7 @@ paths: + "X-BB-API-Key": "", "Content-Type": "application/json" } @@ -2277,6 +2279,7 @@ paths: + .header("X-BB-API-Key", "") .header("Content-Type", "application/json") .body("{}") @@ -2484,6 +2487,26 @@ paths: - statusCode - error - message + "422": + description: "Recording was disabled for this session (`recordSession: false`), so there is nothing to assemble." + content: + application/json: + schema: + type: object + properties: + statusCode: + description: HTTP status code + type: integer + error: + description: HTTP error name + type: string + message: + description: Human-readable error message + type: string + required: + - statusCode + - error + - message "502": description: Failed to reach the recording service. Retry the request. content: @@ -2590,6 +2613,26 @@ paths: - statusCode - error - message + "422": + description: "Recording was disabled for this session (`recordSession: false`), so there is nothing to download." + content: + application/json: + schema: + type: object + properties: + statusCode: + description: HTTP status code + type: integer + error: + description: HTTP error name + type: string + message: + description: Human-readable error message + type: string + required: + - statusCode + - error + - message "502": description: Failed to reach the recording service. Retry the request. content: