@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
|
@@ -9,57 +9,83 @@ export declare const usage: {
|
|
|
9
9
|
limits: import("zod").ZodObject<{
|
|
10
10
|
maxAccounts: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
11
11
|
sendsPerDay: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
12
|
+
emailValidationsPerDay: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
12
13
|
apiCallsPerMinute: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
13
14
|
apiCallsPerMinutePerKey: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
14
15
|
webhookEndpoints: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
15
16
|
bodyStorageAllowed: import("zod").ZodBoolean;
|
|
16
17
|
storageBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
17
|
-
modules: import("zod").ZodObject<{
|
|
18
|
-
calendar: import("zod").ZodBoolean;
|
|
19
|
-
contacts: import("zod").ZodBoolean;
|
|
20
|
-
tracking: import("zod").ZodBoolean;
|
|
21
|
-
ai: import("zod").ZodBoolean;
|
|
22
|
-
meetings: import("zod").ZodBoolean;
|
|
23
|
-
sharedMailboxes: import("zod").ZodBoolean;
|
|
24
|
-
}, import("zod/v4/core").$strip>;
|
|
25
18
|
included: import("zod").ZodObject<{
|
|
26
|
-
|
|
19
|
+
mailAccounts: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
20
|
+
calendarContactsAccounts: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
21
|
+
meetingAccounts: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
27
22
|
sendsPerMonth: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
28
|
-
|
|
23
|
+
aiClassificationsPerMonth: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
24
|
+
aiDraftsPerMonth: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
29
25
|
storageBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
26
|
+
validationCredits: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
30
27
|
}, import("zod/v4/core").$strip>;
|
|
31
28
|
pricing: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
32
29
|
currency: import("zod").ZodString;
|
|
33
30
|
baseMonthly: import("zod").ZodNumber;
|
|
34
|
-
|
|
31
|
+
baseAnnual: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
32
|
+
components: import("zod").ZodObject<{
|
|
33
|
+
mail: import("zod").ZodNumber;
|
|
34
|
+
calendarContacts: import("zod").ZodNumber;
|
|
35
|
+
ai: import("zod").ZodNumber;
|
|
36
|
+
sharedMailboxes: import("zod").ZodNumber;
|
|
37
|
+
meetings: import("zod").ZodNumber;
|
|
38
|
+
}, import("zod/v4/core").$strip>;
|
|
35
39
|
sendsPer1k: import("zod").ZodNumber;
|
|
36
|
-
|
|
40
|
+
aiClassificationsPer1k: import("zod").ZodNumber;
|
|
41
|
+
aiDraftsPer1k: import("zod").ZodNumber;
|
|
37
42
|
storagePerGbMonth: import("zod").ZodNumber;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
aiCallsPrice: import("zod").ZodNullable<import("zod").ZodString>;
|
|
43
|
-
storagePrice: import("zod").ZodNullable<import("zod").ZodString>;
|
|
44
|
-
}, import("zod/v4/core").$strip>;
|
|
43
|
+
creditPacks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
44
|
+
credits: import("zod").ZodNumber;
|
|
45
|
+
amount: import("zod").ZodNumber;
|
|
46
|
+
}, import("zod/v4/core").$strip>>;
|
|
45
47
|
}, import("zod/v4/core").$strip>>;
|
|
48
|
+
features: import("zod").ZodObject<{
|
|
49
|
+
sso: import("zod").ZodBoolean;
|
|
50
|
+
scim: import("zod").ZodBoolean;
|
|
51
|
+
auditLogRetentionDays: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
52
|
+
sla: import("zod").ZodBoolean;
|
|
53
|
+
customDpa: import("zod").ZodBoolean;
|
|
54
|
+
prioritySupport: import("zod").ZodBoolean;
|
|
55
|
+
}, import("zod/v4/core").$strip>;
|
|
46
56
|
}, import("zod/v4/core").$strip>;
|
|
47
57
|
}, import("zod/v4/core").$strip>;
|
|
48
58
|
current: import("zod").ZodObject<{
|
|
49
59
|
accounts: import("zod").ZodNumber;
|
|
50
60
|
webhookEndpoints: import("zod").ZodNumber;
|
|
51
61
|
sendsToday: import("zod").ZodNumber;
|
|
62
|
+
emailValidationsToday: import("zod").ZodNumber;
|
|
63
|
+
validationCredits: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
64
|
+
included: import("zod").ZodNumber;
|
|
65
|
+
includedExpiresAt: import("zod").ZodNullable<import("zod").ZodPreprocess<import("zod").ZodDate, Date>>;
|
|
66
|
+
purchased: import("zod").ZodNumber;
|
|
67
|
+
}, import("zod/v4/core").$strip>>;
|
|
52
68
|
storedBytes: import("zod").ZodNumber;
|
|
53
69
|
}, import("zod/v4/core").$strip>;
|
|
54
70
|
days: import("zod").ZodArray<import("zod").ZodObject<{
|
|
55
71
|
day: import("zod").ZodISODate;
|
|
56
72
|
liveAccounts: import("zod").ZodNumber;
|
|
73
|
+
mailAccounts: import("zod").ZodNumber;
|
|
74
|
+
calendarContactsAccounts: import("zod").ZodNumber;
|
|
75
|
+
meetingAccounts: import("zod").ZodNumber;
|
|
57
76
|
apiCalls: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>;
|
|
58
77
|
sends: import("zod").ZodNumber;
|
|
59
78
|
webhookDeliveries: import("zod").ZodNumber;
|
|
60
|
-
|
|
79
|
+
aiClassifications: import("zod").ZodNumber;
|
|
80
|
+
aiDrafts: import("zod").ZodNumber;
|
|
81
|
+
emailValidations: import("zod").ZodNumber;
|
|
61
82
|
storedBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
62
83
|
}, import("zod/v4/core").$strip>>;
|
|
84
|
+
period: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
85
|
+
start: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
|
|
86
|
+
end: import("zod").ZodPreprocess<import("zod").ZodDate, Date>;
|
|
87
|
+
firstDay: import("zod").ZodISODate;
|
|
88
|
+
}, import("zod/v4/core").$strip>>;
|
|
63
89
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, import("../errors.js").DeclaredErrors<{
|
|
64
90
|
readonly invalid_input: "The request does not match the operation's input schema (a malformed body included); data.issues names each problem.";
|
|
65
91
|
readonly unauthenticated: "No usable credential: none was sent, or it is malformed, unknown, revoked or an expired account token.";
|
|
@@ -67,6 +93,8 @@ export declare const usage: {
|
|
|
67
93
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
68
94
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
69
95
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
96
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
97
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
70
98
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
71
99
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
72
100
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
/** Standard Webhooks (https://www.standardwebhooks.com/) headers every delivery carries. */
|
|
3
2
|
export declare const WEBHOOK_HEADERS: {
|
|
4
3
|
readonly id: "webhook-id";
|
|
5
4
|
readonly timestamp: "webhook-timestamp";
|
|
6
5
|
readonly signature: "webhook-signature";
|
|
7
6
|
};
|
|
8
|
-
/** What a signing secret starts with; the base64 key follows. */
|
|
9
7
|
export declare const WEBHOOK_SECRET_PREFIX = "whsec_";
|
|
10
|
-
/**
|
|
11
|
-
* Criteria about the message an event concerns, applied to message.* and send.* events. Unset
|
|
12
|
-
* criteria (empty lists, null) match everything; every set criterion must match, and any one
|
|
13
|
-
* value of a list is enough. A set criterion the event's data cannot answer does not match.
|
|
14
|
-
*/
|
|
15
8
|
export declare const WebhookMessageFilters: z.ZodObject<{
|
|
16
9
|
mailboxIds: z.ZodArray<z.ZodUUID>;
|
|
17
10
|
mailboxRoles: z.ZodArray<z.ZodEnum<{
|
|
18
11
|
custom: "custom";
|
|
12
|
+
all: "all";
|
|
19
13
|
inbox: "inbox";
|
|
20
14
|
sent: "sent";
|
|
21
15
|
drafts: "drafts";
|
|
22
16
|
trash: "trash";
|
|
23
17
|
junk: "junk";
|
|
24
18
|
archive: "archive";
|
|
25
|
-
all: "all";
|
|
26
19
|
important: "important";
|
|
27
20
|
}>>;
|
|
28
21
|
from: z.ZodArray<z.ZodString>;
|
|
@@ -35,7 +28,6 @@ export declare const WebhookMessageFilters: z.ZodObject<{
|
|
|
35
28
|
}>>;
|
|
36
29
|
}, z.core.$strip>;
|
|
37
30
|
export type WebhookMessageFilters = z.infer<typeof WebhookMessageFilters>;
|
|
38
|
-
/** Which events an endpoint receives. Test events and replays of one picked event ignore them. */
|
|
39
31
|
export declare const WebhookFilters: z.ZodObject<{
|
|
40
32
|
eventTypes: z.ZodArray<z.ZodEnum<{
|
|
41
33
|
"account.connected": "account.connected";
|
|
@@ -58,6 +50,7 @@ export declare const WebhookFilters: z.ZodObject<{
|
|
|
58
50
|
"send.retrying": "send.retrying";
|
|
59
51
|
"send.failed": "send.failed";
|
|
60
52
|
"send.rescheduled": "send.rescheduled";
|
|
53
|
+
"send.cancelled": "send.cancelled";
|
|
61
54
|
"suppression.created": "suppression.created";
|
|
62
55
|
"calendar.initialized": "calendar.initialized";
|
|
63
56
|
"calendar.created": "calendar.created";
|
|
@@ -74,6 +67,8 @@ export declare const WebhookFilters: z.ZodObject<{
|
|
|
74
67
|
"export.failed": "export.failed";
|
|
75
68
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
76
69
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
70
|
+
"booking.created": "booking.created";
|
|
71
|
+
"booking.cancelled": "booking.cancelled";
|
|
77
72
|
"webhook.test": "webhook.test";
|
|
78
73
|
}>>;
|
|
79
74
|
accountIds: z.ZodArray<z.ZodUUID>;
|
|
@@ -81,13 +76,13 @@ export declare const WebhookFilters: z.ZodObject<{
|
|
|
81
76
|
mailboxIds: z.ZodArray<z.ZodUUID>;
|
|
82
77
|
mailboxRoles: z.ZodArray<z.ZodEnum<{
|
|
83
78
|
custom: "custom";
|
|
79
|
+
all: "all";
|
|
84
80
|
inbox: "inbox";
|
|
85
81
|
sent: "sent";
|
|
86
82
|
drafts: "drafts";
|
|
87
83
|
trash: "trash";
|
|
88
84
|
junk: "junk";
|
|
89
85
|
archive: "archive";
|
|
90
|
-
all: "all";
|
|
91
86
|
important: "important";
|
|
92
87
|
}>>;
|
|
93
88
|
from: z.ZodArray<z.ZodString>;
|
|
@@ -101,19 +96,17 @@ export declare const WebhookFilters: z.ZodObject<{
|
|
|
101
96
|
}, z.core.$strip>;
|
|
102
97
|
}, z.core.$strip>;
|
|
103
98
|
export type WebhookFilters = z.infer<typeof WebhookFilters>;
|
|
104
|
-
/** Message criteria as create and update take them: an omitted one is unset on create and left as
|
|
105
|
-
* it is on update; null clears hasAttachments and direction. */
|
|
106
99
|
export declare const WebhookMessageFiltersInput: z.ZodObject<{
|
|
107
100
|
mailboxIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
108
101
|
mailboxRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
109
102
|
custom: "custom";
|
|
103
|
+
all: "all";
|
|
110
104
|
inbox: "inbox";
|
|
111
105
|
sent: "sent";
|
|
112
106
|
drafts: "drafts";
|
|
113
107
|
trash: "trash";
|
|
114
108
|
junk: "junk";
|
|
115
109
|
archive: "archive";
|
|
116
|
-
all: "all";
|
|
117
110
|
important: "important";
|
|
118
111
|
}>>>;
|
|
119
112
|
from: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -126,8 +119,6 @@ export declare const WebhookMessageFiltersInput: z.ZodObject<{
|
|
|
126
119
|
}>>>;
|
|
127
120
|
}, z.core.$strip>;
|
|
128
121
|
export type WebhookMessageFiltersInput = z.infer<typeof WebhookMessageFiltersInput>;
|
|
129
|
-
/** Filters as create and update take them: an omitted one is unset on create and left as it is
|
|
130
|
-
* on update. */
|
|
131
122
|
export declare const WebhookFiltersInput: z.ZodObject<{
|
|
132
123
|
eventTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
133
124
|
"account.connected": "account.connected";
|
|
@@ -150,6 +141,7 @@ export declare const WebhookFiltersInput: z.ZodObject<{
|
|
|
150
141
|
"send.retrying": "send.retrying";
|
|
151
142
|
"send.failed": "send.failed";
|
|
152
143
|
"send.rescheduled": "send.rescheduled";
|
|
144
|
+
"send.cancelled": "send.cancelled";
|
|
153
145
|
"suppression.created": "suppression.created";
|
|
154
146
|
"calendar.initialized": "calendar.initialized";
|
|
155
147
|
"calendar.created": "calendar.created";
|
|
@@ -166,6 +158,8 @@ export declare const WebhookFiltersInput: z.ZodObject<{
|
|
|
166
158
|
"export.failed": "export.failed";
|
|
167
159
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
168
160
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
161
|
+
"booking.created": "booking.created";
|
|
162
|
+
"booking.cancelled": "booking.cancelled";
|
|
169
163
|
"webhook.test": "webhook.test";
|
|
170
164
|
}>>>;
|
|
171
165
|
accountIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
@@ -173,13 +167,13 @@ export declare const WebhookFiltersInput: z.ZodObject<{
|
|
|
173
167
|
mailboxIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
174
168
|
mailboxRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
175
169
|
custom: "custom";
|
|
170
|
+
all: "all";
|
|
176
171
|
inbox: "inbox";
|
|
177
172
|
sent: "sent";
|
|
178
173
|
drafts: "drafts";
|
|
179
174
|
trash: "trash";
|
|
180
175
|
junk: "junk";
|
|
181
176
|
archive: "archive";
|
|
182
|
-
all: "all";
|
|
183
177
|
important: "important";
|
|
184
178
|
}>>>;
|
|
185
179
|
from: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -219,6 +213,7 @@ export declare const WebhookEndpoint: z.ZodObject<{
|
|
|
219
213
|
"send.retrying": "send.retrying";
|
|
220
214
|
"send.failed": "send.failed";
|
|
221
215
|
"send.rescheduled": "send.rescheduled";
|
|
216
|
+
"send.cancelled": "send.cancelled";
|
|
222
217
|
"suppression.created": "suppression.created";
|
|
223
218
|
"calendar.initialized": "calendar.initialized";
|
|
224
219
|
"calendar.created": "calendar.created";
|
|
@@ -235,6 +230,8 @@ export declare const WebhookEndpoint: z.ZodObject<{
|
|
|
235
230
|
"export.failed": "export.failed";
|
|
236
231
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
237
232
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
233
|
+
"booking.created": "booking.created";
|
|
234
|
+
"booking.cancelled": "booking.cancelled";
|
|
238
235
|
"webhook.test": "webhook.test";
|
|
239
236
|
}>>;
|
|
240
237
|
accountIds: z.ZodArray<z.ZodUUID>;
|
|
@@ -242,13 +239,13 @@ export declare const WebhookEndpoint: z.ZodObject<{
|
|
|
242
239
|
mailboxIds: z.ZodArray<z.ZodUUID>;
|
|
243
240
|
mailboxRoles: z.ZodArray<z.ZodEnum<{
|
|
244
241
|
custom: "custom";
|
|
242
|
+
all: "all";
|
|
245
243
|
inbox: "inbox";
|
|
246
244
|
sent: "sent";
|
|
247
245
|
drafts: "drafts";
|
|
248
246
|
trash: "trash";
|
|
249
247
|
junk: "junk";
|
|
250
248
|
archive: "archive";
|
|
251
|
-
all: "all";
|
|
252
249
|
important: "important";
|
|
253
250
|
}>>;
|
|
254
251
|
from: z.ZodArray<z.ZodString>;
|
|
@@ -296,6 +293,7 @@ export declare const WebhookEndpointList: z.ZodObject<{
|
|
|
296
293
|
"send.retrying": "send.retrying";
|
|
297
294
|
"send.failed": "send.failed";
|
|
298
295
|
"send.rescheduled": "send.rescheduled";
|
|
296
|
+
"send.cancelled": "send.cancelled";
|
|
299
297
|
"suppression.created": "suppression.created";
|
|
300
298
|
"calendar.initialized": "calendar.initialized";
|
|
301
299
|
"calendar.created": "calendar.created";
|
|
@@ -312,6 +310,8 @@ export declare const WebhookEndpointList: z.ZodObject<{
|
|
|
312
310
|
"export.failed": "export.failed";
|
|
313
311
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
314
312
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
313
|
+
"booking.created": "booking.created";
|
|
314
|
+
"booking.cancelled": "booking.cancelled";
|
|
315
315
|
"webhook.test": "webhook.test";
|
|
316
316
|
}>>;
|
|
317
317
|
accountIds: z.ZodArray<z.ZodUUID>;
|
|
@@ -319,13 +319,13 @@ export declare const WebhookEndpointList: z.ZodObject<{
|
|
|
319
319
|
mailboxIds: z.ZodArray<z.ZodUUID>;
|
|
320
320
|
mailboxRoles: z.ZodArray<z.ZodEnum<{
|
|
321
321
|
custom: "custom";
|
|
322
|
+
all: "all";
|
|
322
323
|
inbox: "inbox";
|
|
323
324
|
sent: "sent";
|
|
324
325
|
drafts: "drafts";
|
|
325
326
|
trash: "trash";
|
|
326
327
|
junk: "junk";
|
|
327
328
|
archive: "archive";
|
|
328
|
-
all: "all";
|
|
329
329
|
important: "important";
|
|
330
330
|
}>>;
|
|
331
331
|
from: z.ZodArray<z.ZodString>;
|
|
@@ -347,7 +347,6 @@ export declare const WebhookEndpointList: z.ZodObject<{
|
|
|
347
347
|
}, z.core.$strip>>;
|
|
348
348
|
}, z.core.$strip>;
|
|
349
349
|
export type WebhookEndpointList = z.infer<typeof WebhookEndpointList>;
|
|
350
|
-
/** A new endpoint with its signing secret, which is returned only this once. */
|
|
351
350
|
export declare const WebhookEndpointWithSecret: z.ZodObject<{
|
|
352
351
|
endpoint: z.ZodObject<{
|
|
353
352
|
id: z.ZodUUID;
|
|
@@ -375,6 +374,7 @@ export declare const WebhookEndpointWithSecret: z.ZodObject<{
|
|
|
375
374
|
"send.retrying": "send.retrying";
|
|
376
375
|
"send.failed": "send.failed";
|
|
377
376
|
"send.rescheduled": "send.rescheduled";
|
|
377
|
+
"send.cancelled": "send.cancelled";
|
|
378
378
|
"suppression.created": "suppression.created";
|
|
379
379
|
"calendar.initialized": "calendar.initialized";
|
|
380
380
|
"calendar.created": "calendar.created";
|
|
@@ -391,6 +391,8 @@ export declare const WebhookEndpointWithSecret: z.ZodObject<{
|
|
|
391
391
|
"export.failed": "export.failed";
|
|
392
392
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
393
393
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
394
|
+
"booking.created": "booking.created";
|
|
395
|
+
"booking.cancelled": "booking.cancelled";
|
|
394
396
|
"webhook.test": "webhook.test";
|
|
395
397
|
}>>;
|
|
396
398
|
accountIds: z.ZodArray<z.ZodUUID>;
|
|
@@ -398,13 +400,13 @@ export declare const WebhookEndpointWithSecret: z.ZodObject<{
|
|
|
398
400
|
mailboxIds: z.ZodArray<z.ZodUUID>;
|
|
399
401
|
mailboxRoles: z.ZodArray<z.ZodEnum<{
|
|
400
402
|
custom: "custom";
|
|
403
|
+
all: "all";
|
|
401
404
|
inbox: "inbox";
|
|
402
405
|
sent: "sent";
|
|
403
406
|
drafts: "drafts";
|
|
404
407
|
trash: "trash";
|
|
405
408
|
junk: "junk";
|
|
406
409
|
archive: "archive";
|
|
407
|
-
all: "all";
|
|
408
410
|
important: "important";
|
|
409
411
|
}>>;
|
|
410
412
|
from: z.ZodArray<z.ZodString>;
|
|
@@ -432,7 +434,6 @@ export declare const WebhookSecret: z.ZodObject<{
|
|
|
432
434
|
previousSecretExpiresAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
433
435
|
}, z.core.$strip>;
|
|
434
436
|
export type WebhookSecret = z.infer<typeof WebhookSecret>;
|
|
435
|
-
/** How long the replaced secret keeps signing deliveries alongside the new one; 0 = not at all. */
|
|
436
437
|
export declare const RotateWebhookSecretRequest: z.ZodObject<{
|
|
437
438
|
graceSeconds: z.ZodDefault<z.ZodNumber>;
|
|
438
439
|
}, z.core.$strip>;
|
|
@@ -466,6 +467,7 @@ export declare const CreateWebhookEndpoint: z.ZodObject<{
|
|
|
466
467
|
"send.retrying": "send.retrying";
|
|
467
468
|
"send.failed": "send.failed";
|
|
468
469
|
"send.rescheduled": "send.rescheduled";
|
|
470
|
+
"send.cancelled": "send.cancelled";
|
|
469
471
|
"suppression.created": "suppression.created";
|
|
470
472
|
"calendar.initialized": "calendar.initialized";
|
|
471
473
|
"calendar.created": "calendar.created";
|
|
@@ -482,6 +484,8 @@ export declare const CreateWebhookEndpoint: z.ZodObject<{
|
|
|
482
484
|
"export.failed": "export.failed";
|
|
483
485
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
484
486
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
487
|
+
"booking.created": "booking.created";
|
|
488
|
+
"booking.cancelled": "booking.cancelled";
|
|
485
489
|
"webhook.test": "webhook.test";
|
|
486
490
|
}>>>;
|
|
487
491
|
accountIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
@@ -489,13 +493,13 @@ export declare const CreateWebhookEndpoint: z.ZodObject<{
|
|
|
489
493
|
mailboxIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
490
494
|
mailboxRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
491
495
|
custom: "custom";
|
|
496
|
+
all: "all";
|
|
492
497
|
inbox: "inbox";
|
|
493
498
|
sent: "sent";
|
|
494
499
|
drafts: "drafts";
|
|
495
500
|
trash: "trash";
|
|
496
501
|
junk: "junk";
|
|
497
502
|
archive: "archive";
|
|
498
|
-
all: "all";
|
|
499
503
|
important: "important";
|
|
500
504
|
}>>>;
|
|
501
505
|
from: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -535,6 +539,7 @@ export declare const UpdateWebhookEndpoint: z.ZodObject<{
|
|
|
535
539
|
"send.retrying": "send.retrying";
|
|
536
540
|
"send.failed": "send.failed";
|
|
537
541
|
"send.rescheduled": "send.rescheduled";
|
|
542
|
+
"send.cancelled": "send.cancelled";
|
|
538
543
|
"suppression.created": "suppression.created";
|
|
539
544
|
"calendar.initialized": "calendar.initialized";
|
|
540
545
|
"calendar.created": "calendar.created";
|
|
@@ -551,6 +556,8 @@ export declare const UpdateWebhookEndpoint: z.ZodObject<{
|
|
|
551
556
|
"export.failed": "export.failed";
|
|
552
557
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
553
558
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
559
|
+
"booking.created": "booking.created";
|
|
560
|
+
"booking.cancelled": "booking.cancelled";
|
|
554
561
|
"webhook.test": "webhook.test";
|
|
555
562
|
}>>>;
|
|
556
563
|
accountIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
@@ -558,13 +565,13 @@ export declare const UpdateWebhookEndpoint: z.ZodObject<{
|
|
|
558
565
|
mailboxIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
559
566
|
mailboxRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
560
567
|
custom: "custom";
|
|
568
|
+
all: "all";
|
|
561
569
|
inbox: "inbox";
|
|
562
570
|
sent: "sent";
|
|
563
571
|
drafts: "drafts";
|
|
564
572
|
trash: "trash";
|
|
565
573
|
junk: "junk";
|
|
566
574
|
archive: "archive";
|
|
567
|
-
all: "all";
|
|
568
575
|
important: "important";
|
|
569
576
|
}>>>;
|
|
570
577
|
from: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -602,6 +609,7 @@ export declare const SendTestEventRequest: z.ZodObject<{
|
|
|
602
609
|
"send.retrying": "send.retrying";
|
|
603
610
|
"send.failed": "send.failed";
|
|
604
611
|
"send.rescheduled": "send.rescheduled";
|
|
612
|
+
"send.cancelled": "send.cancelled";
|
|
605
613
|
"suppression.created": "suppression.created";
|
|
606
614
|
"calendar.initialized": "calendar.initialized";
|
|
607
615
|
"calendar.created": "calendar.created";
|
|
@@ -618,6 +626,8 @@ export declare const SendTestEventRequest: z.ZodObject<{
|
|
|
618
626
|
"export.failed": "export.failed";
|
|
619
627
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
620
628
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
629
|
+
"booking.created": "booking.created";
|
|
630
|
+
"booking.cancelled": "booking.cancelled";
|
|
621
631
|
"webhook.test": "webhook.test";
|
|
622
632
|
}>>;
|
|
623
633
|
accountId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -633,7 +643,6 @@ export declare const WebhookAttemptResult: z.ZodEnum<{
|
|
|
633
643
|
succeeded: "succeeded";
|
|
634
644
|
}>;
|
|
635
645
|
export type WebhookAttemptResult = z.infer<typeof WebhookAttemptResult>;
|
|
636
|
-
/** One delivery attempt, newest first in the endpoint's delivery log. */
|
|
637
646
|
export declare const WebhookAttempt: z.ZodObject<{
|
|
638
647
|
id: z.ZodUUID;
|
|
639
648
|
eventId: z.ZodString;
|
|
@@ -658,6 +667,7 @@ export declare const WebhookAttempt: z.ZodObject<{
|
|
|
658
667
|
"send.retrying": "send.retrying";
|
|
659
668
|
"send.failed": "send.failed";
|
|
660
669
|
"send.rescheduled": "send.rescheduled";
|
|
670
|
+
"send.cancelled": "send.cancelled";
|
|
661
671
|
"suppression.created": "suppression.created";
|
|
662
672
|
"calendar.initialized": "calendar.initialized";
|
|
663
673
|
"calendar.created": "calendar.created";
|
|
@@ -674,6 +684,8 @@ export declare const WebhookAttempt: z.ZodObject<{
|
|
|
674
684
|
"export.failed": "export.failed";
|
|
675
685
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
676
686
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
687
|
+
"booking.created": "booking.created";
|
|
688
|
+
"booking.cancelled": "booking.cancelled";
|
|
677
689
|
"webhook.test": "webhook.test";
|
|
678
690
|
}>;
|
|
679
691
|
accountId: z.ZodNullable<z.ZodUUID>;
|
|
@@ -712,6 +724,7 @@ export declare const WebhookAttemptPage: z.ZodObject<{
|
|
|
712
724
|
"send.retrying": "send.retrying";
|
|
713
725
|
"send.failed": "send.failed";
|
|
714
726
|
"send.rescheduled": "send.rescheduled";
|
|
727
|
+
"send.cancelled": "send.cancelled";
|
|
715
728
|
"suppression.created": "suppression.created";
|
|
716
729
|
"calendar.initialized": "calendar.initialized";
|
|
717
730
|
"calendar.created": "calendar.created";
|
|
@@ -728,6 +741,8 @@ export declare const WebhookAttemptPage: z.ZodObject<{
|
|
|
728
741
|
"export.failed": "export.failed";
|
|
729
742
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
730
743
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
744
|
+
"booking.created": "booking.created";
|
|
745
|
+
"booking.cancelled": "booking.cancelled";
|
|
731
746
|
"webhook.test": "webhook.test";
|
|
732
747
|
}>;
|
|
733
748
|
accountId: z.ZodNullable<z.ZodUUID>;
|
|
@@ -767,6 +782,7 @@ export declare const ListWebhookAttemptsQuery: z.ZodObject<{
|
|
|
767
782
|
"send.retrying": "send.retrying";
|
|
768
783
|
"send.failed": "send.failed";
|
|
769
784
|
"send.rescheduled": "send.rescheduled";
|
|
785
|
+
"send.cancelled": "send.cancelled";
|
|
770
786
|
"suppression.created": "suppression.created";
|
|
771
787
|
"calendar.initialized": "calendar.initialized";
|
|
772
788
|
"calendar.created": "calendar.created";
|
|
@@ -783,6 +799,8 @@ export declare const ListWebhookAttemptsQuery: z.ZodObject<{
|
|
|
783
799
|
"export.failed": "export.failed";
|
|
784
800
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
785
801
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
802
|
+
"booking.created": "booking.created";
|
|
803
|
+
"booking.cancelled": "booking.cancelled";
|
|
786
804
|
"webhook.test": "webhook.test";
|
|
787
805
|
}>>;
|
|
788
806
|
eventId: z.ZodOptional<z.ZodString>;
|
|
@@ -795,8 +813,6 @@ export declare const ListWebhookAttemptsQuery: z.ZodObject<{
|
|
|
795
813
|
until: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
796
814
|
}, z.core.$strip>;
|
|
797
815
|
export type ListWebhookAttemptsQuery = z.infer<typeof ListWebhookAttemptsQuery>;
|
|
798
|
-
/** attempts' input: the endpoint, and a window whose until (when given with since) comes after
|
|
799
|
-
* since (invalid_range). */
|
|
800
816
|
export declare const ListWebhookAttemptsInput: z.ZodObject<{
|
|
801
817
|
endpointId: z.ZodUUID;
|
|
802
818
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -822,6 +838,7 @@ export declare const ListWebhookAttemptsInput: z.ZodObject<{
|
|
|
822
838
|
"send.retrying": "send.retrying";
|
|
823
839
|
"send.failed": "send.failed";
|
|
824
840
|
"send.rescheduled": "send.rescheduled";
|
|
841
|
+
"send.cancelled": "send.cancelled";
|
|
825
842
|
"suppression.created": "suppression.created";
|
|
826
843
|
"calendar.initialized": "calendar.initialized";
|
|
827
844
|
"calendar.created": "calendar.created";
|
|
@@ -838,6 +855,8 @@ export declare const ListWebhookAttemptsInput: z.ZodObject<{
|
|
|
838
855
|
"export.failed": "export.failed";
|
|
839
856
|
"meeting_connection.connected": "meeting_connection.connected";
|
|
840
857
|
"meeting_connection.reauth_required": "meeting_connection.reauth_required";
|
|
858
|
+
"booking.created": "booking.created";
|
|
859
|
+
"booking.cancelled": "booking.cancelled";
|
|
841
860
|
"webhook.test": "webhook.test";
|
|
842
861
|
}>>;
|
|
843
862
|
eventId: z.ZodOptional<z.ZodString>;
|
|
@@ -849,14 +868,11 @@ export declare const ListWebhookAttemptsInput: z.ZodObject<{
|
|
|
849
868
|
since: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
850
869
|
until: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
851
870
|
}, z.core.$strip>;
|
|
852
|
-
/** The event to replay, whatever the endpoint's filters. */
|
|
853
871
|
export declare const ReplayEventInput: z.ZodObject<{
|
|
854
872
|
endpointId: z.ZodUUID;
|
|
855
873
|
eventId: z.ZodString;
|
|
856
874
|
}, z.core.$strip>;
|
|
857
875
|
export type ReplayEventInput = z.infer<typeof ReplayEventInput>;
|
|
858
|
-
/** Every event in [since, until) the endpoint receives with its current filters; until after
|
|
859
|
-
* since (invalid_range). */
|
|
860
876
|
export declare const ReplayRangeRequest: z.ZodObject<{
|
|
861
877
|
since: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
862
878
|
until: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
@@ -867,7 +883,6 @@ export declare const ReplayResult: z.ZodObject<{
|
|
|
867
883
|
alreadyQueued: z.ZodNumber;
|
|
868
884
|
}, z.core.$strip>;
|
|
869
885
|
export type ReplayResult = z.infer<typeof ReplayResult>;
|
|
870
|
-
/** The failed deliveries to replay: those of events created in [since, until), either end open. */
|
|
871
886
|
export declare const FailedDeliveriesQuery: z.ZodObject<{
|
|
872
887
|
since: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|
|
873
888
|
until: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
|