@workwae/sdk 0.1.0-alpha.3 → 0.1.0-alpha.4
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/contract/accounts/models.d.ts +21 -0
- package/contract/accounts/routes.d.ts +39 -0
- package/contract/connect/models.d.ts +15 -0
- package/contract/connect/routes.d.ts +18 -0
- package/contract/errors.d.ts +6 -0
- package/contract/mail/routes.d.ts +20 -0
- package/contract/org-connections/routes.d.ts +10 -0
- package/contract/reasons.d.ts +6 -0
- package/contract/router.d.ts +119 -0
- package/contract/send/routes.d.ts +24 -0
- package/contract/threads/routes.d.ts +8 -0
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -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;
|
package/contract/errors.d.ts
CHANGED
|
@@ -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,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;
|
|
@@ -1072,6 +1084,10 @@ export declare const messages: {
|
|
|
1072
1084
|
status: 400;
|
|
1073
1085
|
message: string;
|
|
1074
1086
|
};
|
|
1087
|
+
mail_permission_missing: {
|
|
1088
|
+
status: 409;
|
|
1089
|
+
message: string;
|
|
1090
|
+
};
|
|
1075
1091
|
mail_disabled: {
|
|
1076
1092
|
status: 409;
|
|
1077
1093
|
message: string;
|
|
@@ -1165,6 +1181,10 @@ export declare const messages: {
|
|
|
1165
1181
|
status: 404;
|
|
1166
1182
|
message: string;
|
|
1167
1183
|
};
|
|
1184
|
+
mail_permission_missing: {
|
|
1185
|
+
status: 409;
|
|
1186
|
+
message: string;
|
|
1187
|
+
};
|
|
1168
1188
|
mail_disabled: {
|
|
1169
1189
|
status: 409;
|
|
1170
1190
|
message: string;
|
|
@@ -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>>;
|
package/contract/reasons.d.ts
CHANGED
|
@@ -505,6 +505,9 @@ export declare const REASONS: {
|
|
|
505
505
|
readonly connect_grants_nothing: {
|
|
506
506
|
readonly status: 400;
|
|
507
507
|
};
|
|
508
|
+
readonly mail_permissions_unsupported: {
|
|
509
|
+
readonly status: 400;
|
|
510
|
+
};
|
|
508
511
|
readonly tenant_not_found: {
|
|
509
512
|
readonly status: 404;
|
|
510
513
|
};
|
|
@@ -613,6 +616,9 @@ export declare const REASONS: {
|
|
|
613
616
|
readonly mail_disabled: {
|
|
614
617
|
readonly status: 409;
|
|
615
618
|
};
|
|
619
|
+
readonly mail_permission_missing: {
|
|
620
|
+
readonly status: 409;
|
|
621
|
+
};
|
|
616
622
|
readonly calendar_disabled: {
|
|
617
623
|
readonly status: 409;
|
|
618
624
|
};
|
package/contract/router.d.ts
CHANGED
|
@@ -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;
|
|
@@ -2065,6 +2106,10 @@ export declare const v1Contract: {
|
|
|
2065
2106
|
status: 400;
|
|
2066
2107
|
message: string;
|
|
2067
2108
|
};
|
|
2109
|
+
mail_permission_missing: {
|
|
2110
|
+
status: 409;
|
|
2111
|
+
message: string;
|
|
2112
|
+
};
|
|
2068
2113
|
mail_disabled: {
|
|
2069
2114
|
status: 409;
|
|
2070
2115
|
message: string;
|
|
@@ -2158,6 +2203,10 @@ export declare const v1Contract: {
|
|
|
2158
2203
|
status: 404;
|
|
2159
2204
|
message: string;
|
|
2160
2205
|
};
|
|
2206
|
+
mail_permission_missing: {
|
|
2207
|
+
status: 409;
|
|
2208
|
+
message: string;
|
|
2209
|
+
};
|
|
2161
2210
|
mail_disabled: {
|
|
2162
2211
|
status: 409;
|
|
2163
2212
|
message: string;
|
|
@@ -2609,6 +2658,10 @@ export declare const v1Contract: {
|
|
|
2609
2658
|
status: 404;
|
|
2610
2659
|
message: string;
|
|
2611
2660
|
};
|
|
2661
|
+
mail_permission_missing: {
|
|
2662
|
+
status: 409;
|
|
2663
|
+
message: string;
|
|
2664
|
+
};
|
|
2612
2665
|
mail_disabled: {
|
|
2613
2666
|
status: 409;
|
|
2614
2667
|
message: string;
|
|
@@ -2691,6 +2744,10 @@ export declare const v1Contract: {
|
|
|
2691
2744
|
status: 404;
|
|
2692
2745
|
message: string;
|
|
2693
2746
|
};
|
|
2747
|
+
mail_permission_missing: {
|
|
2748
|
+
status: 409;
|
|
2749
|
+
message: string;
|
|
2750
|
+
};
|
|
2694
2751
|
mail_disabled: {
|
|
2695
2752
|
status: 409;
|
|
2696
2753
|
message: string;
|
|
@@ -2812,6 +2869,10 @@ export declare const v1Contract: {
|
|
|
2812
2869
|
status: 502;
|
|
2813
2870
|
message: string;
|
|
2814
2871
|
};
|
|
2872
|
+
mail_permission_missing: {
|
|
2873
|
+
status: 409;
|
|
2874
|
+
message: string;
|
|
2875
|
+
};
|
|
2815
2876
|
provider_not_found: {
|
|
2816
2877
|
status: 404;
|
|
2817
2878
|
message: string;
|
|
@@ -3006,6 +3067,10 @@ export declare const v1Contract: {
|
|
|
3006
3067
|
status: 404;
|
|
3007
3068
|
message: string;
|
|
3008
3069
|
};
|
|
3070
|
+
mail_permission_missing: {
|
|
3071
|
+
status: 409;
|
|
3072
|
+
message: string;
|
|
3073
|
+
};
|
|
3009
3074
|
provider_not_found: {
|
|
3010
3075
|
status: 404;
|
|
3011
3076
|
message: string;
|
|
@@ -3162,6 +3227,10 @@ export declare const v1Contract: {
|
|
|
3162
3227
|
status: 404;
|
|
3163
3228
|
message: string;
|
|
3164
3229
|
};
|
|
3230
|
+
mail_permission_missing: {
|
|
3231
|
+
status: 409;
|
|
3232
|
+
message: string;
|
|
3233
|
+
};
|
|
3165
3234
|
mail_disabled: {
|
|
3166
3235
|
status: 409;
|
|
3167
3236
|
message: string;
|
|
@@ -3282,6 +3351,10 @@ export declare const v1Contract: {
|
|
|
3282
3351
|
status: 404;
|
|
3283
3352
|
message: string;
|
|
3284
3353
|
};
|
|
3354
|
+
mail_permission_missing: {
|
|
3355
|
+
status: 409;
|
|
3356
|
+
message: string;
|
|
3357
|
+
};
|
|
3285
3358
|
mail_disabled: {
|
|
3286
3359
|
status: 409;
|
|
3287
3360
|
message: string;
|
|
@@ -3445,6 +3518,10 @@ export declare const v1Contract: {
|
|
|
3445
3518
|
status: 409;
|
|
3446
3519
|
message: string;
|
|
3447
3520
|
};
|
|
3521
|
+
mail_permission_missing: {
|
|
3522
|
+
status: 409;
|
|
3523
|
+
message: string;
|
|
3524
|
+
};
|
|
3448
3525
|
template_and_inline_fields: {
|
|
3449
3526
|
status: 400;
|
|
3450
3527
|
message: string;
|
|
@@ -4016,6 +4093,10 @@ export declare const v1Contract: {
|
|
|
4016
4093
|
status: 400;
|
|
4017
4094
|
message: string;
|
|
4018
4095
|
};
|
|
4096
|
+
mail_permission_missing: {
|
|
4097
|
+
status: 409;
|
|
4098
|
+
message: string;
|
|
4099
|
+
};
|
|
4019
4100
|
template_and_inline_fields: {
|
|
4020
4101
|
status: 400;
|
|
4021
4102
|
message: string;
|
|
@@ -10598,6 +10679,11 @@ export declare const v1Contract: {
|
|
|
10598
10679
|
api: "api";
|
|
10599
10680
|
}>>;
|
|
10600
10681
|
sharedMailboxesEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
10682
|
+
mailPermissions: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
10683
|
+
full: "full";
|
|
10684
|
+
read_send: "read_send";
|
|
10685
|
+
read: "read";
|
|
10686
|
+
}>>;
|
|
10601
10687
|
}, import("zod/v4/core").$strip>>;
|
|
10602
10688
|
mcp: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
10603
10689
|
scopes: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
@@ -10663,6 +10749,10 @@ export declare const v1Contract: {
|
|
|
10663
10749
|
status: 402;
|
|
10664
10750
|
message: string;
|
|
10665
10751
|
};
|
|
10752
|
+
mail_permissions_unsupported: {
|
|
10753
|
+
status: 400;
|
|
10754
|
+
message: string;
|
|
10755
|
+
};
|
|
10666
10756
|
unknown_account: import("./errors.js").DeclaredError<"unknown_account">;
|
|
10667
10757
|
redirect_uri_not_allowed: {
|
|
10668
10758
|
status: 400;
|
|
@@ -10797,6 +10887,11 @@ export declare const v1Contract: {
|
|
|
10797
10887
|
api: "api";
|
|
10798
10888
|
}>>;
|
|
10799
10889
|
sharedMailboxesEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
10890
|
+
mailPermissions: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
10891
|
+
full: "full";
|
|
10892
|
+
read_send: "read_send";
|
|
10893
|
+
read: "read";
|
|
10894
|
+
}>>;
|
|
10800
10895
|
}, import("zod/v4/core").$strip>>;
|
|
10801
10896
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10802
10897
|
authorizeUrl: import("zod").ZodURL;
|
|
@@ -10863,6 +10958,10 @@ export declare const v1Contract: {
|
|
|
10863
10958
|
status: 402;
|
|
10864
10959
|
message: string;
|
|
10865
10960
|
};
|
|
10961
|
+
mail_permissions_unsupported: {
|
|
10962
|
+
status: 400;
|
|
10963
|
+
message: string;
|
|
10964
|
+
};
|
|
10866
10965
|
unknown_account: import("./errors.js").DeclaredError<"unknown_account">;
|
|
10867
10966
|
redirect_uri_not_allowed: {
|
|
10868
10967
|
status: 400;
|
|
@@ -11706,6 +11805,11 @@ export declare const v1Contract: {
|
|
|
11706
11805
|
delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
11707
11806
|
relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
|
|
11708
11807
|
}, import("zod/v4/core").$strip>;
|
|
11808
|
+
mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
11809
|
+
full: "full";
|
|
11810
|
+
read_send: "read_send";
|
|
11811
|
+
read: "read";
|
|
11812
|
+
}>>;
|
|
11709
11813
|
initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
11710
11814
|
calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
11711
11815
|
contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
@@ -11931,6 +12035,11 @@ export declare const v1Contract: {
|
|
|
11931
12035
|
delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
11932
12036
|
relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
|
|
11933
12037
|
}, import("zod/v4/core").$strip>;
|
|
12038
|
+
mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
12039
|
+
full: "full";
|
|
12040
|
+
read_send: "read_send";
|
|
12041
|
+
read: "read";
|
|
12042
|
+
}>>;
|
|
11934
12043
|
initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
11935
12044
|
calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
11936
12045
|
contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
@@ -12196,6 +12305,11 @@ export declare const v1Contract: {
|
|
|
12196
12305
|
delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
12197
12306
|
relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
|
|
12198
12307
|
}, import("zod/v4/core").$strip>;
|
|
12308
|
+
mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
12309
|
+
full: "full";
|
|
12310
|
+
read_send: "read_send";
|
|
12311
|
+
read: "read";
|
|
12312
|
+
}>>;
|
|
12199
12313
|
initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
12200
12314
|
calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
12201
12315
|
contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
@@ -12427,6 +12541,11 @@ export declare const v1Contract: {
|
|
|
12427
12541
|
delegateAccountId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
12428
12542
|
relayEmail: import("zod").ZodNullable<import("zod").ZodEmail>;
|
|
12429
12543
|
}, import("zod/v4/core").$strip>;
|
|
12544
|
+
mailPermissions: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
12545
|
+
full: "full";
|
|
12546
|
+
read_send: "read_send";
|
|
12547
|
+
read: "read";
|
|
12548
|
+
}>>;
|
|
12430
12549
|
initializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
12431
12550
|
calendarInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
12432
12551
|
contactsInitializedAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|