@puppetry.com/sdk 0.1.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/README.md +372 -0
- package/dist/chunk-IP47SEN7.mjs +1638 -0
- package/dist/chunk-QK5VPBL7.mjs +1500 -0
- package/dist/index.d.mts +1105 -0
- package/dist/index.d.ts +1105 -0
- package/dist/index.js +3163 -0
- package/dist/index.mjs +28 -0
- package/dist/mcp-ChYQVbVe.d.mts +947 -0
- package/dist/mcp-ChYQVbVe.d.ts +947 -0
- package/dist/mcp-stdio.d.mts +1 -0
- package/dist/mcp-stdio.d.ts +1 -0
- package/dist/mcp-stdio.js +3174 -0
- package/dist/mcp-stdio.mjs +65 -0
- package/dist/mcp.d.mts +1 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +1451 -0
- package/dist/mcp.mjs +6 -0
- package/package.json +61 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1105 @@
|
|
|
1
|
+
import { A as ApiErrorResponse, P as PuppetryVideoJob, U as UsageVideoGenerationReadiness, V as VideoEvent, a as AudioUploadUrlResponse, b as PuppetryVoiceList, c as Usage, C as CreateTextVideoParams, d as CreateAudioVideoParams, W as WaitForCompletionOptions, e as CreateAudioUploadUrlParams, f as Puppetry } from './mcp-ChYQVbVe.js';
|
|
2
|
+
export { g as ApiUploadLimits, h as AudioUploadBody, i as CreatePuppetParams, j as CreatePuppetryTtsParams, J as JsonRpcErrorResponse, k as JsonRpcId, l as JsonRpcRequest, m as JsonRpcResponse, n as JsonRpcSuccessResponse, L as ListPuppetsParams, o as ListVoicesParams, p as PaginatedResponse, q as Puppet, r as PuppetryConfig, s as PuppetryMcpServerInfo, t as PuppetryRequestRetryEvent, u as PuppetryTtsResponse, v as PuppetryVoice, w as UploadAudioParams, x as VideoEventType, y as VideoJob, z as VideoJobHelpers, B as VideoJobSource, D as VideoStatus, E as Voice, F as handlePuppetryMcpRequest } from './mcp-ChYQVbVe.js';
|
|
3
|
+
|
|
4
|
+
type PuppetryErrorOptions = {
|
|
5
|
+
object?: string;
|
|
6
|
+
retryAfter?: number;
|
|
7
|
+
retryable?: boolean;
|
|
8
|
+
credits?: VideoStatusCredits;
|
|
9
|
+
creation_credits?: VideoCreationCredits;
|
|
10
|
+
creationCredits?: VideoCreationCredits;
|
|
11
|
+
retry_blocked_reason?: string;
|
|
12
|
+
retryBlockedReason?: string;
|
|
13
|
+
retry_block_code?: string;
|
|
14
|
+
retryBlockCode?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
job_id?: string;
|
|
17
|
+
jobId?: string;
|
|
18
|
+
operation_id?: string;
|
|
19
|
+
operationId?: string;
|
|
20
|
+
task_id?: string;
|
|
21
|
+
taskId?: string;
|
|
22
|
+
status_url?: string;
|
|
23
|
+
statusUrl?: string;
|
|
24
|
+
content_location?: string;
|
|
25
|
+
contentLocation?: string;
|
|
26
|
+
created_at?: string;
|
|
27
|
+
createdAt?: string;
|
|
28
|
+
expires_at?: string;
|
|
29
|
+
expiresAt?: string;
|
|
30
|
+
next_poll_at?: string;
|
|
31
|
+
nextPollAt?: string;
|
|
32
|
+
source?: string;
|
|
33
|
+
request_source?: string;
|
|
34
|
+
requestSource?: string;
|
|
35
|
+
request_id?: string;
|
|
36
|
+
requestId?: string;
|
|
37
|
+
required_credits?: number;
|
|
38
|
+
requiredCredits?: number;
|
|
39
|
+
credits_remaining?: number;
|
|
40
|
+
creditsRemaining?: number;
|
|
41
|
+
remaining_credits?: number;
|
|
42
|
+
remainingCredits?: number;
|
|
43
|
+
};
|
|
44
|
+
type VideoStatusCredits = {
|
|
45
|
+
charged: number;
|
|
46
|
+
remaining: number | null;
|
|
47
|
+
};
|
|
48
|
+
type VideoCreationCredits = {
|
|
49
|
+
charged: number;
|
|
50
|
+
remaining_after_debit: number | null;
|
|
51
|
+
remainingAfterDebit: number | null;
|
|
52
|
+
};
|
|
53
|
+
declare class PuppetryError extends Error {
|
|
54
|
+
readonly status: number;
|
|
55
|
+
readonly code: string;
|
|
56
|
+
readonly details?: Record<string, unknown>;
|
|
57
|
+
readonly object?: string;
|
|
58
|
+
readonly retryAfter?: number;
|
|
59
|
+
readonly retryable?: boolean;
|
|
60
|
+
readonly credits?: VideoStatusCredits;
|
|
61
|
+
readonly creation_credits?: VideoCreationCredits;
|
|
62
|
+
readonly creationCredits?: VideoCreationCredits;
|
|
63
|
+
readonly retry_blocked_reason?: string;
|
|
64
|
+
readonly retryBlockedReason?: string;
|
|
65
|
+
readonly retry_block_code?: string;
|
|
66
|
+
readonly retryBlockCode?: string;
|
|
67
|
+
readonly id?: string;
|
|
68
|
+
readonly job_id?: string;
|
|
69
|
+
readonly jobId?: string;
|
|
70
|
+
readonly operation_id?: string;
|
|
71
|
+
readonly operationId?: string;
|
|
72
|
+
readonly task_id?: string;
|
|
73
|
+
readonly taskId?: string;
|
|
74
|
+
readonly status_url?: string;
|
|
75
|
+
readonly statusUrl?: string;
|
|
76
|
+
readonly content_location?: string;
|
|
77
|
+
readonly contentLocation?: string;
|
|
78
|
+
readonly created_at?: string;
|
|
79
|
+
readonly createdAt?: string;
|
|
80
|
+
readonly expires_at?: string;
|
|
81
|
+
readonly expiresAt?: string;
|
|
82
|
+
readonly next_poll_at?: string;
|
|
83
|
+
readonly nextPollAt?: string;
|
|
84
|
+
readonly source?: string;
|
|
85
|
+
readonly request_source?: string;
|
|
86
|
+
readonly requestSource?: string;
|
|
87
|
+
readonly request_id?: string;
|
|
88
|
+
readonly requestId?: string;
|
|
89
|
+
readonly required_credits?: number;
|
|
90
|
+
readonly requiredCredits?: number;
|
|
91
|
+
readonly credits_remaining?: number;
|
|
92
|
+
readonly creditsRemaining?: number;
|
|
93
|
+
readonly remaining_credits?: number;
|
|
94
|
+
readonly remainingCredits?: number;
|
|
95
|
+
constructor(status: number, code: string, message: string, details?: Record<string, unknown>, options?: PuppetryErrorOptions);
|
|
96
|
+
static fromResponse(status: number, body: ApiErrorResponse, options?: PuppetryErrorOptions): PuppetryError;
|
|
97
|
+
}
|
|
98
|
+
declare class PuppetryTimeoutError extends PuppetryError {
|
|
99
|
+
constructor(timeoutMs: number);
|
|
100
|
+
}
|
|
101
|
+
declare class PuppetryAuthError extends PuppetryError {
|
|
102
|
+
constructor(message?: string);
|
|
103
|
+
}
|
|
104
|
+
declare class PuppetryRateLimitError extends PuppetryError {
|
|
105
|
+
constructor(retryAfter?: number, message?: string, details?: Record<string, unknown>, code?: string, options?: PuppetryErrorOptions);
|
|
106
|
+
static fromRateLimitResponse(body: ApiErrorResponse, options?: PuppetryErrorOptions): PuppetryRateLimitError;
|
|
107
|
+
}
|
|
108
|
+
declare class PuppetryNetworkError extends PuppetryError {
|
|
109
|
+
constructor(message?: string);
|
|
110
|
+
}
|
|
111
|
+
type SerializedPuppetryError = Record<string, unknown> & {
|
|
112
|
+
status: number;
|
|
113
|
+
statusCode: number;
|
|
114
|
+
code: string;
|
|
115
|
+
message: string;
|
|
116
|
+
};
|
|
117
|
+
declare function puppetryErrorData(err: PuppetryError): SerializedPuppetryError;
|
|
118
|
+
|
|
119
|
+
type JobStatusInput = {
|
|
120
|
+
jobId: string;
|
|
121
|
+
job_id?: string;
|
|
122
|
+
task_id?: string;
|
|
123
|
+
taskId?: string;
|
|
124
|
+
id?: string;
|
|
125
|
+
} | {
|
|
126
|
+
jobId?: string;
|
|
127
|
+
job_id: string;
|
|
128
|
+
task_id?: string;
|
|
129
|
+
taskId?: string;
|
|
130
|
+
id?: string;
|
|
131
|
+
} | {
|
|
132
|
+
jobId?: string;
|
|
133
|
+
job_id?: string;
|
|
134
|
+
task_id: string;
|
|
135
|
+
taskId?: string;
|
|
136
|
+
id?: string;
|
|
137
|
+
} | {
|
|
138
|
+
jobId?: string;
|
|
139
|
+
job_id?: string;
|
|
140
|
+
task_id?: string;
|
|
141
|
+
taskId: string;
|
|
142
|
+
id?: string;
|
|
143
|
+
} | {
|
|
144
|
+
jobId?: string;
|
|
145
|
+
job_id?: string;
|
|
146
|
+
task_id?: string;
|
|
147
|
+
taskId?: string;
|
|
148
|
+
id: string;
|
|
149
|
+
};
|
|
150
|
+
type JobWaitInput = JobStatusInput & Pick<WaitForCompletionOptions, "intervalMs" | "timeoutMs" | "initialDelayMs">;
|
|
151
|
+
type WaitOptionInput = Pick<WaitForCompletionOptions, "intervalMs" | "timeoutMs" | "initialDelayMs">;
|
|
152
|
+
type VideoReadinessPreflightInput = {
|
|
153
|
+
preflightReadiness?: boolean;
|
|
154
|
+
preflight_readiness?: boolean;
|
|
155
|
+
};
|
|
156
|
+
type TextVideoCreateInput = CreateTextVideoParams & VideoReadinessPreflightInput;
|
|
157
|
+
type AudioVideoCreateInput = CreateAudioVideoParams & VideoReadinessPreflightInput;
|
|
158
|
+
type TextVideoCreateAndWaitInput = CreateTextVideoParams & WaitOptionInput & VideoReadinessPreflightInput;
|
|
159
|
+
type AudioVideoCreateAndWaitInput = CreateAudioVideoParams & WaitOptionInput & VideoReadinessPreflightInput;
|
|
160
|
+
type VideoCreditEvidence = NonNullable<PuppetryVideoJob["credits"]>;
|
|
161
|
+
type VideoCreationCreditEvidence = {
|
|
162
|
+
charged: number;
|
|
163
|
+
remaining_after_debit: number | null;
|
|
164
|
+
remainingAfterDebit: number | null;
|
|
165
|
+
};
|
|
166
|
+
interface PuppetryVideoCreateAndWaitResult {
|
|
167
|
+
object: "video_flow";
|
|
168
|
+
accepted_job: PuppetryVideoJob;
|
|
169
|
+
acceptedJob: PuppetryVideoJob;
|
|
170
|
+
final_job: PuppetryVideoJob;
|
|
171
|
+
finalJob: PuppetryVideoJob;
|
|
172
|
+
accepted_credits?: VideoCreditEvidence;
|
|
173
|
+
acceptedCredits?: VideoCreditEvidence;
|
|
174
|
+
final_credits?: VideoCreditEvidence;
|
|
175
|
+
finalCredits?: VideoCreditEvidence;
|
|
176
|
+
credits?: VideoCreditEvidence;
|
|
177
|
+
creation_credits?: VideoCreationCreditEvidence;
|
|
178
|
+
creationCredits?: VideoCreationCreditEvidence;
|
|
179
|
+
job_id: string;
|
|
180
|
+
jobId: string;
|
|
181
|
+
operation_id: string;
|
|
182
|
+
operationId: string;
|
|
183
|
+
request_id?: string;
|
|
184
|
+
requestId?: string;
|
|
185
|
+
status: PuppetryVideoJob["status"];
|
|
186
|
+
completed: boolean;
|
|
187
|
+
readiness?: UsageVideoGenerationReadiness;
|
|
188
|
+
readiness_checked: boolean;
|
|
189
|
+
readinessChecked: boolean;
|
|
190
|
+
poll_count: number;
|
|
191
|
+
pollCount: number;
|
|
192
|
+
retry_count: number;
|
|
193
|
+
retryCount: number;
|
|
194
|
+
latest_retrying_event?: VideoEvent;
|
|
195
|
+
latestRetryingEvent?: VideoEvent;
|
|
196
|
+
duration_ms: number;
|
|
197
|
+
durationMs: number;
|
|
198
|
+
video_url?: string | null;
|
|
199
|
+
videoUrl?: string | null;
|
|
200
|
+
}
|
|
201
|
+
type PuppetryVideoCreateResult = PuppetryVideoJob & {
|
|
202
|
+
readiness?: UsageVideoGenerationReadiness;
|
|
203
|
+
readiness_checked: boolean;
|
|
204
|
+
readinessChecked: boolean;
|
|
205
|
+
};
|
|
206
|
+
declare const PUPPETRY_AGENT_TOOLS: readonly [{
|
|
207
|
+
readonly name: "puppetry_create_video_from_text";
|
|
208
|
+
readonly resource: "videos.createFromText";
|
|
209
|
+
readonly description: "Create a talking-head video from a portrait image and text.";
|
|
210
|
+
readonly inputSchema: {
|
|
211
|
+
readonly type: "object";
|
|
212
|
+
readonly required: readonly [];
|
|
213
|
+
readonly allOf: readonly [{
|
|
214
|
+
readonly anyOf: readonly [{
|
|
215
|
+
readonly required: readonly ["text"];
|
|
216
|
+
}, {
|
|
217
|
+
readonly required: readonly ["script"];
|
|
218
|
+
}, {
|
|
219
|
+
readonly required: readonly ["prompt"];
|
|
220
|
+
}];
|
|
221
|
+
}, {
|
|
222
|
+
readonly anyOf: readonly [{
|
|
223
|
+
readonly required: readonly ["image_url"];
|
|
224
|
+
}, {
|
|
225
|
+
readonly required: readonly ["imageUrl"];
|
|
226
|
+
}, {
|
|
227
|
+
readonly required: readonly ["image"];
|
|
228
|
+
}, {
|
|
229
|
+
readonly required: readonly ["portrait"];
|
|
230
|
+
}, {
|
|
231
|
+
readonly required: readonly ["portrait_url"];
|
|
232
|
+
}, {
|
|
233
|
+
readonly required: readonly ["portraitUrl"];
|
|
234
|
+
}, {
|
|
235
|
+
readonly required: readonly ["avatar"];
|
|
236
|
+
}, {
|
|
237
|
+
readonly required: readonly ["avatarUrl"];
|
|
238
|
+
}, {
|
|
239
|
+
readonly required: readonly ["avatar_url"];
|
|
240
|
+
}, {
|
|
241
|
+
readonly required: readonly ["photo"];
|
|
242
|
+
}, {
|
|
243
|
+
readonly required: readonly ["photoUrl"];
|
|
244
|
+
}, {
|
|
245
|
+
readonly required: readonly ["photo_url"];
|
|
246
|
+
}];
|
|
247
|
+
}];
|
|
248
|
+
readonly properties: {
|
|
249
|
+
readonly preflightReadiness: {
|
|
250
|
+
readonly type: "boolean";
|
|
251
|
+
readonly description: "Check video credits and active slots before queueing. Defaults to false on create-only tools and true on create-and-wait tools.";
|
|
252
|
+
};
|
|
253
|
+
readonly preflight_readiness: {
|
|
254
|
+
readonly type: "boolean";
|
|
255
|
+
readonly description: "Snake_case alias for preflightReadiness.";
|
|
256
|
+
};
|
|
257
|
+
readonly text: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly description: "Script to synthesize and animate.";
|
|
260
|
+
};
|
|
261
|
+
readonly script: {
|
|
262
|
+
readonly type: "string";
|
|
263
|
+
readonly description: "Alias for text script to synthesize and animate.";
|
|
264
|
+
};
|
|
265
|
+
readonly prompt: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly description: "Alias for text script, useful for prompt-oriented agents.";
|
|
268
|
+
};
|
|
269
|
+
readonly image_url: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly description: "Hosted portrait image URL.";
|
|
272
|
+
};
|
|
273
|
+
readonly imageUrl: {
|
|
274
|
+
readonly type: "string";
|
|
275
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
276
|
+
};
|
|
277
|
+
readonly image: {
|
|
278
|
+
readonly type: "string";
|
|
279
|
+
readonly description: "Hosted portrait image URL alias for agents.";
|
|
280
|
+
};
|
|
281
|
+
readonly portrait: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
readonly description: "Deprecated hosted portrait image URL alias.";
|
|
284
|
+
};
|
|
285
|
+
readonly portrait_url: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
readonly description: "Hosted portrait image URL snake_case alias.";
|
|
288
|
+
};
|
|
289
|
+
readonly portraitUrl: {
|
|
290
|
+
readonly type: "string";
|
|
291
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
292
|
+
};
|
|
293
|
+
readonly avatar: {
|
|
294
|
+
readonly type: "string";
|
|
295
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
296
|
+
};
|
|
297
|
+
readonly avatarUrl: {
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
300
|
+
};
|
|
301
|
+
readonly avatar_url: {
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
readonly description: "Hosted avatar image URL snake_case alias.";
|
|
304
|
+
};
|
|
305
|
+
readonly photo: {
|
|
306
|
+
readonly type: "string";
|
|
307
|
+
readonly description: "Hosted photo image URL alias.";
|
|
308
|
+
};
|
|
309
|
+
readonly photoUrl: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
readonly description: "Hosted photo image URL alias.";
|
|
312
|
+
};
|
|
313
|
+
readonly photo_url: {
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
readonly description: "Hosted photo image URL snake_case alias.";
|
|
316
|
+
};
|
|
317
|
+
readonly voice_id: {
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
readonly description: "Optional Puppetry voice ID from voices.listPuppetry().";
|
|
320
|
+
};
|
|
321
|
+
readonly voiceId: {
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
readonly description: "Optional Puppetry voice ID alias.";
|
|
324
|
+
};
|
|
325
|
+
readonly voice: {
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
readonly description: "Optional Puppetry voice ID alias for SDK examples.";
|
|
328
|
+
};
|
|
329
|
+
readonly language: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
readonly description: "Optional language code, such as en.";
|
|
332
|
+
};
|
|
333
|
+
readonly expressiveness: {
|
|
334
|
+
readonly type: "number";
|
|
335
|
+
readonly description: "Optional animation expressiveness from 0 to 2.";
|
|
336
|
+
};
|
|
337
|
+
readonly idempotencyKey: {
|
|
338
|
+
readonly type: "string";
|
|
339
|
+
readonly description: "Optional retry key sent as Idempotency-Key.";
|
|
340
|
+
};
|
|
341
|
+
readonly idempotency_key: {
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
readonly description: "Optional retry key alias sent as Idempotency-Key.";
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "puppetry_create_video_from_audio";
|
|
349
|
+
readonly resource: "videos.createFromAudio";
|
|
350
|
+
readonly description: "Create a talking-head video from a portrait image and audio.";
|
|
351
|
+
readonly inputSchema: {
|
|
352
|
+
readonly type: "object";
|
|
353
|
+
readonly required: readonly [];
|
|
354
|
+
readonly allOf: readonly [{
|
|
355
|
+
readonly anyOf: readonly [{
|
|
356
|
+
readonly required: readonly ["image_url"];
|
|
357
|
+
}, {
|
|
358
|
+
readonly required: readonly ["imageUrl"];
|
|
359
|
+
}, {
|
|
360
|
+
readonly required: readonly ["image"];
|
|
361
|
+
}, {
|
|
362
|
+
readonly required: readonly ["portrait"];
|
|
363
|
+
}, {
|
|
364
|
+
readonly required: readonly ["portrait_url"];
|
|
365
|
+
}, {
|
|
366
|
+
readonly required: readonly ["portraitUrl"];
|
|
367
|
+
}, {
|
|
368
|
+
readonly required: readonly ["avatar"];
|
|
369
|
+
}, {
|
|
370
|
+
readonly required: readonly ["avatarUrl"];
|
|
371
|
+
}, {
|
|
372
|
+
readonly required: readonly ["avatar_url"];
|
|
373
|
+
}, {
|
|
374
|
+
readonly required: readonly ["photo"];
|
|
375
|
+
}, {
|
|
376
|
+
readonly required: readonly ["photoUrl"];
|
|
377
|
+
}, {
|
|
378
|
+
readonly required: readonly ["photo_url"];
|
|
379
|
+
}];
|
|
380
|
+
}, {
|
|
381
|
+
readonly anyOf: readonly [{
|
|
382
|
+
readonly required: readonly ["audio_url"];
|
|
383
|
+
}, {
|
|
384
|
+
readonly required: readonly ["audioUrl"];
|
|
385
|
+
}, {
|
|
386
|
+
readonly required: readonly ["audio"];
|
|
387
|
+
}];
|
|
388
|
+
}];
|
|
389
|
+
readonly properties: {
|
|
390
|
+
readonly preflightReadiness: {
|
|
391
|
+
readonly type: "boolean";
|
|
392
|
+
readonly description: "Check video credits and active slots before queueing. Defaults to false on create-only tools and true on create-and-wait tools.";
|
|
393
|
+
};
|
|
394
|
+
readonly preflight_readiness: {
|
|
395
|
+
readonly type: "boolean";
|
|
396
|
+
readonly description: "Snake_case alias for preflightReadiness.";
|
|
397
|
+
};
|
|
398
|
+
readonly audio_url: {
|
|
399
|
+
readonly type: "string";
|
|
400
|
+
readonly description: "Hosted audio URL.";
|
|
401
|
+
};
|
|
402
|
+
readonly audioUrl: {
|
|
403
|
+
readonly type: "string";
|
|
404
|
+
readonly description: "Hosted audio URL alias.";
|
|
405
|
+
};
|
|
406
|
+
readonly audio: {
|
|
407
|
+
readonly type: "string";
|
|
408
|
+
readonly description: "Hosted audio URL alias for agents.";
|
|
409
|
+
};
|
|
410
|
+
readonly image_url: {
|
|
411
|
+
readonly type: "string";
|
|
412
|
+
readonly description: "Hosted portrait image URL.";
|
|
413
|
+
};
|
|
414
|
+
readonly imageUrl: {
|
|
415
|
+
readonly type: "string";
|
|
416
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
417
|
+
};
|
|
418
|
+
readonly image: {
|
|
419
|
+
readonly type: "string";
|
|
420
|
+
readonly description: "Hosted portrait image URL alias for agents.";
|
|
421
|
+
};
|
|
422
|
+
readonly portrait: {
|
|
423
|
+
readonly type: "string";
|
|
424
|
+
readonly description: "Deprecated hosted portrait image URL alias.";
|
|
425
|
+
};
|
|
426
|
+
readonly portrait_url: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly description: "Hosted portrait image URL snake_case alias.";
|
|
429
|
+
};
|
|
430
|
+
readonly portraitUrl: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
433
|
+
};
|
|
434
|
+
readonly avatar: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
437
|
+
};
|
|
438
|
+
readonly avatarUrl: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
441
|
+
};
|
|
442
|
+
readonly avatar_url: {
|
|
443
|
+
readonly type: "string";
|
|
444
|
+
readonly description: "Hosted avatar image URL snake_case alias.";
|
|
445
|
+
};
|
|
446
|
+
readonly photo: {
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
readonly description: "Hosted photo image URL alias.";
|
|
449
|
+
};
|
|
450
|
+
readonly photoUrl: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly description: "Hosted photo image URL alias.";
|
|
453
|
+
};
|
|
454
|
+
readonly photo_url: {
|
|
455
|
+
readonly type: "string";
|
|
456
|
+
readonly description: "Hosted photo image URL snake_case alias.";
|
|
457
|
+
};
|
|
458
|
+
readonly expressiveness: {
|
|
459
|
+
readonly type: "number";
|
|
460
|
+
readonly description: "Optional animation expressiveness from 0 to 2.";
|
|
461
|
+
};
|
|
462
|
+
readonly idempotencyKey: {
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
readonly description: "Optional retry key sent as Idempotency-Key.";
|
|
465
|
+
};
|
|
466
|
+
readonly idempotency_key: {
|
|
467
|
+
readonly type: "string";
|
|
468
|
+
readonly description: "Optional retry key alias sent as Idempotency-Key.";
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
}, {
|
|
473
|
+
readonly name: "puppetry_create_video_from_text_and_wait";
|
|
474
|
+
readonly resource: "videos.createFromText.waitForCompletion";
|
|
475
|
+
readonly description: "Create a talking-head video from text and wait for completed or failed status.";
|
|
476
|
+
readonly inputSchema: {
|
|
477
|
+
readonly type: "object";
|
|
478
|
+
readonly required: readonly [];
|
|
479
|
+
readonly allOf: readonly [{
|
|
480
|
+
readonly anyOf: readonly [{
|
|
481
|
+
readonly required: readonly ["text"];
|
|
482
|
+
}, {
|
|
483
|
+
readonly required: readonly ["script"];
|
|
484
|
+
}, {
|
|
485
|
+
readonly required: readonly ["prompt"];
|
|
486
|
+
}];
|
|
487
|
+
}, {
|
|
488
|
+
readonly anyOf: readonly [{
|
|
489
|
+
readonly required: readonly ["image_url"];
|
|
490
|
+
}, {
|
|
491
|
+
readonly required: readonly ["imageUrl"];
|
|
492
|
+
}, {
|
|
493
|
+
readonly required: readonly ["image"];
|
|
494
|
+
}, {
|
|
495
|
+
readonly required: readonly ["portrait"];
|
|
496
|
+
}, {
|
|
497
|
+
readonly required: readonly ["portrait_url"];
|
|
498
|
+
}, {
|
|
499
|
+
readonly required: readonly ["portraitUrl"];
|
|
500
|
+
}, {
|
|
501
|
+
readonly required: readonly ["avatar"];
|
|
502
|
+
}, {
|
|
503
|
+
readonly required: readonly ["avatarUrl"];
|
|
504
|
+
}, {
|
|
505
|
+
readonly required: readonly ["avatar_url"];
|
|
506
|
+
}, {
|
|
507
|
+
readonly required: readonly ["photo"];
|
|
508
|
+
}, {
|
|
509
|
+
readonly required: readonly ["photoUrl"];
|
|
510
|
+
}, {
|
|
511
|
+
readonly required: readonly ["photo_url"];
|
|
512
|
+
}];
|
|
513
|
+
}];
|
|
514
|
+
readonly properties: {
|
|
515
|
+
readonly intervalMs: {
|
|
516
|
+
readonly type: "number";
|
|
517
|
+
readonly description: "Polling interval in milliseconds. Defaults to 2000.";
|
|
518
|
+
};
|
|
519
|
+
readonly timeoutMs: {
|
|
520
|
+
readonly type: "number";
|
|
521
|
+
readonly description: "Maximum wait time in milliseconds. Defaults to 300000.";
|
|
522
|
+
};
|
|
523
|
+
readonly initialDelayMs: {
|
|
524
|
+
readonly type: "number";
|
|
525
|
+
readonly description: "Optional delay before the first status request, useful with Retry-After.";
|
|
526
|
+
};
|
|
527
|
+
readonly preflightReadiness: {
|
|
528
|
+
readonly type: "boolean";
|
|
529
|
+
readonly description: "Check video credits and active slots before queueing. Defaults to false on create-only tools and true on create-and-wait tools.";
|
|
530
|
+
};
|
|
531
|
+
readonly preflight_readiness: {
|
|
532
|
+
readonly type: "boolean";
|
|
533
|
+
readonly description: "Snake_case alias for preflightReadiness.";
|
|
534
|
+
};
|
|
535
|
+
readonly text: {
|
|
536
|
+
readonly type: "string";
|
|
537
|
+
readonly description: "Script to synthesize and animate.";
|
|
538
|
+
};
|
|
539
|
+
readonly script: {
|
|
540
|
+
readonly type: "string";
|
|
541
|
+
readonly description: "Alias for text script to synthesize and animate.";
|
|
542
|
+
};
|
|
543
|
+
readonly prompt: {
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
readonly description: "Alias for text script, useful for prompt-oriented agents.";
|
|
546
|
+
};
|
|
547
|
+
readonly image_url: {
|
|
548
|
+
readonly type: "string";
|
|
549
|
+
readonly description: "Hosted portrait image URL.";
|
|
550
|
+
};
|
|
551
|
+
readonly imageUrl: {
|
|
552
|
+
readonly type: "string";
|
|
553
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
554
|
+
};
|
|
555
|
+
readonly image: {
|
|
556
|
+
readonly type: "string";
|
|
557
|
+
readonly description: "Hosted portrait image URL alias for agents.";
|
|
558
|
+
};
|
|
559
|
+
readonly portrait: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
readonly description: "Deprecated hosted portrait image URL alias.";
|
|
562
|
+
};
|
|
563
|
+
readonly portrait_url: {
|
|
564
|
+
readonly type: "string";
|
|
565
|
+
readonly description: "Hosted portrait image URL snake_case alias.";
|
|
566
|
+
};
|
|
567
|
+
readonly portraitUrl: {
|
|
568
|
+
readonly type: "string";
|
|
569
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
570
|
+
};
|
|
571
|
+
readonly avatar: {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
574
|
+
};
|
|
575
|
+
readonly avatarUrl: {
|
|
576
|
+
readonly type: "string";
|
|
577
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
578
|
+
};
|
|
579
|
+
readonly avatar_url: {
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
readonly description: "Hosted avatar image URL snake_case alias.";
|
|
582
|
+
};
|
|
583
|
+
readonly photo: {
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly description: "Hosted photo image URL alias.";
|
|
586
|
+
};
|
|
587
|
+
readonly photoUrl: {
|
|
588
|
+
readonly type: "string";
|
|
589
|
+
readonly description: "Hosted photo image URL alias.";
|
|
590
|
+
};
|
|
591
|
+
readonly photo_url: {
|
|
592
|
+
readonly type: "string";
|
|
593
|
+
readonly description: "Hosted photo image URL snake_case alias.";
|
|
594
|
+
};
|
|
595
|
+
readonly voice_id: {
|
|
596
|
+
readonly type: "string";
|
|
597
|
+
readonly description: "Optional Puppetry voice ID from voices.listPuppetry().";
|
|
598
|
+
};
|
|
599
|
+
readonly voiceId: {
|
|
600
|
+
readonly type: "string";
|
|
601
|
+
readonly description: "Optional Puppetry voice ID alias.";
|
|
602
|
+
};
|
|
603
|
+
readonly voice: {
|
|
604
|
+
readonly type: "string";
|
|
605
|
+
readonly description: "Optional Puppetry voice ID alias for SDK examples.";
|
|
606
|
+
};
|
|
607
|
+
readonly language: {
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
readonly description: "Optional language code, such as en.";
|
|
610
|
+
};
|
|
611
|
+
readonly expressiveness: {
|
|
612
|
+
readonly type: "number";
|
|
613
|
+
readonly description: "Optional animation expressiveness from 0 to 2.";
|
|
614
|
+
};
|
|
615
|
+
readonly idempotencyKey: {
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
readonly description: "Optional retry key sent as Idempotency-Key.";
|
|
618
|
+
};
|
|
619
|
+
readonly idempotency_key: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly description: "Optional retry key alias sent as Idempotency-Key.";
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
}, {
|
|
626
|
+
readonly name: "puppetry_create_video_from_audio_and_wait";
|
|
627
|
+
readonly resource: "videos.createFromAudio.waitForCompletion";
|
|
628
|
+
readonly description: "Create a talking-head video from audio and wait for completed or failed status.";
|
|
629
|
+
readonly inputSchema: {
|
|
630
|
+
readonly type: "object";
|
|
631
|
+
readonly required: readonly [];
|
|
632
|
+
readonly allOf: readonly [{
|
|
633
|
+
readonly anyOf: readonly [{
|
|
634
|
+
readonly required: readonly ["image_url"];
|
|
635
|
+
}, {
|
|
636
|
+
readonly required: readonly ["imageUrl"];
|
|
637
|
+
}, {
|
|
638
|
+
readonly required: readonly ["image"];
|
|
639
|
+
}, {
|
|
640
|
+
readonly required: readonly ["portrait"];
|
|
641
|
+
}, {
|
|
642
|
+
readonly required: readonly ["portrait_url"];
|
|
643
|
+
}, {
|
|
644
|
+
readonly required: readonly ["portraitUrl"];
|
|
645
|
+
}, {
|
|
646
|
+
readonly required: readonly ["avatar"];
|
|
647
|
+
}, {
|
|
648
|
+
readonly required: readonly ["avatarUrl"];
|
|
649
|
+
}, {
|
|
650
|
+
readonly required: readonly ["avatar_url"];
|
|
651
|
+
}, {
|
|
652
|
+
readonly required: readonly ["photo"];
|
|
653
|
+
}, {
|
|
654
|
+
readonly required: readonly ["photoUrl"];
|
|
655
|
+
}, {
|
|
656
|
+
readonly required: readonly ["photo_url"];
|
|
657
|
+
}];
|
|
658
|
+
}, {
|
|
659
|
+
readonly anyOf: readonly [{
|
|
660
|
+
readonly required: readonly ["audio_url"];
|
|
661
|
+
}, {
|
|
662
|
+
readonly required: readonly ["audioUrl"];
|
|
663
|
+
}, {
|
|
664
|
+
readonly required: readonly ["audio"];
|
|
665
|
+
}];
|
|
666
|
+
}];
|
|
667
|
+
readonly properties: {
|
|
668
|
+
readonly intervalMs: {
|
|
669
|
+
readonly type: "number";
|
|
670
|
+
readonly description: "Polling interval in milliseconds. Defaults to 2000.";
|
|
671
|
+
};
|
|
672
|
+
readonly timeoutMs: {
|
|
673
|
+
readonly type: "number";
|
|
674
|
+
readonly description: "Maximum wait time in milliseconds. Defaults to 300000.";
|
|
675
|
+
};
|
|
676
|
+
readonly initialDelayMs: {
|
|
677
|
+
readonly type: "number";
|
|
678
|
+
readonly description: "Optional delay before the first status request, useful with Retry-After.";
|
|
679
|
+
};
|
|
680
|
+
readonly preflightReadiness: {
|
|
681
|
+
readonly type: "boolean";
|
|
682
|
+
readonly description: "Check video credits and active slots before queueing. Defaults to false on create-only tools and true on create-and-wait tools.";
|
|
683
|
+
};
|
|
684
|
+
readonly preflight_readiness: {
|
|
685
|
+
readonly type: "boolean";
|
|
686
|
+
readonly description: "Snake_case alias for preflightReadiness.";
|
|
687
|
+
};
|
|
688
|
+
readonly audio_url: {
|
|
689
|
+
readonly type: "string";
|
|
690
|
+
readonly description: "Hosted audio URL.";
|
|
691
|
+
};
|
|
692
|
+
readonly audioUrl: {
|
|
693
|
+
readonly type: "string";
|
|
694
|
+
readonly description: "Hosted audio URL alias.";
|
|
695
|
+
};
|
|
696
|
+
readonly audio: {
|
|
697
|
+
readonly type: "string";
|
|
698
|
+
readonly description: "Hosted audio URL alias for agents.";
|
|
699
|
+
};
|
|
700
|
+
readonly image_url: {
|
|
701
|
+
readonly type: "string";
|
|
702
|
+
readonly description: "Hosted portrait image URL.";
|
|
703
|
+
};
|
|
704
|
+
readonly imageUrl: {
|
|
705
|
+
readonly type: "string";
|
|
706
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
707
|
+
};
|
|
708
|
+
readonly image: {
|
|
709
|
+
readonly type: "string";
|
|
710
|
+
readonly description: "Hosted portrait image URL alias for agents.";
|
|
711
|
+
};
|
|
712
|
+
readonly portrait: {
|
|
713
|
+
readonly type: "string";
|
|
714
|
+
readonly description: "Deprecated hosted portrait image URL alias.";
|
|
715
|
+
};
|
|
716
|
+
readonly portrait_url: {
|
|
717
|
+
readonly type: "string";
|
|
718
|
+
readonly description: "Hosted portrait image URL snake_case alias.";
|
|
719
|
+
};
|
|
720
|
+
readonly portraitUrl: {
|
|
721
|
+
readonly type: "string";
|
|
722
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
723
|
+
};
|
|
724
|
+
readonly avatar: {
|
|
725
|
+
readonly type: "string";
|
|
726
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
727
|
+
};
|
|
728
|
+
readonly avatarUrl: {
|
|
729
|
+
readonly type: "string";
|
|
730
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
731
|
+
};
|
|
732
|
+
readonly avatar_url: {
|
|
733
|
+
readonly type: "string";
|
|
734
|
+
readonly description: "Hosted avatar image URL snake_case alias.";
|
|
735
|
+
};
|
|
736
|
+
readonly photo: {
|
|
737
|
+
readonly type: "string";
|
|
738
|
+
readonly description: "Hosted photo image URL alias.";
|
|
739
|
+
};
|
|
740
|
+
readonly photoUrl: {
|
|
741
|
+
readonly type: "string";
|
|
742
|
+
readonly description: "Hosted photo image URL alias.";
|
|
743
|
+
};
|
|
744
|
+
readonly photo_url: {
|
|
745
|
+
readonly type: "string";
|
|
746
|
+
readonly description: "Hosted photo image URL snake_case alias.";
|
|
747
|
+
};
|
|
748
|
+
readonly expressiveness: {
|
|
749
|
+
readonly type: "number";
|
|
750
|
+
readonly description: "Optional animation expressiveness from 0 to 2.";
|
|
751
|
+
};
|
|
752
|
+
readonly idempotencyKey: {
|
|
753
|
+
readonly type: "string";
|
|
754
|
+
readonly description: "Optional retry key sent as Idempotency-Key.";
|
|
755
|
+
};
|
|
756
|
+
readonly idempotency_key: {
|
|
757
|
+
readonly type: "string";
|
|
758
|
+
readonly description: "Optional retry key alias sent as Idempotency-Key.";
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
}, {
|
|
763
|
+
readonly name: "puppetry_create_audio_upload_url";
|
|
764
|
+
readonly resource: "uploads.createAudioUrl";
|
|
765
|
+
readonly description: "Reserve a Puppetry-hosted signed audio upload URL for audio-to-video workflows.";
|
|
766
|
+
readonly inputSchema: {
|
|
767
|
+
readonly properties: {
|
|
768
|
+
readonly mime_type: {
|
|
769
|
+
readonly type: "string";
|
|
770
|
+
readonly description: "Audio MIME type, such as audio/wav, audio/mpeg, or audio/mp4.";
|
|
771
|
+
};
|
|
772
|
+
readonly mimeType: {
|
|
773
|
+
readonly type: "string";
|
|
774
|
+
readonly description: "Audio MIME type alias.";
|
|
775
|
+
};
|
|
776
|
+
readonly contentType: {
|
|
777
|
+
readonly type: "string";
|
|
778
|
+
readonly description: "Audio MIME type alias for signed-upload callers.";
|
|
779
|
+
};
|
|
780
|
+
readonly content_length: {
|
|
781
|
+
readonly type: "number";
|
|
782
|
+
readonly description: "Exact byte length of the audio file to upload.";
|
|
783
|
+
};
|
|
784
|
+
readonly contentLength: {
|
|
785
|
+
readonly type: "number";
|
|
786
|
+
readonly description: "Exact byte length alias.";
|
|
787
|
+
};
|
|
788
|
+
readonly sizeBytes: {
|
|
789
|
+
readonly type: "number";
|
|
790
|
+
readonly description: "Exact byte length alias for agent/runtime callers.";
|
|
791
|
+
};
|
|
792
|
+
readonly file_size: {
|
|
793
|
+
readonly type: "number";
|
|
794
|
+
readonly description: "Exact byte length alias for upload metadata callers.";
|
|
795
|
+
};
|
|
796
|
+
readonly fileSize: {
|
|
797
|
+
readonly type: "number";
|
|
798
|
+
readonly description: "Exact byte length alias for upload metadata callers.";
|
|
799
|
+
};
|
|
800
|
+
readonly idempotencyKey: {
|
|
801
|
+
readonly type: "string";
|
|
802
|
+
readonly description: "Optional retry key sent as Idempotency-Key.";
|
|
803
|
+
};
|
|
804
|
+
readonly idempotency_key: {
|
|
805
|
+
readonly type: "string";
|
|
806
|
+
readonly description: "Optional retry key alias sent as Idempotency-Key.";
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
readonly allOf: readonly [{
|
|
810
|
+
readonly anyOf: readonly [{
|
|
811
|
+
readonly required: readonly ["mime_type"];
|
|
812
|
+
}, {
|
|
813
|
+
readonly required: readonly ["mimeType"];
|
|
814
|
+
}, {
|
|
815
|
+
readonly required: readonly ["contentType"];
|
|
816
|
+
}];
|
|
817
|
+
}, {
|
|
818
|
+
readonly anyOf: readonly [{
|
|
819
|
+
readonly required: readonly ["content_length"];
|
|
820
|
+
}, {
|
|
821
|
+
readonly required: readonly ["contentLength"];
|
|
822
|
+
}, {
|
|
823
|
+
readonly required: readonly ["sizeBytes"];
|
|
824
|
+
}, {
|
|
825
|
+
readonly required: readonly ["file_size"];
|
|
826
|
+
}, {
|
|
827
|
+
readonly required: readonly ["fileSize"];
|
|
828
|
+
}];
|
|
829
|
+
}];
|
|
830
|
+
readonly type: "object";
|
|
831
|
+
readonly required: readonly [];
|
|
832
|
+
};
|
|
833
|
+
}, {
|
|
834
|
+
readonly name: "puppetry_lipsync";
|
|
835
|
+
readonly resource: "videos.createFromAudio";
|
|
836
|
+
readonly description: "Lip sync a portrait or puppet with an existing audio URL.";
|
|
837
|
+
readonly inputSchema: {
|
|
838
|
+
readonly type: "object";
|
|
839
|
+
readonly required: readonly [];
|
|
840
|
+
readonly allOf: readonly [{
|
|
841
|
+
readonly anyOf: readonly [{
|
|
842
|
+
readonly required: readonly ["image_url"];
|
|
843
|
+
}, {
|
|
844
|
+
readonly required: readonly ["imageUrl"];
|
|
845
|
+
}, {
|
|
846
|
+
readonly required: readonly ["image"];
|
|
847
|
+
}, {
|
|
848
|
+
readonly required: readonly ["portrait"];
|
|
849
|
+
}, {
|
|
850
|
+
readonly required: readonly ["portrait_url"];
|
|
851
|
+
}, {
|
|
852
|
+
readonly required: readonly ["portraitUrl"];
|
|
853
|
+
}, {
|
|
854
|
+
readonly required: readonly ["avatar"];
|
|
855
|
+
}, {
|
|
856
|
+
readonly required: readonly ["avatarUrl"];
|
|
857
|
+
}, {
|
|
858
|
+
readonly required: readonly ["avatar_url"];
|
|
859
|
+
}, {
|
|
860
|
+
readonly required: readonly ["photo"];
|
|
861
|
+
}, {
|
|
862
|
+
readonly required: readonly ["photoUrl"];
|
|
863
|
+
}, {
|
|
864
|
+
readonly required: readonly ["photo_url"];
|
|
865
|
+
}];
|
|
866
|
+
}, {
|
|
867
|
+
readonly anyOf: readonly [{
|
|
868
|
+
readonly required: readonly ["audio_url"];
|
|
869
|
+
}, {
|
|
870
|
+
readonly required: readonly ["audioUrl"];
|
|
871
|
+
}, {
|
|
872
|
+
readonly required: readonly ["audio"];
|
|
873
|
+
}];
|
|
874
|
+
}];
|
|
875
|
+
readonly properties: {
|
|
876
|
+
readonly audio_url: {
|
|
877
|
+
readonly type: "string";
|
|
878
|
+
readonly description: "Hosted audio URL.";
|
|
879
|
+
};
|
|
880
|
+
readonly audioUrl: {
|
|
881
|
+
readonly type: "string";
|
|
882
|
+
readonly description: "Hosted audio URL alias.";
|
|
883
|
+
};
|
|
884
|
+
readonly audio: {
|
|
885
|
+
readonly type: "string";
|
|
886
|
+
readonly description: "Hosted audio URL alias for agents.";
|
|
887
|
+
};
|
|
888
|
+
readonly image_url: {
|
|
889
|
+
readonly type: "string";
|
|
890
|
+
readonly description: "Hosted portrait image URL.";
|
|
891
|
+
};
|
|
892
|
+
readonly imageUrl: {
|
|
893
|
+
readonly type: "string";
|
|
894
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
895
|
+
};
|
|
896
|
+
readonly image: {
|
|
897
|
+
readonly type: "string";
|
|
898
|
+
readonly description: "Hosted portrait image URL alias for agents.";
|
|
899
|
+
};
|
|
900
|
+
readonly portrait: {
|
|
901
|
+
readonly type: "string";
|
|
902
|
+
readonly description: "Deprecated hosted portrait image URL alias.";
|
|
903
|
+
};
|
|
904
|
+
readonly portrait_url: {
|
|
905
|
+
readonly type: "string";
|
|
906
|
+
readonly description: "Hosted portrait image URL snake_case alias.";
|
|
907
|
+
};
|
|
908
|
+
readonly portraitUrl: {
|
|
909
|
+
readonly type: "string";
|
|
910
|
+
readonly description: "Hosted portrait image URL alias.";
|
|
911
|
+
};
|
|
912
|
+
readonly avatar: {
|
|
913
|
+
readonly type: "string";
|
|
914
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
915
|
+
};
|
|
916
|
+
readonly avatarUrl: {
|
|
917
|
+
readonly type: "string";
|
|
918
|
+
readonly description: "Hosted avatar image URL alias.";
|
|
919
|
+
};
|
|
920
|
+
readonly avatar_url: {
|
|
921
|
+
readonly type: "string";
|
|
922
|
+
readonly description: "Hosted avatar image URL snake_case alias.";
|
|
923
|
+
};
|
|
924
|
+
readonly photo: {
|
|
925
|
+
readonly type: "string";
|
|
926
|
+
readonly description: "Hosted photo image URL alias.";
|
|
927
|
+
};
|
|
928
|
+
readonly photoUrl: {
|
|
929
|
+
readonly type: "string";
|
|
930
|
+
readonly description: "Hosted photo image URL alias.";
|
|
931
|
+
};
|
|
932
|
+
readonly photo_url: {
|
|
933
|
+
readonly type: "string";
|
|
934
|
+
readonly description: "Hosted photo image URL snake_case alias.";
|
|
935
|
+
};
|
|
936
|
+
readonly idempotencyKey: {
|
|
937
|
+
readonly type: "string";
|
|
938
|
+
readonly description: "Optional retry key sent as Idempotency-Key.";
|
|
939
|
+
};
|
|
940
|
+
readonly idempotency_key: {
|
|
941
|
+
readonly type: "string";
|
|
942
|
+
readonly description: "Optional retry key alias sent as Idempotency-Key.";
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
}, {
|
|
947
|
+
readonly name: "puppetry_list_voices";
|
|
948
|
+
readonly resource: "voices.listPuppetry";
|
|
949
|
+
readonly description: "List Puppetry-hosted voices with preview text and audio.";
|
|
950
|
+
readonly inputSchema: {
|
|
951
|
+
readonly type: "object";
|
|
952
|
+
readonly properties: {};
|
|
953
|
+
};
|
|
954
|
+
}, {
|
|
955
|
+
readonly name: "puppetry_get_job_status";
|
|
956
|
+
readonly resource: "jobs.get";
|
|
957
|
+
readonly description: "Fetch a generated video job by ID.";
|
|
958
|
+
readonly inputSchema: {
|
|
959
|
+
readonly properties: {
|
|
960
|
+
readonly jobId: {
|
|
961
|
+
readonly type: "string";
|
|
962
|
+
readonly description: "Generated video job ID.";
|
|
963
|
+
};
|
|
964
|
+
readonly job_id: {
|
|
965
|
+
readonly type: "string";
|
|
966
|
+
readonly description: "Generated video job ID alias.";
|
|
967
|
+
};
|
|
968
|
+
readonly task_id: {
|
|
969
|
+
readonly type: "string";
|
|
970
|
+
readonly description: "Generated video task ID alias.";
|
|
971
|
+
};
|
|
972
|
+
readonly taskId: {
|
|
973
|
+
readonly type: "string";
|
|
974
|
+
readonly description: "Generated video task ID camelCase alias.";
|
|
975
|
+
};
|
|
976
|
+
readonly id: {
|
|
977
|
+
readonly type: "string";
|
|
978
|
+
readonly description: "Generated video ID alias.";
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
readonly anyOf: readonly [{
|
|
982
|
+
readonly required: readonly ["jobId"];
|
|
983
|
+
}, {
|
|
984
|
+
readonly required: readonly ["job_id"];
|
|
985
|
+
}, {
|
|
986
|
+
readonly required: readonly ["task_id"];
|
|
987
|
+
}, {
|
|
988
|
+
readonly required: readonly ["taskId"];
|
|
989
|
+
}, {
|
|
990
|
+
readonly required: readonly ["id"];
|
|
991
|
+
}];
|
|
992
|
+
readonly type: "object";
|
|
993
|
+
readonly required: readonly [];
|
|
994
|
+
};
|
|
995
|
+
}, {
|
|
996
|
+
readonly name: "puppetry_wait_for_video";
|
|
997
|
+
readonly resource: "videos.waitForCompletion";
|
|
998
|
+
readonly description: "Poll a generated video job until it reaches completed or failed.";
|
|
999
|
+
readonly inputSchema: {
|
|
1000
|
+
readonly properties: {
|
|
1001
|
+
readonly jobId: {
|
|
1002
|
+
readonly type: "string";
|
|
1003
|
+
readonly description: "Generated video job ID.";
|
|
1004
|
+
};
|
|
1005
|
+
readonly job_id: {
|
|
1006
|
+
readonly type: "string";
|
|
1007
|
+
readonly description: "Generated video job ID alias.";
|
|
1008
|
+
};
|
|
1009
|
+
readonly task_id: {
|
|
1010
|
+
readonly type: "string";
|
|
1011
|
+
readonly description: "Generated video task ID alias.";
|
|
1012
|
+
};
|
|
1013
|
+
readonly taskId: {
|
|
1014
|
+
readonly type: "string";
|
|
1015
|
+
readonly description: "Generated video task ID camelCase alias.";
|
|
1016
|
+
};
|
|
1017
|
+
readonly id: {
|
|
1018
|
+
readonly type: "string";
|
|
1019
|
+
readonly description: "Generated video ID alias.";
|
|
1020
|
+
};
|
|
1021
|
+
readonly intervalMs: {
|
|
1022
|
+
readonly type: "number";
|
|
1023
|
+
readonly description: "Polling interval in milliseconds. Defaults to 2000.";
|
|
1024
|
+
};
|
|
1025
|
+
readonly timeoutMs: {
|
|
1026
|
+
readonly type: "number";
|
|
1027
|
+
readonly description: "Maximum wait time in milliseconds. Defaults to 300000.";
|
|
1028
|
+
};
|
|
1029
|
+
readonly initialDelayMs: {
|
|
1030
|
+
readonly type: "number";
|
|
1031
|
+
readonly description: "Optional delay before the first status request, useful with Retry-After.";
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
readonly anyOf: readonly [{
|
|
1035
|
+
readonly required: readonly ["jobId"];
|
|
1036
|
+
}, {
|
|
1037
|
+
readonly required: readonly ["job_id"];
|
|
1038
|
+
}, {
|
|
1039
|
+
readonly required: readonly ["task_id"];
|
|
1040
|
+
}, {
|
|
1041
|
+
readonly required: readonly ["taskId"];
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly required: readonly ["id"];
|
|
1044
|
+
}];
|
|
1045
|
+
readonly type: "object";
|
|
1046
|
+
readonly required: readonly [];
|
|
1047
|
+
};
|
|
1048
|
+
}, {
|
|
1049
|
+
readonly name: "puppetry_get_video_readiness";
|
|
1050
|
+
readonly resource: "videos.getReadiness";
|
|
1051
|
+
readonly description: "Check whether credit-backed video creation can run now, including credit and active-slot blockers.";
|
|
1052
|
+
readonly inputSchema: {
|
|
1053
|
+
readonly type: "object";
|
|
1054
|
+
readonly properties: {};
|
|
1055
|
+
};
|
|
1056
|
+
}, {
|
|
1057
|
+
readonly name: "puppetry_get_quota";
|
|
1058
|
+
readonly resource: "quota.get";
|
|
1059
|
+
readonly description: "Check current plan, credit usage, and remaining credits.";
|
|
1060
|
+
readonly inputSchema: {
|
|
1061
|
+
readonly type: "object";
|
|
1062
|
+
readonly properties: {};
|
|
1063
|
+
};
|
|
1064
|
+
}];
|
|
1065
|
+
type PuppetryAgentTool = (typeof PUPPETRY_AGENT_TOOLS)[number];
|
|
1066
|
+
type PuppetryAgentToolName = PuppetryAgentTool["name"];
|
|
1067
|
+
interface PuppetryAgentToolInputMap {
|
|
1068
|
+
puppetry_create_video_from_text: TextVideoCreateInput;
|
|
1069
|
+
puppetry_create_video_from_audio: AudioVideoCreateInput;
|
|
1070
|
+
puppetry_create_video_from_text_and_wait: TextVideoCreateAndWaitInput;
|
|
1071
|
+
puppetry_create_video_from_audio_and_wait: AudioVideoCreateAndWaitInput;
|
|
1072
|
+
puppetry_create_audio_upload_url: CreateAudioUploadUrlParams;
|
|
1073
|
+
puppetry_lipsync: CreateAudioVideoParams;
|
|
1074
|
+
puppetry_list_voices: Record<string, never>;
|
|
1075
|
+
puppetry_get_job_status: JobStatusInput;
|
|
1076
|
+
puppetry_wait_for_video: JobWaitInput;
|
|
1077
|
+
puppetry_get_video_readiness: Record<string, never>;
|
|
1078
|
+
puppetry_get_quota: Record<string, never>;
|
|
1079
|
+
}
|
|
1080
|
+
interface PuppetryAgentToolResultMap {
|
|
1081
|
+
puppetry_create_video_from_text: PuppetryVideoCreateResult;
|
|
1082
|
+
puppetry_create_video_from_audio: PuppetryVideoCreateResult;
|
|
1083
|
+
puppetry_create_video_from_text_and_wait: PuppetryVideoCreateAndWaitResult;
|
|
1084
|
+
puppetry_create_video_from_audio_and_wait: PuppetryVideoCreateAndWaitResult;
|
|
1085
|
+
puppetry_create_audio_upload_url: AudioUploadUrlResponse;
|
|
1086
|
+
puppetry_lipsync: PuppetryVideoJob;
|
|
1087
|
+
puppetry_list_voices: PuppetryVoiceList;
|
|
1088
|
+
puppetry_get_job_status: PuppetryVideoJob;
|
|
1089
|
+
puppetry_wait_for_video: PuppetryVideoJob;
|
|
1090
|
+
puppetry_get_video_readiness: NonNullable<Usage["video_generation"]>;
|
|
1091
|
+
puppetry_get_quota: Usage;
|
|
1092
|
+
}
|
|
1093
|
+
type PuppetryAgentToolSuccess<Name extends PuppetryAgentToolName> = {
|
|
1094
|
+
ok: true;
|
|
1095
|
+
data: PuppetryAgentToolResultMap[Name];
|
|
1096
|
+
};
|
|
1097
|
+
type PuppetryAgentToolFailure = {
|
|
1098
|
+
ok: false;
|
|
1099
|
+
error: SerializedPuppetryError;
|
|
1100
|
+
};
|
|
1101
|
+
type PuppetryAgentToolCallResult<Name extends PuppetryAgentToolName> = PuppetryAgentToolSuccess<Name> | PuppetryAgentToolFailure;
|
|
1102
|
+
declare function callPuppetryAgentTool<Name extends PuppetryAgentToolName>(client: Puppetry, name: Name, input: PuppetryAgentToolInputMap[Name]): Promise<PuppetryAgentToolResultMap[Name]>;
|
|
1103
|
+
declare function safeCallPuppetryAgentTool<Name extends PuppetryAgentToolName>(client: Puppetry, name: Name, input: PuppetryAgentToolInputMap[Name]): Promise<PuppetryAgentToolCallResult<Name>>;
|
|
1104
|
+
|
|
1105
|
+
export { AudioUploadUrlResponse, CreateAudioUploadUrlParams, CreateAudioVideoParams, CreateTextVideoParams, PUPPETRY_AGENT_TOOLS, Puppetry, type PuppetryAgentTool, type PuppetryAgentToolCallResult, type PuppetryAgentToolFailure, type PuppetryAgentToolInputMap, type PuppetryAgentToolName, type PuppetryAgentToolResultMap, type PuppetryAgentToolSuccess, PuppetryAuthError, PuppetryError, PuppetryNetworkError, PuppetryRateLimitError, PuppetryTimeoutError, type PuppetryVideoCreateAndWaitResult, type PuppetryVideoCreateResult, PuppetryVideoJob, PuppetryVoiceList, type SerializedPuppetryError, Usage, VideoEvent, WaitForCompletionOptions, callPuppetryAgentTool, puppetryErrorData, safeCallPuppetryAgentTool };
|