@workwae/sdk 0.1.0-alpha.3 → 0.1.0-alpha.5

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.
@@ -140,6 +140,11 @@ export declare const v1Contract: {
140
140
  delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
141
141
  relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
142
142
  }, import("zod/v4/core").$strip>;
143
+ mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
144
+ full: "full";
145
+ read_send: "read_send";
146
+ read: "read";
147
+ }>>;
143
148
  initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
144
149
  calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
145
150
  contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
@@ -295,6 +300,11 @@ export declare const v1Contract: {
295
300
  delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
296
301
  relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
297
302
  }, import("zod/v4/core").$strip>;
303
+ mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
304
+ full: "full";
305
+ read_send: "read_send";
306
+ read: "read";
307
+ }>>;
298
308
  initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
299
309
  calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
300
310
  contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
@@ -355,6 +365,11 @@ export declare const v1Contract: {
355
365
  sendsPerMinute: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
356
366
  }, import("zod/v4/core").$strip>>;
357
367
  sharedMailboxesEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
368
+ mailPermissions: import("zod").ZodOptional<import("zod").ZodEnum<{
369
+ full: "full";
370
+ read_send: "read_send";
371
+ read: "read";
372
+ }>>;
358
373
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
359
374
  id: import("zod").ZodUUID;
360
375
  externalRef: import("zod").ZodNullable<import("zod").ZodString>;
@@ -481,6 +496,11 @@ export declare const v1Contract: {
481
496
  delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
482
497
  relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
483
498
  }, import("zod/v4/core").$strip>;
499
+ mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
500
+ full: "full";
501
+ read_send: "read_send";
502
+ read: "read";
503
+ }>>;
484
504
  initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
485
505
  calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
486
506
  contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
@@ -540,6 +560,10 @@ export declare const v1Contract: {
540
560
  status: 400;
541
561
  message: string;
542
562
  };
563
+ mail_permissions_unsupported: {
564
+ status: 400;
565
+ message: string;
566
+ };
543
567
  provider_not_configured: {
544
568
  status: 400;
545
569
  message: string;
@@ -726,6 +750,11 @@ export declare const v1Contract: {
726
750
  delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
727
751
  relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
728
752
  }, import("zod/v4/core").$strip>;
753
+ mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
754
+ full: "full";
755
+ read_send: "read_send";
756
+ read: "read";
757
+ }>>;
729
758
  initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
730
759
  calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
731
760
  contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
@@ -1176,6 +1205,10 @@ export declare const v1Contract: {
1176
1205
  message: string;
1177
1206
  };
1178
1207
  unknown_mailbox: import("./errors.js").DeclaredError<"unknown_mailbox">;
1208
+ mail_permission_missing: {
1209
+ status: 409;
1210
+ message: string;
1211
+ };
1179
1212
  mail_disabled: {
1180
1213
  status: 409;
1181
1214
  message: string;
@@ -1291,6 +1324,10 @@ export declare const v1Contract: {
1291
1324
  message: string;
1292
1325
  };
1293
1326
  unknown_mailbox: import("./errors.js").DeclaredError<"unknown_mailbox">;
1327
+ mail_permission_missing: {
1328
+ status: 409;
1329
+ message: string;
1330
+ };
1294
1331
  mail_disabled: {
1295
1332
  status: 409;
1296
1333
  message: string;
@@ -1378,6 +1415,10 @@ export declare const v1Contract: {
1378
1415
  status: 400;
1379
1416
  message: string;
1380
1417
  };
1418
+ mail_permission_missing: {
1419
+ status: 409;
1420
+ message: string;
1421
+ };
1381
1422
  mail_disabled: {
1382
1423
  status: 409;
1383
1424
  message: string;
@@ -1479,6 +1520,8 @@ export declare const v1Contract: {
1479
1520
  high: "high";
1480
1521
  low: "low";
1481
1522
  }>>;
1523
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
1524
+ references: import("zod").ZodArray<import("zod").ZodString>;
1482
1525
  bcc: import("zod").ZodArray<import("zod").ZodObject<{
1483
1526
  name: import("zod").ZodNullable<import("zod").ZodString>;
1484
1527
  address: import("zod").ZodString;
@@ -1522,8 +1565,6 @@ export declare const v1Contract: {
1522
1565
  model: import("zod").ZodString;
1523
1566
  classifiedAt: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
1524
1567
  }, import("zod/v4/core").$strip>>;
1525
- inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
1526
- references: import("zod").ZodArray<import("zod").ZodString>;
1527
1568
  headers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1528
1569
  name: import("zod").ZodString;
1529
1570
  value: import("zod").ZodString;
@@ -1569,6 +1610,8 @@ export declare const v1Contract: {
1569
1610
  high: "high";
1570
1611
  low: "low";
1571
1612
  }>>;
1613
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
1614
+ references: import("zod").ZodArray<import("zod").ZodString>;
1572
1615
  }, import("zod/v4/core").$strip>>;
1573
1616
  nextCursor: import("zod").ZodNullable<import("zod").ZodString>;
1574
1617
  }, import("zod/v4/core").$strip>
@@ -1692,6 +1735,8 @@ export declare const v1Contract: {
1692
1735
  high: "high";
1693
1736
  low: "low";
1694
1737
  }>>;
1738
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
1739
+ references: import("zod").ZodArray<import("zod").ZodString>;
1695
1740
  bcc: import("zod").ZodArray<import("zod").ZodObject<{
1696
1741
  name: import("zod").ZodNullable<import("zod").ZodString>;
1697
1742
  address: import("zod").ZodString;
@@ -1735,8 +1780,6 @@ export declare const v1Contract: {
1735
1780
  model: import("zod").ZodString;
1736
1781
  classifiedAt: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
1737
1782
  }, import("zod/v4/core").$strip>>;
1738
- inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
1739
- references: import("zod").ZodArray<import("zod").ZodString>;
1740
1783
  headers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1741
1784
  name: import("zod").ZodString;
1742
1785
  value: import("zod").ZodString;
@@ -1994,6 +2037,8 @@ export declare const v1Contract: {
1994
2037
  high: "high";
1995
2038
  low: "low";
1996
2039
  }>>;
2040
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
2041
+ references: import("zod").ZodArray<import("zod").ZodString>;
1997
2042
  }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("./errors.js").DeclaredErrors<{
1998
2043
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1999
2044
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
@@ -2065,6 +2110,10 @@ export declare const v1Contract: {
2065
2110
  status: 400;
2066
2111
  message: string;
2067
2112
  };
2113
+ mail_permission_missing: {
2114
+ status: 409;
2115
+ message: string;
2116
+ };
2068
2117
  mail_disabled: {
2069
2118
  status: 409;
2070
2119
  message: string;
@@ -2158,6 +2207,10 @@ export declare const v1Contract: {
2158
2207
  status: 404;
2159
2208
  message: string;
2160
2209
  };
2210
+ mail_permission_missing: {
2211
+ status: 409;
2212
+ message: string;
2213
+ };
2161
2214
  mail_disabled: {
2162
2215
  status: 409;
2163
2216
  message: string;
@@ -2250,6 +2303,8 @@ export declare const v1Contract: {
2250
2303
  high: "high";
2251
2304
  low: "low";
2252
2305
  }>>;
2306
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
2307
+ references: import("zod").ZodArray<import("zod").ZodString>;
2253
2308
  id: import("zod").ZodNullable<import("zod").ZodUUID>;
2254
2309
  }, import("zod/v4/core").$strip>>;
2255
2310
  nextCursor: import("zod").ZodNullable<import("zod").ZodString>;
@@ -2447,6 +2502,8 @@ export declare const v1Contract: {
2447
2502
  high: "high";
2448
2503
  low: "low";
2449
2504
  }>>;
2505
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
2506
+ references: import("zod").ZodArray<import("zod").ZodString>;
2450
2507
  }, import("zod/v4/core").$strip>>;
2451
2508
  }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("./errors.js").DeclaredErrors<{
2452
2509
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
@@ -2541,6 +2598,8 @@ export declare const v1Contract: {
2541
2598
  high: "high";
2542
2599
  low: "low";
2543
2600
  }>>;
2601
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
2602
+ references: import("zod").ZodArray<import("zod").ZodString>;
2544
2603
  }, import("zod/v4/core").$strip>>;
2545
2604
  }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("./errors.js").DeclaredErrors<{
2546
2605
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
@@ -2609,6 +2668,10 @@ export declare const v1Contract: {
2609
2668
  status: 404;
2610
2669
  message: string;
2611
2670
  };
2671
+ mail_permission_missing: {
2672
+ status: 409;
2673
+ message: string;
2674
+ };
2612
2675
  mail_disabled: {
2613
2676
  status: 409;
2614
2677
  message: string;
@@ -2691,6 +2754,10 @@ export declare const v1Contract: {
2691
2754
  status: 404;
2692
2755
  message: string;
2693
2756
  };
2757
+ mail_permission_missing: {
2758
+ status: 409;
2759
+ message: string;
2760
+ };
2694
2761
  mail_disabled: {
2695
2762
  status: 409;
2696
2763
  message: string;
@@ -2790,6 +2857,8 @@ export declare const v1Contract: {
2790
2857
  high: "high";
2791
2858
  low: "low";
2792
2859
  }>>;
2860
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
2861
+ references: import("zod").ZodArray<import("zod").ZodString>;
2793
2862
  }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("./errors.js").DeclaredErrors<{
2794
2863
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
2795
2864
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
@@ -2812,6 +2881,10 @@ export declare const v1Contract: {
2812
2881
  status: 502;
2813
2882
  message: string;
2814
2883
  };
2884
+ mail_permission_missing: {
2885
+ status: 409;
2886
+ message: string;
2887
+ };
2815
2888
  provider_not_found: {
2816
2889
  status: 404;
2817
2890
  message: string;
@@ -2984,6 +3057,8 @@ export declare const v1Contract: {
2984
3057
  high: "high";
2985
3058
  low: "low";
2986
3059
  }>>;
3060
+ inReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
3061
+ references: import("zod").ZodArray<import("zod").ZodString>;
2987
3062
  }, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("./errors.js").DeclaredErrors<{
2988
3063
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
2989
3064
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
@@ -3006,6 +3081,10 @@ export declare const v1Contract: {
3006
3081
  status: 404;
3007
3082
  message: string;
3008
3083
  };
3084
+ mail_permission_missing: {
3085
+ status: 409;
3086
+ message: string;
3087
+ };
3009
3088
  provider_not_found: {
3010
3089
  status: 404;
3011
3090
  message: string;
@@ -3162,6 +3241,10 @@ export declare const v1Contract: {
3162
3241
  status: 404;
3163
3242
  message: string;
3164
3243
  };
3244
+ mail_permission_missing: {
3245
+ status: 409;
3246
+ message: string;
3247
+ };
3165
3248
  mail_disabled: {
3166
3249
  status: 409;
3167
3250
  message: string;
@@ -3282,6 +3365,10 @@ export declare const v1Contract: {
3282
3365
  status: 404;
3283
3366
  message: string;
3284
3367
  };
3368
+ mail_permission_missing: {
3369
+ status: 409;
3370
+ message: string;
3371
+ };
3285
3372
  mail_disabled: {
3286
3373
  status: 409;
3287
3374
  message: string;
@@ -3441,7 +3528,8 @@ export declare const v1Contract: {
3441
3528
  status: 400;
3442
3529
  message: string;
3443
3530
  };
3444
- duplicate_message_id: {
3531
+ duplicate_message_id: import("./errors.js").DeclaredError<"duplicate_message_id">;
3532
+ mail_permission_missing: {
3445
3533
  status: 409;
3446
3534
  message: string;
3447
3535
  };
@@ -3917,7 +4005,6 @@ export declare const v1Contract: {
3917
4005
  }, import("zod/v4/core").$strip>>;
3918
4006
  subject: import("zod").ZodOptional<import("zod").ZodString>;
3919
4007
  html: import("zod").ZodOptional<import("zod").ZodString>;
3920
- previewText: import("zod").ZodOptional<import("zod").ZodString>;
3921
4008
  replyTo: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
3922
4009
  name: import("zod").ZodOptional<import("zod").ZodString>;
3923
4010
  address: import("zod").ZodEmail;
@@ -3928,6 +4015,7 @@ export declare const v1Contract: {
3928
4015
  content: import("zod").ZodBase64;
3929
4016
  contentId: import("zod").ZodOptional<import("zod").ZodString>;
3930
4017
  }, import("zod/v4/core").$strip>>>;
4018
+ previewText: import("zod").ZodOptional<import("zod").ZodString>;
3931
4019
  inReplyToMessageId: import("zod").ZodOptional<import("zod").ZodUUID>;
3932
4020
  signature: import("zod").ZodOptional<import("zod").ZodBoolean>;
3933
4021
  priority: import("zod").ZodDefault<import("zod").ZodEnum<{
@@ -3973,6 +4061,7 @@ export declare const v1Contract: {
3973
4061
  address: import("zod").ZodString;
3974
4062
  }, import("zod/v4/core").$strip>;
3975
4063
  reason: import("zod").ZodString;
4064
+ outboxId: import("zod").ZodOptional<import("zod").ZodUUID>;
3976
4065
  error: import("zod").ZodString;
3977
4066
  status: import("zod").ZodNumber;
3978
4067
  }, import("zod/v4/core").$strip>
@@ -4016,6 +4105,10 @@ export declare const v1Contract: {
4016
4105
  status: 400;
4017
4106
  message: string;
4018
4107
  };
4108
+ mail_permission_missing: {
4109
+ status: 409;
4110
+ message: string;
4111
+ };
4019
4112
  template_and_inline_fields: {
4020
4113
  status: 400;
4021
4114
  message: string;
@@ -10598,6 +10691,11 @@ export declare const v1Contract: {
10598
10691
  api: "api";
10599
10692
  }>>;
10600
10693
  sharedMailboxesEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
10694
+ mailPermissions: import("zod").ZodOptional<import("zod").ZodEnum<{
10695
+ full: "full";
10696
+ read_send: "read_send";
10697
+ read: "read";
10698
+ }>>;
10601
10699
  }, import("zod/v4/core").$strip>>;
10602
10700
  mcp: import("zod").ZodOptional<import("zod").ZodObject<{
10603
10701
  scopes: import("zod").ZodArray<import("zod").ZodEnum<{
@@ -10663,6 +10761,10 @@ export declare const v1Contract: {
10663
10761
  status: 402;
10664
10762
  message: string;
10665
10763
  };
10764
+ mail_permissions_unsupported: {
10765
+ status: 400;
10766
+ message: string;
10767
+ };
10666
10768
  unknown_account: import("./errors.js").DeclaredError<"unknown_account">;
10667
10769
  redirect_uri_not_allowed: {
10668
10770
  status: 400;
@@ -10797,6 +10899,11 @@ export declare const v1Contract: {
10797
10899
  api: "api";
10798
10900
  }>>;
10799
10901
  sharedMailboxesEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
10902
+ mailPermissions: import("zod").ZodOptional<import("zod").ZodEnum<{
10903
+ full: "full";
10904
+ read_send: "read_send";
10905
+ read: "read";
10906
+ }>>;
10800
10907
  }, import("zod/v4/core").$strip>>;
10801
10908
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
10802
10909
  authorizeUrl: import("zod").ZodURL;
@@ -10863,6 +10970,10 @@ export declare const v1Contract: {
10863
10970
  status: 402;
10864
10971
  message: string;
10865
10972
  };
10973
+ mail_permissions_unsupported: {
10974
+ status: 400;
10975
+ message: string;
10976
+ };
10866
10977
  unknown_account: import("./errors.js").DeclaredError<"unknown_account">;
10867
10978
  redirect_uri_not_allowed: {
10868
10979
  status: 400;
@@ -11706,6 +11817,11 @@ export declare const v1Contract: {
11706
11817
  delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
11707
11818
  relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
11708
11819
  }, import("zod/v4/core").$strip>;
11820
+ mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
11821
+ full: "full";
11822
+ read_send: "read_send";
11823
+ read: "read";
11824
+ }>>;
11709
11825
  initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
11710
11826
  calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
11711
11827
  contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
@@ -11931,6 +12047,11 @@ export declare const v1Contract: {
11931
12047
  delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
11932
12048
  relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
11933
12049
  }, import("zod/v4/core").$strip>;
12050
+ mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
12051
+ full: "full";
12052
+ read_send: "read_send";
12053
+ read: "read";
12054
+ }>>;
11934
12055
  initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
11935
12056
  calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
11936
12057
  contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
@@ -12196,6 +12317,11 @@ export declare const v1Contract: {
12196
12317
  delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
12197
12318
  relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
12198
12319
  }, import("zod/v4/core").$strip>;
12320
+ mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
12321
+ full: "full";
12322
+ read_send: "read_send";
12323
+ read: "read";
12324
+ }>>;
12199
12325
  initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
12200
12326
  calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
12201
12327
  contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
@@ -12427,6 +12553,11 @@ export declare const v1Contract: {
12427
12553
  delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
12428
12554
  relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
12429
12555
  }, import("zod/v4/core").$strip>;
12556
+ mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
12557
+ full: "full";
12558
+ read_send: "read_send";
12559
+ read: "read";
12560
+ }>>;
12430
12561
  initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
12431
12562
  calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
12432
12563
  contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
@@ -312,7 +312,6 @@ export declare const MailMergeRequest: z.ZodObject<{
312
312
  }, z.core.$strip>>;
313
313
  subject: z.ZodOptional<z.ZodString>;
314
314
  html: z.ZodOptional<z.ZodString>;
315
- previewText: z.ZodOptional<z.ZodString>;
316
315
  replyTo: z.ZodDefault<z.ZodArray<z.ZodObject<{
317
316
  name: z.ZodOptional<z.ZodString>;
318
317
  address: z.ZodEmail;
@@ -323,6 +322,7 @@ export declare const MailMergeRequest: z.ZodObject<{
323
322
  content: z.ZodBase64;
324
323
  contentId: z.ZodOptional<z.ZodString>;
325
324
  }, z.core.$strip>>>;
325
+ previewText: z.ZodOptional<z.ZodString>;
326
326
  inReplyToMessageId: z.ZodOptional<z.ZodUUID>;
327
327
  signature: z.ZodOptional<z.ZodBoolean>;
328
328
  priority: z.ZodDefault<z.ZodEnum<{
@@ -369,6 +369,7 @@ export declare const MailMergeFailure: z.ZodObject<{
369
369
  address: z.ZodString;
370
370
  }, z.core.$strip>;
371
371
  reason: z.ZodString;
372
+ outboxId: z.ZodOptional<z.ZodUUID>;
372
373
  error: z.ZodString;
373
374
  status: z.ZodNumber;
374
375
  }, z.core.$strip>;
@@ -392,6 +393,7 @@ export declare const MailMergeResult: z.ZodDiscriminatedUnion<[
392
393
  address: z.ZodString;
393
394
  }, z.core.$strip>;
394
395
  reason: z.ZodString;
396
+ outboxId: z.ZodOptional<z.ZodUUID>;
395
397
  error: z.ZodString;
396
398
  status: z.ZodNumber;
397
399
  }, z.core.$strip>
@@ -417,6 +419,7 @@ export declare const MailMergeResultList: z.ZodObject<{
417
419
  address: z.ZodString;
418
420
  }, z.core.$strip>;
419
421
  reason: z.ZodString;
422
+ outboxId: z.ZodOptional<z.ZodUUID>;
420
423
  error: z.ZodString;
421
424
  status: z.ZodNumber;
422
425
  }, z.core.$strip>
@@ -84,6 +84,8 @@ export declare const drafts: {
84
84
  high: "high";
85
85
  low: "low";
86
86
  }>>;
87
+ inReplyTo: z.ZodNullable<z.ZodString>;
88
+ references: z.ZodArray<z.ZodString>;
87
89
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
88
90
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
89
91
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
@@ -106,6 +108,10 @@ export declare const drafts: {
106
108
  status: 502;
107
109
  message: string;
108
110
  };
111
+ mail_permission_missing: {
112
+ status: 409;
113
+ message: string;
114
+ };
109
115
  provider_not_found: {
110
116
  status: 404;
111
117
  message: string;
@@ -278,6 +284,8 @@ export declare const drafts: {
278
284
  high: "high";
279
285
  low: "low";
280
286
  }>>;
287
+ inReplyTo: z.ZodNullable<z.ZodString>;
288
+ references: z.ZodArray<z.ZodString>;
281
289
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
282
290
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
283
291
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
@@ -300,6 +308,10 @@ export declare const drafts: {
300
308
  status: 404;
301
309
  message: string;
302
310
  };
311
+ mail_permission_missing: {
312
+ status: 409;
313
+ message: string;
314
+ };
303
315
  provider_not_found: {
304
316
  status: 404;
305
317
  message: string;
@@ -456,6 +468,10 @@ export declare const drafts: {
456
468
  status: 404;
457
469
  message: string;
458
470
  };
471
+ mail_permission_missing: {
472
+ status: 409;
473
+ message: string;
474
+ };
459
475
  mail_disabled: {
460
476
  status: 409;
461
477
  message: string;
@@ -576,6 +592,10 @@ export declare const drafts: {
576
592
  status: 404;
577
593
  message: string;
578
594
  };
595
+ mail_permission_missing: {
596
+ status: 409;
597
+ message: string;
598
+ };
579
599
  mail_disabled: {
580
600
  status: 409;
581
601
  message: string;
@@ -735,7 +755,8 @@ export declare const outbox: {
735
755
  status: 400;
736
756
  message: string;
737
757
  };
738
- duplicate_message_id: {
758
+ duplicate_message_id: import("../errors.js").DeclaredError<"duplicate_message_id">;
759
+ mail_permission_missing: {
739
760
  status: 409;
740
761
  message: string;
741
762
  };
@@ -1211,7 +1232,6 @@ export declare const mailMerges: {
1211
1232
  }, z.core.$strip>>;
1212
1233
  subject: z.ZodOptional<z.ZodString>;
1213
1234
  html: z.ZodOptional<z.ZodString>;
1214
- previewText: z.ZodOptional<z.ZodString>;
1215
1235
  replyTo: z.ZodDefault<z.ZodArray<z.ZodObject<{
1216
1236
  name: z.ZodOptional<z.ZodString>;
1217
1237
  address: z.ZodEmail;
@@ -1222,6 +1242,7 @@ export declare const mailMerges: {
1222
1242
  content: z.ZodBase64;
1223
1243
  contentId: z.ZodOptional<z.ZodString>;
1224
1244
  }, z.core.$strip>>>;
1245
+ previewText: z.ZodOptional<z.ZodString>;
1225
1246
  inReplyToMessageId: z.ZodOptional<z.ZodUUID>;
1226
1247
  signature: z.ZodOptional<z.ZodBoolean>;
1227
1248
  priority: z.ZodDefault<z.ZodEnum<{
@@ -1267,6 +1288,7 @@ export declare const mailMerges: {
1267
1288
  address: z.ZodString;
1268
1289
  }, z.core.$strip>;
1269
1290
  reason: z.ZodString;
1291
+ outboxId: z.ZodOptional<z.ZodUUID>;
1270
1292
  error: z.ZodString;
1271
1293
  status: z.ZodNumber;
1272
1294
  }, z.core.$strip>
@@ -1310,6 +1332,10 @@ export declare const mailMerges: {
1310
1332
  status: 400;
1311
1333
  message: string;
1312
1334
  };
1335
+ mail_permission_missing: {
1336
+ status: 409;
1337
+ message: string;
1338
+ };
1313
1339
  template_and_inline_fields: {
1314
1340
  status: 400;
1315
1341
  message: string;
@@ -70,6 +70,8 @@ export declare const Thread: z.ZodObject<{
70
70
  high: "high";
71
71
  low: "low";
72
72
  }>>;
73
+ inReplyTo: z.ZodNullable<z.ZodString>;
74
+ references: z.ZodArray<z.ZodString>;
73
75
  }, z.core.$strip>>;
74
76
  }, z.core.$strip>;
75
77
  export type Thread = z.infer<typeof Thread>;
@@ -116,6 +116,8 @@ export declare const threads: {
116
116
  high: "high";
117
117
  low: "low";
118
118
  }>>;
119
+ inReplyTo: z.ZodNullable<z.ZodString>;
120
+ references: z.ZodArray<z.ZodString>;
119
121
  }, z.core.$strip>>;
120
122
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
121
123
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
@@ -210,6 +212,8 @@ export declare const threads: {
210
212
  high: "high";
211
213
  low: "low";
212
214
  }>>;
215
+ inReplyTo: z.ZodNullable<z.ZodString>;
216
+ references: z.ZodArray<z.ZodString>;
213
217
  }, z.core.$strip>>;
214
218
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
215
219
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
@@ -278,6 +282,10 @@ export declare const threads: {
278
282
  status: 404;
279
283
  message: string;
280
284
  };
285
+ mail_permission_missing: {
286
+ status: 409;
287
+ message: string;
288
+ };
281
289
  mail_disabled: {
282
290
  status: 409;
283
291
  message: string;
@@ -360,6 +368,10 @@ export declare const threads: {
360
368
  status: 404;
361
369
  message: string;
362
370
  };
371
+ mail_permission_missing: {
372
+ status: 409;
373
+ message: string;
374
+ };
363
375
  mail_disabled: {
364
376
  status: 409;
365
377
  message: string;