post-engineer-mcp 1.1.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tools.d.ts CHANGED
@@ -2,7 +2,14 @@ import { z } from 'zod';
2
2
  import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
3
3
  import type { PostEngineerClient } from './client.js';
4
4
  export type McpToolResponse = CallToolResult;
5
- export declare const CreatePersonaSchema: z.ZodObject<{
5
+ export declare function missingProviderAccountIds(args: {
6
+ providers: string[];
7
+ youtubeAccountIds?: string[];
8
+ instagramAccountIds?: string[];
9
+ linkedinAccountIds?: string[];
10
+ blueskyAccountIds?: string[];
11
+ }): string[];
12
+ export declare const CreatePersonaShape: {
6
13
  name: z.ZodString;
7
14
  avatarUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8
15
  voiceId: z.ZodDefault<z.ZodString>;
@@ -13,6 +20,46 @@ export declare const CreatePersonaSchema: z.ZodObject<{
13
20
  niche: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14
21
  faceMixPercent: z.ZodDefault<z.ZodNumber>;
15
22
  faceQuality: z.ZodDefault<z.ZodEnum<["ok", "very_good"]>>;
23
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ path: z.ZodString;
25
+ tag: z.ZodOptional<z.ZodString>;
26
+ description: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ path: string;
29
+ tag?: string | undefined;
30
+ description?: string | undefined;
31
+ }, {
32
+ path: string;
33
+ tag?: string | undefined;
34
+ description?: string | undefined;
35
+ }>, "many">>;
36
+ imagePrimaryIndex: z.ZodOptional<z.ZodNumber>;
37
+ };
38
+ export declare const CreatePersonaSchema: z.ZodEffects<z.ZodObject<{
39
+ name: z.ZodString;
40
+ avatarUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
+ voiceId: z.ZodDefault<z.ZodString>;
42
+ language: z.ZodDefault<z.ZodString>;
43
+ videoAspect: z.ZodDefault<z.ZodEnum<["9:16", "16:9"]>>;
44
+ scriptPrompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
45
+ paragraphNumber: z.ZodDefault<z.ZodNumber>;
46
+ niche: z.ZodDefault<z.ZodOptional<z.ZodString>>;
47
+ faceMixPercent: z.ZodDefault<z.ZodNumber>;
48
+ faceQuality: z.ZodDefault<z.ZodEnum<["ok", "very_good"]>>;
49
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
+ path: z.ZodString;
51
+ tag: z.ZodOptional<z.ZodString>;
52
+ description: z.ZodOptional<z.ZodString>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ path: string;
55
+ tag?: string | undefined;
56
+ description?: string | undefined;
57
+ }, {
58
+ path: string;
59
+ tag?: string | undefined;
60
+ description?: string | undefined;
61
+ }>, "many">>;
62
+ imagePrimaryIndex: z.ZodOptional<z.ZodNumber>;
16
63
  }, "strip", z.ZodTypeAny, {
17
64
  name: string;
18
65
  voiceId: string;
@@ -24,6 +71,12 @@ export declare const CreatePersonaSchema: z.ZodObject<{
24
71
  faceMixPercent: number;
25
72
  faceQuality: "ok" | "very_good";
26
73
  avatarUrl?: string | null | undefined;
74
+ imagePrimaryIndex?: number | undefined;
75
+ images?: {
76
+ path: string;
77
+ tag?: string | undefined;
78
+ description?: string | undefined;
79
+ }[] | undefined;
27
80
  }, {
28
81
  name: string;
29
82
  avatarUrl?: string | null | undefined;
@@ -35,13 +88,68 @@ export declare const CreatePersonaSchema: z.ZodObject<{
35
88
  niche?: string | undefined;
36
89
  faceMixPercent?: number | undefined;
37
90
  faceQuality?: "ok" | "very_good" | undefined;
91
+ imagePrimaryIndex?: number | undefined;
92
+ images?: {
93
+ path: string;
94
+ tag?: string | undefined;
95
+ description?: string | undefined;
96
+ }[] | undefined;
97
+ }>, {
98
+ name: string;
99
+ voiceId: string;
100
+ language: string;
101
+ videoAspect: "9:16" | "16:9";
102
+ scriptPrompt: string;
103
+ paragraphNumber: number;
104
+ niche: string;
105
+ faceMixPercent: number;
106
+ faceQuality: "ok" | "very_good";
107
+ avatarUrl?: string | null | undefined;
108
+ imagePrimaryIndex?: number | undefined;
109
+ images?: {
110
+ path: string;
111
+ tag?: string | undefined;
112
+ description?: string | undefined;
113
+ }[] | undefined;
114
+ }, {
115
+ name: string;
116
+ avatarUrl?: string | null | undefined;
117
+ voiceId?: string | undefined;
118
+ language?: string | undefined;
119
+ videoAspect?: "9:16" | "16:9" | undefined;
120
+ scriptPrompt?: string | undefined;
121
+ paragraphNumber?: number | undefined;
122
+ niche?: string | undefined;
123
+ faceMixPercent?: number | undefined;
124
+ faceQuality?: "ok" | "very_good" | undefined;
125
+ imagePrimaryIndex?: number | undefined;
126
+ images?: {
127
+ path: string;
128
+ tag?: string | undefined;
129
+ description?: string | undefined;
130
+ }[] | undefined;
38
131
  }>;
132
+ export declare const ListPersonasShape: {};
39
133
  export declare const ListPersonasSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
134
+ export declare const ListVoicesShape: {};
40
135
  export declare const ListVoicesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
136
+ export declare const ListFacesShape: {};
137
+ export declare const ListFacesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
138
+ export declare const UpdatePersonaShape: {
139
+ personaId: z.ZodString;
140
+ name: z.ZodOptional<z.ZodString>;
141
+ avatarUrl: z.ZodOptional<z.ZodString>;
142
+ voiceId: z.ZodOptional<z.ZodString>;
143
+ language: z.ZodOptional<z.ZodString>;
144
+ videoAspect: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
145
+ scriptPrompt: z.ZodOptional<z.ZodString>;
146
+ paragraphNumber: z.ZodOptional<z.ZodNumber>;
147
+ niche: z.ZodOptional<z.ZodString>;
148
+ };
41
149
  export declare const UpdatePersonaSchema: z.ZodObject<{
42
150
  personaId: z.ZodString;
43
151
  name: z.ZodOptional<z.ZodString>;
44
- avatarUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
152
+ avatarUrl: z.ZodOptional<z.ZodString>;
45
153
  voiceId: z.ZodOptional<z.ZodString>;
46
154
  language: z.ZodOptional<z.ZodString>;
47
155
  videoAspect: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
@@ -51,7 +159,7 @@ export declare const UpdatePersonaSchema: z.ZodObject<{
51
159
  }, "strip", z.ZodTypeAny, {
52
160
  personaId: string;
53
161
  name?: string | undefined;
54
- avatarUrl?: string | null | undefined;
162
+ avatarUrl?: string | undefined;
55
163
  voiceId?: string | undefined;
56
164
  language?: string | undefined;
57
165
  videoAspect?: "9:16" | "16:9" | undefined;
@@ -61,7 +169,7 @@ export declare const UpdatePersonaSchema: z.ZodObject<{
61
169
  }, {
62
170
  personaId: string;
63
171
  name?: string | undefined;
64
- avatarUrl?: string | null | undefined;
172
+ avatarUrl?: string | undefined;
65
173
  voiceId?: string | undefined;
66
174
  language?: string | undefined;
67
175
  videoAspect?: "9:16" | "16:9" | undefined;
@@ -69,8 +177,41 @@ export declare const UpdatePersonaSchema: z.ZodObject<{
69
177
  paragraphNumber?: number | undefined;
70
178
  niche?: string | undefined;
71
179
  }>;
180
+ export declare const ListSocialAccountsShape: {};
72
181
  export declare const ListSocialAccountsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
182
+ export declare const ConnectAccountShape: {
183
+ provider: z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>;
184
+ handle: z.ZodOptional<z.ZodString>;
185
+ appPassword: z.ZodOptional<z.ZodString>;
186
+ };
187
+ export declare const ConnectAccountSchema: z.ZodObject<{
188
+ provider: z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>;
189
+ handle: z.ZodOptional<z.ZodString>;
190
+ appPassword: z.ZodOptional<z.ZodString>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ provider: "youtube" | "instagram" | "linkedin" | "bluesky";
193
+ handle?: string | undefined;
194
+ appPassword?: string | undefined;
195
+ }, {
196
+ provider: "youtube" | "instagram" | "linkedin" | "bluesky";
197
+ handle?: string | undefined;
198
+ appPassword?: string | undefined;
199
+ }>;
200
+ export declare const ListSchedulesShape: {};
73
201
  export declare const ListSchedulesSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
202
+ export declare const ListPostsShape: {
203
+ limit: z.ZodDefault<z.ZodNumber>;
204
+ };
205
+ export declare const ListPostsSchema: z.ZodObject<{
206
+ limit: z.ZodDefault<z.ZodNumber>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ limit: number;
209
+ }, {
210
+ limit?: number | undefined;
211
+ }>;
212
+ export declare const CancelScheduleShape: {
213
+ scheduleId: z.ZodString;
214
+ };
74
215
  export declare const CancelScheduleSchema: z.ZodObject<{
75
216
  scheduleId: z.ZodString;
76
217
  }, "strip", z.ZodTypeAny, {
@@ -78,17 +219,119 @@ export declare const CancelScheduleSchema: z.ZodObject<{
78
219
  }, {
79
220
  scheduleId: string;
80
221
  }>;
222
+ export declare const GetTokenBalanceShape: {};
81
223
  export declare const GetTokenBalanceSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
224
+ export declare const GenerateVideoShape: {
225
+ personaId: z.ZodOptional<z.ZodString>;
226
+ videoSubject: z.ZodOptional<z.ZodString>;
227
+ voiceId: z.ZodOptional<z.ZodString>;
228
+ scriptPrompt: z.ZodOptional<z.ZodString>;
229
+ audioUrl: z.ZodOptional<z.ZodString>;
230
+ imageId: z.ZodOptional<z.ZodString>;
231
+ };
82
232
  export declare const GenerateVideoSchema: z.ZodObject<{
83
- personaId: z.ZodString;
233
+ personaId: z.ZodOptional<z.ZodString>;
234
+ videoSubject: z.ZodOptional<z.ZodString>;
235
+ voiceId: z.ZodOptional<z.ZodString>;
84
236
  scriptPrompt: z.ZodOptional<z.ZodString>;
237
+ audioUrl: z.ZodOptional<z.ZodString>;
238
+ imageId: z.ZodOptional<z.ZodString>;
85
239
  }, "strip", z.ZodTypeAny, {
86
- personaId: string;
240
+ voiceId?: string | undefined;
87
241
  scriptPrompt?: string | undefined;
242
+ personaId?: string | undefined;
243
+ videoSubject?: string | undefined;
244
+ audioUrl?: string | undefined;
245
+ imageId?: string | undefined;
88
246
  }, {
89
- personaId: string;
247
+ voiceId?: string | undefined;
90
248
  scriptPrompt?: string | undefined;
249
+ personaId?: string | undefined;
250
+ videoSubject?: string | undefined;
251
+ audioUrl?: string | undefined;
252
+ imageId?: string | undefined;
253
+ }>;
254
+ export declare const ListPersonaImagesShape: {
255
+ personaId: z.ZodString;
256
+ };
257
+ export declare const ListPersonaImagesSchema: z.ZodObject<{
258
+ personaId: z.ZodString;
259
+ }, "strip", z.ZodTypeAny, {
260
+ personaId: string;
261
+ }, {
262
+ personaId: string;
263
+ }>;
264
+ export declare const AddPersonaImageShape: {
265
+ isPrimary: z.ZodOptional<z.ZodLiteral<true>>;
266
+ path: z.ZodString;
267
+ tag: z.ZodOptional<z.ZodString>;
268
+ description: z.ZodOptional<z.ZodString>;
269
+ personaId: z.ZodString;
270
+ };
271
+ export declare const AddPersonaImageSchema: z.ZodObject<{
272
+ isPrimary: z.ZodOptional<z.ZodLiteral<true>>;
273
+ path: z.ZodString;
274
+ tag: z.ZodOptional<z.ZodString>;
275
+ description: z.ZodOptional<z.ZodString>;
276
+ personaId: z.ZodString;
277
+ }, "strip", z.ZodTypeAny, {
278
+ path: string;
279
+ personaId: string;
280
+ tag?: string | undefined;
281
+ description?: string | undefined;
282
+ isPrimary?: true | undefined;
283
+ }, {
284
+ path: string;
285
+ personaId: string;
286
+ tag?: string | undefined;
287
+ description?: string | undefined;
288
+ isPrimary?: true | undefined;
289
+ }>;
290
+ export declare const UpdatePersonaImageShape: {
291
+ id: z.ZodString;
292
+ tag: z.ZodOptional<z.ZodString>;
293
+ description: z.ZodOptional<z.ZodString>;
294
+ isPrimary: z.ZodOptional<z.ZodLiteral<true>>;
295
+ };
296
+ export declare const UpdatePersonaImageSchema: z.ZodEffects<z.ZodObject<{
297
+ id: z.ZodString;
298
+ tag: z.ZodOptional<z.ZodString>;
299
+ description: z.ZodOptional<z.ZodString>;
300
+ isPrimary: z.ZodOptional<z.ZodLiteral<true>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ id: string;
303
+ tag?: string | undefined;
304
+ description?: string | undefined;
305
+ isPrimary?: true | undefined;
306
+ }, {
307
+ id: string;
308
+ tag?: string | undefined;
309
+ description?: string | undefined;
310
+ isPrimary?: true | undefined;
311
+ }>, {
312
+ id: string;
313
+ tag?: string | undefined;
314
+ description?: string | undefined;
315
+ isPrimary?: true | undefined;
316
+ }, {
317
+ id: string;
318
+ tag?: string | undefined;
319
+ description?: string | undefined;
320
+ isPrimary?: true | undefined;
321
+ }>;
322
+ export declare const RemovePersonaImageShape: {
323
+ id: z.ZodString;
324
+ };
325
+ export declare const RemovePersonaImageSchema: z.ZodObject<{
326
+ id: z.ZodString;
327
+ }, "strip", z.ZodTypeAny, {
328
+ id: string;
329
+ }, {
330
+ id: string;
91
331
  }>;
332
+ export declare const GetVideoStatusShape: {
333
+ taskId: z.ZodString;
334
+ };
92
335
  export declare const GetVideoStatusSchema: z.ZodObject<{
93
336
  taskId: z.ZodString;
94
337
  }, "strip", z.ZodTypeAny, {
@@ -96,12 +339,27 @@ export declare const GetVideoStatusSchema: z.ZodObject<{
96
339
  }, {
97
340
  taskId: string;
98
341
  }>;
99
- export declare const ScheduleVideoSchema: z.ZodObject<{
342
+ export declare const ScheduleVideoShape: {
100
343
  personaId: z.ZodString;
101
- providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin"]>, "many">;
344
+ providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
102
345
  youtubeAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
103
346
  instagramAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
104
347
  linkedinAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
348
+ blueskyAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
349
+ scheduledAt: z.ZodString;
350
+ daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
351
+ startHour: z.ZodOptional<z.ZodNumber>;
352
+ endHour: z.ZodOptional<z.ZodNumber>;
353
+ postsPerDay: z.ZodOptional<z.ZodNumber>;
354
+ timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
355
+ };
356
+ export declare const ScheduleVideoSchema: z.ZodEffects<z.ZodObject<{
357
+ personaId: z.ZodString;
358
+ providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
359
+ youtubeAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
360
+ instagramAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
361
+ linkedinAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
362
+ blueskyAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
105
363
  scheduledAt: z.ZodString;
106
364
  daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
107
365
  startHour: z.ZodOptional<z.ZodNumber>;
@@ -110,10 +368,37 @@ export declare const ScheduleVideoSchema: z.ZodObject<{
110
368
  timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
111
369
  }, "strip", z.ZodTypeAny, {
112
370
  personaId: string;
113
- providers: ("youtube" | "instagram" | "linkedin")[];
371
+ providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
372
+ youtubeAccountIds: string[];
373
+ instagramAccountIds: string[];
374
+ linkedinAccountIds: string[];
375
+ blueskyAccountIds: string[];
376
+ scheduledAt: string;
377
+ timezone: string;
378
+ daysOfWeek?: number[] | undefined;
379
+ startHour?: number | undefined;
380
+ endHour?: number | undefined;
381
+ postsPerDay?: number | undefined;
382
+ }, {
383
+ personaId: string;
384
+ providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
385
+ scheduledAt: string;
386
+ youtubeAccountIds?: string[] | undefined;
387
+ instagramAccountIds?: string[] | undefined;
388
+ linkedinAccountIds?: string[] | undefined;
389
+ blueskyAccountIds?: string[] | undefined;
390
+ daysOfWeek?: number[] | undefined;
391
+ startHour?: number | undefined;
392
+ endHour?: number | undefined;
393
+ postsPerDay?: number | undefined;
394
+ timezone?: string | undefined;
395
+ }>, {
396
+ personaId: string;
397
+ providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
114
398
  youtubeAccountIds: string[];
115
399
  instagramAccountIds: string[];
116
400
  linkedinAccountIds: string[];
401
+ blueskyAccountIds: string[];
117
402
  scheduledAt: string;
118
403
  timezone: string;
119
404
  daysOfWeek?: number[] | undefined;
@@ -122,11 +407,12 @@ export declare const ScheduleVideoSchema: z.ZodObject<{
122
407
  postsPerDay?: number | undefined;
123
408
  }, {
124
409
  personaId: string;
125
- providers: ("youtube" | "instagram" | "linkedin")[];
410
+ providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
126
411
  scheduledAt: string;
127
412
  youtubeAccountIds?: string[] | undefined;
128
413
  instagramAccountIds?: string[] | undefined;
129
414
  linkedinAccountIds?: string[] | undefined;
415
+ blueskyAccountIds?: string[] | undefined;
130
416
  daysOfWeek?: number[] | undefined;
131
417
  startHour?: number | undefined;
132
418
  endHour?: number | undefined;
@@ -136,11 +422,18 @@ export declare const ScheduleVideoSchema: z.ZodObject<{
136
422
  export declare function handleCreatePersona(client: PostEngineerClient, args: z.infer<typeof CreatePersonaSchema>): Promise<McpToolResponse>;
137
423
  export declare function handleListPersonas(client: PostEngineerClient): Promise<McpToolResponse>;
138
424
  export declare function handleListVoices(client: PostEngineerClient): Promise<McpToolResponse>;
425
+ export declare function handleListFaces(client: PostEngineerClient): Promise<McpToolResponse>;
139
426
  export declare function handleUpdatePersona(client: PostEngineerClient, args: z.infer<typeof UpdatePersonaSchema>): Promise<McpToolResponse>;
140
427
  export declare function handleListSocialAccounts(client: PostEngineerClient): Promise<McpToolResponse>;
428
+ export declare function handleConnectAccount(client: PostEngineerClient, args: z.infer<typeof ConnectAccountSchema>): Promise<McpToolResponse>;
141
429
  export declare function handleListSchedules(client: PostEngineerClient): Promise<McpToolResponse>;
430
+ export declare function handleListPosts(client: PostEngineerClient, args: z.infer<typeof ListPostsSchema>): Promise<McpToolResponse>;
142
431
  export declare function handleCancelSchedule(client: PostEngineerClient, args: z.infer<typeof CancelScheduleSchema>): Promise<McpToolResponse>;
143
432
  export declare function handleGetTokenBalance(client: PostEngineerClient): Promise<McpToolResponse>;
144
433
  export declare function handleGenerateVideo(client: PostEngineerClient, args: z.infer<typeof GenerateVideoSchema>): Promise<McpToolResponse>;
434
+ export declare function handleListPersonaImages(client: PostEngineerClient, args: z.infer<typeof ListPersonaImagesSchema>): Promise<McpToolResponse>;
435
+ export declare function handleAddPersonaImage(client: PostEngineerClient, args: z.infer<typeof AddPersonaImageSchema>): Promise<McpToolResponse>;
436
+ export declare function handleUpdatePersonaImage(client: PostEngineerClient, args: z.infer<typeof UpdatePersonaImageSchema>): Promise<McpToolResponse>;
437
+ export declare function handleRemovePersonaImage(client: PostEngineerClient, args: z.infer<typeof RemovePersonaImageSchema>): Promise<McpToolResponse>;
145
438
  export declare function handleGetVideoStatus(client: PostEngineerClient, args: z.infer<typeof GetVideoStatusSchema>): Promise<McpToolResponse>;
146
439
  export declare function handleScheduleVideo(client: PostEngineerClient, args: z.infer<typeof ScheduleVideoSchema>): Promise<McpToolResponse>;