@automate.ax/integration-contracts 0.88.9 → 0.89.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.
@@ -0,0 +1,2918 @@
1
+ import * as z from "zod";
2
+ /** Actor reported as the author of a current Notion webhook event. */
3
+ export type NotionWebhookAuthor = {
4
+ id: string;
5
+ type: "agent" | "bot" | "person";
6
+ };
7
+ declare const RAW_NOTION_EVENT_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
8
+ data: z.ZodObject<{
9
+ page_id: z.ZodUUID;
10
+ parent: z.ZodObject<{
11
+ id: z.ZodUUID;
12
+ type: z.ZodEnum<{
13
+ block: "block";
14
+ page: "page";
15
+ database: "database";
16
+ }>;
17
+ }, z.core.$strip>;
18
+ }, z.core.$strip>;
19
+ entity: z.ZodObject<{
20
+ id: z.ZodUUID;
21
+ type: z.ZodLiteral<"comment">;
22
+ }, z.core.$strip>;
23
+ type: z.ZodLiteral<"comment.created">;
24
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ id: z.ZodUUID;
26
+ type: z.ZodLiteral<"person">;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ id: z.ZodUUID;
29
+ type: z.ZodLiteral<"bot">;
30
+ }, z.core.$strip>], "type">>>;
31
+ api_version: z.ZodEnum<{
32
+ "2022-06-28": "2022-06-28";
33
+ "2025-09-03": "2025-09-03";
34
+ "2026-03-11": "2026-03-11";
35
+ }>;
36
+ attempt_number: z.ZodNumber;
37
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
38
+ id: z.ZodUUID;
39
+ type: z.ZodLiteral<"person">;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ id: z.ZodUUID;
42
+ type: z.ZodLiteral<"bot">;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ id: z.ZodUUID;
45
+ type: z.ZodLiteral<"agent">;
46
+ }, z.core.$strip>], "type">>;
47
+ id: z.ZodUUID;
48
+ integration_id: z.ZodUUID;
49
+ subscription_id: z.ZodUUID;
50
+ timestamp: z.ZodISODateTime;
51
+ workspace_id: z.ZodUUID;
52
+ workspace_name: z.ZodString;
53
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
54
+ data: z.ZodObject<{
55
+ page_id: z.ZodUUID;
56
+ parent: z.ZodObject<{
57
+ id: z.ZodUUID;
58
+ type: z.ZodEnum<{
59
+ block: "block";
60
+ page: "page";
61
+ database: "database";
62
+ }>;
63
+ }, z.core.$strip>;
64
+ }, z.core.$strip>;
65
+ entity: z.ZodObject<{
66
+ id: z.ZodUUID;
67
+ type: z.ZodLiteral<"comment">;
68
+ }, z.core.$strip>;
69
+ type: z.ZodLiteral<"comment.deleted">;
70
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
71
+ id: z.ZodUUID;
72
+ type: z.ZodLiteral<"person">;
73
+ }, z.core.$strip>, z.ZodObject<{
74
+ id: z.ZodUUID;
75
+ type: z.ZodLiteral<"bot">;
76
+ }, z.core.$strip>], "type">>>;
77
+ api_version: z.ZodEnum<{
78
+ "2022-06-28": "2022-06-28";
79
+ "2025-09-03": "2025-09-03";
80
+ "2026-03-11": "2026-03-11";
81
+ }>;
82
+ attempt_number: z.ZodNumber;
83
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
84
+ id: z.ZodUUID;
85
+ type: z.ZodLiteral<"person">;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ id: z.ZodUUID;
88
+ type: z.ZodLiteral<"bot">;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ id: z.ZodUUID;
91
+ type: z.ZodLiteral<"agent">;
92
+ }, z.core.$strip>], "type">>;
93
+ id: z.ZodUUID;
94
+ integration_id: z.ZodUUID;
95
+ subscription_id: z.ZodUUID;
96
+ timestamp: z.ZodISODateTime;
97
+ workspace_id: z.ZodUUID;
98
+ workspace_name: z.ZodString;
99
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
100
+ data: z.ZodObject<{
101
+ page_id: z.ZodUUID;
102
+ parent: z.ZodObject<{
103
+ id: z.ZodUUID;
104
+ type: z.ZodEnum<{
105
+ block: "block";
106
+ page: "page";
107
+ database: "database";
108
+ }>;
109
+ }, z.core.$strip>;
110
+ }, z.core.$strip>;
111
+ entity: z.ZodObject<{
112
+ id: z.ZodUUID;
113
+ type: z.ZodLiteral<"comment">;
114
+ }, z.core.$strip>;
115
+ type: z.ZodLiteral<"comment.updated">;
116
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ id: z.ZodUUID;
118
+ type: z.ZodLiteral<"person">;
119
+ }, z.core.$strip>, z.ZodObject<{
120
+ id: z.ZodUUID;
121
+ type: z.ZodLiteral<"bot">;
122
+ }, z.core.$strip>], "type">>>;
123
+ api_version: z.ZodEnum<{
124
+ "2022-06-28": "2022-06-28";
125
+ "2025-09-03": "2025-09-03";
126
+ "2026-03-11": "2026-03-11";
127
+ }>;
128
+ attempt_number: z.ZodNumber;
129
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
130
+ id: z.ZodUUID;
131
+ type: z.ZodLiteral<"person">;
132
+ }, z.core.$strip>, z.ZodObject<{
133
+ id: z.ZodUUID;
134
+ type: z.ZodLiteral<"bot">;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ id: z.ZodUUID;
137
+ type: z.ZodLiteral<"agent">;
138
+ }, z.core.$strip>], "type">>;
139
+ id: z.ZodUUID;
140
+ integration_id: z.ZodUUID;
141
+ subscription_id: z.ZodUUID;
142
+ timestamp: z.ZodISODateTime;
143
+ workspace_id: z.ZodUUID;
144
+ workspace_name: z.ZodString;
145
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
146
+ data: z.ZodObject<{
147
+ parent: z.ZodObject<{
148
+ data_source_id: z.ZodOptional<z.ZodUUID>;
149
+ id: z.ZodUUID;
150
+ type: z.ZodEnum<{
151
+ team: "team";
152
+ space: "space";
153
+ agent: "agent";
154
+ block: "block";
155
+ page: "page";
156
+ database: "database";
157
+ }>;
158
+ }, z.core.$strip>;
159
+ updated_blocks: z.ZodArray<z.ZodObject<{
160
+ id: z.ZodUUID;
161
+ type: z.ZodEnum<{
162
+ block: "block";
163
+ page: "page";
164
+ database: "database";
165
+ }>;
166
+ }, z.core.$strip>>;
167
+ }, z.core.$strip>;
168
+ entity: z.ZodObject<{
169
+ id: z.ZodUUID;
170
+ type: z.ZodEnum<{
171
+ block: "block";
172
+ database: "database";
173
+ data_source: "data_source";
174
+ }>;
175
+ }, z.core.$strip>;
176
+ type: z.ZodLiteral<"data_source.content_updated">;
177
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
178
+ id: z.ZodUUID;
179
+ type: z.ZodLiteral<"person">;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ id: z.ZodUUID;
182
+ type: z.ZodLiteral<"bot">;
183
+ }, z.core.$strip>], "type">>>;
184
+ api_version: z.ZodEnum<{
185
+ "2022-06-28": "2022-06-28";
186
+ "2025-09-03": "2025-09-03";
187
+ "2026-03-11": "2026-03-11";
188
+ }>;
189
+ attempt_number: z.ZodNumber;
190
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
191
+ id: z.ZodUUID;
192
+ type: z.ZodLiteral<"person">;
193
+ }, z.core.$strip>, z.ZodObject<{
194
+ id: z.ZodUUID;
195
+ type: z.ZodLiteral<"bot">;
196
+ }, z.core.$strip>, z.ZodObject<{
197
+ id: z.ZodUUID;
198
+ type: z.ZodLiteral<"agent">;
199
+ }, z.core.$strip>], "type">>;
200
+ id: z.ZodUUID;
201
+ integration_id: z.ZodUUID;
202
+ subscription_id: z.ZodUUID;
203
+ timestamp: z.ZodISODateTime;
204
+ workspace_id: z.ZodUUID;
205
+ workspace_name: z.ZodString;
206
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
207
+ data: z.ZodObject<{
208
+ parent: z.ZodObject<{
209
+ data_source_id: z.ZodOptional<z.ZodUUID>;
210
+ id: z.ZodUUID;
211
+ type: z.ZodEnum<{
212
+ team: "team";
213
+ space: "space";
214
+ agent: "agent";
215
+ block: "block";
216
+ page: "page";
217
+ database: "database";
218
+ }>;
219
+ }, z.core.$strip>;
220
+ }, z.core.$strip>;
221
+ entity: z.ZodObject<{
222
+ id: z.ZodUUID;
223
+ type: z.ZodEnum<{
224
+ block: "block";
225
+ database: "database";
226
+ data_source: "data_source";
227
+ }>;
228
+ }, z.core.$strip>;
229
+ type: z.ZodLiteral<"data_source.created">;
230
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
231
+ id: z.ZodUUID;
232
+ type: z.ZodLiteral<"person">;
233
+ }, z.core.$strip>, z.ZodObject<{
234
+ id: z.ZodUUID;
235
+ type: z.ZodLiteral<"bot">;
236
+ }, z.core.$strip>], "type">>>;
237
+ api_version: z.ZodEnum<{
238
+ "2022-06-28": "2022-06-28";
239
+ "2025-09-03": "2025-09-03";
240
+ "2026-03-11": "2026-03-11";
241
+ }>;
242
+ attempt_number: z.ZodNumber;
243
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
244
+ id: z.ZodUUID;
245
+ type: z.ZodLiteral<"person">;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ id: z.ZodUUID;
248
+ type: z.ZodLiteral<"bot">;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ id: z.ZodUUID;
251
+ type: z.ZodLiteral<"agent">;
252
+ }, z.core.$strip>], "type">>;
253
+ id: z.ZodUUID;
254
+ integration_id: z.ZodUUID;
255
+ subscription_id: z.ZodUUID;
256
+ timestamp: z.ZodISODateTime;
257
+ workspace_id: z.ZodUUID;
258
+ workspace_name: z.ZodString;
259
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
260
+ data: z.ZodObject<{
261
+ parent: z.ZodObject<{
262
+ data_source_id: z.ZodOptional<z.ZodUUID>;
263
+ id: z.ZodUUID;
264
+ type: z.ZodEnum<{
265
+ team: "team";
266
+ space: "space";
267
+ agent: "agent";
268
+ block: "block";
269
+ page: "page";
270
+ database: "database";
271
+ }>;
272
+ }, z.core.$strip>;
273
+ }, z.core.$strip>;
274
+ entity: z.ZodObject<{
275
+ id: z.ZodUUID;
276
+ type: z.ZodEnum<{
277
+ block: "block";
278
+ database: "database";
279
+ data_source: "data_source";
280
+ }>;
281
+ }, z.core.$strip>;
282
+ type: z.ZodLiteral<"data_source.deleted">;
283
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
284
+ id: z.ZodUUID;
285
+ type: z.ZodLiteral<"person">;
286
+ }, z.core.$strip>, z.ZodObject<{
287
+ id: z.ZodUUID;
288
+ type: z.ZodLiteral<"bot">;
289
+ }, z.core.$strip>], "type">>>;
290
+ api_version: z.ZodEnum<{
291
+ "2022-06-28": "2022-06-28";
292
+ "2025-09-03": "2025-09-03";
293
+ "2026-03-11": "2026-03-11";
294
+ }>;
295
+ attempt_number: z.ZodNumber;
296
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
297
+ id: z.ZodUUID;
298
+ type: z.ZodLiteral<"person">;
299
+ }, z.core.$strip>, z.ZodObject<{
300
+ id: z.ZodUUID;
301
+ type: z.ZodLiteral<"bot">;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ id: z.ZodUUID;
304
+ type: z.ZodLiteral<"agent">;
305
+ }, z.core.$strip>], "type">>;
306
+ id: z.ZodUUID;
307
+ integration_id: z.ZodUUID;
308
+ subscription_id: z.ZodUUID;
309
+ timestamp: z.ZodISODateTime;
310
+ workspace_id: z.ZodUUID;
311
+ workspace_name: z.ZodString;
312
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
313
+ data: z.ZodObject<{
314
+ parent: z.ZodObject<{
315
+ data_source_id: z.ZodOptional<z.ZodUUID>;
316
+ id: z.ZodUUID;
317
+ type: z.ZodEnum<{
318
+ team: "team";
319
+ space: "space";
320
+ agent: "agent";
321
+ block: "block";
322
+ page: "page";
323
+ database: "database";
324
+ }>;
325
+ }, z.core.$strip>;
326
+ }, z.core.$strip>;
327
+ entity: z.ZodObject<{
328
+ id: z.ZodUUID;
329
+ type: z.ZodEnum<{
330
+ block: "block";
331
+ database: "database";
332
+ data_source: "data_source";
333
+ }>;
334
+ }, z.core.$strip>;
335
+ type: z.ZodLiteral<"data_source.moved">;
336
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
337
+ id: z.ZodUUID;
338
+ type: z.ZodLiteral<"person">;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ id: z.ZodUUID;
341
+ type: z.ZodLiteral<"bot">;
342
+ }, z.core.$strip>], "type">>>;
343
+ api_version: z.ZodEnum<{
344
+ "2022-06-28": "2022-06-28";
345
+ "2025-09-03": "2025-09-03";
346
+ "2026-03-11": "2026-03-11";
347
+ }>;
348
+ attempt_number: z.ZodNumber;
349
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
350
+ id: z.ZodUUID;
351
+ type: z.ZodLiteral<"person">;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ id: z.ZodUUID;
354
+ type: z.ZodLiteral<"bot">;
355
+ }, z.core.$strip>, z.ZodObject<{
356
+ id: z.ZodUUID;
357
+ type: z.ZodLiteral<"agent">;
358
+ }, z.core.$strip>], "type">>;
359
+ id: z.ZodUUID;
360
+ integration_id: z.ZodUUID;
361
+ subscription_id: z.ZodUUID;
362
+ timestamp: z.ZodISODateTime;
363
+ workspace_id: z.ZodUUID;
364
+ workspace_name: z.ZodString;
365
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
366
+ data: z.ZodObject<{
367
+ parent: z.ZodObject<{
368
+ data_source_id: z.ZodOptional<z.ZodUUID>;
369
+ id: z.ZodUUID;
370
+ type: z.ZodEnum<{
371
+ team: "team";
372
+ space: "space";
373
+ agent: "agent";
374
+ block: "block";
375
+ page: "page";
376
+ database: "database";
377
+ }>;
378
+ }, z.core.$strip>;
379
+ updated_properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
380
+ action: z.ZodEnum<{
381
+ deleted: "deleted";
382
+ created: "created";
383
+ updated: "updated";
384
+ }>;
385
+ id: z.ZodString;
386
+ name: z.ZodNullable<z.ZodString>;
387
+ }, z.core.$strip>>>;
388
+ }, z.core.$strip>;
389
+ entity: z.ZodObject<{
390
+ id: z.ZodUUID;
391
+ type: z.ZodEnum<{
392
+ block: "block";
393
+ database: "database";
394
+ data_source: "data_source";
395
+ }>;
396
+ }, z.core.$strip>;
397
+ type: z.ZodLiteral<"data_source.schema_updated">;
398
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
399
+ id: z.ZodUUID;
400
+ type: z.ZodLiteral<"person">;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ id: z.ZodUUID;
403
+ type: z.ZodLiteral<"bot">;
404
+ }, z.core.$strip>], "type">>>;
405
+ api_version: z.ZodEnum<{
406
+ "2022-06-28": "2022-06-28";
407
+ "2025-09-03": "2025-09-03";
408
+ "2026-03-11": "2026-03-11";
409
+ }>;
410
+ attempt_number: z.ZodNumber;
411
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
412
+ id: z.ZodUUID;
413
+ type: z.ZodLiteral<"person">;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ id: z.ZodUUID;
416
+ type: z.ZodLiteral<"bot">;
417
+ }, z.core.$strip>, z.ZodObject<{
418
+ id: z.ZodUUID;
419
+ type: z.ZodLiteral<"agent">;
420
+ }, z.core.$strip>], "type">>;
421
+ id: z.ZodUUID;
422
+ integration_id: z.ZodUUID;
423
+ subscription_id: z.ZodUUID;
424
+ timestamp: z.ZodISODateTime;
425
+ workspace_id: z.ZodUUID;
426
+ workspace_name: z.ZodString;
427
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
428
+ data: z.ZodObject<{
429
+ parent: z.ZodObject<{
430
+ data_source_id: z.ZodOptional<z.ZodUUID>;
431
+ id: z.ZodUUID;
432
+ type: z.ZodEnum<{
433
+ team: "team";
434
+ space: "space";
435
+ agent: "agent";
436
+ block: "block";
437
+ page: "page";
438
+ database: "database";
439
+ }>;
440
+ }, z.core.$strip>;
441
+ }, z.core.$strip>;
442
+ entity: z.ZodObject<{
443
+ id: z.ZodUUID;
444
+ type: z.ZodEnum<{
445
+ block: "block";
446
+ database: "database";
447
+ data_source: "data_source";
448
+ }>;
449
+ }, z.core.$strip>;
450
+ type: z.ZodLiteral<"data_source.undeleted">;
451
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
452
+ id: z.ZodUUID;
453
+ type: z.ZodLiteral<"person">;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ id: z.ZodUUID;
456
+ type: z.ZodLiteral<"bot">;
457
+ }, z.core.$strip>], "type">>>;
458
+ api_version: z.ZodEnum<{
459
+ "2022-06-28": "2022-06-28";
460
+ "2025-09-03": "2025-09-03";
461
+ "2026-03-11": "2026-03-11";
462
+ }>;
463
+ attempt_number: z.ZodNumber;
464
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
465
+ id: z.ZodUUID;
466
+ type: z.ZodLiteral<"person">;
467
+ }, z.core.$strip>, z.ZodObject<{
468
+ id: z.ZodUUID;
469
+ type: z.ZodLiteral<"bot">;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ id: z.ZodUUID;
472
+ type: z.ZodLiteral<"agent">;
473
+ }, z.core.$strip>], "type">>;
474
+ id: z.ZodUUID;
475
+ integration_id: z.ZodUUID;
476
+ subscription_id: z.ZodUUID;
477
+ timestamp: z.ZodISODateTime;
478
+ workspace_id: z.ZodUUID;
479
+ workspace_name: z.ZodString;
480
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
481
+ data: z.ZodObject<{
482
+ parent: z.ZodObject<{
483
+ data_source_id: z.ZodOptional<z.ZodUUID>;
484
+ id: z.ZodUUID;
485
+ type: z.ZodEnum<{
486
+ team: "team";
487
+ space: "space";
488
+ agent: "agent";
489
+ block: "block";
490
+ page: "page";
491
+ database: "database";
492
+ }>;
493
+ }, z.core.$strip>;
494
+ }, z.core.$strip>;
495
+ entity: z.ZodObject<{
496
+ id: z.ZodUUID;
497
+ type: z.ZodEnum<{
498
+ block: "block";
499
+ database: "database";
500
+ data_source: "data_source";
501
+ }>;
502
+ }, z.core.$strip>;
503
+ type: z.ZodLiteral<"database.created">;
504
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
505
+ id: z.ZodUUID;
506
+ type: z.ZodLiteral<"person">;
507
+ }, z.core.$strip>, z.ZodObject<{
508
+ id: z.ZodUUID;
509
+ type: z.ZodLiteral<"bot">;
510
+ }, z.core.$strip>], "type">>>;
511
+ api_version: z.ZodEnum<{
512
+ "2022-06-28": "2022-06-28";
513
+ "2025-09-03": "2025-09-03";
514
+ "2026-03-11": "2026-03-11";
515
+ }>;
516
+ attempt_number: z.ZodNumber;
517
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
518
+ id: z.ZodUUID;
519
+ type: z.ZodLiteral<"person">;
520
+ }, z.core.$strip>, z.ZodObject<{
521
+ id: z.ZodUUID;
522
+ type: z.ZodLiteral<"bot">;
523
+ }, z.core.$strip>, z.ZodObject<{
524
+ id: z.ZodUUID;
525
+ type: z.ZodLiteral<"agent">;
526
+ }, z.core.$strip>], "type">>;
527
+ id: z.ZodUUID;
528
+ integration_id: z.ZodUUID;
529
+ subscription_id: z.ZodUUID;
530
+ timestamp: z.ZodISODateTime;
531
+ workspace_id: z.ZodUUID;
532
+ workspace_name: z.ZodString;
533
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
534
+ data: z.ZodObject<{
535
+ parent: z.ZodObject<{
536
+ data_source_id: z.ZodOptional<z.ZodUUID>;
537
+ id: z.ZodUUID;
538
+ type: z.ZodEnum<{
539
+ team: "team";
540
+ space: "space";
541
+ agent: "agent";
542
+ block: "block";
543
+ page: "page";
544
+ database: "database";
545
+ }>;
546
+ }, z.core.$strip>;
547
+ }, z.core.$strip>;
548
+ entity: z.ZodObject<{
549
+ id: z.ZodUUID;
550
+ type: z.ZodEnum<{
551
+ block: "block";
552
+ database: "database";
553
+ data_source: "data_source";
554
+ }>;
555
+ }, z.core.$strip>;
556
+ type: z.ZodLiteral<"database.deleted">;
557
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
558
+ id: z.ZodUUID;
559
+ type: z.ZodLiteral<"person">;
560
+ }, z.core.$strip>, z.ZodObject<{
561
+ id: z.ZodUUID;
562
+ type: z.ZodLiteral<"bot">;
563
+ }, z.core.$strip>], "type">>>;
564
+ api_version: z.ZodEnum<{
565
+ "2022-06-28": "2022-06-28";
566
+ "2025-09-03": "2025-09-03";
567
+ "2026-03-11": "2026-03-11";
568
+ }>;
569
+ attempt_number: z.ZodNumber;
570
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
571
+ id: z.ZodUUID;
572
+ type: z.ZodLiteral<"person">;
573
+ }, z.core.$strip>, z.ZodObject<{
574
+ id: z.ZodUUID;
575
+ type: z.ZodLiteral<"bot">;
576
+ }, z.core.$strip>, z.ZodObject<{
577
+ id: z.ZodUUID;
578
+ type: z.ZodLiteral<"agent">;
579
+ }, z.core.$strip>], "type">>;
580
+ id: z.ZodUUID;
581
+ integration_id: z.ZodUUID;
582
+ subscription_id: z.ZodUUID;
583
+ timestamp: z.ZodISODateTime;
584
+ workspace_id: z.ZodUUID;
585
+ workspace_name: z.ZodString;
586
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
587
+ data: z.ZodObject<{
588
+ parent: z.ZodObject<{
589
+ data_source_id: z.ZodOptional<z.ZodUUID>;
590
+ id: z.ZodUUID;
591
+ type: z.ZodEnum<{
592
+ team: "team";
593
+ space: "space";
594
+ agent: "agent";
595
+ block: "block";
596
+ page: "page";
597
+ database: "database";
598
+ }>;
599
+ }, z.core.$strip>;
600
+ }, z.core.$strip>;
601
+ entity: z.ZodObject<{
602
+ id: z.ZodUUID;
603
+ type: z.ZodEnum<{
604
+ block: "block";
605
+ database: "database";
606
+ data_source: "data_source";
607
+ }>;
608
+ }, z.core.$strip>;
609
+ type: z.ZodLiteral<"database.moved">;
610
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
611
+ id: z.ZodUUID;
612
+ type: z.ZodLiteral<"person">;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ id: z.ZodUUID;
615
+ type: z.ZodLiteral<"bot">;
616
+ }, z.core.$strip>], "type">>>;
617
+ api_version: z.ZodEnum<{
618
+ "2022-06-28": "2022-06-28";
619
+ "2025-09-03": "2025-09-03";
620
+ "2026-03-11": "2026-03-11";
621
+ }>;
622
+ attempt_number: z.ZodNumber;
623
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
624
+ id: z.ZodUUID;
625
+ type: z.ZodLiteral<"person">;
626
+ }, z.core.$strip>, z.ZodObject<{
627
+ id: z.ZodUUID;
628
+ type: z.ZodLiteral<"bot">;
629
+ }, z.core.$strip>, z.ZodObject<{
630
+ id: z.ZodUUID;
631
+ type: z.ZodLiteral<"agent">;
632
+ }, z.core.$strip>], "type">>;
633
+ id: z.ZodUUID;
634
+ integration_id: z.ZodUUID;
635
+ subscription_id: z.ZodUUID;
636
+ timestamp: z.ZodISODateTime;
637
+ workspace_id: z.ZodUUID;
638
+ workspace_name: z.ZodString;
639
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
640
+ data: z.ZodObject<{
641
+ parent: z.ZodObject<{
642
+ data_source_id: z.ZodOptional<z.ZodUUID>;
643
+ id: z.ZodUUID;
644
+ type: z.ZodEnum<{
645
+ team: "team";
646
+ space: "space";
647
+ agent: "agent";
648
+ block: "block";
649
+ page: "page";
650
+ database: "database";
651
+ }>;
652
+ }, z.core.$strip>;
653
+ }, z.core.$strip>;
654
+ entity: z.ZodObject<{
655
+ id: z.ZodUUID;
656
+ type: z.ZodEnum<{
657
+ block: "block";
658
+ database: "database";
659
+ data_source: "data_source";
660
+ }>;
661
+ }, z.core.$strip>;
662
+ type: z.ZodLiteral<"database.undeleted">;
663
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
664
+ id: z.ZodUUID;
665
+ type: z.ZodLiteral<"person">;
666
+ }, z.core.$strip>, z.ZodObject<{
667
+ id: z.ZodUUID;
668
+ type: z.ZodLiteral<"bot">;
669
+ }, z.core.$strip>], "type">>>;
670
+ api_version: z.ZodEnum<{
671
+ "2022-06-28": "2022-06-28";
672
+ "2025-09-03": "2025-09-03";
673
+ "2026-03-11": "2026-03-11";
674
+ }>;
675
+ attempt_number: z.ZodNumber;
676
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
677
+ id: z.ZodUUID;
678
+ type: z.ZodLiteral<"person">;
679
+ }, z.core.$strip>, z.ZodObject<{
680
+ id: z.ZodUUID;
681
+ type: z.ZodLiteral<"bot">;
682
+ }, z.core.$strip>, z.ZodObject<{
683
+ id: z.ZodUUID;
684
+ type: z.ZodLiteral<"agent">;
685
+ }, z.core.$strip>], "type">>;
686
+ id: z.ZodUUID;
687
+ integration_id: z.ZodUUID;
688
+ subscription_id: z.ZodUUID;
689
+ timestamp: z.ZodISODateTime;
690
+ workspace_id: z.ZodUUID;
691
+ workspace_name: z.ZodString;
692
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
693
+ entity: z.ZodObject<{
694
+ id: z.ZodUUID;
695
+ type: z.ZodLiteral<"file_upload">;
696
+ }, z.core.$strip>;
697
+ type: z.ZodLiteral<"file_upload.completed">;
698
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
699
+ id: z.ZodUUID;
700
+ type: z.ZodLiteral<"person">;
701
+ }, z.core.$strip>, z.ZodObject<{
702
+ id: z.ZodUUID;
703
+ type: z.ZodLiteral<"bot">;
704
+ }, z.core.$strip>], "type">>>;
705
+ api_version: z.ZodEnum<{
706
+ "2022-06-28": "2022-06-28";
707
+ "2025-09-03": "2025-09-03";
708
+ "2026-03-11": "2026-03-11";
709
+ }>;
710
+ attempt_number: z.ZodNumber;
711
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
712
+ id: z.ZodUUID;
713
+ type: z.ZodLiteral<"person">;
714
+ }, z.core.$strip>, z.ZodObject<{
715
+ id: z.ZodUUID;
716
+ type: z.ZodLiteral<"bot">;
717
+ }, z.core.$strip>, z.ZodObject<{
718
+ id: z.ZodUUID;
719
+ type: z.ZodLiteral<"agent">;
720
+ }, z.core.$strip>], "type">>;
721
+ id: z.ZodUUID;
722
+ integration_id: z.ZodUUID;
723
+ subscription_id: z.ZodUUID;
724
+ timestamp: z.ZodISODateTime;
725
+ workspace_id: z.ZodUUID;
726
+ workspace_name: z.ZodString;
727
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
728
+ entity: z.ZodObject<{
729
+ id: z.ZodUUID;
730
+ type: z.ZodLiteral<"file_upload">;
731
+ }, z.core.$strip>;
732
+ type: z.ZodLiteral<"file_upload.created">;
733
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
734
+ id: z.ZodUUID;
735
+ type: z.ZodLiteral<"person">;
736
+ }, z.core.$strip>, z.ZodObject<{
737
+ id: z.ZodUUID;
738
+ type: z.ZodLiteral<"bot">;
739
+ }, z.core.$strip>], "type">>>;
740
+ api_version: z.ZodEnum<{
741
+ "2022-06-28": "2022-06-28";
742
+ "2025-09-03": "2025-09-03";
743
+ "2026-03-11": "2026-03-11";
744
+ }>;
745
+ attempt_number: z.ZodNumber;
746
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
747
+ id: z.ZodUUID;
748
+ type: z.ZodLiteral<"person">;
749
+ }, z.core.$strip>, z.ZodObject<{
750
+ id: z.ZodUUID;
751
+ type: z.ZodLiteral<"bot">;
752
+ }, z.core.$strip>, z.ZodObject<{
753
+ id: z.ZodUUID;
754
+ type: z.ZodLiteral<"agent">;
755
+ }, z.core.$strip>], "type">>;
756
+ id: z.ZodUUID;
757
+ integration_id: z.ZodUUID;
758
+ subscription_id: z.ZodUUID;
759
+ timestamp: z.ZodISODateTime;
760
+ workspace_id: z.ZodUUID;
761
+ workspace_name: z.ZodString;
762
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
763
+ entity: z.ZodObject<{
764
+ id: z.ZodUUID;
765
+ type: z.ZodLiteral<"file_upload">;
766
+ }, z.core.$strip>;
767
+ type: z.ZodLiteral<"file_upload.expired">;
768
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
769
+ id: z.ZodUUID;
770
+ type: z.ZodLiteral<"person">;
771
+ }, z.core.$strip>, z.ZodObject<{
772
+ id: z.ZodUUID;
773
+ type: z.ZodLiteral<"bot">;
774
+ }, z.core.$strip>], "type">>>;
775
+ api_version: z.ZodEnum<{
776
+ "2022-06-28": "2022-06-28";
777
+ "2025-09-03": "2025-09-03";
778
+ "2026-03-11": "2026-03-11";
779
+ }>;
780
+ attempt_number: z.ZodNumber;
781
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
782
+ id: z.ZodUUID;
783
+ type: z.ZodLiteral<"person">;
784
+ }, z.core.$strip>, z.ZodObject<{
785
+ id: z.ZodUUID;
786
+ type: z.ZodLiteral<"bot">;
787
+ }, z.core.$strip>, z.ZodObject<{
788
+ id: z.ZodUUID;
789
+ type: z.ZodLiteral<"agent">;
790
+ }, z.core.$strip>], "type">>;
791
+ id: z.ZodUUID;
792
+ integration_id: z.ZodUUID;
793
+ subscription_id: z.ZodUUID;
794
+ timestamp: z.ZodISODateTime;
795
+ workspace_id: z.ZodUUID;
796
+ workspace_name: z.ZodString;
797
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
798
+ data: z.ZodObject<{
799
+ file_import_result: z.ZodDiscriminatedUnion<[z.ZodObject<{
800
+ imported_time: z.ZodISODateTime;
801
+ success: z.ZodObject<{}, z.core.$strip>;
802
+ type: z.ZodLiteral<"success">;
803
+ }, z.core.$strip>, z.ZodObject<{
804
+ error: z.ZodObject<{
805
+ code: z.ZodString;
806
+ message: z.ZodString;
807
+ parameter: z.ZodNullable<z.ZodString>;
808
+ status_code: z.ZodNullable<z.ZodNumber>;
809
+ type: z.ZodEnum<{
810
+ validation_error: "validation_error";
811
+ internal_system_error: "internal_system_error";
812
+ download_error: "download_error";
813
+ upload_error: "upload_error";
814
+ }>;
815
+ }, z.core.$strip>;
816
+ imported_time: z.ZodISODateTime;
817
+ type: z.ZodLiteral<"error">;
818
+ }, z.core.$strip>], "type">;
819
+ }, z.core.$strip>;
820
+ entity: z.ZodObject<{
821
+ id: z.ZodUUID;
822
+ type: z.ZodLiteral<"file_upload">;
823
+ }, z.core.$strip>;
824
+ type: z.ZodLiteral<"file_upload.upload_failed">;
825
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
826
+ id: z.ZodUUID;
827
+ type: z.ZodLiteral<"person">;
828
+ }, z.core.$strip>, z.ZodObject<{
829
+ id: z.ZodUUID;
830
+ type: z.ZodLiteral<"bot">;
831
+ }, z.core.$strip>], "type">>>;
832
+ api_version: z.ZodEnum<{
833
+ "2022-06-28": "2022-06-28";
834
+ "2025-09-03": "2025-09-03";
835
+ "2026-03-11": "2026-03-11";
836
+ }>;
837
+ attempt_number: z.ZodNumber;
838
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
839
+ id: z.ZodUUID;
840
+ type: z.ZodLiteral<"person">;
841
+ }, z.core.$strip>, z.ZodObject<{
842
+ id: z.ZodUUID;
843
+ type: z.ZodLiteral<"bot">;
844
+ }, z.core.$strip>, z.ZodObject<{
845
+ id: z.ZodUUID;
846
+ type: z.ZodLiteral<"agent">;
847
+ }, z.core.$strip>], "type">>;
848
+ id: z.ZodUUID;
849
+ integration_id: z.ZodUUID;
850
+ subscription_id: z.ZodUUID;
851
+ timestamp: z.ZodISODateTime;
852
+ workspace_id: z.ZodUUID;
853
+ workspace_name: z.ZodString;
854
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
855
+ data: z.ZodObject<{
856
+ parent: z.ZodObject<{
857
+ data_source_id: z.ZodOptional<z.ZodUUID>;
858
+ id: z.ZodUUID;
859
+ type: z.ZodEnum<{
860
+ team: "team";
861
+ space: "space";
862
+ agent: "agent";
863
+ block: "block";
864
+ page: "page";
865
+ database: "database";
866
+ }>;
867
+ }, z.core.$strip>;
868
+ updated_blocks: z.ZodArray<z.ZodObject<{
869
+ id: z.ZodUUID;
870
+ type: z.ZodEnum<{
871
+ block: "block";
872
+ page: "page";
873
+ database: "database";
874
+ }>;
875
+ }, z.core.$strip>>;
876
+ }, z.core.$strip>;
877
+ entity: z.ZodObject<{
878
+ id: z.ZodUUID;
879
+ type: z.ZodLiteral<"page">;
880
+ }, z.core.$strip>;
881
+ type: z.ZodLiteral<"page.content_updated">;
882
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
883
+ id: z.ZodUUID;
884
+ type: z.ZodLiteral<"person">;
885
+ }, z.core.$strip>, z.ZodObject<{
886
+ id: z.ZodUUID;
887
+ type: z.ZodLiteral<"bot">;
888
+ }, z.core.$strip>], "type">>>;
889
+ api_version: z.ZodEnum<{
890
+ "2022-06-28": "2022-06-28";
891
+ "2025-09-03": "2025-09-03";
892
+ "2026-03-11": "2026-03-11";
893
+ }>;
894
+ attempt_number: z.ZodNumber;
895
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
896
+ id: z.ZodUUID;
897
+ type: z.ZodLiteral<"person">;
898
+ }, z.core.$strip>, z.ZodObject<{
899
+ id: z.ZodUUID;
900
+ type: z.ZodLiteral<"bot">;
901
+ }, z.core.$strip>, z.ZodObject<{
902
+ id: z.ZodUUID;
903
+ type: z.ZodLiteral<"agent">;
904
+ }, z.core.$strip>], "type">>;
905
+ id: z.ZodUUID;
906
+ integration_id: z.ZodUUID;
907
+ subscription_id: z.ZodUUID;
908
+ timestamp: z.ZodISODateTime;
909
+ workspace_id: z.ZodUUID;
910
+ workspace_name: z.ZodString;
911
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
912
+ data: z.ZodObject<{
913
+ parent: z.ZodObject<{
914
+ data_source_id: z.ZodOptional<z.ZodUUID>;
915
+ id: z.ZodUUID;
916
+ type: z.ZodEnum<{
917
+ team: "team";
918
+ space: "space";
919
+ agent: "agent";
920
+ block: "block";
921
+ page: "page";
922
+ database: "database";
923
+ }>;
924
+ }, z.core.$strip>;
925
+ }, z.core.$strip>;
926
+ entity: z.ZodObject<{
927
+ id: z.ZodUUID;
928
+ type: z.ZodLiteral<"page">;
929
+ }, z.core.$strip>;
930
+ type: z.ZodLiteral<"page.created">;
931
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
932
+ id: z.ZodUUID;
933
+ type: z.ZodLiteral<"person">;
934
+ }, z.core.$strip>, z.ZodObject<{
935
+ id: z.ZodUUID;
936
+ type: z.ZodLiteral<"bot">;
937
+ }, z.core.$strip>], "type">>>;
938
+ api_version: z.ZodEnum<{
939
+ "2022-06-28": "2022-06-28";
940
+ "2025-09-03": "2025-09-03";
941
+ "2026-03-11": "2026-03-11";
942
+ }>;
943
+ attempt_number: z.ZodNumber;
944
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
945
+ id: z.ZodUUID;
946
+ type: z.ZodLiteral<"person">;
947
+ }, z.core.$strip>, z.ZodObject<{
948
+ id: z.ZodUUID;
949
+ type: z.ZodLiteral<"bot">;
950
+ }, z.core.$strip>, z.ZodObject<{
951
+ id: z.ZodUUID;
952
+ type: z.ZodLiteral<"agent">;
953
+ }, z.core.$strip>], "type">>;
954
+ id: z.ZodUUID;
955
+ integration_id: z.ZodUUID;
956
+ subscription_id: z.ZodUUID;
957
+ timestamp: z.ZodISODateTime;
958
+ workspace_id: z.ZodUUID;
959
+ workspace_name: z.ZodString;
960
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
961
+ data: z.ZodObject<{
962
+ parent: z.ZodObject<{
963
+ data_source_id: z.ZodOptional<z.ZodUUID>;
964
+ id: z.ZodUUID;
965
+ type: z.ZodEnum<{
966
+ team: "team";
967
+ space: "space";
968
+ agent: "agent";
969
+ block: "block";
970
+ page: "page";
971
+ database: "database";
972
+ }>;
973
+ }, z.core.$strip>;
974
+ }, z.core.$strip>;
975
+ entity: z.ZodObject<{
976
+ id: z.ZodUUID;
977
+ type: z.ZodLiteral<"page">;
978
+ }, z.core.$strip>;
979
+ type: z.ZodLiteral<"page.deleted">;
980
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
981
+ id: z.ZodUUID;
982
+ type: z.ZodLiteral<"person">;
983
+ }, z.core.$strip>, z.ZodObject<{
984
+ id: z.ZodUUID;
985
+ type: z.ZodLiteral<"bot">;
986
+ }, z.core.$strip>], "type">>>;
987
+ api_version: z.ZodEnum<{
988
+ "2022-06-28": "2022-06-28";
989
+ "2025-09-03": "2025-09-03";
990
+ "2026-03-11": "2026-03-11";
991
+ }>;
992
+ attempt_number: z.ZodNumber;
993
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
994
+ id: z.ZodUUID;
995
+ type: z.ZodLiteral<"person">;
996
+ }, z.core.$strip>, z.ZodObject<{
997
+ id: z.ZodUUID;
998
+ type: z.ZodLiteral<"bot">;
999
+ }, z.core.$strip>, z.ZodObject<{
1000
+ id: z.ZodUUID;
1001
+ type: z.ZodLiteral<"agent">;
1002
+ }, z.core.$strip>], "type">>;
1003
+ id: z.ZodUUID;
1004
+ integration_id: z.ZodUUID;
1005
+ subscription_id: z.ZodUUID;
1006
+ timestamp: z.ZodISODateTime;
1007
+ workspace_id: z.ZodUUID;
1008
+ workspace_name: z.ZodString;
1009
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1010
+ data: z.ZodObject<{
1011
+ parent: z.ZodObject<{
1012
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1013
+ id: z.ZodUUID;
1014
+ type: z.ZodEnum<{
1015
+ team: "team";
1016
+ space: "space";
1017
+ agent: "agent";
1018
+ block: "block";
1019
+ page: "page";
1020
+ database: "database";
1021
+ }>;
1022
+ }, z.core.$strip>;
1023
+ }, z.core.$strip>;
1024
+ entity: z.ZodObject<{
1025
+ id: z.ZodUUID;
1026
+ type: z.ZodLiteral<"page">;
1027
+ }, z.core.$strip>;
1028
+ type: z.ZodLiteral<"page.locked">;
1029
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1030
+ id: z.ZodUUID;
1031
+ type: z.ZodLiteral<"person">;
1032
+ }, z.core.$strip>, z.ZodObject<{
1033
+ id: z.ZodUUID;
1034
+ type: z.ZodLiteral<"bot">;
1035
+ }, z.core.$strip>], "type">>>;
1036
+ api_version: z.ZodEnum<{
1037
+ "2022-06-28": "2022-06-28";
1038
+ "2025-09-03": "2025-09-03";
1039
+ "2026-03-11": "2026-03-11";
1040
+ }>;
1041
+ attempt_number: z.ZodNumber;
1042
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1043
+ id: z.ZodUUID;
1044
+ type: z.ZodLiteral<"person">;
1045
+ }, z.core.$strip>, z.ZodObject<{
1046
+ id: z.ZodUUID;
1047
+ type: z.ZodLiteral<"bot">;
1048
+ }, z.core.$strip>, z.ZodObject<{
1049
+ id: z.ZodUUID;
1050
+ type: z.ZodLiteral<"agent">;
1051
+ }, z.core.$strip>], "type">>;
1052
+ id: z.ZodUUID;
1053
+ integration_id: z.ZodUUID;
1054
+ subscription_id: z.ZodUUID;
1055
+ timestamp: z.ZodISODateTime;
1056
+ workspace_id: z.ZodUUID;
1057
+ workspace_name: z.ZodString;
1058
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1059
+ data: z.ZodObject<{
1060
+ parent: z.ZodObject<{
1061
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1062
+ id: z.ZodUUID;
1063
+ type: z.ZodEnum<{
1064
+ team: "team";
1065
+ space: "space";
1066
+ agent: "agent";
1067
+ block: "block";
1068
+ page: "page";
1069
+ database: "database";
1070
+ }>;
1071
+ }, z.core.$strip>;
1072
+ }, z.core.$strip>;
1073
+ entity: z.ZodObject<{
1074
+ id: z.ZodUUID;
1075
+ type: z.ZodLiteral<"page">;
1076
+ }, z.core.$strip>;
1077
+ type: z.ZodLiteral<"page.moved">;
1078
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1079
+ id: z.ZodUUID;
1080
+ type: z.ZodLiteral<"person">;
1081
+ }, z.core.$strip>, z.ZodObject<{
1082
+ id: z.ZodUUID;
1083
+ type: z.ZodLiteral<"bot">;
1084
+ }, z.core.$strip>], "type">>>;
1085
+ api_version: z.ZodEnum<{
1086
+ "2022-06-28": "2022-06-28";
1087
+ "2025-09-03": "2025-09-03";
1088
+ "2026-03-11": "2026-03-11";
1089
+ }>;
1090
+ attempt_number: z.ZodNumber;
1091
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1092
+ id: z.ZodUUID;
1093
+ type: z.ZodLiteral<"person">;
1094
+ }, z.core.$strip>, z.ZodObject<{
1095
+ id: z.ZodUUID;
1096
+ type: z.ZodLiteral<"bot">;
1097
+ }, z.core.$strip>, z.ZodObject<{
1098
+ id: z.ZodUUID;
1099
+ type: z.ZodLiteral<"agent">;
1100
+ }, z.core.$strip>], "type">>;
1101
+ id: z.ZodUUID;
1102
+ integration_id: z.ZodUUID;
1103
+ subscription_id: z.ZodUUID;
1104
+ timestamp: z.ZodISODateTime;
1105
+ workspace_id: z.ZodUUID;
1106
+ workspace_name: z.ZodString;
1107
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1108
+ data: z.ZodObject<{
1109
+ parent: z.ZodObject<{
1110
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1111
+ id: z.ZodUUID;
1112
+ type: z.ZodEnum<{
1113
+ team: "team";
1114
+ space: "space";
1115
+ agent: "agent";
1116
+ block: "block";
1117
+ page: "page";
1118
+ database: "database";
1119
+ }>;
1120
+ }, z.core.$strip>;
1121
+ updated_properties: z.ZodArray<z.ZodString>;
1122
+ }, z.core.$strip>;
1123
+ entity: z.ZodObject<{
1124
+ id: z.ZodUUID;
1125
+ type: z.ZodLiteral<"page">;
1126
+ }, z.core.$strip>;
1127
+ type: z.ZodLiteral<"page.properties_updated">;
1128
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1129
+ id: z.ZodUUID;
1130
+ type: z.ZodLiteral<"person">;
1131
+ }, z.core.$strip>, z.ZodObject<{
1132
+ id: z.ZodUUID;
1133
+ type: z.ZodLiteral<"bot">;
1134
+ }, z.core.$strip>], "type">>>;
1135
+ api_version: z.ZodEnum<{
1136
+ "2022-06-28": "2022-06-28";
1137
+ "2025-09-03": "2025-09-03";
1138
+ "2026-03-11": "2026-03-11";
1139
+ }>;
1140
+ attempt_number: z.ZodNumber;
1141
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1142
+ id: z.ZodUUID;
1143
+ type: z.ZodLiteral<"person">;
1144
+ }, z.core.$strip>, z.ZodObject<{
1145
+ id: z.ZodUUID;
1146
+ type: z.ZodLiteral<"bot">;
1147
+ }, z.core.$strip>, z.ZodObject<{
1148
+ id: z.ZodUUID;
1149
+ type: z.ZodLiteral<"agent">;
1150
+ }, z.core.$strip>], "type">>;
1151
+ id: z.ZodUUID;
1152
+ integration_id: z.ZodUUID;
1153
+ subscription_id: z.ZodUUID;
1154
+ timestamp: z.ZodISODateTime;
1155
+ workspace_id: z.ZodUUID;
1156
+ workspace_name: z.ZodString;
1157
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1158
+ data: z.ZodObject<{
1159
+ target: z.ZodObject<{
1160
+ id: z.ZodUUID;
1161
+ type: z.ZodEnum<{
1162
+ block: "block";
1163
+ page: "page";
1164
+ database: "database";
1165
+ }>;
1166
+ }, z.core.$strip>;
1167
+ transcript_id: z.ZodNullable<z.ZodString>;
1168
+ }, z.core.$strip>;
1169
+ entity: z.ZodObject<{
1170
+ id: z.ZodUUID;
1171
+ type: z.ZodLiteral<"page">;
1172
+ }, z.core.$strip>;
1173
+ type: z.ZodLiteral<"page.transcription_block.transcript_deleted">;
1174
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1175
+ id: z.ZodUUID;
1176
+ type: z.ZodLiteral<"person">;
1177
+ }, z.core.$strip>, z.ZodObject<{
1178
+ id: z.ZodUUID;
1179
+ type: z.ZodLiteral<"bot">;
1180
+ }, z.core.$strip>], "type">>>;
1181
+ api_version: z.ZodEnum<{
1182
+ "2022-06-28": "2022-06-28";
1183
+ "2025-09-03": "2025-09-03";
1184
+ "2026-03-11": "2026-03-11";
1185
+ }>;
1186
+ attempt_number: z.ZodNumber;
1187
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1188
+ id: z.ZodUUID;
1189
+ type: z.ZodLiteral<"person">;
1190
+ }, z.core.$strip>, z.ZodObject<{
1191
+ id: z.ZodUUID;
1192
+ type: z.ZodLiteral<"bot">;
1193
+ }, z.core.$strip>, z.ZodObject<{
1194
+ id: z.ZodUUID;
1195
+ type: z.ZodLiteral<"agent">;
1196
+ }, z.core.$strip>], "type">>;
1197
+ id: z.ZodUUID;
1198
+ integration_id: z.ZodUUID;
1199
+ subscription_id: z.ZodUUID;
1200
+ timestamp: z.ZodISODateTime;
1201
+ workspace_id: z.ZodUUID;
1202
+ workspace_name: z.ZodString;
1203
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1204
+ data: z.ZodObject<{
1205
+ parent: z.ZodObject<{
1206
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1207
+ id: z.ZodUUID;
1208
+ type: z.ZodEnum<{
1209
+ team: "team";
1210
+ space: "space";
1211
+ agent: "agent";
1212
+ block: "block";
1213
+ page: "page";
1214
+ database: "database";
1215
+ }>;
1216
+ }, z.core.$strip>;
1217
+ }, z.core.$strip>;
1218
+ entity: z.ZodObject<{
1219
+ id: z.ZodUUID;
1220
+ type: z.ZodLiteral<"page">;
1221
+ }, z.core.$strip>;
1222
+ type: z.ZodLiteral<"page.undeleted">;
1223
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1224
+ id: z.ZodUUID;
1225
+ type: z.ZodLiteral<"person">;
1226
+ }, z.core.$strip>, z.ZodObject<{
1227
+ id: z.ZodUUID;
1228
+ type: z.ZodLiteral<"bot">;
1229
+ }, z.core.$strip>], "type">>>;
1230
+ api_version: z.ZodEnum<{
1231
+ "2022-06-28": "2022-06-28";
1232
+ "2025-09-03": "2025-09-03";
1233
+ "2026-03-11": "2026-03-11";
1234
+ }>;
1235
+ attempt_number: z.ZodNumber;
1236
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1237
+ id: z.ZodUUID;
1238
+ type: z.ZodLiteral<"person">;
1239
+ }, z.core.$strip>, z.ZodObject<{
1240
+ id: z.ZodUUID;
1241
+ type: z.ZodLiteral<"bot">;
1242
+ }, z.core.$strip>, z.ZodObject<{
1243
+ id: z.ZodUUID;
1244
+ type: z.ZodLiteral<"agent">;
1245
+ }, z.core.$strip>], "type">>;
1246
+ id: z.ZodUUID;
1247
+ integration_id: z.ZodUUID;
1248
+ subscription_id: z.ZodUUID;
1249
+ timestamp: z.ZodISODateTime;
1250
+ workspace_id: z.ZodUUID;
1251
+ workspace_name: z.ZodString;
1252
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1253
+ data: z.ZodObject<{
1254
+ parent: z.ZodObject<{
1255
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1256
+ id: z.ZodUUID;
1257
+ type: z.ZodEnum<{
1258
+ team: "team";
1259
+ space: "space";
1260
+ agent: "agent";
1261
+ block: "block";
1262
+ page: "page";
1263
+ database: "database";
1264
+ }>;
1265
+ }, z.core.$strip>;
1266
+ }, z.core.$strip>;
1267
+ entity: z.ZodObject<{
1268
+ id: z.ZodUUID;
1269
+ type: z.ZodLiteral<"page">;
1270
+ }, z.core.$strip>;
1271
+ type: z.ZodLiteral<"page.unlocked">;
1272
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1273
+ id: z.ZodUUID;
1274
+ type: z.ZodLiteral<"person">;
1275
+ }, z.core.$strip>, z.ZodObject<{
1276
+ id: z.ZodUUID;
1277
+ type: z.ZodLiteral<"bot">;
1278
+ }, z.core.$strip>], "type">>>;
1279
+ api_version: z.ZodEnum<{
1280
+ "2022-06-28": "2022-06-28";
1281
+ "2025-09-03": "2025-09-03";
1282
+ "2026-03-11": "2026-03-11";
1283
+ }>;
1284
+ attempt_number: z.ZodNumber;
1285
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1286
+ id: z.ZodUUID;
1287
+ type: z.ZodLiteral<"person">;
1288
+ }, z.core.$strip>, z.ZodObject<{
1289
+ id: z.ZodUUID;
1290
+ type: z.ZodLiteral<"bot">;
1291
+ }, z.core.$strip>, z.ZodObject<{
1292
+ id: z.ZodUUID;
1293
+ type: z.ZodLiteral<"agent">;
1294
+ }, z.core.$strip>], "type">>;
1295
+ id: z.ZodUUID;
1296
+ integration_id: z.ZodUUID;
1297
+ subscription_id: z.ZodUUID;
1298
+ timestamp: z.ZodISODateTime;
1299
+ workspace_id: z.ZodUUID;
1300
+ workspace_name: z.ZodString;
1301
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1302
+ data: z.ZodObject<{
1303
+ parent: z.ZodObject<{
1304
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1305
+ id: z.ZodUUID;
1306
+ type: z.ZodEnum<{
1307
+ team: "team";
1308
+ space: "space";
1309
+ agent: "agent";
1310
+ block: "block";
1311
+ page: "page";
1312
+ database: "database";
1313
+ }>;
1314
+ }, z.core.$strip>;
1315
+ view_type: z.ZodString;
1316
+ }, z.core.$strip>;
1317
+ entity: z.ZodObject<{
1318
+ id: z.ZodUUID;
1319
+ type: z.ZodLiteral<"view">;
1320
+ }, z.core.$strip>;
1321
+ type: z.ZodLiteral<"view.created">;
1322
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1323
+ id: z.ZodUUID;
1324
+ type: z.ZodLiteral<"person">;
1325
+ }, z.core.$strip>, z.ZodObject<{
1326
+ id: z.ZodUUID;
1327
+ type: z.ZodLiteral<"bot">;
1328
+ }, z.core.$strip>], "type">>>;
1329
+ api_version: z.ZodEnum<{
1330
+ "2022-06-28": "2022-06-28";
1331
+ "2025-09-03": "2025-09-03";
1332
+ "2026-03-11": "2026-03-11";
1333
+ }>;
1334
+ attempt_number: z.ZodNumber;
1335
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1336
+ id: z.ZodUUID;
1337
+ type: z.ZodLiteral<"person">;
1338
+ }, z.core.$strip>, z.ZodObject<{
1339
+ id: z.ZodUUID;
1340
+ type: z.ZodLiteral<"bot">;
1341
+ }, z.core.$strip>, z.ZodObject<{
1342
+ id: z.ZodUUID;
1343
+ type: z.ZodLiteral<"agent">;
1344
+ }, z.core.$strip>], "type">>;
1345
+ id: z.ZodUUID;
1346
+ integration_id: z.ZodUUID;
1347
+ subscription_id: z.ZodUUID;
1348
+ timestamp: z.ZodISODateTime;
1349
+ workspace_id: z.ZodUUID;
1350
+ workspace_name: z.ZodString;
1351
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1352
+ data: z.ZodObject<{
1353
+ parent: z.ZodObject<{
1354
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1355
+ id: z.ZodUUID;
1356
+ type: z.ZodEnum<{
1357
+ team: "team";
1358
+ space: "space";
1359
+ agent: "agent";
1360
+ block: "block";
1361
+ page: "page";
1362
+ database: "database";
1363
+ }>;
1364
+ }, z.core.$strip>;
1365
+ }, z.core.$strip>;
1366
+ entity: z.ZodObject<{
1367
+ id: z.ZodUUID;
1368
+ type: z.ZodLiteral<"view">;
1369
+ }, z.core.$strip>;
1370
+ type: z.ZodLiteral<"view.deleted">;
1371
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1372
+ id: z.ZodUUID;
1373
+ type: z.ZodLiteral<"person">;
1374
+ }, z.core.$strip>, z.ZodObject<{
1375
+ id: z.ZodUUID;
1376
+ type: z.ZodLiteral<"bot">;
1377
+ }, z.core.$strip>], "type">>>;
1378
+ api_version: z.ZodEnum<{
1379
+ "2022-06-28": "2022-06-28";
1380
+ "2025-09-03": "2025-09-03";
1381
+ "2026-03-11": "2026-03-11";
1382
+ }>;
1383
+ attempt_number: z.ZodNumber;
1384
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1385
+ id: z.ZodUUID;
1386
+ type: z.ZodLiteral<"person">;
1387
+ }, z.core.$strip>, z.ZodObject<{
1388
+ id: z.ZodUUID;
1389
+ type: z.ZodLiteral<"bot">;
1390
+ }, z.core.$strip>, z.ZodObject<{
1391
+ id: z.ZodUUID;
1392
+ type: z.ZodLiteral<"agent">;
1393
+ }, z.core.$strip>], "type">>;
1394
+ id: z.ZodUUID;
1395
+ integration_id: z.ZodUUID;
1396
+ subscription_id: z.ZodUUID;
1397
+ timestamp: z.ZodISODateTime;
1398
+ workspace_id: z.ZodUUID;
1399
+ workspace_name: z.ZodString;
1400
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1401
+ data: z.ZodObject<{
1402
+ parent: z.ZodObject<{
1403
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1404
+ id: z.ZodUUID;
1405
+ type: z.ZodEnum<{
1406
+ team: "team";
1407
+ space: "space";
1408
+ agent: "agent";
1409
+ block: "block";
1410
+ page: "page";
1411
+ database: "database";
1412
+ }>;
1413
+ }, z.core.$strip>;
1414
+ updated_fields: z.ZodArray<z.ZodEnum<{
1415
+ filter: "filter";
1416
+ name: "name";
1417
+ sorts: "sorts";
1418
+ configuration: "configuration";
1419
+ }>>;
1420
+ }, z.core.$strip>;
1421
+ entity: z.ZodObject<{
1422
+ id: z.ZodUUID;
1423
+ type: z.ZodLiteral<"view">;
1424
+ }, z.core.$strip>;
1425
+ type: z.ZodLiteral<"view.updated">;
1426
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1427
+ id: z.ZodUUID;
1428
+ type: z.ZodLiteral<"person">;
1429
+ }, z.core.$strip>, z.ZodObject<{
1430
+ id: z.ZodUUID;
1431
+ type: z.ZodLiteral<"bot">;
1432
+ }, z.core.$strip>], "type">>>;
1433
+ api_version: z.ZodEnum<{
1434
+ "2022-06-28": "2022-06-28";
1435
+ "2025-09-03": "2025-09-03";
1436
+ "2026-03-11": "2026-03-11";
1437
+ }>;
1438
+ attempt_number: z.ZodNumber;
1439
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1440
+ id: z.ZodUUID;
1441
+ type: z.ZodLiteral<"person">;
1442
+ }, z.core.$strip>, z.ZodObject<{
1443
+ id: z.ZodUUID;
1444
+ type: z.ZodLiteral<"bot">;
1445
+ }, z.core.$strip>, z.ZodObject<{
1446
+ id: z.ZodUUID;
1447
+ type: z.ZodLiteral<"agent">;
1448
+ }, z.core.$strip>], "type">>;
1449
+ id: z.ZodUUID;
1450
+ integration_id: z.ZodUUID;
1451
+ subscription_id: z.ZodUUID;
1452
+ timestamp: z.ZodISODateTime;
1453
+ workspace_id: z.ZodUUID;
1454
+ workspace_name: z.ZodString;
1455
+ }, z.core.$catchall<z.ZodJSONSchema>>], "type">;
1456
+ /** Current portable Notion webhook payload validated at ingress. */
1457
+ export type NotionWebhookEvent = z.infer<typeof RAW_NOTION_EVENT_SCHEMA>;
1458
+ export type NotionWebhookEventType = NotionWebhookEvent["type"];
1459
+ export type NotionSemanticWebhookEvent<TType extends NotionWebhookEventType> = Extract<NotionWebhookEvent, {
1460
+ type: TType;
1461
+ }>;
1462
+ /** Exact current Notion webhook schema shared by ingress and triggers. */
1463
+ export declare const NOTION_EVENT_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
1464
+ data: z.ZodObject<{
1465
+ page_id: z.ZodUUID;
1466
+ parent: z.ZodObject<{
1467
+ id: z.ZodUUID;
1468
+ type: z.ZodEnum<{
1469
+ block: "block";
1470
+ page: "page";
1471
+ database: "database";
1472
+ }>;
1473
+ }, z.core.$strip>;
1474
+ }, z.core.$strip>;
1475
+ entity: z.ZodObject<{
1476
+ id: z.ZodUUID;
1477
+ type: z.ZodLiteral<"comment">;
1478
+ }, z.core.$strip>;
1479
+ type: z.ZodLiteral<"comment.created">;
1480
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1481
+ id: z.ZodUUID;
1482
+ type: z.ZodLiteral<"person">;
1483
+ }, z.core.$strip>, z.ZodObject<{
1484
+ id: z.ZodUUID;
1485
+ type: z.ZodLiteral<"bot">;
1486
+ }, z.core.$strip>], "type">>>;
1487
+ api_version: z.ZodEnum<{
1488
+ "2022-06-28": "2022-06-28";
1489
+ "2025-09-03": "2025-09-03";
1490
+ "2026-03-11": "2026-03-11";
1491
+ }>;
1492
+ attempt_number: z.ZodNumber;
1493
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1494
+ id: z.ZodUUID;
1495
+ type: z.ZodLiteral<"person">;
1496
+ }, z.core.$strip>, z.ZodObject<{
1497
+ id: z.ZodUUID;
1498
+ type: z.ZodLiteral<"bot">;
1499
+ }, z.core.$strip>, z.ZodObject<{
1500
+ id: z.ZodUUID;
1501
+ type: z.ZodLiteral<"agent">;
1502
+ }, z.core.$strip>], "type">>;
1503
+ id: z.ZodUUID;
1504
+ integration_id: z.ZodUUID;
1505
+ subscription_id: z.ZodUUID;
1506
+ timestamp: z.ZodISODateTime;
1507
+ workspace_id: z.ZodUUID;
1508
+ workspace_name: z.ZodString;
1509
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1510
+ data: z.ZodObject<{
1511
+ page_id: z.ZodUUID;
1512
+ parent: z.ZodObject<{
1513
+ id: z.ZodUUID;
1514
+ type: z.ZodEnum<{
1515
+ block: "block";
1516
+ page: "page";
1517
+ database: "database";
1518
+ }>;
1519
+ }, z.core.$strip>;
1520
+ }, z.core.$strip>;
1521
+ entity: z.ZodObject<{
1522
+ id: z.ZodUUID;
1523
+ type: z.ZodLiteral<"comment">;
1524
+ }, z.core.$strip>;
1525
+ type: z.ZodLiteral<"comment.deleted">;
1526
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1527
+ id: z.ZodUUID;
1528
+ type: z.ZodLiteral<"person">;
1529
+ }, z.core.$strip>, z.ZodObject<{
1530
+ id: z.ZodUUID;
1531
+ type: z.ZodLiteral<"bot">;
1532
+ }, z.core.$strip>], "type">>>;
1533
+ api_version: z.ZodEnum<{
1534
+ "2022-06-28": "2022-06-28";
1535
+ "2025-09-03": "2025-09-03";
1536
+ "2026-03-11": "2026-03-11";
1537
+ }>;
1538
+ attempt_number: z.ZodNumber;
1539
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1540
+ id: z.ZodUUID;
1541
+ type: z.ZodLiteral<"person">;
1542
+ }, z.core.$strip>, z.ZodObject<{
1543
+ id: z.ZodUUID;
1544
+ type: z.ZodLiteral<"bot">;
1545
+ }, z.core.$strip>, z.ZodObject<{
1546
+ id: z.ZodUUID;
1547
+ type: z.ZodLiteral<"agent">;
1548
+ }, z.core.$strip>], "type">>;
1549
+ id: z.ZodUUID;
1550
+ integration_id: z.ZodUUID;
1551
+ subscription_id: z.ZodUUID;
1552
+ timestamp: z.ZodISODateTime;
1553
+ workspace_id: z.ZodUUID;
1554
+ workspace_name: z.ZodString;
1555
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1556
+ data: z.ZodObject<{
1557
+ page_id: z.ZodUUID;
1558
+ parent: z.ZodObject<{
1559
+ id: z.ZodUUID;
1560
+ type: z.ZodEnum<{
1561
+ block: "block";
1562
+ page: "page";
1563
+ database: "database";
1564
+ }>;
1565
+ }, z.core.$strip>;
1566
+ }, z.core.$strip>;
1567
+ entity: z.ZodObject<{
1568
+ id: z.ZodUUID;
1569
+ type: z.ZodLiteral<"comment">;
1570
+ }, z.core.$strip>;
1571
+ type: z.ZodLiteral<"comment.updated">;
1572
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1573
+ id: z.ZodUUID;
1574
+ type: z.ZodLiteral<"person">;
1575
+ }, z.core.$strip>, z.ZodObject<{
1576
+ id: z.ZodUUID;
1577
+ type: z.ZodLiteral<"bot">;
1578
+ }, z.core.$strip>], "type">>>;
1579
+ api_version: z.ZodEnum<{
1580
+ "2022-06-28": "2022-06-28";
1581
+ "2025-09-03": "2025-09-03";
1582
+ "2026-03-11": "2026-03-11";
1583
+ }>;
1584
+ attempt_number: z.ZodNumber;
1585
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1586
+ id: z.ZodUUID;
1587
+ type: z.ZodLiteral<"person">;
1588
+ }, z.core.$strip>, z.ZodObject<{
1589
+ id: z.ZodUUID;
1590
+ type: z.ZodLiteral<"bot">;
1591
+ }, z.core.$strip>, z.ZodObject<{
1592
+ id: z.ZodUUID;
1593
+ type: z.ZodLiteral<"agent">;
1594
+ }, z.core.$strip>], "type">>;
1595
+ id: z.ZodUUID;
1596
+ integration_id: z.ZodUUID;
1597
+ subscription_id: z.ZodUUID;
1598
+ timestamp: z.ZodISODateTime;
1599
+ workspace_id: z.ZodUUID;
1600
+ workspace_name: z.ZodString;
1601
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1602
+ data: z.ZodObject<{
1603
+ parent: z.ZodObject<{
1604
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1605
+ id: z.ZodUUID;
1606
+ type: z.ZodEnum<{
1607
+ team: "team";
1608
+ space: "space";
1609
+ agent: "agent";
1610
+ block: "block";
1611
+ page: "page";
1612
+ database: "database";
1613
+ }>;
1614
+ }, z.core.$strip>;
1615
+ updated_blocks: z.ZodArray<z.ZodObject<{
1616
+ id: z.ZodUUID;
1617
+ type: z.ZodEnum<{
1618
+ block: "block";
1619
+ page: "page";
1620
+ database: "database";
1621
+ }>;
1622
+ }, z.core.$strip>>;
1623
+ }, z.core.$strip>;
1624
+ entity: z.ZodObject<{
1625
+ id: z.ZodUUID;
1626
+ type: z.ZodEnum<{
1627
+ block: "block";
1628
+ database: "database";
1629
+ data_source: "data_source";
1630
+ }>;
1631
+ }, z.core.$strip>;
1632
+ type: z.ZodLiteral<"data_source.content_updated">;
1633
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1634
+ id: z.ZodUUID;
1635
+ type: z.ZodLiteral<"person">;
1636
+ }, z.core.$strip>, z.ZodObject<{
1637
+ id: z.ZodUUID;
1638
+ type: z.ZodLiteral<"bot">;
1639
+ }, z.core.$strip>], "type">>>;
1640
+ api_version: z.ZodEnum<{
1641
+ "2022-06-28": "2022-06-28";
1642
+ "2025-09-03": "2025-09-03";
1643
+ "2026-03-11": "2026-03-11";
1644
+ }>;
1645
+ attempt_number: z.ZodNumber;
1646
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1647
+ id: z.ZodUUID;
1648
+ type: z.ZodLiteral<"person">;
1649
+ }, z.core.$strip>, z.ZodObject<{
1650
+ id: z.ZodUUID;
1651
+ type: z.ZodLiteral<"bot">;
1652
+ }, z.core.$strip>, z.ZodObject<{
1653
+ id: z.ZodUUID;
1654
+ type: z.ZodLiteral<"agent">;
1655
+ }, z.core.$strip>], "type">>;
1656
+ id: z.ZodUUID;
1657
+ integration_id: z.ZodUUID;
1658
+ subscription_id: z.ZodUUID;
1659
+ timestamp: z.ZodISODateTime;
1660
+ workspace_id: z.ZodUUID;
1661
+ workspace_name: z.ZodString;
1662
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1663
+ data: z.ZodObject<{
1664
+ parent: z.ZodObject<{
1665
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1666
+ id: z.ZodUUID;
1667
+ type: z.ZodEnum<{
1668
+ team: "team";
1669
+ space: "space";
1670
+ agent: "agent";
1671
+ block: "block";
1672
+ page: "page";
1673
+ database: "database";
1674
+ }>;
1675
+ }, z.core.$strip>;
1676
+ }, z.core.$strip>;
1677
+ entity: z.ZodObject<{
1678
+ id: z.ZodUUID;
1679
+ type: z.ZodEnum<{
1680
+ block: "block";
1681
+ database: "database";
1682
+ data_source: "data_source";
1683
+ }>;
1684
+ }, z.core.$strip>;
1685
+ type: z.ZodLiteral<"data_source.created">;
1686
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1687
+ id: z.ZodUUID;
1688
+ type: z.ZodLiteral<"person">;
1689
+ }, z.core.$strip>, z.ZodObject<{
1690
+ id: z.ZodUUID;
1691
+ type: z.ZodLiteral<"bot">;
1692
+ }, z.core.$strip>], "type">>>;
1693
+ api_version: z.ZodEnum<{
1694
+ "2022-06-28": "2022-06-28";
1695
+ "2025-09-03": "2025-09-03";
1696
+ "2026-03-11": "2026-03-11";
1697
+ }>;
1698
+ attempt_number: z.ZodNumber;
1699
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1700
+ id: z.ZodUUID;
1701
+ type: z.ZodLiteral<"person">;
1702
+ }, z.core.$strip>, z.ZodObject<{
1703
+ id: z.ZodUUID;
1704
+ type: z.ZodLiteral<"bot">;
1705
+ }, z.core.$strip>, z.ZodObject<{
1706
+ id: z.ZodUUID;
1707
+ type: z.ZodLiteral<"agent">;
1708
+ }, z.core.$strip>], "type">>;
1709
+ id: z.ZodUUID;
1710
+ integration_id: z.ZodUUID;
1711
+ subscription_id: z.ZodUUID;
1712
+ timestamp: z.ZodISODateTime;
1713
+ workspace_id: z.ZodUUID;
1714
+ workspace_name: z.ZodString;
1715
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1716
+ data: z.ZodObject<{
1717
+ parent: z.ZodObject<{
1718
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1719
+ id: z.ZodUUID;
1720
+ type: z.ZodEnum<{
1721
+ team: "team";
1722
+ space: "space";
1723
+ agent: "agent";
1724
+ block: "block";
1725
+ page: "page";
1726
+ database: "database";
1727
+ }>;
1728
+ }, z.core.$strip>;
1729
+ }, z.core.$strip>;
1730
+ entity: z.ZodObject<{
1731
+ id: z.ZodUUID;
1732
+ type: z.ZodEnum<{
1733
+ block: "block";
1734
+ database: "database";
1735
+ data_source: "data_source";
1736
+ }>;
1737
+ }, z.core.$strip>;
1738
+ type: z.ZodLiteral<"data_source.deleted">;
1739
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1740
+ id: z.ZodUUID;
1741
+ type: z.ZodLiteral<"person">;
1742
+ }, z.core.$strip>, z.ZodObject<{
1743
+ id: z.ZodUUID;
1744
+ type: z.ZodLiteral<"bot">;
1745
+ }, z.core.$strip>], "type">>>;
1746
+ api_version: z.ZodEnum<{
1747
+ "2022-06-28": "2022-06-28";
1748
+ "2025-09-03": "2025-09-03";
1749
+ "2026-03-11": "2026-03-11";
1750
+ }>;
1751
+ attempt_number: z.ZodNumber;
1752
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1753
+ id: z.ZodUUID;
1754
+ type: z.ZodLiteral<"person">;
1755
+ }, z.core.$strip>, z.ZodObject<{
1756
+ id: z.ZodUUID;
1757
+ type: z.ZodLiteral<"bot">;
1758
+ }, z.core.$strip>, z.ZodObject<{
1759
+ id: z.ZodUUID;
1760
+ type: z.ZodLiteral<"agent">;
1761
+ }, z.core.$strip>], "type">>;
1762
+ id: z.ZodUUID;
1763
+ integration_id: z.ZodUUID;
1764
+ subscription_id: z.ZodUUID;
1765
+ timestamp: z.ZodISODateTime;
1766
+ workspace_id: z.ZodUUID;
1767
+ workspace_name: z.ZodString;
1768
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1769
+ data: z.ZodObject<{
1770
+ parent: z.ZodObject<{
1771
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1772
+ id: z.ZodUUID;
1773
+ type: z.ZodEnum<{
1774
+ team: "team";
1775
+ space: "space";
1776
+ agent: "agent";
1777
+ block: "block";
1778
+ page: "page";
1779
+ database: "database";
1780
+ }>;
1781
+ }, z.core.$strip>;
1782
+ }, z.core.$strip>;
1783
+ entity: z.ZodObject<{
1784
+ id: z.ZodUUID;
1785
+ type: z.ZodEnum<{
1786
+ block: "block";
1787
+ database: "database";
1788
+ data_source: "data_source";
1789
+ }>;
1790
+ }, z.core.$strip>;
1791
+ type: z.ZodLiteral<"data_source.moved">;
1792
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1793
+ id: z.ZodUUID;
1794
+ type: z.ZodLiteral<"person">;
1795
+ }, z.core.$strip>, z.ZodObject<{
1796
+ id: z.ZodUUID;
1797
+ type: z.ZodLiteral<"bot">;
1798
+ }, z.core.$strip>], "type">>>;
1799
+ api_version: z.ZodEnum<{
1800
+ "2022-06-28": "2022-06-28";
1801
+ "2025-09-03": "2025-09-03";
1802
+ "2026-03-11": "2026-03-11";
1803
+ }>;
1804
+ attempt_number: z.ZodNumber;
1805
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1806
+ id: z.ZodUUID;
1807
+ type: z.ZodLiteral<"person">;
1808
+ }, z.core.$strip>, z.ZodObject<{
1809
+ id: z.ZodUUID;
1810
+ type: z.ZodLiteral<"bot">;
1811
+ }, z.core.$strip>, z.ZodObject<{
1812
+ id: z.ZodUUID;
1813
+ type: z.ZodLiteral<"agent">;
1814
+ }, z.core.$strip>], "type">>;
1815
+ id: z.ZodUUID;
1816
+ integration_id: z.ZodUUID;
1817
+ subscription_id: z.ZodUUID;
1818
+ timestamp: z.ZodISODateTime;
1819
+ workspace_id: z.ZodUUID;
1820
+ workspace_name: z.ZodString;
1821
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1822
+ data: z.ZodObject<{
1823
+ parent: z.ZodObject<{
1824
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1825
+ id: z.ZodUUID;
1826
+ type: z.ZodEnum<{
1827
+ team: "team";
1828
+ space: "space";
1829
+ agent: "agent";
1830
+ block: "block";
1831
+ page: "page";
1832
+ database: "database";
1833
+ }>;
1834
+ }, z.core.$strip>;
1835
+ updated_properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
1836
+ action: z.ZodEnum<{
1837
+ deleted: "deleted";
1838
+ created: "created";
1839
+ updated: "updated";
1840
+ }>;
1841
+ id: z.ZodString;
1842
+ name: z.ZodNullable<z.ZodString>;
1843
+ }, z.core.$strip>>>;
1844
+ }, z.core.$strip>;
1845
+ entity: z.ZodObject<{
1846
+ id: z.ZodUUID;
1847
+ type: z.ZodEnum<{
1848
+ block: "block";
1849
+ database: "database";
1850
+ data_source: "data_source";
1851
+ }>;
1852
+ }, z.core.$strip>;
1853
+ type: z.ZodLiteral<"data_source.schema_updated">;
1854
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1855
+ id: z.ZodUUID;
1856
+ type: z.ZodLiteral<"person">;
1857
+ }, z.core.$strip>, z.ZodObject<{
1858
+ id: z.ZodUUID;
1859
+ type: z.ZodLiteral<"bot">;
1860
+ }, z.core.$strip>], "type">>>;
1861
+ api_version: z.ZodEnum<{
1862
+ "2022-06-28": "2022-06-28";
1863
+ "2025-09-03": "2025-09-03";
1864
+ "2026-03-11": "2026-03-11";
1865
+ }>;
1866
+ attempt_number: z.ZodNumber;
1867
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1868
+ id: z.ZodUUID;
1869
+ type: z.ZodLiteral<"person">;
1870
+ }, z.core.$strip>, z.ZodObject<{
1871
+ id: z.ZodUUID;
1872
+ type: z.ZodLiteral<"bot">;
1873
+ }, z.core.$strip>, z.ZodObject<{
1874
+ id: z.ZodUUID;
1875
+ type: z.ZodLiteral<"agent">;
1876
+ }, z.core.$strip>], "type">>;
1877
+ id: z.ZodUUID;
1878
+ integration_id: z.ZodUUID;
1879
+ subscription_id: z.ZodUUID;
1880
+ timestamp: z.ZodISODateTime;
1881
+ workspace_id: z.ZodUUID;
1882
+ workspace_name: z.ZodString;
1883
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1884
+ data: z.ZodObject<{
1885
+ parent: z.ZodObject<{
1886
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1887
+ id: z.ZodUUID;
1888
+ type: z.ZodEnum<{
1889
+ team: "team";
1890
+ space: "space";
1891
+ agent: "agent";
1892
+ block: "block";
1893
+ page: "page";
1894
+ database: "database";
1895
+ }>;
1896
+ }, z.core.$strip>;
1897
+ }, z.core.$strip>;
1898
+ entity: z.ZodObject<{
1899
+ id: z.ZodUUID;
1900
+ type: z.ZodEnum<{
1901
+ block: "block";
1902
+ database: "database";
1903
+ data_source: "data_source";
1904
+ }>;
1905
+ }, z.core.$strip>;
1906
+ type: z.ZodLiteral<"data_source.undeleted">;
1907
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1908
+ id: z.ZodUUID;
1909
+ type: z.ZodLiteral<"person">;
1910
+ }, z.core.$strip>, z.ZodObject<{
1911
+ id: z.ZodUUID;
1912
+ type: z.ZodLiteral<"bot">;
1913
+ }, z.core.$strip>], "type">>>;
1914
+ api_version: z.ZodEnum<{
1915
+ "2022-06-28": "2022-06-28";
1916
+ "2025-09-03": "2025-09-03";
1917
+ "2026-03-11": "2026-03-11";
1918
+ }>;
1919
+ attempt_number: z.ZodNumber;
1920
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1921
+ id: z.ZodUUID;
1922
+ type: z.ZodLiteral<"person">;
1923
+ }, z.core.$strip>, z.ZodObject<{
1924
+ id: z.ZodUUID;
1925
+ type: z.ZodLiteral<"bot">;
1926
+ }, z.core.$strip>, z.ZodObject<{
1927
+ id: z.ZodUUID;
1928
+ type: z.ZodLiteral<"agent">;
1929
+ }, z.core.$strip>], "type">>;
1930
+ id: z.ZodUUID;
1931
+ integration_id: z.ZodUUID;
1932
+ subscription_id: z.ZodUUID;
1933
+ timestamp: z.ZodISODateTime;
1934
+ workspace_id: z.ZodUUID;
1935
+ workspace_name: z.ZodString;
1936
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1937
+ data: z.ZodObject<{
1938
+ parent: z.ZodObject<{
1939
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1940
+ id: z.ZodUUID;
1941
+ type: z.ZodEnum<{
1942
+ team: "team";
1943
+ space: "space";
1944
+ agent: "agent";
1945
+ block: "block";
1946
+ page: "page";
1947
+ database: "database";
1948
+ }>;
1949
+ }, z.core.$strip>;
1950
+ }, z.core.$strip>;
1951
+ entity: z.ZodObject<{
1952
+ id: z.ZodUUID;
1953
+ type: z.ZodEnum<{
1954
+ block: "block";
1955
+ database: "database";
1956
+ data_source: "data_source";
1957
+ }>;
1958
+ }, z.core.$strip>;
1959
+ type: z.ZodLiteral<"database.created">;
1960
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1961
+ id: z.ZodUUID;
1962
+ type: z.ZodLiteral<"person">;
1963
+ }, z.core.$strip>, z.ZodObject<{
1964
+ id: z.ZodUUID;
1965
+ type: z.ZodLiteral<"bot">;
1966
+ }, z.core.$strip>], "type">>>;
1967
+ api_version: z.ZodEnum<{
1968
+ "2022-06-28": "2022-06-28";
1969
+ "2025-09-03": "2025-09-03";
1970
+ "2026-03-11": "2026-03-11";
1971
+ }>;
1972
+ attempt_number: z.ZodNumber;
1973
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1974
+ id: z.ZodUUID;
1975
+ type: z.ZodLiteral<"person">;
1976
+ }, z.core.$strip>, z.ZodObject<{
1977
+ id: z.ZodUUID;
1978
+ type: z.ZodLiteral<"bot">;
1979
+ }, z.core.$strip>, z.ZodObject<{
1980
+ id: z.ZodUUID;
1981
+ type: z.ZodLiteral<"agent">;
1982
+ }, z.core.$strip>], "type">>;
1983
+ id: z.ZodUUID;
1984
+ integration_id: z.ZodUUID;
1985
+ subscription_id: z.ZodUUID;
1986
+ timestamp: z.ZodISODateTime;
1987
+ workspace_id: z.ZodUUID;
1988
+ workspace_name: z.ZodString;
1989
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1990
+ data: z.ZodObject<{
1991
+ parent: z.ZodObject<{
1992
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1993
+ id: z.ZodUUID;
1994
+ type: z.ZodEnum<{
1995
+ team: "team";
1996
+ space: "space";
1997
+ agent: "agent";
1998
+ block: "block";
1999
+ page: "page";
2000
+ database: "database";
2001
+ }>;
2002
+ }, z.core.$strip>;
2003
+ }, z.core.$strip>;
2004
+ entity: z.ZodObject<{
2005
+ id: z.ZodUUID;
2006
+ type: z.ZodEnum<{
2007
+ block: "block";
2008
+ database: "database";
2009
+ data_source: "data_source";
2010
+ }>;
2011
+ }, z.core.$strip>;
2012
+ type: z.ZodLiteral<"database.deleted">;
2013
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2014
+ id: z.ZodUUID;
2015
+ type: z.ZodLiteral<"person">;
2016
+ }, z.core.$strip>, z.ZodObject<{
2017
+ id: z.ZodUUID;
2018
+ type: z.ZodLiteral<"bot">;
2019
+ }, z.core.$strip>], "type">>>;
2020
+ api_version: z.ZodEnum<{
2021
+ "2022-06-28": "2022-06-28";
2022
+ "2025-09-03": "2025-09-03";
2023
+ "2026-03-11": "2026-03-11";
2024
+ }>;
2025
+ attempt_number: z.ZodNumber;
2026
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2027
+ id: z.ZodUUID;
2028
+ type: z.ZodLiteral<"person">;
2029
+ }, z.core.$strip>, z.ZodObject<{
2030
+ id: z.ZodUUID;
2031
+ type: z.ZodLiteral<"bot">;
2032
+ }, z.core.$strip>, z.ZodObject<{
2033
+ id: z.ZodUUID;
2034
+ type: z.ZodLiteral<"agent">;
2035
+ }, z.core.$strip>], "type">>;
2036
+ id: z.ZodUUID;
2037
+ integration_id: z.ZodUUID;
2038
+ subscription_id: z.ZodUUID;
2039
+ timestamp: z.ZodISODateTime;
2040
+ workspace_id: z.ZodUUID;
2041
+ workspace_name: z.ZodString;
2042
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2043
+ data: z.ZodObject<{
2044
+ parent: z.ZodObject<{
2045
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2046
+ id: z.ZodUUID;
2047
+ type: z.ZodEnum<{
2048
+ team: "team";
2049
+ space: "space";
2050
+ agent: "agent";
2051
+ block: "block";
2052
+ page: "page";
2053
+ database: "database";
2054
+ }>;
2055
+ }, z.core.$strip>;
2056
+ }, z.core.$strip>;
2057
+ entity: z.ZodObject<{
2058
+ id: z.ZodUUID;
2059
+ type: z.ZodEnum<{
2060
+ block: "block";
2061
+ database: "database";
2062
+ data_source: "data_source";
2063
+ }>;
2064
+ }, z.core.$strip>;
2065
+ type: z.ZodLiteral<"database.moved">;
2066
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2067
+ id: z.ZodUUID;
2068
+ type: z.ZodLiteral<"person">;
2069
+ }, z.core.$strip>, z.ZodObject<{
2070
+ id: z.ZodUUID;
2071
+ type: z.ZodLiteral<"bot">;
2072
+ }, z.core.$strip>], "type">>>;
2073
+ api_version: z.ZodEnum<{
2074
+ "2022-06-28": "2022-06-28";
2075
+ "2025-09-03": "2025-09-03";
2076
+ "2026-03-11": "2026-03-11";
2077
+ }>;
2078
+ attempt_number: z.ZodNumber;
2079
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2080
+ id: z.ZodUUID;
2081
+ type: z.ZodLiteral<"person">;
2082
+ }, z.core.$strip>, z.ZodObject<{
2083
+ id: z.ZodUUID;
2084
+ type: z.ZodLiteral<"bot">;
2085
+ }, z.core.$strip>, z.ZodObject<{
2086
+ id: z.ZodUUID;
2087
+ type: z.ZodLiteral<"agent">;
2088
+ }, z.core.$strip>], "type">>;
2089
+ id: z.ZodUUID;
2090
+ integration_id: z.ZodUUID;
2091
+ subscription_id: z.ZodUUID;
2092
+ timestamp: z.ZodISODateTime;
2093
+ workspace_id: z.ZodUUID;
2094
+ workspace_name: z.ZodString;
2095
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2096
+ data: z.ZodObject<{
2097
+ parent: z.ZodObject<{
2098
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2099
+ id: z.ZodUUID;
2100
+ type: z.ZodEnum<{
2101
+ team: "team";
2102
+ space: "space";
2103
+ agent: "agent";
2104
+ block: "block";
2105
+ page: "page";
2106
+ database: "database";
2107
+ }>;
2108
+ }, z.core.$strip>;
2109
+ }, z.core.$strip>;
2110
+ entity: z.ZodObject<{
2111
+ id: z.ZodUUID;
2112
+ type: z.ZodEnum<{
2113
+ block: "block";
2114
+ database: "database";
2115
+ data_source: "data_source";
2116
+ }>;
2117
+ }, z.core.$strip>;
2118
+ type: z.ZodLiteral<"database.undeleted">;
2119
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2120
+ id: z.ZodUUID;
2121
+ type: z.ZodLiteral<"person">;
2122
+ }, z.core.$strip>, z.ZodObject<{
2123
+ id: z.ZodUUID;
2124
+ type: z.ZodLiteral<"bot">;
2125
+ }, z.core.$strip>], "type">>>;
2126
+ api_version: z.ZodEnum<{
2127
+ "2022-06-28": "2022-06-28";
2128
+ "2025-09-03": "2025-09-03";
2129
+ "2026-03-11": "2026-03-11";
2130
+ }>;
2131
+ attempt_number: z.ZodNumber;
2132
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2133
+ id: z.ZodUUID;
2134
+ type: z.ZodLiteral<"person">;
2135
+ }, z.core.$strip>, z.ZodObject<{
2136
+ id: z.ZodUUID;
2137
+ type: z.ZodLiteral<"bot">;
2138
+ }, z.core.$strip>, z.ZodObject<{
2139
+ id: z.ZodUUID;
2140
+ type: z.ZodLiteral<"agent">;
2141
+ }, z.core.$strip>], "type">>;
2142
+ id: z.ZodUUID;
2143
+ integration_id: z.ZodUUID;
2144
+ subscription_id: z.ZodUUID;
2145
+ timestamp: z.ZodISODateTime;
2146
+ workspace_id: z.ZodUUID;
2147
+ workspace_name: z.ZodString;
2148
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2149
+ entity: z.ZodObject<{
2150
+ id: z.ZodUUID;
2151
+ type: z.ZodLiteral<"file_upload">;
2152
+ }, z.core.$strip>;
2153
+ type: z.ZodLiteral<"file_upload.completed">;
2154
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2155
+ id: z.ZodUUID;
2156
+ type: z.ZodLiteral<"person">;
2157
+ }, z.core.$strip>, z.ZodObject<{
2158
+ id: z.ZodUUID;
2159
+ type: z.ZodLiteral<"bot">;
2160
+ }, z.core.$strip>], "type">>>;
2161
+ api_version: z.ZodEnum<{
2162
+ "2022-06-28": "2022-06-28";
2163
+ "2025-09-03": "2025-09-03";
2164
+ "2026-03-11": "2026-03-11";
2165
+ }>;
2166
+ attempt_number: z.ZodNumber;
2167
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2168
+ id: z.ZodUUID;
2169
+ type: z.ZodLiteral<"person">;
2170
+ }, z.core.$strip>, z.ZodObject<{
2171
+ id: z.ZodUUID;
2172
+ type: z.ZodLiteral<"bot">;
2173
+ }, z.core.$strip>, z.ZodObject<{
2174
+ id: z.ZodUUID;
2175
+ type: z.ZodLiteral<"agent">;
2176
+ }, z.core.$strip>], "type">>;
2177
+ id: z.ZodUUID;
2178
+ integration_id: z.ZodUUID;
2179
+ subscription_id: z.ZodUUID;
2180
+ timestamp: z.ZodISODateTime;
2181
+ workspace_id: z.ZodUUID;
2182
+ workspace_name: z.ZodString;
2183
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2184
+ entity: z.ZodObject<{
2185
+ id: z.ZodUUID;
2186
+ type: z.ZodLiteral<"file_upload">;
2187
+ }, z.core.$strip>;
2188
+ type: z.ZodLiteral<"file_upload.created">;
2189
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2190
+ id: z.ZodUUID;
2191
+ type: z.ZodLiteral<"person">;
2192
+ }, z.core.$strip>, z.ZodObject<{
2193
+ id: z.ZodUUID;
2194
+ type: z.ZodLiteral<"bot">;
2195
+ }, z.core.$strip>], "type">>>;
2196
+ api_version: z.ZodEnum<{
2197
+ "2022-06-28": "2022-06-28";
2198
+ "2025-09-03": "2025-09-03";
2199
+ "2026-03-11": "2026-03-11";
2200
+ }>;
2201
+ attempt_number: z.ZodNumber;
2202
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2203
+ id: z.ZodUUID;
2204
+ type: z.ZodLiteral<"person">;
2205
+ }, z.core.$strip>, z.ZodObject<{
2206
+ id: z.ZodUUID;
2207
+ type: z.ZodLiteral<"bot">;
2208
+ }, z.core.$strip>, z.ZodObject<{
2209
+ id: z.ZodUUID;
2210
+ type: z.ZodLiteral<"agent">;
2211
+ }, z.core.$strip>], "type">>;
2212
+ id: z.ZodUUID;
2213
+ integration_id: z.ZodUUID;
2214
+ subscription_id: z.ZodUUID;
2215
+ timestamp: z.ZodISODateTime;
2216
+ workspace_id: z.ZodUUID;
2217
+ workspace_name: z.ZodString;
2218
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2219
+ entity: z.ZodObject<{
2220
+ id: z.ZodUUID;
2221
+ type: z.ZodLiteral<"file_upload">;
2222
+ }, z.core.$strip>;
2223
+ type: z.ZodLiteral<"file_upload.expired">;
2224
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2225
+ id: z.ZodUUID;
2226
+ type: z.ZodLiteral<"person">;
2227
+ }, z.core.$strip>, z.ZodObject<{
2228
+ id: z.ZodUUID;
2229
+ type: z.ZodLiteral<"bot">;
2230
+ }, z.core.$strip>], "type">>>;
2231
+ api_version: z.ZodEnum<{
2232
+ "2022-06-28": "2022-06-28";
2233
+ "2025-09-03": "2025-09-03";
2234
+ "2026-03-11": "2026-03-11";
2235
+ }>;
2236
+ attempt_number: z.ZodNumber;
2237
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2238
+ id: z.ZodUUID;
2239
+ type: z.ZodLiteral<"person">;
2240
+ }, z.core.$strip>, z.ZodObject<{
2241
+ id: z.ZodUUID;
2242
+ type: z.ZodLiteral<"bot">;
2243
+ }, z.core.$strip>, z.ZodObject<{
2244
+ id: z.ZodUUID;
2245
+ type: z.ZodLiteral<"agent">;
2246
+ }, z.core.$strip>], "type">>;
2247
+ id: z.ZodUUID;
2248
+ integration_id: z.ZodUUID;
2249
+ subscription_id: z.ZodUUID;
2250
+ timestamp: z.ZodISODateTime;
2251
+ workspace_id: z.ZodUUID;
2252
+ workspace_name: z.ZodString;
2253
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2254
+ data: z.ZodObject<{
2255
+ file_import_result: z.ZodDiscriminatedUnion<[z.ZodObject<{
2256
+ imported_time: z.ZodISODateTime;
2257
+ success: z.ZodObject<{}, z.core.$strip>;
2258
+ type: z.ZodLiteral<"success">;
2259
+ }, z.core.$strip>, z.ZodObject<{
2260
+ error: z.ZodObject<{
2261
+ code: z.ZodString;
2262
+ message: z.ZodString;
2263
+ parameter: z.ZodNullable<z.ZodString>;
2264
+ status_code: z.ZodNullable<z.ZodNumber>;
2265
+ type: z.ZodEnum<{
2266
+ validation_error: "validation_error";
2267
+ internal_system_error: "internal_system_error";
2268
+ download_error: "download_error";
2269
+ upload_error: "upload_error";
2270
+ }>;
2271
+ }, z.core.$strip>;
2272
+ imported_time: z.ZodISODateTime;
2273
+ type: z.ZodLiteral<"error">;
2274
+ }, z.core.$strip>], "type">;
2275
+ }, z.core.$strip>;
2276
+ entity: z.ZodObject<{
2277
+ id: z.ZodUUID;
2278
+ type: z.ZodLiteral<"file_upload">;
2279
+ }, z.core.$strip>;
2280
+ type: z.ZodLiteral<"file_upload.upload_failed">;
2281
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2282
+ id: z.ZodUUID;
2283
+ type: z.ZodLiteral<"person">;
2284
+ }, z.core.$strip>, z.ZodObject<{
2285
+ id: z.ZodUUID;
2286
+ type: z.ZodLiteral<"bot">;
2287
+ }, z.core.$strip>], "type">>>;
2288
+ api_version: z.ZodEnum<{
2289
+ "2022-06-28": "2022-06-28";
2290
+ "2025-09-03": "2025-09-03";
2291
+ "2026-03-11": "2026-03-11";
2292
+ }>;
2293
+ attempt_number: z.ZodNumber;
2294
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2295
+ id: z.ZodUUID;
2296
+ type: z.ZodLiteral<"person">;
2297
+ }, z.core.$strip>, z.ZodObject<{
2298
+ id: z.ZodUUID;
2299
+ type: z.ZodLiteral<"bot">;
2300
+ }, z.core.$strip>, z.ZodObject<{
2301
+ id: z.ZodUUID;
2302
+ type: z.ZodLiteral<"agent">;
2303
+ }, z.core.$strip>], "type">>;
2304
+ id: z.ZodUUID;
2305
+ integration_id: z.ZodUUID;
2306
+ subscription_id: z.ZodUUID;
2307
+ timestamp: z.ZodISODateTime;
2308
+ workspace_id: z.ZodUUID;
2309
+ workspace_name: z.ZodString;
2310
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2311
+ data: z.ZodObject<{
2312
+ parent: z.ZodObject<{
2313
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2314
+ id: z.ZodUUID;
2315
+ type: z.ZodEnum<{
2316
+ team: "team";
2317
+ space: "space";
2318
+ agent: "agent";
2319
+ block: "block";
2320
+ page: "page";
2321
+ database: "database";
2322
+ }>;
2323
+ }, z.core.$strip>;
2324
+ updated_blocks: z.ZodArray<z.ZodObject<{
2325
+ id: z.ZodUUID;
2326
+ type: z.ZodEnum<{
2327
+ block: "block";
2328
+ page: "page";
2329
+ database: "database";
2330
+ }>;
2331
+ }, z.core.$strip>>;
2332
+ }, z.core.$strip>;
2333
+ entity: z.ZodObject<{
2334
+ id: z.ZodUUID;
2335
+ type: z.ZodLiteral<"page">;
2336
+ }, z.core.$strip>;
2337
+ type: z.ZodLiteral<"page.content_updated">;
2338
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2339
+ id: z.ZodUUID;
2340
+ type: z.ZodLiteral<"person">;
2341
+ }, z.core.$strip>, z.ZodObject<{
2342
+ id: z.ZodUUID;
2343
+ type: z.ZodLiteral<"bot">;
2344
+ }, z.core.$strip>], "type">>>;
2345
+ api_version: z.ZodEnum<{
2346
+ "2022-06-28": "2022-06-28";
2347
+ "2025-09-03": "2025-09-03";
2348
+ "2026-03-11": "2026-03-11";
2349
+ }>;
2350
+ attempt_number: z.ZodNumber;
2351
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2352
+ id: z.ZodUUID;
2353
+ type: z.ZodLiteral<"person">;
2354
+ }, z.core.$strip>, z.ZodObject<{
2355
+ id: z.ZodUUID;
2356
+ type: z.ZodLiteral<"bot">;
2357
+ }, z.core.$strip>, z.ZodObject<{
2358
+ id: z.ZodUUID;
2359
+ type: z.ZodLiteral<"agent">;
2360
+ }, z.core.$strip>], "type">>;
2361
+ id: z.ZodUUID;
2362
+ integration_id: z.ZodUUID;
2363
+ subscription_id: z.ZodUUID;
2364
+ timestamp: z.ZodISODateTime;
2365
+ workspace_id: z.ZodUUID;
2366
+ workspace_name: z.ZodString;
2367
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2368
+ data: z.ZodObject<{
2369
+ parent: z.ZodObject<{
2370
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2371
+ id: z.ZodUUID;
2372
+ type: z.ZodEnum<{
2373
+ team: "team";
2374
+ space: "space";
2375
+ agent: "agent";
2376
+ block: "block";
2377
+ page: "page";
2378
+ database: "database";
2379
+ }>;
2380
+ }, z.core.$strip>;
2381
+ }, z.core.$strip>;
2382
+ entity: z.ZodObject<{
2383
+ id: z.ZodUUID;
2384
+ type: z.ZodLiteral<"page">;
2385
+ }, z.core.$strip>;
2386
+ type: z.ZodLiteral<"page.created">;
2387
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2388
+ id: z.ZodUUID;
2389
+ type: z.ZodLiteral<"person">;
2390
+ }, z.core.$strip>, z.ZodObject<{
2391
+ id: z.ZodUUID;
2392
+ type: z.ZodLiteral<"bot">;
2393
+ }, z.core.$strip>], "type">>>;
2394
+ api_version: z.ZodEnum<{
2395
+ "2022-06-28": "2022-06-28";
2396
+ "2025-09-03": "2025-09-03";
2397
+ "2026-03-11": "2026-03-11";
2398
+ }>;
2399
+ attempt_number: z.ZodNumber;
2400
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2401
+ id: z.ZodUUID;
2402
+ type: z.ZodLiteral<"person">;
2403
+ }, z.core.$strip>, z.ZodObject<{
2404
+ id: z.ZodUUID;
2405
+ type: z.ZodLiteral<"bot">;
2406
+ }, z.core.$strip>, z.ZodObject<{
2407
+ id: z.ZodUUID;
2408
+ type: z.ZodLiteral<"agent">;
2409
+ }, z.core.$strip>], "type">>;
2410
+ id: z.ZodUUID;
2411
+ integration_id: z.ZodUUID;
2412
+ subscription_id: z.ZodUUID;
2413
+ timestamp: z.ZodISODateTime;
2414
+ workspace_id: z.ZodUUID;
2415
+ workspace_name: z.ZodString;
2416
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2417
+ data: z.ZodObject<{
2418
+ parent: z.ZodObject<{
2419
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2420
+ id: z.ZodUUID;
2421
+ type: z.ZodEnum<{
2422
+ team: "team";
2423
+ space: "space";
2424
+ agent: "agent";
2425
+ block: "block";
2426
+ page: "page";
2427
+ database: "database";
2428
+ }>;
2429
+ }, z.core.$strip>;
2430
+ }, z.core.$strip>;
2431
+ entity: z.ZodObject<{
2432
+ id: z.ZodUUID;
2433
+ type: z.ZodLiteral<"page">;
2434
+ }, z.core.$strip>;
2435
+ type: z.ZodLiteral<"page.deleted">;
2436
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2437
+ id: z.ZodUUID;
2438
+ type: z.ZodLiteral<"person">;
2439
+ }, z.core.$strip>, z.ZodObject<{
2440
+ id: z.ZodUUID;
2441
+ type: z.ZodLiteral<"bot">;
2442
+ }, z.core.$strip>], "type">>>;
2443
+ api_version: z.ZodEnum<{
2444
+ "2022-06-28": "2022-06-28";
2445
+ "2025-09-03": "2025-09-03";
2446
+ "2026-03-11": "2026-03-11";
2447
+ }>;
2448
+ attempt_number: z.ZodNumber;
2449
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2450
+ id: z.ZodUUID;
2451
+ type: z.ZodLiteral<"person">;
2452
+ }, z.core.$strip>, z.ZodObject<{
2453
+ id: z.ZodUUID;
2454
+ type: z.ZodLiteral<"bot">;
2455
+ }, z.core.$strip>, z.ZodObject<{
2456
+ id: z.ZodUUID;
2457
+ type: z.ZodLiteral<"agent">;
2458
+ }, z.core.$strip>], "type">>;
2459
+ id: z.ZodUUID;
2460
+ integration_id: z.ZodUUID;
2461
+ subscription_id: z.ZodUUID;
2462
+ timestamp: z.ZodISODateTime;
2463
+ workspace_id: z.ZodUUID;
2464
+ workspace_name: z.ZodString;
2465
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2466
+ data: z.ZodObject<{
2467
+ parent: z.ZodObject<{
2468
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2469
+ id: z.ZodUUID;
2470
+ type: z.ZodEnum<{
2471
+ team: "team";
2472
+ space: "space";
2473
+ agent: "agent";
2474
+ block: "block";
2475
+ page: "page";
2476
+ database: "database";
2477
+ }>;
2478
+ }, z.core.$strip>;
2479
+ }, z.core.$strip>;
2480
+ entity: z.ZodObject<{
2481
+ id: z.ZodUUID;
2482
+ type: z.ZodLiteral<"page">;
2483
+ }, z.core.$strip>;
2484
+ type: z.ZodLiteral<"page.locked">;
2485
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2486
+ id: z.ZodUUID;
2487
+ type: z.ZodLiteral<"person">;
2488
+ }, z.core.$strip>, z.ZodObject<{
2489
+ id: z.ZodUUID;
2490
+ type: z.ZodLiteral<"bot">;
2491
+ }, z.core.$strip>], "type">>>;
2492
+ api_version: z.ZodEnum<{
2493
+ "2022-06-28": "2022-06-28";
2494
+ "2025-09-03": "2025-09-03";
2495
+ "2026-03-11": "2026-03-11";
2496
+ }>;
2497
+ attempt_number: z.ZodNumber;
2498
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2499
+ id: z.ZodUUID;
2500
+ type: z.ZodLiteral<"person">;
2501
+ }, z.core.$strip>, z.ZodObject<{
2502
+ id: z.ZodUUID;
2503
+ type: z.ZodLiteral<"bot">;
2504
+ }, z.core.$strip>, z.ZodObject<{
2505
+ id: z.ZodUUID;
2506
+ type: z.ZodLiteral<"agent">;
2507
+ }, z.core.$strip>], "type">>;
2508
+ id: z.ZodUUID;
2509
+ integration_id: z.ZodUUID;
2510
+ subscription_id: z.ZodUUID;
2511
+ timestamp: z.ZodISODateTime;
2512
+ workspace_id: z.ZodUUID;
2513
+ workspace_name: z.ZodString;
2514
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2515
+ data: z.ZodObject<{
2516
+ parent: z.ZodObject<{
2517
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2518
+ id: z.ZodUUID;
2519
+ type: z.ZodEnum<{
2520
+ team: "team";
2521
+ space: "space";
2522
+ agent: "agent";
2523
+ block: "block";
2524
+ page: "page";
2525
+ database: "database";
2526
+ }>;
2527
+ }, z.core.$strip>;
2528
+ }, z.core.$strip>;
2529
+ entity: z.ZodObject<{
2530
+ id: z.ZodUUID;
2531
+ type: z.ZodLiteral<"page">;
2532
+ }, z.core.$strip>;
2533
+ type: z.ZodLiteral<"page.moved">;
2534
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2535
+ id: z.ZodUUID;
2536
+ type: z.ZodLiteral<"person">;
2537
+ }, z.core.$strip>, z.ZodObject<{
2538
+ id: z.ZodUUID;
2539
+ type: z.ZodLiteral<"bot">;
2540
+ }, z.core.$strip>], "type">>>;
2541
+ api_version: z.ZodEnum<{
2542
+ "2022-06-28": "2022-06-28";
2543
+ "2025-09-03": "2025-09-03";
2544
+ "2026-03-11": "2026-03-11";
2545
+ }>;
2546
+ attempt_number: z.ZodNumber;
2547
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2548
+ id: z.ZodUUID;
2549
+ type: z.ZodLiteral<"person">;
2550
+ }, z.core.$strip>, z.ZodObject<{
2551
+ id: z.ZodUUID;
2552
+ type: z.ZodLiteral<"bot">;
2553
+ }, z.core.$strip>, z.ZodObject<{
2554
+ id: z.ZodUUID;
2555
+ type: z.ZodLiteral<"agent">;
2556
+ }, z.core.$strip>], "type">>;
2557
+ id: z.ZodUUID;
2558
+ integration_id: z.ZodUUID;
2559
+ subscription_id: z.ZodUUID;
2560
+ timestamp: z.ZodISODateTime;
2561
+ workspace_id: z.ZodUUID;
2562
+ workspace_name: z.ZodString;
2563
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2564
+ data: z.ZodObject<{
2565
+ parent: z.ZodObject<{
2566
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2567
+ id: z.ZodUUID;
2568
+ type: z.ZodEnum<{
2569
+ team: "team";
2570
+ space: "space";
2571
+ agent: "agent";
2572
+ block: "block";
2573
+ page: "page";
2574
+ database: "database";
2575
+ }>;
2576
+ }, z.core.$strip>;
2577
+ updated_properties: z.ZodArray<z.ZodString>;
2578
+ }, z.core.$strip>;
2579
+ entity: z.ZodObject<{
2580
+ id: z.ZodUUID;
2581
+ type: z.ZodLiteral<"page">;
2582
+ }, z.core.$strip>;
2583
+ type: z.ZodLiteral<"page.properties_updated">;
2584
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2585
+ id: z.ZodUUID;
2586
+ type: z.ZodLiteral<"person">;
2587
+ }, z.core.$strip>, z.ZodObject<{
2588
+ id: z.ZodUUID;
2589
+ type: z.ZodLiteral<"bot">;
2590
+ }, z.core.$strip>], "type">>>;
2591
+ api_version: z.ZodEnum<{
2592
+ "2022-06-28": "2022-06-28";
2593
+ "2025-09-03": "2025-09-03";
2594
+ "2026-03-11": "2026-03-11";
2595
+ }>;
2596
+ attempt_number: z.ZodNumber;
2597
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2598
+ id: z.ZodUUID;
2599
+ type: z.ZodLiteral<"person">;
2600
+ }, z.core.$strip>, z.ZodObject<{
2601
+ id: z.ZodUUID;
2602
+ type: z.ZodLiteral<"bot">;
2603
+ }, z.core.$strip>, z.ZodObject<{
2604
+ id: z.ZodUUID;
2605
+ type: z.ZodLiteral<"agent">;
2606
+ }, z.core.$strip>], "type">>;
2607
+ id: z.ZodUUID;
2608
+ integration_id: z.ZodUUID;
2609
+ subscription_id: z.ZodUUID;
2610
+ timestamp: z.ZodISODateTime;
2611
+ workspace_id: z.ZodUUID;
2612
+ workspace_name: z.ZodString;
2613
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2614
+ data: z.ZodObject<{
2615
+ target: z.ZodObject<{
2616
+ id: z.ZodUUID;
2617
+ type: z.ZodEnum<{
2618
+ block: "block";
2619
+ page: "page";
2620
+ database: "database";
2621
+ }>;
2622
+ }, z.core.$strip>;
2623
+ transcript_id: z.ZodNullable<z.ZodString>;
2624
+ }, z.core.$strip>;
2625
+ entity: z.ZodObject<{
2626
+ id: z.ZodUUID;
2627
+ type: z.ZodLiteral<"page">;
2628
+ }, z.core.$strip>;
2629
+ type: z.ZodLiteral<"page.transcription_block.transcript_deleted">;
2630
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2631
+ id: z.ZodUUID;
2632
+ type: z.ZodLiteral<"person">;
2633
+ }, z.core.$strip>, z.ZodObject<{
2634
+ id: z.ZodUUID;
2635
+ type: z.ZodLiteral<"bot">;
2636
+ }, z.core.$strip>], "type">>>;
2637
+ api_version: z.ZodEnum<{
2638
+ "2022-06-28": "2022-06-28";
2639
+ "2025-09-03": "2025-09-03";
2640
+ "2026-03-11": "2026-03-11";
2641
+ }>;
2642
+ attempt_number: z.ZodNumber;
2643
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2644
+ id: z.ZodUUID;
2645
+ type: z.ZodLiteral<"person">;
2646
+ }, z.core.$strip>, z.ZodObject<{
2647
+ id: z.ZodUUID;
2648
+ type: z.ZodLiteral<"bot">;
2649
+ }, z.core.$strip>, z.ZodObject<{
2650
+ id: z.ZodUUID;
2651
+ type: z.ZodLiteral<"agent">;
2652
+ }, z.core.$strip>], "type">>;
2653
+ id: z.ZodUUID;
2654
+ integration_id: z.ZodUUID;
2655
+ subscription_id: z.ZodUUID;
2656
+ timestamp: z.ZodISODateTime;
2657
+ workspace_id: z.ZodUUID;
2658
+ workspace_name: z.ZodString;
2659
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2660
+ data: z.ZodObject<{
2661
+ parent: z.ZodObject<{
2662
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2663
+ id: z.ZodUUID;
2664
+ type: z.ZodEnum<{
2665
+ team: "team";
2666
+ space: "space";
2667
+ agent: "agent";
2668
+ block: "block";
2669
+ page: "page";
2670
+ database: "database";
2671
+ }>;
2672
+ }, z.core.$strip>;
2673
+ }, z.core.$strip>;
2674
+ entity: z.ZodObject<{
2675
+ id: z.ZodUUID;
2676
+ type: z.ZodLiteral<"page">;
2677
+ }, z.core.$strip>;
2678
+ type: z.ZodLiteral<"page.undeleted">;
2679
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2680
+ id: z.ZodUUID;
2681
+ type: z.ZodLiteral<"person">;
2682
+ }, z.core.$strip>, z.ZodObject<{
2683
+ id: z.ZodUUID;
2684
+ type: z.ZodLiteral<"bot">;
2685
+ }, z.core.$strip>], "type">>>;
2686
+ api_version: z.ZodEnum<{
2687
+ "2022-06-28": "2022-06-28";
2688
+ "2025-09-03": "2025-09-03";
2689
+ "2026-03-11": "2026-03-11";
2690
+ }>;
2691
+ attempt_number: z.ZodNumber;
2692
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2693
+ id: z.ZodUUID;
2694
+ type: z.ZodLiteral<"person">;
2695
+ }, z.core.$strip>, z.ZodObject<{
2696
+ id: z.ZodUUID;
2697
+ type: z.ZodLiteral<"bot">;
2698
+ }, z.core.$strip>, z.ZodObject<{
2699
+ id: z.ZodUUID;
2700
+ type: z.ZodLiteral<"agent">;
2701
+ }, z.core.$strip>], "type">>;
2702
+ id: z.ZodUUID;
2703
+ integration_id: z.ZodUUID;
2704
+ subscription_id: z.ZodUUID;
2705
+ timestamp: z.ZodISODateTime;
2706
+ workspace_id: z.ZodUUID;
2707
+ workspace_name: z.ZodString;
2708
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2709
+ data: z.ZodObject<{
2710
+ parent: z.ZodObject<{
2711
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2712
+ id: z.ZodUUID;
2713
+ type: z.ZodEnum<{
2714
+ team: "team";
2715
+ space: "space";
2716
+ agent: "agent";
2717
+ block: "block";
2718
+ page: "page";
2719
+ database: "database";
2720
+ }>;
2721
+ }, z.core.$strip>;
2722
+ }, z.core.$strip>;
2723
+ entity: z.ZodObject<{
2724
+ id: z.ZodUUID;
2725
+ type: z.ZodLiteral<"page">;
2726
+ }, z.core.$strip>;
2727
+ type: z.ZodLiteral<"page.unlocked">;
2728
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2729
+ id: z.ZodUUID;
2730
+ type: z.ZodLiteral<"person">;
2731
+ }, z.core.$strip>, z.ZodObject<{
2732
+ id: z.ZodUUID;
2733
+ type: z.ZodLiteral<"bot">;
2734
+ }, z.core.$strip>], "type">>>;
2735
+ api_version: z.ZodEnum<{
2736
+ "2022-06-28": "2022-06-28";
2737
+ "2025-09-03": "2025-09-03";
2738
+ "2026-03-11": "2026-03-11";
2739
+ }>;
2740
+ attempt_number: z.ZodNumber;
2741
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2742
+ id: z.ZodUUID;
2743
+ type: z.ZodLiteral<"person">;
2744
+ }, z.core.$strip>, z.ZodObject<{
2745
+ id: z.ZodUUID;
2746
+ type: z.ZodLiteral<"bot">;
2747
+ }, z.core.$strip>, z.ZodObject<{
2748
+ id: z.ZodUUID;
2749
+ type: z.ZodLiteral<"agent">;
2750
+ }, z.core.$strip>], "type">>;
2751
+ id: z.ZodUUID;
2752
+ integration_id: z.ZodUUID;
2753
+ subscription_id: z.ZodUUID;
2754
+ timestamp: z.ZodISODateTime;
2755
+ workspace_id: z.ZodUUID;
2756
+ workspace_name: z.ZodString;
2757
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2758
+ data: z.ZodObject<{
2759
+ parent: z.ZodObject<{
2760
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2761
+ id: z.ZodUUID;
2762
+ type: z.ZodEnum<{
2763
+ team: "team";
2764
+ space: "space";
2765
+ agent: "agent";
2766
+ block: "block";
2767
+ page: "page";
2768
+ database: "database";
2769
+ }>;
2770
+ }, z.core.$strip>;
2771
+ view_type: z.ZodString;
2772
+ }, z.core.$strip>;
2773
+ entity: z.ZodObject<{
2774
+ id: z.ZodUUID;
2775
+ type: z.ZodLiteral<"view">;
2776
+ }, z.core.$strip>;
2777
+ type: z.ZodLiteral<"view.created">;
2778
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2779
+ id: z.ZodUUID;
2780
+ type: z.ZodLiteral<"person">;
2781
+ }, z.core.$strip>, z.ZodObject<{
2782
+ id: z.ZodUUID;
2783
+ type: z.ZodLiteral<"bot">;
2784
+ }, z.core.$strip>], "type">>>;
2785
+ api_version: z.ZodEnum<{
2786
+ "2022-06-28": "2022-06-28";
2787
+ "2025-09-03": "2025-09-03";
2788
+ "2026-03-11": "2026-03-11";
2789
+ }>;
2790
+ attempt_number: z.ZodNumber;
2791
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2792
+ id: z.ZodUUID;
2793
+ type: z.ZodLiteral<"person">;
2794
+ }, z.core.$strip>, z.ZodObject<{
2795
+ id: z.ZodUUID;
2796
+ type: z.ZodLiteral<"bot">;
2797
+ }, z.core.$strip>, z.ZodObject<{
2798
+ id: z.ZodUUID;
2799
+ type: z.ZodLiteral<"agent">;
2800
+ }, z.core.$strip>], "type">>;
2801
+ id: z.ZodUUID;
2802
+ integration_id: z.ZodUUID;
2803
+ subscription_id: z.ZodUUID;
2804
+ timestamp: z.ZodISODateTime;
2805
+ workspace_id: z.ZodUUID;
2806
+ workspace_name: z.ZodString;
2807
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2808
+ data: z.ZodObject<{
2809
+ parent: z.ZodObject<{
2810
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2811
+ id: z.ZodUUID;
2812
+ type: z.ZodEnum<{
2813
+ team: "team";
2814
+ space: "space";
2815
+ agent: "agent";
2816
+ block: "block";
2817
+ page: "page";
2818
+ database: "database";
2819
+ }>;
2820
+ }, z.core.$strip>;
2821
+ }, z.core.$strip>;
2822
+ entity: z.ZodObject<{
2823
+ id: z.ZodUUID;
2824
+ type: z.ZodLiteral<"view">;
2825
+ }, z.core.$strip>;
2826
+ type: z.ZodLiteral<"view.deleted">;
2827
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2828
+ id: z.ZodUUID;
2829
+ type: z.ZodLiteral<"person">;
2830
+ }, z.core.$strip>, z.ZodObject<{
2831
+ id: z.ZodUUID;
2832
+ type: z.ZodLiteral<"bot">;
2833
+ }, z.core.$strip>], "type">>>;
2834
+ api_version: z.ZodEnum<{
2835
+ "2022-06-28": "2022-06-28";
2836
+ "2025-09-03": "2025-09-03";
2837
+ "2026-03-11": "2026-03-11";
2838
+ }>;
2839
+ attempt_number: z.ZodNumber;
2840
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2841
+ id: z.ZodUUID;
2842
+ type: z.ZodLiteral<"person">;
2843
+ }, z.core.$strip>, z.ZodObject<{
2844
+ id: z.ZodUUID;
2845
+ type: z.ZodLiteral<"bot">;
2846
+ }, z.core.$strip>, z.ZodObject<{
2847
+ id: z.ZodUUID;
2848
+ type: z.ZodLiteral<"agent">;
2849
+ }, z.core.$strip>], "type">>;
2850
+ id: z.ZodUUID;
2851
+ integration_id: z.ZodUUID;
2852
+ subscription_id: z.ZodUUID;
2853
+ timestamp: z.ZodISODateTime;
2854
+ workspace_id: z.ZodUUID;
2855
+ workspace_name: z.ZodString;
2856
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
2857
+ data: z.ZodObject<{
2858
+ parent: z.ZodObject<{
2859
+ data_source_id: z.ZodOptional<z.ZodUUID>;
2860
+ id: z.ZodUUID;
2861
+ type: z.ZodEnum<{
2862
+ team: "team";
2863
+ space: "space";
2864
+ agent: "agent";
2865
+ block: "block";
2866
+ page: "page";
2867
+ database: "database";
2868
+ }>;
2869
+ }, z.core.$strip>;
2870
+ updated_fields: z.ZodArray<z.ZodEnum<{
2871
+ filter: "filter";
2872
+ name: "name";
2873
+ sorts: "sorts";
2874
+ configuration: "configuration";
2875
+ }>>;
2876
+ }, z.core.$strip>;
2877
+ entity: z.ZodObject<{
2878
+ id: z.ZodUUID;
2879
+ type: z.ZodLiteral<"view">;
2880
+ }, z.core.$strip>;
2881
+ type: z.ZodLiteral<"view.updated">;
2882
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2883
+ id: z.ZodUUID;
2884
+ type: z.ZodLiteral<"person">;
2885
+ }, z.core.$strip>, z.ZodObject<{
2886
+ id: z.ZodUUID;
2887
+ type: z.ZodLiteral<"bot">;
2888
+ }, z.core.$strip>], "type">>>;
2889
+ api_version: z.ZodEnum<{
2890
+ "2022-06-28": "2022-06-28";
2891
+ "2025-09-03": "2025-09-03";
2892
+ "2026-03-11": "2026-03-11";
2893
+ }>;
2894
+ attempt_number: z.ZodNumber;
2895
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2896
+ id: z.ZodUUID;
2897
+ type: z.ZodLiteral<"person">;
2898
+ }, z.core.$strip>, z.ZodObject<{
2899
+ id: z.ZodUUID;
2900
+ type: z.ZodLiteral<"bot">;
2901
+ }, z.core.$strip>, z.ZodObject<{
2902
+ id: z.ZodUUID;
2903
+ type: z.ZodLiteral<"agent">;
2904
+ }, z.core.$strip>], "type">>;
2905
+ id: z.ZodUUID;
2906
+ integration_id: z.ZodUUID;
2907
+ subscription_id: z.ZodUUID;
2908
+ timestamp: z.ZodISODateTime;
2909
+ workspace_id: z.ZodUUID;
2910
+ workspace_name: z.ZodString;
2911
+ }, z.core.$catchall<z.ZodJSONSchema>>], "type">;
2912
+ /**
2913
+ * Runtime schema for one semantic Notion webhook event.
2914
+ *
2915
+ * @param type - Official event discriminant to require.
2916
+ */
2917
+ export declare function notionSemanticEventSchema<TType extends NotionWebhookEventType>(type: TType): z.ZodCustom<NotionSemanticWebhookEvent<TType>, NotionSemanticWebhookEvent<TType>>;
2918
+ export {};