@fluxmail/core 0.19.0 → 0.19.1

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.
Files changed (49) hide show
  1. package/dist/attachments.d.ts +9 -0
  2. package/dist/attachments.d.ts.map +1 -0
  3. package/dist/attachments.js +27 -0
  4. package/dist/attachments.js.map +1 -0
  5. package/dist/errors.d.ts +5 -0
  6. package/dist/errors.d.ts.map +1 -1
  7. package/dist/errors.js +16 -0
  8. package/dist/errors.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/mcp/clients.d.ts +16 -0
  14. package/dist/mcp/clients.d.ts.map +1 -0
  15. package/dist/mcp/clients.js +69 -0
  16. package/dist/mcp/clients.js.map +1 -0
  17. package/dist/mcp/index.d.ts +2 -0
  18. package/dist/mcp/index.d.ts.map +1 -1
  19. package/dist/mcp/index.js +2 -0
  20. package/dist/mcp/index.js.map +1 -1
  21. package/dist/mcp/pdf.d.ts +18 -0
  22. package/dist/mcp/pdf.d.ts.map +1 -0
  23. package/dist/mcp/pdf.js +97 -0
  24. package/dist/mcp/pdf.js.map +1 -0
  25. package/dist/mcp/results.d.ts +114 -0
  26. package/dist/mcp/results.d.ts.map +1 -0
  27. package/dist/mcp/results.js +165 -0
  28. package/dist/mcp/results.js.map +1 -0
  29. package/dist/mcp/tools.d.ts +7 -0
  30. package/dist/mcp/tools.d.ts.map +1 -1
  31. package/dist/mcp/tools.generated.d.ts +1 -0
  32. package/dist/mcp/tools.generated.d.ts.map +1 -1
  33. package/dist/mcp/tools.generated.js +1852 -0
  34. package/dist/mcp/tools.generated.js.map +1 -1
  35. package/dist/mcp/tools.js +2 -1
  36. package/dist/mcp/tools.js.map +1 -1
  37. package/dist/reply.d.ts +11 -1
  38. package/dist/reply.d.ts.map +1 -1
  39. package/dist/reply.js +43 -0
  40. package/dist/reply.js.map +1 -1
  41. package/dist/search.d.ts +8 -1
  42. package/dist/search.d.ts.map +1 -1
  43. package/dist/search.js +36 -0
  44. package/dist/search.js.map +1 -1
  45. package/dist/searchCursor.d.ts +35 -0
  46. package/dist/searchCursor.d.ts.map +1 -0
  47. package/dist/searchCursor.js +113 -0
  48. package/dist/searchCursor.js.map +1 -0
  49. package/package.json +9 -1
@@ -2000,4 +2000,1856 @@ export const SHARED_TOOL_INPUT_SCHEMAS = {
2000
2000
  $schema: 'http://json-schema.org/draft-07/schema#',
2001
2001
  },
2002
2002
  };
2003
+ export const SHARED_TOOL_OUTPUT_SCHEMAS = {
2004
+ send_feedback: {
2005
+ type: 'object',
2006
+ properties: {
2007
+ data: {
2008
+ type: 'object',
2009
+ properties: {
2010
+ feedbackId: {
2011
+ type: 'string',
2012
+ minLength: 1,
2013
+ maxLength: 512,
2014
+ },
2015
+ message: {
2016
+ type: 'string',
2017
+ minLength: 1,
2018
+ pattern: '^(?!\\s*$)[^\\0]+$',
2019
+ maxLength: 4000,
2020
+ description: 'The feedback text approved by the user.',
2021
+ },
2022
+ category: {
2023
+ type: 'string',
2024
+ enum: ['bug', 'feature', 'other'],
2025
+ },
2026
+ product: {
2027
+ type: 'string',
2028
+ enum: ['cloud', 'self_hosted'],
2029
+ },
2030
+ version: {
2031
+ type: 'string',
2032
+ maxLength: 64,
2033
+ pattern: '^[A-Za-z0-9][A-Za-z0-9.+_-]*$',
2034
+ },
2035
+ contactEmail: {
2036
+ type: 'string',
2037
+ maxLength: 320,
2038
+ format: 'email',
2039
+ pattern: '^[^\\s\\x00-\\x1f\\x7f]+$',
2040
+ description: 'Optional reply address confirmed by the user. Never choose a connected mailbox address automatically.',
2041
+ },
2042
+ requestId: {
2043
+ type: 'string',
2044
+ format: 'uuid',
2045
+ description: 'The related failed request ID, when available. Do not invent one.',
2046
+ },
2047
+ toolName: {
2048
+ type: 'string',
2049
+ pattern: '^[a-z_]{1,64}$',
2050
+ description: 'The tool involved in the reported problem.',
2051
+ },
2052
+ errorCode: {
2053
+ type: 'string',
2054
+ pattern: '^[a-z_]{1,64}$',
2055
+ description: 'The safe error code returned by that tool, without its error message.',
2056
+ },
2057
+ expectedBehavior: {
2058
+ type: 'string',
2059
+ minLength: 1,
2060
+ pattern: '^(?!\\s*$)[^\\0]+$',
2061
+ maxLength: 1000,
2062
+ description: 'What the user expected. Exclude mail contents and credentials.',
2063
+ },
2064
+ actualBehavior: {
2065
+ type: 'string',
2066
+ minLength: 1,
2067
+ pattern: '^(?!\\s*$)[^\\0]+$',
2068
+ maxLength: 1000,
2069
+ description: 'What happened instead. Exclude mail contents and credentials.',
2070
+ },
2071
+ },
2072
+ required: ['feedbackId', 'message', 'category', 'product'],
2073
+ additionalProperties: false,
2074
+ },
2075
+ },
2076
+ required: ['data'],
2077
+ additionalProperties: false,
2078
+ },
2079
+ list_accounts: {
2080
+ type: 'object',
2081
+ properties: {
2082
+ data: {
2083
+ type: 'array',
2084
+ items: {
2085
+ type: 'object',
2086
+ properties: {
2087
+ id: {
2088
+ type: 'string',
2089
+ },
2090
+ provider: {
2091
+ type: 'string',
2092
+ },
2093
+ email: {
2094
+ type: 'string',
2095
+ },
2096
+ status: {
2097
+ type: 'string',
2098
+ },
2099
+ },
2100
+ required: ['id', 'provider', 'email', 'status'],
2101
+ additionalProperties: true,
2102
+ },
2103
+ },
2104
+ },
2105
+ required: ['data'],
2106
+ additionalProperties: false,
2107
+ },
2108
+ list_folders: {
2109
+ type: 'object',
2110
+ properties: {
2111
+ data: {
2112
+ type: 'array',
2113
+ items: {
2114
+ type: 'object',
2115
+ properties: {
2116
+ id: {
2117
+ type: 'string',
2118
+ },
2119
+ name: {
2120
+ type: 'string',
2121
+ },
2122
+ },
2123
+ required: ['id', 'name'],
2124
+ additionalProperties: true,
2125
+ },
2126
+ },
2127
+ },
2128
+ required: ['data'],
2129
+ additionalProperties: false,
2130
+ },
2131
+ list_labels: {
2132
+ type: 'object',
2133
+ properties: {
2134
+ data: {
2135
+ type: 'array',
2136
+ items: {
2137
+ type: 'object',
2138
+ properties: {
2139
+ id: {
2140
+ type: 'string',
2141
+ },
2142
+ name: {
2143
+ type: 'string',
2144
+ },
2145
+ },
2146
+ required: ['id', 'name'],
2147
+ additionalProperties: true,
2148
+ },
2149
+ },
2150
+ },
2151
+ required: ['data'],
2152
+ additionalProperties: false,
2153
+ },
2154
+ list_send_as: {
2155
+ type: 'object',
2156
+ properties: {
2157
+ data: {
2158
+ type: 'array',
2159
+ items: {
2160
+ type: 'object',
2161
+ properties: {
2162
+ email: {
2163
+ type: 'string',
2164
+ },
2165
+ isPrimary: {
2166
+ type: 'boolean',
2167
+ },
2168
+ source: {
2169
+ type: 'string',
2170
+ },
2171
+ },
2172
+ required: ['email', 'isPrimary', 'source'],
2173
+ additionalProperties: true,
2174
+ },
2175
+ },
2176
+ },
2177
+ required: ['data'],
2178
+ additionalProperties: false,
2179
+ },
2180
+ list_emails: {
2181
+ type: 'object',
2182
+ properties: {
2183
+ data: {
2184
+ type: 'object',
2185
+ properties: {
2186
+ items: {
2187
+ type: 'array',
2188
+ items: {
2189
+ type: 'object',
2190
+ properties: {
2191
+ id: {
2192
+ type: 'string',
2193
+ },
2194
+ threadId: {
2195
+ type: 'string',
2196
+ },
2197
+ accountId: {
2198
+ type: 'string',
2199
+ },
2200
+ to: {
2201
+ type: 'array',
2202
+ items: {
2203
+ type: 'object',
2204
+ properties: {
2205
+ email: {
2206
+ type: 'string',
2207
+ },
2208
+ name: {
2209
+ type: 'string',
2210
+ },
2211
+ },
2212
+ required: ['email'],
2213
+ additionalProperties: true,
2214
+ },
2215
+ },
2216
+ subject: {
2217
+ type: 'string',
2218
+ },
2219
+ date: {
2220
+ type: 'string',
2221
+ },
2222
+ flags: {
2223
+ type: 'object',
2224
+ properties: {
2225
+ read: {
2226
+ type: 'boolean',
2227
+ },
2228
+ starred: {
2229
+ type: 'boolean',
2230
+ },
2231
+ draft: {
2232
+ type: 'boolean',
2233
+ },
2234
+ },
2235
+ required: ['read', 'starred', 'draft'],
2236
+ additionalProperties: true,
2237
+ },
2238
+ body: {
2239
+ type: 'object',
2240
+ properties: {
2241
+ text: {
2242
+ type: 'string',
2243
+ },
2244
+ html: {
2245
+ type: 'string',
2246
+ },
2247
+ },
2248
+ additionalProperties: false,
2249
+ },
2250
+ bodyTruncation: {
2251
+ type: 'object',
2252
+ additionalProperties: {
2253
+ type: 'object',
2254
+ properties: {
2255
+ totalChars: {
2256
+ type: 'number',
2257
+ },
2258
+ nextOffset: {
2259
+ type: 'number',
2260
+ },
2261
+ },
2262
+ required: ['totalChars'],
2263
+ additionalProperties: false,
2264
+ },
2265
+ },
2266
+ attachments: {
2267
+ type: 'array',
2268
+ items: {
2269
+ type: 'object',
2270
+ properties: {
2271
+ id: {
2272
+ type: 'string',
2273
+ },
2274
+ filename: {
2275
+ type: 'string',
2276
+ },
2277
+ mimeType: {
2278
+ type: 'string',
2279
+ },
2280
+ sizeBytes: {
2281
+ type: 'number',
2282
+ },
2283
+ },
2284
+ required: ['id', 'filename', 'mimeType', 'sizeBytes'],
2285
+ additionalProperties: true,
2286
+ },
2287
+ },
2288
+ },
2289
+ required: ['id', 'threadId', 'accountId', 'to', 'subject', 'date', 'flags'],
2290
+ additionalProperties: true,
2291
+ },
2292
+ },
2293
+ exhausted: {
2294
+ type: 'boolean',
2295
+ },
2296
+ nextPageToken: {
2297
+ type: 'string',
2298
+ },
2299
+ },
2300
+ required: ['items', 'exhausted'],
2301
+ additionalProperties: true,
2302
+ },
2303
+ },
2304
+ required: ['data'],
2305
+ additionalProperties: false,
2306
+ },
2307
+ search_emails: {
2308
+ type: 'object',
2309
+ properties: {
2310
+ data: {
2311
+ type: 'object',
2312
+ properties: {
2313
+ items: {
2314
+ type: 'array',
2315
+ items: {
2316
+ type: 'object',
2317
+ properties: {
2318
+ id: {
2319
+ type: 'string',
2320
+ },
2321
+ threadId: {
2322
+ type: 'string',
2323
+ },
2324
+ accountId: {
2325
+ type: 'string',
2326
+ },
2327
+ to: {
2328
+ type: 'array',
2329
+ items: {
2330
+ type: 'object',
2331
+ properties: {
2332
+ email: {
2333
+ type: 'string',
2334
+ },
2335
+ name: {
2336
+ type: 'string',
2337
+ },
2338
+ },
2339
+ required: ['email'],
2340
+ additionalProperties: true,
2341
+ },
2342
+ },
2343
+ subject: {
2344
+ type: 'string',
2345
+ },
2346
+ date: {
2347
+ type: 'string',
2348
+ },
2349
+ flags: {
2350
+ type: 'object',
2351
+ properties: {
2352
+ read: {
2353
+ type: 'boolean',
2354
+ },
2355
+ starred: {
2356
+ type: 'boolean',
2357
+ },
2358
+ draft: {
2359
+ type: 'boolean',
2360
+ },
2361
+ },
2362
+ required: ['read', 'starred', 'draft'],
2363
+ additionalProperties: true,
2364
+ },
2365
+ body: {
2366
+ type: 'object',
2367
+ properties: {
2368
+ text: {
2369
+ type: 'string',
2370
+ },
2371
+ html: {
2372
+ type: 'string',
2373
+ },
2374
+ },
2375
+ additionalProperties: false,
2376
+ },
2377
+ bodyTruncation: {
2378
+ type: 'object',
2379
+ additionalProperties: {
2380
+ type: 'object',
2381
+ properties: {
2382
+ totalChars: {
2383
+ type: 'number',
2384
+ },
2385
+ nextOffset: {
2386
+ type: 'number',
2387
+ },
2388
+ },
2389
+ required: ['totalChars'],
2390
+ additionalProperties: false,
2391
+ },
2392
+ },
2393
+ attachments: {
2394
+ type: 'array',
2395
+ items: {
2396
+ type: 'object',
2397
+ properties: {
2398
+ id: {
2399
+ type: 'string',
2400
+ },
2401
+ filename: {
2402
+ type: 'string',
2403
+ },
2404
+ mimeType: {
2405
+ type: 'string',
2406
+ },
2407
+ sizeBytes: {
2408
+ type: 'number',
2409
+ },
2410
+ },
2411
+ required: ['id', 'filename', 'mimeType', 'sizeBytes'],
2412
+ additionalProperties: true,
2413
+ },
2414
+ },
2415
+ },
2416
+ required: ['id', 'threadId', 'accountId', 'to', 'subject', 'date', 'flags'],
2417
+ additionalProperties: true,
2418
+ },
2419
+ },
2420
+ exhausted: {
2421
+ type: 'boolean',
2422
+ },
2423
+ nextPageToken: {
2424
+ type: 'string',
2425
+ },
2426
+ },
2427
+ required: ['items', 'exhausted'],
2428
+ additionalProperties: true,
2429
+ },
2430
+ },
2431
+ required: ['data'],
2432
+ additionalProperties: false,
2433
+ },
2434
+ search_emails_batch: {
2435
+ type: 'object',
2436
+ properties: {
2437
+ data: {
2438
+ type: 'object',
2439
+ properties: {
2440
+ groups: {
2441
+ type: 'array',
2442
+ items: {
2443
+ type: 'object',
2444
+ properties: {
2445
+ accountId: {
2446
+ type: 'string',
2447
+ },
2448
+ },
2449
+ required: ['accountId'],
2450
+ additionalProperties: true,
2451
+ },
2452
+ },
2453
+ exhausted: {
2454
+ type: 'boolean',
2455
+ },
2456
+ },
2457
+ required: ['groups', 'exhausted'],
2458
+ additionalProperties: true,
2459
+ },
2460
+ },
2461
+ required: ['data'],
2462
+ additionalProperties: false,
2463
+ },
2464
+ get_email: {
2465
+ type: 'object',
2466
+ properties: {
2467
+ data: {
2468
+ type: 'object',
2469
+ properties: {
2470
+ id: {
2471
+ type: 'string',
2472
+ },
2473
+ threadId: {
2474
+ type: 'string',
2475
+ },
2476
+ accountId: {
2477
+ type: 'string',
2478
+ },
2479
+ to: {
2480
+ type: 'array',
2481
+ items: {
2482
+ type: 'object',
2483
+ properties: {
2484
+ email: {
2485
+ type: 'string',
2486
+ },
2487
+ name: {
2488
+ type: 'string',
2489
+ },
2490
+ },
2491
+ required: ['email'],
2492
+ additionalProperties: true,
2493
+ },
2494
+ },
2495
+ subject: {
2496
+ type: 'string',
2497
+ },
2498
+ date: {
2499
+ type: 'string',
2500
+ },
2501
+ flags: {
2502
+ type: 'object',
2503
+ properties: {
2504
+ read: {
2505
+ type: 'boolean',
2506
+ },
2507
+ starred: {
2508
+ type: 'boolean',
2509
+ },
2510
+ draft: {
2511
+ type: 'boolean',
2512
+ },
2513
+ },
2514
+ required: ['read', 'starred', 'draft'],
2515
+ additionalProperties: true,
2516
+ },
2517
+ body: {
2518
+ type: 'object',
2519
+ properties: {
2520
+ text: {
2521
+ type: 'string',
2522
+ },
2523
+ html: {
2524
+ type: 'string',
2525
+ },
2526
+ },
2527
+ additionalProperties: false,
2528
+ },
2529
+ bodyTruncation: {
2530
+ type: 'object',
2531
+ additionalProperties: {
2532
+ type: 'object',
2533
+ properties: {
2534
+ totalChars: {
2535
+ type: 'number',
2536
+ },
2537
+ nextOffset: {
2538
+ type: 'number',
2539
+ },
2540
+ },
2541
+ required: ['totalChars'],
2542
+ additionalProperties: false,
2543
+ },
2544
+ },
2545
+ attachments: {
2546
+ type: 'array',
2547
+ items: {
2548
+ type: 'object',
2549
+ properties: {
2550
+ id: {
2551
+ type: 'string',
2552
+ },
2553
+ filename: {
2554
+ type: 'string',
2555
+ },
2556
+ mimeType: {
2557
+ type: 'string',
2558
+ },
2559
+ sizeBytes: {
2560
+ type: 'number',
2561
+ },
2562
+ },
2563
+ required: ['id', 'filename', 'mimeType', 'sizeBytes'],
2564
+ additionalProperties: true,
2565
+ },
2566
+ },
2567
+ headers: {
2568
+ type: 'object',
2569
+ additionalProperties: {
2570
+ type: 'string',
2571
+ },
2572
+ },
2573
+ },
2574
+ required: ['id', 'threadId', 'accountId', 'to', 'subject', 'date', 'flags'],
2575
+ additionalProperties: true,
2576
+ },
2577
+ },
2578
+ required: ['data'],
2579
+ additionalProperties: false,
2580
+ },
2581
+ get_email_body: {
2582
+ type: 'object',
2583
+ properties: {
2584
+ data: {
2585
+ type: 'object',
2586
+ properties: {
2587
+ format: {
2588
+ type: 'string',
2589
+ },
2590
+ text: {
2591
+ type: 'string',
2592
+ },
2593
+ offset: {
2594
+ type: 'number',
2595
+ },
2596
+ totalChars: {
2597
+ type: 'number',
2598
+ },
2599
+ nextOffset: {
2600
+ type: 'number',
2601
+ },
2602
+ },
2603
+ required: ['format', 'text', 'offset', 'totalChars'],
2604
+ additionalProperties: false,
2605
+ },
2606
+ },
2607
+ required: ['data'],
2608
+ additionalProperties: false,
2609
+ },
2610
+ get_thread: {
2611
+ type: 'object',
2612
+ properties: {
2613
+ data: {
2614
+ type: 'object',
2615
+ properties: {
2616
+ id: {
2617
+ type: 'string',
2618
+ },
2619
+ subject: {
2620
+ type: 'string',
2621
+ },
2622
+ messages: {
2623
+ type: 'array',
2624
+ items: {
2625
+ type: 'object',
2626
+ properties: {
2627
+ id: {
2628
+ type: 'string',
2629
+ },
2630
+ threadId: {
2631
+ type: 'string',
2632
+ },
2633
+ accountId: {
2634
+ type: 'string',
2635
+ },
2636
+ to: {
2637
+ type: 'array',
2638
+ items: {
2639
+ type: 'object',
2640
+ properties: {
2641
+ email: {
2642
+ type: 'string',
2643
+ },
2644
+ name: {
2645
+ type: 'string',
2646
+ },
2647
+ },
2648
+ required: ['email'],
2649
+ additionalProperties: true,
2650
+ },
2651
+ },
2652
+ subject: {
2653
+ type: 'string',
2654
+ },
2655
+ date: {
2656
+ type: 'string',
2657
+ },
2658
+ flags: {
2659
+ type: 'object',
2660
+ properties: {
2661
+ read: {
2662
+ type: 'boolean',
2663
+ },
2664
+ starred: {
2665
+ type: 'boolean',
2666
+ },
2667
+ draft: {
2668
+ type: 'boolean',
2669
+ },
2670
+ },
2671
+ required: ['read', 'starred', 'draft'],
2672
+ additionalProperties: true,
2673
+ },
2674
+ body: {
2675
+ type: 'object',
2676
+ properties: {
2677
+ text: {
2678
+ type: 'string',
2679
+ },
2680
+ html: {
2681
+ type: 'string',
2682
+ },
2683
+ },
2684
+ additionalProperties: false,
2685
+ },
2686
+ bodyTruncation: {
2687
+ type: 'object',
2688
+ additionalProperties: {
2689
+ type: 'object',
2690
+ properties: {
2691
+ totalChars: {
2692
+ type: 'number',
2693
+ },
2694
+ nextOffset: {
2695
+ type: 'number',
2696
+ },
2697
+ },
2698
+ required: ['totalChars'],
2699
+ additionalProperties: false,
2700
+ },
2701
+ },
2702
+ attachments: {
2703
+ type: 'array',
2704
+ items: {
2705
+ type: 'object',
2706
+ properties: {
2707
+ id: {
2708
+ type: 'string',
2709
+ },
2710
+ filename: {
2711
+ type: 'string',
2712
+ },
2713
+ mimeType: {
2714
+ type: 'string',
2715
+ },
2716
+ sizeBytes: {
2717
+ type: 'number',
2718
+ },
2719
+ },
2720
+ required: ['id', 'filename', 'mimeType', 'sizeBytes'],
2721
+ additionalProperties: true,
2722
+ },
2723
+ },
2724
+ },
2725
+ required: ['id', 'threadId', 'accountId', 'to', 'subject', 'date', 'flags'],
2726
+ additionalProperties: true,
2727
+ },
2728
+ },
2729
+ nextPageToken: {
2730
+ type: 'string',
2731
+ },
2732
+ },
2733
+ required: ['id', 'subject', 'messages'],
2734
+ additionalProperties: false,
2735
+ },
2736
+ },
2737
+ required: ['data'],
2738
+ additionalProperties: false,
2739
+ },
2740
+ get_draft: {
2741
+ type: 'object',
2742
+ properties: {
2743
+ data: {
2744
+ type: 'object',
2745
+ properties: {
2746
+ id: {
2747
+ type: 'string',
2748
+ },
2749
+ threadId: {
2750
+ type: 'string',
2751
+ },
2752
+ accountId: {
2753
+ type: 'string',
2754
+ },
2755
+ to: {
2756
+ type: 'array',
2757
+ items: {
2758
+ type: 'object',
2759
+ properties: {
2760
+ email: {
2761
+ type: 'string',
2762
+ },
2763
+ name: {
2764
+ type: 'string',
2765
+ },
2766
+ },
2767
+ required: ['email'],
2768
+ additionalProperties: true,
2769
+ },
2770
+ },
2771
+ subject: {
2772
+ type: 'string',
2773
+ },
2774
+ date: {
2775
+ type: 'string',
2776
+ },
2777
+ flags: {
2778
+ type: 'object',
2779
+ properties: {
2780
+ read: {
2781
+ type: 'boolean',
2782
+ },
2783
+ starred: {
2784
+ type: 'boolean',
2785
+ },
2786
+ draft: {
2787
+ type: 'boolean',
2788
+ },
2789
+ },
2790
+ required: ['read', 'starred', 'draft'],
2791
+ additionalProperties: true,
2792
+ },
2793
+ body: {
2794
+ type: 'object',
2795
+ properties: {
2796
+ text: {
2797
+ type: 'string',
2798
+ },
2799
+ html: {
2800
+ type: 'string',
2801
+ },
2802
+ },
2803
+ additionalProperties: false,
2804
+ },
2805
+ bodyTruncation: {
2806
+ type: 'object',
2807
+ additionalProperties: {
2808
+ type: 'object',
2809
+ properties: {
2810
+ totalChars: {
2811
+ type: 'number',
2812
+ },
2813
+ nextOffset: {
2814
+ type: 'number',
2815
+ },
2816
+ },
2817
+ required: ['totalChars'],
2818
+ additionalProperties: false,
2819
+ },
2820
+ },
2821
+ attachments: {
2822
+ type: 'array',
2823
+ items: {
2824
+ type: 'object',
2825
+ properties: {
2826
+ id: {
2827
+ type: 'string',
2828
+ },
2829
+ filename: {
2830
+ type: 'string',
2831
+ },
2832
+ mimeType: {
2833
+ type: 'string',
2834
+ },
2835
+ sizeBytes: {
2836
+ type: 'number',
2837
+ },
2838
+ },
2839
+ required: ['id', 'filename', 'mimeType', 'sizeBytes'],
2840
+ additionalProperties: true,
2841
+ },
2842
+ },
2843
+ },
2844
+ required: ['id', 'threadId', 'accountId', 'to', 'subject', 'date', 'flags'],
2845
+ additionalProperties: true,
2846
+ },
2847
+ },
2848
+ required: ['data'],
2849
+ additionalProperties: false,
2850
+ },
2851
+ create_draft: {
2852
+ type: 'object',
2853
+ properties: {
2854
+ data: {
2855
+ type: 'object',
2856
+ properties: {
2857
+ id: {
2858
+ type: 'string',
2859
+ },
2860
+ threadId: {
2861
+ type: 'string',
2862
+ },
2863
+ accountId: {
2864
+ type: 'string',
2865
+ },
2866
+ to: {
2867
+ type: 'array',
2868
+ items: {
2869
+ type: 'object',
2870
+ properties: {
2871
+ email: {
2872
+ type: 'string',
2873
+ },
2874
+ name: {
2875
+ type: 'string',
2876
+ },
2877
+ },
2878
+ required: ['email'],
2879
+ additionalProperties: true,
2880
+ },
2881
+ },
2882
+ subject: {
2883
+ type: 'string',
2884
+ },
2885
+ date: {
2886
+ type: 'string',
2887
+ },
2888
+ flags: {
2889
+ type: 'object',
2890
+ properties: {
2891
+ read: {
2892
+ type: 'boolean',
2893
+ },
2894
+ starred: {
2895
+ type: 'boolean',
2896
+ },
2897
+ draft: {
2898
+ type: 'boolean',
2899
+ },
2900
+ },
2901
+ required: ['read', 'starred', 'draft'],
2902
+ additionalProperties: true,
2903
+ },
2904
+ body: {
2905
+ type: 'object',
2906
+ properties: {
2907
+ text: {
2908
+ type: 'string',
2909
+ },
2910
+ html: {
2911
+ type: 'string',
2912
+ },
2913
+ },
2914
+ additionalProperties: false,
2915
+ },
2916
+ bodyTruncation: {
2917
+ type: 'object',
2918
+ additionalProperties: {
2919
+ type: 'object',
2920
+ properties: {
2921
+ totalChars: {
2922
+ type: 'number',
2923
+ },
2924
+ nextOffset: {
2925
+ type: 'number',
2926
+ },
2927
+ },
2928
+ required: ['totalChars'],
2929
+ additionalProperties: false,
2930
+ },
2931
+ },
2932
+ attachments: {
2933
+ type: 'array',
2934
+ items: {
2935
+ type: 'object',
2936
+ properties: {
2937
+ id: {
2938
+ type: 'string',
2939
+ },
2940
+ filename: {
2941
+ type: 'string',
2942
+ },
2943
+ mimeType: {
2944
+ type: 'string',
2945
+ },
2946
+ sizeBytes: {
2947
+ type: 'number',
2948
+ },
2949
+ },
2950
+ required: ['id', 'filename', 'mimeType', 'sizeBytes'],
2951
+ additionalProperties: true,
2952
+ },
2953
+ },
2954
+ },
2955
+ required: ['id', 'threadId', 'accountId', 'to', 'subject', 'date', 'flags'],
2956
+ additionalProperties: true,
2957
+ },
2958
+ },
2959
+ required: ['data'],
2960
+ additionalProperties: false,
2961
+ },
2962
+ update_draft: {
2963
+ type: 'object',
2964
+ properties: {
2965
+ data: {
2966
+ type: 'object',
2967
+ properties: {
2968
+ id: {
2969
+ type: 'string',
2970
+ },
2971
+ threadId: {
2972
+ type: 'string',
2973
+ },
2974
+ accountId: {
2975
+ type: 'string',
2976
+ },
2977
+ to: {
2978
+ type: 'array',
2979
+ items: {
2980
+ type: 'object',
2981
+ properties: {
2982
+ email: {
2983
+ type: 'string',
2984
+ },
2985
+ name: {
2986
+ type: 'string',
2987
+ },
2988
+ },
2989
+ required: ['email'],
2990
+ additionalProperties: true,
2991
+ },
2992
+ },
2993
+ subject: {
2994
+ type: 'string',
2995
+ },
2996
+ date: {
2997
+ type: 'string',
2998
+ },
2999
+ flags: {
3000
+ type: 'object',
3001
+ properties: {
3002
+ read: {
3003
+ type: 'boolean',
3004
+ },
3005
+ starred: {
3006
+ type: 'boolean',
3007
+ },
3008
+ draft: {
3009
+ type: 'boolean',
3010
+ },
3011
+ },
3012
+ required: ['read', 'starred', 'draft'],
3013
+ additionalProperties: true,
3014
+ },
3015
+ body: {
3016
+ type: 'object',
3017
+ properties: {
3018
+ text: {
3019
+ type: 'string',
3020
+ },
3021
+ html: {
3022
+ type: 'string',
3023
+ },
3024
+ },
3025
+ additionalProperties: false,
3026
+ },
3027
+ bodyTruncation: {
3028
+ type: 'object',
3029
+ additionalProperties: {
3030
+ type: 'object',
3031
+ properties: {
3032
+ totalChars: {
3033
+ type: 'number',
3034
+ },
3035
+ nextOffset: {
3036
+ type: 'number',
3037
+ },
3038
+ },
3039
+ required: ['totalChars'],
3040
+ additionalProperties: false,
3041
+ },
3042
+ },
3043
+ attachments: {
3044
+ type: 'array',
3045
+ items: {
3046
+ type: 'object',
3047
+ properties: {
3048
+ id: {
3049
+ type: 'string',
3050
+ },
3051
+ filename: {
3052
+ type: 'string',
3053
+ },
3054
+ mimeType: {
3055
+ type: 'string',
3056
+ },
3057
+ sizeBytes: {
3058
+ type: 'number',
3059
+ },
3060
+ },
3061
+ required: ['id', 'filename', 'mimeType', 'sizeBytes'],
3062
+ additionalProperties: true,
3063
+ },
3064
+ },
3065
+ },
3066
+ required: ['id', 'threadId', 'accountId', 'to', 'subject', 'date', 'flags'],
3067
+ additionalProperties: true,
3068
+ },
3069
+ },
3070
+ required: ['data'],
3071
+ additionalProperties: false,
3072
+ },
3073
+ delete_draft: {
3074
+ type: 'object',
3075
+ properties: {
3076
+ data: {
3077
+ type: 'object',
3078
+ properties: {
3079
+ deleted: {
3080
+ type: 'string',
3081
+ },
3082
+ },
3083
+ required: ['deleted'],
3084
+ additionalProperties: false,
3085
+ },
3086
+ },
3087
+ required: ['data'],
3088
+ additionalProperties: false,
3089
+ },
3090
+ preview_send: {
3091
+ type: 'object',
3092
+ properties: {
3093
+ data: {
3094
+ type: 'object',
3095
+ properties: {
3096
+ accountId: {
3097
+ type: 'string',
3098
+ },
3099
+ from: {
3100
+ type: 'string',
3101
+ },
3102
+ to: {
3103
+ type: 'array',
3104
+ items: {
3105
+ type: 'object',
3106
+ properties: {
3107
+ email: {
3108
+ type: 'string',
3109
+ },
3110
+ name: {
3111
+ type: 'string',
3112
+ },
3113
+ },
3114
+ required: ['email'],
3115
+ additionalProperties: true,
3116
+ },
3117
+ },
3118
+ cc: {
3119
+ type: 'array',
3120
+ items: {
3121
+ type: 'object',
3122
+ properties: {
3123
+ email: {
3124
+ type: 'string',
3125
+ },
3126
+ name: {
3127
+ type: 'string',
3128
+ },
3129
+ },
3130
+ required: ['email'],
3131
+ additionalProperties: true,
3132
+ },
3133
+ },
3134
+ bcc: {
3135
+ type: 'array',
3136
+ items: {
3137
+ type: 'object',
3138
+ properties: {
3139
+ email: {
3140
+ type: 'string',
3141
+ },
3142
+ name: {
3143
+ type: 'string',
3144
+ },
3145
+ },
3146
+ required: ['email'],
3147
+ additionalProperties: true,
3148
+ },
3149
+ },
3150
+ subject: {
3151
+ type: 'string',
3152
+ },
3153
+ attachments: {
3154
+ type: 'array',
3155
+ items: {
3156
+ type: 'object',
3157
+ properties: {
3158
+ filename: {
3159
+ type: 'string',
3160
+ },
3161
+ mimeType: {
3162
+ type: 'string',
3163
+ },
3164
+ sizeBytes: {
3165
+ type: 'number',
3166
+ },
3167
+ },
3168
+ required: ['filename', 'mimeType', 'sizeBytes'],
3169
+ additionalProperties: false,
3170
+ },
3171
+ },
3172
+ bodyTextChars: {
3173
+ type: 'number',
3174
+ },
3175
+ bodyHtmlChars: {
3176
+ type: 'number',
3177
+ },
3178
+ },
3179
+ required: ['accountId', 'from', 'to', 'cc', 'bcc', 'subject', 'attachments', 'bodyTextChars', 'bodyHtmlChars'],
3180
+ additionalProperties: false,
3181
+ },
3182
+ },
3183
+ required: ['data'],
3184
+ additionalProperties: false,
3185
+ },
3186
+ send_email: {
3187
+ type: 'object',
3188
+ properties: {
3189
+ data: {
3190
+ type: 'object',
3191
+ properties: {
3192
+ operationId: {
3193
+ type: 'string',
3194
+ },
3195
+ accountId: {
3196
+ type: 'string',
3197
+ },
3198
+ kind: {
3199
+ type: 'string',
3200
+ },
3201
+ status: {
3202
+ type: 'string',
3203
+ },
3204
+ result: {
3205
+ type: 'object',
3206
+ properties: {
3207
+ id: {
3208
+ type: 'string',
3209
+ },
3210
+ threadId: {
3211
+ type: 'string',
3212
+ },
3213
+ },
3214
+ required: ['id', 'threadId'],
3215
+ additionalProperties: true,
3216
+ },
3217
+ error: {
3218
+ type: 'object',
3219
+ properties: {
3220
+ code: {
3221
+ type: 'string',
3222
+ },
3223
+ },
3224
+ required: ['code'],
3225
+ additionalProperties: false,
3226
+ },
3227
+ },
3228
+ additionalProperties: true,
3229
+ required: ['operationId', 'accountId', 'kind', 'status'],
3230
+ },
3231
+ },
3232
+ required: ['data'],
3233
+ additionalProperties: false,
3234
+ },
3235
+ get_delivery_operation: {
3236
+ type: 'object',
3237
+ properties: {
3238
+ data: {
3239
+ type: 'object',
3240
+ properties: {
3241
+ operationId: {
3242
+ type: 'string',
3243
+ },
3244
+ accountId: {
3245
+ type: 'string',
3246
+ },
3247
+ kind: {
3248
+ type: 'string',
3249
+ },
3250
+ status: {
3251
+ type: 'string',
3252
+ },
3253
+ result: {
3254
+ type: 'object',
3255
+ properties: {
3256
+ id: {
3257
+ type: 'string',
3258
+ },
3259
+ threadId: {
3260
+ type: 'string',
3261
+ },
3262
+ },
3263
+ required: ['id', 'threadId'],
3264
+ additionalProperties: true,
3265
+ },
3266
+ error: {
3267
+ type: 'object',
3268
+ properties: {
3269
+ code: {
3270
+ type: 'string',
3271
+ },
3272
+ },
3273
+ required: ['code'],
3274
+ additionalProperties: false,
3275
+ },
3276
+ },
3277
+ additionalProperties: true,
3278
+ required: ['operationId', 'accountId', 'kind', 'status'],
3279
+ },
3280
+ },
3281
+ required: ['data'],
3282
+ additionalProperties: false,
3283
+ },
3284
+ forward_email: {
3285
+ type: 'object',
3286
+ properties: {
3287
+ data: {
3288
+ type: 'object',
3289
+ properties: {
3290
+ operationId: {
3291
+ type: 'string',
3292
+ },
3293
+ accountId: {
3294
+ type: 'string',
3295
+ },
3296
+ kind: {
3297
+ type: 'string',
3298
+ },
3299
+ status: {
3300
+ type: 'string',
3301
+ },
3302
+ result: {
3303
+ type: 'object',
3304
+ properties: {
3305
+ id: {
3306
+ type: 'string',
3307
+ },
3308
+ threadId: {
3309
+ type: 'string',
3310
+ },
3311
+ },
3312
+ required: ['id', 'threadId'],
3313
+ additionalProperties: true,
3314
+ },
3315
+ error: {
3316
+ type: 'object',
3317
+ properties: {
3318
+ code: {
3319
+ type: 'string',
3320
+ },
3321
+ },
3322
+ required: ['code'],
3323
+ additionalProperties: false,
3324
+ },
3325
+ },
3326
+ additionalProperties: true,
3327
+ required: ['operationId', 'accountId', 'kind', 'status'],
3328
+ },
3329
+ },
3330
+ required: ['data'],
3331
+ additionalProperties: false,
3332
+ },
3333
+ mark_emails_read: {
3334
+ type: 'object',
3335
+ properties: {
3336
+ data: {
3337
+ type: 'object',
3338
+ properties: {
3339
+ action: {
3340
+ type: 'string',
3341
+ },
3342
+ succeededIds: {
3343
+ type: 'array',
3344
+ items: {
3345
+ type: 'string',
3346
+ },
3347
+ },
3348
+ failed: {
3349
+ type: 'array',
3350
+ items: {
3351
+ type: 'object',
3352
+ properties: {
3353
+ messageId: {
3354
+ type: 'string',
3355
+ },
3356
+ code: {
3357
+ type: 'string',
3358
+ },
3359
+ },
3360
+ required: ['messageId', 'code'],
3361
+ additionalProperties: false,
3362
+ },
3363
+ },
3364
+ uncertainIds: {
3365
+ type: 'array',
3366
+ items: {
3367
+ type: 'string',
3368
+ },
3369
+ },
3370
+ },
3371
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3372
+ additionalProperties: true,
3373
+ },
3374
+ },
3375
+ required: ['data'],
3376
+ additionalProperties: false,
3377
+ },
3378
+ mark_emails_unread: {
3379
+ type: 'object',
3380
+ properties: {
3381
+ data: {
3382
+ type: 'object',
3383
+ properties: {
3384
+ action: {
3385
+ type: 'string',
3386
+ },
3387
+ succeededIds: {
3388
+ type: 'array',
3389
+ items: {
3390
+ type: 'string',
3391
+ },
3392
+ },
3393
+ failed: {
3394
+ type: 'array',
3395
+ items: {
3396
+ type: 'object',
3397
+ properties: {
3398
+ messageId: {
3399
+ type: 'string',
3400
+ },
3401
+ code: {
3402
+ type: 'string',
3403
+ },
3404
+ },
3405
+ required: ['messageId', 'code'],
3406
+ additionalProperties: false,
3407
+ },
3408
+ },
3409
+ uncertainIds: {
3410
+ type: 'array',
3411
+ items: {
3412
+ type: 'string',
3413
+ },
3414
+ },
3415
+ },
3416
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3417
+ additionalProperties: true,
3418
+ },
3419
+ },
3420
+ required: ['data'],
3421
+ additionalProperties: false,
3422
+ },
3423
+ star_emails: {
3424
+ type: 'object',
3425
+ properties: {
3426
+ data: {
3427
+ type: 'object',
3428
+ properties: {
3429
+ action: {
3430
+ type: 'string',
3431
+ },
3432
+ succeededIds: {
3433
+ type: 'array',
3434
+ items: {
3435
+ type: 'string',
3436
+ },
3437
+ },
3438
+ failed: {
3439
+ type: 'array',
3440
+ items: {
3441
+ type: 'object',
3442
+ properties: {
3443
+ messageId: {
3444
+ type: 'string',
3445
+ },
3446
+ code: {
3447
+ type: 'string',
3448
+ },
3449
+ },
3450
+ required: ['messageId', 'code'],
3451
+ additionalProperties: false,
3452
+ },
3453
+ },
3454
+ uncertainIds: {
3455
+ type: 'array',
3456
+ items: {
3457
+ type: 'string',
3458
+ },
3459
+ },
3460
+ },
3461
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3462
+ additionalProperties: true,
3463
+ },
3464
+ },
3465
+ required: ['data'],
3466
+ additionalProperties: false,
3467
+ },
3468
+ unstar_emails: {
3469
+ type: 'object',
3470
+ properties: {
3471
+ data: {
3472
+ type: 'object',
3473
+ properties: {
3474
+ action: {
3475
+ type: 'string',
3476
+ },
3477
+ succeededIds: {
3478
+ type: 'array',
3479
+ items: {
3480
+ type: 'string',
3481
+ },
3482
+ },
3483
+ failed: {
3484
+ type: 'array',
3485
+ items: {
3486
+ type: 'object',
3487
+ properties: {
3488
+ messageId: {
3489
+ type: 'string',
3490
+ },
3491
+ code: {
3492
+ type: 'string',
3493
+ },
3494
+ },
3495
+ required: ['messageId', 'code'],
3496
+ additionalProperties: false,
3497
+ },
3498
+ },
3499
+ uncertainIds: {
3500
+ type: 'array',
3501
+ items: {
3502
+ type: 'string',
3503
+ },
3504
+ },
3505
+ },
3506
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3507
+ additionalProperties: true,
3508
+ },
3509
+ },
3510
+ required: ['data'],
3511
+ additionalProperties: false,
3512
+ },
3513
+ archive_emails: {
3514
+ type: 'object',
3515
+ properties: {
3516
+ data: {
3517
+ type: 'object',
3518
+ properties: {
3519
+ action: {
3520
+ type: 'string',
3521
+ },
3522
+ succeededIds: {
3523
+ type: 'array',
3524
+ items: {
3525
+ type: 'string',
3526
+ },
3527
+ },
3528
+ failed: {
3529
+ type: 'array',
3530
+ items: {
3531
+ type: 'object',
3532
+ properties: {
3533
+ messageId: {
3534
+ type: 'string',
3535
+ },
3536
+ code: {
3537
+ type: 'string',
3538
+ },
3539
+ },
3540
+ required: ['messageId', 'code'],
3541
+ additionalProperties: false,
3542
+ },
3543
+ },
3544
+ uncertainIds: {
3545
+ type: 'array',
3546
+ items: {
3547
+ type: 'string',
3548
+ },
3549
+ },
3550
+ },
3551
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3552
+ additionalProperties: true,
3553
+ },
3554
+ },
3555
+ required: ['data'],
3556
+ additionalProperties: false,
3557
+ },
3558
+ move_emails: {
3559
+ type: 'object',
3560
+ properties: {
3561
+ data: {
3562
+ type: 'object',
3563
+ properties: {
3564
+ action: {
3565
+ type: 'string',
3566
+ },
3567
+ succeededIds: {
3568
+ type: 'array',
3569
+ items: {
3570
+ type: 'string',
3571
+ },
3572
+ },
3573
+ failed: {
3574
+ type: 'array',
3575
+ items: {
3576
+ type: 'object',
3577
+ properties: {
3578
+ messageId: {
3579
+ type: 'string',
3580
+ },
3581
+ code: {
3582
+ type: 'string',
3583
+ },
3584
+ },
3585
+ required: ['messageId', 'code'],
3586
+ additionalProperties: false,
3587
+ },
3588
+ },
3589
+ uncertainIds: {
3590
+ type: 'array',
3591
+ items: {
3592
+ type: 'string',
3593
+ },
3594
+ },
3595
+ },
3596
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3597
+ additionalProperties: true,
3598
+ },
3599
+ },
3600
+ required: ['data'],
3601
+ additionalProperties: false,
3602
+ },
3603
+ add_labels: {
3604
+ type: 'object',
3605
+ properties: {
3606
+ data: {
3607
+ type: 'object',
3608
+ properties: {
3609
+ action: {
3610
+ type: 'string',
3611
+ },
3612
+ succeededIds: {
3613
+ type: 'array',
3614
+ items: {
3615
+ type: 'string',
3616
+ },
3617
+ },
3618
+ failed: {
3619
+ type: 'array',
3620
+ items: {
3621
+ type: 'object',
3622
+ properties: {
3623
+ messageId: {
3624
+ type: 'string',
3625
+ },
3626
+ code: {
3627
+ type: 'string',
3628
+ },
3629
+ },
3630
+ required: ['messageId', 'code'],
3631
+ additionalProperties: false,
3632
+ },
3633
+ },
3634
+ uncertainIds: {
3635
+ type: 'array',
3636
+ items: {
3637
+ type: 'string',
3638
+ },
3639
+ },
3640
+ },
3641
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3642
+ additionalProperties: true,
3643
+ },
3644
+ },
3645
+ required: ['data'],
3646
+ additionalProperties: false,
3647
+ },
3648
+ remove_labels: {
3649
+ type: 'object',
3650
+ properties: {
3651
+ data: {
3652
+ type: 'object',
3653
+ properties: {
3654
+ action: {
3655
+ type: 'string',
3656
+ },
3657
+ succeededIds: {
3658
+ type: 'array',
3659
+ items: {
3660
+ type: 'string',
3661
+ },
3662
+ },
3663
+ failed: {
3664
+ type: 'array',
3665
+ items: {
3666
+ type: 'object',
3667
+ properties: {
3668
+ messageId: {
3669
+ type: 'string',
3670
+ },
3671
+ code: {
3672
+ type: 'string',
3673
+ },
3674
+ },
3675
+ required: ['messageId', 'code'],
3676
+ additionalProperties: false,
3677
+ },
3678
+ },
3679
+ uncertainIds: {
3680
+ type: 'array',
3681
+ items: {
3682
+ type: 'string',
3683
+ },
3684
+ },
3685
+ },
3686
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3687
+ additionalProperties: true,
3688
+ },
3689
+ },
3690
+ required: ['data'],
3691
+ additionalProperties: false,
3692
+ },
3693
+ trash_emails: {
3694
+ type: 'object',
3695
+ properties: {
3696
+ data: {
3697
+ type: 'object',
3698
+ properties: {
3699
+ action: {
3700
+ type: 'string',
3701
+ },
3702
+ succeededIds: {
3703
+ type: 'array',
3704
+ items: {
3705
+ type: 'string',
3706
+ },
3707
+ },
3708
+ failed: {
3709
+ type: 'array',
3710
+ items: {
3711
+ type: 'object',
3712
+ properties: {
3713
+ messageId: {
3714
+ type: 'string',
3715
+ },
3716
+ code: {
3717
+ type: 'string',
3718
+ },
3719
+ },
3720
+ required: ['messageId', 'code'],
3721
+ additionalProperties: false,
3722
+ },
3723
+ },
3724
+ uncertainIds: {
3725
+ type: 'array',
3726
+ items: {
3727
+ type: 'string',
3728
+ },
3729
+ },
3730
+ },
3731
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3732
+ additionalProperties: true,
3733
+ },
3734
+ },
3735
+ required: ['data'],
3736
+ additionalProperties: false,
3737
+ },
3738
+ restore_emails: {
3739
+ type: 'object',
3740
+ properties: {
3741
+ data: {
3742
+ type: 'object',
3743
+ properties: {
3744
+ action: {
3745
+ type: 'string',
3746
+ },
3747
+ succeededIds: {
3748
+ type: 'array',
3749
+ items: {
3750
+ type: 'string',
3751
+ },
3752
+ },
3753
+ failed: {
3754
+ type: 'array',
3755
+ items: {
3756
+ type: 'object',
3757
+ properties: {
3758
+ messageId: {
3759
+ type: 'string',
3760
+ },
3761
+ code: {
3762
+ type: 'string',
3763
+ },
3764
+ },
3765
+ required: ['messageId', 'code'],
3766
+ additionalProperties: false,
3767
+ },
3768
+ },
3769
+ uncertainIds: {
3770
+ type: 'array',
3771
+ items: {
3772
+ type: 'string',
3773
+ },
3774
+ },
3775
+ },
3776
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3777
+ additionalProperties: true,
3778
+ },
3779
+ },
3780
+ required: ['data'],
3781
+ additionalProperties: false,
3782
+ },
3783
+ delete_emails: {
3784
+ type: 'object',
3785
+ properties: {
3786
+ data: {
3787
+ type: 'object',
3788
+ properties: {
3789
+ action: {
3790
+ type: 'string',
3791
+ },
3792
+ succeededIds: {
3793
+ type: 'array',
3794
+ items: {
3795
+ type: 'string',
3796
+ },
3797
+ },
3798
+ failed: {
3799
+ type: 'array',
3800
+ items: {
3801
+ type: 'object',
3802
+ properties: {
3803
+ messageId: {
3804
+ type: 'string',
3805
+ },
3806
+ code: {
3807
+ type: 'string',
3808
+ },
3809
+ },
3810
+ required: ['messageId', 'code'],
3811
+ additionalProperties: false,
3812
+ },
3813
+ },
3814
+ uncertainIds: {
3815
+ type: 'array',
3816
+ items: {
3817
+ type: 'string',
3818
+ },
3819
+ },
3820
+ },
3821
+ required: ['action', 'succeededIds', 'failed', 'uncertainIds'],
3822
+ additionalProperties: true,
3823
+ },
3824
+ },
3825
+ required: ['data'],
3826
+ additionalProperties: false,
3827
+ },
3828
+ download_attachment: {
3829
+ type: 'object',
3830
+ properties: {
3831
+ data: {
3832
+ type: 'object',
3833
+ properties: {
3834
+ id: {
3835
+ type: 'string',
3836
+ },
3837
+ filename: {
3838
+ type: 'string',
3839
+ },
3840
+ mimeType: {
3841
+ type: 'string',
3842
+ },
3843
+ sizeBytes: {
3844
+ type: 'number',
3845
+ },
3846
+ },
3847
+ required: ['id', 'filename', 'mimeType', 'sizeBytes'],
3848
+ additionalProperties: true,
3849
+ },
3850
+ },
3851
+ required: ['data'],
3852
+ additionalProperties: false,
3853
+ },
3854
+ };
2003
3855
  //# sourceMappingURL=tools.generated.js.map