@automate.ax/api-contract 0.88.10 → 0.89.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1454 @@
1
+ import * as z from "zod";
2
+ export declare const notionEventsContract: {
3
+ notionEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
4
+ verification_token: z.ZodString;
5
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
6
+ data: z.ZodObject<{
7
+ page_id: z.ZodUUID;
8
+ parent: z.ZodObject<{
9
+ id: z.ZodUUID;
10
+ type: z.ZodEnum<{
11
+ block: "block";
12
+ page: "page";
13
+ database: "database";
14
+ }>;
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>;
17
+ entity: z.ZodObject<{
18
+ id: z.ZodUUID;
19
+ type: z.ZodLiteral<"comment">;
20
+ }, z.core.$strip>;
21
+ type: z.ZodLiteral<"comment.created">;
22
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ id: z.ZodUUID;
24
+ type: z.ZodLiteral<"person">;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ id: z.ZodUUID;
27
+ type: z.ZodLiteral<"bot">;
28
+ }, z.core.$strip>], "type">>>;
29
+ api_version: z.ZodEnum<{
30
+ "2022-06-28": "2022-06-28";
31
+ "2025-09-03": "2025-09-03";
32
+ "2026-03-11": "2026-03-11";
33
+ }>;
34
+ attempt_number: z.ZodNumber;
35
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
36
+ id: z.ZodUUID;
37
+ type: z.ZodLiteral<"person">;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ id: z.ZodUUID;
40
+ type: z.ZodLiteral<"bot">;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ id: z.ZodUUID;
43
+ type: z.ZodLiteral<"agent">;
44
+ }, z.core.$strip>], "type">>;
45
+ id: z.ZodUUID;
46
+ integration_id: z.ZodUUID;
47
+ subscription_id: z.ZodUUID;
48
+ timestamp: z.ZodISODateTime;
49
+ workspace_id: z.ZodUUID;
50
+ workspace_name: z.ZodString;
51
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
52
+ data: z.ZodObject<{
53
+ page_id: z.ZodUUID;
54
+ parent: z.ZodObject<{
55
+ id: z.ZodUUID;
56
+ type: z.ZodEnum<{
57
+ block: "block";
58
+ page: "page";
59
+ database: "database";
60
+ }>;
61
+ }, z.core.$strip>;
62
+ }, z.core.$strip>;
63
+ entity: z.ZodObject<{
64
+ id: z.ZodUUID;
65
+ type: z.ZodLiteral<"comment">;
66
+ }, z.core.$strip>;
67
+ type: z.ZodLiteral<"comment.deleted">;
68
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
69
+ id: z.ZodUUID;
70
+ type: z.ZodLiteral<"person">;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ id: z.ZodUUID;
73
+ type: z.ZodLiteral<"bot">;
74
+ }, z.core.$strip>], "type">>>;
75
+ api_version: z.ZodEnum<{
76
+ "2022-06-28": "2022-06-28";
77
+ "2025-09-03": "2025-09-03";
78
+ "2026-03-11": "2026-03-11";
79
+ }>;
80
+ attempt_number: z.ZodNumber;
81
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
82
+ id: z.ZodUUID;
83
+ type: z.ZodLiteral<"person">;
84
+ }, z.core.$strip>, z.ZodObject<{
85
+ id: z.ZodUUID;
86
+ type: z.ZodLiteral<"bot">;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ id: z.ZodUUID;
89
+ type: z.ZodLiteral<"agent">;
90
+ }, z.core.$strip>], "type">>;
91
+ id: z.ZodUUID;
92
+ integration_id: z.ZodUUID;
93
+ subscription_id: z.ZodUUID;
94
+ timestamp: z.ZodISODateTime;
95
+ workspace_id: z.ZodUUID;
96
+ workspace_name: z.ZodString;
97
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
98
+ data: z.ZodObject<{
99
+ page_id: z.ZodUUID;
100
+ parent: z.ZodObject<{
101
+ id: z.ZodUUID;
102
+ type: z.ZodEnum<{
103
+ block: "block";
104
+ page: "page";
105
+ database: "database";
106
+ }>;
107
+ }, z.core.$strip>;
108
+ }, z.core.$strip>;
109
+ entity: z.ZodObject<{
110
+ id: z.ZodUUID;
111
+ type: z.ZodLiteral<"comment">;
112
+ }, z.core.$strip>;
113
+ type: z.ZodLiteral<"comment.updated">;
114
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
115
+ id: z.ZodUUID;
116
+ type: z.ZodLiteral<"person">;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ id: z.ZodUUID;
119
+ type: z.ZodLiteral<"bot">;
120
+ }, z.core.$strip>], "type">>>;
121
+ api_version: z.ZodEnum<{
122
+ "2022-06-28": "2022-06-28";
123
+ "2025-09-03": "2025-09-03";
124
+ "2026-03-11": "2026-03-11";
125
+ }>;
126
+ attempt_number: z.ZodNumber;
127
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
128
+ id: z.ZodUUID;
129
+ type: z.ZodLiteral<"person">;
130
+ }, z.core.$strip>, z.ZodObject<{
131
+ id: z.ZodUUID;
132
+ type: z.ZodLiteral<"bot">;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ id: z.ZodUUID;
135
+ type: z.ZodLiteral<"agent">;
136
+ }, z.core.$strip>], "type">>;
137
+ id: z.ZodUUID;
138
+ integration_id: z.ZodUUID;
139
+ subscription_id: z.ZodUUID;
140
+ timestamp: z.ZodISODateTime;
141
+ workspace_id: z.ZodUUID;
142
+ workspace_name: z.ZodString;
143
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
144
+ data: z.ZodObject<{
145
+ parent: z.ZodObject<{
146
+ data_source_id: z.ZodOptional<z.ZodUUID>;
147
+ id: z.ZodUUID;
148
+ type: z.ZodEnum<{
149
+ team: "team";
150
+ space: "space";
151
+ agent: "agent";
152
+ block: "block";
153
+ page: "page";
154
+ database: "database";
155
+ }>;
156
+ }, z.core.$strip>;
157
+ updated_blocks: z.ZodArray<z.ZodObject<{
158
+ id: z.ZodUUID;
159
+ type: z.ZodEnum<{
160
+ block: "block";
161
+ page: "page";
162
+ database: "database";
163
+ }>;
164
+ }, z.core.$strip>>;
165
+ }, z.core.$strip>;
166
+ entity: z.ZodObject<{
167
+ id: z.ZodUUID;
168
+ type: z.ZodEnum<{
169
+ block: "block";
170
+ database: "database";
171
+ data_source: "data_source";
172
+ }>;
173
+ }, z.core.$strip>;
174
+ type: z.ZodLiteral<"data_source.content_updated">;
175
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
176
+ id: z.ZodUUID;
177
+ type: z.ZodLiteral<"person">;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ id: z.ZodUUID;
180
+ type: z.ZodLiteral<"bot">;
181
+ }, z.core.$strip>], "type">>>;
182
+ api_version: z.ZodEnum<{
183
+ "2022-06-28": "2022-06-28";
184
+ "2025-09-03": "2025-09-03";
185
+ "2026-03-11": "2026-03-11";
186
+ }>;
187
+ attempt_number: z.ZodNumber;
188
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
189
+ id: z.ZodUUID;
190
+ type: z.ZodLiteral<"person">;
191
+ }, z.core.$strip>, z.ZodObject<{
192
+ id: z.ZodUUID;
193
+ type: z.ZodLiteral<"bot">;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ id: z.ZodUUID;
196
+ type: z.ZodLiteral<"agent">;
197
+ }, z.core.$strip>], "type">>;
198
+ id: z.ZodUUID;
199
+ integration_id: z.ZodUUID;
200
+ subscription_id: z.ZodUUID;
201
+ timestamp: z.ZodISODateTime;
202
+ workspace_id: z.ZodUUID;
203
+ workspace_name: z.ZodString;
204
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
205
+ data: z.ZodObject<{
206
+ parent: z.ZodObject<{
207
+ data_source_id: z.ZodOptional<z.ZodUUID>;
208
+ id: z.ZodUUID;
209
+ type: z.ZodEnum<{
210
+ team: "team";
211
+ space: "space";
212
+ agent: "agent";
213
+ block: "block";
214
+ page: "page";
215
+ database: "database";
216
+ }>;
217
+ }, z.core.$strip>;
218
+ }, z.core.$strip>;
219
+ entity: z.ZodObject<{
220
+ id: z.ZodUUID;
221
+ type: z.ZodEnum<{
222
+ block: "block";
223
+ database: "database";
224
+ data_source: "data_source";
225
+ }>;
226
+ }, z.core.$strip>;
227
+ type: z.ZodLiteral<"data_source.created">;
228
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
229
+ id: z.ZodUUID;
230
+ type: z.ZodLiteral<"person">;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ id: z.ZodUUID;
233
+ type: z.ZodLiteral<"bot">;
234
+ }, z.core.$strip>], "type">>>;
235
+ api_version: z.ZodEnum<{
236
+ "2022-06-28": "2022-06-28";
237
+ "2025-09-03": "2025-09-03";
238
+ "2026-03-11": "2026-03-11";
239
+ }>;
240
+ attempt_number: z.ZodNumber;
241
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
242
+ id: z.ZodUUID;
243
+ type: z.ZodLiteral<"person">;
244
+ }, z.core.$strip>, z.ZodObject<{
245
+ id: z.ZodUUID;
246
+ type: z.ZodLiteral<"bot">;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ id: z.ZodUUID;
249
+ type: z.ZodLiteral<"agent">;
250
+ }, z.core.$strip>], "type">>;
251
+ id: z.ZodUUID;
252
+ integration_id: z.ZodUUID;
253
+ subscription_id: z.ZodUUID;
254
+ timestamp: z.ZodISODateTime;
255
+ workspace_id: z.ZodUUID;
256
+ workspace_name: z.ZodString;
257
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
258
+ data: z.ZodObject<{
259
+ parent: z.ZodObject<{
260
+ data_source_id: z.ZodOptional<z.ZodUUID>;
261
+ id: z.ZodUUID;
262
+ type: z.ZodEnum<{
263
+ team: "team";
264
+ space: "space";
265
+ agent: "agent";
266
+ block: "block";
267
+ page: "page";
268
+ database: "database";
269
+ }>;
270
+ }, z.core.$strip>;
271
+ }, z.core.$strip>;
272
+ entity: z.ZodObject<{
273
+ id: z.ZodUUID;
274
+ type: z.ZodEnum<{
275
+ block: "block";
276
+ database: "database";
277
+ data_source: "data_source";
278
+ }>;
279
+ }, z.core.$strip>;
280
+ type: z.ZodLiteral<"data_source.deleted">;
281
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
282
+ id: z.ZodUUID;
283
+ type: z.ZodLiteral<"person">;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ id: z.ZodUUID;
286
+ type: z.ZodLiteral<"bot">;
287
+ }, z.core.$strip>], "type">>>;
288
+ api_version: z.ZodEnum<{
289
+ "2022-06-28": "2022-06-28";
290
+ "2025-09-03": "2025-09-03";
291
+ "2026-03-11": "2026-03-11";
292
+ }>;
293
+ attempt_number: z.ZodNumber;
294
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
295
+ id: z.ZodUUID;
296
+ type: z.ZodLiteral<"person">;
297
+ }, z.core.$strip>, z.ZodObject<{
298
+ id: z.ZodUUID;
299
+ type: z.ZodLiteral<"bot">;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ id: z.ZodUUID;
302
+ type: z.ZodLiteral<"agent">;
303
+ }, z.core.$strip>], "type">>;
304
+ id: z.ZodUUID;
305
+ integration_id: z.ZodUUID;
306
+ subscription_id: z.ZodUUID;
307
+ timestamp: z.ZodISODateTime;
308
+ workspace_id: z.ZodUUID;
309
+ workspace_name: z.ZodString;
310
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
311
+ data: z.ZodObject<{
312
+ parent: z.ZodObject<{
313
+ data_source_id: z.ZodOptional<z.ZodUUID>;
314
+ id: z.ZodUUID;
315
+ type: z.ZodEnum<{
316
+ team: "team";
317
+ space: "space";
318
+ agent: "agent";
319
+ block: "block";
320
+ page: "page";
321
+ database: "database";
322
+ }>;
323
+ }, z.core.$strip>;
324
+ }, z.core.$strip>;
325
+ entity: z.ZodObject<{
326
+ id: z.ZodUUID;
327
+ type: z.ZodEnum<{
328
+ block: "block";
329
+ database: "database";
330
+ data_source: "data_source";
331
+ }>;
332
+ }, z.core.$strip>;
333
+ type: z.ZodLiteral<"data_source.moved">;
334
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
335
+ id: z.ZodUUID;
336
+ type: z.ZodLiteral<"person">;
337
+ }, z.core.$strip>, z.ZodObject<{
338
+ id: z.ZodUUID;
339
+ type: z.ZodLiteral<"bot">;
340
+ }, z.core.$strip>], "type">>>;
341
+ api_version: z.ZodEnum<{
342
+ "2022-06-28": "2022-06-28";
343
+ "2025-09-03": "2025-09-03";
344
+ "2026-03-11": "2026-03-11";
345
+ }>;
346
+ attempt_number: z.ZodNumber;
347
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
348
+ id: z.ZodUUID;
349
+ type: z.ZodLiteral<"person">;
350
+ }, z.core.$strip>, z.ZodObject<{
351
+ id: z.ZodUUID;
352
+ type: z.ZodLiteral<"bot">;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ id: z.ZodUUID;
355
+ type: z.ZodLiteral<"agent">;
356
+ }, z.core.$strip>], "type">>;
357
+ id: z.ZodUUID;
358
+ integration_id: z.ZodUUID;
359
+ subscription_id: z.ZodUUID;
360
+ timestamp: z.ZodISODateTime;
361
+ workspace_id: z.ZodUUID;
362
+ workspace_name: z.ZodString;
363
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
364
+ data: z.ZodObject<{
365
+ parent: z.ZodObject<{
366
+ data_source_id: z.ZodOptional<z.ZodUUID>;
367
+ id: z.ZodUUID;
368
+ type: z.ZodEnum<{
369
+ team: "team";
370
+ space: "space";
371
+ agent: "agent";
372
+ block: "block";
373
+ page: "page";
374
+ database: "database";
375
+ }>;
376
+ }, z.core.$strip>;
377
+ updated_properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
378
+ action: z.ZodEnum<{
379
+ deleted: "deleted";
380
+ created: "created";
381
+ updated: "updated";
382
+ }>;
383
+ id: z.ZodString;
384
+ name: z.ZodNullable<z.ZodString>;
385
+ }, z.core.$strip>>>;
386
+ }, z.core.$strip>;
387
+ entity: z.ZodObject<{
388
+ id: z.ZodUUID;
389
+ type: z.ZodEnum<{
390
+ block: "block";
391
+ database: "database";
392
+ data_source: "data_source";
393
+ }>;
394
+ }, z.core.$strip>;
395
+ type: z.ZodLiteral<"data_source.schema_updated">;
396
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
397
+ id: z.ZodUUID;
398
+ type: z.ZodLiteral<"person">;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ id: z.ZodUUID;
401
+ type: z.ZodLiteral<"bot">;
402
+ }, z.core.$strip>], "type">>>;
403
+ api_version: z.ZodEnum<{
404
+ "2022-06-28": "2022-06-28";
405
+ "2025-09-03": "2025-09-03";
406
+ "2026-03-11": "2026-03-11";
407
+ }>;
408
+ attempt_number: z.ZodNumber;
409
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
410
+ id: z.ZodUUID;
411
+ type: z.ZodLiteral<"person">;
412
+ }, z.core.$strip>, z.ZodObject<{
413
+ id: z.ZodUUID;
414
+ type: z.ZodLiteral<"bot">;
415
+ }, z.core.$strip>, z.ZodObject<{
416
+ id: z.ZodUUID;
417
+ type: z.ZodLiteral<"agent">;
418
+ }, z.core.$strip>], "type">>;
419
+ id: z.ZodUUID;
420
+ integration_id: z.ZodUUID;
421
+ subscription_id: z.ZodUUID;
422
+ timestamp: z.ZodISODateTime;
423
+ workspace_id: z.ZodUUID;
424
+ workspace_name: z.ZodString;
425
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
426
+ data: z.ZodObject<{
427
+ parent: z.ZodObject<{
428
+ data_source_id: z.ZodOptional<z.ZodUUID>;
429
+ id: z.ZodUUID;
430
+ type: z.ZodEnum<{
431
+ team: "team";
432
+ space: "space";
433
+ agent: "agent";
434
+ block: "block";
435
+ page: "page";
436
+ database: "database";
437
+ }>;
438
+ }, z.core.$strip>;
439
+ }, z.core.$strip>;
440
+ entity: z.ZodObject<{
441
+ id: z.ZodUUID;
442
+ type: z.ZodEnum<{
443
+ block: "block";
444
+ database: "database";
445
+ data_source: "data_source";
446
+ }>;
447
+ }, z.core.$strip>;
448
+ type: z.ZodLiteral<"data_source.undeleted">;
449
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
450
+ id: z.ZodUUID;
451
+ type: z.ZodLiteral<"person">;
452
+ }, z.core.$strip>, z.ZodObject<{
453
+ id: z.ZodUUID;
454
+ type: z.ZodLiteral<"bot">;
455
+ }, z.core.$strip>], "type">>>;
456
+ api_version: z.ZodEnum<{
457
+ "2022-06-28": "2022-06-28";
458
+ "2025-09-03": "2025-09-03";
459
+ "2026-03-11": "2026-03-11";
460
+ }>;
461
+ attempt_number: z.ZodNumber;
462
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
463
+ id: z.ZodUUID;
464
+ type: z.ZodLiteral<"person">;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ id: z.ZodUUID;
467
+ type: z.ZodLiteral<"bot">;
468
+ }, z.core.$strip>, z.ZodObject<{
469
+ id: z.ZodUUID;
470
+ type: z.ZodLiteral<"agent">;
471
+ }, z.core.$strip>], "type">>;
472
+ id: z.ZodUUID;
473
+ integration_id: z.ZodUUID;
474
+ subscription_id: z.ZodUUID;
475
+ timestamp: z.ZodISODateTime;
476
+ workspace_id: z.ZodUUID;
477
+ workspace_name: z.ZodString;
478
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
479
+ data: z.ZodObject<{
480
+ parent: z.ZodObject<{
481
+ data_source_id: z.ZodOptional<z.ZodUUID>;
482
+ id: z.ZodUUID;
483
+ type: z.ZodEnum<{
484
+ team: "team";
485
+ space: "space";
486
+ agent: "agent";
487
+ block: "block";
488
+ page: "page";
489
+ database: "database";
490
+ }>;
491
+ }, z.core.$strip>;
492
+ }, z.core.$strip>;
493
+ entity: z.ZodObject<{
494
+ id: z.ZodUUID;
495
+ type: z.ZodEnum<{
496
+ block: "block";
497
+ database: "database";
498
+ data_source: "data_source";
499
+ }>;
500
+ }, z.core.$strip>;
501
+ type: z.ZodLiteral<"database.created">;
502
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
503
+ id: z.ZodUUID;
504
+ type: z.ZodLiteral<"person">;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ id: z.ZodUUID;
507
+ type: z.ZodLiteral<"bot">;
508
+ }, z.core.$strip>], "type">>>;
509
+ api_version: z.ZodEnum<{
510
+ "2022-06-28": "2022-06-28";
511
+ "2025-09-03": "2025-09-03";
512
+ "2026-03-11": "2026-03-11";
513
+ }>;
514
+ attempt_number: z.ZodNumber;
515
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
516
+ id: z.ZodUUID;
517
+ type: z.ZodLiteral<"person">;
518
+ }, z.core.$strip>, z.ZodObject<{
519
+ id: z.ZodUUID;
520
+ type: z.ZodLiteral<"bot">;
521
+ }, z.core.$strip>, z.ZodObject<{
522
+ id: z.ZodUUID;
523
+ type: z.ZodLiteral<"agent">;
524
+ }, z.core.$strip>], "type">>;
525
+ id: z.ZodUUID;
526
+ integration_id: z.ZodUUID;
527
+ subscription_id: z.ZodUUID;
528
+ timestamp: z.ZodISODateTime;
529
+ workspace_id: z.ZodUUID;
530
+ workspace_name: z.ZodString;
531
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
532
+ data: z.ZodObject<{
533
+ parent: z.ZodObject<{
534
+ data_source_id: z.ZodOptional<z.ZodUUID>;
535
+ id: z.ZodUUID;
536
+ type: z.ZodEnum<{
537
+ team: "team";
538
+ space: "space";
539
+ agent: "agent";
540
+ block: "block";
541
+ page: "page";
542
+ database: "database";
543
+ }>;
544
+ }, z.core.$strip>;
545
+ }, z.core.$strip>;
546
+ entity: z.ZodObject<{
547
+ id: z.ZodUUID;
548
+ type: z.ZodEnum<{
549
+ block: "block";
550
+ database: "database";
551
+ data_source: "data_source";
552
+ }>;
553
+ }, z.core.$strip>;
554
+ type: z.ZodLiteral<"database.deleted">;
555
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
556
+ id: z.ZodUUID;
557
+ type: z.ZodLiteral<"person">;
558
+ }, z.core.$strip>, z.ZodObject<{
559
+ id: z.ZodUUID;
560
+ type: z.ZodLiteral<"bot">;
561
+ }, z.core.$strip>], "type">>>;
562
+ api_version: z.ZodEnum<{
563
+ "2022-06-28": "2022-06-28";
564
+ "2025-09-03": "2025-09-03";
565
+ "2026-03-11": "2026-03-11";
566
+ }>;
567
+ attempt_number: z.ZodNumber;
568
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
569
+ id: z.ZodUUID;
570
+ type: z.ZodLiteral<"person">;
571
+ }, z.core.$strip>, z.ZodObject<{
572
+ id: z.ZodUUID;
573
+ type: z.ZodLiteral<"bot">;
574
+ }, z.core.$strip>, z.ZodObject<{
575
+ id: z.ZodUUID;
576
+ type: z.ZodLiteral<"agent">;
577
+ }, z.core.$strip>], "type">>;
578
+ id: z.ZodUUID;
579
+ integration_id: z.ZodUUID;
580
+ subscription_id: z.ZodUUID;
581
+ timestamp: z.ZodISODateTime;
582
+ workspace_id: z.ZodUUID;
583
+ workspace_name: z.ZodString;
584
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
585
+ data: z.ZodObject<{
586
+ parent: z.ZodObject<{
587
+ data_source_id: z.ZodOptional<z.ZodUUID>;
588
+ id: z.ZodUUID;
589
+ type: z.ZodEnum<{
590
+ team: "team";
591
+ space: "space";
592
+ agent: "agent";
593
+ block: "block";
594
+ page: "page";
595
+ database: "database";
596
+ }>;
597
+ }, z.core.$strip>;
598
+ }, z.core.$strip>;
599
+ entity: z.ZodObject<{
600
+ id: z.ZodUUID;
601
+ type: z.ZodEnum<{
602
+ block: "block";
603
+ database: "database";
604
+ data_source: "data_source";
605
+ }>;
606
+ }, z.core.$strip>;
607
+ type: z.ZodLiteral<"database.moved">;
608
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
609
+ id: z.ZodUUID;
610
+ type: z.ZodLiteral<"person">;
611
+ }, z.core.$strip>, z.ZodObject<{
612
+ id: z.ZodUUID;
613
+ type: z.ZodLiteral<"bot">;
614
+ }, z.core.$strip>], "type">>>;
615
+ api_version: z.ZodEnum<{
616
+ "2022-06-28": "2022-06-28";
617
+ "2025-09-03": "2025-09-03";
618
+ "2026-03-11": "2026-03-11";
619
+ }>;
620
+ attempt_number: z.ZodNumber;
621
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
622
+ id: z.ZodUUID;
623
+ type: z.ZodLiteral<"person">;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ id: z.ZodUUID;
626
+ type: z.ZodLiteral<"bot">;
627
+ }, z.core.$strip>, z.ZodObject<{
628
+ id: z.ZodUUID;
629
+ type: z.ZodLiteral<"agent">;
630
+ }, z.core.$strip>], "type">>;
631
+ id: z.ZodUUID;
632
+ integration_id: z.ZodUUID;
633
+ subscription_id: z.ZodUUID;
634
+ timestamp: z.ZodISODateTime;
635
+ workspace_id: z.ZodUUID;
636
+ workspace_name: z.ZodString;
637
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
638
+ data: z.ZodObject<{
639
+ parent: z.ZodObject<{
640
+ data_source_id: z.ZodOptional<z.ZodUUID>;
641
+ id: z.ZodUUID;
642
+ type: z.ZodEnum<{
643
+ team: "team";
644
+ space: "space";
645
+ agent: "agent";
646
+ block: "block";
647
+ page: "page";
648
+ database: "database";
649
+ }>;
650
+ }, z.core.$strip>;
651
+ }, z.core.$strip>;
652
+ entity: z.ZodObject<{
653
+ id: z.ZodUUID;
654
+ type: z.ZodEnum<{
655
+ block: "block";
656
+ database: "database";
657
+ data_source: "data_source";
658
+ }>;
659
+ }, z.core.$strip>;
660
+ type: z.ZodLiteral<"database.undeleted">;
661
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
662
+ id: z.ZodUUID;
663
+ type: z.ZodLiteral<"person">;
664
+ }, z.core.$strip>, z.ZodObject<{
665
+ id: z.ZodUUID;
666
+ type: z.ZodLiteral<"bot">;
667
+ }, z.core.$strip>], "type">>>;
668
+ api_version: z.ZodEnum<{
669
+ "2022-06-28": "2022-06-28";
670
+ "2025-09-03": "2025-09-03";
671
+ "2026-03-11": "2026-03-11";
672
+ }>;
673
+ attempt_number: z.ZodNumber;
674
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
675
+ id: z.ZodUUID;
676
+ type: z.ZodLiteral<"person">;
677
+ }, z.core.$strip>, z.ZodObject<{
678
+ id: z.ZodUUID;
679
+ type: z.ZodLiteral<"bot">;
680
+ }, z.core.$strip>, z.ZodObject<{
681
+ id: z.ZodUUID;
682
+ type: z.ZodLiteral<"agent">;
683
+ }, z.core.$strip>], "type">>;
684
+ id: z.ZodUUID;
685
+ integration_id: z.ZodUUID;
686
+ subscription_id: z.ZodUUID;
687
+ timestamp: z.ZodISODateTime;
688
+ workspace_id: z.ZodUUID;
689
+ workspace_name: z.ZodString;
690
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
691
+ entity: z.ZodObject<{
692
+ id: z.ZodUUID;
693
+ type: z.ZodLiteral<"file_upload">;
694
+ }, z.core.$strip>;
695
+ type: z.ZodLiteral<"file_upload.completed">;
696
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
697
+ id: z.ZodUUID;
698
+ type: z.ZodLiteral<"person">;
699
+ }, z.core.$strip>, z.ZodObject<{
700
+ id: z.ZodUUID;
701
+ type: z.ZodLiteral<"bot">;
702
+ }, z.core.$strip>], "type">>>;
703
+ api_version: z.ZodEnum<{
704
+ "2022-06-28": "2022-06-28";
705
+ "2025-09-03": "2025-09-03";
706
+ "2026-03-11": "2026-03-11";
707
+ }>;
708
+ attempt_number: z.ZodNumber;
709
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
710
+ id: z.ZodUUID;
711
+ type: z.ZodLiteral<"person">;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ id: z.ZodUUID;
714
+ type: z.ZodLiteral<"bot">;
715
+ }, z.core.$strip>, z.ZodObject<{
716
+ id: z.ZodUUID;
717
+ type: z.ZodLiteral<"agent">;
718
+ }, z.core.$strip>], "type">>;
719
+ id: z.ZodUUID;
720
+ integration_id: z.ZodUUID;
721
+ subscription_id: z.ZodUUID;
722
+ timestamp: z.ZodISODateTime;
723
+ workspace_id: z.ZodUUID;
724
+ workspace_name: z.ZodString;
725
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
726
+ entity: z.ZodObject<{
727
+ id: z.ZodUUID;
728
+ type: z.ZodLiteral<"file_upload">;
729
+ }, z.core.$strip>;
730
+ type: z.ZodLiteral<"file_upload.created">;
731
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
732
+ id: z.ZodUUID;
733
+ type: z.ZodLiteral<"person">;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ id: z.ZodUUID;
736
+ type: z.ZodLiteral<"bot">;
737
+ }, z.core.$strip>], "type">>>;
738
+ api_version: z.ZodEnum<{
739
+ "2022-06-28": "2022-06-28";
740
+ "2025-09-03": "2025-09-03";
741
+ "2026-03-11": "2026-03-11";
742
+ }>;
743
+ attempt_number: z.ZodNumber;
744
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
745
+ id: z.ZodUUID;
746
+ type: z.ZodLiteral<"person">;
747
+ }, z.core.$strip>, z.ZodObject<{
748
+ id: z.ZodUUID;
749
+ type: z.ZodLiteral<"bot">;
750
+ }, z.core.$strip>, z.ZodObject<{
751
+ id: z.ZodUUID;
752
+ type: z.ZodLiteral<"agent">;
753
+ }, z.core.$strip>], "type">>;
754
+ id: z.ZodUUID;
755
+ integration_id: z.ZodUUID;
756
+ subscription_id: z.ZodUUID;
757
+ timestamp: z.ZodISODateTime;
758
+ workspace_id: z.ZodUUID;
759
+ workspace_name: z.ZodString;
760
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
761
+ entity: z.ZodObject<{
762
+ id: z.ZodUUID;
763
+ type: z.ZodLiteral<"file_upload">;
764
+ }, z.core.$strip>;
765
+ type: z.ZodLiteral<"file_upload.expired">;
766
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
767
+ id: z.ZodUUID;
768
+ type: z.ZodLiteral<"person">;
769
+ }, z.core.$strip>, z.ZodObject<{
770
+ id: z.ZodUUID;
771
+ type: z.ZodLiteral<"bot">;
772
+ }, z.core.$strip>], "type">>>;
773
+ api_version: z.ZodEnum<{
774
+ "2022-06-28": "2022-06-28";
775
+ "2025-09-03": "2025-09-03";
776
+ "2026-03-11": "2026-03-11";
777
+ }>;
778
+ attempt_number: z.ZodNumber;
779
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
780
+ id: z.ZodUUID;
781
+ type: z.ZodLiteral<"person">;
782
+ }, z.core.$strip>, z.ZodObject<{
783
+ id: z.ZodUUID;
784
+ type: z.ZodLiteral<"bot">;
785
+ }, z.core.$strip>, z.ZodObject<{
786
+ id: z.ZodUUID;
787
+ type: z.ZodLiteral<"agent">;
788
+ }, z.core.$strip>], "type">>;
789
+ id: z.ZodUUID;
790
+ integration_id: z.ZodUUID;
791
+ subscription_id: z.ZodUUID;
792
+ timestamp: z.ZodISODateTime;
793
+ workspace_id: z.ZodUUID;
794
+ workspace_name: z.ZodString;
795
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
796
+ data: z.ZodObject<{
797
+ file_import_result: z.ZodDiscriminatedUnion<[z.ZodObject<{
798
+ imported_time: z.ZodISODateTime;
799
+ success: z.ZodObject<{}, z.core.$strip>;
800
+ type: z.ZodLiteral<"success">;
801
+ }, z.core.$strip>, z.ZodObject<{
802
+ error: z.ZodObject<{
803
+ code: z.ZodString;
804
+ message: z.ZodString;
805
+ parameter: z.ZodNullable<z.ZodString>;
806
+ status_code: z.ZodNullable<z.ZodNumber>;
807
+ type: z.ZodEnum<{
808
+ validation_error: "validation_error";
809
+ internal_system_error: "internal_system_error";
810
+ download_error: "download_error";
811
+ upload_error: "upload_error";
812
+ }>;
813
+ }, z.core.$strip>;
814
+ imported_time: z.ZodISODateTime;
815
+ type: z.ZodLiteral<"error">;
816
+ }, z.core.$strip>], "type">;
817
+ }, z.core.$strip>;
818
+ entity: z.ZodObject<{
819
+ id: z.ZodUUID;
820
+ type: z.ZodLiteral<"file_upload">;
821
+ }, z.core.$strip>;
822
+ type: z.ZodLiteral<"file_upload.upload_failed">;
823
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
824
+ id: z.ZodUUID;
825
+ type: z.ZodLiteral<"person">;
826
+ }, z.core.$strip>, z.ZodObject<{
827
+ id: z.ZodUUID;
828
+ type: z.ZodLiteral<"bot">;
829
+ }, z.core.$strip>], "type">>>;
830
+ api_version: z.ZodEnum<{
831
+ "2022-06-28": "2022-06-28";
832
+ "2025-09-03": "2025-09-03";
833
+ "2026-03-11": "2026-03-11";
834
+ }>;
835
+ attempt_number: z.ZodNumber;
836
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
837
+ id: z.ZodUUID;
838
+ type: z.ZodLiteral<"person">;
839
+ }, z.core.$strip>, z.ZodObject<{
840
+ id: z.ZodUUID;
841
+ type: z.ZodLiteral<"bot">;
842
+ }, z.core.$strip>, z.ZodObject<{
843
+ id: z.ZodUUID;
844
+ type: z.ZodLiteral<"agent">;
845
+ }, z.core.$strip>], "type">>;
846
+ id: z.ZodUUID;
847
+ integration_id: z.ZodUUID;
848
+ subscription_id: z.ZodUUID;
849
+ timestamp: z.ZodISODateTime;
850
+ workspace_id: z.ZodUUID;
851
+ workspace_name: z.ZodString;
852
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
853
+ data: z.ZodObject<{
854
+ parent: z.ZodObject<{
855
+ data_source_id: z.ZodOptional<z.ZodUUID>;
856
+ id: z.ZodUUID;
857
+ type: z.ZodEnum<{
858
+ team: "team";
859
+ space: "space";
860
+ agent: "agent";
861
+ block: "block";
862
+ page: "page";
863
+ database: "database";
864
+ }>;
865
+ }, z.core.$strip>;
866
+ updated_blocks: z.ZodArray<z.ZodObject<{
867
+ id: z.ZodUUID;
868
+ type: z.ZodEnum<{
869
+ block: "block";
870
+ page: "page";
871
+ database: "database";
872
+ }>;
873
+ }, z.core.$strip>>;
874
+ }, z.core.$strip>;
875
+ entity: z.ZodObject<{
876
+ id: z.ZodUUID;
877
+ type: z.ZodLiteral<"page">;
878
+ }, z.core.$strip>;
879
+ type: z.ZodLiteral<"page.content_updated">;
880
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
881
+ id: z.ZodUUID;
882
+ type: z.ZodLiteral<"person">;
883
+ }, z.core.$strip>, z.ZodObject<{
884
+ id: z.ZodUUID;
885
+ type: z.ZodLiteral<"bot">;
886
+ }, z.core.$strip>], "type">>>;
887
+ api_version: z.ZodEnum<{
888
+ "2022-06-28": "2022-06-28";
889
+ "2025-09-03": "2025-09-03";
890
+ "2026-03-11": "2026-03-11";
891
+ }>;
892
+ attempt_number: z.ZodNumber;
893
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
894
+ id: z.ZodUUID;
895
+ type: z.ZodLiteral<"person">;
896
+ }, z.core.$strip>, z.ZodObject<{
897
+ id: z.ZodUUID;
898
+ type: z.ZodLiteral<"bot">;
899
+ }, z.core.$strip>, z.ZodObject<{
900
+ id: z.ZodUUID;
901
+ type: z.ZodLiteral<"agent">;
902
+ }, z.core.$strip>], "type">>;
903
+ id: z.ZodUUID;
904
+ integration_id: z.ZodUUID;
905
+ subscription_id: z.ZodUUID;
906
+ timestamp: z.ZodISODateTime;
907
+ workspace_id: z.ZodUUID;
908
+ workspace_name: z.ZodString;
909
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
910
+ data: z.ZodObject<{
911
+ parent: z.ZodObject<{
912
+ data_source_id: z.ZodOptional<z.ZodUUID>;
913
+ id: z.ZodUUID;
914
+ type: z.ZodEnum<{
915
+ team: "team";
916
+ space: "space";
917
+ agent: "agent";
918
+ block: "block";
919
+ page: "page";
920
+ database: "database";
921
+ }>;
922
+ }, z.core.$strip>;
923
+ }, z.core.$strip>;
924
+ entity: z.ZodObject<{
925
+ id: z.ZodUUID;
926
+ type: z.ZodLiteral<"page">;
927
+ }, z.core.$strip>;
928
+ type: z.ZodLiteral<"page.created">;
929
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
930
+ id: z.ZodUUID;
931
+ type: z.ZodLiteral<"person">;
932
+ }, z.core.$strip>, z.ZodObject<{
933
+ id: z.ZodUUID;
934
+ type: z.ZodLiteral<"bot">;
935
+ }, z.core.$strip>], "type">>>;
936
+ api_version: z.ZodEnum<{
937
+ "2022-06-28": "2022-06-28";
938
+ "2025-09-03": "2025-09-03";
939
+ "2026-03-11": "2026-03-11";
940
+ }>;
941
+ attempt_number: z.ZodNumber;
942
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
943
+ id: z.ZodUUID;
944
+ type: z.ZodLiteral<"person">;
945
+ }, z.core.$strip>, z.ZodObject<{
946
+ id: z.ZodUUID;
947
+ type: z.ZodLiteral<"bot">;
948
+ }, z.core.$strip>, z.ZodObject<{
949
+ id: z.ZodUUID;
950
+ type: z.ZodLiteral<"agent">;
951
+ }, z.core.$strip>], "type">>;
952
+ id: z.ZodUUID;
953
+ integration_id: z.ZodUUID;
954
+ subscription_id: z.ZodUUID;
955
+ timestamp: z.ZodISODateTime;
956
+ workspace_id: z.ZodUUID;
957
+ workspace_name: z.ZodString;
958
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
959
+ data: z.ZodObject<{
960
+ parent: z.ZodObject<{
961
+ data_source_id: z.ZodOptional<z.ZodUUID>;
962
+ id: z.ZodUUID;
963
+ type: z.ZodEnum<{
964
+ team: "team";
965
+ space: "space";
966
+ agent: "agent";
967
+ block: "block";
968
+ page: "page";
969
+ database: "database";
970
+ }>;
971
+ }, z.core.$strip>;
972
+ }, z.core.$strip>;
973
+ entity: z.ZodObject<{
974
+ id: z.ZodUUID;
975
+ type: z.ZodLiteral<"page">;
976
+ }, z.core.$strip>;
977
+ type: z.ZodLiteral<"page.deleted">;
978
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
979
+ id: z.ZodUUID;
980
+ type: z.ZodLiteral<"person">;
981
+ }, z.core.$strip>, z.ZodObject<{
982
+ id: z.ZodUUID;
983
+ type: z.ZodLiteral<"bot">;
984
+ }, z.core.$strip>], "type">>>;
985
+ api_version: z.ZodEnum<{
986
+ "2022-06-28": "2022-06-28";
987
+ "2025-09-03": "2025-09-03";
988
+ "2026-03-11": "2026-03-11";
989
+ }>;
990
+ attempt_number: z.ZodNumber;
991
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
992
+ id: z.ZodUUID;
993
+ type: z.ZodLiteral<"person">;
994
+ }, z.core.$strip>, z.ZodObject<{
995
+ id: z.ZodUUID;
996
+ type: z.ZodLiteral<"bot">;
997
+ }, z.core.$strip>, z.ZodObject<{
998
+ id: z.ZodUUID;
999
+ type: z.ZodLiteral<"agent">;
1000
+ }, z.core.$strip>], "type">>;
1001
+ id: z.ZodUUID;
1002
+ integration_id: z.ZodUUID;
1003
+ subscription_id: z.ZodUUID;
1004
+ timestamp: z.ZodISODateTime;
1005
+ workspace_id: z.ZodUUID;
1006
+ workspace_name: z.ZodString;
1007
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1008
+ data: z.ZodObject<{
1009
+ parent: z.ZodObject<{
1010
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1011
+ id: z.ZodUUID;
1012
+ type: z.ZodEnum<{
1013
+ team: "team";
1014
+ space: "space";
1015
+ agent: "agent";
1016
+ block: "block";
1017
+ page: "page";
1018
+ database: "database";
1019
+ }>;
1020
+ }, z.core.$strip>;
1021
+ }, z.core.$strip>;
1022
+ entity: z.ZodObject<{
1023
+ id: z.ZodUUID;
1024
+ type: z.ZodLiteral<"page">;
1025
+ }, z.core.$strip>;
1026
+ type: z.ZodLiteral<"page.locked">;
1027
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1028
+ id: z.ZodUUID;
1029
+ type: z.ZodLiteral<"person">;
1030
+ }, z.core.$strip>, z.ZodObject<{
1031
+ id: z.ZodUUID;
1032
+ type: z.ZodLiteral<"bot">;
1033
+ }, z.core.$strip>], "type">>>;
1034
+ api_version: z.ZodEnum<{
1035
+ "2022-06-28": "2022-06-28";
1036
+ "2025-09-03": "2025-09-03";
1037
+ "2026-03-11": "2026-03-11";
1038
+ }>;
1039
+ attempt_number: z.ZodNumber;
1040
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1041
+ id: z.ZodUUID;
1042
+ type: z.ZodLiteral<"person">;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ id: z.ZodUUID;
1045
+ type: z.ZodLiteral<"bot">;
1046
+ }, z.core.$strip>, z.ZodObject<{
1047
+ id: z.ZodUUID;
1048
+ type: z.ZodLiteral<"agent">;
1049
+ }, z.core.$strip>], "type">>;
1050
+ id: z.ZodUUID;
1051
+ integration_id: z.ZodUUID;
1052
+ subscription_id: z.ZodUUID;
1053
+ timestamp: z.ZodISODateTime;
1054
+ workspace_id: z.ZodUUID;
1055
+ workspace_name: z.ZodString;
1056
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1057
+ data: z.ZodObject<{
1058
+ parent: z.ZodObject<{
1059
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1060
+ id: z.ZodUUID;
1061
+ type: z.ZodEnum<{
1062
+ team: "team";
1063
+ space: "space";
1064
+ agent: "agent";
1065
+ block: "block";
1066
+ page: "page";
1067
+ database: "database";
1068
+ }>;
1069
+ }, z.core.$strip>;
1070
+ }, z.core.$strip>;
1071
+ entity: z.ZodObject<{
1072
+ id: z.ZodUUID;
1073
+ type: z.ZodLiteral<"page">;
1074
+ }, z.core.$strip>;
1075
+ type: z.ZodLiteral<"page.moved">;
1076
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1077
+ id: z.ZodUUID;
1078
+ type: z.ZodLiteral<"person">;
1079
+ }, z.core.$strip>, z.ZodObject<{
1080
+ id: z.ZodUUID;
1081
+ type: z.ZodLiteral<"bot">;
1082
+ }, z.core.$strip>], "type">>>;
1083
+ api_version: z.ZodEnum<{
1084
+ "2022-06-28": "2022-06-28";
1085
+ "2025-09-03": "2025-09-03";
1086
+ "2026-03-11": "2026-03-11";
1087
+ }>;
1088
+ attempt_number: z.ZodNumber;
1089
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1090
+ id: z.ZodUUID;
1091
+ type: z.ZodLiteral<"person">;
1092
+ }, z.core.$strip>, z.ZodObject<{
1093
+ id: z.ZodUUID;
1094
+ type: z.ZodLiteral<"bot">;
1095
+ }, z.core.$strip>, z.ZodObject<{
1096
+ id: z.ZodUUID;
1097
+ type: z.ZodLiteral<"agent">;
1098
+ }, z.core.$strip>], "type">>;
1099
+ id: z.ZodUUID;
1100
+ integration_id: z.ZodUUID;
1101
+ subscription_id: z.ZodUUID;
1102
+ timestamp: z.ZodISODateTime;
1103
+ workspace_id: z.ZodUUID;
1104
+ workspace_name: z.ZodString;
1105
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1106
+ data: z.ZodObject<{
1107
+ parent: z.ZodObject<{
1108
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1109
+ id: z.ZodUUID;
1110
+ type: z.ZodEnum<{
1111
+ team: "team";
1112
+ space: "space";
1113
+ agent: "agent";
1114
+ block: "block";
1115
+ page: "page";
1116
+ database: "database";
1117
+ }>;
1118
+ }, z.core.$strip>;
1119
+ updated_properties: z.ZodArray<z.ZodString>;
1120
+ }, z.core.$strip>;
1121
+ entity: z.ZodObject<{
1122
+ id: z.ZodUUID;
1123
+ type: z.ZodLiteral<"page">;
1124
+ }, z.core.$strip>;
1125
+ type: z.ZodLiteral<"page.properties_updated">;
1126
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1127
+ id: z.ZodUUID;
1128
+ type: z.ZodLiteral<"person">;
1129
+ }, z.core.$strip>, z.ZodObject<{
1130
+ id: z.ZodUUID;
1131
+ type: z.ZodLiteral<"bot">;
1132
+ }, z.core.$strip>], "type">>>;
1133
+ api_version: z.ZodEnum<{
1134
+ "2022-06-28": "2022-06-28";
1135
+ "2025-09-03": "2025-09-03";
1136
+ "2026-03-11": "2026-03-11";
1137
+ }>;
1138
+ attempt_number: z.ZodNumber;
1139
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1140
+ id: z.ZodUUID;
1141
+ type: z.ZodLiteral<"person">;
1142
+ }, z.core.$strip>, z.ZodObject<{
1143
+ id: z.ZodUUID;
1144
+ type: z.ZodLiteral<"bot">;
1145
+ }, z.core.$strip>, z.ZodObject<{
1146
+ id: z.ZodUUID;
1147
+ type: z.ZodLiteral<"agent">;
1148
+ }, z.core.$strip>], "type">>;
1149
+ id: z.ZodUUID;
1150
+ integration_id: z.ZodUUID;
1151
+ subscription_id: z.ZodUUID;
1152
+ timestamp: z.ZodISODateTime;
1153
+ workspace_id: z.ZodUUID;
1154
+ workspace_name: z.ZodString;
1155
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1156
+ data: z.ZodObject<{
1157
+ target: z.ZodObject<{
1158
+ id: z.ZodUUID;
1159
+ type: z.ZodEnum<{
1160
+ block: "block";
1161
+ page: "page";
1162
+ database: "database";
1163
+ }>;
1164
+ }, z.core.$strip>;
1165
+ transcript_id: z.ZodNullable<z.ZodString>;
1166
+ }, z.core.$strip>;
1167
+ entity: z.ZodObject<{
1168
+ id: z.ZodUUID;
1169
+ type: z.ZodLiteral<"page">;
1170
+ }, z.core.$strip>;
1171
+ type: z.ZodLiteral<"page.transcription_block.transcript_deleted">;
1172
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1173
+ id: z.ZodUUID;
1174
+ type: z.ZodLiteral<"person">;
1175
+ }, z.core.$strip>, z.ZodObject<{
1176
+ id: z.ZodUUID;
1177
+ type: z.ZodLiteral<"bot">;
1178
+ }, z.core.$strip>], "type">>>;
1179
+ api_version: z.ZodEnum<{
1180
+ "2022-06-28": "2022-06-28";
1181
+ "2025-09-03": "2025-09-03";
1182
+ "2026-03-11": "2026-03-11";
1183
+ }>;
1184
+ attempt_number: z.ZodNumber;
1185
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1186
+ id: z.ZodUUID;
1187
+ type: z.ZodLiteral<"person">;
1188
+ }, z.core.$strip>, z.ZodObject<{
1189
+ id: z.ZodUUID;
1190
+ type: z.ZodLiteral<"bot">;
1191
+ }, z.core.$strip>, z.ZodObject<{
1192
+ id: z.ZodUUID;
1193
+ type: z.ZodLiteral<"agent">;
1194
+ }, z.core.$strip>], "type">>;
1195
+ id: z.ZodUUID;
1196
+ integration_id: z.ZodUUID;
1197
+ subscription_id: z.ZodUUID;
1198
+ timestamp: z.ZodISODateTime;
1199
+ workspace_id: z.ZodUUID;
1200
+ workspace_name: z.ZodString;
1201
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1202
+ data: z.ZodObject<{
1203
+ parent: z.ZodObject<{
1204
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1205
+ id: z.ZodUUID;
1206
+ type: z.ZodEnum<{
1207
+ team: "team";
1208
+ space: "space";
1209
+ agent: "agent";
1210
+ block: "block";
1211
+ page: "page";
1212
+ database: "database";
1213
+ }>;
1214
+ }, z.core.$strip>;
1215
+ }, z.core.$strip>;
1216
+ entity: z.ZodObject<{
1217
+ id: z.ZodUUID;
1218
+ type: z.ZodLiteral<"page">;
1219
+ }, z.core.$strip>;
1220
+ type: z.ZodLiteral<"page.undeleted">;
1221
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1222
+ id: z.ZodUUID;
1223
+ type: z.ZodLiteral<"person">;
1224
+ }, z.core.$strip>, z.ZodObject<{
1225
+ id: z.ZodUUID;
1226
+ type: z.ZodLiteral<"bot">;
1227
+ }, z.core.$strip>], "type">>>;
1228
+ api_version: z.ZodEnum<{
1229
+ "2022-06-28": "2022-06-28";
1230
+ "2025-09-03": "2025-09-03";
1231
+ "2026-03-11": "2026-03-11";
1232
+ }>;
1233
+ attempt_number: z.ZodNumber;
1234
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1235
+ id: z.ZodUUID;
1236
+ type: z.ZodLiteral<"person">;
1237
+ }, z.core.$strip>, z.ZodObject<{
1238
+ id: z.ZodUUID;
1239
+ type: z.ZodLiteral<"bot">;
1240
+ }, z.core.$strip>, z.ZodObject<{
1241
+ id: z.ZodUUID;
1242
+ type: z.ZodLiteral<"agent">;
1243
+ }, z.core.$strip>], "type">>;
1244
+ id: z.ZodUUID;
1245
+ integration_id: z.ZodUUID;
1246
+ subscription_id: z.ZodUUID;
1247
+ timestamp: z.ZodISODateTime;
1248
+ workspace_id: z.ZodUUID;
1249
+ workspace_name: z.ZodString;
1250
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1251
+ data: z.ZodObject<{
1252
+ parent: z.ZodObject<{
1253
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1254
+ id: z.ZodUUID;
1255
+ type: z.ZodEnum<{
1256
+ team: "team";
1257
+ space: "space";
1258
+ agent: "agent";
1259
+ block: "block";
1260
+ page: "page";
1261
+ database: "database";
1262
+ }>;
1263
+ }, z.core.$strip>;
1264
+ }, z.core.$strip>;
1265
+ entity: z.ZodObject<{
1266
+ id: z.ZodUUID;
1267
+ type: z.ZodLiteral<"page">;
1268
+ }, z.core.$strip>;
1269
+ type: z.ZodLiteral<"page.unlocked">;
1270
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1271
+ id: z.ZodUUID;
1272
+ type: z.ZodLiteral<"person">;
1273
+ }, z.core.$strip>, z.ZodObject<{
1274
+ id: z.ZodUUID;
1275
+ type: z.ZodLiteral<"bot">;
1276
+ }, z.core.$strip>], "type">>>;
1277
+ api_version: z.ZodEnum<{
1278
+ "2022-06-28": "2022-06-28";
1279
+ "2025-09-03": "2025-09-03";
1280
+ "2026-03-11": "2026-03-11";
1281
+ }>;
1282
+ attempt_number: z.ZodNumber;
1283
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1284
+ id: z.ZodUUID;
1285
+ type: z.ZodLiteral<"person">;
1286
+ }, z.core.$strip>, z.ZodObject<{
1287
+ id: z.ZodUUID;
1288
+ type: z.ZodLiteral<"bot">;
1289
+ }, z.core.$strip>, z.ZodObject<{
1290
+ id: z.ZodUUID;
1291
+ type: z.ZodLiteral<"agent">;
1292
+ }, z.core.$strip>], "type">>;
1293
+ id: z.ZodUUID;
1294
+ integration_id: z.ZodUUID;
1295
+ subscription_id: z.ZodUUID;
1296
+ timestamp: z.ZodISODateTime;
1297
+ workspace_id: z.ZodUUID;
1298
+ workspace_name: z.ZodString;
1299
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1300
+ data: z.ZodObject<{
1301
+ parent: z.ZodObject<{
1302
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1303
+ id: z.ZodUUID;
1304
+ type: z.ZodEnum<{
1305
+ team: "team";
1306
+ space: "space";
1307
+ agent: "agent";
1308
+ block: "block";
1309
+ page: "page";
1310
+ database: "database";
1311
+ }>;
1312
+ }, z.core.$strip>;
1313
+ view_type: z.ZodString;
1314
+ }, z.core.$strip>;
1315
+ entity: z.ZodObject<{
1316
+ id: z.ZodUUID;
1317
+ type: z.ZodLiteral<"view">;
1318
+ }, z.core.$strip>;
1319
+ type: z.ZodLiteral<"view.created">;
1320
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1321
+ id: z.ZodUUID;
1322
+ type: z.ZodLiteral<"person">;
1323
+ }, z.core.$strip>, z.ZodObject<{
1324
+ id: z.ZodUUID;
1325
+ type: z.ZodLiteral<"bot">;
1326
+ }, z.core.$strip>], "type">>>;
1327
+ api_version: z.ZodEnum<{
1328
+ "2022-06-28": "2022-06-28";
1329
+ "2025-09-03": "2025-09-03";
1330
+ "2026-03-11": "2026-03-11";
1331
+ }>;
1332
+ attempt_number: z.ZodNumber;
1333
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1334
+ id: z.ZodUUID;
1335
+ type: z.ZodLiteral<"person">;
1336
+ }, z.core.$strip>, z.ZodObject<{
1337
+ id: z.ZodUUID;
1338
+ type: z.ZodLiteral<"bot">;
1339
+ }, z.core.$strip>, z.ZodObject<{
1340
+ id: z.ZodUUID;
1341
+ type: z.ZodLiteral<"agent">;
1342
+ }, z.core.$strip>], "type">>;
1343
+ id: z.ZodUUID;
1344
+ integration_id: z.ZodUUID;
1345
+ subscription_id: z.ZodUUID;
1346
+ timestamp: z.ZodISODateTime;
1347
+ workspace_id: z.ZodUUID;
1348
+ workspace_name: z.ZodString;
1349
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1350
+ data: z.ZodObject<{
1351
+ parent: z.ZodObject<{
1352
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1353
+ id: z.ZodUUID;
1354
+ type: z.ZodEnum<{
1355
+ team: "team";
1356
+ space: "space";
1357
+ agent: "agent";
1358
+ block: "block";
1359
+ page: "page";
1360
+ database: "database";
1361
+ }>;
1362
+ }, z.core.$strip>;
1363
+ }, z.core.$strip>;
1364
+ entity: z.ZodObject<{
1365
+ id: z.ZodUUID;
1366
+ type: z.ZodLiteral<"view">;
1367
+ }, z.core.$strip>;
1368
+ type: z.ZodLiteral<"view.deleted">;
1369
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1370
+ id: z.ZodUUID;
1371
+ type: z.ZodLiteral<"person">;
1372
+ }, z.core.$strip>, z.ZodObject<{
1373
+ id: z.ZodUUID;
1374
+ type: z.ZodLiteral<"bot">;
1375
+ }, z.core.$strip>], "type">>>;
1376
+ api_version: z.ZodEnum<{
1377
+ "2022-06-28": "2022-06-28";
1378
+ "2025-09-03": "2025-09-03";
1379
+ "2026-03-11": "2026-03-11";
1380
+ }>;
1381
+ attempt_number: z.ZodNumber;
1382
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1383
+ id: z.ZodUUID;
1384
+ type: z.ZodLiteral<"person">;
1385
+ }, z.core.$strip>, z.ZodObject<{
1386
+ id: z.ZodUUID;
1387
+ type: z.ZodLiteral<"bot">;
1388
+ }, z.core.$strip>, z.ZodObject<{
1389
+ id: z.ZodUUID;
1390
+ type: z.ZodLiteral<"agent">;
1391
+ }, z.core.$strip>], "type">>;
1392
+ id: z.ZodUUID;
1393
+ integration_id: z.ZodUUID;
1394
+ subscription_id: z.ZodUUID;
1395
+ timestamp: z.ZodISODateTime;
1396
+ workspace_id: z.ZodUUID;
1397
+ workspace_name: z.ZodString;
1398
+ }, z.core.$catchall<z.ZodJSONSchema>>, z.ZodObject<{
1399
+ data: z.ZodObject<{
1400
+ parent: z.ZodObject<{
1401
+ data_source_id: z.ZodOptional<z.ZodUUID>;
1402
+ id: z.ZodUUID;
1403
+ type: z.ZodEnum<{
1404
+ team: "team";
1405
+ space: "space";
1406
+ agent: "agent";
1407
+ block: "block";
1408
+ page: "page";
1409
+ database: "database";
1410
+ }>;
1411
+ }, z.core.$strip>;
1412
+ updated_fields: z.ZodArray<z.ZodEnum<{
1413
+ filter: "filter";
1414
+ name: "name";
1415
+ sorts: "sorts";
1416
+ configuration: "configuration";
1417
+ }>>;
1418
+ }, z.core.$strip>;
1419
+ entity: z.ZodObject<{
1420
+ id: z.ZodUUID;
1421
+ type: z.ZodLiteral<"view">;
1422
+ }, z.core.$strip>;
1423
+ type: z.ZodLiteral<"view.updated">;
1424
+ accessible_by: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1425
+ id: z.ZodUUID;
1426
+ type: z.ZodLiteral<"person">;
1427
+ }, z.core.$strip>, z.ZodObject<{
1428
+ id: z.ZodUUID;
1429
+ type: z.ZodLiteral<"bot">;
1430
+ }, z.core.$strip>], "type">>>;
1431
+ api_version: z.ZodEnum<{
1432
+ "2022-06-28": "2022-06-28";
1433
+ "2025-09-03": "2025-09-03";
1434
+ "2026-03-11": "2026-03-11";
1435
+ }>;
1436
+ attempt_number: z.ZodNumber;
1437
+ authors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1438
+ id: z.ZodUUID;
1439
+ type: z.ZodLiteral<"person">;
1440
+ }, z.core.$strip>, z.ZodObject<{
1441
+ id: z.ZodUUID;
1442
+ type: z.ZodLiteral<"bot">;
1443
+ }, z.core.$strip>, z.ZodObject<{
1444
+ id: z.ZodUUID;
1445
+ type: z.ZodLiteral<"agent">;
1446
+ }, z.core.$strip>], "type">>;
1447
+ id: z.ZodUUID;
1448
+ integration_id: z.ZodUUID;
1449
+ subscription_id: z.ZodUUID;
1450
+ timestamp: z.ZodISODateTime;
1451
+ workspace_id: z.ZodUUID;
1452
+ workspace_name: z.ZodString;
1453
+ }, z.core.$catchall<z.ZodJSONSchema>>], "type">]>, z.ZodObject<{}, z.core.$strip>, Record<never, never>, Record<never, never>>;
1454
+ };