@remit/api-zod-schemas 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/schemas.d.ts CHANGED
@@ -27,6 +27,13 @@ export declare const FilterMatchOperatorSchema: z.ZodEnum<["And", "Or"]>;
27
27
  export declare const FilterClauseFieldSchema: z.ZodEnum<["From", "Subject", "HasWords", "ListId", "FromDomain"]>;
28
28
  export declare const LabelColorSchema: z.ZodEnum<["Default", "Red", "Orange", "Yellow", "Green", "Teal", "Blue", "Purple", "Gray"]>;
29
29
  export declare const OrganizeJobStateSchema: z.ZodEnum<["Pending", "Running", "Complete", "Failed"]>;
30
+ export declare const CalendarColorSchema: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
31
+ export declare const CalendarComponentSetSchema: z.ZodEnum<["VeventOnly"]>;
32
+ export declare const CalendarSourceSchema: z.ZodEnum<["Default", "UserCreated", "MailDerived"]>;
33
+ export declare const CalendarEventStatusSchema: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
34
+ export declare const CalendarTransparencySchema: z.ZodEnum<["Opaque", "Transparent"]>;
35
+ export declare const ZoneCertaintySchema: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
36
+ export declare const RecurrenceScopeSchema: z.ZodEnum<["This", "Following", "All"]>;
30
37
  export declare const SortOrderSchema: z.ZodEnum<["asc", "desc"]>;
31
38
  export declare const StarColorSchema: z.ZodEnum<["none", "yellow", "orange", "red", "purple", "blue", "teal", "green", "yellow_bang", "red_bang", "purple_question", "blue_info", "orange_guillemet", "green_check", "yellow_check", "blue_star"]>;
32
39
  export declare const MessageCategorySchema: z.ZodEnum<["uncategorized", "personal", "newsletter", "marketing", "automated", "transactional", "social"]>;
@@ -57,12 +64,6 @@ export declare const ContentEncodingSchema: z.ZodEnum<["none", "gzip", "zstd"]>;
57
64
  export declare const AccountSettingNameSchema: z.ZodEnum<["Theme", "Density", "DefaultComposerFormat", "PinnedFolders", "AccountSignaturePlainText", "AccountSignatureHtml", "AccountDisplayName", "AccountMuted", "AccountComposeLanguages", "MailboxDisplayName", "MailboxMuted", "FolderRoleAppointment", "FolderRoleAppointmentLabel", "MailboxRole"]>;
58
65
  export declare const ConfigImportStateSchema: z.ZodEnum<["Pending", "Complete"]>;
59
66
  export declare const ConfigImportRefKindSchema: z.ZodEnum<["FolderRole", "MailboxOverride", "FilterAction"]>;
60
- export declare const CalendarColorSchema: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
61
- export declare const CalendarComponentSetSchema: z.ZodEnum<["VeventOnly"]>;
62
- export declare const CalendarSourceSchema: z.ZodEnum<["Default", "UserCreated", "MailDerived"]>;
63
- export declare const CalendarEventStatusSchema: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
64
- export declare const CalendarTransparencySchema: z.ZodEnum<["Opaque", "Transparent"]>;
65
- export declare const ZoneCertaintySchema: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
66
67
  export declare const MessagePlacementMoveStateSchema: z.ZodEnum<["pending", "queued", "processing", "processed"]>;
67
68
  export declare const FlagPushOperationSchema: z.ZodEnum<["add", "remove"]>;
68
69
  export declare const MessageFlagPushStateSchema: z.ZodEnum<["pending", "queued", "processing", "processed"]>;
@@ -154,6 +155,66 @@ export declare const AppointFolderRoleConflictSchema: z.ZodObject<{
154
155
  statusCode: 409;
155
156
  details?: Record<string, string> | undefined;
156
157
  }>;
158
+ export declare const NotFoundErrorSchema: z.ZodObject<{
159
+ statusCode: z.ZodLiteral<404>;
160
+ error: z.ZodObject<{
161
+ code: z.ZodString;
162
+ message: z.ZodString;
163
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ code: string;
166
+ message: string;
167
+ details?: Record<string, string> | undefined;
168
+ }, {
169
+ code: string;
170
+ message: string;
171
+ details?: Record<string, string> | undefined;
172
+ }>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ error: {
175
+ code: string;
176
+ message: string;
177
+ details?: Record<string, string> | undefined;
178
+ };
179
+ statusCode: 404;
180
+ }, {
181
+ error: {
182
+ code: string;
183
+ message: string;
184
+ details?: Record<string, string> | undefined;
185
+ };
186
+ statusCode: 404;
187
+ }>;
188
+ export declare const PreconditionFailedErrorSchema: z.ZodObject<{
189
+ statusCode: z.ZodLiteral<412>;
190
+ error: z.ZodObject<{
191
+ code: z.ZodString;
192
+ message: z.ZodString;
193
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ code: string;
196
+ message: string;
197
+ details?: Record<string, string> | undefined;
198
+ }, {
199
+ code: string;
200
+ message: string;
201
+ details?: Record<string, string> | undefined;
202
+ }>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ error: {
205
+ code: string;
206
+ message: string;
207
+ details?: Record<string, string> | undefined;
208
+ };
209
+ statusCode: 412;
210
+ }, {
211
+ error: {
212
+ code: string;
213
+ message: string;
214
+ details?: Record<string, string> | undefined;
215
+ };
216
+ statusCode: 412;
217
+ }>;
157
218
  export declare const DeleteMessagesConflictSchema: z.ZodObject<{
158
219
  statusCode: z.ZodLiteral<409>;
159
220
  code: z.ZodString;
@@ -212,36 +273,6 @@ export declare const AmazonApiGatewayIntegrationSchema: z.ZodObject<{
212
273
  "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations";
213
274
  };
214
275
  }>;
215
- export declare const NotFoundErrorSchema: z.ZodObject<{
216
- statusCode: z.ZodLiteral<404>;
217
- error: z.ZodObject<{
218
- code: z.ZodString;
219
- message: z.ZodString;
220
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
221
- }, "strip", z.ZodTypeAny, {
222
- code: string;
223
- message: string;
224
- details?: Record<string, string> | undefined;
225
- }, {
226
- code: string;
227
- message: string;
228
- details?: Record<string, string> | undefined;
229
- }>;
230
- }, "strip", z.ZodTypeAny, {
231
- error: {
232
- code: string;
233
- message: string;
234
- details?: Record<string, string> | undefined;
235
- };
236
- statusCode: 404;
237
- }, {
238
- error: {
239
- code: string;
240
- message: string;
241
- details?: Record<string, string> | undefined;
242
- };
243
- statusCode: 404;
244
- }>;
245
276
  export declare const InternalServerErrorSchema: z.ZodObject<{
246
277
  statusCode: z.ZodLiteral<500>;
247
278
  error: z.ZodObject<{
@@ -2439,114 +2470,636 @@ export declare const OrganizeJobRequestSchema: z.ZodObject<{
2439
2470
  createdAt: z.ZodNumber;
2440
2471
  updatedAt: z.ZodNumber;
2441
2472
  }, "strip", z.ZodTypeAny, {
2442
- accountConfigId: string;
2443
- userId: string;
2444
- state: "Pending" | "Failed" | "Running" | "Complete";
2473
+ accountConfigId: string;
2474
+ userId: string;
2475
+ state: "Pending" | "Failed" | "Running" | "Complete";
2476
+ createdAt: number;
2477
+ updatedAt: number;
2478
+ errorMessage: string;
2479
+ ttl: number;
2480
+ matchOperator: "And" | "Or";
2481
+ literalClauses: {
2482
+ value: string;
2483
+ field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
2484
+ }[];
2485
+ actionLabelId: string;
2486
+ actionMailboxId: string;
2487
+ anchorMessageId: string;
2488
+ similarityThreshold: number;
2489
+ organizeJobId: string;
2490
+ matchedCount: number;
2491
+ appliedCount: number;
2492
+ failedCount: number;
2493
+ }, {
2494
+ accountConfigId: string;
2495
+ userId: string;
2496
+ state: "Pending" | "Failed" | "Running" | "Complete";
2497
+ createdAt: number;
2498
+ updatedAt: number;
2499
+ errorMessage: string;
2500
+ ttl: number;
2501
+ matchOperator: "And" | "Or";
2502
+ literalClauses: {
2503
+ value: string;
2504
+ field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
2505
+ }[];
2506
+ actionLabelId: string;
2507
+ actionMailboxId: string;
2508
+ anchorMessageId: string;
2509
+ similarityThreshold: number;
2510
+ organizeJobId: string;
2511
+ matchedCount: number;
2512
+ appliedCount: number;
2513
+ failedCount: number;
2514
+ }>;
2515
+ export declare const OrganizeJobResponseSchema: z.ZodObject<{
2516
+ organizeJobId: z.ZodString;
2517
+ accountConfigId: z.ZodString;
2518
+ userId: z.ZodString;
2519
+ state: z.ZodEnum<["Pending", "Running", "Complete", "Failed"]>;
2520
+ anchorMessageId: z.ZodString;
2521
+ matchOperator: z.ZodEnum<["And", "Or"]>;
2522
+ literalClauses: z.ZodArray<z.ZodObject<{
2523
+ field: z.ZodEnum<["From", "Subject", "HasWords", "ListId", "FromDomain"]>;
2524
+ value: z.ZodString;
2525
+ }, "strip", z.ZodTypeAny, {
2526
+ value: string;
2527
+ field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
2528
+ }, {
2529
+ value: string;
2530
+ field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
2531
+ }>, "many">;
2532
+ similarityThreshold: z.ZodNumber;
2533
+ actionLabelId: z.ZodString;
2534
+ actionMailboxId: z.ZodString;
2535
+ matchedCount: z.ZodNumber;
2536
+ appliedCount: z.ZodNumber;
2537
+ failedCount: z.ZodNumber;
2538
+ errorMessage: z.ZodString;
2539
+ createdAt: z.ZodNumber;
2540
+ updatedAt: z.ZodNumber;
2541
+ }, "strip", z.ZodTypeAny, {
2542
+ accountConfigId: string;
2543
+ userId: string;
2544
+ state: "Pending" | "Failed" | "Running" | "Complete";
2545
+ createdAt: number;
2546
+ updatedAt: number;
2547
+ errorMessage: string;
2548
+ matchOperator: "And" | "Or";
2549
+ literalClauses: {
2550
+ value: string;
2551
+ field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
2552
+ }[];
2553
+ actionLabelId: string;
2554
+ actionMailboxId: string;
2555
+ anchorMessageId: string;
2556
+ similarityThreshold: number;
2557
+ organizeJobId: string;
2558
+ matchedCount: number;
2559
+ appliedCount: number;
2560
+ failedCount: number;
2561
+ }, {
2562
+ accountConfigId: string;
2563
+ userId: string;
2564
+ state: "Pending" | "Failed" | "Running" | "Complete";
2565
+ createdAt: number;
2566
+ updatedAt: number;
2567
+ errorMessage: string;
2568
+ matchOperator: "And" | "Or";
2569
+ literalClauses: {
2570
+ value: string;
2571
+ field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
2572
+ }[];
2573
+ actionLabelId: string;
2574
+ actionMailboxId: string;
2575
+ anchorMessageId: string;
2576
+ similarityThreshold: number;
2577
+ organizeJobId: string;
2578
+ matchedCount: number;
2579
+ appliedCount: number;
2580
+ failedCount: number;
2581
+ }>;
2582
+ export declare const CalendarResponseSchema: z.ZodObject<{
2583
+ calendarId: z.ZodString;
2584
+ accountConfigId: z.ZodString;
2585
+ urlSegment: z.ZodString;
2586
+ displayName: z.ZodString;
2587
+ color: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
2588
+ componentSet: z.ZodEnum<["VeventOnly"]>;
2589
+ source: z.ZodEnum<["Default", "UserCreated", "MailDerived"]>;
2590
+ timezone: z.ZodString;
2591
+ syncSequence: z.ZodNumber;
2592
+ createdAt: z.ZodNumber;
2593
+ updatedAt: z.ZodNumber;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ displayName: string;
2596
+ accountConfigId: string;
2597
+ createdAt: number;
2598
+ updatedAt: number;
2599
+ source: "Default" | "UserCreated" | "MailDerived";
2600
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2601
+ calendarId: string;
2602
+ urlSegment: string;
2603
+ componentSet: "VeventOnly";
2604
+ timezone: string;
2605
+ syncSequence: number;
2606
+ }, {
2607
+ displayName: string;
2608
+ accountConfigId: string;
2609
+ createdAt: number;
2610
+ updatedAt: number;
2611
+ source: "Default" | "UserCreated" | "MailDerived";
2612
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2613
+ calendarId: string;
2614
+ urlSegment: string;
2615
+ componentSet: "VeventOnly";
2616
+ timezone: string;
2617
+ syncSequence: number;
2618
+ }>;
2619
+ export declare const CalendarListResponseSchema: z.ZodObject<{
2620
+ items: z.ZodArray<z.ZodObject<{
2621
+ calendarId: z.ZodString;
2622
+ accountConfigId: z.ZodString;
2623
+ urlSegment: z.ZodString;
2624
+ displayName: z.ZodString;
2625
+ color: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
2626
+ componentSet: z.ZodEnum<["VeventOnly"]>;
2627
+ source: z.ZodEnum<["Default", "UserCreated", "MailDerived"]>;
2628
+ timezone: z.ZodString;
2629
+ syncSequence: z.ZodNumber;
2630
+ createdAt: z.ZodNumber;
2631
+ updatedAt: z.ZodNumber;
2632
+ }, "strip", z.ZodTypeAny, {
2633
+ displayName: string;
2634
+ accountConfigId: string;
2635
+ createdAt: number;
2636
+ updatedAt: number;
2637
+ source: "Default" | "UserCreated" | "MailDerived";
2638
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2639
+ calendarId: string;
2640
+ urlSegment: string;
2641
+ componentSet: "VeventOnly";
2642
+ timezone: string;
2643
+ syncSequence: number;
2644
+ }, {
2645
+ displayName: string;
2646
+ accountConfigId: string;
2647
+ createdAt: number;
2648
+ updatedAt: number;
2649
+ source: "Default" | "UserCreated" | "MailDerived";
2650
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2651
+ calendarId: string;
2652
+ urlSegment: string;
2653
+ componentSet: "VeventOnly";
2654
+ timezone: string;
2655
+ syncSequence: number;
2656
+ }>, "many">;
2657
+ }, "strip", z.ZodTypeAny, {
2658
+ items: {
2659
+ displayName: string;
2660
+ accountConfigId: string;
2661
+ createdAt: number;
2662
+ updatedAt: number;
2663
+ source: "Default" | "UserCreated" | "MailDerived";
2664
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2665
+ calendarId: string;
2666
+ urlSegment: string;
2667
+ componentSet: "VeventOnly";
2668
+ timezone: string;
2669
+ syncSequence: number;
2670
+ }[];
2671
+ }, {
2672
+ items: {
2673
+ displayName: string;
2674
+ accountConfigId: string;
2675
+ createdAt: number;
2676
+ updatedAt: number;
2677
+ source: "Default" | "UserCreated" | "MailDerived";
2678
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2679
+ calendarId: string;
2680
+ urlSegment: string;
2681
+ componentSet: "VeventOnly";
2682
+ timezone: string;
2683
+ syncSequence: number;
2684
+ }[];
2685
+ }>;
2686
+ export declare const CalendarCollectionSchema: z.ZodObject<{
2687
+ calendarId: z.ZodString;
2688
+ accountConfigId: z.ZodString;
2689
+ urlSegment: z.ZodString;
2690
+ displayName: z.ZodString;
2691
+ color: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
2692
+ componentSet: z.ZodEnum<["VeventOnly"]>;
2693
+ source: z.ZodEnum<["Default", "UserCreated", "MailDerived"]>;
2694
+ timezone: z.ZodString;
2695
+ syncSequence: z.ZodNumber;
2696
+ createdAt: z.ZodNumber;
2697
+ updatedAt: z.ZodNumber;
2698
+ }, "strip", z.ZodTypeAny, {
2699
+ displayName: string;
2700
+ accountConfigId: string;
2701
+ createdAt: number;
2702
+ updatedAt: number;
2703
+ source: "Default" | "UserCreated" | "MailDerived";
2704
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2705
+ calendarId: string;
2706
+ urlSegment: string;
2707
+ componentSet: "VeventOnly";
2708
+ timezone: string;
2709
+ syncSequence: number;
2710
+ }, {
2711
+ displayName: string;
2712
+ accountConfigId: string;
2713
+ createdAt: number;
2714
+ updatedAt: number;
2715
+ source: "Default" | "UserCreated" | "MailDerived";
2716
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2717
+ calendarId: string;
2718
+ urlSegment: string;
2719
+ componentSet: "VeventOnly";
2720
+ timezone: string;
2721
+ syncSequence: number;
2722
+ }>;
2723
+ export declare const CreateCalendarInputSchema: z.ZodObject<{
2724
+ displayName: z.ZodString;
2725
+ urlSegment: z.ZodString;
2726
+ color: z.ZodOptional<z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>>;
2727
+ timezone: z.ZodOptional<z.ZodString>;
2728
+ }, "strip", z.ZodTypeAny, {
2729
+ displayName: string;
2730
+ urlSegment: string;
2731
+ color?: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6" | undefined;
2732
+ timezone?: string | undefined;
2733
+ }, {
2734
+ displayName: string;
2735
+ urlSegment: string;
2736
+ color?: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6" | undefined;
2737
+ timezone?: string | undefined;
2738
+ }>;
2739
+ export declare const UpdateCalendarInputSchema: z.ZodObject<{
2740
+ displayName: z.ZodString;
2741
+ color: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
2742
+ timezone: z.ZodString;
2743
+ }, "strip", z.ZodTypeAny, {
2744
+ displayName: string;
2745
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2746
+ timezone: string;
2747
+ }, {
2748
+ displayName: string;
2749
+ color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
2750
+ timezone: string;
2751
+ }>;
2752
+ export declare const CalendarNoContentSchema: z.ZodObject<{
2753
+ statusCode: z.ZodLiteral<204>;
2754
+ }, "strip", z.ZodTypeAny, {
2755
+ statusCode: 204;
2756
+ }, {
2757
+ statusCode: 204;
2758
+ }>;
2759
+ export declare const CalendarEventInstanceSchema: z.ZodObject<{
2760
+ calendarId: z.ZodString;
2761
+ calendarObjectId: z.ZodString;
2762
+ recurrenceId: z.ZodString;
2763
+ icalUid: z.ZodString;
2764
+ summary: z.ZodString;
2765
+ start: z.ZodString;
2766
+ end: z.ZodString;
2767
+ allDay: z.ZodBoolean;
2768
+ status: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
2769
+ transparency: z.ZodEnum<["Opaque", "Transparent"]>;
2770
+ zoneCertainty: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
2771
+ etag: z.ZodString;
2772
+ hasRecurrence: z.ZodBoolean;
2773
+ }, "strip", z.ZodTypeAny, {
2774
+ status: "Confirmed" | "Tentative" | "Cancelled";
2775
+ summary: string;
2776
+ calendarId: string;
2777
+ calendarObjectId: string;
2778
+ recurrenceId: string;
2779
+ icalUid: string;
2780
+ start: string;
2781
+ end: string;
2782
+ allDay: boolean;
2783
+ transparency: "Opaque" | "Transparent";
2784
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
2785
+ etag: string;
2786
+ hasRecurrence: boolean;
2787
+ }, {
2788
+ status: "Confirmed" | "Tentative" | "Cancelled";
2789
+ summary: string;
2790
+ calendarId: string;
2791
+ calendarObjectId: string;
2792
+ recurrenceId: string;
2793
+ icalUid: string;
2794
+ start: string;
2795
+ end: string;
2796
+ allDay: boolean;
2797
+ transparency: "Opaque" | "Transparent";
2798
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
2799
+ etag: string;
2800
+ hasRecurrence: boolean;
2801
+ }>;
2802
+ export declare const CalendarEventListResponseSchema: z.ZodObject<{
2803
+ items: z.ZodArray<z.ZodObject<{
2804
+ calendarId: z.ZodString;
2805
+ calendarObjectId: z.ZodString;
2806
+ recurrenceId: z.ZodString;
2807
+ icalUid: z.ZodString;
2808
+ summary: z.ZodString;
2809
+ start: z.ZodString;
2810
+ end: z.ZodString;
2811
+ allDay: z.ZodBoolean;
2812
+ status: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
2813
+ transparency: z.ZodEnum<["Opaque", "Transparent"]>;
2814
+ zoneCertainty: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
2815
+ etag: z.ZodString;
2816
+ hasRecurrence: z.ZodBoolean;
2817
+ }, "strip", z.ZodTypeAny, {
2818
+ status: "Confirmed" | "Tentative" | "Cancelled";
2819
+ summary: string;
2820
+ calendarId: string;
2821
+ calendarObjectId: string;
2822
+ recurrenceId: string;
2823
+ icalUid: string;
2824
+ start: string;
2825
+ end: string;
2826
+ allDay: boolean;
2827
+ transparency: "Opaque" | "Transparent";
2828
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
2829
+ etag: string;
2830
+ hasRecurrence: boolean;
2831
+ }, {
2832
+ status: "Confirmed" | "Tentative" | "Cancelled";
2833
+ summary: string;
2834
+ calendarId: string;
2835
+ calendarObjectId: string;
2836
+ recurrenceId: string;
2837
+ icalUid: string;
2838
+ start: string;
2839
+ end: string;
2840
+ allDay: boolean;
2841
+ transparency: "Opaque" | "Transparent";
2842
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
2843
+ etag: string;
2844
+ hasRecurrence: boolean;
2845
+ }>, "many">;
2846
+ }, "strip", z.ZodTypeAny, {
2847
+ items: {
2848
+ status: "Confirmed" | "Tentative" | "Cancelled";
2849
+ summary: string;
2850
+ calendarId: string;
2851
+ calendarObjectId: string;
2852
+ recurrenceId: string;
2853
+ icalUid: string;
2854
+ start: string;
2855
+ end: string;
2856
+ allDay: boolean;
2857
+ transparency: "Opaque" | "Transparent";
2858
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
2859
+ etag: string;
2860
+ hasRecurrence: boolean;
2861
+ }[];
2862
+ }, {
2863
+ items: {
2864
+ status: "Confirmed" | "Tentative" | "Cancelled";
2865
+ summary: string;
2866
+ calendarId: string;
2867
+ calendarObjectId: string;
2868
+ recurrenceId: string;
2869
+ icalUid: string;
2870
+ start: string;
2871
+ end: string;
2872
+ allDay: boolean;
2873
+ transparency: "Opaque" | "Transparent";
2874
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
2875
+ etag: string;
2876
+ hasRecurrence: boolean;
2877
+ }[];
2878
+ }>;
2879
+ export declare const CreateCalendarEventInputSchema: z.ZodObject<{
2880
+ calendarId: z.ZodString;
2881
+ summary: z.ZodString;
2882
+ description: z.ZodOptional<z.ZodString>;
2883
+ location: z.ZodOptional<z.ZodString>;
2884
+ start: z.ZodString;
2885
+ end: z.ZodString;
2886
+ allDay: z.ZodOptional<z.ZodBoolean>;
2887
+ timeZone: z.ZodOptional<z.ZodString>;
2888
+ status: z.ZodOptional<z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>>;
2889
+ transparency: z.ZodOptional<z.ZodEnum<["Opaque", "Transparent"]>>;
2890
+ recurrenceRule: z.ZodOptional<z.ZodString>;
2891
+ }, "strip", z.ZodTypeAny, {
2892
+ summary: string;
2893
+ calendarId: string;
2894
+ start: string;
2895
+ end: string;
2896
+ status?: "Confirmed" | "Tentative" | "Cancelled" | undefined;
2897
+ allDay?: boolean | undefined;
2898
+ transparency?: "Opaque" | "Transparent" | undefined;
2899
+ description?: string | undefined;
2900
+ location?: string | undefined;
2901
+ timeZone?: string | undefined;
2902
+ recurrenceRule?: string | undefined;
2903
+ }, {
2904
+ summary: string;
2905
+ calendarId: string;
2906
+ start: string;
2907
+ end: string;
2908
+ status?: "Confirmed" | "Tentative" | "Cancelled" | undefined;
2909
+ allDay?: boolean | undefined;
2910
+ transparency?: "Opaque" | "Transparent" | undefined;
2911
+ description?: string | undefined;
2912
+ location?: string | undefined;
2913
+ timeZone?: string | undefined;
2914
+ recurrenceRule?: string | undefined;
2915
+ }>;
2916
+ export declare const CalendarObjectSchema: z.ZodObject<{
2917
+ calendarObjectId: z.ZodString;
2918
+ calendarId: z.ZodString;
2919
+ resourceName: z.ZodString;
2920
+ icalUid: z.ZodString;
2921
+ icalData: z.ZodString;
2922
+ etag: z.ZodString;
2923
+ sequence: z.ZodNumber;
2924
+ syncSequence: z.ZodNumber;
2925
+ summary: z.ZodString;
2926
+ dtStart: z.ZodString;
2927
+ dtEnd: z.ZodString;
2928
+ allDay: z.ZodBoolean;
2929
+ zoneCertainty: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
2930
+ status: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
2931
+ transparency: z.ZodEnum<["Opaque", "Transparent"]>;
2932
+ hasRecurrence: z.ZodBoolean;
2933
+ expandedThrough: z.ZodString;
2934
+ createdAt: z.ZodNumber;
2935
+ updatedAt: z.ZodNumber;
2936
+ }, "strip", z.ZodTypeAny, {
2937
+ status: "Confirmed" | "Tentative" | "Cancelled";
2938
+ createdAt: number;
2939
+ updatedAt: number;
2940
+ summary: string;
2941
+ calendarId: string;
2942
+ syncSequence: number;
2943
+ calendarObjectId: string;
2944
+ icalUid: string;
2945
+ allDay: boolean;
2946
+ transparency: "Opaque" | "Transparent";
2947
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
2948
+ etag: string;
2949
+ hasRecurrence: boolean;
2950
+ resourceName: string;
2951
+ icalData: string;
2952
+ sequence: number;
2953
+ dtStart: string;
2954
+ dtEnd: string;
2955
+ expandedThrough: string;
2956
+ }, {
2957
+ status: "Confirmed" | "Tentative" | "Cancelled";
2958
+ createdAt: number;
2959
+ updatedAt: number;
2960
+ summary: string;
2961
+ calendarId: string;
2962
+ syncSequence: number;
2963
+ calendarObjectId: string;
2964
+ icalUid: string;
2965
+ allDay: boolean;
2966
+ transparency: "Opaque" | "Transparent";
2967
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
2968
+ etag: string;
2969
+ hasRecurrence: boolean;
2970
+ resourceName: string;
2971
+ icalData: string;
2972
+ sequence: number;
2973
+ dtStart: string;
2974
+ dtEnd: string;
2975
+ expandedThrough: string;
2976
+ }>;
2977
+ export declare const CalendarEventResponseSchema: z.ZodObject<{
2978
+ calendarObjectId: z.ZodString;
2979
+ calendarId: z.ZodString;
2980
+ resourceName: z.ZodString;
2981
+ icalUid: z.ZodString;
2982
+ icalData: z.ZodString;
2983
+ etag: z.ZodString;
2984
+ sequence: z.ZodNumber;
2985
+ syncSequence: z.ZodNumber;
2986
+ summary: z.ZodString;
2987
+ dtStart: z.ZodString;
2988
+ dtEnd: z.ZodString;
2989
+ allDay: z.ZodBoolean;
2990
+ zoneCertainty: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
2991
+ status: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
2992
+ transparency: z.ZodEnum<["Opaque", "Transparent"]>;
2993
+ hasRecurrence: z.ZodBoolean;
2994
+ expandedThrough: z.ZodString;
2995
+ createdAt: z.ZodNumber;
2996
+ updatedAt: z.ZodNumber;
2997
+ }, "strip", z.ZodTypeAny, {
2998
+ status: "Confirmed" | "Tentative" | "Cancelled";
2445
2999
  createdAt: number;
2446
3000
  updatedAt: number;
2447
- errorMessage: string;
2448
- ttl: number;
2449
- matchOperator: "And" | "Or";
2450
- literalClauses: {
2451
- value: string;
2452
- field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
2453
- }[];
2454
- actionLabelId: string;
2455
- actionMailboxId: string;
2456
- anchorMessageId: string;
2457
- similarityThreshold: number;
2458
- organizeJobId: string;
2459
- matchedCount: number;
2460
- appliedCount: number;
2461
- failedCount: number;
3001
+ summary: string;
3002
+ calendarId: string;
3003
+ syncSequence: number;
3004
+ calendarObjectId: string;
3005
+ icalUid: string;
3006
+ allDay: boolean;
3007
+ transparency: "Opaque" | "Transparent";
3008
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
3009
+ etag: string;
3010
+ hasRecurrence: boolean;
3011
+ resourceName: string;
3012
+ icalData: string;
3013
+ sequence: number;
3014
+ dtStart: string;
3015
+ dtEnd: string;
3016
+ expandedThrough: string;
2462
3017
  }, {
2463
- accountConfigId: string;
2464
- userId: string;
2465
- state: "Pending" | "Failed" | "Running" | "Complete";
3018
+ status: "Confirmed" | "Tentative" | "Cancelled";
2466
3019
  createdAt: number;
2467
3020
  updatedAt: number;
2468
- errorMessage: string;
2469
- ttl: number;
2470
- matchOperator: "And" | "Or";
2471
- literalClauses: {
2472
- value: string;
2473
- field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
2474
- }[];
2475
- actionLabelId: string;
2476
- actionMailboxId: string;
2477
- anchorMessageId: string;
2478
- similarityThreshold: number;
2479
- organizeJobId: string;
2480
- matchedCount: number;
2481
- appliedCount: number;
2482
- failedCount: number;
3021
+ summary: string;
3022
+ calendarId: string;
3023
+ syncSequence: number;
3024
+ calendarObjectId: string;
3025
+ icalUid: string;
3026
+ allDay: boolean;
3027
+ transparency: "Opaque" | "Transparent";
3028
+ zoneCertainty: "Local" | "Explicit" | "Ambiguous";
3029
+ etag: string;
3030
+ hasRecurrence: boolean;
3031
+ resourceName: string;
3032
+ icalData: string;
3033
+ sequence: number;
3034
+ dtStart: string;
3035
+ dtEnd: string;
3036
+ expandedThrough: string;
2483
3037
  }>;
2484
- export declare const OrganizeJobResponseSchema: z.ZodObject<{
2485
- organizeJobId: z.ZodString;
2486
- accountConfigId: z.ZodString;
2487
- userId: z.ZodString;
2488
- state: z.ZodEnum<["Pending", "Running", "Complete", "Failed"]>;
2489
- anchorMessageId: z.ZodString;
2490
- matchOperator: z.ZodEnum<["And", "Or"]>;
2491
- literalClauses: z.ZodArray<z.ZodObject<{
2492
- field: z.ZodEnum<["From", "Subject", "HasWords", "ListId", "FromDomain"]>;
2493
- value: z.ZodString;
3038
+ export declare const UpdateCalendarEventInputSchema: z.ZodObject<{
3039
+ summary: z.ZodOptional<z.ZodString>;
3040
+ description: z.ZodOptional<z.ZodString>;
3041
+ location: z.ZodOptional<z.ZodString>;
3042
+ start: z.ZodOptional<z.ZodString>;
3043
+ end: z.ZodOptional<z.ZodString>;
3044
+ allDay: z.ZodOptional<z.ZodBoolean>;
3045
+ timeZone: z.ZodOptional<z.ZodString>;
3046
+ status: z.ZodOptional<z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>>;
3047
+ transparency: z.ZodOptional<z.ZodEnum<["Opaque", "Transparent"]>>;
3048
+ recurrenceRule: z.ZodOptional<z.ZodString>;
3049
+ }, "strip", z.ZodTypeAny, {
3050
+ status?: "Confirmed" | "Tentative" | "Cancelled" | undefined;
3051
+ summary?: string | undefined;
3052
+ start?: string | undefined;
3053
+ end?: string | undefined;
3054
+ allDay?: boolean | undefined;
3055
+ transparency?: "Opaque" | "Transparent" | undefined;
3056
+ description?: string | undefined;
3057
+ location?: string | undefined;
3058
+ timeZone?: string | undefined;
3059
+ recurrenceRule?: string | undefined;
3060
+ }, {
3061
+ status?: "Confirmed" | "Tentative" | "Cancelled" | undefined;
3062
+ summary?: string | undefined;
3063
+ start?: string | undefined;
3064
+ end?: string | undefined;
3065
+ allDay?: boolean | undefined;
3066
+ transparency?: "Opaque" | "Transparent" | undefined;
3067
+ description?: string | undefined;
3068
+ location?: string | undefined;
3069
+ timeZone?: string | undefined;
3070
+ recurrenceRule?: string | undefined;
3071
+ }>;
3072
+ export declare const CalendarFreeBusySpanSchema: z.ZodObject<{
3073
+ start: z.ZodString;
3074
+ end: z.ZodString;
3075
+ }, "strip", z.ZodTypeAny, {
3076
+ start: string;
3077
+ end: string;
3078
+ }, {
3079
+ start: string;
3080
+ end: string;
3081
+ }>;
3082
+ export declare const CalendarFreeBusyResponseSchema: z.ZodObject<{
3083
+ items: z.ZodArray<z.ZodObject<{
3084
+ start: z.ZodString;
3085
+ end: z.ZodString;
2494
3086
  }, "strip", z.ZodTypeAny, {
2495
- value: string;
2496
- field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
3087
+ start: string;
3088
+ end: string;
2497
3089
  }, {
2498
- value: string;
2499
- field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
3090
+ start: string;
3091
+ end: string;
2500
3092
  }>, "many">;
2501
- similarityThreshold: z.ZodNumber;
2502
- actionLabelId: z.ZodString;
2503
- actionMailboxId: z.ZodString;
2504
- matchedCount: z.ZodNumber;
2505
- appliedCount: z.ZodNumber;
2506
- failedCount: z.ZodNumber;
2507
- errorMessage: z.ZodString;
2508
- createdAt: z.ZodNumber;
2509
- updatedAt: z.ZodNumber;
2510
3093
  }, "strip", z.ZodTypeAny, {
2511
- accountConfigId: string;
2512
- userId: string;
2513
- state: "Pending" | "Failed" | "Running" | "Complete";
2514
- createdAt: number;
2515
- updatedAt: number;
2516
- errorMessage: string;
2517
- matchOperator: "And" | "Or";
2518
- literalClauses: {
2519
- value: string;
2520
- field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
3094
+ items: {
3095
+ start: string;
3096
+ end: string;
2521
3097
  }[];
2522
- actionLabelId: string;
2523
- actionMailboxId: string;
2524
- anchorMessageId: string;
2525
- similarityThreshold: number;
2526
- organizeJobId: string;
2527
- matchedCount: number;
2528
- appliedCount: number;
2529
- failedCount: number;
2530
3098
  }, {
2531
- accountConfigId: string;
2532
- userId: string;
2533
- state: "Pending" | "Failed" | "Running" | "Complete";
2534
- createdAt: number;
2535
- updatedAt: number;
2536
- errorMessage: string;
2537
- matchOperator: "And" | "Or";
2538
- literalClauses: {
2539
- value: string;
2540
- field: "From" | "Subject" | "HasWords" | "ListId" | "FromDomain";
3099
+ items: {
3100
+ start: string;
3101
+ end: string;
2541
3102
  }[];
2542
- actionLabelId: string;
2543
- actionMailboxId: string;
2544
- anchorMessageId: string;
2545
- similarityThreshold: number;
2546
- organizeJobId: string;
2547
- matchedCount: number;
2548
- appliedCount: number;
2549
- failedCount: number;
2550
3103
  }>;
2551
3104
  export declare const EmptyTrashResponseSchema: z.ZodObject<{
2552
3105
  deletedCount: z.ZodNumber;
@@ -13702,6 +14255,7 @@ export declare const BodyPartSchema: z.ZodObject<{
13702
14255
  sizeOctets: number;
13703
14256
  isMultipart: boolean;
13704
14257
  partPath: string;
14258
+ location?: string | undefined;
13705
14259
  contentId?: string | undefined;
13706
14260
  disposition?: "attachment" | "inline" | undefined;
13707
14261
  dispositionFilename?: string | undefined;
@@ -13710,7 +14264,6 @@ export declare const BodyPartSchema: z.ZodObject<{
13710
14264
  lineCount?: number | undefined;
13711
14265
  md5Hash?: string | undefined;
13712
14266
  language?: string | undefined;
13713
- location?: string | undefined;
13714
14267
  multipartSubtype?: "mixed" | "alternative" | "digest" | "parallel" | "related" | "signed" | "encrypted" | "form-data" | "report" | undefined;
13715
14268
  }, {
13716
14269
  createdAt: number;
@@ -13723,6 +14276,7 @@ export declare const BodyPartSchema: z.ZodObject<{
13723
14276
  sizeOctets: number;
13724
14277
  isMultipart: boolean;
13725
14278
  partPath: string;
14279
+ location?: string | undefined;
13726
14280
  contentId?: string | undefined;
13727
14281
  disposition?: "attachment" | "inline" | undefined;
13728
14282
  dispositionFilename?: string | undefined;
@@ -13731,7 +14285,6 @@ export declare const BodyPartSchema: z.ZodObject<{
13731
14285
  lineCount?: number | undefined;
13732
14286
  md5Hash?: string | undefined;
13733
14287
  language?: string | undefined;
13734
- location?: string | undefined;
13735
14288
  multipartSubtype?: "mixed" | "alternative" | "digest" | "parallel" | "related" | "signed" | "encrypted" | "form-data" | "report" | undefined;
13736
14289
  }>;
13737
14290
  export declare const MessageReferenceSchema: z.ZodObject<{
@@ -14593,61 +15146,16 @@ export declare const BodyPartContentSchema: z.ZodObject<{
14593
15146
  content: string;
14594
15147
  contentLength: number;
14595
15148
  }>;
14596
- export declare const CalendarCollectionSchema: z.ZodObject<{
15149
+ export declare const CalendarEventIndexSchema: z.ZodObject<{
14597
15150
  calendarId: z.ZodString;
14598
- accountConfigId: z.ZodString;
14599
- urlSegment: z.ZodString;
14600
- displayName: z.ZodString;
14601
- color: z.ZodEnum<["Cal1", "Cal2", "Cal3", "Cal4", "Cal5", "Cal6"]>;
14602
- componentSet: z.ZodEnum<["VeventOnly"]>;
14603
- source: z.ZodEnum<["Default", "UserCreated", "MailDerived"]>;
14604
- timezone: z.ZodString;
14605
- syncSequence: z.ZodNumber;
14606
- createdAt: z.ZodNumber;
14607
- updatedAt: z.ZodNumber;
14608
- }, "strip", z.ZodTypeAny, {
14609
- displayName: string;
14610
- accountConfigId: string;
14611
- createdAt: number;
14612
- updatedAt: number;
14613
- source: "Default" | "UserCreated" | "MailDerived";
14614
- color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
14615
- calendarId: string;
14616
- urlSegment: string;
14617
- componentSet: "VeventOnly";
14618
- timezone: string;
14619
- syncSequence: number;
14620
- }, {
14621
- displayName: string;
14622
- accountConfigId: string;
14623
- createdAt: number;
14624
- updatedAt: number;
14625
- source: "Default" | "UserCreated" | "MailDerived";
14626
- color: "Cal1" | "Cal2" | "Cal3" | "Cal4" | "Cal5" | "Cal6";
14627
- calendarId: string;
14628
- urlSegment: string;
14629
- componentSet: "VeventOnly";
14630
- timezone: string;
14631
- syncSequence: number;
14632
- }>;
14633
- export declare const CalendarObjectSchema: z.ZodObject<{
14634
15151
  calendarObjectId: z.ZodString;
14635
- calendarId: z.ZodString;
14636
- resourceName: z.ZodString;
14637
- icalUid: z.ZodString;
14638
- icalData: z.ZodString;
14639
- etag: z.ZodString;
14640
- sequence: z.ZodNumber;
14641
- syncSequence: z.ZodNumber;
14642
- summary: z.ZodString;
14643
- dtStart: z.ZodString;
14644
- dtEnd: z.ZodString;
15152
+ recurrenceId: z.ZodString;
15153
+ startAt: z.ZodString;
15154
+ endAt: z.ZodString;
14645
15155
  allDay: z.ZodBoolean;
14646
- zoneCertainty: z.ZodEnum<["Local", "Explicit", "Ambiguous"]>;
15156
+ summary: z.ZodString;
14647
15157
  status: z.ZodEnum<["Confirmed", "Tentative", "Cancelled"]>;
14648
15158
  transparency: z.ZodEnum<["Opaque", "Transparent"]>;
14649
- hasRecurrence: z.ZodBoolean;
14650
- expandedThrough: z.ZodString;
14651
15159
  createdAt: z.ZodNumber;
14652
15160
  updatedAt: z.ZodNumber;
14653
15161
  }, "strip", z.ZodTypeAny, {
@@ -14656,66 +15164,22 @@ export declare const CalendarObjectSchema: z.ZodObject<{
14656
15164
  updatedAt: number;
14657
15165
  summary: string;
14658
15166
  calendarId: string;
14659
- syncSequence: number;
14660
15167
  calendarObjectId: string;
14661
- resourceName: string;
14662
- icalUid: string;
14663
- icalData: string;
14664
- etag: string;
14665
- sequence: number;
14666
- dtStart: string;
14667
- dtEnd: string;
15168
+ recurrenceId: string;
14668
15169
  allDay: boolean;
14669
- zoneCertainty: "Local" | "Explicit" | "Ambiguous";
14670
15170
  transparency: "Opaque" | "Transparent";
14671
- hasRecurrence: boolean;
14672
- expandedThrough: string;
15171
+ startAt: string;
15172
+ endAt: string;
14673
15173
  }, {
14674
15174
  status: "Confirmed" | "Tentative" | "Cancelled";
14675
15175
  createdAt: number;
14676
15176
  updatedAt: number;
14677
15177
  summary: string;
14678
15178
  calendarId: string;
14679
- syncSequence: number;
14680
- calendarObjectId: string;
14681
- resourceName: string;
14682
- icalUid: string;
14683
- icalData: string;
14684
- etag: string;
14685
- sequence: number;
14686
- dtStart: string;
14687
- dtEnd: string;
14688
- allDay: boolean;
14689
- zoneCertainty: "Local" | "Explicit" | "Ambiguous";
14690
- transparency: "Opaque" | "Transparent";
14691
- hasRecurrence: boolean;
14692
- expandedThrough: string;
14693
- }>;
14694
- export declare const CalendarEventIndexSchema: z.ZodObject<{
14695
- calendarId: z.ZodString;
14696
- calendarObjectId: z.ZodString;
14697
- recurrenceId: z.ZodString;
14698
- startAt: z.ZodString;
14699
- endAt: z.ZodString;
14700
- allDay: z.ZodBoolean;
14701
- createdAt: z.ZodNumber;
14702
- updatedAt: z.ZodNumber;
14703
- }, "strip", z.ZodTypeAny, {
14704
- createdAt: number;
14705
- updatedAt: number;
14706
- calendarId: string;
14707
15179
  calendarObjectId: string;
14708
- allDay: boolean;
14709
15180
  recurrenceId: string;
14710
- startAt: string;
14711
- endAt: string;
14712
- }, {
14713
- createdAt: number;
14714
- updatedAt: number;
14715
- calendarId: string;
14716
- calendarObjectId: string;
14717
15181
  allDay: boolean;
14718
- recurrenceId: string;
15182
+ transparency: "Opaque" | "Transparent";
14719
15183
  startAt: string;
14720
15184
  endAt: string;
14721
15185
  }>;