@automate.ax/integration-contracts 0.115.6 → 0.118.0

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 (36) hide show
  1. package/dist/gmail/index.d.ts +269 -0
  2. package/dist/gmail/index.js +13 -1
  3. package/dist/gmail/schemas.d.ts +204 -0
  4. package/dist/gmail/schemas.js +24 -0
  5. package/dist/google-calendar/event-schemas.d.ts +346 -0
  6. package/dist/google-calendar/event-schemas.js +14 -0
  7. package/dist/google-calendar/index.d.ts +350 -0
  8. package/dist/google-calendar/index.js +5 -1
  9. package/dist/millionverifier/api.d.ts +62 -0
  10. package/dist/millionverifier/api.js +114 -0
  11. package/dist/millionverifier/events.d.ts +126 -0
  12. package/dist/millionverifier/events.js +103 -0
  13. package/dist/millionverifier/index.d.ts +77 -0
  14. package/dist/millionverifier/index.js +17 -0
  15. package/dist/millionverifier/schemas.d.ts +226 -0
  16. package/dist/millionverifier/schemas.js +188 -0
  17. package/dist/tidycal/api.d.ts +62 -0
  18. package/dist/tidycal/api.js +192 -0
  19. package/dist/tidycal/index.d.ts +2 -0
  20. package/dist/tidycal/index.js +2 -0
  21. package/dist/tidycal/schemas.d.ts +121 -0
  22. package/dist/tidycal/schemas.js +95 -0
  23. package/dist/triggers.d.ts +2 -1
  24. package/package.json +14 -2
  25. package/src/gmail/index.ts +18 -1
  26. package/src/gmail/schemas.ts +26 -0
  27. package/src/google-calendar/event-schemas.ts +18 -0
  28. package/src/google-calendar/index.ts +8 -1
  29. package/src/millionverifier/api.ts +151 -0
  30. package/src/millionverifier/events.ts +110 -0
  31. package/src/millionverifier/index.ts +33 -0
  32. package/src/millionverifier/schemas.ts +207 -0
  33. package/src/tidycal/api.ts +239 -0
  34. package/src/tidycal/index.ts +2 -0
  35. package/src/tidycal/schemas.ts +105 -0
  36. package/src/triggers.ts +2 -0
@@ -115,3 +115,349 @@ export declare const GOOGLE_CALENDAR_EVENT_DELETED_SCHEMA: z.ZodObject<{
115
115
  }, z.core.$strip>>;
116
116
  eventId: z.ZodString;
117
117
  }, z.core.$strip>;
118
+ /** Broad normalized Google Calendar event lifecycle change. */
119
+ export declare const GOOGLE_CALENDAR_EVENT_CHANGED_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
120
+ changeType: z.ZodLiteral<"created">;
121
+ event: z.ZodObject<{
122
+ attachments: z.ZodArray<z.ZodObject<{
123
+ fileId: z.ZodOptional<z.ZodString>;
124
+ fileUrl: z.ZodURL;
125
+ mimeType: z.ZodOptional<z.ZodString>;
126
+ title: z.ZodOptional<z.ZodString>;
127
+ iconLink: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$strip>>;
129
+ attendees: z.ZodArray<z.ZodObject<{
130
+ additionalGuests: z.ZodOptional<z.ZodNumber>;
131
+ comment: z.ZodOptional<z.ZodString>;
132
+ email: z.ZodEmail;
133
+ displayName: z.ZodOptional<z.ZodString>;
134
+ optional: z.ZodOptional<z.ZodBoolean>;
135
+ resource: z.ZodOptional<z.ZodBoolean>;
136
+ responseStatus: z.ZodOptional<z.ZodEnum<{
137
+ tentative: "tentative";
138
+ needsAction: "needsAction";
139
+ declined: "declined";
140
+ accepted: "accepted";
141
+ }>>;
142
+ organizer: z.ZodBoolean;
143
+ self: z.ZodBoolean;
144
+ }, z.core.$strip>>;
145
+ calendarId: z.ZodString;
146
+ colorId: z.ZodOptional<z.ZodString>;
147
+ conference: z.ZodOptional<z.ZodObject<{
148
+ conferenceId: z.ZodOptional<z.ZodString>;
149
+ creationStatus: z.ZodOptional<z.ZodEnum<{
150
+ success: "success";
151
+ failure: "failure";
152
+ pending: "pending";
153
+ }>>;
154
+ entryPoints: z.ZodArray<z.ZodObject<{
155
+ label: z.ZodOptional<z.ZodString>;
156
+ passcode: z.ZodOptional<z.ZodString>;
157
+ type: z.ZodString;
158
+ uri: z.ZodString;
159
+ }, z.core.$strip>>;
160
+ name: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strip>>;
162
+ createdAt: z.ZodOptional<z.ZodString>;
163
+ creator: z.ZodOptional<z.ZodObject<{
164
+ displayName: z.ZodOptional<z.ZodString>;
165
+ email: z.ZodOptional<z.ZodString>;
166
+ self: z.ZodBoolean;
167
+ }, z.core.$strip>>;
168
+ description: z.ZodOptional<z.ZodString>;
169
+ end: z.ZodOptional<z.ZodObject<{
170
+ date: z.ZodOptional<z.ZodISODate>;
171
+ dateTime: z.ZodOptional<z.ZodString>;
172
+ timeZone: z.ZodOptional<z.ZodString>;
173
+ }, z.core.$strip>>;
174
+ extendedProperties: z.ZodObject<{
175
+ private: z.ZodRecord<z.ZodString, z.ZodString>;
176
+ shared: z.ZodRecord<z.ZodString, z.ZodString>;
177
+ }, z.core.$strip>;
178
+ guestsCanInviteOthers: z.ZodBoolean;
179
+ guestsCanModify: z.ZodBoolean;
180
+ guestsCanSeeOtherGuests: z.ZodBoolean;
181
+ hangoutLink: z.ZodOptional<z.ZodString>;
182
+ htmlLink: z.ZodOptional<z.ZodString>;
183
+ id: z.ZodString;
184
+ iCalUID: z.ZodOptional<z.ZodString>;
185
+ location: z.ZodOptional<z.ZodString>;
186
+ originalStart: z.ZodOptional<z.ZodObject<{
187
+ date: z.ZodOptional<z.ZodISODate>;
188
+ dateTime: z.ZodOptional<z.ZodString>;
189
+ timeZone: z.ZodOptional<z.ZodString>;
190
+ }, z.core.$strip>>;
191
+ organizer: z.ZodOptional<z.ZodObject<{
192
+ displayName: z.ZodOptional<z.ZodString>;
193
+ email: z.ZodOptional<z.ZodString>;
194
+ self: z.ZodBoolean;
195
+ }, z.core.$strip>>;
196
+ recurrence: z.ZodArray<z.ZodString>;
197
+ recurringEventId: z.ZodOptional<z.ZodString>;
198
+ reminders: z.ZodObject<{
199
+ overrides: z.ZodArray<z.ZodObject<{
200
+ minutes: z.ZodNumber;
201
+ method: z.ZodEnum<{
202
+ email: "email";
203
+ popup: "popup";
204
+ }>;
205
+ }, z.core.$strip>>;
206
+ useDefault: z.ZodBoolean;
207
+ }, z.core.$strip>;
208
+ sequence: z.ZodNumber;
209
+ start: z.ZodOptional<z.ZodObject<{
210
+ date: z.ZodOptional<z.ZodISODate>;
211
+ dateTime: z.ZodOptional<z.ZodString>;
212
+ timeZone: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strip>>;
214
+ status: z.ZodEnum<{
215
+ cancelled: "cancelled";
216
+ confirmed: "confirmed";
217
+ tentative: "tentative";
218
+ }>;
219
+ summary: z.ZodString;
220
+ transparency: z.ZodEnum<{
221
+ opaque: "opaque";
222
+ transparent: "transparent";
223
+ }>;
224
+ type: z.ZodString;
225
+ updatedAt: z.ZodOptional<z.ZodString>;
226
+ visibility: z.ZodEnum<{
227
+ default: "default";
228
+ public: "public";
229
+ private: "private";
230
+ confidential: "confidential";
231
+ }>;
232
+ }, z.core.$strip>;
233
+ }, z.core.$strip>, z.ZodObject<{
234
+ changeType: z.ZodLiteral<"updated">;
235
+ event: z.ZodObject<{
236
+ attachments: z.ZodArray<z.ZodObject<{
237
+ fileId: z.ZodOptional<z.ZodString>;
238
+ fileUrl: z.ZodURL;
239
+ mimeType: z.ZodOptional<z.ZodString>;
240
+ title: z.ZodOptional<z.ZodString>;
241
+ iconLink: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strip>>;
243
+ attendees: z.ZodArray<z.ZodObject<{
244
+ additionalGuests: z.ZodOptional<z.ZodNumber>;
245
+ comment: z.ZodOptional<z.ZodString>;
246
+ email: z.ZodEmail;
247
+ displayName: z.ZodOptional<z.ZodString>;
248
+ optional: z.ZodOptional<z.ZodBoolean>;
249
+ resource: z.ZodOptional<z.ZodBoolean>;
250
+ responseStatus: z.ZodOptional<z.ZodEnum<{
251
+ tentative: "tentative";
252
+ needsAction: "needsAction";
253
+ declined: "declined";
254
+ accepted: "accepted";
255
+ }>>;
256
+ organizer: z.ZodBoolean;
257
+ self: z.ZodBoolean;
258
+ }, z.core.$strip>>;
259
+ calendarId: z.ZodString;
260
+ colorId: z.ZodOptional<z.ZodString>;
261
+ conference: z.ZodOptional<z.ZodObject<{
262
+ conferenceId: z.ZodOptional<z.ZodString>;
263
+ creationStatus: z.ZodOptional<z.ZodEnum<{
264
+ success: "success";
265
+ failure: "failure";
266
+ pending: "pending";
267
+ }>>;
268
+ entryPoints: z.ZodArray<z.ZodObject<{
269
+ label: z.ZodOptional<z.ZodString>;
270
+ passcode: z.ZodOptional<z.ZodString>;
271
+ type: z.ZodString;
272
+ uri: z.ZodString;
273
+ }, z.core.$strip>>;
274
+ name: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strip>>;
276
+ createdAt: z.ZodOptional<z.ZodString>;
277
+ creator: z.ZodOptional<z.ZodObject<{
278
+ displayName: z.ZodOptional<z.ZodString>;
279
+ email: z.ZodOptional<z.ZodString>;
280
+ self: z.ZodBoolean;
281
+ }, z.core.$strip>>;
282
+ description: z.ZodOptional<z.ZodString>;
283
+ end: z.ZodOptional<z.ZodObject<{
284
+ date: z.ZodOptional<z.ZodISODate>;
285
+ dateTime: z.ZodOptional<z.ZodString>;
286
+ timeZone: z.ZodOptional<z.ZodString>;
287
+ }, z.core.$strip>>;
288
+ extendedProperties: z.ZodObject<{
289
+ private: z.ZodRecord<z.ZodString, z.ZodString>;
290
+ shared: z.ZodRecord<z.ZodString, z.ZodString>;
291
+ }, z.core.$strip>;
292
+ guestsCanInviteOthers: z.ZodBoolean;
293
+ guestsCanModify: z.ZodBoolean;
294
+ guestsCanSeeOtherGuests: z.ZodBoolean;
295
+ hangoutLink: z.ZodOptional<z.ZodString>;
296
+ htmlLink: z.ZodOptional<z.ZodString>;
297
+ id: z.ZodString;
298
+ iCalUID: z.ZodOptional<z.ZodString>;
299
+ location: z.ZodOptional<z.ZodString>;
300
+ originalStart: z.ZodOptional<z.ZodObject<{
301
+ date: z.ZodOptional<z.ZodISODate>;
302
+ dateTime: z.ZodOptional<z.ZodString>;
303
+ timeZone: z.ZodOptional<z.ZodString>;
304
+ }, z.core.$strip>>;
305
+ organizer: z.ZodOptional<z.ZodObject<{
306
+ displayName: z.ZodOptional<z.ZodString>;
307
+ email: z.ZodOptional<z.ZodString>;
308
+ self: z.ZodBoolean;
309
+ }, z.core.$strip>>;
310
+ recurrence: z.ZodArray<z.ZodString>;
311
+ recurringEventId: z.ZodOptional<z.ZodString>;
312
+ reminders: z.ZodObject<{
313
+ overrides: z.ZodArray<z.ZodObject<{
314
+ minutes: z.ZodNumber;
315
+ method: z.ZodEnum<{
316
+ email: "email";
317
+ popup: "popup";
318
+ }>;
319
+ }, z.core.$strip>>;
320
+ useDefault: z.ZodBoolean;
321
+ }, z.core.$strip>;
322
+ sequence: z.ZodNumber;
323
+ start: z.ZodOptional<z.ZodObject<{
324
+ date: z.ZodOptional<z.ZodISODate>;
325
+ dateTime: z.ZodOptional<z.ZodString>;
326
+ timeZone: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strip>>;
328
+ status: z.ZodEnum<{
329
+ cancelled: "cancelled";
330
+ confirmed: "confirmed";
331
+ tentative: "tentative";
332
+ }>;
333
+ summary: z.ZodString;
334
+ transparency: z.ZodEnum<{
335
+ opaque: "opaque";
336
+ transparent: "transparent";
337
+ }>;
338
+ type: z.ZodString;
339
+ updatedAt: z.ZodOptional<z.ZodString>;
340
+ visibility: z.ZodEnum<{
341
+ default: "default";
342
+ public: "public";
343
+ private: "private";
344
+ confidential: "confidential";
345
+ }>;
346
+ }, z.core.$strip>;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ calendarId: z.ZodString;
349
+ event: z.ZodOptional<z.ZodObject<{
350
+ attachments: z.ZodArray<z.ZodObject<{
351
+ fileId: z.ZodOptional<z.ZodString>;
352
+ fileUrl: z.ZodURL;
353
+ mimeType: z.ZodOptional<z.ZodString>;
354
+ title: z.ZodOptional<z.ZodString>;
355
+ iconLink: z.ZodOptional<z.ZodString>;
356
+ }, z.core.$strip>>;
357
+ attendees: z.ZodArray<z.ZodObject<{
358
+ additionalGuests: z.ZodOptional<z.ZodNumber>;
359
+ comment: z.ZodOptional<z.ZodString>;
360
+ email: z.ZodEmail;
361
+ displayName: z.ZodOptional<z.ZodString>;
362
+ optional: z.ZodOptional<z.ZodBoolean>;
363
+ resource: z.ZodOptional<z.ZodBoolean>;
364
+ responseStatus: z.ZodOptional<z.ZodEnum<{
365
+ tentative: "tentative";
366
+ needsAction: "needsAction";
367
+ declined: "declined";
368
+ accepted: "accepted";
369
+ }>>;
370
+ organizer: z.ZodBoolean;
371
+ self: z.ZodBoolean;
372
+ }, z.core.$strip>>;
373
+ calendarId: z.ZodString;
374
+ colorId: z.ZodOptional<z.ZodString>;
375
+ conference: z.ZodOptional<z.ZodObject<{
376
+ conferenceId: z.ZodOptional<z.ZodString>;
377
+ creationStatus: z.ZodOptional<z.ZodEnum<{
378
+ success: "success";
379
+ failure: "failure";
380
+ pending: "pending";
381
+ }>>;
382
+ entryPoints: z.ZodArray<z.ZodObject<{
383
+ label: z.ZodOptional<z.ZodString>;
384
+ passcode: z.ZodOptional<z.ZodString>;
385
+ type: z.ZodString;
386
+ uri: z.ZodString;
387
+ }, z.core.$strip>>;
388
+ name: z.ZodOptional<z.ZodString>;
389
+ }, z.core.$strip>>;
390
+ createdAt: z.ZodOptional<z.ZodString>;
391
+ creator: z.ZodOptional<z.ZodObject<{
392
+ displayName: z.ZodOptional<z.ZodString>;
393
+ email: z.ZodOptional<z.ZodString>;
394
+ self: z.ZodBoolean;
395
+ }, z.core.$strip>>;
396
+ description: z.ZodOptional<z.ZodString>;
397
+ end: z.ZodOptional<z.ZodObject<{
398
+ date: z.ZodOptional<z.ZodISODate>;
399
+ dateTime: z.ZodOptional<z.ZodString>;
400
+ timeZone: z.ZodOptional<z.ZodString>;
401
+ }, z.core.$strip>>;
402
+ extendedProperties: z.ZodObject<{
403
+ private: z.ZodRecord<z.ZodString, z.ZodString>;
404
+ shared: z.ZodRecord<z.ZodString, z.ZodString>;
405
+ }, z.core.$strip>;
406
+ guestsCanInviteOthers: z.ZodBoolean;
407
+ guestsCanModify: z.ZodBoolean;
408
+ guestsCanSeeOtherGuests: z.ZodBoolean;
409
+ hangoutLink: z.ZodOptional<z.ZodString>;
410
+ htmlLink: z.ZodOptional<z.ZodString>;
411
+ id: z.ZodString;
412
+ iCalUID: z.ZodOptional<z.ZodString>;
413
+ location: z.ZodOptional<z.ZodString>;
414
+ originalStart: z.ZodOptional<z.ZodObject<{
415
+ date: z.ZodOptional<z.ZodISODate>;
416
+ dateTime: z.ZodOptional<z.ZodString>;
417
+ timeZone: z.ZodOptional<z.ZodString>;
418
+ }, z.core.$strip>>;
419
+ organizer: z.ZodOptional<z.ZodObject<{
420
+ displayName: z.ZodOptional<z.ZodString>;
421
+ email: z.ZodOptional<z.ZodString>;
422
+ self: z.ZodBoolean;
423
+ }, z.core.$strip>>;
424
+ recurrence: z.ZodArray<z.ZodString>;
425
+ recurringEventId: z.ZodOptional<z.ZodString>;
426
+ reminders: z.ZodObject<{
427
+ overrides: z.ZodArray<z.ZodObject<{
428
+ minutes: z.ZodNumber;
429
+ method: z.ZodEnum<{
430
+ email: "email";
431
+ popup: "popup";
432
+ }>;
433
+ }, z.core.$strip>>;
434
+ useDefault: z.ZodBoolean;
435
+ }, z.core.$strip>;
436
+ sequence: z.ZodNumber;
437
+ start: z.ZodOptional<z.ZodObject<{
438
+ date: z.ZodOptional<z.ZodISODate>;
439
+ dateTime: z.ZodOptional<z.ZodString>;
440
+ timeZone: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$strip>>;
442
+ status: z.ZodEnum<{
443
+ cancelled: "cancelled";
444
+ confirmed: "confirmed";
445
+ tentative: "tentative";
446
+ }>;
447
+ summary: z.ZodString;
448
+ transparency: z.ZodEnum<{
449
+ opaque: "opaque";
450
+ transparent: "transparent";
451
+ }>;
452
+ type: z.ZodString;
453
+ updatedAt: z.ZodOptional<z.ZodString>;
454
+ visibility: z.ZodEnum<{
455
+ default: "default";
456
+ public: "public";
457
+ private: "private";
458
+ confidential: "confidential";
459
+ }>;
460
+ }, z.core.$strip>>;
461
+ eventId: z.ZodString;
462
+ changeType: z.ZodLiteral<"deleted">;
463
+ }, z.core.$strip>], "changeType">;
@@ -11,3 +11,17 @@ export const GOOGLE_CALENDAR_EVENT_DELETED_SCHEMA = z.object({
11
11
  /** Immutable provider event ID. */
12
12
  eventId: z.string(),
13
13
  });
14
+ /** Broad normalized Google Calendar event lifecycle change. */
15
+ export const GOOGLE_CALENDAR_EVENT_CHANGED_SCHEMA = z.discriminatedUnion("changeType", [
16
+ z.object({
17
+ changeType: z.literal("created"),
18
+ event: CALENDAR_EVENT_SCHEMA,
19
+ }),
20
+ z.object({
21
+ changeType: z.literal("updated"),
22
+ event: CALENDAR_EVENT_SCHEMA,
23
+ }),
24
+ GOOGLE_CALENDAR_EVENT_DELETED_SCHEMA.extend({
25
+ changeType: z.literal("deleted"),
26
+ }),
27
+ ]);