@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
|
@@ -4,6 +4,7 @@ export declare const AuditActorType: z.ZodEnum<{
|
|
|
4
4
|
apiKey: "apiKey";
|
|
5
5
|
accountToken: "accountToken";
|
|
6
6
|
connectSession: "connectSession";
|
|
7
|
+
scimCredential: "scimCredential";
|
|
7
8
|
}>;
|
|
8
9
|
export type AuditActorType = z.infer<typeof AuditActorType>;
|
|
9
10
|
export declare const AuditActor: z.ZodObject<{
|
|
@@ -12,18 +13,20 @@ export declare const AuditActor: z.ZodObject<{
|
|
|
12
13
|
apiKey: "apiKey";
|
|
13
14
|
accountToken: "accountToken";
|
|
14
15
|
connectSession: "connectSession";
|
|
16
|
+
scimCredential: "scimCredential";
|
|
15
17
|
}>;
|
|
16
18
|
id: z.ZodUUID;
|
|
17
19
|
label: z.ZodNullable<z.ZodString>;
|
|
18
20
|
}, z.core.$strip>;
|
|
19
21
|
export type AuditActor = z.infer<typeof AuditActor>;
|
|
20
|
-
/** Where the request came in: the public API, or the board. */
|
|
21
22
|
export declare const AuditSurface: z.ZodEnum<{
|
|
23
|
+
auth: "auth";
|
|
24
|
+
smtp: "smtp";
|
|
22
25
|
v1: "v1";
|
|
23
26
|
rpc: "rpc";
|
|
27
|
+
mcp: "mcp";
|
|
24
28
|
}>;
|
|
25
29
|
export type AuditSurface = z.infer<typeof AuditSurface>;
|
|
26
|
-
/** success: a 2xx status. */
|
|
27
30
|
export declare const AuditOutcome: z.ZodEnum<{
|
|
28
31
|
success: "success";
|
|
29
32
|
failure: "failure";
|
|
@@ -38,16 +41,23 @@ export declare const AuditEntry: z.ZodObject<{
|
|
|
38
41
|
apiKey: "apiKey";
|
|
39
42
|
accountToken: "accountToken";
|
|
40
43
|
connectSession: "connectSession";
|
|
44
|
+
scimCredential: "scimCredential";
|
|
41
45
|
}>;
|
|
42
46
|
id: z.ZodUUID;
|
|
43
47
|
label: z.ZodNullable<z.ZodString>;
|
|
44
48
|
}, z.core.$strip>;
|
|
45
49
|
action: z.ZodString;
|
|
46
50
|
surface: z.ZodEnum<{
|
|
51
|
+
auth: "auth";
|
|
52
|
+
smtp: "smtp";
|
|
47
53
|
v1: "v1";
|
|
48
54
|
rpc: "rpc";
|
|
55
|
+
mcp: "mcp";
|
|
49
56
|
}>;
|
|
50
|
-
targets: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [
|
|
57
|
+
targets: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [
|
|
58
|
+
z.ZodString,
|
|
59
|
+
z.ZodArray<z.ZodString>
|
|
60
|
+
]>>;
|
|
51
61
|
ip: z.ZodNullable<z.ZodString>;
|
|
52
62
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
53
63
|
status: z.ZodNumber;
|
|
@@ -65,16 +75,23 @@ export declare const AuditEntryPage: z.ZodObject<{
|
|
|
65
75
|
apiKey: "apiKey";
|
|
66
76
|
accountToken: "accountToken";
|
|
67
77
|
connectSession: "connectSession";
|
|
78
|
+
scimCredential: "scimCredential";
|
|
68
79
|
}>;
|
|
69
80
|
id: z.ZodUUID;
|
|
70
81
|
label: z.ZodNullable<z.ZodString>;
|
|
71
82
|
}, z.core.$strip>;
|
|
72
83
|
action: z.ZodString;
|
|
73
84
|
surface: z.ZodEnum<{
|
|
85
|
+
auth: "auth";
|
|
86
|
+
smtp: "smtp";
|
|
74
87
|
v1: "v1";
|
|
75
88
|
rpc: "rpc";
|
|
89
|
+
mcp: "mcp";
|
|
76
90
|
}>;
|
|
77
|
-
targets: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [
|
|
91
|
+
targets: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [
|
|
92
|
+
z.ZodString,
|
|
93
|
+
z.ZodArray<z.ZodString>
|
|
94
|
+
]>>;
|
|
78
95
|
ip: z.ZodNullable<z.ZodString>;
|
|
79
96
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
80
97
|
status: z.ZodNumber;
|
|
@@ -84,13 +101,13 @@ export declare const AuditEntryPage: z.ZodObject<{
|
|
|
84
101
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
85
102
|
}, z.core.$strip>;
|
|
86
103
|
export type AuditEntryPage = z.infer<typeof AuditEntryPage>;
|
|
87
|
-
/** from and to bound createdAt, both included. */
|
|
88
104
|
export declare const ListAuditLogQuery: z.ZodObject<{
|
|
89
105
|
actorType: z.ZodOptional<z.ZodEnum<{
|
|
90
106
|
user: "user";
|
|
91
107
|
apiKey: "apiKey";
|
|
92
108
|
accountToken: "accountToken";
|
|
93
109
|
connectSession: "connectSession";
|
|
110
|
+
scimCredential: "scimCredential";
|
|
94
111
|
}>>;
|
|
95
112
|
actorId: z.ZodOptional<z.ZodUUID>;
|
|
96
113
|
action: z.ZodOptional<z.ZodString>;
|
|
@@ -5,6 +5,7 @@ export declare const auditLog: {
|
|
|
5
5
|
apiKey: "apiKey";
|
|
6
6
|
accountToken: "accountToken";
|
|
7
7
|
connectSession: "connectSession";
|
|
8
|
+
scimCredential: "scimCredential";
|
|
8
9
|
}>>;
|
|
9
10
|
actorId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
10
11
|
action: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -27,16 +28,23 @@ export declare const auditLog: {
|
|
|
27
28
|
apiKey: "apiKey";
|
|
28
29
|
accountToken: "accountToken";
|
|
29
30
|
connectSession: "connectSession";
|
|
31
|
+
scimCredential: "scimCredential";
|
|
30
32
|
}>;
|
|
31
33
|
id: import("zod").ZodUUID;
|
|
32
34
|
label: import("zod").ZodNullable<import("zod").ZodString>;
|
|
33
35
|
}, import("zod/v4/core").$strip>;
|
|
34
36
|
action: import("zod").ZodString;
|
|
35
37
|
surface: import("zod").ZodEnum<{
|
|
38
|
+
auth: "auth";
|
|
39
|
+
smtp: "smtp";
|
|
36
40
|
v1: "v1";
|
|
37
41
|
rpc: "rpc";
|
|
42
|
+
mcp: "mcp";
|
|
38
43
|
}>;
|
|
39
|
-
targets: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [
|
|
44
|
+
targets: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [
|
|
45
|
+
import("zod").ZodString,
|
|
46
|
+
import("zod").ZodArray<import("zod").ZodString>
|
|
47
|
+
]>>;
|
|
40
48
|
ip: import("zod").ZodNullable<import("zod").ZodString>;
|
|
41
49
|
userAgent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
42
50
|
status: import("zod").ZodNumber;
|
|
@@ -51,6 +59,8 @@ export declare const auditLog: {
|
|
|
51
59
|
readonly missing_scope: "The API key lacks the scope the operation needs.";
|
|
52
60
|
readonly role_forbidden: "The member's role does not allow the operation.";
|
|
53
61
|
readonly account_token_forbidden: "An account token called an operation account tokens cannot call.";
|
|
62
|
+
readonly account_scope_forbidden: "A credential limited to specific accounts called an operation that reaches beyond them.";
|
|
63
|
+
readonly mcp_only_key: "An MCP-only key (minted for an end user's MCP client) was used outside the MCP server.";
|
|
54
64
|
readonly rate_limited: "The tenant used up its plan's request rate; Retry-After says when the window ends.";
|
|
55
65
|
readonly too_many_requests: "The credential has too many requests in flight at once; retry after Retry-After.";
|
|
56
66
|
readonly overloaded: "The API is shedding load; retry after Retry-After.";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
/** freebusy: only times are visible (Google freeBusyReader). */
|
|
3
2
|
export declare const CalendarAccess: z.ZodEnum<{
|
|
4
3
|
owner: "owner";
|
|
5
4
|
writer: "writer";
|
|
@@ -51,7 +50,33 @@ export declare const CalendarList: z.ZodObject<{
|
|
|
51
50
|
}, z.core.$strip>>;
|
|
52
51
|
}, z.core.$strip>;
|
|
53
52
|
export type CalendarList = z.infer<typeof CalendarList>;
|
|
54
|
-
|
|
53
|
+
export declare const CalendarIdInput: z.ZodObject<{
|
|
54
|
+
accountId: z.ZodUUID;
|
|
55
|
+
calendarId: z.ZodUUID;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type CalendarIdInput = z.infer<typeof CalendarIdInput>;
|
|
58
|
+
export declare const CreateCalendar: z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type CreateCalendar = z.infer<typeof CreateCalendar>;
|
|
65
|
+
export declare const CreateCalendarInput: z.ZodObject<{
|
|
66
|
+
accountId: z.ZodUUID;
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type CreateCalendarInput = z.infer<typeof CreateCalendarInput>;
|
|
73
|
+
export declare const UpdateCalendar: z.ZodObject<{
|
|
74
|
+
name: z.ZodOptional<z.ZodString>;
|
|
75
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type UpdateCalendar = z.infer<typeof UpdateCalendar>;
|
|
55
80
|
export declare const CalendarChangedField: z.ZodEnum<{
|
|
56
81
|
description: "description";
|
|
57
82
|
name: "name";
|
|
@@ -64,10 +89,6 @@ export declare const CalendarChangedField: z.ZodEnum<{
|
|
|
64
89
|
isHidden: "isHidden";
|
|
65
90
|
}>;
|
|
66
91
|
export type CalendarChangedField = z.infer<typeof CalendarChangedField>;
|
|
67
|
-
/**
|
|
68
|
-
* single: one-off. series: a recurring event's definition (times of its first occurrence, the
|
|
69
|
-
* rule). occurrence: an unchanged instance of a series. exception: an instance changed on its own.
|
|
70
|
-
*/
|
|
71
92
|
export declare const EventKind: z.ZodEnum<{
|
|
72
93
|
single: "single";
|
|
73
94
|
series: "series";
|
|
@@ -313,7 +334,6 @@ export declare const CalendarEventPage: z.ZodObject<{
|
|
|
313
334
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
314
335
|
}, z.core.$strip>;
|
|
315
336
|
export type CalendarEventPage = z.infer<typeof CalendarEventPage>;
|
|
316
|
-
/** An event field a calendar_event.updated event names as changed. */
|
|
317
337
|
export declare const CalendarEventChangedField: z.ZodEnum<{
|
|
318
338
|
status: "status";
|
|
319
339
|
kind: "kind";
|
|
@@ -449,13 +469,15 @@ export declare const CalendarEventDetail: z.ZodObject<{
|
|
|
449
469
|
}, z.core.$strip>>;
|
|
450
470
|
}, z.core.$strip>;
|
|
451
471
|
export type CalendarEventDetail = z.infer<typeof CalendarEventDetail>;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}, z.core.$strip>,
|
|
457
|
-
|
|
458
|
-
|
|
472
|
+
export declare const EventTimeInput: z.ZodUnion<readonly [
|
|
473
|
+
z.ZodObject<{
|
|
474
|
+
dateTime: z.ZodISODateTime;
|
|
475
|
+
timeZone: z.ZodString;
|
|
476
|
+
}, z.core.$strip>,
|
|
477
|
+
z.ZodObject<{
|
|
478
|
+
date: z.ZodISODate;
|
|
479
|
+
}, z.core.$strip>
|
|
480
|
+
]>;
|
|
459
481
|
export type EventTimeInput = z.infer<typeof EventTimeInput>;
|
|
460
482
|
export declare const AttendeeInput: z.ZodObject<{
|
|
461
483
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -478,18 +500,24 @@ export declare const CreateCalendarEvent: z.ZodObject<{
|
|
|
478
500
|
content: z.ZodString;
|
|
479
501
|
}, z.core.$strip>>;
|
|
480
502
|
location: z.ZodOptional<z.ZodString>;
|
|
481
|
-
start: z.ZodUnion<readonly [
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
503
|
+
start: z.ZodUnion<readonly [
|
|
504
|
+
z.ZodObject<{
|
|
505
|
+
dateTime: z.ZodISODateTime;
|
|
506
|
+
timeZone: z.ZodString;
|
|
507
|
+
}, z.core.$strip>,
|
|
508
|
+
z.ZodObject<{
|
|
509
|
+
date: z.ZodISODate;
|
|
510
|
+
}, z.core.$strip>
|
|
511
|
+
]>;
|
|
512
|
+
end: z.ZodUnion<readonly [
|
|
513
|
+
z.ZodObject<{
|
|
514
|
+
dateTime: z.ZodISODateTime;
|
|
515
|
+
timeZone: z.ZodString;
|
|
516
|
+
}, z.core.$strip>,
|
|
517
|
+
z.ZodObject<{
|
|
518
|
+
date: z.ZodISODate;
|
|
519
|
+
}, z.core.$strip>
|
|
520
|
+
]>;
|
|
493
521
|
attendees: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
494
522
|
name: z.ZodOptional<z.ZodString>;
|
|
495
523
|
address: z.ZodEmail;
|
|
@@ -523,8 +551,6 @@ export declare const CreateCalendarEvent: z.ZodObject<{
|
|
|
523
551
|
notify: z.ZodDefault<z.ZodBoolean>;
|
|
524
552
|
}, z.core.$strip>;
|
|
525
553
|
export type CreateCalendarEvent = z.infer<typeof CreateCalendarEvent>;
|
|
526
|
-
/** create's input: the account, and an event with at most one of onlineMeeting,
|
|
527
|
-
* onlineMeetingUrl and onlineMeetingService (multiple_meeting_options). */
|
|
528
554
|
export declare const CreateCalendarEventInput: z.ZodObject<{
|
|
529
555
|
accountId: z.ZodUUID;
|
|
530
556
|
calendarId: z.ZodUUID;
|
|
@@ -537,18 +563,24 @@ export declare const CreateCalendarEventInput: z.ZodObject<{
|
|
|
537
563
|
content: z.ZodString;
|
|
538
564
|
}, z.core.$strip>>;
|
|
539
565
|
location: z.ZodOptional<z.ZodString>;
|
|
540
|
-
start: z.ZodUnion<readonly [
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
566
|
+
start: z.ZodUnion<readonly [
|
|
567
|
+
z.ZodObject<{
|
|
568
|
+
dateTime: z.ZodISODateTime;
|
|
569
|
+
timeZone: z.ZodString;
|
|
570
|
+
}, z.core.$strip>,
|
|
571
|
+
z.ZodObject<{
|
|
572
|
+
date: z.ZodISODate;
|
|
573
|
+
}, z.core.$strip>
|
|
574
|
+
]>;
|
|
575
|
+
end: z.ZodUnion<readonly [
|
|
576
|
+
z.ZodObject<{
|
|
577
|
+
dateTime: z.ZodISODateTime;
|
|
578
|
+
timeZone: z.ZodString;
|
|
579
|
+
}, z.core.$strip>,
|
|
580
|
+
z.ZodObject<{
|
|
581
|
+
date: z.ZodISODate;
|
|
582
|
+
}, z.core.$strip>
|
|
583
|
+
]>;
|
|
552
584
|
attendees: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
553
585
|
name: z.ZodOptional<z.ZodString>;
|
|
554
586
|
address: z.ZodEmail;
|
|
@@ -581,7 +613,6 @@ export declare const CreateCalendarEventInput: z.ZodObject<{
|
|
|
581
613
|
}>>;
|
|
582
614
|
notify: z.ZodDefault<z.ZodBoolean>;
|
|
583
615
|
}, z.core.$strip>;
|
|
584
|
-
/** Fields present change; absent fields stay. An occurrence becomes an exception. */
|
|
585
616
|
export declare const UpdateCalendarEvent: z.ZodObject<{
|
|
586
617
|
subject: z.ZodOptional<z.ZodString>;
|
|
587
618
|
body: z.ZodOptional<z.ZodObject<{
|
|
@@ -592,18 +623,24 @@ export declare const UpdateCalendarEvent: z.ZodObject<{
|
|
|
592
623
|
content: z.ZodString;
|
|
593
624
|
}, z.core.$strip>>;
|
|
594
625
|
location: z.ZodOptional<z.ZodString>;
|
|
595
|
-
start: z.ZodOptional<z.ZodUnion<readonly [
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
626
|
+
start: z.ZodOptional<z.ZodUnion<readonly [
|
|
627
|
+
z.ZodObject<{
|
|
628
|
+
dateTime: z.ZodISODateTime;
|
|
629
|
+
timeZone: z.ZodString;
|
|
630
|
+
}, z.core.$strip>,
|
|
631
|
+
z.ZodObject<{
|
|
632
|
+
date: z.ZodISODate;
|
|
633
|
+
}, z.core.$strip>
|
|
634
|
+
]>>;
|
|
635
|
+
end: z.ZodOptional<z.ZodUnion<readonly [
|
|
636
|
+
z.ZodObject<{
|
|
637
|
+
dateTime: z.ZodISODateTime;
|
|
638
|
+
timeZone: z.ZodString;
|
|
639
|
+
}, z.core.$strip>,
|
|
640
|
+
z.ZodObject<{
|
|
641
|
+
date: z.ZodISODate;
|
|
642
|
+
}, z.core.$strip>
|
|
643
|
+
]>>;
|
|
607
644
|
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
608
645
|
name: z.ZodOptional<z.ZodString>;
|
|
609
646
|
address: z.ZodEmail;
|
|
@@ -633,10 +670,13 @@ export declare const UpdateCalendarEvent: z.ZodObject<{
|
|
|
633
670
|
}, z.core.$strip>;
|
|
634
671
|
export type UpdateCalendarEvent = z.infer<typeof UpdateCalendarEvent>;
|
|
635
672
|
export declare const DeleteCalendarEventQuery: z.ZodObject<{
|
|
636
|
-
notify: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
673
|
+
notify: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
674
|
+
z.ZodBoolean,
|
|
675
|
+
z.ZodEnum<{
|
|
676
|
+
true: "true";
|
|
677
|
+
false: "false";
|
|
678
|
+
}>
|
|
679
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
640
680
|
comment: z.ZodOptional<z.ZodString>;
|
|
641
681
|
}, z.core.$strip>;
|
|
642
682
|
export type DeleteCalendarEventQuery = z.infer<typeof DeleteCalendarEventQuery>;
|
|
@@ -661,17 +701,19 @@ export declare const CalendarEventIdInput: z.ZodObject<{
|
|
|
661
701
|
eventId: z.ZodUUID;
|
|
662
702
|
}, z.core.$strip>;
|
|
663
703
|
export type CalendarEventIdInput = z.infer<typeof CalendarEventIdInput>;
|
|
664
|
-
/** The path's event and the query's options, as a DELETE takes them. */
|
|
665
704
|
export declare const DeleteCalendarEventInput: z.ZodObject<{
|
|
666
705
|
params: z.ZodObject<{
|
|
667
706
|
accountId: z.ZodUUID;
|
|
668
707
|
eventId: z.ZodUUID;
|
|
669
708
|
}, z.core.$strip>;
|
|
670
709
|
query: z.ZodObject<{
|
|
671
|
-
notify: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
710
|
+
notify: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [
|
|
711
|
+
z.ZodBoolean,
|
|
712
|
+
z.ZodEnum<{
|
|
713
|
+
true: "true";
|
|
714
|
+
false: "false";
|
|
715
|
+
}>
|
|
716
|
+
]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
675
717
|
comment: z.ZodOptional<z.ZodString>;
|
|
676
718
|
}, z.core.$strip>;
|
|
677
719
|
}, z.core.$strip>;
|
|
@@ -684,8 +726,6 @@ export declare const ListCalendarEventsQuery: z.ZodObject<{
|
|
|
684
726
|
cursor: z.ZodOptional<z.ZodString>;
|
|
685
727
|
}, z.core.$strip>;
|
|
686
728
|
export type ListCalendarEventsQuery = z.infer<typeof ListCalendarEventsQuery>;
|
|
687
|
-
/** list's input: the account, and a range ending after it starts, of at most
|
|
688
|
-
* MAX_EVENT_RANGE_DAYS (invalid_range). */
|
|
689
729
|
export declare const ListCalendarEventsInput: z.ZodObject<{
|
|
690
730
|
accountId: z.ZodUUID;
|
|
691
731
|
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
@@ -694,8 +734,6 @@ export declare const ListCalendarEventsInput: z.ZodObject<{
|
|
|
694
734
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
695
735
|
cursor: z.ZodOptional<z.ZodString>;
|
|
696
736
|
}, z.core.$strip>;
|
|
697
|
-
/** How a busy block shows. Google reports every block as busy; free time is never listed.
|
|
698
|
-
* working_elsewhere does not block a suggested slot; the others do. */
|
|
699
737
|
export declare const BusyStatus: z.ZodEnum<{
|
|
700
738
|
unknown: "unknown";
|
|
701
739
|
tentative: "tentative";
|
|
@@ -742,8 +780,7 @@ export declare const Weekday: z.ZodEnum<{
|
|
|
742
780
|
sun: "sun";
|
|
743
781
|
}>;
|
|
744
782
|
export type Weekday = z.infer<typeof Weekday>;
|
|
745
|
-
|
|
746
|
-
* (invalid_working_hours). */
|
|
783
|
+
export declare const TimeOfDay: z.ZodString;
|
|
747
784
|
export declare const WorkingHours: z.ZodObject<{
|
|
748
785
|
start: z.ZodString;
|
|
749
786
|
end: z.ZodString;
|
|
@@ -759,7 +796,7 @@ export declare const WorkingHours: z.ZodObject<{
|
|
|
759
796
|
}, z.core.$strip>;
|
|
760
797
|
export type WorkingHours = z.infer<typeof WorkingHours>;
|
|
761
798
|
export declare const FindAvailabilityRequest: z.ZodObject<{
|
|
762
|
-
|
|
799
|
+
includeAccount: z.ZodDefault<z.ZodBoolean>;
|
|
763
800
|
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
764
801
|
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
765
802
|
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -779,14 +816,13 @@ export declare const FindAvailabilityRequest: z.ZodObject<{
|
|
|
779
816
|
}>>>;
|
|
780
817
|
}, z.core.$strip>>;
|
|
781
818
|
maxSuggestions: z.ZodDefault<z.ZodNumber>;
|
|
782
|
-
|
|
819
|
+
requireAll: z.ZodDefault<z.ZodBoolean>;
|
|
820
|
+
attendees: z.ZodArray<z.ZodEmail>;
|
|
783
821
|
}, z.core.$strip>;
|
|
784
822
|
export type FindAvailabilityRequest = z.infer<typeof FindAvailabilityRequest>;
|
|
785
|
-
/** find's input: the account, and a range ending after it starts, of at most
|
|
786
|
-
* MAX_AVAILABILITY_DAYS (invalid_range). */
|
|
787
823
|
export declare const FindAvailabilityInput: z.ZodObject<{
|
|
788
824
|
accountId: z.ZodUUID;
|
|
789
|
-
|
|
825
|
+
includeAccount: z.ZodDefault<z.ZodBoolean>;
|
|
790
826
|
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
791
827
|
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
792
828
|
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -806,14 +842,24 @@ export declare const FindAvailabilityInput: z.ZodObject<{
|
|
|
806
842
|
}>>>;
|
|
807
843
|
}, z.core.$strip>>;
|
|
808
844
|
maxSuggestions: z.ZodDefault<z.ZodNumber>;
|
|
809
|
-
|
|
845
|
+
requireAll: z.ZodDefault<z.ZodBoolean>;
|
|
846
|
+
attendees: z.ZodArray<z.ZodEmail>;
|
|
810
847
|
}, z.core.$strip>;
|
|
811
848
|
export declare const TimeSlot: z.ZodObject<{
|
|
812
849
|
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
813
850
|
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
814
851
|
}, z.core.$strip>;
|
|
815
852
|
export type TimeSlot = z.infer<typeof TimeSlot>;
|
|
853
|
+
export declare const WithheldReason: z.ZodEnum<{
|
|
854
|
+
unresolved_attendees: "unresolved_attendees";
|
|
855
|
+
}>;
|
|
856
|
+
export type WithheldReason = z.infer<typeof WithheldReason>;
|
|
816
857
|
export declare const Availability: z.ZodObject<{
|
|
858
|
+
complete: z.ZodBoolean;
|
|
859
|
+
unresolved: z.ZodArray<z.ZodString>;
|
|
860
|
+
withheldReason: z.ZodNullable<z.ZodEnum<{
|
|
861
|
+
unresolved_attendees: "unresolved_attendees";
|
|
862
|
+
}>>;
|
|
817
863
|
attendees: z.ZodArray<z.ZodObject<{
|
|
818
864
|
address: z.ZodString;
|
|
819
865
|
busy: z.ZodArray<z.ZodObject<{
|
|
@@ -835,3 +881,132 @@ export declare const Availability: z.ZodObject<{
|
|
|
835
881
|
}, z.core.$strip>>;
|
|
836
882
|
}, z.core.$strip>;
|
|
837
883
|
export type Availability = z.infer<typeof Availability>;
|
|
884
|
+
export declare const AvailabilityMode: z.ZodEnum<{
|
|
885
|
+
any: "any";
|
|
886
|
+
all: "all";
|
|
887
|
+
}>;
|
|
888
|
+
export type AvailabilityMode = z.infer<typeof AvailabilityMode>;
|
|
889
|
+
export declare const FindAccountsAvailabilityRequest: z.ZodObject<{
|
|
890
|
+
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
891
|
+
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
892
|
+
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
893
|
+
stepMinutes: z.ZodDefault<z.ZodNumber>;
|
|
894
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
895
|
+
workingHours: z.ZodOptional<z.ZodObject<{
|
|
896
|
+
start: z.ZodString;
|
|
897
|
+
end: z.ZodString;
|
|
898
|
+
days: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
899
|
+
mon: "mon";
|
|
900
|
+
tue: "tue";
|
|
901
|
+
wed: "wed";
|
|
902
|
+
thu: "thu";
|
|
903
|
+
fri: "fri";
|
|
904
|
+
sat: "sat";
|
|
905
|
+
sun: "sun";
|
|
906
|
+
}>>>;
|
|
907
|
+
}, z.core.$strip>>;
|
|
908
|
+
maxSuggestions: z.ZodDefault<z.ZodNumber>;
|
|
909
|
+
requireAll: z.ZodDefault<z.ZodBoolean>;
|
|
910
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
911
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
912
|
+
any: "any";
|
|
913
|
+
all: "all";
|
|
914
|
+
}>>;
|
|
915
|
+
attendees: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
916
|
+
}, z.core.$strip>;
|
|
917
|
+
export type FindAccountsAvailabilityRequest = z.infer<typeof FindAccountsAvailabilityRequest>;
|
|
918
|
+
export declare const FindAccountsAvailabilityInput: z.ZodObject<{
|
|
919
|
+
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
920
|
+
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
921
|
+
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
922
|
+
stepMinutes: z.ZodDefault<z.ZodNumber>;
|
|
923
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
924
|
+
workingHours: z.ZodOptional<z.ZodObject<{
|
|
925
|
+
start: z.ZodString;
|
|
926
|
+
end: z.ZodString;
|
|
927
|
+
days: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
928
|
+
mon: "mon";
|
|
929
|
+
tue: "tue";
|
|
930
|
+
wed: "wed";
|
|
931
|
+
thu: "thu";
|
|
932
|
+
fri: "fri";
|
|
933
|
+
sat: "sat";
|
|
934
|
+
sun: "sun";
|
|
935
|
+
}>>>;
|
|
936
|
+
}, z.core.$strip>>;
|
|
937
|
+
maxSuggestions: z.ZodDefault<z.ZodNumber>;
|
|
938
|
+
requireAll: z.ZodDefault<z.ZodBoolean>;
|
|
939
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
940
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
941
|
+
any: "any";
|
|
942
|
+
all: "all";
|
|
943
|
+
}>>;
|
|
944
|
+
attendees: z.ZodDefault<z.ZodArray<z.ZodEmail>>;
|
|
945
|
+
}, z.core.$strip>;
|
|
946
|
+
export declare const AccountAvailability: z.ZodObject<{
|
|
947
|
+
address: z.ZodString;
|
|
948
|
+
busy: z.ZodArray<z.ZodObject<{
|
|
949
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
950
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
951
|
+
status: z.ZodEnum<{
|
|
952
|
+
unknown: "unknown";
|
|
953
|
+
tentative: "tentative";
|
|
954
|
+
busy: "busy";
|
|
955
|
+
oof: "oof";
|
|
956
|
+
working_elsewhere: "working_elsewhere";
|
|
957
|
+
}>;
|
|
958
|
+
}, z.core.$strip>>;
|
|
959
|
+
error: z.ZodNullable<z.ZodString>;
|
|
960
|
+
accountId: z.ZodUUID;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
export type AccountAvailability = z.infer<typeof AccountAvailability>;
|
|
963
|
+
export declare const AccountsTimeSlot: z.ZodObject<{
|
|
964
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
965
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
966
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
967
|
+
}, z.core.$strip>;
|
|
968
|
+
export type AccountsTimeSlot = z.infer<typeof AccountsTimeSlot>;
|
|
969
|
+
export declare const AccountsAvailability: z.ZodObject<{
|
|
970
|
+
complete: z.ZodBoolean;
|
|
971
|
+
unresolved: z.ZodArray<z.ZodString>;
|
|
972
|
+
withheldReason: z.ZodNullable<z.ZodEnum<{
|
|
973
|
+
unresolved_attendees: "unresolved_attendees";
|
|
974
|
+
}>>;
|
|
975
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
976
|
+
address: z.ZodString;
|
|
977
|
+
busy: z.ZodArray<z.ZodObject<{
|
|
978
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
979
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
980
|
+
status: z.ZodEnum<{
|
|
981
|
+
unknown: "unknown";
|
|
982
|
+
tentative: "tentative";
|
|
983
|
+
busy: "busy";
|
|
984
|
+
oof: "oof";
|
|
985
|
+
working_elsewhere: "working_elsewhere";
|
|
986
|
+
}>;
|
|
987
|
+
}, z.core.$strip>>;
|
|
988
|
+
error: z.ZodNullable<z.ZodString>;
|
|
989
|
+
accountId: z.ZodUUID;
|
|
990
|
+
}, z.core.$strip>>;
|
|
991
|
+
attendees: z.ZodArray<z.ZodObject<{
|
|
992
|
+
address: z.ZodString;
|
|
993
|
+
busy: z.ZodArray<z.ZodObject<{
|
|
994
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
995
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
996
|
+
status: z.ZodEnum<{
|
|
997
|
+
unknown: "unknown";
|
|
998
|
+
tentative: "tentative";
|
|
999
|
+
busy: "busy";
|
|
1000
|
+
oof: "oof";
|
|
1001
|
+
working_elsewhere: "working_elsewhere";
|
|
1002
|
+
}>;
|
|
1003
|
+
}, z.core.$strip>>;
|
|
1004
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1005
|
+
}, z.core.$strip>>;
|
|
1006
|
+
suggestions: z.ZodArray<z.ZodObject<{
|
|
1007
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1008
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
1009
|
+
accountIds: z.ZodArray<z.ZodUUID>;
|
|
1010
|
+
}, z.core.$strip>>;
|
|
1011
|
+
}, z.core.$strip>;
|
|
1012
|
+
export type AccountsAvailability = z.infer<typeof AccountsAvailability>;
|