Skip to content

Commit c858918

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent f456309 commit c858918

71 files changed

Lines changed: 8936 additions & 3620 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/Firecrawl/Generated/Firecrawl.AllOf.2.g.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Firecrawl
66
/// <summary>
77
///
88
/// </summary>
9-
public readonly partial struct AllOf<T1, T2> : global::System.IEquatable<AllOf<T1, T2>>
9+
public readonly partial struct AllOf<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T1, [global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] T2> : global::System.IEquatable<AllOf<T1, T2>>
1010
{
1111
/// <summary>
1212
///
@@ -105,9 +105,9 @@ Value1 as object
105105
Value2?.ToString()
106106
;
107107

108-
private static bool RequiresValue<TValue>() => RequirementCache<TValue>.Value;
108+
private static bool RequiresValue<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>() => RequirementCache<TValue>.Value;
109109

110-
private static bool DetermineRequiresValue(global::System.Type type)
110+
private static bool DetermineRequiresValue([global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] global::System.Type type)
111111
{
112112
if (global::System.Nullable.GetUnderlyingType(type) != null)
113113
{
@@ -138,7 +138,7 @@ private static bool DetermineRequiresValue(global::System.Type type)
138138
return false;
139139
}
140140

141-
private static class RequirementCache<TValue>
141+
private static class RequirementCache<[global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(global::System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] TValue>
142142
{
143143
public static readonly bool Value = DetermineRequiresValue(typeof(TValue));
144144
}

src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetCreditUsage.g.cs

Lines changed: 369 additions & 162 deletions
Large diffs are not rendered by default.

src/libs/Firecrawl/Generated/Firecrawl.BillingClient.GetTokenUsage.g.cs

Lines changed: 369 additions & 162 deletions
Large diffs are not rendered by default.

src/libs/Firecrawl/Generated/Firecrawl.BillingClient.g.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public sealed partial class BillingClient : global::Firecrawl.IBillingClient, gl
3030
#if DEBUG
3131
= true;
3232
#endif
33+
34+
/// <inheritdoc/>
35+
public global::Firecrawl.AutoSDKClientOptions Options { get; }
3336
/// <summary>
3437
///
3538
/// </summary>
@@ -49,11 +52,37 @@ public BillingClient(
4952
global::System.Net.Http.HttpClient? httpClient = null,
5053
global::System.Uri? baseUri = null,
5154
global::System.Collections.Generic.List<global::Firecrawl.EndPointAuthorization>? authorizations = null,
55+
bool disposeHttpClient = true) : this(
56+
httpClient,
57+
baseUri,
58+
authorizations,
59+
options: null,
60+
disposeHttpClient: disposeHttpClient)
61+
{
62+
}
63+
64+
/// <summary>
65+
/// Creates a new instance of the BillingClient.
66+
/// If no httpClient is provided, a new one will be created.
67+
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
68+
/// </summary>
69+
/// <param name="httpClient">The HttpClient instance. If not provided, a new one will be created.</param>
70+
/// <param name="baseUri">The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used.</param>
71+
/// <param name="authorizations">The authorizations to use for the requests.</param>
72+
/// <param name="options">Client-wide request defaults such as headers, query parameters, retries, and timeout.</param>
73+
/// <param name="disposeHttpClient">Dispose the HttpClient when the instance is disposed. True by default.</param>
74+
public BillingClient(
75+
global::System.Net.Http.HttpClient? httpClient = null,
76+
global::System.Uri? baseUri = null,
77+
global::System.Collections.Generic.List<global::Firecrawl.EndPointAuthorization>? authorizations = null,
78+
global::Firecrawl.AutoSDKClientOptions? options = null,
5279
bool disposeHttpClient = true)
5380
{
81+
5482
HttpClient = httpClient ?? new global::System.Net.Http.HttpClient();
5583
HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl);
5684
Authorizations = authorizations ?? new global::System.Collections.Generic.List<global::Firecrawl.EndPointAuthorization>();
85+
Options = options ?? new global::Firecrawl.AutoSDKClientOptions();
5786
_disposeHttpClient = disposeHttpClient;
5887

5988
Initialized(HttpClient);

0 commit comments

Comments
 (0)