@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,4 +1,103 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
export declare const CALENDAR_PROVIDER: {
|
|
3
|
+
provider_not_found: {
|
|
4
|
+
status: 404;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
provider_forbidden: {
|
|
8
|
+
status: 403;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
provider_unsupported: {
|
|
12
|
+
status: 400;
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
15
|
+
provider_rejected: {
|
|
16
|
+
status: 400;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
provider_unavailable: {
|
|
20
|
+
status: 502;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
provider_throttled: {
|
|
24
|
+
status: 429;
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
account_paused: {
|
|
28
|
+
status: 409;
|
|
29
|
+
message: string;
|
|
30
|
+
};
|
|
31
|
+
account_disabled: {
|
|
32
|
+
status: 409;
|
|
33
|
+
message: string;
|
|
34
|
+
};
|
|
35
|
+
account_reauth_required: {
|
|
36
|
+
status: 409;
|
|
37
|
+
message: string;
|
|
38
|
+
};
|
|
39
|
+
account_misconfigured: {
|
|
40
|
+
status: 409;
|
|
41
|
+
message: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const CALENDAR_WRITE: {
|
|
45
|
+
provider_conflict: {
|
|
46
|
+
status: 409;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
calendar_read_only: {
|
|
50
|
+
status: 403;
|
|
51
|
+
message: string;
|
|
52
|
+
};
|
|
53
|
+
provider_not_found: {
|
|
54
|
+
status: 404;
|
|
55
|
+
message: string;
|
|
56
|
+
};
|
|
57
|
+
provider_forbidden: {
|
|
58
|
+
status: 403;
|
|
59
|
+
message: string;
|
|
60
|
+
};
|
|
61
|
+
provider_unsupported: {
|
|
62
|
+
status: 400;
|
|
63
|
+
message: string;
|
|
64
|
+
};
|
|
65
|
+
provider_rejected: {
|
|
66
|
+
status: 400;
|
|
67
|
+
message: string;
|
|
68
|
+
};
|
|
69
|
+
provider_unavailable: {
|
|
70
|
+
status: 502;
|
|
71
|
+
message: string;
|
|
72
|
+
};
|
|
73
|
+
provider_throttled: {
|
|
74
|
+
status: 429;
|
|
75
|
+
message: string;
|
|
76
|
+
};
|
|
77
|
+
account_paused: {
|
|
78
|
+
status: 409;
|
|
79
|
+
message: string;
|
|
80
|
+
};
|
|
81
|
+
account_disabled: {
|
|
82
|
+
status: 409;
|
|
83
|
+
message: string;
|
|
84
|
+
};
|
|
85
|
+
account_reauth_required: {
|
|
86
|
+
status: 409;
|
|
87
|
+
message: string;
|
|
88
|
+
};
|
|
89
|
+
account_misconfigured: {
|
|
90
|
+
status: 409;
|
|
91
|
+
message: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export declare const MEETING_SERVICE: import("../errors.js").DeclaredErrors<{
|
|
95
|
+
readonly meeting_service_not_connected: "The account has no connection to the service and the tenant no server app it may use (a password IMAP account may not use one).";
|
|
96
|
+
readonly meeting_service_reauth_required: "The account's connection or the tenant's server app was refused and must be connected or fixed again.";
|
|
97
|
+
readonly meeting_recurrence_unsupported: "The service cannot repeat a meeting by the event's rule.";
|
|
98
|
+
readonly meeting_service_rejected: "The service refused the meeting.";
|
|
99
|
+
readonly meeting_service_unavailable: "The service could not be reached.";
|
|
100
|
+
}>;
|
|
2
101
|
export declare const calendars: {
|
|
3
102
|
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
103
|
accountId: z.ZodUUID;
|
|
@@ -30,6 +129,255 @@ export declare const calendars: {
|
|
|
30
129
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
31
130
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
32
131
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
132
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
133
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
134
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
135
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
136
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
137
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
138
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
139
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
140
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
141
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
142
|
+
}>>, {
|
|
143
|
+
calendar_disabled: {
|
|
144
|
+
status: 409;
|
|
145
|
+
message: string;
|
|
146
|
+
};
|
|
147
|
+
account_not_found: {
|
|
148
|
+
status: 404;
|
|
149
|
+
message: string;
|
|
150
|
+
};
|
|
151
|
+
plan_module_unavailable: {
|
|
152
|
+
status: 403;
|
|
153
|
+
message: string;
|
|
154
|
+
};
|
|
155
|
+
}>, Record<never, never>>;
|
|
156
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
157
|
+
accountId: z.ZodUUID;
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
163
|
+
id: z.ZodUUID;
|
|
164
|
+
name: z.ZodString;
|
|
165
|
+
description: z.ZodNullable<z.ZodString>;
|
|
166
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
167
|
+
name: z.ZodNullable<z.ZodString>;
|
|
168
|
+
address: z.ZodString;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
isPrimary: z.ZodBoolean;
|
|
171
|
+
access: z.ZodEnum<{
|
|
172
|
+
owner: "owner";
|
|
173
|
+
writer: "writer";
|
|
174
|
+
reader: "reader";
|
|
175
|
+
freebusy: "freebusy";
|
|
176
|
+
}>;
|
|
177
|
+
canEdit: z.ZodBoolean;
|
|
178
|
+
color: z.ZodNullable<z.ZodString>;
|
|
179
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
180
|
+
isHidden: z.ZodBoolean;
|
|
181
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
182
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
183
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
184
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
185
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
186
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
187
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
188
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
189
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
190
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
191
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
192
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
193
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
194
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
195
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
196
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
197
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
198
|
+
}>>, {
|
|
199
|
+
provider_conflict: {
|
|
200
|
+
status: 409;
|
|
201
|
+
message: string;
|
|
202
|
+
};
|
|
203
|
+
calendar_read_only: {
|
|
204
|
+
status: 403;
|
|
205
|
+
message: string;
|
|
206
|
+
};
|
|
207
|
+
provider_not_found: {
|
|
208
|
+
status: 404;
|
|
209
|
+
message: string;
|
|
210
|
+
};
|
|
211
|
+
provider_forbidden: {
|
|
212
|
+
status: 403;
|
|
213
|
+
message: string;
|
|
214
|
+
};
|
|
215
|
+
provider_unsupported: {
|
|
216
|
+
status: 400;
|
|
217
|
+
message: string;
|
|
218
|
+
};
|
|
219
|
+
provider_rejected: {
|
|
220
|
+
status: 400;
|
|
221
|
+
message: string;
|
|
222
|
+
};
|
|
223
|
+
provider_unavailable: {
|
|
224
|
+
status: 502;
|
|
225
|
+
message: string;
|
|
226
|
+
};
|
|
227
|
+
provider_throttled: {
|
|
228
|
+
status: 429;
|
|
229
|
+
message: string;
|
|
230
|
+
};
|
|
231
|
+
account_paused: {
|
|
232
|
+
status: 409;
|
|
233
|
+
message: string;
|
|
234
|
+
};
|
|
235
|
+
account_disabled: {
|
|
236
|
+
status: 409;
|
|
237
|
+
message: string;
|
|
238
|
+
};
|
|
239
|
+
account_reauth_required: {
|
|
240
|
+
status: 409;
|
|
241
|
+
message: string;
|
|
242
|
+
};
|
|
243
|
+
account_misconfigured: {
|
|
244
|
+
status: 409;
|
|
245
|
+
message: string;
|
|
246
|
+
};
|
|
247
|
+
calendar_disabled: {
|
|
248
|
+
status: 409;
|
|
249
|
+
message: string;
|
|
250
|
+
};
|
|
251
|
+
account_not_found: {
|
|
252
|
+
status: 404;
|
|
253
|
+
message: string;
|
|
254
|
+
};
|
|
255
|
+
plan_module_unavailable: {
|
|
256
|
+
status: 403;
|
|
257
|
+
message: string;
|
|
258
|
+
};
|
|
259
|
+
}>, Record<never, never>>;
|
|
260
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
261
|
+
accountId: z.ZodUUID;
|
|
262
|
+
calendarId: z.ZodUUID;
|
|
263
|
+
name: z.ZodOptional<z.ZodString>;
|
|
264
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
265
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
266
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
+
id: z.ZodUUID;
|
|
269
|
+
name: z.ZodString;
|
|
270
|
+
description: z.ZodNullable<z.ZodString>;
|
|
271
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
272
|
+
name: z.ZodNullable<z.ZodString>;
|
|
273
|
+
address: z.ZodString;
|
|
274
|
+
}, z.core.$strip>>;
|
|
275
|
+
isPrimary: z.ZodBoolean;
|
|
276
|
+
access: z.ZodEnum<{
|
|
277
|
+
owner: "owner";
|
|
278
|
+
writer: "writer";
|
|
279
|
+
reader: "reader";
|
|
280
|
+
freebusy: "freebusy";
|
|
281
|
+
}>;
|
|
282
|
+
canEdit: z.ZodBoolean;
|
|
283
|
+
color: z.ZodNullable<z.ZodString>;
|
|
284
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
285
|
+
isHidden: z.ZodBoolean;
|
|
286
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
287
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
288
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
289
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
290
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
291
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
292
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
293
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
294
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
295
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
296
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
297
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
298
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
299
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
300
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
301
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
302
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
303
|
+
}>>, {
|
|
304
|
+
provider_conflict: {
|
|
305
|
+
status: 409;
|
|
306
|
+
message: string;
|
|
307
|
+
};
|
|
308
|
+
calendar_read_only: {
|
|
309
|
+
status: 403;
|
|
310
|
+
message: string;
|
|
311
|
+
};
|
|
312
|
+
provider_not_found: {
|
|
313
|
+
status: 404;
|
|
314
|
+
message: string;
|
|
315
|
+
};
|
|
316
|
+
provider_forbidden: {
|
|
317
|
+
status: 403;
|
|
318
|
+
message: string;
|
|
319
|
+
};
|
|
320
|
+
provider_unsupported: {
|
|
321
|
+
status: 400;
|
|
322
|
+
message: string;
|
|
323
|
+
};
|
|
324
|
+
provider_rejected: {
|
|
325
|
+
status: 400;
|
|
326
|
+
message: string;
|
|
327
|
+
};
|
|
328
|
+
provider_unavailable: {
|
|
329
|
+
status: 502;
|
|
330
|
+
message: string;
|
|
331
|
+
};
|
|
332
|
+
provider_throttled: {
|
|
333
|
+
status: 429;
|
|
334
|
+
message: string;
|
|
335
|
+
};
|
|
336
|
+
account_paused: {
|
|
337
|
+
status: 409;
|
|
338
|
+
message: string;
|
|
339
|
+
};
|
|
340
|
+
account_disabled: {
|
|
341
|
+
status: 409;
|
|
342
|
+
message: string;
|
|
343
|
+
};
|
|
344
|
+
account_reauth_required: {
|
|
345
|
+
status: 409;
|
|
346
|
+
message: string;
|
|
347
|
+
};
|
|
348
|
+
account_misconfigured: {
|
|
349
|
+
status: 409;
|
|
350
|
+
message: string;
|
|
351
|
+
};
|
|
352
|
+
calendar_not_found: {
|
|
353
|
+
status: 404;
|
|
354
|
+
message: string;
|
|
355
|
+
};
|
|
356
|
+
calendar_disabled: {
|
|
357
|
+
status: 409;
|
|
358
|
+
message: string;
|
|
359
|
+
};
|
|
360
|
+
account_not_found: {
|
|
361
|
+
status: 404;
|
|
362
|
+
message: string;
|
|
363
|
+
};
|
|
364
|
+
plan_module_unavailable: {
|
|
365
|
+
status: 403;
|
|
366
|
+
message: string;
|
|
367
|
+
};
|
|
368
|
+
}>, Record<never, never>>;
|
|
369
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
370
|
+
accountId: z.ZodUUID;
|
|
371
|
+
calendarId: z.ZodUUID;
|
|
372
|
+
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
373
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
374
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
375
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
376
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
377
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
378
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
379
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
380
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
33
381
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
34
382
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
35
383
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -39,6 +387,62 @@ export declare const calendars: {
|
|
|
39
387
|
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
40
388
|
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
41
389
|
}>>, {
|
|
390
|
+
provider_conflict: {
|
|
391
|
+
status: 409;
|
|
392
|
+
message: string;
|
|
393
|
+
};
|
|
394
|
+
calendar_read_only: {
|
|
395
|
+
status: 403;
|
|
396
|
+
message: string;
|
|
397
|
+
};
|
|
398
|
+
provider_not_found: {
|
|
399
|
+
status: 404;
|
|
400
|
+
message: string;
|
|
401
|
+
};
|
|
402
|
+
provider_forbidden: {
|
|
403
|
+
status: 403;
|
|
404
|
+
message: string;
|
|
405
|
+
};
|
|
406
|
+
provider_unsupported: {
|
|
407
|
+
status: 400;
|
|
408
|
+
message: string;
|
|
409
|
+
};
|
|
410
|
+
provider_rejected: {
|
|
411
|
+
status: 400;
|
|
412
|
+
message: string;
|
|
413
|
+
};
|
|
414
|
+
provider_unavailable: {
|
|
415
|
+
status: 502;
|
|
416
|
+
message: string;
|
|
417
|
+
};
|
|
418
|
+
provider_throttled: {
|
|
419
|
+
status: 429;
|
|
420
|
+
message: string;
|
|
421
|
+
};
|
|
422
|
+
account_paused: {
|
|
423
|
+
status: 409;
|
|
424
|
+
message: string;
|
|
425
|
+
};
|
|
426
|
+
account_disabled: {
|
|
427
|
+
status: 409;
|
|
428
|
+
message: string;
|
|
429
|
+
};
|
|
430
|
+
account_reauth_required: {
|
|
431
|
+
status: 409;
|
|
432
|
+
message: string;
|
|
433
|
+
};
|
|
434
|
+
account_misconfigured: {
|
|
435
|
+
status: 409;
|
|
436
|
+
message: string;
|
|
437
|
+
};
|
|
438
|
+
calendar_not_found: {
|
|
439
|
+
status: 404;
|
|
440
|
+
message: string;
|
|
441
|
+
};
|
|
442
|
+
calendar_primary: {
|
|
443
|
+
status: 409;
|
|
444
|
+
message: string;
|
|
445
|
+
};
|
|
42
446
|
calendar_disabled: {
|
|
43
447
|
status: 409;
|
|
44
448
|
message: string;
|
|
@@ -156,6 +560,8 @@ export declare const calendarEvents: {
|
|
|
156
560
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
157
561
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
158
562
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
563
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
564
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
159
565
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
160
566
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
161
567
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -292,6 +698,8 @@ export declare const calendarEvents: {
|
|
|
292
698
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
293
699
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
294
700
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
701
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
702
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
295
703
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
296
704
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
297
705
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -370,18 +778,24 @@ export declare const calendarEvents: {
|
|
|
370
778
|
content: z.ZodString;
|
|
371
779
|
}, z.core.$strip>>;
|
|
372
780
|
location: z.ZodOptional<z.ZodString>;
|
|
373
|
-
start: z.ZodUnion<readonly [
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
781
|
+
start: z.ZodUnion<readonly [
|
|
782
|
+
z.ZodObject<{
|
|
783
|
+
dateTime: z.ZodISODateTime;
|
|
784
|
+
timeZone: z.ZodString;
|
|
785
|
+
}, z.core.$strip>,
|
|
786
|
+
z.ZodObject<{
|
|
787
|
+
date: z.ZodISODate;
|
|
788
|
+
}, z.core.$strip>
|
|
789
|
+
]>;
|
|
790
|
+
end: z.ZodUnion<readonly [
|
|
791
|
+
z.ZodObject<{
|
|
792
|
+
dateTime: z.ZodISODateTime;
|
|
793
|
+
timeZone: z.ZodString;
|
|
794
|
+
}, z.core.$strip>,
|
|
795
|
+
z.ZodObject<{
|
|
796
|
+
date: z.ZodISODate;
|
|
797
|
+
}, z.core.$strip>
|
|
798
|
+
]>;
|
|
385
799
|
attendees: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
386
800
|
name: z.ZodOptional<z.ZodString>;
|
|
387
801
|
address: z.ZodEmail;
|
|
@@ -512,6 +926,8 @@ export declare const calendarEvents: {
|
|
|
512
926
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
513
927
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
514
928
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
929
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
930
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
515
931
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
516
932
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
517
933
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -646,18 +1062,24 @@ export declare const calendarEvents: {
|
|
|
646
1062
|
content: z.ZodString;
|
|
647
1063
|
}, z.core.$strip>>;
|
|
648
1064
|
location: z.ZodOptional<z.ZodString>;
|
|
649
|
-
start: z.ZodOptional<z.ZodUnion<readonly [
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
1065
|
+
start: z.ZodOptional<z.ZodUnion<readonly [
|
|
1066
|
+
z.ZodObject<{
|
|
1067
|
+
dateTime: z.ZodISODateTime;
|
|
1068
|
+
timeZone: z.ZodString;
|
|
1069
|
+
}, z.core.$strip>,
|
|
1070
|
+
z.ZodObject<{
|
|
1071
|
+
date: z.ZodISODate;
|
|
1072
|
+
}, z.core.$strip>
|
|
1073
|
+
]>>;
|
|
1074
|
+
end: z.ZodOptional<z.ZodUnion<readonly [
|
|
1075
|
+
z.ZodObject<{
|
|
1076
|
+
dateTime: z.ZodISODateTime;
|
|
1077
|
+
timeZone: z.ZodString;
|
|
1078
|
+
}, z.core.$strip>,
|
|
1079
|
+
z.ZodObject<{
|
|
1080
|
+
date: z.ZodISODate;
|
|
1081
|
+
}, z.core.$strip>
|
|
1082
|
+
]>>;
|
|
661
1083
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
662
1084
|
name: z.ZodOptional<z.ZodString>;
|
|
663
1085
|
address: z.ZodEmail;
|
|
@@ -783,6 +1205,8 @@ export declare const calendarEvents: {
|
|
|
783
1205
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
784
1206
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
785
1207
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1208
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1209
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
786
1210
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
787
1211
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
788
1212
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -907,10 +1331,13 @@ export declare const calendarEvents: {
|
|
|
907
1331
|
eventId: z.ZodUUID;
|
|
908
1332
|
}, z.core.$strip>;
|
|
909
1333
|
query: z.ZodObject<{
|
|
910
|
-
notify: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
1334
|
+
notify: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
1335
|
+
z.ZodBoolean,
|
|
1336
|
+
z.ZodEnum<{
|
|
1337
|
+
true: "true";
|
|
1338
|
+
false: "false";
|
|
1339
|
+
}>
|
|
1340
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
914
1341
|
comment: z.ZodOptional<z.ZodString>;
|
|
915
1342
|
}, z.core.$strip>;
|
|
916
1343
|
}, z.core.$strip>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
@@ -920,6 +1347,8 @@ export declare const calendarEvents: {
|
|
|
920
1347
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
921
1348
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
922
1349
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1350
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1351
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
923
1352
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
924
1353
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
925
1354
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1096,6 +1525,8 @@ export declare const calendarEvents: {
|
|
|
1096
1525
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1097
1526
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1098
1527
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1528
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1529
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1099
1530
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1100
1531
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1101
1532
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1174,7 +1605,7 @@ export declare const calendarEvents: {
|
|
|
1174
1605
|
export declare const availability: {
|
|
1175
1606
|
find: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1176
1607
|
accountId: z.ZodUUID;
|
|
1177
|
-
|
|
1608
|
+
includeAccount: z.ZodDefault<z.ZodBoolean>;
|
|
1178
1609
|
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
1179
1610
|
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
1180
1611
|
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1194,8 +1625,14 @@ export declare const availability: {
|
|
|
1194
1625
|
}>>>;
|
|
1195
1626
|
}, z.core.$strip>>;
|
|
1196
1627
|
maxSuggestions: z.ZodDefault<z.ZodNumber>;
|
|
1197
|
-
|
|
1628
|
+
requireAll: z.ZodDefault<z.ZodBoolean>;
|
|
1629
|
+
attendees: z.ZodArray<z.ZodEmail>;
|
|
1198
1630
|
}, z.core.$strip>, z.ZodObject<{
|
|
1631
|
+
complete: z.ZodBoolean;
|
|
1632
|
+
unresolved: z.ZodArray<z.ZodString>;
|
|
1633
|
+
withheldReason: z.ZodNullable<z.ZodEnum<{
|
|
1634
|
+
unresolved_attendees: "unresolved_attendees";
|
|
1635
|
+
}>>;
|
|
1199
1636
|
attendees: z.ZodArray<z.ZodObject<{
|
|
1200
1637
|
address: z.ZodString;
|
|
1201
1638
|
busy: z.ZodArray<z.ZodObject<{
|
|
@@ -1222,6 +1659,8 @@ export declare const availability: {
|
|
|
1222
1659
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1223
1660
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1224
1661
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1662
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1663
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1225
1664
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1226
1665
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1227
1666
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1296,4 +1735,109 @@ export declare const availability: {
|
|
|
1296
1735
|
message: string;
|
|
1297
1736
|
};
|
|
1298
1737
|
}>, Record<never, never>>;
|
|
1738
|
+
findForAccounts: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1739
|
+
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
1740
|
+
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
1741
|
+
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
1742
|
+
stepMinutes: z.ZodDefault<z.ZodNumber>;
|
|
1743
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
1744
|
+
workingHours: z.ZodOptional<z.ZodObject<{
|
|
1745
|
+
start: z.ZodString;
|
|
1746
|
+
end: z.ZodString;
|
|
1747
|
+
days: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1748
|
+
mon: "mon";
|
|
1749
|
+
tue: "tue";
|
|
1750
|
+
wed: "wed";
|
|
1751
|
+
thu: "thu";
|
|
1752
|
+
fri: "fri";
|
|
1753
|
+
sat: "sat";
|
|
1754
|
+
sun: "sun";
|
|
1755
|
+
}>>>;
|
|
1756
|
+
}, z.core.$strip>>;
|
|
1757
|
+
maxSuggestions: z.ZodDefault<z.ZodNumber>;
|
|
1758
|
+
requireAll: z.ZodDefault<z.ZodBoolean>;
|
|
1759
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
1760
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
1761
|
+
any: "any";
|
|
1762
|
+
all: "all";
|
|
1763
|
+
}>>;
|
|
1764
|
+
attendees: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
1765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1766
|
+
complete: z.ZodBoolean;
|
|
1767
|
+
unresolved: z.ZodArray<z.ZodString>;
|
|
1768
|
+
withheldReason: z.ZodNullable<z.ZodEnum<{
|
|
1769
|
+
unresolved_attendees: "unresolved_attendees";
|
|
1770
|
+
}>>;
|
|
1771
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
1772
|
+
address: z.ZodString;
|
|
1773
|
+
busy: z.ZodArray<z.ZodObject<{
|
|
1774
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1775
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1776
|
+
status: z.ZodEnum<{
|
|
1777
|
+
unknown: "unknown";
|
|
1778
|
+
tentative: "tentative";
|
|
1779
|
+
busy: "busy";
|
|
1780
|
+
oof: "oof";
|
|
1781
|
+
working_elsewhere: "working_elsewhere";
|
|
1782
|
+
}>;
|
|
1783
|
+
}, z.core.$strip>>;
|
|
1784
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1785
|
+
accountId: z.ZodUUID;
|
|
1786
|
+
}, z.core.$strip>>;
|
|
1787
|
+
attendees: z.ZodArray<z.ZodObject<{
|
|
1788
|
+
address: z.ZodString;
|
|
1789
|
+
busy: z.ZodArray<z.ZodObject<{
|
|
1790
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1791
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1792
|
+
status: z.ZodEnum<{
|
|
1793
|
+
unknown: "unknown";
|
|
1794
|
+
tentative: "tentative";
|
|
1795
|
+
busy: "busy";
|
|
1796
|
+
oof: "oof";
|
|
1797
|
+
working_elsewhere: "working_elsewhere";
|
|
1798
|
+
}>;
|
|
1799
|
+
}, z.core.$strip>>;
|
|
1800
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1801
|
+
}, z.core.$strip>>;
|
|
1802
|
+
suggestions: z.ZodArray<z.ZodObject<{
|
|
1803
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1804
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1805
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
1806
|
+
}, z.core.$strip>>;
|
|
1807
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
1808
|
+
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
1809
|
+
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
1810
|
+
readonly api_key_expired: "The API key is past its expiry (or the grace of the rotation that replaced it).";
|
|
1811
|
+
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
1812
|
+
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
1813
|
+
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
1814
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
1815
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
1816
|
+
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
1817
|
+
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
1818
|
+
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
1819
|
+
readonly payload_too_large: "The request body is larger than the API accepts.";
|
|
1820
|
+
readonly internal_error: "An unexpected failure on our side.";
|
|
1821
|
+
readonly invalid_idempotency_key: "POST only: the Idempotency-Key header is not 1 to 255 printable ASCII characters.";
|
|
1822
|
+
readonly idempotency_key_reused: "POST only: the Idempotency-Key was used in the last 24 hours with another method, path or body.";
|
|
1823
|
+
readonly idempotency_key_in_progress: "POST only: the request first sent with this Idempotency-Key has not been answered yet.";
|
|
1824
|
+
}>>, {
|
|
1825
|
+
unknown_account: import("../errors.js").DeclaredError<"unknown_account">;
|
|
1826
|
+
invalid_range: {
|
|
1827
|
+
status: 400;
|
|
1828
|
+
message: string;
|
|
1829
|
+
};
|
|
1830
|
+
invalid_working_hours: {
|
|
1831
|
+
status: 400;
|
|
1832
|
+
message: string;
|
|
1833
|
+
};
|
|
1834
|
+
invalid_time_zone: {
|
|
1835
|
+
status: 400;
|
|
1836
|
+
message: string;
|
|
1837
|
+
};
|
|
1838
|
+
plan_module_unavailable: {
|
|
1839
|
+
status: 403;
|
|
1840
|
+
message: string;
|
|
1841
|
+
};
|
|
1842
|
+
}>, Record<never, never>>;
|
|
1299
1843
|
};
|