@apicity/alibaba 0.5.4 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/zod.d.ts CHANGED
@@ -3,188 +3,77 @@ export declare const AlibabaFunctionDefinitionSchema: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  description: z.ZodOptional<z.ZodString>;
5
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
- }>;
6
+ }, z.core.$strip>;
15
7
  export declare const AlibabaToolSchema: z.ZodObject<{
16
8
  type: z.ZodLiteral<"function">;
17
9
  function: z.ZodObject<{
18
10
  name: z.ZodString;
19
11
  description: z.ZodOptional<z.ZodString>;
20
12
  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
- }>;
13
+ }, z.core.$strip>;
14
+ }, z.core.$strip>;
45
15
  export declare const AlibabaToolCallFunctionSchema: z.ZodObject<{
46
16
  name: z.ZodString;
47
17
  arguments: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- name: string;
50
- arguments: string;
51
- }, {
52
- name: string;
53
- arguments: string;
54
- }>;
18
+ }, z.core.$strip>;
55
19
  export declare const AlibabaToolCallSchema: z.ZodObject<{
56
20
  id: z.ZodString;
57
21
  type: z.ZodLiteral<"function">;
58
22
  function: z.ZodObject<{
59
23
  name: z.ZodString;
60
24
  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
- }>;
25
+ }, z.core.$strip>;
26
+ }, z.core.$strip>;
83
27
  export declare const AlibabaTextPartSchema: z.ZodObject<{
84
28
  type: z.ZodLiteral<"text">;
85
29
  text: z.ZodString;
86
- }, "strip", z.ZodTypeAny, {
87
- type: "text";
88
- text: string;
89
- }, {
90
- type: "text";
91
- text: string;
92
- }>;
30
+ }, z.core.$strip>;
93
31
  export declare const AlibabaImageUrlPartSchema: z.ZodObject<{
94
32
  type: z.ZodLiteral<"image_url">;
95
33
  image_url: z.ZodObject<{
96
34
  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<{
35
+ detail: z.ZodOptional<z.ZodEnum<{
36
+ auto: "auto";
37
+ low: "low";
38
+ high: "high";
39
+ }>>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ export declare const AlibabaContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
119
43
  type: z.ZodLiteral<"text">;
120
44
  text: z.ZodString;
121
- }, "strip", z.ZodTypeAny, {
122
- type: "text";
123
- text: string;
124
- }, {
125
- type: "text";
126
- text: string;
127
- }>, z.ZodObject<{
45
+ }, z.core.$strip>, z.ZodObject<{
128
46
  type: z.ZodLiteral<"image_url">;
129
47
  image_url: z.ZodObject<{
130
48
  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
- }>]>;
49
+ detail: z.ZodOptional<z.ZodEnum<{
50
+ auto: "auto";
51
+ low: "low";
52
+ high: "high";
53
+ }>>;
54
+ }, z.core.$strip>;
55
+ }, z.core.$strip>], "type">;
152
56
  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<{
57
+ role: z.ZodEnum<{
58
+ system: "system";
59
+ user: "user";
60
+ assistant: "assistant";
61
+ tool: "tool";
62
+ }>;
63
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
155
64
  type: z.ZodLiteral<"text">;
156
65
  text: z.ZodString;
157
- }, "strip", z.ZodTypeAny, {
158
- type: "text";
159
- text: string;
160
- }, {
161
- type: "text";
162
- text: string;
163
- }>, z.ZodObject<{
66
+ }, z.core.$strip>, z.ZodObject<{
164
67
  type: z.ZodLiteral<"image_url">;
165
68
  image_url: z.ZodObject<{
166
69
  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]>;
70
+ detail: z.ZodOptional<z.ZodEnum<{
71
+ auto: "auto";
72
+ low: "low";
73
+ high: "high";
74
+ }>>;
75
+ }, z.core.$strip>;
76
+ }, z.core.$strip>], "type">>, z.ZodNull]>;
188
77
  name: z.ZodOptional<z.ZodString>;
189
78
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
79
  id: z.ZodString;
@@ -192,126 +81,42 @@ export declare const AlibabaMessageSchema: z.ZodObject<{
192
81
  function: z.ZodObject<{
193
82
  name: z.ZodString;
194
83
  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">>;
84
+ }, z.core.$strip>;
85
+ }, z.core.$strip>>>;
217
86
  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
- }>;
87
+ }, z.core.$strip>;
263
88
  export declare const AlibabaStreamOptionsSchema: z.ZodObject<{
264
89
  include_usage: z.ZodOptional<z.ZodBoolean>;
265
- }, "strip", z.ZodTypeAny, {
266
- include_usage?: boolean | undefined;
267
- }, {
268
- include_usage?: boolean | undefined;
269
- }>;
90
+ }, z.core.$strip>;
270
91
  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
- }>;
92
+ type: z.ZodEnum<{
93
+ text: "text";
94
+ json_object: "json_object";
95
+ }>;
96
+ }, z.core.$strip>;
277
97
  export declare const AlibabaChatRequestSchema: z.ZodObject<{
278
98
  model: z.ZodString;
279
99
  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<{
100
+ role: z.ZodEnum<{
101
+ system: "system";
102
+ user: "user";
103
+ assistant: "assistant";
104
+ tool: "tool";
105
+ }>;
106
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
282
107
  type: z.ZodLiteral<"text">;
283
108
  text: z.ZodString;
284
- }, "strip", z.ZodTypeAny, {
285
- type: "text";
286
- text: string;
287
- }, {
288
- type: "text";
289
- text: string;
290
- }>, z.ZodObject<{
109
+ }, z.core.$strip>, z.ZodObject<{
291
110
  type: z.ZodLiteral<"image_url">;
292
111
  image_url: z.ZodObject<{
293
112
  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]>;
113
+ detail: z.ZodOptional<z.ZodEnum<{
114
+ auto: "auto";
115
+ low: "low";
116
+ high: "high";
117
+ }>>;
118
+ }, z.core.$strip>;
119
+ }, z.core.$strip>], "type">>, z.ZodNull]>;
315
120
  name: z.ZodOptional<z.ZodString>;
316
121
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
317
122
  id: z.ZodString;
@@ -319,79 +124,15 @@ export declare const AlibabaChatRequestSchema: z.ZodObject<{
319
124
  function: z.ZodObject<{
320
125
  name: z.ZodString;
321
126
  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">>;
127
+ }, z.core.$strip>;
128
+ }, z.core.$strip>>>;
344
129
  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">;
130
+ }, z.core.$strip>>;
390
131
  temperature: z.ZodOptional<z.ZodNumber>;
391
132
  top_p: z.ZodOptional<z.ZodNumber>;
392
133
  max_tokens: z.ZodOptional<z.ZodNumber>;
393
134
  n: z.ZodOptional<z.ZodNumber>;
394
- stop: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
135
+ stop: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
395
136
  stream: z.ZodOptional<z.ZodBoolean>;
396
137
  seed: z.ZodOptional<z.ZodNumber>;
397
138
  presence_penalty: z.ZodOptional<z.ZodNumber>;
@@ -401,831 +142,210 @@ export declare const AlibabaChatRequestSchema: z.ZodObject<{
401
142
  name: z.ZodString;
402
143
  description: z.ZodOptional<z.ZodString>;
403
144
  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<{
145
+ }, z.core.$strip>;
146
+ }, z.core.$strip>>>;
147
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
148
+ auto: "auto";
149
+ none: "none";
150
+ }>, z.ZodObject<{
429
151
  type: z.ZodLiteral<"function">;
430
152
  function: z.ZodObject<{
431
153
  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
- }>]>>;
154
+ }, z.core.$strip>;
155
+ }, z.core.$strip>]>>;
448
156
  stream_options: z.ZodOptional<z.ZodObject<{
449
157
  include_usage: z.ZodOptional<z.ZodBoolean>;
450
- }, "strip", z.ZodTypeAny, {
451
- include_usage?: boolean | undefined;
452
- }, {
453
- include_usage?: boolean | undefined;
454
- }>>;
158
+ }, z.core.$strip>>;
455
159
  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
- }>>;
160
+ type: z.ZodEnum<{
161
+ text: "text";
162
+ json_object: "json_object";
163
+ }>;
164
+ }, z.core.$strip>>;
462
165
  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;
166
+ }, z.core.$strip>;
167
+ export declare const AlibabaVideoMediaTypeSchema: z.ZodEnum<{
168
+ first_frame: "first_frame";
169
+ last_frame: "last_frame";
170
+ driving_audio: "driving_audio";
171
+ first_clip: "first_clip";
172
+ video: "video";
173
+ reference_image: "reference_image";
571
174
  }>;
572
- export declare const AlibabaVideoMediaTypeSchema: z.ZodEnum<["first_frame", "last_frame", "driving_audio", "first_clip", "video", "reference_image"]>;
573
175
  export declare const AlibabaVideoMediaSchema: z.ZodObject<{
574
- type: z.ZodEnum<["first_frame", "last_frame", "driving_audio", "first_clip", "video", "reference_image"]>;
176
+ type: z.ZodEnum<{
177
+ first_frame: "first_frame";
178
+ last_frame: "last_frame";
179
+ driving_audio: "driving_audio";
180
+ first_clip: "first_clip";
181
+ video: "video";
182
+ reference_image: "reference_image";
183
+ }>;
575
184
  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;
185
+ }, z.core.$strip>;
186
+ export declare const AlibabaVideoSynthesisModelSchema: z.ZodEnum<{
187
+ "wan2.7-i2v": "wan2.7-i2v";
188
+ "wan2.7-videoedit": "wan2.7-videoedit";
582
189
  }>;
583
190
  export declare const AlibabaVideoSynthesisInputSchema: z.ZodObject<{
584
191
  prompt: z.ZodOptional<z.ZodString>;
585
192
  negative_prompt: z.ZodOptional<z.ZodString>;
586
193
  media: z.ZodArray<z.ZodObject<{
587
- type: z.ZodEnum<["first_frame", "last_frame", "driving_audio", "first_clip", "video", "reference_image"]>;
194
+ type: z.ZodEnum<{
195
+ first_frame: "first_frame";
196
+ last_frame: "last_frame";
197
+ driving_audio: "driving_audio";
198
+ first_clip: "first_clip";
199
+ video: "video";
200
+ reference_image: "reference_image";
201
+ }>;
588
202
  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
- }>;
203
+ }, z.core.$strip>>;
204
+ }, z.core.$strip>;
611
205
  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"]>>;
206
+ resolution: z.ZodOptional<z.ZodEnum<{
207
+ "720P": "720P";
208
+ "1080P": "1080P";
209
+ }>>;
210
+ ratio: z.ZodOptional<z.ZodEnum<{
211
+ "16:9": "16:9";
212
+ "9:16": "9:16";
213
+ "1:1": "1:1";
214
+ "4:3": "4:3";
215
+ "3:4": "3:4";
216
+ }>>;
614
217
  duration: z.ZodOptional<z.ZodNumber>;
615
- audio_setting: z.ZodOptional<z.ZodEnum<["auto", "origin"]>>;
218
+ audio_setting: z.ZodOptional<z.ZodEnum<{
219
+ auto: "auto";
220
+ origin: "origin";
221
+ }>>;
616
222
  prompt_extend: z.ZodOptional<z.ZodBoolean>;
617
223
  watermark: z.ZodOptional<z.ZodBoolean>;
618
224
  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"]>;
225
+ }, z.core.$strip>;
226
+ export declare const AlibabaVideoSynthesisRequestObjectSchema: z.ZodObject<{
227
+ model: z.ZodEnum<{
228
+ "wan2.7-i2v": "wan2.7-i2v";
229
+ "wan2.7-videoedit": "wan2.7-videoedit";
230
+ }>;
638
231
  input: z.ZodObject<{
639
232
  prompt: z.ZodOptional<z.ZodString>;
640
233
  negative_prompt: z.ZodOptional<z.ZodString>;
641
234
  media: z.ZodArray<z.ZodObject<{
642
- type: z.ZodEnum<["first_frame", "last_frame", "driving_audio", "first_clip", "video", "reference_image"]>;
235
+ type: z.ZodEnum<{
236
+ first_frame: "first_frame";
237
+ last_frame: "last_frame";
238
+ driving_audio: "driving_audio";
239
+ first_clip: "first_clip";
240
+ video: "video";
241
+ reference_image: "reference_image";
242
+ }>;
643
243
  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;
244
+ }, z.core.$strip>>;
245
+ }, z.core.$strip>;
246
+ parameters: z.ZodOptional<z.ZodObject<{
247
+ resolution: z.ZodOptional<z.ZodEnum<{
248
+ "720P": "720P";
249
+ "1080P": "1080P";
250
+ }>>;
251
+ ratio: z.ZodOptional<z.ZodEnum<{
252
+ "16:9": "16:9";
253
+ "9:16": "9:16";
254
+ "1:1": "1:1";
255
+ "4:3": "4:3";
256
+ "3:4": "3:4";
257
+ }>>;
258
+ duration: z.ZodOptional<z.ZodNumber>;
259
+ audio_setting: z.ZodOptional<z.ZodEnum<{
260
+ auto: "auto";
261
+ origin: "origin";
262
+ }>>;
263
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
264
+ watermark: z.ZodOptional<z.ZodBoolean>;
265
+ seed: z.ZodOptional<z.ZodNumber>;
266
+ }, z.core.$strip>>;
267
+ }, z.core.$strip>;
268
+ export declare const AlibabaVideoSynthesisRequestSchema: z.ZodObject<{
269
+ model: z.ZodEnum<{
270
+ "wan2.7-i2v": "wan2.7-i2v";
271
+ "wan2.7-videoedit": "wan2.7-videoedit";
665
272
  }>;
273
+ input: z.ZodObject<{
274
+ prompt: z.ZodOptional<z.ZodString>;
275
+ negative_prompt: z.ZodOptional<z.ZodString>;
276
+ media: z.ZodArray<z.ZodObject<{
277
+ type: z.ZodEnum<{
278
+ first_frame: "first_frame";
279
+ last_frame: "last_frame";
280
+ driving_audio: "driving_audio";
281
+ first_clip: "first_clip";
282
+ video: "video";
283
+ reference_image: "reference_image";
284
+ }>;
285
+ url: z.ZodString;
286
+ }, z.core.$strip>>;
287
+ }, z.core.$strip>;
666
288
  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"]>>;
289
+ resolution: z.ZodOptional<z.ZodEnum<{
290
+ "720P": "720P";
291
+ "1080P": "1080P";
292
+ }>>;
293
+ ratio: z.ZodOptional<z.ZodEnum<{
294
+ "16:9": "16:9";
295
+ "9:16": "9:16";
296
+ "1:1": "1:1";
297
+ "4:3": "4:3";
298
+ "3:4": "3:4";
299
+ }>>;
669
300
  duration: z.ZodOptional<z.ZodNumber>;
670
- audio_setting: z.ZodOptional<z.ZodEnum<["auto", "origin"]>>;
301
+ audio_setting: z.ZodOptional<z.ZodEnum<{
302
+ auto: "auto";
303
+ origin: "origin";
304
+ }>>;
671
305
  prompt_extend: z.ZodOptional<z.ZodBoolean>;
672
306
  watermark: z.ZodOptional<z.ZodBoolean>;
673
307
  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
- }>;
308
+ }, z.core.$strip>>;
309
+ }, z.core.$strip>;
1110
310
  export declare const AlibabaImageTextContentSchema: z.ZodObject<{
1111
311
  text: z.ZodString;
1112
- }, "strip", z.ZodTypeAny, {
1113
- text: string;
1114
- }, {
1115
- text: string;
1116
- }>;
312
+ }, z.core.$strip>;
1117
313
  export declare const AlibabaImageImageContentSchema: z.ZodObject<{
1118
314
  image: z.ZodString;
1119
- }, "strip", z.ZodTypeAny, {
1120
- image: string;
1121
- }, {
1122
- image: string;
1123
- }>;
1124
- export declare const AlibabaImageContentSchema: z.ZodUnion<[z.ZodObject<{
315
+ }, z.core.$strip>;
316
+ export declare const AlibabaImageContentSchema: z.ZodUnion<readonly [z.ZodObject<{
1125
317
  text: z.ZodString;
1126
- }, "strip", z.ZodTypeAny, {
1127
- text: string;
1128
- }, {
1129
- text: string;
1130
- }>, z.ZodObject<{
318
+ }, z.core.$strip>, z.ZodObject<{
1131
319
  image: z.ZodString;
1132
- }, "strip", z.ZodTypeAny, {
1133
- image: string;
1134
- }, {
1135
- image: string;
1136
- }>]>;
320
+ }, z.core.$strip>]>;
1137
321
  export declare const AlibabaImageGenerationMessageSchema: z.ZodObject<{
1138
322
  role: z.ZodLiteral<"user">;
1139
- content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
323
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1140
324
  text: z.ZodString;
1141
- }, "strip", z.ZodTypeAny, {
1142
- text: string;
1143
- }, {
1144
- text: string;
1145
- }>, z.ZodObject<{
325
+ }, z.core.$strip>, z.ZodObject<{
1146
326
  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
- }>;
327
+ }, z.core.$strip>]>>;
328
+ }, z.core.$strip>;
1167
329
  export declare const AlibabaImageGenerationInputSchema: z.ZodObject<{
1168
330
  messages: z.ZodArray<z.ZodObject<{
1169
331
  role: z.ZodLiteral<"user">;
1170
- content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
332
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1171
333
  text: z.ZodString;
1172
- }, "strip", z.ZodTypeAny, {
1173
- text: string;
1174
- }, {
1175
- text: string;
1176
- }>, z.ZodObject<{
334
+ }, z.core.$strip>, z.ZodObject<{
1177
335
  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
- }>;
336
+ }, z.core.$strip>]>>;
337
+ }, z.core.$strip>>;
338
+ }, z.core.$strip>;
1217
339
  export declare const AlibabaColorPaletteItemSchema: z.ZodObject<{
1218
340
  hex: z.ZodString;
1219
341
  ratio: z.ZodString;
1220
- }, "strip", z.ZodTypeAny, {
1221
- ratio: string;
1222
- hex: string;
1223
- }, {
1224
- ratio: string;
1225
- hex: string;
1226
- }>;
342
+ }, z.core.$strip>;
1227
343
  export declare const AlibabaImageGenerationParametersSchema: z.ZodObject<{
1228
- size: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["1K", "2K", "4K"]>, z.ZodString]>>;
344
+ size: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
345
+ "1K": "1K";
346
+ "2K": "2K";
347
+ "4K": "4K";
348
+ }>, z.ZodString]>>;
1229
349
  n: z.ZodOptional<z.ZodNumber>;
1230
350
  negative_prompt: z.ZodOptional<z.ZodString>;
1231
351
  prompt_extend: z.ZodOptional<z.ZodBoolean>;
@@ -1234,99 +354,32 @@ export declare const AlibabaImageGenerationParametersSchema: z.ZodObject<{
1234
354
  color_palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
1235
355
  hex: z.ZodString;
1236
356
  ratio: z.ZodString;
1237
- }, "strip", z.ZodTypeAny, {
1238
- ratio: string;
1239
- hex: string;
1240
- }, {
1241
- ratio: string;
1242
- hex: string;
1243
- }>, "many">>;
357
+ }, z.core.$strip>>>;
1244
358
  seed: z.ZodOptional<z.ZodNumber>;
1245
359
  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
- }>;
360
+ bbox_list: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
361
+ }, z.core.$strip>;
1276
362
  export declare const AlibabaImageGenerationRequestSchema: z.ZodObject<{
1277
- model: z.ZodEnum<["wan2.7-image-pro", "wan2.7-image"]>;
363
+ model: z.ZodEnum<{
364
+ "wan2.7-image-pro": "wan2.7-image-pro";
365
+ "wan2.7-image": "wan2.7-image";
366
+ }>;
1278
367
  input: z.ZodObject<{
1279
368
  messages: z.ZodArray<z.ZodObject<{
1280
369
  role: z.ZodLiteral<"user">;
1281
- content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
370
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1282
371
  text: z.ZodString;
1283
- }, "strip", z.ZodTypeAny, {
1284
- text: string;
1285
- }, {
1286
- text: string;
1287
- }>, z.ZodObject<{
372
+ }, z.core.$strip>, z.ZodObject<{
1288
373
  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
- }>;
374
+ }, z.core.$strip>]>>;
375
+ }, z.core.$strip>>;
376
+ }, z.core.$strip>;
1328
377
  parameters: z.ZodOptional<z.ZodObject<{
1329
- size: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["1K", "2K", "4K"]>, z.ZodString]>>;
378
+ size: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
379
+ "1K": "1K";
380
+ "2K": "2K";
381
+ "4K": "4K";
382
+ }>, z.ZodString]>>;
1330
383
  n: z.ZodOptional<z.ZodNumber>;
1331
384
  negative_prompt: z.ZodOptional<z.ZodString>;
1332
385
  prompt_extend: z.ZodOptional<z.ZodBoolean>;
@@ -1335,181 +388,105 @@ export declare const AlibabaImageGenerationRequestSchema: z.ZodObject<{
1335
388
  color_palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
1336
389
  hex: z.ZodString;
1337
390
  ratio: z.ZodString;
1338
- }, "strip", z.ZodTypeAny, {
1339
- ratio: string;
1340
- hex: string;
1341
- }, {
1342
- ratio: string;
1343
- hex: string;
1344
- }>, "many">>;
391
+ }, z.core.$strip>>>;
1345
392
  seed: z.ZodOptional<z.ZodNumber>;
1346
393
  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;
394
+ bbox_list: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
395
+ }, z.core.$strip>>;
396
+ }, z.core.$strip>;
397
+ export declare const AlibabaImageReferenceSlotsSchema: z.ZodArray<z.ZodString>;
398
+ export declare const AlibabaQwenImageGenerationModelSchema: z.ZodEnum<{
399
+ "qwen-image-2.0-pro": "qwen-image-2.0-pro";
400
+ "qwen-image-2.0-pro-2026-03-03": "qwen-image-2.0-pro-2026-03-03";
401
+ "qwen-image-2.0": "qwen-image-2.0";
402
+ "qwen-image-2.0-2026-03-03": "qwen-image-2.0-2026-03-03";
403
+ }>;
404
+ export declare const AlibabaQwenImageEditModelSchema: z.ZodEnum<{
405
+ "qwen-image-edit-max": "qwen-image-edit-max";
406
+ "qwen-image-edit-max-2026-01-16": "qwen-image-edit-max-2026-01-16";
407
+ "qwen-image-edit-plus": "qwen-image-edit-plus";
408
+ "qwen-image-edit-plus-2025-12-15": "qwen-image-edit-plus-2025-12-15";
409
+ "qwen-image-edit-plus-2025-10-30": "qwen-image-edit-plus-2025-10-30";
410
+ "qwen-image-edit": "qwen-image-edit";
1431
411
  }>;
1432
- export declare const AlibabaImageReferenceSlotsSchema: z.ZodArray<z.ZodString, "many">;
412
+ export declare const AlibabaQwenImageModelSchema: z.ZodUnion<readonly [z.ZodEnum<{
413
+ "qwen-image-2.0-pro": "qwen-image-2.0-pro";
414
+ "qwen-image-2.0-pro-2026-03-03": "qwen-image-2.0-pro-2026-03-03";
415
+ "qwen-image-2.0": "qwen-image-2.0";
416
+ "qwen-image-2.0-2026-03-03": "qwen-image-2.0-2026-03-03";
417
+ }>, z.ZodEnum<{
418
+ "qwen-image-edit-max": "qwen-image-edit-max";
419
+ "qwen-image-edit-max-2026-01-16": "qwen-image-edit-max-2026-01-16";
420
+ "qwen-image-edit-plus": "qwen-image-edit-plus";
421
+ "qwen-image-edit-plus-2025-12-15": "qwen-image-edit-plus-2025-12-15";
422
+ "qwen-image-edit-plus-2025-10-30": "qwen-image-edit-plus-2025-10-30";
423
+ "qwen-image-edit": "qwen-image-edit";
424
+ }>]>;
425
+ export declare const AlibabaQwenImageTextSlotsSchema: z.ZodArray<z.ZodString>;
426
+ export declare const AlibabaQwenImageGenerationImageSlotsSchema: z.ZodArray<z.ZodString>;
427
+ export declare const AlibabaQwenImageEditImageSlotsSchema: z.ZodArray<z.ZodString>;
428
+ export declare const AlibabaQwenImageGenerationSlotsSchema: z.ZodObject<{
429
+ text: z.ZodArray<z.ZodString>;
430
+ images: z.ZodArray<z.ZodString>;
431
+ }, z.core.$strip>;
432
+ export declare const AlibabaQwenImageEditSlotsSchema: z.ZodObject<{
433
+ text: z.ZodArray<z.ZodString>;
434
+ images: z.ZodArray<z.ZodString>;
435
+ }, z.core.$strip>;
1433
436
  export declare const AlibabaMultimodalGenerationMessageSchema: z.ZodObject<{
1434
437
  role: z.ZodLiteral<"user">;
1435
- content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
438
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1436
439
  text: z.ZodString;
1437
- }, "strip", z.ZodTypeAny, {
1438
- text: string;
1439
- }, {
1440
- text: string;
1441
- }>, z.ZodObject<{
440
+ }, z.core.$strip>, z.ZodObject<{
1442
441
  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
- }>;
442
+ }, z.core.$strip>]>>;
443
+ }, z.core.$strip>;
444
+ export declare const AlibabaQwenImageGenerationMessageSchema: z.ZodObject<{
445
+ role: z.ZodLiteral<"user">;
446
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
447
+ text: z.ZodString;
448
+ }, z.core.$strip>, z.ZodObject<{
449
+ image: z.ZodString;
450
+ }, z.core.$strip>]>>;
451
+ }, z.core.$strip>;
452
+ export declare const AlibabaQwenImageEditMessageSchema: z.ZodObject<{
453
+ role: z.ZodLiteral<"user">;
454
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
455
+ text: z.ZodString;
456
+ }, z.core.$strip>, z.ZodObject<{
457
+ image: z.ZodString;
458
+ }, z.core.$strip>]>>;
459
+ }, z.core.$strip>;
1463
460
  export declare const AlibabaMultimodalGenerationInputSchema: z.ZodObject<{
1464
461
  messages: z.ZodArray<z.ZodObject<{
1465
462
  role: z.ZodLiteral<"user">;
1466
- content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
463
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1467
464
  text: z.ZodString;
1468
- }, "strip", z.ZodTypeAny, {
1469
- text: string;
1470
- }, {
1471
- text: string;
1472
- }>, z.ZodObject<{
465
+ }, z.core.$strip>, z.ZodObject<{
1473
466
  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
- }>;
467
+ }, z.core.$strip>]>>;
468
+ }, z.core.$strip>>;
469
+ }, z.core.$strip>;
470
+ export declare const AlibabaQwenImageGenerationInputSchema: z.ZodObject<{
471
+ messages: z.ZodArray<z.ZodObject<{
472
+ role: z.ZodLiteral<"user">;
473
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
474
+ text: z.ZodString;
475
+ }, z.core.$strip>, z.ZodObject<{
476
+ image: z.ZodString;
477
+ }, z.core.$strip>]>>;
478
+ }, z.core.$strip>>;
479
+ }, z.core.$strip>;
480
+ export declare const AlibabaQwenImageEditInputSchema: z.ZodObject<{
481
+ messages: z.ZodArray<z.ZodObject<{
482
+ role: z.ZodLiteral<"user">;
483
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
484
+ text: z.ZodString;
485
+ }, z.core.$strip>, z.ZodObject<{
486
+ image: z.ZodString;
487
+ }, z.core.$strip>]>>;
488
+ }, z.core.$strip>>;
489
+ }, z.core.$strip>;
1513
490
  export declare const AlibabaMultimodalGenerationParametersSchema: z.ZodObject<{
1514
491
  n: z.ZodOptional<z.ZodNumber>;
1515
492
  negative_prompt: z.ZodOptional<z.ZodString>;
@@ -1517,73 +494,52 @@ export declare const AlibabaMultimodalGenerationParametersSchema: z.ZodObject<{
1517
494
  prompt_extend: z.ZodOptional<z.ZodBoolean>;
1518
495
  watermark: z.ZodOptional<z.ZodBoolean>;
1519
496
  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"]>;
497
+ }, z.core.$strip>;
498
+ export declare const AlibabaQwenImageGenerationRequestSchema: z.ZodObject<{
499
+ model: z.ZodEnum<{
500
+ "qwen-image-2.0-pro": "qwen-image-2.0-pro";
501
+ "qwen-image-2.0-pro-2026-03-03": "qwen-image-2.0-pro-2026-03-03";
502
+ "qwen-image-2.0": "qwen-image-2.0";
503
+ "qwen-image-2.0-2026-03-03": "qwen-image-2.0-2026-03-03";
504
+ }>;
1537
505
  input: z.ZodObject<{
1538
506
  messages: z.ZodArray<z.ZodObject<{
1539
507
  role: z.ZodLiteral<"user">;
1540
- content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
508
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1541
509
  text: z.ZodString;
1542
- }, "strip", z.ZodTypeAny, {
1543
- text: string;
1544
- }, {
1545
- text: string;
1546
- }>, z.ZodObject<{
510
+ }, z.core.$strip>, z.ZodObject<{
1547
511
  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
- }[];
512
+ }, z.core.$strip>]>>;
513
+ }, z.core.$strip>>;
514
+ }, z.core.$strip>;
515
+ parameters: z.ZodOptional<z.ZodObject<{
516
+ n: z.ZodOptional<z.ZodNumber>;
517
+ negative_prompt: z.ZodOptional<z.ZodString>;
518
+ size: z.ZodOptional<z.ZodString>;
519
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
520
+ watermark: z.ZodOptional<z.ZodBoolean>;
521
+ seed: z.ZodOptional<z.ZodNumber>;
522
+ }, z.core.$strip>>;
523
+ }, z.core.$strip>;
524
+ export declare const AlibabaQwenImageEditRequestSchema: z.ZodObject<{
525
+ model: z.ZodEnum<{
526
+ "qwen-image-edit-max": "qwen-image-edit-max";
527
+ "qwen-image-edit-max-2026-01-16": "qwen-image-edit-max-2026-01-16";
528
+ "qwen-image-edit-plus": "qwen-image-edit-plus";
529
+ "qwen-image-edit-plus-2025-12-15": "qwen-image-edit-plus-2025-12-15";
530
+ "qwen-image-edit-plus-2025-10-30": "qwen-image-edit-plus-2025-10-30";
531
+ "qwen-image-edit": "qwen-image-edit";
1586
532
  }>;
533
+ input: z.ZodObject<{
534
+ messages: z.ZodArray<z.ZodObject<{
535
+ role: z.ZodLiteral<"user">;
536
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
537
+ text: z.ZodString;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ image: z.ZodString;
540
+ }, z.core.$strip>]>>;
541
+ }, z.core.$strip>>;
542
+ }, z.core.$strip>;
1587
543
  parameters: z.ZodOptional<z.ZodObject<{
1588
544
  n: z.ZodOptional<z.ZodNumber>;
1589
545
  negative_prompt: z.ZodOptional<z.ZodString>;
@@ -1591,278 +547,67 @@ export declare const AlibabaMultimodalGenerationRequestSchema: z.ZodEffects<z.Zo
1591
547
  prompt_extend: z.ZodOptional<z.ZodBoolean>;
1592
548
  watermark: z.ZodOptional<z.ZodBoolean>;
1593
549
  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
- }>;
550
+ }, z.core.$strip>>;
551
+ }, z.core.$strip>;
552
+ export declare const AlibabaMultimodalGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
553
+ model: z.ZodEnum<{
554
+ "qwen-image-2.0-pro": "qwen-image-2.0-pro";
555
+ "qwen-image-2.0-pro-2026-03-03": "qwen-image-2.0-pro-2026-03-03";
556
+ "qwen-image-2.0": "qwen-image-2.0";
557
+ "qwen-image-2.0-2026-03-03": "qwen-image-2.0-2026-03-03";
558
+ }>;
559
+ input: z.ZodObject<{
560
+ messages: z.ZodArray<z.ZodObject<{
561
+ role: z.ZodLiteral<"user">;
562
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
563
+ text: z.ZodString;
564
+ }, z.core.$strip>, z.ZodObject<{
565
+ image: z.ZodString;
566
+ }, z.core.$strip>]>>;
567
+ }, z.core.$strip>>;
568
+ }, z.core.$strip>;
569
+ parameters: z.ZodOptional<z.ZodObject<{
570
+ n: z.ZodOptional<z.ZodNumber>;
571
+ negative_prompt: z.ZodOptional<z.ZodString>;
572
+ size: z.ZodOptional<z.ZodString>;
573
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
574
+ watermark: z.ZodOptional<z.ZodBoolean>;
575
+ seed: z.ZodOptional<z.ZodNumber>;
576
+ }, z.core.$strip>>;
577
+ }, z.core.$strip>, z.ZodObject<{
578
+ model: z.ZodEnum<{
579
+ "qwen-image-edit-max": "qwen-image-edit-max";
580
+ "qwen-image-edit-max-2026-01-16": "qwen-image-edit-max-2026-01-16";
581
+ "qwen-image-edit-plus": "qwen-image-edit-plus";
582
+ "qwen-image-edit-plus-2025-12-15": "qwen-image-edit-plus-2025-12-15";
583
+ "qwen-image-edit-plus-2025-10-30": "qwen-image-edit-plus-2025-10-30";
584
+ "qwen-image-edit": "qwen-image-edit";
585
+ }>;
586
+ input: z.ZodObject<{
587
+ messages: z.ZodArray<z.ZodObject<{
588
+ role: z.ZodLiteral<"user">;
589
+ content: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
590
+ text: z.ZodString;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ image: z.ZodString;
593
+ }, z.core.$strip>]>>;
594
+ }, z.core.$strip>>;
595
+ }, z.core.$strip>;
596
+ parameters: z.ZodOptional<z.ZodObject<{
597
+ n: z.ZodOptional<z.ZodNumber>;
598
+ negative_prompt: z.ZodOptional<z.ZodString>;
599
+ size: z.ZodOptional<z.ZodString>;
600
+ prompt_extend: z.ZodOptional<z.ZodBoolean>;
601
+ watermark: z.ZodOptional<z.ZodBoolean>;
602
+ seed: z.ZodOptional<z.ZodNumber>;
603
+ }, z.core.$strip>>;
604
+ }, z.core.$strip>], "model">;
1850
605
  export declare const AlibabaOptionsSchema: z.ZodObject<{
1851
606
  apiKey: z.ZodString;
1852
607
  baseURL: z.ZodOptional<z.ZodString>;
1853
608
  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
- }>;
609
+ fetch: z.ZodOptional<z.ZodCustom<(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>, (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>>>;
610
+ }, z.core.$strip>;
1866
611
  export type AlibabaFunctionDefinition = z.infer<typeof AlibabaFunctionDefinitionSchema>;
1867
612
  export type AlibabaTool = z.infer<typeof AlibabaToolSchema>;
1868
613
  export type AlibabaToolCallFunction = z.infer<typeof AlibabaToolCallFunctionSchema>;
@@ -1873,12 +618,16 @@ export type AlibabaContentPart = z.infer<typeof AlibabaContentPartSchema>;
1873
618
  export type AlibabaMessage = z.infer<typeof AlibabaMessageSchema>;
1874
619
  export type AlibabaStreamOptions = z.infer<typeof AlibabaStreamOptionsSchema>;
1875
620
  export type AlibabaResponseFormat = z.infer<typeof AlibabaResponseFormatSchema>;
1876
- export type AlibabaChatRequest = z.infer<typeof AlibabaChatRequestSchema>;
621
+ export type AlibabaChatRequest = z.input<typeof AlibabaChatRequestSchema>;
622
+ export type AlibabaChatParsedRequest = z.output<typeof AlibabaChatRequestSchema>;
1877
623
  export type AlibabaVideoMediaType = z.infer<typeof AlibabaVideoMediaTypeSchema>;
1878
624
  export type AlibabaVideoMedia = z.infer<typeof AlibabaVideoMediaSchema>;
625
+ export type AlibabaVideoSynthesisModel = z.infer<typeof AlibabaVideoSynthesisModelSchema>;
1879
626
  export type AlibabaVideoSynthesisInput = z.infer<typeof AlibabaVideoSynthesisInputSchema>;
1880
627
  export type AlibabaVideoSynthesisParameters = z.infer<typeof AlibabaVideoSynthesisParametersSchema>;
1881
- export type AlibabaVideoSynthesisRequest = z.infer<typeof AlibabaVideoSynthesisRequestSchema>;
628
+ export type AlibabaVideoSynthesisRequestObject = z.infer<typeof AlibabaVideoSynthesisRequestObjectSchema>;
629
+ export type AlibabaVideoSynthesisRequest = z.input<typeof AlibabaVideoSynthesisRequestSchema>;
630
+ export type AlibabaVideoSynthesisParsedRequest = z.output<typeof AlibabaVideoSynthesisRequestSchema>;
1882
631
  export type AlibabaImageTextContent = z.infer<typeof AlibabaImageTextContentSchema>;
1883
632
  export type AlibabaImageImageContent = z.infer<typeof AlibabaImageImageContentSchema>;
1884
633
  export type AlibabaImageContent = z.infer<typeof AlibabaImageContentSchema>;
@@ -1886,18 +635,60 @@ export type AlibabaImageGenerationMessage = z.infer<typeof AlibabaImageGeneratio
1886
635
  export type AlibabaImageGenerationInput = z.infer<typeof AlibabaImageGenerationInputSchema>;
1887
636
  export type AlibabaColorPaletteItem = z.infer<typeof AlibabaColorPaletteItemSchema>;
1888
637
  export type AlibabaImageGenerationParameters = z.infer<typeof AlibabaImageGenerationParametersSchema>;
1889
- export type AlibabaImageGenerationRequest = z.infer<typeof AlibabaImageGenerationRequestSchema>;
638
+ export type AlibabaImageGenerationRequest = z.input<typeof AlibabaImageGenerationRequestSchema>;
639
+ export type AlibabaImageGenerationParsedRequest = z.output<typeof AlibabaImageGenerationRequestSchema>;
1890
640
  export type AlibabaImageReferenceSlots = z.infer<typeof AlibabaImageReferenceSlotsSchema>;
641
+ export type AlibabaQwenImageGenerationModel = z.infer<typeof AlibabaQwenImageGenerationModelSchema>;
642
+ export type AlibabaQwenImageEditModel = z.infer<typeof AlibabaQwenImageEditModelSchema>;
643
+ export type AlibabaQwenImageModel = z.infer<typeof AlibabaQwenImageModelSchema>;
644
+ export type AlibabaQwenImageTextSlots = z.infer<typeof AlibabaQwenImageTextSlotsSchema>;
645
+ export type AlibabaQwenImageGenerationImageSlots = z.infer<typeof AlibabaQwenImageGenerationImageSlotsSchema>;
646
+ export type AlibabaQwenImageEditImageSlots = z.infer<typeof AlibabaQwenImageEditImageSlotsSchema>;
647
+ export type AlibabaQwenImageGenerationSlots = z.infer<typeof AlibabaQwenImageGenerationSlotsSchema>;
648
+ export type AlibabaQwenImageEditSlots = z.infer<typeof AlibabaQwenImageEditSlotsSchema>;
649
+ export type AlibabaQwenImageGenerationMessage = z.infer<typeof AlibabaQwenImageGenerationMessageSchema>;
650
+ export type AlibabaQwenImageEditMessage = z.infer<typeof AlibabaQwenImageEditMessageSchema>;
651
+ export type AlibabaQwenImageGenerationInput = z.infer<typeof AlibabaQwenImageGenerationInputSchema>;
652
+ export type AlibabaQwenImageEditInput = z.infer<typeof AlibabaQwenImageEditInputSchema>;
653
+ export type AlibabaQwenImageGenerationRequest = z.input<typeof AlibabaQwenImageGenerationRequestSchema>;
654
+ export type AlibabaQwenImageGenerationParsedRequest = z.output<typeof AlibabaQwenImageGenerationRequestSchema>;
655
+ export type AlibabaQwenImageEditRequest = z.input<typeof AlibabaQwenImageEditRequestSchema>;
656
+ export type AlibabaQwenImageEditParsedRequest = z.output<typeof AlibabaQwenImageEditRequestSchema>;
1891
657
  export type AlibabaMultimodalGenerationMessage = z.infer<typeof AlibabaMultimodalGenerationMessageSchema>;
1892
658
  export type AlibabaMultimodalGenerationInput = z.infer<typeof AlibabaMultimodalGenerationInputSchema>;
1893
659
  export type AlibabaMultimodalGenerationParameters = z.infer<typeof AlibabaMultimodalGenerationParametersSchema>;
1894
- export type AlibabaMultimodalGenerationRequest = z.infer<typeof AlibabaMultimodalGenerationRequestSchema>;
660
+ export type AlibabaMultimodalGenerationRequest = z.input<typeof AlibabaMultimodalGenerationRequestSchema>;
661
+ export type AlibabaMultimodalGenerationParsedRequest = z.output<typeof AlibabaMultimodalGenerationRequestSchema>;
1895
662
  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"]>;
663
+ export declare const AlibabaRoleSchema: z.ZodEnum<{
664
+ system: "system";
665
+ user: "user";
666
+ assistant: "assistant";
667
+ tool: "tool";
668
+ }>;
669
+ export declare const AlibabaFinishReasonSchema: z.ZodUnion<[z.ZodEnum<{
670
+ null: "null";
671
+ tool_calls: "tool_calls";
672
+ stop: "stop";
673
+ length: "length";
674
+ content_filter: "content_filter";
675
+ }>, z.ZodString]>;
676
+ export declare const AlibabaTaskStatusSchema: z.ZodEnum<{
677
+ PENDING: "PENDING";
678
+ RUNNING: "RUNNING";
679
+ SUSPENDED: "SUSPENDED";
680
+ SUCCEEDED: "SUCCEEDED";
681
+ FAILED: "FAILED";
682
+ CANCELED: "CANCELED";
683
+ UNKNOWN: "UNKNOWN";
684
+ }>;
1899
685
  export declare const AlibabaChatResponseMessageSchema: z.ZodObject<{
1900
- role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
686
+ role: z.ZodEnum<{
687
+ system: "system";
688
+ user: "user";
689
+ assistant: "assistant";
690
+ tool: "tool";
691
+ }>;
1901
692
  content: z.ZodNullable<z.ZodString>;
1902
693
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1903
694
  id: z.ZodString;
@@ -1905,55 +696,18 @@ export declare const AlibabaChatResponseMessageSchema: z.ZodObject<{
1905
696
  function: z.ZodObject<{
1906
697
  name: z.ZodString;
1907
698
  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
- }>;
699
+ }, z.core.$strip>;
700
+ }, z.core.$strip>>>;
701
+ }, z.core.$strip>;
1953
702
  export declare const AlibabaChatChoiceSchema: z.ZodObject<{
1954
703
  index: z.ZodNumber;
1955
704
  message: z.ZodObject<{
1956
- role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
705
+ role: z.ZodEnum<{
706
+ system: "system";
707
+ user: "user";
708
+ assistant: "assistant";
709
+ tool: "tool";
710
+ }>;
1957
711
  content: z.ZodNullable<z.ZodString>;
1958
712
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1959
713
  id: z.ZodString;
@@ -1961,96 +715,22 @@ export declare const AlibabaChatChoiceSchema: z.ZodObject<{
1961
715
  function: z.ZodObject<{
1962
716
  name: z.ZodString;
1963
717
  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
- }>;
718
+ }, z.core.$strip>;
719
+ }, z.core.$strip>>>;
720
+ }, z.core.$strip>;
721
+ finish_reason: z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
722
+ null: "null";
723
+ tool_calls: "tool_calls";
724
+ stop: "stop";
725
+ length: "length";
726
+ content_filter: "content_filter";
727
+ }>, z.ZodString]>>;
728
+ }, z.core.$strip>;
2041
729
  export declare const AlibabaUsageSchema: z.ZodObject<{
2042
730
  prompt_tokens: z.ZodNumber;
2043
731
  completion_tokens: z.ZodNumber;
2044
732
  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
- }>;
733
+ }, z.core.$strip>;
2054
734
  export declare const AlibabaChatResponseSchema: z.ZodObject<{
2055
735
  id: z.ZodString;
2056
736
  object: z.ZodString;
@@ -2059,7 +739,12 @@ export declare const AlibabaChatResponseSchema: z.ZodObject<{
2059
739
  choices: z.ZodArray<z.ZodObject<{
2060
740
  index: z.ZodNumber;
2061
741
  message: z.ZodObject<{
2062
- role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
742
+ role: z.ZodEnum<{
743
+ system: "system";
744
+ user: "user";
745
+ assistant: "assistant";
746
+ tool: "tool";
747
+ }>;
2063
748
  content: z.ZodNullable<z.ZodString>;
2064
749
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2065
750
  id: z.ZodString;
@@ -2067,151 +752,30 @@ export declare const AlibabaChatResponseSchema: z.ZodObject<{
2067
752
  function: z.ZodObject<{
2068
753
  name: z.ZodString;
2069
754
  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">;
755
+ }, z.core.$strip>;
756
+ }, z.core.$strip>>>;
757
+ }, z.core.$strip>;
758
+ finish_reason: z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
759
+ null: "null";
760
+ tool_calls: "tool_calls";
761
+ stop: "stop";
762
+ length: "length";
763
+ content_filter: "content_filter";
764
+ }>, z.ZodString]>>;
765
+ }, z.core.$strip>>;
2147
766
  usage: z.ZodOptional<z.ZodObject<{
2148
767
  prompt_tokens: z.ZodNumber;
2149
768
  completion_tokens: z.ZodNumber;
2150
769
  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
- }>;
770
+ }, z.core.$strip>>;
771
+ }, z.core.$strip>;
2213
772
  export declare const AlibabaChatStreamDeltaSchema: z.ZodObject<{
2214
- role: z.ZodOptional<z.ZodEnum<["system", "user", "assistant", "tool"]>>;
773
+ role: z.ZodOptional<z.ZodEnum<{
774
+ system: "system";
775
+ user: "user";
776
+ assistant: "assistant";
777
+ tool: "tool";
778
+ }>>;
2215
779
  content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2216
780
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2217
781
  id: z.ZodString;
@@ -2219,55 +783,18 @@ export declare const AlibabaChatStreamDeltaSchema: z.ZodObject<{
2219
783
  function: z.ZodObject<{
2220
784
  name: z.ZodString;
2221
785
  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
- }>;
786
+ }, z.core.$strip>;
787
+ }, z.core.$strip>>>;
788
+ }, z.core.$strip>;
2267
789
  export declare const AlibabaChatStreamChoiceSchema: z.ZodObject<{
2268
790
  index: z.ZodNumber;
2269
791
  delta: z.ZodObject<{
2270
- role: z.ZodOptional<z.ZodEnum<["system", "user", "assistant", "tool"]>>;
792
+ role: z.ZodOptional<z.ZodEnum<{
793
+ system: "system";
794
+ user: "user";
795
+ assistant: "assistant";
796
+ tool: "tool";
797
+ }>>;
2271
798
  content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2272
799
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2273
800
  id: z.ZodString;
@@ -2275,83 +802,17 @@ export declare const AlibabaChatStreamChoiceSchema: z.ZodObject<{
2275
802
  function: z.ZodObject<{
2276
803
  name: z.ZodString;
2277
804
  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
- }>;
805
+ }, z.core.$strip>;
806
+ }, z.core.$strip>>>;
807
+ }, z.core.$strip>;
808
+ finish_reason: z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
809
+ null: "null";
810
+ tool_calls: "tool_calls";
811
+ stop: "stop";
812
+ length: "length";
813
+ content_filter: "content_filter";
814
+ }>, z.ZodString]>>;
815
+ }, z.core.$strip>;
2355
816
  export declare const AlibabaChatStreamChunkSchema: z.ZodObject<{
2356
817
  id: z.ZodString;
2357
818
  object: z.ZodString;
@@ -2360,7 +821,12 @@ export declare const AlibabaChatStreamChunkSchema: z.ZodObject<{
2360
821
  choices: z.ZodArray<z.ZodObject<{
2361
822
  index: z.ZodNumber;
2362
823
  delta: z.ZodObject<{
2363
- role: z.ZodOptional<z.ZodEnum<["system", "user", "assistant", "tool"]>>;
824
+ role: z.ZodOptional<z.ZodEnum<{
825
+ system: "system";
826
+ user: "user";
827
+ assistant: "assistant";
828
+ tool: "tool";
829
+ }>>;
2364
830
  content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2365
831
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2366
832
  id: z.ZodString;
@@ -2368,165 +834,29 @@ export declare const AlibabaChatStreamChunkSchema: z.ZodObject<{
2368
834
  function: z.ZodObject<{
2369
835
  name: z.ZodString;
2370
836
  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">;
837
+ }, z.core.$strip>;
838
+ }, z.core.$strip>>>;
839
+ }, z.core.$strip>;
840
+ finish_reason: z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
841
+ null: "null";
842
+ tool_calls: "tool_calls";
843
+ stop: "stop";
844
+ length: "length";
845
+ content_filter: "content_filter";
846
+ }>, z.ZodString]>>;
847
+ }, z.core.$strip>>;
2448
848
  usage: z.ZodOptional<z.ZodObject<{
2449
849
  prompt_tokens: z.ZodNumber;
2450
850
  completion_tokens: z.ZodNumber;
2451
851
  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
- }>;
852
+ }, z.core.$strip>>;
853
+ }, z.core.$strip>;
2514
854
  export declare const AlibabaModelSchema: z.ZodObject<{
2515
855
  id: z.ZodString;
2516
856
  object: z.ZodString;
2517
857
  created: z.ZodNumber;
2518
858
  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
- }>;
859
+ }, z.core.$strip>;
2530
860
  export declare const AlibabaModelListResponseSchema: z.ZodObject<{
2531
861
  object: z.ZodString;
2532
862
  data: z.ZodArray<z.ZodObject<{
@@ -2534,286 +864,106 @@ export declare const AlibabaModelListResponseSchema: z.ZodObject<{
2534
864
  object: z.ZodString;
2535
865
  created: z.ZodNumber;
2536
866
  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">;
867
+ }, z.core.$strip>>;
2548
868
  first_id: z.ZodString;
2549
869
  last_id: z.ZodString;
2550
870
  has_more: z.ZodBoolean;
2551
- }, "strip", z.ZodTypeAny, {
2552
- object: string;
2553
- data: {
2554
- object: string;
2555
- id: string;
2556
- created: number;
2557
- owned_by: string;
2558
- }[];
2559
- first_id: string;
2560
- last_id: string;
2561
- has_more: boolean;
2562
- }, {
2563
- object: string;
2564
- data: {
2565
- object: string;
2566
- id: string;
2567
- created: number;
2568
- owned_by: string;
2569
- }[];
2570
- first_id: string;
2571
- last_id: string;
2572
- has_more: boolean;
2573
- }>;
871
+ }, z.core.$strip>;
2574
872
  export declare const AlibabaImageGenerationContentSchema: z.ZodObject<{
2575
873
  type: z.ZodLiteral<"image">;
2576
874
  image: z.ZodString;
2577
- }, "strip", z.ZodTypeAny, {
2578
- type: "image";
2579
- image: string;
2580
- }, {
2581
- type: "image";
2582
- image: string;
2583
- }>;
875
+ }, z.core.$strip>;
2584
876
  export declare const AlibabaImageGenerationResultMessageSchema: z.ZodObject<{
2585
877
  role: z.ZodLiteral<"assistant">;
2586
878
  content: z.ZodArray<z.ZodObject<{
2587
879
  type: z.ZodLiteral<"image">;
2588
880
  image: z.ZodString;
2589
- }, "strip", z.ZodTypeAny, {
2590
- type: "image";
2591
- image: string;
2592
- }, {
2593
- type: "image";
2594
- image: string;
2595
- }>, "many">;
2596
- }, "strip", z.ZodTypeAny, {
2597
- role: "assistant";
2598
- content: {
2599
- type: "image";
2600
- image: string;
2601
- }[];
2602
- }, {
2603
- role: "assistant";
2604
- content: {
2605
- type: "image";
2606
- image: string;
2607
- }[];
2608
- }>;
881
+ }, z.core.$strip>>;
882
+ }, z.core.$strip>;
2609
883
  export declare const AlibabaImageGenerationChoiceSchema: z.ZodObject<{
2610
- finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
884
+ finish_reason: z.ZodUnion<[z.ZodEnum<{
885
+ null: "null";
886
+ tool_calls: "tool_calls";
887
+ stop: "stop";
888
+ length: "length";
889
+ content_filter: "content_filter";
890
+ }>, z.ZodString]>;
2611
891
  message: z.ZodObject<{
2612
892
  role: z.ZodLiteral<"assistant">;
2613
893
  content: z.ZodArray<z.ZodObject<{
2614
894
  type: z.ZodLiteral<"image">;
2615
895
  image: z.ZodString;
2616
- }, "strip", z.ZodTypeAny, {
2617
- type: "image";
2618
- image: string;
2619
- }, {
2620
- type: "image";
2621
- image: string;
2622
- }>, "many">;
2623
- }, "strip", z.ZodTypeAny, {
2624
- role: "assistant";
2625
- content: {
2626
- type: "image";
2627
- image: string;
2628
- }[];
2629
- }, {
2630
- role: "assistant";
2631
- content: {
2632
- type: "image";
2633
- image: string;
2634
- }[];
2635
- }>;
2636
- }, "strip", z.ZodTypeAny, {
2637
- message: {
2638
- role: "assistant";
2639
- content: {
2640
- type: "image";
2641
- image: string;
2642
- }[];
2643
- };
2644
- finish_reason: string;
2645
- }, {
2646
- message: {
2647
- role: "assistant";
2648
- content: {
2649
- type: "image";
2650
- image: string;
2651
- }[];
2652
- };
2653
- finish_reason: string;
2654
- }>;
896
+ }, z.core.$strip>>;
897
+ }, z.core.$strip>;
898
+ }, z.core.$strip>;
2655
899
  export declare const AlibabaImageGenerationSubmitOutputSchema: z.ZodObject<{
2656
900
  task_id: z.ZodString;
2657
- task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2658
- }, "strip", z.ZodTypeAny, {
2659
- task_id: string;
2660
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2661
- }, {
2662
- task_id: string;
2663
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2664
- }>;
901
+ task_status: z.ZodEnum<{
902
+ PENDING: "PENDING";
903
+ RUNNING: "RUNNING";
904
+ SUSPENDED: "SUSPENDED";
905
+ SUCCEEDED: "SUCCEEDED";
906
+ FAILED: "FAILED";
907
+ CANCELED: "CANCELED";
908
+ UNKNOWN: "UNKNOWN";
909
+ }>;
910
+ }, z.core.$strip>;
2665
911
  export declare const AlibabaImageGenerationSubmitResponseSchema: z.ZodObject<{
2666
912
  output: z.ZodObject<{
2667
913
  task_id: z.ZodString;
2668
- task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2669
- }, "strip", z.ZodTypeAny, {
2670
- task_id: string;
2671
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2672
- }, {
2673
- task_id: string;
2674
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2675
- }>;
914
+ task_status: z.ZodEnum<{
915
+ PENDING: "PENDING";
916
+ RUNNING: "RUNNING";
917
+ SUSPENDED: "SUSPENDED";
918
+ SUCCEEDED: "SUCCEEDED";
919
+ FAILED: "FAILED";
920
+ CANCELED: "CANCELED";
921
+ UNKNOWN: "UNKNOWN";
922
+ }>;
923
+ }, z.core.$strip>;
2676
924
  request_id: z.ZodString;
2677
- }, "strip", z.ZodTypeAny, {
2678
- output: {
2679
- task_id: string;
2680
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2681
- };
2682
- request_id: string;
2683
- }, {
2684
- output: {
2685
- task_id: string;
2686
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2687
- };
2688
- request_id: string;
2689
- }>;
925
+ }, z.core.$strip>;
2690
926
  export declare const AlibabaMultimodalGenerationImagePartSchema: z.ZodObject<{
2691
927
  image: z.ZodString;
2692
- }, "strip", z.ZodTypeAny, {
2693
- image: string;
2694
- }, {
2695
- image: string;
2696
- }>;
928
+ }, z.core.$strip>;
2697
929
  export declare const AlibabaMultimodalGenerationResultMessageSchema: z.ZodObject<{
2698
930
  role: z.ZodLiteral<"assistant">;
2699
931
  content: z.ZodArray<z.ZodObject<{
2700
932
  image: z.ZodString;
2701
- }, "strip", z.ZodTypeAny, {
2702
- image: string;
2703
- }, {
2704
- image: string;
2705
- }>, "many">;
2706
- }, "strip", z.ZodTypeAny, {
2707
- role: "assistant";
2708
- content: {
2709
- image: string;
2710
- }[];
2711
- }, {
2712
- role: "assistant";
2713
- content: {
2714
- image: string;
2715
- }[];
2716
- }>;
933
+ }, z.core.$strip>>;
934
+ }, z.core.$strip>;
2717
935
  export declare const AlibabaMultimodalGenerationChoiceSchema: z.ZodObject<{
2718
- finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
936
+ finish_reason: z.ZodUnion<[z.ZodEnum<{
937
+ null: "null";
938
+ tool_calls: "tool_calls";
939
+ stop: "stop";
940
+ length: "length";
941
+ content_filter: "content_filter";
942
+ }>, z.ZodString]>;
2719
943
  message: z.ZodObject<{
2720
944
  role: z.ZodLiteral<"assistant">;
2721
945
  content: z.ZodArray<z.ZodObject<{
2722
946
  image: z.ZodString;
2723
- }, "strip", z.ZodTypeAny, {
2724
- image: string;
2725
- }, {
2726
- image: string;
2727
- }>, "many">;
2728
- }, "strip", z.ZodTypeAny, {
2729
- role: "assistant";
2730
- content: {
2731
- image: string;
2732
- }[];
2733
- }, {
2734
- role: "assistant";
2735
- content: {
2736
- image: string;
2737
- }[];
2738
- }>;
2739
- }, "strip", z.ZodTypeAny, {
2740
- message: {
2741
- role: "assistant";
2742
- content: {
2743
- image: string;
2744
- }[];
2745
- };
2746
- finish_reason: string;
2747
- }, {
2748
- message: {
2749
- role: "assistant";
2750
- content: {
2751
- image: string;
2752
- }[];
2753
- };
2754
- finish_reason: string;
2755
- }>;
947
+ }, z.core.$strip>>;
948
+ }, z.core.$strip>;
949
+ }, z.core.$strip>;
2756
950
  export declare const AlibabaMultimodalGenerationOutputSchema: z.ZodObject<{
2757
951
  choices: z.ZodArray<z.ZodObject<{
2758
- finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
952
+ finish_reason: z.ZodUnion<[z.ZodEnum<{
953
+ null: "null";
954
+ tool_calls: "tool_calls";
955
+ stop: "stop";
956
+ length: "length";
957
+ content_filter: "content_filter";
958
+ }>, z.ZodString]>;
2759
959
  message: z.ZodObject<{
2760
960
  role: z.ZodLiteral<"assistant">;
2761
961
  content: z.ZodArray<z.ZodObject<{
2762
962
  image: z.ZodString;
2763
- }, "strip", z.ZodTypeAny, {
2764
- image: string;
2765
- }, {
2766
- image: string;
2767
- }>, "many">;
2768
- }, "strip", z.ZodTypeAny, {
2769
- role: "assistant";
2770
- content: {
2771
- image: string;
2772
- }[];
2773
- }, {
2774
- role: "assistant";
2775
- content: {
2776
- image: string;
2777
- }[];
2778
- }>;
2779
- }, "strip", z.ZodTypeAny, {
2780
- message: {
2781
- role: "assistant";
2782
- content: {
2783
- image: string;
2784
- }[];
2785
- };
2786
- finish_reason: string;
2787
- }, {
2788
- message: {
2789
- role: "assistant";
2790
- content: {
2791
- image: string;
2792
- }[];
2793
- };
2794
- finish_reason: string;
2795
- }>, "many">;
2796
- }, "strip", z.ZodTypeAny, {
2797
- choices: {
2798
- message: {
2799
- role: "assistant";
2800
- content: {
2801
- image: string;
2802
- }[];
2803
- };
2804
- finish_reason: string;
2805
- }[];
2806
- }, {
2807
- choices: {
2808
- message: {
2809
- role: "assistant";
2810
- content: {
2811
- image: string;
2812
- }[];
2813
- };
2814
- finish_reason: string;
2815
- }[];
2816
- }>;
963
+ }, z.core.$strip>>;
964
+ }, z.core.$strip>;
965
+ }, z.core.$strip>>;
966
+ }, z.core.$strip>;
2817
967
  export declare const AlibabaMultimodalGenerationUsageSchema: z.ZodObject<{
2818
968
  image_count: z.ZodOptional<z.ZodNumber>;
2819
969
  width: z.ZodOptional<z.ZodNumber>;
@@ -2821,83 +971,25 @@ export declare const AlibabaMultimodalGenerationUsageSchema: z.ZodObject<{
2821
971
  input_tokens: z.ZodOptional<z.ZodNumber>;
2822
972
  output_tokens: z.ZodOptional<z.ZodNumber>;
2823
973
  characters: z.ZodOptional<z.ZodNumber>;
2824
- }, "strip", z.ZodTypeAny, {
2825
- image_count?: number | undefined;
2826
- width?: number | undefined;
2827
- height?: number | undefined;
2828
- input_tokens?: number | undefined;
2829
- output_tokens?: number | undefined;
2830
- characters?: number | undefined;
2831
- }, {
2832
- image_count?: number | undefined;
2833
- width?: number | undefined;
2834
- height?: number | undefined;
2835
- input_tokens?: number | undefined;
2836
- output_tokens?: number | undefined;
2837
- characters?: number | undefined;
2838
- }>;
974
+ }, z.core.$strip>;
2839
975
  export declare const AlibabaMultimodalGenerationResponseSchema: z.ZodObject<{
2840
976
  output: z.ZodObject<{
2841
977
  choices: z.ZodArray<z.ZodObject<{
2842
- finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
978
+ finish_reason: z.ZodUnion<[z.ZodEnum<{
979
+ null: "null";
980
+ tool_calls: "tool_calls";
981
+ stop: "stop";
982
+ length: "length";
983
+ content_filter: "content_filter";
984
+ }>, z.ZodString]>;
2843
985
  message: z.ZodObject<{
2844
986
  role: z.ZodLiteral<"assistant">;
2845
987
  content: z.ZodArray<z.ZodObject<{
2846
988
  image: z.ZodString;
2847
- }, "strip", z.ZodTypeAny, {
2848
- image: string;
2849
- }, {
2850
- image: string;
2851
- }>, "many">;
2852
- }, "strip", z.ZodTypeAny, {
2853
- role: "assistant";
2854
- content: {
2855
- image: string;
2856
- }[];
2857
- }, {
2858
- role: "assistant";
2859
- content: {
2860
- image: string;
2861
- }[];
2862
- }>;
2863
- }, "strip", z.ZodTypeAny, {
2864
- message: {
2865
- role: "assistant";
2866
- content: {
2867
- image: string;
2868
- }[];
2869
- };
2870
- finish_reason: string;
2871
- }, {
2872
- message: {
2873
- role: "assistant";
2874
- content: {
2875
- image: string;
2876
- }[];
2877
- };
2878
- finish_reason: string;
2879
- }>, "many">;
2880
- }, "strip", z.ZodTypeAny, {
2881
- choices: {
2882
- message: {
2883
- role: "assistant";
2884
- content: {
2885
- image: string;
2886
- }[];
2887
- };
2888
- finish_reason: string;
2889
- }[];
2890
- }, {
2891
- choices: {
2892
- message: {
2893
- role: "assistant";
2894
- content: {
2895
- image: string;
2896
- }[];
2897
- };
2898
- finish_reason: string;
2899
- }[];
2900
- }>;
989
+ }, z.core.$strip>>;
990
+ }, z.core.$strip>;
991
+ }, z.core.$strip>>;
992
+ }, z.core.$strip>;
2901
993
  usage: z.ZodOptional<z.ZodObject<{
2902
994
  image_count: z.ZodOptional<z.ZodNumber>;
2903
995
  width: z.ZodOptional<z.ZodNumber>;
@@ -2905,103 +997,47 @@ export declare const AlibabaMultimodalGenerationResponseSchema: z.ZodObject<{
2905
997
  input_tokens: z.ZodOptional<z.ZodNumber>;
2906
998
  output_tokens: z.ZodOptional<z.ZodNumber>;
2907
999
  characters: z.ZodOptional<z.ZodNumber>;
2908
- }, "strip", z.ZodTypeAny, {
2909
- image_count?: number | undefined;
2910
- width?: number | undefined;
2911
- height?: number | undefined;
2912
- input_tokens?: number | undefined;
2913
- output_tokens?: number | undefined;
2914
- characters?: number | undefined;
2915
- }, {
2916
- image_count?: number | undefined;
2917
- width?: number | undefined;
2918
- height?: number | undefined;
2919
- input_tokens?: number | undefined;
2920
- output_tokens?: number | undefined;
2921
- characters?: number | undefined;
2922
- }>>;
1000
+ }, z.core.$strip>>;
2923
1001
  request_id: z.ZodString;
2924
- }, "strip", z.ZodTypeAny, {
2925
- output: {
2926
- choices: {
2927
- message: {
2928
- role: "assistant";
2929
- content: {
2930
- image: string;
2931
- }[];
2932
- };
2933
- finish_reason: string;
2934
- }[];
2935
- };
2936
- request_id: string;
2937
- usage?: {
2938
- image_count?: number | undefined;
2939
- width?: number | undefined;
2940
- height?: number | undefined;
2941
- input_tokens?: number | undefined;
2942
- output_tokens?: number | undefined;
2943
- characters?: number | undefined;
2944
- } | undefined;
2945
- }, {
2946
- output: {
2947
- choices: {
2948
- message: {
2949
- role: "assistant";
2950
- content: {
2951
- image: string;
2952
- }[];
2953
- };
2954
- finish_reason: string;
2955
- }[];
2956
- };
2957
- request_id: string;
2958
- usage?: {
2959
- image_count?: number | undefined;
2960
- width?: number | undefined;
2961
- height?: number | undefined;
2962
- input_tokens?: number | undefined;
2963
- output_tokens?: number | undefined;
2964
- characters?: number | undefined;
2965
- } | undefined;
2966
- }>;
1002
+ }, z.core.$strip>;
2967
1003
  export declare const AlibabaVideoSynthesisSubmitOutputSchema: z.ZodObject<{
2968
1004
  task_id: z.ZodString;
2969
- task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2970
- }, "strip", z.ZodTypeAny, {
2971
- task_id: string;
2972
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2973
- }, {
2974
- task_id: string;
2975
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2976
- }>;
1005
+ task_status: z.ZodEnum<{
1006
+ PENDING: "PENDING";
1007
+ RUNNING: "RUNNING";
1008
+ SUSPENDED: "SUSPENDED";
1009
+ SUCCEEDED: "SUCCEEDED";
1010
+ FAILED: "FAILED";
1011
+ CANCELED: "CANCELED";
1012
+ UNKNOWN: "UNKNOWN";
1013
+ }>;
1014
+ }, z.core.$strip>;
2977
1015
  export declare const AlibabaVideoSynthesisSubmitResponseSchema: z.ZodObject<{
2978
1016
  output: z.ZodObject<{
2979
1017
  task_id: z.ZodString;
2980
- task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
2981
- }, "strip", z.ZodTypeAny, {
2982
- task_id: string;
2983
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2984
- }, {
2985
- task_id: string;
2986
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2987
- }>;
1018
+ task_status: z.ZodEnum<{
1019
+ PENDING: "PENDING";
1020
+ RUNNING: "RUNNING";
1021
+ SUSPENDED: "SUSPENDED";
1022
+ SUCCEEDED: "SUCCEEDED";
1023
+ FAILED: "FAILED";
1024
+ CANCELED: "CANCELED";
1025
+ UNKNOWN: "UNKNOWN";
1026
+ }>;
1027
+ }, z.core.$strip>;
2988
1028
  request_id: z.ZodString;
2989
- }, "strip", z.ZodTypeAny, {
2990
- output: {
2991
- task_id: string;
2992
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2993
- };
2994
- request_id: string;
2995
- }, {
2996
- output: {
2997
- task_id: string;
2998
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
2999
- };
3000
- request_id: string;
3001
- }>;
1029
+ }, z.core.$strip>;
3002
1030
  export declare const AlibabaTaskOutputSchema: z.ZodObject<{
3003
1031
  task_id: z.ZodString;
3004
- task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
1032
+ task_status: z.ZodEnum<{
1033
+ PENDING: "PENDING";
1034
+ RUNNING: "RUNNING";
1035
+ SUSPENDED: "SUSPENDED";
1036
+ SUCCEEDED: "SUCCEEDED";
1037
+ FAILED: "FAILED";
1038
+ CANCELED: "CANCELED";
1039
+ UNKNOWN: "UNKNOWN";
1040
+ }>;
3005
1041
  submit_time: z.ZodOptional<z.ZodString>;
3006
1042
  scheduled_time: z.ZodOptional<z.ZodString>;
3007
1043
  end_time: z.ZodOptional<z.ZodString>;
@@ -3012,96 +1048,22 @@ export declare const AlibabaTaskOutputSchema: z.ZodObject<{
3012
1048
  actual_prompt: z.ZodOptional<z.ZodString>;
3013
1049
  finished: z.ZodOptional<z.ZodBoolean>;
3014
1050
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3015
- finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
1051
+ finish_reason: z.ZodUnion<[z.ZodEnum<{
1052
+ null: "null";
1053
+ tool_calls: "tool_calls";
1054
+ stop: "stop";
1055
+ length: "length";
1056
+ content_filter: "content_filter";
1057
+ }>, z.ZodString]>;
3016
1058
  message: z.ZodObject<{
3017
1059
  role: z.ZodLiteral<"assistant">;
3018
1060
  content: z.ZodArray<z.ZodObject<{
3019
1061
  type: z.ZodLiteral<"image">;
3020
1062
  image: z.ZodString;
3021
- }, "strip", z.ZodTypeAny, {
3022
- type: "image";
3023
- image: string;
3024
- }, {
3025
- type: "image";
3026
- image: string;
3027
- }>, "many">;
3028
- }, "strip", z.ZodTypeAny, {
3029
- role: "assistant";
3030
- content: {
3031
- type: "image";
3032
- image: string;
3033
- }[];
3034
- }, {
3035
- role: "assistant";
3036
- content: {
3037
- type: "image";
3038
- image: string;
3039
- }[];
3040
- }>;
3041
- }, "strip", z.ZodTypeAny, {
3042
- message: {
3043
- role: "assistant";
3044
- content: {
3045
- type: "image";
3046
- image: string;
3047
- }[];
3048
- };
3049
- finish_reason: string;
3050
- }, {
3051
- message: {
3052
- role: "assistant";
3053
- content: {
3054
- type: "image";
3055
- image: string;
3056
- }[];
3057
- };
3058
- finish_reason: string;
3059
- }>, "many">>;
3060
- }, "strip", z.ZodTypeAny, {
3061
- task_id: string;
3062
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3063
- code?: string | undefined;
3064
- message?: string | undefined;
3065
- choices?: {
3066
- message: {
3067
- role: "assistant";
3068
- content: {
3069
- type: "image";
3070
- image: string;
3071
- }[];
3072
- };
3073
- finish_reason: string;
3074
- }[] | undefined;
3075
- submit_time?: string | undefined;
3076
- scheduled_time?: string | undefined;
3077
- end_time?: string | undefined;
3078
- video_url?: string | undefined;
3079
- orig_prompt?: string | undefined;
3080
- actual_prompt?: string | undefined;
3081
- finished?: boolean | undefined;
3082
- }, {
3083
- task_id: string;
3084
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3085
- code?: string | undefined;
3086
- message?: string | undefined;
3087
- choices?: {
3088
- message: {
3089
- role: "assistant";
3090
- content: {
3091
- type: "image";
3092
- image: string;
3093
- }[];
3094
- };
3095
- finish_reason: string;
3096
- }[] | undefined;
3097
- submit_time?: string | undefined;
3098
- scheduled_time?: string | undefined;
3099
- end_time?: string | undefined;
3100
- video_url?: string | undefined;
3101
- orig_prompt?: string | undefined;
3102
- actual_prompt?: string | undefined;
3103
- finished?: boolean | undefined;
3104
- }>;
1063
+ }, z.core.$strip>>;
1064
+ }, z.core.$strip>;
1065
+ }, z.core.$strip>>>;
1066
+ }, z.core.$strip>;
3105
1067
  export declare const AlibabaTaskUsageSchema: z.ZodObject<{
3106
1068
  duration: z.ZodOptional<z.ZodNumber>;
3107
1069
  input_video_duration: z.ZodOptional<z.ZodNumber>;
@@ -3113,33 +1075,19 @@ export declare const AlibabaTaskUsageSchema: z.ZodObject<{
3113
1075
  input_tokens: z.ZodOptional<z.ZodNumber>;
3114
1076
  output_tokens: z.ZodOptional<z.ZodNumber>;
3115
1077
  total_tokens: z.ZodOptional<z.ZodNumber>;
3116
- }, "strip", z.ZodTypeAny, {
3117
- duration?: number | undefined;
3118
- size?: string | undefined;
3119
- total_tokens?: number | undefined;
3120
- image_count?: number | undefined;
3121
- input_tokens?: number | undefined;
3122
- output_tokens?: number | undefined;
3123
- input_video_duration?: number | undefined;
3124
- output_video_duration?: number | undefined;
3125
- SR?: number | undefined;
3126
- video_count?: number | undefined;
3127
- }, {
3128
- duration?: number | undefined;
3129
- size?: string | undefined;
3130
- total_tokens?: number | undefined;
3131
- image_count?: number | undefined;
3132
- input_tokens?: number | undefined;
3133
- output_tokens?: number | undefined;
3134
- input_video_duration?: number | undefined;
3135
- output_video_duration?: number | undefined;
3136
- SR?: number | undefined;
3137
- video_count?: number | undefined;
3138
- }>;
1078
+ }, z.core.$strip>;
3139
1079
  export declare const AlibabaTaskStatusResponseSchema: z.ZodObject<{
3140
1080
  output: z.ZodObject<{
3141
1081
  task_id: z.ZodString;
3142
- task_status: z.ZodEnum<["PENDING", "RUNNING", "SUSPENDED", "SUCCEEDED", "FAILED", "CANCELED", "UNKNOWN"]>;
1082
+ task_status: z.ZodEnum<{
1083
+ PENDING: "PENDING";
1084
+ RUNNING: "RUNNING";
1085
+ SUSPENDED: "SUSPENDED";
1086
+ SUCCEEDED: "SUCCEEDED";
1087
+ FAILED: "FAILED";
1088
+ CANCELED: "CANCELED";
1089
+ UNKNOWN: "UNKNOWN";
1090
+ }>;
3143
1091
  submit_time: z.ZodOptional<z.ZodString>;
3144
1092
  scheduled_time: z.ZodOptional<z.ZodString>;
3145
1093
  end_time: z.ZodOptional<z.ZodString>;
@@ -3150,96 +1098,22 @@ export declare const AlibabaTaskStatusResponseSchema: z.ZodObject<{
3150
1098
  actual_prompt: z.ZodOptional<z.ZodString>;
3151
1099
  finished: z.ZodOptional<z.ZodBoolean>;
3152
1100
  choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3153
- finish_reason: z.ZodUnion<[z.ZodEnum<["stop", "length", "tool_calls", "content_filter", "null"]>, z.ZodString]>;
1101
+ finish_reason: z.ZodUnion<[z.ZodEnum<{
1102
+ null: "null";
1103
+ tool_calls: "tool_calls";
1104
+ stop: "stop";
1105
+ length: "length";
1106
+ content_filter: "content_filter";
1107
+ }>, z.ZodString]>;
3154
1108
  message: z.ZodObject<{
3155
1109
  role: z.ZodLiteral<"assistant">;
3156
1110
  content: z.ZodArray<z.ZodObject<{
3157
1111
  type: z.ZodLiteral<"image">;
3158
1112
  image: z.ZodString;
3159
- }, "strip", z.ZodTypeAny, {
3160
- type: "image";
3161
- image: string;
3162
- }, {
3163
- type: "image";
3164
- image: string;
3165
- }>, "many">;
3166
- }, "strip", z.ZodTypeAny, {
3167
- role: "assistant";
3168
- content: {
3169
- type: "image";
3170
- image: string;
3171
- }[];
3172
- }, {
3173
- role: "assistant";
3174
- content: {
3175
- type: "image";
3176
- image: string;
3177
- }[];
3178
- }>;
3179
- }, "strip", z.ZodTypeAny, {
3180
- message: {
3181
- role: "assistant";
3182
- content: {
3183
- type: "image";
3184
- image: string;
3185
- }[];
3186
- };
3187
- finish_reason: string;
3188
- }, {
3189
- message: {
3190
- role: "assistant";
3191
- content: {
3192
- type: "image";
3193
- image: string;
3194
- }[];
3195
- };
3196
- finish_reason: string;
3197
- }>, "many">>;
3198
- }, "strip", z.ZodTypeAny, {
3199
- task_id: string;
3200
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3201
- code?: string | undefined;
3202
- message?: string | undefined;
3203
- choices?: {
3204
- message: {
3205
- role: "assistant";
3206
- content: {
3207
- type: "image";
3208
- image: string;
3209
- }[];
3210
- };
3211
- finish_reason: string;
3212
- }[] | undefined;
3213
- submit_time?: string | undefined;
3214
- scheduled_time?: string | undefined;
3215
- end_time?: string | undefined;
3216
- video_url?: string | undefined;
3217
- orig_prompt?: string | undefined;
3218
- actual_prompt?: string | undefined;
3219
- finished?: boolean | undefined;
3220
- }, {
3221
- task_id: string;
3222
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3223
- code?: string | undefined;
3224
- message?: string | undefined;
3225
- choices?: {
3226
- message: {
3227
- role: "assistant";
3228
- content: {
3229
- type: "image";
3230
- image: string;
3231
- }[];
3232
- };
3233
- finish_reason: string;
3234
- }[] | undefined;
3235
- submit_time?: string | undefined;
3236
- scheduled_time?: string | undefined;
3237
- end_time?: string | undefined;
3238
- video_url?: string | undefined;
3239
- orig_prompt?: string | undefined;
3240
- actual_prompt?: string | undefined;
3241
- finished?: boolean | undefined;
3242
- }>;
1113
+ }, z.core.$strip>>;
1114
+ }, z.core.$strip>;
1115
+ }, z.core.$strip>>>;
1116
+ }, z.core.$strip>;
3243
1117
  usage: z.ZodOptional<z.ZodObject<{
3244
1118
  duration: z.ZodOptional<z.ZodNumber>;
3245
1119
  input_video_duration: z.ZodOptional<z.ZodNumber>;
@@ -3251,105 +1125,9 @@ export declare const AlibabaTaskStatusResponseSchema: z.ZodObject<{
3251
1125
  input_tokens: z.ZodOptional<z.ZodNumber>;
3252
1126
  output_tokens: z.ZodOptional<z.ZodNumber>;
3253
1127
  total_tokens: z.ZodOptional<z.ZodNumber>;
3254
- }, "strip", z.ZodTypeAny, {
3255
- duration?: number | undefined;
3256
- size?: string | undefined;
3257
- total_tokens?: number | undefined;
3258
- image_count?: number | undefined;
3259
- input_tokens?: number | undefined;
3260
- output_tokens?: number | undefined;
3261
- input_video_duration?: number | undefined;
3262
- output_video_duration?: number | undefined;
3263
- SR?: number | undefined;
3264
- video_count?: number | undefined;
3265
- }, {
3266
- duration?: number | undefined;
3267
- size?: string | undefined;
3268
- total_tokens?: number | undefined;
3269
- image_count?: number | undefined;
3270
- input_tokens?: number | undefined;
3271
- output_tokens?: number | undefined;
3272
- input_video_duration?: number | undefined;
3273
- output_video_duration?: number | undefined;
3274
- SR?: number | undefined;
3275
- video_count?: number | undefined;
3276
- }>>;
1128
+ }, z.core.$strip>>;
3277
1129
  request_id: z.ZodString;
3278
- }, "strip", z.ZodTypeAny, {
3279
- output: {
3280
- task_id: string;
3281
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3282
- code?: string | undefined;
3283
- message?: string | undefined;
3284
- choices?: {
3285
- message: {
3286
- role: "assistant";
3287
- content: {
3288
- type: "image";
3289
- image: string;
3290
- }[];
3291
- };
3292
- finish_reason: string;
3293
- }[] | undefined;
3294
- submit_time?: string | undefined;
3295
- scheduled_time?: string | undefined;
3296
- end_time?: string | undefined;
3297
- video_url?: string | undefined;
3298
- orig_prompt?: string | undefined;
3299
- actual_prompt?: string | undefined;
3300
- finished?: boolean | undefined;
3301
- };
3302
- request_id: string;
3303
- usage?: {
3304
- duration?: number | undefined;
3305
- size?: string | undefined;
3306
- total_tokens?: number | undefined;
3307
- image_count?: number | undefined;
3308
- input_tokens?: number | undefined;
3309
- output_tokens?: number | undefined;
3310
- input_video_duration?: number | undefined;
3311
- output_video_duration?: number | undefined;
3312
- SR?: number | undefined;
3313
- video_count?: number | undefined;
3314
- } | undefined;
3315
- }, {
3316
- output: {
3317
- task_id: string;
3318
- task_status: "PENDING" | "RUNNING" | "SUSPENDED" | "SUCCEEDED" | "FAILED" | "CANCELED" | "UNKNOWN";
3319
- code?: string | undefined;
3320
- message?: string | undefined;
3321
- choices?: {
3322
- message: {
3323
- role: "assistant";
3324
- content: {
3325
- type: "image";
3326
- image: string;
3327
- }[];
3328
- };
3329
- finish_reason: string;
3330
- }[] | undefined;
3331
- submit_time?: string | undefined;
3332
- scheduled_time?: string | undefined;
3333
- end_time?: string | undefined;
3334
- video_url?: string | undefined;
3335
- orig_prompt?: string | undefined;
3336
- actual_prompt?: string | undefined;
3337
- finished?: boolean | undefined;
3338
- };
3339
- request_id: string;
3340
- usage?: {
3341
- duration?: number | undefined;
3342
- size?: string | undefined;
3343
- total_tokens?: number | undefined;
3344
- image_count?: number | undefined;
3345
- input_tokens?: number | undefined;
3346
- output_tokens?: number | undefined;
3347
- input_video_duration?: number | undefined;
3348
- output_video_duration?: number | undefined;
3349
- SR?: number | undefined;
3350
- video_count?: number | undefined;
3351
- } | undefined;
3352
- }>;
1130
+ }, z.core.$strip>;
3353
1131
  export declare const AlibabaUploadPolicyDataSchema: z.ZodObject<{
3354
1132
  policy: z.ZodString;
3355
1133
  signature: z.ZodString;
@@ -3359,25 +1137,7 @@ export declare const AlibabaUploadPolicyDataSchema: z.ZodObject<{
3359
1137
  oss_access_key_id: z.ZodString;
3360
1138
  x_oss_object_acl: z.ZodString;
3361
1139
  x_oss_forbid_overwrite: z.ZodString;
3362
- }, "strip", z.ZodTypeAny, {
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
- policy: string;
3373
- signature: string;
3374
- upload_dir: string;
3375
- upload_host: string;
3376
- expire_in_seconds: number;
3377
- oss_access_key_id: string;
3378
- x_oss_object_acl: string;
3379
- x_oss_forbid_overwrite: string;
3380
- }>;
1140
+ }, z.core.$strip>;
3381
1141
  export declare const AlibabaUploadPolicyResponseSchema: z.ZodObject<{
3382
1142
  data: z.ZodObject<{
3383
1143
  policy: z.ZodString;
@@ -3388,51 +1148,9 @@ export declare const AlibabaUploadPolicyResponseSchema: z.ZodObject<{
3388
1148
  oss_access_key_id: z.ZodString;
3389
1149
  x_oss_object_acl: z.ZodString;
3390
1150
  x_oss_forbid_overwrite: z.ZodString;
3391
- }, "strip", z.ZodTypeAny, {
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
- policy: string;
3402
- signature: string;
3403
- upload_dir: string;
3404
- upload_host: string;
3405
- expire_in_seconds: number;
3406
- oss_access_key_id: string;
3407
- x_oss_object_acl: string;
3408
- x_oss_forbid_overwrite: string;
3409
- }>;
1151
+ }, z.core.$strip>;
3410
1152
  request_id: z.ZodString;
3411
- }, "strip", z.ZodTypeAny, {
3412
- data: {
3413
- policy: string;
3414
- signature: string;
3415
- upload_dir: string;
3416
- upload_host: string;
3417
- expire_in_seconds: number;
3418
- oss_access_key_id: string;
3419
- x_oss_object_acl: string;
3420
- x_oss_forbid_overwrite: string;
3421
- };
3422
- request_id: string;
3423
- }, {
3424
- data: {
3425
- policy: string;
3426
- signature: string;
3427
- upload_dir: string;
3428
- upload_host: string;
3429
- expire_in_seconds: number;
3430
- oss_access_key_id: string;
3431
- x_oss_object_acl: string;
3432
- x_oss_forbid_overwrite: string;
3433
- };
3434
- request_id: string;
3435
- }>;
1153
+ }, z.core.$strip>;
3436
1154
  export type AlibabaRole = z.infer<typeof AlibabaRoleSchema>;
3437
1155
  export type AlibabaFinishReason = z.infer<typeof AlibabaFinishReasonSchema>;
3438
1156
  export type AlibabaTaskStatus = z.infer<typeof AlibabaTaskStatusSchema>;