@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.
@@ -135,6 +135,12 @@ export declare const AccountAuthMethod: z.ZodEnum<{
135
135
  google_group: "google_group";
136
136
  }>;
137
137
  export type AccountAuthMethod = z.infer<typeof AccountAuthMethod>;
138
+ export declare const MailPermissions: z.ZodEnum<{
139
+ full: "full";
140
+ read_send: "read_send";
141
+ read: "read";
142
+ }>;
143
+ export type MailPermissions = z.infer<typeof MailPermissions>;
138
144
  export declare const AccountAuth: z.ZodObject<{
139
145
  method: z.ZodEnum<{
140
146
  password: "password";
@@ -275,6 +281,11 @@ export declare const Account: z.ZodObject<{
275
281
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
276
282
  relayEmail: z.ZodNullable<z.ZodEmail>;
277
283
  }, z.core.$strip>;
284
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
285
+ full: "full";
286
+ read_send: "read_send";
287
+ read: "read";
288
+ }>>;
278
289
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
279
290
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
280
291
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -431,6 +442,11 @@ export declare const AccountPage: z.ZodObject<{
431
442
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
432
443
  relayEmail: z.ZodNullable<z.ZodEmail>;
433
444
  }, z.core.$strip>;
445
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
446
+ full: "full";
447
+ read_send: "read_send";
448
+ read: "read";
449
+ }>>;
434
450
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
435
451
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
436
452
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -490,6 +506,11 @@ export declare const CreateAccount: z.ZodObject<{
490
506
  sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
491
507
  }, z.core.$strip>>;
492
508
  sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
509
+ mailPermissions: z.ZodOptional<z.ZodEnum<{
510
+ full: "full";
511
+ read_send: "read_send";
512
+ read: "read";
513
+ }>>;
493
514
  }, z.core.$strip>;
494
515
  export type CreateAccount = z.infer<typeof CreateAccount>;
495
516
  export declare const UpdateAccount: z.ZodObject<{
@@ -158,6 +158,11 @@ export declare const accounts: {
158
158
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
159
159
  relayEmail: z.ZodNullable<z.ZodEmail>;
160
160
  }, z.core.$strip>;
161
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
162
+ full: "full";
163
+ read_send: "read_send";
164
+ read: "read";
165
+ }>>;
161
166
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
162
167
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
163
168
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -313,6 +318,11 @@ export declare const accounts: {
313
318
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
314
319
  relayEmail: z.ZodNullable<z.ZodEmail>;
315
320
  }, z.core.$strip>;
321
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
322
+ full: "full";
323
+ read_send: "read_send";
324
+ read: "read";
325
+ }>>;
316
326
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
317
327
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
318
328
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -373,6 +383,11 @@ export declare const accounts: {
373
383
  sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
374
384
  }, z.core.$strip>>;
375
385
  sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
386
+ mailPermissions: z.ZodOptional<z.ZodEnum<{
387
+ full: "full";
388
+ read_send: "read_send";
389
+ read: "read";
390
+ }>>;
376
391
  }, z.core.$strip>, z.ZodObject<{
377
392
  id: z.ZodUUID;
378
393
  externalRef: z.ZodNullable<z.ZodString>;
@@ -499,6 +514,11 @@ export declare const accounts: {
499
514
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
500
515
  relayEmail: z.ZodNullable<z.ZodEmail>;
501
516
  }, z.core.$strip>;
517
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
518
+ full: "full";
519
+ read_send: "read_send";
520
+ read: "read";
521
+ }>>;
502
522
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
503
523
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
504
524
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -558,6 +578,10 @@ export declare const accounts: {
558
578
  status: 400;
559
579
  message: string;
560
580
  };
581
+ mail_permissions_unsupported: {
582
+ status: 400;
583
+ message: string;
584
+ };
561
585
  provider_not_configured: {
562
586
  status: 400;
563
587
  message: string;
@@ -744,6 +768,11 @@ export declare const accounts: {
744
768
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
745
769
  relayEmail: z.ZodNullable<z.ZodEmail>;
746
770
  }, z.core.$strip>;
771
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
772
+ full: "full";
773
+ read_send: "read_send";
774
+ read: "read";
775
+ }>>;
747
776
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
748
777
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
749
778
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -1073,6 +1102,11 @@ export declare const imapAccounts: {
1073
1102
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
1074
1103
  relayEmail: z.ZodNullable<z.ZodEmail>;
1075
1104
  }, z.core.$strip>;
1105
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
1106
+ full: "full";
1107
+ read_send: "read_send";
1108
+ read: "read";
1109
+ }>>;
1076
1110
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1077
1111
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1078
1112
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -1304,6 +1338,11 @@ export declare const imapSettings: {
1304
1338
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
1305
1339
  relayEmail: z.ZodNullable<z.ZodEmail>;
1306
1340
  }, z.core.$strip>;
1341
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
1342
+ full: "full";
1343
+ read_send: "read_send";
1344
+ read: "read";
1345
+ }>>;
1307
1346
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1308
1347
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1309
1348
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -18,6 +18,11 @@ export declare const ConnectOptions: z.ZodObject<{
18
18
  api: "api";
19
19
  }>>;
20
20
  sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
21
+ mailPermissions: z.ZodOptional<z.ZodEnum<{
22
+ full: "full";
23
+ read_send: "read_send";
24
+ read: "read";
25
+ }>>;
21
26
  }, z.core.$strip>;
22
27
  export type ConnectOptions = z.infer<typeof ConnectOptions>;
23
28
  export declare const ConnectProvider: z.ZodEnum<{
@@ -217,6 +222,11 @@ export declare const CreateConnectSession: z.ZodObject<{
217
222
  api: "api";
218
223
  }>>;
219
224
  sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
225
+ mailPermissions: z.ZodOptional<z.ZodEnum<{
226
+ full: "full";
227
+ read_send: "read_send";
228
+ read: "read";
229
+ }>>;
220
230
  }, z.core.$strip>>;
221
231
  mcp: z.ZodOptional<z.ZodObject<{
222
232
  scopes: z.ZodArray<z.ZodEnum<{
@@ -269,6 +279,11 @@ export declare const StartOAuthRequest: z.ZodObject<{
269
279
  api: "api";
270
280
  }>>;
271
281
  sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
282
+ mailPermissions: z.ZodOptional<z.ZodEnum<{
283
+ full: "full";
284
+ read_send: "read_send";
285
+ read: "read";
286
+ }>>;
272
287
  }, z.core.$strip>>;
273
288
  }, z.core.$strip>;
274
289
  export type StartOAuthRequest = z.infer<typeof StartOAuthRequest>;
@@ -34,6 +34,11 @@ export declare const connectSessions: {
34
34
  api: "api";
35
35
  }>>;
36
36
  sharedMailboxesEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
37
+ mailPermissions: import("zod").ZodOptional<import("zod").ZodEnum<{
38
+ full: "full";
39
+ read_send: "read_send";
40
+ read: "read";
41
+ }>>;
37
42
  }, import("zod/v4/core").$strip>>;
38
43
  mcp: import("zod").ZodOptional<import("zod").ZodObject<{
39
44
  scopes: import("zod").ZodArray<import("zod").ZodEnum<{
@@ -99,6 +104,10 @@ export declare const connectSessions: {
99
104
  status: 402;
100
105
  message: string;
101
106
  };
107
+ mail_permissions_unsupported: {
108
+ status: 400;
109
+ message: string;
110
+ };
102
111
  unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
103
112
  redirect_uri_not_allowed: {
104
113
  status: 400;
@@ -233,6 +242,11 @@ export declare const oauthAuthorizations: {
233
242
  api: "api";
234
243
  }>>;
235
244
  sharedMailboxesEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
245
+ mailPermissions: import("zod").ZodOptional<import("zod").ZodEnum<{
246
+ full: "full";
247
+ read_send: "read_send";
248
+ read: "read";
249
+ }>>;
236
250
  }, import("zod/v4/core").$strip>>;
237
251
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
238
252
  authorizeUrl: import("zod").ZodURL;
@@ -299,6 +313,10 @@ export declare const oauthAuthorizations: {
299
313
  status: 402;
300
314
  message: string;
301
315
  };
316
+ mail_permissions_unsupported: {
317
+ status: 400;
318
+ message: string;
319
+ };
302
320
  unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
303
321
  redirect_uri_not_allowed: {
304
322
  status: 400;
@@ -81,6 +81,12 @@ export declare const MAIL_ACCOUNT: {
81
81
  message: string;
82
82
  };
83
83
  };
84
+ export declare const MAIL_CHANGE: DeclaredErrors<{
85
+ readonly mail_permission_missing: "The account's grant cannot change the mailbox (mailPermissions read_send or read); reconnect it with options.mailPermissions full.";
86
+ }>;
87
+ export declare const MAIL_SEND: DeclaredErrors<{
88
+ readonly mail_permission_missing: "The account's grant cannot send (mailPermissions read); reconnect it with options.mailPermissions read_send or full.";
89
+ }>;
84
90
  export declare function accountState(account?: string): DeclaredErrors<{
85
91
  readonly account_paused: `${string} is paused.`;
86
92
  readonly account_disabled: `${string} is disabled.`;
@@ -183,6 +183,8 @@ export declare const MessageData: z.ZodObject<{
183
183
  high: "high";
184
184
  low: "low";
185
185
  }>>;
186
+ inReplyTo: z.ZodNullable<z.ZodString>;
187
+ references: z.ZodArray<z.ZodString>;
186
188
  }, z.core.$strip>;
187
189
  mailboxes: z.ZodArray<z.ZodObject<{
188
190
  id: z.ZodUUID;
@@ -239,6 +241,8 @@ export declare const MessageUpdatedData: z.ZodObject<{
239
241
  high: "high";
240
242
  low: "low";
241
243
  }>>;
244
+ inReplyTo: z.ZodNullable<z.ZodString>;
245
+ references: z.ZodArray<z.ZodString>;
242
246
  }, z.core.$strip>;
243
247
  mailboxes: z.ZodArray<z.ZodObject<{
244
248
  id: z.ZodUUID;
@@ -317,6 +321,8 @@ export declare const MessageDeletedData: z.ZodObject<{
317
321
  high: "high";
318
322
  low: "low";
319
323
  }>>;
324
+ inReplyTo: z.ZodNullable<z.ZodString>;
325
+ references: z.ZodArray<z.ZodString>;
320
326
  }, z.core.$strip>;
321
327
  mailboxes: z.ZodArray<z.ZodObject<{
322
328
  id: z.ZodUUID;
@@ -375,6 +381,8 @@ export declare const MessageClassifiedData: z.ZodObject<{
375
381
  high: "high";
376
382
  low: "low";
377
383
  }>>;
384
+ inReplyTo: z.ZodNullable<z.ZodString>;
385
+ references: z.ZodArray<z.ZodString>;
378
386
  }, z.core.$strip>;
379
387
  mailboxes: z.ZodArray<z.ZodObject<{
380
388
  id: z.ZodUUID;
@@ -558,6 +566,11 @@ export declare const SendFailedData: z.ZodObject<{
558
566
  code: z.ZodString;
559
567
  message: z.ZodString;
560
568
  }, z.core.$strip>;
569
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
570
+ address: z.ZodString;
571
+ status: z.ZodNullable<z.ZodString>;
572
+ diagnostic: z.ZodNullable<z.ZodString>;
573
+ }, z.core.$strip>>;
561
574
  outboxId: z.ZodUUID;
562
575
  reference: z.ZodNullable<z.ZodString>;
563
576
  }, z.core.$strip>;
@@ -1224,6 +1237,8 @@ export declare const EVENTS: {
1224
1237
  high: "high";
1225
1238
  low: "low";
1226
1239
  }>>;
1240
+ inReplyTo: z.ZodNullable<z.ZodString>;
1241
+ references: z.ZodArray<z.ZodString>;
1227
1242
  }, z.core.$strip>;
1228
1243
  mailboxes: z.ZodArray<z.ZodObject<{
1229
1244
  id: z.ZodUUID;
@@ -1283,6 +1298,8 @@ export declare const EVENTS: {
1283
1298
  high: "high";
1284
1299
  low: "low";
1285
1300
  }>>;
1301
+ inReplyTo: z.ZodNullable<z.ZodString>;
1302
+ references: z.ZodArray<z.ZodString>;
1286
1303
  }, z.core.$strip>;
1287
1304
  mailboxes: z.ZodArray<z.ZodObject<{
1288
1305
  id: z.ZodUUID;
@@ -1364,6 +1381,8 @@ export declare const EVENTS: {
1364
1381
  high: "high";
1365
1382
  low: "low";
1366
1383
  }>>;
1384
+ inReplyTo: z.ZodNullable<z.ZodString>;
1385
+ references: z.ZodArray<z.ZodString>;
1367
1386
  }, z.core.$strip>;
1368
1387
  mailboxes: z.ZodArray<z.ZodObject<{
1369
1388
  id: z.ZodUUID;
@@ -1440,6 +1459,8 @@ export declare const EVENTS: {
1440
1459
  high: "high";
1441
1460
  low: "low";
1442
1461
  }>>;
1462
+ inReplyTo: z.ZodNullable<z.ZodString>;
1463
+ references: z.ZodArray<z.ZodString>;
1443
1464
  }, z.core.$strip>;
1444
1465
  mailboxes: z.ZodArray<z.ZodObject<{
1445
1466
  id: z.ZodUUID;
@@ -1691,6 +1712,11 @@ export declare const EVENTS: {
1691
1712
  code: z.ZodString;
1692
1713
  message: z.ZodString;
1693
1714
  }, z.core.$strip>;
1715
+ rejectedRecipients: z.ZodArray<z.ZodObject<{
1716
+ address: z.ZodString;
1717
+ status: z.ZodNullable<z.ZodString>;
1718
+ diagnostic: z.ZodNullable<z.ZodString>;
1719
+ }, z.core.$strip>>;
1694
1720
  outboxId: z.ZodUUID;
1695
1721
  reference: z.ZodNullable<z.ZodString>;
1696
1722
  }, z.core.$strip>;
@@ -143,6 +143,8 @@ export declare const MessageSummary: z.ZodObject<{
143
143
  high: "high";
144
144
  low: "low";
145
145
  }>>;
146
+ inReplyTo: z.ZodNullable<z.ZodString>;
147
+ references: z.ZodArray<z.ZodString>;
146
148
  }, z.core.$strip>;
147
149
  export type MessageSummary = z.infer<typeof MessageSummary>;
148
150
  export declare const MessageChangedField: z.ZodEnum<{
@@ -206,6 +208,8 @@ export declare const MessageSummaryPage: z.ZodObject<{
206
208
  high: "high";
207
209
  low: "low";
208
210
  }>>;
211
+ inReplyTo: z.ZodNullable<z.ZodString>;
212
+ references: z.ZodArray<z.ZodString>;
209
213
  }, z.core.$strip>>;
210
214
  nextCursor: z.ZodNullable<z.ZodString>;
211
215
  }, z.core.$strip>;
@@ -306,6 +310,8 @@ export declare const Message: z.ZodObject<{
306
310
  high: "high";
307
311
  low: "low";
308
312
  }>>;
313
+ inReplyTo: z.ZodNullable<z.ZodString>;
314
+ references: z.ZodArray<z.ZodString>;
309
315
  bcc: z.ZodArray<z.ZodObject<{
310
316
  name: z.ZodNullable<z.ZodString>;
311
317
  address: z.ZodString;
@@ -349,8 +355,6 @@ export declare const Message: z.ZodObject<{
349
355
  model: z.ZodString;
350
356
  classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
351
357
  }, z.core.$strip>>;
352
- inReplyTo: z.ZodNullable<z.ZodString>;
353
- references: z.ZodArray<z.ZodString>;
354
358
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
359
  name: z.ZodString;
356
360
  value: z.ZodString;
@@ -395,6 +399,8 @@ export declare const MessagePage: z.ZodObject<{
395
399
  high: "high";
396
400
  low: "low";
397
401
  }>>;
402
+ inReplyTo: z.ZodNullable<z.ZodString>;
403
+ references: z.ZodArray<z.ZodString>;
398
404
  bcc: z.ZodArray<z.ZodObject<{
399
405
  name: z.ZodNullable<z.ZodString>;
400
406
  address: z.ZodString;
@@ -438,8 +444,6 @@ export declare const MessagePage: z.ZodObject<{
438
444
  model: z.ZodString;
439
445
  classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
440
446
  }, z.core.$strip>>;
441
- inReplyTo: z.ZodNullable<z.ZodString>;
442
- references: z.ZodArray<z.ZodString>;
443
447
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
444
448
  name: z.ZodString;
445
449
  value: z.ZodString;
@@ -495,6 +499,8 @@ export declare const SearchHit: z.ZodObject<{
495
499
  high: "high";
496
500
  low: "low";
497
501
  }>>;
502
+ inReplyTo: z.ZodNullable<z.ZodString>;
503
+ references: z.ZodArray<z.ZodString>;
498
504
  id: z.ZodNullable<z.ZodUUID>;
499
505
  }, z.core.$strip>;
500
506
  export type SearchHit = z.infer<typeof SearchHit>;
@@ -539,6 +545,8 @@ export declare const SearchPage: z.ZodObject<{
539
545
  high: "high";
540
546
  low: "low";
541
547
  }>>;
548
+ inReplyTo: z.ZodNullable<z.ZodString>;
549
+ references: z.ZodArray<z.ZodString>;
542
550
  id: z.ZodNullable<z.ZodUUID>;
543
551
  }, z.core.$strip>>;
544
552
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -183,6 +183,10 @@ export declare const mailboxes: {
183
183
  message: string;
184
184
  };
185
185
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
186
+ mail_permission_missing: {
187
+ status: 409;
188
+ message: string;
189
+ };
186
190
  mail_disabled: {
187
191
  status: 409;
188
192
  message: string;
@@ -298,6 +302,10 @@ export declare const mailboxes: {
298
302
  message: string;
299
303
  };
300
304
  unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
305
+ mail_permission_missing: {
306
+ status: 409;
307
+ message: string;
308
+ };
301
309
  mail_disabled: {
302
310
  status: 409;
303
311
  message: string;
@@ -385,6 +393,10 @@ export declare const mailboxes: {
385
393
  status: 400;
386
394
  message: string;
387
395
  };
396
+ mail_permission_missing: {
397
+ status: 409;
398
+ message: string;
399
+ };
388
400
  mail_disabled: {
389
401
  status: 409;
390
402
  message: string;
@@ -486,6 +498,8 @@ export declare const messages: {
486
498
  high: "high";
487
499
  low: "low";
488
500
  }>>;
501
+ inReplyTo: z.ZodNullable<z.ZodString>;
502
+ references: z.ZodArray<z.ZodString>;
489
503
  bcc: z.ZodArray<z.ZodObject<{
490
504
  name: z.ZodNullable<z.ZodString>;
491
505
  address: z.ZodString;
@@ -529,8 +543,6 @@ export declare const messages: {
529
543
  model: z.ZodString;
530
544
  classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
531
545
  }, z.core.$strip>>;
532
- inReplyTo: z.ZodNullable<z.ZodString>;
533
- references: z.ZodArray<z.ZodString>;
534
546
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
535
547
  name: z.ZodString;
536
548
  value: z.ZodString;
@@ -576,6 +588,8 @@ export declare const messages: {
576
588
  high: "high";
577
589
  low: "low";
578
590
  }>>;
591
+ inReplyTo: z.ZodNullable<z.ZodString>;
592
+ references: z.ZodArray<z.ZodString>;
579
593
  }, z.core.$strip>>;
580
594
  nextCursor: z.ZodNullable<z.ZodString>;
581
595
  }, z.core.$strip>
@@ -699,6 +713,8 @@ export declare const messages: {
699
713
  high: "high";
700
714
  low: "low";
701
715
  }>>;
716
+ inReplyTo: z.ZodNullable<z.ZodString>;
717
+ references: z.ZodArray<z.ZodString>;
702
718
  bcc: z.ZodArray<z.ZodObject<{
703
719
  name: z.ZodNullable<z.ZodString>;
704
720
  address: z.ZodString;
@@ -742,8 +758,6 @@ export declare const messages: {
742
758
  model: z.ZodString;
743
759
  classifiedAt: z.ZodPreprocess<z.ZodDate, Date>;
744
760
  }, z.core.$strip>>;
745
- inReplyTo: z.ZodNullable<z.ZodString>;
746
- references: z.ZodArray<z.ZodString>;
747
761
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
748
762
  name: z.ZodString;
749
763
  value: z.ZodString;
@@ -1001,6 +1015,8 @@ export declare const messages: {
1001
1015
  high: "high";
1002
1016
  low: "low";
1003
1017
  }>>;
1018
+ inReplyTo: z.ZodNullable<z.ZodString>;
1019
+ references: z.ZodArray<z.ZodString>;
1004
1020
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
1005
1021
  readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
1006
1022
  readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
@@ -1072,6 +1088,10 @@ export declare const messages: {
1072
1088
  status: 400;
1073
1089
  message: string;
1074
1090
  };
1091
+ mail_permission_missing: {
1092
+ status: 409;
1093
+ message: string;
1094
+ };
1075
1095
  mail_disabled: {
1076
1096
  status: 409;
1077
1097
  message: string;
@@ -1165,6 +1185,10 @@ export declare const messages: {
1165
1185
  status: 404;
1166
1186
  message: string;
1167
1187
  };
1188
+ mail_permission_missing: {
1189
+ status: 409;
1190
+ message: string;
1191
+ };
1168
1192
  mail_disabled: {
1169
1193
  status: 409;
1170
1194
  message: string;
@@ -1257,6 +1281,8 @@ export declare const search: {
1257
1281
  high: "high";
1258
1282
  low: "low";
1259
1283
  }>>;
1284
+ inReplyTo: z.ZodNullable<z.ZodString>;
1285
+ references: z.ZodArray<z.ZodString>;
1260
1286
  id: z.ZodNullable<z.ZodUUID>;
1261
1287
  }, z.core.$strip>>;
1262
1288
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -827,6 +827,11 @@ export declare const orgConnections: {
827
827
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
828
828
  relayEmail: z.ZodNullable<z.ZodEmail>;
829
829
  }, z.core.$strip>;
830
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
831
+ full: "full";
832
+ read_send: "read_send";
833
+ read: "read";
834
+ }>>;
830
835
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
831
836
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
832
837
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -1052,6 +1057,11 @@ export declare const sharedMailboxes: {
1052
1057
  delegateAccountId: z.ZodNullable<z.ZodUUID>;
1053
1058
  relayEmail: z.ZodNullable<z.ZodEmail>;
1054
1059
  }, z.core.$strip>;
1060
+ mailPermissions: z.ZodNullable<z.ZodEnum<{
1061
+ full: "full";
1062
+ read_send: "read_send";
1063
+ read: "read";
1064
+ }>>;
1055
1065
  initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1056
1066
  calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1057
1067
  contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
@@ -31,6 +31,17 @@ export declare const SuppressedData: z.ZodObject<{
31
31
  addresses: z.ZodArray<z.ZodString>;
32
32
  }, z.core.$strip>;
33
33
  export type SuppressedData = z.infer<typeof SuppressedData>;
34
+ export declare const DuplicateMessageIdData: z.ZodObject<{
35
+ outboxId: z.ZodUUID;
36
+ status: z.ZodEnum<{
37
+ failed: "failed";
38
+ cancelled: "cancelled";
39
+ sent: "sent";
40
+ queued: "queued";
41
+ sending: "sending";
42
+ }>;
43
+ }, z.core.$strip>;
44
+ export type DuplicateMessageIdData = z.infer<typeof DuplicateMessageIdData>;
34
45
  export declare const SyncKindsData: z.ZodObject<{
35
46
  kinds: z.ZodArray<z.ZodEnum<{
36
47
  mail: "mail";
@@ -505,6 +516,9 @@ export declare const REASONS: {
505
516
  readonly connect_grants_nothing: {
506
517
  readonly status: 400;
507
518
  };
519
+ readonly mail_permissions_unsupported: {
520
+ readonly status: 400;
521
+ };
508
522
  readonly tenant_not_found: {
509
523
  readonly status: 404;
510
524
  };
@@ -613,6 +627,9 @@ export declare const REASONS: {
613
627
  readonly mail_disabled: {
614
628
  readonly status: 409;
615
629
  };
630
+ readonly mail_permission_missing: {
631
+ readonly status: 409;
632
+ };
616
633
  readonly calendar_disabled: {
617
634
  readonly status: 409;
618
635
  };
@@ -745,6 +762,16 @@ export declare const REASONS: {
745
762
  };
746
763
  readonly duplicate_message_id: {
747
764
  readonly status: 409;
765
+ readonly data: z.ZodObject<{
766
+ outboxId: z.ZodUUID;
767
+ status: z.ZodEnum<{
768
+ failed: "failed";
769
+ cancelled: "cancelled";
770
+ sent: "sent";
771
+ queued: "queued";
772
+ sending: "sending";
773
+ }>;
774
+ }, z.core.$strip>;
748
775
  };
749
776
  readonly suppression_list_not_found: {
750
777
  readonly status: 404;