magic-hour 0.38.0 → 0.39.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-gif-generator/request-types.d.ts +5 -0
- package/dist/resources/v1/ai-gif-generator/request-types.js +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/v1-ai-gif-generator-create-body-output-format-enum.d.ts +4 -0
- package/dist/types/v1-ai-gif-generator-create-body-output-format-enum.js +2 -0
- package/dist/types/v1-ai-gif-generator-create-body.d.ts +5 -0
- package/dist/types/v1-ai-gif-generator-create-body.js +4 -0
- package/package.json +5 -3
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.38.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -8,6 +8,10 @@ export type CreateRequest = {
|
|
|
8
8
|
* The name of gif. This value is mainly used for your own identification of the gif.
|
|
9
9
|
*/
|
|
10
10
|
name?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The output file format for the generated animation.
|
|
13
|
+
*/
|
|
14
|
+
outputFormat?: ("gif" | "mp4" | "webm") | undefined;
|
|
11
15
|
style: V1AiGifGeneratorCreateBodyStyle;
|
|
12
16
|
};
|
|
13
17
|
/**
|
|
@@ -17,6 +21,7 @@ export type CreateRequest = {
|
|
|
17
21
|
*/
|
|
18
22
|
export type External$CreateRequest = {
|
|
19
23
|
name?: string | undefined;
|
|
24
|
+
output_format?: ("gif" | "mp4" | "webm") | undefined;
|
|
20
25
|
style: External$V1AiGifGeneratorCreateBodyStyle;
|
|
21
26
|
};
|
|
22
27
|
export declare const Schemas$CreateRequest: {
|
|
@@ -43,11 +43,13 @@ const v1_ai_gif_generator_create_body_style_1 = require("../../../types/v1-ai-gi
|
|
|
43
43
|
const SchemaIn$CreateRequest = z
|
|
44
44
|
.object({
|
|
45
45
|
name: z.string().optional(),
|
|
46
|
+
output_format: z.enum(["gif", "mp4", "webm"]).optional(),
|
|
46
47
|
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.in,
|
|
47
48
|
})
|
|
48
49
|
.transform((obj) => {
|
|
49
50
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
51
|
name: "name",
|
|
52
|
+
output_format: "outputFormat",
|
|
51
53
|
style: "style",
|
|
52
54
|
});
|
|
53
55
|
});
|
|
@@ -58,11 +60,13 @@ const SchemaIn$CreateRequest = z
|
|
|
58
60
|
const SchemaOut$CreateRequest = z
|
|
59
61
|
.object({
|
|
60
62
|
name: z.string().optional(),
|
|
63
|
+
outputFormat: z.enum(["gif", "mp4", "webm"]).optional(),
|
|
61
64
|
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.out,
|
|
62
65
|
})
|
|
63
66
|
.transform((obj) => {
|
|
64
67
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
68
|
name: "name",
|
|
69
|
+
outputFormat: "output_format",
|
|
66
70
|
style: "style",
|
|
67
71
|
});
|
|
68
72
|
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { V1AiFaceEditorCreateBodyAssets } from "./v1-ai-face-editor-create-body-
|
|
|
7
7
|
export { V1AiFaceEditorCreateBodyStyle } from "./v1-ai-face-editor-create-body-style";
|
|
8
8
|
export { V1AiFaceEditorCreateResponse } from "./v1-ai-face-editor-create-response";
|
|
9
9
|
export { V1AiGifGeneratorCreateBody } from "./v1-ai-gif-generator-create-body";
|
|
10
|
+
export { V1AiGifGeneratorCreateBodyOutputFormatEnum } from "./v1-ai-gif-generator-create-body-output-format-enum";
|
|
10
11
|
export { V1AiGifGeneratorCreateBodyStyle } from "./v1-ai-gif-generator-create-body-style";
|
|
11
12
|
export { V1AiGifGeneratorCreateResponse } from "./v1-ai-gif-generator-create-response";
|
|
12
13
|
export { V1AiHeadshotGeneratorCreateBody } from "./v1-ai-headshot-generator-create-body";
|
|
@@ -8,6 +8,10 @@ export type V1AiGifGeneratorCreateBody = {
|
|
|
8
8
|
* The name of gif. This value is mainly used for your own identification of the gif.
|
|
9
9
|
*/
|
|
10
10
|
name?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The output file format for the generated animation.
|
|
13
|
+
*/
|
|
14
|
+
outputFormat?: ("gif" | "mp4" | "webm") | undefined;
|
|
11
15
|
style: V1AiGifGeneratorCreateBodyStyle;
|
|
12
16
|
};
|
|
13
17
|
/**
|
|
@@ -17,6 +21,7 @@ export type V1AiGifGeneratorCreateBody = {
|
|
|
17
21
|
*/
|
|
18
22
|
export type External$V1AiGifGeneratorCreateBody = {
|
|
19
23
|
name?: string | undefined;
|
|
24
|
+
output_format?: ("gif" | "mp4" | "webm") | undefined;
|
|
20
25
|
style: External$V1AiGifGeneratorCreateBodyStyle;
|
|
21
26
|
};
|
|
22
27
|
export declare const Schemas$V1AiGifGeneratorCreateBody: {
|
|
@@ -43,11 +43,13 @@ const v1_ai_gif_generator_create_body_style_1 = require("./v1-ai-gif-generator-c
|
|
|
43
43
|
const SchemaIn$V1AiGifGeneratorCreateBody = z
|
|
44
44
|
.object({
|
|
45
45
|
name: z.string().optional(),
|
|
46
|
+
output_format: z.enum(["gif", "mp4", "webm"]).optional(),
|
|
46
47
|
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.in,
|
|
47
48
|
})
|
|
48
49
|
.transform((obj) => {
|
|
49
50
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
51
|
name: "name",
|
|
52
|
+
output_format: "outputFormat",
|
|
51
53
|
style: "style",
|
|
52
54
|
});
|
|
53
55
|
});
|
|
@@ -58,11 +60,13 @@ const SchemaIn$V1AiGifGeneratorCreateBody = z
|
|
|
58
60
|
const SchemaOut$V1AiGifGeneratorCreateBody = z
|
|
59
61
|
.object({
|
|
60
62
|
name: z.string().optional(),
|
|
63
|
+
outputFormat: z.enum(["gif", "mp4", "webm"]).optional(),
|
|
61
64
|
style: v1_ai_gif_generator_create_body_style_1.Schemas$V1AiGifGeneratorCreateBodyStyle.out,
|
|
62
65
|
})
|
|
63
66
|
.transform((obj) => {
|
|
64
67
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
68
|
name: "name",
|
|
69
|
+
outputFormat: "output_format",
|
|
66
70
|
style: "style",
|
|
67
71
|
});
|
|
68
72
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magic-hour",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
"ts-morph": "^26.0.0",
|
|
41
41
|
"ts-node": "^10.9.2",
|
|
42
42
|
"tsc-alias": "^1.8.10",
|
|
43
|
-
"typescript": "^5.2.0"
|
|
43
|
+
"typescript": "^5.2.0",
|
|
44
|
+
"@types/qs": "6.9.8",
|
|
45
|
+
"@types/url-join": "4.0.1"
|
|
44
46
|
},
|
|
45
47
|
"bugs": "https://github.com/magichourhq/magic-hour-node/issues",
|
|
46
48
|
"description": "Node SDK for Magic Hour API",
|
|
@@ -56,4 +58,4 @@
|
|
|
56
58
|
"type": "git",
|
|
57
59
|
"url": "git://github.com/magichourhq/magic-hour-node.git"
|
|
58
60
|
}
|
|
59
|
-
}
|
|
61
|
+
}
|