magic-hour 0.11.0 → 0.12.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.
Files changed (36) hide show
  1. package/README.md +4 -0
  2. package/dist/environment.d.ts +1 -1
  3. package/dist/environment.js +1 -1
  4. package/dist/resources/v1/ai-talking-photo/index.d.ts +2 -0
  5. package/dist/resources/v1/ai-talking-photo/index.js +5 -0
  6. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +38 -0
  7. package/dist/resources/v1/ai-talking-photo/request-types.js +80 -0
  8. package/dist/resources/v1/ai-talking-photo/resource-client.d.ts +14 -0
  9. package/dist/resources/v1/ai-talking-photo/resource-client.js +30 -0
  10. package/dist/resources/v1/index.d.ts +1 -0
  11. package/dist/resources/v1/index.js +2 -1
  12. package/dist/resources/v1/resource-client.d.ts +2 -0
  13. package/dist/resources/v1/resource-client.js +2 -0
  14. package/dist/types/index.d.ts +9 -0
  15. package/dist/types/v1-ai-talking-photo-create-body-assets.d.ts +27 -0
  16. package/dist/types/v1-ai-talking-photo-create-body-assets.js +71 -0
  17. package/dist/types/v1-ai-talking-photo-create-body.d.ts +38 -0
  18. package/dist/types/v1-ai-talking-photo-create-body.js +80 -0
  19. package/dist/types/v1-ai-talking-photo-create-response.d.ts +27 -0
  20. package/dist/types/v1-ai-talking-photo-create-response.js +71 -0
  21. package/dist/types/v1-ai-talking-photo-create-response400.d.ts +19 -0
  22. package/dist/types/v1-ai-talking-photo-create-response400.js +67 -0
  23. package/dist/types/v1-ai-talking-photo-create-response401-message-enum.d.ts +4 -0
  24. package/dist/types/v1-ai-talking-photo-create-response401-message-enum.js +2 -0
  25. package/dist/types/v1-ai-talking-photo-create-response401.d.ts +19 -0
  26. package/dist/types/v1-ai-talking-photo-create-response401.js +67 -0
  27. package/dist/types/v1-ai-talking-photo-create-response404-message-enum.d.ts +4 -0
  28. package/dist/types/v1-ai-talking-photo-create-response404-message-enum.js +2 -0
  29. package/dist/types/v1-ai-talking-photo-create-response404.d.ts +19 -0
  30. package/dist/types/v1-ai-talking-photo-create-response404.js +67 -0
  31. package/dist/types/v1-ai-talking-photo-create-response422.d.ts +19 -0
  32. package/dist/types/v1-ai-talking-photo-create-response422.js +67 -0
  33. package/dist/types/v1-video-to-video-create-body-style-art-style-enum.d.ts +1 -1
  34. package/dist/types/v1-video-to-video-create-body-style.d.ts +2 -2
  35. package/dist/types/v1-video-to-video-create-body-style.js +10 -0
  36. package/package.json +1 -1
package/README.md CHANGED
@@ -56,6 +56,10 @@ const client = new Client({
56
56
 
57
57
  * [create](src/resources/v1/ai-qr-code-generator/README.md#create) - AI QR Code
58
58
 
59
+ ### [v1.aiTalkingPhoto](src/resources/v1/ai-talking-photo/README.md)
60
+
61
+ * [create](src/resources/v1/ai-talking-photo/README.md#create) - AI Talking Photo
62
+
59
63
  ### [v1.animation](src/resources/v1/animation/README.md)
60
64
 
61
65
  * [create](src/resources/v1/animation/README.md#create) - Animation
@@ -1,4 +1,4 @@
1
1
  export declare enum Environment {
2
2
  Environment = "https://api.magichour.ai",
3
- MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.11.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.12.0"
4
4
  }
@@ -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.11.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.12.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -0,0 +1,2 @@
1
+ export { CreateRequest } from "./request-types";
2
+ export { AiTalkingPhotoClient } from "./resource-client";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiTalkingPhotoClient = void 0;
4
+ var resource_client_1 = require("./resource-client");
5
+ Object.defineProperty(exports, "AiTalkingPhotoClient", { enumerable: true, get: function () { return resource_client_1.AiTalkingPhotoClient; } });
@@ -0,0 +1,38 @@
1
+ import { External$V1AiTalkingPhotoCreateBodyAssets, V1AiTalkingPhotoCreateBodyAssets } from "../../../types/v1-ai-talking-photo-create-body-assets";
2
+ import * as z from "zod";
3
+ /**
4
+ * CreateRequest
5
+ */
6
+ export type CreateRequest = {
7
+ /**
8
+ * Provide the assets for creating a talking photo
9
+ */
10
+ assets: V1AiTalkingPhotoCreateBodyAssets;
11
+ /**
12
+ * The end time of the input video in seconds
13
+ */
14
+ endSeconds: number;
15
+ /**
16
+ * The name of image
17
+ */
18
+ name?: string | undefined;
19
+ /**
20
+ * The start time of the input video in seconds
21
+ */
22
+ startSeconds: number;
23
+ };
24
+ /**
25
+ * @internal
26
+ * CreateRequest without any key transformation, this is what
27
+ * we expect to come in as network data
28
+ */
29
+ export type External$CreateRequest = {
30
+ assets: External$V1AiTalkingPhotoCreateBodyAssets;
31
+ end_seconds: number;
32
+ name?: string | undefined;
33
+ start_seconds: number;
34
+ };
35
+ export declare const Schemas$CreateRequest: {
36
+ in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
37
+ out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
38
+ };
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$CreateRequest = void 0;
37
+ const core_1 = require("../../../core");
38
+ const v1_ai_talking_photo_create_body_assets_1 = require("../../../types/v1-ai-talking-photo-create-body-assets");
39
+ const z = __importStar(require("zod"));
40
+ /**
41
+ * Takes network data, validates it, and transforms keys to match typescript object CreateRequest
42
+ */
43
+ const SchemaIn$CreateRequest = z
44
+ .object({
45
+ assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.in,
46
+ end_seconds: z.number(),
47
+ name: z.string().optional(),
48
+ start_seconds: z.number(),
49
+ })
50
+ .transform((obj) => {
51
+ return (0, core_1.zodTransform)(obj, {
52
+ assets: "assets",
53
+ end_seconds: "endSeconds",
54
+ name: "name",
55
+ start_seconds: "startSeconds",
56
+ });
57
+ });
58
+ /**
59
+ * @internal
60
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
61
+ */
62
+ const SchemaOut$CreateRequest = z
63
+ .object({
64
+ assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.out,
65
+ endSeconds: z.number(),
66
+ name: z.string().optional(),
67
+ startSeconds: z.number(),
68
+ })
69
+ .transform((obj) => {
70
+ return (0, core_1.zodTransform)(obj, {
71
+ assets: "assets",
72
+ endSeconds: "end_seconds",
73
+ name: "name",
74
+ startSeconds: "start_seconds",
75
+ });
76
+ });
77
+ exports.Schemas$CreateRequest = {
78
+ in: SchemaIn$CreateRequest,
79
+ out: SchemaOut$CreateRequest,
80
+ };
@@ -0,0 +1,14 @@
1
+ import { types } from "../../../index.js";
2
+ import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
3
+ import * as requests from "../../../resources/v1/ai-talking-photo/request-types";
4
+ export declare class AiTalkingPhotoClient extends CoreResourceClient {
5
+ constructor(client: CoreClient);
6
+ /**
7
+ * AI Talking Photo
8
+ *
9
+ * Create a talking photo from an image and audio or text input.
10
+ *
11
+ * POST /v1/ai-talking-photo
12
+ */
13
+ create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.V1AiTalkingPhotoCreateResponse>;
14
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiTalkingPhotoClient = void 0;
4
+ const core_1 = require("../../../core");
5
+ const v1_ai_talking_photo_create_body_1 = require("../../../types/v1-ai-talking-photo-create-body");
6
+ const v1_ai_talking_photo_create_response_1 = require("../../../types/v1-ai-talking-photo-create-response");
7
+ class AiTalkingPhotoClient extends core_1.CoreResourceClient {
8
+ constructor(client) {
9
+ super(client);
10
+ }
11
+ /**
12
+ * AI Talking Photo
13
+ *
14
+ * Create a talking photo from an image and audio or text input.
15
+ *
16
+ * POST /v1/ai-talking-photo
17
+ */
18
+ create(request, opts) {
19
+ return this._client.makeRequest({
20
+ method: "post",
21
+ path: "/v1/ai-talking-photo",
22
+ auth: ["bearerAuth"],
23
+ contentType: "application/json",
24
+ body: v1_ai_talking_photo_create_body_1.Schemas$V1AiTalkingPhotoCreateBody.out.parse(request),
25
+ responseSchema: v1_ai_talking_photo_create_response_1.Schemas$V1AiTalkingPhotoCreateResponse.in,
26
+ opts,
27
+ });
28
+ }
29
+ }
30
+ exports.AiTalkingPhotoClient = AiTalkingPhotoClient;
@@ -4,6 +4,7 @@ export * as aiImageGenerator from "./ai-image-generator";
4
4
  export * as aiImageUpscaler from "./ai-image-upscaler";
5
5
  export * as aiPhotoEditor from "./ai-photo-editor";
6
6
  export * as aiQrCodeGenerator from "./ai-qr-code-generator";
7
+ export * as aiTalkingPhoto from "./ai-talking-photo";
7
8
  export * as animation from "./animation";
8
9
  export * as faceSwap from "./face-swap";
9
10
  export * as faceSwapPhoto from "./face-swap-photo";
@@ -33,13 +33,14 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.animation = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiHeadshotGenerator = exports.aiClothesChanger = void 0;
36
+ exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.animation = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiHeadshotGenerator = exports.aiClothesChanger = void 0;
37
37
  exports.aiClothesChanger = __importStar(require("./ai-clothes-changer"));
38
38
  exports.aiHeadshotGenerator = __importStar(require("./ai-headshot-generator"));
39
39
  exports.aiImageGenerator = __importStar(require("./ai-image-generator"));
40
40
  exports.aiImageUpscaler = __importStar(require("./ai-image-upscaler"));
41
41
  exports.aiPhotoEditor = __importStar(require("./ai-photo-editor"));
42
42
  exports.aiQrCodeGenerator = __importStar(require("./ai-qr-code-generator"));
43
+ exports.aiTalkingPhoto = __importStar(require("./ai-talking-photo"));
43
44
  exports.animation = __importStar(require("./animation"));
44
45
  exports.faceSwap = __importStar(require("./face-swap"));
45
46
  exports.faceSwapPhoto = __importStar(require("./face-swap-photo"));
@@ -5,6 +5,7 @@ import { AiImageGeneratorClient } from "../../resources/v1/ai-image-generator";
5
5
  import { AiImageUpscalerClient } from "../../resources/v1/ai-image-upscaler";
6
6
  import { AiPhotoEditorClient } from "../../resources/v1/ai-photo-editor";
7
7
  import { AiQrCodeGeneratorClient } from "../../resources/v1/ai-qr-code-generator";
8
+ import { AiTalkingPhotoClient } from "../../resources/v1/ai-talking-photo";
8
9
  import { AnimationClient } from "../../resources/v1/animation";
9
10
  import { FaceSwapClient } from "../../resources/v1/face-swap";
10
11
  import { FaceSwapPhotoClient } from "../../resources/v1/face-swap-photo";
@@ -25,6 +26,7 @@ export declare class V1Client extends CoreResourceClient {
25
26
  aiImageUpscaler: AiImageUpscalerClient;
26
27
  aiPhotoEditor: AiPhotoEditorClient;
27
28
  aiQrCodeGenerator: AiQrCodeGeneratorClient;
29
+ aiTalkingPhoto: AiTalkingPhotoClient;
28
30
  animation: AnimationClient;
29
31
  faceSwap: FaceSwapClient;
30
32
  faceSwapPhoto: FaceSwapPhotoClient;
@@ -8,6 +8,7 @@ const ai_image_generator_1 = require("../../resources/v1/ai-image-generator");
8
8
  const ai_image_upscaler_1 = require("../../resources/v1/ai-image-upscaler");
9
9
  const ai_photo_editor_1 = require("../../resources/v1/ai-photo-editor");
10
10
  const ai_qr_code_generator_1 = require("../../resources/v1/ai-qr-code-generator");
11
+ const ai_talking_photo_1 = require("../../resources/v1/ai-talking-photo");
11
12
  const animation_1 = require("../../resources/v1/animation");
12
13
  const face_swap_1 = require("../../resources/v1/face-swap");
13
14
  const face_swap_photo_1 = require("../../resources/v1/face-swap-photo");
@@ -30,6 +31,7 @@ class V1Client extends core_1.CoreResourceClient {
30
31
  this.aiImageUpscaler = new ai_image_upscaler_1.AiImageUpscalerClient(this._client);
31
32
  this.aiPhotoEditor = new ai_photo_editor_1.AiPhotoEditorClient(this._client);
32
33
  this.aiQrCodeGenerator = new ai_qr_code_generator_1.AiQrCodeGeneratorClient(this._client);
34
+ this.aiTalkingPhoto = new ai_talking_photo_1.AiTalkingPhotoClient(this._client);
33
35
  this.animation = new animation_1.AnimationClient(this._client);
34
36
  this.faceSwap = new face_swap_1.FaceSwapClient(this._client);
35
37
  this.faceSwapPhoto = new face_swap_photo_1.FaceSwapPhotoClient(this._client);
@@ -58,6 +58,15 @@ export { V1AiQrCodeGeneratorCreateResponse401MessageEnum } from "./v1-ai-qr-code
58
58
  export { V1AiQrCodeGeneratorCreateResponse404 } from "./v1-ai-qr-code-generator-create-response404";
59
59
  export { V1AiQrCodeGeneratorCreateResponse404MessageEnum } from "./v1-ai-qr-code-generator-create-response404-message-enum";
60
60
  export { V1AiQrCodeGeneratorCreateResponse422 } from "./v1-ai-qr-code-generator-create-response422";
61
+ export { V1AiTalkingPhotoCreateBody } from "./v1-ai-talking-photo-create-body";
62
+ export { V1AiTalkingPhotoCreateBodyAssets } from "./v1-ai-talking-photo-create-body-assets";
63
+ export { V1AiTalkingPhotoCreateResponse } from "./v1-ai-talking-photo-create-response";
64
+ export { V1AiTalkingPhotoCreateResponse400 } from "./v1-ai-talking-photo-create-response400";
65
+ export { V1AiTalkingPhotoCreateResponse401 } from "./v1-ai-talking-photo-create-response401";
66
+ export { V1AiTalkingPhotoCreateResponse401MessageEnum } from "./v1-ai-talking-photo-create-response401-message-enum";
67
+ export { V1AiTalkingPhotoCreateResponse404 } from "./v1-ai-talking-photo-create-response404";
68
+ export { V1AiTalkingPhotoCreateResponse404MessageEnum } from "./v1-ai-talking-photo-create-response404-message-enum";
69
+ export { V1AiTalkingPhotoCreateResponse422 } from "./v1-ai-talking-photo-create-response422";
61
70
  export { V1AnimationCreateBody } from "./v1-animation-create-body";
62
71
  export { V1AnimationCreateBodyAssets } from "./v1-animation-create-body-assets";
63
72
  export { V1AnimationCreateBodyAssetsAudioSourceEnum } from "./v1-animation-create-body-assets-audio-source-enum";
@@ -0,0 +1,27 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Provide the assets for creating a talking photo
4
+ */
5
+ export type V1AiTalkingPhotoCreateBodyAssets = {
6
+ /**
7
+ * The audio file to sync with the image. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
+ */
9
+ audioFilePath: string;
10
+ /**
11
+ * The source image to animate. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
12
+ */
13
+ imageFilePath: string;
14
+ };
15
+ /**
16
+ * @internal
17
+ * V1AiTalkingPhotoCreateBodyAssets without any key transformation, this is what
18
+ * we expect to come in as network data
19
+ */
20
+ export type External$V1AiTalkingPhotoCreateBodyAssets = {
21
+ audio_file_path: string;
22
+ image_file_path: string;
23
+ };
24
+ export declare const Schemas$V1AiTalkingPhotoCreateBodyAssets: {
25
+ in: z.ZodType<V1AiTalkingPhotoCreateBodyAssets, z.ZodTypeDef, unknown>;
26
+ out: z.ZodType<External$V1AiTalkingPhotoCreateBodyAssets, z.ZodTypeDef, V1AiTalkingPhotoCreateBodyAssets>;
27
+ };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiTalkingPhotoCreateBodyAssets = void 0;
37
+ const core_1 = require("../core");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiTalkingPhotoCreateBodyAssets
41
+ */
42
+ const SchemaIn$V1AiTalkingPhotoCreateBodyAssets = z
43
+ .object({
44
+ audio_file_path: z.string(),
45
+ image_file_path: z.string(),
46
+ })
47
+ .transform((obj) => {
48
+ return (0, core_1.zodTransform)(obj, {
49
+ audio_file_path: "audioFilePath",
50
+ image_file_path: "imageFilePath",
51
+ });
52
+ });
53
+ /**
54
+ * @internal
55
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiTalkingPhotoCreateBodyAssets
56
+ */
57
+ const SchemaOut$V1AiTalkingPhotoCreateBodyAssets = z
58
+ .object({
59
+ audioFilePath: z.string(),
60
+ imageFilePath: z.string(),
61
+ })
62
+ .transform((obj) => {
63
+ return (0, core_1.zodTransform)(obj, {
64
+ audioFilePath: "audio_file_path",
65
+ imageFilePath: "image_file_path",
66
+ });
67
+ });
68
+ exports.Schemas$V1AiTalkingPhotoCreateBodyAssets = {
69
+ in: SchemaIn$V1AiTalkingPhotoCreateBodyAssets,
70
+ out: SchemaOut$V1AiTalkingPhotoCreateBodyAssets,
71
+ };
@@ -0,0 +1,38 @@
1
+ import { External$V1AiTalkingPhotoCreateBodyAssets, V1AiTalkingPhotoCreateBodyAssets } from "./v1-ai-talking-photo-create-body-assets";
2
+ import * as z from "zod";
3
+ /**
4
+ * Provide the assets for creating a talking photo
5
+ */
6
+ export type V1AiTalkingPhotoCreateBody = {
7
+ /**
8
+ * Provide the assets for creating a talking photo
9
+ */
10
+ assets: V1AiTalkingPhotoCreateBodyAssets;
11
+ /**
12
+ * The end time of the input video in seconds
13
+ */
14
+ endSeconds: number;
15
+ /**
16
+ * The name of image
17
+ */
18
+ name?: string | undefined;
19
+ /**
20
+ * The start time of the input video in seconds
21
+ */
22
+ startSeconds: number;
23
+ };
24
+ /**
25
+ * @internal
26
+ * V1AiTalkingPhotoCreateBody without any key transformation, this is what
27
+ * we expect to come in as network data
28
+ */
29
+ export type External$V1AiTalkingPhotoCreateBody = {
30
+ assets: External$V1AiTalkingPhotoCreateBodyAssets;
31
+ end_seconds: number;
32
+ name?: string | undefined;
33
+ start_seconds: number;
34
+ };
35
+ export declare const Schemas$V1AiTalkingPhotoCreateBody: {
36
+ in: z.ZodType<V1AiTalkingPhotoCreateBody, z.ZodTypeDef, unknown>;
37
+ out: z.ZodType<External$V1AiTalkingPhotoCreateBody, z.ZodTypeDef, V1AiTalkingPhotoCreateBody>;
38
+ };
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiTalkingPhotoCreateBody = void 0;
37
+ const v1_ai_talking_photo_create_body_assets_1 = require("./v1-ai-talking-photo-create-body-assets");
38
+ const core_1 = require("../core");
39
+ const z = __importStar(require("zod"));
40
+ /**
41
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiTalkingPhotoCreateBody
42
+ */
43
+ const SchemaIn$V1AiTalkingPhotoCreateBody = z
44
+ .object({
45
+ assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.in,
46
+ end_seconds: z.number(),
47
+ name: z.string().optional(),
48
+ start_seconds: z.number(),
49
+ })
50
+ .transform((obj) => {
51
+ return (0, core_1.zodTransform)(obj, {
52
+ assets: "assets",
53
+ end_seconds: "endSeconds",
54
+ name: "name",
55
+ start_seconds: "startSeconds",
56
+ });
57
+ });
58
+ /**
59
+ * @internal
60
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiTalkingPhotoCreateBody
61
+ */
62
+ const SchemaOut$V1AiTalkingPhotoCreateBody = z
63
+ .object({
64
+ assets: v1_ai_talking_photo_create_body_assets_1.Schemas$V1AiTalkingPhotoCreateBodyAssets.out,
65
+ endSeconds: z.number(),
66
+ name: z.string().optional(),
67
+ startSeconds: z.number(),
68
+ })
69
+ .transform((obj) => {
70
+ return (0, core_1.zodTransform)(obj, {
71
+ assets: "assets",
72
+ endSeconds: "end_seconds",
73
+ name: "name",
74
+ startSeconds: "start_seconds",
75
+ });
76
+ });
77
+ exports.Schemas$V1AiTalkingPhotoCreateBody = {
78
+ in: SchemaIn$V1AiTalkingPhotoCreateBody,
79
+ out: SchemaOut$V1AiTalkingPhotoCreateBody,
80
+ };
@@ -0,0 +1,27 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Success
4
+ */
5
+ export type V1AiTalkingPhotoCreateResponse = {
6
+ /**
7
+ * Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
8
+ */
9
+ estimatedFrameCost: number;
10
+ /**
11
+ * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
12
+ */
13
+ id: string;
14
+ };
15
+ /**
16
+ * @internal
17
+ * V1AiTalkingPhotoCreateResponse without any key transformation, this is what
18
+ * we expect to come in as network data
19
+ */
20
+ export type External$V1AiTalkingPhotoCreateResponse = {
21
+ estimated_frame_cost: number;
22
+ id: string;
23
+ };
24
+ export declare const Schemas$V1AiTalkingPhotoCreateResponse: {
25
+ in: z.ZodType<V1AiTalkingPhotoCreateResponse, z.ZodTypeDef, unknown>;
26
+ out: z.ZodType<External$V1AiTalkingPhotoCreateResponse, z.ZodTypeDef, V1AiTalkingPhotoCreateResponse>;
27
+ };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiTalkingPhotoCreateResponse = void 0;
37
+ const core_1 = require("../core");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiTalkingPhotoCreateResponse
41
+ */
42
+ const SchemaIn$V1AiTalkingPhotoCreateResponse = z
43
+ .object({
44
+ estimated_frame_cost: z.number().int(),
45
+ id: z.string(),
46
+ })
47
+ .transform((obj) => {
48
+ return (0, core_1.zodTransform)(obj, {
49
+ estimated_frame_cost: "estimatedFrameCost",
50
+ id: "id",
51
+ });
52
+ });
53
+ /**
54
+ * @internal
55
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiTalkingPhotoCreateResponse
56
+ */
57
+ const SchemaOut$V1AiTalkingPhotoCreateResponse = z
58
+ .object({
59
+ estimatedFrameCost: z.number().int(),
60
+ id: z.string(),
61
+ })
62
+ .transform((obj) => {
63
+ return (0, core_1.zodTransform)(obj, {
64
+ estimatedFrameCost: "estimated_frame_cost",
65
+ id: "id",
66
+ });
67
+ });
68
+ exports.Schemas$V1AiTalkingPhotoCreateResponse = {
69
+ in: SchemaIn$V1AiTalkingPhotoCreateResponse,
70
+ out: SchemaOut$V1AiTalkingPhotoCreateResponse,
71
+ };
@@ -0,0 +1,19 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * The request is invalid
4
+ */
5
+ export type V1AiTalkingPhotoCreateResponse400 = {
6
+ message: string;
7
+ };
8
+ /**
9
+ * @internal
10
+ * V1AiTalkingPhotoCreateResponse400 without any key transformation, this is what
11
+ * we expect to come in as network data
12
+ */
13
+ export type External$V1AiTalkingPhotoCreateResponse400 = {
14
+ message: string;
15
+ };
16
+ export declare const Schemas$V1AiTalkingPhotoCreateResponse400: {
17
+ in: z.ZodType<V1AiTalkingPhotoCreateResponse400, z.ZodTypeDef, unknown>;
18
+ out: z.ZodType<External$V1AiTalkingPhotoCreateResponse400, z.ZodTypeDef, V1AiTalkingPhotoCreateResponse400>;
19
+ };
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiTalkingPhotoCreateResponse400 = void 0;
37
+ const core_1 = require("../core");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiTalkingPhotoCreateResponse400
41
+ */
42
+ const SchemaIn$V1AiTalkingPhotoCreateResponse400 = z
43
+ .object({
44
+ message: z.string(),
45
+ })
46
+ .transform((obj) => {
47
+ return (0, core_1.zodTransform)(obj, {
48
+ message: "message",
49
+ });
50
+ });
51
+ /**
52
+ * @internal
53
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiTalkingPhotoCreateResponse400
54
+ */
55
+ const SchemaOut$V1AiTalkingPhotoCreateResponse400 = z
56
+ .object({
57
+ message: z.string(),
58
+ })
59
+ .transform((obj) => {
60
+ return (0, core_1.zodTransform)(obj, {
61
+ message: "message",
62
+ });
63
+ });
64
+ exports.Schemas$V1AiTalkingPhotoCreateResponse400 = {
65
+ in: SchemaIn$V1AiTalkingPhotoCreateResponse400,
66
+ out: SchemaOut$V1AiTalkingPhotoCreateResponse400,
67
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * V1AiTalkingPhotoCreateResponse401MessageEnum
3
+ */
4
+ export type V1AiTalkingPhotoCreateResponse401MessageEnum = "Unauthorized";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * The request is not properly authenticated
4
+ */
5
+ export type V1AiTalkingPhotoCreateResponse401 = {
6
+ message: "Unauthorized";
7
+ };
8
+ /**
9
+ * @internal
10
+ * V1AiTalkingPhotoCreateResponse401 without any key transformation, this is what
11
+ * we expect to come in as network data
12
+ */
13
+ export type External$V1AiTalkingPhotoCreateResponse401 = {
14
+ message: "Unauthorized";
15
+ };
16
+ export declare const Schemas$V1AiTalkingPhotoCreateResponse401: {
17
+ in: z.ZodType<V1AiTalkingPhotoCreateResponse401, z.ZodTypeDef, unknown>;
18
+ out: z.ZodType<External$V1AiTalkingPhotoCreateResponse401, z.ZodTypeDef, V1AiTalkingPhotoCreateResponse401>;
19
+ };
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiTalkingPhotoCreateResponse401 = void 0;
37
+ const core_1 = require("../core");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiTalkingPhotoCreateResponse401
41
+ */
42
+ const SchemaIn$V1AiTalkingPhotoCreateResponse401 = z
43
+ .object({
44
+ message: z.enum(["Unauthorized"]),
45
+ })
46
+ .transform((obj) => {
47
+ return (0, core_1.zodTransform)(obj, {
48
+ message: "message",
49
+ });
50
+ });
51
+ /**
52
+ * @internal
53
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiTalkingPhotoCreateResponse401
54
+ */
55
+ const SchemaOut$V1AiTalkingPhotoCreateResponse401 = z
56
+ .object({
57
+ message: z.enum(["Unauthorized"]),
58
+ })
59
+ .transform((obj) => {
60
+ return (0, core_1.zodTransform)(obj, {
61
+ message: "message",
62
+ });
63
+ });
64
+ exports.Schemas$V1AiTalkingPhotoCreateResponse401 = {
65
+ in: SchemaIn$V1AiTalkingPhotoCreateResponse401,
66
+ out: SchemaOut$V1AiTalkingPhotoCreateResponse401,
67
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * V1AiTalkingPhotoCreateResponse404MessageEnum
3
+ */
4
+ export type V1AiTalkingPhotoCreateResponse404MessageEnum = "Not Found";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Requested resource is not found
4
+ */
5
+ export type V1AiTalkingPhotoCreateResponse404 = {
6
+ message: "Not Found";
7
+ };
8
+ /**
9
+ * @internal
10
+ * V1AiTalkingPhotoCreateResponse404 without any key transformation, this is what
11
+ * we expect to come in as network data
12
+ */
13
+ export type External$V1AiTalkingPhotoCreateResponse404 = {
14
+ message: "Not Found";
15
+ };
16
+ export declare const Schemas$V1AiTalkingPhotoCreateResponse404: {
17
+ in: z.ZodType<V1AiTalkingPhotoCreateResponse404, z.ZodTypeDef, unknown>;
18
+ out: z.ZodType<External$V1AiTalkingPhotoCreateResponse404, z.ZodTypeDef, V1AiTalkingPhotoCreateResponse404>;
19
+ };
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiTalkingPhotoCreateResponse404 = void 0;
37
+ const core_1 = require("../core");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiTalkingPhotoCreateResponse404
41
+ */
42
+ const SchemaIn$V1AiTalkingPhotoCreateResponse404 = z
43
+ .object({
44
+ message: z.enum(["Not Found"]),
45
+ })
46
+ .transform((obj) => {
47
+ return (0, core_1.zodTransform)(obj, {
48
+ message: "message",
49
+ });
50
+ });
51
+ /**
52
+ * @internal
53
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiTalkingPhotoCreateResponse404
54
+ */
55
+ const SchemaOut$V1AiTalkingPhotoCreateResponse404 = z
56
+ .object({
57
+ message: z.enum(["Not Found"]),
58
+ })
59
+ .transform((obj) => {
60
+ return (0, core_1.zodTransform)(obj, {
61
+ message: "message",
62
+ });
63
+ });
64
+ exports.Schemas$V1AiTalkingPhotoCreateResponse404 = {
65
+ in: SchemaIn$V1AiTalkingPhotoCreateResponse404,
66
+ out: SchemaOut$V1AiTalkingPhotoCreateResponse404,
67
+ };
@@ -0,0 +1,19 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Unprocessable Entity
4
+ */
5
+ export type V1AiTalkingPhotoCreateResponse422 = {
6
+ message: string;
7
+ };
8
+ /**
9
+ * @internal
10
+ * V1AiTalkingPhotoCreateResponse422 without any key transformation, this is what
11
+ * we expect to come in as network data
12
+ */
13
+ export type External$V1AiTalkingPhotoCreateResponse422 = {
14
+ message: string;
15
+ };
16
+ export declare const Schemas$V1AiTalkingPhotoCreateResponse422: {
17
+ in: z.ZodType<V1AiTalkingPhotoCreateResponse422, z.ZodTypeDef, unknown>;
18
+ out: z.ZodType<External$V1AiTalkingPhotoCreateResponse422, z.ZodTypeDef, V1AiTalkingPhotoCreateResponse422>;
19
+ };
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1AiTalkingPhotoCreateResponse422 = void 0;
37
+ const core_1 = require("../core");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1AiTalkingPhotoCreateResponse422
41
+ */
42
+ const SchemaIn$V1AiTalkingPhotoCreateResponse422 = z
43
+ .object({
44
+ message: z.string(),
45
+ })
46
+ .transform((obj) => {
47
+ return (0, core_1.zodTransform)(obj, {
48
+ message: "message",
49
+ });
50
+ });
51
+ /**
52
+ * @internal
53
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiTalkingPhotoCreateResponse422
54
+ */
55
+ const SchemaOut$V1AiTalkingPhotoCreateResponse422 = z
56
+ .object({
57
+ message: z.string(),
58
+ })
59
+ .transform((obj) => {
60
+ return (0, core_1.zodTransform)(obj, {
61
+ message: "message",
62
+ });
63
+ });
64
+ exports.Schemas$V1AiTalkingPhotoCreateResponse422 = {
65
+ in: SchemaIn$V1AiTalkingPhotoCreateResponse422,
66
+ out: SchemaOut$V1AiTalkingPhotoCreateResponse422,
67
+ };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * V1VideoToVideoCreateBodyStyleArtStyleEnum
3
3
  */
4
- export type V1VideoToVideoCreateBodyStyleArtStyleEnum = "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Master Chief" | "Mech" | "Minecraft" | "Naruto" | "Neon Dream" | "Oil Painting" | "On Fire" | "Origami" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
4
+ export type V1VideoToVideoCreateBodyStyleArtStyleEnum = "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "Oil Painting" | "On Fire" | "Origami" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
@@ -3,7 +3,7 @@ import * as z from "zod";
3
3
  * V1VideoToVideoCreateBodyStyle
4
4
  */
5
5
  export type V1VideoToVideoCreateBodyStyle = {
6
- artStyle: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Master Chief" | "Mech" | "Minecraft" | "Naruto" | "Neon Dream" | "Oil Painting" | "On Fire" | "Origami" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
6
+ artStyle: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "Oil Painting" | "On Fire" | "Origami" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
7
7
  /**
8
8
  * * `Dreamshaper` - a good all-around model that works for both animations as well as realism.
9
9
  * * `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well.
@@ -34,7 +34,7 @@ export type V1VideoToVideoCreateBodyStyle = {
34
34
  * we expect to come in as network data
35
35
  */
36
36
  export type External$V1VideoToVideoCreateBodyStyle = {
37
- art_style: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Master Chief" | "Mech" | "Minecraft" | "Naruto" | "Neon Dream" | "Oil Painting" | "On Fire" | "Origami" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
37
+ art_style: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "Oil Painting" | "On Fire" | "Origami" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
38
38
  model: "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default";
39
39
  prompt: string | null;
40
40
  prompt_type: "append_default" | "custom" | "default";
@@ -52,6 +52,7 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
52
52
  "Black Spiderman",
53
53
  "Boba Fett",
54
54
  "Celestial Skin",
55
+ "Chinese Swordsmen",
55
56
  "Clay",
56
57
  "Comic",
57
58
  "Cyberpunk",
@@ -73,14 +74,17 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
73
74
  "Lego",
74
75
  "Link",
75
76
  "Marble",
77
+ "Mario",
76
78
  "Master Chief",
77
79
  "Mech",
78
80
  "Minecraft",
81
+ "Mystique",
79
82
  "Naruto",
80
83
  "Neon Dream",
81
84
  "Oil Painting",
82
85
  "On Fire",
83
86
  "Origami",
87
+ "Pixar",
84
88
  "Pixel",
85
89
  "Power Armor",
86
90
  "Power Ranger",
@@ -95,6 +99,7 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
95
99
  "Studio Ghibli",
96
100
  "Sub-Zero",
97
101
  "The Void",
102
+ "Tomb Raider",
98
103
  "Underwater",
99
104
  "Van Gogh",
100
105
  "Viking",
@@ -138,6 +143,7 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
138
143
  "Black Spiderman",
139
144
  "Boba Fett",
140
145
  "Celestial Skin",
146
+ "Chinese Swordsmen",
141
147
  "Clay",
142
148
  "Comic",
143
149
  "Cyberpunk",
@@ -159,14 +165,17 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
159
165
  "Lego",
160
166
  "Link",
161
167
  "Marble",
168
+ "Mario",
162
169
  "Master Chief",
163
170
  "Mech",
164
171
  "Minecraft",
172
+ "Mystique",
165
173
  "Naruto",
166
174
  "Neon Dream",
167
175
  "Oil Painting",
168
176
  "On Fire",
169
177
  "Origami",
178
+ "Pixar",
170
179
  "Pixel",
171
180
  "Power Armor",
172
181
  "Power Ranger",
@@ -181,6 +190,7 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
181
190
  "Studio Ghibli",
182
191
  "Sub-Zero",
183
192
  "The Void",
193
+ "Tomb Raider",
184
194
  "Underwater",
185
195
  "Van Gogh",
186
196
  "Viking",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {