@apicity/alibaba 0.1.0-alpha.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.
@@ -0,0 +1,3457 @@
1
+ import { z } from "zod";
2
+ export declare const AlibabaFunctionDefinitionSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ name: string;
8
+ description?: string | undefined;
9
+ parameters?: Record<string, unknown> | undefined;
10
+ }, {
11
+ name: string;
12
+ description?: string | undefined;
13
+ parameters?: Record<string, unknown> | undefined;
14
+ }>;
15
+ export declare const AlibabaToolSchema: z.ZodObject<{
16
+ type: z.ZodLiteral<"function">;
17
+ function: z.ZodObject<{
18
+ name: z.ZodString;
19
+ description: z.ZodOptional<z.ZodString>;
20
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ name: string;
23
+ description?: string | undefined;
24
+ parameters?: Record<string, unknown> | undefined;
25
+ }, {
26
+ name: string;
27
+ description?: string | undefined;
28
+ parameters?: Record<string, unknown> | undefined;
29
+ }>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ function: {
32
+ name: string;
33
+ description?: string | undefined;
34
+ parameters?: Record<string, unknown> | undefined;
35
+ };
36
+ type: "function";
37
+ }, {
38
+ function: {
39
+ name: string;
40
+ description?: string | undefined;
41
+ parameters?: Record<string, unknown> | undefined;
42
+ };
43
+ type: "function";
44
+ }>;
45
+ export declare const AlibabaToolCallFunctionSchema: z.ZodObject<{
46
+ name: z.ZodString;
47
+ arguments: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ name: string;
50
+ arguments: string;
51
+ }, {
52
+ name: string;
53
+ arguments: string;
54
+ }>;
55
+ export declare const AlibabaToolCallSchema: z.ZodObject<{
56
+ id: z.ZodString;
57
+ type: z.ZodLiteral<"function">;
58
+ function: z.ZodObject<{
59
+ name: z.ZodString;
60
+ arguments: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ name: string;
63
+ arguments: string;
64
+ }, {
65
+ name: string;
66
+ arguments: string;
67
+ }>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ function: {
70
+ name: string;
71
+ arguments: string;
72
+ };
73
+ type: "function";
74
+ id: string;
75
+ }, {
76
+ function: {
77
+ name: string;
78
+ arguments: string;
79
+ };
80
+ type: "function";
81
+ id: string;
82
+ }>;
83
+ export declare const AlibabaTextPartSchema: z.ZodObject<{
84
+ type: z.ZodLiteral<"text">;
85
+ text: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ type: "text";
88
+ text: string;
89
+ }, {
90
+ type: "text";
91
+ text: string;
92
+ }>;
93
+ export declare const AlibabaImageUrlPartSchema: z.ZodObject<{
94
+ type: z.ZodLiteral<"image_url">;
95
+ image_url: z.ZodObject<{
96
+ url: z.ZodString;
97
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ url: string;
100
+ detail?: "auto" | "low" | "high" | undefined;
101
+ }, {
102
+ url: string;
103
+ detail?: "auto" | "low" | "high" | undefined;
104
+ }>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ type: "image_url";
107
+ image_url: {
108
+ url: string;
109
+ detail?: "auto" | "low" | "high" | undefined;
110
+ };
111
+ }, {
112
+ type: "image_url";
113
+ image_url: {
114
+ url: string;
115
+ detail?: "auto" | "low" | "high" | undefined;
116
+ };
117
+ }>;
118
+ export declare const AlibabaContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
119
+ type: z.ZodLiteral<"text">;
120
+ text: z.ZodString;
121
+ }, "strip", z.ZodTypeAny, {
122
+ type: "text";
123
+ text: string;
124
+ }, {
125
+ type: "text";
126
+ text: string;
127
+ }>, z.ZodObject<{
128
+ type: z.ZodLiteral<"image_url">;
129
+ image_url: z.ZodObject<{
130
+ url: z.ZodString;
131
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ url: string;
134
+ detail?: "auto" | "low" | "high" | undefined;
135
+ }, {
136
+ url: string;
137
+ detail?: "auto" | "low" | "high" | undefined;
138
+ }>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ type: "image_url";
141
+ image_url: {
142
+ url: string;
143
+ detail?: "auto" | "low" | "high" | undefined;
144
+ };
145
+ }, {
146
+ type: "image_url";
147
+ image_url: {
148
+ url: string;
149
+ detail?: "auto" | "low" | "high" | undefined;
150
+ };
151
+ }>]>;
152
+ export declare const AlibabaMessageSchema: z.ZodObject<{
153
+ role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
154
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
155
+ type: z.ZodLiteral<"text">;
156
+ text: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ type: "text";
159
+ text: string;
160
+ }, {
161
+ type: "text";
162
+ text: string;
163
+ }>, z.ZodObject<{
164
+ type: z.ZodLiteral<"image_url">;
165
+ image_url: z.ZodObject<{
166
+ url: z.ZodString;
167
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ url: string;
170
+ detail?: "auto" | "low" | "high" | undefined;
171
+ }, {
172
+ url: string;
173
+ detail?: "auto" | "low" | "high" | undefined;
174
+ }>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ type: "image_url";
177
+ image_url: {
178
+ url: string;
179
+ detail?: "auto" | "low" | "high" | undefined;
180
+ };
181
+ }, {
182
+ type: "image_url";
183
+ image_url: {
184
+ url: string;
185
+ detail?: "auto" | "low" | "high" | undefined;
186
+ };
187
+ }>]>, "many">, z.ZodNull]>;
188
+ name: z.ZodOptional<z.ZodString>;
189
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
+ id: z.ZodString;
191
+ type: z.ZodLiteral<"function">;
192
+ function: z.ZodObject<{
193
+ name: z.ZodString;
194
+ arguments: z.ZodString;
195
+ }, "strip", z.ZodTypeAny, {
196
+ name: string;
197
+ arguments: string;
198
+ }, {
199
+ name: string;
200
+ arguments: string;
201
+ }>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ function: {
204
+ name: string;
205
+ arguments: string;
206
+ };
207
+ type: "function";
208
+ id: string;
209
+ }, {
210
+ function: {
211
+ name: string;
212
+ arguments: string;
213
+ };
214
+ type: "function";
215
+ id: string;
216
+ }>, "many">>;
217
+ tool_call_id: z.ZodOptional<z.ZodString>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ role: "system" | "user" | "assistant" | "tool";
220
+ content: string | ({
221
+ type: "text";
222
+ text: string;
223
+ } | {
224
+ type: "image_url";
225
+ image_url: {
226
+ url: string;
227
+ detail?: "auto" | "low" | "high" | undefined;
228
+ };
229
+ })[] | null;
230
+ name?: string | undefined;
231
+ tool_calls?: {
232
+ function: {
233
+ name: string;
234
+ arguments: string;
235
+ };
236
+ type: "function";
237
+ id: string;
238
+ }[] | undefined;
239
+ tool_call_id?: string | undefined;
240
+ }, {
241
+ role: "system" | "user" | "assistant" | "tool";
242
+ content: string | ({
243
+ type: "text";
244
+ text: string;
245
+ } | {
246
+ type: "image_url";
247
+ image_url: {
248
+ url: string;
249
+ detail?: "auto" | "low" | "high" | undefined;
250
+ };
251
+ })[] | null;
252
+ name?: string | undefined;
253
+ tool_calls?: {
254
+ function: {
255
+ name: string;
256
+ arguments: string;
257
+ };
258
+ type: "function";
259
+ id: string;
260
+ }[] | undefined;
261
+ tool_call_id?: string | undefined;
262
+ }>;
263
+ export declare const AlibabaStreamOptionsSchema: z.ZodObject<{
264
+ include_usage: z.ZodOptional<z.ZodBoolean>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ include_usage?: boolean | undefined;
267
+ }, {
268
+ include_usage?: boolean | undefined;
269
+ }>;
270
+ export declare const AlibabaResponseFormatSchema: z.ZodObject<{
271
+ type: z.ZodEnum<["text", "json_object"]>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ type: "text" | "json_object";
274
+ }, {
275
+ type: "text" | "json_object";
276
+ }>;
277
+ export declare const AlibabaChatRequestSchema: z.ZodObject<{
278
+ model: z.ZodString;
279
+ messages: z.ZodArray<z.ZodObject<{
280
+ role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
281
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
282
+ type: z.ZodLiteral<"text">;
283
+ text: z.ZodString;
284
+ }, "strip", z.ZodTypeAny, {
285
+ type: "text";
286
+ text: string;
287
+ }, {
288
+ type: "text";
289
+ text: string;
290
+ }>, z.ZodObject<{
291
+ type: z.ZodLiteral<"image_url">;
292
+ image_url: z.ZodObject<{
293
+ url: z.ZodString;
294
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ url: string;
297
+ detail?: "auto" | "low" | "high" | undefined;
298
+ }, {
299
+ url: string;
300
+ detail?: "auto" | "low" | "high" | undefined;
301
+ }>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ type: "image_url";
304
+ image_url: {
305
+ url: string;
306
+ detail?: "auto" | "low" | "high" | undefined;
307
+ };
308
+ }, {
309
+ type: "image_url";
310
+ image_url: {
311
+ url: string;
312
+ detail?: "auto" | "low" | "high" | undefined;
313
+ };
314
+ }>]>, "many">, z.ZodNull]>;
315
+ name: z.ZodOptional<z.ZodString>;
316
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
317
+ id: z.ZodString;
318
+ type: z.ZodLiteral<"function">;
319
+ function: z.ZodObject<{
320
+ name: z.ZodString;
321
+ arguments: z.ZodString;
322
+ }, "strip", z.ZodTypeAny, {
323
+ name: string;
324
+ arguments: string;
325
+ }, {
326
+ name: string;
327
+ arguments: string;
328
+ }>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ function: {
331
+ name: string;
332
+ arguments: string;
333
+ };
334
+ type: "function";
335
+ id: string;
336
+ }, {
337
+ function: {
338
+ name: string;
339
+ arguments: string;
340
+ };
341
+ type: "function";
342
+ id: string;
343
+ }>, "many">>;
344
+ tool_call_id: z.ZodOptional<z.ZodString>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ role: "system" | "user" | "assistant" | "tool";
347
+ content: string | ({
348
+ type: "text";
349
+ text: string;
350
+ } | {
351
+ type: "image_url";
352
+ image_url: {
353
+ url: string;
354
+ detail?: "auto" | "low" | "high" | undefined;
355
+ };
356
+ })[] | null;
357
+ name?: string | undefined;
358
+ tool_calls?: {
359
+ function: {
360
+ name: string;
361
+ arguments: string;
362
+ };
363
+ type: "function";
364
+ id: string;
365
+ }[] | undefined;
366
+ tool_call_id?: string | undefined;
367
+ }, {
368
+ role: "system" | "user" | "assistant" | "tool";
369
+ content: string | ({
370
+ type: "text";
371
+ text: string;
372
+ } | {
373
+ type: "image_url";
374
+ image_url: {
375
+ url: string;
376
+ detail?: "auto" | "low" | "high" | undefined;
377
+ };
378
+ })[] | null;
379
+ name?: string | undefined;
380
+ tool_calls?: {
381
+ function: {
382
+ name: string;
383
+ arguments: string;
384
+ };
385
+ type: "function";
386
+ id: string;
387
+ }[] | undefined;
388
+ tool_call_id?: string | undefined;
389
+ }>, "many">;
390
+ temperature: z.ZodOptional<z.ZodNumber>;
391
+ top_p: z.ZodOptional<z.ZodNumber>;
392
+ max_tokens: z.ZodOptional<z.ZodNumber>;
393
+ n: z.ZodOptional<z.ZodNumber>;
394
+ stop: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
395
+ stream: z.ZodOptional<z.ZodBoolean>;
396
+ seed: z.ZodOptional<z.ZodNumber>;
397
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
398
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
399
+ type: z.ZodLiteral<"function">;
400
+ function: z.ZodObject<{
401
+ name: z.ZodString;
402
+ description: z.ZodOptional<z.ZodString>;
403
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ name: string;
406
+ description?: string | undefined;
407
+ parameters?: Record<string, unknown> | undefined;
408
+ }, {
409
+ name: string;
410
+ description?: string | undefined;
411
+ parameters?: Record<string, unknown> | undefined;
412
+ }>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ function: {
415
+ name: string;
416
+ description?: string | undefined;
417
+ parameters?: Record<string, unknown> | undefined;
418
+ };
419
+ type: "function";
420
+ }, {
421
+ function: {
422
+ name: string;
423
+ description?: string | undefined;
424
+ parameters?: Record<string, unknown> | undefined;
425
+ };
426
+ type: "function";
427
+ }>, "many">>;
428
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none"]>, z.ZodObject<{
429
+ type: z.ZodLiteral<"function">;
430
+ function: z.ZodObject<{
431
+ name: z.ZodString;
432
+ }, "strip", z.ZodTypeAny, {
433
+ name: string;
434
+ }, {
435
+ name: string;
436
+ }>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ function: {
439
+ name: string;
440
+ };
441
+ type: "function";
442
+ }, {
443
+ function: {
444
+ name: string;
445
+ };
446
+ type: "function";
447
+ }>]>>;
448
+ stream_options: z.ZodOptional<z.ZodObject<{
449
+ include_usage: z.ZodOptional<z.ZodBoolean>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ include_usage?: boolean | undefined;
452
+ }, {
453
+ include_usage?: boolean | undefined;
454
+ }>>;
455
+ response_format: z.ZodOptional<z.ZodObject<{
456
+ type: z.ZodEnum<["text", "json_object"]>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ type: "text" | "json_object";
459
+ }, {
460
+ type: "text" | "json_object";
461
+ }>>;
462
+ enable_search: z.ZodOptional<z.ZodBoolean>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ model: string;
465
+ messages: {
466
+ role: "system" | "user" | "assistant" | "tool";
467
+ content: string | ({
468
+ type: "text";
469
+ text: string;
470
+ } | {
471
+ type: "image_url";
472
+ image_url: {
473
+ url: string;
474
+ detail?: "auto" | "low" | "high" | undefined;
475
+ };
476
+ })[] | null;
477
+ name?: string | undefined;
478
+ tool_calls?: {
479
+ function: {
480
+ name: string;
481
+ arguments: string;
482
+ };
483
+ type: "function";
484
+ id: string;
485
+ }[] | undefined;
486
+ tool_call_id?: string | undefined;
487
+ }[];
488
+ temperature?: number | undefined;
489
+ top_p?: number | undefined;
490
+ max_tokens?: number | undefined;
491
+ n?: number | undefined;
492
+ stop?: string | string[] | undefined;
493
+ stream?: boolean | undefined;
494
+ seed?: number | undefined;
495
+ presence_penalty?: number | undefined;
496
+ tools?: {
497
+ function: {
498
+ name: string;
499
+ description?: string | undefined;
500
+ parameters?: Record<string, unknown> | undefined;
501
+ };
502
+ type: "function";
503
+ }[] | undefined;
504
+ tool_choice?: "auto" | "none" | {
505
+ function: {
506
+ name: string;
507
+ };
508
+ type: "function";
509
+ } | undefined;
510
+ stream_options?: {
511
+ include_usage?: boolean | undefined;
512
+ } | undefined;
513
+ response_format?: {
514
+ type: "text" | "json_object";
515
+ } | undefined;
516
+ enable_search?: boolean | undefined;
517
+ }, {
518
+ model: string;
519
+ messages: {
520
+ role: "system" | "user" | "assistant" | "tool";
521
+ content: string | ({
522
+ type: "text";
523
+ text: string;
524
+ } | {
525
+ type: "image_url";
526
+ image_url: {
527
+ url: string;
528
+ detail?: "auto" | "low" | "high" | undefined;
529
+ };
530
+ })[] | null;
531
+ name?: string | undefined;
532
+ tool_calls?: {
533
+ function: {
534
+ name: string;
535
+ arguments: string;
536
+ };
537
+ type: "function";
538
+ id: string;
539
+ }[] | undefined;
540
+ tool_call_id?: string | undefined;
541
+ }[];
542
+ temperature?: number | undefined;
543
+ top_p?: number | undefined;
544
+ max_tokens?: number | undefined;
545
+ n?: number | undefined;
546
+ stop?: string | string[] | undefined;
547
+ stream?: boolean | undefined;
548
+ seed?: number | undefined;
549
+ presence_penalty?: number | undefined;
550
+ tools?: {
551
+ function: {
552
+ name: string;
553
+ description?: string | undefined;
554
+ parameters?: Record<string, unknown> | undefined;
555
+ };
556
+ type: "function";
557
+ }[] | undefined;
558
+ tool_choice?: "auto" | "none" | {
559
+ function: {
560
+ name: string;
561
+ };
562
+ type: "function";
563
+ } | undefined;
564
+ stream_options?: {
565
+ include_usage?: boolean | undefined;
566
+ } | undefined;
567
+ response_format?: {
568
+ type: "text" | "json_object";
569
+ } | undefined;
570
+ enable_search?: boolean | undefined;
571
+ }>;
572
+ export declare const AlibabaVideoMediaTypeSchema: z.ZodEnum<["first_frame", "last_frame", "driving_audio", "first_clip", "video", "reference_image"]>;
573
+ export declare const AlibabaVideoMediaSchema: z.ZodObject<{
574
+ type: z.ZodEnum<["first_frame", "last_frame", "driving_audio", "first_clip", "video", "reference_image"]>;
575
+ url: z.ZodString;
576
+ }, "strip", z.ZodTypeAny, {
577
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
578
+ url: string;
579
+ }, {
580
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
581
+ url: string;
582
+ }>;
583
+ export declare const AlibabaVideoSynthesisInputSchema: z.ZodObject<{
584
+ prompt: z.ZodOptional<z.ZodString>;
585
+ negative_prompt: z.ZodOptional<z.ZodString>;
586
+ media: z.ZodArray<z.ZodObject<{
587
+ type: z.ZodEnum<["first_frame", "last_frame", "driving_audio", "first_clip", "video", "reference_image"]>;
588
+ url: z.ZodString;
589
+ }, "strip", z.ZodTypeAny, {
590
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
591
+ url: string;
592
+ }, {
593
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
594
+ url: string;
595
+ }>, "many">;
596
+ }, "strip", z.ZodTypeAny, {
597
+ media: {
598
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
599
+ url: string;
600
+ }[];
601
+ prompt?: string | undefined;
602
+ negative_prompt?: string | undefined;
603
+ }, {
604
+ media: {
605
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
606
+ url: string;
607
+ }[];
608
+ prompt?: string | undefined;
609
+ negative_prompt?: string | undefined;
610
+ }>;
611
+ export declare const AlibabaVideoSynthesisParametersSchema: z.ZodObject<{
612
+ resolution: z.ZodOptional<z.ZodEnum<["720P", "1080P"]>>;
613
+ ratio: z.ZodOptional<z.ZodEnum<["16:9", "9:16", "1:1", "4:3", "3:4"]>>;
614
+ duration: z.ZodOptional<z.ZodNumber>;
615
+ audio_setting: z.ZodOptional<z.ZodEnum<["auto", "origin"]>>;
616
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
617
+ watermark: z.ZodOptional<z.ZodBoolean>;
618
+ seed: z.ZodOptional<z.ZodNumber>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ seed?: number | undefined;
621
+ resolution?: "720P" | "1080P" | undefined;
622
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
623
+ duration?: number | undefined;
624
+ audio_setting?: "auto" | "origin" | undefined;
625
+ prompt_extend?: boolean | undefined;
626
+ watermark?: boolean | undefined;
627
+ }, {
628
+ seed?: number | undefined;
629
+ resolution?: "720P" | "1080P" | undefined;
630
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
631
+ duration?: number | undefined;
632
+ audio_setting?: "auto" | "origin" | undefined;
633
+ prompt_extend?: boolean | undefined;
634
+ watermark?: boolean | undefined;
635
+ }>;
636
+ export declare const AlibabaVideoSynthesisRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
637
+ model: z.ZodEnum<["wan2.7-i2v", "wan2.7-videoedit"]>;
638
+ input: z.ZodObject<{
639
+ prompt: z.ZodOptional<z.ZodString>;
640
+ negative_prompt: z.ZodOptional<z.ZodString>;
641
+ media: z.ZodArray<z.ZodObject<{
642
+ type: z.ZodEnum<["first_frame", "last_frame", "driving_audio", "first_clip", "video", "reference_image"]>;
643
+ url: z.ZodString;
644
+ }, "strip", z.ZodTypeAny, {
645
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
646
+ url: string;
647
+ }, {
648
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
649
+ url: string;
650
+ }>, "many">;
651
+ }, "strip", z.ZodTypeAny, {
652
+ media: {
653
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
654
+ url: string;
655
+ }[];
656
+ prompt?: string | undefined;
657
+ negative_prompt?: string | undefined;
658
+ }, {
659
+ media: {
660
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
661
+ url: string;
662
+ }[];
663
+ prompt?: string | undefined;
664
+ negative_prompt?: string | undefined;
665
+ }>;
666
+ parameters: z.ZodOptional<z.ZodObject<{
667
+ resolution: z.ZodOptional<z.ZodEnum<["720P", "1080P"]>>;
668
+ ratio: z.ZodOptional<z.ZodEnum<["16:9", "9:16", "1:1", "4:3", "3:4"]>>;
669
+ duration: z.ZodOptional<z.ZodNumber>;
670
+ audio_setting: z.ZodOptional<z.ZodEnum<["auto", "origin"]>>;
671
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
672
+ watermark: z.ZodOptional<z.ZodBoolean>;
673
+ seed: z.ZodOptional<z.ZodNumber>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ seed?: number | undefined;
676
+ resolution?: "720P" | "1080P" | undefined;
677
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
678
+ duration?: number | undefined;
679
+ audio_setting?: "auto" | "origin" | undefined;
680
+ prompt_extend?: boolean | undefined;
681
+ watermark?: boolean | undefined;
682
+ }, {
683
+ seed?: number | undefined;
684
+ resolution?: "720P" | "1080P" | undefined;
685
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
686
+ duration?: number | undefined;
687
+ audio_setting?: "auto" | "origin" | undefined;
688
+ prompt_extend?: boolean | undefined;
689
+ watermark?: boolean | undefined;
690
+ }>>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
693
+ input: {
694
+ media: {
695
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
696
+ url: string;
697
+ }[];
698
+ prompt?: string | undefined;
699
+ negative_prompt?: string | undefined;
700
+ };
701
+ parameters?: {
702
+ seed?: number | undefined;
703
+ resolution?: "720P" | "1080P" | undefined;
704
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
705
+ duration?: number | undefined;
706
+ audio_setting?: "auto" | "origin" | undefined;
707
+ prompt_extend?: boolean | undefined;
708
+ watermark?: boolean | undefined;
709
+ } | undefined;
710
+ }, {
711
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
712
+ input: {
713
+ media: {
714
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
715
+ url: string;
716
+ }[];
717
+ prompt?: string | undefined;
718
+ negative_prompt?: string | undefined;
719
+ };
720
+ parameters?: {
721
+ seed?: number | undefined;
722
+ resolution?: "720P" | "1080P" | undefined;
723
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
724
+ duration?: number | undefined;
725
+ audio_setting?: "auto" | "origin" | undefined;
726
+ prompt_extend?: boolean | undefined;
727
+ watermark?: boolean | undefined;
728
+ } | undefined;
729
+ }>, {
730
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
731
+ input: {
732
+ media: {
733
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
734
+ url: string;
735
+ }[];
736
+ prompt?: string | undefined;
737
+ negative_prompt?: string | undefined;
738
+ };
739
+ parameters?: {
740
+ seed?: number | undefined;
741
+ resolution?: "720P" | "1080P" | undefined;
742
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
743
+ duration?: number | undefined;
744
+ audio_setting?: "auto" | "origin" | undefined;
745
+ prompt_extend?: boolean | undefined;
746
+ watermark?: boolean | undefined;
747
+ } | undefined;
748
+ }, {
749
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
750
+ input: {
751
+ media: {
752
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
753
+ url: string;
754
+ }[];
755
+ prompt?: string | undefined;
756
+ negative_prompt?: string | undefined;
757
+ };
758
+ parameters?: {
759
+ seed?: number | undefined;
760
+ resolution?: "720P" | "1080P" | undefined;
761
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
762
+ duration?: number | undefined;
763
+ audio_setting?: "auto" | "origin" | undefined;
764
+ prompt_extend?: boolean | undefined;
765
+ watermark?: boolean | undefined;
766
+ } | undefined;
767
+ }>, {
768
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
769
+ input: {
770
+ media: {
771
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
772
+ url: string;
773
+ }[];
774
+ prompt?: string | undefined;
775
+ negative_prompt?: string | undefined;
776
+ };
777
+ parameters?: {
778
+ seed?: number | undefined;
779
+ resolution?: "720P" | "1080P" | undefined;
780
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
781
+ duration?: number | undefined;
782
+ audio_setting?: "auto" | "origin" | undefined;
783
+ prompt_extend?: boolean | undefined;
784
+ watermark?: boolean | undefined;
785
+ } | undefined;
786
+ }, {
787
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
788
+ input: {
789
+ media: {
790
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
791
+ url: string;
792
+ }[];
793
+ prompt?: string | undefined;
794
+ negative_prompt?: string | undefined;
795
+ };
796
+ parameters?: {
797
+ seed?: number | undefined;
798
+ resolution?: "720P" | "1080P" | undefined;
799
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
800
+ duration?: number | undefined;
801
+ audio_setting?: "auto" | "origin" | undefined;
802
+ prompt_extend?: boolean | undefined;
803
+ watermark?: boolean | undefined;
804
+ } | undefined;
805
+ }>, {
806
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
807
+ input: {
808
+ media: {
809
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
810
+ url: string;
811
+ }[];
812
+ prompt?: string | undefined;
813
+ negative_prompt?: string | undefined;
814
+ };
815
+ parameters?: {
816
+ seed?: number | undefined;
817
+ resolution?: "720P" | "1080P" | undefined;
818
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
819
+ duration?: number | undefined;
820
+ audio_setting?: "auto" | "origin" | undefined;
821
+ prompt_extend?: boolean | undefined;
822
+ watermark?: boolean | undefined;
823
+ } | undefined;
824
+ }, {
825
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
826
+ input: {
827
+ media: {
828
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
829
+ url: string;
830
+ }[];
831
+ prompt?: string | undefined;
832
+ negative_prompt?: string | undefined;
833
+ };
834
+ parameters?: {
835
+ seed?: number | undefined;
836
+ resolution?: "720P" | "1080P" | undefined;
837
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
838
+ duration?: number | undefined;
839
+ audio_setting?: "auto" | "origin" | undefined;
840
+ prompt_extend?: boolean | undefined;
841
+ watermark?: boolean | undefined;
842
+ } | undefined;
843
+ }>, {
844
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
845
+ input: {
846
+ media: {
847
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
848
+ url: string;
849
+ }[];
850
+ prompt?: string | undefined;
851
+ negative_prompt?: string | undefined;
852
+ };
853
+ parameters?: {
854
+ seed?: number | undefined;
855
+ resolution?: "720P" | "1080P" | undefined;
856
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
857
+ duration?: number | undefined;
858
+ audio_setting?: "auto" | "origin" | undefined;
859
+ prompt_extend?: boolean | undefined;
860
+ watermark?: boolean | undefined;
861
+ } | undefined;
862
+ }, {
863
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
864
+ input: {
865
+ media: {
866
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
867
+ url: string;
868
+ }[];
869
+ prompt?: string | undefined;
870
+ negative_prompt?: string | undefined;
871
+ };
872
+ parameters?: {
873
+ seed?: number | undefined;
874
+ resolution?: "720P" | "1080P" | undefined;
875
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
876
+ duration?: number | undefined;
877
+ audio_setting?: "auto" | "origin" | undefined;
878
+ prompt_extend?: boolean | undefined;
879
+ watermark?: boolean | undefined;
880
+ } | undefined;
881
+ }>, {
882
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
883
+ input: {
884
+ media: {
885
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
886
+ url: string;
887
+ }[];
888
+ prompt?: string | undefined;
889
+ negative_prompt?: string | undefined;
890
+ };
891
+ parameters?: {
892
+ seed?: number | undefined;
893
+ resolution?: "720P" | "1080P" | undefined;
894
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
895
+ duration?: number | undefined;
896
+ audio_setting?: "auto" | "origin" | undefined;
897
+ prompt_extend?: boolean | undefined;
898
+ watermark?: boolean | undefined;
899
+ } | undefined;
900
+ }, {
901
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
902
+ input: {
903
+ media: {
904
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
905
+ url: string;
906
+ }[];
907
+ prompt?: string | undefined;
908
+ negative_prompt?: string | undefined;
909
+ };
910
+ parameters?: {
911
+ seed?: number | undefined;
912
+ resolution?: "720P" | "1080P" | undefined;
913
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
914
+ duration?: number | undefined;
915
+ audio_setting?: "auto" | "origin" | undefined;
916
+ prompt_extend?: boolean | undefined;
917
+ watermark?: boolean | undefined;
918
+ } | undefined;
919
+ }>, {
920
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
921
+ input: {
922
+ media: {
923
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
924
+ url: string;
925
+ }[];
926
+ prompt?: string | undefined;
927
+ negative_prompt?: string | undefined;
928
+ };
929
+ parameters?: {
930
+ seed?: number | undefined;
931
+ resolution?: "720P" | "1080P" | undefined;
932
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
933
+ duration?: number | undefined;
934
+ audio_setting?: "auto" | "origin" | undefined;
935
+ prompt_extend?: boolean | undefined;
936
+ watermark?: boolean | undefined;
937
+ } | undefined;
938
+ }, {
939
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
940
+ input: {
941
+ media: {
942
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
943
+ url: string;
944
+ }[];
945
+ prompt?: string | undefined;
946
+ negative_prompt?: string | undefined;
947
+ };
948
+ parameters?: {
949
+ seed?: number | undefined;
950
+ resolution?: "720P" | "1080P" | undefined;
951
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
952
+ duration?: number | undefined;
953
+ audio_setting?: "auto" | "origin" | undefined;
954
+ prompt_extend?: boolean | undefined;
955
+ watermark?: boolean | undefined;
956
+ } | undefined;
957
+ }>, {
958
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
959
+ input: {
960
+ media: {
961
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
962
+ url: string;
963
+ }[];
964
+ prompt?: string | undefined;
965
+ negative_prompt?: string | undefined;
966
+ };
967
+ parameters?: {
968
+ seed?: number | undefined;
969
+ resolution?: "720P" | "1080P" | undefined;
970
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
971
+ duration?: number | undefined;
972
+ audio_setting?: "auto" | "origin" | undefined;
973
+ prompt_extend?: boolean | undefined;
974
+ watermark?: boolean | undefined;
975
+ } | undefined;
976
+ }, {
977
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
978
+ input: {
979
+ media: {
980
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
981
+ url: string;
982
+ }[];
983
+ prompt?: string | undefined;
984
+ negative_prompt?: string | undefined;
985
+ };
986
+ parameters?: {
987
+ seed?: number | undefined;
988
+ resolution?: "720P" | "1080P" | undefined;
989
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
990
+ duration?: number | undefined;
991
+ audio_setting?: "auto" | "origin" | undefined;
992
+ prompt_extend?: boolean | undefined;
993
+ watermark?: boolean | undefined;
994
+ } | undefined;
995
+ }>, {
996
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
997
+ input: {
998
+ media: {
999
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
1000
+ url: string;
1001
+ }[];
1002
+ prompt?: string | undefined;
1003
+ negative_prompt?: string | undefined;
1004
+ };
1005
+ parameters?: {
1006
+ seed?: number | undefined;
1007
+ resolution?: "720P" | "1080P" | undefined;
1008
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
1009
+ duration?: number | undefined;
1010
+ audio_setting?: "auto" | "origin" | undefined;
1011
+ prompt_extend?: boolean | undefined;
1012
+ watermark?: boolean | undefined;
1013
+ } | undefined;
1014
+ }, {
1015
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
1016
+ input: {
1017
+ media: {
1018
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
1019
+ url: string;
1020
+ }[];
1021
+ prompt?: string | undefined;
1022
+ negative_prompt?: string | undefined;
1023
+ };
1024
+ parameters?: {
1025
+ seed?: number | undefined;
1026
+ resolution?: "720P" | "1080P" | undefined;
1027
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
1028
+ duration?: number | undefined;
1029
+ audio_setting?: "auto" | "origin" | undefined;
1030
+ prompt_extend?: boolean | undefined;
1031
+ watermark?: boolean | undefined;
1032
+ } | undefined;
1033
+ }>, {
1034
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
1035
+ input: {
1036
+ media: {
1037
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
1038
+ url: string;
1039
+ }[];
1040
+ prompt?: string | undefined;
1041
+ negative_prompt?: string | undefined;
1042
+ };
1043
+ parameters?: {
1044
+ seed?: number | undefined;
1045
+ resolution?: "720P" | "1080P" | undefined;
1046
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
1047
+ duration?: number | undefined;
1048
+ audio_setting?: "auto" | "origin" | undefined;
1049
+ prompt_extend?: boolean | undefined;
1050
+ watermark?: boolean | undefined;
1051
+ } | undefined;
1052
+ }, {
1053
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
1054
+ input: {
1055
+ media: {
1056
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
1057
+ url: string;
1058
+ }[];
1059
+ prompt?: string | undefined;
1060
+ negative_prompt?: string | undefined;
1061
+ };
1062
+ parameters?: {
1063
+ seed?: number | undefined;
1064
+ resolution?: "720P" | "1080P" | undefined;
1065
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
1066
+ duration?: number | undefined;
1067
+ audio_setting?: "auto" | "origin" | undefined;
1068
+ prompt_extend?: boolean | undefined;
1069
+ watermark?: boolean | undefined;
1070
+ } | undefined;
1071
+ }>, {
1072
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
1073
+ input: {
1074
+ media: {
1075
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
1076
+ url: string;
1077
+ }[];
1078
+ prompt?: string | undefined;
1079
+ negative_prompt?: string | undefined;
1080
+ };
1081
+ parameters?: {
1082
+ seed?: number | undefined;
1083
+ resolution?: "720P" | "1080P" | undefined;
1084
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
1085
+ duration?: number | undefined;
1086
+ audio_setting?: "auto" | "origin" | undefined;
1087
+ prompt_extend?: boolean | undefined;
1088
+ watermark?: boolean | undefined;
1089
+ } | undefined;
1090
+ }, {
1091
+ model: "wan2.7-i2v" | "wan2.7-videoedit";
1092
+ input: {
1093
+ media: {
1094
+ type: "first_frame" | "last_frame" | "driving_audio" | "first_clip" | "video" | "reference_image";
1095
+ url: string;
1096
+ }[];
1097
+ prompt?: string | undefined;
1098
+ negative_prompt?: string | undefined;
1099
+ };
1100
+ parameters?: {
1101
+ seed?: number | undefined;
1102
+ resolution?: "720P" | "1080P" | undefined;
1103
+ ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | undefined;
1104
+ duration?: number | undefined;
1105
+ audio_setting?: "auto" | "origin" | undefined;
1106
+ prompt_extend?: boolean | undefined;
1107
+ watermark?: boolean | undefined;
1108
+ } | undefined;
1109
+ }>;
1110
+ export declare const AlibabaImageTextContentSchema: z.ZodObject<{
1111
+ text: z.ZodString;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ text: string;
1114
+ }, {
1115
+ text: string;
1116
+ }>;
1117
+ export declare const AlibabaImageImageContentSchema: z.ZodObject<{
1118
+ image: z.ZodString;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ image: string;
1121
+ }, {
1122
+ image: string;
1123
+ }>;
1124
+ export declare const AlibabaImageContentSchema: z.ZodUnion<[z.ZodObject<{
1125
+ text: z.ZodString;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ text: string;
1128
+ }, {
1129
+ text: string;
1130
+ }>, z.ZodObject<{
1131
+ image: z.ZodString;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ image: string;
1134
+ }, {
1135
+ image: string;
1136
+ }>]>;
1137
+ export declare const AlibabaImageGenerationMessageSchema: z.ZodObject<{
1138
+ role: z.ZodLiteral<"user">;
1139
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1140
+ text: z.ZodString;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ text: string;
1143
+ }, {
1144
+ text: string;
1145
+ }>, z.ZodObject<{
1146
+ image: z.ZodString;
1147
+ }, "strip", z.ZodTypeAny, {
1148
+ image: string;
1149
+ }, {
1150
+ image: string;
1151
+ }>]>, "many">;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ role: "user";
1154
+ content: ({
1155
+ text: string;
1156
+ } | {
1157
+ image: string;
1158
+ })[];
1159
+ }, {
1160
+ role: "user";
1161
+ content: ({
1162
+ text: string;
1163
+ } | {
1164
+ image: string;
1165
+ })[];
1166
+ }>;
1167
+ export declare const AlibabaImageGenerationInputSchema: z.ZodObject<{
1168
+ messages: z.ZodArray<z.ZodObject<{
1169
+ role: z.ZodLiteral<"user">;
1170
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1171
+ text: z.ZodString;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ text: string;
1174
+ }, {
1175
+ text: string;
1176
+ }>, z.ZodObject<{
1177
+ image: z.ZodString;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ image: string;
1180
+ }, {
1181
+ image: string;
1182
+ }>]>, "many">;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ role: "user";
1185
+ content: ({
1186
+ text: string;
1187
+ } | {
1188
+ image: string;
1189
+ })[];
1190
+ }, {
1191
+ role: "user";
1192
+ content: ({
1193
+ text: string;
1194
+ } | {
1195
+ image: string;
1196
+ })[];
1197
+ }>, "many">;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ messages: {
1200
+ role: "user";
1201
+ content: ({
1202
+ text: string;
1203
+ } | {
1204
+ image: string;
1205
+ })[];
1206
+ }[];
1207
+ }, {
1208
+ messages: {
1209
+ role: "user";
1210
+ content: ({
1211
+ text: string;
1212
+ } | {
1213
+ image: string;
1214
+ })[];
1215
+ }[];
1216
+ }>;
1217
+ export declare const AlibabaColorPaletteItemSchema: z.ZodObject<{
1218
+ hex: z.ZodString;
1219
+ ratio: z.ZodString;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ ratio: string;
1222
+ hex: string;
1223
+ }, {
1224
+ ratio: string;
1225
+ hex: string;
1226
+ }>;
1227
+ export declare const AlibabaImageGenerationParametersSchema: z.ZodObject<{
1228
+ size: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["1K", "2K", "4K"]>, z.ZodString]>>;
1229
+ n: z.ZodOptional<z.ZodNumber>;
1230
+ negative_prompt: z.ZodOptional<z.ZodString>;
1231
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
1232
+ watermark: z.ZodOptional<z.ZodBoolean>;
1233
+ thinking_mode: z.ZodOptional<z.ZodBoolean>;
1234
+ color_palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
1235
+ hex: z.ZodString;
1236
+ ratio: z.ZodString;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ ratio: string;
1239
+ hex: string;
1240
+ }, {
1241
+ ratio: string;
1242
+ hex: string;
1243
+ }>, "many">>;
1244
+ seed: z.ZodOptional<z.ZodNumber>;
1245
+ enable_sequential: z.ZodOptional<z.ZodBoolean>;
1246
+ bbox_list: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ n?: number | undefined;
1249
+ seed?: number | undefined;
1250
+ negative_prompt?: string | undefined;
1251
+ prompt_extend?: boolean | undefined;
1252
+ watermark?: boolean | undefined;
1253
+ size?: string | undefined;
1254
+ thinking_mode?: boolean | undefined;
1255
+ color_palette?: {
1256
+ ratio: string;
1257
+ hex: string;
1258
+ }[] | undefined;
1259
+ enable_sequential?: boolean | undefined;
1260
+ bbox_list?: number[][][] | undefined;
1261
+ }, {
1262
+ n?: number | undefined;
1263
+ seed?: number | undefined;
1264
+ negative_prompt?: string | undefined;
1265
+ prompt_extend?: boolean | undefined;
1266
+ watermark?: boolean | undefined;
1267
+ size?: string | undefined;
1268
+ thinking_mode?: boolean | undefined;
1269
+ color_palette?: {
1270
+ ratio: string;
1271
+ hex: string;
1272
+ }[] | undefined;
1273
+ enable_sequential?: boolean | undefined;
1274
+ bbox_list?: number[][][] | undefined;
1275
+ }>;
1276
+ export declare const AlibabaImageGenerationRequestSchema: z.ZodObject<{
1277
+ model: z.ZodEnum<["wan2.7-image-pro", "wan2.7-image"]>;
1278
+ input: z.ZodObject<{
1279
+ messages: z.ZodArray<z.ZodObject<{
1280
+ role: z.ZodLiteral<"user">;
1281
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1282
+ text: z.ZodString;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ text: string;
1285
+ }, {
1286
+ text: string;
1287
+ }>, z.ZodObject<{
1288
+ image: z.ZodString;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ image: string;
1291
+ }, {
1292
+ image: string;
1293
+ }>]>, "many">;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ role: "user";
1296
+ content: ({
1297
+ text: string;
1298
+ } | {
1299
+ image: string;
1300
+ })[];
1301
+ }, {
1302
+ role: "user";
1303
+ content: ({
1304
+ text: string;
1305
+ } | {
1306
+ image: string;
1307
+ })[];
1308
+ }>, "many">;
1309
+ }, "strip", z.ZodTypeAny, {
1310
+ messages: {
1311
+ role: "user";
1312
+ content: ({
1313
+ text: string;
1314
+ } | {
1315
+ image: string;
1316
+ })[];
1317
+ }[];
1318
+ }, {
1319
+ messages: {
1320
+ role: "user";
1321
+ content: ({
1322
+ text: string;
1323
+ } | {
1324
+ image: string;
1325
+ })[];
1326
+ }[];
1327
+ }>;
1328
+ parameters: z.ZodOptional<z.ZodObject<{
1329
+ size: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["1K", "2K", "4K"]>, z.ZodString]>>;
1330
+ n: z.ZodOptional<z.ZodNumber>;
1331
+ negative_prompt: z.ZodOptional<z.ZodString>;
1332
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
1333
+ watermark: z.ZodOptional<z.ZodBoolean>;
1334
+ thinking_mode: z.ZodOptional<z.ZodBoolean>;
1335
+ color_palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
1336
+ hex: z.ZodString;
1337
+ ratio: z.ZodString;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ ratio: string;
1340
+ hex: string;
1341
+ }, {
1342
+ ratio: string;
1343
+ hex: string;
1344
+ }>, "many">>;
1345
+ seed: z.ZodOptional<z.ZodNumber>;
1346
+ enable_sequential: z.ZodOptional<z.ZodBoolean>;
1347
+ bbox_list: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ n?: number | undefined;
1350
+ seed?: number | undefined;
1351
+ negative_prompt?: string | undefined;
1352
+ prompt_extend?: boolean | undefined;
1353
+ watermark?: boolean | undefined;
1354
+ size?: string | undefined;
1355
+ thinking_mode?: boolean | undefined;
1356
+ color_palette?: {
1357
+ ratio: string;
1358
+ hex: string;
1359
+ }[] | undefined;
1360
+ enable_sequential?: boolean | undefined;
1361
+ bbox_list?: number[][][] | undefined;
1362
+ }, {
1363
+ n?: number | undefined;
1364
+ seed?: number | undefined;
1365
+ negative_prompt?: string | undefined;
1366
+ prompt_extend?: boolean | undefined;
1367
+ watermark?: boolean | undefined;
1368
+ size?: string | undefined;
1369
+ thinking_mode?: boolean | undefined;
1370
+ color_palette?: {
1371
+ ratio: string;
1372
+ hex: string;
1373
+ }[] | undefined;
1374
+ enable_sequential?: boolean | undefined;
1375
+ bbox_list?: number[][][] | undefined;
1376
+ }>>;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ model: "wan2.7-image-pro" | "wan2.7-image";
1379
+ input: {
1380
+ messages: {
1381
+ role: "user";
1382
+ content: ({
1383
+ text: string;
1384
+ } | {
1385
+ image: string;
1386
+ })[];
1387
+ }[];
1388
+ };
1389
+ parameters?: {
1390
+ n?: number | undefined;
1391
+ seed?: number | undefined;
1392
+ negative_prompt?: string | undefined;
1393
+ prompt_extend?: boolean | undefined;
1394
+ watermark?: boolean | undefined;
1395
+ size?: string | undefined;
1396
+ thinking_mode?: boolean | undefined;
1397
+ color_palette?: {
1398
+ ratio: string;
1399
+ hex: string;
1400
+ }[] | undefined;
1401
+ enable_sequential?: boolean | undefined;
1402
+ bbox_list?: number[][][] | undefined;
1403
+ } | undefined;
1404
+ }, {
1405
+ model: "wan2.7-image-pro" | "wan2.7-image";
1406
+ input: {
1407
+ messages: {
1408
+ role: "user";
1409
+ content: ({
1410
+ text: string;
1411
+ } | {
1412
+ image: string;
1413
+ })[];
1414
+ }[];
1415
+ };
1416
+ parameters?: {
1417
+ n?: number | undefined;
1418
+ seed?: number | undefined;
1419
+ negative_prompt?: string | undefined;
1420
+ prompt_extend?: boolean | undefined;
1421
+ watermark?: boolean | undefined;
1422
+ size?: string | undefined;
1423
+ thinking_mode?: boolean | undefined;
1424
+ color_palette?: {
1425
+ ratio: string;
1426
+ hex: string;
1427
+ }[] | undefined;
1428
+ enable_sequential?: boolean | undefined;
1429
+ bbox_list?: number[][][] | undefined;
1430
+ } | undefined;
1431
+ }>;
1432
+ export declare const AlibabaImageReferenceSlotsSchema: z.ZodArray<z.ZodString, "many">;
1433
+ export declare const AlibabaMultimodalGenerationMessageSchema: z.ZodObject<{
1434
+ role: z.ZodLiteral<"user">;
1435
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1436
+ text: z.ZodString;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ text: string;
1439
+ }, {
1440
+ text: string;
1441
+ }>, z.ZodObject<{
1442
+ image: z.ZodString;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ image: string;
1445
+ }, {
1446
+ image: string;
1447
+ }>]>, "many">;
1448
+ }, "strip", z.ZodTypeAny, {
1449
+ role: "user";
1450
+ content: ({
1451
+ text: string;
1452
+ } | {
1453
+ image: string;
1454
+ })[];
1455
+ }, {
1456
+ role: "user";
1457
+ content: ({
1458
+ text: string;
1459
+ } | {
1460
+ image: string;
1461
+ })[];
1462
+ }>;
1463
+ export declare const AlibabaMultimodalGenerationInputSchema: z.ZodObject<{
1464
+ messages: z.ZodArray<z.ZodObject<{
1465
+ role: z.ZodLiteral<"user">;
1466
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1467
+ text: z.ZodString;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ text: string;
1470
+ }, {
1471
+ text: string;
1472
+ }>, z.ZodObject<{
1473
+ image: z.ZodString;
1474
+ }, "strip", z.ZodTypeAny, {
1475
+ image: string;
1476
+ }, {
1477
+ image: string;
1478
+ }>]>, "many">;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ role: "user";
1481
+ content: ({
1482
+ text: string;
1483
+ } | {
1484
+ image: string;
1485
+ })[];
1486
+ }, {
1487
+ role: "user";
1488
+ content: ({
1489
+ text: string;
1490
+ } | {
1491
+ image: string;
1492
+ })[];
1493
+ }>, "many">;
1494
+ }, "strip", z.ZodTypeAny, {
1495
+ messages: {
1496
+ role: "user";
1497
+ content: ({
1498
+ text: string;
1499
+ } | {
1500
+ image: string;
1501
+ })[];
1502
+ }[];
1503
+ }, {
1504
+ messages: {
1505
+ role: "user";
1506
+ content: ({
1507
+ text: string;
1508
+ } | {
1509
+ image: string;
1510
+ })[];
1511
+ }[];
1512
+ }>;
1513
+ export declare const AlibabaMultimodalGenerationParametersSchema: z.ZodObject<{
1514
+ n: z.ZodOptional<z.ZodNumber>;
1515
+ negative_prompt: z.ZodOptional<z.ZodString>;
1516
+ size: z.ZodOptional<z.ZodString>;
1517
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
1518
+ watermark: z.ZodOptional<z.ZodBoolean>;
1519
+ seed: z.ZodOptional<z.ZodNumber>;
1520
+ }, "strip", z.ZodTypeAny, {
1521
+ n?: number | undefined;
1522
+ seed?: number | undefined;
1523
+ negative_prompt?: string | undefined;
1524
+ prompt_extend?: boolean | undefined;
1525
+ watermark?: boolean | undefined;
1526
+ size?: string | undefined;
1527
+ }, {
1528
+ n?: number | undefined;
1529
+ seed?: number | undefined;
1530
+ negative_prompt?: string | undefined;
1531
+ prompt_extend?: boolean | undefined;
1532
+ watermark?: boolean | undefined;
1533
+ size?: string | undefined;
1534
+ }>;
1535
+ export declare const AlibabaMultimodalGenerationRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1536
+ model: z.ZodEnum<["qwen-image-2.0-pro", "qwen-image-2.0-pro-2026-03-03", "qwen-image-2.0", "qwen-image-2.0-2026-03-03", "qwen-image-edit-max", "qwen-image-edit-max-2026-01-16", "qwen-image-edit-plus", "qwen-image-edit-plus-2025-12-15", "qwen-image-edit-plus-2025-10-30", "qwen-image-edit"]>;
1537
+ input: z.ZodObject<{
1538
+ messages: z.ZodArray<z.ZodObject<{
1539
+ role: z.ZodLiteral<"user">;
1540
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1541
+ text: z.ZodString;
1542
+ }, "strip", z.ZodTypeAny, {
1543
+ text: string;
1544
+ }, {
1545
+ text: string;
1546
+ }>, z.ZodObject<{
1547
+ image: z.ZodString;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ image: string;
1550
+ }, {
1551
+ image: string;
1552
+ }>]>, "many">;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ role: "user";
1555
+ content: ({
1556
+ text: string;
1557
+ } | {
1558
+ image: string;
1559
+ })[];
1560
+ }, {
1561
+ role: "user";
1562
+ content: ({
1563
+ text: string;
1564
+ } | {
1565
+ image: string;
1566
+ })[];
1567
+ }>, "many">;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ messages: {
1570
+ role: "user";
1571
+ content: ({
1572
+ text: string;
1573
+ } | {
1574
+ image: string;
1575
+ })[];
1576
+ }[];
1577
+ }, {
1578
+ messages: {
1579
+ role: "user";
1580
+ content: ({
1581
+ text: string;
1582
+ } | {
1583
+ image: string;
1584
+ })[];
1585
+ }[];
1586
+ }>;
1587
+ parameters: z.ZodOptional<z.ZodObject<{
1588
+ n: z.ZodOptional<z.ZodNumber>;
1589
+ negative_prompt: z.ZodOptional<z.ZodString>;
1590
+ size: z.ZodOptional<z.ZodString>;
1591
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
1592
+ watermark: z.ZodOptional<z.ZodBoolean>;
1593
+ seed: z.ZodOptional<z.ZodNumber>;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ n?: number | undefined;
1596
+ seed?: number | undefined;
1597
+ negative_prompt?: string | undefined;
1598
+ prompt_extend?: boolean | undefined;
1599
+ watermark?: boolean | undefined;
1600
+ size?: string | undefined;
1601
+ }, {
1602
+ n?: number | undefined;
1603
+ seed?: number | undefined;
1604
+ negative_prompt?: string | undefined;
1605
+ prompt_extend?: boolean | undefined;
1606
+ watermark?: boolean | undefined;
1607
+ size?: string | undefined;
1608
+ }>>;
1609
+ }, "strip", z.ZodTypeAny, {
1610
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1611
+ input: {
1612
+ messages: {
1613
+ role: "user";
1614
+ content: ({
1615
+ text: string;
1616
+ } | {
1617
+ image: string;
1618
+ })[];
1619
+ }[];
1620
+ };
1621
+ parameters?: {
1622
+ n?: number | undefined;
1623
+ seed?: number | undefined;
1624
+ negative_prompt?: string | undefined;
1625
+ prompt_extend?: boolean | undefined;
1626
+ watermark?: boolean | undefined;
1627
+ size?: string | undefined;
1628
+ } | undefined;
1629
+ }, {
1630
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1631
+ input: {
1632
+ messages: {
1633
+ role: "user";
1634
+ content: ({
1635
+ text: string;
1636
+ } | {
1637
+ image: string;
1638
+ })[];
1639
+ }[];
1640
+ };
1641
+ parameters?: {
1642
+ n?: number | undefined;
1643
+ seed?: number | undefined;
1644
+ negative_prompt?: string | undefined;
1645
+ prompt_extend?: boolean | undefined;
1646
+ watermark?: boolean | undefined;
1647
+ size?: string | undefined;
1648
+ } | undefined;
1649
+ }>, {
1650
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1651
+ input: {
1652
+ messages: {
1653
+ role: "user";
1654
+ content: ({
1655
+ text: string;
1656
+ } | {
1657
+ image: string;
1658
+ })[];
1659
+ }[];
1660
+ };
1661
+ parameters?: {
1662
+ n?: number | undefined;
1663
+ seed?: number | undefined;
1664
+ negative_prompt?: string | undefined;
1665
+ prompt_extend?: boolean | undefined;
1666
+ watermark?: boolean | undefined;
1667
+ size?: string | undefined;
1668
+ } | undefined;
1669
+ }, {
1670
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1671
+ input: {
1672
+ messages: {
1673
+ role: "user";
1674
+ content: ({
1675
+ text: string;
1676
+ } | {
1677
+ image: string;
1678
+ })[];
1679
+ }[];
1680
+ };
1681
+ parameters?: {
1682
+ n?: number | undefined;
1683
+ seed?: number | undefined;
1684
+ negative_prompt?: string | undefined;
1685
+ prompt_extend?: boolean | undefined;
1686
+ watermark?: boolean | undefined;
1687
+ size?: string | undefined;
1688
+ } | undefined;
1689
+ }>, {
1690
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1691
+ input: {
1692
+ messages: {
1693
+ role: "user";
1694
+ content: ({
1695
+ text: string;
1696
+ } | {
1697
+ image: string;
1698
+ })[];
1699
+ }[];
1700
+ };
1701
+ parameters?: {
1702
+ n?: number | undefined;
1703
+ seed?: number | undefined;
1704
+ negative_prompt?: string | undefined;
1705
+ prompt_extend?: boolean | undefined;
1706
+ watermark?: boolean | undefined;
1707
+ size?: string | undefined;
1708
+ } | undefined;
1709
+ }, {
1710
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1711
+ input: {
1712
+ messages: {
1713
+ role: "user";
1714
+ content: ({
1715
+ text: string;
1716
+ } | {
1717
+ image: string;
1718
+ })[];
1719
+ }[];
1720
+ };
1721
+ parameters?: {
1722
+ n?: number | undefined;
1723
+ seed?: number | undefined;
1724
+ negative_prompt?: string | undefined;
1725
+ prompt_extend?: boolean | undefined;
1726
+ watermark?: boolean | undefined;
1727
+ size?: string | undefined;
1728
+ } | undefined;
1729
+ }>, {
1730
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1731
+ input: {
1732
+ messages: {
1733
+ role: "user";
1734
+ content: ({
1735
+ text: string;
1736
+ } | {
1737
+ image: string;
1738
+ })[];
1739
+ }[];
1740
+ };
1741
+ parameters?: {
1742
+ n?: number | undefined;
1743
+ seed?: number | undefined;
1744
+ negative_prompt?: string | undefined;
1745
+ prompt_extend?: boolean | undefined;
1746
+ watermark?: boolean | undefined;
1747
+ size?: string | undefined;
1748
+ } | undefined;
1749
+ }, {
1750
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1751
+ input: {
1752
+ messages: {
1753
+ role: "user";
1754
+ content: ({
1755
+ text: string;
1756
+ } | {
1757
+ image: string;
1758
+ })[];
1759
+ }[];
1760
+ };
1761
+ parameters?: {
1762
+ n?: number | undefined;
1763
+ seed?: number | undefined;
1764
+ negative_prompt?: string | undefined;
1765
+ prompt_extend?: boolean | undefined;
1766
+ watermark?: boolean | undefined;
1767
+ size?: string | undefined;
1768
+ } | undefined;
1769
+ }>, {
1770
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1771
+ input: {
1772
+ messages: {
1773
+ role: "user";
1774
+ content: ({
1775
+ text: string;
1776
+ } | {
1777
+ image: string;
1778
+ })[];
1779
+ }[];
1780
+ };
1781
+ parameters?: {
1782
+ n?: number | undefined;
1783
+ seed?: number | undefined;
1784
+ negative_prompt?: string | undefined;
1785
+ prompt_extend?: boolean | undefined;
1786
+ watermark?: boolean | undefined;
1787
+ size?: string | undefined;
1788
+ } | undefined;
1789
+ }, {
1790
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1791
+ input: {
1792
+ messages: {
1793
+ role: "user";
1794
+ content: ({
1795
+ text: string;
1796
+ } | {
1797
+ image: string;
1798
+ })[];
1799
+ }[];
1800
+ };
1801
+ parameters?: {
1802
+ n?: number | undefined;
1803
+ seed?: number | undefined;
1804
+ negative_prompt?: string | undefined;
1805
+ prompt_extend?: boolean | undefined;
1806
+ watermark?: boolean | undefined;
1807
+ size?: string | undefined;
1808
+ } | undefined;
1809
+ }>, {
1810
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1811
+ input: {
1812
+ messages: {
1813
+ role: "user";
1814
+ content: ({
1815
+ text: string;
1816
+ } | {
1817
+ image: string;
1818
+ })[];
1819
+ }[];
1820
+ };
1821
+ parameters?: {
1822
+ n?: number | undefined;
1823
+ seed?: number | undefined;
1824
+ negative_prompt?: string | undefined;
1825
+ prompt_extend?: boolean | undefined;
1826
+ watermark?: boolean | undefined;
1827
+ size?: string | undefined;
1828
+ } | undefined;
1829
+ }, {
1830
+ model: "qwen-image-2.0-pro" | "qwen-image-2.0-pro-2026-03-03" | "qwen-image-2.0" | "qwen-image-2.0-2026-03-03" | "qwen-image-edit-max" | "qwen-image-edit-max-2026-01-16" | "qwen-image-edit-plus" | "qwen-image-edit-plus-2025-12-15" | "qwen-image-edit-plus-2025-10-30" | "qwen-image-edit";
1831
+ input: {
1832
+ messages: {
1833
+ role: "user";
1834
+ content: ({
1835
+ text: string;
1836
+ } | {
1837
+ image: string;
1838
+ })[];
1839
+ }[];
1840
+ };
1841
+ parameters?: {
1842
+ n?: number | undefined;
1843
+ seed?: number | undefined;
1844
+ negative_prompt?: string | undefined;
1845
+ prompt_extend?: boolean | undefined;
1846
+ watermark?: boolean | undefined;
1847
+ size?: string | undefined;
1848
+ } | undefined;
1849
+ }>;
1850
+ export declare const AlibabaOptionsSchema: z.ZodObject<{
1851
+ apiKey: z.ZodString;
1852
+ baseURL: z.ZodOptional<z.ZodString>;
1853
+ timeout: z.ZodOptional<z.ZodNumber>;
1854
+ fetch: z.ZodOptional<z.ZodType<(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>, z.ZodTypeDef, (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>>>;
1855
+ }, "strip", z.ZodTypeAny, {
1856
+ apiKey: string;
1857
+ baseURL?: string | undefined;
1858
+ timeout?: number | undefined;
1859
+ fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
1860
+ }, {
1861
+ apiKey: string;
1862
+ baseURL?: string | undefined;
1863
+ timeout?: number | undefined;
1864
+ fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
1865
+ }>;
1866
+ export type AlibabaFunctionDefinition = z.infer<typeof AlibabaFunctionDefinitionSchema>;
1867
+ export type AlibabaTool = z.infer<typeof AlibabaToolSchema>;
1868
+ export type AlibabaToolCallFunction = z.infer<typeof AlibabaToolCallFunctionSchema>;
1869
+ export type AlibabaToolCall = z.infer<typeof AlibabaToolCallSchema>;
1870
+ export type AlibabaTextPart = z.infer<typeof AlibabaTextPartSchema>;
1871
+ export type AlibabaImageUrlPart = z.infer<typeof AlibabaImageUrlPartSchema>;
1872
+ export type AlibabaContentPart = z.infer<typeof AlibabaContentPartSchema>;
1873
+ export type AlibabaMessage = z.infer<typeof AlibabaMessageSchema>;
1874
+ export type AlibabaStreamOptions = z.infer<typeof AlibabaStreamOptionsSchema>;
1875
+ export type AlibabaResponseFormat = z.infer<typeof AlibabaResponseFormatSchema>;
1876
+ export type AlibabaChatRequest = z.infer<typeof AlibabaChatRequestSchema>;
1877
+ export type AlibabaVideoMediaType = z.infer<typeof AlibabaVideoMediaTypeSchema>;
1878
+ export type AlibabaVideoMedia = z.infer<typeof AlibabaVideoMediaSchema>;
1879
+ export type AlibabaVideoSynthesisInput = z.infer<typeof AlibabaVideoSynthesisInputSchema>;
1880
+ export type AlibabaVideoSynthesisParameters = z.infer<typeof AlibabaVideoSynthesisParametersSchema>;
1881
+ export type AlibabaVideoSynthesisRequest = z.infer<typeof AlibabaVideoSynthesisRequestSchema>;
1882
+ export type AlibabaImageTextContent = z.infer<typeof AlibabaImageTextContentSchema>;
1883
+ export type AlibabaImageImageContent = z.infer<typeof AlibabaImageImageContentSchema>;
1884
+ export type AlibabaImageContent = z.infer<typeof AlibabaImageContentSchema>;
1885
+ export type AlibabaImageGenerationMessage = z.infer<typeof AlibabaImageGenerationMessageSchema>;
1886
+ export type AlibabaImageGenerationInput = z.infer<typeof AlibabaImageGenerationInputSchema>;
1887
+ export type AlibabaColorPaletteItem = z.infer<typeof AlibabaColorPaletteItemSchema>;
1888
+ export type AlibabaImageGenerationParameters = z.infer<typeof AlibabaImageGenerationParametersSchema>;
1889
+ export type AlibabaImageGenerationRequest = z.infer<typeof AlibabaImageGenerationRequestSchema>;
1890
+ export type AlibabaImageReferenceSlots = z.infer<typeof AlibabaImageReferenceSlotsSchema>;
1891
+ export type AlibabaMultimodalGenerationMessage = z.infer<typeof AlibabaMultimodalGenerationMessageSchema>;
1892
+ export type AlibabaMultimodalGenerationInput = z.infer<typeof AlibabaMultimodalGenerationInputSchema>;
1893
+ export type AlibabaMultimodalGenerationParameters = z.infer<typeof AlibabaMultimodalGenerationParametersSchema>;
1894
+ export type AlibabaMultimodalGenerationRequest = z.infer<typeof AlibabaMultimodalGenerationRequestSchema>;
1895
+ export type AlibabaOptions = z.infer<typeof AlibabaOptionsSchema>;
1896
+ export declare const AlibabaRoleSchema: z.ZodEnum<["system", "user", "assistant", "tool"]>;
1897
+ export declare const AlibabaFinishReasonSchema: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
1898
+ export declare const AlibabaTaskStatusSchema: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
1899
+ export declare const AlibabaChatResponseMessageSchema: z.ZodObject<{
1900
+ role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
1901
+ content: z.ZodNullable<z.ZodString>;
1902
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1903
+ id: z.ZodString;
1904
+ type: z.ZodLiteral<"function">;
1905
+ function: z.ZodObject<{
1906
+ name: z.ZodString;
1907
+ arguments: z.ZodString;
1908
+ }, "strip", z.ZodTypeAny, {
1909
+ name: string;
1910
+ arguments: string;
1911
+ }, {
1912
+ name: string;
1913
+ arguments: string;
1914
+ }>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ function: {
1917
+ name: string;
1918
+ arguments: string;
1919
+ };
1920
+ type: "function";
1921
+ id: string;
1922
+ }, {
1923
+ function: {
1924
+ name: string;
1925
+ arguments: string;
1926
+ };
1927
+ type: "function";
1928
+ id: string;
1929
+ }>, "many">>;
1930
+ }, "strip", z.ZodTypeAny, {
1931
+ role: "system" | "user" | "assistant" | "tool";
1932
+ content: string | null;
1933
+ tool_calls?: {
1934
+ function: {
1935
+ name: string;
1936
+ arguments: string;
1937
+ };
1938
+ type: "function";
1939
+ id: string;
1940
+ }[] | undefined;
1941
+ }, {
1942
+ role: "system" | "user" | "assistant" | "tool";
1943
+ content: string | null;
1944
+ tool_calls?: {
1945
+ function: {
1946
+ name: string;
1947
+ arguments: string;
1948
+ };
1949
+ type: "function";
1950
+ id: string;
1951
+ }[] | undefined;
1952
+ }>;
1953
+ export declare const AlibabaChatChoiceSchema: z.ZodObject<{
1954
+ index: z.ZodNumber;
1955
+ message: z.ZodObject<{
1956
+ role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
1957
+ content: z.ZodNullable<z.ZodString>;
1958
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1959
+ id: z.ZodString;
1960
+ type: z.ZodLiteral<"function">;
1961
+ function: z.ZodObject<{
1962
+ name: z.ZodString;
1963
+ arguments: z.ZodString;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ name: string;
1966
+ arguments: string;
1967
+ }, {
1968
+ name: string;
1969
+ arguments: string;
1970
+ }>;
1971
+ }, "strip", z.ZodTypeAny, {
1972
+ function: {
1973
+ name: string;
1974
+ arguments: string;
1975
+ };
1976
+ type: "function";
1977
+ id: string;
1978
+ }, {
1979
+ function: {
1980
+ name: string;
1981
+ arguments: string;
1982
+ };
1983
+ type: "function";
1984
+ id: string;
1985
+ }>, "many">>;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ role: "system" | "user" | "assistant" | "tool";
1988
+ content: string | null;
1989
+ tool_calls?: {
1990
+ function: {
1991
+ name: string;
1992
+ arguments: string;
1993
+ };
1994
+ type: "function";
1995
+ id: string;
1996
+ }[] | undefined;
1997
+ }, {
1998
+ role: "system" | "user" | "assistant" | "tool";
1999
+ content: string | null;
2000
+ tool_calls?: {
2001
+ function: {
2002
+ name: string;
2003
+ arguments: string;
2004
+ };
2005
+ type: "function";
2006
+ id: string;
2007
+ }[] | undefined;
2008
+ }>;
2009
+ finish_reason: z.ZodNullable<z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>>;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ message: {
2012
+ role: "system" | "user" | "assistant" | "tool";
2013
+ content: string | null;
2014
+ tool_calls?: {
2015
+ function: {
2016
+ name: string;
2017
+ arguments: string;
2018
+ };
2019
+ type: "function";
2020
+ id: string;
2021
+ }[] | undefined;
2022
+ };
2023
+ index: number;
2024
+ finish_reason: string | null;
2025
+ }, {
2026
+ message: {
2027
+ role: "system" | "user" | "assistant" | "tool";
2028
+ content: string | null;
2029
+ tool_calls?: {
2030
+ function: {
2031
+ name: string;
2032
+ arguments: string;
2033
+ };
2034
+ type: "function";
2035
+ id: string;
2036
+ }[] | undefined;
2037
+ };
2038
+ index: number;
2039
+ finish_reason: string | null;
2040
+ }>;
2041
+ export declare const AlibabaUsageSchema: z.ZodObject<{
2042
+ prompt_tokens: z.ZodNumber;
2043
+ completion_tokens: z.ZodNumber;
2044
+ total_tokens: z.ZodNumber;
2045
+ }, "strip", z.ZodTypeAny, {
2046
+ prompt_tokens: number;
2047
+ completion_tokens: number;
2048
+ total_tokens: number;
2049
+ }, {
2050
+ prompt_tokens: number;
2051
+ completion_tokens: number;
2052
+ total_tokens: number;
2053
+ }>;
2054
+ export declare const AlibabaChatResponseSchema: z.ZodObject<{
2055
+ id: z.ZodString;
2056
+ object: z.ZodString;
2057
+ created: z.ZodNumber;
2058
+ model: z.ZodString;
2059
+ choices: z.ZodArray<z.ZodObject<{
2060
+ index: z.ZodNumber;
2061
+ message: z.ZodObject<{
2062
+ role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
2063
+ content: z.ZodNullable<z.ZodString>;
2064
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2065
+ id: z.ZodString;
2066
+ type: z.ZodLiteral<"function">;
2067
+ function: z.ZodObject<{
2068
+ name: z.ZodString;
2069
+ arguments: z.ZodString;
2070
+ }, "strip", z.ZodTypeAny, {
2071
+ name: string;
2072
+ arguments: string;
2073
+ }, {
2074
+ name: string;
2075
+ arguments: string;
2076
+ }>;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ function: {
2079
+ name: string;
2080
+ arguments: string;
2081
+ };
2082
+ type: "function";
2083
+ id: string;
2084
+ }, {
2085
+ function: {
2086
+ name: string;
2087
+ arguments: string;
2088
+ };
2089
+ type: "function";
2090
+ id: string;
2091
+ }>, "many">>;
2092
+ }, "strip", z.ZodTypeAny, {
2093
+ role: "system" | "user" | "assistant" | "tool";
2094
+ content: string | null;
2095
+ tool_calls?: {
2096
+ function: {
2097
+ name: string;
2098
+ arguments: string;
2099
+ };
2100
+ type: "function";
2101
+ id: string;
2102
+ }[] | undefined;
2103
+ }, {
2104
+ role: "system" | "user" | "assistant" | "tool";
2105
+ content: string | null;
2106
+ tool_calls?: {
2107
+ function: {
2108
+ name: string;
2109
+ arguments: string;
2110
+ };
2111
+ type: "function";
2112
+ id: string;
2113
+ }[] | undefined;
2114
+ }>;
2115
+ finish_reason: z.ZodNullable<z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>>;
2116
+ }, "strip", z.ZodTypeAny, {
2117
+ message: {
2118
+ role: "system" | "user" | "assistant" | "tool";
2119
+ content: string | null;
2120
+ tool_calls?: {
2121
+ function: {
2122
+ name: string;
2123
+ arguments: string;
2124
+ };
2125
+ type: "function";
2126
+ id: string;
2127
+ }[] | undefined;
2128
+ };
2129
+ index: number;
2130
+ finish_reason: string | null;
2131
+ }, {
2132
+ message: {
2133
+ role: "system" | "user" | "assistant" | "tool";
2134
+ content: string | null;
2135
+ tool_calls?: {
2136
+ function: {
2137
+ name: string;
2138
+ arguments: string;
2139
+ };
2140
+ type: "function";
2141
+ id: string;
2142
+ }[] | undefined;
2143
+ };
2144
+ index: number;
2145
+ finish_reason: string | null;
2146
+ }>, "many">;
2147
+ usage: z.ZodOptional<z.ZodObject<{
2148
+ prompt_tokens: z.ZodNumber;
2149
+ completion_tokens: z.ZodNumber;
2150
+ total_tokens: z.ZodNumber;
2151
+ }, "strip", z.ZodTypeAny, {
2152
+ prompt_tokens: number;
2153
+ completion_tokens: number;
2154
+ total_tokens: number;
2155
+ }, {
2156
+ prompt_tokens: number;
2157
+ completion_tokens: number;
2158
+ total_tokens: number;
2159
+ }>>;
2160
+ }, "strip", z.ZodTypeAny, {
2161
+ object: string;
2162
+ id: string;
2163
+ model: string;
2164
+ created: number;
2165
+ choices: {
2166
+ message: {
2167
+ role: "system" | "user" | "assistant" | "tool";
2168
+ content: string | null;
2169
+ tool_calls?: {
2170
+ function: {
2171
+ name: string;
2172
+ arguments: string;
2173
+ };
2174
+ type: "function";
2175
+ id: string;
2176
+ }[] | undefined;
2177
+ };
2178
+ index: number;
2179
+ finish_reason: string | null;
2180
+ }[];
2181
+ usage?: {
2182
+ prompt_tokens: number;
2183
+ completion_tokens: number;
2184
+ total_tokens: number;
2185
+ } | undefined;
2186
+ }, {
2187
+ object: string;
2188
+ id: string;
2189
+ model: string;
2190
+ created: number;
2191
+ choices: {
2192
+ message: {
2193
+ role: "system" | "user" | "assistant" | "tool";
2194
+ content: string | null;
2195
+ tool_calls?: {
2196
+ function: {
2197
+ name: string;
2198
+ arguments: string;
2199
+ };
2200
+ type: "function";
2201
+ id: string;
2202
+ }[] | undefined;
2203
+ };
2204
+ index: number;
2205
+ finish_reason: string | null;
2206
+ }[];
2207
+ usage?: {
2208
+ prompt_tokens: number;
2209
+ completion_tokens: number;
2210
+ total_tokens: number;
2211
+ } | undefined;
2212
+ }>;
2213
+ export declare const AlibabaChatStreamDeltaSchema: z.ZodObject<{
2214
+ role: z.ZodOptional<z.ZodEnum<["system", "user", "assistant", "tool"]>>;
2215
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2216
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2217
+ id: z.ZodString;
2218
+ type: z.ZodLiteral<"function">;
2219
+ function: z.ZodObject<{
2220
+ name: z.ZodString;
2221
+ arguments: z.ZodString;
2222
+ }, "strip", z.ZodTypeAny, {
2223
+ name: string;
2224
+ arguments: string;
2225
+ }, {
2226
+ name: string;
2227
+ arguments: string;
2228
+ }>;
2229
+ }, "strip", z.ZodTypeAny, {
2230
+ function: {
2231
+ name: string;
2232
+ arguments: string;
2233
+ };
2234
+ type: "function";
2235
+ id: string;
2236
+ }, {
2237
+ function: {
2238
+ name: string;
2239
+ arguments: string;
2240
+ };
2241
+ type: "function";
2242
+ id: string;
2243
+ }>, "many">>;
2244
+ }, "strip", z.ZodTypeAny, {
2245
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2246
+ content?: string | null | undefined;
2247
+ tool_calls?: {
2248
+ function: {
2249
+ name: string;
2250
+ arguments: string;
2251
+ };
2252
+ type: "function";
2253
+ id: string;
2254
+ }[] | undefined;
2255
+ }, {
2256
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2257
+ content?: string | null | undefined;
2258
+ tool_calls?: {
2259
+ function: {
2260
+ name: string;
2261
+ arguments: string;
2262
+ };
2263
+ type: "function";
2264
+ id: string;
2265
+ }[] | undefined;
2266
+ }>;
2267
+ export declare const AlibabaChatStreamChoiceSchema: z.ZodObject<{
2268
+ index: z.ZodNumber;
2269
+ delta: z.ZodObject<{
2270
+ role: z.ZodOptional<z.ZodEnum<["system", "user", "assistant", "tool"]>>;
2271
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2272
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2273
+ id: z.ZodString;
2274
+ type: z.ZodLiteral<"function">;
2275
+ function: z.ZodObject<{
2276
+ name: z.ZodString;
2277
+ arguments: z.ZodString;
2278
+ }, "strip", z.ZodTypeAny, {
2279
+ name: string;
2280
+ arguments: string;
2281
+ }, {
2282
+ name: string;
2283
+ arguments: string;
2284
+ }>;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ function: {
2287
+ name: string;
2288
+ arguments: string;
2289
+ };
2290
+ type: "function";
2291
+ id: string;
2292
+ }, {
2293
+ function: {
2294
+ name: string;
2295
+ arguments: string;
2296
+ };
2297
+ type: "function";
2298
+ id: string;
2299
+ }>, "many">>;
2300
+ }, "strip", z.ZodTypeAny, {
2301
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2302
+ content?: string | null | undefined;
2303
+ tool_calls?: {
2304
+ function: {
2305
+ name: string;
2306
+ arguments: string;
2307
+ };
2308
+ type: "function";
2309
+ id: string;
2310
+ }[] | undefined;
2311
+ }, {
2312
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2313
+ content?: string | null | undefined;
2314
+ tool_calls?: {
2315
+ function: {
2316
+ name: string;
2317
+ arguments: string;
2318
+ };
2319
+ type: "function";
2320
+ id: string;
2321
+ }[] | undefined;
2322
+ }>;
2323
+ finish_reason: z.ZodNullable<z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>>;
2324
+ }, "strip", z.ZodTypeAny, {
2325
+ index: number;
2326
+ finish_reason: string | null;
2327
+ delta: {
2328
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2329
+ content?: string | null | undefined;
2330
+ tool_calls?: {
2331
+ function: {
2332
+ name: string;
2333
+ arguments: string;
2334
+ };
2335
+ type: "function";
2336
+ id: string;
2337
+ }[] | undefined;
2338
+ };
2339
+ }, {
2340
+ index: number;
2341
+ finish_reason: string | null;
2342
+ delta: {
2343
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2344
+ content?: string | null | undefined;
2345
+ tool_calls?: {
2346
+ function: {
2347
+ name: string;
2348
+ arguments: string;
2349
+ };
2350
+ type: "function";
2351
+ id: string;
2352
+ }[] | undefined;
2353
+ };
2354
+ }>;
2355
+ export declare const AlibabaChatStreamChunkSchema: z.ZodObject<{
2356
+ id: z.ZodString;
2357
+ object: z.ZodString;
2358
+ created: z.ZodNumber;
2359
+ model: z.ZodString;
2360
+ choices: z.ZodArray<z.ZodObject<{
2361
+ index: z.ZodNumber;
2362
+ delta: z.ZodObject<{
2363
+ role: z.ZodOptional<z.ZodEnum<["system", "user", "assistant", "tool"]>>;
2364
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2365
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2366
+ id: z.ZodString;
2367
+ type: z.ZodLiteral<"function">;
2368
+ function: z.ZodObject<{
2369
+ name: z.ZodString;
2370
+ arguments: z.ZodString;
2371
+ }, "strip", z.ZodTypeAny, {
2372
+ name: string;
2373
+ arguments: string;
2374
+ }, {
2375
+ name: string;
2376
+ arguments: string;
2377
+ }>;
2378
+ }, "strip", z.ZodTypeAny, {
2379
+ function: {
2380
+ name: string;
2381
+ arguments: string;
2382
+ };
2383
+ type: "function";
2384
+ id: string;
2385
+ }, {
2386
+ function: {
2387
+ name: string;
2388
+ arguments: string;
2389
+ };
2390
+ type: "function";
2391
+ id: string;
2392
+ }>, "many">>;
2393
+ }, "strip", z.ZodTypeAny, {
2394
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2395
+ content?: string | null | undefined;
2396
+ tool_calls?: {
2397
+ function: {
2398
+ name: string;
2399
+ arguments: string;
2400
+ };
2401
+ type: "function";
2402
+ id: string;
2403
+ }[] | undefined;
2404
+ }, {
2405
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2406
+ content?: string | null | undefined;
2407
+ tool_calls?: {
2408
+ function: {
2409
+ name: string;
2410
+ arguments: string;
2411
+ };
2412
+ type: "function";
2413
+ id: string;
2414
+ }[] | undefined;
2415
+ }>;
2416
+ finish_reason: z.ZodNullable<z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>>;
2417
+ }, "strip", z.ZodTypeAny, {
2418
+ index: number;
2419
+ finish_reason: string | null;
2420
+ delta: {
2421
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2422
+ content?: string | null | undefined;
2423
+ tool_calls?: {
2424
+ function: {
2425
+ name: string;
2426
+ arguments: string;
2427
+ };
2428
+ type: "function";
2429
+ id: string;
2430
+ }[] | undefined;
2431
+ };
2432
+ }, {
2433
+ index: number;
2434
+ finish_reason: string | null;
2435
+ delta: {
2436
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2437
+ content?: string | null | undefined;
2438
+ tool_calls?: {
2439
+ function: {
2440
+ name: string;
2441
+ arguments: string;
2442
+ };
2443
+ type: "function";
2444
+ id: string;
2445
+ }[] | undefined;
2446
+ };
2447
+ }>, "many">;
2448
+ usage: z.ZodOptional<z.ZodObject<{
2449
+ prompt_tokens: z.ZodNumber;
2450
+ completion_tokens: z.ZodNumber;
2451
+ total_tokens: z.ZodNumber;
2452
+ }, "strip", z.ZodTypeAny, {
2453
+ prompt_tokens: number;
2454
+ completion_tokens: number;
2455
+ total_tokens: number;
2456
+ }, {
2457
+ prompt_tokens: number;
2458
+ completion_tokens: number;
2459
+ total_tokens: number;
2460
+ }>>;
2461
+ }, "strip", z.ZodTypeAny, {
2462
+ object: string;
2463
+ id: string;
2464
+ model: string;
2465
+ created: number;
2466
+ choices: {
2467
+ index: number;
2468
+ finish_reason: string | null;
2469
+ delta: {
2470
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2471
+ content?: string | null | undefined;
2472
+ tool_calls?: {
2473
+ function: {
2474
+ name: string;
2475
+ arguments: string;
2476
+ };
2477
+ type: "function";
2478
+ id: string;
2479
+ }[] | undefined;
2480
+ };
2481
+ }[];
2482
+ usage?: {
2483
+ prompt_tokens: number;
2484
+ completion_tokens: number;
2485
+ total_tokens: number;
2486
+ } | undefined;
2487
+ }, {
2488
+ object: string;
2489
+ id: string;
2490
+ model: string;
2491
+ created: number;
2492
+ choices: {
2493
+ index: number;
2494
+ finish_reason: string | null;
2495
+ delta: {
2496
+ role?: "system" | "user" | "assistant" | "tool" | undefined;
2497
+ content?: string | null | undefined;
2498
+ tool_calls?: {
2499
+ function: {
2500
+ name: string;
2501
+ arguments: string;
2502
+ };
2503
+ type: "function";
2504
+ id: string;
2505
+ }[] | undefined;
2506
+ };
2507
+ }[];
2508
+ usage?: {
2509
+ prompt_tokens: number;
2510
+ completion_tokens: number;
2511
+ total_tokens: number;
2512
+ } | undefined;
2513
+ }>;
2514
+ export declare const AlibabaModelSchema: z.ZodObject<{
2515
+ id: z.ZodString;
2516
+ object: z.ZodString;
2517
+ created: z.ZodNumber;
2518
+ owned_by: z.ZodString;
2519
+ }, "strip", z.ZodTypeAny, {
2520
+ object: string;
2521
+ id: string;
2522
+ created: number;
2523
+ owned_by: string;
2524
+ }, {
2525
+ object: string;
2526
+ id: string;
2527
+ created: number;
2528
+ owned_by: string;
2529
+ }>;
2530
+ export declare const AlibabaModelListResponseSchema: z.ZodObject<{
2531
+ object: z.ZodString;
2532
+ data: z.ZodArray<z.ZodObject<{
2533
+ id: z.ZodString;
2534
+ object: z.ZodString;
2535
+ created: z.ZodNumber;
2536
+ owned_by: z.ZodString;
2537
+ }, "strip", z.ZodTypeAny, {
2538
+ object: string;
2539
+ id: string;
2540
+ created: number;
2541
+ owned_by: string;
2542
+ }, {
2543
+ object: string;
2544
+ id: string;
2545
+ created: number;
2546
+ owned_by: string;
2547
+ }>, "many">;
2548
+ }, "strip", z.ZodTypeAny, {
2549
+ object: string;
2550
+ data: {
2551
+ object: string;
2552
+ id: string;
2553
+ created: number;
2554
+ owned_by: string;
2555
+ }[];
2556
+ }, {
2557
+ object: string;
2558
+ data: {
2559
+ object: string;
2560
+ id: string;
2561
+ created: number;
2562
+ owned_by: string;
2563
+ }[];
2564
+ }>;
2565
+ export declare const AlibabaImageGenerationContentSchema: z.ZodObject<{
2566
+ type: z.ZodLiteral<"image">;
2567
+ image: z.ZodString;
2568
+ }, "strip", z.ZodTypeAny, {
2569
+ type: "image";
2570
+ image: string;
2571
+ }, {
2572
+ type: "image";
2573
+ image: string;
2574
+ }>;
2575
+ export declare const AlibabaImageGenerationResultMessageSchema: z.ZodObject<{
2576
+ role: z.ZodLiteral<"assistant">;
2577
+ content: z.ZodArray<z.ZodObject<{
2578
+ type: z.ZodLiteral<"image">;
2579
+ image: z.ZodString;
2580
+ }, "strip", z.ZodTypeAny, {
2581
+ type: "image";
2582
+ image: string;
2583
+ }, {
2584
+ type: "image";
2585
+ image: string;
2586
+ }>, "many">;
2587
+ }, "strip", z.ZodTypeAny, {
2588
+ role: "assistant";
2589
+ content: {
2590
+ type: "image";
2591
+ image: string;
2592
+ }[];
2593
+ }, {
2594
+ role: "assistant";
2595
+ content: {
2596
+ type: "image";
2597
+ image: string;
2598
+ }[];
2599
+ }>;
2600
+ export declare const AlibabaImageGenerationChoiceSchema: z.ZodObject<{
2601
+ finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
2602
+ message: z.ZodObject<{
2603
+ role: z.ZodLiteral<"assistant">;
2604
+ content: z.ZodArray<z.ZodObject<{
2605
+ type: z.ZodLiteral<"image">;
2606
+ image: z.ZodString;
2607
+ }, "strip", z.ZodTypeAny, {
2608
+ type: "image";
2609
+ image: string;
2610
+ }, {
2611
+ type: "image";
2612
+ image: string;
2613
+ }>, "many">;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ role: "assistant";
2616
+ content: {
2617
+ type: "image";
2618
+ image: string;
2619
+ }[];
2620
+ }, {
2621
+ role: "assistant";
2622
+ content: {
2623
+ type: "image";
2624
+ image: string;
2625
+ }[];
2626
+ }>;
2627
+ }, "strip", z.ZodTypeAny, {
2628
+ message: {
2629
+ role: "assistant";
2630
+ content: {
2631
+ type: "image";
2632
+ image: string;
2633
+ }[];
2634
+ };
2635
+ finish_reason: string;
2636
+ }, {
2637
+ message: {
2638
+ role: "assistant";
2639
+ content: {
2640
+ type: "image";
2641
+ image: string;
2642
+ }[];
2643
+ };
2644
+ finish_reason: string;
2645
+ }>;
2646
+ export declare const AlibabaImageGenerationSubmitOutputSchema: z.ZodObject<{
2647
+ task_id: z.ZodString;
2648
+ task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2649
+ }, "strip", z.ZodTypeAny, {
2650
+ task_id: string;
2651
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2652
+ }, {
2653
+ task_id: string;
2654
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2655
+ }>;
2656
+ export declare const AlibabaImageGenerationSubmitResponseSchema: z.ZodObject<{
2657
+ output: z.ZodObject<{
2658
+ task_id: z.ZodString;
2659
+ task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2660
+ }, "strip", z.ZodTypeAny, {
2661
+ task_id: string;
2662
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2663
+ }, {
2664
+ task_id: string;
2665
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2666
+ }>;
2667
+ request_id: z.ZodString;
2668
+ }, "strip", z.ZodTypeAny, {
2669
+ output: {
2670
+ task_id: string;
2671
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2672
+ };
2673
+ request_id: string;
2674
+ }, {
2675
+ output: {
2676
+ task_id: string;
2677
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2678
+ };
2679
+ request_id: string;
2680
+ }>;
2681
+ export declare const AlibabaMultimodalGenerationImagePartSchema: z.ZodObject<{
2682
+ image: z.ZodString;
2683
+ }, "strip", z.ZodTypeAny, {
2684
+ image: string;
2685
+ }, {
2686
+ image: string;
2687
+ }>;
2688
+ export declare const AlibabaMultimodalGenerationResultMessageSchema: z.ZodObject<{
2689
+ role: z.ZodLiteral<"assistant">;
2690
+ content: z.ZodArray<z.ZodObject<{
2691
+ image: z.ZodString;
2692
+ }, "strip", z.ZodTypeAny, {
2693
+ image: string;
2694
+ }, {
2695
+ image: string;
2696
+ }>, "many">;
2697
+ }, "strip", z.ZodTypeAny, {
2698
+ role: "assistant";
2699
+ content: {
2700
+ image: string;
2701
+ }[];
2702
+ }, {
2703
+ role: "assistant";
2704
+ content: {
2705
+ image: string;
2706
+ }[];
2707
+ }>;
2708
+ export declare const AlibabaMultimodalGenerationChoiceSchema: z.ZodObject<{
2709
+ finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
2710
+ message: z.ZodObject<{
2711
+ role: z.ZodLiteral<"assistant">;
2712
+ content: z.ZodArray<z.ZodObject<{
2713
+ image: z.ZodString;
2714
+ }, "strip", z.ZodTypeAny, {
2715
+ image: string;
2716
+ }, {
2717
+ image: string;
2718
+ }>, "many">;
2719
+ }, "strip", z.ZodTypeAny, {
2720
+ role: "assistant";
2721
+ content: {
2722
+ image: string;
2723
+ }[];
2724
+ }, {
2725
+ role: "assistant";
2726
+ content: {
2727
+ image: string;
2728
+ }[];
2729
+ }>;
2730
+ }, "strip", z.ZodTypeAny, {
2731
+ message: {
2732
+ role: "assistant";
2733
+ content: {
2734
+ image: string;
2735
+ }[];
2736
+ };
2737
+ finish_reason: string;
2738
+ }, {
2739
+ message: {
2740
+ role: "assistant";
2741
+ content: {
2742
+ image: string;
2743
+ }[];
2744
+ };
2745
+ finish_reason: string;
2746
+ }>;
2747
+ export declare const AlibabaMultimodalGenerationOutputSchema: z.ZodObject<{
2748
+ choices: z.ZodArray<z.ZodObject<{
2749
+ finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
2750
+ message: z.ZodObject<{
2751
+ role: z.ZodLiteral<"assistant">;
2752
+ content: z.ZodArray<z.ZodObject<{
2753
+ image: z.ZodString;
2754
+ }, "strip", z.ZodTypeAny, {
2755
+ image: string;
2756
+ }, {
2757
+ image: string;
2758
+ }>, "many">;
2759
+ }, "strip", z.ZodTypeAny, {
2760
+ role: "assistant";
2761
+ content: {
2762
+ image: string;
2763
+ }[];
2764
+ }, {
2765
+ role: "assistant";
2766
+ content: {
2767
+ image: string;
2768
+ }[];
2769
+ }>;
2770
+ }, "strip", z.ZodTypeAny, {
2771
+ message: {
2772
+ role: "assistant";
2773
+ content: {
2774
+ image: string;
2775
+ }[];
2776
+ };
2777
+ finish_reason: string;
2778
+ }, {
2779
+ message: {
2780
+ role: "assistant";
2781
+ content: {
2782
+ image: string;
2783
+ }[];
2784
+ };
2785
+ finish_reason: string;
2786
+ }>, "many">;
2787
+ }, "strip", z.ZodTypeAny, {
2788
+ choices: {
2789
+ message: {
2790
+ role: "assistant";
2791
+ content: {
2792
+ image: string;
2793
+ }[];
2794
+ };
2795
+ finish_reason: string;
2796
+ }[];
2797
+ }, {
2798
+ choices: {
2799
+ message: {
2800
+ role: "assistant";
2801
+ content: {
2802
+ image: string;
2803
+ }[];
2804
+ };
2805
+ finish_reason: string;
2806
+ }[];
2807
+ }>;
2808
+ export declare const AlibabaMultimodalGenerationUsageSchema: z.ZodObject<{
2809
+ image_count: z.ZodOptional<z.ZodNumber>;
2810
+ width: z.ZodOptional<z.ZodNumber>;
2811
+ height: z.ZodOptional<z.ZodNumber>;
2812
+ input_tokens: z.ZodOptional<z.ZodNumber>;
2813
+ output_tokens: z.ZodOptional<z.ZodNumber>;
2814
+ characters: z.ZodOptional<z.ZodNumber>;
2815
+ }, "strip", z.ZodTypeAny, {
2816
+ image_count?: number | undefined;
2817
+ width?: number | undefined;
2818
+ height?: number | undefined;
2819
+ input_tokens?: number | undefined;
2820
+ output_tokens?: number | undefined;
2821
+ characters?: number | undefined;
2822
+ }, {
2823
+ image_count?: number | undefined;
2824
+ width?: number | undefined;
2825
+ height?: number | undefined;
2826
+ input_tokens?: number | undefined;
2827
+ output_tokens?: number | undefined;
2828
+ characters?: number | undefined;
2829
+ }>;
2830
+ export declare const AlibabaMultimodalGenerationResponseSchema: z.ZodObject<{
2831
+ output: z.ZodObject<{
2832
+ choices: z.ZodArray<z.ZodObject<{
2833
+ finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
2834
+ message: z.ZodObject<{
2835
+ role: z.ZodLiteral<"assistant">;
2836
+ content: z.ZodArray<z.ZodObject<{
2837
+ image: z.ZodString;
2838
+ }, "strip", z.ZodTypeAny, {
2839
+ image: string;
2840
+ }, {
2841
+ image: string;
2842
+ }>, "many">;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ role: "assistant";
2845
+ content: {
2846
+ image: string;
2847
+ }[];
2848
+ }, {
2849
+ role: "assistant";
2850
+ content: {
2851
+ image: string;
2852
+ }[];
2853
+ }>;
2854
+ }, "strip", z.ZodTypeAny, {
2855
+ message: {
2856
+ role: "assistant";
2857
+ content: {
2858
+ image: string;
2859
+ }[];
2860
+ };
2861
+ finish_reason: string;
2862
+ }, {
2863
+ message: {
2864
+ role: "assistant";
2865
+ content: {
2866
+ image: string;
2867
+ }[];
2868
+ };
2869
+ finish_reason: string;
2870
+ }>, "many">;
2871
+ }, "strip", z.ZodTypeAny, {
2872
+ choices: {
2873
+ message: {
2874
+ role: "assistant";
2875
+ content: {
2876
+ image: string;
2877
+ }[];
2878
+ };
2879
+ finish_reason: string;
2880
+ }[];
2881
+ }, {
2882
+ choices: {
2883
+ message: {
2884
+ role: "assistant";
2885
+ content: {
2886
+ image: string;
2887
+ }[];
2888
+ };
2889
+ finish_reason: string;
2890
+ }[];
2891
+ }>;
2892
+ usage: z.ZodOptional<z.ZodObject<{
2893
+ image_count: z.ZodOptional<z.ZodNumber>;
2894
+ width: z.ZodOptional<z.ZodNumber>;
2895
+ height: z.ZodOptional<z.ZodNumber>;
2896
+ input_tokens: z.ZodOptional<z.ZodNumber>;
2897
+ output_tokens: z.ZodOptional<z.ZodNumber>;
2898
+ characters: z.ZodOptional<z.ZodNumber>;
2899
+ }, "strip", z.ZodTypeAny, {
2900
+ image_count?: number | undefined;
2901
+ width?: number | undefined;
2902
+ height?: number | undefined;
2903
+ input_tokens?: number | undefined;
2904
+ output_tokens?: number | undefined;
2905
+ characters?: number | undefined;
2906
+ }, {
2907
+ image_count?: number | undefined;
2908
+ width?: number | undefined;
2909
+ height?: number | undefined;
2910
+ input_tokens?: number | undefined;
2911
+ output_tokens?: number | undefined;
2912
+ characters?: number | undefined;
2913
+ }>>;
2914
+ request_id: z.ZodString;
2915
+ }, "strip", z.ZodTypeAny, {
2916
+ output: {
2917
+ choices: {
2918
+ message: {
2919
+ role: "assistant";
2920
+ content: {
2921
+ image: string;
2922
+ }[];
2923
+ };
2924
+ finish_reason: string;
2925
+ }[];
2926
+ };
2927
+ request_id: string;
2928
+ usage?: {
2929
+ image_count?: number | undefined;
2930
+ width?: number | undefined;
2931
+ height?: number | undefined;
2932
+ input_tokens?: number | undefined;
2933
+ output_tokens?: number | undefined;
2934
+ characters?: number | undefined;
2935
+ } | undefined;
2936
+ }, {
2937
+ output: {
2938
+ choices: {
2939
+ message: {
2940
+ role: "assistant";
2941
+ content: {
2942
+ image: string;
2943
+ }[];
2944
+ };
2945
+ finish_reason: string;
2946
+ }[];
2947
+ };
2948
+ request_id: string;
2949
+ usage?: {
2950
+ image_count?: number | undefined;
2951
+ width?: number | undefined;
2952
+ height?: number | undefined;
2953
+ input_tokens?: number | undefined;
2954
+ output_tokens?: number | undefined;
2955
+ characters?: number | undefined;
2956
+ } | undefined;
2957
+ }>;
2958
+ export declare const AlibabaVideoSynthesisSubmitOutputSchema: z.ZodObject<{
2959
+ task_id: z.ZodString;
2960
+ task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2961
+ }, "strip", z.ZodTypeAny, {
2962
+ task_id: string;
2963
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2964
+ }, {
2965
+ task_id: string;
2966
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2967
+ }>;
2968
+ export declare const AlibabaVideoSynthesisSubmitResponseSchema: z.ZodObject<{
2969
+ output: z.ZodObject<{
2970
+ task_id: z.ZodString;
2971
+ task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2972
+ }, "strip", z.ZodTypeAny, {
2973
+ task_id: string;
2974
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2975
+ }, {
2976
+ task_id: string;
2977
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2978
+ }>;
2979
+ request_id: z.ZodString;
2980
+ }, "strip", z.ZodTypeAny, {
2981
+ output: {
2982
+ task_id: string;
2983
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2984
+ };
2985
+ request_id: string;
2986
+ }, {
2987
+ output: {
2988
+ task_id: string;
2989
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2990
+ };
2991
+ request_id: string;
2992
+ }>;
2993
+ export declare const AlibabaTaskOutputSchema: z.ZodObject<{
2994
+ task_id: z.ZodString;
2995
+ task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2996
+ submit_time: z.ZodOptional<z.ZodString>;
2997
+ scheduled_time: z.ZodOptional<z.ZodString>;
2998
+ end_time: z.ZodOptional<z.ZodString>;
2999
+ video_url: z.ZodOptional<z.ZodString>;
3000
+ code: z.ZodOptional<z.ZodString>;
3001
+ message: z.ZodOptional<z.ZodString>;
3002
+ orig_prompt: z.ZodOptional<z.ZodString>;
3003
+ actual_prompt: z.ZodOptional<z.ZodString>;
3004
+ finished: z.ZodOptional<z.ZodBoolean>;
3005
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3006
+ finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
3007
+ message: z.ZodObject<{
3008
+ role: z.ZodLiteral<"assistant">;
3009
+ content: z.ZodArray<z.ZodObject<{
3010
+ type: z.ZodLiteral<"image">;
3011
+ image: z.ZodString;
3012
+ }, "strip", z.ZodTypeAny, {
3013
+ type: "image";
3014
+ image: string;
3015
+ }, {
3016
+ type: "image";
3017
+ image: string;
3018
+ }>, "many">;
3019
+ }, "strip", z.ZodTypeAny, {
3020
+ role: "assistant";
3021
+ content: {
3022
+ type: "image";
3023
+ image: string;
3024
+ }[];
3025
+ }, {
3026
+ role: "assistant";
3027
+ content: {
3028
+ type: "image";
3029
+ image: string;
3030
+ }[];
3031
+ }>;
3032
+ }, "strip", z.ZodTypeAny, {
3033
+ message: {
3034
+ role: "assistant";
3035
+ content: {
3036
+ type: "image";
3037
+ image: string;
3038
+ }[];
3039
+ };
3040
+ finish_reason: string;
3041
+ }, {
3042
+ message: {
3043
+ role: "assistant";
3044
+ content: {
3045
+ type: "image";
3046
+ image: string;
3047
+ }[];
3048
+ };
3049
+ finish_reason: string;
3050
+ }>, "many">>;
3051
+ }, "strip", z.ZodTypeAny, {
3052
+ task_id: string;
3053
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3054
+ code?: string | undefined;
3055
+ message?: string | undefined;
3056
+ choices?: {
3057
+ message: {
3058
+ role: "assistant";
3059
+ content: {
3060
+ type: "image";
3061
+ image: string;
3062
+ }[];
3063
+ };
3064
+ finish_reason: string;
3065
+ }[] | undefined;
3066
+ submit_time?: string | undefined;
3067
+ scheduled_time?: string | undefined;
3068
+ end_time?: string | undefined;
3069
+ video_url?: string | undefined;
3070
+ orig_prompt?: string | undefined;
3071
+ actual_prompt?: string | undefined;
3072
+ finished?: boolean | undefined;
3073
+ }, {
3074
+ task_id: string;
3075
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3076
+ code?: string | undefined;
3077
+ message?: string | undefined;
3078
+ choices?: {
3079
+ message: {
3080
+ role: "assistant";
3081
+ content: {
3082
+ type: "image";
3083
+ image: string;
3084
+ }[];
3085
+ };
3086
+ finish_reason: string;
3087
+ }[] | undefined;
3088
+ submit_time?: string | undefined;
3089
+ scheduled_time?: string | undefined;
3090
+ end_time?: string | undefined;
3091
+ video_url?: string | undefined;
3092
+ orig_prompt?: string | undefined;
3093
+ actual_prompt?: string | undefined;
3094
+ finished?: boolean | undefined;
3095
+ }>;
3096
+ export declare const AlibabaTaskUsageSchema: z.ZodObject<{
3097
+ duration: z.ZodOptional<z.ZodNumber>;
3098
+ input_video_duration: z.ZodOptional<z.ZodNumber>;
3099
+ output_video_duration: z.ZodOptional<z.ZodNumber>;
3100
+ SR: z.ZodOptional<z.ZodNumber>;
3101
+ video_count: z.ZodOptional<z.ZodNumber>;
3102
+ image_count: z.ZodOptional<z.ZodNumber>;
3103
+ size: z.ZodOptional<z.ZodString>;
3104
+ input_tokens: z.ZodOptional<z.ZodNumber>;
3105
+ output_tokens: z.ZodOptional<z.ZodNumber>;
3106
+ total_tokens: z.ZodOptional<z.ZodNumber>;
3107
+ }, "strip", z.ZodTypeAny, {
3108
+ duration?: number | undefined;
3109
+ size?: string | undefined;
3110
+ total_tokens?: number | undefined;
3111
+ image_count?: number | undefined;
3112
+ input_tokens?: number | undefined;
3113
+ output_tokens?: number | undefined;
3114
+ input_video_duration?: number | undefined;
3115
+ output_video_duration?: number | undefined;
3116
+ SR?: number | undefined;
3117
+ video_count?: number | undefined;
3118
+ }, {
3119
+ duration?: number | undefined;
3120
+ size?: string | undefined;
3121
+ total_tokens?: number | undefined;
3122
+ image_count?: number | undefined;
3123
+ input_tokens?: number | undefined;
3124
+ output_tokens?: number | undefined;
3125
+ input_video_duration?: number | undefined;
3126
+ output_video_duration?: number | undefined;
3127
+ SR?: number | undefined;
3128
+ video_count?: number | undefined;
3129
+ }>;
3130
+ export declare const AlibabaTaskStatusResponseSchema: z.ZodObject<{
3131
+ output: z.ZodObject<{
3132
+ task_id: z.ZodString;
3133
+ task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
3134
+ submit_time: z.ZodOptional<z.ZodString>;
3135
+ scheduled_time: z.ZodOptional<z.ZodString>;
3136
+ end_time: z.ZodOptional<z.ZodString>;
3137
+ video_url: z.ZodOptional<z.ZodString>;
3138
+ code: z.ZodOptional<z.ZodString>;
3139
+ message: z.ZodOptional<z.ZodString>;
3140
+ orig_prompt: z.ZodOptional<z.ZodString>;
3141
+ actual_prompt: z.ZodOptional<z.ZodString>;
3142
+ finished: z.ZodOptional<z.ZodBoolean>;
3143
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3144
+ finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
3145
+ message: z.ZodObject<{
3146
+ role: z.ZodLiteral<"assistant">;
3147
+ content: z.ZodArray<z.ZodObject<{
3148
+ type: z.ZodLiteral<"image">;
3149
+ image: z.ZodString;
3150
+ }, "strip", z.ZodTypeAny, {
3151
+ type: "image";
3152
+ image: string;
3153
+ }, {
3154
+ type: "image";
3155
+ image: string;
3156
+ }>, "many">;
3157
+ }, "strip", z.ZodTypeAny, {
3158
+ role: "assistant";
3159
+ content: {
3160
+ type: "image";
3161
+ image: string;
3162
+ }[];
3163
+ }, {
3164
+ role: "assistant";
3165
+ content: {
3166
+ type: "image";
3167
+ image: string;
3168
+ }[];
3169
+ }>;
3170
+ }, "strip", z.ZodTypeAny, {
3171
+ message: {
3172
+ role: "assistant";
3173
+ content: {
3174
+ type: "image";
3175
+ image: string;
3176
+ }[];
3177
+ };
3178
+ finish_reason: string;
3179
+ }, {
3180
+ message: {
3181
+ role: "assistant";
3182
+ content: {
3183
+ type: "image";
3184
+ image: string;
3185
+ }[];
3186
+ };
3187
+ finish_reason: string;
3188
+ }>, "many">>;
3189
+ }, "strip", z.ZodTypeAny, {
3190
+ task_id: string;
3191
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3192
+ code?: string | undefined;
3193
+ message?: string | undefined;
3194
+ choices?: {
3195
+ message: {
3196
+ role: "assistant";
3197
+ content: {
3198
+ type: "image";
3199
+ image: string;
3200
+ }[];
3201
+ };
3202
+ finish_reason: string;
3203
+ }[] | undefined;
3204
+ submit_time?: string | undefined;
3205
+ scheduled_time?: string | undefined;
3206
+ end_time?: string | undefined;
3207
+ video_url?: string | undefined;
3208
+ orig_prompt?: string | undefined;
3209
+ actual_prompt?: string | undefined;
3210
+ finished?: boolean | undefined;
3211
+ }, {
3212
+ task_id: string;
3213
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3214
+ code?: string | undefined;
3215
+ message?: string | undefined;
3216
+ choices?: {
3217
+ message: {
3218
+ role: "assistant";
3219
+ content: {
3220
+ type: "image";
3221
+ image: string;
3222
+ }[];
3223
+ };
3224
+ finish_reason: string;
3225
+ }[] | undefined;
3226
+ submit_time?: string | undefined;
3227
+ scheduled_time?: string | undefined;
3228
+ end_time?: string | undefined;
3229
+ video_url?: string | undefined;
3230
+ orig_prompt?: string | undefined;
3231
+ actual_prompt?: string | undefined;
3232
+ finished?: boolean | undefined;
3233
+ }>;
3234
+ usage: z.ZodOptional<z.ZodObject<{
3235
+ duration: z.ZodOptional<z.ZodNumber>;
3236
+ input_video_duration: z.ZodOptional<z.ZodNumber>;
3237
+ output_video_duration: z.ZodOptional<z.ZodNumber>;
3238
+ SR: z.ZodOptional<z.ZodNumber>;
3239
+ video_count: z.ZodOptional<z.ZodNumber>;
3240
+ image_count: z.ZodOptional<z.ZodNumber>;
3241
+ size: z.ZodOptional<z.ZodString>;
3242
+ input_tokens: z.ZodOptional<z.ZodNumber>;
3243
+ output_tokens: z.ZodOptional<z.ZodNumber>;
3244
+ total_tokens: z.ZodOptional<z.ZodNumber>;
3245
+ }, "strip", z.ZodTypeAny, {
3246
+ duration?: number | undefined;
3247
+ size?: string | undefined;
3248
+ total_tokens?: number | undefined;
3249
+ image_count?: number | undefined;
3250
+ input_tokens?: number | undefined;
3251
+ output_tokens?: number | undefined;
3252
+ input_video_duration?: number | undefined;
3253
+ output_video_duration?: number | undefined;
3254
+ SR?: number | undefined;
3255
+ video_count?: number | undefined;
3256
+ }, {
3257
+ duration?: number | undefined;
3258
+ size?: string | undefined;
3259
+ total_tokens?: number | undefined;
3260
+ image_count?: number | undefined;
3261
+ input_tokens?: number | undefined;
3262
+ output_tokens?: number | undefined;
3263
+ input_video_duration?: number | undefined;
3264
+ output_video_duration?: number | undefined;
3265
+ SR?: number | undefined;
3266
+ video_count?: number | undefined;
3267
+ }>>;
3268
+ request_id: z.ZodString;
3269
+ }, "strip", z.ZodTypeAny, {
3270
+ output: {
3271
+ task_id: string;
3272
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3273
+ code?: string | undefined;
3274
+ message?: string | undefined;
3275
+ choices?: {
3276
+ message: {
3277
+ role: "assistant";
3278
+ content: {
3279
+ type: "image";
3280
+ image: string;
3281
+ }[];
3282
+ };
3283
+ finish_reason: string;
3284
+ }[] | undefined;
3285
+ submit_time?: string | undefined;
3286
+ scheduled_time?: string | undefined;
3287
+ end_time?: string | undefined;
3288
+ video_url?: string | undefined;
3289
+ orig_prompt?: string | undefined;
3290
+ actual_prompt?: string | undefined;
3291
+ finished?: boolean | undefined;
3292
+ };
3293
+ request_id: string;
3294
+ usage?: {
3295
+ duration?: number | undefined;
3296
+ size?: string | undefined;
3297
+ total_tokens?: number | undefined;
3298
+ image_count?: number | undefined;
3299
+ input_tokens?: number | undefined;
3300
+ output_tokens?: number | undefined;
3301
+ input_video_duration?: number | undefined;
3302
+ output_video_duration?: number | undefined;
3303
+ SR?: number | undefined;
3304
+ video_count?: number | undefined;
3305
+ } | undefined;
3306
+ }, {
3307
+ output: {
3308
+ task_id: string;
3309
+ task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3310
+ code?: string | undefined;
3311
+ message?: string | undefined;
3312
+ choices?: {
3313
+ message: {
3314
+ role: "assistant";
3315
+ content: {
3316
+ type: "image";
3317
+ image: string;
3318
+ }[];
3319
+ };
3320
+ finish_reason: string;
3321
+ }[] | undefined;
3322
+ submit_time?: string | undefined;
3323
+ scheduled_time?: string | undefined;
3324
+ end_time?: string | undefined;
3325
+ video_url?: string | undefined;
3326
+ orig_prompt?: string | undefined;
3327
+ actual_prompt?: string | undefined;
3328
+ finished?: boolean | undefined;
3329
+ };
3330
+ request_id: string;
3331
+ usage?: {
3332
+ duration?: number | undefined;
3333
+ size?: string | undefined;
3334
+ total_tokens?: number | undefined;
3335
+ image_count?: number | undefined;
3336
+ input_tokens?: number | undefined;
3337
+ output_tokens?: number | undefined;
3338
+ input_video_duration?: number | undefined;
3339
+ output_video_duration?: number | undefined;
3340
+ SR?: number | undefined;
3341
+ video_count?: number | undefined;
3342
+ } | undefined;
3343
+ }>;
3344
+ export declare const AlibabaUploadPolicyDataSchema: z.ZodObject<{
3345
+ policy: z.ZodString;
3346
+ signature: z.ZodString;
3347
+ upload_dir: z.ZodString;
3348
+ upload_host: z.ZodString;
3349
+ expire_in_seconds: z.ZodNumber;
3350
+ oss_access_key_id: z.ZodString;
3351
+ x_oss_object_acl: z.ZodString;
3352
+ x_oss_forbid_overwrite: z.ZodString;
3353
+ }, "strip", z.ZodTypeAny, {
3354
+ policy: string;
3355
+ signature: string;
3356
+ upload_dir: string;
3357
+ upload_host: string;
3358
+ expire_in_seconds: number;
3359
+ oss_access_key_id: string;
3360
+ x_oss_object_acl: string;
3361
+ x_oss_forbid_overwrite: string;
3362
+ }, {
3363
+ policy: string;
3364
+ signature: string;
3365
+ upload_dir: string;
3366
+ upload_host: string;
3367
+ expire_in_seconds: number;
3368
+ oss_access_key_id: string;
3369
+ x_oss_object_acl: string;
3370
+ x_oss_forbid_overwrite: string;
3371
+ }>;
3372
+ export declare const AlibabaUploadPolicyResponseSchema: z.ZodObject<{
3373
+ data: z.ZodObject<{
3374
+ policy: z.ZodString;
3375
+ signature: z.ZodString;
3376
+ upload_dir: z.ZodString;
3377
+ upload_host: z.ZodString;
3378
+ expire_in_seconds: z.ZodNumber;
3379
+ oss_access_key_id: z.ZodString;
3380
+ x_oss_object_acl: z.ZodString;
3381
+ x_oss_forbid_overwrite: z.ZodString;
3382
+ }, "strip", z.ZodTypeAny, {
3383
+ policy: string;
3384
+ signature: string;
3385
+ upload_dir: string;
3386
+ upload_host: string;
3387
+ expire_in_seconds: number;
3388
+ oss_access_key_id: string;
3389
+ x_oss_object_acl: string;
3390
+ x_oss_forbid_overwrite: string;
3391
+ }, {
3392
+ policy: string;
3393
+ signature: string;
3394
+ upload_dir: string;
3395
+ upload_host: string;
3396
+ expire_in_seconds: number;
3397
+ oss_access_key_id: string;
3398
+ x_oss_object_acl: string;
3399
+ x_oss_forbid_overwrite: string;
3400
+ }>;
3401
+ request_id: z.ZodString;
3402
+ }, "strip", z.ZodTypeAny, {
3403
+ data: {
3404
+ policy: string;
3405
+ signature: string;
3406
+ upload_dir: string;
3407
+ upload_host: string;
3408
+ expire_in_seconds: number;
3409
+ oss_access_key_id: string;
3410
+ x_oss_object_acl: string;
3411
+ x_oss_forbid_overwrite: string;
3412
+ };
3413
+ request_id: string;
3414
+ }, {
3415
+ data: {
3416
+ policy: string;
3417
+ signature: string;
3418
+ upload_dir: string;
3419
+ upload_host: string;
3420
+ expire_in_seconds: number;
3421
+ oss_access_key_id: string;
3422
+ x_oss_object_acl: string;
3423
+ x_oss_forbid_overwrite: string;
3424
+ };
3425
+ request_id: string;
3426
+ }>;
3427
+ export type AlibabaRole = z.infer<typeof AlibabaRoleSchema>;
3428
+ export type AlibabaFinishReason = z.infer<typeof AlibabaFinishReasonSchema>;
3429
+ export type AlibabaTaskStatus = z.infer<typeof AlibabaTaskStatusSchema>;
3430
+ export type AlibabaChatResponseMessage = z.infer<typeof AlibabaChatResponseMessageSchema>;
3431
+ export type AlibabaChatChoice = z.infer<typeof AlibabaChatChoiceSchema>;
3432
+ export type AlibabaUsage = z.infer<typeof AlibabaUsageSchema>;
3433
+ export type AlibabaChatResponse = z.infer<typeof AlibabaChatResponseSchema>;
3434
+ export type AlibabaChatStreamDelta = z.infer<typeof AlibabaChatStreamDeltaSchema>;
3435
+ export type AlibabaChatStreamChoice = z.infer<typeof AlibabaChatStreamChoiceSchema>;
3436
+ export type AlibabaChatStreamChunk = z.infer<typeof AlibabaChatStreamChunkSchema>;
3437
+ export type AlibabaModel = z.infer<typeof AlibabaModelSchema>;
3438
+ export type AlibabaModelListResponse = z.infer<typeof AlibabaModelListResponseSchema>;
3439
+ export type AlibabaImageGenerationContent = z.infer<typeof AlibabaImageGenerationContentSchema>;
3440
+ export type AlibabaImageGenerationResultMessage = z.infer<typeof AlibabaImageGenerationResultMessageSchema>;
3441
+ export type AlibabaImageGenerationChoice = z.infer<typeof AlibabaImageGenerationChoiceSchema>;
3442
+ export type AlibabaImageGenerationSubmitOutput = z.infer<typeof AlibabaImageGenerationSubmitOutputSchema>;
3443
+ export type AlibabaImageGenerationSubmitResponse = z.infer<typeof AlibabaImageGenerationSubmitResponseSchema>;
3444
+ export type AlibabaMultimodalGenerationImagePart = z.infer<typeof AlibabaMultimodalGenerationImagePartSchema>;
3445
+ export type AlibabaMultimodalGenerationResultMessage = z.infer<typeof AlibabaMultimodalGenerationResultMessageSchema>;
3446
+ export type AlibabaMultimodalGenerationChoice = z.infer<typeof AlibabaMultimodalGenerationChoiceSchema>;
3447
+ export type AlibabaMultimodalGenerationOutput = z.infer<typeof AlibabaMultimodalGenerationOutputSchema>;
3448
+ export type AlibabaMultimodalGenerationUsage = z.infer<typeof AlibabaMultimodalGenerationUsageSchema>;
3449
+ export type AlibabaMultimodalGenerationResponse = z.infer<typeof AlibabaMultimodalGenerationResponseSchema>;
3450
+ export type AlibabaVideoSynthesisSubmitOutput = z.infer<typeof AlibabaVideoSynthesisSubmitOutputSchema>;
3451
+ export type AlibabaVideoSynthesisSubmitResponse = z.infer<typeof AlibabaVideoSynthesisSubmitResponseSchema>;
3452
+ export type AlibabaTaskOutput = z.infer<typeof AlibabaTaskOutputSchema>;
3453
+ export type AlibabaTaskUsage = z.infer<typeof AlibabaTaskUsageSchema>;
3454
+ export type AlibabaTaskStatusResponse = z.infer<typeof AlibabaTaskStatusResponseSchema>;
3455
+ export type AlibabaUploadPolicyData = z.infer<typeof AlibabaUploadPolicyDataSchema>;
3456
+ export type AlibabaUploadPolicyResponse = z.infer<typeof AlibabaUploadPolicyResponseSchema>;
3457
+ //# sourceMappingURL=zod.d.ts.map