post-engineer-mcp 1.52.601 → 1.52.605
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/client-batch.d.ts +3 -1
- package/dist/client-batch.js +4 -1
- package/dist/client-batch.js.map +1 -1
- package/dist/client-billing.d.ts +5 -0
- package/dist/client-billing.js +34 -0
- package/dist/client-billing.js.map +1 -0
- package/dist/client-experiments.d.ts +5 -14
- package/dist/client-experiments.js +17 -3
- package/dist/client-experiments.js.map +1 -1
- package/dist/client-posts.d.ts +12 -6
- package/dist/client-posts.js +22 -11
- package/dist/client-posts.js.map +1 -1
- package/dist/client-prompts.d.ts +4 -8
- package/dist/client-prompts.js +7 -24
- package/dist/client-prompts.js.map +1 -1
- package/dist/client-publish-uploaded.d.ts +8 -1
- package/dist/client-publish-uploaded.js +121 -49
- package/dist/client-publish-uploaded.js.map +1 -1
- package/dist/client-publishing-accounts.d.ts +4 -2
- package/dist/client-publishing-accounts.js +6 -2
- package/dist/client-publishing-accounts.js.map +1 -1
- package/dist/client-types.d.ts +5 -4
- package/dist/client-user-media.d.ts +4 -3
- package/dist/client-user-media.js +17 -47
- package/dist/client-user-media.js.map +1 -1
- package/dist/client-video-task.d.ts +3 -1
- package/dist/client-video-task.js +4 -1
- package/dist/client-video-task.js.map +1 -1
- package/dist/client.d.ts +40 -39
- package/dist/client.js +80 -148
- package/dist/client.js.map +1 -1
- package/dist/cloned-voice-client.d.ts +7 -5
- package/dist/cloned-voice-client.js +10 -4
- package/dist/cloned-voice-client.js.map +1 -1
- package/dist/connect-account.js +14 -6
- package/dist/connect-account.js.map +1 -1
- package/dist/contract-response.d.ts +8 -0
- package/dist/contract-response.js +24 -0
- package/dist/contract-response.js.map +1 -0
- package/dist/contracts/accounts.d.ts +844 -0
- package/dist/contracts/accounts.js +346 -0
- package/dist/contracts/accounts.js.map +1 -0
- package/dist/contracts/billing.d.ts +109 -0
- package/dist/contracts/billing.js +88 -0
- package/dist/contracts/billing.js.map +1 -0
- package/dist/contracts/endpoint.d.ts +45 -0
- package/dist/contracts/endpoint.js +8 -0
- package/dist/contracts/endpoint.js.map +1 -0
- package/dist/contracts/experiments.d.ts +271 -0
- package/dist/contracts/experiments.js +170 -0
- package/dist/contracts/experiments.js.map +1 -0
- package/dist/contracts/media.d.ts +165 -0
- package/dist/contracts/media.js +139 -0
- package/dist/contracts/media.js.map +1 -0
- package/dist/contracts/metrics.d.ts +351 -0
- package/dist/contracts/metrics.js +256 -0
- package/dist/contracts/metrics.js.map +1 -0
- package/dist/contracts/personas.d.ts +560 -0
- package/dist/contracts/personas.js +346 -0
- package/dist/contracts/personas.js.map +1 -0
- package/dist/contracts/posts.d.ts +485 -0
- package/dist/contracts/posts.js +153 -0
- package/dist/contracts/posts.js.map +1 -0
- package/dist/contracts/prompts.d.ts +90 -0
- package/dist/contracts/prompts.js +48 -0
- package/dist/contracts/prompts.js.map +1 -0
- package/dist/contracts/schedule.d.ts +691 -0
- package/dist/contracts/schedule.js +264 -0
- package/dist/contracts/schedule.js.map +1 -0
- package/dist/contracts/video-tasks.d.ts +181 -0
- package/dist/contracts/video-tasks.js +121 -0
- package/dist/contracts/video-tasks.js.map +1 -0
- package/dist/contracts/videos.d.ts +693 -0
- package/dist/contracts/videos.js +443 -0
- package/dist/contracts/videos.js.map +1 -0
- package/dist/contracts/voices.d.ts +237 -0
- package/dist/contracts/voices.js +118 -0
- package/dist/contracts/voices.js.map +1 -0
- package/dist/generate-video.d.ts +33 -33
- package/dist/generate-video.js +13 -1
- package/dist/generate-video.js.map +1 -1
- package/dist/intent-content.js +1 -1
- package/dist/intent-personas.js +17 -7
- package/dist/intent-personas.js.map +1 -1
- package/dist/limits.d.ts +27 -44
- package/dist/limits.js +27 -45
- package/dist/limits.js.map +1 -1
- package/dist/persona-delete.js +9 -9
- package/dist/persona-delete.js.map +1 -1
- package/dist/persona-update.js +3 -2
- package/dist/persona-update.js.map +1 -1
- package/dist/script-segments.d.ts +1 -1
- package/dist/script-segments.js +1 -1
- package/dist/single-video-shape.d.ts +5 -5
- package/dist/single-video-shape.js +1 -1
- package/dist/tools-batch.d.ts +42 -42
- package/dist/tools-batch.js +12 -36
- package/dist/tools-batch.js.map +1 -1
- package/dist/tools-experiments.d.ts +11 -11
- package/dist/tools-experiments.js +17 -9
- package/dist/tools-experiments.js.map +1 -1
- package/dist/tools-pinterest.js +5 -15
- package/dist/tools-pinterest.js.map +1 -1
- package/dist/tools-single-video.js +14 -51
- package/dist/tools-single-video.js.map +1 -1
- package/dist/tools-user-media.js +3 -1
- package/dist/tools-user-media.js.map +1 -1
- package/dist/tools.d.ts +0 -25
- package/dist/tools.js +56 -96
- package/dist/tools.js.map +1 -1
- package/dist/voice-filters.js +2 -1
- package/dist/voice-filters.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,560 @@
|
|
|
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
|
+
import { VIDEO_ASPECTS } from './media.js';
|
|
47
|
+
export { VIDEO_ASPECTS, VIDEO_ASPECTS as VALID_VIDEO_ASPECTS };
|
|
48
|
+
export type VideoAspect = (typeof VIDEO_ASPECTS)[number];
|
|
49
|
+
export declare const VIDEO_LAYOUTS: readonly ["standard", "react"];
|
|
50
|
+
export type VideoLayout = (typeof VIDEO_LAYOUTS)[number];
|
|
51
|
+
export declare const FACE_QUALITIES: readonly ["ok", "very_good"];
|
|
52
|
+
export type FaceQuality = (typeof FACE_QUALITIES)[number];
|
|
53
|
+
export declare const PERSONA_CTA_MAX_LENGTH = 200;
|
|
54
|
+
export declare const MAX_LIBRARY_IMAGES = 10;
|
|
55
|
+
export declare const MAX_TAG_LENGTH = 100;
|
|
56
|
+
export declare const MAX_DESCRIPTION_LENGTH = 500;
|
|
57
|
+
export declare const PERSONA_IMAGE_WARNING_CODES: {
|
|
58
|
+
readonly PRIMARY_SWAP_FAILED: "primary_swap_failed";
|
|
59
|
+
readonly METADATA_SAVE_FAILED: "metadata_save_failed";
|
|
60
|
+
readonly ROW_REFETCH_FAILED: "row_refetch_failed";
|
|
61
|
+
};
|
|
62
|
+
export type PersonaImageWarningCode = (typeof PERSONA_IMAGE_WARNING_CODES)[keyof typeof PERSONA_IMAGE_WARNING_CODES];
|
|
63
|
+
export declare const PersonaListItemSchema: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
createdAt: z.ZodString;
|
|
67
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
68
|
+
photoUrl: z.ZodOptional<z.ZodString>;
|
|
69
|
+
libraryUrl: z.ZodOptional<z.ZodString>;
|
|
70
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
71
|
+
voiceAudioUrl: z.ZodOptional<z.ZodString>;
|
|
72
|
+
language: z.ZodOptional<z.ZodString>;
|
|
73
|
+
videoAspect: z.ZodOptional<z.ZodString>;
|
|
74
|
+
videoLayout: z.ZodOptional<z.ZodString>;
|
|
75
|
+
scriptPrompt: z.ZodOptional<z.ZodString>;
|
|
76
|
+
ctaText: z.ZodOptional<z.ZodString>;
|
|
77
|
+
paragraphNumber: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
niche: z.ZodOptional<z.ZodString>;
|
|
79
|
+
faceQuality: z.ZodOptional<z.ZodString>;
|
|
80
|
+
boundAccounts: z.ZodObject<{
|
|
81
|
+
youtube: z.ZodArray<z.ZodString>;
|
|
82
|
+
instagram: z.ZodArray<z.ZodString>;
|
|
83
|
+
bluesky: z.ZodArray<z.ZodString>;
|
|
84
|
+
linkedin: z.ZodArray<z.ZodString>;
|
|
85
|
+
threads: z.ZodArray<z.ZodString>;
|
|
86
|
+
facebook: z.ZodArray<z.ZodString>;
|
|
87
|
+
pinterest: z.ZodArray<z.ZodString>;
|
|
88
|
+
'3speak': z.ZodArray<z.ZodString>;
|
|
89
|
+
rumble: z.ZodArray<z.ZodString>;
|
|
90
|
+
fanvue: z.ZodArray<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type PersonaListItem = z.infer<typeof PersonaListItemSchema>;
|
|
94
|
+
export declare const ListPersonasResponseSchema: z.ZodObject<{
|
|
95
|
+
authenticated: z.ZodLiteral<true>;
|
|
96
|
+
personas: z.ZodArray<z.ZodObject<{
|
|
97
|
+
id: z.ZodString;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
createdAt: z.ZodString;
|
|
100
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
101
|
+
photoUrl: z.ZodOptional<z.ZodString>;
|
|
102
|
+
libraryUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
voiceAudioUrl: z.ZodOptional<z.ZodString>;
|
|
105
|
+
language: z.ZodOptional<z.ZodString>;
|
|
106
|
+
videoAspect: z.ZodOptional<z.ZodString>;
|
|
107
|
+
videoLayout: z.ZodOptional<z.ZodString>;
|
|
108
|
+
scriptPrompt: z.ZodOptional<z.ZodString>;
|
|
109
|
+
ctaText: z.ZodOptional<z.ZodString>;
|
|
110
|
+
paragraphNumber: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
niche: z.ZodOptional<z.ZodString>;
|
|
112
|
+
faceQuality: z.ZodOptional<z.ZodString>;
|
|
113
|
+
boundAccounts: z.ZodObject<{
|
|
114
|
+
youtube: z.ZodArray<z.ZodString>;
|
|
115
|
+
instagram: z.ZodArray<z.ZodString>;
|
|
116
|
+
bluesky: z.ZodArray<z.ZodString>;
|
|
117
|
+
linkedin: z.ZodArray<z.ZodString>;
|
|
118
|
+
threads: z.ZodArray<z.ZodString>;
|
|
119
|
+
facebook: z.ZodArray<z.ZodString>;
|
|
120
|
+
pinterest: z.ZodArray<z.ZodString>;
|
|
121
|
+
'3speak': z.ZodArray<z.ZodString>;
|
|
122
|
+
rumble: z.ZodArray<z.ZodString>;
|
|
123
|
+
fanvue: z.ZodArray<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export declare const PersonaFaceSchema: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
url: z.ZodString;
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
gender: z.ZodEnum<{
|
|
132
|
+
female: "female";
|
|
133
|
+
male: "male";
|
|
134
|
+
}>;
|
|
135
|
+
age: z.ZodNumber;
|
|
136
|
+
ethnicity: z.ZodString;
|
|
137
|
+
hair: z.ZodString;
|
|
138
|
+
description: z.ZodString;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
export type PersonaFace = z.infer<typeof PersonaFaceSchema>;
|
|
141
|
+
export declare const ListFacesResponseSchema: z.ZodObject<{
|
|
142
|
+
faces: z.ZodArray<z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
url: z.ZodString;
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
gender: z.ZodEnum<{
|
|
147
|
+
female: "female";
|
|
148
|
+
male: "male";
|
|
149
|
+
}>;
|
|
150
|
+
age: z.ZodNumber;
|
|
151
|
+
ethnicity: z.ZodString;
|
|
152
|
+
hair: z.ZodString;
|
|
153
|
+
description: z.ZodString;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
export declare const PersonaLibraryImageSchema: z.ZodObject<{
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
tag: z.ZodString;
|
|
159
|
+
description: z.ZodString;
|
|
160
|
+
is_primary: z.ZodBoolean;
|
|
161
|
+
created_at: z.ZodString;
|
|
162
|
+
image_url: z.ZodNullable<z.ZodString>;
|
|
163
|
+
image_url_error: z.ZodOptional<z.ZodLiteral<true>>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export type PersonaLibraryImage = z.infer<typeof PersonaLibraryImageSchema>;
|
|
166
|
+
export declare const ListPersonaImagesResponseSchema: z.ZodObject<{
|
|
167
|
+
success: z.ZodLiteral<true>;
|
|
168
|
+
images: z.ZodArray<z.ZodObject<{
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
tag: z.ZodString;
|
|
171
|
+
description: z.ZodString;
|
|
172
|
+
is_primary: z.ZodBoolean;
|
|
173
|
+
created_at: z.ZodString;
|
|
174
|
+
image_url: z.ZodNullable<z.ZodString>;
|
|
175
|
+
image_url_error: z.ZodOptional<z.ZodLiteral<true>>;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export declare const PersonaImageMutationRowSchema: z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
tag: z.ZodString;
|
|
181
|
+
description: z.ZodString;
|
|
182
|
+
is_primary: z.ZodBoolean;
|
|
183
|
+
created_at: z.ZodString;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export type PersonaImageMutationRow = z.infer<typeof PersonaImageMutationRowSchema>;
|
|
186
|
+
export declare const AddPersonaImageResponseSchema: z.ZodObject<{
|
|
187
|
+
success: z.ZodLiteral<true>;
|
|
188
|
+
image: z.ZodObject<{
|
|
189
|
+
id: z.ZodString;
|
|
190
|
+
tag: z.ZodString;
|
|
191
|
+
description: z.ZodString;
|
|
192
|
+
is_primary: z.ZodBoolean;
|
|
193
|
+
created_at: z.ZodString;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
196
|
+
primary_swap_failed: "primary_swap_failed";
|
|
197
|
+
metadata_save_failed: "metadata_save_failed";
|
|
198
|
+
row_refetch_failed: "row_refetch_failed";
|
|
199
|
+
}>>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export declare const UpdatePersonaImageResponseSchema: z.ZodObject<{
|
|
202
|
+
success: z.ZodLiteral<true>;
|
|
203
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
tag: z.ZodString;
|
|
206
|
+
description: z.ZodString;
|
|
207
|
+
is_primary: z.ZodBoolean;
|
|
208
|
+
created_at: z.ZodString;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
211
|
+
primary_swap_failed: "primary_swap_failed";
|
|
212
|
+
metadata_save_failed: "metadata_save_failed";
|
|
213
|
+
row_refetch_failed: "row_refetch_failed";
|
|
214
|
+
}>>>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export declare const DeletePersonaImageResponseSchema: z.ZodObject<{
|
|
217
|
+
success: z.ZodLiteral<true>;
|
|
218
|
+
}, z.core.$strip>;
|
|
219
|
+
export declare const DeletePreviewVideoSchema: z.ZodObject<{
|
|
220
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
221
|
+
title: z.ZodNullable<z.ZodString>;
|
|
222
|
+
status: z.ZodString;
|
|
223
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
export type DeletePreviewVideo = z.infer<typeof DeletePreviewVideoSchema>;
|
|
226
|
+
export declare const DeletePreviewCountsSchema: z.ZodObject<{
|
|
227
|
+
schedules: z.ZodNumber;
|
|
228
|
+
upcomingSlots: z.ZodNumber;
|
|
229
|
+
publishedSlots: z.ZodNumber;
|
|
230
|
+
failedSlots: z.ZodNumber;
|
|
231
|
+
generatedVideos: z.ZodNumber;
|
|
232
|
+
personaImages: z.ZodNumber;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
export type DeletePreviewCounts = z.infer<typeof DeletePreviewCountsSchema>;
|
|
235
|
+
export declare const GetPersonaDeletePreviewResponseSchema: z.ZodObject<{
|
|
236
|
+
success: z.ZodLiteral<true>;
|
|
237
|
+
persona: z.ZodObject<{
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
counts: z.ZodObject<{
|
|
242
|
+
schedules: z.ZodNumber;
|
|
243
|
+
upcomingSlots: z.ZodNumber;
|
|
244
|
+
publishedSlots: z.ZodNumber;
|
|
245
|
+
failedSlots: z.ZodNumber;
|
|
246
|
+
generatedVideos: z.ZodNumber;
|
|
247
|
+
personaImages: z.ZodNumber;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
videos: z.ZodArray<z.ZodObject<{
|
|
250
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
251
|
+
title: z.ZodNullable<z.ZodString>;
|
|
252
|
+
status: z.ZodString;
|
|
253
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
254
|
+
}, z.core.$strip>>;
|
|
255
|
+
videosTruncated: z.ZodBoolean;
|
|
256
|
+
linksIncomplete: z.ZodBoolean;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
export declare const CreatePersonaResponseSchema: z.ZodObject<{
|
|
259
|
+
success: z.ZodLiteral<true>;
|
|
260
|
+
personaId: z.ZodString;
|
|
261
|
+
imageIds: z.ZodArray<z.ZodString>;
|
|
262
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
263
|
+
primary_swap_failed: "primary_swap_failed";
|
|
264
|
+
metadata_save_failed: "metadata_save_failed";
|
|
265
|
+
row_refetch_failed: "row_refetch_failed";
|
|
266
|
+
}>>>;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
export declare const UpdatePersonaResponseSchema: z.ZodObject<{
|
|
269
|
+
success: z.ZodLiteral<true>;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
export declare const DeletePersonaResponseSchema: z.ZodObject<{
|
|
272
|
+
success: z.ZodLiteral<true>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
export declare const CreatePersonaBodySchema: z.ZodObject<{
|
|
275
|
+
name: z.ZodString;
|
|
276
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
277
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
278
|
+
language: z.ZodOptional<z.ZodString>;
|
|
279
|
+
videoAspect: z.ZodOptional<z.ZodEnum<{
|
|
280
|
+
"9:16": "9:16";
|
|
281
|
+
"16:9": "16:9";
|
|
282
|
+
"1:1": "1:1";
|
|
283
|
+
}>>;
|
|
284
|
+
videoLayout: z.ZodOptional<z.ZodEnum<{
|
|
285
|
+
standard: "standard";
|
|
286
|
+
react: "react";
|
|
287
|
+
}>>;
|
|
288
|
+
scriptPrompt: z.ZodOptional<z.ZodString>;
|
|
289
|
+
ctaText: z.ZodOptional<z.ZodString>;
|
|
290
|
+
niche: z.ZodOptional<z.ZodString>;
|
|
291
|
+
paragraphNumber: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
292
|
+
faceQuality: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
ok: "ok";
|
|
294
|
+
very_good: "very_good";
|
|
295
|
+
}>>;
|
|
296
|
+
video_subject: z.ZodOptional<z.ZodString>;
|
|
297
|
+
publishingAccounts: z.ZodOptional<z.ZodString>;
|
|
298
|
+
imageTags: z.ZodOptional<z.ZodString>;
|
|
299
|
+
imageDescriptions: z.ZodOptional<z.ZodString>;
|
|
300
|
+
imagePrimaryIndex: z.ZodOptional<z.ZodString>;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
export declare const UpdatePersonaBodySchema: z.ZodObject<{
|
|
303
|
+
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
304
|
+
avatarUrl: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
305
|
+
voiceId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
306
|
+
language: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
307
|
+
videoAspect: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
308
|
+
"9:16": "9:16";
|
|
309
|
+
"16:9": "16:9";
|
|
310
|
+
"1:1": "1:1";
|
|
311
|
+
}>>, unknown>;
|
|
312
|
+
videoLayout: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
313
|
+
standard: "standard";
|
|
314
|
+
react: "react";
|
|
315
|
+
}>>, unknown>;
|
|
316
|
+
scriptPrompt: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
317
|
+
ctaText: z.ZodOptional<z.ZodString>;
|
|
318
|
+
paragraphNumber: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
319
|
+
niche: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
320
|
+
faceQuality: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
ok: "ok";
|
|
322
|
+
very_good: "very_good";
|
|
323
|
+
}>>, unknown>;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
export declare const AddPersonaImageBodySchema: z.ZodObject<{
|
|
326
|
+
personaId: z.ZodString;
|
|
327
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
328
|
+
description: z.ZodOptional<z.ZodString>;
|
|
329
|
+
isPrimary: z.ZodOptional<z.ZodEnum<{
|
|
330
|
+
true: "true";
|
|
331
|
+
false: "false";
|
|
332
|
+
}>>;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
export declare const UpdatePersonaImageBodySchema: z.ZodObject<{
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
337
|
+
description: z.ZodOptional<z.ZodString>;
|
|
338
|
+
isPrimary: z.ZodOptional<z.ZodLiteral<true>>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
export declare function parsePersonaIdQuery(url: string): {
|
|
341
|
+
ok: true;
|
|
342
|
+
query: {
|
|
343
|
+
personaId: string;
|
|
344
|
+
};
|
|
345
|
+
} | {
|
|
346
|
+
ok: false;
|
|
347
|
+
error: string;
|
|
348
|
+
};
|
|
349
|
+
export declare function parseListPersonaImagesQuery(url: string): {
|
|
350
|
+
ok: true;
|
|
351
|
+
query: {
|
|
352
|
+
personaId: string;
|
|
353
|
+
};
|
|
354
|
+
} | {
|
|
355
|
+
ok: false;
|
|
356
|
+
error: string;
|
|
357
|
+
};
|
|
358
|
+
export declare function parseDeletePersonaImageQuery(url: string): {
|
|
359
|
+
ok: true;
|
|
360
|
+
query: {
|
|
361
|
+
id: string;
|
|
362
|
+
};
|
|
363
|
+
} | {
|
|
364
|
+
ok: false;
|
|
365
|
+
error: string;
|
|
366
|
+
};
|
|
367
|
+
export declare const createPersona: EndpointDefinition<z.ZodObject<{
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
370
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
371
|
+
language: z.ZodOptional<z.ZodString>;
|
|
372
|
+
videoAspect: z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
"9:16": "9:16";
|
|
374
|
+
"16:9": "16:9";
|
|
375
|
+
"1:1": "1:1";
|
|
376
|
+
}>>;
|
|
377
|
+
videoLayout: z.ZodOptional<z.ZodEnum<{
|
|
378
|
+
standard: "standard";
|
|
379
|
+
react: "react";
|
|
380
|
+
}>>;
|
|
381
|
+
scriptPrompt: z.ZodOptional<z.ZodString>;
|
|
382
|
+
ctaText: z.ZodOptional<z.ZodString>;
|
|
383
|
+
niche: z.ZodOptional<z.ZodString>;
|
|
384
|
+
paragraphNumber: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
385
|
+
faceQuality: z.ZodOptional<z.ZodEnum<{
|
|
386
|
+
ok: "ok";
|
|
387
|
+
very_good: "very_good";
|
|
388
|
+
}>>;
|
|
389
|
+
video_subject: z.ZodOptional<z.ZodString>;
|
|
390
|
+
publishingAccounts: z.ZodOptional<z.ZodString>;
|
|
391
|
+
imageTags: z.ZodOptional<z.ZodString>;
|
|
392
|
+
imageDescriptions: z.ZodOptional<z.ZodString>;
|
|
393
|
+
imagePrimaryIndex: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
395
|
+
success: z.ZodLiteral<true>;
|
|
396
|
+
personaId: z.ZodString;
|
|
397
|
+
imageIds: z.ZodArray<z.ZodString>;
|
|
398
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
399
|
+
primary_swap_failed: "primary_swap_failed";
|
|
400
|
+
metadata_save_failed: "metadata_save_failed";
|
|
401
|
+
row_refetch_failed: "row_refetch_failed";
|
|
402
|
+
}>>>;
|
|
403
|
+
}, z.core.$strip>, "/api/persona">;
|
|
404
|
+
export declare const listPersonas: EndpointDefinition<undefined, undefined, z.ZodObject<{
|
|
405
|
+
authenticated: z.ZodLiteral<true>;
|
|
406
|
+
personas: z.ZodArray<z.ZodObject<{
|
|
407
|
+
id: z.ZodString;
|
|
408
|
+
name: z.ZodString;
|
|
409
|
+
createdAt: z.ZodString;
|
|
410
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
411
|
+
photoUrl: z.ZodOptional<z.ZodString>;
|
|
412
|
+
libraryUrl: z.ZodOptional<z.ZodString>;
|
|
413
|
+
voiceId: z.ZodOptional<z.ZodString>;
|
|
414
|
+
voiceAudioUrl: z.ZodOptional<z.ZodString>;
|
|
415
|
+
language: z.ZodOptional<z.ZodString>;
|
|
416
|
+
videoAspect: z.ZodOptional<z.ZodString>;
|
|
417
|
+
videoLayout: z.ZodOptional<z.ZodString>;
|
|
418
|
+
scriptPrompt: z.ZodOptional<z.ZodString>;
|
|
419
|
+
ctaText: z.ZodOptional<z.ZodString>;
|
|
420
|
+
paragraphNumber: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
niche: z.ZodOptional<z.ZodString>;
|
|
422
|
+
faceQuality: z.ZodOptional<z.ZodString>;
|
|
423
|
+
boundAccounts: z.ZodObject<{
|
|
424
|
+
youtube: z.ZodArray<z.ZodString>;
|
|
425
|
+
instagram: z.ZodArray<z.ZodString>;
|
|
426
|
+
bluesky: z.ZodArray<z.ZodString>;
|
|
427
|
+
linkedin: z.ZodArray<z.ZodString>;
|
|
428
|
+
threads: z.ZodArray<z.ZodString>;
|
|
429
|
+
facebook: z.ZodArray<z.ZodString>;
|
|
430
|
+
pinterest: z.ZodArray<z.ZodString>;
|
|
431
|
+
'3speak': z.ZodArray<z.ZodString>;
|
|
432
|
+
rumble: z.ZodArray<z.ZodString>;
|
|
433
|
+
fanvue: z.ZodArray<z.ZodString>;
|
|
434
|
+
}, z.core.$strip>;
|
|
435
|
+
}, z.core.$strip>>;
|
|
436
|
+
}, z.core.$strip>, "/api/persona/list">;
|
|
437
|
+
export declare const listFaces: EndpointDefinition<undefined, undefined, z.ZodObject<{
|
|
438
|
+
faces: z.ZodArray<z.ZodObject<{
|
|
439
|
+
id: z.ZodString;
|
|
440
|
+
url: z.ZodString;
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
gender: z.ZodEnum<{
|
|
443
|
+
female: "female";
|
|
444
|
+
male: "male";
|
|
445
|
+
}>;
|
|
446
|
+
age: z.ZodNumber;
|
|
447
|
+
ethnicity: z.ZodString;
|
|
448
|
+
hair: z.ZodString;
|
|
449
|
+
description: z.ZodString;
|
|
450
|
+
}, z.core.$strip>>;
|
|
451
|
+
}, z.core.$strip>, "/api/persona/faces">;
|
|
452
|
+
export declare const updatePersona: EndpointDefinition<z.ZodObject<{
|
|
453
|
+
name: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
454
|
+
avatarUrl: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
455
|
+
voiceId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
456
|
+
language: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
457
|
+
videoAspect: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
458
|
+
"9:16": "9:16";
|
|
459
|
+
"16:9": "16:9";
|
|
460
|
+
"1:1": "1:1";
|
|
461
|
+
}>>, unknown>;
|
|
462
|
+
videoLayout: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
463
|
+
standard: "standard";
|
|
464
|
+
react: "react";
|
|
465
|
+
}>>, unknown>;
|
|
466
|
+
scriptPrompt: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
467
|
+
ctaText: z.ZodOptional<z.ZodString>;
|
|
468
|
+
paragraphNumber: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
469
|
+
niche: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
470
|
+
faceQuality: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
471
|
+
ok: "ok";
|
|
472
|
+
very_good: "very_good";
|
|
473
|
+
}>>, unknown>;
|
|
474
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
475
|
+
success: z.ZodLiteral<true>;
|
|
476
|
+
}, z.core.$strip>, "/api/persona">;
|
|
477
|
+
export declare const getPersonaDeletePreview: EndpointDefinition<undefined, undefined, z.ZodObject<{
|
|
478
|
+
success: z.ZodLiteral<true>;
|
|
479
|
+
persona: z.ZodObject<{
|
|
480
|
+
id: z.ZodString;
|
|
481
|
+
name: z.ZodString;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
counts: z.ZodObject<{
|
|
484
|
+
schedules: z.ZodNumber;
|
|
485
|
+
upcomingSlots: z.ZodNumber;
|
|
486
|
+
publishedSlots: z.ZodNumber;
|
|
487
|
+
failedSlots: z.ZodNumber;
|
|
488
|
+
generatedVideos: z.ZodNumber;
|
|
489
|
+
personaImages: z.ZodNumber;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
videos: z.ZodArray<z.ZodObject<{
|
|
492
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
493
|
+
title: z.ZodNullable<z.ZodString>;
|
|
494
|
+
status: z.ZodString;
|
|
495
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
496
|
+
}, z.core.$strip>>;
|
|
497
|
+
videosTruncated: z.ZodBoolean;
|
|
498
|
+
linksIncomplete: z.ZodBoolean;
|
|
499
|
+
}, z.core.$strip>, "/api/persona/delete-preview">;
|
|
500
|
+
export declare const deletePersona: EndpointDefinition<undefined, undefined, z.ZodObject<{
|
|
501
|
+
success: z.ZodLiteral<true>;
|
|
502
|
+
}, z.core.$strip>, "/api/persona">;
|
|
503
|
+
export declare const listPersonaImages: EndpointDefinition<undefined, undefined, z.ZodObject<{
|
|
504
|
+
success: z.ZodLiteral<true>;
|
|
505
|
+
images: z.ZodArray<z.ZodObject<{
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
tag: z.ZodString;
|
|
508
|
+
description: z.ZodString;
|
|
509
|
+
is_primary: z.ZodBoolean;
|
|
510
|
+
created_at: z.ZodString;
|
|
511
|
+
image_url: z.ZodNullable<z.ZodString>;
|
|
512
|
+
image_url_error: z.ZodOptional<z.ZodLiteral<true>>;
|
|
513
|
+
}, z.core.$strip>>;
|
|
514
|
+
}, z.core.$strip>, "/api/persona/images">;
|
|
515
|
+
export declare const addPersonaImage: EndpointDefinition<z.ZodObject<{
|
|
516
|
+
personaId: z.ZodString;
|
|
517
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
518
|
+
description: z.ZodOptional<z.ZodString>;
|
|
519
|
+
isPrimary: z.ZodOptional<z.ZodEnum<{
|
|
520
|
+
true: "true";
|
|
521
|
+
false: "false";
|
|
522
|
+
}>>;
|
|
523
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
524
|
+
success: z.ZodLiteral<true>;
|
|
525
|
+
image: z.ZodObject<{
|
|
526
|
+
id: z.ZodString;
|
|
527
|
+
tag: z.ZodString;
|
|
528
|
+
description: z.ZodString;
|
|
529
|
+
is_primary: z.ZodBoolean;
|
|
530
|
+
created_at: z.ZodString;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
533
|
+
primary_swap_failed: "primary_swap_failed";
|
|
534
|
+
metadata_save_failed: "metadata_save_failed";
|
|
535
|
+
row_refetch_failed: "row_refetch_failed";
|
|
536
|
+
}>>>;
|
|
537
|
+
}, z.core.$strip>, "/api/persona/images">;
|
|
538
|
+
export declare const updatePersonaImage: EndpointDefinition<z.ZodObject<{
|
|
539
|
+
id: z.ZodString;
|
|
540
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
541
|
+
description: z.ZodOptional<z.ZodString>;
|
|
542
|
+
isPrimary: z.ZodOptional<z.ZodLiteral<true>>;
|
|
543
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
544
|
+
success: z.ZodLiteral<true>;
|
|
545
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
546
|
+
id: z.ZodString;
|
|
547
|
+
tag: z.ZodString;
|
|
548
|
+
description: z.ZodString;
|
|
549
|
+
is_primary: z.ZodBoolean;
|
|
550
|
+
created_at: z.ZodString;
|
|
551
|
+
}, z.core.$strip>>;
|
|
552
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
553
|
+
primary_swap_failed: "primary_swap_failed";
|
|
554
|
+
metadata_save_failed: "metadata_save_failed";
|
|
555
|
+
row_refetch_failed: "row_refetch_failed";
|
|
556
|
+
}>>>;
|
|
557
|
+
}, z.core.$strip>, "/api/persona/images">;
|
|
558
|
+
export declare const deletePersonaImage: EndpointDefinition<undefined, undefined, z.ZodObject<{
|
|
559
|
+
success: z.ZodLiteral<true>;
|
|
560
|
+
}, z.core.$strip>, "/api/persona/images">;
|