post-engineer-mcp 1.0.0 → 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,46 @@ 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;
80
+ }, {
81
+ name: string;
82
+ avatarUrl?: string | null | undefined;
83
+ voiceId?: string | undefined;
84
+ language?: string | undefined;
85
+ videoAspect?: "9:16" | "16:9" | undefined;
86
+ scriptPrompt?: string | undefined;
87
+ paragraphNumber?: number | undefined;
88
+ niche?: string | undefined;
89
+ faceMixPercent?: number | undefined;
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;
27
114
  }, {
28
115
  name: string;
29
116
  avatarUrl?: string | null | undefined;
@@ -35,18 +122,216 @@ export declare const CreatePersonaSchema: z.ZodObject<{
35
122
  niche?: string | undefined;
36
123
  faceMixPercent?: number | undefined;
37
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, {}, {}>;
40
- export declare const GenerateVideoSchema: z.ZodObject<{
134
+ export declare const ListVoicesShape: {};
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
+ };
149
+ export declare const UpdatePersonaSchema: z.ZodObject<{
41
150
  personaId: z.ZodString;
151
+ name: z.ZodOptional<z.ZodString>;
152
+ avatarUrl: z.ZodOptional<z.ZodString>;
153
+ voiceId: z.ZodOptional<z.ZodString>;
154
+ language: z.ZodOptional<z.ZodString>;
155
+ videoAspect: z.ZodOptional<z.ZodEnum<["9:16", "16:9"]>>;
42
156
  scriptPrompt: z.ZodOptional<z.ZodString>;
157
+ paragraphNumber: z.ZodOptional<z.ZodNumber>;
158
+ niche: z.ZodOptional<z.ZodString>;
43
159
  }, "strip", z.ZodTypeAny, {
44
160
  personaId: string;
161
+ name?: string | undefined;
162
+ avatarUrl?: string | undefined;
163
+ voiceId?: string | undefined;
164
+ language?: string | undefined;
165
+ videoAspect?: "9:16" | "16:9" | undefined;
45
166
  scriptPrompt?: string | undefined;
167
+ paragraphNumber?: number | undefined;
168
+ niche?: string | undefined;
46
169
  }, {
47
170
  personaId: string;
171
+ name?: string | undefined;
172
+ avatarUrl?: string | undefined;
173
+ voiceId?: string | undefined;
174
+ language?: string | undefined;
175
+ videoAspect?: "9:16" | "16:9" | undefined;
176
+ scriptPrompt?: string | undefined;
177
+ paragraphNumber?: number | undefined;
178
+ niche?: string | undefined;
179
+ }>;
180
+ export declare const ListSocialAccountsShape: {};
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: {};
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
+ };
215
+ export declare const CancelScheduleSchema: z.ZodObject<{
216
+ scheduleId: z.ZodString;
217
+ }, "strip", z.ZodTypeAny, {
218
+ scheduleId: string;
219
+ }, {
220
+ scheduleId: string;
221
+ }>;
222
+ export declare const GetTokenBalanceShape: {};
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
+ };
232
+ export declare const GenerateVideoSchema: z.ZodObject<{
233
+ personaId: z.ZodOptional<z.ZodString>;
234
+ videoSubject: z.ZodOptional<z.ZodString>;
235
+ voiceId: z.ZodOptional<z.ZodString>;
236
+ scriptPrompt: z.ZodOptional<z.ZodString>;
237
+ audioUrl: z.ZodOptional<z.ZodString>;
238
+ imageId: z.ZodOptional<z.ZodString>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ voiceId?: string | undefined;
241
+ scriptPrompt?: string | undefined;
242
+ personaId?: string | undefined;
243
+ videoSubject?: string | undefined;
244
+ audioUrl?: string | undefined;
245
+ imageId?: string | undefined;
246
+ }, {
247
+ voiceId?: string | undefined;
48
248
  scriptPrompt?: string | undefined;
249
+ personaId?: string | undefined;
250
+ videoSubject?: string | undefined;
251
+ audioUrl?: string | undefined;
252
+ imageId?: string | undefined;
49
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;
331
+ }>;
332
+ export declare const GetVideoStatusShape: {
333
+ taskId: z.ZodString;
334
+ };
50
335
  export declare const GetVideoStatusSchema: z.ZodObject<{
51
336
  taskId: z.ZodString;
52
337
  }, "strip", z.ZodTypeAny, {
@@ -54,12 +339,27 @@ export declare const GetVideoStatusSchema: z.ZodObject<{
54
339
  }, {
55
340
  taskId: string;
56
341
  }>;
57
- export declare const ScheduleVideoSchema: z.ZodObject<{
342
+ export declare const ScheduleVideoShape: {
343
+ personaId: z.ZodString;
344
+ providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
345
+ youtubeAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
346
+ instagramAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
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<{
58
357
  personaId: z.ZodString;
59
- providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin"]>, "many">;
358
+ providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
60
359
  youtubeAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
61
360
  instagramAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
62
361
  linkedinAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
362
+ blueskyAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
63
363
  scheduledAt: z.ZodString;
64
364
  daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
65
365
  startHour: z.ZodOptional<z.ZodNumber>;
@@ -68,10 +368,37 @@ export declare const ScheduleVideoSchema: z.ZodObject<{
68
368
  timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
69
369
  }, "strip", z.ZodTypeAny, {
70
370
  personaId: string;
71
- 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")[];
72
398
  youtubeAccountIds: string[];
73
399
  instagramAccountIds: string[];
74
400
  linkedinAccountIds: string[];
401
+ blueskyAccountIds: string[];
75
402
  scheduledAt: string;
76
403
  timezone: string;
77
404
  daysOfWeek?: number[] | undefined;
@@ -80,11 +407,12 @@ export declare const ScheduleVideoSchema: z.ZodObject<{
80
407
  postsPerDay?: number | undefined;
81
408
  }, {
82
409
  personaId: string;
83
- providers: ("youtube" | "instagram" | "linkedin")[];
410
+ providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
84
411
  scheduledAt: string;
85
412
  youtubeAccountIds?: string[] | undefined;
86
413
  instagramAccountIds?: string[] | undefined;
87
414
  linkedinAccountIds?: string[] | undefined;
415
+ blueskyAccountIds?: string[] | undefined;
88
416
  daysOfWeek?: number[] | undefined;
89
417
  startHour?: number | undefined;
90
418
  endHour?: number | undefined;
@@ -93,6 +421,19 @@ export declare const ScheduleVideoSchema: z.ZodObject<{
93
421
  }>;
94
422
  export declare function handleCreatePersona(client: PostEngineerClient, args: z.infer<typeof CreatePersonaSchema>): Promise<McpToolResponse>;
95
423
  export declare function handleListPersonas(client: PostEngineerClient): Promise<McpToolResponse>;
424
+ export declare function handleListVoices(client: PostEngineerClient): Promise<McpToolResponse>;
425
+ export declare function handleListFaces(client: PostEngineerClient): Promise<McpToolResponse>;
426
+ export declare function handleUpdatePersona(client: PostEngineerClient, args: z.infer<typeof UpdatePersonaSchema>): Promise<McpToolResponse>;
427
+ export declare function handleListSocialAccounts(client: PostEngineerClient): Promise<McpToolResponse>;
428
+ export declare function handleConnectAccount(client: PostEngineerClient, args: z.infer<typeof ConnectAccountSchema>): Promise<McpToolResponse>;
429
+ export declare function handleListSchedules(client: PostEngineerClient): Promise<McpToolResponse>;
430
+ export declare function handleListPosts(client: PostEngineerClient, args: z.infer<typeof ListPostsSchema>): Promise<McpToolResponse>;
431
+ export declare function handleCancelSchedule(client: PostEngineerClient, args: z.infer<typeof CancelScheduleSchema>): Promise<McpToolResponse>;
432
+ export declare function handleGetTokenBalance(client: PostEngineerClient): Promise<McpToolResponse>;
96
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>;
97
438
  export declare function handleGetVideoStatus(client: PostEngineerClient, args: z.infer<typeof GetVideoStatusSchema>): Promise<McpToolResponse>;
98
439
  export declare function handleScheduleVideo(client: PostEngineerClient, args: z.infer<typeof ScheduleVideoSchema>): Promise<McpToolResponse>;