magic-hour 0.26.1 → 0.28.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 (41) 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/request-types.d.ts +2 -2
  5. package/dist/resources/v1/auto-subtitle-generator/index.d.ts +2 -0
  6. package/dist/resources/v1/auto-subtitle-generator/index.js +5 -0
  7. package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +54 -0
  8. package/dist/resources/v1/auto-subtitle-generator/request-types.js +85 -0
  9. package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +14 -0
  10. package/dist/resources/v1/auto-subtitle-generator/resource-client.js +30 -0
  11. package/dist/resources/v1/index.d.ts +1 -0
  12. package/dist/resources/v1/index.js +2 -1
  13. package/dist/resources/v1/resource-client.d.ts +3 -0
  14. package/dist/resources/v1/resource-client.js +6 -0
  15. package/dist/types/index.d.ts +12 -0
  16. package/dist/types/v1-ai-talking-photo-create-body.d.ts +2 -2
  17. package/dist/types/v1-auto-subtitle-generator-create-body-assets.d.ts +22 -0
  18. package/dist/types/v1-auto-subtitle-generator-create-body-assets.js +67 -0
  19. package/dist/types/v1-auto-subtitle-generator-create-body-style-custom-config.d.ts +63 -0
  20. package/dist/types/v1-auto-subtitle-generator-create-body-style-custom-config.js +99 -0
  21. package/dist/types/v1-auto-subtitle-generator-create-body-style-template-enum.d.ts +4 -0
  22. package/dist/types/v1-auto-subtitle-generator-create-body-style-template-enum.js +2 -0
  23. package/dist/types/v1-auto-subtitle-generator-create-body-style.d.ts +38 -0
  24. package/dist/types/v1-auto-subtitle-generator-create-body-style.js +76 -0
  25. package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +54 -0
  26. package/dist/types/v1-auto-subtitle-generator-create-body.js +85 -0
  27. package/dist/types/v1-auto-subtitle-generator-create-response.d.ts +36 -0
  28. package/dist/types/v1-auto-subtitle-generator-create-response.js +75 -0
  29. package/dist/types/v1-auto-subtitle-generator-create-response400.d.ts +19 -0
  30. package/dist/types/v1-auto-subtitle-generator-create-response400.js +67 -0
  31. package/dist/types/v1-auto-subtitle-generator-create-response401-message-enum.d.ts +4 -0
  32. package/dist/types/v1-auto-subtitle-generator-create-response401-message-enum.js +2 -0
  33. package/dist/types/v1-auto-subtitle-generator-create-response401.d.ts +19 -0
  34. package/dist/types/v1-auto-subtitle-generator-create-response401.js +67 -0
  35. package/dist/types/v1-auto-subtitle-generator-create-response404-message-enum.d.ts +4 -0
  36. package/dist/types/v1-auto-subtitle-generator-create-response404-message-enum.js +2 -0
  37. package/dist/types/v1-auto-subtitle-generator-create-response404.d.ts +19 -0
  38. package/dist/types/v1-auto-subtitle-generator-create-response404.js +67 -0
  39. package/dist/types/v1-auto-subtitle-generator-create-response422.d.ts +19 -0
  40. package/dist/types/v1-auto-subtitle-generator-create-response422.js +67 -0
  41. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ import { External$V1AutoSubtitleGeneratorCreateBodyStyleCustomConfig, V1AutoSubtitleGeneratorCreateBodyStyleCustomConfig } from "./v1-auto-subtitle-generator-create-body-style-custom-config";
2
+ import * as z from "zod";
3
+ /**
4
+ * Style of the subtitle. At least one of `.style.template` or `.style.custom_config` must be provided.
5
+ * * If only `.style.template` is provided, default values for the template will be used.
6
+ * * If both are provided, the fields in `.style.custom_config` will be used to overwrite the fields in `.style.template`.
7
+ * * If only `.style.custom_config` is provided, then all fields in `.style.custom_config` will be used.
8
+ *
9
+ * To use custom config only, the following `custom_config` params are required:
10
+ * * `.style.custom_config.font`
11
+ * * `.style.custom_config.text_color`
12
+ * * `.style.custom_config.vertical_position`
13
+ * * `.style.custom_config.horizontal_position`
14
+ *
15
+ */
16
+ export type V1AutoSubtitleGeneratorCreateBodyStyle = {
17
+ /**
18
+ * Custom subtitle configuration.
19
+ */
20
+ customConfig?: V1AutoSubtitleGeneratorCreateBodyStyleCustomConfig | undefined;
21
+ /**
22
+ * Preset subtitle templates. Please visit https://magichour.ai/create/auto-subtitle-generator to see the style of the existing templates.
23
+ */
24
+ template?: ("cinematic" | "highlight" | "karaoke" | "minimalist") | undefined;
25
+ };
26
+ /**
27
+ * @internal
28
+ * V1AutoSubtitleGeneratorCreateBodyStyle without any key transformation, this is what
29
+ * we expect to come in as network data
30
+ */
31
+ export type External$V1AutoSubtitleGeneratorCreateBodyStyle = {
32
+ custom_config?: External$V1AutoSubtitleGeneratorCreateBodyStyleCustomConfig | undefined;
33
+ template?: ("cinematic" | "highlight" | "karaoke" | "minimalist") | undefined;
34
+ };
35
+ export declare const Schemas$V1AutoSubtitleGeneratorCreateBodyStyle: {
36
+ in: z.ZodType<V1AutoSubtitleGeneratorCreateBodyStyle, z.ZodTypeDef, unknown>;
37
+ out: z.ZodType<External$V1AutoSubtitleGeneratorCreateBodyStyle, z.ZodTypeDef, V1AutoSubtitleGeneratorCreateBodyStyle>;
38
+ };
@@ -0,0 +1,76 @@
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$V1AutoSubtitleGeneratorCreateBodyStyle = void 0;
37
+ const v1_auto_subtitle_generator_create_body_style_custom_config_1 = require("./v1-auto-subtitle-generator-create-body-style-custom-config");
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 V1AutoSubtitleGeneratorCreateBodyStyle
42
+ */
43
+ const SchemaIn$V1AutoSubtitleGeneratorCreateBodyStyle = z
44
+ .object({
45
+ custom_config: v1_auto_subtitle_generator_create_body_style_custom_config_1.Schemas$V1AutoSubtitleGeneratorCreateBodyStyleCustomConfig.in.optional(),
46
+ template: z
47
+ .enum(["cinematic", "highlight", "karaoke", "minimalist"])
48
+ .optional(),
49
+ })
50
+ .transform((obj) => {
51
+ return (0, core_1.zodTransform)(obj, {
52
+ custom_config: "customConfig",
53
+ template: "template",
54
+ });
55
+ });
56
+ /**
57
+ * @internal
58
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AutoSubtitleGeneratorCreateBodyStyle
59
+ */
60
+ const SchemaOut$V1AutoSubtitleGeneratorCreateBodyStyle = z
61
+ .object({
62
+ customConfig: v1_auto_subtitle_generator_create_body_style_custom_config_1.Schemas$V1AutoSubtitleGeneratorCreateBodyStyleCustomConfig.out.optional(),
63
+ template: z
64
+ .enum(["cinematic", "highlight", "karaoke", "minimalist"])
65
+ .optional(),
66
+ })
67
+ .transform((obj) => {
68
+ return (0, core_1.zodTransform)(obj, {
69
+ customConfig: "custom_config",
70
+ template: "template",
71
+ });
72
+ });
73
+ exports.Schemas$V1AutoSubtitleGeneratorCreateBodyStyle = {
74
+ in: SchemaIn$V1AutoSubtitleGeneratorCreateBodyStyle,
75
+ out: SchemaOut$V1AutoSubtitleGeneratorCreateBodyStyle,
76
+ };
@@ -0,0 +1,54 @@
1
+ import { External$V1AutoSubtitleGeneratorCreateBodyAssets, V1AutoSubtitleGeneratorCreateBodyAssets } from "./v1-auto-subtitle-generator-create-body-assets";
2
+ import { External$V1AutoSubtitleGeneratorCreateBodyStyle, V1AutoSubtitleGeneratorCreateBodyStyle } from "./v1-auto-subtitle-generator-create-body-style";
3
+ import * as z from "zod";
4
+ /**
5
+ * V1AutoSubtitleGeneratorCreateBody
6
+ */
7
+ export type V1AutoSubtitleGeneratorCreateBody = {
8
+ /**
9
+ * Provide the assets for auto subtitle generator
10
+ */
11
+ assets: V1AutoSubtitleGeneratorCreateBodyAssets;
12
+ /**
13
+ * The end time of the input video in seconds
14
+ */
15
+ endSeconds: number;
16
+ /**
17
+ * The name of video
18
+ */
19
+ name?: string | undefined;
20
+ /**
21
+ * The start time of the input video in seconds
22
+ */
23
+ startSeconds: number;
24
+ /**
25
+ * Style of the subtitle. At least one of `.style.template` or `.style.custom_config` must be provided.
26
+ * * If only `.style.template` is provided, default values for the template will be used.
27
+ * * If both are provided, the fields in `.style.custom_config` will be used to overwrite the fields in `.style.template`.
28
+ * * If only `.style.custom_config` is provided, then all fields in `.style.custom_config` will be used.
29
+ *
30
+ * To use custom config only, the following `custom_config` params are required:
31
+ * * `.style.custom_config.font`
32
+ * * `.style.custom_config.text_color`
33
+ * * `.style.custom_config.vertical_position`
34
+ * * `.style.custom_config.horizontal_position`
35
+ *
36
+ */
37
+ style: V1AutoSubtitleGeneratorCreateBodyStyle;
38
+ };
39
+ /**
40
+ * @internal
41
+ * V1AutoSubtitleGeneratorCreateBody without any key transformation, this is what
42
+ * we expect to come in as network data
43
+ */
44
+ export type External$V1AutoSubtitleGeneratorCreateBody = {
45
+ assets: External$V1AutoSubtitleGeneratorCreateBodyAssets;
46
+ end_seconds: number;
47
+ name?: string | undefined;
48
+ start_seconds: number;
49
+ style: External$V1AutoSubtitleGeneratorCreateBodyStyle;
50
+ };
51
+ export declare const Schemas$V1AutoSubtitleGeneratorCreateBody: {
52
+ in: z.ZodType<V1AutoSubtitleGeneratorCreateBody, z.ZodTypeDef, unknown>;
53
+ out: z.ZodType<External$V1AutoSubtitleGeneratorCreateBody, z.ZodTypeDef, V1AutoSubtitleGeneratorCreateBody>;
54
+ };
@@ -0,0 +1,85 @@
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$V1AutoSubtitleGeneratorCreateBody = void 0;
37
+ const v1_auto_subtitle_generator_create_body_assets_1 = require("./v1-auto-subtitle-generator-create-body-assets");
38
+ const v1_auto_subtitle_generator_create_body_style_1 = require("./v1-auto-subtitle-generator-create-body-style");
39
+ const core_1 = require("../core");
40
+ const z = __importStar(require("zod"));
41
+ /**
42
+ * Takes network data, validates it, and transforms keys to match typescript object V1AutoSubtitleGeneratorCreateBody
43
+ */
44
+ const SchemaIn$V1AutoSubtitleGeneratorCreateBody = z
45
+ .object({
46
+ assets: v1_auto_subtitle_generator_create_body_assets_1.Schemas$V1AutoSubtitleGeneratorCreateBodyAssets.in,
47
+ end_seconds: z.number(),
48
+ name: z.string().optional(),
49
+ start_seconds: z.number(),
50
+ style: v1_auto_subtitle_generator_create_body_style_1.Schemas$V1AutoSubtitleGeneratorCreateBodyStyle.in,
51
+ })
52
+ .transform((obj) => {
53
+ return (0, core_1.zodTransform)(obj, {
54
+ assets: "assets",
55
+ end_seconds: "endSeconds",
56
+ name: "name",
57
+ start_seconds: "startSeconds",
58
+ style: "style",
59
+ });
60
+ });
61
+ /**
62
+ * @internal
63
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AutoSubtitleGeneratorCreateBody
64
+ */
65
+ const SchemaOut$V1AutoSubtitleGeneratorCreateBody = z
66
+ .object({
67
+ assets: v1_auto_subtitle_generator_create_body_assets_1.Schemas$V1AutoSubtitleGeneratorCreateBodyAssets.out,
68
+ endSeconds: z.number(),
69
+ name: z.string().optional(),
70
+ startSeconds: z.number(),
71
+ style: v1_auto_subtitle_generator_create_body_style_1.Schemas$V1AutoSubtitleGeneratorCreateBodyStyle.out,
72
+ })
73
+ .transform((obj) => {
74
+ return (0, core_1.zodTransform)(obj, {
75
+ assets: "assets",
76
+ endSeconds: "end_seconds",
77
+ name: "name",
78
+ startSeconds: "start_seconds",
79
+ style: "style",
80
+ });
81
+ });
82
+ exports.Schemas$V1AutoSubtitleGeneratorCreateBody = {
83
+ in: SchemaIn$V1AutoSubtitleGeneratorCreateBody,
84
+ out: SchemaOut$V1AutoSubtitleGeneratorCreateBody,
85
+ };
@@ -0,0 +1,36 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Success
4
+ */
5
+ export type V1AutoSubtitleGeneratorCreateResponse = {
6
+ /**
7
+ * The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
8
+ *
9
+ * If video generation fails, credits will be refunded, and this field will be updated to include the refund.
10
+ */
11
+ creditsCharged: number;
12
+ /**
13
+ * Deprecated: Previously represented the number of frames (original name of our credit system) used for video generation. Use 'credits_charged' instead.
14
+ *
15
+ * The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
16
+ */
17
+ estimatedFrameCost: number;
18
+ /**
19
+ * 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
20
+ */
21
+ id: string;
22
+ };
23
+ /**
24
+ * @internal
25
+ * V1AutoSubtitleGeneratorCreateResponse without any key transformation, this is what
26
+ * we expect to come in as network data
27
+ */
28
+ export type External$V1AutoSubtitleGeneratorCreateResponse = {
29
+ credits_charged: number;
30
+ estimated_frame_cost: number;
31
+ id: string;
32
+ };
33
+ export declare const Schemas$V1AutoSubtitleGeneratorCreateResponse: {
34
+ in: z.ZodType<V1AutoSubtitleGeneratorCreateResponse, z.ZodTypeDef, unknown>;
35
+ out: z.ZodType<External$V1AutoSubtitleGeneratorCreateResponse, z.ZodTypeDef, V1AutoSubtitleGeneratorCreateResponse>;
36
+ };
@@ -0,0 +1,75 @@
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$V1AutoSubtitleGeneratorCreateResponse = 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 V1AutoSubtitleGeneratorCreateResponse
41
+ */
42
+ const SchemaIn$V1AutoSubtitleGeneratorCreateResponse = z
43
+ .object({
44
+ credits_charged: z.number().int(),
45
+ estimated_frame_cost: z.number().int(),
46
+ id: z.string(),
47
+ })
48
+ .transform((obj) => {
49
+ return (0, core_1.zodTransform)(obj, {
50
+ credits_charged: "creditsCharged",
51
+ estimated_frame_cost: "estimatedFrameCost",
52
+ id: "id",
53
+ });
54
+ });
55
+ /**
56
+ * @internal
57
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1AutoSubtitleGeneratorCreateResponse
58
+ */
59
+ const SchemaOut$V1AutoSubtitleGeneratorCreateResponse = z
60
+ .object({
61
+ creditsCharged: z.number().int(),
62
+ estimatedFrameCost: z.number().int(),
63
+ id: z.string(),
64
+ })
65
+ .transform((obj) => {
66
+ return (0, core_1.zodTransform)(obj, {
67
+ creditsCharged: "credits_charged",
68
+ estimatedFrameCost: "estimated_frame_cost",
69
+ id: "id",
70
+ });
71
+ });
72
+ exports.Schemas$V1AutoSubtitleGeneratorCreateResponse = {
73
+ in: SchemaIn$V1AutoSubtitleGeneratorCreateResponse,
74
+ out: SchemaOut$V1AutoSubtitleGeneratorCreateResponse,
75
+ };
@@ -0,0 +1,19 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * The request is invalid
4
+ */
5
+ export type V1AutoSubtitleGeneratorCreateResponse400 = {
6
+ message: string;
7
+ };
8
+ /**
9
+ * @internal
10
+ * V1AutoSubtitleGeneratorCreateResponse400 without any key transformation, this is what
11
+ * we expect to come in as network data
12
+ */
13
+ export type External$V1AutoSubtitleGeneratorCreateResponse400 = {
14
+ message: string;
15
+ };
16
+ export declare const Schemas$V1AutoSubtitleGeneratorCreateResponse400: {
17
+ in: z.ZodType<V1AutoSubtitleGeneratorCreateResponse400, z.ZodTypeDef, unknown>;
18
+ out: z.ZodType<External$V1AutoSubtitleGeneratorCreateResponse400, z.ZodTypeDef, V1AutoSubtitleGeneratorCreateResponse400>;
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$V1AutoSubtitleGeneratorCreateResponse400 = 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 V1AutoSubtitleGeneratorCreateResponse400
41
+ */
42
+ const SchemaIn$V1AutoSubtitleGeneratorCreateResponse400 = 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$V1AutoSubtitleGeneratorCreateResponse400
54
+ */
55
+ const SchemaOut$V1AutoSubtitleGeneratorCreateResponse400 = 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$V1AutoSubtitleGeneratorCreateResponse400 = {
65
+ in: SchemaIn$V1AutoSubtitleGeneratorCreateResponse400,
66
+ out: SchemaOut$V1AutoSubtitleGeneratorCreateResponse400,
67
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * V1AutoSubtitleGeneratorCreateResponse401MessageEnum
3
+ */
4
+ export type V1AutoSubtitleGeneratorCreateResponse401MessageEnum = "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 V1AutoSubtitleGeneratorCreateResponse401 = {
6
+ message: "Unauthorized";
7
+ };
8
+ /**
9
+ * @internal
10
+ * V1AutoSubtitleGeneratorCreateResponse401 without any key transformation, this is what
11
+ * we expect to come in as network data
12
+ */
13
+ export type External$V1AutoSubtitleGeneratorCreateResponse401 = {
14
+ message: "Unauthorized";
15
+ };
16
+ export declare const Schemas$V1AutoSubtitleGeneratorCreateResponse401: {
17
+ in: z.ZodType<V1AutoSubtitleGeneratorCreateResponse401, z.ZodTypeDef, unknown>;
18
+ out: z.ZodType<External$V1AutoSubtitleGeneratorCreateResponse401, z.ZodTypeDef, V1AutoSubtitleGeneratorCreateResponse401>;
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$V1AutoSubtitleGeneratorCreateResponse401 = 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 V1AutoSubtitleGeneratorCreateResponse401
41
+ */
42
+ const SchemaIn$V1AutoSubtitleGeneratorCreateResponse401 = 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$V1AutoSubtitleGeneratorCreateResponse401
54
+ */
55
+ const SchemaOut$V1AutoSubtitleGeneratorCreateResponse401 = 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$V1AutoSubtitleGeneratorCreateResponse401 = {
65
+ in: SchemaIn$V1AutoSubtitleGeneratorCreateResponse401,
66
+ out: SchemaOut$V1AutoSubtitleGeneratorCreateResponse401,
67
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * V1AutoSubtitleGeneratorCreateResponse404MessageEnum
3
+ */
4
+ export type V1AutoSubtitleGeneratorCreateResponse404MessageEnum = "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 V1AutoSubtitleGeneratorCreateResponse404 = {
6
+ message: "Not Found";
7
+ };
8
+ /**
9
+ * @internal
10
+ * V1AutoSubtitleGeneratorCreateResponse404 without any key transformation, this is what
11
+ * we expect to come in as network data
12
+ */
13
+ export type External$V1AutoSubtitleGeneratorCreateResponse404 = {
14
+ message: "Not Found";
15
+ };
16
+ export declare const Schemas$V1AutoSubtitleGeneratorCreateResponse404: {
17
+ in: z.ZodType<V1AutoSubtitleGeneratorCreateResponse404, z.ZodTypeDef, unknown>;
18
+ out: z.ZodType<External$V1AutoSubtitleGeneratorCreateResponse404, z.ZodTypeDef, V1AutoSubtitleGeneratorCreateResponse404>;
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$V1AutoSubtitleGeneratorCreateResponse404 = 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 V1AutoSubtitleGeneratorCreateResponse404
41
+ */
42
+ const SchemaIn$V1AutoSubtitleGeneratorCreateResponse404 = 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$V1AutoSubtitleGeneratorCreateResponse404
54
+ */
55
+ const SchemaOut$V1AutoSubtitleGeneratorCreateResponse404 = 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$V1AutoSubtitleGeneratorCreateResponse404 = {
65
+ in: SchemaIn$V1AutoSubtitleGeneratorCreateResponse404,
66
+ out: SchemaOut$V1AutoSubtitleGeneratorCreateResponse404,
67
+ };
@@ -0,0 +1,19 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Unprocessable Entity
4
+ */
5
+ export type V1AutoSubtitleGeneratorCreateResponse422 = {
6
+ message: string;
7
+ };
8
+ /**
9
+ * @internal
10
+ * V1AutoSubtitleGeneratorCreateResponse422 without any key transformation, this is what
11
+ * we expect to come in as network data
12
+ */
13
+ export type External$V1AutoSubtitleGeneratorCreateResponse422 = {
14
+ message: string;
15
+ };
16
+ export declare const Schemas$V1AutoSubtitleGeneratorCreateResponse422: {
17
+ in: z.ZodType<V1AutoSubtitleGeneratorCreateResponse422, z.ZodTypeDef, unknown>;
18
+ out: z.ZodType<External$V1AutoSubtitleGeneratorCreateResponse422, z.ZodTypeDef, V1AutoSubtitleGeneratorCreateResponse422>;
19
+ };