@corsair-dev/gmail 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1744 @@
1
+ import { z } from 'zod';
2
+ import type { Draft, DraftListResponse, Label, LabelListResponse, Message, MessageListResponse, Profile, Thread, ThreadListResponse } from '../types';
3
+ export declare const GmailEndpointInputSchemas: {
4
+ readonly messagesList: z.ZodObject<{
5
+ userId: z.ZodOptional<z.ZodString>;
6
+ q: z.ZodOptional<z.ZodString>;
7
+ maxResults: z.ZodOptional<z.ZodNumber>;
8
+ pageToken: z.ZodOptional<z.ZodString>;
9
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
+ includeSpamTrash: z.ZodOptional<z.ZodBoolean>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ userId?: string | undefined;
13
+ q?: string | undefined;
14
+ maxResults?: number | undefined;
15
+ pageToken?: string | undefined;
16
+ labelIds?: string[] | undefined;
17
+ includeSpamTrash?: boolean | undefined;
18
+ }, {
19
+ userId?: string | undefined;
20
+ q?: string | undefined;
21
+ maxResults?: number | undefined;
22
+ pageToken?: string | undefined;
23
+ labelIds?: string[] | undefined;
24
+ includeSpamTrash?: boolean | undefined;
25
+ }>;
26
+ readonly messagesGet: z.ZodObject<{
27
+ userId: z.ZodOptional<z.ZodString>;
28
+ id: z.ZodString;
29
+ format: z.ZodOptional<z.ZodEnum<["minimal", "full", "raw", "metadata"]>>;
30
+ metadataHeaders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ id: string;
33
+ userId?: string | undefined;
34
+ format?: "minimal" | "full" | "raw" | "metadata" | undefined;
35
+ metadataHeaders?: string[] | undefined;
36
+ }, {
37
+ id: string;
38
+ userId?: string | undefined;
39
+ format?: "minimal" | "full" | "raw" | "metadata" | undefined;
40
+ metadataHeaders?: string[] | undefined;
41
+ }>;
42
+ readonly messagesSend: z.ZodObject<{
43
+ userId: z.ZodOptional<z.ZodString>;
44
+ raw: z.ZodString;
45
+ threadId: z.ZodOptional<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ raw: string;
48
+ userId?: string | undefined;
49
+ threadId?: string | undefined;
50
+ }, {
51
+ raw: string;
52
+ userId?: string | undefined;
53
+ threadId?: string | undefined;
54
+ }>;
55
+ readonly messagesDelete: z.ZodObject<{
56
+ userId: z.ZodOptional<z.ZodString>;
57
+ id: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ id: string;
60
+ userId?: string | undefined;
61
+ }, {
62
+ id: string;
63
+ userId?: string | undefined;
64
+ }>;
65
+ readonly messagesModify: z.ZodObject<{
66
+ userId: z.ZodOptional<z.ZodString>;
67
+ id: z.ZodString;
68
+ addLabelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
+ removeLabelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ id: string;
72
+ userId?: string | undefined;
73
+ addLabelIds?: string[] | undefined;
74
+ removeLabelIds?: string[] | undefined;
75
+ }, {
76
+ id: string;
77
+ userId?: string | undefined;
78
+ addLabelIds?: string[] | undefined;
79
+ removeLabelIds?: string[] | undefined;
80
+ }>;
81
+ readonly messagesBatchModify: z.ZodObject<{
82
+ userId: z.ZodOptional<z.ZodString>;
83
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
+ addLabelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
85
+ removeLabelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ userId?: string | undefined;
88
+ addLabelIds?: string[] | undefined;
89
+ removeLabelIds?: string[] | undefined;
90
+ ids?: string[] | undefined;
91
+ }, {
92
+ userId?: string | undefined;
93
+ addLabelIds?: string[] | undefined;
94
+ removeLabelIds?: string[] | undefined;
95
+ ids?: string[] | undefined;
96
+ }>;
97
+ readonly messagesTrash: z.ZodObject<{
98
+ userId: z.ZodOptional<z.ZodString>;
99
+ id: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ id: string;
102
+ userId?: string | undefined;
103
+ }, {
104
+ id: string;
105
+ userId?: string | undefined;
106
+ }>;
107
+ readonly messagesUntrash: z.ZodObject<{
108
+ userId: z.ZodOptional<z.ZodString>;
109
+ id: z.ZodString;
110
+ }, "strip", z.ZodTypeAny, {
111
+ id: string;
112
+ userId?: string | undefined;
113
+ }, {
114
+ id: string;
115
+ userId?: string | undefined;
116
+ }>;
117
+ readonly labelsList: z.ZodObject<{
118
+ userId: z.ZodOptional<z.ZodString>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ userId?: string | undefined;
121
+ }, {
122
+ userId?: string | undefined;
123
+ }>;
124
+ readonly labelsGet: z.ZodObject<{
125
+ userId: z.ZodOptional<z.ZodString>;
126
+ id: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ id: string;
129
+ userId?: string | undefined;
130
+ }, {
131
+ id: string;
132
+ userId?: string | undefined;
133
+ }>;
134
+ readonly labelsCreate: z.ZodObject<{
135
+ userId: z.ZodOptional<z.ZodString>;
136
+ label: z.ZodObject<{
137
+ name: z.ZodOptional<z.ZodString>;
138
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
139
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
140
+ color: z.ZodOptional<z.ZodObject<{
141
+ textColor: z.ZodOptional<z.ZodString>;
142
+ backgroundColor: z.ZodOptional<z.ZodString>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ textColor?: string | undefined;
145
+ backgroundColor?: string | undefined;
146
+ }, {
147
+ textColor?: string | undefined;
148
+ backgroundColor?: string | undefined;
149
+ }>>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ name?: string | undefined;
152
+ messageListVisibility?: "show" | "hide" | undefined;
153
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
154
+ color?: {
155
+ textColor?: string | undefined;
156
+ backgroundColor?: string | undefined;
157
+ } | undefined;
158
+ }, {
159
+ name?: string | undefined;
160
+ messageListVisibility?: "show" | "hide" | undefined;
161
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
162
+ color?: {
163
+ textColor?: string | undefined;
164
+ backgroundColor?: string | undefined;
165
+ } | undefined;
166
+ }>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ label: {
169
+ name?: string | undefined;
170
+ messageListVisibility?: "show" | "hide" | undefined;
171
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
172
+ color?: {
173
+ textColor?: string | undefined;
174
+ backgroundColor?: string | undefined;
175
+ } | undefined;
176
+ };
177
+ userId?: string | undefined;
178
+ }, {
179
+ label: {
180
+ name?: string | undefined;
181
+ messageListVisibility?: "show" | "hide" | undefined;
182
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
183
+ color?: {
184
+ textColor?: string | undefined;
185
+ backgroundColor?: string | undefined;
186
+ } | undefined;
187
+ };
188
+ userId?: string | undefined;
189
+ }>;
190
+ readonly labelsUpdate: z.ZodObject<{
191
+ userId: z.ZodOptional<z.ZodString>;
192
+ id: z.ZodString;
193
+ label: z.ZodObject<{
194
+ name: z.ZodOptional<z.ZodString>;
195
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
196
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
197
+ color: z.ZodOptional<z.ZodObject<{
198
+ textColor: z.ZodOptional<z.ZodString>;
199
+ backgroundColor: z.ZodOptional<z.ZodString>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ textColor?: string | undefined;
202
+ backgroundColor?: string | undefined;
203
+ }, {
204
+ textColor?: string | undefined;
205
+ backgroundColor?: string | undefined;
206
+ }>>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ name?: string | undefined;
209
+ messageListVisibility?: "show" | "hide" | undefined;
210
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
211
+ color?: {
212
+ textColor?: string | undefined;
213
+ backgroundColor?: string | undefined;
214
+ } | undefined;
215
+ }, {
216
+ name?: string | undefined;
217
+ messageListVisibility?: "show" | "hide" | undefined;
218
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
219
+ color?: {
220
+ textColor?: string | undefined;
221
+ backgroundColor?: string | undefined;
222
+ } | undefined;
223
+ }>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ id: string;
226
+ label: {
227
+ name?: string | undefined;
228
+ messageListVisibility?: "show" | "hide" | undefined;
229
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
230
+ color?: {
231
+ textColor?: string | undefined;
232
+ backgroundColor?: string | undefined;
233
+ } | undefined;
234
+ };
235
+ userId?: string | undefined;
236
+ }, {
237
+ id: string;
238
+ label: {
239
+ name?: string | undefined;
240
+ messageListVisibility?: "show" | "hide" | undefined;
241
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
242
+ color?: {
243
+ textColor?: string | undefined;
244
+ backgroundColor?: string | undefined;
245
+ } | undefined;
246
+ };
247
+ userId?: string | undefined;
248
+ }>;
249
+ readonly labelsDelete: z.ZodObject<{
250
+ userId: z.ZodOptional<z.ZodString>;
251
+ id: z.ZodString;
252
+ }, "strip", z.ZodTypeAny, {
253
+ id: string;
254
+ userId?: string | undefined;
255
+ }, {
256
+ id: string;
257
+ userId?: string | undefined;
258
+ }>;
259
+ readonly draftsList: z.ZodObject<{
260
+ userId: z.ZodOptional<z.ZodString>;
261
+ maxResults: z.ZodOptional<z.ZodNumber>;
262
+ pageToken: z.ZodOptional<z.ZodString>;
263
+ q: z.ZodOptional<z.ZodString>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ userId?: string | undefined;
266
+ q?: string | undefined;
267
+ maxResults?: number | undefined;
268
+ pageToken?: string | undefined;
269
+ }, {
270
+ userId?: string | undefined;
271
+ q?: string | undefined;
272
+ maxResults?: number | undefined;
273
+ pageToken?: string | undefined;
274
+ }>;
275
+ readonly draftsGet: z.ZodObject<{
276
+ userId: z.ZodOptional<z.ZodString>;
277
+ id: z.ZodString;
278
+ format: z.ZodOptional<z.ZodEnum<["minimal", "full", "raw", "metadata"]>>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ id: string;
281
+ userId?: string | undefined;
282
+ format?: "minimal" | "full" | "raw" | "metadata" | undefined;
283
+ }, {
284
+ id: string;
285
+ userId?: string | undefined;
286
+ format?: "minimal" | "full" | "raw" | "metadata" | undefined;
287
+ }>;
288
+ readonly draftsCreate: z.ZodObject<{
289
+ userId: z.ZodOptional<z.ZodString>;
290
+ draft: z.ZodObject<{
291
+ message: z.ZodOptional<z.ZodObject<{
292
+ raw: z.ZodOptional<z.ZodString>;
293
+ threadId: z.ZodOptional<z.ZodString>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ raw?: string | undefined;
296
+ threadId?: string | undefined;
297
+ }, {
298
+ raw?: string | undefined;
299
+ threadId?: string | undefined;
300
+ }>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ message?: {
303
+ raw?: string | undefined;
304
+ threadId?: string | undefined;
305
+ } | undefined;
306
+ }, {
307
+ message?: {
308
+ raw?: string | undefined;
309
+ threadId?: string | undefined;
310
+ } | undefined;
311
+ }>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ draft: {
314
+ message?: {
315
+ raw?: string | undefined;
316
+ threadId?: string | undefined;
317
+ } | undefined;
318
+ };
319
+ userId?: string | undefined;
320
+ }, {
321
+ draft: {
322
+ message?: {
323
+ raw?: string | undefined;
324
+ threadId?: string | undefined;
325
+ } | undefined;
326
+ };
327
+ userId?: string | undefined;
328
+ }>;
329
+ readonly draftsUpdate: z.ZodObject<{
330
+ userId: z.ZodOptional<z.ZodString>;
331
+ id: z.ZodString;
332
+ draft: z.ZodObject<{
333
+ message: z.ZodOptional<z.ZodObject<{
334
+ raw: z.ZodOptional<z.ZodString>;
335
+ threadId: z.ZodOptional<z.ZodString>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ raw?: string | undefined;
338
+ threadId?: string | undefined;
339
+ }, {
340
+ raw?: string | undefined;
341
+ threadId?: string | undefined;
342
+ }>>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ message?: {
345
+ raw?: string | undefined;
346
+ threadId?: string | undefined;
347
+ } | undefined;
348
+ }, {
349
+ message?: {
350
+ raw?: string | undefined;
351
+ threadId?: string | undefined;
352
+ } | undefined;
353
+ }>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ id: string;
356
+ draft: {
357
+ message?: {
358
+ raw?: string | undefined;
359
+ threadId?: string | undefined;
360
+ } | undefined;
361
+ };
362
+ userId?: string | undefined;
363
+ }, {
364
+ id: string;
365
+ draft: {
366
+ message?: {
367
+ raw?: string | undefined;
368
+ threadId?: string | undefined;
369
+ } | undefined;
370
+ };
371
+ userId?: string | undefined;
372
+ }>;
373
+ readonly draftsDelete: z.ZodObject<{
374
+ userId: z.ZodOptional<z.ZodString>;
375
+ id: z.ZodString;
376
+ }, "strip", z.ZodTypeAny, {
377
+ id: string;
378
+ userId?: string | undefined;
379
+ }, {
380
+ id: string;
381
+ userId?: string | undefined;
382
+ }>;
383
+ readonly draftsSend: z.ZodObject<{
384
+ userId: z.ZodOptional<z.ZodString>;
385
+ id: z.ZodOptional<z.ZodString>;
386
+ message: z.ZodOptional<z.ZodObject<{
387
+ raw: z.ZodOptional<z.ZodString>;
388
+ threadId: z.ZodOptional<z.ZodString>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ raw?: string | undefined;
391
+ threadId?: string | undefined;
392
+ }, {
393
+ raw?: string | undefined;
394
+ threadId?: string | undefined;
395
+ }>>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ id?: string | undefined;
398
+ message?: {
399
+ raw?: string | undefined;
400
+ threadId?: string | undefined;
401
+ } | undefined;
402
+ userId?: string | undefined;
403
+ }, {
404
+ id?: string | undefined;
405
+ message?: {
406
+ raw?: string | undefined;
407
+ threadId?: string | undefined;
408
+ } | undefined;
409
+ userId?: string | undefined;
410
+ }>;
411
+ readonly threadsList: z.ZodObject<{
412
+ userId: z.ZodOptional<z.ZodString>;
413
+ q: z.ZodOptional<z.ZodString>;
414
+ maxResults: z.ZodOptional<z.ZodNumber>;
415
+ pageToken: z.ZodOptional<z.ZodString>;
416
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
417
+ includeSpamTrash: z.ZodOptional<z.ZodBoolean>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ userId?: string | undefined;
420
+ q?: string | undefined;
421
+ maxResults?: number | undefined;
422
+ pageToken?: string | undefined;
423
+ labelIds?: string[] | undefined;
424
+ includeSpamTrash?: boolean | undefined;
425
+ }, {
426
+ userId?: string | undefined;
427
+ q?: string | undefined;
428
+ maxResults?: number | undefined;
429
+ pageToken?: string | undefined;
430
+ labelIds?: string[] | undefined;
431
+ includeSpamTrash?: boolean | undefined;
432
+ }>;
433
+ readonly threadsGet: z.ZodObject<{
434
+ userId: z.ZodOptional<z.ZodString>;
435
+ id: z.ZodString;
436
+ format: z.ZodOptional<z.ZodEnum<["minimal", "full", "metadata"]>>;
437
+ metadataHeaders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ id: string;
440
+ userId?: string | undefined;
441
+ format?: "minimal" | "full" | "metadata" | undefined;
442
+ metadataHeaders?: string[] | undefined;
443
+ }, {
444
+ id: string;
445
+ userId?: string | undefined;
446
+ format?: "minimal" | "full" | "metadata" | undefined;
447
+ metadataHeaders?: string[] | undefined;
448
+ }>;
449
+ readonly threadsModify: z.ZodObject<{
450
+ userId: z.ZodOptional<z.ZodString>;
451
+ id: z.ZodString;
452
+ addLabelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
453
+ removeLabelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ id: string;
456
+ userId?: string | undefined;
457
+ addLabelIds?: string[] | undefined;
458
+ removeLabelIds?: string[] | undefined;
459
+ }, {
460
+ id: string;
461
+ userId?: string | undefined;
462
+ addLabelIds?: string[] | undefined;
463
+ removeLabelIds?: string[] | undefined;
464
+ }>;
465
+ readonly threadsDelete: z.ZodObject<{
466
+ userId: z.ZodOptional<z.ZodString>;
467
+ id: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ id: string;
470
+ userId?: string | undefined;
471
+ }, {
472
+ id: string;
473
+ userId?: string | undefined;
474
+ }>;
475
+ readonly threadsTrash: z.ZodObject<{
476
+ userId: z.ZodOptional<z.ZodString>;
477
+ id: z.ZodString;
478
+ }, "strip", z.ZodTypeAny, {
479
+ id: string;
480
+ userId?: string | undefined;
481
+ }, {
482
+ id: string;
483
+ userId?: string | undefined;
484
+ }>;
485
+ readonly threadsUntrash: z.ZodObject<{
486
+ userId: z.ZodOptional<z.ZodString>;
487
+ id: z.ZodString;
488
+ }, "strip", z.ZodTypeAny, {
489
+ id: string;
490
+ userId?: string | undefined;
491
+ }, {
492
+ id: string;
493
+ userId?: string | undefined;
494
+ }>;
495
+ readonly usersGetProfile: z.ZodObject<{
496
+ userId: z.ZodOptional<z.ZodString>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ userId?: string | undefined;
499
+ }, {
500
+ userId?: string | undefined;
501
+ }>;
502
+ };
503
+ export type GmailEndpointInputs = {
504
+ [K in keyof typeof GmailEndpointInputSchemas]: z.infer<(typeof GmailEndpointInputSchemas)[K]>;
505
+ };
506
+ declare const MessagePartBaseSchema: z.ZodObject<{
507
+ partId: z.ZodOptional<z.ZodString>;
508
+ mimeType: z.ZodOptional<z.ZodString>;
509
+ filename: z.ZodOptional<z.ZodString>;
510
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
511
+ name: z.ZodOptional<z.ZodString>;
512
+ value: z.ZodOptional<z.ZodString>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ value?: string | undefined;
515
+ name?: string | undefined;
516
+ }, {
517
+ value?: string | undefined;
518
+ name?: string | undefined;
519
+ }>, "many">>;
520
+ body: z.ZodOptional<z.ZodObject<{
521
+ attachmentId: z.ZodOptional<z.ZodString>;
522
+ size: z.ZodOptional<z.ZodNumber>;
523
+ data: z.ZodOptional<z.ZodString>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ data?: string | undefined;
526
+ attachmentId?: string | undefined;
527
+ size?: number | undefined;
528
+ }, {
529
+ data?: string | undefined;
530
+ attachmentId?: string | undefined;
531
+ size?: number | undefined;
532
+ }>>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ body?: {
535
+ data?: string | undefined;
536
+ attachmentId?: string | undefined;
537
+ size?: number | undefined;
538
+ } | undefined;
539
+ partId?: string | undefined;
540
+ mimeType?: string | undefined;
541
+ filename?: string | undefined;
542
+ headers?: {
543
+ value?: string | undefined;
544
+ name?: string | undefined;
545
+ }[] | undefined;
546
+ }, {
547
+ body?: {
548
+ data?: string | undefined;
549
+ attachmentId?: string | undefined;
550
+ size?: number | undefined;
551
+ } | undefined;
552
+ partId?: string | undefined;
553
+ mimeType?: string | undefined;
554
+ filename?: string | undefined;
555
+ headers?: {
556
+ value?: string | undefined;
557
+ name?: string | undefined;
558
+ }[] | undefined;
559
+ }>;
560
+ export type MessagePartShape = z.infer<typeof MessagePartBaseSchema> & {
561
+ parts?: MessagePartShape[];
562
+ };
563
+ export declare const GmailEndpointOutputSchemas: {
564
+ readonly messagesList: z.ZodObject<{
565
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
566
+ id: z.ZodOptional<z.ZodString>;
567
+ threadId: z.ZodOptional<z.ZodString>;
568
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
569
+ snippet: z.ZodOptional<z.ZodString>;
570
+ historyId: z.ZodOptional<z.ZodString>;
571
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
572
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
573
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
574
+ raw: z.ZodOptional<z.ZodString>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ id?: string | undefined;
577
+ payload?: MessagePartShape | undefined;
578
+ labelIds?: string[] | undefined;
579
+ raw?: string | undefined;
580
+ threadId?: string | undefined;
581
+ snippet?: string | undefined;
582
+ historyId?: string | undefined;
583
+ internalDate?: Date | null | undefined;
584
+ sizeEstimate?: number | undefined;
585
+ }, {
586
+ id?: string | undefined;
587
+ payload?: MessagePartShape | undefined;
588
+ labelIds?: string[] | undefined;
589
+ raw?: string | undefined;
590
+ threadId?: string | undefined;
591
+ snippet?: string | undefined;
592
+ historyId?: string | undefined;
593
+ internalDate?: string | number | Date | null | undefined;
594
+ sizeEstimate?: number | undefined;
595
+ }>, "many">>;
596
+ nextPageToken: z.ZodOptional<z.ZodString>;
597
+ resultSizeEstimate: z.ZodOptional<z.ZodNumber>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ messages?: {
600
+ id?: string | undefined;
601
+ payload?: MessagePartShape | undefined;
602
+ labelIds?: string[] | undefined;
603
+ raw?: string | undefined;
604
+ threadId?: string | undefined;
605
+ snippet?: string | undefined;
606
+ historyId?: string | undefined;
607
+ internalDate?: Date | null | undefined;
608
+ sizeEstimate?: number | undefined;
609
+ }[] | undefined;
610
+ nextPageToken?: string | undefined;
611
+ resultSizeEstimate?: number | undefined;
612
+ }, {
613
+ messages?: {
614
+ id?: string | undefined;
615
+ payload?: MessagePartShape | undefined;
616
+ labelIds?: string[] | undefined;
617
+ raw?: string | undefined;
618
+ threadId?: string | undefined;
619
+ snippet?: string | undefined;
620
+ historyId?: string | undefined;
621
+ internalDate?: string | number | Date | null | undefined;
622
+ sizeEstimate?: number | undefined;
623
+ }[] | undefined;
624
+ nextPageToken?: string | undefined;
625
+ resultSizeEstimate?: number | undefined;
626
+ }>;
627
+ readonly messagesGet: z.ZodObject<{
628
+ id: z.ZodOptional<z.ZodString>;
629
+ threadId: z.ZodOptional<z.ZodString>;
630
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
631
+ snippet: z.ZodOptional<z.ZodString>;
632
+ historyId: z.ZodOptional<z.ZodString>;
633
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
634
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
635
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
636
+ raw: z.ZodOptional<z.ZodString>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ id?: string | undefined;
639
+ payload?: MessagePartShape | undefined;
640
+ labelIds?: string[] | undefined;
641
+ raw?: string | undefined;
642
+ threadId?: string | undefined;
643
+ snippet?: string | undefined;
644
+ historyId?: string | undefined;
645
+ internalDate?: Date | null | undefined;
646
+ sizeEstimate?: number | undefined;
647
+ }, {
648
+ id?: string | undefined;
649
+ payload?: MessagePartShape | undefined;
650
+ labelIds?: string[] | undefined;
651
+ raw?: string | undefined;
652
+ threadId?: string | undefined;
653
+ snippet?: string | undefined;
654
+ historyId?: string | undefined;
655
+ internalDate?: string | number | Date | null | undefined;
656
+ sizeEstimate?: number | undefined;
657
+ }>;
658
+ readonly messagesSend: z.ZodObject<{
659
+ id: z.ZodOptional<z.ZodString>;
660
+ threadId: z.ZodOptional<z.ZodString>;
661
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
662
+ snippet: z.ZodOptional<z.ZodString>;
663
+ historyId: z.ZodOptional<z.ZodString>;
664
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
665
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
666
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
667
+ raw: z.ZodOptional<z.ZodString>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ id?: string | undefined;
670
+ payload?: MessagePartShape | undefined;
671
+ labelIds?: string[] | undefined;
672
+ raw?: string | undefined;
673
+ threadId?: string | undefined;
674
+ snippet?: string | undefined;
675
+ historyId?: string | undefined;
676
+ internalDate?: Date | null | undefined;
677
+ sizeEstimate?: number | undefined;
678
+ }, {
679
+ id?: string | undefined;
680
+ payload?: MessagePartShape | undefined;
681
+ labelIds?: string[] | undefined;
682
+ raw?: string | undefined;
683
+ threadId?: string | undefined;
684
+ snippet?: string | undefined;
685
+ historyId?: string | undefined;
686
+ internalDate?: string | number | Date | null | undefined;
687
+ sizeEstimate?: number | undefined;
688
+ }>;
689
+ readonly messagesDelete: z.ZodVoid;
690
+ readonly messagesModify: z.ZodObject<{
691
+ id: z.ZodOptional<z.ZodString>;
692
+ threadId: z.ZodOptional<z.ZodString>;
693
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
694
+ snippet: z.ZodOptional<z.ZodString>;
695
+ historyId: z.ZodOptional<z.ZodString>;
696
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
697
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
698
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
699
+ raw: z.ZodOptional<z.ZodString>;
700
+ }, "strip", z.ZodTypeAny, {
701
+ id?: string | undefined;
702
+ payload?: MessagePartShape | undefined;
703
+ labelIds?: string[] | undefined;
704
+ raw?: string | undefined;
705
+ threadId?: string | undefined;
706
+ snippet?: string | undefined;
707
+ historyId?: string | undefined;
708
+ internalDate?: Date | null | undefined;
709
+ sizeEstimate?: number | undefined;
710
+ }, {
711
+ id?: string | undefined;
712
+ payload?: MessagePartShape | undefined;
713
+ labelIds?: string[] | undefined;
714
+ raw?: string | undefined;
715
+ threadId?: string | undefined;
716
+ snippet?: string | undefined;
717
+ historyId?: string | undefined;
718
+ internalDate?: string | number | Date | null | undefined;
719
+ sizeEstimate?: number | undefined;
720
+ }>;
721
+ readonly messagesBatchModify: z.ZodVoid;
722
+ readonly messagesTrash: z.ZodObject<{
723
+ id: z.ZodOptional<z.ZodString>;
724
+ threadId: z.ZodOptional<z.ZodString>;
725
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
726
+ snippet: z.ZodOptional<z.ZodString>;
727
+ historyId: z.ZodOptional<z.ZodString>;
728
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
729
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
730
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
731
+ raw: z.ZodOptional<z.ZodString>;
732
+ }, "strip", z.ZodTypeAny, {
733
+ id?: string | undefined;
734
+ payload?: MessagePartShape | undefined;
735
+ labelIds?: string[] | undefined;
736
+ raw?: string | undefined;
737
+ threadId?: string | undefined;
738
+ snippet?: string | undefined;
739
+ historyId?: string | undefined;
740
+ internalDate?: Date | null | undefined;
741
+ sizeEstimate?: number | undefined;
742
+ }, {
743
+ id?: string | undefined;
744
+ payload?: MessagePartShape | undefined;
745
+ labelIds?: string[] | undefined;
746
+ raw?: string | undefined;
747
+ threadId?: string | undefined;
748
+ snippet?: string | undefined;
749
+ historyId?: string | undefined;
750
+ internalDate?: string | number | Date | null | undefined;
751
+ sizeEstimate?: number | undefined;
752
+ }>;
753
+ readonly messagesUntrash: z.ZodObject<{
754
+ id: z.ZodOptional<z.ZodString>;
755
+ threadId: z.ZodOptional<z.ZodString>;
756
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
757
+ snippet: z.ZodOptional<z.ZodString>;
758
+ historyId: z.ZodOptional<z.ZodString>;
759
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
760
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
761
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
762
+ raw: z.ZodOptional<z.ZodString>;
763
+ }, "strip", z.ZodTypeAny, {
764
+ id?: string | undefined;
765
+ payload?: MessagePartShape | undefined;
766
+ labelIds?: string[] | undefined;
767
+ raw?: string | undefined;
768
+ threadId?: string | undefined;
769
+ snippet?: string | undefined;
770
+ historyId?: string | undefined;
771
+ internalDate?: Date | null | undefined;
772
+ sizeEstimate?: number | undefined;
773
+ }, {
774
+ id?: string | undefined;
775
+ payload?: MessagePartShape | undefined;
776
+ labelIds?: string[] | undefined;
777
+ raw?: string | undefined;
778
+ threadId?: string | undefined;
779
+ snippet?: string | undefined;
780
+ historyId?: string | undefined;
781
+ internalDate?: string | number | Date | null | undefined;
782
+ sizeEstimate?: number | undefined;
783
+ }>;
784
+ readonly labelsList: z.ZodObject<{
785
+ labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
786
+ id: z.ZodOptional<z.ZodString>;
787
+ name: z.ZodOptional<z.ZodString>;
788
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
789
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
790
+ type: z.ZodOptional<z.ZodEnum<["system", "user"]>>;
791
+ messagesTotal: z.ZodOptional<z.ZodNumber>;
792
+ messagesUnread: z.ZodOptional<z.ZodNumber>;
793
+ threadsTotal: z.ZodOptional<z.ZodNumber>;
794
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
795
+ color: z.ZodOptional<z.ZodObject<{
796
+ textColor: z.ZodOptional<z.ZodString>;
797
+ backgroundColor: z.ZodOptional<z.ZodString>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ textColor?: string | undefined;
800
+ backgroundColor?: string | undefined;
801
+ }, {
802
+ textColor?: string | undefined;
803
+ backgroundColor?: string | undefined;
804
+ }>>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ id?: string | undefined;
807
+ name?: string | undefined;
808
+ type?: "system" | "user" | undefined;
809
+ messageListVisibility?: "show" | "hide" | undefined;
810
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
811
+ color?: {
812
+ textColor?: string | undefined;
813
+ backgroundColor?: string | undefined;
814
+ } | undefined;
815
+ messagesTotal?: number | undefined;
816
+ messagesUnread?: number | undefined;
817
+ threadsTotal?: number | undefined;
818
+ threadsUnread?: number | undefined;
819
+ }, {
820
+ id?: string | undefined;
821
+ name?: string | undefined;
822
+ type?: "system" | "user" | undefined;
823
+ messageListVisibility?: "show" | "hide" | undefined;
824
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
825
+ color?: {
826
+ textColor?: string | undefined;
827
+ backgroundColor?: string | undefined;
828
+ } | undefined;
829
+ messagesTotal?: number | undefined;
830
+ messagesUnread?: number | undefined;
831
+ threadsTotal?: number | undefined;
832
+ threadsUnread?: number | undefined;
833
+ }>, "many">>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ labels?: {
836
+ id?: string | undefined;
837
+ name?: string | undefined;
838
+ type?: "system" | "user" | undefined;
839
+ messageListVisibility?: "show" | "hide" | undefined;
840
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
841
+ color?: {
842
+ textColor?: string | undefined;
843
+ backgroundColor?: string | undefined;
844
+ } | undefined;
845
+ messagesTotal?: number | undefined;
846
+ messagesUnread?: number | undefined;
847
+ threadsTotal?: number | undefined;
848
+ threadsUnread?: number | undefined;
849
+ }[] | undefined;
850
+ }, {
851
+ labels?: {
852
+ id?: string | undefined;
853
+ name?: string | undefined;
854
+ type?: "system" | "user" | undefined;
855
+ messageListVisibility?: "show" | "hide" | undefined;
856
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
857
+ color?: {
858
+ textColor?: string | undefined;
859
+ backgroundColor?: string | undefined;
860
+ } | undefined;
861
+ messagesTotal?: number | undefined;
862
+ messagesUnread?: number | undefined;
863
+ threadsTotal?: number | undefined;
864
+ threadsUnread?: number | undefined;
865
+ }[] | undefined;
866
+ }>;
867
+ readonly labelsGet: z.ZodObject<{
868
+ id: z.ZodOptional<z.ZodString>;
869
+ name: z.ZodOptional<z.ZodString>;
870
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
871
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
872
+ type: z.ZodOptional<z.ZodEnum<["system", "user"]>>;
873
+ messagesTotal: z.ZodOptional<z.ZodNumber>;
874
+ messagesUnread: z.ZodOptional<z.ZodNumber>;
875
+ threadsTotal: z.ZodOptional<z.ZodNumber>;
876
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
877
+ color: z.ZodOptional<z.ZodObject<{
878
+ textColor: z.ZodOptional<z.ZodString>;
879
+ backgroundColor: z.ZodOptional<z.ZodString>;
880
+ }, "strip", z.ZodTypeAny, {
881
+ textColor?: string | undefined;
882
+ backgroundColor?: string | undefined;
883
+ }, {
884
+ textColor?: string | undefined;
885
+ backgroundColor?: string | undefined;
886
+ }>>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ id?: string | undefined;
889
+ name?: string | undefined;
890
+ type?: "system" | "user" | undefined;
891
+ messageListVisibility?: "show" | "hide" | undefined;
892
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
893
+ color?: {
894
+ textColor?: string | undefined;
895
+ backgroundColor?: string | undefined;
896
+ } | undefined;
897
+ messagesTotal?: number | undefined;
898
+ messagesUnread?: number | undefined;
899
+ threadsTotal?: number | undefined;
900
+ threadsUnread?: number | undefined;
901
+ }, {
902
+ id?: string | undefined;
903
+ name?: string | undefined;
904
+ type?: "system" | "user" | undefined;
905
+ messageListVisibility?: "show" | "hide" | undefined;
906
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
907
+ color?: {
908
+ textColor?: string | undefined;
909
+ backgroundColor?: string | undefined;
910
+ } | undefined;
911
+ messagesTotal?: number | undefined;
912
+ messagesUnread?: number | undefined;
913
+ threadsTotal?: number | undefined;
914
+ threadsUnread?: number | undefined;
915
+ }>;
916
+ readonly labelsCreate: z.ZodObject<{
917
+ id: z.ZodOptional<z.ZodString>;
918
+ name: z.ZodOptional<z.ZodString>;
919
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
920
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
921
+ type: z.ZodOptional<z.ZodEnum<["system", "user"]>>;
922
+ messagesTotal: z.ZodOptional<z.ZodNumber>;
923
+ messagesUnread: z.ZodOptional<z.ZodNumber>;
924
+ threadsTotal: z.ZodOptional<z.ZodNumber>;
925
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
926
+ color: z.ZodOptional<z.ZodObject<{
927
+ textColor: z.ZodOptional<z.ZodString>;
928
+ backgroundColor: z.ZodOptional<z.ZodString>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ textColor?: string | undefined;
931
+ backgroundColor?: string | undefined;
932
+ }, {
933
+ textColor?: string | undefined;
934
+ backgroundColor?: string | undefined;
935
+ }>>;
936
+ }, "strip", z.ZodTypeAny, {
937
+ id?: string | undefined;
938
+ name?: string | undefined;
939
+ type?: "system" | "user" | undefined;
940
+ messageListVisibility?: "show" | "hide" | undefined;
941
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
942
+ color?: {
943
+ textColor?: string | undefined;
944
+ backgroundColor?: string | undefined;
945
+ } | undefined;
946
+ messagesTotal?: number | undefined;
947
+ messagesUnread?: number | undefined;
948
+ threadsTotal?: number | undefined;
949
+ threadsUnread?: number | undefined;
950
+ }, {
951
+ id?: string | undefined;
952
+ name?: string | undefined;
953
+ type?: "system" | "user" | undefined;
954
+ messageListVisibility?: "show" | "hide" | undefined;
955
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
956
+ color?: {
957
+ textColor?: string | undefined;
958
+ backgroundColor?: string | undefined;
959
+ } | undefined;
960
+ messagesTotal?: number | undefined;
961
+ messagesUnread?: number | undefined;
962
+ threadsTotal?: number | undefined;
963
+ threadsUnread?: number | undefined;
964
+ }>;
965
+ readonly labelsUpdate: z.ZodObject<{
966
+ id: z.ZodOptional<z.ZodString>;
967
+ name: z.ZodOptional<z.ZodString>;
968
+ messageListVisibility: z.ZodOptional<z.ZodEnum<["show", "hide"]>>;
969
+ labelListVisibility: z.ZodOptional<z.ZodEnum<["labelShow", "labelShowIfUnread", "labelHide"]>>;
970
+ type: z.ZodOptional<z.ZodEnum<["system", "user"]>>;
971
+ messagesTotal: z.ZodOptional<z.ZodNumber>;
972
+ messagesUnread: z.ZodOptional<z.ZodNumber>;
973
+ threadsTotal: z.ZodOptional<z.ZodNumber>;
974
+ threadsUnread: z.ZodOptional<z.ZodNumber>;
975
+ color: z.ZodOptional<z.ZodObject<{
976
+ textColor: z.ZodOptional<z.ZodString>;
977
+ backgroundColor: z.ZodOptional<z.ZodString>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ textColor?: string | undefined;
980
+ backgroundColor?: string | undefined;
981
+ }, {
982
+ textColor?: string | undefined;
983
+ backgroundColor?: string | undefined;
984
+ }>>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ id?: string | undefined;
987
+ name?: string | undefined;
988
+ type?: "system" | "user" | undefined;
989
+ messageListVisibility?: "show" | "hide" | undefined;
990
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
991
+ color?: {
992
+ textColor?: string | undefined;
993
+ backgroundColor?: string | undefined;
994
+ } | undefined;
995
+ messagesTotal?: number | undefined;
996
+ messagesUnread?: number | undefined;
997
+ threadsTotal?: number | undefined;
998
+ threadsUnread?: number | undefined;
999
+ }, {
1000
+ id?: string | undefined;
1001
+ name?: string | undefined;
1002
+ type?: "system" | "user" | undefined;
1003
+ messageListVisibility?: "show" | "hide" | undefined;
1004
+ labelListVisibility?: "labelShow" | "labelShowIfUnread" | "labelHide" | undefined;
1005
+ color?: {
1006
+ textColor?: string | undefined;
1007
+ backgroundColor?: string | undefined;
1008
+ } | undefined;
1009
+ messagesTotal?: number | undefined;
1010
+ messagesUnread?: number | undefined;
1011
+ threadsTotal?: number | undefined;
1012
+ threadsUnread?: number | undefined;
1013
+ }>;
1014
+ readonly labelsDelete: z.ZodVoid;
1015
+ readonly draftsList: z.ZodObject<{
1016
+ drafts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1017
+ id: z.ZodOptional<z.ZodString>;
1018
+ message: z.ZodOptional<z.ZodObject<{
1019
+ id: z.ZodOptional<z.ZodString>;
1020
+ threadId: z.ZodOptional<z.ZodString>;
1021
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1022
+ snippet: z.ZodOptional<z.ZodString>;
1023
+ historyId: z.ZodOptional<z.ZodString>;
1024
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1025
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1026
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1027
+ raw: z.ZodOptional<z.ZodString>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ id?: string | undefined;
1030
+ payload?: MessagePartShape | undefined;
1031
+ labelIds?: string[] | undefined;
1032
+ raw?: string | undefined;
1033
+ threadId?: string | undefined;
1034
+ snippet?: string | undefined;
1035
+ historyId?: string | undefined;
1036
+ internalDate?: Date | null | undefined;
1037
+ sizeEstimate?: number | undefined;
1038
+ }, {
1039
+ id?: string | undefined;
1040
+ payload?: MessagePartShape | undefined;
1041
+ labelIds?: string[] | undefined;
1042
+ raw?: string | undefined;
1043
+ threadId?: string | undefined;
1044
+ snippet?: string | undefined;
1045
+ historyId?: string | undefined;
1046
+ internalDate?: string | number | Date | null | undefined;
1047
+ sizeEstimate?: number | undefined;
1048
+ }>>;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ id?: string | undefined;
1051
+ message?: {
1052
+ id?: string | undefined;
1053
+ payload?: MessagePartShape | undefined;
1054
+ labelIds?: string[] | undefined;
1055
+ raw?: string | undefined;
1056
+ threadId?: string | undefined;
1057
+ snippet?: string | undefined;
1058
+ historyId?: string | undefined;
1059
+ internalDate?: Date | null | undefined;
1060
+ sizeEstimate?: number | undefined;
1061
+ } | undefined;
1062
+ }, {
1063
+ id?: string | undefined;
1064
+ message?: {
1065
+ id?: string | undefined;
1066
+ payload?: MessagePartShape | undefined;
1067
+ labelIds?: string[] | undefined;
1068
+ raw?: string | undefined;
1069
+ threadId?: string | undefined;
1070
+ snippet?: string | undefined;
1071
+ historyId?: string | undefined;
1072
+ internalDate?: string | number | Date | null | undefined;
1073
+ sizeEstimate?: number | undefined;
1074
+ } | undefined;
1075
+ }>, "many">>;
1076
+ nextPageToken: z.ZodOptional<z.ZodString>;
1077
+ resultSizeEstimate: z.ZodOptional<z.ZodNumber>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ nextPageToken?: string | undefined;
1080
+ resultSizeEstimate?: number | undefined;
1081
+ drafts?: {
1082
+ id?: string | undefined;
1083
+ message?: {
1084
+ id?: string | undefined;
1085
+ payload?: MessagePartShape | undefined;
1086
+ labelIds?: string[] | undefined;
1087
+ raw?: string | undefined;
1088
+ threadId?: string | undefined;
1089
+ snippet?: string | undefined;
1090
+ historyId?: string | undefined;
1091
+ internalDate?: Date | null | undefined;
1092
+ sizeEstimate?: number | undefined;
1093
+ } | undefined;
1094
+ }[] | undefined;
1095
+ }, {
1096
+ nextPageToken?: string | undefined;
1097
+ resultSizeEstimate?: number | undefined;
1098
+ drafts?: {
1099
+ id?: string | undefined;
1100
+ message?: {
1101
+ id?: string | undefined;
1102
+ payload?: MessagePartShape | undefined;
1103
+ labelIds?: string[] | undefined;
1104
+ raw?: string | undefined;
1105
+ threadId?: string | undefined;
1106
+ snippet?: string | undefined;
1107
+ historyId?: string | undefined;
1108
+ internalDate?: string | number | Date | null | undefined;
1109
+ sizeEstimate?: number | undefined;
1110
+ } | undefined;
1111
+ }[] | undefined;
1112
+ }>;
1113
+ readonly draftsGet: z.ZodObject<{
1114
+ id: z.ZodOptional<z.ZodString>;
1115
+ message: z.ZodOptional<z.ZodObject<{
1116
+ id: z.ZodOptional<z.ZodString>;
1117
+ threadId: z.ZodOptional<z.ZodString>;
1118
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1119
+ snippet: z.ZodOptional<z.ZodString>;
1120
+ historyId: z.ZodOptional<z.ZodString>;
1121
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1122
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1123
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1124
+ raw: z.ZodOptional<z.ZodString>;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ id?: string | undefined;
1127
+ payload?: MessagePartShape | undefined;
1128
+ labelIds?: string[] | undefined;
1129
+ raw?: string | undefined;
1130
+ threadId?: string | undefined;
1131
+ snippet?: string | undefined;
1132
+ historyId?: string | undefined;
1133
+ internalDate?: Date | null | undefined;
1134
+ sizeEstimate?: number | undefined;
1135
+ }, {
1136
+ id?: string | undefined;
1137
+ payload?: MessagePartShape | undefined;
1138
+ labelIds?: string[] | undefined;
1139
+ raw?: string | undefined;
1140
+ threadId?: string | undefined;
1141
+ snippet?: string | undefined;
1142
+ historyId?: string | undefined;
1143
+ internalDate?: string | number | Date | null | undefined;
1144
+ sizeEstimate?: number | undefined;
1145
+ }>>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ id?: string | undefined;
1148
+ message?: {
1149
+ id?: string | undefined;
1150
+ payload?: MessagePartShape | undefined;
1151
+ labelIds?: string[] | undefined;
1152
+ raw?: string | undefined;
1153
+ threadId?: string | undefined;
1154
+ snippet?: string | undefined;
1155
+ historyId?: string | undefined;
1156
+ internalDate?: Date | null | undefined;
1157
+ sizeEstimate?: number | undefined;
1158
+ } | undefined;
1159
+ }, {
1160
+ id?: string | undefined;
1161
+ message?: {
1162
+ id?: string | undefined;
1163
+ payload?: MessagePartShape | undefined;
1164
+ labelIds?: string[] | undefined;
1165
+ raw?: string | undefined;
1166
+ threadId?: string | undefined;
1167
+ snippet?: string | undefined;
1168
+ historyId?: string | undefined;
1169
+ internalDate?: string | number | Date | null | undefined;
1170
+ sizeEstimate?: number | undefined;
1171
+ } | undefined;
1172
+ }>;
1173
+ readonly draftsCreate: z.ZodObject<{
1174
+ id: z.ZodOptional<z.ZodString>;
1175
+ message: z.ZodOptional<z.ZodObject<{
1176
+ id: z.ZodOptional<z.ZodString>;
1177
+ threadId: z.ZodOptional<z.ZodString>;
1178
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1179
+ snippet: z.ZodOptional<z.ZodString>;
1180
+ historyId: z.ZodOptional<z.ZodString>;
1181
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1182
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1183
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1184
+ raw: z.ZodOptional<z.ZodString>;
1185
+ }, "strip", z.ZodTypeAny, {
1186
+ id?: string | undefined;
1187
+ payload?: MessagePartShape | undefined;
1188
+ labelIds?: string[] | undefined;
1189
+ raw?: string | undefined;
1190
+ threadId?: string | undefined;
1191
+ snippet?: string | undefined;
1192
+ historyId?: string | undefined;
1193
+ internalDate?: Date | null | undefined;
1194
+ sizeEstimate?: number | undefined;
1195
+ }, {
1196
+ id?: string | undefined;
1197
+ payload?: MessagePartShape | undefined;
1198
+ labelIds?: string[] | undefined;
1199
+ raw?: string | undefined;
1200
+ threadId?: string | undefined;
1201
+ snippet?: string | undefined;
1202
+ historyId?: string | undefined;
1203
+ internalDate?: string | number | Date | null | undefined;
1204
+ sizeEstimate?: number | undefined;
1205
+ }>>;
1206
+ }, "strip", z.ZodTypeAny, {
1207
+ id?: string | undefined;
1208
+ message?: {
1209
+ id?: string | undefined;
1210
+ payload?: MessagePartShape | undefined;
1211
+ labelIds?: string[] | undefined;
1212
+ raw?: string | undefined;
1213
+ threadId?: string | undefined;
1214
+ snippet?: string | undefined;
1215
+ historyId?: string | undefined;
1216
+ internalDate?: Date | null | undefined;
1217
+ sizeEstimate?: number | undefined;
1218
+ } | undefined;
1219
+ }, {
1220
+ id?: string | undefined;
1221
+ message?: {
1222
+ id?: string | undefined;
1223
+ payload?: MessagePartShape | undefined;
1224
+ labelIds?: string[] | undefined;
1225
+ raw?: string | undefined;
1226
+ threadId?: string | undefined;
1227
+ snippet?: string | undefined;
1228
+ historyId?: string | undefined;
1229
+ internalDate?: string | number | Date | null | undefined;
1230
+ sizeEstimate?: number | undefined;
1231
+ } | undefined;
1232
+ }>;
1233
+ readonly draftsUpdate: z.ZodObject<{
1234
+ id: z.ZodOptional<z.ZodString>;
1235
+ message: z.ZodOptional<z.ZodObject<{
1236
+ id: z.ZodOptional<z.ZodString>;
1237
+ threadId: z.ZodOptional<z.ZodString>;
1238
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1239
+ snippet: z.ZodOptional<z.ZodString>;
1240
+ historyId: z.ZodOptional<z.ZodString>;
1241
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1242
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1243
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1244
+ raw: z.ZodOptional<z.ZodString>;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ id?: string | undefined;
1247
+ payload?: MessagePartShape | undefined;
1248
+ labelIds?: string[] | undefined;
1249
+ raw?: string | undefined;
1250
+ threadId?: string | undefined;
1251
+ snippet?: string | undefined;
1252
+ historyId?: string | undefined;
1253
+ internalDate?: Date | null | undefined;
1254
+ sizeEstimate?: number | undefined;
1255
+ }, {
1256
+ id?: string | undefined;
1257
+ payload?: MessagePartShape | undefined;
1258
+ labelIds?: string[] | undefined;
1259
+ raw?: string | undefined;
1260
+ threadId?: string | undefined;
1261
+ snippet?: string | undefined;
1262
+ historyId?: string | undefined;
1263
+ internalDate?: string | number | Date | null | undefined;
1264
+ sizeEstimate?: number | undefined;
1265
+ }>>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ id?: string | undefined;
1268
+ message?: {
1269
+ id?: string | undefined;
1270
+ payload?: MessagePartShape | undefined;
1271
+ labelIds?: string[] | undefined;
1272
+ raw?: string | undefined;
1273
+ threadId?: string | undefined;
1274
+ snippet?: string | undefined;
1275
+ historyId?: string | undefined;
1276
+ internalDate?: Date | null | undefined;
1277
+ sizeEstimate?: number | undefined;
1278
+ } | undefined;
1279
+ }, {
1280
+ id?: string | undefined;
1281
+ message?: {
1282
+ id?: string | undefined;
1283
+ payload?: MessagePartShape | undefined;
1284
+ labelIds?: string[] | undefined;
1285
+ raw?: string | undefined;
1286
+ threadId?: string | undefined;
1287
+ snippet?: string | undefined;
1288
+ historyId?: string | undefined;
1289
+ internalDate?: string | number | Date | null | undefined;
1290
+ sizeEstimate?: number | undefined;
1291
+ } | undefined;
1292
+ }>;
1293
+ readonly draftsDelete: z.ZodVoid;
1294
+ readonly draftsSend: z.ZodObject<{
1295
+ id: z.ZodOptional<z.ZodString>;
1296
+ threadId: z.ZodOptional<z.ZodString>;
1297
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1298
+ snippet: z.ZodOptional<z.ZodString>;
1299
+ historyId: z.ZodOptional<z.ZodString>;
1300
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1301
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1302
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1303
+ raw: z.ZodOptional<z.ZodString>;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ id?: string | undefined;
1306
+ payload?: MessagePartShape | undefined;
1307
+ labelIds?: string[] | undefined;
1308
+ raw?: string | undefined;
1309
+ threadId?: string | undefined;
1310
+ snippet?: string | undefined;
1311
+ historyId?: string | undefined;
1312
+ internalDate?: Date | null | undefined;
1313
+ sizeEstimate?: number | undefined;
1314
+ }, {
1315
+ id?: string | undefined;
1316
+ payload?: MessagePartShape | undefined;
1317
+ labelIds?: string[] | undefined;
1318
+ raw?: string | undefined;
1319
+ threadId?: string | undefined;
1320
+ snippet?: string | undefined;
1321
+ historyId?: string | undefined;
1322
+ internalDate?: string | number | Date | null | undefined;
1323
+ sizeEstimate?: number | undefined;
1324
+ }>;
1325
+ readonly threadsList: z.ZodObject<{
1326
+ threads: z.ZodOptional<z.ZodArray<z.ZodObject<{
1327
+ id: z.ZodOptional<z.ZodString>;
1328
+ snippet: z.ZodOptional<z.ZodString>;
1329
+ historyId: z.ZodOptional<z.ZodString>;
1330
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1331
+ id: z.ZodOptional<z.ZodString>;
1332
+ threadId: z.ZodOptional<z.ZodString>;
1333
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1334
+ snippet: z.ZodOptional<z.ZodString>;
1335
+ historyId: z.ZodOptional<z.ZodString>;
1336
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1337
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1338
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1339
+ raw: z.ZodOptional<z.ZodString>;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ id?: string | undefined;
1342
+ payload?: MessagePartShape | undefined;
1343
+ labelIds?: string[] | undefined;
1344
+ raw?: string | undefined;
1345
+ threadId?: string | undefined;
1346
+ snippet?: string | undefined;
1347
+ historyId?: string | undefined;
1348
+ internalDate?: Date | null | undefined;
1349
+ sizeEstimate?: number | undefined;
1350
+ }, {
1351
+ id?: string | undefined;
1352
+ payload?: MessagePartShape | undefined;
1353
+ labelIds?: string[] | undefined;
1354
+ raw?: string | undefined;
1355
+ threadId?: string | undefined;
1356
+ snippet?: string | undefined;
1357
+ historyId?: string | undefined;
1358
+ internalDate?: string | number | Date | null | undefined;
1359
+ sizeEstimate?: number | undefined;
1360
+ }>, "many">>;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ id?: string | undefined;
1363
+ snippet?: string | undefined;
1364
+ historyId?: string | undefined;
1365
+ messages?: {
1366
+ id?: string | undefined;
1367
+ payload?: MessagePartShape | undefined;
1368
+ labelIds?: string[] | undefined;
1369
+ raw?: string | undefined;
1370
+ threadId?: string | undefined;
1371
+ snippet?: string | undefined;
1372
+ historyId?: string | undefined;
1373
+ internalDate?: Date | null | undefined;
1374
+ sizeEstimate?: number | undefined;
1375
+ }[] | undefined;
1376
+ }, {
1377
+ id?: string | undefined;
1378
+ snippet?: string | undefined;
1379
+ historyId?: string | undefined;
1380
+ messages?: {
1381
+ id?: string | undefined;
1382
+ payload?: MessagePartShape | undefined;
1383
+ labelIds?: string[] | undefined;
1384
+ raw?: string | undefined;
1385
+ threadId?: string | undefined;
1386
+ snippet?: string | undefined;
1387
+ historyId?: string | undefined;
1388
+ internalDate?: string | number | Date | null | undefined;
1389
+ sizeEstimate?: number | undefined;
1390
+ }[] | undefined;
1391
+ }>, "many">>;
1392
+ nextPageToken: z.ZodOptional<z.ZodString>;
1393
+ resultSizeEstimate: z.ZodOptional<z.ZodNumber>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ nextPageToken?: string | undefined;
1396
+ resultSizeEstimate?: number | undefined;
1397
+ threads?: {
1398
+ id?: string | undefined;
1399
+ snippet?: string | undefined;
1400
+ historyId?: string | undefined;
1401
+ messages?: {
1402
+ id?: string | undefined;
1403
+ payload?: MessagePartShape | undefined;
1404
+ labelIds?: string[] | undefined;
1405
+ raw?: string | undefined;
1406
+ threadId?: string | undefined;
1407
+ snippet?: string | undefined;
1408
+ historyId?: string | undefined;
1409
+ internalDate?: Date | null | undefined;
1410
+ sizeEstimate?: number | undefined;
1411
+ }[] | undefined;
1412
+ }[] | undefined;
1413
+ }, {
1414
+ nextPageToken?: string | undefined;
1415
+ resultSizeEstimate?: number | undefined;
1416
+ threads?: {
1417
+ id?: string | undefined;
1418
+ snippet?: string | undefined;
1419
+ historyId?: string | undefined;
1420
+ messages?: {
1421
+ id?: string | undefined;
1422
+ payload?: MessagePartShape | undefined;
1423
+ labelIds?: string[] | undefined;
1424
+ raw?: string | undefined;
1425
+ threadId?: string | undefined;
1426
+ snippet?: string | undefined;
1427
+ historyId?: string | undefined;
1428
+ internalDate?: string | number | Date | null | undefined;
1429
+ sizeEstimate?: number | undefined;
1430
+ }[] | undefined;
1431
+ }[] | undefined;
1432
+ }>;
1433
+ readonly threadsGet: z.ZodObject<{
1434
+ id: z.ZodOptional<z.ZodString>;
1435
+ snippet: z.ZodOptional<z.ZodString>;
1436
+ historyId: z.ZodOptional<z.ZodString>;
1437
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1438
+ id: z.ZodOptional<z.ZodString>;
1439
+ threadId: z.ZodOptional<z.ZodString>;
1440
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1441
+ snippet: z.ZodOptional<z.ZodString>;
1442
+ historyId: z.ZodOptional<z.ZodString>;
1443
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1444
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1445
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1446
+ raw: z.ZodOptional<z.ZodString>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ id?: string | undefined;
1449
+ payload?: MessagePartShape | undefined;
1450
+ labelIds?: string[] | undefined;
1451
+ raw?: string | undefined;
1452
+ threadId?: string | undefined;
1453
+ snippet?: string | undefined;
1454
+ historyId?: string | undefined;
1455
+ internalDate?: Date | null | undefined;
1456
+ sizeEstimate?: number | undefined;
1457
+ }, {
1458
+ id?: string | undefined;
1459
+ payload?: MessagePartShape | undefined;
1460
+ labelIds?: string[] | undefined;
1461
+ raw?: string | undefined;
1462
+ threadId?: string | undefined;
1463
+ snippet?: string | undefined;
1464
+ historyId?: string | undefined;
1465
+ internalDate?: string | number | Date | null | undefined;
1466
+ sizeEstimate?: number | undefined;
1467
+ }>, "many">>;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ id?: string | undefined;
1470
+ snippet?: string | undefined;
1471
+ historyId?: string | undefined;
1472
+ messages?: {
1473
+ id?: string | undefined;
1474
+ payload?: MessagePartShape | undefined;
1475
+ labelIds?: string[] | undefined;
1476
+ raw?: string | undefined;
1477
+ threadId?: string | undefined;
1478
+ snippet?: string | undefined;
1479
+ historyId?: string | undefined;
1480
+ internalDate?: Date | null | undefined;
1481
+ sizeEstimate?: number | undefined;
1482
+ }[] | undefined;
1483
+ }, {
1484
+ id?: string | undefined;
1485
+ snippet?: string | undefined;
1486
+ historyId?: string | undefined;
1487
+ messages?: {
1488
+ id?: string | undefined;
1489
+ payload?: MessagePartShape | undefined;
1490
+ labelIds?: string[] | undefined;
1491
+ raw?: string | undefined;
1492
+ threadId?: string | undefined;
1493
+ snippet?: string | undefined;
1494
+ historyId?: string | undefined;
1495
+ internalDate?: string | number | Date | null | undefined;
1496
+ sizeEstimate?: number | undefined;
1497
+ }[] | undefined;
1498
+ }>;
1499
+ readonly threadsModify: z.ZodObject<{
1500
+ id: z.ZodOptional<z.ZodString>;
1501
+ snippet: z.ZodOptional<z.ZodString>;
1502
+ historyId: z.ZodOptional<z.ZodString>;
1503
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1504
+ id: z.ZodOptional<z.ZodString>;
1505
+ threadId: z.ZodOptional<z.ZodString>;
1506
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1507
+ snippet: z.ZodOptional<z.ZodString>;
1508
+ historyId: z.ZodOptional<z.ZodString>;
1509
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1510
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1511
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1512
+ raw: z.ZodOptional<z.ZodString>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ id?: string | undefined;
1515
+ payload?: MessagePartShape | undefined;
1516
+ labelIds?: string[] | undefined;
1517
+ raw?: string | undefined;
1518
+ threadId?: string | undefined;
1519
+ snippet?: string | undefined;
1520
+ historyId?: string | undefined;
1521
+ internalDate?: Date | null | undefined;
1522
+ sizeEstimate?: number | undefined;
1523
+ }, {
1524
+ id?: string | undefined;
1525
+ payload?: MessagePartShape | undefined;
1526
+ labelIds?: string[] | undefined;
1527
+ raw?: string | undefined;
1528
+ threadId?: string | undefined;
1529
+ snippet?: string | undefined;
1530
+ historyId?: string | undefined;
1531
+ internalDate?: string | number | Date | null | undefined;
1532
+ sizeEstimate?: number | undefined;
1533
+ }>, "many">>;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ id?: string | undefined;
1536
+ snippet?: string | undefined;
1537
+ historyId?: string | undefined;
1538
+ messages?: {
1539
+ id?: string | undefined;
1540
+ payload?: MessagePartShape | undefined;
1541
+ labelIds?: string[] | undefined;
1542
+ raw?: string | undefined;
1543
+ threadId?: string | undefined;
1544
+ snippet?: string | undefined;
1545
+ historyId?: string | undefined;
1546
+ internalDate?: Date | null | undefined;
1547
+ sizeEstimate?: number | undefined;
1548
+ }[] | undefined;
1549
+ }, {
1550
+ id?: string | undefined;
1551
+ snippet?: string | undefined;
1552
+ historyId?: string | undefined;
1553
+ messages?: {
1554
+ id?: string | undefined;
1555
+ payload?: MessagePartShape | undefined;
1556
+ labelIds?: string[] | undefined;
1557
+ raw?: string | undefined;
1558
+ threadId?: string | undefined;
1559
+ snippet?: string | undefined;
1560
+ historyId?: string | undefined;
1561
+ internalDate?: string | number | Date | null | undefined;
1562
+ sizeEstimate?: number | undefined;
1563
+ }[] | undefined;
1564
+ }>;
1565
+ readonly threadsDelete: z.ZodVoid;
1566
+ readonly threadsTrash: z.ZodObject<{
1567
+ id: z.ZodOptional<z.ZodString>;
1568
+ snippet: z.ZodOptional<z.ZodString>;
1569
+ historyId: z.ZodOptional<z.ZodString>;
1570
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1571
+ id: z.ZodOptional<z.ZodString>;
1572
+ threadId: z.ZodOptional<z.ZodString>;
1573
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1574
+ snippet: z.ZodOptional<z.ZodString>;
1575
+ historyId: z.ZodOptional<z.ZodString>;
1576
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1577
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1578
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1579
+ raw: z.ZodOptional<z.ZodString>;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ id?: string | undefined;
1582
+ payload?: MessagePartShape | undefined;
1583
+ labelIds?: string[] | undefined;
1584
+ raw?: string | undefined;
1585
+ threadId?: string | undefined;
1586
+ snippet?: string | undefined;
1587
+ historyId?: string | undefined;
1588
+ internalDate?: Date | null | undefined;
1589
+ sizeEstimate?: number | undefined;
1590
+ }, {
1591
+ id?: string | undefined;
1592
+ payload?: MessagePartShape | undefined;
1593
+ labelIds?: string[] | undefined;
1594
+ raw?: string | undefined;
1595
+ threadId?: string | undefined;
1596
+ snippet?: string | undefined;
1597
+ historyId?: string | undefined;
1598
+ internalDate?: string | number | Date | null | undefined;
1599
+ sizeEstimate?: number | undefined;
1600
+ }>, "many">>;
1601
+ }, "strip", z.ZodTypeAny, {
1602
+ id?: string | undefined;
1603
+ snippet?: string | undefined;
1604
+ historyId?: string | undefined;
1605
+ messages?: {
1606
+ id?: string | undefined;
1607
+ payload?: MessagePartShape | undefined;
1608
+ labelIds?: string[] | undefined;
1609
+ raw?: string | undefined;
1610
+ threadId?: string | undefined;
1611
+ snippet?: string | undefined;
1612
+ historyId?: string | undefined;
1613
+ internalDate?: Date | null | undefined;
1614
+ sizeEstimate?: number | undefined;
1615
+ }[] | undefined;
1616
+ }, {
1617
+ id?: string | undefined;
1618
+ snippet?: string | undefined;
1619
+ historyId?: string | undefined;
1620
+ messages?: {
1621
+ id?: string | undefined;
1622
+ payload?: MessagePartShape | undefined;
1623
+ labelIds?: string[] | undefined;
1624
+ raw?: string | undefined;
1625
+ threadId?: string | undefined;
1626
+ snippet?: string | undefined;
1627
+ historyId?: string | undefined;
1628
+ internalDate?: string | number | Date | null | undefined;
1629
+ sizeEstimate?: number | undefined;
1630
+ }[] | undefined;
1631
+ }>;
1632
+ readonly threadsUntrash: z.ZodObject<{
1633
+ id: z.ZodOptional<z.ZodString>;
1634
+ snippet: z.ZodOptional<z.ZodString>;
1635
+ historyId: z.ZodOptional<z.ZodString>;
1636
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1637
+ id: z.ZodOptional<z.ZodString>;
1638
+ threadId: z.ZodOptional<z.ZodString>;
1639
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1640
+ snippet: z.ZodOptional<z.ZodString>;
1641
+ historyId: z.ZodOptional<z.ZodString>;
1642
+ internalDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>, Date | null, string | number | Date>>>;
1643
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
1644
+ payload: z.ZodOptional<z.ZodType<MessagePartShape, z.ZodTypeDef, MessagePartShape>>;
1645
+ raw: z.ZodOptional<z.ZodString>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ id?: string | undefined;
1648
+ payload?: MessagePartShape | undefined;
1649
+ labelIds?: string[] | undefined;
1650
+ raw?: string | undefined;
1651
+ threadId?: string | undefined;
1652
+ snippet?: string | undefined;
1653
+ historyId?: string | undefined;
1654
+ internalDate?: Date | null | undefined;
1655
+ sizeEstimate?: number | undefined;
1656
+ }, {
1657
+ id?: string | undefined;
1658
+ payload?: MessagePartShape | undefined;
1659
+ labelIds?: string[] | undefined;
1660
+ raw?: string | undefined;
1661
+ threadId?: string | undefined;
1662
+ snippet?: string | undefined;
1663
+ historyId?: string | undefined;
1664
+ internalDate?: string | number | Date | null | undefined;
1665
+ sizeEstimate?: number | undefined;
1666
+ }>, "many">>;
1667
+ }, "strip", z.ZodTypeAny, {
1668
+ id?: string | undefined;
1669
+ snippet?: string | undefined;
1670
+ historyId?: string | undefined;
1671
+ messages?: {
1672
+ id?: string | undefined;
1673
+ payload?: MessagePartShape | undefined;
1674
+ labelIds?: string[] | undefined;
1675
+ raw?: string | undefined;
1676
+ threadId?: string | undefined;
1677
+ snippet?: string | undefined;
1678
+ historyId?: string | undefined;
1679
+ internalDate?: Date | null | undefined;
1680
+ sizeEstimate?: number | undefined;
1681
+ }[] | undefined;
1682
+ }, {
1683
+ id?: string | undefined;
1684
+ snippet?: string | undefined;
1685
+ historyId?: string | undefined;
1686
+ messages?: {
1687
+ id?: string | undefined;
1688
+ payload?: MessagePartShape | undefined;
1689
+ labelIds?: string[] | undefined;
1690
+ raw?: string | undefined;
1691
+ threadId?: string | undefined;
1692
+ snippet?: string | undefined;
1693
+ historyId?: string | undefined;
1694
+ internalDate?: string | number | Date | null | undefined;
1695
+ sizeEstimate?: number | undefined;
1696
+ }[] | undefined;
1697
+ }>;
1698
+ readonly usersGetProfile: z.ZodObject<{
1699
+ emailAddress: z.ZodOptional<z.ZodString>;
1700
+ messagesTotal: z.ZodOptional<z.ZodNumber>;
1701
+ threadsTotal: z.ZodOptional<z.ZodNumber>;
1702
+ historyId: z.ZodOptional<z.ZodString>;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ historyId?: string | undefined;
1705
+ messagesTotal?: number | undefined;
1706
+ threadsTotal?: number | undefined;
1707
+ emailAddress?: string | undefined;
1708
+ }, {
1709
+ historyId?: string | undefined;
1710
+ messagesTotal?: number | undefined;
1711
+ threadsTotal?: number | undefined;
1712
+ emailAddress?: string | undefined;
1713
+ }>;
1714
+ };
1715
+ export type GmailEndpointOutputs = {
1716
+ messagesList: MessageListResponse;
1717
+ messagesGet: Message;
1718
+ messagesSend: Message;
1719
+ messagesDelete: void;
1720
+ messagesModify: Message;
1721
+ messagesBatchModify: void;
1722
+ messagesTrash: Message;
1723
+ messagesUntrash: Message;
1724
+ labelsList: LabelListResponse;
1725
+ labelsGet: Label;
1726
+ labelsCreate: Label;
1727
+ labelsUpdate: Label;
1728
+ labelsDelete: void;
1729
+ draftsList: DraftListResponse;
1730
+ draftsGet: Draft;
1731
+ draftsCreate: Draft;
1732
+ draftsUpdate: Draft;
1733
+ draftsDelete: void;
1734
+ draftsSend: Message;
1735
+ threadsList: ThreadListResponse;
1736
+ threadsGet: Thread;
1737
+ threadsModify: Thread;
1738
+ threadsDelete: void;
1739
+ threadsTrash: Thread;
1740
+ threadsUntrash: Thread;
1741
+ usersGetProfile: Profile;
1742
+ };
1743
+ export {};
1744
+ //# sourceMappingURL=types.d.ts.map