magic-hour 0.9.5 → 0.10.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.
@@ -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.9.5"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.10.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.9.5";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.10.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -1,4 +1,5 @@
1
1
  import { External$PostV1AiHeadshotGeneratorBodyAssets, PostV1AiHeadshotGeneratorBodyAssets } from "../../../types/post-v1-ai-headshot-generator-body-assets";
2
+ import { External$PostV1AiHeadshotGeneratorBodyStyle, PostV1AiHeadshotGeneratorBodyStyle } from "../../../types/post-v1-ai-headshot-generator-body-style";
2
3
  import * as z from "zod";
3
4
  /**
4
5
  * CreateRequest
@@ -12,6 +13,7 @@ export type CreateRequest = {
12
13
  * The name of image
13
14
  */
14
15
  name?: string | undefined;
16
+ style?: PostV1AiHeadshotGeneratorBodyStyle | undefined;
15
17
  };
16
18
  /**
17
19
  * @internal
@@ -21,6 +23,7 @@ export type CreateRequest = {
21
23
  export type External$CreateRequest = {
22
24
  assets: External$PostV1AiHeadshotGeneratorBodyAssets;
23
25
  name?: string | undefined;
26
+ style?: External$PostV1AiHeadshotGeneratorBodyStyle | undefined;
24
27
  };
25
28
  export declare const Schemas$CreateRequest: {
26
29
  in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.Schemas$CreateRequest = void 0;
37
37
  const core_1 = require("../../../core");
38
38
  const post_v1_ai_headshot_generator_body_assets_1 = require("../../../types/post-v1-ai-headshot-generator-body-assets");
39
+ const post_v1_ai_headshot_generator_body_style_1 = require("../../../types/post-v1-ai-headshot-generator-body-style");
39
40
  const z = __importStar(require("zod"));
40
41
  /**
41
42
  * Takes network data, validates it, and transforms keys to match typescript object CreateRequest
@@ -44,11 +45,13 @@ const SchemaIn$CreateRequest = z
44
45
  .object({
45
46
  assets: post_v1_ai_headshot_generator_body_assets_1.Schemas$PostV1AiHeadshotGeneratorBodyAssets.in,
46
47
  name: z.string().optional(),
48
+ style: post_v1_ai_headshot_generator_body_style_1.Schemas$PostV1AiHeadshotGeneratorBodyStyle.in.optional(),
47
49
  })
48
50
  .transform((obj) => {
49
51
  return (0, core_1.zodTransform)(obj, {
50
52
  assets: "assets",
51
53
  name: "name",
54
+ style: "style",
52
55
  });
53
56
  });
54
57
  /**
@@ -59,11 +62,13 @@ const SchemaOut$CreateRequest = z
59
62
  .object({
60
63
  assets: post_v1_ai_headshot_generator_body_assets_1.Schemas$PostV1AiHeadshotGeneratorBodyAssets.out,
61
64
  name: z.string().optional(),
65
+ style: post_v1_ai_headshot_generator_body_style_1.Schemas$PostV1AiHeadshotGeneratorBodyStyle.out.optional(),
62
66
  })
63
67
  .transform((obj) => {
64
68
  return (0, core_1.zodTransform)(obj, {
65
69
  assets: "assets",
66
70
  name: "name",
71
+ style: "style",
67
72
  });
68
73
  });
69
74
  exports.Schemas$CreateRequest = {
@@ -42,6 +42,7 @@ export { PostV1AiClothesChangerResponse404MessageEnum } from "./post-v1-ai-cloth
42
42
  export { PostV1AiClothesChangerResponse422 } from "./post-v1-ai-clothes-changer-response422";
43
43
  export { PostV1AiHeadshotGeneratorBody } from "./post-v1-ai-headshot-generator-body";
44
44
  export { PostV1AiHeadshotGeneratorBodyAssets } from "./post-v1-ai-headshot-generator-body-assets";
45
+ export { PostV1AiHeadshotGeneratorBodyStyle } from "./post-v1-ai-headshot-generator-body-style";
45
46
  export { PostV1AiHeadshotGeneratorResponse } from "./post-v1-ai-headshot-generator-response";
46
47
  export { PostV1AiHeadshotGeneratorResponse400 } from "./post-v1-ai-headshot-generator-response400";
47
48
  export { PostV1AiHeadshotGeneratorResponse401 } from "./post-v1-ai-headshot-generator-response401";
@@ -0,0 +1,22 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * PostV1AiHeadshotGeneratorBodyStyle
4
+ */
5
+ export type PostV1AiHeadshotGeneratorBodyStyle = {
6
+ /**
7
+ * A prompt to guide the final image.
8
+ */
9
+ prompt?: string | undefined;
10
+ };
11
+ /**
12
+ * @internal
13
+ * PostV1AiHeadshotGeneratorBodyStyle without any key transformation, this is what
14
+ * we expect to come in as network data
15
+ */
16
+ export type External$PostV1AiHeadshotGeneratorBodyStyle = {
17
+ prompt?: string | undefined;
18
+ };
19
+ export declare const Schemas$PostV1AiHeadshotGeneratorBodyStyle: {
20
+ in: z.ZodType<PostV1AiHeadshotGeneratorBodyStyle, z.ZodTypeDef, unknown>;
21
+ out: z.ZodType<External$PostV1AiHeadshotGeneratorBodyStyle, z.ZodTypeDef, PostV1AiHeadshotGeneratorBodyStyle>;
22
+ };
@@ -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$PostV1AiHeadshotGeneratorBodyStyle = 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 PostV1AiHeadshotGeneratorBodyStyle
41
+ */
42
+ const SchemaIn$PostV1AiHeadshotGeneratorBodyStyle = z
43
+ .object({
44
+ prompt: z.string().optional(),
45
+ })
46
+ .transform((obj) => {
47
+ return (0, core_1.zodTransform)(obj, {
48
+ prompt: "prompt",
49
+ });
50
+ });
51
+ /**
52
+ * @internal
53
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1AiHeadshotGeneratorBodyStyle
54
+ */
55
+ const SchemaOut$PostV1AiHeadshotGeneratorBodyStyle = z
56
+ .object({
57
+ prompt: z.string().optional(),
58
+ })
59
+ .transform((obj) => {
60
+ return (0, core_1.zodTransform)(obj, {
61
+ prompt: "prompt",
62
+ });
63
+ });
64
+ exports.Schemas$PostV1AiHeadshotGeneratorBodyStyle = {
65
+ in: SchemaIn$PostV1AiHeadshotGeneratorBodyStyle,
66
+ out: SchemaOut$PostV1AiHeadshotGeneratorBodyStyle,
67
+ };
@@ -1,4 +1,5 @@
1
1
  import { External$PostV1AiHeadshotGeneratorBodyAssets, PostV1AiHeadshotGeneratorBodyAssets } from "./post-v1-ai-headshot-generator-body-assets";
2
+ import { External$PostV1AiHeadshotGeneratorBodyStyle, PostV1AiHeadshotGeneratorBodyStyle } from "./post-v1-ai-headshot-generator-body-style";
2
3
  import * as z from "zod";
3
4
  /**
4
5
  * PostV1AiHeadshotGeneratorBody
@@ -12,6 +13,7 @@ export type PostV1AiHeadshotGeneratorBody = {
12
13
  * The name of image
13
14
  */
14
15
  name?: string | undefined;
16
+ style?: PostV1AiHeadshotGeneratorBodyStyle | undefined;
15
17
  };
16
18
  /**
17
19
  * @internal
@@ -21,6 +23,7 @@ export type PostV1AiHeadshotGeneratorBody = {
21
23
  export type External$PostV1AiHeadshotGeneratorBody = {
22
24
  assets: External$PostV1AiHeadshotGeneratorBodyAssets;
23
25
  name?: string | undefined;
26
+ style?: External$PostV1AiHeadshotGeneratorBodyStyle | undefined;
24
27
  };
25
28
  export declare const Schemas$PostV1AiHeadshotGeneratorBody: {
26
29
  in: z.ZodType<PostV1AiHeadshotGeneratorBody, z.ZodTypeDef, unknown>;
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.Schemas$PostV1AiHeadshotGeneratorBody = void 0;
37
37
  const post_v1_ai_headshot_generator_body_assets_1 = require("./post-v1-ai-headshot-generator-body-assets");
38
+ const post_v1_ai_headshot_generator_body_style_1 = require("./post-v1-ai-headshot-generator-body-style");
38
39
  const core_1 = require("../core");
39
40
  const z = __importStar(require("zod"));
40
41
  /**
@@ -44,11 +45,13 @@ const SchemaIn$PostV1AiHeadshotGeneratorBody = z
44
45
  .object({
45
46
  assets: post_v1_ai_headshot_generator_body_assets_1.Schemas$PostV1AiHeadshotGeneratorBodyAssets.in,
46
47
  name: z.string().optional(),
48
+ style: post_v1_ai_headshot_generator_body_style_1.Schemas$PostV1AiHeadshotGeneratorBodyStyle.in.optional(),
47
49
  })
48
50
  .transform((obj) => {
49
51
  return (0, core_1.zodTransform)(obj, {
50
52
  assets: "assets",
51
53
  name: "name",
54
+ style: "style",
52
55
  });
53
56
  });
54
57
  /**
@@ -59,11 +62,13 @@ const SchemaOut$PostV1AiHeadshotGeneratorBody = z
59
62
  .object({
60
63
  assets: post_v1_ai_headshot_generator_body_assets_1.Schemas$PostV1AiHeadshotGeneratorBodyAssets.out,
61
64
  name: z.string().optional(),
65
+ style: post_v1_ai_headshot_generator_body_style_1.Schemas$PostV1AiHeadshotGeneratorBodyStyle.out.optional(),
62
66
  })
63
67
  .transform((obj) => {
64
68
  return (0, core_1.zodTransform)(obj, {
65
69
  assets: "assets",
66
70
  name: "name",
71
+ style: "style",
67
72
  });
68
73
  });
69
74
  exports.Schemas$PostV1AiHeadshotGeneratorBody = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.9.5",
3
+ "version": "0.10.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {