post-engineer-mcp 1.52.556 → 1.52.568

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,15 +1,31 @@
1
1
  import { z } from 'zod';
2
2
  export declare const DisconnectAccountShape: {
3
- provider: z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky", "threads", "facebook", "pinterest", "fanvue", "3speak", "rumble"]>;
3
+ provider: z.ZodEnum<{
4
+ youtube: "youtube";
5
+ instagram: "instagram";
6
+ linkedin: "linkedin";
7
+ bluesky: "bluesky";
8
+ threads: "threads";
9
+ facebook: "facebook";
10
+ pinterest: "pinterest";
11
+ fanvue: "fanvue";
12
+ "3speak": "3speak";
13
+ rumble: "rumble";
14
+ }>;
4
15
  providerAccountId: z.ZodString;
5
16
  };
6
17
  export declare const DisconnectAccountSchema: z.ZodObject<{
7
- provider: z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky", "threads", "facebook", "pinterest", "fanvue", "3speak", "rumble"]>;
18
+ provider: z.ZodEnum<{
19
+ youtube: "youtube";
20
+ instagram: "instagram";
21
+ linkedin: "linkedin";
22
+ bluesky: "bluesky";
23
+ threads: "threads";
24
+ facebook: "facebook";
25
+ pinterest: "pinterest";
26
+ fanvue: "fanvue";
27
+ "3speak": "3speak";
28
+ rumble: "rumble";
29
+ }>;
8
30
  providerAccountId: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- provider: "youtube" | "instagram" | "linkedin" | "bluesky" | "threads" | "facebook" | "pinterest" | "fanvue" | "3speak" | "rumble";
11
- providerAccountId: string;
12
- }, {
13
- provider: "youtube" | "instagram" | "linkedin" | "bluesky" | "threads" | "facebook" | "pinterest" | "fanvue" | "3speak" | "rumble";
14
- providerAccountId: string;
15
- }>;
31
+ }, z.core.$strip>;
@@ -3,84 +3,44 @@ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
3
  import type { PostEngineerClient } from './client.js';
4
4
  import { type McpToolResponse } from './tools-call.js';
5
5
  export declare const ListClonedVoicesShape: {};
6
- export declare const ListClonedVoicesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
6
+ export declare const ListClonedVoicesSchema: z.ZodObject<{}, z.core.$strip>;
7
7
  export declare const CreateClonedVoiceShape: {
8
8
  audioUrl: z.ZodOptional<z.ZodString>;
9
9
  audioPath: z.ZodOptional<z.ZodString>;
10
- language: z.ZodEffects<z.ZodString, string, string>;
10
+ language: z.ZodString;
11
11
  consent: z.ZodLiteral<true>;
12
12
  denoise: z.ZodBoolean;
13
13
  };
14
14
  export declare const CREATE_CLONE_AUDIO_SOURCE_MESSAGE = "Send exactly one of audioUrl or audioPath.";
15
- export declare const CreateClonedVoiceSchema: z.ZodEffects<z.ZodObject<{
15
+ export declare const CreateClonedVoiceSchema: z.ZodObject<{
16
16
  audioUrl: z.ZodOptional<z.ZodString>;
17
17
  audioPath: z.ZodOptional<z.ZodString>;
18
- language: z.ZodEffects<z.ZodString, string, string>;
18
+ language: z.ZodString;
19
19
  consent: z.ZodLiteral<true>;
20
20
  denoise: z.ZodBoolean;
21
- }, "strip", z.ZodTypeAny, {
22
- language: string;
23
- consent: true;
24
- denoise: boolean;
25
- audioUrl?: string | undefined;
26
- audioPath?: string | undefined;
27
- }, {
28
- language: string;
29
- consent: true;
30
- denoise: boolean;
31
- audioUrl?: string | undefined;
32
- audioPath?: string | undefined;
33
- }>, {
34
- language: string;
35
- consent: true;
36
- denoise: boolean;
37
- audioUrl?: string | undefined;
38
- audioPath?: string | undefined;
39
- }, {
40
- language: string;
41
- consent: true;
42
- denoise: boolean;
43
- audioUrl?: string | undefined;
44
- audioPath?: string | undefined;
45
- }>;
21
+ }, z.core.$strip>;
46
22
  export declare const DeleteClonedVoiceShape: {
47
23
  cloneId: z.ZodString;
48
24
  };
49
25
  export declare const DeleteClonedVoiceSchema: z.ZodObject<{
50
26
  cloneId: z.ZodString;
51
- }, "strip", z.ZodTypeAny, {
52
- cloneId: string;
53
- }, {
54
- cloneId: string;
55
- }>;
27
+ }, z.core.$strip>;
56
28
  export declare const GetClonedVoiceShape: {
57
29
  cloneId: z.ZodString;
58
30
  };
59
31
  export declare const GetClonedVoiceSchema: z.ZodObject<{
60
32
  cloneId: z.ZodString;
61
- }, "strip", z.ZodTypeAny, {
62
- cloneId: string;
63
- }, {
64
- cloneId: string;
65
- }>;
33
+ }, z.core.$strip>;
66
34
  export declare const PreviewClonedVoiceShape: {
67
35
  cloneId: z.ZodString;
68
- language: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
36
+ language: z.ZodOptional<z.ZodString>;
69
37
  text: z.ZodOptional<z.ZodString>;
70
38
  };
71
39
  export declare const PreviewClonedVoiceSchema: z.ZodObject<{
72
40
  cloneId: z.ZodString;
73
- language: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
41
+ language: z.ZodOptional<z.ZodString>;
74
42
  text: z.ZodOptional<z.ZodString>;
75
- }, "strip", z.ZodTypeAny, {
76
- cloneId: string;
77
- language?: string | undefined;
78
- text?: string | undefined;
79
- }, {
80
- cloneId: string;
81
- language?: string | undefined;
82
- text?: string | undefined;
83
- }>;
43
+ }, z.core.$strip>;
84
44
  export declare const PreviewHouseVoiceShape: {
85
45
  voiceId: z.ZodString;
86
46
  text: z.ZodOptional<z.ZodString>;
@@ -88,13 +48,7 @@ export declare const PreviewHouseVoiceShape: {
88
48
  export declare const PreviewHouseVoiceSchema: z.ZodObject<{
89
49
  voiceId: z.ZodString;
90
50
  text: z.ZodOptional<z.ZodString>;
91
- }, "strip", z.ZodTypeAny, {
92
- voiceId: string;
93
- text?: string | undefined;
94
- }, {
95
- voiceId: string;
96
- text?: string | undefined;
97
- }>;
51
+ }, z.core.$strip>;
98
52
  export declare function handleListClonedVoices(client: PostEngineerClient): Promise<McpToolResponse>;
99
53
  export declare function handleCreateClonedVoice(client: PostEngineerClient, rawArgs: z.infer<typeof CreateClonedVoiceSchema>): Promise<McpToolResponse>;
100
54
  export declare function handleGetClonedVoice(client: PostEngineerClient, args: z.infer<typeof GetClonedVoiceSchema>): Promise<McpToolResponse>;
@@ -2,7 +2,17 @@ import { z } from 'zod';
2
2
  import type { PostEngineerClient } from './client.js';
3
3
  import { type McpToolResponse } from './tools-call.js';
4
4
  export declare const ConnectAccountShape: {
5
- provider: z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky", "threads", "facebook", "fanvue", "3speak", "rumble"]>;
5
+ provider: z.ZodEnum<{
6
+ youtube: "youtube";
7
+ instagram: "instagram";
8
+ linkedin: "linkedin";
9
+ bluesky: "bluesky";
10
+ threads: "threads";
11
+ facebook: "facebook";
12
+ fanvue: "fanvue";
13
+ "3speak": "3speak";
14
+ rumble: "rumble";
15
+ }>;
6
16
  handle: z.ZodOptional<z.ZodString>;
7
17
  appPassword: z.ZodOptional<z.ZodString>;
8
18
  username: z.ZodOptional<z.ZodString>;
@@ -11,28 +21,22 @@ export declare const ConnectAccountShape: {
11
21
  accessToken: z.ZodOptional<z.ZodString>;
12
22
  };
13
23
  export declare const ConnectAccountSchema: z.ZodObject<{
14
- provider: z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky", "threads", "facebook", "fanvue", "3speak", "rumble"]>;
24
+ provider: z.ZodEnum<{
25
+ youtube: "youtube";
26
+ instagram: "instagram";
27
+ linkedin: "linkedin";
28
+ bluesky: "bluesky";
29
+ threads: "threads";
30
+ facebook: "facebook";
31
+ fanvue: "fanvue";
32
+ "3speak": "3speak";
33
+ rumble: "rumble";
34
+ }>;
15
35
  handle: z.ZodOptional<z.ZodString>;
16
36
  appPassword: z.ZodOptional<z.ZodString>;
17
37
  username: z.ZodOptional<z.ZodString>;
18
38
  postingKey: z.ZodOptional<z.ZodString>;
19
39
  channelId: z.ZodOptional<z.ZodString>;
20
40
  accessToken: z.ZodOptional<z.ZodString>;
21
- }, "strip", z.ZodTypeAny, {
22
- provider: "youtube" | "instagram" | "linkedin" | "bluesky" | "threads" | "facebook" | "fanvue" | "3speak" | "rumble";
23
- handle?: string | undefined;
24
- appPassword?: string | undefined;
25
- username?: string | undefined;
26
- postingKey?: string | undefined;
27
- channelId?: string | undefined;
28
- accessToken?: string | undefined;
29
- }, {
30
- provider: "youtube" | "instagram" | "linkedin" | "bluesky" | "threads" | "facebook" | "fanvue" | "3speak" | "rumble";
31
- handle?: string | undefined;
32
- appPassword?: string | undefined;
33
- username?: string | undefined;
34
- postingKey?: string | undefined;
35
- channelId?: string | undefined;
36
- accessToken?: string | undefined;
37
- }>;
41
+ }, z.core.$strip>;
38
42
  export declare function handleConnectAccount(client: PostEngineerClient, args: z.infer<typeof ConnectAccountSchema>): Promise<McpToolResponse>;
@@ -2,83 +2,55 @@ import { z } from 'zod';
2
2
  import type { PostEngineerClient } from './client.js';
3
3
  import { type McpToolResponse } from './tools-call.js';
4
4
  export declare const UpdatePersonaShape: {
5
- voiceId: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<[string, ...string[]]>, z.ZodString]>, string, string>>;
6
- language: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
7
- videoAspect: z.ZodOptional<z.ZodEnum<["9:16", "16:9", "1:1"]>>;
8
- videoLayout: z.ZodOptional<z.ZodEnum<["standard", "react"]>>;
5
+ voiceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
6
+ [x: string]: string;
7
+ }>, z.ZodString]>>;
8
+ language: z.ZodOptional<z.ZodString>;
9
+ videoAspect: z.ZodOptional<z.ZodEnum<{
10
+ "9:16": "9:16";
11
+ "16:9": "16:9";
12
+ "1:1": "1:1";
13
+ }>>;
14
+ videoLayout: z.ZodOptional<z.ZodEnum<{
15
+ standard: "standard";
16
+ react: "react";
17
+ }>>;
9
18
  scriptPrompt: z.ZodOptional<z.ZodString>;
10
19
  paragraphNumber: z.ZodOptional<z.ZodNumber>;
11
20
  niche: z.ZodOptional<z.ZodString>;
12
- faceQuality: z.ZodOptional<z.ZodEnum<["ok", "very_good"]>>;
21
+ faceQuality: z.ZodOptional<z.ZodEnum<{
22
+ ok: "ok";
23
+ very_good: "very_good";
24
+ }>>;
13
25
  avatarUrl: z.ZodOptional<z.ZodString>;
14
26
  avatarPath: z.ZodOptional<z.ZodString>;
15
27
  personaId: z.ZodString;
16
28
  name: z.ZodOptional<z.ZodString>;
17
29
  };
18
- export declare const UpdatePersonaSchema: z.ZodEffects<z.ZodObject<{
19
- voiceId: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<[string, ...string[]]>, z.ZodString]>, string, string>>;
20
- language: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
21
- videoAspect: z.ZodOptional<z.ZodEnum<["9:16", "16:9", "1:1"]>>;
22
- videoLayout: z.ZodOptional<z.ZodEnum<["standard", "react"]>>;
30
+ export declare const UpdatePersonaSchema: z.ZodObject<{
31
+ voiceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
32
+ [x: string]: string;
33
+ }>, z.ZodString]>>;
34
+ language: z.ZodOptional<z.ZodString>;
35
+ videoAspect: z.ZodOptional<z.ZodEnum<{
36
+ "9:16": "9:16";
37
+ "16:9": "16:9";
38
+ "1:1": "1:1";
39
+ }>>;
40
+ videoLayout: z.ZodOptional<z.ZodEnum<{
41
+ standard: "standard";
42
+ react: "react";
43
+ }>>;
23
44
  scriptPrompt: z.ZodOptional<z.ZodString>;
24
45
  paragraphNumber: z.ZodOptional<z.ZodNumber>;
25
46
  niche: z.ZodOptional<z.ZodString>;
26
- faceQuality: z.ZodOptional<z.ZodEnum<["ok", "very_good"]>>;
47
+ faceQuality: z.ZodOptional<z.ZodEnum<{
48
+ ok: "ok";
49
+ very_good: "very_good";
50
+ }>>;
27
51
  avatarUrl: z.ZodOptional<z.ZodString>;
28
52
  avatarPath: z.ZodOptional<z.ZodString>;
29
53
  personaId: z.ZodString;
30
54
  name: z.ZodOptional<z.ZodString>;
31
- }, "strip", z.ZodTypeAny, {
32
- personaId: string;
33
- avatarUrl?: string | undefined;
34
- avatarPath?: string | undefined;
35
- name?: string | undefined;
36
- voiceId?: string | undefined;
37
- language?: string | undefined;
38
- videoAspect?: "9:16" | "16:9" | "1:1" | undefined;
39
- videoLayout?: "standard" | "react" | undefined;
40
- scriptPrompt?: string | undefined;
41
- paragraphNumber?: number | undefined;
42
- niche?: string | undefined;
43
- faceQuality?: "ok" | "very_good" | undefined;
44
- }, {
45
- personaId: string;
46
- avatarUrl?: string | undefined;
47
- avatarPath?: string | undefined;
48
- name?: string | undefined;
49
- voiceId?: string | undefined;
50
- language?: string | undefined;
51
- videoAspect?: "9:16" | "16:9" | "1:1" | undefined;
52
- videoLayout?: "standard" | "react" | undefined;
53
- scriptPrompt?: string | undefined;
54
- paragraphNumber?: number | undefined;
55
- niche?: string | undefined;
56
- faceQuality?: "ok" | "very_good" | undefined;
57
- }>, {
58
- personaId: string;
59
- avatarUrl?: string | undefined;
60
- avatarPath?: string | undefined;
61
- name?: string | undefined;
62
- voiceId?: string | undefined;
63
- language?: string | undefined;
64
- videoAspect?: "9:16" | "16:9" | "1:1" | undefined;
65
- videoLayout?: "standard" | "react" | undefined;
66
- scriptPrompt?: string | undefined;
67
- paragraphNumber?: number | undefined;
68
- niche?: string | undefined;
69
- faceQuality?: "ok" | "very_good" | undefined;
70
- }, {
71
- personaId: string;
72
- avatarUrl?: string | undefined;
73
- avatarPath?: string | undefined;
74
- name?: string | undefined;
75
- voiceId?: string | undefined;
76
- language?: string | undefined;
77
- videoAspect?: "9:16" | "16:9" | "1:1" | undefined;
78
- videoLayout?: "standard" | "react" | undefined;
79
- scriptPrompt?: string | undefined;
80
- paragraphNumber?: number | undefined;
81
- niche?: string | undefined;
82
- faceQuality?: "ok" | "very_good" | undefined;
83
- }>;
55
+ }, z.core.$strip>;
84
56
  export declare function handleUpdatePersona(client: PostEngineerClient, args: z.infer<typeof UpdatePersonaSchema>): Promise<McpToolResponse>;
@@ -1,43 +1,53 @@
1
1
  import { z } from 'zod';
2
2
  export declare const PublishVideoDirectShape: {
3
- provider: z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky", "threads", "facebook", "pinterest", "fanvue", "3speak", "rumble"]>;
3
+ provider: z.ZodEnum<{
4
+ youtube: "youtube";
5
+ instagram: "instagram";
6
+ linkedin: "linkedin";
7
+ bluesky: "bluesky";
8
+ threads: "threads";
9
+ facebook: "facebook";
10
+ pinterest: "pinterest";
11
+ fanvue: "fanvue";
12
+ "3speak": "3speak";
13
+ rumble: "rumble";
14
+ }>;
4
15
  videoPath: z.ZodString;
5
- accountIds: z.ZodArray<z.ZodString, "many">;
16
+ accountIds: z.ZodArray<z.ZodString>;
6
17
  title: z.ZodOptional<z.ZodString>;
7
18
  description: z.ZodOptional<z.ZodString>;
8
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
- privacyStatus: z.ZodOptional<z.ZodEnum<["public", "private", "unlisted"]>>;
19
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ privacyStatus: z.ZodOptional<z.ZodEnum<{
21
+ public: "public";
22
+ private: "private";
23
+ unlisted: "unlisted";
24
+ }>>;
10
25
  caption: z.ZodOptional<z.ZodString>;
11
26
  boardId: z.ZodOptional<z.ZodString>;
12
27
  };
13
28
  export declare const PublishVideoDirectSchema: z.ZodObject<{
14
- provider: z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky", "threads", "facebook", "pinterest", "fanvue", "3speak", "rumble"]>;
29
+ provider: z.ZodEnum<{
30
+ youtube: "youtube";
31
+ instagram: "instagram";
32
+ linkedin: "linkedin";
33
+ bluesky: "bluesky";
34
+ threads: "threads";
35
+ facebook: "facebook";
36
+ pinterest: "pinterest";
37
+ fanvue: "fanvue";
38
+ "3speak": "3speak";
39
+ rumble: "rumble";
40
+ }>;
15
41
  videoPath: z.ZodString;
16
- accountIds: z.ZodArray<z.ZodString, "many">;
42
+ accountIds: z.ZodArray<z.ZodString>;
17
43
  title: z.ZodOptional<z.ZodString>;
18
44
  description: z.ZodOptional<z.ZodString>;
19
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
- privacyStatus: z.ZodOptional<z.ZodEnum<["public", "private", "unlisted"]>>;
45
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ privacyStatus: z.ZodOptional<z.ZodEnum<{
47
+ public: "public";
48
+ private: "private";
49
+ unlisted: "unlisted";
50
+ }>>;
21
51
  caption: z.ZodOptional<z.ZodString>;
22
52
  boardId: z.ZodOptional<z.ZodString>;
23
- }, "strip", z.ZodTypeAny, {
24
- provider: "youtube" | "instagram" | "linkedin" | "bluesky" | "threads" | "facebook" | "pinterest" | "fanvue" | "3speak" | "rumble";
25
- accountIds: string[];
26
- videoPath: string;
27
- title?: string | undefined;
28
- description?: string | undefined;
29
- tags?: string[] | undefined;
30
- privacyStatus?: "public" | "private" | "unlisted" | undefined;
31
- caption?: string | undefined;
32
- boardId?: string | undefined;
33
- }, {
34
- provider: "youtube" | "instagram" | "linkedin" | "bluesky" | "threads" | "facebook" | "pinterest" | "fanvue" | "3speak" | "rumble";
35
- accountIds: string[];
36
- videoPath: string;
37
- title?: string | undefined;
38
- description?: string | undefined;
39
- tags?: string[] | undefined;
40
- privacyStatus?: "public" | "private" | "unlisted" | undefined;
41
- caption?: string | undefined;
42
- boardId?: string | undefined;
43
- }>;
53
+ }, z.core.$strip>;
@@ -1,52 +1,28 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ListSchedulesShape: {};
3
- export declare const ListSchedulesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3
+ export declare const ListSchedulesSchema: z.ZodObject<{}, z.core.$strip>;
4
4
  export declare const ListPostsShape: {
5
5
  limit: z.ZodDefault<z.ZodNumber>;
6
6
  from: z.ZodOptional<z.ZodString>;
7
7
  to: z.ZodOptional<z.ZodString>;
8
8
  };
9
- export declare const ListPostsSchema: z.ZodEffects<z.ZodObject<{
9
+ export declare const ListPostsSchema: z.ZodObject<{
10
10
  limit: z.ZodDefault<z.ZodNumber>;
11
11
  from: z.ZodOptional<z.ZodString>;
12
12
  to: z.ZodOptional<z.ZodString>;
13
- }, "strip", z.ZodTypeAny, {
14
- limit: number;
15
- from?: string | undefined;
16
- to?: string | undefined;
17
- }, {
18
- limit?: number | undefined;
19
- from?: string | undefined;
20
- to?: string | undefined;
21
- }>, {
22
- limit: number;
23
- from?: string | undefined;
24
- to?: string | undefined;
25
- }, {
26
- limit?: number | undefined;
27
- from?: string | undefined;
28
- to?: string | undefined;
29
- }>;
13
+ }, z.core.$strip>;
30
14
  export declare const CancelScheduleShape: {
31
15
  scheduleId: z.ZodString;
32
16
  };
33
17
  export declare const CancelScheduleSchema: z.ZodObject<{
34
18
  scheduleId: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- scheduleId: string;
37
- }, {
38
- scheduleId: string;
39
- }>;
19
+ }, z.core.$strip>;
40
20
  export declare const GetSlotShape: {
41
21
  slotId: z.ZodString;
42
22
  };
43
23
  export declare const GetSlotSchema: z.ZodObject<{
44
24
  slotId: z.ZodString;
45
- }, "strip", z.ZodTypeAny, {
46
- slotId: string;
47
- }, {
48
- slotId: string;
49
- }>;
25
+ }, z.core.$strip>;
50
26
  export declare const UpdateSlotTitleShape: {
51
27
  slotId: z.ZodString;
52
28
  title: z.ZodString;
@@ -54,33 +30,36 @@ export declare const UpdateSlotTitleShape: {
54
30
  export declare const UpdateSlotTitleSchema: z.ZodObject<{
55
31
  slotId: z.ZodString;
56
32
  title: z.ZodString;
57
- }, "strip", z.ZodTypeAny, {
58
- title: string;
59
- slotId: string;
60
- }, {
61
- title: string;
62
- slotId: string;
63
- }>;
33
+ }, z.core.$strip>;
64
34
  export declare const DeleteSlotShape: {
65
35
  slotId: z.ZodString;
66
36
  };
67
37
  export declare const DeleteSlotSchema: z.ZodObject<{
68
38
  slotId: z.ZodString;
69
- }, "strip", z.ZodTypeAny, {
70
- slotId: string;
71
- }, {
72
- slotId: string;
73
- }>;
39
+ }, z.core.$strip>;
74
40
  export declare const GeneratePersonaVideoOptionsShape: {
75
- videoType: z.ZodEnum<["full_lipsync", "hook_lipsync", "faceless"]>;
41
+ videoType: z.ZodEnum<{
42
+ full_lipsync: "full_lipsync";
43
+ hook_lipsync: "hook_lipsync";
44
+ faceless: "faceless";
45
+ }>;
76
46
  musicMood: z.ZodOptional<z.ZodString>;
77
- audioUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
47
+ audioUrl: z.ZodOptional<z.ZodString>;
78
48
  imageId: z.ZodOptional<z.ZodString>;
79
- voiceId: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<[string, ...string[]]>, z.ZodString]>, string, string>>;
80
- webhookUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
81
- videoAspect: z.ZodOptional<z.ZodEnum<["9:16", "16:9", "1:1"]>>;
82
- videoLayout: z.ZodOptional<z.ZodEnum<["standard", "react"]>>;
49
+ voiceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
50
+ [x: string]: string;
51
+ }>, z.ZodString]>>;
52
+ webhookUrl: z.ZodOptional<z.ZodString>;
53
+ videoAspect: z.ZodOptional<z.ZodEnum<{
54
+ "9:16": "9:16";
55
+ "16:9": "16:9";
56
+ "1:1": "1:1";
57
+ }>>;
58
+ videoLayout: z.ZodOptional<z.ZodEnum<{
59
+ standard: "standard";
60
+ react: "react";
61
+ }>>;
83
62
  paragraphNumber: z.ZodOptional<z.ZodNumber>;
84
- language: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
63
+ language: z.ZodOptional<z.ZodString>;
85
64
  niche: z.ZodOptional<z.ZodString>;
86
65
  };
@@ -80,16 +80,15 @@ function httpsUrlField(fieldName) {
80
80
  }
81
81
  export const GeneratePersonaVideoOptionsShape = {
82
82
  // The one video mode (issue #542 follow-up): required — it decides the
83
- // render path and the price. The errorMap gives the missing/invalid
84
- // message with every mode and its cost, so the agent can choose knowing
85
- // the price.
83
+ // render path and the price. The `error` callback gives the
84
+ // missing/invalid message with every mode and its cost, so the agent can
85
+ // choose knowing the price. Zod 4 replaced v3's `errorMap`: a missing
86
+ // value arrives as `invalid_value` with no `input` (v3's `ctx.data`).
86
87
  videoType: z
87
88
  .enum(VIDEO_TYPES, {
88
- errorMap: (issue, ctx) => ({
89
- message: issue.code === 'invalid_type' && ctx.data === undefined
90
- ? `options.videoType is required; ${VIDEO_TYPE_ERROR_SUFFIX}`
91
- : unknownVideoTypeMessage(ctx.data),
92
- }),
89
+ error: (issue) => issue.input === undefined
90
+ ? `options.videoType is required; ${VIDEO_TYPE_ERROR_SUFFIX}`
91
+ : unknownVideoTypeMessage(issue.input),
93
92
  })
94
93
  .describe('The one video mode: full_lipsync = the whole video is the persona talking (requires a persona with a photo; 8 tokens at face quality ok, 15 at very_good); hook_lipsync = lip sync on the hook only, agent images after (requires a persona with a photo; 2 tokens ok, 3 very_good); faceless = agent images only, no face (persona optional — with one, its voice and niche still apply; 1 token). Required: the mode decides the render path and the price.'),
95
94
  musicMood: z
@@ -1 +1 @@
1
- {"version":3,"file":"schedule-shapes.js","sourceRoot":"","sources":["../src/schedule-shapes.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,gDAAgD;AAChD,EAAE;AACF,wEAAwE;AACxE,yEAAyE;AACzE,gBAAgB;AAChB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAErC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAEhE,MAAM,WAAW,GAAG,0EAA0E,CAAC;AAC/F,MAAM,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