@workwae/sdk 0.1.0-alpha.1 → 0.1.0-alpha.2
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 +19 -5
- package/contract/audit-log/routes.d.ts +10 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +28 -16
- package/contract/connect/routes.d.ts +46 -7
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -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 +21 -73
- package/contract/mail/models.d.ts +91 -48
- package/contract/mail/routes.d.ts +458 -18
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +28 -33
- package/contract/meetings/routes.d.ts +44 -25
- package/contract/oauth-apps/models.d.ts +0 -6
- package/contract/oauth-apps/routes.d.ts +8 -0
- package/contract/org-connections/models.d.ts +83 -39
- package/contract/org-connections/routes.d.ts +320 -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 +6 -0
- package/contract/reasons.d.ts +532 -21
- package/contract/router.d.ts +6425 -3212
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +82 -45
- package/contract/send/routes.d.ts +281 -32
- 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,9 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
/** A mailboxId (or addMailboxIds, removeMailboxIds) the account does not have. */
|
|
3
2
|
export declare const UNKNOWN_MAILBOX: import("../errors.js").DeclaredErrors<{
|
|
4
3
|
readonly unknown_mailbox: "A mailbox id names no live mailbox of the account; data.ids lists them.";
|
|
5
4
|
}>;
|
|
6
|
-
/** What a change made at the provider answers when the provider refuses it. */
|
|
7
5
|
export declare const PROVIDER_CHANGE: {
|
|
8
6
|
provider_not_found: {
|
|
9
7
|
status: 404;
|
|
@@ -45,13 +43,13 @@ export declare const mailboxes: {
|
|
|
45
43
|
parentId: z.ZodNullable<z.ZodUUID>;
|
|
46
44
|
role: z.ZodEnum<{
|
|
47
45
|
custom: "custom";
|
|
46
|
+
all: "all";
|
|
48
47
|
inbox: "inbox";
|
|
49
48
|
sent: "sent";
|
|
50
49
|
drafts: "drafts";
|
|
51
50
|
trash: "trash";
|
|
52
51
|
junk: "junk";
|
|
53
52
|
archive: "archive";
|
|
54
|
-
all: "all";
|
|
55
53
|
important: "important";
|
|
56
54
|
}>;
|
|
57
55
|
kind: z.ZodEnum<{
|
|
@@ -68,6 +66,172 @@ export declare const mailboxes: {
|
|
|
68
66
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
69
67
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
70
68
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
69
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
70
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
71
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
72
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
73
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
74
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
75
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
76
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
77
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
78
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
79
|
+
}>>, {
|
|
80
|
+
mail_disabled: {
|
|
81
|
+
status: 409;
|
|
82
|
+
message: string;
|
|
83
|
+
};
|
|
84
|
+
account_not_found: {
|
|
85
|
+
status: 404;
|
|
86
|
+
message: string;
|
|
87
|
+
};
|
|
88
|
+
plan_module_unavailable: {
|
|
89
|
+
status: 403;
|
|
90
|
+
message: string;
|
|
91
|
+
};
|
|
92
|
+
}>, Record<never, never>>;
|
|
93
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
94
|
+
accountId: z.ZodUUID;
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
parentId: z.ZodOptional<z.ZodUUID>;
|
|
97
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
+
id: z.ZodUUID;
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
path: z.ZodString;
|
|
101
|
+
parentId: z.ZodNullable<z.ZodUUID>;
|
|
102
|
+
role: z.ZodEnum<{
|
|
103
|
+
custom: "custom";
|
|
104
|
+
all: "all";
|
|
105
|
+
inbox: "inbox";
|
|
106
|
+
sent: "sent";
|
|
107
|
+
drafts: "drafts";
|
|
108
|
+
trash: "trash";
|
|
109
|
+
junk: "junk";
|
|
110
|
+
archive: "archive";
|
|
111
|
+
important: "important";
|
|
112
|
+
}>;
|
|
113
|
+
kind: z.ZodEnum<{
|
|
114
|
+
label: "label";
|
|
115
|
+
folder: "folder";
|
|
116
|
+
}>;
|
|
117
|
+
totalCount: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
unreadCount: z.ZodNullable<z.ZodNumber>;
|
|
119
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
120
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
121
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
122
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
123
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
124
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
125
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
126
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
127
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
128
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
129
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
130
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
131
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
132
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
133
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
134
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
135
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
136
|
+
}>>, {
|
|
137
|
+
provider_not_found: {
|
|
138
|
+
status: 404;
|
|
139
|
+
message: string;
|
|
140
|
+
};
|
|
141
|
+
provider_forbidden: {
|
|
142
|
+
status: 403;
|
|
143
|
+
message: string;
|
|
144
|
+
};
|
|
145
|
+
provider_conflict: {
|
|
146
|
+
status: 409;
|
|
147
|
+
message: string;
|
|
148
|
+
};
|
|
149
|
+
provider_unsupported: {
|
|
150
|
+
status: 400;
|
|
151
|
+
message: string;
|
|
152
|
+
};
|
|
153
|
+
provider_rejected: {
|
|
154
|
+
status: 400;
|
|
155
|
+
message: string;
|
|
156
|
+
};
|
|
157
|
+
provider_unavailable: {
|
|
158
|
+
status: 502;
|
|
159
|
+
message: string;
|
|
160
|
+
};
|
|
161
|
+
provider_throttled: {
|
|
162
|
+
status: 429;
|
|
163
|
+
message: string;
|
|
164
|
+
};
|
|
165
|
+
account_paused: {
|
|
166
|
+
status: 409;
|
|
167
|
+
message: string;
|
|
168
|
+
};
|
|
169
|
+
account_disabled: {
|
|
170
|
+
status: 409;
|
|
171
|
+
message: string;
|
|
172
|
+
};
|
|
173
|
+
account_reauth_required: {
|
|
174
|
+
status: 409;
|
|
175
|
+
message: string;
|
|
176
|
+
};
|
|
177
|
+
account_misconfigured: {
|
|
178
|
+
status: 409;
|
|
179
|
+
message: string;
|
|
180
|
+
};
|
|
181
|
+
group_unsupported: {
|
|
182
|
+
status: 400;
|
|
183
|
+
message: string;
|
|
184
|
+
};
|
|
185
|
+
unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
|
|
186
|
+
mail_disabled: {
|
|
187
|
+
status: 409;
|
|
188
|
+
message: string;
|
|
189
|
+
};
|
|
190
|
+
account_not_found: {
|
|
191
|
+
status: 404;
|
|
192
|
+
message: string;
|
|
193
|
+
};
|
|
194
|
+
plan_module_unavailable: {
|
|
195
|
+
status: 403;
|
|
196
|
+
message: string;
|
|
197
|
+
};
|
|
198
|
+
}>, Record<never, never>>;
|
|
199
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
200
|
+
accountId: z.ZodUUID;
|
|
201
|
+
mailboxId: z.ZodUUID;
|
|
202
|
+
name: z.ZodOptional<z.ZodString>;
|
|
203
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
205
|
+
id: z.ZodUUID;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
path: z.ZodString;
|
|
208
|
+
parentId: z.ZodNullable<z.ZodUUID>;
|
|
209
|
+
role: z.ZodEnum<{
|
|
210
|
+
custom: "custom";
|
|
211
|
+
all: "all";
|
|
212
|
+
inbox: "inbox";
|
|
213
|
+
sent: "sent";
|
|
214
|
+
drafts: "drafts";
|
|
215
|
+
trash: "trash";
|
|
216
|
+
junk: "junk";
|
|
217
|
+
archive: "archive";
|
|
218
|
+
important: "important";
|
|
219
|
+
}>;
|
|
220
|
+
kind: z.ZodEnum<{
|
|
221
|
+
label: "label";
|
|
222
|
+
folder: "folder";
|
|
223
|
+
}>;
|
|
224
|
+
totalCount: z.ZodNullable<z.ZodNumber>;
|
|
225
|
+
unreadCount: z.ZodNullable<z.ZodNumber>;
|
|
226
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
227
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
228
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
229
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
230
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
231
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
232
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
233
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
234
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
71
235
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
72
236
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
73
237
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -76,25 +240,201 @@ export declare const mailboxes: {
|
|
|
76
240
|
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
77
241
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
78
242
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
79
|
-
}>>,
|
|
80
|
-
|
|
81
|
-
|
|
243
|
+
}>>, {
|
|
244
|
+
provider_not_found: {
|
|
245
|
+
status: 404;
|
|
246
|
+
message: string;
|
|
247
|
+
};
|
|
248
|
+
provider_forbidden: {
|
|
249
|
+
status: 403;
|
|
250
|
+
message: string;
|
|
251
|
+
};
|
|
252
|
+
provider_conflict: {
|
|
253
|
+
status: 409;
|
|
254
|
+
message: string;
|
|
255
|
+
};
|
|
256
|
+
provider_unsupported: {
|
|
257
|
+
status: 400;
|
|
258
|
+
message: string;
|
|
259
|
+
};
|
|
260
|
+
provider_rejected: {
|
|
261
|
+
status: 400;
|
|
262
|
+
message: string;
|
|
263
|
+
};
|
|
264
|
+
provider_unavailable: {
|
|
265
|
+
status: 502;
|
|
266
|
+
message: string;
|
|
267
|
+
};
|
|
268
|
+
provider_throttled: {
|
|
269
|
+
status: 429;
|
|
270
|
+
message: string;
|
|
271
|
+
};
|
|
272
|
+
account_paused: {
|
|
273
|
+
status: 409;
|
|
274
|
+
message: string;
|
|
275
|
+
};
|
|
276
|
+
account_disabled: {
|
|
277
|
+
status: 409;
|
|
278
|
+
message: string;
|
|
279
|
+
};
|
|
280
|
+
account_reauth_required: {
|
|
281
|
+
status: 409;
|
|
282
|
+
message: string;
|
|
283
|
+
};
|
|
284
|
+
account_misconfigured: {
|
|
285
|
+
status: 409;
|
|
286
|
+
message: string;
|
|
287
|
+
};
|
|
288
|
+
mailbox_protected: {
|
|
289
|
+
status: 409;
|
|
290
|
+
message: string;
|
|
291
|
+
};
|
|
292
|
+
mailbox_parent: {
|
|
293
|
+
status: 400;
|
|
294
|
+
message: string;
|
|
295
|
+
};
|
|
296
|
+
group_unsupported: {
|
|
297
|
+
status: 400;
|
|
298
|
+
message: string;
|
|
299
|
+
};
|
|
300
|
+
unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
|
|
301
|
+
mail_disabled: {
|
|
302
|
+
status: 409;
|
|
303
|
+
message: string;
|
|
304
|
+
};
|
|
305
|
+
account_not_found: {
|
|
306
|
+
status: 404;
|
|
307
|
+
message: string;
|
|
308
|
+
};
|
|
309
|
+
plan_module_unavailable: {
|
|
310
|
+
status: 403;
|
|
311
|
+
message: string;
|
|
312
|
+
};
|
|
313
|
+
}>, Record<never, never>>;
|
|
314
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
315
|
+
accountId: z.ZodUUID;
|
|
316
|
+
mailboxId: z.ZodUUID;
|
|
317
|
+
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
318
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
319
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
320
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
321
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
322
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
323
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
324
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
325
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
326
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
327
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
328
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
329
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
330
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
331
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
332
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
333
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
334
|
+
}>>, {
|
|
335
|
+
provider_not_found: {
|
|
336
|
+
status: 404;
|
|
337
|
+
message: string;
|
|
338
|
+
};
|
|
339
|
+
provider_forbidden: {
|
|
340
|
+
status: 403;
|
|
341
|
+
message: string;
|
|
342
|
+
};
|
|
343
|
+
provider_conflict: {
|
|
344
|
+
status: 409;
|
|
345
|
+
message: string;
|
|
346
|
+
};
|
|
347
|
+
provider_unsupported: {
|
|
348
|
+
status: 400;
|
|
349
|
+
message: string;
|
|
350
|
+
};
|
|
351
|
+
provider_rejected: {
|
|
352
|
+
status: 400;
|
|
353
|
+
message: string;
|
|
354
|
+
};
|
|
355
|
+
provider_unavailable: {
|
|
356
|
+
status: 502;
|
|
357
|
+
message: string;
|
|
358
|
+
};
|
|
359
|
+
provider_throttled: {
|
|
360
|
+
status: 429;
|
|
361
|
+
message: string;
|
|
362
|
+
};
|
|
363
|
+
account_paused: {
|
|
364
|
+
status: 409;
|
|
365
|
+
message: string;
|
|
366
|
+
};
|
|
367
|
+
account_disabled: {
|
|
368
|
+
status: 409;
|
|
369
|
+
message: string;
|
|
370
|
+
};
|
|
371
|
+
account_reauth_required: {
|
|
372
|
+
status: 409;
|
|
373
|
+
message: string;
|
|
374
|
+
};
|
|
375
|
+
account_misconfigured: {
|
|
376
|
+
status: 409;
|
|
377
|
+
message: string;
|
|
378
|
+
};
|
|
379
|
+
unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
|
|
380
|
+
mailbox_protected: {
|
|
381
|
+
status: 409;
|
|
382
|
+
message: string;
|
|
383
|
+
};
|
|
384
|
+
group_unsupported: {
|
|
385
|
+
status: 400;
|
|
386
|
+
message: string;
|
|
387
|
+
};
|
|
388
|
+
mail_disabled: {
|
|
389
|
+
status: 409;
|
|
390
|
+
message: string;
|
|
391
|
+
};
|
|
392
|
+
account_not_found: {
|
|
393
|
+
status: 404;
|
|
394
|
+
message: string;
|
|
395
|
+
};
|
|
396
|
+
plan_module_unavailable: {
|
|
397
|
+
status: 403;
|
|
398
|
+
message: string;
|
|
399
|
+
};
|
|
400
|
+
}>, Record<never, never>>;
|
|
82
401
|
};
|
|
83
402
|
export declare const messages: {
|
|
84
403
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
85
404
|
accountId: z.ZodUUID;
|
|
86
405
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
87
406
|
cursor: z.ZodOptional<z.ZodString>;
|
|
88
|
-
mailboxId: z.ZodOptional<z.ZodUUID>;
|
|
89
|
-
unread: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
90
|
-
true: "true";
|
|
91
|
-
false: "false";
|
|
92
|
-
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
93
407
|
importance: z.ZodOptional<z.ZodEnum<{
|
|
94
408
|
normal: "normal";
|
|
95
409
|
high: "high";
|
|
96
410
|
low: "low";
|
|
97
411
|
}>>;
|
|
412
|
+
after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
413
|
+
before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
414
|
+
from: z.ZodOptional<z.ZodString>;
|
|
415
|
+
to: z.ZodOptional<z.ZodString>;
|
|
416
|
+
unread: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
417
|
+
z.ZodBoolean,
|
|
418
|
+
z.ZodEnum<{
|
|
419
|
+
true: "true";
|
|
420
|
+
false: "false";
|
|
421
|
+
}>
|
|
422
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
423
|
+
flagged: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
424
|
+
z.ZodBoolean,
|
|
425
|
+
z.ZodEnum<{
|
|
426
|
+
true: "true";
|
|
427
|
+
false: "false";
|
|
428
|
+
}>
|
|
429
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
430
|
+
hasAttachments: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
431
|
+
z.ZodBoolean,
|
|
432
|
+
z.ZodEnum<{
|
|
433
|
+
true: "true";
|
|
434
|
+
false: "false";
|
|
435
|
+
}>
|
|
436
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
437
|
+
mailboxId: z.ZodOptional<z.ZodUUID>;
|
|
98
438
|
}, z.core.$strip>, z.ZodObject<{
|
|
99
439
|
items: z.ZodArray<z.ZodObject<{
|
|
100
440
|
id: z.ZodUUID;
|
|
@@ -142,6 +482,8 @@ export declare const messages: {
|
|
|
142
482
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
143
483
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
144
484
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
485
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
486
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
145
487
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
146
488
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
147
489
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -151,15 +493,27 @@ export declare const messages: {
|
|
|
151
493
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
152
494
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
153
495
|
}>>, {
|
|
496
|
+
invalid_range: {
|
|
497
|
+
status: 400;
|
|
498
|
+
message: string;
|
|
499
|
+
};
|
|
154
500
|
unknown_mailbox: import("../errors.js").DeclaredError<"unknown_mailbox">;
|
|
155
501
|
invalid_cursor: {
|
|
156
502
|
status: 400;
|
|
157
503
|
message: string;
|
|
158
504
|
};
|
|
505
|
+
mail_disabled: {
|
|
506
|
+
status: 409;
|
|
507
|
+
message: string;
|
|
508
|
+
};
|
|
159
509
|
account_not_found: {
|
|
160
510
|
status: 404;
|
|
161
511
|
message: string;
|
|
162
512
|
};
|
|
513
|
+
plan_module_unavailable: {
|
|
514
|
+
status: 403;
|
|
515
|
+
message: string;
|
|
516
|
+
};
|
|
163
517
|
}>, Record<never, never>>;
|
|
164
518
|
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
165
519
|
accountId: z.ZodUUID;
|
|
@@ -251,6 +605,8 @@ export declare const messages: {
|
|
|
251
605
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
252
606
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
253
607
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
608
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
609
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
254
610
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
255
611
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
256
612
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -296,10 +652,18 @@ export declare const messages: {
|
|
|
296
652
|
status: 404;
|
|
297
653
|
message: string;
|
|
298
654
|
};
|
|
655
|
+
mail_disabled: {
|
|
656
|
+
status: 409;
|
|
657
|
+
message: string;
|
|
658
|
+
};
|
|
299
659
|
account_not_found: {
|
|
300
660
|
status: 404;
|
|
301
661
|
message: string;
|
|
302
662
|
};
|
|
663
|
+
plan_module_unavailable: {
|
|
664
|
+
status: 403;
|
|
665
|
+
message: string;
|
|
666
|
+
};
|
|
303
667
|
}>, Record<never, never>>;
|
|
304
668
|
raw: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
305
669
|
accountId: z.ZodUUID;
|
|
@@ -311,6 +675,8 @@ export declare const messages: {
|
|
|
311
675
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
312
676
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
313
677
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
678
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
679
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
314
680
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
315
681
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
316
682
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -356,10 +722,18 @@ export declare const messages: {
|
|
|
356
722
|
status: 404;
|
|
357
723
|
message: string;
|
|
358
724
|
};
|
|
725
|
+
mail_disabled: {
|
|
726
|
+
status: 409;
|
|
727
|
+
message: string;
|
|
728
|
+
};
|
|
359
729
|
account_not_found: {
|
|
360
730
|
status: 404;
|
|
361
731
|
message: string;
|
|
362
732
|
};
|
|
733
|
+
plan_module_unavailable: {
|
|
734
|
+
status: 403;
|
|
735
|
+
message: string;
|
|
736
|
+
};
|
|
363
737
|
}>, Record<never, never>>;
|
|
364
738
|
attachment: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
365
739
|
accountId: z.ZodUUID;
|
|
@@ -372,6 +746,8 @@ export declare const messages: {
|
|
|
372
746
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
373
747
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
374
748
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
749
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
750
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
375
751
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
376
752
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
377
753
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -417,10 +793,18 @@ export declare const messages: {
|
|
|
417
793
|
status: 404;
|
|
418
794
|
message: string;
|
|
419
795
|
};
|
|
796
|
+
mail_disabled: {
|
|
797
|
+
status: 409;
|
|
798
|
+
message: string;
|
|
799
|
+
};
|
|
420
800
|
account_not_found: {
|
|
421
801
|
status: 404;
|
|
422
802
|
message: string;
|
|
423
803
|
};
|
|
804
|
+
plan_module_unavailable: {
|
|
805
|
+
status: 403;
|
|
806
|
+
message: string;
|
|
807
|
+
};
|
|
424
808
|
}>, Record<never, never>>;
|
|
425
809
|
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
426
810
|
accountId: z.ZodUUID;
|
|
@@ -474,6 +858,8 @@ export declare const messages: {
|
|
|
474
858
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
475
859
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
476
860
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
861
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
862
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
477
863
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
478
864
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
479
865
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -536,10 +922,18 @@ export declare const messages: {
|
|
|
536
922
|
status: 400;
|
|
537
923
|
message: string;
|
|
538
924
|
};
|
|
925
|
+
mail_disabled: {
|
|
926
|
+
status: 409;
|
|
927
|
+
message: string;
|
|
928
|
+
};
|
|
539
929
|
account_not_found: {
|
|
540
930
|
status: 404;
|
|
541
931
|
message: string;
|
|
542
932
|
};
|
|
933
|
+
plan_module_unavailable: {
|
|
934
|
+
status: 403;
|
|
935
|
+
message: string;
|
|
936
|
+
};
|
|
543
937
|
}>, Record<never, never>>;
|
|
544
938
|
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
545
939
|
params: z.ZodObject<{
|
|
@@ -547,10 +941,13 @@ export declare const messages: {
|
|
|
547
941
|
messageId: z.ZodUUID;
|
|
548
942
|
}, z.core.$strip>;
|
|
549
943
|
query: z.ZodObject<{
|
|
550
|
-
permanent: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
944
|
+
permanent: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
945
|
+
z.ZodBoolean,
|
|
946
|
+
z.ZodEnum<{
|
|
947
|
+
true: "true";
|
|
948
|
+
false: "false";
|
|
949
|
+
}>
|
|
950
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
554
951
|
}, z.core.$strip>;
|
|
555
952
|
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
556
953
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
@@ -559,6 +956,8 @@ export declare const messages: {
|
|
|
559
956
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
560
957
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
561
958
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
959
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
960
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
562
961
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
563
962
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
564
963
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -616,26 +1015,57 @@ export declare const messages: {
|
|
|
616
1015
|
status: 404;
|
|
617
1016
|
message: string;
|
|
618
1017
|
};
|
|
1018
|
+
mail_disabled: {
|
|
1019
|
+
status: 409;
|
|
1020
|
+
message: string;
|
|
1021
|
+
};
|
|
619
1022
|
account_not_found: {
|
|
620
1023
|
status: 404;
|
|
621
1024
|
message: string;
|
|
622
1025
|
};
|
|
1026
|
+
plan_module_unavailable: {
|
|
1027
|
+
status: 403;
|
|
1028
|
+
message: string;
|
|
1029
|
+
};
|
|
623
1030
|
}>, Record<never, never>>;
|
|
624
1031
|
};
|
|
625
1032
|
export declare const search: {
|
|
626
1033
|
messages: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
627
1034
|
accountId: z.ZodUUID;
|
|
628
|
-
q: z.ZodString;
|
|
629
|
-
mailboxId: z.ZodOptional<z.ZodUUID>;
|
|
630
1035
|
after: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
631
1036
|
before: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
632
1037
|
source: z.ZodDefault<z.ZodEnum<{
|
|
633
1038
|
provider: "provider";
|
|
634
|
-
auto: "auto";
|
|
635
1039
|
index: "index";
|
|
1040
|
+
auto: "auto";
|
|
636
1041
|
}>>;
|
|
637
1042
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
638
1043
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1044
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
to: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
unread: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
1047
|
+
z.ZodBoolean,
|
|
1048
|
+
z.ZodEnum<{
|
|
1049
|
+
true: "true";
|
|
1050
|
+
false: "false";
|
|
1051
|
+
}>
|
|
1052
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1053
|
+
flagged: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
1054
|
+
z.ZodBoolean,
|
|
1055
|
+
z.ZodEnum<{
|
|
1056
|
+
true: "true";
|
|
1057
|
+
false: "false";
|
|
1058
|
+
}>
|
|
1059
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1060
|
+
hasAttachments: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [
|
|
1061
|
+
z.ZodBoolean,
|
|
1062
|
+
z.ZodEnum<{
|
|
1063
|
+
true: "true";
|
|
1064
|
+
false: "false";
|
|
1065
|
+
}>
|
|
1066
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
1067
|
+
q: z.ZodString;
|
|
1068
|
+
mailboxId: z.ZodOptional<z.ZodUUID>;
|
|
639
1069
|
}, z.core.$strip>, z.ZodObject<{
|
|
640
1070
|
source: z.ZodEnum<{
|
|
641
1071
|
provider: "provider";
|
|
@@ -687,6 +1117,8 @@ export declare const search: {
|
|
|
687
1117
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
688
1118
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
689
1119
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1120
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1121
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
690
1122
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
691
1123
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
692
1124
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -741,9 +1173,17 @@ export declare const search: {
|
|
|
741
1173
|
status: 400;
|
|
742
1174
|
message: string;
|
|
743
1175
|
};
|
|
1176
|
+
mail_disabled: {
|
|
1177
|
+
status: 409;
|
|
1178
|
+
message: string;
|
|
1179
|
+
};
|
|
744
1180
|
account_not_found: {
|
|
745
1181
|
status: 404;
|
|
746
1182
|
message: string;
|
|
747
1183
|
};
|
|
1184
|
+
plan_module_unavailable: {
|
|
1185
|
+
status: 403;
|
|
1186
|
+
message: string;
|
|
1187
|
+
};
|
|
748
1188
|
}>, Record<never, never>>;
|
|
749
1189
|
};
|