@workwae/sdk 0.1.0-alpha.1 → 0.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/client.d.ts +1 -1
- package/contract/accounts/models.d.ts +85 -45
- package/contract/accounts/routes.d.ts +191 -29
- package/contract/ai/models.d.ts +0 -1
- package/contract/ai/routes.d.ts +9 -0
- package/contract/audit-log/models.d.ts +19 -5
- package/contract/audit-log/routes.d.ts +10 -1
- package/contract/calendar/models.d.ts +249 -74
- package/contract/calendar/routes.d.ts +574 -30
- package/contract/connect/models.d.ts +28 -16
- package/contract/connect/routes.d.ts +46 -7
- package/contract/contacts/models.d.ts +0 -10
- package/contract/contacts/routes.d.ts +14 -0
- package/contract/email-validation/models.d.ts +119 -0
- package/contract/email-validation/routes.d.ts +106 -0
- package/contract/errors.d.ts +28 -20
- package/contract/events/models.d.ts +139 -79
- package/contract/events/routes.d.ts +54 -44
- package/contract/exports/routes.d.ts +10 -0
- package/contract/identities/models.d.ts +7 -9
- package/contract/identities/routes.d.ts +79 -10
- package/contract/limits.d.ts +21 -73
- package/contract/mail/models.d.ts +91 -48
- package/contract/mail/routes.d.ts +458 -18
- package/contract/mcp-keys/models.d.ts +125 -0
- package/contract/mcp-keys/routes.d.ts +151 -0
- package/contract/meetings/models.d.ts +28 -33
- package/contract/meetings/routes.d.ts +44 -25
- package/contract/oauth-apps/models.d.ts +0 -6
- package/contract/oauth-apps/routes.d.ts +8 -0
- package/contract/org-connections/models.d.ts +83 -39
- package/contract/org-connections/routes.d.ts +320 -43
- package/contract/plans/credit-packs.d.ts +30 -0
- package/contract/plans/models.d.ts +208 -0
- package/contract/primitives.d.ts +7 -62
- package/contract/public.d.ts +6 -0
- package/contract/reasons.d.ts +532 -21
- package/contract/router.d.ts +6425 -3212
- package/contract/scheduling/models.d.ts +405 -0
- package/contract/scheduling/routes.d.ts +756 -0
- package/contract/send/models.d.ts +82 -45
- package/contract/send/routes.d.ts +281 -32
- package/contract/settings/models.d.ts +73 -13
- package/contract/settings/routes.d.ts +56 -4
- package/contract/suppressions/models.d.ts +21 -28
- package/contract/suppressions/routes.d.ts +62 -14
- package/contract/templates/models.d.ts +0 -14
- package/contract/templates/routes.d.ts +30 -6
- package/contract/threads/models.d.ts +0 -5
- package/contract/threads/routes.d.ts +40 -0
- package/contract/tracking-domain/models.d.ts +41 -0
- package/contract/tracking-domain/routes.d.ts +193 -0
- package/contract/usage/models.d.ts +98 -126
- package/contract/usage/routes.d.ts +48 -20
- package/contract/webhooks/models.d.ts +45 -30
- package/contract/webhooks/routes.d.ts +52 -9
- package/contract/webhooks/signing.d.ts +0 -16
- package/index.js +1 -4334
- package/package.json +6 -7
- package/index.js.map +0 -59
|
@@ -4,8 +4,6 @@ export declare const OrgConnectionKind: z.ZodEnum<{
|
|
|
4
4
|
microsoft_app: "microsoft_app";
|
|
5
5
|
}>;
|
|
6
6
|
export type OrgConnectionKind = z.infer<typeof OrgConnectionKind>;
|
|
7
|
-
/** pending_consent: no Microsoft directory has consented yet. unverified: registered or changed
|
|
8
|
-
* and not tested since. active / failing: the outcome of the last test or consent. */
|
|
9
7
|
export declare const OrgConnectionStatus: z.ZodEnum<{
|
|
10
8
|
active: "active";
|
|
11
9
|
unverified: "unverified";
|
|
@@ -13,8 +11,6 @@ export declare const OrgConnectionStatus: z.ZodEnum<{
|
|
|
13
11
|
pending_consent: "pending_consent";
|
|
14
12
|
}>;
|
|
15
13
|
export type OrgConnectionStatus = z.infer<typeof OrgConnectionStatus>;
|
|
16
|
-
/** platform: the platform's Entra app for the cloud, authorized through admin consent.
|
|
17
|
-
* client_secret / certificate: the tenant's own app registration. */
|
|
18
14
|
export declare const MicrosoftAppCredential: z.ZodEnum<{
|
|
19
15
|
platform: "platform";
|
|
20
16
|
client_secret: "client_secret";
|
|
@@ -26,6 +22,7 @@ export declare const GoogleDelegation: z.ZodObject<{
|
|
|
26
22
|
serviceAccountEmail: z.ZodString;
|
|
27
23
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
28
24
|
scopes: z.ZodArray<z.ZodString>;
|
|
25
|
+
groupsEnabled: z.ZodBoolean;
|
|
29
26
|
}, z.core.$strip>;
|
|
30
27
|
export type GoogleDelegation = z.infer<typeof GoogleDelegation>;
|
|
31
28
|
export declare const GraphPermission: z.ZodObject<{
|
|
@@ -73,6 +70,7 @@ export declare const OrgConnection: z.ZodObject<{
|
|
|
73
70
|
serviceAccountEmail: z.ZodString;
|
|
74
71
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
75
72
|
scopes: z.ZodArray<z.ZodString>;
|
|
73
|
+
groupsEnabled: z.ZodBoolean;
|
|
76
74
|
}, z.core.$strip>>;
|
|
77
75
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
78
76
|
cloud: z.ZodEnum<{
|
|
@@ -119,6 +117,7 @@ export declare const OrgConnectionList: z.ZodObject<{
|
|
|
119
117
|
serviceAccountEmail: z.ZodString;
|
|
120
118
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
121
119
|
scopes: z.ZodArray<z.ZodString>;
|
|
120
|
+
groupsEnabled: z.ZodBoolean;
|
|
122
121
|
}, z.core.$strip>>;
|
|
123
122
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
124
123
|
cloud: z.ZodEnum<{
|
|
@@ -144,43 +143,52 @@ export declare const OrgConnectionList: z.ZodObject<{
|
|
|
144
143
|
}, z.core.$strip>>;
|
|
145
144
|
}, z.core.$strip>;
|
|
146
145
|
export type OrgConnectionList = z.infer<typeof OrgConnectionList>;
|
|
147
|
-
export declare const CreateOrgConnection: z.ZodDiscriminatedUnion<[
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
146
|
+
export declare const CreateOrgConnection: z.ZodDiscriminatedUnion<[
|
|
147
|
+
z.ZodObject<{
|
|
148
|
+
kind: z.ZodLiteral<"google_delegation">;
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
serviceAccountKey: z.ZodString;
|
|
151
|
+
domain: z.ZodString;
|
|
152
|
+
calendarEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
153
|
+
contactsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
154
|
+
directoryAdmin: z.ZodOptional<z.ZodEmail>;
|
|
155
|
+
groupsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
156
|
+
}, z.core.$strip>,
|
|
157
|
+
z.ZodObject<{
|
|
158
|
+
kind: z.ZodLiteral<"microsoft_app">;
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
cloud: z.ZodDefault<z.ZodEnum<{
|
|
161
|
+
global: "global";
|
|
162
|
+
"gcc-high": "gcc-high";
|
|
163
|
+
dod: "dod";
|
|
164
|
+
china: "china";
|
|
165
|
+
}>>;
|
|
166
|
+
credential: z.ZodDiscriminatedUnion<[
|
|
167
|
+
z.ZodObject<{
|
|
168
|
+
type: z.ZodLiteral<"platform">;
|
|
169
|
+
}, z.core.$strip>,
|
|
170
|
+
z.ZodObject<{
|
|
171
|
+
type: z.ZodLiteral<"client_secret">;
|
|
172
|
+
clientId: z.ZodString;
|
|
173
|
+
clientSecret: z.ZodString;
|
|
174
|
+
}, z.core.$strip>,
|
|
175
|
+
z.ZodObject<{
|
|
176
|
+
type: z.ZodLiteral<"certificate">;
|
|
177
|
+
clientId: z.ZodString;
|
|
178
|
+
certificate: z.ZodString;
|
|
179
|
+
privateKey: z.ZodString;
|
|
180
|
+
}, z.core.$strip>
|
|
181
|
+
], "type">;
|
|
182
|
+
directoryId: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, z.core.$strip>
|
|
184
|
+
], "kind">;
|
|
178
185
|
export type CreateOrgConnection = z.infer<typeof CreateOrgConnection>;
|
|
179
186
|
export declare const UpdateOrgConnection: z.ZodObject<{
|
|
180
187
|
name: z.ZodOptional<z.ZodString>;
|
|
181
188
|
serviceAccountKey: z.ZodOptional<z.ZodString>;
|
|
182
189
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
183
190
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
groupsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
184
192
|
directoryAdmin: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
185
193
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
186
194
|
certificate: z.ZodOptional<z.ZodString>;
|
|
@@ -217,6 +225,7 @@ export declare const OrgConnectionTestResult: z.ZodObject<{
|
|
|
217
225
|
serviceAccountEmail: z.ZodString;
|
|
218
226
|
directoryAdmin: z.ZodNullable<z.ZodString>;
|
|
219
227
|
scopes: z.ZodArray<z.ZodString>;
|
|
228
|
+
groupsEnabled: z.ZodBoolean;
|
|
220
229
|
}, z.core.$strip>>;
|
|
221
230
|
microsoft: z.ZodNullable<z.ZodObject<{
|
|
222
231
|
cloud: z.ZodEnum<{
|
|
@@ -284,24 +293,27 @@ export declare const AddMailboxesRequest: z.ZodObject<{
|
|
|
284
293
|
full: "full";
|
|
285
294
|
}>>;
|
|
286
295
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
296
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
287
297
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
288
298
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
289
299
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
290
300
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
291
301
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
292
302
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
lists: "lists";
|
|
305
|
+
always: "always";
|
|
306
|
+
}>>;
|
|
307
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
293
308
|
}, z.core.$strip>>;
|
|
294
309
|
}, z.core.$strip>;
|
|
295
310
|
export type AddMailboxesRequest = z.infer<typeof AddMailboxesRequest>;
|
|
296
|
-
/** created: a new account. exists: a live account for the mailbox was already there.
|
|
297
|
-
* failed: see error. */
|
|
298
311
|
export declare const AddedMailboxStatus: z.ZodEnum<{
|
|
299
312
|
failed: "failed";
|
|
300
313
|
created: "created";
|
|
301
314
|
exists: "exists";
|
|
302
315
|
}>;
|
|
303
316
|
export type AddedMailboxStatus = z.infer<typeof AddedMailboxStatus>;
|
|
304
|
-
/** Why one mailbox was not added: `reason` is the reason the API would refuse it with (REASONS). */
|
|
305
317
|
export declare const AddedMailboxError: z.ZodObject<{
|
|
306
318
|
reason: z.ZodString;
|
|
307
319
|
message: z.ZodString;
|
|
@@ -321,7 +333,6 @@ export declare const AddedMailbox: z.ZodObject<{
|
|
|
321
333
|
}, z.core.$strip>>;
|
|
322
334
|
}, z.core.$strip>;
|
|
323
335
|
export type AddedMailbox = z.infer<typeof AddedMailbox>;
|
|
324
|
-
/** One result per requested mailbox, in request order. */
|
|
325
336
|
export declare const AddedMailboxList: z.ZodObject<{
|
|
326
337
|
items: z.ZodArray<z.ZodObject<{
|
|
327
338
|
email: z.ZodString;
|
|
@@ -372,12 +383,45 @@ export declare const OpenSharedMailboxRequest: z.ZodObject<{
|
|
|
372
383
|
full: "full";
|
|
373
384
|
}>>;
|
|
374
385
|
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
386
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
375
387
|
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
376
388
|
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
377
389
|
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
378
390
|
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
379
391
|
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
380
392
|
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
393
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
394
|
+
lists: "lists";
|
|
395
|
+
always: "always";
|
|
396
|
+
}>>;
|
|
397
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
381
398
|
}, z.core.$strip>>;
|
|
382
399
|
}, z.core.$strip>;
|
|
383
400
|
export type OpenSharedMailboxRequest = z.infer<typeof OpenSharedMailboxRequest>;
|
|
401
|
+
export declare const AddGroupRequest: z.ZodObject<{
|
|
402
|
+
email: z.ZodEmail;
|
|
403
|
+
relayEmail: z.ZodEmail;
|
|
404
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
405
|
+
externalRef: z.ZodOptional<z.ZodString>;
|
|
406
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
407
|
+
bodyStorage: z.ZodOptional<z.ZodEnum<{
|
|
408
|
+
none: "none";
|
|
409
|
+
cache: "cache";
|
|
410
|
+
full: "full";
|
|
411
|
+
}>>;
|
|
412
|
+
syncWindowDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
413
|
+
mailEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
414
|
+
calendarEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
415
|
+
contactsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
416
|
+
undoSendSeconds: z.ZodOptional<z.ZodNumber>;
|
|
417
|
+
trackOpens: z.ZodOptional<z.ZodBoolean>;
|
|
418
|
+
trackClicks: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
+
trackingHoneypot: z.ZodOptional<z.ZodBoolean>;
|
|
420
|
+
suppressionCheck: z.ZodOptional<z.ZodEnum<{
|
|
421
|
+
lists: "lists";
|
|
422
|
+
always: "always";
|
|
423
|
+
}>>;
|
|
424
|
+
sendsPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
425
|
+
}, z.core.$strip>>;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
export type AddGroupRequest = z.infer<typeof AddGroupRequest>;
|