@broberg/ai-sdk 0.65.0 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +515 -1453
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -125,8 +125,13 @@ interface DesignResult {
|
|
|
125
125
|
}
|
|
126
126
|
interface ExtractInput<T> {
|
|
127
127
|
text: string;
|
|
128
|
-
/**
|
|
129
|
-
|
|
128
|
+
/** Schema the extracted data must satisfy — anything with `parse(data): T`. Typed
|
|
129
|
+
* structurally (F082) so a zod 3 OR zod 4 schema from the caller both fit; we only
|
|
130
|
+
* ever call `.parse`, and pinning our own zod major onto the caller's type was a
|
|
131
|
+
* compile break waiting for every consumer still on zod 3. */
|
|
132
|
+
schema: {
|
|
133
|
+
parse(data: unknown): T;
|
|
134
|
+
};
|
|
130
135
|
instructions?: string;
|
|
131
136
|
tier?: Tier;
|
|
132
137
|
purpose?: string;
|
|
@@ -251,1690 +256,747 @@ interface Contracts {
|
|
|
251
256
|
declare const tierSpecSchema: z.ZodObject<{
|
|
252
257
|
provider: z.ZodString;
|
|
253
258
|
model: z.ZodString;
|
|
254
|
-
transport: z.ZodEnum<
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}, {
|
|
260
|
-
provider: string;
|
|
261
|
-
model: string;
|
|
262
|
-
transport: "http" | "subprocess";
|
|
263
|
-
}>;
|
|
259
|
+
transport: z.ZodEnum<{
|
|
260
|
+
http: "http";
|
|
261
|
+
subprocess: "subprocess";
|
|
262
|
+
}>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
264
|
declare const toolSchema: z.ZodObject<{
|
|
265
265
|
name: z.ZodString;
|
|
266
266
|
description: z.ZodString;
|
|
267
267
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
268
|
-
},
|
|
269
|
-
name: string;
|
|
270
|
-
parameters: Record<string, unknown>;
|
|
271
|
-
description: string;
|
|
272
|
-
}, {
|
|
273
|
-
name: string;
|
|
274
|
-
parameters: Record<string, unknown>;
|
|
275
|
-
description: string;
|
|
276
|
-
}>;
|
|
268
|
+
}, z.core.$strip>;
|
|
277
269
|
declare const messageSchema: z.ZodObject<{
|
|
278
|
-
role: z.ZodEnum<
|
|
279
|
-
|
|
270
|
+
role: z.ZodEnum<{
|
|
271
|
+
system: "system";
|
|
272
|
+
user: "user";
|
|
273
|
+
assistant: "assistant";
|
|
274
|
+
tool: "tool";
|
|
275
|
+
}>;
|
|
276
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
280
277
|
type: z.ZodLiteral<"text">;
|
|
281
278
|
text: z.ZodString;
|
|
282
|
-
},
|
|
283
|
-
text: string;
|
|
284
|
-
type: "text";
|
|
285
|
-
}, {
|
|
286
|
-
text: string;
|
|
287
|
-
type: "text";
|
|
288
|
-
}>, z.ZodObject<{
|
|
279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
280
|
type: z.ZodLiteral<"image">;
|
|
290
|
-
image: z.ZodUnion<[z.ZodString, z.
|
|
281
|
+
image: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>;
|
|
291
282
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
292
|
-
},
|
|
293
|
-
|
|
294
|
-
type: "image";
|
|
295
|
-
mimeType?: string | undefined;
|
|
296
|
-
}, {
|
|
297
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
298
|
-
type: "image";
|
|
299
|
-
mimeType?: string | undefined;
|
|
300
|
-
}>]>, "many">]>;
|
|
301
|
-
toolCalls: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
283
|
+
}, z.core.$strip>]>>]>;
|
|
284
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
302
285
|
id: z.ZodString;
|
|
303
286
|
name: z.ZodString;
|
|
304
287
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
305
288
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
306
|
-
},
|
|
307
|
-
id: string;
|
|
308
|
-
name: string;
|
|
309
|
-
args?: Record<string, unknown> | undefined;
|
|
310
|
-
arguments?: Record<string, unknown> | undefined;
|
|
311
|
-
}, {
|
|
312
|
-
id: string;
|
|
313
|
-
name: string;
|
|
314
|
-
args?: Record<string, unknown> | undefined;
|
|
315
|
-
arguments?: Record<string, unknown> | undefined;
|
|
316
|
-
}>, {
|
|
317
|
-
id: string;
|
|
318
|
-
name: string;
|
|
319
|
-
args?: Record<string, unknown> | undefined;
|
|
320
|
-
arguments?: Record<string, unknown> | undefined;
|
|
321
|
-
}, {
|
|
322
|
-
id: string;
|
|
323
|
-
name: string;
|
|
324
|
-
args?: Record<string, unknown> | undefined;
|
|
325
|
-
arguments?: Record<string, unknown> | undefined;
|
|
326
|
-
}>, "many">>;
|
|
289
|
+
}, z.core.$strip>>>;
|
|
327
290
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
328
|
-
/** F049 — see Message.prefix. Position/role validity is enforced in the adapter,
|
|
329
|
-
* not here: the rule is about a message's place in the ARRAY, which a per-message
|
|
330
|
-
* schema cannot see. */
|
|
331
291
|
prefix: z.ZodOptional<z.ZodBoolean>;
|
|
332
|
-
},
|
|
333
|
-
content: string | ({
|
|
334
|
-
text: string;
|
|
335
|
-
type: "text";
|
|
336
|
-
} | {
|
|
337
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
338
|
-
type: "image";
|
|
339
|
-
mimeType?: string | undefined;
|
|
340
|
-
})[];
|
|
341
|
-
role: "system" | "user" | "assistant" | "tool";
|
|
342
|
-
toolCalls?: {
|
|
343
|
-
id: string;
|
|
344
|
-
name: string;
|
|
345
|
-
args?: Record<string, unknown> | undefined;
|
|
346
|
-
arguments?: Record<string, unknown> | undefined;
|
|
347
|
-
}[] | undefined;
|
|
348
|
-
prefix?: boolean | undefined;
|
|
349
|
-
toolCallId?: string | undefined;
|
|
350
|
-
}, {
|
|
351
|
-
content: string | ({
|
|
352
|
-
text: string;
|
|
353
|
-
type: "text";
|
|
354
|
-
} | {
|
|
355
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
356
|
-
type: "image";
|
|
357
|
-
mimeType?: string | undefined;
|
|
358
|
-
})[];
|
|
359
|
-
role: "system" | "user" | "assistant" | "tool";
|
|
360
|
-
toolCalls?: {
|
|
361
|
-
id: string;
|
|
362
|
-
name: string;
|
|
363
|
-
args?: Record<string, unknown> | undefined;
|
|
364
|
-
arguments?: Record<string, unknown> | undefined;
|
|
365
|
-
}[] | undefined;
|
|
366
|
-
prefix?: boolean | undefined;
|
|
367
|
-
toolCallId?: string | undefined;
|
|
368
|
-
}>;
|
|
292
|
+
}, z.core.$strip>;
|
|
369
293
|
declare const chatInputSchema: z.ZodObject<{
|
|
370
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
294
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
vision: "vision";
|
|
296
|
+
video: "video";
|
|
297
|
+
embedding: "embedding";
|
|
298
|
+
fast: "fast";
|
|
299
|
+
smart: "smart";
|
|
300
|
+
powerful: "powerful";
|
|
301
|
+
cheap: "cheap";
|
|
302
|
+
}>>;
|
|
371
303
|
override: z.ZodOptional<z.ZodObject<{
|
|
372
304
|
provider: z.ZodOptional<z.ZodString>;
|
|
373
305
|
model: z.ZodOptional<z.ZodString>;
|
|
374
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
306
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
307
|
+
http: "http";
|
|
308
|
+
subprocess: "subprocess";
|
|
309
|
+
}>>;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
312
|
+
vision: "vision";
|
|
313
|
+
video: "video";
|
|
314
|
+
embedding: "embedding";
|
|
315
|
+
fast: "fast";
|
|
316
|
+
smart: "smart";
|
|
317
|
+
powerful: "powerful";
|
|
318
|
+
cheap: "cheap";
|
|
319
|
+
}>, z.ZodObject<{
|
|
385
320
|
provider: z.ZodString;
|
|
386
321
|
model: z.ZodString;
|
|
387
|
-
transport: z.ZodEnum<
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}, {
|
|
393
|
-
provider: string;
|
|
394
|
-
model: string;
|
|
395
|
-
transport: "http" | "subprocess";
|
|
396
|
-
}>]>, "many">>;
|
|
322
|
+
transport: z.ZodEnum<{
|
|
323
|
+
http: "http";
|
|
324
|
+
subprocess: "subprocess";
|
|
325
|
+
}>;
|
|
326
|
+
}, z.core.$strip>]>>>;
|
|
397
327
|
purpose: z.ZodOptional<z.ZodString>;
|
|
398
328
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
399
329
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
400
|
-
/** F039 — reuse a cached prompt prefix on Mistral at 10% of the input rate.
|
|
401
|
-
* A stable id for "the same conversation" (conversation id, session id).
|
|
402
|
-
* Derive it from (tenant, conversation): the key is a shared-prefix identity,
|
|
403
|
-
* so two tenants with identical transcripts must get different keys. */
|
|
404
330
|
promptCacheKey: z.ZodOptional<z.ZodString>;
|
|
405
|
-
/** F039.2 — prompt caching is ON by default on providers that support it.
|
|
406
|
-
* false opts out; an explicit promptCacheKey always wins. */
|
|
407
331
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
408
332
|
prompt: z.ZodOptional<z.ZodString>;
|
|
409
333
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
410
|
-
role: z.ZodEnum<
|
|
411
|
-
|
|
334
|
+
role: z.ZodEnum<{
|
|
335
|
+
system: "system";
|
|
336
|
+
user: "user";
|
|
337
|
+
assistant: "assistant";
|
|
338
|
+
tool: "tool";
|
|
339
|
+
}>;
|
|
340
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
412
341
|
type: z.ZodLiteral<"text">;
|
|
413
342
|
text: z.ZodString;
|
|
414
|
-
},
|
|
415
|
-
text: string;
|
|
416
|
-
type: "text";
|
|
417
|
-
}, {
|
|
418
|
-
text: string;
|
|
419
|
-
type: "text";
|
|
420
|
-
}>, z.ZodObject<{
|
|
343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
421
344
|
type: z.ZodLiteral<"image">;
|
|
422
|
-
image: z.ZodUnion<[z.ZodString, z.
|
|
345
|
+
image: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>;
|
|
423
346
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
424
|
-
},
|
|
425
|
-
|
|
426
|
-
type: "image";
|
|
427
|
-
mimeType?: string | undefined;
|
|
428
|
-
}, {
|
|
429
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
430
|
-
type: "image";
|
|
431
|
-
mimeType?: string | undefined;
|
|
432
|
-
}>]>, "many">]>;
|
|
433
|
-
toolCalls: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
347
|
+
}, z.core.$strip>]>>]>;
|
|
348
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
434
349
|
id: z.ZodString;
|
|
435
350
|
name: z.ZodString;
|
|
436
351
|
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
437
352
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
438
|
-
},
|
|
439
|
-
id: string;
|
|
440
|
-
name: string;
|
|
441
|
-
args?: Record<string, unknown> | undefined;
|
|
442
|
-
arguments?: Record<string, unknown> | undefined;
|
|
443
|
-
}, {
|
|
444
|
-
id: string;
|
|
445
|
-
name: string;
|
|
446
|
-
args?: Record<string, unknown> | undefined;
|
|
447
|
-
arguments?: Record<string, unknown> | undefined;
|
|
448
|
-
}>, {
|
|
449
|
-
id: string;
|
|
450
|
-
name: string;
|
|
451
|
-
args?: Record<string, unknown> | undefined;
|
|
452
|
-
arguments?: Record<string, unknown> | undefined;
|
|
453
|
-
}, {
|
|
454
|
-
id: string;
|
|
455
|
-
name: string;
|
|
456
|
-
args?: Record<string, unknown> | undefined;
|
|
457
|
-
arguments?: Record<string, unknown> | undefined;
|
|
458
|
-
}>, "many">>;
|
|
353
|
+
}, z.core.$strip>>>;
|
|
459
354
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
460
|
-
/** F049 — see Message.prefix. Position/role validity is enforced in the adapter,
|
|
461
|
-
* not here: the rule is about a message's place in the ARRAY, which a per-message
|
|
462
|
-
* schema cannot see. */
|
|
463
355
|
prefix: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
-
},
|
|
465
|
-
content: string | ({
|
|
466
|
-
text: string;
|
|
467
|
-
type: "text";
|
|
468
|
-
} | {
|
|
469
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
470
|
-
type: "image";
|
|
471
|
-
mimeType?: string | undefined;
|
|
472
|
-
})[];
|
|
473
|
-
role: "system" | "user" | "assistant" | "tool";
|
|
474
|
-
toolCalls?: {
|
|
475
|
-
id: string;
|
|
476
|
-
name: string;
|
|
477
|
-
args?: Record<string, unknown> | undefined;
|
|
478
|
-
arguments?: Record<string, unknown> | undefined;
|
|
479
|
-
}[] | undefined;
|
|
480
|
-
prefix?: boolean | undefined;
|
|
481
|
-
toolCallId?: string | undefined;
|
|
482
|
-
}, {
|
|
483
|
-
content: string | ({
|
|
484
|
-
text: string;
|
|
485
|
-
type: "text";
|
|
486
|
-
} | {
|
|
487
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
488
|
-
type: "image";
|
|
489
|
-
mimeType?: string | undefined;
|
|
490
|
-
})[];
|
|
491
|
-
role: "system" | "user" | "assistant" | "tool";
|
|
492
|
-
toolCalls?: {
|
|
493
|
-
id: string;
|
|
494
|
-
name: string;
|
|
495
|
-
args?: Record<string, unknown> | undefined;
|
|
496
|
-
arguments?: Record<string, unknown> | undefined;
|
|
497
|
-
}[] | undefined;
|
|
498
|
-
prefix?: boolean | undefined;
|
|
499
|
-
toolCallId?: string | undefined;
|
|
500
|
-
}>, "many">>;
|
|
356
|
+
}, z.core.$strip>>>;
|
|
501
357
|
system: z.ZodOptional<z.ZodString>;
|
|
502
358
|
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
503
359
|
name: z.ZodString;
|
|
504
360
|
description: z.ZodString;
|
|
505
361
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
506
|
-
},
|
|
507
|
-
name: string;
|
|
508
|
-
parameters: Record<string, unknown>;
|
|
509
|
-
description: string;
|
|
510
|
-
}, {
|
|
511
|
-
name: string;
|
|
512
|
-
parameters: Record<string, unknown>;
|
|
513
|
-
description: string;
|
|
514
|
-
}>, "many">>;
|
|
362
|
+
}, z.core.$strip>>>;
|
|
515
363
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
516
364
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
responseFormat: z.ZodOptional<z.ZodEnum<
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
527
|
-
prompt?: string | undefined;
|
|
528
|
-
messages?: {
|
|
529
|
-
content: string | ({
|
|
530
|
-
text: string;
|
|
531
|
-
type: "text";
|
|
532
|
-
} | {
|
|
533
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
534
|
-
type: "image";
|
|
535
|
-
mimeType?: string | undefined;
|
|
536
|
-
})[];
|
|
537
|
-
role: "system" | "user" | "assistant" | "tool";
|
|
538
|
-
toolCalls?: {
|
|
539
|
-
id: string;
|
|
540
|
-
name: string;
|
|
541
|
-
args?: Record<string, unknown> | undefined;
|
|
542
|
-
arguments?: Record<string, unknown> | undefined;
|
|
543
|
-
}[] | undefined;
|
|
544
|
-
prefix?: boolean | undefined;
|
|
545
|
-
toolCallId?: string | undefined;
|
|
546
|
-
}[] | undefined;
|
|
547
|
-
tools?: {
|
|
548
|
-
name: string;
|
|
549
|
-
parameters: Record<string, unknown>;
|
|
550
|
-
description: string;
|
|
551
|
-
}[] | undefined;
|
|
552
|
-
temperature?: number | undefined;
|
|
553
|
-
promptCacheKey?: string | undefined;
|
|
554
|
-
promptCache?: boolean | undefined;
|
|
555
|
-
maxTokens?: number | undefined;
|
|
556
|
-
reasoningEffort?: "none" | "high" | undefined;
|
|
557
|
-
responseFormat?: "text" | "json" | undefined;
|
|
558
|
-
override?: {
|
|
559
|
-
provider?: string | undefined;
|
|
560
|
-
model?: string | undefined;
|
|
561
|
-
transport?: "http" | "subprocess" | undefined;
|
|
562
|
-
} | undefined;
|
|
563
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
564
|
-
provider: string;
|
|
565
|
-
model: string;
|
|
566
|
-
transport: "http" | "subprocess";
|
|
567
|
-
})[] | undefined;
|
|
568
|
-
allowFloating?: boolean | undefined;
|
|
569
|
-
}, {
|
|
570
|
-
system?: string | undefined;
|
|
571
|
-
purpose?: string | undefined;
|
|
572
|
-
labels?: Record<string, string> | undefined;
|
|
573
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
574
|
-
prompt?: string | undefined;
|
|
575
|
-
messages?: {
|
|
576
|
-
content: string | ({
|
|
577
|
-
text: string;
|
|
578
|
-
type: "text";
|
|
579
|
-
} | {
|
|
580
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
581
|
-
type: "image";
|
|
582
|
-
mimeType?: string | undefined;
|
|
583
|
-
})[];
|
|
584
|
-
role: "system" | "user" | "assistant" | "tool";
|
|
585
|
-
toolCalls?: {
|
|
586
|
-
id: string;
|
|
587
|
-
name: string;
|
|
588
|
-
args?: Record<string, unknown> | undefined;
|
|
589
|
-
arguments?: Record<string, unknown> | undefined;
|
|
590
|
-
}[] | undefined;
|
|
591
|
-
prefix?: boolean | undefined;
|
|
592
|
-
toolCallId?: string | undefined;
|
|
593
|
-
}[] | undefined;
|
|
594
|
-
tools?: {
|
|
595
|
-
name: string;
|
|
596
|
-
parameters: Record<string, unknown>;
|
|
597
|
-
description: string;
|
|
598
|
-
}[] | undefined;
|
|
599
|
-
temperature?: number | undefined;
|
|
600
|
-
promptCacheKey?: string | undefined;
|
|
601
|
-
promptCache?: boolean | undefined;
|
|
602
|
-
maxTokens?: number | undefined;
|
|
603
|
-
reasoningEffort?: "none" | "high" | undefined;
|
|
604
|
-
responseFormat?: "text" | "json" | undefined;
|
|
605
|
-
override?: {
|
|
606
|
-
provider?: string | undefined;
|
|
607
|
-
model?: string | undefined;
|
|
608
|
-
transport?: "http" | "subprocess" | undefined;
|
|
609
|
-
} | undefined;
|
|
610
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
611
|
-
provider: string;
|
|
612
|
-
model: string;
|
|
613
|
-
transport: "http" | "subprocess";
|
|
614
|
-
})[] | undefined;
|
|
615
|
-
allowFloating?: boolean | undefined;
|
|
616
|
-
}>;
|
|
365
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
366
|
+
none: "none";
|
|
367
|
+
high: "high";
|
|
368
|
+
}>>;
|
|
369
|
+
responseFormat: z.ZodOptional<z.ZodEnum<{
|
|
370
|
+
text: "text";
|
|
371
|
+
json: "json";
|
|
372
|
+
}>>;
|
|
373
|
+
}, z.core.$strip>;
|
|
617
374
|
declare const visionInputSchema: z.ZodObject<{
|
|
618
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
375
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
376
|
+
vision: "vision";
|
|
377
|
+
video: "video";
|
|
378
|
+
embedding: "embedding";
|
|
379
|
+
fast: "fast";
|
|
380
|
+
smart: "smart";
|
|
381
|
+
powerful: "powerful";
|
|
382
|
+
cheap: "cheap";
|
|
383
|
+
}>>;
|
|
619
384
|
override: z.ZodOptional<z.ZodObject<{
|
|
620
385
|
provider: z.ZodOptional<z.ZodString>;
|
|
621
386
|
model: z.ZodOptional<z.ZodString>;
|
|
622
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
387
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
388
|
+
http: "http";
|
|
389
|
+
subprocess: "subprocess";
|
|
390
|
+
}>>;
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
393
|
+
vision: "vision";
|
|
394
|
+
video: "video";
|
|
395
|
+
embedding: "embedding";
|
|
396
|
+
fast: "fast";
|
|
397
|
+
smart: "smart";
|
|
398
|
+
powerful: "powerful";
|
|
399
|
+
cheap: "cheap";
|
|
400
|
+
}>, z.ZodObject<{
|
|
633
401
|
provider: z.ZodString;
|
|
634
402
|
model: z.ZodString;
|
|
635
|
-
transport: z.ZodEnum<
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}, {
|
|
641
|
-
provider: string;
|
|
642
|
-
model: string;
|
|
643
|
-
transport: "http" | "subprocess";
|
|
644
|
-
}>]>, "many">>;
|
|
403
|
+
transport: z.ZodEnum<{
|
|
404
|
+
http: "http";
|
|
405
|
+
subprocess: "subprocess";
|
|
406
|
+
}>;
|
|
407
|
+
}, z.core.$strip>]>>>;
|
|
645
408
|
purpose: z.ZodOptional<z.ZodString>;
|
|
646
409
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
647
410
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
648
|
-
image: z.ZodUnion<[z.ZodString, z.
|
|
411
|
+
image: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>;
|
|
649
412
|
prompt: z.ZodString;
|
|
650
413
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
651
|
-
/** System instruction — drives instruction-following far better than stuffing
|
|
652
|
-
* rules into `prompt` for instruction-heavy vision tasks (e.g. a JSON critic). */
|
|
653
414
|
system: z.ZodOptional<z.ZodString>;
|
|
654
|
-
},
|
|
655
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
656
|
-
prompt: string;
|
|
657
|
-
system?: string | undefined;
|
|
658
|
-
purpose?: string | undefined;
|
|
659
|
-
labels?: Record<string, string> | undefined;
|
|
660
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
661
|
-
mimeType?: string | undefined;
|
|
662
|
-
override?: {
|
|
663
|
-
provider?: string | undefined;
|
|
664
|
-
model?: string | undefined;
|
|
665
|
-
transport?: "http" | "subprocess" | undefined;
|
|
666
|
-
} | undefined;
|
|
667
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
668
|
-
provider: string;
|
|
669
|
-
model: string;
|
|
670
|
-
transport: "http" | "subprocess";
|
|
671
|
-
})[] | undefined;
|
|
672
|
-
allowFloating?: boolean | undefined;
|
|
673
|
-
}, {
|
|
674
|
-
image: string | Uint8Array<ArrayBuffer>;
|
|
675
|
-
prompt: string;
|
|
676
|
-
system?: string | undefined;
|
|
677
|
-
purpose?: string | undefined;
|
|
678
|
-
labels?: Record<string, string> | undefined;
|
|
679
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
680
|
-
mimeType?: string | undefined;
|
|
681
|
-
override?: {
|
|
682
|
-
provider?: string | undefined;
|
|
683
|
-
model?: string | undefined;
|
|
684
|
-
transport?: "http" | "subprocess" | undefined;
|
|
685
|
-
} | undefined;
|
|
686
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
687
|
-
provider: string;
|
|
688
|
-
model: string;
|
|
689
|
-
transport: "http" | "subprocess";
|
|
690
|
-
})[] | undefined;
|
|
691
|
-
allowFloating?: boolean | undefined;
|
|
692
|
-
}>;
|
|
415
|
+
}, z.core.$strip>;
|
|
693
416
|
declare const videoInputSchema: z.ZodObject<{
|
|
694
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
417
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
418
|
+
vision: "vision";
|
|
419
|
+
video: "video";
|
|
420
|
+
embedding: "embedding";
|
|
421
|
+
fast: "fast";
|
|
422
|
+
smart: "smart";
|
|
423
|
+
powerful: "powerful";
|
|
424
|
+
cheap: "cheap";
|
|
425
|
+
}>>;
|
|
695
426
|
override: z.ZodOptional<z.ZodObject<{
|
|
696
427
|
provider: z.ZodOptional<z.ZodString>;
|
|
697
428
|
model: z.ZodOptional<z.ZodString>;
|
|
698
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
429
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
430
|
+
http: "http";
|
|
431
|
+
subprocess: "subprocess";
|
|
432
|
+
}>>;
|
|
433
|
+
}, z.core.$strip>>;
|
|
434
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
435
|
+
vision: "vision";
|
|
436
|
+
video: "video";
|
|
437
|
+
embedding: "embedding";
|
|
438
|
+
fast: "fast";
|
|
439
|
+
smart: "smart";
|
|
440
|
+
powerful: "powerful";
|
|
441
|
+
cheap: "cheap";
|
|
442
|
+
}>, z.ZodObject<{
|
|
709
443
|
provider: z.ZodString;
|
|
710
444
|
model: z.ZodString;
|
|
711
|
-
transport: z.ZodEnum<
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}, {
|
|
717
|
-
provider: string;
|
|
718
|
-
model: string;
|
|
719
|
-
transport: "http" | "subprocess";
|
|
720
|
-
}>]>, "many">>;
|
|
445
|
+
transport: z.ZodEnum<{
|
|
446
|
+
http: "http";
|
|
447
|
+
subprocess: "subprocess";
|
|
448
|
+
}>;
|
|
449
|
+
}, z.core.$strip>]>>>;
|
|
721
450
|
purpose: z.ZodOptional<z.ZodString>;
|
|
722
451
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
723
452
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
724
|
-
video: z.ZodUnion<[z.ZodString, z.
|
|
453
|
+
video: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>;
|
|
725
454
|
prompt: z.ZodString;
|
|
726
455
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
727
|
-
/** System instruction — same instruction-following benefit as on vision. */
|
|
728
456
|
system: z.ZodOptional<z.ZodString>;
|
|
729
|
-
},
|
|
730
|
-
video: string | Uint8Array<ArrayBuffer>;
|
|
731
|
-
prompt: string;
|
|
732
|
-
system?: string | undefined;
|
|
733
|
-
purpose?: string | undefined;
|
|
734
|
-
labels?: Record<string, string> | undefined;
|
|
735
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
736
|
-
mimeType?: string | undefined;
|
|
737
|
-
override?: {
|
|
738
|
-
provider?: string | undefined;
|
|
739
|
-
model?: string | undefined;
|
|
740
|
-
transport?: "http" | "subprocess" | undefined;
|
|
741
|
-
} | undefined;
|
|
742
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
743
|
-
provider: string;
|
|
744
|
-
model: string;
|
|
745
|
-
transport: "http" | "subprocess";
|
|
746
|
-
})[] | undefined;
|
|
747
|
-
allowFloating?: boolean | undefined;
|
|
748
|
-
}, {
|
|
749
|
-
video: string | Uint8Array<ArrayBuffer>;
|
|
750
|
-
prompt: string;
|
|
751
|
-
system?: string | undefined;
|
|
752
|
-
purpose?: string | undefined;
|
|
753
|
-
labels?: Record<string, string> | undefined;
|
|
754
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
755
|
-
mimeType?: string | undefined;
|
|
756
|
-
override?: {
|
|
757
|
-
provider?: string | undefined;
|
|
758
|
-
model?: string | undefined;
|
|
759
|
-
transport?: "http" | "subprocess" | undefined;
|
|
760
|
-
} | undefined;
|
|
761
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
762
|
-
provider: string;
|
|
763
|
-
model: string;
|
|
764
|
-
transport: "http" | "subprocess";
|
|
765
|
-
})[] | undefined;
|
|
766
|
-
allowFloating?: boolean | undefined;
|
|
767
|
-
}>;
|
|
457
|
+
}, z.core.$strip>;
|
|
768
458
|
declare const translateInputSchema: z.ZodObject<{
|
|
769
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
459
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
460
|
+
vision: "vision";
|
|
461
|
+
video: "video";
|
|
462
|
+
embedding: "embedding";
|
|
463
|
+
fast: "fast";
|
|
464
|
+
smart: "smart";
|
|
465
|
+
powerful: "powerful";
|
|
466
|
+
cheap: "cheap";
|
|
467
|
+
}>>;
|
|
770
468
|
override: z.ZodOptional<z.ZodObject<{
|
|
771
469
|
provider: z.ZodOptional<z.ZodString>;
|
|
772
470
|
model: z.ZodOptional<z.ZodString>;
|
|
773
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
471
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
472
|
+
http: "http";
|
|
473
|
+
subprocess: "subprocess";
|
|
474
|
+
}>>;
|
|
475
|
+
}, z.core.$strip>>;
|
|
476
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
477
|
+
vision: "vision";
|
|
478
|
+
video: "video";
|
|
479
|
+
embedding: "embedding";
|
|
480
|
+
fast: "fast";
|
|
481
|
+
smart: "smart";
|
|
482
|
+
powerful: "powerful";
|
|
483
|
+
cheap: "cheap";
|
|
484
|
+
}>, z.ZodObject<{
|
|
784
485
|
provider: z.ZodString;
|
|
785
486
|
model: z.ZodString;
|
|
786
|
-
transport: z.ZodEnum<
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
}, {
|
|
792
|
-
provider: string;
|
|
793
|
-
model: string;
|
|
794
|
-
transport: "http" | "subprocess";
|
|
795
|
-
}>]>, "many">>;
|
|
487
|
+
transport: z.ZodEnum<{
|
|
488
|
+
http: "http";
|
|
489
|
+
subprocess: "subprocess";
|
|
490
|
+
}>;
|
|
491
|
+
}, z.core.$strip>]>>>;
|
|
796
492
|
purpose: z.ZodOptional<z.ZodString>;
|
|
797
493
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
798
494
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
799
495
|
text: z.ZodString;
|
|
800
496
|
to: z.ZodString;
|
|
801
497
|
from: z.ZodOptional<z.ZodString>;
|
|
802
|
-
},
|
|
803
|
-
text: string;
|
|
804
|
-
to: string;
|
|
805
|
-
purpose?: string | undefined;
|
|
806
|
-
labels?: Record<string, string> | undefined;
|
|
807
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
808
|
-
override?: {
|
|
809
|
-
provider?: string | undefined;
|
|
810
|
-
model?: string | undefined;
|
|
811
|
-
transport?: "http" | "subprocess" | undefined;
|
|
812
|
-
} | undefined;
|
|
813
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
814
|
-
provider: string;
|
|
815
|
-
model: string;
|
|
816
|
-
transport: "http" | "subprocess";
|
|
817
|
-
})[] | undefined;
|
|
818
|
-
allowFloating?: boolean | undefined;
|
|
819
|
-
from?: string | undefined;
|
|
820
|
-
}, {
|
|
821
|
-
text: string;
|
|
822
|
-
to: string;
|
|
823
|
-
purpose?: string | undefined;
|
|
824
|
-
labels?: Record<string, string> | undefined;
|
|
825
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
826
|
-
override?: {
|
|
827
|
-
provider?: string | undefined;
|
|
828
|
-
model?: string | undefined;
|
|
829
|
-
transport?: "http" | "subprocess" | undefined;
|
|
830
|
-
} | undefined;
|
|
831
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
832
|
-
provider: string;
|
|
833
|
-
model: string;
|
|
834
|
-
transport: "http" | "subprocess";
|
|
835
|
-
})[] | undefined;
|
|
836
|
-
allowFloating?: boolean | undefined;
|
|
837
|
-
from?: string | undefined;
|
|
838
|
-
}>;
|
|
498
|
+
}, z.core.$strip>;
|
|
839
499
|
declare const imageInputSchema: z.ZodObject<{
|
|
840
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
500
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
501
|
+
vision: "vision";
|
|
502
|
+
video: "video";
|
|
503
|
+
embedding: "embedding";
|
|
504
|
+
fast: "fast";
|
|
505
|
+
smart: "smart";
|
|
506
|
+
powerful: "powerful";
|
|
507
|
+
cheap: "cheap";
|
|
508
|
+
}>>;
|
|
841
509
|
override: z.ZodOptional<z.ZodObject<{
|
|
842
510
|
provider: z.ZodOptional<z.ZodString>;
|
|
843
511
|
model: z.ZodOptional<z.ZodString>;
|
|
844
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
512
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
513
|
+
http: "http";
|
|
514
|
+
subprocess: "subprocess";
|
|
515
|
+
}>>;
|
|
516
|
+
}, z.core.$strip>>;
|
|
517
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
518
|
+
vision: "vision";
|
|
519
|
+
video: "video";
|
|
520
|
+
embedding: "embedding";
|
|
521
|
+
fast: "fast";
|
|
522
|
+
smart: "smart";
|
|
523
|
+
powerful: "powerful";
|
|
524
|
+
cheap: "cheap";
|
|
525
|
+
}>, z.ZodObject<{
|
|
855
526
|
provider: z.ZodString;
|
|
856
527
|
model: z.ZodString;
|
|
857
|
-
transport: z.ZodEnum<
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
}, {
|
|
863
|
-
provider: string;
|
|
864
|
-
model: string;
|
|
865
|
-
transport: "http" | "subprocess";
|
|
866
|
-
}>]>, "many">>;
|
|
528
|
+
transport: z.ZodEnum<{
|
|
529
|
+
http: "http";
|
|
530
|
+
subprocess: "subprocess";
|
|
531
|
+
}>;
|
|
532
|
+
}, z.core.$strip>]>>>;
|
|
867
533
|
purpose: z.ZodOptional<z.ZodString>;
|
|
868
534
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
869
535
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
870
536
|
prompt: z.ZodString;
|
|
871
537
|
width: z.ZodOptional<z.ZodNumber>;
|
|
872
538
|
height: z.ZodOptional<z.ZodNumber>;
|
|
873
|
-
/** LoRAs to merge at inference (F021). */
|
|
874
539
|
loras: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
875
540
|
path: z.ZodString;
|
|
876
541
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
877
|
-
},
|
|
878
|
-
path: string;
|
|
879
|
-
scale?: number | undefined;
|
|
880
|
-
}, {
|
|
881
|
-
path: string;
|
|
882
|
-
scale?: number | undefined;
|
|
883
|
-
}>, "many">>;
|
|
884
|
-
/** Shorthand for a single LoRA — normalized to loras:[{path, scale:1}]. */
|
|
542
|
+
}, z.core.$strip>>>;
|
|
885
543
|
lora: z.ZodOptional<z.ZodString>;
|
|
886
|
-
/** F023 — a BFL finetune id (subject trained in the BFL dashboard). Routes to the
|
|
887
|
-
* EU-resident BFL finetuned-portrait endpoint. */
|
|
888
544
|
finetune: z.ZodOptional<z.ZodString>;
|
|
889
|
-
/** F023 — BFL finetune_strength (~0–2; higher = stronger likeness). */
|
|
890
545
|
finetuneStrength: z.ZodOptional<z.ZodNumber>;
|
|
891
|
-
|
|
892
|
-
* multi-reference generation (likeness, no training step). */
|
|
893
|
-
referenceImages: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>, "many">>;
|
|
894
|
-
/** F023.5 — fixed seed for reproducible output (BFL). */
|
|
546
|
+
referenceImages: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>>>;
|
|
895
547
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
548
|
+
outputFormat: z.ZodOptional<z.ZodEnum<{
|
|
549
|
+
jpeg: "jpeg";
|
|
550
|
+
png: "png";
|
|
551
|
+
webp: "webp";
|
|
552
|
+
}>>;
|
|
899
553
|
safetyTolerance: z.ZodOptional<z.ZodNumber>;
|
|
900
|
-
/** F021.4 — re-roll once if fal returns a black image (NSFW false-positive). */
|
|
901
554
|
retryOnBlack: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
-
},
|
|
903
|
-
prompt: string;
|
|
904
|
-
purpose?: string | undefined;
|
|
905
|
-
labels?: Record<string, string> | undefined;
|
|
906
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
907
|
-
seed?: number | undefined;
|
|
908
|
-
outputFormat?: "jpeg" | "png" | "webp" | undefined;
|
|
909
|
-
loras?: {
|
|
910
|
-
path: string;
|
|
911
|
-
scale?: number | undefined;
|
|
912
|
-
}[] | undefined;
|
|
913
|
-
lora?: string | undefined;
|
|
914
|
-
width?: number | undefined;
|
|
915
|
-
height?: number | undefined;
|
|
916
|
-
override?: {
|
|
917
|
-
provider?: string | undefined;
|
|
918
|
-
model?: string | undefined;
|
|
919
|
-
transport?: "http" | "subprocess" | undefined;
|
|
920
|
-
} | undefined;
|
|
921
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
922
|
-
provider: string;
|
|
923
|
-
model: string;
|
|
924
|
-
transport: "http" | "subprocess";
|
|
925
|
-
})[] | undefined;
|
|
926
|
-
allowFloating?: boolean | undefined;
|
|
927
|
-
finetune?: string | undefined;
|
|
928
|
-
finetuneStrength?: number | undefined;
|
|
929
|
-
referenceImages?: (string | Uint8Array<ArrayBuffer>)[] | undefined;
|
|
930
|
-
safetyTolerance?: number | undefined;
|
|
931
|
-
retryOnBlack?: boolean | undefined;
|
|
932
|
-
}, {
|
|
933
|
-
prompt: string;
|
|
934
|
-
purpose?: string | undefined;
|
|
935
|
-
labels?: Record<string, string> | undefined;
|
|
936
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
937
|
-
seed?: number | undefined;
|
|
938
|
-
outputFormat?: "jpeg" | "png" | "webp" | undefined;
|
|
939
|
-
loras?: {
|
|
940
|
-
path: string;
|
|
941
|
-
scale?: number | undefined;
|
|
942
|
-
}[] | undefined;
|
|
943
|
-
lora?: string | undefined;
|
|
944
|
-
width?: number | undefined;
|
|
945
|
-
height?: number | undefined;
|
|
946
|
-
override?: {
|
|
947
|
-
provider?: string | undefined;
|
|
948
|
-
model?: string | undefined;
|
|
949
|
-
transport?: "http" | "subprocess" | undefined;
|
|
950
|
-
} | undefined;
|
|
951
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
952
|
-
provider: string;
|
|
953
|
-
model: string;
|
|
954
|
-
transport: "http" | "subprocess";
|
|
955
|
-
})[] | undefined;
|
|
956
|
-
allowFloating?: boolean | undefined;
|
|
957
|
-
finetune?: string | undefined;
|
|
958
|
-
finetuneStrength?: number | undefined;
|
|
959
|
-
referenceImages?: (string | Uint8Array<ArrayBuffer>)[] | undefined;
|
|
960
|
-
safetyTolerance?: number | undefined;
|
|
961
|
-
retryOnBlack?: boolean | undefined;
|
|
962
|
-
}>;
|
|
555
|
+
}, z.core.$strip>;
|
|
963
556
|
declare const animateInputSchema: z.ZodObject<{
|
|
964
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
557
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
558
|
+
vision: "vision";
|
|
559
|
+
video: "video";
|
|
560
|
+
embedding: "embedding";
|
|
561
|
+
fast: "fast";
|
|
562
|
+
smart: "smart";
|
|
563
|
+
powerful: "powerful";
|
|
564
|
+
cheap: "cheap";
|
|
565
|
+
}>>;
|
|
965
566
|
override: z.ZodOptional<z.ZodObject<{
|
|
966
567
|
provider: z.ZodOptional<z.ZodString>;
|
|
967
568
|
model: z.ZodOptional<z.ZodString>;
|
|
968
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
569
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
570
|
+
http: "http";
|
|
571
|
+
subprocess: "subprocess";
|
|
572
|
+
}>>;
|
|
573
|
+
}, z.core.$strip>>;
|
|
574
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
575
|
+
vision: "vision";
|
|
576
|
+
video: "video";
|
|
577
|
+
embedding: "embedding";
|
|
578
|
+
fast: "fast";
|
|
579
|
+
smart: "smart";
|
|
580
|
+
powerful: "powerful";
|
|
581
|
+
cheap: "cheap";
|
|
582
|
+
}>, z.ZodObject<{
|
|
979
583
|
provider: z.ZodString;
|
|
980
584
|
model: z.ZodString;
|
|
981
|
-
transport: z.ZodEnum<
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
}, {
|
|
987
|
-
provider: string;
|
|
988
|
-
model: string;
|
|
989
|
-
transport: "http" | "subprocess";
|
|
990
|
-
}>]>, "many">>;
|
|
585
|
+
transport: z.ZodEnum<{
|
|
586
|
+
http: "http";
|
|
587
|
+
subprocess: "subprocess";
|
|
588
|
+
}>;
|
|
589
|
+
}, z.core.$strip>]>>>;
|
|
991
590
|
purpose: z.ZodOptional<z.ZodString>;
|
|
992
591
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
993
592
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
994
|
-
|
|
995
|
-
* business — fal uses fal storage, the Gemini/Veo default inlines them.
|
|
996
|
-
* Omit for text→video (F079.2): only bfl/flux-3-video supports it. */
|
|
997
|
-
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
998
|
-
/** Motion/scene prompt. */
|
|
593
|
+
image: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>>;
|
|
999
594
|
prompt: z.ZodOptional<z.ZodString>;
|
|
1000
|
-
/** Clip length in seconds (provider-dependent; Veo ≤ 8s). */
|
|
1001
595
|
durationSec: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
-
/** e.g. "720p" / "1080p" (provider-dependent). */
|
|
1003
596
|
resolution: z.ZodOptional<z.ZodString>;
|
|
1004
|
-
/** F079.6 — false = no audio track at all (bfl/flux-3-video only; other routes refuse). */
|
|
1005
597
|
audio: z.ZodOptional<z.ZodBoolean>;
|
|
1006
|
-
},
|
|
1007
|
-
image?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1008
|
-
purpose?: string | undefined;
|
|
1009
|
-
labels?: Record<string, string> | undefined;
|
|
1010
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1011
|
-
prompt?: string | undefined;
|
|
1012
|
-
audio?: boolean | undefined;
|
|
1013
|
-
resolution?: string | undefined;
|
|
1014
|
-
override?: {
|
|
1015
|
-
provider?: string | undefined;
|
|
1016
|
-
model?: string | undefined;
|
|
1017
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1018
|
-
} | undefined;
|
|
1019
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1020
|
-
provider: string;
|
|
1021
|
-
model: string;
|
|
1022
|
-
transport: "http" | "subprocess";
|
|
1023
|
-
})[] | undefined;
|
|
1024
|
-
allowFloating?: boolean | undefined;
|
|
1025
|
-
durationSec?: number | undefined;
|
|
1026
|
-
}, {
|
|
1027
|
-
image?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1028
|
-
purpose?: string | undefined;
|
|
1029
|
-
labels?: Record<string, string> | undefined;
|
|
1030
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1031
|
-
prompt?: string | undefined;
|
|
1032
|
-
audio?: boolean | undefined;
|
|
1033
|
-
resolution?: string | undefined;
|
|
1034
|
-
override?: {
|
|
1035
|
-
provider?: string | undefined;
|
|
1036
|
-
model?: string | undefined;
|
|
1037
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1038
|
-
} | undefined;
|
|
1039
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1040
|
-
provider: string;
|
|
1041
|
-
model: string;
|
|
1042
|
-
transport: "http" | "subprocess";
|
|
1043
|
-
})[] | undefined;
|
|
1044
|
-
allowFloating?: boolean | undefined;
|
|
1045
|
-
durationSec?: number | undefined;
|
|
1046
|
-
}>;
|
|
598
|
+
}, z.core.$strip>;
|
|
1047
599
|
declare const trainStyleInputSchema: z.ZodObject<{
|
|
1048
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
600
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
601
|
+
vision: "vision";
|
|
602
|
+
video: "video";
|
|
603
|
+
embedding: "embedding";
|
|
604
|
+
fast: "fast";
|
|
605
|
+
smart: "smart";
|
|
606
|
+
powerful: "powerful";
|
|
607
|
+
cheap: "cheap";
|
|
608
|
+
}>>;
|
|
1049
609
|
override: z.ZodOptional<z.ZodObject<{
|
|
1050
610
|
provider: z.ZodOptional<z.ZodString>;
|
|
1051
611
|
model: z.ZodOptional<z.ZodString>;
|
|
1052
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
612
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
613
|
+
http: "http";
|
|
614
|
+
subprocess: "subprocess";
|
|
615
|
+
}>>;
|
|
616
|
+
}, z.core.$strip>>;
|
|
617
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
618
|
+
vision: "vision";
|
|
619
|
+
video: "video";
|
|
620
|
+
embedding: "embedding";
|
|
621
|
+
fast: "fast";
|
|
622
|
+
smart: "smart";
|
|
623
|
+
powerful: "powerful";
|
|
624
|
+
cheap: "cheap";
|
|
625
|
+
}>, z.ZodObject<{
|
|
1063
626
|
provider: z.ZodString;
|
|
1064
627
|
model: z.ZodString;
|
|
1065
|
-
transport: z.ZodEnum<
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}, {
|
|
1071
|
-
provider: string;
|
|
1072
|
-
model: string;
|
|
1073
|
-
transport: "http" | "subprocess";
|
|
1074
|
-
}>]>, "many">>;
|
|
628
|
+
transport: z.ZodEnum<{
|
|
629
|
+
http: "http";
|
|
630
|
+
subprocess: "subprocess";
|
|
631
|
+
}>;
|
|
632
|
+
}, z.core.$strip>]>>>;
|
|
1075
633
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1076
634
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
1077
635
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1078
|
-
|
|
1079
|
-
images: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1080
|
-
/** Style LoRA (disables captioning/masks). Default true. */
|
|
636
|
+
images: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
1081
637
|
isStyle: z.ZodOptional<z.ZodBoolean>;
|
|
1082
638
|
triggerWord: z.ZodOptional<z.ZodString>;
|
|
1083
639
|
steps: z.ZodOptional<z.ZodNumber>;
|
|
1084
640
|
createMasks: z.ZodOptional<z.ZodBoolean>;
|
|
1085
|
-
},
|
|
1086
|
-
images: string | string[];
|
|
1087
|
-
purpose?: string | undefined;
|
|
1088
|
-
labels?: Record<string, string> | undefined;
|
|
1089
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1090
|
-
steps?: number | undefined;
|
|
1091
|
-
override?: {
|
|
1092
|
-
provider?: string | undefined;
|
|
1093
|
-
model?: string | undefined;
|
|
1094
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1095
|
-
} | undefined;
|
|
1096
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1097
|
-
provider: string;
|
|
1098
|
-
model: string;
|
|
1099
|
-
transport: "http" | "subprocess";
|
|
1100
|
-
})[] | undefined;
|
|
1101
|
-
allowFloating?: boolean | undefined;
|
|
1102
|
-
isStyle?: boolean | undefined;
|
|
1103
|
-
triggerWord?: string | undefined;
|
|
1104
|
-
createMasks?: boolean | undefined;
|
|
1105
|
-
}, {
|
|
1106
|
-
images: string | string[];
|
|
1107
|
-
purpose?: string | undefined;
|
|
1108
|
-
labels?: Record<string, string> | undefined;
|
|
1109
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1110
|
-
steps?: number | undefined;
|
|
1111
|
-
override?: {
|
|
1112
|
-
provider?: string | undefined;
|
|
1113
|
-
model?: string | undefined;
|
|
1114
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1115
|
-
} | undefined;
|
|
1116
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1117
|
-
provider: string;
|
|
1118
|
-
model: string;
|
|
1119
|
-
transport: "http" | "subprocess";
|
|
1120
|
-
})[] | undefined;
|
|
1121
|
-
allowFloating?: boolean | undefined;
|
|
1122
|
-
isStyle?: boolean | undefined;
|
|
1123
|
-
triggerWord?: string | undefined;
|
|
1124
|
-
createMasks?: boolean | undefined;
|
|
1125
|
-
}>;
|
|
641
|
+
}, z.core.$strip>;
|
|
1126
642
|
declare const embeddingInputSchema: z.ZodObject<{
|
|
1127
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
643
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
644
|
+
vision: "vision";
|
|
645
|
+
video: "video";
|
|
646
|
+
embedding: "embedding";
|
|
647
|
+
fast: "fast";
|
|
648
|
+
smart: "smart";
|
|
649
|
+
powerful: "powerful";
|
|
650
|
+
cheap: "cheap";
|
|
651
|
+
}>>;
|
|
1128
652
|
override: z.ZodOptional<z.ZodObject<{
|
|
1129
653
|
provider: z.ZodOptional<z.ZodString>;
|
|
1130
654
|
model: z.ZodOptional<z.ZodString>;
|
|
1131
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
655
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
656
|
+
http: "http";
|
|
657
|
+
subprocess: "subprocess";
|
|
658
|
+
}>>;
|
|
659
|
+
}, z.core.$strip>>;
|
|
660
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
661
|
+
vision: "vision";
|
|
662
|
+
video: "video";
|
|
663
|
+
embedding: "embedding";
|
|
664
|
+
fast: "fast";
|
|
665
|
+
smart: "smart";
|
|
666
|
+
powerful: "powerful";
|
|
667
|
+
cheap: "cheap";
|
|
668
|
+
}>, z.ZodObject<{
|
|
1142
669
|
provider: z.ZodString;
|
|
1143
670
|
model: z.ZodString;
|
|
1144
|
-
transport: z.ZodEnum<
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
}, {
|
|
1150
|
-
provider: string;
|
|
1151
|
-
model: string;
|
|
1152
|
-
transport: "http" | "subprocess";
|
|
1153
|
-
}>]>, "many">>;
|
|
671
|
+
transport: z.ZodEnum<{
|
|
672
|
+
http: "http";
|
|
673
|
+
subprocess: "subprocess";
|
|
674
|
+
}>;
|
|
675
|
+
}, z.core.$strip>]>>>;
|
|
1154
676
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1155
677
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
1156
678
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1157
|
-
text: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
1158
|
-
},
|
|
1159
|
-
text: string | string[];
|
|
1160
|
-
purpose?: string | undefined;
|
|
1161
|
-
labels?: Record<string, string> | undefined;
|
|
1162
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1163
|
-
override?: {
|
|
1164
|
-
provider?: string | undefined;
|
|
1165
|
-
model?: string | undefined;
|
|
1166
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1167
|
-
} | undefined;
|
|
1168
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1169
|
-
provider: string;
|
|
1170
|
-
model: string;
|
|
1171
|
-
transport: "http" | "subprocess";
|
|
1172
|
-
})[] | undefined;
|
|
1173
|
-
allowFloating?: boolean | undefined;
|
|
1174
|
-
}, {
|
|
1175
|
-
text: string | string[];
|
|
1176
|
-
purpose?: string | undefined;
|
|
1177
|
-
labels?: Record<string, string> | undefined;
|
|
1178
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1179
|
-
override?: {
|
|
1180
|
-
provider?: string | undefined;
|
|
1181
|
-
model?: string | undefined;
|
|
1182
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1183
|
-
} | undefined;
|
|
1184
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1185
|
-
provider: string;
|
|
1186
|
-
model: string;
|
|
1187
|
-
transport: "http" | "subprocess";
|
|
1188
|
-
})[] | undefined;
|
|
1189
|
-
allowFloating?: boolean | undefined;
|
|
1190
|
-
}>;
|
|
679
|
+
text: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
680
|
+
}, z.core.$strip>;
|
|
1191
681
|
declare const transcribeInputSchema: z.ZodObject<{
|
|
1192
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
682
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
683
|
+
vision: "vision";
|
|
684
|
+
video: "video";
|
|
685
|
+
embedding: "embedding";
|
|
686
|
+
fast: "fast";
|
|
687
|
+
smart: "smart";
|
|
688
|
+
powerful: "powerful";
|
|
689
|
+
cheap: "cheap";
|
|
690
|
+
}>>;
|
|
1193
691
|
override: z.ZodOptional<z.ZodObject<{
|
|
1194
692
|
provider: z.ZodOptional<z.ZodString>;
|
|
1195
693
|
model: z.ZodOptional<z.ZodString>;
|
|
1196
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
694
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
695
|
+
http: "http";
|
|
696
|
+
subprocess: "subprocess";
|
|
697
|
+
}>>;
|
|
698
|
+
}, z.core.$strip>>;
|
|
699
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
700
|
+
vision: "vision";
|
|
701
|
+
video: "video";
|
|
702
|
+
embedding: "embedding";
|
|
703
|
+
fast: "fast";
|
|
704
|
+
smart: "smart";
|
|
705
|
+
powerful: "powerful";
|
|
706
|
+
cheap: "cheap";
|
|
707
|
+
}>, z.ZodObject<{
|
|
1207
708
|
provider: z.ZodString;
|
|
1208
709
|
model: z.ZodString;
|
|
1209
|
-
transport: z.ZodEnum<
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
}, {
|
|
1215
|
-
provider: string;
|
|
1216
|
-
model: string;
|
|
1217
|
-
transport: "http" | "subprocess";
|
|
1218
|
-
}>]>, "many">>;
|
|
710
|
+
transport: z.ZodEnum<{
|
|
711
|
+
http: "http";
|
|
712
|
+
subprocess: "subprocess";
|
|
713
|
+
}>;
|
|
714
|
+
}, z.core.$strip>]>>>;
|
|
1219
715
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1220
716
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
1221
717
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1222
|
-
|
|
1223
|
-
audio: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
718
|
+
audio: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>;
|
|
1224
719
|
language: z.ZodOptional<z.ZodString>;
|
|
1225
|
-
/** Audio length in seconds — enables Whisper per-minute cost. */
|
|
1226
720
|
durationSec: z.ZodOptional<z.ZodNumber>;
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
purpose?: string | undefined;
|
|
1237
|
-
labels?: Record<string, string> | undefined;
|
|
1238
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1239
|
-
language?: string | undefined;
|
|
1240
|
-
override?: {
|
|
1241
|
-
provider?: string | undefined;
|
|
1242
|
-
model?: string | undefined;
|
|
1243
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1244
|
-
} | undefined;
|
|
1245
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1246
|
-
provider: string;
|
|
1247
|
-
model: string;
|
|
1248
|
-
transport: "http" | "subprocess";
|
|
1249
|
-
})[] | undefined;
|
|
1250
|
-
allowFloating?: boolean | undefined;
|
|
1251
|
-
durationSec?: number | undefined;
|
|
1252
|
-
phrases?: string[] | undefined;
|
|
1253
|
-
timestamps?: "word" | "segment" | ("word" | "segment")[] | undefined;
|
|
1254
|
-
}, {
|
|
1255
|
-
audio: string | Uint8Array<ArrayBuffer>;
|
|
1256
|
-
purpose?: string | undefined;
|
|
1257
|
-
labels?: Record<string, string> | undefined;
|
|
1258
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1259
|
-
language?: string | undefined;
|
|
1260
|
-
override?: {
|
|
1261
|
-
provider?: string | undefined;
|
|
1262
|
-
model?: string | undefined;
|
|
1263
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1264
|
-
} | undefined;
|
|
1265
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1266
|
-
provider: string;
|
|
1267
|
-
model: string;
|
|
1268
|
-
transport: "http" | "subprocess";
|
|
1269
|
-
})[] | undefined;
|
|
1270
|
-
allowFloating?: boolean | undefined;
|
|
1271
|
-
durationSec?: number | undefined;
|
|
1272
|
-
phrases?: string[] | undefined;
|
|
1273
|
-
timestamps?: "word" | "segment" | ("word" | "segment")[] | undefined;
|
|
1274
|
-
}>;
|
|
721
|
+
phrases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
722
|
+
timestamps: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
723
|
+
word: "word";
|
|
724
|
+
segment: "segment";
|
|
725
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
726
|
+
word: "word";
|
|
727
|
+
segment: "segment";
|
|
728
|
+
}>>]>>;
|
|
729
|
+
}, z.core.$strip>;
|
|
1275
730
|
declare const ocrInputSchema: z.ZodObject<{
|
|
1276
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
731
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
732
|
+
vision: "vision";
|
|
733
|
+
video: "video";
|
|
734
|
+
embedding: "embedding";
|
|
735
|
+
fast: "fast";
|
|
736
|
+
smart: "smart";
|
|
737
|
+
powerful: "powerful";
|
|
738
|
+
cheap: "cheap";
|
|
739
|
+
}>>;
|
|
1277
740
|
override: z.ZodOptional<z.ZodObject<{
|
|
1278
741
|
provider: z.ZodOptional<z.ZodString>;
|
|
1279
742
|
model: z.ZodOptional<z.ZodString>;
|
|
1280
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
743
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
744
|
+
http: "http";
|
|
745
|
+
subprocess: "subprocess";
|
|
746
|
+
}>>;
|
|
747
|
+
}, z.core.$strip>>;
|
|
748
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
749
|
+
vision: "vision";
|
|
750
|
+
video: "video";
|
|
751
|
+
embedding: "embedding";
|
|
752
|
+
fast: "fast";
|
|
753
|
+
smart: "smart";
|
|
754
|
+
powerful: "powerful";
|
|
755
|
+
cheap: "cheap";
|
|
756
|
+
}>, z.ZodObject<{
|
|
1291
757
|
provider: z.ZodString;
|
|
1292
758
|
model: z.ZodString;
|
|
1293
|
-
transport: z.ZodEnum<
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
}, {
|
|
1299
|
-
provider: string;
|
|
1300
|
-
model: string;
|
|
1301
|
-
transport: "http" | "subprocess";
|
|
1302
|
-
}>]>, "many">>;
|
|
759
|
+
transport: z.ZodEnum<{
|
|
760
|
+
http: "http";
|
|
761
|
+
subprocess: "subprocess";
|
|
762
|
+
}>;
|
|
763
|
+
}, z.core.$strip>]>>>;
|
|
1303
764
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1304
765
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
1305
766
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1306
|
-
|
|
1307
|
-
document: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>;
|
|
1308
|
-
/** image/* → routed as an image; anything else → a document (PDF etc.). */
|
|
767
|
+
document: z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<Uint8Array<ArrayBuffer>>]>;
|
|
1309
768
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1310
|
-
},
|
|
1311
|
-
document: string | Uint8Array<ArrayBuffer>;
|
|
1312
|
-
purpose?: string | undefined;
|
|
1313
|
-
labels?: Record<string, string> | undefined;
|
|
1314
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1315
|
-
mimeType?: string | undefined;
|
|
1316
|
-
override?: {
|
|
1317
|
-
provider?: string | undefined;
|
|
1318
|
-
model?: string | undefined;
|
|
1319
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1320
|
-
} | undefined;
|
|
1321
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1322
|
-
provider: string;
|
|
1323
|
-
model: string;
|
|
1324
|
-
transport: "http" | "subprocess";
|
|
1325
|
-
})[] | undefined;
|
|
1326
|
-
allowFloating?: boolean | undefined;
|
|
1327
|
-
}, {
|
|
1328
|
-
document: string | Uint8Array<ArrayBuffer>;
|
|
1329
|
-
purpose?: string | undefined;
|
|
1330
|
-
labels?: Record<string, string> | undefined;
|
|
1331
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1332
|
-
mimeType?: string | undefined;
|
|
1333
|
-
override?: {
|
|
1334
|
-
provider?: string | undefined;
|
|
1335
|
-
model?: string | undefined;
|
|
1336
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1337
|
-
} | undefined;
|
|
1338
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1339
|
-
provider: string;
|
|
1340
|
-
model: string;
|
|
1341
|
-
transport: "http" | "subprocess";
|
|
1342
|
-
})[] | undefined;
|
|
1343
|
-
allowFloating?: boolean | undefined;
|
|
1344
|
-
}>;
|
|
769
|
+
}, z.core.$strip>;
|
|
1345
770
|
declare const moderationInputSchema: z.ZodObject<{
|
|
1346
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
771
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
772
|
+
vision: "vision";
|
|
773
|
+
video: "video";
|
|
774
|
+
embedding: "embedding";
|
|
775
|
+
fast: "fast";
|
|
776
|
+
smart: "smart";
|
|
777
|
+
powerful: "powerful";
|
|
778
|
+
cheap: "cheap";
|
|
779
|
+
}>>;
|
|
1347
780
|
override: z.ZodOptional<z.ZodObject<{
|
|
1348
781
|
provider: z.ZodOptional<z.ZodString>;
|
|
1349
782
|
model: z.ZodOptional<z.ZodString>;
|
|
1350
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
783
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
784
|
+
http: "http";
|
|
785
|
+
subprocess: "subprocess";
|
|
786
|
+
}>>;
|
|
787
|
+
}, z.core.$strip>>;
|
|
788
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
789
|
+
vision: "vision";
|
|
790
|
+
video: "video";
|
|
791
|
+
embedding: "embedding";
|
|
792
|
+
fast: "fast";
|
|
793
|
+
smart: "smart";
|
|
794
|
+
powerful: "powerful";
|
|
795
|
+
cheap: "cheap";
|
|
796
|
+
}>, z.ZodObject<{
|
|
1361
797
|
provider: z.ZodString;
|
|
1362
798
|
model: z.ZodString;
|
|
1363
|
-
transport: z.ZodEnum<
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
}, {
|
|
1369
|
-
provider: string;
|
|
1370
|
-
model: string;
|
|
1371
|
-
transport: "http" | "subprocess";
|
|
1372
|
-
}>]>, "many">>;
|
|
799
|
+
transport: z.ZodEnum<{
|
|
800
|
+
http: "http";
|
|
801
|
+
subprocess: "subprocess";
|
|
802
|
+
}>;
|
|
803
|
+
}, z.core.$strip>]>>>;
|
|
1373
804
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1374
805
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
1375
806
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1376
|
-
input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
1377
|
-
},
|
|
1378
|
-
input: string | string[];
|
|
1379
|
-
purpose?: string | undefined;
|
|
1380
|
-
labels?: Record<string, string> | undefined;
|
|
1381
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1382
|
-
override?: {
|
|
1383
|
-
provider?: string | undefined;
|
|
1384
|
-
model?: string | undefined;
|
|
1385
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1386
|
-
} | undefined;
|
|
1387
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1388
|
-
provider: string;
|
|
1389
|
-
model: string;
|
|
1390
|
-
transport: "http" | "subprocess";
|
|
1391
|
-
})[] | undefined;
|
|
1392
|
-
allowFloating?: boolean | undefined;
|
|
1393
|
-
}, {
|
|
1394
|
-
input: string | string[];
|
|
1395
|
-
purpose?: string | undefined;
|
|
1396
|
-
labels?: Record<string, string> | undefined;
|
|
1397
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1398
|
-
override?: {
|
|
1399
|
-
provider?: string | undefined;
|
|
1400
|
-
model?: string | undefined;
|
|
1401
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1402
|
-
} | undefined;
|
|
1403
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1404
|
-
provider: string;
|
|
1405
|
-
model: string;
|
|
1406
|
-
transport: "http" | "subprocess";
|
|
1407
|
-
})[] | undefined;
|
|
1408
|
-
allowFloating?: boolean | undefined;
|
|
1409
|
-
}>;
|
|
807
|
+
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
808
|
+
}, z.core.$strip>;
|
|
1410
809
|
declare const judgeInputSchema: z.ZodObject<{
|
|
1411
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
810
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
811
|
+
vision: "vision";
|
|
812
|
+
video: "video";
|
|
813
|
+
embedding: "embedding";
|
|
814
|
+
fast: "fast";
|
|
815
|
+
smart: "smart";
|
|
816
|
+
powerful: "powerful";
|
|
817
|
+
cheap: "cheap";
|
|
818
|
+
}>>;
|
|
1412
819
|
override: z.ZodOptional<z.ZodObject<{
|
|
1413
820
|
provider: z.ZodOptional<z.ZodString>;
|
|
1414
821
|
model: z.ZodOptional<z.ZodString>;
|
|
1415
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
822
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
823
|
+
http: "http";
|
|
824
|
+
subprocess: "subprocess";
|
|
825
|
+
}>>;
|
|
826
|
+
}, z.core.$strip>>;
|
|
827
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
828
|
+
vision: "vision";
|
|
829
|
+
video: "video";
|
|
830
|
+
embedding: "embedding";
|
|
831
|
+
fast: "fast";
|
|
832
|
+
smart: "smart";
|
|
833
|
+
powerful: "powerful";
|
|
834
|
+
cheap: "cheap";
|
|
835
|
+
}>, z.ZodObject<{
|
|
1426
836
|
provider: z.ZodString;
|
|
1427
837
|
model: z.ZodString;
|
|
1428
|
-
transport: z.ZodEnum<
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
}, {
|
|
1434
|
-
provider: string;
|
|
1435
|
-
model: string;
|
|
1436
|
-
transport: "http" | "subprocess";
|
|
1437
|
-
}>]>, "many">>;
|
|
838
|
+
transport: z.ZodEnum<{
|
|
839
|
+
http: "http";
|
|
840
|
+
subprocess: "subprocess";
|
|
841
|
+
}>;
|
|
842
|
+
}, z.core.$strip>]>>>;
|
|
1438
843
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1439
844
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
1440
845
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1441
|
-
state: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
1442
|
-
questions: z.
|
|
846
|
+
state: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
847
|
+
questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1443
848
|
type: z.ZodLiteral<"noul">;
|
|
1444
|
-
instructions: z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown
|
|
849
|
+
instructions: z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
1445
850
|
criteria: z.ZodOptional<z.ZodObject<{
|
|
1446
|
-
true: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown
|
|
1447
|
-
false: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown
|
|
1448
|
-
},
|
|
1449
|
-
|
|
1450
|
-
false?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1451
|
-
}, {
|
|
1452
|
-
true?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1453
|
-
false?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1454
|
-
}>>;
|
|
1455
|
-
}, "strip", z.ZodTypeAny, {
|
|
1456
|
-
type: "noul";
|
|
1457
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1458
|
-
criteria?: {
|
|
1459
|
-
true?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1460
|
-
false?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1461
|
-
} | undefined;
|
|
1462
|
-
}, {
|
|
1463
|
-
type: "noul";
|
|
1464
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1465
|
-
criteria?: {
|
|
1466
|
-
true?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1467
|
-
false?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1468
|
-
} | undefined;
|
|
1469
|
-
}>, z.ZodObject<{
|
|
851
|
+
true: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
852
|
+
false: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
853
|
+
}, z.core.$strict>>;
|
|
854
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1470
855
|
type: z.ZodLiteral<"choice">;
|
|
1471
|
-
instructions: z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown
|
|
1472
|
-
criteria: z.
|
|
1473
|
-
},
|
|
1474
|
-
type: "choice";
|
|
1475
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1476
|
-
criteria: Record<string, string | unknown[] | Record<string, unknown> | null>;
|
|
1477
|
-
}, {
|
|
1478
|
-
type: "choice";
|
|
1479
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1480
|
-
criteria: Record<string, string | unknown[] | Record<string, unknown> | null>;
|
|
1481
|
-
}>, z.ZodObject<{
|
|
856
|
+
instructions: z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
857
|
+
criteria: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
858
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1482
859
|
type: z.ZodLiteral<"score">;
|
|
1483
|
-
instructions: z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown
|
|
1484
|
-
criteria: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown
|
|
1485
|
-
},
|
|
1486
|
-
|
|
1487
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1488
|
-
criteria: (string | unknown[] | Record<string, unknown> | null)[];
|
|
1489
|
-
}, {
|
|
1490
|
-
type: "score";
|
|
1491
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1492
|
-
criteria: (string | unknown[] | Record<string, unknown> | null)[];
|
|
1493
|
-
}>]>>, Record<string, {
|
|
1494
|
-
type: "noul";
|
|
1495
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1496
|
-
criteria?: {
|
|
1497
|
-
true?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1498
|
-
false?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1499
|
-
} | undefined;
|
|
1500
|
-
} | {
|
|
1501
|
-
type: "choice";
|
|
1502
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1503
|
-
criteria: Record<string, string | unknown[] | Record<string, unknown> | null>;
|
|
1504
|
-
} | {
|
|
1505
|
-
type: "score";
|
|
1506
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1507
|
-
criteria: (string | unknown[] | Record<string, unknown> | null)[];
|
|
1508
|
-
}>, Record<string, {
|
|
1509
|
-
type: "noul";
|
|
1510
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1511
|
-
criteria?: {
|
|
1512
|
-
true?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1513
|
-
false?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1514
|
-
} | undefined;
|
|
1515
|
-
} | {
|
|
1516
|
-
type: "choice";
|
|
1517
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1518
|
-
criteria: Record<string, string | unknown[] | Record<string, unknown> | null>;
|
|
1519
|
-
} | {
|
|
1520
|
-
type: "score";
|
|
1521
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1522
|
-
criteria: (string | unknown[] | Record<string, unknown> | null)[];
|
|
1523
|
-
}>>;
|
|
1524
|
-
}, "strip", z.ZodTypeAny, {
|
|
1525
|
-
state: string | string[] | Record<string, unknown>;
|
|
1526
|
-
questions: Record<string, {
|
|
1527
|
-
type: "noul";
|
|
1528
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1529
|
-
criteria?: {
|
|
1530
|
-
true?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1531
|
-
false?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1532
|
-
} | undefined;
|
|
1533
|
-
} | {
|
|
1534
|
-
type: "choice";
|
|
1535
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1536
|
-
criteria: Record<string, string | unknown[] | Record<string, unknown> | null>;
|
|
1537
|
-
} | {
|
|
1538
|
-
type: "score";
|
|
1539
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1540
|
-
criteria: (string | unknown[] | Record<string, unknown> | null)[];
|
|
1541
|
-
}>;
|
|
1542
|
-
purpose?: string | undefined;
|
|
1543
|
-
labels?: Record<string, string> | undefined;
|
|
1544
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1545
|
-
override?: {
|
|
1546
|
-
provider?: string | undefined;
|
|
1547
|
-
model?: string | undefined;
|
|
1548
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1549
|
-
} | undefined;
|
|
1550
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1551
|
-
provider: string;
|
|
1552
|
-
model: string;
|
|
1553
|
-
transport: "http" | "subprocess";
|
|
1554
|
-
})[] | undefined;
|
|
1555
|
-
allowFloating?: boolean | undefined;
|
|
1556
|
-
}, {
|
|
1557
|
-
state: string | string[] | Record<string, unknown>;
|
|
1558
|
-
questions: Record<string, {
|
|
1559
|
-
type: "noul";
|
|
1560
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1561
|
-
criteria?: {
|
|
1562
|
-
true?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1563
|
-
false?: string | unknown[] | Record<string, unknown> | null | undefined;
|
|
1564
|
-
} | undefined;
|
|
1565
|
-
} | {
|
|
1566
|
-
type: "choice";
|
|
1567
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1568
|
-
criteria: Record<string, string | unknown[] | Record<string, unknown> | null>;
|
|
1569
|
-
} | {
|
|
1570
|
-
type: "score";
|
|
1571
|
-
instructions: string | unknown[] | Record<string, unknown> | null;
|
|
1572
|
-
criteria: (string | unknown[] | Record<string, unknown> | null)[];
|
|
1573
|
-
}>;
|
|
1574
|
-
purpose?: string | undefined;
|
|
1575
|
-
labels?: Record<string, string> | undefined;
|
|
1576
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1577
|
-
override?: {
|
|
1578
|
-
provider?: string | undefined;
|
|
1579
|
-
model?: string | undefined;
|
|
1580
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1581
|
-
} | undefined;
|
|
1582
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1583
|
-
provider: string;
|
|
1584
|
-
model: string;
|
|
1585
|
-
transport: "http" | "subprocess";
|
|
1586
|
-
})[] | undefined;
|
|
1587
|
-
allowFloating?: boolean | undefined;
|
|
1588
|
-
}>;
|
|
860
|
+
instructions: z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
861
|
+
criteria: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
862
|
+
}, z.core.$strip>], "type">>;
|
|
863
|
+
}, z.core.$strip>;
|
|
1589
864
|
declare const podcastInputSchema: z.ZodObject<{
|
|
1590
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
865
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
866
|
+
vision: "vision";
|
|
867
|
+
video: "video";
|
|
868
|
+
embedding: "embedding";
|
|
869
|
+
fast: "fast";
|
|
870
|
+
smart: "smart";
|
|
871
|
+
powerful: "powerful";
|
|
872
|
+
cheap: "cheap";
|
|
873
|
+
}>>;
|
|
1591
874
|
override: z.ZodOptional<z.ZodObject<{
|
|
1592
875
|
provider: z.ZodOptional<z.ZodString>;
|
|
1593
876
|
model: z.ZodOptional<z.ZodString>;
|
|
1594
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
877
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
878
|
+
http: "http";
|
|
879
|
+
subprocess: "subprocess";
|
|
880
|
+
}>>;
|
|
881
|
+
}, z.core.$strip>>;
|
|
882
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
883
|
+
vision: "vision";
|
|
884
|
+
video: "video";
|
|
885
|
+
embedding: "embedding";
|
|
886
|
+
fast: "fast";
|
|
887
|
+
smart: "smart";
|
|
888
|
+
powerful: "powerful";
|
|
889
|
+
cheap: "cheap";
|
|
890
|
+
}>, z.ZodObject<{
|
|
1605
891
|
provider: z.ZodString;
|
|
1606
892
|
model: z.ZodString;
|
|
1607
|
-
transport: z.ZodEnum<
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
}, {
|
|
1613
|
-
provider: string;
|
|
1614
|
-
model: string;
|
|
1615
|
-
transport: "http" | "subprocess";
|
|
1616
|
-
}>]>, "many">>;
|
|
893
|
+
transport: z.ZodEnum<{
|
|
894
|
+
http: "http";
|
|
895
|
+
subprocess: "subprocess";
|
|
896
|
+
}>;
|
|
897
|
+
}, z.core.$strip>]>>>;
|
|
1617
898
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1618
899
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
1619
900
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1620
901
|
script: z.ZodArray<z.ZodObject<{
|
|
1621
902
|
speaker: z.ZodString;
|
|
1622
903
|
text: z.ZodString;
|
|
1623
|
-
},
|
|
1624
|
-
text: string;
|
|
1625
|
-
speaker: string;
|
|
1626
|
-
}, {
|
|
1627
|
-
text: string;
|
|
1628
|
-
speaker: string;
|
|
1629
|
-
}>, "many">;
|
|
904
|
+
}, z.core.$strip>>;
|
|
1630
905
|
voices: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1631
906
|
format: z.ZodOptional<z.ZodString>;
|
|
1632
|
-
/** F051.4 — same field, same semantics as tts. Applied PER LINE: ElevenLabs'
|
|
1633
|
-
* /text-to-dialogue takes inputs[].text separately, so there is no composed string
|
|
1634
|
-
* a replacement could run across a speaker boundary in. */
|
|
1635
907
|
pronunciations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1636
908
|
word: z.ZodString;
|
|
1637
909
|
alias: z.ZodOptional<z.ZodString>;
|
|
1638
910
|
ipa: z.ZodOptional<z.ZodString>;
|
|
1639
911
|
lang: z.ZodOptional<z.ZodString>;
|
|
1640
|
-
/** F051.3 — also match inside a hyphenated compound ("AI" in "AI-agenter"). */
|
|
1641
912
|
matchInCompounds: z.ZodOptional<z.ZodBoolean>;
|
|
1642
|
-
},
|
|
1643
|
-
|
|
1644
|
-
matchInCompounds?: boolean | undefined;
|
|
1645
|
-
lang?: string | undefined;
|
|
1646
|
-
alias?: string | undefined;
|
|
1647
|
-
ipa?: string | undefined;
|
|
1648
|
-
}, {
|
|
1649
|
-
word: string;
|
|
1650
|
-
matchInCompounds?: boolean | undefined;
|
|
1651
|
-
lang?: string | undefined;
|
|
1652
|
-
alias?: string | undefined;
|
|
1653
|
-
ipa?: string | undefined;
|
|
1654
|
-
}>, "many">>;
|
|
1655
|
-
}, "strip", z.ZodTypeAny, {
|
|
1656
|
-
script: {
|
|
1657
|
-
text: string;
|
|
1658
|
-
speaker: string;
|
|
1659
|
-
}[];
|
|
1660
|
-
voices: Record<string, string>;
|
|
1661
|
-
purpose?: string | undefined;
|
|
1662
|
-
labels?: Record<string, string> | undefined;
|
|
1663
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1664
|
-
pronunciations?: {
|
|
1665
|
-
word: string;
|
|
1666
|
-
matchInCompounds?: boolean | undefined;
|
|
1667
|
-
lang?: string | undefined;
|
|
1668
|
-
alias?: string | undefined;
|
|
1669
|
-
ipa?: string | undefined;
|
|
1670
|
-
}[] | undefined;
|
|
1671
|
-
override?: {
|
|
1672
|
-
provider?: string | undefined;
|
|
1673
|
-
model?: string | undefined;
|
|
1674
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1675
|
-
} | undefined;
|
|
1676
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1677
|
-
provider: string;
|
|
1678
|
-
model: string;
|
|
1679
|
-
transport: "http" | "subprocess";
|
|
1680
|
-
})[] | undefined;
|
|
1681
|
-
allowFloating?: boolean | undefined;
|
|
1682
|
-
format?: string | undefined;
|
|
1683
|
-
}, {
|
|
1684
|
-
script: {
|
|
1685
|
-
text: string;
|
|
1686
|
-
speaker: string;
|
|
1687
|
-
}[];
|
|
1688
|
-
voices: Record<string, string>;
|
|
1689
|
-
purpose?: string | undefined;
|
|
1690
|
-
labels?: Record<string, string> | undefined;
|
|
1691
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1692
|
-
pronunciations?: {
|
|
1693
|
-
word: string;
|
|
1694
|
-
matchInCompounds?: boolean | undefined;
|
|
1695
|
-
lang?: string | undefined;
|
|
1696
|
-
alias?: string | undefined;
|
|
1697
|
-
ipa?: string | undefined;
|
|
1698
|
-
}[] | undefined;
|
|
1699
|
-
override?: {
|
|
1700
|
-
provider?: string | undefined;
|
|
1701
|
-
model?: string | undefined;
|
|
1702
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1703
|
-
} | undefined;
|
|
1704
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1705
|
-
provider: string;
|
|
1706
|
-
model: string;
|
|
1707
|
-
transport: "http" | "subprocess";
|
|
1708
|
-
})[] | undefined;
|
|
1709
|
-
allowFloating?: boolean | undefined;
|
|
1710
|
-
format?: string | undefined;
|
|
1711
|
-
}>;
|
|
913
|
+
}, z.core.$strip>>>;
|
|
914
|
+
}, z.core.$strip>;
|
|
1712
915
|
declare const ttsInputSchema: z.ZodObject<{
|
|
1713
|
-
tier: z.ZodOptional<z.ZodEnum<
|
|
916
|
+
tier: z.ZodOptional<z.ZodEnum<{
|
|
917
|
+
vision: "vision";
|
|
918
|
+
video: "video";
|
|
919
|
+
embedding: "embedding";
|
|
920
|
+
fast: "fast";
|
|
921
|
+
smart: "smart";
|
|
922
|
+
powerful: "powerful";
|
|
923
|
+
cheap: "cheap";
|
|
924
|
+
}>>;
|
|
1714
925
|
override: z.ZodOptional<z.ZodObject<{
|
|
1715
926
|
provider: z.ZodOptional<z.ZodString>;
|
|
1716
927
|
model: z.ZodOptional<z.ZodString>;
|
|
1717
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
928
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
929
|
+
http: "http";
|
|
930
|
+
subprocess: "subprocess";
|
|
931
|
+
}>>;
|
|
932
|
+
}, z.core.$strip>>;
|
|
933
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
934
|
+
vision: "vision";
|
|
935
|
+
video: "video";
|
|
936
|
+
embedding: "embedding";
|
|
937
|
+
fast: "fast";
|
|
938
|
+
smart: "smart";
|
|
939
|
+
powerful: "powerful";
|
|
940
|
+
cheap: "cheap";
|
|
941
|
+
}>, z.ZodObject<{
|
|
1728
942
|
provider: z.ZodString;
|
|
1729
943
|
model: z.ZodString;
|
|
1730
|
-
transport: z.ZodEnum<
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
}, {
|
|
1736
|
-
provider: string;
|
|
1737
|
-
model: string;
|
|
1738
|
-
transport: "http" | "subprocess";
|
|
1739
|
-
}>]>, "many">>;
|
|
944
|
+
transport: z.ZodEnum<{
|
|
945
|
+
http: "http";
|
|
946
|
+
subprocess: "subprocess";
|
|
947
|
+
}>;
|
|
948
|
+
}, z.core.$strip>]>>>;
|
|
1740
949
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1741
950
|
allowFloating: z.ZodOptional<z.ZodBoolean>;
|
|
1742
951
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1743
952
|
text: z.ZodString;
|
|
1744
953
|
voice: z.ZodString;
|
|
1745
|
-
/** F051 — see TtsRequest.pronunciations. The alias/ipa exclusivity is enforced in
|
|
1746
|
-
* the adapter, not here: the message must name the provider that cannot do it. */
|
|
1747
954
|
pronunciations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1748
955
|
word: z.ZodString;
|
|
1749
956
|
alias: z.ZodOptional<z.ZodString>;
|
|
1750
957
|
ipa: z.ZodOptional<z.ZodString>;
|
|
1751
958
|
lang: z.ZodOptional<z.ZodString>;
|
|
1752
|
-
/** F051.3 — also match inside a hyphenated compound ("AI" in "AI-agenter"). */
|
|
1753
959
|
matchInCompounds: z.ZodOptional<z.ZodBoolean>;
|
|
1754
|
-
},
|
|
1755
|
-
word: string;
|
|
1756
|
-
matchInCompounds?: boolean | undefined;
|
|
1757
|
-
lang?: string | undefined;
|
|
1758
|
-
alias?: string | undefined;
|
|
1759
|
-
ipa?: string | undefined;
|
|
1760
|
-
}, {
|
|
1761
|
-
word: string;
|
|
1762
|
-
matchInCompounds?: boolean | undefined;
|
|
1763
|
-
lang?: string | undefined;
|
|
1764
|
-
alias?: string | undefined;
|
|
1765
|
-
ipa?: string | undefined;
|
|
1766
|
-
}>, "many">>;
|
|
1767
|
-
/** F055 — per-word timings (Azure only). Changes the route to batch synthesis. */
|
|
960
|
+
}, z.core.$strip>>>;
|
|
1768
961
|
wordTimings: z.ZodOptional<z.ZodBoolean>;
|
|
1769
|
-
/** F037: voice to use if `voice` is one we know the provider has retired. Without
|
|
1770
|
-
* it a retired voice throws VoiceUnavailableError rather than reaching the API.
|
|
1771
|
-
*
|
|
1772
|
-
* THINK BEFORE SETTING THIS. It is right for batch work where any acceptable voice
|
|
1773
|
-
* will do (a generated podcast, a bulk render). It is WRONG where the voice is an
|
|
1774
|
-
* identity a human recognises — a brand voice, a house narrator: falling back means
|
|
1775
|
-
* your product suddenly speaks with a stranger's voice and says nothing about why.
|
|
1776
|
-
* There, leave it unset and let the throw alarm you. Silence WITH a message beats
|
|
1777
|
-
* the wrong audio WITHOUT one. (torrent-search-api's call on their own house voice,
|
|
1778
|
-
* 2026-08-11 — they took the alarm over the fallback, deliberately.) */
|
|
1779
962
|
voiceFallback: z.ZodOptional<z.ZodString>;
|
|
1780
963
|
lang: z.ZodOptional<z.ZodString>;
|
|
1781
964
|
format: z.ZodOptional<z.ZodString>;
|
|
1782
965
|
rate: z.ZodOptional<z.ZodNumber>;
|
|
1783
|
-
},
|
|
1784
|
-
text: string;
|
|
1785
|
-
voice: string;
|
|
1786
|
-
lang?: string | undefined;
|
|
1787
|
-
purpose?: string | undefined;
|
|
1788
|
-
labels?: Record<string, string> | undefined;
|
|
1789
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1790
|
-
wordTimings?: boolean | undefined;
|
|
1791
|
-
pronunciations?: {
|
|
1792
|
-
word: string;
|
|
1793
|
-
matchInCompounds?: boolean | undefined;
|
|
1794
|
-
lang?: string | undefined;
|
|
1795
|
-
alias?: string | undefined;
|
|
1796
|
-
ipa?: string | undefined;
|
|
1797
|
-
}[] | undefined;
|
|
1798
|
-
override?: {
|
|
1799
|
-
provider?: string | undefined;
|
|
1800
|
-
model?: string | undefined;
|
|
1801
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1802
|
-
} | undefined;
|
|
1803
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1804
|
-
provider: string;
|
|
1805
|
-
model: string;
|
|
1806
|
-
transport: "http" | "subprocess";
|
|
1807
|
-
})[] | undefined;
|
|
1808
|
-
allowFloating?: boolean | undefined;
|
|
1809
|
-
format?: string | undefined;
|
|
1810
|
-
voiceFallback?: string | undefined;
|
|
1811
|
-
rate?: number | undefined;
|
|
1812
|
-
}, {
|
|
1813
|
-
text: string;
|
|
1814
|
-
voice: string;
|
|
1815
|
-
lang?: string | undefined;
|
|
1816
|
-
purpose?: string | undefined;
|
|
1817
|
-
labels?: Record<string, string> | undefined;
|
|
1818
|
-
tier?: "vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | undefined;
|
|
1819
|
-
wordTimings?: boolean | undefined;
|
|
1820
|
-
pronunciations?: {
|
|
1821
|
-
word: string;
|
|
1822
|
-
matchInCompounds?: boolean | undefined;
|
|
1823
|
-
lang?: string | undefined;
|
|
1824
|
-
alias?: string | undefined;
|
|
1825
|
-
ipa?: string | undefined;
|
|
1826
|
-
}[] | undefined;
|
|
1827
|
-
override?: {
|
|
1828
|
-
provider?: string | undefined;
|
|
1829
|
-
model?: string | undefined;
|
|
1830
|
-
transport?: "http" | "subprocess" | undefined;
|
|
1831
|
-
} | undefined;
|
|
1832
|
-
fallback?: ("vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap" | {
|
|
1833
|
-
provider: string;
|
|
1834
|
-
model: string;
|
|
1835
|
-
transport: "http" | "subprocess";
|
|
1836
|
-
})[] | undefined;
|
|
1837
|
-
allowFloating?: boolean | undefined;
|
|
1838
|
-
format?: string | undefined;
|
|
1839
|
-
voiceFallback?: string | undefined;
|
|
1840
|
-
rate?: number | undefined;
|
|
1841
|
-
}>;
|
|
966
|
+
}, z.core.$strip>;
|
|
1842
967
|
declare const aiConfigSchema: z.ZodObject<{
|
|
1843
|
-
/** F069.1 — customer-key mode. Every provider must be built with byokAdapter(), so no
|
|
1844
|
-
* call can fall back to the fleet's env keys; createAI throws at setup otherwise. */
|
|
1845
968
|
byok: z.ZodOptional<z.ZodBoolean>;
|
|
1846
|
-
/** F069.2 — attribution labels stamped on EVERY call's usage (and so on every cost-sink
|
|
1847
|
-
* row), e.g. { byok: "true", tenantId }. A call's own `labels` win on the same key. */
|
|
1848
969
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1849
|
-
/** F039.2 — client-wide opt-out from prompt caching (default: on where the
|
|
1850
|
-
* provider supports it). A per-call `promptCache` wins over this. */
|
|
1851
970
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
1852
|
-
/** F077.3 — refuse any "-latest" model id unless the call passes allowFloating: true. */
|
|
1853
971
|
strictPinning: z.ZodOptional<z.ZodBoolean>;
|
|
1854
|
-
defaults: z.ZodOptional<z.ZodRecord<z.ZodEnum<
|
|
972
|
+
defaults: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
973
|
+
vision: "vision";
|
|
974
|
+
video: "video";
|
|
975
|
+
embedding: "embedding";
|
|
976
|
+
fast: "fast";
|
|
977
|
+
smart: "smart";
|
|
978
|
+
powerful: "powerful";
|
|
979
|
+
cheap: "cheap";
|
|
980
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
1855
981
|
provider: z.ZodString;
|
|
1856
982
|
model: z.ZodString;
|
|
1857
|
-
transport: z.ZodEnum<
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
model: string;
|
|
1865
|
-
transport: "http" | "subprocess";
|
|
1866
|
-
}>>>;
|
|
1867
|
-
providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ProviderAdapter, z.ZodTypeDef, ProviderAdapter>>>;
|
|
1868
|
-
/** Omit → cost-tracking auto-wires from the upmetrics env (F034). Pass `null`
|
|
1869
|
-
* to opt OUT explicitly — for a consumer that already reports its own costs
|
|
1870
|
-
* and would otherwise be counted twice (F034.3). An object is used as-is. */
|
|
1871
|
-
costSink: z.ZodOptional<z.ZodNullable<z.ZodType<CostSink, z.ZodTypeDef, CostSink>>>;
|
|
1872
|
-
/** F034.4 — who is calling, as Upmetrics groups it (e.g. "cms"). Required when
|
|
1873
|
-
* `costSink` is omitted, unless UPMETRICS_AGENT_NAME is set. */
|
|
983
|
+
transport: z.ZodEnum<{
|
|
984
|
+
http: "http";
|
|
985
|
+
subprocess: "subprocess";
|
|
986
|
+
}>;
|
|
987
|
+
}, z.core.$strip>>>;
|
|
988
|
+
providers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<ProviderAdapter, ProviderAdapter>>>;
|
|
989
|
+
costSink: z.ZodOptional<z.ZodNullable<z.ZodCustom<CostSink, CostSink>>>;
|
|
1874
990
|
agentName: z.ZodOptional<z.ZodString>;
|
|
1875
991
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1876
992
|
perCallUsd: z.ZodOptional<z.ZodNumber>;
|
|
1877
993
|
rollingUsd: z.ZodOptional<z.ZodNumber>;
|
|
1878
|
-
},
|
|
1879
|
-
perCallUsd?: number | undefined;
|
|
1880
|
-
rollingUsd?: number | undefined;
|
|
1881
|
-
}, {
|
|
1882
|
-
perCallUsd?: number | undefined;
|
|
1883
|
-
rollingUsd?: number | undefined;
|
|
1884
|
-
}>>;
|
|
994
|
+
}, z.core.$strip>>;
|
|
1885
995
|
availability: z.ZodOptional<z.ZodObject<{
|
|
1886
996
|
autoResolve: z.ZodOptional<z.ZodBoolean>;
|
|
1887
|
-
fallback: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
1888
|
-
},
|
|
1889
|
-
|
|
1890
|
-
autoResolve?: boolean | undefined;
|
|
1891
|
-
}, {
|
|
1892
|
-
fallback?: string | string[] | undefined;
|
|
1893
|
-
autoResolve?: boolean | undefined;
|
|
1894
|
-
}>>;
|
|
1895
|
-
}, "strip", z.ZodTypeAny, {
|
|
1896
|
-
labels?: Record<string, string> | undefined;
|
|
1897
|
-
costSink?: CostSink | null | undefined;
|
|
1898
|
-
byok?: boolean | undefined;
|
|
1899
|
-
promptCache?: boolean | undefined;
|
|
1900
|
-
strictPinning?: boolean | undefined;
|
|
1901
|
-
defaults?: Partial<Record<"vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap", {
|
|
1902
|
-
provider: string;
|
|
1903
|
-
model: string;
|
|
1904
|
-
transport: "http" | "subprocess";
|
|
1905
|
-
}>> | undefined;
|
|
1906
|
-
providers?: Record<string, ProviderAdapter> | undefined;
|
|
1907
|
-
agentName?: string | undefined;
|
|
1908
|
-
budget?: {
|
|
1909
|
-
perCallUsd?: number | undefined;
|
|
1910
|
-
rollingUsd?: number | undefined;
|
|
1911
|
-
} | undefined;
|
|
1912
|
-
availability?: {
|
|
1913
|
-
fallback?: string | string[] | undefined;
|
|
1914
|
-
autoResolve?: boolean | undefined;
|
|
1915
|
-
} | undefined;
|
|
1916
|
-
}, {
|
|
1917
|
-
labels?: Record<string, string> | undefined;
|
|
1918
|
-
costSink?: CostSink | null | undefined;
|
|
1919
|
-
byok?: boolean | undefined;
|
|
1920
|
-
promptCache?: boolean | undefined;
|
|
1921
|
-
strictPinning?: boolean | undefined;
|
|
1922
|
-
defaults?: Partial<Record<"vision" | "video" | "embedding" | "fast" | "smart" | "powerful" | "cheap", {
|
|
1923
|
-
provider: string;
|
|
1924
|
-
model: string;
|
|
1925
|
-
transport: "http" | "subprocess";
|
|
1926
|
-
}>> | undefined;
|
|
1927
|
-
providers?: Record<string, ProviderAdapter> | undefined;
|
|
1928
|
-
agentName?: string | undefined;
|
|
1929
|
-
budget?: {
|
|
1930
|
-
perCallUsd?: number | undefined;
|
|
1931
|
-
rollingUsd?: number | undefined;
|
|
1932
|
-
} | undefined;
|
|
1933
|
-
availability?: {
|
|
1934
|
-
fallback?: string | string[] | undefined;
|
|
1935
|
-
autoResolve?: boolean | undefined;
|
|
1936
|
-
} | undefined;
|
|
1937
|
-
}>;
|
|
997
|
+
fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
998
|
+
}, z.core.$strip>>;
|
|
999
|
+
}, z.core.$strip>;
|
|
1938
1000
|
type ChatInput = z.infer<typeof chatInputSchema>;
|
|
1939
1001
|
type VisionInput = z.infer<typeof visionInputSchema>;
|
|
1940
1002
|
type VideoInput = z.infer<typeof videoInputSchema>;
|
|
@@ -2346,8 +1408,8 @@ declare const falStubAdapter: ProviderAdapter;
|
|
|
2346
1408
|
* wires the live adapters. */
|
|
2347
1409
|
declare const stubProviders: Record<string, ProviderAdapter>;
|
|
2348
1410
|
|
|
2349
|
-
declare const VERSION: "0.
|
|
2350
|
-
declare const SDK_TAG: "@broberg/ai-sdk@0.
|
|
1411
|
+
declare const VERSION: "0.66.0";
|
|
1412
|
+
declare const SDK_TAG: "@broberg/ai-sdk@0.66.0";
|
|
2351
1413
|
|
|
2352
1414
|
/** Built-in defaults. Every entry is overridable via AiConfig.defaults or a
|
|
2353
1415
|
* per-call override.
|