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 @@ -43,7 +43,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(

/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down Expand Up @@ -100,7 +100,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(
}
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down Expand Up @@ -688,7 +688,7 @@ partial void ProcessVideoAssetsGeneratePresignedUrlResponseContent(
}
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial interface IFilesClient
{
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down Expand Up @@ -53,7 +53,7 @@ public partial interface IFilesClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down Expand Up @@ -100,7 +100,7 @@ public partial interface IFilesClient
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate asset upload urls<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.<br/>
/// Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// The response array will match the order of items in the request body.<br/>
/// **Valid file extensions per asset type**:<br/>
/// - video: mp4, m4v, mov, webm<br/>
Expand Down
4 changes: 2 additions & 2 deletions src/libs/MagicHour/Generated/MagicHour.IMagicHourClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ namespace MagicHour
{
/// <summary>
/// Magic Hour provides an API (beta) that can be integrated into your own application to generate videos and images using AI. <br/>
/// Webhook documentation can be found [here](https://magichour.ai/docs/webhook).<br/>
/// Webhook documentation can be found [here](https://docs.magichour.ai/webhook-reference).<br/>
/// If you have any questions, please reach out to us via [discord](https://discord.gg/JX5rgsZaJp).<br/>
/// # Authentication<br/>
/// Every request requires an API key.<br/>
/// To get started, first generate your API key [here](https://magichour.ai/settings/developer).<br/>
/// To get started, first generate your API key [here](https://magichour.ai/developer?tab=api-keys&amp;utm_source=docs&amp;utm_medium=referral&amp;utm_campaign=api-reference).<br/>
/// Then, add the `Authorization` header to the request.<br/>
/// | Key | Value |<br/>
/// |-|-|<br/>
Expand Down
4 changes: 2 additions & 2 deletions src/libs/MagicHour/Generated/MagicHour.MagicHourClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ namespace MagicHour
{
/// <summary>
/// Magic Hour provides an API (beta) that can be integrated into your own application to generate videos and images using AI. <br/>
/// Webhook documentation can be found [here](https://magichour.ai/docs/webhook).<br/>
/// Webhook documentation can be found [here](https://docs.magichour.ai/webhook-reference).<br/>
/// If you have any questions, please reach out to us via [discord](https://discord.gg/JX5rgsZaJp).<br/>
/// # Authentication<br/>
/// Every request requires an API key.<br/>
/// To get started, first generate your API key [here](https://magichour.ai/settings/developer).<br/>
/// To get started, first generate your API key [here](https://magichour.ai/developer?tab=api-keys&amp;utm_source=docs&amp;utm_medium=referral&amp;utm_campaign=api-reference).<br/>
/// Then, add the `Authorization` header to the request.<br/>
/// | Key | Value |<br/>
/// |-|-|<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public sealed partial class AudioProjectsGetDetailsResponse

/// <summary>
/// The status of the audio.<br/>
/// - `draft` - the project was created but has not been submitted for rendering<br/>
/// - `queued` - the job is waiting for an available server<br/>
/// - `rendering` - the job is being processed; the `audio.started` webhook event fires when rendering begins<br/>
/// - `complete` - the job finished successfully; fires `audio.completed`<br/>
/// - `error` - the job failed during processing; fires `audio.errored`<br/>
/// - `canceled` - the job was manually canceled (for example from the Magic Hour web app)<br/>
/// **Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.<br/>
/// Example: complete
/// </summary>
/// <example>complete</example>
Expand Down Expand Up @@ -98,6 +105,13 @@ public sealed partial class AudioProjectsGetDetailsResponse
/// </param>
/// <param name="status">
/// The status of the audio.<br/>
/// - `draft` - the project was created but has not been submitted for rendering<br/>
/// - `queued` - the job is waiting for an available server<br/>
/// - `rendering` - the job is being processed; the `audio.started` webhook event fires when rendering begins<br/>
/// - `complete` - the job finished successfully; fires `audio.completed`<br/>
/// - `error` - the job failed during processing; fires `audio.errored`<br/>
/// - `canceled` - the job was manually canceled (for example from the Magic Hour web app)<br/>
/// **Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.<br/>
/// Example: complete
/// </param>
/// <param name="type">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,39 @@ namespace MagicHour
{
/// <summary>
/// The status of the audio.<br/>
/// - `draft` - the project was created but has not been submitted for rendering<br/>
/// - `queued` - the job is waiting for an available server<br/>
/// - `rendering` - the job is being processed; the `audio.started` webhook event fires when rendering begins<br/>
/// - `complete` - the job finished successfully; fires `audio.completed`<br/>
/// - `error` - the job failed during processing; fires `audio.errored`<br/>
/// - `canceled` - the job was manually canceled (for example from the Magic Hour web app)<br/>
/// **Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.<br/>
/// Example: complete
/// </summary>
public enum AudioProjectsGetDetailsResponseStatus
{
/// <summary>
///
/// ** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.
/// </summary>
Canceled,
/// <summary>
///
/// ** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.
/// </summary>
Complete,
/// <summary>
///
/// </summary>
Draft,
/// <summary>
///
/// ** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.
/// </summary>
Error,
/// <summary>
///
/// </summary>
Queued,
/// <summary>
///
/// ** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.
/// </summary>
Rendering,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public sealed partial class ImageProjectsGetDetailsResponse

/// <summary>
/// The status of the image.<br/>
/// - `draft` - the project was created but has not been submitted for rendering<br/>
/// - `queued` - the job is waiting for an available server<br/>
/// - `rendering` - the job is being processed; the `image.started` webhook event fires when rendering begins<br/>
/// - `complete` - the job finished successfully; fires `image.completed`<br/>
/// - `error` - the job failed during processing; fires `image.errored`<br/>
/// - `canceled` - the job was manually canceled (for example from the Magic Hour web app)<br/>
/// **Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.<br/>
/// Example: complete
/// </summary>
/// <example>complete</example>
Expand Down Expand Up @@ -107,6 +114,13 @@ public sealed partial class ImageProjectsGetDetailsResponse
/// </param>
/// <param name="status">
/// The status of the image.<br/>
/// - `draft` - the project was created but has not been submitted for rendering<br/>
/// - `queued` - the job is waiting for an available server<br/>
/// - `rendering` - the job is being processed; the `image.started` webhook event fires when rendering begins<br/>
/// - `complete` - the job finished successfully; fires `image.completed`<br/>
/// - `error` - the job failed during processing; fires `image.errored`<br/>
/// - `canceled` - the job was manually canceled (for example from the Magic Hour web app)<br/>
/// **Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.<br/>
/// Example: complete
/// </param>
/// <param name="imageCount">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,39 @@ namespace MagicHour
{
/// <summary>
/// The status of the image.<br/>
/// - `draft` - the project was created but has not been submitted for rendering<br/>
/// - `queued` - the job is waiting for an available server<br/>
/// - `rendering` - the job is being processed; the `image.started` webhook event fires when rendering begins<br/>
/// - `complete` - the job finished successfully; fires `image.completed`<br/>
/// - `error` - the job failed during processing; fires `image.errored`<br/>
/// - `canceled` - the job was manually canceled (for example from the Magic Hour web app)<br/>
/// **Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.<br/>
/// Example: complete
/// </summary>
public enum ImageProjectsGetDetailsResponseStatus
{
/// <summary>
///
/// ** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.
/// </summary>
Canceled,
/// <summary>
///
/// ** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.
/// </summary>
Complete,
/// <summary>
///
/// </summary>
Draft,
/// <summary>
///
/// ** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.
/// </summary>
Error,
/// <summary>
///
/// </summary>
Queued,
/// <summary>
///
/// ** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.
/// </summary>
Rendering,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace MagicHour
public sealed partial class VideoAssetsGeneratePresignedUrlResponse
{
/// <summary>
/// The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](/integration/input-files) for more details.<br/>
/// The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// Example: [{"upload_url":"https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/video.mp4"}, {"upload_url":"https://videos.magichour.ai/api-assets/id/audio.mp3?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/audio.mp3"}]
/// </summary>
/// <example>[{"upload_url":"https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/video.mp4"}, {"upload_url":"https://videos.magichour.ai/api-assets/id/audio.mp3?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/audio.mp3"}]</example>
Expand All @@ -27,7 +27,7 @@ public sealed partial class VideoAssetsGeneratePresignedUrlResponse
/// Initializes a new instance of the <see cref="VideoAssetsGeneratePresignedUrlResponse" /> class.
/// </summary>
/// <param name="items">
/// The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](/integration/input-files) for more details.<br/>
/// The list of upload URLs and file paths for the assets. The response array will match the order of items in the request body. Refer to the [Input Files Guide](/integration/inputs-and-outputs) for more details.<br/>
/// Example: [{"upload_url":"https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/video.mp4"}, {"upload_url":"https://videos.magichour.ai/api-assets/id/audio.mp3?auth-value=1234567890","expires_at":"2024-07-25T16:56:21.932Z","file_path":"api-assets/id/audio.mp3"}]
/// </param>
#if NET7_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public sealed partial class VideoProjectsGetDetailsResponse

/// <summary>
/// The status of the video.<br/>
/// - `draft` - the project was created but has not been submitted for rendering<br/>
/// - `queued` - the job is waiting for an available server<br/>
/// - `rendering` - the job is being processed; the `video.started` webhook event fires when rendering begins<br/>
/// - `complete` - the job finished successfully; fires `video.completed`<br/>
/// - `error` - the job failed during processing; fires `video.errored`<br/>
/// - `canceled` - the job was manually canceled (for example from the Magic Hour web app)<br/>
/// **Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.<br/>
/// Example: complete
/// </summary>
/// <example>complete</example>
Expand Down Expand Up @@ -143,6 +150,13 @@ public sealed partial class VideoProjectsGetDetailsResponse
/// </param>
/// <param name="status">
/// The status of the video.<br/>
/// - `draft` - the project was created but has not been submitted for rendering<br/>
/// - `queued` - the job is waiting for an available server<br/>
/// - `rendering` - the job is being processed; the `video.started` webhook event fires when rendering begins<br/>
/// - `complete` - the job finished successfully; fires `video.completed`<br/>
/// - `error` - the job failed during processing; fires `video.errored`<br/>
/// - `canceled` - the job was manually canceled (for example from the Magic Hour web app)<br/>
/// **Note:** `rendering`, `complete`, and `error` have matching webhook events; `canceled` does not - a canceled job emits no webhook event, so poll this endpoint to detect cancellation.<br/>
/// Example: complete
/// </param>
/// <param name="type">
Expand Down
Loading