@workwae/sdk 0.0.0-stage → 0.1.0-alpha.1
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 +726 -0
- package/contract/accounts/routes.d.ts +1318 -0
- package/contract/ai/models.d.ts +30 -0
- package/contract/ai/routes.d.ts +89 -0
- package/contract/audit-log/models.d.ts +107 -0
- package/contract/audit-log/routes.d.ts +72 -0
- package/contract/calendar/models.d.ts +837 -0
- package/contract/calendar/routes.d.ts +1299 -0
- package/contract/connect/models.d.ts +272 -0
- package/contract/connect/routes.d.ts +531 -0
- package/contract/contacts/models.d.ts +269 -0
- package/contract/contacts/routes.d.ts +634 -0
- package/contract/errors.d.ts +108 -0
- package/contract/events/models.d.ts +2364 -0
- package/contract/events/routes.d.ts +107 -0
- package/contract/exports/models.d.ts +67 -0
- package/contract/exports/routes.d.ts +196 -0
- package/contract/identities/models.d.ts +100 -0
- package/contract/identities/routes.d.ts +249 -0
- package/contract/limits.d.ts +170 -0
- package/contract/mail/models.d.ts +528 -0
- package/contract/mail/routes.d.ts +749 -0
- package/contract/meetings/models.d.ts +232 -0
- package/contract/meetings/routes.d.ts +386 -0
- package/contract/oauth-apps/models.d.ts +92 -0
- package/contract/oauth-apps/routes.d.ts +187 -0
- package/contract/org-connections/models.d.ts +383 -0
- package/contract/org-connections/routes.d.ts +830 -0
- package/contract/primitives.d.ts +140 -0
- package/contract/public.d.ts +26 -0
- package/contract/reasons.d.ts +711 -0
- package/contract/router.d.ts +9773 -0
- package/contract/send/models.d.ts +750 -0
- package/contract/send/routes.d.ts +1239 -0
- package/contract/settings/models.d.ts +103 -0
- package/contract/settings/routes.d.ts +110 -0
- package/contract/suppressions/models.d.ts +231 -0
- package/contract/suppressions/routes.d.ts +317 -0
- package/contract/templates/models.d.ts +169 -0
- package/contract/templates/routes.d.ts +281 -0
- package/contract/threads/models.d.ts +117 -0
- package/contract/threads/routes.d.ts +336 -0
- package/contract/usage/models.d.ts +213 -0
- package/contract/usage/routes.d.ts +81 -0
- package/contract/webhooks/models.d.ts +879 -0
- package/contract/webhooks/routes.d.ts +839 -0
- package/contract/webhooks/signing.d.ts +35 -0
- package/errors.d.ts +15 -0
- package/index.d.ts +6 -0
- package/index.js +4334 -0
- package/index.js.map +59 -0
- package/package.json +45 -4
- package/pagination.d.ts +40 -0
- package/webhooks.d.ts +28 -0
|
@@ -0,0 +1,837 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/** freebusy: only times are visible (Google freeBusyReader). */
|
|
3
|
+
export declare const CalendarAccess: z.ZodEnum<{
|
|
4
|
+
owner: "owner";
|
|
5
|
+
writer: "writer";
|
|
6
|
+
reader: "reader";
|
|
7
|
+
freebusy: "freebusy";
|
|
8
|
+
}>;
|
|
9
|
+
export type CalendarAccess = z.infer<typeof CalendarAccess>;
|
|
10
|
+
export declare const Calendar: z.ZodObject<{
|
|
11
|
+
id: z.ZodUUID;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
description: z.ZodNullable<z.ZodString>;
|
|
14
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
address: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
isPrimary: z.ZodBoolean;
|
|
19
|
+
access: z.ZodEnum<{
|
|
20
|
+
owner: "owner";
|
|
21
|
+
writer: "writer";
|
|
22
|
+
reader: "reader";
|
|
23
|
+
freebusy: "freebusy";
|
|
24
|
+
}>;
|
|
25
|
+
canEdit: z.ZodBoolean;
|
|
26
|
+
color: z.ZodNullable<z.ZodString>;
|
|
27
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
28
|
+
isHidden: z.ZodBoolean;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type Calendar = z.infer<typeof Calendar>;
|
|
31
|
+
export declare const CalendarList: z.ZodObject<{
|
|
32
|
+
items: z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.ZodUUID;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
description: z.ZodNullable<z.ZodString>;
|
|
36
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
37
|
+
name: z.ZodNullable<z.ZodString>;
|
|
38
|
+
address: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
isPrimary: z.ZodBoolean;
|
|
41
|
+
access: z.ZodEnum<{
|
|
42
|
+
owner: "owner";
|
|
43
|
+
writer: "writer";
|
|
44
|
+
reader: "reader";
|
|
45
|
+
freebusy: "freebusy";
|
|
46
|
+
}>;
|
|
47
|
+
canEdit: z.ZodBoolean;
|
|
48
|
+
color: z.ZodNullable<z.ZodString>;
|
|
49
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
50
|
+
isHidden: z.ZodBoolean;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type CalendarList = z.infer<typeof CalendarList>;
|
|
54
|
+
/** A calendar field a calendar.updated event names as changed. */
|
|
55
|
+
export declare const CalendarChangedField: z.ZodEnum<{
|
|
56
|
+
description: "description";
|
|
57
|
+
name: "name";
|
|
58
|
+
owner: "owner";
|
|
59
|
+
access: "access";
|
|
60
|
+
isPrimary: "isPrimary";
|
|
61
|
+
canEdit: "canEdit";
|
|
62
|
+
color: "color";
|
|
63
|
+
timeZone: "timeZone";
|
|
64
|
+
isHidden: "isHidden";
|
|
65
|
+
}>;
|
|
66
|
+
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
|
+
export declare const EventKind: z.ZodEnum<{
|
|
72
|
+
single: "single";
|
|
73
|
+
series: "series";
|
|
74
|
+
occurrence: "occurrence";
|
|
75
|
+
exception: "exception";
|
|
76
|
+
}>;
|
|
77
|
+
export type EventKind = z.infer<typeof EventKind>;
|
|
78
|
+
export declare const AttendeeType: z.ZodEnum<{
|
|
79
|
+
optional: "optional";
|
|
80
|
+
required: "required";
|
|
81
|
+
resource: "resource";
|
|
82
|
+
}>;
|
|
83
|
+
export type AttendeeType = z.infer<typeof AttendeeType>;
|
|
84
|
+
export declare const ResponseStatus: z.ZodEnum<{
|
|
85
|
+
none: "none";
|
|
86
|
+
organizer: "organizer";
|
|
87
|
+
accepted: "accepted";
|
|
88
|
+
tentative: "tentative";
|
|
89
|
+
declined: "declined";
|
|
90
|
+
needs_action: "needs_action";
|
|
91
|
+
}>;
|
|
92
|
+
export type ResponseStatus = z.infer<typeof ResponseStatus>;
|
|
93
|
+
export declare const EventStatus: z.ZodEnum<{
|
|
94
|
+
tentative: "tentative";
|
|
95
|
+
confirmed: "confirmed";
|
|
96
|
+
cancelled: "cancelled";
|
|
97
|
+
}>;
|
|
98
|
+
export type EventStatus = z.infer<typeof EventStatus>;
|
|
99
|
+
export declare const ShowAs: z.ZodEnum<{
|
|
100
|
+
unknown: "unknown";
|
|
101
|
+
tentative: "tentative";
|
|
102
|
+
free: "free";
|
|
103
|
+
busy: "busy";
|
|
104
|
+
oof: "oof";
|
|
105
|
+
working_elsewhere: "working_elsewhere";
|
|
106
|
+
}>;
|
|
107
|
+
export type ShowAs = z.infer<typeof ShowAs>;
|
|
108
|
+
export declare const Sensitivity: z.ZodEnum<{
|
|
109
|
+
normal: "normal";
|
|
110
|
+
personal: "personal";
|
|
111
|
+
private: "private";
|
|
112
|
+
confidential: "confidential";
|
|
113
|
+
}>;
|
|
114
|
+
export type Sensitivity = z.infer<typeof Sensitivity>;
|
|
115
|
+
export declare const Attendee: z.ZodObject<{
|
|
116
|
+
name: z.ZodNullable<z.ZodString>;
|
|
117
|
+
address: z.ZodString;
|
|
118
|
+
type: z.ZodEnum<{
|
|
119
|
+
optional: "optional";
|
|
120
|
+
required: "required";
|
|
121
|
+
resource: "resource";
|
|
122
|
+
}>;
|
|
123
|
+
response: z.ZodEnum<{
|
|
124
|
+
none: "none";
|
|
125
|
+
organizer: "organizer";
|
|
126
|
+
accepted: "accepted";
|
|
127
|
+
tentative: "tentative";
|
|
128
|
+
declined: "declined";
|
|
129
|
+
needs_action: "needs_action";
|
|
130
|
+
}>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
export type Attendee = z.infer<typeof Attendee>;
|
|
133
|
+
export declare const EventTime: z.ZodObject<{
|
|
134
|
+
dateTime: z.ZodPreprocess<z.ZodDate, Date>;
|
|
135
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
136
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export type EventTime = z.infer<typeof EventTime>;
|
|
139
|
+
export declare const CalendarEvent: z.ZodObject<{
|
|
140
|
+
id: z.ZodUUID;
|
|
141
|
+
calendarId: z.ZodUUID;
|
|
142
|
+
kind: z.ZodEnum<{
|
|
143
|
+
single: "single";
|
|
144
|
+
series: "series";
|
|
145
|
+
occurrence: "occurrence";
|
|
146
|
+
exception: "exception";
|
|
147
|
+
}>;
|
|
148
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
149
|
+
originalStart: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
150
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
151
|
+
snippet: z.ZodNullable<z.ZodString>;
|
|
152
|
+
location: z.ZodNullable<z.ZodString>;
|
|
153
|
+
start: z.ZodObject<{
|
|
154
|
+
dateTime: z.ZodPreprocess<z.ZodDate, Date>;
|
|
155
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
156
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
end: z.ZodObject<{
|
|
159
|
+
dateTime: z.ZodPreprocess<z.ZodDate, Date>;
|
|
160
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
161
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
isAllDay: z.ZodBoolean;
|
|
164
|
+
organizer: z.ZodNullable<z.ZodObject<{
|
|
165
|
+
name: z.ZodNullable<z.ZodString>;
|
|
166
|
+
address: z.ZodString;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
attendees: z.ZodArray<z.ZodObject<{
|
|
169
|
+
name: z.ZodNullable<z.ZodString>;
|
|
170
|
+
address: z.ZodString;
|
|
171
|
+
type: z.ZodEnum<{
|
|
172
|
+
optional: "optional";
|
|
173
|
+
required: "required";
|
|
174
|
+
resource: "resource";
|
|
175
|
+
}>;
|
|
176
|
+
response: z.ZodEnum<{
|
|
177
|
+
none: "none";
|
|
178
|
+
organizer: "organizer";
|
|
179
|
+
accepted: "accepted";
|
|
180
|
+
tentative: "tentative";
|
|
181
|
+
declined: "declined";
|
|
182
|
+
needs_action: "needs_action";
|
|
183
|
+
}>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
isOrganizer: z.ZodBoolean;
|
|
186
|
+
selfResponse: z.ZodEnum<{
|
|
187
|
+
none: "none";
|
|
188
|
+
organizer: "organizer";
|
|
189
|
+
accepted: "accepted";
|
|
190
|
+
tentative: "tentative";
|
|
191
|
+
declined: "declined";
|
|
192
|
+
needs_action: "needs_action";
|
|
193
|
+
}>;
|
|
194
|
+
status: z.ZodEnum<{
|
|
195
|
+
tentative: "tentative";
|
|
196
|
+
confirmed: "confirmed";
|
|
197
|
+
cancelled: "cancelled";
|
|
198
|
+
}>;
|
|
199
|
+
showAs: z.ZodEnum<{
|
|
200
|
+
unknown: "unknown";
|
|
201
|
+
tentative: "tentative";
|
|
202
|
+
free: "free";
|
|
203
|
+
busy: "busy";
|
|
204
|
+
oof: "oof";
|
|
205
|
+
working_elsewhere: "working_elsewhere";
|
|
206
|
+
}>;
|
|
207
|
+
sensitivity: z.ZodEnum<{
|
|
208
|
+
normal: "normal";
|
|
209
|
+
personal: "personal";
|
|
210
|
+
private: "private";
|
|
211
|
+
confidential: "confidential";
|
|
212
|
+
}>;
|
|
213
|
+
onlineMeetingUrl: z.ZodNullable<z.ZodString>;
|
|
214
|
+
onlineMeetingProvider: z.ZodNullable<z.ZodString>;
|
|
215
|
+
iCalUid: z.ZodNullable<z.ZodString>;
|
|
216
|
+
recurrence: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
217
|
+
recurrenceTimeZone: z.ZodNullable<z.ZodString>;
|
|
218
|
+
cancelledStarts: z.ZodNullable<z.ZodArray<z.ZodPreprocess<z.ZodDate, Date>>>;
|
|
219
|
+
categories: z.ZodArray<z.ZodString>;
|
|
220
|
+
hasAttachments: z.ZodBoolean;
|
|
221
|
+
reminderMinutes: z.ZodNullable<z.ZodNumber>;
|
|
222
|
+
webLink: z.ZodNullable<z.ZodString>;
|
|
223
|
+
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
export type CalendarEvent = z.infer<typeof CalendarEvent>;
|
|
226
|
+
export declare const CalendarEventPage: z.ZodObject<{
|
|
227
|
+
items: z.ZodArray<z.ZodObject<{
|
|
228
|
+
id: z.ZodUUID;
|
|
229
|
+
calendarId: z.ZodUUID;
|
|
230
|
+
kind: z.ZodEnum<{
|
|
231
|
+
single: "single";
|
|
232
|
+
series: "series";
|
|
233
|
+
occurrence: "occurrence";
|
|
234
|
+
exception: "exception";
|
|
235
|
+
}>;
|
|
236
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
237
|
+
originalStart: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
238
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
239
|
+
snippet: z.ZodNullable<z.ZodString>;
|
|
240
|
+
location: z.ZodNullable<z.ZodString>;
|
|
241
|
+
start: z.ZodObject<{
|
|
242
|
+
dateTime: z.ZodPreprocess<z.ZodDate, Date>;
|
|
243
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
244
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
end: z.ZodObject<{
|
|
247
|
+
dateTime: z.ZodPreprocess<z.ZodDate, Date>;
|
|
248
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
249
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
isAllDay: z.ZodBoolean;
|
|
252
|
+
organizer: z.ZodNullable<z.ZodObject<{
|
|
253
|
+
name: z.ZodNullable<z.ZodString>;
|
|
254
|
+
address: z.ZodString;
|
|
255
|
+
}, z.core.$strip>>;
|
|
256
|
+
attendees: z.ZodArray<z.ZodObject<{
|
|
257
|
+
name: z.ZodNullable<z.ZodString>;
|
|
258
|
+
address: z.ZodString;
|
|
259
|
+
type: z.ZodEnum<{
|
|
260
|
+
optional: "optional";
|
|
261
|
+
required: "required";
|
|
262
|
+
resource: "resource";
|
|
263
|
+
}>;
|
|
264
|
+
response: z.ZodEnum<{
|
|
265
|
+
none: "none";
|
|
266
|
+
organizer: "organizer";
|
|
267
|
+
accepted: "accepted";
|
|
268
|
+
tentative: "tentative";
|
|
269
|
+
declined: "declined";
|
|
270
|
+
needs_action: "needs_action";
|
|
271
|
+
}>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
isOrganizer: z.ZodBoolean;
|
|
274
|
+
selfResponse: z.ZodEnum<{
|
|
275
|
+
none: "none";
|
|
276
|
+
organizer: "organizer";
|
|
277
|
+
accepted: "accepted";
|
|
278
|
+
tentative: "tentative";
|
|
279
|
+
declined: "declined";
|
|
280
|
+
needs_action: "needs_action";
|
|
281
|
+
}>;
|
|
282
|
+
status: z.ZodEnum<{
|
|
283
|
+
tentative: "tentative";
|
|
284
|
+
confirmed: "confirmed";
|
|
285
|
+
cancelled: "cancelled";
|
|
286
|
+
}>;
|
|
287
|
+
showAs: z.ZodEnum<{
|
|
288
|
+
unknown: "unknown";
|
|
289
|
+
tentative: "tentative";
|
|
290
|
+
free: "free";
|
|
291
|
+
busy: "busy";
|
|
292
|
+
oof: "oof";
|
|
293
|
+
working_elsewhere: "working_elsewhere";
|
|
294
|
+
}>;
|
|
295
|
+
sensitivity: z.ZodEnum<{
|
|
296
|
+
normal: "normal";
|
|
297
|
+
personal: "personal";
|
|
298
|
+
private: "private";
|
|
299
|
+
confidential: "confidential";
|
|
300
|
+
}>;
|
|
301
|
+
onlineMeetingUrl: z.ZodNullable<z.ZodString>;
|
|
302
|
+
onlineMeetingProvider: z.ZodNullable<z.ZodString>;
|
|
303
|
+
iCalUid: z.ZodNullable<z.ZodString>;
|
|
304
|
+
recurrence: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
305
|
+
recurrenceTimeZone: z.ZodNullable<z.ZodString>;
|
|
306
|
+
cancelledStarts: z.ZodNullable<z.ZodArray<z.ZodPreprocess<z.ZodDate, Date>>>;
|
|
307
|
+
categories: z.ZodArray<z.ZodString>;
|
|
308
|
+
hasAttachments: z.ZodBoolean;
|
|
309
|
+
reminderMinutes: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
webLink: z.ZodNullable<z.ZodString>;
|
|
311
|
+
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
312
|
+
}, z.core.$strip>>;
|
|
313
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
export type CalendarEventPage = z.infer<typeof CalendarEventPage>;
|
|
316
|
+
/** An event field a calendar_event.updated event names as changed. */
|
|
317
|
+
export declare const CalendarEventChangedField: z.ZodEnum<{
|
|
318
|
+
status: "status";
|
|
319
|
+
kind: "kind";
|
|
320
|
+
organizer: "organizer";
|
|
321
|
+
start: "start";
|
|
322
|
+
end: "end";
|
|
323
|
+
selfResponse: "selfResponse";
|
|
324
|
+
showAs: "showAs";
|
|
325
|
+
sensitivity: "sensitivity";
|
|
326
|
+
originalStart: "originalStart";
|
|
327
|
+
subject: "subject";
|
|
328
|
+
snippet: "snippet";
|
|
329
|
+
location: "location";
|
|
330
|
+
isAllDay: "isAllDay";
|
|
331
|
+
attendees: "attendees";
|
|
332
|
+
isOrganizer: "isOrganizer";
|
|
333
|
+
onlineMeetingUrl: "onlineMeetingUrl";
|
|
334
|
+
onlineMeetingProvider: "onlineMeetingProvider";
|
|
335
|
+
iCalUid: "iCalUid";
|
|
336
|
+
recurrence: "recurrence";
|
|
337
|
+
recurrenceTimeZone: "recurrenceTimeZone";
|
|
338
|
+
cancelledStarts: "cancelledStarts";
|
|
339
|
+
categories: "categories";
|
|
340
|
+
hasAttachments: "hasAttachments";
|
|
341
|
+
reminderMinutes: "reminderMinutes";
|
|
342
|
+
webLink: "webLink";
|
|
343
|
+
}>;
|
|
344
|
+
export type CalendarEventChangedField = z.infer<typeof CalendarEventChangedField>;
|
|
345
|
+
export declare const BodyContentType: z.ZodEnum<{
|
|
346
|
+
text: "text";
|
|
347
|
+
html: "html";
|
|
348
|
+
}>;
|
|
349
|
+
export type BodyContentType = z.infer<typeof BodyContentType>;
|
|
350
|
+
export declare const EventBody: z.ZodObject<{
|
|
351
|
+
contentType: z.ZodEnum<{
|
|
352
|
+
text: "text";
|
|
353
|
+
html: "html";
|
|
354
|
+
}>;
|
|
355
|
+
content: z.ZodString;
|
|
356
|
+
}, z.core.$strip>;
|
|
357
|
+
export type EventBody = z.infer<typeof EventBody>;
|
|
358
|
+
export declare const CalendarEventDetail: z.ZodObject<{
|
|
359
|
+
id: z.ZodUUID;
|
|
360
|
+
calendarId: z.ZodUUID;
|
|
361
|
+
kind: z.ZodEnum<{
|
|
362
|
+
single: "single";
|
|
363
|
+
series: "series";
|
|
364
|
+
occurrence: "occurrence";
|
|
365
|
+
exception: "exception";
|
|
366
|
+
}>;
|
|
367
|
+
seriesId: z.ZodNullable<z.ZodUUID>;
|
|
368
|
+
originalStart: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
369
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
370
|
+
snippet: z.ZodNullable<z.ZodString>;
|
|
371
|
+
location: z.ZodNullable<z.ZodString>;
|
|
372
|
+
start: z.ZodObject<{
|
|
373
|
+
dateTime: z.ZodPreprocess<z.ZodDate, Date>;
|
|
374
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
375
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
end: z.ZodObject<{
|
|
378
|
+
dateTime: z.ZodPreprocess<z.ZodDate, Date>;
|
|
379
|
+
date: z.ZodNullable<z.ZodISODate>;
|
|
380
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
381
|
+
}, z.core.$strip>;
|
|
382
|
+
isAllDay: z.ZodBoolean;
|
|
383
|
+
organizer: z.ZodNullable<z.ZodObject<{
|
|
384
|
+
name: z.ZodNullable<z.ZodString>;
|
|
385
|
+
address: z.ZodString;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
attendees: z.ZodArray<z.ZodObject<{
|
|
388
|
+
name: z.ZodNullable<z.ZodString>;
|
|
389
|
+
address: z.ZodString;
|
|
390
|
+
type: z.ZodEnum<{
|
|
391
|
+
optional: "optional";
|
|
392
|
+
required: "required";
|
|
393
|
+
resource: "resource";
|
|
394
|
+
}>;
|
|
395
|
+
response: z.ZodEnum<{
|
|
396
|
+
none: "none";
|
|
397
|
+
organizer: "organizer";
|
|
398
|
+
accepted: "accepted";
|
|
399
|
+
tentative: "tentative";
|
|
400
|
+
declined: "declined";
|
|
401
|
+
needs_action: "needs_action";
|
|
402
|
+
}>;
|
|
403
|
+
}, z.core.$strip>>;
|
|
404
|
+
isOrganizer: z.ZodBoolean;
|
|
405
|
+
selfResponse: z.ZodEnum<{
|
|
406
|
+
none: "none";
|
|
407
|
+
organizer: "organizer";
|
|
408
|
+
accepted: "accepted";
|
|
409
|
+
tentative: "tentative";
|
|
410
|
+
declined: "declined";
|
|
411
|
+
needs_action: "needs_action";
|
|
412
|
+
}>;
|
|
413
|
+
status: z.ZodEnum<{
|
|
414
|
+
tentative: "tentative";
|
|
415
|
+
confirmed: "confirmed";
|
|
416
|
+
cancelled: "cancelled";
|
|
417
|
+
}>;
|
|
418
|
+
showAs: z.ZodEnum<{
|
|
419
|
+
unknown: "unknown";
|
|
420
|
+
tentative: "tentative";
|
|
421
|
+
free: "free";
|
|
422
|
+
busy: "busy";
|
|
423
|
+
oof: "oof";
|
|
424
|
+
working_elsewhere: "working_elsewhere";
|
|
425
|
+
}>;
|
|
426
|
+
sensitivity: z.ZodEnum<{
|
|
427
|
+
normal: "normal";
|
|
428
|
+
personal: "personal";
|
|
429
|
+
private: "private";
|
|
430
|
+
confidential: "confidential";
|
|
431
|
+
}>;
|
|
432
|
+
onlineMeetingUrl: z.ZodNullable<z.ZodString>;
|
|
433
|
+
onlineMeetingProvider: z.ZodNullable<z.ZodString>;
|
|
434
|
+
iCalUid: z.ZodNullable<z.ZodString>;
|
|
435
|
+
recurrence: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
436
|
+
recurrenceTimeZone: z.ZodNullable<z.ZodString>;
|
|
437
|
+
cancelledStarts: z.ZodNullable<z.ZodArray<z.ZodPreprocess<z.ZodDate, Date>>>;
|
|
438
|
+
categories: z.ZodArray<z.ZodString>;
|
|
439
|
+
hasAttachments: z.ZodBoolean;
|
|
440
|
+
reminderMinutes: z.ZodNullable<z.ZodNumber>;
|
|
441
|
+
webLink: z.ZodNullable<z.ZodString>;
|
|
442
|
+
updatedAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
443
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
444
|
+
contentType: z.ZodEnum<{
|
|
445
|
+
text: "text";
|
|
446
|
+
html: "html";
|
|
447
|
+
}>;
|
|
448
|
+
content: z.ZodString;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
export type CalendarEventDetail = z.infer<typeof CalendarEventDetail>;
|
|
452
|
+
/** A time of day in a zone (wall-clock time, no offset), or a whole day. */
|
|
453
|
+
export declare const EventTimeInput: z.ZodUnion<readonly [z.ZodObject<{
|
|
454
|
+
dateTime: z.ZodISODateTime;
|
|
455
|
+
timeZone: z.ZodString;
|
|
456
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
457
|
+
date: z.ZodISODate;
|
|
458
|
+
}, z.core.$strip>]>;
|
|
459
|
+
export type EventTimeInput = z.infer<typeof EventTimeInput>;
|
|
460
|
+
export declare const AttendeeInput: z.ZodObject<{
|
|
461
|
+
name: z.ZodOptional<z.ZodString>;
|
|
462
|
+
address: z.ZodEmail;
|
|
463
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
464
|
+
optional: "optional";
|
|
465
|
+
required: "required";
|
|
466
|
+
resource: "resource";
|
|
467
|
+
}>>;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
export type AttendeeInput = z.infer<typeof AttendeeInput>;
|
|
470
|
+
export declare const CreateCalendarEvent: z.ZodObject<{
|
|
471
|
+
calendarId: z.ZodUUID;
|
|
472
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
473
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
474
|
+
contentType: z.ZodEnum<{
|
|
475
|
+
text: "text";
|
|
476
|
+
html: "html";
|
|
477
|
+
}>;
|
|
478
|
+
content: z.ZodString;
|
|
479
|
+
}, z.core.$strip>>;
|
|
480
|
+
location: z.ZodOptional<z.ZodString>;
|
|
481
|
+
start: z.ZodUnion<readonly [z.ZodObject<{
|
|
482
|
+
dateTime: z.ZodISODateTime;
|
|
483
|
+
timeZone: z.ZodString;
|
|
484
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
485
|
+
date: z.ZodISODate;
|
|
486
|
+
}, z.core.$strip>]>;
|
|
487
|
+
end: z.ZodUnion<readonly [z.ZodObject<{
|
|
488
|
+
dateTime: z.ZodISODateTime;
|
|
489
|
+
timeZone: z.ZodString;
|
|
490
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
491
|
+
date: z.ZodISODate;
|
|
492
|
+
}, z.core.$strip>]>;
|
|
493
|
+
attendees: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
494
|
+
name: z.ZodOptional<z.ZodString>;
|
|
495
|
+
address: z.ZodEmail;
|
|
496
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
497
|
+
optional: "optional";
|
|
498
|
+
required: "required";
|
|
499
|
+
resource: "resource";
|
|
500
|
+
}>>;
|
|
501
|
+
}, z.core.$strip>>>;
|
|
502
|
+
recurrence: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
503
|
+
showAs: z.ZodOptional<z.ZodEnum<{
|
|
504
|
+
tentative: "tentative";
|
|
505
|
+
free: "free";
|
|
506
|
+
busy: "busy";
|
|
507
|
+
oof: "oof";
|
|
508
|
+
working_elsewhere: "working_elsewhere";
|
|
509
|
+
}>>;
|
|
510
|
+
sensitivity: z.ZodOptional<z.ZodEnum<{
|
|
511
|
+
normal: "normal";
|
|
512
|
+
personal: "personal";
|
|
513
|
+
private: "private";
|
|
514
|
+
confidential: "confidential";
|
|
515
|
+
}>>;
|
|
516
|
+
reminderMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
517
|
+
onlineMeeting: z.ZodDefault<z.ZodBoolean>;
|
|
518
|
+
onlineMeetingUrl: z.ZodOptional<z.ZodURL>;
|
|
519
|
+
onlineMeetingService: z.ZodOptional<z.ZodEnum<{
|
|
520
|
+
zoom: "zoom";
|
|
521
|
+
webex: "webex";
|
|
522
|
+
}>>;
|
|
523
|
+
notify: z.ZodDefault<z.ZodBoolean>;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
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
|
+
export declare const CreateCalendarEventInput: z.ZodObject<{
|
|
529
|
+
accountId: z.ZodUUID;
|
|
530
|
+
calendarId: z.ZodUUID;
|
|
531
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
532
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
contentType: z.ZodEnum<{
|
|
534
|
+
text: "text";
|
|
535
|
+
html: "html";
|
|
536
|
+
}>;
|
|
537
|
+
content: z.ZodString;
|
|
538
|
+
}, z.core.$strip>>;
|
|
539
|
+
location: z.ZodOptional<z.ZodString>;
|
|
540
|
+
start: z.ZodUnion<readonly [z.ZodObject<{
|
|
541
|
+
dateTime: z.ZodISODateTime;
|
|
542
|
+
timeZone: z.ZodString;
|
|
543
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
544
|
+
date: z.ZodISODate;
|
|
545
|
+
}, z.core.$strip>]>;
|
|
546
|
+
end: z.ZodUnion<readonly [z.ZodObject<{
|
|
547
|
+
dateTime: z.ZodISODateTime;
|
|
548
|
+
timeZone: z.ZodString;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
550
|
+
date: z.ZodISODate;
|
|
551
|
+
}, z.core.$strip>]>;
|
|
552
|
+
attendees: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
553
|
+
name: z.ZodOptional<z.ZodString>;
|
|
554
|
+
address: z.ZodEmail;
|
|
555
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
556
|
+
optional: "optional";
|
|
557
|
+
required: "required";
|
|
558
|
+
resource: "resource";
|
|
559
|
+
}>>;
|
|
560
|
+
}, z.core.$strip>>>;
|
|
561
|
+
recurrence: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
562
|
+
showAs: z.ZodOptional<z.ZodEnum<{
|
|
563
|
+
tentative: "tentative";
|
|
564
|
+
free: "free";
|
|
565
|
+
busy: "busy";
|
|
566
|
+
oof: "oof";
|
|
567
|
+
working_elsewhere: "working_elsewhere";
|
|
568
|
+
}>>;
|
|
569
|
+
sensitivity: z.ZodOptional<z.ZodEnum<{
|
|
570
|
+
normal: "normal";
|
|
571
|
+
personal: "personal";
|
|
572
|
+
private: "private";
|
|
573
|
+
confidential: "confidential";
|
|
574
|
+
}>>;
|
|
575
|
+
reminderMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
576
|
+
onlineMeeting: z.ZodDefault<z.ZodBoolean>;
|
|
577
|
+
onlineMeetingUrl: z.ZodOptional<z.ZodURL>;
|
|
578
|
+
onlineMeetingService: z.ZodOptional<z.ZodEnum<{
|
|
579
|
+
zoom: "zoom";
|
|
580
|
+
webex: "webex";
|
|
581
|
+
}>>;
|
|
582
|
+
notify: z.ZodDefault<z.ZodBoolean>;
|
|
583
|
+
}, z.core.$strip>;
|
|
584
|
+
/** Fields present change; absent fields stay. An occurrence becomes an exception. */
|
|
585
|
+
export declare const UpdateCalendarEvent: z.ZodObject<{
|
|
586
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
587
|
+
body: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
contentType: z.ZodEnum<{
|
|
589
|
+
text: "text";
|
|
590
|
+
html: "html";
|
|
591
|
+
}>;
|
|
592
|
+
content: z.ZodString;
|
|
593
|
+
}, z.core.$strip>>;
|
|
594
|
+
location: z.ZodOptional<z.ZodString>;
|
|
595
|
+
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
596
|
+
dateTime: z.ZodISODateTime;
|
|
597
|
+
timeZone: z.ZodString;
|
|
598
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
599
|
+
date: z.ZodISODate;
|
|
600
|
+
}, z.core.$strip>]>>;
|
|
601
|
+
end: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
602
|
+
dateTime: z.ZodISODateTime;
|
|
603
|
+
timeZone: z.ZodString;
|
|
604
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
605
|
+
date: z.ZodISODate;
|
|
606
|
+
}, z.core.$strip>]>>;
|
|
607
|
+
attendees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
608
|
+
name: z.ZodOptional<z.ZodString>;
|
|
609
|
+
address: z.ZodEmail;
|
|
610
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
611
|
+
optional: "optional";
|
|
612
|
+
required: "required";
|
|
613
|
+
resource: "resource";
|
|
614
|
+
}>>;
|
|
615
|
+
}, z.core.$strip>>>;
|
|
616
|
+
recurrence: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
617
|
+
showAs: z.ZodOptional<z.ZodEnum<{
|
|
618
|
+
tentative: "tentative";
|
|
619
|
+
free: "free";
|
|
620
|
+
busy: "busy";
|
|
621
|
+
oof: "oof";
|
|
622
|
+
working_elsewhere: "working_elsewhere";
|
|
623
|
+
}>>;
|
|
624
|
+
sensitivity: z.ZodOptional<z.ZodEnum<{
|
|
625
|
+
normal: "normal";
|
|
626
|
+
personal: "personal";
|
|
627
|
+
private: "private";
|
|
628
|
+
confidential: "confidential";
|
|
629
|
+
}>>;
|
|
630
|
+
reminderMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
631
|
+
onlineMeetingUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
632
|
+
notify: z.ZodDefault<z.ZodBoolean>;
|
|
633
|
+
}, z.core.$strip>;
|
|
634
|
+
export type UpdateCalendarEvent = z.infer<typeof UpdateCalendarEvent>;
|
|
635
|
+
export declare const DeleteCalendarEventQuery: z.ZodObject<{
|
|
636
|
+
notify: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
637
|
+
true: "true";
|
|
638
|
+
false: "false";
|
|
639
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
640
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
export type DeleteCalendarEventQuery = z.infer<typeof DeleteCalendarEventQuery>;
|
|
643
|
+
export declare const RsvpResponse: z.ZodEnum<{
|
|
644
|
+
accepted: "accepted";
|
|
645
|
+
tentative: "tentative";
|
|
646
|
+
declined: "declined";
|
|
647
|
+
}>;
|
|
648
|
+
export type RsvpResponse = z.infer<typeof RsvpResponse>;
|
|
649
|
+
export declare const RespondToCalendarEventRequest: z.ZodObject<{
|
|
650
|
+
response: z.ZodEnum<{
|
|
651
|
+
accepted: "accepted";
|
|
652
|
+
tentative: "tentative";
|
|
653
|
+
declined: "declined";
|
|
654
|
+
}>;
|
|
655
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
656
|
+
notify: z.ZodDefault<z.ZodBoolean>;
|
|
657
|
+
}, z.core.$strip>;
|
|
658
|
+
export type RespondToCalendarEventRequest = z.infer<typeof RespondToCalendarEventRequest>;
|
|
659
|
+
export declare const CalendarEventIdInput: z.ZodObject<{
|
|
660
|
+
accountId: z.ZodUUID;
|
|
661
|
+
eventId: z.ZodUUID;
|
|
662
|
+
}, z.core.$strip>;
|
|
663
|
+
export type CalendarEventIdInput = z.infer<typeof CalendarEventIdInput>;
|
|
664
|
+
/** The path's event and the query's options, as a DELETE takes them. */
|
|
665
|
+
export declare const DeleteCalendarEventInput: z.ZodObject<{
|
|
666
|
+
params: z.ZodObject<{
|
|
667
|
+
accountId: z.ZodUUID;
|
|
668
|
+
eventId: z.ZodUUID;
|
|
669
|
+
}, z.core.$strip>;
|
|
670
|
+
query: z.ZodObject<{
|
|
671
|
+
notify: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
|
|
672
|
+
true: "true";
|
|
673
|
+
false: "false";
|
|
674
|
+
}>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
|
|
675
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
}, z.core.$strip>;
|
|
678
|
+
export type DeleteCalendarEventInput = z.infer<typeof DeleteCalendarEventInput>;
|
|
679
|
+
export declare const ListCalendarEventsQuery: z.ZodObject<{
|
|
680
|
+
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
681
|
+
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
682
|
+
calendarId: z.ZodOptional<z.ZodUUID>;
|
|
683
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
684
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
685
|
+
}, z.core.$strip>;
|
|
686
|
+
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
|
+
export declare const ListCalendarEventsInput: z.ZodObject<{
|
|
690
|
+
accountId: z.ZodUUID;
|
|
691
|
+
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
692
|
+
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
693
|
+
calendarId: z.ZodOptional<z.ZodUUID>;
|
|
694
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
695
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, 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
|
+
export declare const BusyStatus: z.ZodEnum<{
|
|
700
|
+
unknown: "unknown";
|
|
701
|
+
tentative: "tentative";
|
|
702
|
+
busy: "busy";
|
|
703
|
+
oof: "oof";
|
|
704
|
+
working_elsewhere: "working_elsewhere";
|
|
705
|
+
}>;
|
|
706
|
+
export type BusyStatus = z.infer<typeof BusyStatus>;
|
|
707
|
+
export declare const BusyBlock: z.ZodObject<{
|
|
708
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
709
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
710
|
+
status: z.ZodEnum<{
|
|
711
|
+
unknown: "unknown";
|
|
712
|
+
tentative: "tentative";
|
|
713
|
+
busy: "busy";
|
|
714
|
+
oof: "oof";
|
|
715
|
+
working_elsewhere: "working_elsewhere";
|
|
716
|
+
}>;
|
|
717
|
+
}, z.core.$strip>;
|
|
718
|
+
export type BusyBlock = z.infer<typeof BusyBlock>;
|
|
719
|
+
export declare const AttendeeAvailability: z.ZodObject<{
|
|
720
|
+
address: z.ZodString;
|
|
721
|
+
busy: z.ZodArray<z.ZodObject<{
|
|
722
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
723
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
724
|
+
status: z.ZodEnum<{
|
|
725
|
+
unknown: "unknown";
|
|
726
|
+
tentative: "tentative";
|
|
727
|
+
busy: "busy";
|
|
728
|
+
oof: "oof";
|
|
729
|
+
working_elsewhere: "working_elsewhere";
|
|
730
|
+
}>;
|
|
731
|
+
}, z.core.$strip>>;
|
|
732
|
+
error: z.ZodNullable<z.ZodString>;
|
|
733
|
+
}, z.core.$strip>;
|
|
734
|
+
export type AttendeeAvailability = z.infer<typeof AttendeeAvailability>;
|
|
735
|
+
export declare const Weekday: z.ZodEnum<{
|
|
736
|
+
mon: "mon";
|
|
737
|
+
tue: "tue";
|
|
738
|
+
wed: "wed";
|
|
739
|
+
thu: "thu";
|
|
740
|
+
fri: "fri";
|
|
741
|
+
sat: "sat";
|
|
742
|
+
sun: "sun";
|
|
743
|
+
}>;
|
|
744
|
+
export type Weekday = z.infer<typeof Weekday>;
|
|
745
|
+
/** Only suggest inside these hours on these days (in timeZone); end after start
|
|
746
|
+
* (invalid_working_hours). */
|
|
747
|
+
export declare const WorkingHours: z.ZodObject<{
|
|
748
|
+
start: z.ZodString;
|
|
749
|
+
end: z.ZodString;
|
|
750
|
+
days: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
751
|
+
mon: "mon";
|
|
752
|
+
tue: "tue";
|
|
753
|
+
wed: "wed";
|
|
754
|
+
thu: "thu";
|
|
755
|
+
fri: "fri";
|
|
756
|
+
sat: "sat";
|
|
757
|
+
sun: "sun";
|
|
758
|
+
}>>>;
|
|
759
|
+
}, z.core.$strip>;
|
|
760
|
+
export type WorkingHours = z.infer<typeof WorkingHours>;
|
|
761
|
+
export declare const FindAvailabilityRequest: z.ZodObject<{
|
|
762
|
+
attendees: z.ZodArray<z.ZodEmail>;
|
|
763
|
+
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
764
|
+
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
765
|
+
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
766
|
+
stepMinutes: z.ZodDefault<z.ZodNumber>;
|
|
767
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
768
|
+
workingHours: z.ZodOptional<z.ZodObject<{
|
|
769
|
+
start: z.ZodString;
|
|
770
|
+
end: z.ZodString;
|
|
771
|
+
days: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
772
|
+
mon: "mon";
|
|
773
|
+
tue: "tue";
|
|
774
|
+
wed: "wed";
|
|
775
|
+
thu: "thu";
|
|
776
|
+
fri: "fri";
|
|
777
|
+
sat: "sat";
|
|
778
|
+
sun: "sun";
|
|
779
|
+
}>>>;
|
|
780
|
+
}, z.core.$strip>>;
|
|
781
|
+
maxSuggestions: z.ZodDefault<z.ZodNumber>;
|
|
782
|
+
includeAccount: z.ZodDefault<z.ZodBoolean>;
|
|
783
|
+
}, z.core.$strip>;
|
|
784
|
+
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
|
+
export declare const FindAvailabilityInput: z.ZodObject<{
|
|
788
|
+
accountId: z.ZodUUID;
|
|
789
|
+
attendees: z.ZodArray<z.ZodEmail>;
|
|
790
|
+
start: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
791
|
+
end: z.ZodPreprocess<z.ZodDate, string | Date>;
|
|
792
|
+
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
793
|
+
stepMinutes: z.ZodDefault<z.ZodNumber>;
|
|
794
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
795
|
+
workingHours: z.ZodOptional<z.ZodObject<{
|
|
796
|
+
start: z.ZodString;
|
|
797
|
+
end: z.ZodString;
|
|
798
|
+
days: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
799
|
+
mon: "mon";
|
|
800
|
+
tue: "tue";
|
|
801
|
+
wed: "wed";
|
|
802
|
+
thu: "thu";
|
|
803
|
+
fri: "fri";
|
|
804
|
+
sat: "sat";
|
|
805
|
+
sun: "sun";
|
|
806
|
+
}>>>;
|
|
807
|
+
}, z.core.$strip>>;
|
|
808
|
+
maxSuggestions: z.ZodDefault<z.ZodNumber>;
|
|
809
|
+
includeAccount: z.ZodDefault<z.ZodBoolean>;
|
|
810
|
+
}, z.core.$strip>;
|
|
811
|
+
export declare const TimeSlot: z.ZodObject<{
|
|
812
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
813
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
814
|
+
}, z.core.$strip>;
|
|
815
|
+
export type TimeSlot = z.infer<typeof TimeSlot>;
|
|
816
|
+
export declare const Availability: z.ZodObject<{
|
|
817
|
+
attendees: z.ZodArray<z.ZodObject<{
|
|
818
|
+
address: z.ZodString;
|
|
819
|
+
busy: z.ZodArray<z.ZodObject<{
|
|
820
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
821
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
822
|
+
status: z.ZodEnum<{
|
|
823
|
+
unknown: "unknown";
|
|
824
|
+
tentative: "tentative";
|
|
825
|
+
busy: "busy";
|
|
826
|
+
oof: "oof";
|
|
827
|
+
working_elsewhere: "working_elsewhere";
|
|
828
|
+
}>;
|
|
829
|
+
}, z.core.$strip>>;
|
|
830
|
+
error: z.ZodNullable<z.ZodString>;
|
|
831
|
+
}, z.core.$strip>>;
|
|
832
|
+
suggestions: z.ZodArray<z.ZodObject<{
|
|
833
|
+
start: z.ZodPreprocess<z.ZodDate, Date>;
|
|
834
|
+
end: z.ZodPreprocess<z.ZodDate, Date>;
|
|
835
|
+
}, z.core.$strip>>;
|
|
836
|
+
}, z.core.$strip>;
|
|
837
|
+
export type Availability = z.infer<typeof Availability>;
|