@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
|
@@ -22,6 +22,7 @@ export declare const orgConnections: {
|
|
|
22
22
|
serviceAccountEmail: z.ZodString;
|
|
23
23
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
24
24
|
scopes: z.ZodArray<z.ZodString>;
|
|
25
|
+
groupsEnabled: z.ZodBoolean;
|
|
25
26
|
}, z.core.$strip>>;
|
|
26
27
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
27
28
|
cloud: z.ZodEnum<{
|
|
@@ -36,6 +37,8 @@ export declare const orgConnections: {
|
|
|
36
37
|
certificate: "certificate";
|
|
37
38
|
}>;
|
|
38
39
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
useConnectDomain: z.ZodBoolean;
|
|
41
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
39
42
|
permissions: z.ZodArray<z.ZodObject<{
|
|
40
43
|
name: z.ZodString;
|
|
41
44
|
isRequired: z.ZodBoolean;
|
|
@@ -52,6 +55,8 @@ export declare const orgConnections: {
|
|
|
52
55
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
53
56
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
54
57
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
58
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
59
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
55
60
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
56
61
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
57
62
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -61,37 +66,46 @@ export declare const orgConnections: {
|
|
|
61
66
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
62
67
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
63
68
|
}>>, Record<never, never>>;
|
|
64
|
-
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
69
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[
|
|
70
|
+
z.ZodObject<{
|
|
71
|
+
kind: z.ZodLiteral<"google_delegation">;
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
serviceAccountKey: z.ZodString;
|
|
74
|
+
domain: z.ZodString;
|
|
75
|
+
calendarEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
contactsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
directoryAdmin: z.ZodOptional<z.ZodEmail>;
|
|
78
|
+
groupsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strip>,
|
|
80
|
+
z.ZodObject<{
|
|
81
|
+
kind: z.ZodLiteral<"microsoft_app">;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
cloud: z.ZodDefault<z.ZodEnum<{
|
|
84
|
+
global: "global";
|
|
85
|
+
"gcc-high": "gcc-high";
|
|
86
|
+
dod: "dod";
|
|
87
|
+
china: "china";
|
|
88
|
+
}>>;
|
|
89
|
+
credential: z.ZodDiscriminatedUnion<[
|
|
90
|
+
z.ZodObject<{
|
|
91
|
+
type: z.ZodLiteral<"platform">;
|
|
92
|
+
}, z.core.$strip>,
|
|
93
|
+
z.ZodObject<{
|
|
94
|
+
type: z.ZodLiteral<"client_secret">;
|
|
95
|
+
clientId: z.ZodString;
|
|
96
|
+
clientSecret: z.ZodString;
|
|
97
|
+
}, z.core.$strip>,
|
|
98
|
+
z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"certificate">;
|
|
100
|
+
clientId: z.ZodString;
|
|
101
|
+
certificate: z.ZodString;
|
|
102
|
+
privateKey: z.ZodString;
|
|
103
|
+
}, z.core.$strip>
|
|
104
|
+
], "type">;
|
|
105
|
+
directoryId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
}, z.core.$strip>
|
|
108
|
+
], "kind">, z.ZodObject<{
|
|
95
109
|
id: z.ZodUUID;
|
|
96
110
|
kind: z.ZodEnum<{
|
|
97
111
|
google_delegation: "google_delegation";
|
|
@@ -112,6 +126,7 @@ export declare const orgConnections: {
|
|
|
112
126
|
serviceAccountEmail: z.ZodString;
|
|
113
127
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
114
128
|
scopes: z.ZodArray<z.ZodString>;
|
|
129
|
+
groupsEnabled: z.ZodBoolean;
|
|
115
130
|
}, z.core.$strip>>;
|
|
116
131
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
117
132
|
cloud: z.ZodEnum<{
|
|
@@ -126,6 +141,8 @@ export declare const orgConnections: {
|
|
|
126
141
|
certificate: "certificate";
|
|
127
142
|
}>;
|
|
128
143
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
144
|
+
useConnectDomain: z.ZodBoolean;
|
|
145
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
129
146
|
permissions: z.ZodArray<z.ZodObject<{
|
|
130
147
|
name: z.ZodString;
|
|
131
148
|
isRequired: z.ZodBoolean;
|
|
@@ -141,6 +158,8 @@ export declare const orgConnections: {
|
|
|
141
158
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
142
159
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
143
160
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
161
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
162
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
144
163
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
145
164
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
146
165
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -154,6 +173,14 @@ export declare const orgConnections: {
|
|
|
154
173
|
status: 400;
|
|
155
174
|
message: string;
|
|
156
175
|
};
|
|
176
|
+
connect_domain_inactive: {
|
|
177
|
+
status: 409;
|
|
178
|
+
message: string;
|
|
179
|
+
};
|
|
180
|
+
connect_domain_unsupported: {
|
|
181
|
+
status: 400;
|
|
182
|
+
message: string;
|
|
183
|
+
};
|
|
157
184
|
invalid_certificate: {
|
|
158
185
|
status: 400;
|
|
159
186
|
message: string;
|
|
@@ -190,6 +217,7 @@ export declare const orgConnections: {
|
|
|
190
217
|
serviceAccountEmail: z.ZodString;
|
|
191
218
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
192
219
|
scopes: z.ZodArray<z.ZodString>;
|
|
220
|
+
groupsEnabled: z.ZodBoolean;
|
|
193
221
|
}, z.core.$strip>>;
|
|
194
222
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
195
223
|
cloud: z.ZodEnum<{
|
|
@@ -204,6 +232,8 @@ export declare const orgConnections: {
|
|
|
204
232
|
certificate: "certificate";
|
|
205
233
|
}>;
|
|
206
234
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
235
|
+
useConnectDomain: z.ZodBoolean;
|
|
236
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
207
237
|
permissions: z.ZodArray<z.ZodObject<{
|
|
208
238
|
name: z.ZodString;
|
|
209
239
|
isRequired: z.ZodBoolean;
|
|
@@ -219,6 +249,8 @@ export declare const orgConnections: {
|
|
|
219
249
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
220
250
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
221
251
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
252
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
253
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
222
254
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
223
255
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
224
256
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -236,11 +268,13 @@ export declare const orgConnections: {
|
|
|
236
268
|
serviceAccountKey: z.ZodOptional<z.ZodString>;
|
|
237
269
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
238
270
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
groupsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
239
272
|
directoryAdmin: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
240
273
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
241
274
|
certificate: z.ZodOptional<z.ZodString>;
|
|
242
275
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
243
276
|
directoryId: z.ZodOptional<z.ZodString>;
|
|
277
|
+
useConnectDomain: z.ZodOptional<z.ZodBoolean>;
|
|
244
278
|
}, z.core.$strip>, z.ZodObject<{
|
|
245
279
|
id: z.ZodUUID;
|
|
246
280
|
kind: z.ZodEnum<{
|
|
@@ -262,6 +296,7 @@ export declare const orgConnections: {
|
|
|
262
296
|
serviceAccountEmail: z.ZodString;
|
|
263
297
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
264
298
|
scopes: z.ZodArray<z.ZodString>;
|
|
299
|
+
groupsEnabled: z.ZodBoolean;
|
|
265
300
|
}, z.core.$strip>>;
|
|
266
301
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
267
302
|
cloud: z.ZodEnum<{
|
|
@@ -276,6 +311,8 @@ export declare const orgConnections: {
|
|
|
276
311
|
certificate: "certificate";
|
|
277
312
|
}>;
|
|
278
313
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
314
|
+
useConnectDomain: z.ZodBoolean;
|
|
315
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
279
316
|
permissions: z.ZodArray<z.ZodObject<{
|
|
280
317
|
name: z.ZodString;
|
|
281
318
|
isRequired: z.ZodBoolean;
|
|
@@ -291,6 +328,8 @@ export declare const orgConnections: {
|
|
|
291
328
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
292
329
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
293
330
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
331
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
332
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
294
333
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
295
334
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
296
335
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -304,6 +343,14 @@ export declare const orgConnections: {
|
|
|
304
343
|
status: 400;
|
|
305
344
|
message: string;
|
|
306
345
|
};
|
|
346
|
+
connect_domain_inactive: {
|
|
347
|
+
status: 409;
|
|
348
|
+
message: string;
|
|
349
|
+
};
|
|
350
|
+
connect_domain_unsupported: {
|
|
351
|
+
status: 400;
|
|
352
|
+
message: string;
|
|
353
|
+
};
|
|
307
354
|
invalid_certificate: {
|
|
308
355
|
status: 400;
|
|
309
356
|
message: string;
|
|
@@ -330,6 +377,8 @@ export declare const orgConnections: {
|
|
|
330
377
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
331
378
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
332
379
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
380
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
381
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
333
382
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
334
383
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
335
384
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -361,6 +410,8 @@ export declare const orgConnections: {
|
|
|
361
410
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
362
411
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
363
412
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
413
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
414
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
364
415
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
365
416
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
366
417
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -374,6 +425,10 @@ export declare const orgConnections: {
|
|
|
374
425
|
status: 400;
|
|
375
426
|
message: string;
|
|
376
427
|
};
|
|
428
|
+
connect_domain_inactive: {
|
|
429
|
+
status: 409;
|
|
430
|
+
message: string;
|
|
431
|
+
};
|
|
377
432
|
session_required: {
|
|
378
433
|
status: 403;
|
|
379
434
|
message: string;
|
|
@@ -416,6 +471,7 @@ export declare const orgConnections: {
|
|
|
416
471
|
serviceAccountEmail: z.ZodString;
|
|
417
472
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
418
473
|
scopes: z.ZodArray<z.ZodString>;
|
|
474
|
+
groupsEnabled: z.ZodBoolean;
|
|
419
475
|
}, z.core.$strip>>;
|
|
420
476
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
421
477
|
cloud: z.ZodEnum<{
|
|
@@ -430,6 +486,8 @@ export declare const orgConnections: {
|
|
|
430
486
|
certificate: "certificate";
|
|
431
487
|
}>;
|
|
432
488
|
directoryId: z.ZodNullable<z.ZodString>;
|
|
489
|
+
useConnectDomain: z.ZodBoolean;
|
|
490
|
+
redirectUri: z.ZodNullable<z.ZodString>;
|
|
433
491
|
permissions: z.ZodArray<z.ZodObject<{
|
|
434
492
|
name: z.ZodString;
|
|
435
493
|
isRequired: z.ZodBoolean;
|
|
@@ -452,6 +510,8 @@ export declare const orgConnections: {
|
|
|
452
510
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
453
511
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
454
512
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
513
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
514
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
455
515
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
456
516
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
457
517
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -494,6 +554,8 @@ export declare const orgConnections: {
|
|
|
494
554
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
495
555
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
496
556
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
557
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
558
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
497
559
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
498
560
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
499
561
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -550,12 +612,18 @@ export declare const orgConnections: {
|
|
|
550
612
|
full: "full";
|
|
551
613
|
}>>;
|
|
552
614
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
615
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
553
616
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
554
617
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
555
618
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
556
619
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
557
620
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
558
621
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
623
|
+
lists: "lists";
|
|
624
|
+
always: "always";
|
|
625
|
+
}>>;
|
|
626
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
559
627
|
}, z.core.$strip>>;
|
|
560
628
|
}, z.core.$strip>, z.ZodObject<{
|
|
561
629
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -578,6 +646,8 @@ export declare const orgConnections: {
|
|
|
578
646
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
579
647
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
580
648
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
649
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
650
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
581
651
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
582
652
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
583
653
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -591,10 +661,7 @@ export declare const orgConnections: {
|
|
|
591
661
|
status: 402;
|
|
592
662
|
message: string;
|
|
593
663
|
};
|
|
594
|
-
plan_limit_storage:
|
|
595
|
-
status: 403;
|
|
596
|
-
message: string;
|
|
597
|
-
};
|
|
664
|
+
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
598
665
|
storage_unavailable: {
|
|
599
666
|
status: 400;
|
|
600
667
|
message: string;
|
|
@@ -608,6 +675,230 @@ export declare const orgConnections: {
|
|
|
608
675
|
message: string;
|
|
609
676
|
};
|
|
610
677
|
}>, Record<never, never>>;
|
|
678
|
+
addGroup: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
679
|
+
connectionId: z.ZodUUID;
|
|
680
|
+
email: z.ZodEmail;
|
|
681
|
+
relayEmail: z.ZodEmail;
|
|
682
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
683
|
+
externalRef: z.ZodOptional<z.ZodString>;
|
|
684
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
685
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
686
|
+
none: "none";
|
|
687
|
+
cache: "cache";
|
|
688
|
+
full: "full";
|
|
689
|
+
}>>;
|
|
690
|
+
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
691
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
692
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
693
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
694
|
+
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
695
|
+
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
696
|
+
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
697
|
+
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
699
|
+
lists: "lists";
|
|
700
|
+
always: "always";
|
|
701
|
+
}>>;
|
|
702
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
703
|
+
}, z.core.$strip>>;
|
|
704
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
705
|
+
id: z.ZodUUID;
|
|
706
|
+
externalRef: z.ZodNullable<z.ZodString>;
|
|
707
|
+
provider: z.ZodEnum<{
|
|
708
|
+
gmail: "gmail";
|
|
709
|
+
graph: "graph";
|
|
710
|
+
imap: "imap";
|
|
711
|
+
}>;
|
|
712
|
+
email: z.ZodString;
|
|
713
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
714
|
+
oauthAppId: z.ZodNullable<z.ZodUUID>;
|
|
715
|
+
cloud: z.ZodNullable<z.ZodEnum<{
|
|
716
|
+
global: "global";
|
|
717
|
+
"gcc-high": "gcc-high";
|
|
718
|
+
dod: "dod";
|
|
719
|
+
china: "china";
|
|
720
|
+
}>>;
|
|
721
|
+
status: z.ZodEnum<{
|
|
722
|
+
active: "active";
|
|
723
|
+
paused: "paused";
|
|
724
|
+
reauth_required: "reauth_required";
|
|
725
|
+
disabled: "disabled";
|
|
726
|
+
}>;
|
|
727
|
+
statusReason: z.ZodNullable<z.ZodString>;
|
|
728
|
+
settings: z.ZodObject<{
|
|
729
|
+
bodyStorage: z.ZodEnum<{
|
|
730
|
+
none: "none";
|
|
731
|
+
cache: "cache";
|
|
732
|
+
full: "full";
|
|
733
|
+
}>;
|
|
734
|
+
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
735
|
+
mailEnabled: z.ZodBoolean;
|
|
736
|
+
calendarEnabled: z.ZodBoolean;
|
|
737
|
+
contactsEnabled: z.ZodBoolean;
|
|
738
|
+
undoSendSeconds: z.ZodNumber;
|
|
739
|
+
trackOpens: z.ZodBoolean;
|
|
740
|
+
trackClicks: z.ZodBoolean;
|
|
741
|
+
trackingHoneypot: z.ZodBoolean;
|
|
742
|
+
suppressionCheck: z.ZodEnum<{
|
|
743
|
+
lists: "lists";
|
|
744
|
+
always: "always";
|
|
745
|
+
}>;
|
|
746
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
747
|
+
}, z.core.$strip>;
|
|
748
|
+
settingsOverride: z.ZodObject<{
|
|
749
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
750
|
+
none: "none";
|
|
751
|
+
cache: "cache";
|
|
752
|
+
full: "full";
|
|
753
|
+
}>>;
|
|
754
|
+
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
755
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
756
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
757
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
758
|
+
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
759
|
+
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
760
|
+
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
+
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
763
|
+
lists: "lists";
|
|
764
|
+
always: "always";
|
|
765
|
+
}>>;
|
|
766
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
runtime: z.ZodNullable<z.ZodObject<{
|
|
769
|
+
state: z.ZodEnum<{
|
|
770
|
+
error: "error";
|
|
771
|
+
pending: "pending";
|
|
772
|
+
connecting: "connecting";
|
|
773
|
+
connected: "connected";
|
|
774
|
+
stopped: "stopped";
|
|
775
|
+
}>;
|
|
776
|
+
detail: z.ZodNullable<z.ZodString>;
|
|
777
|
+
ownerInstanceId: z.ZodNullable<z.ZodUUID>;
|
|
778
|
+
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
779
|
+
}, z.core.$strip>>;
|
|
780
|
+
imap: z.ZodNullable<z.ZodObject<{
|
|
781
|
+
imap: z.ZodObject<{
|
|
782
|
+
host: z.ZodString;
|
|
783
|
+
port: z.ZodNumber;
|
|
784
|
+
security: z.ZodEnum<{
|
|
785
|
+
none: "none";
|
|
786
|
+
tls: "tls";
|
|
787
|
+
starttls: "starttls";
|
|
788
|
+
}>;
|
|
789
|
+
user: z.ZodString;
|
|
790
|
+
}, z.core.$strip>;
|
|
791
|
+
smtp: z.ZodNullable<z.ZodObject<{
|
|
792
|
+
host: z.ZodString;
|
|
793
|
+
port: z.ZodNumber;
|
|
794
|
+
security: z.ZodEnum<{
|
|
795
|
+
none: "none";
|
|
796
|
+
tls: "tls";
|
|
797
|
+
starttls: "starttls";
|
|
798
|
+
}>;
|
|
799
|
+
user: z.ZodString;
|
|
800
|
+
}, z.core.$strip>>;
|
|
801
|
+
auth: z.ZodEnum<{
|
|
802
|
+
google: "google";
|
|
803
|
+
microsoft: "microsoft";
|
|
804
|
+
password: "password";
|
|
805
|
+
}>;
|
|
806
|
+
appendSent: z.ZodBoolean;
|
|
807
|
+
dav: z.ZodNullable<z.ZodObject<{
|
|
808
|
+
calendarUrl: z.ZodNullable<z.ZodString>;
|
|
809
|
+
contactsUrl: z.ZodNullable<z.ZodString>;
|
|
810
|
+
user: z.ZodString;
|
|
811
|
+
auth: z.ZodEnum<{
|
|
812
|
+
imap_password: "imap_password";
|
|
813
|
+
dav_password: "dav_password";
|
|
814
|
+
}>;
|
|
815
|
+
}, z.core.$strip>>;
|
|
816
|
+
}, z.core.$strip>>;
|
|
817
|
+
auth: z.ZodObject<{
|
|
818
|
+
method: z.ZodEnum<{
|
|
819
|
+
password: "password";
|
|
820
|
+
oauth: "oauth";
|
|
821
|
+
google_delegation: "google_delegation";
|
|
822
|
+
microsoft_app: "microsoft_app";
|
|
823
|
+
shared_mailbox: "shared_mailbox";
|
|
824
|
+
google_group: "google_group";
|
|
825
|
+
}>;
|
|
826
|
+
orgConnectionId: z.ZodNullable<z.ZodUUID>;
|
|
827
|
+
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
828
|
+
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
829
|
+
}, z.core.$strip>;
|
|
830
|
+
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
831
|
+
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
832
|
+
contactsInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
833
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
834
|
+
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
835
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
836
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
837
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
838
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
839
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
840
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
841
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
842
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
843
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
844
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
845
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
846
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
847
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
848
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
849
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
850
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
851
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
852
|
+
}>>, {
|
|
853
|
+
account_exists: {
|
|
854
|
+
status: 409;
|
|
855
|
+
message: string;
|
|
856
|
+
};
|
|
857
|
+
scope_missing: {
|
|
858
|
+
status: 400;
|
|
859
|
+
message: string;
|
|
860
|
+
};
|
|
861
|
+
group_unsupported: {
|
|
862
|
+
status: 400;
|
|
863
|
+
message: string;
|
|
864
|
+
};
|
|
865
|
+
group_relay_inaccessible: {
|
|
866
|
+
status: 422;
|
|
867
|
+
message: string;
|
|
868
|
+
};
|
|
869
|
+
group_alias_unverified: {
|
|
870
|
+
status: 409;
|
|
871
|
+
message: string;
|
|
872
|
+
};
|
|
873
|
+
provider_unavailable: {
|
|
874
|
+
status: 502;
|
|
875
|
+
message: string;
|
|
876
|
+
};
|
|
877
|
+
provider_throttled: {
|
|
878
|
+
status: 429;
|
|
879
|
+
message: string;
|
|
880
|
+
};
|
|
881
|
+
billing_past_due: {
|
|
882
|
+
status: 402;
|
|
883
|
+
message: string;
|
|
884
|
+
};
|
|
885
|
+
plan_limit_accounts: import("../errors.js").DeclaredError<"plan_limit_accounts">;
|
|
886
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
887
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
888
|
+
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
889
|
+
storage_unavailable: {
|
|
890
|
+
status: 400;
|
|
891
|
+
message: string;
|
|
892
|
+
};
|
|
893
|
+
plan_module_unavailable: {
|
|
894
|
+
status: 403;
|
|
895
|
+
message: string;
|
|
896
|
+
};
|
|
897
|
+
org_connection_not_found: {
|
|
898
|
+
status: 404;
|
|
899
|
+
message: string;
|
|
900
|
+
};
|
|
901
|
+
}>, Record<never, never>>;
|
|
611
902
|
};
|
|
612
903
|
export declare const sharedMailboxes: {
|
|
613
904
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -622,12 +913,18 @@ export declare const sharedMailboxes: {
|
|
|
622
913
|
full: "full";
|
|
623
914
|
}>>;
|
|
624
915
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
916
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
625
917
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
626
918
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
627
919
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
628
920
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
629
921
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
630
922
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
923
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
924
|
+
lists: "lists";
|
|
925
|
+
always: "always";
|
|
926
|
+
}>>;
|
|
927
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
631
928
|
}, z.core.$strip>>;
|
|
632
929
|
}, z.core.$strip>, z.ZodObject<{
|
|
633
930
|
id: z.ZodUUID;
|
|
@@ -660,12 +957,18 @@ export declare const sharedMailboxes: {
|
|
|
660
957
|
full: "full";
|
|
661
958
|
}>;
|
|
662
959
|
syncWindowDays: z.ZodNullable<z.ZodNumber>;
|
|
960
|
+
mailEnabled: z.ZodBoolean;
|
|
663
961
|
calendarEnabled: z.ZodBoolean;
|
|
664
962
|
contactsEnabled: z.ZodBoolean;
|
|
665
963
|
undoSendSeconds: z.ZodNumber;
|
|
666
964
|
trackOpens: z.ZodBoolean;
|
|
667
965
|
trackClicks: z.ZodBoolean;
|
|
668
966
|
trackingHoneypot: z.ZodBoolean;
|
|
967
|
+
suppressionCheck: z.ZodEnum<{
|
|
968
|
+
lists: "lists";
|
|
969
|
+
always: "always";
|
|
970
|
+
}>;
|
|
971
|
+
sendsPerMinute: z.ZodNullable<z.ZodNumber>;
|
|
669
972
|
}, z.core.$strip>;
|
|
670
973
|
settingsOverride: z.ZodObject<{
|
|
671
974
|
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
@@ -674,12 +977,18 @@ export declare const sharedMailboxes: {
|
|
|
674
977
|
full: "full";
|
|
675
978
|
}>>;
|
|
676
979
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
980
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
677
981
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
678
982
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
679
983
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
680
984
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
681
985
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
682
986
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
987
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
988
|
+
lists: "lists";
|
|
989
|
+
always: "always";
|
|
990
|
+
}>>;
|
|
991
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
683
992
|
}, z.core.$strip>;
|
|
684
993
|
runtime: z.ZodNullable<z.ZodObject<{
|
|
685
994
|
state: z.ZodEnum<{
|
|
@@ -737,9 +1046,11 @@ export declare const sharedMailboxes: {
|
|
|
737
1046
|
google_delegation: "google_delegation";
|
|
738
1047
|
microsoft_app: "microsoft_app";
|
|
739
1048
|
shared_mailbox: "shared_mailbox";
|
|
1049
|
+
google_group: "google_group";
|
|
740
1050
|
}>;
|
|
741
1051
|
orgConnectionId: z.ZodNullable<z.ZodUUID>;
|
|
742
1052
|
delegateAccountId: z.ZodNullable<z.ZodUUID>;
|
|
1053
|
+
relayEmail: z.ZodNullable<z.ZodEmail>;
|
|
743
1054
|
}, z.core.$strip>;
|
|
744
1055
|
initializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
745
1056
|
calendarInitializedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
@@ -753,6 +1064,8 @@ export declare const sharedMailboxes: {
|
|
|
753
1064
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
754
1065
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
755
1066
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1067
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1068
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
756
1069
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
757
1070
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
758
1071
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -810,14 +1123,10 @@ export declare const sharedMailboxes: {
|
|
|
810
1123
|
status: 402;
|
|
811
1124
|
message: string;
|
|
812
1125
|
};
|
|
813
|
-
plan_limit_accounts:
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
plan_limit_storage: {
|
|
818
|
-
status: 403;
|
|
819
|
-
message: string;
|
|
820
|
-
};
|
|
1126
|
+
plan_limit_accounts: import("../errors.js").DeclaredError<"plan_limit_accounts">;
|
|
1127
|
+
plan_required: import("../errors.js").DeclaredError<"plan_required">;
|
|
1128
|
+
spend_cap_reached: import("../errors.js").DeclaredError<"spend_cap_reached">;
|
|
1129
|
+
plan_limit_storage: import("../errors.js").DeclaredError<"plan_limit_storage">;
|
|
821
1130
|
storage_unavailable: {
|
|
822
1131
|
status: 400;
|
|
823
1132
|
message: string;
|