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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#nullable enable

namespace Fal
{
public partial interface IAssetsClient
{
/// <summary>
/// Get asset collection hierarchy<br/>
/// Get the nested subtree rooted at an asset collection, plus its ancestor collections ordered from the top level down to its direct parent.
/// </summary>
/// <param name="collectionId">
/// Collection ID<br/>
/// Example: d8b6elcregj72v34jr8g
/// </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.GetAssetCollectionHierarchyResponse> GetAssetCollectionHierarchyAsync(
string collectionId,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get asset collection hierarchy<br/>
/// Get the nested subtree rooted at an asset collection, plus its ancestor collections ordered from the top level down to its direct parent.
/// </summary>
/// <param name="collectionId">
/// Collection ID<br/>
/// Example: d8b6elcregj72v34jr8g
/// </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.GetAssetCollectionHierarchyResponse>> GetAssetCollectionHierarchyAsResponseAsync(
string collectionId,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
#nullable enable

namespace Fal
{
public partial interface IServerlessClient
{
/// <summary>
/// Application Events<br/>
/// Returns the operational event history for an application: deployments,<br/>
/// configuration changes, and runner lifecycle transitions (started, failed,<br/>
/// draining, etc.), newest first.<br/>
/// **Use cases:**<br/>
/// - Incident correlation: answer "what changed around this time?" — did a<br/>
/// deploy, config change, or runner failure coincide with an error spike?<br/>
/// - Deployment audit: see when revisions went out and who triggered them<br/>
/// **Time range:** defaults to the last 24 hours when `start`/`end` are<br/>
/// omitted. Use `category` filters to narrow to specific event types.<br/>
/// **Authentication:** Required via API key. Only the app owner can query it.
/// </summary>
/// <param name="owner">
/// Username of the app owner<br/>
/// Example: user_123
/// </param>
/// <param name="name">
/// Application name<br/>
/// Example: my-app
/// </param>
/// <param name="start">
/// Start date in ISO8601 format (e.g., '2025-01-01T00:00:00Z' or '2025-01-01'). Defaults to 24 hours ago.<br/>
/// Example: 2025-01-01T00:00:00Z
/// </param>
/// <param name="end">
/// End date in ISO8601 format, exclusive (e.g., '2025-02-01T00:00:00Z' or '2025-02-01'). Data up to but not including this timestamp is returned. Defaults to current time.<br/>
/// Example: 2025-02-01T00:00:00Z
/// </param>
/// <param name="category">
/// Filter by event category. Repeat the parameter to include multiple categories: ?category=deployment_started&amp;category=config_changed<br/>
/// Example: [deployment_started]
/// </param>
/// <param name="limit">
/// Maximum number of events to return per page (1-1000)<br/>
/// Default Value: 50<br/>
/// Example: 50
/// </param>
/// <param name="cursor">
/// Pagination cursor from previous response<br/>
/// Example: Mg==
/// </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.ServerlessListAppEventsResponse> ServerlessListAppEventsAsync(
string owner,
string name,
global::Fal.AnyOf<global::System.DateTime?, string>? start = default,
global::Fal.AnyOf<global::System.DateTime?, string>? end = default,
global::Fal.AnyOf<global::Fal.ServerlessListAppEventsCategory2?, global::System.Collections.Generic.IList<global::Fal.ServerlessListAppEventsCategoryItem>>? category = default,
int? limit = default,
string? cursor = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Application Events<br/>
/// Returns the operational event history for an application: deployments,<br/>
/// configuration changes, and runner lifecycle transitions (started, failed,<br/>
/// draining, etc.), newest first.<br/>
/// **Use cases:**<br/>
/// - Incident correlation: answer "what changed around this time?" — did a<br/>
/// deploy, config change, or runner failure coincide with an error spike?<br/>
/// - Deployment audit: see when revisions went out and who triggered them<br/>
/// **Time range:** defaults to the last 24 hours when `start`/`end` are<br/>
/// omitted. Use `category` filters to narrow to specific event types.<br/>
/// **Authentication:** Required via API key. Only the app owner can query it.
/// </summary>
/// <param name="owner">
/// Username of the app owner<br/>
/// Example: user_123
/// </param>
/// <param name="name">
/// Application name<br/>
/// Example: my-app
/// </param>
/// <param name="start">
/// Start date in ISO8601 format (e.g., '2025-01-01T00:00:00Z' or '2025-01-01'). Defaults to 24 hours ago.<br/>
/// Example: 2025-01-01T00:00:00Z
/// </param>
/// <param name="end">
/// End date in ISO8601 format, exclusive (e.g., '2025-02-01T00:00:00Z' or '2025-02-01'). Data up to but not including this timestamp is returned. Defaults to current time.<br/>
/// Example: 2025-02-01T00:00:00Z
/// </param>
/// <param name="category">
/// Filter by event category. Repeat the parameter to include multiple categories: ?category=deployment_started&amp;category=config_changed<br/>
/// Example: [deployment_started]
/// </param>
/// <param name="limit">
/// Maximum number of events to return per page (1-1000)<br/>
/// Default Value: 50<br/>
/// Example: 50
/// </param>
/// <param name="cursor">
/// Pagination cursor from previous response<br/>
/// Example: Mg==
/// </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.ServerlessListAppEventsResponse>> ServerlessListAppEventsAsResponseAsync(
string owner,
string name,
global::Fal.AnyOf<global::System.DateTime?, string>? start = default,
global::Fal.AnyOf<global::System.DateTime?, string>? end = default,
global::Fal.AnyOf<global::Fal.ServerlessListAppEventsCategory2?, global::System.Collections.Generic.IList<global::Fal.ServerlessListAppEventsCategoryItem>>? category = default,
int? limit = default,
string? cursor = default,
global::Fal.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#nullable enable

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

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

return default;
}

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

writer.WriteStringValue(global::Fal.GetAssetCollectionHierarchyResponseAncestorTypeExtensions.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 GetAssetCollectionHierarchyResponseAncestorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.GetAssetCollectionHierarchyResponseAncestorType?>
{
/// <inheritdoc />
public override global::Fal.GetAssetCollectionHierarchyResponseAncestorType? 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.GetAssetCollectionHierarchyResponseAncestorTypeExtensions.ToEnum(stringValue);
}

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

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Fal.GetAssetCollectionHierarchyResponseAncestorType? 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.GetAssetCollectionHierarchyResponseAncestorTypeExtensions.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 GetAssetCollectionHierarchyResponseErrorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Fal.GetAssetCollectionHierarchyResponseErrorType>
{
/// <inheritdoc />
public override global::Fal.GetAssetCollectionHierarchyResponseErrorType 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.GetAssetCollectionHierarchyResponseErrorTypeExtensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

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

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

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

return default;
}

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

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