@workwae/sdk 0.1.0-alpha.1 → 0.1.0-alpha.3
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/README.md +7 -7
- package/client.d.ts +1 -1
- package/contract/accounts/models.d.ts +85 -45
- package/contract/accounts/routes.d.ts +191 -29
- package/contract/ai/models.d.ts +0 -1
- package/contract/ai/routes.d.ts +9 -0
- package/contract/audit-log/models.d.ts +22 -5
- package/contract/audit-log/routes.d.ts +11 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +30 -16
- package/contract/connect/routes.d.ts +51 -7
- package/contract/connect-domain/models.d.ts +41 -0
- package/contract/connect-domain/routes.d.ts +197 -0
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -0
- package/contract/custom-domain.d.ts +12 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +28 -20
- package/contract/events/models.d.ts +139 -79
- package/contract/events/routes.d.ts +54 -44
- package/contract/exports/routes.d.ts +10 -0
- package/contract/identities/models.d.ts +7 -9
- package/contract/identities/routes.d.ts +79 -10
- package/contract/limits.d.ts +27 -73
- package/contract/mail/models.d.ts +230 -50
- package/contract/mail/routes.d.ts +649 -59
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +39 -33
- package/contract/meetings/routes.d.ts +121 -23
- package/contract/oauth-apps/models.d.ts +6 -6
- package/contract/oauth-apps/routes.d.ts +34 -4
- package/contract/org-connections/models.d.ts +93 -39
- package/contract/org-connections/routes.d.ts +352 -43
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +7 -62
- package/contract/public.d.ts +7 -0
- package/contract/reasons.d.ts +559 -21
- package/contract/router.d.ts +6447 -2719
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +140 -45
- package/contract/send/routes.d.ts +310 -31
- package/contract/settings/models.d.ts +73 -13
- package/contract/settings/routes.d.ts +56 -4
- package/contract/suppressions/models.d.ts +21 -28
- package/contract/suppressions/routes.d.ts +62 -14
- package/contract/templates/models.d.ts +0 -14
- package/contract/templates/routes.d.ts +30 -6
- package/contract/threads/models.d.ts +0 -5
- package/contract/threads/routes.d.ts +40 -0
- package/contract/tracking-domain/models.d.ts +41 -0
- package/contract/tracking-domain/routes.d.ts +193 -0
- package/contract/usage/models.d.ts +98 -126
- package/contract/usage/routes.d.ts +48 -20
- package/contract/webhooks/models.d.ts +45 -30
- package/contract/webhooks/routes.d.ts +52 -9
- package/contract/webhooks/signing.d.ts +0 -16
- package/index.js +1 -4334
- package/package.json +6 -7
- package/index.js.map +0 -59
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
/** What checking a password account's mail servers refuses (IMAP and SMTP, before storing). */
|
|
3
2
|
export declare const MAIL_SETTINGS_CHECK: import("../errors.js").DeclaredErrors<{
|
|
4
3
|
readonly login_failed: "A server (IMAP, SMTP, CalDAV or CardDAV) refuses the login.";
|
|
5
4
|
readonly server_not_allowed: "A server resolves to a private or loopback address.";
|
|
6
5
|
readonly plaintext_not_allowed: "A server is named with security none (a plaintext login).";
|
|
7
6
|
}>;
|
|
8
|
-
/** A new password account whose servers were left out. */
|
|
9
7
|
export declare const AUTODISCOVERY_FAILED: import("../errors.js").DeclaredErrors<{
|
|
10
8
|
readonly autodiscovery_failed: "imap was left out and autodiscovery found no IMAP server for the address.";
|
|
11
9
|
}>;
|
|
12
|
-
/** What resolving and checking DAV settings refuses. */
|
|
13
10
|
export declare const DAV_SETTINGS_CHECK: import("../errors.js").DeclaredErrors<{
|
|
14
11
|
readonly dav_discovery_failed: "Neither a CalDAV nor a CardDAV server was found or answered.";
|
|
15
12
|
readonly not_dav_server: "A named CalDAV or CardDAV URL is no DAV server (it answers 404, 403, or not as one).";
|
|
16
13
|
}>;
|
|
17
|
-
/** What resolving the OAuth client of a sign-in or refresh refuses. */
|
|
18
14
|
export declare const OAUTH_CLIENT: import("../errors.js").DeclaredErrors<{
|
|
19
15
|
readonly unknown_oauth_app: "oauthAppId names no OAuth app of the tenant.";
|
|
20
16
|
readonly oauth_app_mismatch: "The OAuth app is for the other provider.";
|
|
@@ -67,12 +63,18 @@ export declare const accounts: {
|
|
|
67
63
|
full: "full";
|
|
68
64
|
}>;
|
|
69
65
|
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
66
|
+
mailEnabled: z.ZodBoolean;
|
|
70
67
|
calendarEnabled: z.ZodBoolean;
|
|
71
68
|
contactsEnabled: z.ZodBoolean;
|
|
72
69
|
undoSendSeconds: z.ZodNumber;
|
|
73
70
|
trackOpens: z.ZodBoolean;
|
|
74
71
|
trackClicks: z.ZodBoolean;
|
|
75
72
|
trackingHoneypot: z.ZodBoolean;
|
|
73
|
+
suppressionCheck: z.ZodEnum<{
|
|
74
|
+
lists: "lists";
|
|
75
|
+
always: "always";
|
|
76
|
+
}>;
|
|
77
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
76
78
|
}, z.core.$strip>;
|
|
77
79
|
settingsOverride: z.ZodObject<{
|
|
78
80
|
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -81,12 +83,18 @@ export declare const accounts: {
|
|
|
81
83
|
full: "full";
|
|
82
84
|
}>>;
|
|
83
85
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
86
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
84
87
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
85
88
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
86
89
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
87
90
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
88
91
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
89
92
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
lists: "lists";
|
|
95
|
+
always: "always";
|
|
96
|
+
}>>;
|
|
97
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
98
|
}, z.core.$strip>;
|
|
91
99
|
runtime: z.ZodNullable<z.ZodObject<{
|
|
92
100
|
state: z.ZodEnum<{
|
|
@@ -144,9 +152,11 @@ export declare const accounts: {
|
|
|
144
152
|
google_delegation: "google_delegation";
|
|
145
153
|
microsoft_app: "microsoft_app";
|
|
146
154
|
shared_mailbox: "shared_mailbox";
|
|
155
|
+
google_group: "google_group";
|
|
147
156
|
}>;
|
|
148
157
|
orgConnectionId: z.ZodNullable<z.ZodUUID>;
|
|
149
158
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
159
|
+
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
150
160
|
}, z.core.$strip>;
|
|
151
161
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
152
162
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
@@ -162,6 +172,8 @@ export declare const accounts: {
|
|
|
162
172
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
163
173
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
164
174
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
175
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
176
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
165
177
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
166
178
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
167
179
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -206,12 +218,18 @@ export declare const accounts: {
|
|
|
206
218
|
full: "full";
|
|
207
219
|
}>;
|
|
208
220
|
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
221
|
+
mailEnabled: z.ZodBoolean;
|
|
209
222
|
calendarEnabled: z.ZodBoolean;
|
|
210
223
|
contactsEnabled: z.ZodBoolean;
|
|
211
224
|
undoSendSeconds: z.ZodNumber;
|
|
212
225
|
trackOpens: z.ZodBoolean;
|
|
213
226
|
trackClicks: z.ZodBoolean;
|
|
214
227
|
trackingHoneypot: z.ZodBoolean;
|
|
228
|
+
suppressionCheck: z.ZodEnum<{
|
|
229
|
+
lists: "lists";
|
|
230
|
+
always: "always";
|
|
231
|
+
}>;
|
|
232
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
215
233
|
}, z.core.$strip>;
|
|
216
234
|
settingsOverride: z.ZodObject<{
|
|
217
235
|
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -220,12 +238,18 @@ export declare const accounts: {
|
|
|
220
238
|
full: "full";
|
|
221
239
|
}>>;
|
|
222
240
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
241
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
223
242
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
224
243
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
225
244
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
226
245
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
227
246
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
228
247
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
248
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
lists: "lists";
|
|
250
|
+
always: "always";
|
|
251
|
+
}>>;
|
|
252
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
229
253
|
}, z.core.$strip>;
|
|
230
254
|
runtime: z.ZodNullable<z.ZodObject<{
|
|
231
255
|
state: z.ZodEnum<{
|
|
@@ -283,9 +307,11 @@ export declare const accounts: {
|
|
|
283
307
|
google_delegation: "google_delegation";
|
|
284
308
|
microsoft_app: "microsoft_app";
|
|
285
309
|
shared_mailbox: "shared_mailbox";
|
|
310
|
+
google_group: "google_group";
|
|
286
311
|
}>;
|
|
287
312
|
orgConnectionId: z.ZodNullable<z.ZodUUID>;
|
|
288
313
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
314
|
+
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
289
315
|
}, z.core.$strip>;
|
|
290
316
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
291
317
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
@@ -299,6 +325,8 @@ export declare const accounts: {
|
|
|
299
325
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
300
326
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
301
327
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
328
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
329
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
302
330
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
303
331
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
304
332
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -310,7 +338,6 @@ export declare const accounts: {
|
|
|
310
338
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
311
339
|
readonly account_not_found: "The account does not exist, or the caller is an account token for another account.";
|
|
312
340
|
}>>, Record<never, never>>;
|
|
313
|
-
/** Headless connect with tokens the tenant already holds (typically from its own OAuth app). */
|
|
314
341
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
315
342
|
provider: z.ZodEnum<{
|
|
316
343
|
google: "google";
|
|
@@ -332,12 +359,18 @@ export declare const accounts: {
|
|
|
332
359
|
full: "full";
|
|
333
360
|
}>>;
|
|
334
361
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
362
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
335
363
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
336
364
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
337
365
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
338
366
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
339
367
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
340
368
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
370
|
+
lists: "lists";
|
|
371
|
+
always: "always";
|
|
372
|
+
}>>;
|
|
373
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
341
374
|
}, z.core.$strip>>;
|
|
342
375
|
sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
343
376
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -371,12 +404,18 @@ export declare const accounts: {
|
|
|
371
404
|
full: "full";
|
|
372
405
|
}>;
|
|
373
406
|
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
407
|
+
mailEnabled: z.ZodBoolean;
|
|
374
408
|
calendarEnabled: z.ZodBoolean;
|
|
375
409
|
contactsEnabled: z.ZodBoolean;
|
|
376
410
|
undoSendSeconds: z.ZodNumber;
|
|
377
411
|
trackOpens: z.ZodBoolean;
|
|
378
412
|
trackClicks: z.ZodBoolean;
|
|
379
413
|
trackingHoneypot: z.ZodBoolean;
|
|
414
|
+
suppressionCheck: z.ZodEnum<{
|
|
415
|
+
lists: "lists";
|
|
416
|
+
always: "always";
|
|
417
|
+
}>;
|
|
418
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
380
419
|
}, z.core.$strip>;
|
|
381
420
|
settingsOverride: z.ZodObject<{
|
|
382
421
|
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -385,12 +424,18 @@ export declare const accounts: {
|
|
|
385
424
|
full: "full";
|
|
386
425
|
}>>;
|
|
387
426
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
427
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
388
428
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
389
429
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
390
430
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
391
431
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
392
432
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
393
433
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
434
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
435
|
+
lists: "lists";
|
|
436
|
+
always: "always";
|
|
437
|
+
}>>;
|
|
438
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
394
439
|
}, z.core.$strip>;
|
|
395
440
|
runtime: z.ZodNullable<z.ZodObject<{
|
|
396
441
|
state: z.ZodEnum<{
|
|
@@ -448,9 +493,11 @@ export declare const accounts: {
|
|
|
448
493
|
google_delegation: "google_delegation";
|
|
449
494
|
microsoft_app: "microsoft_app";
|
|
450
495
|
shared_mailbox: "shared_mailbox";
|
|
496
|
+
google_group: "google_group";
|
|
451
497
|
}>;
|
|
452
498
|
orgConnectionId: z.ZodNullable<z.ZodUUID>;
|
|
453
499
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
500
|
+
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
454
501
|
}, z.core.$strip>;
|
|
455
502
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
456
503
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
@@ -464,6 +511,8 @@ export declare const accounts: {
|
|
|
464
511
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
465
512
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
466
513
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
514
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
515
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
467
516
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
468
517
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
469
518
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -489,6 +538,10 @@ export declare const accounts: {
|
|
|
489
538
|
status: 400;
|
|
490
539
|
message: string;
|
|
491
540
|
};
|
|
541
|
+
interaction_required: {
|
|
542
|
+
status: 400;
|
|
543
|
+
message: string;
|
|
544
|
+
};
|
|
492
545
|
invalid_grant: {
|
|
493
546
|
status: 400;
|
|
494
547
|
message: string;
|
|
@@ -525,18 +578,14 @@ export declare const accounts: {
|
|
|
525
578
|
status: 402;
|
|
526
579
|
message: string;
|
|
527
580
|
};
|
|
528
|
-
plan_limit_accounts:
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
};
|
|
581
|
+
plan_limit_accounts: import("../errors.js").DeclaredError<"plan_limit_accounts">;
|
|
582
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
583
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
532
584
|
plan_module_unavailable: {
|
|
533
585
|
status: 403;
|
|
534
586
|
message: string;
|
|
535
587
|
};
|
|
536
|
-
plan_limit_storage:
|
|
537
|
-
status: 403;
|
|
538
|
-
message: string;
|
|
539
|
-
};
|
|
588
|
+
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
540
589
|
storage_unavailable: {
|
|
541
590
|
status: 400;
|
|
542
591
|
message: string;
|
|
@@ -556,12 +605,18 @@ export declare const accounts: {
|
|
|
556
605
|
full: "full";
|
|
557
606
|
}>>;
|
|
558
607
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
608
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
559
609
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
560
610
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
561
611
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
562
612
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
563
613
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
564
614
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
615
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
616
|
+
lists: "lists";
|
|
617
|
+
always: "always";
|
|
618
|
+
}>>;
|
|
619
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
565
620
|
}, z.core.$strip>>;
|
|
566
621
|
}, z.core.$strip>, z.ZodObject<{
|
|
567
622
|
id: z.ZodUUID;
|
|
@@ -594,12 +649,18 @@ export declare const accounts: {
|
|
|
594
649
|
full: "full";
|
|
595
650
|
}>;
|
|
596
651
|
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
652
|
+
mailEnabled: z.ZodBoolean;
|
|
597
653
|
calendarEnabled: z.ZodBoolean;
|
|
598
654
|
contactsEnabled: z.ZodBoolean;
|
|
599
655
|
undoSendSeconds: z.ZodNumber;
|
|
600
656
|
trackOpens: z.ZodBoolean;
|
|
601
657
|
trackClicks: z.ZodBoolean;
|
|
602
658
|
trackingHoneypot: z.ZodBoolean;
|
|
659
|
+
suppressionCheck: z.ZodEnum<{
|
|
660
|
+
lists: "lists";
|
|
661
|
+
always: "always";
|
|
662
|
+
}>;
|
|
663
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
603
664
|
}, z.core.$strip>;
|
|
604
665
|
settingsOverride: z.ZodObject<{
|
|
605
666
|
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -608,12 +669,18 @@ export declare const accounts: {
|
|
|
608
669
|
full: "full";
|
|
609
670
|
}>>;
|
|
610
671
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
672
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
611
673
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
612
674
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
613
675
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
614
676
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
615
677
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
616
678
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
679
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
680
|
+
lists: "lists";
|
|
681
|
+
always: "always";
|
|
682
|
+
}>>;
|
|
683
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
617
684
|
}, z.core.$strip>;
|
|
618
685
|
runtime: z.ZodNullable<z.ZodObject<{
|
|
619
686
|
state: z.ZodEnum<{
|
|
@@ -671,9 +738,11 @@ export declare const accounts: {
|
|
|
671
738
|
google_delegation: "google_delegation";
|
|
672
739
|
microsoft_app: "microsoft_app";
|
|
673
740
|
shared_mailbox: "shared_mailbox";
|
|
741
|
+
google_group: "google_group";
|
|
674
742
|
}>;
|
|
675
743
|
orgConnectionId: z.ZodNullable<z.ZodUUID>;
|
|
676
744
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
745
|
+
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
677
746
|
}, z.core.$strip>;
|
|
678
747
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
679
748
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
@@ -687,6 +756,8 @@ export declare const accounts: {
|
|
|
687
756
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
688
757
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
689
758
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
759
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
760
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
690
761
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
691
762
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
692
763
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -704,14 +775,14 @@ export declare const accounts: {
|
|
|
704
775
|
status: 409;
|
|
705
776
|
message: string;
|
|
706
777
|
};
|
|
707
|
-
plan_limit_storage:
|
|
708
|
-
status: 403;
|
|
709
|
-
message: string;
|
|
710
|
-
};
|
|
778
|
+
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
711
779
|
storage_unavailable: {
|
|
712
780
|
status: 400;
|
|
713
781
|
message: string;
|
|
714
782
|
};
|
|
783
|
+
plan_limit_accounts: import("../errors.js").DeclaredError<"plan_limit_accounts">;
|
|
784
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
785
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
715
786
|
account_not_found: {
|
|
716
787
|
status: 404;
|
|
717
788
|
message: string;
|
|
@@ -722,10 +793,13 @@ export declare const accounts: {
|
|
|
722
793
|
accountId: z.ZodUUID;
|
|
723
794
|
}, z.core.$strip>;
|
|
724
795
|
query: z.ZodObject<{
|
|
725
|
-
purge: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
796
|
+
purge: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
797
|
+
z.ZodBoolean,
|
|
798
|
+
z.ZodEnum<{
|
|
799
|
+
true: "true";
|
|
800
|
+
false: "false";
|
|
801
|
+
}>
|
|
802
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
729
803
|
}, z.core.$strip>;
|
|
730
804
|
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
731
805
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
@@ -734,6 +808,8 @@ export declare const accounts: {
|
|
|
734
808
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
735
809
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
736
810
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
811
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
812
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
737
813
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
738
814
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
739
815
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -745,7 +821,51 @@ export declare const accounts: {
|
|
|
745
821
|
}>>, import("../errors.js").DeclaredErrors<{
|
|
746
822
|
readonly account_not_found: "The account does not exist, or (without purge) is already deleted.";
|
|
747
823
|
}>>, Record<never, never>>;
|
|
748
|
-
|
|
824
|
+
sync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
825
|
+
accountId: z.ZodUUID;
|
|
826
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
827
|
+
mail: "mail";
|
|
828
|
+
calendar: "calendar";
|
|
829
|
+
contacts: "contacts";
|
|
830
|
+
}>>>;
|
|
831
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
833
|
+
mail: "mail";
|
|
834
|
+
calendar: "calendar";
|
|
835
|
+
contacts: "contacts";
|
|
836
|
+
}>>;
|
|
837
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
838
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
839
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
840
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
841
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
842
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
843
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
844
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
845
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
846
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
847
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
848
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
849
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
850
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
851
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
852
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
853
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
854
|
+
}>>, {
|
|
855
|
+
account_disabled: {
|
|
856
|
+
status: 409;
|
|
857
|
+
message: string;
|
|
858
|
+
};
|
|
859
|
+
account_reauth_required: {
|
|
860
|
+
status: 409;
|
|
861
|
+
message: string;
|
|
862
|
+
};
|
|
863
|
+
sync_kinds_disabled: import("../errors.js").DeclaredError<"sync_kinds_disabled">;
|
|
864
|
+
account_not_found: {
|
|
865
|
+
status: 404;
|
|
866
|
+
message: string;
|
|
867
|
+
};
|
|
868
|
+
}>, Record<never, never>>;
|
|
749
869
|
mintToken: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
750
870
|
accountId: z.ZodUUID;
|
|
751
871
|
ttlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
@@ -759,6 +879,8 @@ export declare const accounts: {
|
|
|
759
879
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
760
880
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
761
881
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
882
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
883
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
762
884
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
763
885
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
764
886
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -812,12 +934,18 @@ export declare const imapAccounts: {
|
|
|
812
934
|
full: "full";
|
|
813
935
|
}>>;
|
|
814
936
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
937
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
815
938
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
816
939
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
817
940
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
818
941
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
819
942
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
820
943
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
944
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
945
|
+
lists: "lists";
|
|
946
|
+
always: "always";
|
|
947
|
+
}>>;
|
|
948
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
821
949
|
}, z.core.$strip>>;
|
|
822
950
|
}, z.core.$strip>, z.ZodObject<{
|
|
823
951
|
id: z.ZodUUID;
|
|
@@ -850,12 +978,18 @@ export declare const imapAccounts: {
|
|
|
850
978
|
full: "full";
|
|
851
979
|
}>;
|
|
852
980
|
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
981
|
+
mailEnabled: z.ZodBoolean;
|
|
853
982
|
calendarEnabled: z.ZodBoolean;
|
|
854
983
|
contactsEnabled: z.ZodBoolean;
|
|
855
984
|
undoSendSeconds: z.ZodNumber;
|
|
856
985
|
trackOpens: z.ZodBoolean;
|
|
857
986
|
trackClicks: z.ZodBoolean;
|
|
858
987
|
trackingHoneypot: z.ZodBoolean;
|
|
988
|
+
suppressionCheck: z.ZodEnum<{
|
|
989
|
+
lists: "lists";
|
|
990
|
+
always: "always";
|
|
991
|
+
}>;
|
|
992
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
859
993
|
}, z.core.$strip>;
|
|
860
994
|
settingsOverride: z.ZodObject<{
|
|
861
995
|
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -864,12 +998,18 @@ export declare const imapAccounts: {
|
|
|
864
998
|
full: "full";
|
|
865
999
|
}>>;
|
|
866
1000
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1001
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
867
1002
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
868
1003
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
869
1004
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
870
1005
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
871
1006
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
872
1007
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
1008
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
1009
|
+
lists: "lists";
|
|
1010
|
+
always: "always";
|
|
1011
|
+
}>>;
|
|
1012
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
873
1013
|
}, z.core.$strip>;
|
|
874
1014
|
runtime: z.ZodNullable<z.ZodObject<{
|
|
875
1015
|
state: z.ZodEnum<{
|
|
@@ -927,9 +1067,11 @@ export declare const imapAccounts: {
|
|
|
927
1067
|
google_delegation: "google_delegation";
|
|
928
1068
|
microsoft_app: "microsoft_app";
|
|
929
1069
|
shared_mailbox: "shared_mailbox";
|
|
1070
|
+
google_group: "google_group";
|
|
930
1071
|
}>;
|
|
931
1072
|
orgConnectionId: z.ZodNullable<z.ZodUUID>;
|
|
932
1073
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
1074
|
+
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
933
1075
|
}, z.core.$strip>;
|
|
934
1076
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
935
1077
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
@@ -943,6 +1085,8 @@ export declare const imapAccounts: {
|
|
|
943
1085
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
944
1086
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
945
1087
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1088
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1089
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
946
1090
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
947
1091
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
948
1092
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -952,18 +1096,18 @@ export declare const imapAccounts: {
|
|
|
952
1096
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
953
1097
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
954
1098
|
}>>, {
|
|
955
|
-
|
|
956
|
-
status: 402;
|
|
957
|
-
message: string;
|
|
958
|
-
};
|
|
959
|
-
plan_limit_accounts: {
|
|
1099
|
+
plan_module_unavailable: {
|
|
960
1100
|
status: 403;
|
|
961
1101
|
message: string;
|
|
962
1102
|
};
|
|
963
|
-
|
|
964
|
-
status:
|
|
1103
|
+
billing_past_due: {
|
|
1104
|
+
status: 402;
|
|
965
1105
|
message: string;
|
|
966
1106
|
};
|
|
1107
|
+
plan_limit_accounts: import("../errors.js").DeclaredError<"plan_limit_accounts">;
|
|
1108
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
1109
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
1110
|
+
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
967
1111
|
storage_unavailable: {
|
|
968
1112
|
status: 400;
|
|
969
1113
|
message: string;
|
|
@@ -1065,12 +1209,18 @@ export declare const imapSettings: {
|
|
|
1065
1209
|
full: "full";
|
|
1066
1210
|
}>;
|
|
1067
1211
|
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
1212
|
+
mailEnabled: z.ZodBoolean;
|
|
1068
1213
|
calendarEnabled: z.ZodBoolean;
|
|
1069
1214
|
contactsEnabled: z.ZodBoolean;
|
|
1070
1215
|
undoSendSeconds: z.ZodNumber;
|
|
1071
1216
|
trackOpens: z.ZodBoolean;
|
|
1072
1217
|
trackClicks: z.ZodBoolean;
|
|
1073
1218
|
trackingHoneypot: z.ZodBoolean;
|
|
1219
|
+
suppressionCheck: z.ZodEnum<{
|
|
1220
|
+
lists: "lists";
|
|
1221
|
+
always: "always";
|
|
1222
|
+
}>;
|
|
1223
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
1074
1224
|
}, z.core.$strip>;
|
|
1075
1225
|
settingsOverride: z.ZodObject<{
|
|
1076
1226
|
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1079,12 +1229,18 @@ export declare const imapSettings: {
|
|
|
1079
1229
|
full: "full";
|
|
1080
1230
|
}>>;
|
|
1081
1231
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1232
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1082
1233
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1083
1234
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1084
1235
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1085
1236
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
1086
1237
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
1087
1238
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
1239
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
1240
|
+
lists: "lists";
|
|
1241
|
+
always: "always";
|
|
1242
|
+
}>>;
|
|
1243
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1088
1244
|
}, z.core.$strip>;
|
|
1089
1245
|
runtime: z.ZodNullable<z.ZodObject<{
|
|
1090
1246
|
state: z.ZodEnum<{
|
|
@@ -1142,9 +1298,11 @@ export declare const imapSettings: {
|
|
|
1142
1298
|
google_delegation: "google_delegation";
|
|
1143
1299
|
microsoft_app: "microsoft_app";
|
|
1144
1300
|
shared_mailbox: "shared_mailbox";
|
|
1301
|
+
google_group: "google_group";
|
|
1145
1302
|
}>;
|
|
1146
1303
|
orgConnectionId: z.ZodNullable<z.ZodUUID>;
|
|
1147
1304
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
1305
|
+
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
1148
1306
|
}, z.core.$strip>;
|
|
1149
1307
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
1150
1308
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
@@ -1158,6 +1316,8 @@ export declare const imapSettings: {
|
|
|
1158
1316
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1159
1317
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1160
1318
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1319
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1320
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1161
1321
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1162
1322
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1163
1323
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1304,6 +1464,8 @@ export declare const autoconfig: {
|
|
|
1304
1464
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1305
1465
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1306
1466
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1467
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1468
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1307
1469
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1308
1470
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1309
1471
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
package/contract/ai/models.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export declare const CreateAiDraft: z.ZodObject<{
|
|
|
23
23
|
}>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
export type CreateAiDraft = z.infer<typeof CreateAiDraft>;
|
|
26
|
-
/** Email text for a person to edit; nothing is sent or saved. */
|
|
27
26
|
export declare const AiDraft: z.ZodObject<{
|
|
28
27
|
text: z.ZodString;
|
|
29
28
|
}, z.core.$strip>;
|
package/contract/ai/routes.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export declare const ai: {
|
|
|
19
19
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
20
20
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
21
21
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
22
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
23
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
22
24
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
23
25
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
24
26
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -29,6 +31,10 @@ export declare const ai: {
|
|
|
29
31
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
30
32
|
}>>, {
|
|
31
33
|
unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
|
|
34
|
+
mail_disabled: {
|
|
35
|
+
status: 409;
|
|
36
|
+
message: string;
|
|
37
|
+
};
|
|
32
38
|
provider_not_found: {
|
|
33
39
|
status: 404;
|
|
34
40
|
message: string;
|
|
@@ -81,6 +87,9 @@ export declare const ai: {
|
|
|
81
87
|
status: 409;
|
|
82
88
|
message: string;
|
|
83
89
|
};
|
|
90
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
91
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
92
|
+
plan_limit_ai: import("../errors.js").DeclaredError<"plan_limit_ai">;
|
|
84
93
|
plan_module_unavailable: {
|
|
85
94
|
status: 403;
|
|
86
95
|
message: string;
|