Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/libs/Fal/Generated/Fal.FalClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ public sealed partial class FalClient : global::Fal.IFalClient, global::System.I
JsonSerializerContext = JsonSerializerContext,
};

/// <summary>
///
/// </summary>
public StorageClient Storage => new StorageClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options)
{
ReadResponseAsString = ReadResponseAsString,
CreateIdempotencyKey = CreateIdempotencyKey,
JsonSerializerContext = JsonSerializerContext,
};

/// <summary>
///
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/libs/Fal/Generated/Fal.IFalClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public partial interface IFalClient : global::System.IDisposable
/// </summary>
public ServerlessClient Serverless { get; }

/// <summary>
///
/// </summary>
public StorageClient Storage { get; }

/// <summary>
///
/// </summary>
Expand Down
48 changes: 48 additions & 0 deletions src/libs/Fal/Generated/Fal.IStorageClient.GetStorageFileAcl.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#nullable enable

namespace Fal
{
public partial interface IStorageClient
{
/// <summary>
/// Get file ACL<br/>
/// Returns the Access Control List currently applied to a fal CDN file.<br/>
/// The ACL consists of a default decision (`allow`, `forbid`, or `hide`) plus<br/>
/// optional per-user rules that override the default. Rule users are returned as<br/>
/// nicknames where possible.<br/>
/// **Authentication:** Required. The API key must have the `assets:read` permission.<br/>
///
/// </summary>
/// <param name="url">
/// Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/&lt;id&gt;/&lt;filename&gt;). Must not contain query parameters.<br/>
/// Example: https://v3.fal.media/files/b/0a1b2c3d/output.png
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.GetStorageFileAclResponse> GetStorageFileAclAsync(
string url,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get file ACL<br/>
/// Returns the Access Control List currently applied to a fal CDN file.<br/>
/// The ACL consists of a default decision (`allow`, `forbid`, or `hide`) plus<br/>
/// optional per-user rules that override the default. Rule users are returned as<br/>
/// nicknames where possible.<br/>
/// **Authentication:** Required. The API key must have the `assets:read` permission.<br/>
///
/// </summary>
/// <param name="url">
/// Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/&lt;id&gt;/&lt;filename&gt;). Must not contain query parameters.<br/>
/// Example: https://v3.fal.media/files/b/0a1b2c3d/output.png
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.AutoSDKHttpResponse<global::Fal.GetStorageFileAclResponse>> GetStorageFileAclAsResponseAsync(
string url,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
44 changes: 44 additions & 0 deletions src/libs/Fal/Generated/Fal.IStorageClient.GetStorageSettings.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#nullable enable

namespace Fal
{
public partial interface IStorageClient
{
/// <summary>
/// Get storage settings<br/>
/// Returns the account-level storage lifecycle settings applied to newly uploaded<br/>
/// fal CDN files:<br/>
/// - `expiration_duration_seconds`: how long files live before being<br/>
/// automatically deleted (null disables auto-expiration).<br/>
/// - `initial_acl`: the default ACL applied to new uploads (null means the<br/>
/// system default, which is public).<br/>
/// Both fields are null when the account has never saved settings.<br/>
/// **Authentication:** Required. The API key must have the `account:settings:read` permission.<br/>
///
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.GetStorageSettingsResponse> GetStorageSettingsAsync(
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get storage settings<br/>
/// Returns the account-level storage lifecycle settings applied to newly uploaded<br/>
/// fal CDN files:<br/>
/// - `expiration_duration_seconds`: how long files live before being<br/>
/// automatically deleted (null disables auto-expiration).<br/>
/// - `initial_acl`: the default ACL applied to new uploads (null means the<br/>
/// system default, which is public).<br/>
/// Both fields are null when the account has never saved settings.<br/>
/// **Authentication:** Required. The API key must have the `account:settings:read` permission.<br/>
///
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.AutoSDKHttpResponse<global::Fal.GetStorageSettingsResponse>> GetStorageSettingsAsResponseAsync(
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
93 changes: 93 additions & 0 deletions src/libs/Fal/Generated/Fal.IStorageClient.SetStorageFileAcl.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
#nullable enable

namespace Fal
{
public partial interface IStorageClient
{
/// <summary>
/// Set file ACL<br/>
/// Replaces the Access Control List of a fal CDN file.<br/>
/// The ACL consists of a default decision (`allow`, `forbid`, or `hide`) plus<br/>
/// optional per-user rules that override the default. Rule users may be specified<br/>
/// by nickname or user ID. Setting `default` to `allow` with no rules makes the<br/>
/// file public; `forbid` or `hide` restricts it to the rules you provide.<br/>
/// Rules referencing users that do not exist are dropped. The response reflects<br/>
/// the ACL actually applied, so verify it contains the rules you sent.<br/>
/// **Authentication:** Required. The API key must have the `assets:write` permission.<br/>
///
/// </summary>
/// <param name="url">
/// Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/&lt;id&gt;/&lt;filename&gt;). Must not contain query parameters.<br/>
/// Example: https://v3.fal.media/files/b/0a1b2c3d/output.png
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.SetStorageFileAclResponse> SetStorageFileAclAsync(
string url,

global::Fal.SetStorageFileAclRequest request,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Set file ACL<br/>
/// Replaces the Access Control List of a fal CDN file.<br/>
/// The ACL consists of a default decision (`allow`, `forbid`, or `hide`) plus<br/>
/// optional per-user rules that override the default. Rule users may be specified<br/>
/// by nickname or user ID. Setting `default` to `allow` with no rules makes the<br/>
/// file public; `forbid` or `hide` restricts it to the rules you provide.<br/>
/// Rules referencing users that do not exist are dropped. The response reflects<br/>
/// the ACL actually applied, so verify it contains the rules you sent.<br/>
/// **Authentication:** Required. The API key must have the `assets:write` permission.<br/>
///
/// </summary>
/// <param name="url">
/// Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/&lt;id&gt;/&lt;filename&gt;). Must not contain query parameters.<br/>
/// Example: https://v3.fal.media/files/b/0a1b2c3d/output.png
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.AutoSDKHttpResponse<global::Fal.SetStorageFileAclResponse>> SetStorageFileAclAsResponseAsync(
string url,

global::Fal.SetStorageFileAclRequest request,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Set file ACL<br/>
/// Replaces the Access Control List of a fal CDN file.<br/>
/// The ACL consists of a default decision (`allow`, `forbid`, or `hide`) plus<br/>
/// optional per-user rules that override the default. Rule users may be specified<br/>
/// by nickname or user ID. Setting `default` to `allow` with no rules makes the<br/>
/// file public; `forbid` or `hide` restricts it to the rules you provide.<br/>
/// Rules referencing users that do not exist are dropped. The response reflects<br/>
/// the ACL actually applied, so verify it contains the rules you sent.<br/>
/// **Authentication:** Required. The API key must have the `assets:write` permission.<br/>
///
/// </summary>
/// <param name="url">
/// Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/&lt;id&gt;/&lt;filename&gt;). Must not contain query parameters.<br/>
/// Example: https://v3.fal.media/files/b/0a1b2c3d/output.png
/// </param>
/// <param name="default">
/// Fallback decision when no user-specific rule matches<br/>
/// Example: allow
/// </param>
/// <param name="rules">
/// User-specific overrides to the default decision<br/>
/// Default Value: []
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Fal.SetStorageFileAclResponse> SetStorageFileAclAsync(
string url,
global::Fal.SetStorageFileAclRequestDefault @default,
global::System.Collections.Generic.IList<global::Fal.SetStorageFileAclRequestRule>? rules = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
76 changes: 76 additions & 0 deletions src/libs/Fal/Generated/Fal.IStorageClient.SignStorageFileUrl.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#nullable enable

namespace Fal
{
public partial interface IStorageClient
{
/// <summary>
/// Sign file URL<br/>
/// Creates a signed URL that grants temporary access to a fal CDN file,<br/>
/// regardless of its ACL. Useful for sharing access-restricted files.<br/>
/// The signature is valid for `expiration_seconds` (up to 7 days).<br/>
/// **Authentication:** Required. The API key must have the `assets:read` permission.<br/>
///
/// </summary>
/// <param name="url">
/// Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/&lt;id&gt;/&lt;filename&gt;). Must not contain query parameters.<br/>
/// Example: https://v3.fal.media/files/b/0a1b2c3d/output.png
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.SignStorageFileUrlResponse> SignStorageFileUrlAsync(
string url,

global::Fal.SignStorageFileUrlRequest request,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Sign file URL<br/>
/// Creates a signed URL that grants temporary access to a fal CDN file,<br/>
/// regardless of its ACL. Useful for sharing access-restricted files.<br/>
/// The signature is valid for `expiration_seconds` (up to 7 days).<br/>
/// **Authentication:** Required. The API key must have the `assets:read` permission.<br/>
///
/// </summary>
/// <param name="url">
/// Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/&lt;id&gt;/&lt;filename&gt;). Must not contain query parameters.<br/>
/// Example: https://v3.fal.media/files/b/0a1b2c3d/output.png
/// </param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Fal.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Fal.AutoSDKHttpResponse<global::Fal.SignStorageFileUrlResponse>> SignStorageFileUrlAsResponseAsync(
string url,

global::Fal.SignStorageFileUrlRequest request,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Sign file URL<br/>
/// Creates a signed URL that grants temporary access to a fal CDN file,<br/>
/// regardless of its ACL. Useful for sharing access-restricted files.<br/>
/// The signature is valid for `expiration_seconds` (up to 7 days).<br/>
/// **Authentication:** Required. The API key must have the `assets:read` permission.<br/>
///
/// </summary>
/// <param name="url">
/// Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/&lt;id&gt;/&lt;filename&gt;). Must not contain query parameters.<br/>
/// Example: https://v3.fal.media/files/b/0a1b2c3d/output.png
/// </param>
/// <param name="expirationSeconds">
/// How long the signed URL stays valid, in seconds (max 7 days)<br/>
/// Example: 3600
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Fal.SignStorageFileUrlResponse> SignStorageFileUrlAsync(
string url,
int expirationSeconds,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading