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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,9 @@ partial void ProcessCreateAssetCollectionResponseContent(
/// <param name="coverImageUrl">
/// Optional fal-hosted cover image URL for the collection
/// </param>
/// <param name="parentCollectionId">
/// Optional parent collection ID to nest this collection under (manual collections only). Omit or null to create a top-level collection.
/// </param>
/// <param name="filters">
/// Assets filter DSL
/// </param>
Expand All @@ -823,6 +826,7 @@ partial void ProcessCreateAssetCollectionResponseContent(
string? icon = default,
string? color = default,
string? coverImageUrl = default,
string? parentCollectionId = default,
object? filters = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand All @@ -834,6 +838,7 @@ partial void ProcessCreateAssetCollectionResponseContent(
Icon = icon,
Color = color,
CoverImageUrl = coverImageUrl,
ParentCollectionId = parentCollectionId,
Filters = filters,
};

Expand Down
843 changes: 843 additions & 0 deletions src/libs/Fal/Generated/Fal.AssetsClient.MoveAssetCollection.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public partial interface IAssetsClient
/// <param name="coverImageUrl">
/// Optional fal-hosted cover image URL for the collection
/// </param>
/// <param name="parentCollectionId">
/// Optional parent collection ID to nest this collection under (manual collections only). Omit or null to create a top-level collection.
/// </param>
/// <param name="filters">
/// Assets filter DSL
/// </param>
Expand All @@ -76,6 +79,7 @@ public partial interface IAssetsClient
string? icon = default,
string? color = default,
string? coverImageUrl = default,
string? parentCollectionId = default,
object? filters = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
78 changes: 78 additions & 0 deletions src/libs/Fal/Generated/Fal.IAssetsClient.MoveAssetCollection.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#nullable enable

namespace Fal
{
public partial interface IAssetsClient
{
/// <summary>
/// Move asset collection<br/>
/// Move a manual asset collection under another collection, or to the top level. Only manual collections can be moved or act as folders; nesting is limited to 5 levels deep and cannot create a cycle.
/// </summary>
/// <param name="collectionId">
/// Collection ID<br/>
/// Example: d8b6elcregj72v34jr8g
/// </param>
/// <param name="idempotencyKey">
/// Optional idempotency key for safe request retries<br/>
/// Example: 550e8400-e29b-41d4-a716-446655440000
/// </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.MoveAssetCollectionResponse> MoveAssetCollectionAsync(
string collectionId,

global::Fal.MoveAssetCollectionRequest request,
string? idempotencyKey = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Move asset collection<br/>
/// Move a manual asset collection under another collection, or to the top level. Only manual collections can be moved or act as folders; nesting is limited to 5 levels deep and cannot create a cycle.
/// </summary>
/// <param name="collectionId">
/// Collection ID<br/>
/// Example: d8b6elcregj72v34jr8g
/// </param>
/// <param name="idempotencyKey">
/// Optional idempotency key for safe request retries<br/>
/// Example: 550e8400-e29b-41d4-a716-446655440000
/// </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.MoveAssetCollectionResponse>> MoveAssetCollectionAsResponseAsync(
string collectionId,

global::Fal.MoveAssetCollectionRequest request,
string? idempotencyKey = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Move asset collection<br/>
/// Move a manual asset collection under another collection, or to the top level. Only manual collections can be moved or act as folders; nesting is limited to 5 levels deep and cannot create a cycle.
/// </summary>
/// <param name="collectionId">
/// Collection ID<br/>
/// Example: d8b6elcregj72v34jr8g
/// </param>
/// <param name="idempotencyKey">
/// Optional idempotency key for safe request retries<br/>
/// Example: 550e8400-e29b-41d4-a716-446655440000
/// </param>
/// <param name="parentCollectionId">
/// Parent collection ID to move this collection under, or null to move it to the top level. Must be a manual collection; nesting is limited to 5 levels and cannot create a cycle.
/// </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.MoveAssetCollectionResponse> MoveAssetCollectionAsync(
string collectionId,
string? idempotencyKey = default,
string? parentCollectionId = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
24 changes: 22 additions & 2 deletions src/libs/Fal/Generated/Fal.IModelsClient.GetUsage.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,16 @@ public partial interface IModelsClient
/// Filter by specific endpoint ID(s). Accepts 1-50 endpoint IDs. Supports comma-separated values: ?endpoint_id=model1,model2 or array syntax: ?endpoint_id=model1&amp;endpoint_id=model2<br/>
/// Example: [fal-ai/flux/dev]
/// </param>
/// <param name="apiKeyId">
/// Filter by specific API key ID(s). Accepts 1-50 key IDs. Supports comma-separated values: ?api_key_id=key1,key2 or array syntax: ?api_key_id=key1&amp;api_key_id=key2<br/>
/// Example: [abc123]
/// </param>
/// <param name="loginUsername">
/// Filter by team member login username(s) (nickname). Accepts 1-50 usernames. Supports comma-separated values: ?login_username=alice,bob or array syntax: ?login_username=alice&amp;login_username=bob<br/>
/// Example: [alice]
/// </param>
/// <param name="expand">
/// Data to include in the response. Use 'time_series' for time-bucketed data, 'summary' for aggregate statistics, and 'auth_method' to include authentication method information (formatted with user key aliases). At least one of 'time_series' or 'summary' is required.<br/>
/// Data to include in the response. Use 'time_series' for time-bucketed data, 'summary' for aggregate statistics, 'auth_method' to include a formatted authentication method label, and 'auth_method_structured' to include a machine-readable auth method object (detail, api_key_id, login_username). At least one of 'time_series' or 'summary' is required.<br/>
/// Default Value: [time_series]<br/>
/// Example: [time_series, auth_method]
/// </param>
Expand All @@ -74,6 +82,8 @@ public partial interface IModelsClient
global::Fal.GetUsageTimeframe? timeframe = default,
global::Fal.GetUsageBoundToTimeframe? boundToTimeframe = default,
global::Fal.AnyOf<string, global::System.Collections.Generic.IList<string>>? endpointId = default,
global::Fal.AnyOf<string, global::System.Collections.Generic.IList<string>>? apiKeyId = default,
global::Fal.AnyOf<string, global::System.Collections.Generic.IList<string>>? loginUsername = default,
global::Fal.AnyOf<string, global::System.Collections.Generic.IList<string>>? expand = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down Expand Up @@ -130,8 +140,16 @@ public partial interface IModelsClient
/// Filter by specific endpoint ID(s). Accepts 1-50 endpoint IDs. Supports comma-separated values: ?endpoint_id=model1,model2 or array syntax: ?endpoint_id=model1&amp;endpoint_id=model2<br/>
/// Example: [fal-ai/flux/dev]
/// </param>
/// <param name="apiKeyId">
/// Filter by specific API key ID(s). Accepts 1-50 key IDs. Supports comma-separated values: ?api_key_id=key1,key2 or array syntax: ?api_key_id=key1&amp;api_key_id=key2<br/>
/// Example: [abc123]
/// </param>
/// <param name="loginUsername">
/// Filter by team member login username(s) (nickname). Accepts 1-50 usernames. Supports comma-separated values: ?login_username=alice,bob or array syntax: ?login_username=alice&amp;login_username=bob<br/>
/// Example: [alice]
/// </param>
/// <param name="expand">
/// Data to include in the response. Use 'time_series' for time-bucketed data, 'summary' for aggregate statistics, and 'auth_method' to include authentication method information (formatted with user key aliases). At least one of 'time_series' or 'summary' is required.<br/>
/// Data to include in the response. Use 'time_series' for time-bucketed data, 'summary' for aggregate statistics, 'auth_method' to include a formatted authentication method label, and 'auth_method_structured' to include a machine-readable auth method object (detail, api_key_id, login_username). At least one of 'time_series' or 'summary' is required.<br/>
/// Default Value: [time_series]<br/>
/// Example: [time_series, auth_method]
/// </param>
Expand All @@ -147,6 +165,8 @@ public partial interface IModelsClient
global::Fal.GetUsageTimeframe? timeframe = default,
global::Fal.GetUsageBoundToTimeframe? boundToTimeframe = default,
global::Fal.AnyOf<string, global::System.Collections.Generic.IList<string>>? endpointId = default,
global::Fal.AnyOf<string, global::System.Collections.Generic.IList<string>>? apiKeyId = default,
global::Fal.AnyOf<string, global::System.Collections.Generic.IList<string>>? loginUsername = default,
global::Fal.AnyOf<string, global::System.Collections.Generic.IList<string>>? expand = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Fal.JsonConverters
{
/// <inheritdoc />
public sealed class MoveAssetCollectionResponseCollectionTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.MoveAssetCollectionResponseCollectionType>
{
/// <inheritdoc />
public override global::Fal.MoveAssetCollectionResponseCollectionType 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::Fal.MoveAssetCollectionResponseCollectionTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Fal.MoveAssetCollectionResponseCollectionType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Fal.MoveAssetCollectionResponseCollectionType);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Fal.MoveAssetCollectionResponseCollectionType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Fal.MoveAssetCollectionResponseCollectionTypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#nullable enable

namespace Fal.JsonConverters
{
/// <inheritdoc />
public sealed class MoveAssetCollectionResponseCollectionTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.MoveAssetCollectionResponseCollectionType?>
{
/// <inheritdoc />
public override global::Fal.MoveAssetCollectionResponseCollectionType? 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::Fal.MoveAssetCollectionResponseCollectionTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Fal.MoveAssetCollectionResponseCollectionType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Fal.MoveAssetCollectionResponseCollectionType?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Fal.MoveAssetCollectionResponseCollectionType? 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::Fal.MoveAssetCollectionResponseCollectionTypeExtensions.ToValueString(value.Value));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

namespace Fal.JsonConverters
{
/// <inheritdoc />
public sealed class MoveAssetCollectionResponseErrorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.MoveAssetCollectionResponseErrorType>
{
/// <inheritdoc />
public override global::Fal.MoveAssetCollectionResponseErrorType 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::Fal.MoveAssetCollectionResponseErrorTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Fal.MoveAssetCollectionResponseErrorType)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Fal.MoveAssetCollectionResponseErrorType);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
}

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Fal.MoveAssetCollectionResponseErrorType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Fal.MoveAssetCollectionResponseErrorTypeExtensions.ToValueString(value));
}
}
}
Loading