@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.
Files changed (61) hide show
  1. package/README.md +7 -7
  2. package/client.d.ts +1 -1
  3. package/contract/accounts/models.d.ts +85 -45
  4. package/contract/accounts/routes.d.ts +191 -29
  5. package/contract/ai/models.d.ts +0 -1
  6. package/contract/ai/routes.d.ts +9 -0
  7. package/contract/audit-log/models.d.ts +19 -5
  8. package/contract/audit-log/routes.d.ts +10 -1
  9. package/contract/calendar/models.d.ts +249 -74
  10. package/contract/calendar/routes.d.ts +574 -30
  11. package/contract/connect/models.d.ts +28 -16
  12. package/contract/connect/routes.d.ts +46 -7
  13. package/contract/contacts/models.d.ts +0 -10
  14. package/contract/contacts/routes.d.ts +14 -0
  15. package/contract/email-validation/models.d.ts +119 -0
  16. package/contract/email-validation/routes.d.ts +106 -0
  17. package/contract/errors.d.ts +28 -20
  18. package/contract/events/models.d.ts +139 -79
  19. package/contract/events/routes.d.ts +54 -44
  20. package/contract/exports/routes.d.ts +10 -0
  21. package/contract/identities/models.d.ts +7 -9
  22. package/contract/identities/routes.d.ts +79 -10
  23. package/contract/limits.d.ts +21 -73
  24. package/contract/mail/models.d.ts +91 -48
  25. package/contract/mail/routes.d.ts +458 -18
  26. package/contract/mcp-keys/models.d.ts +125 -0
  27. package/contract/mcp-keys/routes.d.ts +151 -0
  28. package/contract/meetings/models.d.ts +28 -33
  29. package/contract/meetings/routes.d.ts +44 -25
  30. package/contract/oauth-apps/models.d.ts +0 -6
  31. package/contract/oauth-apps/routes.d.ts +8 -0
  32. package/contract/org-connections/models.d.ts +83 -39
  33. package/contract/org-connections/routes.d.ts +320 -43
  34. package/contract/plans/credit-packs.d.ts +30 -0
  35. package/contract/plans/models.d.ts +208 -0
  36. package/contract/primitives.d.ts +7 -62
  37. package/contract/public.d.ts +6 -0
  38. package/contract/reasons.d.ts +532 -21
  39. package/contract/router.d.ts +6425 -3212
  40. package/contract/scheduling/models.d.ts +405 -0
  41. package/contract/scheduling/routes.d.ts +756 -0
  42. package/contract/send/models.d.ts +82 -45
  43. package/contract/send/routes.d.ts +281 -32
  44. package/contract/settings/models.d.ts +73 -13
  45. package/contract/settings/routes.d.ts +56 -4
  46. package/contract/suppressions/models.d.ts +21 -28
  47. package/contract/suppressions/routes.d.ts +62 -14
  48. package/contract/templates/models.d.ts +0 -14
  49. package/contract/templates/routes.d.ts +30 -6
  50. package/contract/threads/models.d.ts +0 -5
  51. package/contract/threads/routes.d.ts +40 -0
  52. package/contract/tracking-domain/models.d.ts +41 -0
  53. package/contract/tracking-domain/routes.d.ts +193 -0
  54. package/contract/usage/models.d.ts +98 -126
  55. package/contract/usage/routes.d.ts +48 -20
  56. package/contract/webhooks/models.d.ts +45 -30
  57. package/contract/webhooks/routes.d.ts +52 -9
  58. package/contract/webhooks/signing.d.ts +0 -16
  59. package/index.js +1 -4334
  60. package/package.json +6 -7
  61. 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<[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
- }, z.core.$strip>, z.ZodObject<{
156
- kind: z.ZodLiteral<"microsoft_app">;
157
- name: z.ZodString;
158
- cloud: z.ZodDefault<z.ZodEnum<{
159
- global: "global";
160
- "gcc-high": "gcc-high";
161
- dod: "dod";
162
- china: "china";
163
- }>>;
164
- credential: z.ZodDiscriminatedUnion<[z.ZodObject<{
165
- type: z.ZodLiteral<"platform">;
166
- }, z.core.$strip>, z.ZodObject<{
167
- type: z.ZodLiteral<"client_secret">;
168
- clientId: z.ZodString;
169
- clientSecret: z.ZodString;
170
- }, z.core.$strip>, z.ZodObject<{
171
- type: z.ZodLiteral<"certificate">;
172
- clientId: z.ZodString;
173
- certificate: z.ZodString;
174
- privateKey: z.ZodString;
175
- }, z.core.$strip>], "type">;
176
- directoryId: z.ZodOptional<z.ZodString>;
177
- }, z.core.$strip>], "kind">;
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>;