@workwae/sdk 0.0.0-stage → 0.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +233 -2
- package/client.d.ts +36 -0
- package/contract/accounts/models.d.ts +766 -0
- package/contract/accounts/routes.d.ts +1480 -0
- package/contract/ai/models.d.ts +29 -0
- package/contract/ai/routes.d.ts +98 -0
- package/contract/audit-log/models.d.ts +121 -0
- package/contract/audit-log/routes.d.ts +81 -0
- package/contract/calendar/models.d.ts +1012 -0
- package/contract/calendar/routes.d.ts +1843 -0
- package/contract/connect/models.d.ts +284 -0
- package/contract/connect/routes.d.ts +570 -0
- package/contract/contacts/models.d.ts +259 -0
- package/contract/contacts/routes.d.ts +648 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +116 -0
- package/contract/events/models.d.ts +2424 -0
- package/contract/events/routes.d.ts +117 -0
- package/contract/exports/models.d.ts +67 -0
- package/contract/exports/routes.d.ts +206 -0
- package/contract/identities/models.d.ts +98 -0
- package/contract/identities/routes.d.ts +318 -0
- package/contract/limits.d.ts +118 -0
- package/contract/mail/models.d.ts +571 -0
- package/contract/mail/routes.d.ts +1189 -0
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +227 -0
- package/contract/meetings/routes.d.ts +405 -0
- package/contract/oauth-apps/models.d.ts +86 -0
- package/contract/oauth-apps/routes.d.ts +195 -0
- package/contract/org-connections/models.d.ts +427 -0
- package/contract/org-connections/routes.d.ts +1107 -0
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +85 -0
- package/contract/public.d.ts +32 -0
- package/contract/reasons.d.ts +1222 -0
- package/contract/router.d.ts +12986 -0
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +787 -0
- package/contract/send/routes.d.ts +1488 -0
- package/contract/settings/models.d.ts +163 -0
- package/contract/settings/routes.d.ts +162 -0
- package/contract/suppressions/models.d.ts +224 -0
- package/contract/suppressions/routes.d.ts +365 -0
- package/contract/templates/models.d.ts +155 -0
- package/contract/templates/routes.d.ts +305 -0
- package/contract/threads/models.d.ts +112 -0
- package/contract/threads/routes.d.ts +376 -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 +185 -0
- package/contract/usage/routes.d.ts +109 -0
- package/contract/webhooks/models.d.ts +894 -0
- package/contract/webhooks/routes.d.ts +882 -0
- package/contract/webhooks/signing.d.ts +19 -0
- package/errors.d.ts +15 -0
- package/index.d.ts +6 -0
- package/index.js +1 -0
- package/package.json +44 -4
- package/pagination.d.ts +40 -0
- package/webhooks.d.ts +28 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const MailAccess: z.ZodEnum<{
|
|
3
|
+
imap: "imap";
|
|
4
|
+
api: "api";
|
|
5
|
+
}>;
|
|
6
|
+
export type MailAccess = z.infer<typeof MailAccess>;
|
|
7
|
+
export declare const ConnectOptions: z.ZodObject<{
|
|
8
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
none: "none";
|
|
13
|
+
cache: "cache";
|
|
14
|
+
full: "full";
|
|
15
|
+
}>>;
|
|
16
|
+
mailAccess: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
imap: "imap";
|
|
18
|
+
api: "api";
|
|
19
|
+
}>>;
|
|
20
|
+
sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type ConnectOptions = z.infer<typeof ConnectOptions>;
|
|
23
|
+
export declare const ConnectProvider: z.ZodEnum<{
|
|
24
|
+
google: "google";
|
|
25
|
+
microsoft: "microsoft";
|
|
26
|
+
imap: "imap";
|
|
27
|
+
}>;
|
|
28
|
+
export type ConnectProvider = z.infer<typeof ConnectProvider>;
|
|
29
|
+
export declare const ConnectSessionStatus: z.ZodEnum<{
|
|
30
|
+
pending: "pending";
|
|
31
|
+
completed: "completed";
|
|
32
|
+
failed: "failed";
|
|
33
|
+
}>;
|
|
34
|
+
export type ConnectSessionStatus = z.infer<typeof ConnectSessionStatus>;
|
|
35
|
+
export declare const ConnectErrorCode: z.ZodEnum<{
|
|
36
|
+
session_used: "session_used";
|
|
37
|
+
session_expired: "session_expired";
|
|
38
|
+
provider_not_allowed: "provider_not_allowed";
|
|
39
|
+
access_denied: "access_denied";
|
|
40
|
+
access_token_rejected: "access_token_rejected";
|
|
41
|
+
provider_error: "provider_error";
|
|
42
|
+
provider_unavailable: "provider_unavailable";
|
|
43
|
+
provider_not_configured: "provider_not_configured";
|
|
44
|
+
unsupported_provider: "unsupported_provider";
|
|
45
|
+
token_exchange_failed: "token_exchange_failed";
|
|
46
|
+
invalid_client: "invalid_client";
|
|
47
|
+
interaction_required: "interaction_required";
|
|
48
|
+
invalid_grant: "invalid_grant";
|
|
49
|
+
missing_refresh_token: "missing_refresh_token";
|
|
50
|
+
scope_denied: "scope_denied";
|
|
51
|
+
identity_failed: "identity_failed";
|
|
52
|
+
identity_unavailable: "identity_unavailable";
|
|
53
|
+
credential_conflict: "credential_conflict";
|
|
54
|
+
credential_missing: "credential_missing";
|
|
55
|
+
delegate_missing: "delegate_missing";
|
|
56
|
+
account_exists: "account_exists";
|
|
57
|
+
account_mismatch: "account_mismatch";
|
|
58
|
+
account_not_found: "account_not_found";
|
|
59
|
+
unknown_oauth_app: "unknown_oauth_app";
|
|
60
|
+
oauth_app_mismatch: "oauth_app_mismatch";
|
|
61
|
+
oauth_app_secret_unreadable: "oauth_app_secret_unreadable";
|
|
62
|
+
google_imap_requires_own_app: "google_imap_requires_own_app";
|
|
63
|
+
unknown_meeting_app: "unknown_meeting_app";
|
|
64
|
+
meeting_app_mismatch: "meeting_app_mismatch";
|
|
65
|
+
meeting_app_secret_unreadable: "meeting_app_secret_unreadable";
|
|
66
|
+
consent_failed: "consent_failed";
|
|
67
|
+
consent_required: "consent_required";
|
|
68
|
+
consent_revoked: "consent_revoked";
|
|
69
|
+
consent_unverified: "consent_unverified";
|
|
70
|
+
directory_already_connected: "directory_already_connected";
|
|
71
|
+
directory_mismatch: "directory_mismatch";
|
|
72
|
+
directory_unavailable: "directory_unavailable";
|
|
73
|
+
invalid_certificate: "invalid_certificate";
|
|
74
|
+
invalid_service_account_key: "invalid_service_account_key";
|
|
75
|
+
org_connection_not_found: "org_connection_not_found";
|
|
76
|
+
org_connection_secret_unreadable: "org_connection_secret_unreadable";
|
|
77
|
+
plan_limit_accounts: "plan_limit_accounts";
|
|
78
|
+
plan_required: "plan_required";
|
|
79
|
+
spend_cap_reached: "spend_cap_reached";
|
|
80
|
+
plan_module_unavailable: "plan_module_unavailable";
|
|
81
|
+
connect_grants_nothing: "connect_grants_nothing";
|
|
82
|
+
billing_past_due: "billing_past_due";
|
|
83
|
+
internal_error: "internal_error";
|
|
84
|
+
}>;
|
|
85
|
+
export type ConnectErrorCode = z.infer<typeof ConnectErrorCode>;
|
|
86
|
+
export declare const ConnectSessionPublic: z.ZodObject<{
|
|
87
|
+
tenantName: z.ZodString;
|
|
88
|
+
providers: z.ZodArray<z.ZodEnum<{
|
|
89
|
+
google: "google";
|
|
90
|
+
microsoft: "microsoft";
|
|
91
|
+
imap: "imap";
|
|
92
|
+
}>>;
|
|
93
|
+
microsoftCloud: z.ZodEnum<{
|
|
94
|
+
global: "global";
|
|
95
|
+
"gcc-high": "gcc-high";
|
|
96
|
+
dod: "dod";
|
|
97
|
+
china: "china";
|
|
98
|
+
}>;
|
|
99
|
+
status: z.ZodEnum<{
|
|
100
|
+
pending: "pending";
|
|
101
|
+
completed: "completed";
|
|
102
|
+
failed: "failed";
|
|
103
|
+
}>;
|
|
104
|
+
reauthEmail: z.ZodNullable<z.ZodString>;
|
|
105
|
+
modules: z.ZodObject<{
|
|
106
|
+
mail: z.ZodBoolean;
|
|
107
|
+
calendar: z.ZodBoolean;
|
|
108
|
+
contacts: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
loginHint: z.ZodNullable<z.ZodString>;
|
|
111
|
+
expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type ConnectSessionPublic = z.infer<typeof ConnectSessionPublic>;
|
|
114
|
+
export declare const ConnectSession: z.ZodObject<{
|
|
115
|
+
id: z.ZodUUID;
|
|
116
|
+
status: z.ZodEnum<{
|
|
117
|
+
pending: "pending";
|
|
118
|
+
completed: "completed";
|
|
119
|
+
failed: "failed";
|
|
120
|
+
}>;
|
|
121
|
+
error: z.ZodNullable<z.ZodEnum<{
|
|
122
|
+
session_used: "session_used";
|
|
123
|
+
session_expired: "session_expired";
|
|
124
|
+
provider_not_allowed: "provider_not_allowed";
|
|
125
|
+
access_denied: "access_denied";
|
|
126
|
+
access_token_rejected: "access_token_rejected";
|
|
127
|
+
provider_error: "provider_error";
|
|
128
|
+
provider_unavailable: "provider_unavailable";
|
|
129
|
+
provider_not_configured: "provider_not_configured";
|
|
130
|
+
unsupported_provider: "unsupported_provider";
|
|
131
|
+
token_exchange_failed: "token_exchange_failed";
|
|
132
|
+
invalid_client: "invalid_client";
|
|
133
|
+
interaction_required: "interaction_required";
|
|
134
|
+
invalid_grant: "invalid_grant";
|
|
135
|
+
missing_refresh_token: "missing_refresh_token";
|
|
136
|
+
scope_denied: "scope_denied";
|
|
137
|
+
identity_failed: "identity_failed";
|
|
138
|
+
identity_unavailable: "identity_unavailable";
|
|
139
|
+
credential_conflict: "credential_conflict";
|
|
140
|
+
credential_missing: "credential_missing";
|
|
141
|
+
delegate_missing: "delegate_missing";
|
|
142
|
+
account_exists: "account_exists";
|
|
143
|
+
account_mismatch: "account_mismatch";
|
|
144
|
+
account_not_found: "account_not_found";
|
|
145
|
+
unknown_oauth_app: "unknown_oauth_app";
|
|
146
|
+
oauth_app_mismatch: "oauth_app_mismatch";
|
|
147
|
+
oauth_app_secret_unreadable: "oauth_app_secret_unreadable";
|
|
148
|
+
google_imap_requires_own_app: "google_imap_requires_own_app";
|
|
149
|
+
unknown_meeting_app: "unknown_meeting_app";
|
|
150
|
+
meeting_app_mismatch: "meeting_app_mismatch";
|
|
151
|
+
meeting_app_secret_unreadable: "meeting_app_secret_unreadable";
|
|
152
|
+
consent_failed: "consent_failed";
|
|
153
|
+
consent_required: "consent_required";
|
|
154
|
+
consent_revoked: "consent_revoked";
|
|
155
|
+
consent_unverified: "consent_unverified";
|
|
156
|
+
directory_already_connected: "directory_already_connected";
|
|
157
|
+
directory_mismatch: "directory_mismatch";
|
|
158
|
+
directory_unavailable: "directory_unavailable";
|
|
159
|
+
invalid_certificate: "invalid_certificate";
|
|
160
|
+
invalid_service_account_key: "invalid_service_account_key";
|
|
161
|
+
org_connection_not_found: "org_connection_not_found";
|
|
162
|
+
org_connection_secret_unreadable: "org_connection_secret_unreadable";
|
|
163
|
+
plan_limit_accounts: "plan_limit_accounts";
|
|
164
|
+
plan_required: "plan_required";
|
|
165
|
+
spend_cap_reached: "spend_cap_reached";
|
|
166
|
+
plan_module_unavailable: "plan_module_unavailable";
|
|
167
|
+
connect_grants_nothing: "connect_grants_nothing";
|
|
168
|
+
billing_past_due: "billing_past_due";
|
|
169
|
+
internal_error: "internal_error";
|
|
170
|
+
}>>;
|
|
171
|
+
accountId: z.ZodNullable<z.ZodUUID>;
|
|
172
|
+
email: z.ZodNullable<z.ZodString>;
|
|
173
|
+
mcpKeyId: z.ZodNullable<z.ZodUUID>;
|
|
174
|
+
mcpKeySkipped: z.ZodNullable<z.ZodEnum<{
|
|
175
|
+
mcp_key_limit: "mcp_key_limit";
|
|
176
|
+
}>>;
|
|
177
|
+
expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
178
|
+
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export type ConnectSession = z.infer<typeof ConnectSession>;
|
|
181
|
+
export declare const RedirectState: z.ZodString;
|
|
182
|
+
export declare const SessionTtlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
183
|
+
export declare const CreateConnectSession: z.ZodObject<{
|
|
184
|
+
redirectUri: z.ZodOptional<z.ZodURL>;
|
|
185
|
+
providers: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
186
|
+
google: "google";
|
|
187
|
+
microsoft: "microsoft";
|
|
188
|
+
imap: "imap";
|
|
189
|
+
}>>>;
|
|
190
|
+
microsoftCloud: z.ZodDefault<z.ZodEnum<{
|
|
191
|
+
global: "global";
|
|
192
|
+
"gcc-high": "gcc-high";
|
|
193
|
+
dod: "dod";
|
|
194
|
+
china: "china";
|
|
195
|
+
}>>;
|
|
196
|
+
oauthAppIds: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
google: z.ZodOptional<z.ZodUUID>;
|
|
198
|
+
microsoft: z.ZodOptional<z.ZodUUID>;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
externalRef: z.ZodOptional<z.ZodString>;
|
|
201
|
+
loginHint: z.ZodOptional<z.ZodEmail>;
|
|
202
|
+
state: z.ZodOptional<z.ZodString>;
|
|
203
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
204
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
207
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
none: "none";
|
|
210
|
+
cache: "cache";
|
|
211
|
+
full: "full";
|
|
212
|
+
}>>;
|
|
213
|
+
mailAccess: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
imap: "imap";
|
|
215
|
+
api: "api";
|
|
216
|
+
}>>;
|
|
217
|
+
sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
mcp: z.ZodOptional<z.ZodObject<{
|
|
220
|
+
scopes: z.ZodArray<z.ZodEnum<{
|
|
221
|
+
read: "read";
|
|
222
|
+
write: "write";
|
|
223
|
+
send: "send";
|
|
224
|
+
}>>;
|
|
225
|
+
name: z.ZodDefault<z.ZodString>;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
ttlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
export type CreateConnectSession = z.infer<typeof CreateConnectSession>;
|
|
230
|
+
export declare const SessionLink: z.ZodObject<{
|
|
231
|
+
id: z.ZodUUID;
|
|
232
|
+
url: z.ZodURL;
|
|
233
|
+
expiresAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
export type SessionLink = z.infer<typeof SessionLink>;
|
|
236
|
+
export declare const ConnectSessionIdInput: z.ZodObject<{
|
|
237
|
+
sessionId: z.ZodUUID;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
export type ConnectSessionIdInput = z.infer<typeof ConnectSessionIdInput>;
|
|
240
|
+
export declare const StartOAuthRequest: z.ZodObject<{
|
|
241
|
+
provider: z.ZodEnum<{
|
|
242
|
+
google: "google";
|
|
243
|
+
microsoft: "microsoft";
|
|
244
|
+
}>;
|
|
245
|
+
redirectUri: z.ZodURL;
|
|
246
|
+
microsoftCloud: z.ZodDefault<z.ZodEnum<{
|
|
247
|
+
global: "global";
|
|
248
|
+
"gcc-high": "gcc-high";
|
|
249
|
+
dod: "dod";
|
|
250
|
+
china: "china";
|
|
251
|
+
}>>;
|
|
252
|
+
oauthAppId: z.ZodOptional<z.ZodUUID>;
|
|
253
|
+
externalRef: z.ZodOptional<z.ZodString>;
|
|
254
|
+
state: z.ZodOptional<z.ZodString>;
|
|
255
|
+
accountId: z.ZodOptional<z.ZodUUID>;
|
|
256
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
261
|
+
none: "none";
|
|
262
|
+
cache: "cache";
|
|
263
|
+
full: "full";
|
|
264
|
+
}>>;
|
|
265
|
+
mailAccess: z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
imap: "imap";
|
|
267
|
+
api: "api";
|
|
268
|
+
}>>;
|
|
269
|
+
sharedMailboxesEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
export type StartOAuthRequest = z.infer<typeof StartOAuthRequest>;
|
|
273
|
+
export declare const OAuthAuthorization: z.ZodObject<{
|
|
274
|
+
authorizeUrl: z.ZodURL;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
export type OAuthAuthorization = z.infer<typeof OAuthAuthorization>;
|
|
277
|
+
export declare const SessionTokenInput: z.ZodObject<{
|
|
278
|
+
token: z.ZodString;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
export type SessionTokenInput = z.infer<typeof SessionTokenInput>;
|
|
281
|
+
export declare const HostedImapResult: z.ZodObject<{
|
|
282
|
+
redirectUrl: z.ZodURL;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
export type HostedImapResult = z.infer<typeof HostedImapResult>;
|