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
415 changes: 415 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.GetGenerate.g.cs

Large diffs are not rendered by default.

466 changes: 466 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.PostGenerate.g.cs

Large diffs are not rendered by default.

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

namespace Shotstack
{
public partial interface IEditClient
{
/// <summary>
/// Get Generation Status<br/>
/// Get the status of an on-demand asset generation job created with the<br/>
/// generate endpoint. Jobs are owner-scoped.<br/>
/// **Base URL:** &lt;a href="#"&gt;https://api.shotstack.io/edit/{version}&lt;/a&gt;
/// </summary>
/// <param name="id"></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::Shotstack.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Shotstack.GenerationResponse> GetGenerateAsync(
string id,
global::Shotstack.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get Generation Status<br/>
/// Get the status of an on-demand asset generation job created with the<br/>
/// generate endpoint. Jobs are owner-scoped.<br/>
/// **Base URL:** &lt;a href="#"&gt;https://api.shotstack.io/edit/{version}&lt;/a&gt;
/// </summary>
/// <param name="id"></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::Shotstack.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Shotstack.AutoSDKHttpResponse<global::Shotstack.GenerationResponse>> GetGenerateAsResponseAsync(
string id,
global::Shotstack.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#nullable enable

namespace Shotstack
{
public partial interface IEditClient
{
/// <summary>
/// Generate Asset<br/>
/// Generate a single image, video or audio asset from a text prompt without<br/>
/// rendering a full edit. Submit a prompt-bearing asset; the response is<br/>
/// immediate when an identical asset has been generated before (results are<br/>
/// cached by prompt, model and options), otherwise the job is queued and can<br/>
/// be polled via the status endpoint.<br/>
/// Generation is billed in credits per asset. Identical repeat requests<br/>
/// resolve from the cache at no charge.<br/>
/// **Base URL:** &lt;a href="#"&gt;https://api.shotstack.io/edit/{version}&lt;/a&gt;
/// </summary>
/// <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::Shotstack.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Shotstack.GenerationResponse> PostGenerateAsync(

global::Shotstack.PostGenerateRequest request,
global::Shotstack.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate Asset<br/>
/// Generate a single image, video or audio asset from a text prompt without<br/>
/// rendering a full edit. Submit a prompt-bearing asset; the response is<br/>
/// immediate when an identical asset has been generated before (results are<br/>
/// cached by prompt, model and options), otherwise the job is queued and can<br/>
/// be polled via the status endpoint.<br/>
/// Generation is billed in credits per asset. Identical repeat requests<br/>
/// resolve from the cache at no charge.<br/>
/// **Base URL:** &lt;a href="#"&gt;https://api.shotstack.io/edit/{version}&lt;/a&gt;
/// </summary>
/// <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::Shotstack.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Shotstack.AutoSDKHttpResponse<global::Shotstack.GenerationResponse>> PostGenerateAsResponseAsync(

global::Shotstack.PostGenerateRequest request,
global::Shotstack.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate Asset<br/>
/// Generate a single image, video or audio asset from a text prompt without<br/>
/// rendering a full edit. Submit a prompt-bearing asset; the response is<br/>
/// immediate when an identical asset has been generated before (results are<br/>
/// cached by prompt, model and options), otherwise the job is queued and can<br/>
/// be polled via the status endpoint.<br/>
/// Generation is billed in credits per asset. Identical repeat requests<br/>
/// resolve from the cache at no charge.<br/>
/// **Base URL:** &lt;a href="#"&gt;https://api.shotstack.io/edit/{version}&lt;/a&gt;
/// </summary>
/// <param name="asset"></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::Shotstack.GenerationResponse> PostGenerateAsync(
global::Shotstack.OneOf<global::Shotstack.ImageAsset, global::Shotstack.VideoAsset, global::Shotstack.AudioAsset> asset,
global::Shotstack.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Shotstack.JsonConverters
{
/// <inheritdoc />
public sealed class ImageAssetAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Shotstack.ImageAssetAspectRatio>
public sealed class GenerationResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Shotstack.GenerationResponseStatus>
{
/// <inheritdoc />
public override global::Shotstack.ImageAssetAspectRatio Read(
public override global::Shotstack.GenerationResponseStatus Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class ImageAssetAspectRatioJsonConverter : global::System.Text.Jso
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Shotstack.ImageAssetAspectRatioExtensions.ToEnum(stringValue) ?? default;
return global::Shotstack.GenerationResponseStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Shotstack.ImageAssetAspectRatio)numValue;
return (global::Shotstack.GenerationResponseStatus)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Shotstack.ImageAssetAspectRatio);
return default(global::Shotstack.GenerationResponseStatus);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,12 +42,12 @@ public sealed class ImageAssetAspectRatioJsonConverter : global::System.Text.Jso
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Shotstack.ImageAssetAspectRatio value,
global::Shotstack.GenerationResponseStatus value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Shotstack.ImageAssetAspectRatioExtensions.ToValueString(value));
writer.WriteStringValue(global::Shotstack.GenerationResponseStatusExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Shotstack.JsonConverters
{
/// <inheritdoc />
public sealed class VideoAssetAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Shotstack.VideoAssetAspectRatio?>
public sealed class GenerationResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Shotstack.GenerationResponseStatus?>
{
/// <inheritdoc />
public override global::Shotstack.VideoAssetAspectRatio? Read(
public override global::Shotstack.GenerationResponseStatus? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,19 +18,19 @@ public sealed class VideoAssetAspectRatioNullableJsonConverter : global::System.
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Shotstack.VideoAssetAspectRatioExtensions.ToEnum(stringValue);
return global::Shotstack.GenerationResponseStatusExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Shotstack.VideoAssetAspectRatio)numValue;
return (global::Shotstack.GenerationResponseStatus)numValue;
}
case global::System.Text.Json.JsonTokenType.Null:
{
return default(global::Shotstack.VideoAssetAspectRatio?);
return default(global::Shotstack.GenerationResponseStatus?);
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -42,7 +42,7 @@ public sealed class VideoAssetAspectRatioNullableJsonConverter : global::System.
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Shotstack.VideoAssetAspectRatio? value,
global::Shotstack.GenerationResponseStatus? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -53,7 +53,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::Shotstack.VideoAssetAspectRatioExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::Shotstack.GenerationResponseStatusExtensions.ToValueString(value.Value));
}
}
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading