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
26 changes: 26 additions & 0 deletions src/libs/Shotstack/Generated/Shotstack.Exceptions.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,32 @@ public partial class ApiException : global::System.Exception
/// </summary>
public string? ResponseBody { get; set; }

/// <summary>
/// Successful HTTP responses that fail during processing put the cause before a bounded body preview.
/// Inspect ResponseBody for the full response; HTTP service-error messages retain their existing format.
/// </summary>
public override string Message
{
get
{
if ((int)StatusCode < 200 || (int)StatusCode >= 300 || InnerException == null)
{
return base.Message;
}

string? path = (InnerException as global::System.Text.Json.JsonException)?.Path;
return "Response processing failed after successful HTTP " +
((int)StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture) + ": " +
InnerException.GetType().FullName + ": " + BoundDiagnosticText(InnerException.Message) +
(string.IsNullOrEmpty(path) ? string.Empty : " Path: " + BoundDiagnosticText(path, 256)) +
"\nResponse preview: " + BoundDiagnosticText(base.Message);
}
}

private static string BoundDiagnosticText(string? value, int maximumLength = 512) =>
value == null ? string.Empty :
value.Length <= maximumLength ? value : value.Substring(0, maximumLength) + "... [truncated]";

/// <summary>
/// The response headers.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace Shotstack
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, object>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<object>), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ namespace Shotstack
#pragma warning restore CS3016
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.JsonSerializerContextTypes))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<object>), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Edit))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Timeline))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Shotstack.Output))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public sealed partial class JsonSerializerContextTypes
/// </summary>
public global::System.Collections.Generic.List<object>? ObjectList { get; set; }

/// <summary>
/// String arrays used by dynamic JSON option values.
/// </summary>
public string[]? StringArray { get; set; }

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed partial class RichCaptionAnimation
/// &lt;li&gt;`highlight` - Word changes to active color when spoken (shows all words)&lt;/li&gt;<br/>
/// &lt;li&gt;`pop` - Each word scales up when active&lt;/li&gt;<br/>
/// &lt;li&gt;`fade` - Gradual opacity transition per word&lt;/li&gt;<br/>
/// &lt;li&gt;`slide` - Words slide in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`slide` - Words slide in, travelling in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`bounce` - Spring animation on word appearance&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - Words appear one by one and stay visible&lt;/li&gt;<br/>
/// &lt;li&gt;`none` - No animation, all words visible immediately&lt;/li&gt;<br/>
Expand All @@ -30,7 +30,7 @@ public sealed partial class RichCaptionAnimation
public required global::Shotstack.RichCaptionAnimationStyle Style { get; set; } = global::Shotstack.RichCaptionAnimationStyle.Highlight;

/// <summary>
/// Direction for directional animations (slide). Only applicable when style is `slide`.<br/>
/// The direction words travel when style is `slide`.<br/>
/// Default Value: up<br/>
/// Example: up
/// </summary>
Expand All @@ -54,7 +54,7 @@ public sealed partial class RichCaptionAnimation
/// &lt;li&gt;`highlight` - Word changes to active color when spoken (shows all words)&lt;/li&gt;<br/>
/// &lt;li&gt;`pop` - Each word scales up when active&lt;/li&gt;<br/>
/// &lt;li&gt;`fade` - Gradual opacity transition per word&lt;/li&gt;<br/>
/// &lt;li&gt;`slide` - Words slide in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`slide` - Words slide in, travelling in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`bounce` - Spring animation on word appearance&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - Words appear one by one and stay visible&lt;/li&gt;<br/>
/// &lt;li&gt;`none` - No animation, all words visible immediately&lt;/li&gt;<br/>
Expand All @@ -63,7 +63,7 @@ public sealed partial class RichCaptionAnimation
/// Example: highlight
/// </param>
/// <param name="direction">
/// Direction for directional animations (slide). Only applicable when style is `slide`.<br/>
/// The direction words travel when style is `slide`.<br/>
/// Default Value: up<br/>
/// Example: up
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Shotstack
{
/// <summary>
/// Direction for directional animations (slide). Only applicable when style is `slide`.<br/>
/// The direction words travel when style is `slide`.<br/>
/// Default Value: up<br/>
/// Example: up
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Shotstack
/// &lt;li&gt;`highlight` - Word changes to active color when spoken (shows all words)&lt;/li&gt;<br/>
/// &lt;li&gt;`pop` - Each word scales up when active&lt;/li&gt;<br/>
/// &lt;li&gt;`fade` - Gradual opacity transition per word&lt;/li&gt;<br/>
/// &lt;li&gt;`slide` - Words slide in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`slide` - Words slide in, travelling in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`bounce` - Spring animation on word appearance&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - Words appear one by one and stay visible&lt;/li&gt;<br/>
/// &lt;li&gt;`none` - No animation, all words visible immediately&lt;/li&gt;<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ namespace Shotstack
public sealed partial class RichTextAnimation
{
/// <summary>
/// The animation preset to apply. Available presets: &lt;ul&gt;<br/>
/// &lt;li&gt;`fadeIn` - fadeIn in animation&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - slide in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - typewriter effect&lt;/li&gt;<br/>
/// &lt;li&gt;`ascend` - ascend from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - shift in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`movingLetters` - letters move in from a direction&lt;/li&gt;<br/>
/// The animation preset to apply. Every preset starts with the clip. Available presets: &lt;ul&gt;<br/>
/// &lt;li&gt;`fadeIn` - fade in&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - fade in while sliding in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - type the text out behind a cursor&lt;/li&gt;<br/>
/// &lt;li&gt;`ascend` - each word rises (`up`) or drops (`down`) into place&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - fade in while shifting a short distance in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`movingLetters` - fade in, then ripple the letters along `direction` for the rest of the clip. Ignores `duration` and `style`.&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// Example: shift
/// </summary>
Expand All @@ -26,15 +26,15 @@ public sealed partial class RichTextAnimation
public required global::Shotstack.RichTextAnimationPreset Preset { get; set; }

/// <summary>
/// Override animation duration in seconds. Must be between 0.1 and 30 seconds.<br/>
/// Override animation duration in seconds. Must be between 0.1 and 30 seconds. When omitted, the text animates at about 30 characters per second, taking at least 0.3 seconds and at most 90% of the clip.<br/>
/// Example: 2
/// </summary>
/// <example>2</example>
[global::System.Text.Json.Serialization.JsonPropertyName("duration")]
public double? Duration { get; set; }

/// <summary>
/// Animation style - animate by character or by word. Only applicable for typewriter and shift animations.<br/>
/// Animate by character or by word. Applies to `fadeIn`, `slideIn`, `typewriter` and `shift`, where `shift` defaults to `character`. `ascend` always animates by word.<br/>
/// Example: character
/// </summary>
/// <example>character</example>
Expand All @@ -43,7 +43,7 @@ public sealed partial class RichTextAnimation
public global::Shotstack.RichTextAnimationStyle? Style { get; set; }

/// <summary>
/// Direction for directional animations. Required for slideIn, ascend, shift, and movingLetters presets. &lt;ul&gt;<br/>
/// The direction the text travels. Defaults to `left` for `slideIn` and `shift`, and to `up` for `ascend` and `movingLetters`. &lt;ul&gt;<br/>
/// &lt;li&gt;`ascend` - supports: up, down&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - supports: left, right, up, down&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - supports: left, right, up, down&lt;/li&gt;<br/>
Expand All @@ -66,26 +66,26 @@ public sealed partial class RichTextAnimation
/// Initializes a new instance of the <see cref="RichTextAnimation" /> class.
/// </summary>
/// <param name="preset">
/// The animation preset to apply. Available presets: &lt;ul&gt;<br/>
/// &lt;li&gt;`fadeIn` - fadeIn in animation&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - slide in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - typewriter effect&lt;/li&gt;<br/>
/// &lt;li&gt;`ascend` - ascend from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - shift in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`movingLetters` - letters move in from a direction&lt;/li&gt;<br/>
/// The animation preset to apply. Every preset starts with the clip. Available presets: &lt;ul&gt;<br/>
/// &lt;li&gt;`fadeIn` - fade in&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - fade in while sliding in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - type the text out behind a cursor&lt;/li&gt;<br/>
/// &lt;li&gt;`ascend` - each word rises (`up`) or drops (`down`) into place&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - fade in while shifting a short distance in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`movingLetters` - fade in, then ripple the letters along `direction` for the rest of the clip. Ignores `duration` and `style`.&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// Example: shift
/// </param>
/// <param name="duration">
/// Override animation duration in seconds. Must be between 0.1 and 30 seconds.<br/>
/// Override animation duration in seconds. Must be between 0.1 and 30 seconds. When omitted, the text animates at about 30 characters per second, taking at least 0.3 seconds and at most 90% of the clip.<br/>
/// Example: 2
/// </param>
/// <param name="style">
/// Animation style - animate by character or by word. Only applicable for typewriter and shift animations.<br/>
/// Animate by character or by word. Applies to `fadeIn`, `slideIn`, `typewriter` and `shift`, where `shift` defaults to `character`. `ascend` always animates by word.<br/>
/// Example: character
/// </param>
/// <param name="direction">
/// Direction for directional animations. Required for slideIn, ascend, shift, and movingLetters presets. &lt;ul&gt;<br/>
/// The direction the text travels. Defaults to `left` for `slideIn` and `shift`, and to `up` for `ascend` and `movingLetters`. &lt;ul&gt;<br/>
/// &lt;li&gt;`ascend` - supports: up, down&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - supports: left, right, up, down&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - supports: left, right, up, down&lt;/li&gt;<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Shotstack
{
/// <summary>
/// Direction for directional animations. Required for slideIn, ascend, shift, and movingLetters presets. &lt;ul&gt;<br/>
/// The direction the text travels. Defaults to `left` for `slideIn` and `shift`, and to `up` for `ascend` and `movingLetters`. &lt;ul&gt;<br/>
/// &lt;li&gt;`ascend` - supports: up, down&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - supports: left, right, up, down&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - supports: left, right, up, down&lt;/li&gt;<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
namespace Shotstack
{
/// <summary>
/// The animation preset to apply. Available presets: &lt;ul&gt;<br/>
/// &lt;li&gt;`fadeIn` - fadeIn in animation&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - slide in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - typewriter effect&lt;/li&gt;<br/>
/// &lt;li&gt;`ascend` - ascend from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - shift in from a direction&lt;/li&gt;<br/>
/// &lt;li&gt;`movingLetters` - letters move in from a direction&lt;/li&gt;<br/>
/// The animation preset to apply. Every preset starts with the clip. Available presets: &lt;ul&gt;<br/>
/// &lt;li&gt;`fadeIn` - fade in&lt;/li&gt;<br/>
/// &lt;li&gt;`slideIn` - fade in while sliding in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`typewriter` - type the text out behind a cursor&lt;/li&gt;<br/>
/// &lt;li&gt;`ascend` - each word rises (`up`) or drops (`down`) into place&lt;/li&gt;<br/>
/// &lt;li&gt;`shift` - fade in while shifting a short distance in `direction`&lt;/li&gt;<br/>
/// &lt;li&gt;`movingLetters` - fade in, then ripple the letters along `direction` for the rest of the clip. Ignores `duration` and `style`.&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// Example: shift
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Shotstack
{
/// <summary>
/// Animation style - animate by character or by word. Only applicable for typewriter and shift animations.<br/>
/// Animate by character or by word. Applies to `fadeIn`, `slideIn`, `typewriter` and `shift`, where `shift` defaults to `character`. `ascend` always animates by word.<br/>
/// Example: character
/// </summary>
public enum RichTextAnimationStyle
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Shotstack/Generated/Shotstack.Models.Transition.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class Transition
/// &lt;li&gt;`shuffleTopLeft` - rotate in from top left&lt;/li&gt;<br/>
/// &lt;li&gt;`zoom` - fast zoom in&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// The transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.
/// The transition speed can also be controlled by appending `Fast` or `Slow` to any transition except `zoom`, e.g. `fadeFast` or `carouselLeftSlow`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("in")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.TransitionInJsonConverter))]
Expand Down Expand Up @@ -64,7 +64,7 @@ public sealed partial class Transition
/// &lt;li&gt;`shuffleTopLeft` - rotate out from top left&lt;/li&gt;<br/>
/// &lt;li&gt;`zoom` - fast zoom out&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// The transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.
/// The transition speed can also be controlled by appending `Fast` or `Slow` to any transition except `zoom`, e.g. `fadeFast` or `carouselLeftSlow`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("out")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Shotstack.JsonConverters.TransitionOutJsonConverter))]
Expand Down Expand Up @@ -104,7 +104,7 @@ public sealed partial class Transition
/// &lt;li&gt;`shuffleTopLeft` - rotate in from top left&lt;/li&gt;<br/>
/// &lt;li&gt;`zoom` - fast zoom in&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// The transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.
/// The transition speed can also be controlled by appending `Fast` or `Slow` to any transition except `zoom`, e.g. `fadeFast` or `carouselLeftSlow`.
/// </param>
/// <param name="out">
/// The transition out. Available transitions are:<br/>
Expand All @@ -131,7 +131,7 @@ public sealed partial class Transition
/// &lt;li&gt;`shuffleTopLeft` - rotate out from top left&lt;/li&gt;<br/>
/// &lt;li&gt;`zoom` - fast zoom out&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// The transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.
/// The transition speed can also be controlled by appending `Fast` or `Slow` to any transition except `zoom`, e.g. `fadeFast` or `carouselLeftSlow`.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Shotstack
/// &lt;li&gt;`shuffleTopLeft` - rotate in from top left&lt;/li&gt;<br/>
/// &lt;li&gt;`zoom` - fast zoom in&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// The transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.
/// The transition speed can also be controlled by appending `Fast` or `Slow` to any transition except `zoom`, e.g. `fadeFast` or `carouselLeftSlow`.
/// </summary>
public enum TransitionIn
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Shotstack
/// &lt;li&gt;`shuffleTopLeft` - rotate out from top left&lt;/li&gt;<br/>
/// &lt;li&gt;`zoom` - fast zoom out&lt;/li&gt;<br/>
/// &lt;/ul&gt;<br/>
/// The transition speed can also be controlled by appending `Fast` or `Slow` to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.
/// The transition speed can also be controlled by appending `Fast` or `Slow` to any transition except `zoom`, e.g. `fadeFast` or `carouselLeftSlow`.
/// </summary>
public enum TransitionOut
{
Expand Down
Loading
Loading