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

Large diffs are not rendered by default.

416 changes: 416 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.EditClient.GetModels.g.cs

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.IEditClient.GetModel.g.cs
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 Model<br/>
/// Get one generation model, including the JSON Schema for the options it accepts and<br/>
/// what it costs in credits.<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.GenerationModel> GetModelAsync(
string id,
global::Shotstack.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get Generation Model<br/>
/// Get one generation model, including the JSON Schema for the options it accepts and<br/>
/// what it costs in credits.<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.GenerationModel>> GetModelAsResponseAsync(
string id,
global::Shotstack.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
42 changes: 42 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.IEditClient.GetModels.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#nullable enable

namespace Shotstack
{
public partial interface IEditClient
{
/// <summary>
/// List Generation Models<br/>
/// List the generation models available for `prompt`-bearing image, video and audio<br/>
/// assets, with the options each accepts and what it costs in credits.<br/>
/// Use this to populate a model picker and render its option fields, rather than<br/>
/// hard coding a model list. A newly launched model appears here without any change<br/>
/// on your side. Each entry carries the asset type it generates, so filter the list<br/>
/// client side when a picker only needs one kind.<br/>
/// Option schemas are omitted by default. Request them with `expand=options`.<br/>
/// **Base URL:** &lt;a href="#"&gt;https://api.shotstack.io/edit/{version}&lt;/a&gt;
/// </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::Shotstack.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Shotstack.GenerationModelListResponse> GetModelsAsync(
global::Shotstack.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List Generation Models<br/>
/// List the generation models available for `prompt`-bearing image, video and audio<br/>
/// assets, with the options each accepts and what it costs in credits.<br/>
/// Use this to populate a model picker and render its option fields, rather than<br/>
/// hard coding a model list. A newly launched model appears here without any change<br/>
/// on your side. Each entry carries the asset type it generates, so filter the list<br/>
/// client side when a picker only needs one kind.<br/>
/// Option schemas are omitted by default. Request them with `expand=options`.<br/>
/// **Base URL:** &lt;a href="#"&gt;https://api.shotstack.io/edit/{version}&lt;/a&gt;
/// </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::Shotstack.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Shotstack.AutoSDKHttpResponse<global::Shotstack.GenerationModelListResponse>> GetModelsAsResponseAsync(
global::Shotstack.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 Shotstack.JsonConverters
{
/// <inheritdoc />
public sealed class GenerationModelPricingUnitJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Shotstack.GenerationModelPricingUnit>
{
/// <inheritdoc />
public override global::Shotstack.GenerationModelPricingUnit 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::Shotstack.GenerationModelPricingUnitExtensions.ToEnum(stringValue) ?? default;
}

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

return default;
}

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

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

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

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

return default;
}

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

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

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

return default;
}

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

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

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

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

return default;
}

/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Shotstack.GenerationModelType? 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::Shotstack.GenerationModelTypeExtensions.ToValueString(value.Value));
}
}
}
}
20 changes: 20 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,14 @@ namespace Shotstack

typeof(global::Shotstack.JsonConverters.GenerationResponseStatusNullableJsonConverter),

typeof(global::Shotstack.JsonConverters.GenerationModelPricingUnitJsonConverter),

typeof(global::Shotstack.JsonConverters.GenerationModelPricingUnitNullableJsonConverter),

typeof(global::Shotstack.JsonConverters.GenerationModelTypeJsonConverter),

typeof(global::Shotstack.JsonConverters.GenerationModelTypeNullableJsonConverter),

typeof(global::Shotstack.JsonConverters.AssetJsonConverter),

typeof(global::Shotstack.JsonConverters.DestinationsJsonConverter),
Expand Down Expand Up @@ -363,6 +371,8 @@ namespace Shotstack

typeof(global::Shotstack.JsonConverters.OneOfJsonConverter<float?, global::System.Collections.Generic.IList<global::Shotstack.Tween>>),

typeof(global::Shotstack.JsonConverters.OneOfJsonConverter<double?, object>),

typeof(global::Shotstack.JsonConverters.OneOfJsonConverter<global::Shotstack.ImageAsset, global::Shotstack.VideoAsset, global::Shotstack.AudioAsset>),

typeof(global::Shotstack.JsonConverters.UnixTimestampJsonConverter),
Expand Down Expand Up @@ -606,6 +616,14 @@ namespace Shotstack
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.AzureBlobStorageDestinationOptions))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.GenerationResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.GenerationResponseStatus), TypeInfoPropertyName = "GenerationResponseStatus2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.GenerationModelPricing))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.GenerationModelPricingUnit), TypeInfoPropertyName = "GenerationModelPricingUnit2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.OneOf<double?, object>), TypeInfoPropertyName = "OneOfDoubleObject2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.GenerationModel))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.GenerationModelType), TypeInfoPropertyName = "GenerationModelType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.GenerationModelListResponse))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Shotstack.GenerationModel>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.PostGenerateRequest))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.OneOf<global::Shotstack.ImageAsset, global::Shotstack.VideoAsset, global::Shotstack.AudioAsset>), TypeInfoPropertyName = "OneOfImageAssetVideoAssetAudioAsset2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Shotstack.MergeField>))]
Expand All @@ -624,6 +642,8 @@ namespace Shotstack
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Shotstack.SourceResponseData>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Shotstack.RenditionResponseAttributes>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Shotstack.IngestErrorResponseData>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Shotstack.GenerationModel>))]
public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext
{
}
Expand Down
Loading