@fraqjs/plugin-ai 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
- import { LanguageModel } from "ai";
2
-
1
+ import { LanguageModel, Tool } from "ai";
2
+ import { z } from "zod";
3
+ import { Context } from "node:vm";
3
4
  //#region src/provider.d.ts
4
5
  type SupportedSDK = '@ai-sdk/anthropic' | '@ai-sdk/deepseek' | '@ai-sdk/google' | '@ai-sdk/openai' | '@ai-sdk/openai-compatible';
5
6
  interface ProviderConfig {
@@ -13,6 +14,2832 @@ interface ProviderConfig {
13
14
  }
14
15
  declare function resolveLanguageModels(name: string, config: ProviderConfig): Promise<LanguageModel[]>;
15
16
  //#endregion
17
+ //#region src/protocol/types-zod.d.ts
18
+ declare const zodApiEndpoints: {
19
+ get_login_info: {
20
+ description: string;
21
+ requestSchema: null;
22
+ responseSchema: z.ZodObject<{
23
+ uin: z.ZodNumber;
24
+ nickname: z.ZodString;
25
+ }, z.core.$strip>;
26
+ };
27
+ get_impl_info: {
28
+ description: string;
29
+ requestSchema: null;
30
+ responseSchema: z.ZodObject<{
31
+ impl_name: z.ZodString;
32
+ impl_version: z.ZodString;
33
+ qq_protocol_version: z.ZodString;
34
+ qq_protocol_type: z.ZodEnum<{
35
+ android_pad: "android_pad";
36
+ android_phone: "android_phone";
37
+ harmony: "harmony";
38
+ ipad: "ipad";
39
+ iphone: "iphone";
40
+ linux: "linux";
41
+ macos: "macos";
42
+ watch: "watch";
43
+ windows: "windows";
44
+ }>;
45
+ milky_version: z.ZodString;
46
+ }, z.core.$strip>;
47
+ };
48
+ get_user_profile: {
49
+ description: string;
50
+ requestSchema: z.ZodObject<{
51
+ user_id: z.ZodNumber;
52
+ }, z.core.$strip>;
53
+ responseSchema: z.ZodObject<{
54
+ nickname: z.ZodString;
55
+ qid: z.ZodString;
56
+ age: z.ZodNumber;
57
+ sex: z.ZodEnum<{
58
+ female: "female";
59
+ male: "male";
60
+ unknown: "unknown";
61
+ }>;
62
+ remark: z.ZodString;
63
+ bio: z.ZodString;
64
+ level: z.ZodNumber;
65
+ country: z.ZodString;
66
+ city: z.ZodString;
67
+ school: z.ZodString;
68
+ }, z.core.$strip>;
69
+ };
70
+ get_friend_list: {
71
+ description: string;
72
+ requestSchema: z.ZodObject<{
73
+ no_cache: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
74
+ }, z.core.$strip>;
75
+ responseSchema: z.ZodObject<{
76
+ friends: z.ZodArray<z.ZodLazy<z.ZodObject<{
77
+ user_id: z.ZodNumber;
78
+ nickname: z.ZodString;
79
+ sex: z.ZodEnum<{
80
+ female: "female";
81
+ male: "male";
82
+ unknown: "unknown";
83
+ }>;
84
+ qid: z.ZodString;
85
+ remark: z.ZodString;
86
+ category: z.ZodLazy<z.ZodObject<{
87
+ category_id: z.ZodNumber;
88
+ category_name: z.ZodString;
89
+ }, z.core.$strip>>;
90
+ }, z.core.$strip>>>;
91
+ }, z.core.$strip>;
92
+ };
93
+ get_friend_info: {
94
+ description: string;
95
+ requestSchema: z.ZodObject<{
96
+ user_id: z.ZodNumber;
97
+ no_cache: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
98
+ }, z.core.$strip>;
99
+ responseSchema: z.ZodObject<{
100
+ friend: z.ZodLazy<z.ZodObject<{
101
+ user_id: z.ZodNumber;
102
+ nickname: z.ZodString;
103
+ sex: z.ZodEnum<{
104
+ female: "female";
105
+ male: "male";
106
+ unknown: "unknown";
107
+ }>;
108
+ qid: z.ZodString;
109
+ remark: z.ZodString;
110
+ category: z.ZodLazy<z.ZodObject<{
111
+ category_id: z.ZodNumber;
112
+ category_name: z.ZodString;
113
+ }, z.core.$strip>>;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>;
116
+ };
117
+ get_group_list: {
118
+ description: string;
119
+ requestSchema: z.ZodObject<{
120
+ no_cache: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
121
+ }, z.core.$strip>;
122
+ responseSchema: z.ZodObject<{
123
+ groups: z.ZodArray<z.ZodLazy<z.ZodObject<{
124
+ group_id: z.ZodNumber;
125
+ group_name: z.ZodString;
126
+ member_count: z.ZodNumber;
127
+ max_member_count: z.ZodNumber;
128
+ remark: z.ZodString;
129
+ created_time: z.ZodNumber;
130
+ description: z.ZodString;
131
+ question: z.ZodString;
132
+ announcement: z.ZodString;
133
+ }, z.core.$strip>>>;
134
+ }, z.core.$strip>;
135
+ };
136
+ get_group_info: {
137
+ description: string;
138
+ requestSchema: z.ZodObject<{
139
+ group_id: z.ZodNumber;
140
+ no_cache: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
141
+ }, z.core.$strip>;
142
+ responseSchema: z.ZodObject<{
143
+ group: z.ZodLazy<z.ZodObject<{
144
+ group_id: z.ZodNumber;
145
+ group_name: z.ZodString;
146
+ member_count: z.ZodNumber;
147
+ max_member_count: z.ZodNumber;
148
+ remark: z.ZodString;
149
+ created_time: z.ZodNumber;
150
+ description: z.ZodString;
151
+ question: z.ZodString;
152
+ announcement: z.ZodString;
153
+ }, z.core.$strip>>;
154
+ }, z.core.$strip>;
155
+ };
156
+ get_group_member_list: {
157
+ description: string;
158
+ requestSchema: z.ZodObject<{
159
+ group_id: z.ZodNumber;
160
+ no_cache: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
161
+ }, z.core.$strip>;
162
+ responseSchema: z.ZodObject<{
163
+ members: z.ZodArray<z.ZodLazy<z.ZodObject<{
164
+ user_id: z.ZodNumber;
165
+ nickname: z.ZodString;
166
+ sex: z.ZodEnum<{
167
+ female: "female";
168
+ male: "male";
169
+ unknown: "unknown";
170
+ }>;
171
+ group_id: z.ZodNumber;
172
+ card: z.ZodString;
173
+ title: z.ZodString;
174
+ level: z.ZodNumber;
175
+ role: z.ZodEnum<{
176
+ admin: "admin";
177
+ member: "member";
178
+ owner: "owner";
179
+ }>;
180
+ join_time: z.ZodNumber;
181
+ last_sent_time: z.ZodNumber;
182
+ shut_up_end_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
183
+ }, z.core.$strip>>>;
184
+ }, z.core.$strip>;
185
+ };
186
+ get_group_member_info: {
187
+ description: string;
188
+ requestSchema: z.ZodObject<{
189
+ group_id: z.ZodNumber;
190
+ user_id: z.ZodNumber;
191
+ no_cache: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
192
+ }, z.core.$strip>;
193
+ responseSchema: z.ZodObject<{
194
+ member: z.ZodLazy<z.ZodObject<{
195
+ user_id: z.ZodNumber;
196
+ nickname: z.ZodString;
197
+ sex: z.ZodEnum<{
198
+ female: "female";
199
+ male: "male";
200
+ unknown: "unknown";
201
+ }>;
202
+ group_id: z.ZodNumber;
203
+ card: z.ZodString;
204
+ title: z.ZodString;
205
+ level: z.ZodNumber;
206
+ role: z.ZodEnum<{
207
+ admin: "admin";
208
+ member: "member";
209
+ owner: "owner";
210
+ }>;
211
+ join_time: z.ZodNumber;
212
+ last_sent_time: z.ZodNumber;
213
+ shut_up_end_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
214
+ }, z.core.$strip>>;
215
+ }, z.core.$strip>;
216
+ };
217
+ get_peer_pins: {
218
+ description: string;
219
+ requestSchema: null;
220
+ responseSchema: z.ZodObject<{
221
+ friends: z.ZodArray<z.ZodLazy<z.ZodObject<{
222
+ user_id: z.ZodNumber;
223
+ nickname: z.ZodString;
224
+ sex: z.ZodEnum<{
225
+ female: "female";
226
+ male: "male";
227
+ unknown: "unknown";
228
+ }>;
229
+ qid: z.ZodString;
230
+ remark: z.ZodString;
231
+ category: z.ZodLazy<z.ZodObject<{
232
+ category_id: z.ZodNumber;
233
+ category_name: z.ZodString;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>>>;
236
+ groups: z.ZodArray<z.ZodLazy<z.ZodObject<{
237
+ group_id: z.ZodNumber;
238
+ group_name: z.ZodString;
239
+ member_count: z.ZodNumber;
240
+ max_member_count: z.ZodNumber;
241
+ remark: z.ZodString;
242
+ created_time: z.ZodNumber;
243
+ description: z.ZodString;
244
+ question: z.ZodString;
245
+ announcement: z.ZodString;
246
+ }, z.core.$strip>>>;
247
+ }, z.core.$strip>;
248
+ };
249
+ set_peer_pin: {
250
+ description: string;
251
+ requestSchema: z.ZodObject<{
252
+ message_scene: z.ZodEnum<{
253
+ friend: "friend";
254
+ group: "group";
255
+ temp: "temp";
256
+ }>;
257
+ peer_id: z.ZodNumber;
258
+ is_pinned: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
259
+ }, z.core.$strip>;
260
+ responseSchema: null;
261
+ };
262
+ set_avatar: {
263
+ description: string;
264
+ requestSchema: z.ZodObject<{
265
+ uri: z.ZodString;
266
+ }, z.core.$strip>;
267
+ responseSchema: null;
268
+ };
269
+ set_nickname: {
270
+ description: string;
271
+ requestSchema: z.ZodObject<{
272
+ new_nickname: z.ZodString;
273
+ }, z.core.$strip>;
274
+ responseSchema: null;
275
+ };
276
+ set_bio: {
277
+ description: string;
278
+ requestSchema: z.ZodObject<{
279
+ new_bio: z.ZodString;
280
+ }, z.core.$strip>;
281
+ responseSchema: null;
282
+ };
283
+ get_custom_face_url_list: {
284
+ description: string;
285
+ requestSchema: null;
286
+ responseSchema: z.ZodObject<{
287
+ urls: z.ZodArray<z.ZodString>;
288
+ }, z.core.$strip>;
289
+ };
290
+ get_cookies: {
291
+ description: string;
292
+ requestSchema: z.ZodObject<{
293
+ domain: z.ZodString;
294
+ }, z.core.$strip>;
295
+ responseSchema: z.ZodObject<{
296
+ cookies: z.ZodString;
297
+ }, z.core.$strip>;
298
+ };
299
+ get_csrf_token: {
300
+ description: string;
301
+ requestSchema: null;
302
+ responseSchema: z.ZodObject<{
303
+ csrf_token: z.ZodString;
304
+ }, z.core.$strip>;
305
+ };
306
+ send_private_message: {
307
+ description: string;
308
+ requestSchema: z.ZodObject<{
309
+ user_id: z.ZodNumber;
310
+ message: z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
311
+ type: z.ZodLiteral<"text">;
312
+ data: z.ZodObject<{
313
+ text: z.ZodString;
314
+ }, z.core.$strip>;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ type: z.ZodLiteral<"mention">;
317
+ data: z.ZodObject<{
318
+ user_id: z.ZodNumber;
319
+ }, z.core.$strip>;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ type: z.ZodLiteral<"mention_all">;
322
+ data: z.ZodObject<{}, z.core.$strip>;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ type: z.ZodLiteral<"face">;
325
+ data: z.ZodObject<{
326
+ face_id: z.ZodString;
327
+ is_large: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
328
+ }, z.core.$strip>;
329
+ }, z.core.$strip>, z.ZodObject<{
330
+ type: z.ZodLiteral<"reply">;
331
+ data: z.ZodObject<{
332
+ message_seq: z.ZodNumber;
333
+ }, z.core.$strip>;
334
+ }, z.core.$strip>, z.ZodObject<{
335
+ type: z.ZodLiteral<"image">;
336
+ data: z.ZodObject<{
337
+ uri: z.ZodString;
338
+ sub_type: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
339
+ normal: "normal";
340
+ sticker: "sticker";
341
+ }>>>>, z.ZodTransform<"normal" | "sticker", "normal" | "sticker" | null>>;
342
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ }, z.core.$strip>;
344
+ }, z.core.$strip>, z.ZodObject<{
345
+ type: z.ZodLiteral<"record">;
346
+ data: z.ZodObject<{
347
+ uri: z.ZodString;
348
+ }, z.core.$strip>;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ type: z.ZodLiteral<"video">;
351
+ data: z.ZodObject<{
352
+ uri: z.ZodString;
353
+ thumb_uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ }, z.core.$strip>;
355
+ }, z.core.$strip>, z.ZodObject<{
356
+ type: z.ZodLiteral<"forward">;
357
+ data: z.ZodObject<{
358
+ messages: z.ZodArray<z.ZodObject<{
359
+ user_id: z.ZodNumber;
360
+ sender_name: z.ZodString;
361
+ time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
362
+ segments: z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
363
+ type: z.ZodLiteral<"text">;
364
+ data: z.ZodObject<{
365
+ text: z.ZodString;
366
+ }, z.core.$strip>;
367
+ }, z.core.$strip>, z.ZodObject<{
368
+ type: z.ZodLiteral<"mention">;
369
+ data: z.ZodObject<{
370
+ user_id: z.ZodNumber;
371
+ }, z.core.$strip>;
372
+ }, z.core.$strip>, z.ZodObject<{
373
+ type: z.ZodLiteral<"mention_all">;
374
+ data: z.ZodObject<{}, z.core.$strip>;
375
+ }, z.core.$strip>, z.ZodObject<{
376
+ type: z.ZodLiteral<"face">;
377
+ data: z.ZodObject<{
378
+ face_id: z.ZodString;
379
+ is_large: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
380
+ }, z.core.$strip>;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ type: z.ZodLiteral<"reply">;
383
+ data: z.ZodObject<{
384
+ message_seq: z.ZodNumber;
385
+ }, z.core.$strip>;
386
+ }, z.core.$strip>, z.ZodObject<{
387
+ type: z.ZodLiteral<"image">;
388
+ data: z.ZodObject<{
389
+ uri: z.ZodString;
390
+ sub_type: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
391
+ normal: "normal";
392
+ sticker: "sticker";
393
+ }>>>>, z.ZodTransform<"normal" | "sticker", "normal" | "sticker" | null>>;
394
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
395
+ }, z.core.$strip>;
396
+ }, z.core.$strip>, z.ZodObject<{
397
+ type: z.ZodLiteral<"record">;
398
+ data: z.ZodObject<{
399
+ uri: z.ZodString;
400
+ }, z.core.$strip>;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ type: z.ZodLiteral<"video">;
403
+ data: z.ZodObject<{
404
+ uri: z.ZodString;
405
+ thumb_uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ }, z.core.$strip>;
407
+ }, z.core.$strip>, z.ZodObject< /*elided*/ any, z.core.$strip>, z.ZodObject<{
408
+ type: z.ZodLiteral<"light_app">;
409
+ data: z.ZodObject<{
410
+ json_payload: z.ZodString;
411
+ }, z.core.$strip>;
412
+ }, z.core.$strip>], "type">>>;
413
+ }, z.core.$strip>>;
414
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
416
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
+ }, z.core.$strip>;
419
+ }, z.core.$strip>, z.ZodObject<{
420
+ type: z.ZodLiteral<"light_app">;
421
+ data: z.ZodObject<{
422
+ json_payload: z.ZodString;
423
+ }, z.core.$strip>;
424
+ }, z.core.$strip>], "type">>>;
425
+ }, z.core.$strip>;
426
+ responseSchema: z.ZodObject<{
427
+ message_seq: z.ZodNumber;
428
+ time: z.ZodNumber;
429
+ }, z.core.$strip>;
430
+ };
431
+ send_group_message: {
432
+ description: string;
433
+ requestSchema: z.ZodObject<{
434
+ group_id: z.ZodNumber;
435
+ message: z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
436
+ type: z.ZodLiteral<"text">;
437
+ data: z.ZodObject<{
438
+ text: z.ZodString;
439
+ }, z.core.$strip>;
440
+ }, z.core.$strip>, z.ZodObject<{
441
+ type: z.ZodLiteral<"mention">;
442
+ data: z.ZodObject<{
443
+ user_id: z.ZodNumber;
444
+ }, z.core.$strip>;
445
+ }, z.core.$strip>, z.ZodObject<{
446
+ type: z.ZodLiteral<"mention_all">;
447
+ data: z.ZodObject<{}, z.core.$strip>;
448
+ }, z.core.$strip>, z.ZodObject<{
449
+ type: z.ZodLiteral<"face">;
450
+ data: z.ZodObject<{
451
+ face_id: z.ZodString;
452
+ is_large: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
453
+ }, z.core.$strip>;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ type: z.ZodLiteral<"reply">;
456
+ data: z.ZodObject<{
457
+ message_seq: z.ZodNumber;
458
+ }, z.core.$strip>;
459
+ }, z.core.$strip>, z.ZodObject<{
460
+ type: z.ZodLiteral<"image">;
461
+ data: z.ZodObject<{
462
+ uri: z.ZodString;
463
+ sub_type: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
464
+ normal: "normal";
465
+ sticker: "sticker";
466
+ }>>>>, z.ZodTransform<"normal" | "sticker", "normal" | "sticker" | null>>;
467
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ }, z.core.$strip>;
469
+ }, z.core.$strip>, z.ZodObject<{
470
+ type: z.ZodLiteral<"record">;
471
+ data: z.ZodObject<{
472
+ uri: z.ZodString;
473
+ }, z.core.$strip>;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ type: z.ZodLiteral<"video">;
476
+ data: z.ZodObject<{
477
+ uri: z.ZodString;
478
+ thumb_uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ }, z.core.$strip>;
480
+ }, z.core.$strip>, z.ZodObject<{
481
+ type: z.ZodLiteral<"forward">;
482
+ data: z.ZodObject<{
483
+ messages: z.ZodArray<z.ZodObject<{
484
+ user_id: z.ZodNumber;
485
+ sender_name: z.ZodString;
486
+ time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
487
+ segments: z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
488
+ type: z.ZodLiteral<"text">;
489
+ data: z.ZodObject<{
490
+ text: z.ZodString;
491
+ }, z.core.$strip>;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ type: z.ZodLiteral<"mention">;
494
+ data: z.ZodObject<{
495
+ user_id: z.ZodNumber;
496
+ }, z.core.$strip>;
497
+ }, z.core.$strip>, z.ZodObject<{
498
+ type: z.ZodLiteral<"mention_all">;
499
+ data: z.ZodObject<{}, z.core.$strip>;
500
+ }, z.core.$strip>, z.ZodObject<{
501
+ type: z.ZodLiteral<"face">;
502
+ data: z.ZodObject<{
503
+ face_id: z.ZodString;
504
+ is_large: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
505
+ }, z.core.$strip>;
506
+ }, z.core.$strip>, z.ZodObject<{
507
+ type: z.ZodLiteral<"reply">;
508
+ data: z.ZodObject<{
509
+ message_seq: z.ZodNumber;
510
+ }, z.core.$strip>;
511
+ }, z.core.$strip>, z.ZodObject<{
512
+ type: z.ZodLiteral<"image">;
513
+ data: z.ZodObject<{
514
+ uri: z.ZodString;
515
+ sub_type: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
516
+ normal: "normal";
517
+ sticker: "sticker";
518
+ }>>>>, z.ZodTransform<"normal" | "sticker", "normal" | "sticker" | null>>;
519
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
+ }, z.core.$strip>;
521
+ }, z.core.$strip>, z.ZodObject<{
522
+ type: z.ZodLiteral<"record">;
523
+ data: z.ZodObject<{
524
+ uri: z.ZodString;
525
+ }, z.core.$strip>;
526
+ }, z.core.$strip>, z.ZodObject<{
527
+ type: z.ZodLiteral<"video">;
528
+ data: z.ZodObject<{
529
+ uri: z.ZodString;
530
+ thumb_uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
+ }, z.core.$strip>;
532
+ }, z.core.$strip>, z.ZodObject<any, z.core.$strip>, z.ZodObject<{
533
+ type: z.ZodLiteral<"light_app">;
534
+ data: z.ZodObject<{
535
+ json_payload: z.ZodString;
536
+ }, z.core.$strip>;
537
+ }, z.core.$strip>], "type">>>;
538
+ }, z.core.$strip>>;
539
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
540
+ preview: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
541
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
542
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
+ }, z.core.$strip>;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ type: z.ZodLiteral<"light_app">;
546
+ data: z.ZodObject<{
547
+ json_payload: z.ZodString;
548
+ }, z.core.$strip>;
549
+ }, z.core.$strip>], "type">>>;
550
+ }, z.core.$strip>;
551
+ responseSchema: z.ZodObject<{
552
+ message_seq: z.ZodNumber;
553
+ time: z.ZodNumber;
554
+ }, z.core.$strip>;
555
+ };
556
+ recall_private_message: {
557
+ description: string;
558
+ requestSchema: z.ZodObject<{
559
+ user_id: z.ZodNumber;
560
+ message_seq: z.ZodNumber;
561
+ }, z.core.$strip>;
562
+ responseSchema: null;
563
+ };
564
+ recall_group_message: {
565
+ description: string;
566
+ requestSchema: z.ZodObject<{
567
+ group_id: z.ZodNumber;
568
+ message_seq: z.ZodNumber;
569
+ }, z.core.$strip>;
570
+ responseSchema: null;
571
+ };
572
+ get_message: {
573
+ description: string;
574
+ requestSchema: z.ZodObject<{
575
+ message_scene: z.ZodEnum<{
576
+ friend: "friend";
577
+ group: "group";
578
+ temp: "temp";
579
+ }>;
580
+ peer_id: z.ZodNumber;
581
+ message_seq: z.ZodNumber;
582
+ }, z.core.$strip>;
583
+ responseSchema: z.ZodObject<{
584
+ message: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
585
+ message_scene: z.ZodLiteral<"friend">;
586
+ peer_id: z.ZodNumber;
587
+ message_seq: z.ZodNumber;
588
+ sender_id: z.ZodNumber;
589
+ time: z.ZodNumber;
590
+ segments: z.ZodArray<z.ZodLazy<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
591
+ type: z.ZodLiteral<"text">;
592
+ data: z.ZodObject<{
593
+ text: z.ZodString;
594
+ }, z.core.$strip>;
595
+ }, z.core.$strip>, z.ZodObject<{
596
+ type: z.ZodLiteral<"mention">;
597
+ data: z.ZodObject<{
598
+ user_id: z.ZodNumber;
599
+ name: z.ZodString;
600
+ }, z.core.$strip>;
601
+ }, z.core.$strip>, z.ZodObject<{
602
+ type: z.ZodLiteral<"mention_all">;
603
+ data: z.ZodObject<{}, z.core.$strip>;
604
+ }, z.core.$strip>, z.ZodObject<{
605
+ type: z.ZodLiteral<"face">;
606
+ data: z.ZodObject<{
607
+ face_id: z.ZodString;
608
+ is_large: z.ZodBoolean;
609
+ }, z.core.$strip>;
610
+ }, z.core.$strip>, z.ZodObject<{
611
+ type: z.ZodLiteral<"reply">;
612
+ data: z.ZodObject<{
613
+ message_seq: z.ZodNumber;
614
+ sender_id: z.ZodNumber;
615
+ sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ time: z.ZodNumber;
617
+ segments: z.ZodArray<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
618
+ type: z.ZodLiteral<"text">;
619
+ data: z.ZodObject<{
620
+ text: z.ZodString;
621
+ }, z.core.$strip>;
622
+ }, z.core.$strip>, z.ZodObject<{
623
+ type: z.ZodLiteral<"mention">;
624
+ data: z.ZodObject<{
625
+ user_id: z.ZodNumber;
626
+ name: z.ZodString;
627
+ }, z.core.$strip>;
628
+ }, z.core.$strip>, z.ZodObject<{
629
+ type: z.ZodLiteral<"mention_all">;
630
+ data: z.ZodObject<{}, z.core.$strip>;
631
+ }, z.core.$strip>, z.ZodObject<{
632
+ type: z.ZodLiteral<"face">;
633
+ data: z.ZodObject<{
634
+ face_id: z.ZodString;
635
+ is_large: z.ZodBoolean;
636
+ }, z.core.$strip>;
637
+ }, z.core.$strip>, z.ZodObject< /*elided*/ any, z.core.$strip>, z.ZodObject<{
638
+ type: z.ZodLiteral<"image">;
639
+ data: z.ZodObject<{
640
+ resource_id: z.ZodString;
641
+ temp_url: z.ZodString;
642
+ width: z.ZodNumber;
643
+ height: z.ZodNumber;
644
+ summary: z.ZodString;
645
+ sub_type: z.ZodEnum<{
646
+ normal: "normal";
647
+ sticker: "sticker";
648
+ }>;
649
+ }, z.core.$strip>;
650
+ }, z.core.$strip>, z.ZodObject<{
651
+ type: z.ZodLiteral<"record">;
652
+ data: z.ZodObject<{
653
+ resource_id: z.ZodString;
654
+ temp_url: z.ZodString;
655
+ duration: z.ZodNumber;
656
+ }, z.core.$strip>;
657
+ }, z.core.$strip>, z.ZodObject<{
658
+ type: z.ZodLiteral<"video">;
659
+ data: z.ZodObject<{
660
+ resource_id: z.ZodString;
661
+ temp_url: z.ZodString;
662
+ width: z.ZodNumber;
663
+ height: z.ZodNumber;
664
+ duration: z.ZodNumber;
665
+ }, z.core.$strip>;
666
+ }, z.core.$strip>, z.ZodObject<{
667
+ type: z.ZodLiteral<"file">;
668
+ data: z.ZodObject<{
669
+ file_id: z.ZodString;
670
+ file_name: z.ZodString;
671
+ file_size: z.ZodNumber;
672
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
+ }, z.core.$strip>;
674
+ }, z.core.$strip>, z.ZodObject<{
675
+ type: z.ZodLiteral<"forward">;
676
+ data: z.ZodObject<{
677
+ forward_id: z.ZodString;
678
+ title: z.ZodString;
679
+ preview: z.ZodArray<z.ZodString>;
680
+ summary: z.ZodString;
681
+ }, z.core.$strip>;
682
+ }, z.core.$strip>, z.ZodObject<{
683
+ type: z.ZodLiteral<"market_face">;
684
+ data: z.ZodObject<{
685
+ emoji_package_id: z.ZodNumber;
686
+ emoji_id: z.ZodString;
687
+ key: z.ZodString;
688
+ summary: z.ZodString;
689
+ url: z.ZodString;
690
+ }, z.core.$strip>;
691
+ }, z.core.$strip>, z.ZodObject<{
692
+ type: z.ZodLiteral<"light_app">;
693
+ data: z.ZodObject<{
694
+ app_name: z.ZodString;
695
+ json_payload: z.ZodString;
696
+ }, z.core.$strip>;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ type: z.ZodLiteral<"xml">;
699
+ data: z.ZodObject<{
700
+ service_id: z.ZodNumber;
701
+ xml_payload: z.ZodString;
702
+ }, z.core.$strip>;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ type: z.ZodLiteral<"markdown">;
705
+ data: z.ZodObject<{
706
+ content: z.ZodString;
707
+ }, z.core.$strip>;
708
+ }, z.core.$strip>], "type">>>;
709
+ }, z.core.$strip>;
710
+ }, z.core.$strip>, z.ZodObject<{
711
+ type: z.ZodLiteral<"image">;
712
+ data: z.ZodObject<{
713
+ resource_id: z.ZodString;
714
+ temp_url: z.ZodString;
715
+ width: z.ZodNumber;
716
+ height: z.ZodNumber;
717
+ summary: z.ZodString;
718
+ sub_type: z.ZodEnum<{
719
+ normal: "normal";
720
+ sticker: "sticker";
721
+ }>;
722
+ }, z.core.$strip>;
723
+ }, z.core.$strip>, z.ZodObject<{
724
+ type: z.ZodLiteral<"record">;
725
+ data: z.ZodObject<{
726
+ resource_id: z.ZodString;
727
+ temp_url: z.ZodString;
728
+ duration: z.ZodNumber;
729
+ }, z.core.$strip>;
730
+ }, z.core.$strip>, z.ZodObject<{
731
+ type: z.ZodLiteral<"video">;
732
+ data: z.ZodObject<{
733
+ resource_id: z.ZodString;
734
+ temp_url: z.ZodString;
735
+ width: z.ZodNumber;
736
+ height: z.ZodNumber;
737
+ duration: z.ZodNumber;
738
+ }, z.core.$strip>;
739
+ }, z.core.$strip>, z.ZodObject<{
740
+ type: z.ZodLiteral<"file">;
741
+ data: z.ZodObject<{
742
+ file_id: z.ZodString;
743
+ file_name: z.ZodString;
744
+ file_size: z.ZodNumber;
745
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
+ }, z.core.$strip>;
747
+ }, z.core.$strip>, z.ZodObject<{
748
+ type: z.ZodLiteral<"forward">;
749
+ data: z.ZodObject<{
750
+ forward_id: z.ZodString;
751
+ title: z.ZodString;
752
+ preview: z.ZodArray<z.ZodString>;
753
+ summary: z.ZodString;
754
+ }, z.core.$strip>;
755
+ }, z.core.$strip>, z.ZodObject<{
756
+ type: z.ZodLiteral<"market_face">;
757
+ data: z.ZodObject<{
758
+ emoji_package_id: z.ZodNumber;
759
+ emoji_id: z.ZodString;
760
+ key: z.ZodString;
761
+ summary: z.ZodString;
762
+ url: z.ZodString;
763
+ }, z.core.$strip>;
764
+ }, z.core.$strip>, z.ZodObject<{
765
+ type: z.ZodLiteral<"light_app">;
766
+ data: z.ZodObject<{
767
+ app_name: z.ZodString;
768
+ json_payload: z.ZodString;
769
+ }, z.core.$strip>;
770
+ }, z.core.$strip>, z.ZodObject<{
771
+ type: z.ZodLiteral<"xml">;
772
+ data: z.ZodObject<{
773
+ service_id: z.ZodNumber;
774
+ xml_payload: z.ZodString;
775
+ }, z.core.$strip>;
776
+ }, z.core.$strip>, z.ZodObject<{
777
+ type: z.ZodLiteral<"markdown">;
778
+ data: z.ZodObject<{
779
+ content: z.ZodString;
780
+ }, z.core.$strip>;
781
+ }, z.core.$strip>], "type">>>>;
782
+ friend: z.ZodLazy<z.ZodObject<{
783
+ user_id: z.ZodNumber;
784
+ nickname: z.ZodString;
785
+ sex: z.ZodEnum<{
786
+ female: "female";
787
+ male: "male";
788
+ unknown: "unknown";
789
+ }>;
790
+ qid: z.ZodString;
791
+ remark: z.ZodString;
792
+ category: z.ZodLazy<z.ZodObject<{
793
+ category_id: z.ZodNumber;
794
+ category_name: z.ZodString;
795
+ }, z.core.$strip>>;
796
+ }, z.core.$strip>>;
797
+ }, z.core.$strip>, z.ZodObject<{
798
+ message_scene: z.ZodLiteral<"group">;
799
+ peer_id: z.ZodNumber;
800
+ message_seq: z.ZodNumber;
801
+ sender_id: z.ZodNumber;
802
+ time: z.ZodNumber;
803
+ segments: z.ZodArray<z.ZodLazy<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
804
+ type: z.ZodLiteral<"text">;
805
+ data: z.ZodObject<{
806
+ text: z.ZodString;
807
+ }, z.core.$strip>;
808
+ }, z.core.$strip>, z.ZodObject<{
809
+ type: z.ZodLiteral<"mention">;
810
+ data: z.ZodObject<{
811
+ user_id: z.ZodNumber;
812
+ name: z.ZodString;
813
+ }, z.core.$strip>;
814
+ }, z.core.$strip>, z.ZodObject<{
815
+ type: z.ZodLiteral<"mention_all">;
816
+ data: z.ZodObject<{}, z.core.$strip>;
817
+ }, z.core.$strip>, z.ZodObject<{
818
+ type: z.ZodLiteral<"face">;
819
+ data: z.ZodObject<{
820
+ face_id: z.ZodString;
821
+ is_large: z.ZodBoolean;
822
+ }, z.core.$strip>;
823
+ }, z.core.$strip>, z.ZodObject<{
824
+ type: z.ZodLiteral<"reply">;
825
+ data: z.ZodObject<{
826
+ message_seq: z.ZodNumber;
827
+ sender_id: z.ZodNumber;
828
+ sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
+ time: z.ZodNumber;
830
+ segments: z.ZodArray<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
831
+ type: z.ZodLiteral<"text">;
832
+ data: z.ZodObject<{
833
+ text: z.ZodString;
834
+ }, z.core.$strip>;
835
+ }, z.core.$strip>, z.ZodObject<{
836
+ type: z.ZodLiteral<"mention">;
837
+ data: z.ZodObject<{
838
+ user_id: z.ZodNumber;
839
+ name: z.ZodString;
840
+ }, z.core.$strip>;
841
+ }, z.core.$strip>, z.ZodObject<{
842
+ type: z.ZodLiteral<"mention_all">;
843
+ data: z.ZodObject<{}, z.core.$strip>;
844
+ }, z.core.$strip>, z.ZodObject<{
845
+ type: z.ZodLiteral<"face">;
846
+ data: z.ZodObject<{
847
+ face_id: z.ZodString;
848
+ is_large: z.ZodBoolean;
849
+ }, z.core.$strip>;
850
+ }, z.core.$strip>, z.ZodObject<any, z.core.$strip>, z.ZodObject<{
851
+ type: z.ZodLiteral<"image">;
852
+ data: z.ZodObject<{
853
+ resource_id: z.ZodString;
854
+ temp_url: z.ZodString;
855
+ width: z.ZodNumber;
856
+ height: z.ZodNumber;
857
+ summary: z.ZodString;
858
+ sub_type: z.ZodEnum<{
859
+ normal: "normal";
860
+ sticker: "sticker";
861
+ }>;
862
+ }, z.core.$strip>;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ type: z.ZodLiteral<"record">;
865
+ data: z.ZodObject<{
866
+ resource_id: z.ZodString;
867
+ temp_url: z.ZodString;
868
+ duration: z.ZodNumber;
869
+ }, z.core.$strip>;
870
+ }, z.core.$strip>, z.ZodObject<{
871
+ type: z.ZodLiteral<"video">;
872
+ data: z.ZodObject<{
873
+ resource_id: z.ZodString;
874
+ temp_url: z.ZodString;
875
+ width: z.ZodNumber;
876
+ height: z.ZodNumber;
877
+ duration: z.ZodNumber;
878
+ }, z.core.$strip>;
879
+ }, z.core.$strip>, z.ZodObject<{
880
+ type: z.ZodLiteral<"file">;
881
+ data: z.ZodObject<{
882
+ file_id: z.ZodString;
883
+ file_name: z.ZodString;
884
+ file_size: z.ZodNumber;
885
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
886
+ }, z.core.$strip>;
887
+ }, z.core.$strip>, z.ZodObject<{
888
+ type: z.ZodLiteral<"forward">;
889
+ data: z.ZodObject<{
890
+ forward_id: z.ZodString;
891
+ title: z.ZodString;
892
+ preview: z.ZodArray<z.ZodString>;
893
+ summary: z.ZodString;
894
+ }, z.core.$strip>;
895
+ }, z.core.$strip>, z.ZodObject<{
896
+ type: z.ZodLiteral<"market_face">;
897
+ data: z.ZodObject<{
898
+ emoji_package_id: z.ZodNumber;
899
+ emoji_id: z.ZodString;
900
+ key: z.ZodString;
901
+ summary: z.ZodString;
902
+ url: z.ZodString;
903
+ }, z.core.$strip>;
904
+ }, z.core.$strip>, z.ZodObject<{
905
+ type: z.ZodLiteral<"light_app">;
906
+ data: z.ZodObject<{
907
+ app_name: z.ZodString;
908
+ json_payload: z.ZodString;
909
+ }, z.core.$strip>;
910
+ }, z.core.$strip>, z.ZodObject<{
911
+ type: z.ZodLiteral<"xml">;
912
+ data: z.ZodObject<{
913
+ service_id: z.ZodNumber;
914
+ xml_payload: z.ZodString;
915
+ }, z.core.$strip>;
916
+ }, z.core.$strip>, z.ZodObject<{
917
+ type: z.ZodLiteral<"markdown">;
918
+ data: z.ZodObject<{
919
+ content: z.ZodString;
920
+ }, z.core.$strip>;
921
+ }, z.core.$strip>], "type">>>;
922
+ }, z.core.$strip>;
923
+ }, z.core.$strip>, z.ZodObject<{
924
+ type: z.ZodLiteral<"image">;
925
+ data: z.ZodObject<{
926
+ resource_id: z.ZodString;
927
+ temp_url: z.ZodString;
928
+ width: z.ZodNumber;
929
+ height: z.ZodNumber;
930
+ summary: z.ZodString;
931
+ sub_type: z.ZodEnum<{
932
+ normal: "normal";
933
+ sticker: "sticker";
934
+ }>;
935
+ }, z.core.$strip>;
936
+ }, z.core.$strip>, z.ZodObject<{
937
+ type: z.ZodLiteral<"record">;
938
+ data: z.ZodObject<{
939
+ resource_id: z.ZodString;
940
+ temp_url: z.ZodString;
941
+ duration: z.ZodNumber;
942
+ }, z.core.$strip>;
943
+ }, z.core.$strip>, z.ZodObject<{
944
+ type: z.ZodLiteral<"video">;
945
+ data: z.ZodObject<{
946
+ resource_id: z.ZodString;
947
+ temp_url: z.ZodString;
948
+ width: z.ZodNumber;
949
+ height: z.ZodNumber;
950
+ duration: z.ZodNumber;
951
+ }, z.core.$strip>;
952
+ }, z.core.$strip>, z.ZodObject<{
953
+ type: z.ZodLiteral<"file">;
954
+ data: z.ZodObject<{
955
+ file_id: z.ZodString;
956
+ file_name: z.ZodString;
957
+ file_size: z.ZodNumber;
958
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
959
+ }, z.core.$strip>;
960
+ }, z.core.$strip>, z.ZodObject<{
961
+ type: z.ZodLiteral<"forward">;
962
+ data: z.ZodObject<{
963
+ forward_id: z.ZodString;
964
+ title: z.ZodString;
965
+ preview: z.ZodArray<z.ZodString>;
966
+ summary: z.ZodString;
967
+ }, z.core.$strip>;
968
+ }, z.core.$strip>, z.ZodObject<{
969
+ type: z.ZodLiteral<"market_face">;
970
+ data: z.ZodObject<{
971
+ emoji_package_id: z.ZodNumber;
972
+ emoji_id: z.ZodString;
973
+ key: z.ZodString;
974
+ summary: z.ZodString;
975
+ url: z.ZodString;
976
+ }, z.core.$strip>;
977
+ }, z.core.$strip>, z.ZodObject<{
978
+ type: z.ZodLiteral<"light_app">;
979
+ data: z.ZodObject<{
980
+ app_name: z.ZodString;
981
+ json_payload: z.ZodString;
982
+ }, z.core.$strip>;
983
+ }, z.core.$strip>, z.ZodObject<{
984
+ type: z.ZodLiteral<"xml">;
985
+ data: z.ZodObject<{
986
+ service_id: z.ZodNumber;
987
+ xml_payload: z.ZodString;
988
+ }, z.core.$strip>;
989
+ }, z.core.$strip>, z.ZodObject<{
990
+ type: z.ZodLiteral<"markdown">;
991
+ data: z.ZodObject<{
992
+ content: z.ZodString;
993
+ }, z.core.$strip>;
994
+ }, z.core.$strip>], "type">>>>;
995
+ group: z.ZodLazy<z.ZodObject<{
996
+ group_id: z.ZodNumber;
997
+ group_name: z.ZodString;
998
+ member_count: z.ZodNumber;
999
+ max_member_count: z.ZodNumber;
1000
+ remark: z.ZodString;
1001
+ created_time: z.ZodNumber;
1002
+ description: z.ZodString;
1003
+ question: z.ZodString;
1004
+ announcement: z.ZodString;
1005
+ }, z.core.$strip>>;
1006
+ group_member: z.ZodLazy<z.ZodObject<{
1007
+ user_id: z.ZodNumber;
1008
+ nickname: z.ZodString;
1009
+ sex: z.ZodEnum<{
1010
+ female: "female";
1011
+ male: "male";
1012
+ unknown: "unknown";
1013
+ }>;
1014
+ group_id: z.ZodNumber;
1015
+ card: z.ZodString;
1016
+ title: z.ZodString;
1017
+ level: z.ZodNumber;
1018
+ role: z.ZodEnum<{
1019
+ admin: "admin";
1020
+ member: "member";
1021
+ owner: "owner";
1022
+ }>;
1023
+ join_time: z.ZodNumber;
1024
+ last_sent_time: z.ZodNumber;
1025
+ shut_up_end_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1026
+ }, z.core.$strip>>;
1027
+ }, z.core.$strip>, z.ZodObject<{
1028
+ message_scene: z.ZodLiteral<"temp">;
1029
+ peer_id: z.ZodNumber;
1030
+ message_seq: z.ZodNumber;
1031
+ sender_id: z.ZodNumber;
1032
+ time: z.ZodNumber;
1033
+ segments: z.ZodArray<z.ZodLazy<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1034
+ type: z.ZodLiteral<"text">;
1035
+ data: z.ZodObject<{
1036
+ text: z.ZodString;
1037
+ }, z.core.$strip>;
1038
+ }, z.core.$strip>, z.ZodObject<{
1039
+ type: z.ZodLiteral<"mention">;
1040
+ data: z.ZodObject<{
1041
+ user_id: z.ZodNumber;
1042
+ name: z.ZodString;
1043
+ }, z.core.$strip>;
1044
+ }, z.core.$strip>, z.ZodObject<{
1045
+ type: z.ZodLiteral<"mention_all">;
1046
+ data: z.ZodObject<{}, z.core.$strip>;
1047
+ }, z.core.$strip>, z.ZodObject<{
1048
+ type: z.ZodLiteral<"face">;
1049
+ data: z.ZodObject<{
1050
+ face_id: z.ZodString;
1051
+ is_large: z.ZodBoolean;
1052
+ }, z.core.$strip>;
1053
+ }, z.core.$strip>, z.ZodObject<{
1054
+ type: z.ZodLiteral<"reply">;
1055
+ data: z.ZodObject<{
1056
+ message_seq: z.ZodNumber;
1057
+ sender_id: z.ZodNumber;
1058
+ sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1059
+ time: z.ZodNumber;
1060
+ segments: z.ZodArray<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1061
+ type: z.ZodLiteral<"text">;
1062
+ data: z.ZodObject<{
1063
+ text: z.ZodString;
1064
+ }, z.core.$strip>;
1065
+ }, z.core.$strip>, z.ZodObject<{
1066
+ type: z.ZodLiteral<"mention">;
1067
+ data: z.ZodObject<{
1068
+ user_id: z.ZodNumber;
1069
+ name: z.ZodString;
1070
+ }, z.core.$strip>;
1071
+ }, z.core.$strip>, z.ZodObject<{
1072
+ type: z.ZodLiteral<"mention_all">;
1073
+ data: z.ZodObject<{}, z.core.$strip>;
1074
+ }, z.core.$strip>, z.ZodObject<{
1075
+ type: z.ZodLiteral<"face">;
1076
+ data: z.ZodObject<{
1077
+ face_id: z.ZodString;
1078
+ is_large: z.ZodBoolean;
1079
+ }, z.core.$strip>;
1080
+ }, z.core.$strip>, z.ZodObject<any, z.core.$strip>, z.ZodObject<{
1081
+ type: z.ZodLiteral<"image">;
1082
+ data: z.ZodObject<{
1083
+ resource_id: z.ZodString;
1084
+ temp_url: z.ZodString;
1085
+ width: z.ZodNumber;
1086
+ height: z.ZodNumber;
1087
+ summary: z.ZodString;
1088
+ sub_type: z.ZodEnum<{
1089
+ normal: "normal";
1090
+ sticker: "sticker";
1091
+ }>;
1092
+ }, z.core.$strip>;
1093
+ }, z.core.$strip>, z.ZodObject<{
1094
+ type: z.ZodLiteral<"record">;
1095
+ data: z.ZodObject<{
1096
+ resource_id: z.ZodString;
1097
+ temp_url: z.ZodString;
1098
+ duration: z.ZodNumber;
1099
+ }, z.core.$strip>;
1100
+ }, z.core.$strip>, z.ZodObject<{
1101
+ type: z.ZodLiteral<"video">;
1102
+ data: z.ZodObject<{
1103
+ resource_id: z.ZodString;
1104
+ temp_url: z.ZodString;
1105
+ width: z.ZodNumber;
1106
+ height: z.ZodNumber;
1107
+ duration: z.ZodNumber;
1108
+ }, z.core.$strip>;
1109
+ }, z.core.$strip>, z.ZodObject<{
1110
+ type: z.ZodLiteral<"file">;
1111
+ data: z.ZodObject<{
1112
+ file_id: z.ZodString;
1113
+ file_name: z.ZodString;
1114
+ file_size: z.ZodNumber;
1115
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1116
+ }, z.core.$strip>;
1117
+ }, z.core.$strip>, z.ZodObject<{
1118
+ type: z.ZodLiteral<"forward">;
1119
+ data: z.ZodObject<{
1120
+ forward_id: z.ZodString;
1121
+ title: z.ZodString;
1122
+ preview: z.ZodArray<z.ZodString>;
1123
+ summary: z.ZodString;
1124
+ }, z.core.$strip>;
1125
+ }, z.core.$strip>, z.ZodObject<{
1126
+ type: z.ZodLiteral<"market_face">;
1127
+ data: z.ZodObject<{
1128
+ emoji_package_id: z.ZodNumber;
1129
+ emoji_id: z.ZodString;
1130
+ key: z.ZodString;
1131
+ summary: z.ZodString;
1132
+ url: z.ZodString;
1133
+ }, z.core.$strip>;
1134
+ }, z.core.$strip>, z.ZodObject<{
1135
+ type: z.ZodLiteral<"light_app">;
1136
+ data: z.ZodObject<{
1137
+ app_name: z.ZodString;
1138
+ json_payload: z.ZodString;
1139
+ }, z.core.$strip>;
1140
+ }, z.core.$strip>, z.ZodObject<{
1141
+ type: z.ZodLiteral<"xml">;
1142
+ data: z.ZodObject<{
1143
+ service_id: z.ZodNumber;
1144
+ xml_payload: z.ZodString;
1145
+ }, z.core.$strip>;
1146
+ }, z.core.$strip>, z.ZodObject<{
1147
+ type: z.ZodLiteral<"markdown">;
1148
+ data: z.ZodObject<{
1149
+ content: z.ZodString;
1150
+ }, z.core.$strip>;
1151
+ }, z.core.$strip>], "type">>>;
1152
+ }, z.core.$strip>;
1153
+ }, z.core.$strip>, z.ZodObject<{
1154
+ type: z.ZodLiteral<"image">;
1155
+ data: z.ZodObject<{
1156
+ resource_id: z.ZodString;
1157
+ temp_url: z.ZodString;
1158
+ width: z.ZodNumber;
1159
+ height: z.ZodNumber;
1160
+ summary: z.ZodString;
1161
+ sub_type: z.ZodEnum<{
1162
+ normal: "normal";
1163
+ sticker: "sticker";
1164
+ }>;
1165
+ }, z.core.$strip>;
1166
+ }, z.core.$strip>, z.ZodObject<{
1167
+ type: z.ZodLiteral<"record">;
1168
+ data: z.ZodObject<{
1169
+ resource_id: z.ZodString;
1170
+ temp_url: z.ZodString;
1171
+ duration: z.ZodNumber;
1172
+ }, z.core.$strip>;
1173
+ }, z.core.$strip>, z.ZodObject<{
1174
+ type: z.ZodLiteral<"video">;
1175
+ data: z.ZodObject<{
1176
+ resource_id: z.ZodString;
1177
+ temp_url: z.ZodString;
1178
+ width: z.ZodNumber;
1179
+ height: z.ZodNumber;
1180
+ duration: z.ZodNumber;
1181
+ }, z.core.$strip>;
1182
+ }, z.core.$strip>, z.ZodObject<{
1183
+ type: z.ZodLiteral<"file">;
1184
+ data: z.ZodObject<{
1185
+ file_id: z.ZodString;
1186
+ file_name: z.ZodString;
1187
+ file_size: z.ZodNumber;
1188
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1189
+ }, z.core.$strip>;
1190
+ }, z.core.$strip>, z.ZodObject<{
1191
+ type: z.ZodLiteral<"forward">;
1192
+ data: z.ZodObject<{
1193
+ forward_id: z.ZodString;
1194
+ title: z.ZodString;
1195
+ preview: z.ZodArray<z.ZodString>;
1196
+ summary: z.ZodString;
1197
+ }, z.core.$strip>;
1198
+ }, z.core.$strip>, z.ZodObject<{
1199
+ type: z.ZodLiteral<"market_face">;
1200
+ data: z.ZodObject<{
1201
+ emoji_package_id: z.ZodNumber;
1202
+ emoji_id: z.ZodString;
1203
+ key: z.ZodString;
1204
+ summary: z.ZodString;
1205
+ url: z.ZodString;
1206
+ }, z.core.$strip>;
1207
+ }, z.core.$strip>, z.ZodObject<{
1208
+ type: z.ZodLiteral<"light_app">;
1209
+ data: z.ZodObject<{
1210
+ app_name: z.ZodString;
1211
+ json_payload: z.ZodString;
1212
+ }, z.core.$strip>;
1213
+ }, z.core.$strip>, z.ZodObject<{
1214
+ type: z.ZodLiteral<"xml">;
1215
+ data: z.ZodObject<{
1216
+ service_id: z.ZodNumber;
1217
+ xml_payload: z.ZodString;
1218
+ }, z.core.$strip>;
1219
+ }, z.core.$strip>, z.ZodObject<{
1220
+ type: z.ZodLiteral<"markdown">;
1221
+ data: z.ZodObject<{
1222
+ content: z.ZodString;
1223
+ }, z.core.$strip>;
1224
+ }, z.core.$strip>], "type">>>>;
1225
+ group: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
1226
+ group_id: z.ZodNumber;
1227
+ group_name: z.ZodString;
1228
+ member_count: z.ZodNumber;
1229
+ max_member_count: z.ZodNumber;
1230
+ remark: z.ZodString;
1231
+ created_time: z.ZodNumber;
1232
+ description: z.ZodString;
1233
+ question: z.ZodString;
1234
+ announcement: z.ZodString;
1235
+ }, z.core.$strip>>>>;
1236
+ }, z.core.$strip>], "message_scene">>;
1237
+ }, z.core.$strip>;
1238
+ };
1239
+ get_history_messages: {
1240
+ description: string;
1241
+ requestSchema: z.ZodObject<{
1242
+ message_scene: z.ZodEnum<{
1243
+ friend: "friend";
1244
+ group: "group";
1245
+ temp: "temp";
1246
+ }>;
1247
+ peer_id: z.ZodNumber;
1248
+ start_message_seq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1249
+ limit: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>, z.ZodTransform<number, number | null>>;
1250
+ }, z.core.$strip>;
1251
+ responseSchema: z.ZodObject<{
1252
+ messages: z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
1253
+ message_scene: z.ZodLiteral<"friend">;
1254
+ peer_id: z.ZodNumber;
1255
+ message_seq: z.ZodNumber;
1256
+ sender_id: z.ZodNumber;
1257
+ time: z.ZodNumber;
1258
+ segments: z.ZodArray<z.ZodLazy<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1259
+ type: z.ZodLiteral<"text">;
1260
+ data: z.ZodObject<{
1261
+ text: z.ZodString;
1262
+ }, z.core.$strip>;
1263
+ }, z.core.$strip>, z.ZodObject<{
1264
+ type: z.ZodLiteral<"mention">;
1265
+ data: z.ZodObject<{
1266
+ user_id: z.ZodNumber;
1267
+ name: z.ZodString;
1268
+ }, z.core.$strip>;
1269
+ }, z.core.$strip>, z.ZodObject<{
1270
+ type: z.ZodLiteral<"mention_all">;
1271
+ data: z.ZodObject<{}, z.core.$strip>;
1272
+ }, z.core.$strip>, z.ZodObject<{
1273
+ type: z.ZodLiteral<"face">;
1274
+ data: z.ZodObject<{
1275
+ face_id: z.ZodString;
1276
+ is_large: z.ZodBoolean;
1277
+ }, z.core.$strip>;
1278
+ }, z.core.$strip>, z.ZodObject<{
1279
+ type: z.ZodLiteral<"reply">;
1280
+ data: z.ZodObject<{
1281
+ message_seq: z.ZodNumber;
1282
+ sender_id: z.ZodNumber;
1283
+ sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1284
+ time: z.ZodNumber;
1285
+ segments: z.ZodArray<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1286
+ type: z.ZodLiteral<"text">;
1287
+ data: z.ZodObject<{
1288
+ text: z.ZodString;
1289
+ }, z.core.$strip>;
1290
+ }, z.core.$strip>, z.ZodObject<{
1291
+ type: z.ZodLiteral<"mention">;
1292
+ data: z.ZodObject<{
1293
+ user_id: z.ZodNumber;
1294
+ name: z.ZodString;
1295
+ }, z.core.$strip>;
1296
+ }, z.core.$strip>, z.ZodObject<{
1297
+ type: z.ZodLiteral<"mention_all">;
1298
+ data: z.ZodObject<{}, z.core.$strip>;
1299
+ }, z.core.$strip>, z.ZodObject<{
1300
+ type: z.ZodLiteral<"face">;
1301
+ data: z.ZodObject<{
1302
+ face_id: z.ZodString;
1303
+ is_large: z.ZodBoolean;
1304
+ }, z.core.$strip>;
1305
+ }, z.core.$strip>, z.ZodObject<any, z.core.$strip>, z.ZodObject<{
1306
+ type: z.ZodLiteral<"image">;
1307
+ data: z.ZodObject<{
1308
+ resource_id: z.ZodString;
1309
+ temp_url: z.ZodString;
1310
+ width: z.ZodNumber;
1311
+ height: z.ZodNumber;
1312
+ summary: z.ZodString;
1313
+ sub_type: z.ZodEnum<{
1314
+ normal: "normal";
1315
+ sticker: "sticker";
1316
+ }>;
1317
+ }, z.core.$strip>;
1318
+ }, z.core.$strip>, z.ZodObject<{
1319
+ type: z.ZodLiteral<"record">;
1320
+ data: z.ZodObject<{
1321
+ resource_id: z.ZodString;
1322
+ temp_url: z.ZodString;
1323
+ duration: z.ZodNumber;
1324
+ }, z.core.$strip>;
1325
+ }, z.core.$strip>, z.ZodObject<{
1326
+ type: z.ZodLiteral<"video">;
1327
+ data: z.ZodObject<{
1328
+ resource_id: z.ZodString;
1329
+ temp_url: z.ZodString;
1330
+ width: z.ZodNumber;
1331
+ height: z.ZodNumber;
1332
+ duration: z.ZodNumber;
1333
+ }, z.core.$strip>;
1334
+ }, z.core.$strip>, z.ZodObject<{
1335
+ type: z.ZodLiteral<"file">;
1336
+ data: z.ZodObject<{
1337
+ file_id: z.ZodString;
1338
+ file_name: z.ZodString;
1339
+ file_size: z.ZodNumber;
1340
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1341
+ }, z.core.$strip>;
1342
+ }, z.core.$strip>, z.ZodObject<{
1343
+ type: z.ZodLiteral<"forward">;
1344
+ data: z.ZodObject<{
1345
+ forward_id: z.ZodString;
1346
+ title: z.ZodString;
1347
+ preview: z.ZodArray<z.ZodString>;
1348
+ summary: z.ZodString;
1349
+ }, z.core.$strip>;
1350
+ }, z.core.$strip>, z.ZodObject<{
1351
+ type: z.ZodLiteral<"market_face">;
1352
+ data: z.ZodObject<{
1353
+ emoji_package_id: z.ZodNumber;
1354
+ emoji_id: z.ZodString;
1355
+ key: z.ZodString;
1356
+ summary: z.ZodString;
1357
+ url: z.ZodString;
1358
+ }, z.core.$strip>;
1359
+ }, z.core.$strip>, z.ZodObject<{
1360
+ type: z.ZodLiteral<"light_app">;
1361
+ data: z.ZodObject<{
1362
+ app_name: z.ZodString;
1363
+ json_payload: z.ZodString;
1364
+ }, z.core.$strip>;
1365
+ }, z.core.$strip>, z.ZodObject<{
1366
+ type: z.ZodLiteral<"xml">;
1367
+ data: z.ZodObject<{
1368
+ service_id: z.ZodNumber;
1369
+ xml_payload: z.ZodString;
1370
+ }, z.core.$strip>;
1371
+ }, z.core.$strip>, z.ZodObject<{
1372
+ type: z.ZodLiteral<"markdown">;
1373
+ data: z.ZodObject<{
1374
+ content: z.ZodString;
1375
+ }, z.core.$strip>;
1376
+ }, z.core.$strip>], "type">>>;
1377
+ }, z.core.$strip>;
1378
+ }, z.core.$strip>, z.ZodObject<{
1379
+ type: z.ZodLiteral<"image">;
1380
+ data: z.ZodObject<{
1381
+ resource_id: z.ZodString;
1382
+ temp_url: z.ZodString;
1383
+ width: z.ZodNumber;
1384
+ height: z.ZodNumber;
1385
+ summary: z.ZodString;
1386
+ sub_type: z.ZodEnum<{
1387
+ normal: "normal";
1388
+ sticker: "sticker";
1389
+ }>;
1390
+ }, z.core.$strip>;
1391
+ }, z.core.$strip>, z.ZodObject<{
1392
+ type: z.ZodLiteral<"record">;
1393
+ data: z.ZodObject<{
1394
+ resource_id: z.ZodString;
1395
+ temp_url: z.ZodString;
1396
+ duration: z.ZodNumber;
1397
+ }, z.core.$strip>;
1398
+ }, z.core.$strip>, z.ZodObject<{
1399
+ type: z.ZodLiteral<"video">;
1400
+ data: z.ZodObject<{
1401
+ resource_id: z.ZodString;
1402
+ temp_url: z.ZodString;
1403
+ width: z.ZodNumber;
1404
+ height: z.ZodNumber;
1405
+ duration: z.ZodNumber;
1406
+ }, z.core.$strip>;
1407
+ }, z.core.$strip>, z.ZodObject<{
1408
+ type: z.ZodLiteral<"file">;
1409
+ data: z.ZodObject<{
1410
+ file_id: z.ZodString;
1411
+ file_name: z.ZodString;
1412
+ file_size: z.ZodNumber;
1413
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1414
+ }, z.core.$strip>;
1415
+ }, z.core.$strip>, z.ZodObject<{
1416
+ type: z.ZodLiteral<"forward">;
1417
+ data: z.ZodObject<{
1418
+ forward_id: z.ZodString;
1419
+ title: z.ZodString;
1420
+ preview: z.ZodArray<z.ZodString>;
1421
+ summary: z.ZodString;
1422
+ }, z.core.$strip>;
1423
+ }, z.core.$strip>, z.ZodObject<{
1424
+ type: z.ZodLiteral<"market_face">;
1425
+ data: z.ZodObject<{
1426
+ emoji_package_id: z.ZodNumber;
1427
+ emoji_id: z.ZodString;
1428
+ key: z.ZodString;
1429
+ summary: z.ZodString;
1430
+ url: z.ZodString;
1431
+ }, z.core.$strip>;
1432
+ }, z.core.$strip>, z.ZodObject<{
1433
+ type: z.ZodLiteral<"light_app">;
1434
+ data: z.ZodObject<{
1435
+ app_name: z.ZodString;
1436
+ json_payload: z.ZodString;
1437
+ }, z.core.$strip>;
1438
+ }, z.core.$strip>, z.ZodObject<{
1439
+ type: z.ZodLiteral<"xml">;
1440
+ data: z.ZodObject<{
1441
+ service_id: z.ZodNumber;
1442
+ xml_payload: z.ZodString;
1443
+ }, z.core.$strip>;
1444
+ }, z.core.$strip>, z.ZodObject<{
1445
+ type: z.ZodLiteral<"markdown">;
1446
+ data: z.ZodObject<{
1447
+ content: z.ZodString;
1448
+ }, z.core.$strip>;
1449
+ }, z.core.$strip>], "type">>>>;
1450
+ friend: z.ZodLazy<z.ZodObject<{
1451
+ user_id: z.ZodNumber;
1452
+ nickname: z.ZodString;
1453
+ sex: z.ZodEnum<{
1454
+ female: "female";
1455
+ male: "male";
1456
+ unknown: "unknown";
1457
+ }>;
1458
+ qid: z.ZodString;
1459
+ remark: z.ZodString;
1460
+ category: z.ZodLazy<z.ZodObject<{
1461
+ category_id: z.ZodNumber;
1462
+ category_name: z.ZodString;
1463
+ }, z.core.$strip>>;
1464
+ }, z.core.$strip>>;
1465
+ }, z.core.$strip>, z.ZodObject<{
1466
+ message_scene: z.ZodLiteral<"group">;
1467
+ peer_id: z.ZodNumber;
1468
+ message_seq: z.ZodNumber;
1469
+ sender_id: z.ZodNumber;
1470
+ time: z.ZodNumber;
1471
+ segments: z.ZodArray<z.ZodLazy<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1472
+ type: z.ZodLiteral<"text">;
1473
+ data: z.ZodObject<{
1474
+ text: z.ZodString;
1475
+ }, z.core.$strip>;
1476
+ }, z.core.$strip>, z.ZodObject<{
1477
+ type: z.ZodLiteral<"mention">;
1478
+ data: z.ZodObject<{
1479
+ user_id: z.ZodNumber;
1480
+ name: z.ZodString;
1481
+ }, z.core.$strip>;
1482
+ }, z.core.$strip>, z.ZodObject<{
1483
+ type: z.ZodLiteral<"mention_all">;
1484
+ data: z.ZodObject<{}, z.core.$strip>;
1485
+ }, z.core.$strip>, z.ZodObject<{
1486
+ type: z.ZodLiteral<"face">;
1487
+ data: z.ZodObject<{
1488
+ face_id: z.ZodString;
1489
+ is_large: z.ZodBoolean;
1490
+ }, z.core.$strip>;
1491
+ }, z.core.$strip>, z.ZodObject<{
1492
+ type: z.ZodLiteral<"reply">;
1493
+ data: z.ZodObject<{
1494
+ message_seq: z.ZodNumber;
1495
+ sender_id: z.ZodNumber;
1496
+ sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ time: z.ZodNumber;
1498
+ segments: z.ZodArray<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1499
+ type: z.ZodLiteral<"text">;
1500
+ data: z.ZodObject<{
1501
+ text: z.ZodString;
1502
+ }, z.core.$strip>;
1503
+ }, z.core.$strip>, z.ZodObject<{
1504
+ type: z.ZodLiteral<"mention">;
1505
+ data: z.ZodObject<{
1506
+ user_id: z.ZodNumber;
1507
+ name: z.ZodString;
1508
+ }, z.core.$strip>;
1509
+ }, z.core.$strip>, z.ZodObject<{
1510
+ type: z.ZodLiteral<"mention_all">;
1511
+ data: z.ZodObject<{}, z.core.$strip>;
1512
+ }, z.core.$strip>, z.ZodObject<{
1513
+ type: z.ZodLiteral<"face">;
1514
+ data: z.ZodObject<{
1515
+ face_id: z.ZodString;
1516
+ is_large: z.ZodBoolean;
1517
+ }, z.core.$strip>;
1518
+ }, z.core.$strip>, z.ZodObject<any, z.core.$strip>, z.ZodObject<{
1519
+ type: z.ZodLiteral<"image">;
1520
+ data: z.ZodObject<{
1521
+ resource_id: z.ZodString;
1522
+ temp_url: z.ZodString;
1523
+ width: z.ZodNumber;
1524
+ height: z.ZodNumber;
1525
+ summary: z.ZodString;
1526
+ sub_type: z.ZodEnum<{
1527
+ normal: "normal";
1528
+ sticker: "sticker";
1529
+ }>;
1530
+ }, z.core.$strip>;
1531
+ }, z.core.$strip>, z.ZodObject<{
1532
+ type: z.ZodLiteral<"record">;
1533
+ data: z.ZodObject<{
1534
+ resource_id: z.ZodString;
1535
+ temp_url: z.ZodString;
1536
+ duration: z.ZodNumber;
1537
+ }, z.core.$strip>;
1538
+ }, z.core.$strip>, z.ZodObject<{
1539
+ type: z.ZodLiteral<"video">;
1540
+ data: z.ZodObject<{
1541
+ resource_id: z.ZodString;
1542
+ temp_url: z.ZodString;
1543
+ width: z.ZodNumber;
1544
+ height: z.ZodNumber;
1545
+ duration: z.ZodNumber;
1546
+ }, z.core.$strip>;
1547
+ }, z.core.$strip>, z.ZodObject<{
1548
+ type: z.ZodLiteral<"file">;
1549
+ data: z.ZodObject<{
1550
+ file_id: z.ZodString;
1551
+ file_name: z.ZodString;
1552
+ file_size: z.ZodNumber;
1553
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
+ }, z.core.$strip>;
1555
+ }, z.core.$strip>, z.ZodObject<{
1556
+ type: z.ZodLiteral<"forward">;
1557
+ data: z.ZodObject<{
1558
+ forward_id: z.ZodString;
1559
+ title: z.ZodString;
1560
+ preview: z.ZodArray<z.ZodString>;
1561
+ summary: z.ZodString;
1562
+ }, z.core.$strip>;
1563
+ }, z.core.$strip>, z.ZodObject<{
1564
+ type: z.ZodLiteral<"market_face">;
1565
+ data: z.ZodObject<{
1566
+ emoji_package_id: z.ZodNumber;
1567
+ emoji_id: z.ZodString;
1568
+ key: z.ZodString;
1569
+ summary: z.ZodString;
1570
+ url: z.ZodString;
1571
+ }, z.core.$strip>;
1572
+ }, z.core.$strip>, z.ZodObject<{
1573
+ type: z.ZodLiteral<"light_app">;
1574
+ data: z.ZodObject<{
1575
+ app_name: z.ZodString;
1576
+ json_payload: z.ZodString;
1577
+ }, z.core.$strip>;
1578
+ }, z.core.$strip>, z.ZodObject<{
1579
+ type: z.ZodLiteral<"xml">;
1580
+ data: z.ZodObject<{
1581
+ service_id: z.ZodNumber;
1582
+ xml_payload: z.ZodString;
1583
+ }, z.core.$strip>;
1584
+ }, z.core.$strip>, z.ZodObject<{
1585
+ type: z.ZodLiteral<"markdown">;
1586
+ data: z.ZodObject<{
1587
+ content: z.ZodString;
1588
+ }, z.core.$strip>;
1589
+ }, z.core.$strip>], "type">>>;
1590
+ }, z.core.$strip>;
1591
+ }, z.core.$strip>, z.ZodObject<{
1592
+ type: z.ZodLiteral<"image">;
1593
+ data: z.ZodObject<{
1594
+ resource_id: z.ZodString;
1595
+ temp_url: z.ZodString;
1596
+ width: z.ZodNumber;
1597
+ height: z.ZodNumber;
1598
+ summary: z.ZodString;
1599
+ sub_type: z.ZodEnum<{
1600
+ normal: "normal";
1601
+ sticker: "sticker";
1602
+ }>;
1603
+ }, z.core.$strip>;
1604
+ }, z.core.$strip>, z.ZodObject<{
1605
+ type: z.ZodLiteral<"record">;
1606
+ data: z.ZodObject<{
1607
+ resource_id: z.ZodString;
1608
+ temp_url: z.ZodString;
1609
+ duration: z.ZodNumber;
1610
+ }, z.core.$strip>;
1611
+ }, z.core.$strip>, z.ZodObject<{
1612
+ type: z.ZodLiteral<"video">;
1613
+ data: z.ZodObject<{
1614
+ resource_id: z.ZodString;
1615
+ temp_url: z.ZodString;
1616
+ width: z.ZodNumber;
1617
+ height: z.ZodNumber;
1618
+ duration: z.ZodNumber;
1619
+ }, z.core.$strip>;
1620
+ }, z.core.$strip>, z.ZodObject<{
1621
+ type: z.ZodLiteral<"file">;
1622
+ data: z.ZodObject<{
1623
+ file_id: z.ZodString;
1624
+ file_name: z.ZodString;
1625
+ file_size: z.ZodNumber;
1626
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1627
+ }, z.core.$strip>;
1628
+ }, z.core.$strip>, z.ZodObject<{
1629
+ type: z.ZodLiteral<"forward">;
1630
+ data: z.ZodObject<{
1631
+ forward_id: z.ZodString;
1632
+ title: z.ZodString;
1633
+ preview: z.ZodArray<z.ZodString>;
1634
+ summary: z.ZodString;
1635
+ }, z.core.$strip>;
1636
+ }, z.core.$strip>, z.ZodObject<{
1637
+ type: z.ZodLiteral<"market_face">;
1638
+ data: z.ZodObject<{
1639
+ emoji_package_id: z.ZodNumber;
1640
+ emoji_id: z.ZodString;
1641
+ key: z.ZodString;
1642
+ summary: z.ZodString;
1643
+ url: z.ZodString;
1644
+ }, z.core.$strip>;
1645
+ }, z.core.$strip>, z.ZodObject<{
1646
+ type: z.ZodLiteral<"light_app">;
1647
+ data: z.ZodObject<{
1648
+ app_name: z.ZodString;
1649
+ json_payload: z.ZodString;
1650
+ }, z.core.$strip>;
1651
+ }, z.core.$strip>, z.ZodObject<{
1652
+ type: z.ZodLiteral<"xml">;
1653
+ data: z.ZodObject<{
1654
+ service_id: z.ZodNumber;
1655
+ xml_payload: z.ZodString;
1656
+ }, z.core.$strip>;
1657
+ }, z.core.$strip>, z.ZodObject<{
1658
+ type: z.ZodLiteral<"markdown">;
1659
+ data: z.ZodObject<{
1660
+ content: z.ZodString;
1661
+ }, z.core.$strip>;
1662
+ }, z.core.$strip>], "type">>>>;
1663
+ group: z.ZodLazy<z.ZodObject<{
1664
+ group_id: z.ZodNumber;
1665
+ group_name: z.ZodString;
1666
+ member_count: z.ZodNumber;
1667
+ max_member_count: z.ZodNumber;
1668
+ remark: z.ZodString;
1669
+ created_time: z.ZodNumber;
1670
+ description: z.ZodString;
1671
+ question: z.ZodString;
1672
+ announcement: z.ZodString;
1673
+ }, z.core.$strip>>;
1674
+ group_member: z.ZodLazy<z.ZodObject<{
1675
+ user_id: z.ZodNumber;
1676
+ nickname: z.ZodString;
1677
+ sex: z.ZodEnum<{
1678
+ female: "female";
1679
+ male: "male";
1680
+ unknown: "unknown";
1681
+ }>;
1682
+ group_id: z.ZodNumber;
1683
+ card: z.ZodString;
1684
+ title: z.ZodString;
1685
+ level: z.ZodNumber;
1686
+ role: z.ZodEnum<{
1687
+ admin: "admin";
1688
+ member: "member";
1689
+ owner: "owner";
1690
+ }>;
1691
+ join_time: z.ZodNumber;
1692
+ last_sent_time: z.ZodNumber;
1693
+ shut_up_end_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1694
+ }, z.core.$strip>>;
1695
+ }, z.core.$strip>, z.ZodObject<{
1696
+ message_scene: z.ZodLiteral<"temp">;
1697
+ peer_id: z.ZodNumber;
1698
+ message_seq: z.ZodNumber;
1699
+ sender_id: z.ZodNumber;
1700
+ time: z.ZodNumber;
1701
+ segments: z.ZodArray<z.ZodLazy<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1702
+ type: z.ZodLiteral<"text">;
1703
+ data: z.ZodObject<{
1704
+ text: z.ZodString;
1705
+ }, z.core.$strip>;
1706
+ }, z.core.$strip>, z.ZodObject<{
1707
+ type: z.ZodLiteral<"mention">;
1708
+ data: z.ZodObject<{
1709
+ user_id: z.ZodNumber;
1710
+ name: z.ZodString;
1711
+ }, z.core.$strip>;
1712
+ }, z.core.$strip>, z.ZodObject<{
1713
+ type: z.ZodLiteral<"mention_all">;
1714
+ data: z.ZodObject<{}, z.core.$strip>;
1715
+ }, z.core.$strip>, z.ZodObject<{
1716
+ type: z.ZodLiteral<"face">;
1717
+ data: z.ZodObject<{
1718
+ face_id: z.ZodString;
1719
+ is_large: z.ZodBoolean;
1720
+ }, z.core.$strip>;
1721
+ }, z.core.$strip>, z.ZodObject<{
1722
+ type: z.ZodLiteral<"reply">;
1723
+ data: z.ZodObject<{
1724
+ message_seq: z.ZodNumber;
1725
+ sender_id: z.ZodNumber;
1726
+ sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1727
+ time: z.ZodNumber;
1728
+ segments: z.ZodArray<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1729
+ type: z.ZodLiteral<"text">;
1730
+ data: z.ZodObject<{
1731
+ text: z.ZodString;
1732
+ }, z.core.$strip>;
1733
+ }, z.core.$strip>, z.ZodObject<{
1734
+ type: z.ZodLiteral<"mention">;
1735
+ data: z.ZodObject<{
1736
+ user_id: z.ZodNumber;
1737
+ name: z.ZodString;
1738
+ }, z.core.$strip>;
1739
+ }, z.core.$strip>, z.ZodObject<{
1740
+ type: z.ZodLiteral<"mention_all">;
1741
+ data: z.ZodObject<{}, z.core.$strip>;
1742
+ }, z.core.$strip>, z.ZodObject<{
1743
+ type: z.ZodLiteral<"face">;
1744
+ data: z.ZodObject<{
1745
+ face_id: z.ZodString;
1746
+ is_large: z.ZodBoolean;
1747
+ }, z.core.$strip>;
1748
+ }, z.core.$strip>, z.ZodObject<any, z.core.$strip>, z.ZodObject<{
1749
+ type: z.ZodLiteral<"image">;
1750
+ data: z.ZodObject<{
1751
+ resource_id: z.ZodString;
1752
+ temp_url: z.ZodString;
1753
+ width: z.ZodNumber;
1754
+ height: z.ZodNumber;
1755
+ summary: z.ZodString;
1756
+ sub_type: z.ZodEnum<{
1757
+ normal: "normal";
1758
+ sticker: "sticker";
1759
+ }>;
1760
+ }, z.core.$strip>;
1761
+ }, z.core.$strip>, z.ZodObject<{
1762
+ type: z.ZodLiteral<"record">;
1763
+ data: z.ZodObject<{
1764
+ resource_id: z.ZodString;
1765
+ temp_url: z.ZodString;
1766
+ duration: z.ZodNumber;
1767
+ }, z.core.$strip>;
1768
+ }, z.core.$strip>, z.ZodObject<{
1769
+ type: z.ZodLiteral<"video">;
1770
+ data: z.ZodObject<{
1771
+ resource_id: z.ZodString;
1772
+ temp_url: z.ZodString;
1773
+ width: z.ZodNumber;
1774
+ height: z.ZodNumber;
1775
+ duration: z.ZodNumber;
1776
+ }, z.core.$strip>;
1777
+ }, z.core.$strip>, z.ZodObject<{
1778
+ type: z.ZodLiteral<"file">;
1779
+ data: z.ZodObject<{
1780
+ file_id: z.ZodString;
1781
+ file_name: z.ZodString;
1782
+ file_size: z.ZodNumber;
1783
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1784
+ }, z.core.$strip>;
1785
+ }, z.core.$strip>, z.ZodObject<{
1786
+ type: z.ZodLiteral<"forward">;
1787
+ data: z.ZodObject<{
1788
+ forward_id: z.ZodString;
1789
+ title: z.ZodString;
1790
+ preview: z.ZodArray<z.ZodString>;
1791
+ summary: z.ZodString;
1792
+ }, z.core.$strip>;
1793
+ }, z.core.$strip>, z.ZodObject<{
1794
+ type: z.ZodLiteral<"market_face">;
1795
+ data: z.ZodObject<{
1796
+ emoji_package_id: z.ZodNumber;
1797
+ emoji_id: z.ZodString;
1798
+ key: z.ZodString;
1799
+ summary: z.ZodString;
1800
+ url: z.ZodString;
1801
+ }, z.core.$strip>;
1802
+ }, z.core.$strip>, z.ZodObject<{
1803
+ type: z.ZodLiteral<"light_app">;
1804
+ data: z.ZodObject<{
1805
+ app_name: z.ZodString;
1806
+ json_payload: z.ZodString;
1807
+ }, z.core.$strip>;
1808
+ }, z.core.$strip>, z.ZodObject<{
1809
+ type: z.ZodLiteral<"xml">;
1810
+ data: z.ZodObject<{
1811
+ service_id: z.ZodNumber;
1812
+ xml_payload: z.ZodString;
1813
+ }, z.core.$strip>;
1814
+ }, z.core.$strip>, z.ZodObject<{
1815
+ type: z.ZodLiteral<"markdown">;
1816
+ data: z.ZodObject<{
1817
+ content: z.ZodString;
1818
+ }, z.core.$strip>;
1819
+ }, z.core.$strip>], "type">>>;
1820
+ }, z.core.$strip>;
1821
+ }, z.core.$strip>, z.ZodObject<{
1822
+ type: z.ZodLiteral<"image">;
1823
+ data: z.ZodObject<{
1824
+ resource_id: z.ZodString;
1825
+ temp_url: z.ZodString;
1826
+ width: z.ZodNumber;
1827
+ height: z.ZodNumber;
1828
+ summary: z.ZodString;
1829
+ sub_type: z.ZodEnum<{
1830
+ normal: "normal";
1831
+ sticker: "sticker";
1832
+ }>;
1833
+ }, z.core.$strip>;
1834
+ }, z.core.$strip>, z.ZodObject<{
1835
+ type: z.ZodLiteral<"record">;
1836
+ data: z.ZodObject<{
1837
+ resource_id: z.ZodString;
1838
+ temp_url: z.ZodString;
1839
+ duration: z.ZodNumber;
1840
+ }, z.core.$strip>;
1841
+ }, z.core.$strip>, z.ZodObject<{
1842
+ type: z.ZodLiteral<"video">;
1843
+ data: z.ZodObject<{
1844
+ resource_id: z.ZodString;
1845
+ temp_url: z.ZodString;
1846
+ width: z.ZodNumber;
1847
+ height: z.ZodNumber;
1848
+ duration: z.ZodNumber;
1849
+ }, z.core.$strip>;
1850
+ }, z.core.$strip>, z.ZodObject<{
1851
+ type: z.ZodLiteral<"file">;
1852
+ data: z.ZodObject<{
1853
+ file_id: z.ZodString;
1854
+ file_name: z.ZodString;
1855
+ file_size: z.ZodNumber;
1856
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1857
+ }, z.core.$strip>;
1858
+ }, z.core.$strip>, z.ZodObject<{
1859
+ type: z.ZodLiteral<"forward">;
1860
+ data: z.ZodObject<{
1861
+ forward_id: z.ZodString;
1862
+ title: z.ZodString;
1863
+ preview: z.ZodArray<z.ZodString>;
1864
+ summary: z.ZodString;
1865
+ }, z.core.$strip>;
1866
+ }, z.core.$strip>, z.ZodObject<{
1867
+ type: z.ZodLiteral<"market_face">;
1868
+ data: z.ZodObject<{
1869
+ emoji_package_id: z.ZodNumber;
1870
+ emoji_id: z.ZodString;
1871
+ key: z.ZodString;
1872
+ summary: z.ZodString;
1873
+ url: z.ZodString;
1874
+ }, z.core.$strip>;
1875
+ }, z.core.$strip>, z.ZodObject<{
1876
+ type: z.ZodLiteral<"light_app">;
1877
+ data: z.ZodObject<{
1878
+ app_name: z.ZodString;
1879
+ json_payload: z.ZodString;
1880
+ }, z.core.$strip>;
1881
+ }, z.core.$strip>, z.ZodObject<{
1882
+ type: z.ZodLiteral<"xml">;
1883
+ data: z.ZodObject<{
1884
+ service_id: z.ZodNumber;
1885
+ xml_payload: z.ZodString;
1886
+ }, z.core.$strip>;
1887
+ }, z.core.$strip>, z.ZodObject<{
1888
+ type: z.ZodLiteral<"markdown">;
1889
+ data: z.ZodObject<{
1890
+ content: z.ZodString;
1891
+ }, z.core.$strip>;
1892
+ }, z.core.$strip>], "type">>>>;
1893
+ group: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
1894
+ group_id: z.ZodNumber;
1895
+ group_name: z.ZodString;
1896
+ member_count: z.ZodNumber;
1897
+ max_member_count: z.ZodNumber;
1898
+ remark: z.ZodString;
1899
+ created_time: z.ZodNumber;
1900
+ description: z.ZodString;
1901
+ question: z.ZodString;
1902
+ announcement: z.ZodString;
1903
+ }, z.core.$strip>>>>;
1904
+ }, z.core.$strip>], "message_scene">>>;
1905
+ next_message_seq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1906
+ }, z.core.$strip>;
1907
+ };
1908
+ get_resource_temp_url: {
1909
+ description: string;
1910
+ requestSchema: z.ZodObject<{
1911
+ resource_id: z.ZodString;
1912
+ }, z.core.$strip>;
1913
+ responseSchema: z.ZodObject<{
1914
+ url: z.ZodString;
1915
+ }, z.core.$strip>;
1916
+ };
1917
+ get_forwarded_messages: {
1918
+ description: string;
1919
+ requestSchema: z.ZodObject<{
1920
+ forward_id: z.ZodString;
1921
+ }, z.core.$strip>;
1922
+ responseSchema: z.ZodObject<{
1923
+ messages: z.ZodArray<z.ZodLazy<z.ZodObject<{
1924
+ message_seq: z.ZodNumber;
1925
+ sender_name: z.ZodString;
1926
+ avatar_url: z.ZodString;
1927
+ time: z.ZodNumber;
1928
+ segments: z.ZodArray<z.ZodLazy<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1929
+ type: z.ZodLiteral<"text">;
1930
+ data: z.ZodObject<{
1931
+ text: z.ZodString;
1932
+ }, z.core.$strip>;
1933
+ }, z.core.$strip>, z.ZodObject<{
1934
+ type: z.ZodLiteral<"mention">;
1935
+ data: z.ZodObject<{
1936
+ user_id: z.ZodNumber;
1937
+ name: z.ZodString;
1938
+ }, z.core.$strip>;
1939
+ }, z.core.$strip>, z.ZodObject<{
1940
+ type: z.ZodLiteral<"mention_all">;
1941
+ data: z.ZodObject<{}, z.core.$strip>;
1942
+ }, z.core.$strip>, z.ZodObject<{
1943
+ type: z.ZodLiteral<"face">;
1944
+ data: z.ZodObject<{
1945
+ face_id: z.ZodString;
1946
+ is_large: z.ZodBoolean;
1947
+ }, z.core.$strip>;
1948
+ }, z.core.$strip>, z.ZodObject<{
1949
+ type: z.ZodLiteral<"reply">;
1950
+ data: z.ZodObject<{
1951
+ message_seq: z.ZodNumber;
1952
+ sender_id: z.ZodNumber;
1953
+ sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1954
+ time: z.ZodNumber;
1955
+ segments: z.ZodArray<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
1956
+ type: z.ZodLiteral<"text">;
1957
+ data: z.ZodObject<{
1958
+ text: z.ZodString;
1959
+ }, z.core.$strip>;
1960
+ }, z.core.$strip>, z.ZodObject<{
1961
+ type: z.ZodLiteral<"mention">;
1962
+ data: z.ZodObject<{
1963
+ user_id: z.ZodNumber;
1964
+ name: z.ZodString;
1965
+ }, z.core.$strip>;
1966
+ }, z.core.$strip>, z.ZodObject<{
1967
+ type: z.ZodLiteral<"mention_all">;
1968
+ data: z.ZodObject<{}, z.core.$strip>;
1969
+ }, z.core.$strip>, z.ZodObject<{
1970
+ type: z.ZodLiteral<"face">;
1971
+ data: z.ZodObject<{
1972
+ face_id: z.ZodString;
1973
+ is_large: z.ZodBoolean;
1974
+ }, z.core.$strip>;
1975
+ }, z.core.$strip>, z.ZodObject<any, z.core.$strip>, z.ZodObject<{
1976
+ type: z.ZodLiteral<"image">;
1977
+ data: z.ZodObject<{
1978
+ resource_id: z.ZodString;
1979
+ temp_url: z.ZodString;
1980
+ width: z.ZodNumber;
1981
+ height: z.ZodNumber;
1982
+ summary: z.ZodString;
1983
+ sub_type: z.ZodEnum<{
1984
+ normal: "normal";
1985
+ sticker: "sticker";
1986
+ }>;
1987
+ }, z.core.$strip>;
1988
+ }, z.core.$strip>, z.ZodObject<{
1989
+ type: z.ZodLiteral<"record">;
1990
+ data: z.ZodObject<{
1991
+ resource_id: z.ZodString;
1992
+ temp_url: z.ZodString;
1993
+ duration: z.ZodNumber;
1994
+ }, z.core.$strip>;
1995
+ }, z.core.$strip>, z.ZodObject<{
1996
+ type: z.ZodLiteral<"video">;
1997
+ data: z.ZodObject<{
1998
+ resource_id: z.ZodString;
1999
+ temp_url: z.ZodString;
2000
+ width: z.ZodNumber;
2001
+ height: z.ZodNumber;
2002
+ duration: z.ZodNumber;
2003
+ }, z.core.$strip>;
2004
+ }, z.core.$strip>, z.ZodObject<{
2005
+ type: z.ZodLiteral<"file">;
2006
+ data: z.ZodObject<{
2007
+ file_id: z.ZodString;
2008
+ file_name: z.ZodString;
2009
+ file_size: z.ZodNumber;
2010
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2011
+ }, z.core.$strip>;
2012
+ }, z.core.$strip>, z.ZodObject<{
2013
+ type: z.ZodLiteral<"forward">;
2014
+ data: z.ZodObject<{
2015
+ forward_id: z.ZodString;
2016
+ title: z.ZodString;
2017
+ preview: z.ZodArray<z.ZodString>;
2018
+ summary: z.ZodString;
2019
+ }, z.core.$strip>;
2020
+ }, z.core.$strip>, z.ZodObject<{
2021
+ type: z.ZodLiteral<"market_face">;
2022
+ data: z.ZodObject<{
2023
+ emoji_package_id: z.ZodNumber;
2024
+ emoji_id: z.ZodString;
2025
+ key: z.ZodString;
2026
+ summary: z.ZodString;
2027
+ url: z.ZodString;
2028
+ }, z.core.$strip>;
2029
+ }, z.core.$strip>, z.ZodObject<{
2030
+ type: z.ZodLiteral<"light_app">;
2031
+ data: z.ZodObject<{
2032
+ app_name: z.ZodString;
2033
+ json_payload: z.ZodString;
2034
+ }, z.core.$strip>;
2035
+ }, z.core.$strip>, z.ZodObject<{
2036
+ type: z.ZodLiteral<"xml">;
2037
+ data: z.ZodObject<{
2038
+ service_id: z.ZodNumber;
2039
+ xml_payload: z.ZodString;
2040
+ }, z.core.$strip>;
2041
+ }, z.core.$strip>, z.ZodObject<{
2042
+ type: z.ZodLiteral<"markdown">;
2043
+ data: z.ZodObject<{
2044
+ content: z.ZodString;
2045
+ }, z.core.$strip>;
2046
+ }, z.core.$strip>], "type">>>;
2047
+ }, z.core.$strip>;
2048
+ }, z.core.$strip>, z.ZodObject<{
2049
+ type: z.ZodLiteral<"image">;
2050
+ data: z.ZodObject<{
2051
+ resource_id: z.ZodString;
2052
+ temp_url: z.ZodString;
2053
+ width: z.ZodNumber;
2054
+ height: z.ZodNumber;
2055
+ summary: z.ZodString;
2056
+ sub_type: z.ZodEnum<{
2057
+ normal: "normal";
2058
+ sticker: "sticker";
2059
+ }>;
2060
+ }, z.core.$strip>;
2061
+ }, z.core.$strip>, z.ZodObject<{
2062
+ type: z.ZodLiteral<"record">;
2063
+ data: z.ZodObject<{
2064
+ resource_id: z.ZodString;
2065
+ temp_url: z.ZodString;
2066
+ duration: z.ZodNumber;
2067
+ }, z.core.$strip>;
2068
+ }, z.core.$strip>, z.ZodObject<{
2069
+ type: z.ZodLiteral<"video">;
2070
+ data: z.ZodObject<{
2071
+ resource_id: z.ZodString;
2072
+ temp_url: z.ZodString;
2073
+ width: z.ZodNumber;
2074
+ height: z.ZodNumber;
2075
+ duration: z.ZodNumber;
2076
+ }, z.core.$strip>;
2077
+ }, z.core.$strip>, z.ZodObject<{
2078
+ type: z.ZodLiteral<"file">;
2079
+ data: z.ZodObject<{
2080
+ file_id: z.ZodString;
2081
+ file_name: z.ZodString;
2082
+ file_size: z.ZodNumber;
2083
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2084
+ }, z.core.$strip>;
2085
+ }, z.core.$strip>, z.ZodObject<{
2086
+ type: z.ZodLiteral<"forward">;
2087
+ data: z.ZodObject<{
2088
+ forward_id: z.ZodString;
2089
+ title: z.ZodString;
2090
+ preview: z.ZodArray<z.ZodString>;
2091
+ summary: z.ZodString;
2092
+ }, z.core.$strip>;
2093
+ }, z.core.$strip>, z.ZodObject<{
2094
+ type: z.ZodLiteral<"market_face">;
2095
+ data: z.ZodObject<{
2096
+ emoji_package_id: z.ZodNumber;
2097
+ emoji_id: z.ZodString;
2098
+ key: z.ZodString;
2099
+ summary: z.ZodString;
2100
+ url: z.ZodString;
2101
+ }, z.core.$strip>;
2102
+ }, z.core.$strip>, z.ZodObject<{
2103
+ type: z.ZodLiteral<"light_app">;
2104
+ data: z.ZodObject<{
2105
+ app_name: z.ZodString;
2106
+ json_payload: z.ZodString;
2107
+ }, z.core.$strip>;
2108
+ }, z.core.$strip>, z.ZodObject<{
2109
+ type: z.ZodLiteral<"xml">;
2110
+ data: z.ZodObject<{
2111
+ service_id: z.ZodNumber;
2112
+ xml_payload: z.ZodString;
2113
+ }, z.core.$strip>;
2114
+ }, z.core.$strip>, z.ZodObject<{
2115
+ type: z.ZodLiteral<"markdown">;
2116
+ data: z.ZodObject<{
2117
+ content: z.ZodString;
2118
+ }, z.core.$strip>;
2119
+ }, z.core.$strip>], "type">>>>;
2120
+ }, z.core.$strip>>>;
2121
+ }, z.core.$strip>;
2122
+ };
2123
+ mark_message_as_read: {
2124
+ description: string;
2125
+ requestSchema: z.ZodObject<{
2126
+ message_scene: z.ZodEnum<{
2127
+ friend: "friend";
2128
+ group: "group";
2129
+ temp: "temp";
2130
+ }>;
2131
+ peer_id: z.ZodNumber;
2132
+ message_seq: z.ZodNumber;
2133
+ }, z.core.$strip>;
2134
+ responseSchema: null;
2135
+ };
2136
+ send_friend_nudge: {
2137
+ description: string;
2138
+ requestSchema: z.ZodObject<{
2139
+ user_id: z.ZodNumber;
2140
+ is_self: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2141
+ }, z.core.$strip>;
2142
+ responseSchema: null;
2143
+ };
2144
+ send_profile_like: {
2145
+ description: string;
2146
+ requestSchema: z.ZodObject<{
2147
+ user_id: z.ZodNumber;
2148
+ count: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>, z.ZodTransform<number, number | null>>;
2149
+ }, z.core.$strip>;
2150
+ responseSchema: null;
2151
+ };
2152
+ delete_friend: {
2153
+ description: string;
2154
+ requestSchema: z.ZodObject<{
2155
+ user_id: z.ZodNumber;
2156
+ }, z.core.$strip>;
2157
+ responseSchema: null;
2158
+ };
2159
+ get_friend_requests: {
2160
+ description: string;
2161
+ requestSchema: z.ZodObject<{
2162
+ limit: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>, z.ZodTransform<number, number | null>>;
2163
+ is_filtered: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2164
+ }, z.core.$strip>;
2165
+ responseSchema: z.ZodObject<{
2166
+ requests: z.ZodArray<z.ZodLazy<z.ZodObject<{
2167
+ time: z.ZodNumber;
2168
+ initiator_id: z.ZodNumber;
2169
+ initiator_uid: z.ZodString;
2170
+ target_user_id: z.ZodNumber;
2171
+ target_user_uid: z.ZodString;
2172
+ state: z.ZodEnum<{
2173
+ accepted: "accepted";
2174
+ ignored: "ignored";
2175
+ pending: "pending";
2176
+ rejected: "rejected";
2177
+ }>;
2178
+ comment: z.ZodString;
2179
+ via: z.ZodString;
2180
+ is_filtered: z.ZodBoolean;
2181
+ }, z.core.$strip>>>;
2182
+ }, z.core.$strip>;
2183
+ };
2184
+ accept_friend_request: {
2185
+ description: string;
2186
+ requestSchema: z.ZodObject<{
2187
+ initiator_uid: z.ZodString;
2188
+ is_filtered: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2189
+ }, z.core.$strip>;
2190
+ responseSchema: null;
2191
+ };
2192
+ reject_friend_request: {
2193
+ description: string;
2194
+ requestSchema: z.ZodObject<{
2195
+ initiator_uid: z.ZodString;
2196
+ is_filtered: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2197
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2198
+ }, z.core.$strip>;
2199
+ responseSchema: null;
2200
+ };
2201
+ set_group_name: {
2202
+ description: string;
2203
+ requestSchema: z.ZodObject<{
2204
+ group_id: z.ZodNumber;
2205
+ new_group_name: z.ZodString;
2206
+ }, z.core.$strip>;
2207
+ responseSchema: null;
2208
+ };
2209
+ set_group_avatar: {
2210
+ description: string;
2211
+ requestSchema: z.ZodObject<{
2212
+ group_id: z.ZodNumber;
2213
+ image_uri: z.ZodString;
2214
+ }, z.core.$strip>;
2215
+ responseSchema: null;
2216
+ };
2217
+ set_group_member_card: {
2218
+ description: string;
2219
+ requestSchema: z.ZodObject<{
2220
+ group_id: z.ZodNumber;
2221
+ user_id: z.ZodNumber;
2222
+ card: z.ZodString;
2223
+ }, z.core.$strip>;
2224
+ responseSchema: null;
2225
+ };
2226
+ set_group_member_special_title: {
2227
+ description: string;
2228
+ requestSchema: z.ZodObject<{
2229
+ group_id: z.ZodNumber;
2230
+ user_id: z.ZodNumber;
2231
+ special_title: z.ZodString;
2232
+ }, z.core.$strip>;
2233
+ responseSchema: null;
2234
+ };
2235
+ set_group_member_admin: {
2236
+ description: string;
2237
+ requestSchema: z.ZodObject<{
2238
+ group_id: z.ZodNumber;
2239
+ user_id: z.ZodNumber;
2240
+ is_set: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2241
+ }, z.core.$strip>;
2242
+ responseSchema: null;
2243
+ };
2244
+ set_group_member_mute: {
2245
+ description: string;
2246
+ requestSchema: z.ZodObject<{
2247
+ group_id: z.ZodNumber;
2248
+ user_id: z.ZodNumber;
2249
+ duration: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>, z.ZodTransform<number, number | null>>;
2250
+ }, z.core.$strip>;
2251
+ responseSchema: null;
2252
+ };
2253
+ set_group_whole_mute: {
2254
+ description: string;
2255
+ requestSchema: z.ZodObject<{
2256
+ group_id: z.ZodNumber;
2257
+ is_mute: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2258
+ }, z.core.$strip>;
2259
+ responseSchema: null;
2260
+ };
2261
+ kick_group_member: {
2262
+ description: string;
2263
+ requestSchema: z.ZodObject<{
2264
+ group_id: z.ZodNumber;
2265
+ user_id: z.ZodNumber;
2266
+ reject_add_request: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2267
+ }, z.core.$strip>;
2268
+ responseSchema: null;
2269
+ };
2270
+ get_group_announcements: {
2271
+ description: string;
2272
+ requestSchema: z.ZodObject<{
2273
+ group_id: z.ZodNumber;
2274
+ }, z.core.$strip>;
2275
+ responseSchema: z.ZodObject<{
2276
+ announcements: z.ZodArray<z.ZodLazy<z.ZodObject<{
2277
+ group_id: z.ZodNumber;
2278
+ announcement_id: z.ZodString;
2279
+ user_id: z.ZodNumber;
2280
+ time: z.ZodNumber;
2281
+ content: z.ZodString;
2282
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2283
+ }, z.core.$strip>>>;
2284
+ }, z.core.$strip>;
2285
+ };
2286
+ send_group_announcement: {
2287
+ description: string;
2288
+ requestSchema: z.ZodObject<{
2289
+ group_id: z.ZodNumber;
2290
+ content: z.ZodString;
2291
+ image_uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2292
+ }, z.core.$strip>;
2293
+ responseSchema: null;
2294
+ };
2295
+ delete_group_announcement: {
2296
+ description: string;
2297
+ requestSchema: z.ZodObject<{
2298
+ group_id: z.ZodNumber;
2299
+ announcement_id: z.ZodString;
2300
+ }, z.core.$strip>;
2301
+ responseSchema: null;
2302
+ };
2303
+ get_group_essence_messages: {
2304
+ description: string;
2305
+ requestSchema: z.ZodObject<{
2306
+ group_id: z.ZodNumber;
2307
+ page_index: z.ZodNumber;
2308
+ page_size: z.ZodNumber;
2309
+ }, z.core.$strip>;
2310
+ responseSchema: z.ZodObject<{
2311
+ messages: z.ZodArray<z.ZodLazy<z.ZodObject<{
2312
+ group_id: z.ZodNumber;
2313
+ message_seq: z.ZodNumber;
2314
+ message_time: z.ZodNumber;
2315
+ sender_id: z.ZodNumber;
2316
+ sender_name: z.ZodString;
2317
+ operator_id: z.ZodNumber;
2318
+ operator_name: z.ZodString;
2319
+ operation_time: z.ZodNumber;
2320
+ segments: z.ZodArray<z.ZodLazy<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
2321
+ type: z.ZodLiteral<"text">;
2322
+ data: z.ZodObject<{
2323
+ text: z.ZodString;
2324
+ }, z.core.$strip>;
2325
+ }, z.core.$strip>, z.ZodObject<{
2326
+ type: z.ZodLiteral<"mention">;
2327
+ data: z.ZodObject<{
2328
+ user_id: z.ZodNumber;
2329
+ name: z.ZodString;
2330
+ }, z.core.$strip>;
2331
+ }, z.core.$strip>, z.ZodObject<{
2332
+ type: z.ZodLiteral<"mention_all">;
2333
+ data: z.ZodObject<{}, z.core.$strip>;
2334
+ }, z.core.$strip>, z.ZodObject<{
2335
+ type: z.ZodLiteral<"face">;
2336
+ data: z.ZodObject<{
2337
+ face_id: z.ZodString;
2338
+ is_large: z.ZodBoolean;
2339
+ }, z.core.$strip>;
2340
+ }, z.core.$strip>, z.ZodObject<{
2341
+ type: z.ZodLiteral<"reply">;
2342
+ data: z.ZodObject<{
2343
+ message_seq: z.ZodNumber;
2344
+ sender_id: z.ZodNumber;
2345
+ sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2346
+ time: z.ZodNumber;
2347
+ segments: z.ZodArray<z.ZodCatch<z.ZodDiscriminatedUnion<[z.ZodObject<{
2348
+ type: z.ZodLiteral<"text">;
2349
+ data: z.ZodObject<{
2350
+ text: z.ZodString;
2351
+ }, z.core.$strip>;
2352
+ }, z.core.$strip>, z.ZodObject<{
2353
+ type: z.ZodLiteral<"mention">;
2354
+ data: z.ZodObject<{
2355
+ user_id: z.ZodNumber;
2356
+ name: z.ZodString;
2357
+ }, z.core.$strip>;
2358
+ }, z.core.$strip>, z.ZodObject<{
2359
+ type: z.ZodLiteral<"mention_all">;
2360
+ data: z.ZodObject<{}, z.core.$strip>;
2361
+ }, z.core.$strip>, z.ZodObject<{
2362
+ type: z.ZodLiteral<"face">;
2363
+ data: z.ZodObject<{
2364
+ face_id: z.ZodString;
2365
+ is_large: z.ZodBoolean;
2366
+ }, z.core.$strip>;
2367
+ }, z.core.$strip>, z.ZodObject<any, z.core.$strip>, z.ZodObject<{
2368
+ type: z.ZodLiteral<"image">;
2369
+ data: z.ZodObject<{
2370
+ resource_id: z.ZodString;
2371
+ temp_url: z.ZodString;
2372
+ width: z.ZodNumber;
2373
+ height: z.ZodNumber;
2374
+ summary: z.ZodString;
2375
+ sub_type: z.ZodEnum<{
2376
+ normal: "normal";
2377
+ sticker: "sticker";
2378
+ }>;
2379
+ }, z.core.$strip>;
2380
+ }, z.core.$strip>, z.ZodObject<{
2381
+ type: z.ZodLiteral<"record">;
2382
+ data: z.ZodObject<{
2383
+ resource_id: z.ZodString;
2384
+ temp_url: z.ZodString;
2385
+ duration: z.ZodNumber;
2386
+ }, z.core.$strip>;
2387
+ }, z.core.$strip>, z.ZodObject<{
2388
+ type: z.ZodLiteral<"video">;
2389
+ data: z.ZodObject<{
2390
+ resource_id: z.ZodString;
2391
+ temp_url: z.ZodString;
2392
+ width: z.ZodNumber;
2393
+ height: z.ZodNumber;
2394
+ duration: z.ZodNumber;
2395
+ }, z.core.$strip>;
2396
+ }, z.core.$strip>, z.ZodObject<{
2397
+ type: z.ZodLiteral<"file">;
2398
+ data: z.ZodObject<{
2399
+ file_id: z.ZodString;
2400
+ file_name: z.ZodString;
2401
+ file_size: z.ZodNumber;
2402
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2403
+ }, z.core.$strip>;
2404
+ }, z.core.$strip>, z.ZodObject<{
2405
+ type: z.ZodLiteral<"forward">;
2406
+ data: z.ZodObject<{
2407
+ forward_id: z.ZodString;
2408
+ title: z.ZodString;
2409
+ preview: z.ZodArray<z.ZodString>;
2410
+ summary: z.ZodString;
2411
+ }, z.core.$strip>;
2412
+ }, z.core.$strip>, z.ZodObject<{
2413
+ type: z.ZodLiteral<"market_face">;
2414
+ data: z.ZodObject<{
2415
+ emoji_package_id: z.ZodNumber;
2416
+ emoji_id: z.ZodString;
2417
+ key: z.ZodString;
2418
+ summary: z.ZodString;
2419
+ url: z.ZodString;
2420
+ }, z.core.$strip>;
2421
+ }, z.core.$strip>, z.ZodObject<{
2422
+ type: z.ZodLiteral<"light_app">;
2423
+ data: z.ZodObject<{
2424
+ app_name: z.ZodString;
2425
+ json_payload: z.ZodString;
2426
+ }, z.core.$strip>;
2427
+ }, z.core.$strip>, z.ZodObject<{
2428
+ type: z.ZodLiteral<"xml">;
2429
+ data: z.ZodObject<{
2430
+ service_id: z.ZodNumber;
2431
+ xml_payload: z.ZodString;
2432
+ }, z.core.$strip>;
2433
+ }, z.core.$strip>, z.ZodObject<{
2434
+ type: z.ZodLiteral<"markdown">;
2435
+ data: z.ZodObject<{
2436
+ content: z.ZodString;
2437
+ }, z.core.$strip>;
2438
+ }, z.core.$strip>], "type">>>;
2439
+ }, z.core.$strip>;
2440
+ }, z.core.$strip>, z.ZodObject<{
2441
+ type: z.ZodLiteral<"image">;
2442
+ data: z.ZodObject<{
2443
+ resource_id: z.ZodString;
2444
+ temp_url: z.ZodString;
2445
+ width: z.ZodNumber;
2446
+ height: z.ZodNumber;
2447
+ summary: z.ZodString;
2448
+ sub_type: z.ZodEnum<{
2449
+ normal: "normal";
2450
+ sticker: "sticker";
2451
+ }>;
2452
+ }, z.core.$strip>;
2453
+ }, z.core.$strip>, z.ZodObject<{
2454
+ type: z.ZodLiteral<"record">;
2455
+ data: z.ZodObject<{
2456
+ resource_id: z.ZodString;
2457
+ temp_url: z.ZodString;
2458
+ duration: z.ZodNumber;
2459
+ }, z.core.$strip>;
2460
+ }, z.core.$strip>, z.ZodObject<{
2461
+ type: z.ZodLiteral<"video">;
2462
+ data: z.ZodObject<{
2463
+ resource_id: z.ZodString;
2464
+ temp_url: z.ZodString;
2465
+ width: z.ZodNumber;
2466
+ height: z.ZodNumber;
2467
+ duration: z.ZodNumber;
2468
+ }, z.core.$strip>;
2469
+ }, z.core.$strip>, z.ZodObject<{
2470
+ type: z.ZodLiteral<"file">;
2471
+ data: z.ZodObject<{
2472
+ file_id: z.ZodString;
2473
+ file_name: z.ZodString;
2474
+ file_size: z.ZodNumber;
2475
+ file_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2476
+ }, z.core.$strip>;
2477
+ }, z.core.$strip>, z.ZodObject<{
2478
+ type: z.ZodLiteral<"forward">;
2479
+ data: z.ZodObject<{
2480
+ forward_id: z.ZodString;
2481
+ title: z.ZodString;
2482
+ preview: z.ZodArray<z.ZodString>;
2483
+ summary: z.ZodString;
2484
+ }, z.core.$strip>;
2485
+ }, z.core.$strip>, z.ZodObject<{
2486
+ type: z.ZodLiteral<"market_face">;
2487
+ data: z.ZodObject<{
2488
+ emoji_package_id: z.ZodNumber;
2489
+ emoji_id: z.ZodString;
2490
+ key: z.ZodString;
2491
+ summary: z.ZodString;
2492
+ url: z.ZodString;
2493
+ }, z.core.$strip>;
2494
+ }, z.core.$strip>, z.ZodObject<{
2495
+ type: z.ZodLiteral<"light_app">;
2496
+ data: z.ZodObject<{
2497
+ app_name: z.ZodString;
2498
+ json_payload: z.ZodString;
2499
+ }, z.core.$strip>;
2500
+ }, z.core.$strip>, z.ZodObject<{
2501
+ type: z.ZodLiteral<"xml">;
2502
+ data: z.ZodObject<{
2503
+ service_id: z.ZodNumber;
2504
+ xml_payload: z.ZodString;
2505
+ }, z.core.$strip>;
2506
+ }, z.core.$strip>, z.ZodObject<{
2507
+ type: z.ZodLiteral<"markdown">;
2508
+ data: z.ZodObject<{
2509
+ content: z.ZodString;
2510
+ }, z.core.$strip>;
2511
+ }, z.core.$strip>], "type">>>>;
2512
+ }, z.core.$strip>>>;
2513
+ is_end: z.ZodBoolean;
2514
+ }, z.core.$strip>;
2515
+ };
2516
+ set_group_essence_message: {
2517
+ description: string;
2518
+ requestSchema: z.ZodObject<{
2519
+ group_id: z.ZodNumber;
2520
+ message_seq: z.ZodNumber;
2521
+ is_set: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2522
+ }, z.core.$strip>;
2523
+ responseSchema: null;
2524
+ };
2525
+ quit_group: {
2526
+ description: string;
2527
+ requestSchema: z.ZodObject<{
2528
+ group_id: z.ZodNumber;
2529
+ }, z.core.$strip>;
2530
+ responseSchema: null;
2531
+ };
2532
+ send_group_message_reaction: {
2533
+ description: string;
2534
+ requestSchema: z.ZodObject<{
2535
+ group_id: z.ZodNumber;
2536
+ message_seq: z.ZodNumber;
2537
+ reaction: z.ZodString;
2538
+ reaction_type: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2539
+ emoji: "emoji";
2540
+ face: "face";
2541
+ }>>>>, z.ZodTransform<"emoji" | "face", "emoji" | "face" | null>>;
2542
+ is_add: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2543
+ }, z.core.$strip>;
2544
+ responseSchema: null;
2545
+ };
2546
+ send_group_nudge: {
2547
+ description: string;
2548
+ requestSchema: z.ZodObject<{
2549
+ group_id: z.ZodNumber;
2550
+ user_id: z.ZodNumber;
2551
+ }, z.core.$strip>;
2552
+ responseSchema: null;
2553
+ };
2554
+ get_group_notifications: {
2555
+ description: string;
2556
+ requestSchema: z.ZodObject<{
2557
+ start_notification_seq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2558
+ is_filtered: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2559
+ limit: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>, z.ZodTransform<number, number | null>>;
2560
+ }, z.core.$strip>;
2561
+ responseSchema: z.ZodObject<{
2562
+ notifications: z.ZodPipe<z.ZodArray<z.ZodCatch<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
2563
+ type: z.ZodLiteral<"join_request">;
2564
+ group_id: z.ZodNumber;
2565
+ notification_seq: z.ZodNumber;
2566
+ is_filtered: z.ZodBoolean;
2567
+ initiator_id: z.ZodNumber;
2568
+ state: z.ZodEnum<{
2569
+ accepted: "accepted";
2570
+ ignored: "ignored";
2571
+ pending: "pending";
2572
+ rejected: "rejected";
2573
+ }>;
2574
+ operator_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2575
+ comment: z.ZodString;
2576
+ }, z.core.$strip>, z.ZodObject<{
2577
+ type: z.ZodLiteral<"admin_change">;
2578
+ group_id: z.ZodNumber;
2579
+ notification_seq: z.ZodNumber;
2580
+ target_user_id: z.ZodNumber;
2581
+ is_set: z.ZodBoolean;
2582
+ operator_id: z.ZodNumber;
2583
+ }, z.core.$strip>, z.ZodObject<{
2584
+ type: z.ZodLiteral<"kick">;
2585
+ group_id: z.ZodNumber;
2586
+ notification_seq: z.ZodNumber;
2587
+ target_user_id: z.ZodNumber;
2588
+ operator_id: z.ZodNumber;
2589
+ }, z.core.$strip>, z.ZodObject<{
2590
+ type: z.ZodLiteral<"quit">;
2591
+ group_id: z.ZodNumber;
2592
+ notification_seq: z.ZodNumber;
2593
+ target_user_id: z.ZodNumber;
2594
+ }, z.core.$strip>, z.ZodObject<{
2595
+ type: z.ZodLiteral<"invited_join_request">;
2596
+ group_id: z.ZodNumber;
2597
+ notification_seq: z.ZodNumber;
2598
+ initiator_id: z.ZodNumber;
2599
+ target_user_id: z.ZodNumber;
2600
+ state: z.ZodEnum<{
2601
+ accepted: "accepted";
2602
+ ignored: "ignored";
2603
+ pending: "pending";
2604
+ rejected: "rejected";
2605
+ }>;
2606
+ operator_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2607
+ }, z.core.$strip>], "type">>>>, z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
2608
+ type: z.ZodLiteral<"join_request">;
2609
+ group_id: z.ZodNumber;
2610
+ notification_seq: z.ZodNumber;
2611
+ is_filtered: z.ZodBoolean;
2612
+ initiator_id: z.ZodNumber;
2613
+ state: z.ZodEnum<{
2614
+ accepted: "accepted";
2615
+ ignored: "ignored";
2616
+ pending: "pending";
2617
+ rejected: "rejected";
2618
+ }>;
2619
+ operator_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2620
+ comment: z.ZodString;
2621
+ }, z.core.$strip>, z.ZodObject<{
2622
+ type: z.ZodLiteral<"admin_change">;
2623
+ group_id: z.ZodNumber;
2624
+ notification_seq: z.ZodNumber;
2625
+ target_user_id: z.ZodNumber;
2626
+ is_set: z.ZodBoolean;
2627
+ operator_id: z.ZodNumber;
2628
+ }, z.core.$strip>, z.ZodObject<{
2629
+ type: z.ZodLiteral<"kick">;
2630
+ group_id: z.ZodNumber;
2631
+ notification_seq: z.ZodNumber;
2632
+ target_user_id: z.ZodNumber;
2633
+ operator_id: z.ZodNumber;
2634
+ }, z.core.$strip>, z.ZodObject<{
2635
+ type: z.ZodLiteral<"quit">;
2636
+ group_id: z.ZodNumber;
2637
+ notification_seq: z.ZodNumber;
2638
+ target_user_id: z.ZodNumber;
2639
+ }, z.core.$strip>, z.ZodObject<{
2640
+ type: z.ZodLiteral<"invited_join_request">;
2641
+ group_id: z.ZodNumber;
2642
+ notification_seq: z.ZodNumber;
2643
+ initiator_id: z.ZodNumber;
2644
+ target_user_id: z.ZodNumber;
2645
+ state: z.ZodEnum<{
2646
+ accepted: "accepted";
2647
+ ignored: "ignored";
2648
+ pending: "pending";
2649
+ rejected: "rejected";
2650
+ }>;
2651
+ operator_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2652
+ }, z.core.$strip>], "type">>>>;
2653
+ next_notification_seq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2654
+ }, z.core.$strip>;
2655
+ };
2656
+ accept_group_request: {
2657
+ description: string;
2658
+ requestSchema: z.ZodObject<{
2659
+ notification_seq: z.ZodNumber;
2660
+ notification_type: z.ZodEnum<{
2661
+ invited_join_request: "invited_join_request";
2662
+ join_request: "join_request";
2663
+ }>;
2664
+ group_id: z.ZodNumber;
2665
+ is_filtered: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2666
+ }, z.core.$strip>;
2667
+ responseSchema: null;
2668
+ };
2669
+ reject_group_request: {
2670
+ description: string;
2671
+ requestSchema: z.ZodObject<{
2672
+ notification_seq: z.ZodNumber;
2673
+ notification_type: z.ZodEnum<{
2674
+ invited_join_request: "invited_join_request";
2675
+ join_request: "join_request";
2676
+ }>;
2677
+ group_id: z.ZodNumber;
2678
+ is_filtered: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2679
+ reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2680
+ }, z.core.$strip>;
2681
+ responseSchema: null;
2682
+ };
2683
+ accept_group_invitation: {
2684
+ description: string;
2685
+ requestSchema: z.ZodObject<{
2686
+ group_id: z.ZodNumber;
2687
+ invitation_seq: z.ZodNumber;
2688
+ }, z.core.$strip>;
2689
+ responseSchema: null;
2690
+ };
2691
+ reject_group_invitation: {
2692
+ description: string;
2693
+ requestSchema: z.ZodObject<{
2694
+ group_id: z.ZodNumber;
2695
+ invitation_seq: z.ZodNumber;
2696
+ }, z.core.$strip>;
2697
+ responseSchema: null;
2698
+ };
2699
+ upload_private_file: {
2700
+ description: string;
2701
+ requestSchema: z.ZodObject<{
2702
+ user_id: z.ZodNumber;
2703
+ file_uri: z.ZodString;
2704
+ file_name: z.ZodString;
2705
+ }, z.core.$strip>;
2706
+ responseSchema: z.ZodObject<{
2707
+ file_id: z.ZodString;
2708
+ }, z.core.$strip>;
2709
+ };
2710
+ upload_group_file: {
2711
+ description: string;
2712
+ requestSchema: z.ZodObject<{
2713
+ group_id: z.ZodNumber;
2714
+ parent_folder_id: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string, string | null>>;
2715
+ file_uri: z.ZodString;
2716
+ file_name: z.ZodString;
2717
+ }, z.core.$strip>;
2718
+ responseSchema: z.ZodObject<{
2719
+ file_id: z.ZodString;
2720
+ }, z.core.$strip>;
2721
+ };
2722
+ get_private_file_download_url: {
2723
+ description: string;
2724
+ requestSchema: z.ZodObject<{
2725
+ user_id: z.ZodNumber;
2726
+ file_id: z.ZodString;
2727
+ file_hash: z.ZodString;
2728
+ is_self_send: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>, z.ZodTransform<boolean, boolean | null>>;
2729
+ }, z.core.$strip>;
2730
+ responseSchema: z.ZodObject<{
2731
+ download_url: z.ZodString;
2732
+ }, z.core.$strip>;
2733
+ };
2734
+ get_group_file_download_url: {
2735
+ description: string;
2736
+ requestSchema: z.ZodObject<{
2737
+ group_id: z.ZodNumber;
2738
+ file_id: z.ZodString;
2739
+ }, z.core.$strip>;
2740
+ responseSchema: z.ZodObject<{
2741
+ download_url: z.ZodString;
2742
+ }, z.core.$strip>;
2743
+ };
2744
+ get_group_files: {
2745
+ description: string;
2746
+ requestSchema: z.ZodObject<{
2747
+ group_id: z.ZodNumber;
2748
+ parent_folder_id: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string, string | null>>;
2749
+ }, z.core.$strip>;
2750
+ responseSchema: z.ZodObject<{
2751
+ files: z.ZodArray<z.ZodLazy<z.ZodObject<{
2752
+ group_id: z.ZodNumber;
2753
+ file_id: z.ZodString;
2754
+ file_name: z.ZodString;
2755
+ parent_folder_id: z.ZodString;
2756
+ file_size: z.ZodNumber;
2757
+ uploaded_time: z.ZodNumber;
2758
+ expire_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2759
+ uploader_id: z.ZodNumber;
2760
+ downloaded_times: z.ZodNumber;
2761
+ }, z.core.$strip>>>;
2762
+ folders: z.ZodArray<z.ZodLazy<z.ZodObject<{
2763
+ group_id: z.ZodNumber;
2764
+ folder_id: z.ZodString;
2765
+ parent_folder_id: z.ZodString;
2766
+ folder_name: z.ZodString;
2767
+ created_time: z.ZodNumber;
2768
+ last_modified_time: z.ZodNumber;
2769
+ creator_id: z.ZodNumber;
2770
+ file_count: z.ZodNumber;
2771
+ }, z.core.$strip>>>;
2772
+ }, z.core.$strip>;
2773
+ };
2774
+ move_group_file: {
2775
+ description: string;
2776
+ requestSchema: z.ZodObject<{
2777
+ group_id: z.ZodNumber;
2778
+ file_id: z.ZodString;
2779
+ parent_folder_id: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string, string | null>>;
2780
+ target_folder_id: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string, string | null>>;
2781
+ }, z.core.$strip>;
2782
+ responseSchema: null;
2783
+ };
2784
+ rename_group_file: {
2785
+ description: string;
2786
+ requestSchema: z.ZodObject<{
2787
+ group_id: z.ZodNumber;
2788
+ file_id: z.ZodString;
2789
+ parent_folder_id: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>, z.ZodTransform<string, string | null>>;
2790
+ new_file_name: z.ZodString;
2791
+ }, z.core.$strip>;
2792
+ responseSchema: null;
2793
+ };
2794
+ delete_group_file: {
2795
+ description: string;
2796
+ requestSchema: z.ZodObject<{
2797
+ group_id: z.ZodNumber;
2798
+ file_id: z.ZodString;
2799
+ }, z.core.$strip>;
2800
+ responseSchema: null;
2801
+ };
2802
+ persist_group_file: {
2803
+ description: string;
2804
+ requestSchema: z.ZodObject<{
2805
+ group_id: z.ZodNumber;
2806
+ file_id: z.ZodString;
2807
+ }, z.core.$strip>;
2808
+ responseSchema: null;
2809
+ };
2810
+ create_group_folder: {
2811
+ description: string;
2812
+ requestSchema: z.ZodObject<{
2813
+ group_id: z.ZodNumber;
2814
+ folder_name: z.ZodString;
2815
+ }, z.core.$strip>;
2816
+ responseSchema: z.ZodObject<{
2817
+ folder_id: z.ZodString;
2818
+ }, z.core.$strip>;
2819
+ };
2820
+ rename_group_folder: {
2821
+ description: string;
2822
+ requestSchema: z.ZodObject<{
2823
+ group_id: z.ZodNumber;
2824
+ folder_id: z.ZodString;
2825
+ new_folder_name: z.ZodString;
2826
+ }, z.core.$strip>;
2827
+ responseSchema: null;
2828
+ };
2829
+ delete_group_folder: {
2830
+ description: string;
2831
+ requestSchema: z.ZodObject<{
2832
+ group_id: z.ZodNumber;
2833
+ folder_id: z.ZodString;
2834
+ }, z.core.$strip>;
2835
+ responseSchema: null;
2836
+ };
2837
+ };
2838
+ //#endregion
2839
+ //#region src/protocol/toolset.d.ts
2840
+ type ToolApiEndpoint = keyof typeof zodApiEndpoints;
2841
+ declare function milkyToolset<T extends ToolApiEndpoint>(ctx: Context, endpoints: T[]): Record<T, Tool>;
2842
+ //#endregion
16
2843
  //#region src/service.d.ts
17
2844
  interface AiServiceOptions {
18
2845
  models: Record<string, LanguageModel>;
@@ -37,4 +2864,4 @@ interface AiPluginOptions {
37
2864
  }
38
2865
  declare const AiPlugin: import("@fraqjs/fraq").Plugin<[options: AiPluginOptions], import("@fraqjs/fraq").Injection | undefined, import("@fraqjs/fraq").Injection | undefined>;
39
2866
  //#endregion
40
- export { AiPlugin, AiPlugin as default, AiPluginOptions, AiService, AiServiceOptions, ProviderConfig, SupportedSDK, resolveLanguageModels };
2867
+ export { AiPlugin, AiPlugin as default, AiPluginOptions, AiService, AiServiceOptions, ProviderConfig, SupportedSDK, ToolApiEndpoint, milkyToolset, resolveLanguageModels };