magic-hour 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-talking-photo/request-types.d.ts +5 -0
- package/dist/resources/v1/ai-talking-photo/request-types.js +4 -0
- package/dist/types/v1-ai-talking-photo-create-body.d.ts +5 -0
- package/dist/types/v1-ai-talking-photo-create-body.js +4 -0
- package/package.json +2 -2
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -4,5 +4,5 @@ exports.Environment = void 0;
|
|
|
4
4
|
var Environment;
|
|
5
5
|
(function (Environment) {
|
|
6
6
|
Environment["Environment"] = "https://api.magichour.ai";
|
|
7
|
-
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.46.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -13,6 +13,10 @@ export type CreateRequest = {
|
|
|
13
13
|
* The end time of the input audio in seconds. The maximum duration allowed is 60 seconds.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
|
+
/**
|
|
17
|
+
* Constrains the larger dimension (height or width) of the output video. Allows you to set a lower resolution than your plan's maximum if desired. The value is capped by your plan's max resolution.
|
|
18
|
+
*/
|
|
19
|
+
maxResolution?: number | undefined;
|
|
16
20
|
/**
|
|
17
21
|
* Give your image a custom name for easy identification.
|
|
18
22
|
*/
|
|
@@ -34,6 +38,7 @@ export type CreateRequest = {
|
|
|
34
38
|
export type External$CreateRequest = {
|
|
35
39
|
assets: External$V1AiTalkingPhotoCreateBodyAssets;
|
|
36
40
|
end_seconds: number;
|
|
41
|
+
max_resolution?: number | undefined;
|
|
37
42
|
name?: string | undefined;
|
|
38
43
|
start_seconds: number;
|
|
39
44
|
style?: External$V1AiTalkingPhotoCreateBodyStyle | undefined;
|
|
@@ -45,6 +45,7 @@ const SchemaIn$CreateRequest = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
+
max_resolution: z.number().int().optional(),
|
|
48
49
|
name: z.string().optional(),
|
|
49
50
|
start_seconds: z.number(),
|
|
50
51
|
style: v1_ai_talking_photo_create_body_style_1.Schemas$V1AiTalkingPhotoCreateBodyStyle.in.optional(),
|
|
@@ -53,6 +54,7 @@ const SchemaIn$CreateRequest = z
|
|
|
53
54
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
54
55
|
assets: "assets",
|
|
55
56
|
end_seconds: "endSeconds",
|
|
57
|
+
max_resolution: "maxResolution",
|
|
56
58
|
name: "name",
|
|
57
59
|
start_seconds: "startSeconds",
|
|
58
60
|
style: "style",
|
|
@@ -66,6 +68,7 @@ const SchemaOut$CreateRequest = z
|
|
|
66
68
|
.object({
|
|
67
69
|
assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.out,
|
|
68
70
|
endSeconds: z.number(),
|
|
71
|
+
maxResolution: z.number().int().optional(),
|
|
69
72
|
name: z.string().optional(),
|
|
70
73
|
startSeconds: z.number(),
|
|
71
74
|
style: v1_ai_talking_photo_create_body_style_1.Schemas$V1AiTalkingPhotoCreateBodyStyle.out.optional(),
|
|
@@ -74,6 +77,7 @@ const SchemaOut$CreateRequest = z
|
|
|
74
77
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
75
78
|
assets: "assets",
|
|
76
79
|
endSeconds: "end_seconds",
|
|
80
|
+
maxResolution: "max_resolution",
|
|
77
81
|
name: "name",
|
|
78
82
|
startSeconds: "start_seconds",
|
|
79
83
|
style: "style",
|
|
@@ -13,6 +13,10 @@ export type V1AiTalkingPhotoCreateBody = {
|
|
|
13
13
|
* The end time of the input audio in seconds. The maximum duration allowed is 60 seconds.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
|
+
/**
|
|
17
|
+
* Constrains the larger dimension (height or width) of the output video. Allows you to set a lower resolution than your plan's maximum if desired. The value is capped by your plan's max resolution.
|
|
18
|
+
*/
|
|
19
|
+
maxResolution?: number | undefined;
|
|
16
20
|
/**
|
|
17
21
|
* Give your image a custom name for easy identification.
|
|
18
22
|
*/
|
|
@@ -34,6 +38,7 @@ export type V1AiTalkingPhotoCreateBody = {
|
|
|
34
38
|
export type External$V1AiTalkingPhotoCreateBody = {
|
|
35
39
|
assets: External$V1AiTalkingPhotoCreateBodyAssets;
|
|
36
40
|
end_seconds: number;
|
|
41
|
+
max_resolution?: number | undefined;
|
|
37
42
|
name?: string | undefined;
|
|
38
43
|
start_seconds: number;
|
|
39
44
|
style?: External$V1AiTalkingPhotoCreateBodyStyle | undefined;
|
|
@@ -45,6 +45,7 @@ const SchemaIn$V1AiTalkingPhotoCreateBody = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
+
max_resolution: z.number().int().optional(),
|
|
48
49
|
name: z.string().optional(),
|
|
49
50
|
start_seconds: z.number(),
|
|
50
51
|
style: v1_ai_talking_photo_create_body_style_1.Schemas$V1AiTalkingPhotoCreateBodyStyle.in.optional(),
|
|
@@ -53,6 +54,7 @@ const SchemaIn$V1AiTalkingPhotoCreateBody = z
|
|
|
53
54
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
54
55
|
assets: "assets",
|
|
55
56
|
end_seconds: "endSeconds",
|
|
57
|
+
max_resolution: "maxResolution",
|
|
56
58
|
name: "name",
|
|
57
59
|
start_seconds: "startSeconds",
|
|
58
60
|
style: "style",
|
|
@@ -66,6 +68,7 @@ const SchemaOut$V1AiTalkingPhotoCreateBody = z
|
|
|
66
68
|
.object({
|
|
67
69
|
assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.out,
|
|
68
70
|
endSeconds: z.number(),
|
|
71
|
+
maxResolution: z.number().int().optional(),
|
|
69
72
|
name: z.string().optional(),
|
|
70
73
|
startSeconds: z.number(),
|
|
71
74
|
style: v1_ai_talking_photo_create_body_style_1.Schemas$V1AiTalkingPhotoCreateBodyStyle.out.optional(),
|
|
@@ -74,6 +77,7 @@ const SchemaOut$V1AiTalkingPhotoCreateBody = z
|
|
|
74
77
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
75
78
|
assets: "assets",
|
|
76
79
|
endSeconds: "end_seconds",
|
|
80
|
+
maxResolution: "max_resolution",
|
|
77
81
|
name: "name",
|
|
78
82
|
startSeconds: "start_seconds",
|
|
79
83
|
style: "style",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magic-hour",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -59,4 +59,4 @@
|
|
|
59
59
|
"type": "git",
|
|
60
60
|
"url": "git://github.com/magichourhq/magic-hour-node.git"
|
|
61
61
|
}
|
|
62
|
-
}
|
|
62
|
+
}
|