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
2 changes: 1 addition & 1 deletion .sdk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "063a5d83-3d58-4579-beca-9cfebbb892bc",
"id": "fb9e22f7-76b4-4b2f-99a4-d3223a35bdc4",
"tracked_paths": [
{
"editable": true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magic-hour",
"version": "0.73.0",
"version": "0.74.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/environment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum Environment {
Environment = "https://api.magichour.ai",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.77.0",
MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.78.0",
}
8 changes: 4 additions & 4 deletions src/resources/v1/image-to-video/request-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export type CreateRequest = {
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
*
*/
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
/**
* Attributed used to dictate the style of the output
*/
Expand Down Expand Up @@ -185,7 +185,7 @@ export type External$CreateRequest = {
)
| undefined;
name?: string | undefined;
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
width?: number | null | undefined;
};
Expand Down Expand Up @@ -229,7 +229,7 @@ const SchemaIn$CreateRequest: z.ZodType<
])
.optional(),
name: z.string().optional(),
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
style: Schemas$V1ImageToVideoCreateBodyStyle.in.optional(),
width: z.number().int().nullable().optional(),
})
Expand Down Expand Up @@ -287,7 +287,7 @@ const SchemaOut$CreateRequest: z.ZodType<
])
.optional(),
name: z.string().optional(),
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
style: Schemas$V1ImageToVideoCreateBodyStyle.out.optional(),
width: z.number().int().nullable().optional(),
})
Expand Down
8 changes: 4 additions & 4 deletions src/resources/v1/text-to-video/request-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export type CreateRequest = {
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
*
*/
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
style: V1TextToVideoCreateBodyStyle;
};

Expand Down Expand Up @@ -185,7 +185,7 @@ export type External$CreateRequest = {
| undefined;
name?: string | undefined;
orientation?: ("landscape" | "portrait" | "square") | undefined;
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
style: External$V1TextToVideoCreateBodyStyle;
};

Expand Down Expand Up @@ -228,7 +228,7 @@ const SchemaIn$CreateRequest: z.ZodType<
.optional(),
name: z.string().optional(),
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
style: Schemas$V1TextToVideoCreateBodyStyle.in,
})
.transform((obj) => {
Expand Down Expand Up @@ -284,7 +284,7 @@ const SchemaOut$CreateRequest: z.ZodType<
.optional(),
name: z.string().optional(),
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
style: Schemas$V1TextToVideoCreateBodyStyle.out,
})
.transform((obj) => {
Expand Down
1 change: 1 addition & 0 deletions src/types/v1-image-to-video-create-body-resolution-enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
export type V1ImageToVideoCreateBodyResolutionEnum =
| "1080p"
| "360p"
| "480p"
| "4k"
| "720p";
8 changes: 4 additions & 4 deletions src/types/v1-image-to-video-create-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export type V1ImageToVideoCreateBody = {
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
*
*/
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
/**
* Attributed used to dictate the style of the output
*/
Expand Down Expand Up @@ -185,7 +185,7 @@ export type External$V1ImageToVideoCreateBody = {
)
| undefined;
name?: string | undefined;
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
width?: number | null | undefined;
};
Expand Down Expand Up @@ -229,7 +229,7 @@ const SchemaIn$V1ImageToVideoCreateBody: z.ZodType<
])
.optional(),
name: z.string().optional(),
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
style: Schemas$V1ImageToVideoCreateBodyStyle.in.optional(),
width: z.number().int().nullable().optional(),
})
Expand Down Expand Up @@ -287,7 +287,7 @@ const SchemaOut$V1ImageToVideoCreateBody: z.ZodType<
])
.optional(),
name: z.string().optional(),
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
style: Schemas$V1ImageToVideoCreateBodyStyle.out.optional(),
width: z.number().int().nullable().optional(),
})
Expand Down
1 change: 1 addition & 0 deletions src/types/v1-text-to-video-create-body-resolution-enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
export type V1TextToVideoCreateBodyResolutionEnum =
| "1080p"
| "360p"
| "480p"
| "4k"
| "720p";
8 changes: 4 additions & 4 deletions src/types/v1-text-to-video-create-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export type V1TextToVideoCreateBody = {
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
*
*/
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
style: V1TextToVideoCreateBodyStyle;
};

Expand Down Expand Up @@ -185,7 +185,7 @@ export type External$V1TextToVideoCreateBody = {
| undefined;
name?: string | undefined;
orientation?: ("landscape" | "portrait" | "square") | undefined;
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
style: External$V1TextToVideoCreateBodyStyle;
};

Expand Down Expand Up @@ -228,7 +228,7 @@ const SchemaIn$V1TextToVideoCreateBody: z.ZodType<
.optional(),
name: z.string().optional(),
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
style: Schemas$V1TextToVideoCreateBodyStyle.in,
})
.transform((obj) => {
Expand Down Expand Up @@ -284,7 +284,7 @@ const SchemaOut$V1TextToVideoCreateBody: z.ZodType<
.optional(),
name: z.string().optional(),
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
style: Schemas$V1TextToVideoCreateBodyStyle.out,
})
.transform((obj) => {
Expand Down
Loading