post-engineer-mcp 1.52.601 → 1.52.615

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 (114) hide show
  1. package/README.md +1 -1
  2. package/dist/client-batch.d.ts +3 -1
  3. package/dist/client-batch.js +4 -1
  4. package/dist/client-batch.js.map +1 -1
  5. package/dist/client-billing.d.ts +5 -0
  6. package/dist/client-billing.js +34 -0
  7. package/dist/client-billing.js.map +1 -0
  8. package/dist/client-experiments.d.ts +5 -14
  9. package/dist/client-experiments.js +17 -3
  10. package/dist/client-experiments.js.map +1 -1
  11. package/dist/client-posts.d.ts +12 -6
  12. package/dist/client-posts.js +22 -11
  13. package/dist/client-posts.js.map +1 -1
  14. package/dist/client-prompts.d.ts +4 -8
  15. package/dist/client-prompts.js +7 -24
  16. package/dist/client-prompts.js.map +1 -1
  17. package/dist/client-publish-uploaded.d.ts +8 -1
  18. package/dist/client-publish-uploaded.js +121 -49
  19. package/dist/client-publish-uploaded.js.map +1 -1
  20. package/dist/client-publishing-accounts.d.ts +4 -2
  21. package/dist/client-publishing-accounts.js +6 -2
  22. package/dist/client-publishing-accounts.js.map +1 -1
  23. package/dist/client-types.d.ts +5 -4
  24. package/dist/client-user-media.d.ts +4 -3
  25. package/dist/client-user-media.js +17 -47
  26. package/dist/client-user-media.js.map +1 -1
  27. package/dist/client-video-task.d.ts +3 -1
  28. package/dist/client-video-task.js +4 -1
  29. package/dist/client-video-task.js.map +1 -1
  30. package/dist/client.d.ts +40 -39
  31. package/dist/client.js +80 -148
  32. package/dist/client.js.map +1 -1
  33. package/dist/cloned-voice-client.d.ts +7 -5
  34. package/dist/cloned-voice-client.js +10 -4
  35. package/dist/cloned-voice-client.js.map +1 -1
  36. package/dist/connect-account.js +14 -6
  37. package/dist/connect-account.js.map +1 -1
  38. package/dist/contract-response.d.ts +8 -0
  39. package/dist/contract-response.js +24 -0
  40. package/dist/contract-response.js.map +1 -0
  41. package/dist/contracts/accounts.d.ts +844 -0
  42. package/dist/contracts/accounts.js +346 -0
  43. package/dist/contracts/accounts.js.map +1 -0
  44. package/dist/contracts/billing.d.ts +109 -0
  45. package/dist/contracts/billing.js +88 -0
  46. package/dist/contracts/billing.js.map +1 -0
  47. package/dist/contracts/endpoint.d.ts +45 -0
  48. package/dist/contracts/endpoint.js +8 -0
  49. package/dist/contracts/endpoint.js.map +1 -0
  50. package/dist/contracts/experiments.d.ts +271 -0
  51. package/dist/contracts/experiments.js +170 -0
  52. package/dist/contracts/experiments.js.map +1 -0
  53. package/dist/contracts/media.d.ts +165 -0
  54. package/dist/contracts/media.js +139 -0
  55. package/dist/contracts/media.js.map +1 -0
  56. package/dist/contracts/metrics.d.ts +351 -0
  57. package/dist/contracts/metrics.js +256 -0
  58. package/dist/contracts/metrics.js.map +1 -0
  59. package/dist/contracts/personas.d.ts +560 -0
  60. package/dist/contracts/personas.js +346 -0
  61. package/dist/contracts/personas.js.map +1 -0
  62. package/dist/contracts/posts.d.ts +485 -0
  63. package/dist/contracts/posts.js +153 -0
  64. package/dist/contracts/posts.js.map +1 -0
  65. package/dist/contracts/prompts.d.ts +90 -0
  66. package/dist/contracts/prompts.js +48 -0
  67. package/dist/contracts/prompts.js.map +1 -0
  68. package/dist/contracts/schedule.d.ts +691 -0
  69. package/dist/contracts/schedule.js +264 -0
  70. package/dist/contracts/schedule.js.map +1 -0
  71. package/dist/contracts/video-tasks.d.ts +181 -0
  72. package/dist/contracts/video-tasks.js +121 -0
  73. package/dist/contracts/video-tasks.js.map +1 -0
  74. package/dist/contracts/videos.d.ts +693 -0
  75. package/dist/contracts/videos.js +443 -0
  76. package/dist/contracts/videos.js.map +1 -0
  77. package/dist/contracts/voices.d.ts +237 -0
  78. package/dist/contracts/voices.js +118 -0
  79. package/dist/contracts/voices.js.map +1 -0
  80. package/dist/generate-video.d.ts +34 -34
  81. package/dist/generate-video.js +14 -2
  82. package/dist/generate-video.js.map +1 -1
  83. package/dist/intent-content.js +1 -1
  84. package/dist/intent-personas.js +17 -7
  85. package/dist/intent-personas.js.map +1 -1
  86. package/dist/limits.d.ts +27 -44
  87. package/dist/limits.js +27 -45
  88. package/dist/limits.js.map +1 -1
  89. package/dist/persona-delete.js +9 -9
  90. package/dist/persona-delete.js.map +1 -1
  91. package/dist/persona-update.js +3 -2
  92. package/dist/persona-update.js.map +1 -1
  93. package/dist/script-segments.d.ts +1 -1
  94. package/dist/script-segments.js +1 -1
  95. package/dist/single-video-shape.d.ts +5 -5
  96. package/dist/single-video-shape.js +1 -1
  97. package/dist/tools-batch.d.ts +42 -42
  98. package/dist/tools-batch.js +12 -36
  99. package/dist/tools-batch.js.map +1 -1
  100. package/dist/tools-experiments.d.ts +11 -11
  101. package/dist/tools-experiments.js +17 -9
  102. package/dist/tools-experiments.js.map +1 -1
  103. package/dist/tools-pinterest.js +5 -15
  104. package/dist/tools-pinterest.js.map +1 -1
  105. package/dist/tools-single-video.js +14 -51
  106. package/dist/tools-single-video.js.map +1 -1
  107. package/dist/tools-user-media.js +3 -1
  108. package/dist/tools-user-media.js.map +1 -1
  109. package/dist/tools.d.ts +0 -25
  110. package/dist/tools.js +56 -96
  111. package/dist/tools.js.map +1 -1
  112. package/dist/voice-filters.js +2 -1
  113. package/dist/voice-filters.js.map +1 -1
  114. package/package.json +1 -1
@@ -0,0 +1,693 @@
1
+ import { z } from 'zod';
2
+ export type EndpointMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
3
+ export interface EndpointDefinition<Body extends z.ZodType | undefined, Query extends z.ZodType | undefined, Response extends z.ZodType, Path extends string> {
4
+ method: EndpointMethod;
5
+ path: Path;
6
+ body?: Body;
7
+ query?: Query;
8
+ response: Response;
9
+ }
10
+ /** Define one endpoint contract. The literal path is preserved in the type
11
+ * so ParamsOf can read its `:param` segments. `Body`/`Query` default to
12
+ * `undefined` so an omitted optional schema stays `undefined` (not the
13
+ * bare `ZodType`) in the returned definition. */
14
+ export declare function defineEndpoint<Body extends z.ZodType | undefined = undefined, Query extends z.ZodType | undefined = undefined, Response extends z.ZodType = z.ZodType, Path extends string = string>(config: {
15
+ method: EndpointMethod;
16
+ path: Path;
17
+ body?: Body;
18
+ query?: Query;
19
+ response: Response;
20
+ }): EndpointDefinition<Body, Query, Response, Path>;
21
+ /** Request body input type (`z.input` of the `body` schema). Indexed
22
+ * access is used (not infer) so an optional `body?` property keeps its
23
+ * schema type instead of widening to `unknown`. */
24
+ export type BodyOf<Endpoint extends {
25
+ body?: z.ZodType | undefined;
26
+ }> = [
27
+ Exclude<Endpoint['body'], undefined>
28
+ ] extends [never] ? never : Exclude<Endpoint['body'], undefined> extends z.ZodType ? z.input<Exclude<Endpoint['body'], undefined>> : never;
29
+ /** Query input type (`z.input` of the `query` schema). */
30
+ export type QueryOf<Endpoint extends {
31
+ query?: z.ZodType | undefined;
32
+ }> = [
33
+ Exclude<Endpoint['query'], undefined>
34
+ ] extends [never] ? never : Exclude<Endpoint['query'], undefined> extends z.ZodType ? z.input<Exclude<Endpoint['query'], undefined>> : never;
35
+ /** Response output type (`z.output` of the `response` schema). */
36
+ export type ResponseOf<Endpoint extends {
37
+ response: z.ZodType;
38
+ }> = Endpoint['response'] extends z.ZodType ? z.output<Endpoint['response']> : never;
39
+ /** Path params from a path template: each `:name` segment becomes a
40
+ * `string` field. A path without segments is an empty record. */
41
+ export type ParamsOf<Path extends string> = Path extends `${string}:${infer Rest}` ? Rest extends `${infer Name}/${infer After}` ? {
42
+ [Key in Name]: string;
43
+ } & ParamsOf<`/${After}`> : {
44
+ [Key in Rest]: string;
45
+ } : Record<never, never>;
46
+ /** The one video mode (issue #542): it decides render path + price. */
47
+ export declare const VIDEO_TYPES: readonly ["full_lipsync", "hook_lipsync", "faceless"];
48
+ export type VideoType = (typeof VIDEO_TYPES)[number];
49
+ /**
50
+ * The invalid-video_type message suffix: every valid type WITH its token
51
+ * cost, so the agent can choose knowing the price. Must stay identical to
52
+ * the engine's VIDEO_TYPE_ERROR_SUFFIX (apps/engine/app/models/schema.py)
53
+ * and to lib/tokens.ts / apps/mcp/src/video-type.ts.
54
+ */
55
+ export declare const VIDEO_TYPE_ERROR_SUFFIX = "use full_lipsync (8/15), hook_lipsync (2/3) or faceless (1)";
56
+ /** Short invalid-video_type error, costs included, under 200 chars. */
57
+ export declare function unknownVideoTypeMessage(value: unknown): string;
58
+ /** Missing-video_type error: same suffix, so the agent sees values + costs. */
59
+ export declare const VIDEO_TYPE_REQUIRED_MESSAGE = "videoType is required; use full_lipsync (8/15), hook_lipsync (2/3) or faceless (1)";
60
+ /** Segments per video: the shape cap, before the content rules run. */
61
+ export declare const MAX_SEGMENTS = 12;
62
+ /** Photos per segment in images mode (full lip sync allows at most 6 in total). */
63
+ export declare const MAX_IMAGES_MODE_MEDIAS = 30;
64
+ /** Spoken hook window, seconds: reported by validate-script. */
65
+ export declare const HOOK_MIN_SECONDS = 8;
66
+ export declare const HOOK_MAX_SECONDS = 12;
67
+ /**
68
+ * How many problems a pre-auth 400 will echo. The route runs before session
69
+ * and rate-limit checks, and a caller can send a huge array, so at most this
70
+ * many problems are echoed. Each field path and each message is also
71
+ * length-capped where the response is built. The event's errorCount is the
72
+ * real total.
73
+ */
74
+ export declare const MAX_REPORTED_ISSUES = 20;
75
+ /** Videos per batch (issue #487): the cheapest face video of every 6 is free. */
76
+ export declare const MAX_BATCH_VIDEOS = 12;
77
+ /** Batch key: letters, digits, "-" and "_" only, at most 100 chars. */
78
+ export declare const BATCH_KEY_MAX_LENGTH = 100;
79
+ export declare const BATCH_KEY_PATTERN: RegExp;
80
+ /** What the scored text is: a post body, or a video script. */
81
+ export declare const DRAFT_KINDS: readonly ["post", "script"];
82
+ export type DraftKind = (typeof DRAFT_KINDS)[number];
83
+ /** The networks score-draft can publish-check. Same 10 as SOCIAL_PROVIDERS. */
84
+ export declare const PUBLISH_NETWORKS: readonly ["linkedin", "youtube", "instagram", "bluesky", "threads", "facebook", "pinterest", "3speak", "rumble", "fanvue"];
85
+ export type PublishNetwork = (typeof PUBLISH_NETWORKS)[number];
86
+ /** Drafts over this input cap are a 400, never silently truncated. */
87
+ export declare const DRAFT_MAX_INPUT_CHARS = 10000;
88
+ /** Signed video uploads (issue #561): the 2GB ceiling, same as upload-content. */
89
+ export declare const VIDEO_UPLOAD_CONTENT_TYPES: readonly ["video/mp4", "video/quicktime"];
90
+ export type VideoUploadContentType = (typeof VIDEO_UPLOAD_CONTENT_TYPES)[number];
91
+ export declare const MAX_VIDEO_UPLOAD_BYTES: number;
92
+ export declare const segmentOverlaySchema: z.ZodObject<{
93
+ title: z.ZodString;
94
+ subtitle: z.ZodOptional<z.ZodString>;
95
+ badge: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strict>;
97
+ export declare const segmentsRequestSchema: z.ZodArray<z.ZodObject<{
98
+ kind: z.ZodEnum<{
99
+ hook: "hook";
100
+ content: "content";
101
+ }>;
102
+ text: z.ZodString;
103
+ media: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ mediaId: z.ZodOptional<z.ZodString>;
105
+ url: z.ZodOptional<z.ZodString>;
106
+ overlay: z.ZodOptional<z.ZodObject<{
107
+ title: z.ZodString;
108
+ subtitle: z.ZodOptional<z.ZodString>;
109
+ badge: z.ZodOptional<z.ZodString>;
110
+ }, z.core.$strict>>;
111
+ }, z.core.$strict>>>;
112
+ }, z.core.$strict>>;
113
+ /** Paired A/B experiment link (issue #476): one variant of one pair. */
114
+ export declare const ExperimentLinkSchema: z.ZodObject<{
115
+ experimentId: z.ZodString;
116
+ variantId: z.ZodString;
117
+ pair: z.ZodNumber;
118
+ }, z.core.$strict>;
119
+ export type ExperimentLink = z.infer<typeof ExperimentLinkSchema>;
120
+ export declare const GenerateAndScheduleBodySchema: z.ZodObject<{
121
+ personaId: z.ZodOptional<z.ZodString>;
122
+ title: z.ZodString;
123
+ description: z.ZodString;
124
+ publishing: z.ZodObject<{
125
+ mode: z.ZodOptional<z.ZodEnum<{
126
+ scheduled: "scheduled";
127
+ asap: "asap";
128
+ }>>;
129
+ providers: z.ZodArray<z.ZodString>;
130
+ accounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
131
+ pinterestBoardId: z.ZodOptional<z.ZodString>;
132
+ schedule: z.ZodOptional<z.ZodObject<{
133
+ startAt: z.ZodString;
134
+ times: z.ZodArray<z.ZodString>;
135
+ timezone: z.ZodString;
136
+ }, z.core.$strip>>;
137
+ timezone: z.ZodOptional<z.ZodString>;
138
+ }, z.core.$strip>;
139
+ options: z.ZodOptional<z.ZodObject<{
140
+ videoType: z.ZodEnum<{
141
+ full_lipsync: "full_lipsync";
142
+ hook_lipsync: "hook_lipsync";
143
+ faceless: "faceless";
144
+ }>;
145
+ musicMood: z.ZodOptional<z.ZodString>;
146
+ audioUrl: z.ZodOptional<z.ZodString>;
147
+ imageId: z.ZodOptional<z.ZodString>;
148
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
+ kind: z.ZodEnum<{
150
+ hook: "hook";
151
+ content: "content";
152
+ }>;
153
+ text: z.ZodString;
154
+ media: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ mediaId: z.ZodOptional<z.ZodString>;
156
+ url: z.ZodOptional<z.ZodString>;
157
+ overlay: z.ZodOptional<z.ZodObject<{
158
+ title: z.ZodString;
159
+ subtitle: z.ZodOptional<z.ZodString>;
160
+ badge: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strict>>;
162
+ }, z.core.$strict>>>;
163
+ }, z.core.$strict>>>;
164
+ webhookUrl: z.ZodOptional<z.ZodString>;
165
+ voiceId: z.ZodOptional<z.ZodString>;
166
+ videoAspect: z.ZodOptional<z.ZodEnum<{
167
+ "9:16": "9:16";
168
+ "16:9": "16:9";
169
+ "1:1": "1:1";
170
+ }>>;
171
+ videoLayout: z.ZodOptional<z.ZodEnum<{
172
+ standard: "standard";
173
+ react: "react";
174
+ }>>;
175
+ paragraphNumber: z.ZodOptional<z.ZodNumber>;
176
+ language: z.ZodOptional<z.ZodString>;
177
+ niche: z.ZodOptional<z.ZodString>;
178
+ }, z.core.$strip>>;
179
+ idempotencyKey: z.ZodOptional<z.ZodString>;
180
+ experiment: z.ZodOptional<z.ZodObject<{
181
+ experimentId: z.ZodString;
182
+ variantId: z.ZodString;
183
+ pair: z.ZodNumber;
184
+ }, z.core.$strict>>;
185
+ }, z.core.$strip>;
186
+ export type GenerateAndScheduleBody = z.infer<typeof GenerateAndScheduleBodySchema>;
187
+ export declare const GenerateSlotResultSchema: z.ZodObject<{
188
+ slotId: z.ZodString;
189
+ slotAt: z.ZodString;
190
+ title: z.ZodString;
191
+ taskId: z.ZodNullable<z.ZodString>;
192
+ status: z.ZodString;
193
+ errorCode: z.ZodOptional<z.ZodString>;
194
+ tokensRefunded: z.ZodOptional<z.ZodBoolean>;
195
+ }, z.core.$strip>;
196
+ export declare const GenerateAndScheduleWarningSchema: z.ZodObject<{
197
+ code: z.ZodString;
198
+ fromVoice: z.ZodString;
199
+ toVoice: z.ZodString;
200
+ }, z.core.$strip>;
201
+ export declare const GenerateAndScheduleResponseSchema: z.ZodObject<{
202
+ success: z.ZodLiteral<true>;
203
+ schedule: z.ZodObject<{
204
+ id: z.ZodString;
205
+ mode: z.ZodEnum<{
206
+ scheduled: "scheduled";
207
+ asap: "asap";
208
+ }>;
209
+ }, z.core.$strip>;
210
+ slots: z.ZodArray<z.ZodObject<{
211
+ slotId: z.ZodString;
212
+ slotAt: z.ZodString;
213
+ title: z.ZodString;
214
+ taskId: z.ZodNullable<z.ZodString>;
215
+ status: z.ZodString;
216
+ errorCode: z.ZodOptional<z.ZodString>;
217
+ tokensRefunded: z.ZodOptional<z.ZodBoolean>;
218
+ }, z.core.$strip>>;
219
+ replayed: z.ZodBoolean;
220
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
221
+ code: z.ZodString;
222
+ fromVoice: z.ZodString;
223
+ toVoice: z.ZodString;
224
+ }, z.core.$strip>>>;
225
+ }, z.core.$strip>;
226
+ export declare const ValidateScriptBodySchema: z.ZodObject<{
227
+ segments: z.ZodOptional<z.ZodUnknown>;
228
+ videoType: z.ZodOptional<z.ZodEnum<{
229
+ full_lipsync: "full_lipsync";
230
+ hook_lipsync: "hook_lipsync";
231
+ faceless: "faceless";
232
+ }>>;
233
+ }, z.core.$strip>;
234
+ export declare const ValidateScriptResponseSchema: z.ZodObject<{
235
+ success: z.ZodLiteral<true>;
236
+ valid: z.ZodLiteral<true>;
237
+ segmentCount: z.ZodNumber;
238
+ totalWords: z.ZodNumber;
239
+ hookWords: z.ZodNumber;
240
+ contentWords: z.ZodNumber;
241
+ mediaCount: z.ZodNumber;
242
+ hookWindowSeconds: z.ZodObject<{
243
+ min: z.ZodLiteral<8>;
244
+ max: z.ZodLiteral<12>;
245
+ }, z.core.$strip>;
246
+ measuredDurationSeconds: z.ZodNull;
247
+ measured: z.ZodLiteral<"pending">;
248
+ measuredReason: z.ZodString;
249
+ }, z.core.$strip>;
250
+ export declare const ScoreDraftBodySchema: z.ZodObject<{
251
+ draft: z.ZodString;
252
+ network: z.ZodOptional<z.ZodEnum<{
253
+ youtube: "youtube";
254
+ instagram: "instagram";
255
+ linkedin: "linkedin";
256
+ bluesky: "bluesky";
257
+ threads: "threads";
258
+ facebook: "facebook";
259
+ pinterest: "pinterest";
260
+ fanvue: "fanvue";
261
+ "3speak": "3speak";
262
+ rumble: "rumble";
263
+ }>>;
264
+ personaId: z.ZodOptional<z.ZodString>;
265
+ kind: z.ZodOptional<z.ZodEnum<{
266
+ post: "post";
267
+ script: "script";
268
+ }>>;
269
+ }, z.core.$strip>;
270
+ export declare const DraftScoreReasonSchema: z.ZodObject<{
271
+ rule: z.ZodString;
272
+ detail: z.ZodString;
273
+ points: z.ZodNumber;
274
+ }, z.core.$strip>;
275
+ export declare const TopAngleSchema: z.ZodObject<{
276
+ angle: z.ZodString;
277
+ engagement: z.ZodNumber;
278
+ posts: z.ZodNumber;
279
+ }, z.core.$strip>;
280
+ export declare const DraftBaselineSchema: z.ZodObject<{
281
+ postsMeasured: z.ZodNumber;
282
+ topAngles: z.ZodArray<z.ZodObject<{
283
+ angle: z.ZodString;
284
+ engagement: z.ZodNumber;
285
+ posts: z.ZodNumber;
286
+ }, z.core.$strip>>;
287
+ medianEngagement: z.ZodNullable<z.ZodNumber>;
288
+ bestEngagement: z.ZodNullable<z.ZodNumber>;
289
+ truncated: z.ZodBoolean;
290
+ }, z.core.$strip>;
291
+ export declare const PublishCheckSchema: z.ZodObject<{
292
+ network: z.ZodEnum<{
293
+ youtube: "youtube";
294
+ instagram: "instagram";
295
+ linkedin: "linkedin";
296
+ bluesky: "bluesky";
297
+ threads: "threads";
298
+ facebook: "facebook";
299
+ pinterest: "pinterest";
300
+ fanvue: "fanvue";
301
+ "3speak": "3speak";
302
+ rumble: "rumble";
303
+ }>;
304
+ ok: z.ZodBoolean;
305
+ failures: z.ZodArray<z.ZodString>;
306
+ warnings: z.ZodArray<z.ZodString>;
307
+ }, z.core.$strip>;
308
+ export declare const DraftCountsSchema: z.ZodObject<{
309
+ chars: z.ZodNumber;
310
+ words: z.ZodNumber;
311
+ hashtags: z.ZodNumber;
312
+ links: z.ZodNumber;
313
+ firstLineWords: z.ZodNumber;
314
+ slopHits: z.ZodArray<z.ZodString>;
315
+ topThemeMatch: z.ZodNullable<z.ZodString>;
316
+ }, z.core.$strip>;
317
+ export declare const ScoreDraftResponseSchema: z.ZodObject<{
318
+ success: z.ZodLiteral<true>;
319
+ score: z.ZodNumber;
320
+ reasons: z.ZodArray<z.ZodObject<{
321
+ rule: z.ZodString;
322
+ detail: z.ZodString;
323
+ points: z.ZodNumber;
324
+ }, z.core.$strip>>;
325
+ counts: z.ZodObject<{
326
+ chars: z.ZodNumber;
327
+ words: z.ZodNumber;
328
+ hashtags: z.ZodNumber;
329
+ links: z.ZodNumber;
330
+ firstLineWords: z.ZodNumber;
331
+ slopHits: z.ZodArray<z.ZodString>;
332
+ topThemeMatch: z.ZodNullable<z.ZodString>;
333
+ }, z.core.$strip>;
334
+ baseline: z.ZodObject<{
335
+ postsMeasured: z.ZodNumber;
336
+ topAngles: z.ZodArray<z.ZodObject<{
337
+ angle: z.ZodString;
338
+ engagement: z.ZodNumber;
339
+ posts: z.ZodNumber;
340
+ }, z.core.$strip>>;
341
+ medianEngagement: z.ZodNullable<z.ZodNumber>;
342
+ bestEngagement: z.ZodNullable<z.ZodNumber>;
343
+ truncated: z.ZodBoolean;
344
+ }, z.core.$strip>;
345
+ publishCheck: z.ZodNullable<z.ZodObject<{
346
+ network: z.ZodEnum<{
347
+ youtube: "youtube";
348
+ instagram: "instagram";
349
+ linkedin: "linkedin";
350
+ bluesky: "bluesky";
351
+ threads: "threads";
352
+ facebook: "facebook";
353
+ pinterest: "pinterest";
354
+ fanvue: "fanvue";
355
+ "3speak": "3speak";
356
+ rumble: "rumble";
357
+ }>;
358
+ ok: z.ZodBoolean;
359
+ failures: z.ZodArray<z.ZodString>;
360
+ warnings: z.ZodArray<z.ZodString>;
361
+ }, z.core.$strip>>;
362
+ }, z.core.$strip>;
363
+ export declare const BatchDiscountBodySchema: z.ZodObject<{
364
+ batchKey: z.ZodString;
365
+ scheduleIds: z.ZodArray<z.ZodString>;
366
+ }, z.core.$strict>;
367
+ export declare const BatchDiscountFreeVideoSchema: z.ZodObject<{
368
+ scheduleId: z.ZodString;
369
+ slotId: z.ZodString;
370
+ discountTokens: z.ZodNumber;
371
+ }, z.core.$strip>;
372
+ export declare const BatchDiscountResponseSchema: z.ZodObject<{
373
+ success: z.ZodLiteral<true>;
374
+ batchId: z.ZodString;
375
+ videos: z.ZodNumber;
376
+ faceVideos: z.ZodNumber;
377
+ earnedFreeVideos: z.ZodNumber;
378
+ freeVideos: z.ZodArray<z.ZodObject<{
379
+ scheduleId: z.ZodString;
380
+ slotId: z.ZodString;
381
+ discountTokens: z.ZodNumber;
382
+ }, z.core.$strip>>;
383
+ discountTokens: z.ZodNumber;
384
+ chargedTokens: z.ZodNumber;
385
+ warnings: z.ZodArray<z.ZodString>;
386
+ }, z.core.$strip>;
387
+ export declare const MintVideoUploadBodySchema: z.ZodObject<{
388
+ contentType: z.ZodEnum<{
389
+ "video/mp4": "video/mp4";
390
+ "video/quicktime": "video/quicktime";
391
+ }>;
392
+ sizeBytes: z.ZodNumber;
393
+ }, z.core.$strip>;
394
+ export declare const MintVideoUploadResponseSchema: z.ZodObject<{
395
+ success: z.ZodLiteral<true>;
396
+ uploadId: z.ZodString;
397
+ signedUrl: z.ZodString;
398
+ token: z.ZodString;
399
+ storagePath: z.ZodString;
400
+ expiresAt: z.ZodString;
401
+ maxBytes: z.ZodNumber;
402
+ }, z.core.$strip>;
403
+ export declare const CompleteVideoUploadResponseSchema: z.ZodObject<{
404
+ success: z.ZodLiteral<true>;
405
+ uploadId: z.ZodString;
406
+ status: z.ZodLiteral<"ready">;
407
+ contentType: z.ZodEnum<{
408
+ "video/mp4": "video/mp4";
409
+ "video/quicktime": "video/quicktime";
410
+ }>;
411
+ sizeBytes: z.ZodNumber;
412
+ }, z.core.$strip>;
413
+ export declare const PublishByIdBodySchema: z.ZodObject<{
414
+ uploadId: z.ZodString;
415
+ provider: z.ZodEnum<{
416
+ youtube: "youtube";
417
+ instagram: "instagram";
418
+ linkedin: "linkedin";
419
+ bluesky: "bluesky";
420
+ threads: "threads";
421
+ facebook: "facebook";
422
+ pinterest: "pinterest";
423
+ fanvue: "fanvue";
424
+ "3speak": "3speak";
425
+ rumble: "rumble";
426
+ }>;
427
+ accountIds: z.ZodArray<z.ZodString>;
428
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
429
+ title: z.ZodOptional<z.ZodString>;
430
+ description: z.ZodOptional<z.ZodString>;
431
+ privacyStatus: z.ZodOptional<z.ZodString>;
432
+ caption: z.ZodOptional<z.ZodString>;
433
+ boardId: z.ZodOptional<z.ZodString>;
434
+ }, z.core.$strip>;
435
+ export declare const generateAndSchedule: EndpointDefinition<z.ZodObject<{
436
+ personaId: z.ZodOptional<z.ZodString>;
437
+ title: z.ZodString;
438
+ description: z.ZodString;
439
+ publishing: z.ZodObject<{
440
+ mode: z.ZodOptional<z.ZodEnum<{
441
+ scheduled: "scheduled";
442
+ asap: "asap";
443
+ }>>;
444
+ providers: z.ZodArray<z.ZodString>;
445
+ accounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
446
+ pinterestBoardId: z.ZodOptional<z.ZodString>;
447
+ schedule: z.ZodOptional<z.ZodObject<{
448
+ startAt: z.ZodString;
449
+ times: z.ZodArray<z.ZodString>;
450
+ timezone: z.ZodString;
451
+ }, z.core.$strip>>;
452
+ timezone: z.ZodOptional<z.ZodString>;
453
+ }, z.core.$strip>;
454
+ options: z.ZodOptional<z.ZodObject<{
455
+ videoType: z.ZodEnum<{
456
+ full_lipsync: "full_lipsync";
457
+ hook_lipsync: "hook_lipsync";
458
+ faceless: "faceless";
459
+ }>;
460
+ musicMood: z.ZodOptional<z.ZodString>;
461
+ audioUrl: z.ZodOptional<z.ZodString>;
462
+ imageId: z.ZodOptional<z.ZodString>;
463
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
464
+ kind: z.ZodEnum<{
465
+ hook: "hook";
466
+ content: "content";
467
+ }>;
468
+ text: z.ZodString;
469
+ media: z.ZodOptional<z.ZodArray<z.ZodObject<{
470
+ mediaId: z.ZodOptional<z.ZodString>;
471
+ url: z.ZodOptional<z.ZodString>;
472
+ overlay: z.ZodOptional<z.ZodObject<{
473
+ title: z.ZodString;
474
+ subtitle: z.ZodOptional<z.ZodString>;
475
+ badge: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strict>>;
477
+ }, z.core.$strict>>>;
478
+ }, z.core.$strict>>>;
479
+ webhookUrl: z.ZodOptional<z.ZodString>;
480
+ voiceId: z.ZodOptional<z.ZodString>;
481
+ videoAspect: z.ZodOptional<z.ZodEnum<{
482
+ "9:16": "9:16";
483
+ "16:9": "16:9";
484
+ "1:1": "1:1";
485
+ }>>;
486
+ videoLayout: z.ZodOptional<z.ZodEnum<{
487
+ standard: "standard";
488
+ react: "react";
489
+ }>>;
490
+ paragraphNumber: z.ZodOptional<z.ZodNumber>;
491
+ language: z.ZodOptional<z.ZodString>;
492
+ niche: z.ZodOptional<z.ZodString>;
493
+ }, z.core.$strip>>;
494
+ idempotencyKey: z.ZodOptional<z.ZodString>;
495
+ experiment: z.ZodOptional<z.ZodObject<{
496
+ experimentId: z.ZodString;
497
+ variantId: z.ZodString;
498
+ pair: z.ZodNumber;
499
+ }, z.core.$strict>>;
500
+ }, z.core.$strip>, undefined, z.ZodObject<{
501
+ success: z.ZodLiteral<true>;
502
+ schedule: z.ZodObject<{
503
+ id: z.ZodString;
504
+ mode: z.ZodEnum<{
505
+ scheduled: "scheduled";
506
+ asap: "asap";
507
+ }>;
508
+ }, z.core.$strip>;
509
+ slots: z.ZodArray<z.ZodObject<{
510
+ slotId: z.ZodString;
511
+ slotAt: z.ZodString;
512
+ title: z.ZodString;
513
+ taskId: z.ZodNullable<z.ZodString>;
514
+ status: z.ZodString;
515
+ errorCode: z.ZodOptional<z.ZodString>;
516
+ tokensRefunded: z.ZodOptional<z.ZodBoolean>;
517
+ }, z.core.$strip>>;
518
+ replayed: z.ZodBoolean;
519
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
520
+ code: z.ZodString;
521
+ fromVoice: z.ZodString;
522
+ toVoice: z.ZodString;
523
+ }, z.core.$strip>>>;
524
+ }, z.core.$strip>, "/api/videos/generate-and-schedule">;
525
+ export declare const validateScript: EndpointDefinition<z.ZodObject<{
526
+ segments: z.ZodOptional<z.ZodUnknown>;
527
+ videoType: z.ZodOptional<z.ZodEnum<{
528
+ full_lipsync: "full_lipsync";
529
+ hook_lipsync: "hook_lipsync";
530
+ faceless: "faceless";
531
+ }>>;
532
+ }, z.core.$strip>, undefined, z.ZodObject<{
533
+ success: z.ZodLiteral<true>;
534
+ valid: z.ZodLiteral<true>;
535
+ segmentCount: z.ZodNumber;
536
+ totalWords: z.ZodNumber;
537
+ hookWords: z.ZodNumber;
538
+ contentWords: z.ZodNumber;
539
+ mediaCount: z.ZodNumber;
540
+ hookWindowSeconds: z.ZodObject<{
541
+ min: z.ZodLiteral<8>;
542
+ max: z.ZodLiteral<12>;
543
+ }, z.core.$strip>;
544
+ measuredDurationSeconds: z.ZodNull;
545
+ measured: z.ZodLiteral<"pending">;
546
+ measuredReason: z.ZodString;
547
+ }, z.core.$strip>, "/api/videos/validate-script">;
548
+ export declare const scoreDraft: EndpointDefinition<z.ZodObject<{
549
+ draft: z.ZodString;
550
+ network: z.ZodOptional<z.ZodEnum<{
551
+ youtube: "youtube";
552
+ instagram: "instagram";
553
+ linkedin: "linkedin";
554
+ bluesky: "bluesky";
555
+ threads: "threads";
556
+ facebook: "facebook";
557
+ pinterest: "pinterest";
558
+ fanvue: "fanvue";
559
+ "3speak": "3speak";
560
+ rumble: "rumble";
561
+ }>>;
562
+ personaId: z.ZodOptional<z.ZodString>;
563
+ kind: z.ZodOptional<z.ZodEnum<{
564
+ post: "post";
565
+ script: "script";
566
+ }>>;
567
+ }, z.core.$strip>, undefined, z.ZodObject<{
568
+ success: z.ZodLiteral<true>;
569
+ score: z.ZodNumber;
570
+ reasons: z.ZodArray<z.ZodObject<{
571
+ rule: z.ZodString;
572
+ detail: z.ZodString;
573
+ points: z.ZodNumber;
574
+ }, z.core.$strip>>;
575
+ counts: z.ZodObject<{
576
+ chars: z.ZodNumber;
577
+ words: z.ZodNumber;
578
+ hashtags: z.ZodNumber;
579
+ links: z.ZodNumber;
580
+ firstLineWords: z.ZodNumber;
581
+ slopHits: z.ZodArray<z.ZodString>;
582
+ topThemeMatch: z.ZodNullable<z.ZodString>;
583
+ }, z.core.$strip>;
584
+ baseline: z.ZodObject<{
585
+ postsMeasured: z.ZodNumber;
586
+ topAngles: z.ZodArray<z.ZodObject<{
587
+ angle: z.ZodString;
588
+ engagement: z.ZodNumber;
589
+ posts: z.ZodNumber;
590
+ }, z.core.$strip>>;
591
+ medianEngagement: z.ZodNullable<z.ZodNumber>;
592
+ bestEngagement: z.ZodNullable<z.ZodNumber>;
593
+ truncated: z.ZodBoolean;
594
+ }, z.core.$strip>;
595
+ publishCheck: z.ZodNullable<z.ZodObject<{
596
+ network: z.ZodEnum<{
597
+ youtube: "youtube";
598
+ instagram: "instagram";
599
+ linkedin: "linkedin";
600
+ bluesky: "bluesky";
601
+ threads: "threads";
602
+ facebook: "facebook";
603
+ pinterest: "pinterest";
604
+ fanvue: "fanvue";
605
+ "3speak": "3speak";
606
+ rumble: "rumble";
607
+ }>;
608
+ ok: z.ZodBoolean;
609
+ failures: z.ZodArray<z.ZodString>;
610
+ warnings: z.ZodArray<z.ZodString>;
611
+ }, z.core.$strip>>;
612
+ }, z.core.$strip>, "/api/videos/score-draft">;
613
+ export declare const applyBatchDiscount: EndpointDefinition<z.ZodObject<{
614
+ batchKey: z.ZodString;
615
+ scheduleIds: z.ZodArray<z.ZodString>;
616
+ }, z.core.$strict>, undefined, z.ZodObject<{
617
+ success: z.ZodLiteral<true>;
618
+ batchId: z.ZodString;
619
+ videos: z.ZodNumber;
620
+ faceVideos: z.ZodNumber;
621
+ earnedFreeVideos: z.ZodNumber;
622
+ freeVideos: z.ZodArray<z.ZodObject<{
623
+ scheduleId: z.ZodString;
624
+ slotId: z.ZodString;
625
+ discountTokens: z.ZodNumber;
626
+ }, z.core.$strip>>;
627
+ discountTokens: z.ZodNumber;
628
+ chargedTokens: z.ZodNumber;
629
+ warnings: z.ZodArray<z.ZodString>;
630
+ }, z.core.$strip>, "/api/videos/batch-discount">;
631
+ export declare const mintVideoUpload: EndpointDefinition<z.ZodObject<{
632
+ contentType: z.ZodEnum<{
633
+ "video/mp4": "video/mp4";
634
+ "video/quicktime": "video/quicktime";
635
+ }>;
636
+ sizeBytes: z.ZodNumber;
637
+ }, z.core.$strip>, undefined, z.ZodObject<{
638
+ success: z.ZodLiteral<true>;
639
+ uploadId: z.ZodString;
640
+ signedUrl: z.ZodString;
641
+ token: z.ZodString;
642
+ storagePath: z.ZodString;
643
+ expiresAt: z.ZodString;
644
+ maxBytes: z.ZodNumber;
645
+ }, z.core.$strip>, "/api/videos/upload-url">;
646
+ export declare const completeVideoUpload: EndpointDefinition<undefined, undefined, z.ZodObject<{
647
+ success: z.ZodLiteral<true>;
648
+ uploadId: z.ZodString;
649
+ status: z.ZodLiteral<"ready">;
650
+ contentType: z.ZodEnum<{
651
+ "video/mp4": "video/mp4";
652
+ "video/quicktime": "video/quicktime";
653
+ }>;
654
+ sizeBytes: z.ZodNumber;
655
+ }, z.core.$strip>, "/api/videos/uploads/:uploadId/complete">;
656
+ export declare const publishUploadedVideo: EndpointDefinition<z.ZodObject<{
657
+ uploadId: z.ZodString;
658
+ provider: z.ZodEnum<{
659
+ youtube: "youtube";
660
+ instagram: "instagram";
661
+ linkedin: "linkedin";
662
+ bluesky: "bluesky";
663
+ threads: "threads";
664
+ facebook: "facebook";
665
+ pinterest: "pinterest";
666
+ fanvue: "fanvue";
667
+ "3speak": "3speak";
668
+ rumble: "rumble";
669
+ }>;
670
+ accountIds: z.ZodArray<z.ZodString>;
671
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
672
+ title: z.ZodOptional<z.ZodString>;
673
+ description: z.ZodOptional<z.ZodString>;
674
+ privacyStatus: z.ZodOptional<z.ZodString>;
675
+ caption: z.ZodOptional<z.ZodString>;
676
+ boardId: z.ZodOptional<z.ZodString>;
677
+ }, z.core.$strip>, undefined, z.ZodObject<{
678
+ success: z.ZodBoolean;
679
+ provider: z.ZodOptional<z.ZodString>;
680
+ results: z.ZodArray<z.ZodObject<{
681
+ accountId: z.ZodString;
682
+ success: z.ZodBoolean;
683
+ videoId: z.ZodOptional<z.ZodString>;
684
+ videoUrl: z.ZodOptional<z.ZodString>;
685
+ postId: z.ZodOptional<z.ZodString>;
686
+ permalink: z.ZodOptional<z.ZodString>;
687
+ error: z.ZodOptional<z.ZodString>;
688
+ errorCode: z.ZodOptional<z.ZodString>;
689
+ }, z.core.$strip>>;
690
+ successCount: z.ZodOptional<z.ZodNumber>;
691
+ logId: z.ZodOptional<z.ZodString>;
692
+ error: z.ZodOptional<z.ZodString>;
693
+ }, z.core.$strip>, "/api/videos/publish-by-id">;