@automate.ax/api-contract 0.104.0 → 0.107.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.
@@ -2,14 +2,14 @@ import * as z from "zod";
2
2
  export declare const notionEventsContract: {
3
3
  notionEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
4
4
  verification_token: z.ZodString;
5
- }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ }, z.core.$strip>, z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{
6
6
  data: z.ZodObject<{
7
7
  page_id: z.ZodUUID;
8
8
  parent: z.ZodObject<{
9
9
  id: z.ZodUUID;
10
10
  type: z.ZodEnum<{
11
- block: "block";
12
11
  page: "page";
12
+ block: "block";
13
13
  database: "database";
14
14
  }>;
15
15
  }, z.core.$strip>;
@@ -54,8 +54,8 @@ export declare const notionEventsContract: {
54
54
  parent: z.ZodObject<{
55
55
  id: z.ZodUUID;
56
56
  type: z.ZodEnum<{
57
- block: "block";
58
57
  page: "page";
58
+ block: "block";
59
59
  database: "database";
60
60
  }>;
61
61
  }, z.core.$strip>;
@@ -100,8 +100,8 @@ export declare const notionEventsContract: {
100
100
  parent: z.ZodObject<{
101
101
  id: z.ZodUUID;
102
102
  type: z.ZodEnum<{
103
- block: "block";
104
103
  page: "page";
104
+ block: "block";
105
105
  database: "database";
106
106
  }>;
107
107
  }, z.core.$strip>;
@@ -147,18 +147,18 @@ export declare const notionEventsContract: {
147
147
  id: z.ZodUUID;
148
148
  type: z.ZodEnum<{
149
149
  team: "team";
150
+ page: "page";
150
151
  space: "space";
151
152
  agent: "agent";
152
153
  block: "block";
153
- page: "page";
154
154
  database: "database";
155
155
  }>;
156
156
  }, z.core.$strip>;
157
157
  updated_blocks: z.ZodArray<z.ZodObject<{
158
158
  id: z.ZodUUID;
159
159
  type: z.ZodEnum<{
160
- block: "block";
161
160
  page: "page";
161
+ block: "block";
162
162
  database: "database";
163
163
  }>;
164
164
  }, z.core.$strip>>;
@@ -208,10 +208,10 @@ export declare const notionEventsContract: {
208
208
  id: z.ZodUUID;
209
209
  type: z.ZodEnum<{
210
210
  team: "team";
211
+ page: "page";
211
212
  space: "space";
212
213
  agent: "agent";
213
214
  block: "block";
214
- page: "page";
215
215
  database: "database";
216
216
  }>;
217
217
  }, z.core.$strip>;
@@ -261,10 +261,10 @@ export declare const notionEventsContract: {
261
261
  id: z.ZodUUID;
262
262
  type: z.ZodEnum<{
263
263
  team: "team";
264
+ page: "page";
264
265
  space: "space";
265
266
  agent: "agent";
266
267
  block: "block";
267
- page: "page";
268
268
  database: "database";
269
269
  }>;
270
270
  }, z.core.$strip>;
@@ -314,10 +314,10 @@ export declare const notionEventsContract: {
314
314
  id: z.ZodUUID;
315
315
  type: z.ZodEnum<{
316
316
  team: "team";
317
+ page: "page";
317
318
  space: "space";
318
319
  agent: "agent";
319
320
  block: "block";
320
- page: "page";
321
321
  database: "database";
322
322
  }>;
323
323
  }, z.core.$strip>;
@@ -367,10 +367,10 @@ export declare const notionEventsContract: {
367
367
  id: z.ZodUUID;
368
368
  type: z.ZodEnum<{
369
369
  team: "team";
370
+ page: "page";
370
371
  space: "space";
371
372
  agent: "agent";
372
373
  block: "block";
373
- page: "page";
374
374
  database: "database";
375
375
  }>;
376
376
  }, z.core.$strip>;
@@ -429,10 +429,10 @@ export declare const notionEventsContract: {
429
429
  id: z.ZodUUID;
430
430
  type: z.ZodEnum<{
431
431
  team: "team";
432
+ page: "page";
432
433
  space: "space";
433
434
  agent: "agent";
434
435
  block: "block";
435
- page: "page";
436
436
  database: "database";
437
437
  }>;
438
438
  }, z.core.$strip>;
@@ -482,10 +482,10 @@ export declare const notionEventsContract: {
482
482
  id: z.ZodUUID;
483
483
  type: z.ZodEnum<{
484
484
  team: "team";
485
+ page: "page";
485
486
  space: "space";
486
487
  agent: "agent";
487
488
  block: "block";
488
- page: "page";
489
489
  database: "database";
490
490
  }>;
491
491
  }, z.core.$strip>;
@@ -535,10 +535,10 @@ export declare const notionEventsContract: {
535
535
  id: z.ZodUUID;
536
536
  type: z.ZodEnum<{
537
537
  team: "team";
538
+ page: "page";
538
539
  space: "space";
539
540
  agent: "agent";
540
541
  block: "block";
541
- page: "page";
542
542
  database: "database";
543
543
  }>;
544
544
  }, z.core.$strip>;
@@ -588,10 +588,10 @@ export declare const notionEventsContract: {
588
588
  id: z.ZodUUID;
589
589
  type: z.ZodEnum<{
590
590
  team: "team";
591
+ page: "page";
591
592
  space: "space";
592
593
  agent: "agent";
593
594
  block: "block";
594
- page: "page";
595
595
  database: "database";
596
596
  }>;
597
597
  }, z.core.$strip>;
@@ -641,10 +641,10 @@ export declare const notionEventsContract: {
641
641
  id: z.ZodUUID;
642
642
  type: z.ZodEnum<{
643
643
  team: "team";
644
+ page: "page";
644
645
  space: "space";
645
646
  agent: "agent";
646
647
  block: "block";
647
- page: "page";
648
648
  database: "database";
649
649
  }>;
650
650
  }, z.core.$strip>;
@@ -856,18 +856,18 @@ export declare const notionEventsContract: {
856
856
  id: z.ZodUUID;
857
857
  type: z.ZodEnum<{
858
858
  team: "team";
859
+ page: "page";
859
860
  space: "space";
860
861
  agent: "agent";
861
862
  block: "block";
862
- page: "page";
863
863
  database: "database";
864
864
  }>;
865
865
  }, z.core.$strip>;
866
866
  updated_blocks: z.ZodArray<z.ZodObject<{
867
867
  id: z.ZodUUID;
868
868
  type: z.ZodEnum<{
869
- block: "block";
870
869
  page: "page";
870
+ block: "block";
871
871
  database: "database";
872
872
  }>;
873
873
  }, z.core.$strip>>;
@@ -913,10 +913,10 @@ export declare const notionEventsContract: {
913
913
  id: z.ZodUUID;
914
914
  type: z.ZodEnum<{
915
915
  team: "team";
916
+ page: "page";
916
917
  space: "space";
917
918
  agent: "agent";
918
919
  block: "block";
919
- page: "page";
920
920
  database: "database";
921
921
  }>;
922
922
  }, z.core.$strip>;
@@ -962,10 +962,10 @@ export declare const notionEventsContract: {
962
962
  id: z.ZodUUID;
963
963
  type: z.ZodEnum<{
964
964
  team: "team";
965
+ page: "page";
965
966
  space: "space";
966
967
  agent: "agent";
967
968
  block: "block";
968
- page: "page";
969
969
  database: "database";
970
970
  }>;
971
971
  }, z.core.$strip>;
@@ -1011,10 +1011,10 @@ export declare const notionEventsContract: {
1011
1011
  id: z.ZodUUID;
1012
1012
  type: z.ZodEnum<{
1013
1013
  team: "team";
1014
+ page: "page";
1014
1015
  space: "space";
1015
1016
  agent: "agent";
1016
1017
  block: "block";
1017
- page: "page";
1018
1018
  database: "database";
1019
1019
  }>;
1020
1020
  }, z.core.$strip>;
@@ -1060,10 +1060,10 @@ export declare const notionEventsContract: {
1060
1060
  id: z.ZodUUID;
1061
1061
  type: z.ZodEnum<{
1062
1062
  team: "team";
1063
+ page: "page";
1063
1064
  space: "space";
1064
1065
  agent: "agent";
1065
1066
  block: "block";
1066
- page: "page";
1067
1067
  database: "database";
1068
1068
  }>;
1069
1069
  }, z.core.$strip>;
@@ -1109,10 +1109,10 @@ export declare const notionEventsContract: {
1109
1109
  id: z.ZodUUID;
1110
1110
  type: z.ZodEnum<{
1111
1111
  team: "team";
1112
+ page: "page";
1112
1113
  space: "space";
1113
1114
  agent: "agent";
1114
1115
  block: "block";
1115
- page: "page";
1116
1116
  database: "database";
1117
1117
  }>;
1118
1118
  }, z.core.$strip>;
@@ -1157,8 +1157,8 @@ export declare const notionEventsContract: {
1157
1157
  target: z.ZodObject<{
1158
1158
  id: z.ZodUUID;
1159
1159
  type: z.ZodEnum<{
1160
- block: "block";
1161
1160
  page: "page";
1161
+ block: "block";
1162
1162
  database: "database";
1163
1163
  }>;
1164
1164
  }, z.core.$strip>;
@@ -1205,10 +1205,10 @@ export declare const notionEventsContract: {
1205
1205
  id: z.ZodUUID;
1206
1206
  type: z.ZodEnum<{
1207
1207
  team: "team";
1208
+ page: "page";
1208
1209
  space: "space";
1209
1210
  agent: "agent";
1210
1211
  block: "block";
1211
- page: "page";
1212
1212
  database: "database";
1213
1213
  }>;
1214
1214
  }, z.core.$strip>;
@@ -1254,10 +1254,10 @@ export declare const notionEventsContract: {
1254
1254
  id: z.ZodUUID;
1255
1255
  type: z.ZodEnum<{
1256
1256
  team: "team";
1257
+ page: "page";
1257
1258
  space: "space";
1258
1259
  agent: "agent";
1259
1260
  block: "block";
1260
- page: "page";
1261
1261
  database: "database";
1262
1262
  }>;
1263
1263
  }, z.core.$strip>;
@@ -1303,10 +1303,10 @@ export declare const notionEventsContract: {
1303
1303
  id: z.ZodUUID;
1304
1304
  type: z.ZodEnum<{
1305
1305
  team: "team";
1306
+ page: "page";
1306
1307
  space: "space";
1307
1308
  agent: "agent";
1308
1309
  block: "block";
1309
- page: "page";
1310
1310
  database: "database";
1311
1311
  }>;
1312
1312
  }, z.core.$strip>;
@@ -1353,10 +1353,10 @@ export declare const notionEventsContract: {
1353
1353
  id: z.ZodUUID;
1354
1354
  type: z.ZodEnum<{
1355
1355
  team: "team";
1356
+ page: "page";
1356
1357
  space: "space";
1357
1358
  agent: "agent";
1358
1359
  block: "block";
1359
- page: "page";
1360
1360
  database: "database";
1361
1361
  }>;
1362
1362
  }, z.core.$strip>;
@@ -1402,10 +1402,10 @@ export declare const notionEventsContract: {
1402
1402
  id: z.ZodUUID;
1403
1403
  type: z.ZodEnum<{
1404
1404
  team: "team";
1405
+ page: "page";
1405
1406
  space: "space";
1406
1407
  agent: "agent";
1407
1408
  block: "block";
1408
- page: "page";
1409
1409
  database: "database";
1410
1410
  }>;
1411
1411
  }, z.core.$strip>;
@@ -1450,5 +1450,2076 @@ export declare const notionEventsContract: {
1450
1450
  timestamp: z.ZodISODateTime;
1451
1451
  workspace_id: z.ZodUUID;
1452
1452
  workspace_name: z.ZodString;
1453
- }, z.core.$catchall<z.ZodJSONSchema>>], "type">]>, z.ZodObject<{}, z.core.$strip>, Record<never, never>, Record<never, never>>;
1453
+ }, z.core.$catchall<z.ZodJSONSchema>>], "type">, z.ZodTransform<{
1454
+ type: "comment.created";
1455
+ timestamp: string;
1456
+ id: string;
1457
+ data: {
1458
+ parent: {
1459
+ id: string;
1460
+ type: "page" | "block" | "database";
1461
+ };
1462
+ pageId: string;
1463
+ };
1464
+ workspaceId: string;
1465
+ workspaceName: string;
1466
+ subscriptionId: string;
1467
+ integrationId: string;
1468
+ attemptNumber: number;
1469
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1470
+ accessibleBy?: ({
1471
+ id: string;
1472
+ type: "person";
1473
+ } | {
1474
+ id: string;
1475
+ type: "bot";
1476
+ })[] | undefined;
1477
+ entity: {
1478
+ type: "comment";
1479
+ id: string;
1480
+ };
1481
+ authors: {
1482
+ id: string;
1483
+ type: "agent" | "bot" | "person";
1484
+ }[];
1485
+ } | {
1486
+ type: "comment.deleted";
1487
+ timestamp: string;
1488
+ id: string;
1489
+ data: {
1490
+ parent: {
1491
+ id: string;
1492
+ type: "page" | "block" | "database";
1493
+ };
1494
+ pageId: string;
1495
+ };
1496
+ workspaceId: string;
1497
+ workspaceName: string;
1498
+ subscriptionId: string;
1499
+ integrationId: string;
1500
+ attemptNumber: number;
1501
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1502
+ accessibleBy?: ({
1503
+ id: string;
1504
+ type: "person";
1505
+ } | {
1506
+ id: string;
1507
+ type: "bot";
1508
+ })[] | undefined;
1509
+ entity: {
1510
+ type: "comment";
1511
+ id: string;
1512
+ };
1513
+ authors: {
1514
+ id: string;
1515
+ type: "agent" | "bot" | "person";
1516
+ }[];
1517
+ } | {
1518
+ type: "comment.updated";
1519
+ timestamp: string;
1520
+ id: string;
1521
+ data: {
1522
+ parent: {
1523
+ id: string;
1524
+ type: "page" | "block" | "database";
1525
+ };
1526
+ pageId: string;
1527
+ };
1528
+ workspaceId: string;
1529
+ workspaceName: string;
1530
+ subscriptionId: string;
1531
+ integrationId: string;
1532
+ attemptNumber: number;
1533
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1534
+ accessibleBy?: ({
1535
+ id: string;
1536
+ type: "person";
1537
+ } | {
1538
+ id: string;
1539
+ type: "bot";
1540
+ })[] | undefined;
1541
+ entity: {
1542
+ type: "comment";
1543
+ id: string;
1544
+ };
1545
+ authors: {
1546
+ id: string;
1547
+ type: "agent" | "bot" | "person";
1548
+ }[];
1549
+ } | {
1550
+ type: "data_source.content_updated";
1551
+ timestamp: string;
1552
+ id: string;
1553
+ data: {
1554
+ parent: {
1555
+ id: string;
1556
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1557
+ dataSourceId?: string | undefined;
1558
+ };
1559
+ updatedBlocks: {
1560
+ id: string;
1561
+ type: "page" | "block" | "database";
1562
+ }[];
1563
+ };
1564
+ workspaceId: string;
1565
+ workspaceName: string;
1566
+ subscriptionId: string;
1567
+ integrationId: string;
1568
+ attemptNumber: number;
1569
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1570
+ accessibleBy?: ({
1571
+ id: string;
1572
+ type: "person";
1573
+ } | {
1574
+ id: string;
1575
+ type: "bot";
1576
+ })[] | undefined;
1577
+ entity: {
1578
+ id: string;
1579
+ type: "block" | "database" | "data_source";
1580
+ };
1581
+ authors: {
1582
+ id: string;
1583
+ type: "agent" | "bot" | "person";
1584
+ }[];
1585
+ } | {
1586
+ type: "data_source.created";
1587
+ timestamp: string;
1588
+ id: string;
1589
+ data: {
1590
+ parent: {
1591
+ id: string;
1592
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1593
+ dataSourceId?: string | undefined;
1594
+ };
1595
+ };
1596
+ workspaceId: string;
1597
+ workspaceName: string;
1598
+ subscriptionId: string;
1599
+ integrationId: string;
1600
+ attemptNumber: number;
1601
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1602
+ accessibleBy?: ({
1603
+ id: string;
1604
+ type: "person";
1605
+ } | {
1606
+ id: string;
1607
+ type: "bot";
1608
+ })[] | undefined;
1609
+ entity: {
1610
+ id: string;
1611
+ type: "block" | "database" | "data_source";
1612
+ };
1613
+ authors: {
1614
+ id: string;
1615
+ type: "agent" | "bot" | "person";
1616
+ }[];
1617
+ } | {
1618
+ type: "data_source.deleted";
1619
+ timestamp: string;
1620
+ id: string;
1621
+ data: {
1622
+ parent: {
1623
+ id: string;
1624
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1625
+ dataSourceId?: string | undefined;
1626
+ };
1627
+ };
1628
+ workspaceId: string;
1629
+ workspaceName: string;
1630
+ subscriptionId: string;
1631
+ integrationId: string;
1632
+ attemptNumber: number;
1633
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1634
+ accessibleBy?: ({
1635
+ id: string;
1636
+ type: "person";
1637
+ } | {
1638
+ id: string;
1639
+ type: "bot";
1640
+ })[] | undefined;
1641
+ entity: {
1642
+ id: string;
1643
+ type: "block" | "database" | "data_source";
1644
+ };
1645
+ authors: {
1646
+ id: string;
1647
+ type: "agent" | "bot" | "person";
1648
+ }[];
1649
+ } | {
1650
+ type: "data_source.moved";
1651
+ timestamp: string;
1652
+ id: string;
1653
+ data: {
1654
+ parent: {
1655
+ id: string;
1656
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1657
+ dataSourceId?: string | undefined;
1658
+ };
1659
+ };
1660
+ workspaceId: string;
1661
+ workspaceName: string;
1662
+ subscriptionId: string;
1663
+ integrationId: string;
1664
+ attemptNumber: number;
1665
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1666
+ accessibleBy?: ({
1667
+ id: string;
1668
+ type: "person";
1669
+ } | {
1670
+ id: string;
1671
+ type: "bot";
1672
+ })[] | undefined;
1673
+ entity: {
1674
+ id: string;
1675
+ type: "block" | "database" | "data_source";
1676
+ };
1677
+ authors: {
1678
+ id: string;
1679
+ type: "agent" | "bot" | "person";
1680
+ }[];
1681
+ } | {
1682
+ type: "data_source.schema_updated";
1683
+ timestamp: string;
1684
+ id: string;
1685
+ data: {
1686
+ parent: {
1687
+ id: string;
1688
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1689
+ dataSourceId?: string | undefined;
1690
+ };
1691
+ updatedProperties?: {
1692
+ id: string;
1693
+ name: string | null;
1694
+ action: "deleted" | "created" | "updated";
1695
+ }[] | undefined;
1696
+ };
1697
+ workspaceId: string;
1698
+ workspaceName: string;
1699
+ subscriptionId: string;
1700
+ integrationId: string;
1701
+ attemptNumber: number;
1702
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1703
+ accessibleBy?: ({
1704
+ id: string;
1705
+ type: "person";
1706
+ } | {
1707
+ id: string;
1708
+ type: "bot";
1709
+ })[] | undefined;
1710
+ entity: {
1711
+ id: string;
1712
+ type: "block" | "database" | "data_source";
1713
+ };
1714
+ authors: {
1715
+ id: string;
1716
+ type: "agent" | "bot" | "person";
1717
+ }[];
1718
+ } | {
1719
+ type: "data_source.undeleted";
1720
+ timestamp: string;
1721
+ id: string;
1722
+ data: {
1723
+ parent: {
1724
+ id: string;
1725
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1726
+ dataSourceId?: string | undefined;
1727
+ };
1728
+ };
1729
+ workspaceId: string;
1730
+ workspaceName: string;
1731
+ subscriptionId: string;
1732
+ integrationId: string;
1733
+ attemptNumber: number;
1734
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1735
+ accessibleBy?: ({
1736
+ id: string;
1737
+ type: "person";
1738
+ } | {
1739
+ id: string;
1740
+ type: "bot";
1741
+ })[] | undefined;
1742
+ entity: {
1743
+ id: string;
1744
+ type: "block" | "database" | "data_source";
1745
+ };
1746
+ authors: {
1747
+ id: string;
1748
+ type: "agent" | "bot" | "person";
1749
+ }[];
1750
+ } | {
1751
+ type: "database.created";
1752
+ timestamp: string;
1753
+ id: string;
1754
+ data: {
1755
+ parent: {
1756
+ id: string;
1757
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1758
+ dataSourceId?: string | undefined;
1759
+ };
1760
+ };
1761
+ workspaceId: string;
1762
+ workspaceName: string;
1763
+ subscriptionId: string;
1764
+ integrationId: string;
1765
+ attemptNumber: number;
1766
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1767
+ accessibleBy?: ({
1768
+ id: string;
1769
+ type: "person";
1770
+ } | {
1771
+ id: string;
1772
+ type: "bot";
1773
+ })[] | undefined;
1774
+ entity: {
1775
+ id: string;
1776
+ type: "block" | "database" | "data_source";
1777
+ };
1778
+ authors: {
1779
+ id: string;
1780
+ type: "agent" | "bot" | "person";
1781
+ }[];
1782
+ } | {
1783
+ type: "database.deleted";
1784
+ timestamp: string;
1785
+ id: string;
1786
+ data: {
1787
+ parent: {
1788
+ id: string;
1789
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1790
+ dataSourceId?: string | undefined;
1791
+ };
1792
+ };
1793
+ workspaceId: string;
1794
+ workspaceName: string;
1795
+ subscriptionId: string;
1796
+ integrationId: string;
1797
+ attemptNumber: number;
1798
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1799
+ accessibleBy?: ({
1800
+ id: string;
1801
+ type: "person";
1802
+ } | {
1803
+ id: string;
1804
+ type: "bot";
1805
+ })[] | undefined;
1806
+ entity: {
1807
+ id: string;
1808
+ type: "block" | "database" | "data_source";
1809
+ };
1810
+ authors: {
1811
+ id: string;
1812
+ type: "agent" | "bot" | "person";
1813
+ }[];
1814
+ } | {
1815
+ type: "database.moved";
1816
+ timestamp: string;
1817
+ id: string;
1818
+ data: {
1819
+ parent: {
1820
+ id: string;
1821
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1822
+ dataSourceId?: string | undefined;
1823
+ };
1824
+ };
1825
+ workspaceId: string;
1826
+ workspaceName: string;
1827
+ subscriptionId: string;
1828
+ integrationId: string;
1829
+ attemptNumber: number;
1830
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1831
+ accessibleBy?: ({
1832
+ id: string;
1833
+ type: "person";
1834
+ } | {
1835
+ id: string;
1836
+ type: "bot";
1837
+ })[] | undefined;
1838
+ entity: {
1839
+ id: string;
1840
+ type: "block" | "database" | "data_source";
1841
+ };
1842
+ authors: {
1843
+ id: string;
1844
+ type: "agent" | "bot" | "person";
1845
+ }[];
1846
+ } | {
1847
+ type: "database.undeleted";
1848
+ timestamp: string;
1849
+ id: string;
1850
+ data: {
1851
+ parent: {
1852
+ id: string;
1853
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
1854
+ dataSourceId?: string | undefined;
1855
+ };
1856
+ };
1857
+ workspaceId: string;
1858
+ workspaceName: string;
1859
+ subscriptionId: string;
1860
+ integrationId: string;
1861
+ attemptNumber: number;
1862
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1863
+ accessibleBy?: ({
1864
+ id: string;
1865
+ type: "person";
1866
+ } | {
1867
+ id: string;
1868
+ type: "bot";
1869
+ })[] | undefined;
1870
+ entity: {
1871
+ id: string;
1872
+ type: "block" | "database" | "data_source";
1873
+ };
1874
+ authors: {
1875
+ id: string;
1876
+ type: "agent" | "bot" | "person";
1877
+ }[];
1878
+ } | {
1879
+ type: "file_upload.completed";
1880
+ timestamp: string;
1881
+ id: string;
1882
+ workspaceId: string;
1883
+ workspaceName: string;
1884
+ subscriptionId: string;
1885
+ integrationId: string;
1886
+ attemptNumber: number;
1887
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1888
+ accessibleBy?: ({
1889
+ id: string;
1890
+ type: "person";
1891
+ } | {
1892
+ id: string;
1893
+ type: "bot";
1894
+ })[] | undefined;
1895
+ entity: {
1896
+ type: "file_upload";
1897
+ id: string;
1898
+ };
1899
+ authors: {
1900
+ id: string;
1901
+ type: "agent" | "bot" | "person";
1902
+ }[];
1903
+ } | {
1904
+ type: "file_upload.created";
1905
+ timestamp: string;
1906
+ id: string;
1907
+ workspaceId: string;
1908
+ workspaceName: string;
1909
+ subscriptionId: string;
1910
+ integrationId: string;
1911
+ attemptNumber: number;
1912
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1913
+ accessibleBy?: ({
1914
+ id: string;
1915
+ type: "person";
1916
+ } | {
1917
+ id: string;
1918
+ type: "bot";
1919
+ })[] | undefined;
1920
+ entity: {
1921
+ type: "file_upload";
1922
+ id: string;
1923
+ };
1924
+ authors: {
1925
+ id: string;
1926
+ type: "agent" | "bot" | "person";
1927
+ }[];
1928
+ } | {
1929
+ type: "file_upload.expired";
1930
+ timestamp: string;
1931
+ id: string;
1932
+ workspaceId: string;
1933
+ workspaceName: string;
1934
+ subscriptionId: string;
1935
+ integrationId: string;
1936
+ attemptNumber: number;
1937
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1938
+ accessibleBy?: ({
1939
+ id: string;
1940
+ type: "person";
1941
+ } | {
1942
+ id: string;
1943
+ type: "bot";
1944
+ })[] | undefined;
1945
+ entity: {
1946
+ type: "file_upload";
1947
+ id: string;
1948
+ };
1949
+ authors: {
1950
+ id: string;
1951
+ type: "agent" | "bot" | "person";
1952
+ }[];
1953
+ } | {
1954
+ type: "file_upload.upload_failed";
1955
+ timestamp: string;
1956
+ id: string;
1957
+ data: {
1958
+ fileImportResult: {
1959
+ type: "success";
1960
+ importedTime: string;
1961
+ success: {
1962
+ [x: string]: never;
1963
+ };
1964
+ } | {
1965
+ type: "error";
1966
+ importedTime: string;
1967
+ error: {
1968
+ type: "validation_error" | "internal_system_error" | "download_error" | "upload_error";
1969
+ code: string;
1970
+ message: string;
1971
+ parameter: string | null;
1972
+ statusCode: number | null;
1973
+ };
1974
+ };
1975
+ };
1976
+ workspaceId: string;
1977
+ workspaceName: string;
1978
+ subscriptionId: string;
1979
+ integrationId: string;
1980
+ attemptNumber: number;
1981
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
1982
+ accessibleBy?: ({
1983
+ id: string;
1984
+ type: "person";
1985
+ } | {
1986
+ id: string;
1987
+ type: "bot";
1988
+ })[] | undefined;
1989
+ entity: {
1990
+ type: "file_upload";
1991
+ id: string;
1992
+ };
1993
+ authors: {
1994
+ id: string;
1995
+ type: "agent" | "bot" | "person";
1996
+ }[];
1997
+ } | {
1998
+ type: "page.content_updated";
1999
+ timestamp: string;
2000
+ id: string;
2001
+ data: {
2002
+ parent: {
2003
+ id: string;
2004
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2005
+ dataSourceId?: string | undefined;
2006
+ };
2007
+ updatedBlocks: {
2008
+ id: string;
2009
+ type: "page" | "block" | "database";
2010
+ }[];
2011
+ };
2012
+ workspaceId: string;
2013
+ workspaceName: string;
2014
+ subscriptionId: string;
2015
+ integrationId: string;
2016
+ attemptNumber: number;
2017
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2018
+ accessibleBy?: ({
2019
+ id: string;
2020
+ type: "person";
2021
+ } | {
2022
+ id: string;
2023
+ type: "bot";
2024
+ })[] | undefined;
2025
+ entity: {
2026
+ type: "page";
2027
+ id: string;
2028
+ };
2029
+ authors: {
2030
+ id: string;
2031
+ type: "agent" | "bot" | "person";
2032
+ }[];
2033
+ } | {
2034
+ type: "page.created";
2035
+ timestamp: string;
2036
+ id: string;
2037
+ data: {
2038
+ parent: {
2039
+ id: string;
2040
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2041
+ dataSourceId?: string | undefined;
2042
+ };
2043
+ };
2044
+ workspaceId: string;
2045
+ workspaceName: string;
2046
+ subscriptionId: string;
2047
+ integrationId: string;
2048
+ attemptNumber: number;
2049
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2050
+ accessibleBy?: ({
2051
+ id: string;
2052
+ type: "person";
2053
+ } | {
2054
+ id: string;
2055
+ type: "bot";
2056
+ })[] | undefined;
2057
+ entity: {
2058
+ type: "page";
2059
+ id: string;
2060
+ };
2061
+ authors: {
2062
+ id: string;
2063
+ type: "agent" | "bot" | "person";
2064
+ }[];
2065
+ } | {
2066
+ type: "page.deleted";
2067
+ timestamp: string;
2068
+ id: string;
2069
+ data: {
2070
+ parent: {
2071
+ id: string;
2072
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2073
+ dataSourceId?: string | undefined;
2074
+ };
2075
+ };
2076
+ workspaceId: string;
2077
+ workspaceName: string;
2078
+ subscriptionId: string;
2079
+ integrationId: string;
2080
+ attemptNumber: number;
2081
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2082
+ accessibleBy?: ({
2083
+ id: string;
2084
+ type: "person";
2085
+ } | {
2086
+ id: string;
2087
+ type: "bot";
2088
+ })[] | undefined;
2089
+ entity: {
2090
+ type: "page";
2091
+ id: string;
2092
+ };
2093
+ authors: {
2094
+ id: string;
2095
+ type: "agent" | "bot" | "person";
2096
+ }[];
2097
+ } | {
2098
+ type: "page.locked";
2099
+ timestamp: string;
2100
+ id: string;
2101
+ data: {
2102
+ parent: {
2103
+ id: string;
2104
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2105
+ dataSourceId?: string | undefined;
2106
+ };
2107
+ };
2108
+ workspaceId: string;
2109
+ workspaceName: string;
2110
+ subscriptionId: string;
2111
+ integrationId: string;
2112
+ attemptNumber: number;
2113
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2114
+ accessibleBy?: ({
2115
+ id: string;
2116
+ type: "person";
2117
+ } | {
2118
+ id: string;
2119
+ type: "bot";
2120
+ })[] | undefined;
2121
+ entity: {
2122
+ type: "page";
2123
+ id: string;
2124
+ };
2125
+ authors: {
2126
+ id: string;
2127
+ type: "agent" | "bot" | "person";
2128
+ }[];
2129
+ } | {
2130
+ type: "page.moved";
2131
+ timestamp: string;
2132
+ id: string;
2133
+ data: {
2134
+ parent: {
2135
+ id: string;
2136
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2137
+ dataSourceId?: string | undefined;
2138
+ };
2139
+ };
2140
+ workspaceId: string;
2141
+ workspaceName: string;
2142
+ subscriptionId: string;
2143
+ integrationId: string;
2144
+ attemptNumber: number;
2145
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2146
+ accessibleBy?: ({
2147
+ id: string;
2148
+ type: "person";
2149
+ } | {
2150
+ id: string;
2151
+ type: "bot";
2152
+ })[] | undefined;
2153
+ entity: {
2154
+ type: "page";
2155
+ id: string;
2156
+ };
2157
+ authors: {
2158
+ id: string;
2159
+ type: "agent" | "bot" | "person";
2160
+ }[];
2161
+ } | {
2162
+ type: "page.properties_updated";
2163
+ timestamp: string;
2164
+ id: string;
2165
+ data: {
2166
+ parent: {
2167
+ id: string;
2168
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2169
+ dataSourceId?: string | undefined;
2170
+ };
2171
+ updatedProperties: string[];
2172
+ };
2173
+ workspaceId: string;
2174
+ workspaceName: string;
2175
+ subscriptionId: string;
2176
+ integrationId: string;
2177
+ attemptNumber: number;
2178
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2179
+ accessibleBy?: ({
2180
+ id: string;
2181
+ type: "person";
2182
+ } | {
2183
+ id: string;
2184
+ type: "bot";
2185
+ })[] | undefined;
2186
+ entity: {
2187
+ type: "page";
2188
+ id: string;
2189
+ };
2190
+ authors: {
2191
+ id: string;
2192
+ type: "agent" | "bot" | "person";
2193
+ }[];
2194
+ } | {
2195
+ type: "page.transcription_block.transcript_deleted";
2196
+ timestamp: string;
2197
+ id: string;
2198
+ data: {
2199
+ target: {
2200
+ id: string;
2201
+ type: "page" | "block" | "database";
2202
+ };
2203
+ transcriptId: string | null;
2204
+ };
2205
+ workspaceId: string;
2206
+ workspaceName: string;
2207
+ subscriptionId: string;
2208
+ integrationId: string;
2209
+ attemptNumber: number;
2210
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2211
+ accessibleBy?: ({
2212
+ id: string;
2213
+ type: "person";
2214
+ } | {
2215
+ id: string;
2216
+ type: "bot";
2217
+ })[] | undefined;
2218
+ entity: {
2219
+ type: "page";
2220
+ id: string;
2221
+ };
2222
+ authors: {
2223
+ id: string;
2224
+ type: "agent" | "bot" | "person";
2225
+ }[];
2226
+ } | {
2227
+ type: "page.undeleted";
2228
+ timestamp: string;
2229
+ id: string;
2230
+ data: {
2231
+ parent: {
2232
+ id: string;
2233
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2234
+ dataSourceId?: string | undefined;
2235
+ };
2236
+ };
2237
+ workspaceId: string;
2238
+ workspaceName: string;
2239
+ subscriptionId: string;
2240
+ integrationId: string;
2241
+ attemptNumber: number;
2242
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2243
+ accessibleBy?: ({
2244
+ id: string;
2245
+ type: "person";
2246
+ } | {
2247
+ id: string;
2248
+ type: "bot";
2249
+ })[] | undefined;
2250
+ entity: {
2251
+ type: "page";
2252
+ id: string;
2253
+ };
2254
+ authors: {
2255
+ id: string;
2256
+ type: "agent" | "bot" | "person";
2257
+ }[];
2258
+ } | {
2259
+ type: "page.unlocked";
2260
+ timestamp: string;
2261
+ id: string;
2262
+ data: {
2263
+ parent: {
2264
+ id: string;
2265
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2266
+ dataSourceId?: string | undefined;
2267
+ };
2268
+ };
2269
+ workspaceId: string;
2270
+ workspaceName: string;
2271
+ subscriptionId: string;
2272
+ integrationId: string;
2273
+ attemptNumber: number;
2274
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2275
+ accessibleBy?: ({
2276
+ id: string;
2277
+ type: "person";
2278
+ } | {
2279
+ id: string;
2280
+ type: "bot";
2281
+ })[] | undefined;
2282
+ entity: {
2283
+ type: "page";
2284
+ id: string;
2285
+ };
2286
+ authors: {
2287
+ id: string;
2288
+ type: "agent" | "bot" | "person";
2289
+ }[];
2290
+ } | {
2291
+ type: "view.created";
2292
+ timestamp: string;
2293
+ id: string;
2294
+ data: {
2295
+ parent: {
2296
+ id: string;
2297
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2298
+ dataSourceId?: string | undefined;
2299
+ };
2300
+ viewType: string;
2301
+ };
2302
+ workspaceId: string;
2303
+ workspaceName: string;
2304
+ subscriptionId: string;
2305
+ integrationId: string;
2306
+ attemptNumber: number;
2307
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2308
+ accessibleBy?: ({
2309
+ id: string;
2310
+ type: "person";
2311
+ } | {
2312
+ id: string;
2313
+ type: "bot";
2314
+ })[] | undefined;
2315
+ entity: {
2316
+ id: string;
2317
+ type: "view";
2318
+ };
2319
+ authors: {
2320
+ id: string;
2321
+ type: "agent" | "bot" | "person";
2322
+ }[];
2323
+ } | {
2324
+ type: "view.deleted";
2325
+ timestamp: string;
2326
+ id: string;
2327
+ data: {
2328
+ parent: {
2329
+ id: string;
2330
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2331
+ dataSourceId?: string | undefined;
2332
+ };
2333
+ };
2334
+ workspaceId: string;
2335
+ workspaceName: string;
2336
+ subscriptionId: string;
2337
+ integrationId: string;
2338
+ attemptNumber: number;
2339
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2340
+ accessibleBy?: ({
2341
+ id: string;
2342
+ type: "person";
2343
+ } | {
2344
+ id: string;
2345
+ type: "bot";
2346
+ })[] | undefined;
2347
+ entity: {
2348
+ id: string;
2349
+ type: "view";
2350
+ };
2351
+ authors: {
2352
+ id: string;
2353
+ type: "agent" | "bot" | "person";
2354
+ }[];
2355
+ } | {
2356
+ type: "view.updated";
2357
+ timestamp: string;
2358
+ id: string;
2359
+ data: {
2360
+ parent: {
2361
+ id: string;
2362
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2363
+ dataSourceId?: string | undefined;
2364
+ };
2365
+ updatedFields: ("filter" | "name" | "sorts" | "configuration")[];
2366
+ };
2367
+ workspaceId: string;
2368
+ workspaceName: string;
2369
+ subscriptionId: string;
2370
+ integrationId: string;
2371
+ attemptNumber: number;
2372
+ apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
2373
+ accessibleBy?: ({
2374
+ id: string;
2375
+ type: "person";
2376
+ } | {
2377
+ id: string;
2378
+ type: "bot";
2379
+ })[] | undefined;
2380
+ entity: {
2381
+ id: string;
2382
+ type: "view";
2383
+ };
2384
+ authors: {
2385
+ id: string;
2386
+ type: "agent" | "bot" | "person";
2387
+ }[];
2388
+ }, {
2389
+ [x: string]: z.core.util.JSONType;
2390
+ data: {
2391
+ page_id: string;
2392
+ parent: {
2393
+ id: string;
2394
+ type: "page" | "block" | "database";
2395
+ };
2396
+ };
2397
+ entity: {
2398
+ id: string;
2399
+ type: "comment";
2400
+ };
2401
+ type: "comment.created";
2402
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2403
+ attempt_number: number;
2404
+ authors: ({
2405
+ id: string;
2406
+ type: "person";
2407
+ } | {
2408
+ id: string;
2409
+ type: "bot";
2410
+ } | {
2411
+ id: string;
2412
+ type: "agent";
2413
+ })[];
2414
+ id: string;
2415
+ integration_id: string;
2416
+ subscription_id: string;
2417
+ timestamp: string;
2418
+ workspace_id: string;
2419
+ workspace_name: string;
2420
+ accessible_by?: ({
2421
+ id: string;
2422
+ type: "person";
2423
+ } | {
2424
+ id: string;
2425
+ type: "bot";
2426
+ })[] | undefined;
2427
+ } | {
2428
+ [x: string]: z.core.util.JSONType;
2429
+ data: {
2430
+ page_id: string;
2431
+ parent: {
2432
+ id: string;
2433
+ type: "page" | "block" | "database";
2434
+ };
2435
+ };
2436
+ entity: {
2437
+ id: string;
2438
+ type: "comment";
2439
+ };
2440
+ type: "comment.deleted";
2441
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2442
+ attempt_number: number;
2443
+ authors: ({
2444
+ id: string;
2445
+ type: "person";
2446
+ } | {
2447
+ id: string;
2448
+ type: "bot";
2449
+ } | {
2450
+ id: string;
2451
+ type: "agent";
2452
+ })[];
2453
+ id: string;
2454
+ integration_id: string;
2455
+ subscription_id: string;
2456
+ timestamp: string;
2457
+ workspace_id: string;
2458
+ workspace_name: string;
2459
+ accessible_by?: ({
2460
+ id: string;
2461
+ type: "person";
2462
+ } | {
2463
+ id: string;
2464
+ type: "bot";
2465
+ })[] | undefined;
2466
+ } | {
2467
+ [x: string]: z.core.util.JSONType;
2468
+ data: {
2469
+ page_id: string;
2470
+ parent: {
2471
+ id: string;
2472
+ type: "page" | "block" | "database";
2473
+ };
2474
+ };
2475
+ entity: {
2476
+ id: string;
2477
+ type: "comment";
2478
+ };
2479
+ type: "comment.updated";
2480
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2481
+ attempt_number: number;
2482
+ authors: ({
2483
+ id: string;
2484
+ type: "person";
2485
+ } | {
2486
+ id: string;
2487
+ type: "bot";
2488
+ } | {
2489
+ id: string;
2490
+ type: "agent";
2491
+ })[];
2492
+ id: string;
2493
+ integration_id: string;
2494
+ subscription_id: string;
2495
+ timestamp: string;
2496
+ workspace_id: string;
2497
+ workspace_name: string;
2498
+ accessible_by?: ({
2499
+ id: string;
2500
+ type: "person";
2501
+ } | {
2502
+ id: string;
2503
+ type: "bot";
2504
+ })[] | undefined;
2505
+ } | {
2506
+ [x: string]: z.core.util.JSONType;
2507
+ data: {
2508
+ parent: {
2509
+ id: string;
2510
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2511
+ data_source_id?: string | undefined;
2512
+ };
2513
+ updated_blocks: {
2514
+ id: string;
2515
+ type: "page" | "block" | "database";
2516
+ }[];
2517
+ };
2518
+ entity: {
2519
+ id: string;
2520
+ type: "block" | "database" | "data_source";
2521
+ };
2522
+ type: "data_source.content_updated";
2523
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2524
+ attempt_number: number;
2525
+ authors: ({
2526
+ id: string;
2527
+ type: "person";
2528
+ } | {
2529
+ id: string;
2530
+ type: "bot";
2531
+ } | {
2532
+ id: string;
2533
+ type: "agent";
2534
+ })[];
2535
+ id: string;
2536
+ integration_id: string;
2537
+ subscription_id: string;
2538
+ timestamp: string;
2539
+ workspace_id: string;
2540
+ workspace_name: string;
2541
+ accessible_by?: ({
2542
+ id: string;
2543
+ type: "person";
2544
+ } | {
2545
+ id: string;
2546
+ type: "bot";
2547
+ })[] | undefined;
2548
+ } | {
2549
+ [x: string]: z.core.util.JSONType;
2550
+ data: {
2551
+ parent: {
2552
+ id: string;
2553
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2554
+ data_source_id?: string | undefined;
2555
+ };
2556
+ };
2557
+ entity: {
2558
+ id: string;
2559
+ type: "block" | "database" | "data_source";
2560
+ };
2561
+ type: "data_source.created";
2562
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2563
+ attempt_number: number;
2564
+ authors: ({
2565
+ id: string;
2566
+ type: "person";
2567
+ } | {
2568
+ id: string;
2569
+ type: "bot";
2570
+ } | {
2571
+ id: string;
2572
+ type: "agent";
2573
+ })[];
2574
+ id: string;
2575
+ integration_id: string;
2576
+ subscription_id: string;
2577
+ timestamp: string;
2578
+ workspace_id: string;
2579
+ workspace_name: string;
2580
+ accessible_by?: ({
2581
+ id: string;
2582
+ type: "person";
2583
+ } | {
2584
+ id: string;
2585
+ type: "bot";
2586
+ })[] | undefined;
2587
+ } | {
2588
+ [x: string]: z.core.util.JSONType;
2589
+ data: {
2590
+ parent: {
2591
+ id: string;
2592
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2593
+ data_source_id?: string | undefined;
2594
+ };
2595
+ };
2596
+ entity: {
2597
+ id: string;
2598
+ type: "block" | "database" | "data_source";
2599
+ };
2600
+ type: "data_source.deleted";
2601
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2602
+ attempt_number: number;
2603
+ authors: ({
2604
+ id: string;
2605
+ type: "person";
2606
+ } | {
2607
+ id: string;
2608
+ type: "bot";
2609
+ } | {
2610
+ id: string;
2611
+ type: "agent";
2612
+ })[];
2613
+ id: string;
2614
+ integration_id: string;
2615
+ subscription_id: string;
2616
+ timestamp: string;
2617
+ workspace_id: string;
2618
+ workspace_name: string;
2619
+ accessible_by?: ({
2620
+ id: string;
2621
+ type: "person";
2622
+ } | {
2623
+ id: string;
2624
+ type: "bot";
2625
+ })[] | undefined;
2626
+ } | {
2627
+ [x: string]: z.core.util.JSONType;
2628
+ data: {
2629
+ parent: {
2630
+ id: string;
2631
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2632
+ data_source_id?: string | undefined;
2633
+ };
2634
+ };
2635
+ entity: {
2636
+ id: string;
2637
+ type: "block" | "database" | "data_source";
2638
+ };
2639
+ type: "data_source.moved";
2640
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2641
+ attempt_number: number;
2642
+ authors: ({
2643
+ id: string;
2644
+ type: "person";
2645
+ } | {
2646
+ id: string;
2647
+ type: "bot";
2648
+ } | {
2649
+ id: string;
2650
+ type: "agent";
2651
+ })[];
2652
+ id: string;
2653
+ integration_id: string;
2654
+ subscription_id: string;
2655
+ timestamp: string;
2656
+ workspace_id: string;
2657
+ workspace_name: string;
2658
+ accessible_by?: ({
2659
+ id: string;
2660
+ type: "person";
2661
+ } | {
2662
+ id: string;
2663
+ type: "bot";
2664
+ })[] | undefined;
2665
+ } | {
2666
+ [x: string]: z.core.util.JSONType;
2667
+ data: {
2668
+ parent: {
2669
+ id: string;
2670
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2671
+ data_source_id?: string | undefined;
2672
+ };
2673
+ updated_properties?: {
2674
+ action: "deleted" | "created" | "updated";
2675
+ id: string;
2676
+ name: string | null;
2677
+ }[] | undefined;
2678
+ };
2679
+ entity: {
2680
+ id: string;
2681
+ type: "block" | "database" | "data_source";
2682
+ };
2683
+ type: "data_source.schema_updated";
2684
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2685
+ attempt_number: number;
2686
+ authors: ({
2687
+ id: string;
2688
+ type: "person";
2689
+ } | {
2690
+ id: string;
2691
+ type: "bot";
2692
+ } | {
2693
+ id: string;
2694
+ type: "agent";
2695
+ })[];
2696
+ id: string;
2697
+ integration_id: string;
2698
+ subscription_id: string;
2699
+ timestamp: string;
2700
+ workspace_id: string;
2701
+ workspace_name: string;
2702
+ accessible_by?: ({
2703
+ id: string;
2704
+ type: "person";
2705
+ } | {
2706
+ id: string;
2707
+ type: "bot";
2708
+ })[] | undefined;
2709
+ } | {
2710
+ [x: string]: z.core.util.JSONType;
2711
+ data: {
2712
+ parent: {
2713
+ id: string;
2714
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2715
+ data_source_id?: string | undefined;
2716
+ };
2717
+ };
2718
+ entity: {
2719
+ id: string;
2720
+ type: "block" | "database" | "data_source";
2721
+ };
2722
+ type: "data_source.undeleted";
2723
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2724
+ attempt_number: number;
2725
+ authors: ({
2726
+ id: string;
2727
+ type: "person";
2728
+ } | {
2729
+ id: string;
2730
+ type: "bot";
2731
+ } | {
2732
+ id: string;
2733
+ type: "agent";
2734
+ })[];
2735
+ id: string;
2736
+ integration_id: string;
2737
+ subscription_id: string;
2738
+ timestamp: string;
2739
+ workspace_id: string;
2740
+ workspace_name: string;
2741
+ accessible_by?: ({
2742
+ id: string;
2743
+ type: "person";
2744
+ } | {
2745
+ id: string;
2746
+ type: "bot";
2747
+ })[] | undefined;
2748
+ } | {
2749
+ [x: string]: z.core.util.JSONType;
2750
+ data: {
2751
+ parent: {
2752
+ id: string;
2753
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2754
+ data_source_id?: string | undefined;
2755
+ };
2756
+ };
2757
+ entity: {
2758
+ id: string;
2759
+ type: "block" | "database" | "data_source";
2760
+ };
2761
+ type: "database.created";
2762
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2763
+ attempt_number: number;
2764
+ authors: ({
2765
+ id: string;
2766
+ type: "person";
2767
+ } | {
2768
+ id: string;
2769
+ type: "bot";
2770
+ } | {
2771
+ id: string;
2772
+ type: "agent";
2773
+ })[];
2774
+ id: string;
2775
+ integration_id: string;
2776
+ subscription_id: string;
2777
+ timestamp: string;
2778
+ workspace_id: string;
2779
+ workspace_name: string;
2780
+ accessible_by?: ({
2781
+ id: string;
2782
+ type: "person";
2783
+ } | {
2784
+ id: string;
2785
+ type: "bot";
2786
+ })[] | undefined;
2787
+ } | {
2788
+ [x: string]: z.core.util.JSONType;
2789
+ data: {
2790
+ parent: {
2791
+ id: string;
2792
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2793
+ data_source_id?: string | undefined;
2794
+ };
2795
+ };
2796
+ entity: {
2797
+ id: string;
2798
+ type: "block" | "database" | "data_source";
2799
+ };
2800
+ type: "database.deleted";
2801
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2802
+ attempt_number: number;
2803
+ authors: ({
2804
+ id: string;
2805
+ type: "person";
2806
+ } | {
2807
+ id: string;
2808
+ type: "bot";
2809
+ } | {
2810
+ id: string;
2811
+ type: "agent";
2812
+ })[];
2813
+ id: string;
2814
+ integration_id: string;
2815
+ subscription_id: string;
2816
+ timestamp: string;
2817
+ workspace_id: string;
2818
+ workspace_name: string;
2819
+ accessible_by?: ({
2820
+ id: string;
2821
+ type: "person";
2822
+ } | {
2823
+ id: string;
2824
+ type: "bot";
2825
+ })[] | undefined;
2826
+ } | {
2827
+ [x: string]: z.core.util.JSONType;
2828
+ data: {
2829
+ parent: {
2830
+ id: string;
2831
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2832
+ data_source_id?: string | undefined;
2833
+ };
2834
+ };
2835
+ entity: {
2836
+ id: string;
2837
+ type: "block" | "database" | "data_source";
2838
+ };
2839
+ type: "database.moved";
2840
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2841
+ attempt_number: number;
2842
+ authors: ({
2843
+ id: string;
2844
+ type: "person";
2845
+ } | {
2846
+ id: string;
2847
+ type: "bot";
2848
+ } | {
2849
+ id: string;
2850
+ type: "agent";
2851
+ })[];
2852
+ id: string;
2853
+ integration_id: string;
2854
+ subscription_id: string;
2855
+ timestamp: string;
2856
+ workspace_id: string;
2857
+ workspace_name: string;
2858
+ accessible_by?: ({
2859
+ id: string;
2860
+ type: "person";
2861
+ } | {
2862
+ id: string;
2863
+ type: "bot";
2864
+ })[] | undefined;
2865
+ } | {
2866
+ [x: string]: z.core.util.JSONType;
2867
+ data: {
2868
+ parent: {
2869
+ id: string;
2870
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
2871
+ data_source_id?: string | undefined;
2872
+ };
2873
+ };
2874
+ entity: {
2875
+ id: string;
2876
+ type: "block" | "database" | "data_source";
2877
+ };
2878
+ type: "database.undeleted";
2879
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2880
+ attempt_number: number;
2881
+ authors: ({
2882
+ id: string;
2883
+ type: "person";
2884
+ } | {
2885
+ id: string;
2886
+ type: "bot";
2887
+ } | {
2888
+ id: string;
2889
+ type: "agent";
2890
+ })[];
2891
+ id: string;
2892
+ integration_id: string;
2893
+ subscription_id: string;
2894
+ timestamp: string;
2895
+ workspace_id: string;
2896
+ workspace_name: string;
2897
+ accessible_by?: ({
2898
+ id: string;
2899
+ type: "person";
2900
+ } | {
2901
+ id: string;
2902
+ type: "bot";
2903
+ })[] | undefined;
2904
+ } | {
2905
+ [x: string]: z.core.util.JSONType;
2906
+ entity: {
2907
+ id: string;
2908
+ type: "file_upload";
2909
+ };
2910
+ type: "file_upload.completed";
2911
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2912
+ attempt_number: number;
2913
+ authors: ({
2914
+ id: string;
2915
+ type: "person";
2916
+ } | {
2917
+ id: string;
2918
+ type: "bot";
2919
+ } | {
2920
+ id: string;
2921
+ type: "agent";
2922
+ })[];
2923
+ id: string;
2924
+ integration_id: string;
2925
+ subscription_id: string;
2926
+ timestamp: string;
2927
+ workspace_id: string;
2928
+ workspace_name: string;
2929
+ accessible_by?: ({
2930
+ id: string;
2931
+ type: "person";
2932
+ } | {
2933
+ id: string;
2934
+ type: "bot";
2935
+ })[] | undefined;
2936
+ } | {
2937
+ [x: string]: z.core.util.JSONType;
2938
+ entity: {
2939
+ id: string;
2940
+ type: "file_upload";
2941
+ };
2942
+ type: "file_upload.created";
2943
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2944
+ attempt_number: number;
2945
+ authors: ({
2946
+ id: string;
2947
+ type: "person";
2948
+ } | {
2949
+ id: string;
2950
+ type: "bot";
2951
+ } | {
2952
+ id: string;
2953
+ type: "agent";
2954
+ })[];
2955
+ id: string;
2956
+ integration_id: string;
2957
+ subscription_id: string;
2958
+ timestamp: string;
2959
+ workspace_id: string;
2960
+ workspace_name: string;
2961
+ accessible_by?: ({
2962
+ id: string;
2963
+ type: "person";
2964
+ } | {
2965
+ id: string;
2966
+ type: "bot";
2967
+ })[] | undefined;
2968
+ } | {
2969
+ [x: string]: z.core.util.JSONType;
2970
+ entity: {
2971
+ id: string;
2972
+ type: "file_upload";
2973
+ };
2974
+ type: "file_upload.expired";
2975
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
2976
+ attempt_number: number;
2977
+ authors: ({
2978
+ id: string;
2979
+ type: "person";
2980
+ } | {
2981
+ id: string;
2982
+ type: "bot";
2983
+ } | {
2984
+ id: string;
2985
+ type: "agent";
2986
+ })[];
2987
+ id: string;
2988
+ integration_id: string;
2989
+ subscription_id: string;
2990
+ timestamp: string;
2991
+ workspace_id: string;
2992
+ workspace_name: string;
2993
+ accessible_by?: ({
2994
+ id: string;
2995
+ type: "person";
2996
+ } | {
2997
+ id: string;
2998
+ type: "bot";
2999
+ })[] | undefined;
3000
+ } | {
3001
+ [x: string]: z.core.util.JSONType;
3002
+ data: {
3003
+ file_import_result: {
3004
+ imported_time: string;
3005
+ success: Record<string, never>;
3006
+ type: "success";
3007
+ } | {
3008
+ error: {
3009
+ code: string;
3010
+ message: string;
3011
+ parameter: string | null;
3012
+ status_code: number | null;
3013
+ type: "validation_error" | "internal_system_error" | "download_error" | "upload_error";
3014
+ };
3015
+ imported_time: string;
3016
+ type: "error";
3017
+ };
3018
+ };
3019
+ entity: {
3020
+ id: string;
3021
+ type: "file_upload";
3022
+ };
3023
+ type: "file_upload.upload_failed";
3024
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3025
+ attempt_number: number;
3026
+ authors: ({
3027
+ id: string;
3028
+ type: "person";
3029
+ } | {
3030
+ id: string;
3031
+ type: "bot";
3032
+ } | {
3033
+ id: string;
3034
+ type: "agent";
3035
+ })[];
3036
+ id: string;
3037
+ integration_id: string;
3038
+ subscription_id: string;
3039
+ timestamp: string;
3040
+ workspace_id: string;
3041
+ workspace_name: string;
3042
+ accessible_by?: ({
3043
+ id: string;
3044
+ type: "person";
3045
+ } | {
3046
+ id: string;
3047
+ type: "bot";
3048
+ })[] | undefined;
3049
+ } | {
3050
+ [x: string]: z.core.util.JSONType;
3051
+ data: {
3052
+ parent: {
3053
+ id: string;
3054
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3055
+ data_source_id?: string | undefined;
3056
+ };
3057
+ updated_blocks: {
3058
+ id: string;
3059
+ type: "page" | "block" | "database";
3060
+ }[];
3061
+ };
3062
+ entity: {
3063
+ id: string;
3064
+ type: "page";
3065
+ };
3066
+ type: "page.content_updated";
3067
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3068
+ attempt_number: number;
3069
+ authors: ({
3070
+ id: string;
3071
+ type: "person";
3072
+ } | {
3073
+ id: string;
3074
+ type: "bot";
3075
+ } | {
3076
+ id: string;
3077
+ type: "agent";
3078
+ })[];
3079
+ id: string;
3080
+ integration_id: string;
3081
+ subscription_id: string;
3082
+ timestamp: string;
3083
+ workspace_id: string;
3084
+ workspace_name: string;
3085
+ accessible_by?: ({
3086
+ id: string;
3087
+ type: "person";
3088
+ } | {
3089
+ id: string;
3090
+ type: "bot";
3091
+ })[] | undefined;
3092
+ } | {
3093
+ [x: string]: z.core.util.JSONType;
3094
+ data: {
3095
+ parent: {
3096
+ id: string;
3097
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3098
+ data_source_id?: string | undefined;
3099
+ };
3100
+ };
3101
+ entity: {
3102
+ id: string;
3103
+ type: "page";
3104
+ };
3105
+ type: "page.created";
3106
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3107
+ attempt_number: number;
3108
+ authors: ({
3109
+ id: string;
3110
+ type: "person";
3111
+ } | {
3112
+ id: string;
3113
+ type: "bot";
3114
+ } | {
3115
+ id: string;
3116
+ type: "agent";
3117
+ })[];
3118
+ id: string;
3119
+ integration_id: string;
3120
+ subscription_id: string;
3121
+ timestamp: string;
3122
+ workspace_id: string;
3123
+ workspace_name: string;
3124
+ accessible_by?: ({
3125
+ id: string;
3126
+ type: "person";
3127
+ } | {
3128
+ id: string;
3129
+ type: "bot";
3130
+ })[] | undefined;
3131
+ } | {
3132
+ [x: string]: z.core.util.JSONType;
3133
+ data: {
3134
+ parent: {
3135
+ id: string;
3136
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3137
+ data_source_id?: string | undefined;
3138
+ };
3139
+ };
3140
+ entity: {
3141
+ id: string;
3142
+ type: "page";
3143
+ };
3144
+ type: "page.deleted";
3145
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3146
+ attempt_number: number;
3147
+ authors: ({
3148
+ id: string;
3149
+ type: "person";
3150
+ } | {
3151
+ id: string;
3152
+ type: "bot";
3153
+ } | {
3154
+ id: string;
3155
+ type: "agent";
3156
+ })[];
3157
+ id: string;
3158
+ integration_id: string;
3159
+ subscription_id: string;
3160
+ timestamp: string;
3161
+ workspace_id: string;
3162
+ workspace_name: string;
3163
+ accessible_by?: ({
3164
+ id: string;
3165
+ type: "person";
3166
+ } | {
3167
+ id: string;
3168
+ type: "bot";
3169
+ })[] | undefined;
3170
+ } | {
3171
+ [x: string]: z.core.util.JSONType;
3172
+ data: {
3173
+ parent: {
3174
+ id: string;
3175
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3176
+ data_source_id?: string | undefined;
3177
+ };
3178
+ };
3179
+ entity: {
3180
+ id: string;
3181
+ type: "page";
3182
+ };
3183
+ type: "page.locked";
3184
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3185
+ attempt_number: number;
3186
+ authors: ({
3187
+ id: string;
3188
+ type: "person";
3189
+ } | {
3190
+ id: string;
3191
+ type: "bot";
3192
+ } | {
3193
+ id: string;
3194
+ type: "agent";
3195
+ })[];
3196
+ id: string;
3197
+ integration_id: string;
3198
+ subscription_id: string;
3199
+ timestamp: string;
3200
+ workspace_id: string;
3201
+ workspace_name: string;
3202
+ accessible_by?: ({
3203
+ id: string;
3204
+ type: "person";
3205
+ } | {
3206
+ id: string;
3207
+ type: "bot";
3208
+ })[] | undefined;
3209
+ } | {
3210
+ [x: string]: z.core.util.JSONType;
3211
+ data: {
3212
+ parent: {
3213
+ id: string;
3214
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3215
+ data_source_id?: string | undefined;
3216
+ };
3217
+ };
3218
+ entity: {
3219
+ id: string;
3220
+ type: "page";
3221
+ };
3222
+ type: "page.moved";
3223
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3224
+ attempt_number: number;
3225
+ authors: ({
3226
+ id: string;
3227
+ type: "person";
3228
+ } | {
3229
+ id: string;
3230
+ type: "bot";
3231
+ } | {
3232
+ id: string;
3233
+ type: "agent";
3234
+ })[];
3235
+ id: string;
3236
+ integration_id: string;
3237
+ subscription_id: string;
3238
+ timestamp: string;
3239
+ workspace_id: string;
3240
+ workspace_name: string;
3241
+ accessible_by?: ({
3242
+ id: string;
3243
+ type: "person";
3244
+ } | {
3245
+ id: string;
3246
+ type: "bot";
3247
+ })[] | undefined;
3248
+ } | {
3249
+ [x: string]: z.core.util.JSONType;
3250
+ data: {
3251
+ parent: {
3252
+ id: string;
3253
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3254
+ data_source_id?: string | undefined;
3255
+ };
3256
+ updated_properties: string[];
3257
+ };
3258
+ entity: {
3259
+ id: string;
3260
+ type: "page";
3261
+ };
3262
+ type: "page.properties_updated";
3263
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3264
+ attempt_number: number;
3265
+ authors: ({
3266
+ id: string;
3267
+ type: "person";
3268
+ } | {
3269
+ id: string;
3270
+ type: "bot";
3271
+ } | {
3272
+ id: string;
3273
+ type: "agent";
3274
+ })[];
3275
+ id: string;
3276
+ integration_id: string;
3277
+ subscription_id: string;
3278
+ timestamp: string;
3279
+ workspace_id: string;
3280
+ workspace_name: string;
3281
+ accessible_by?: ({
3282
+ id: string;
3283
+ type: "person";
3284
+ } | {
3285
+ id: string;
3286
+ type: "bot";
3287
+ })[] | undefined;
3288
+ } | {
3289
+ [x: string]: z.core.util.JSONType;
3290
+ data: {
3291
+ target: {
3292
+ id: string;
3293
+ type: "page" | "block" | "database";
3294
+ };
3295
+ transcript_id: string | null;
3296
+ };
3297
+ entity: {
3298
+ id: string;
3299
+ type: "page";
3300
+ };
3301
+ type: "page.transcription_block.transcript_deleted";
3302
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3303
+ attempt_number: number;
3304
+ authors: ({
3305
+ id: string;
3306
+ type: "person";
3307
+ } | {
3308
+ id: string;
3309
+ type: "bot";
3310
+ } | {
3311
+ id: string;
3312
+ type: "agent";
3313
+ })[];
3314
+ id: string;
3315
+ integration_id: string;
3316
+ subscription_id: string;
3317
+ timestamp: string;
3318
+ workspace_id: string;
3319
+ workspace_name: string;
3320
+ accessible_by?: ({
3321
+ id: string;
3322
+ type: "person";
3323
+ } | {
3324
+ id: string;
3325
+ type: "bot";
3326
+ })[] | undefined;
3327
+ } | {
3328
+ [x: string]: z.core.util.JSONType;
3329
+ data: {
3330
+ parent: {
3331
+ id: string;
3332
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3333
+ data_source_id?: string | undefined;
3334
+ };
3335
+ };
3336
+ entity: {
3337
+ id: string;
3338
+ type: "page";
3339
+ };
3340
+ type: "page.undeleted";
3341
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3342
+ attempt_number: number;
3343
+ authors: ({
3344
+ id: string;
3345
+ type: "person";
3346
+ } | {
3347
+ id: string;
3348
+ type: "bot";
3349
+ } | {
3350
+ id: string;
3351
+ type: "agent";
3352
+ })[];
3353
+ id: string;
3354
+ integration_id: string;
3355
+ subscription_id: string;
3356
+ timestamp: string;
3357
+ workspace_id: string;
3358
+ workspace_name: string;
3359
+ accessible_by?: ({
3360
+ id: string;
3361
+ type: "person";
3362
+ } | {
3363
+ id: string;
3364
+ type: "bot";
3365
+ })[] | undefined;
3366
+ } | {
3367
+ [x: string]: z.core.util.JSONType;
3368
+ data: {
3369
+ parent: {
3370
+ id: string;
3371
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3372
+ data_source_id?: string | undefined;
3373
+ };
3374
+ };
3375
+ entity: {
3376
+ id: string;
3377
+ type: "page";
3378
+ };
3379
+ type: "page.unlocked";
3380
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3381
+ attempt_number: number;
3382
+ authors: ({
3383
+ id: string;
3384
+ type: "person";
3385
+ } | {
3386
+ id: string;
3387
+ type: "bot";
3388
+ } | {
3389
+ id: string;
3390
+ type: "agent";
3391
+ })[];
3392
+ id: string;
3393
+ integration_id: string;
3394
+ subscription_id: string;
3395
+ timestamp: string;
3396
+ workspace_id: string;
3397
+ workspace_name: string;
3398
+ accessible_by?: ({
3399
+ id: string;
3400
+ type: "person";
3401
+ } | {
3402
+ id: string;
3403
+ type: "bot";
3404
+ })[] | undefined;
3405
+ } | {
3406
+ [x: string]: z.core.util.JSONType;
3407
+ data: {
3408
+ parent: {
3409
+ id: string;
3410
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3411
+ data_source_id?: string | undefined;
3412
+ };
3413
+ view_type: string;
3414
+ };
3415
+ entity: {
3416
+ id: string;
3417
+ type: "view";
3418
+ };
3419
+ type: "view.created";
3420
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3421
+ attempt_number: number;
3422
+ authors: ({
3423
+ id: string;
3424
+ type: "person";
3425
+ } | {
3426
+ id: string;
3427
+ type: "bot";
3428
+ } | {
3429
+ id: string;
3430
+ type: "agent";
3431
+ })[];
3432
+ id: string;
3433
+ integration_id: string;
3434
+ subscription_id: string;
3435
+ timestamp: string;
3436
+ workspace_id: string;
3437
+ workspace_name: string;
3438
+ accessible_by?: ({
3439
+ id: string;
3440
+ type: "person";
3441
+ } | {
3442
+ id: string;
3443
+ type: "bot";
3444
+ })[] | undefined;
3445
+ } | {
3446
+ [x: string]: z.core.util.JSONType;
3447
+ data: {
3448
+ parent: {
3449
+ id: string;
3450
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3451
+ data_source_id?: string | undefined;
3452
+ };
3453
+ };
3454
+ entity: {
3455
+ id: string;
3456
+ type: "view";
3457
+ };
3458
+ type: "view.deleted";
3459
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3460
+ attempt_number: number;
3461
+ authors: ({
3462
+ id: string;
3463
+ type: "person";
3464
+ } | {
3465
+ id: string;
3466
+ type: "bot";
3467
+ } | {
3468
+ id: string;
3469
+ type: "agent";
3470
+ })[];
3471
+ id: string;
3472
+ integration_id: string;
3473
+ subscription_id: string;
3474
+ timestamp: string;
3475
+ workspace_id: string;
3476
+ workspace_name: string;
3477
+ accessible_by?: ({
3478
+ id: string;
3479
+ type: "person";
3480
+ } | {
3481
+ id: string;
3482
+ type: "bot";
3483
+ })[] | undefined;
3484
+ } | {
3485
+ [x: string]: z.core.util.JSONType;
3486
+ data: {
3487
+ parent: {
3488
+ id: string;
3489
+ type: "team" | "page" | "space" | "agent" | "block" | "database";
3490
+ data_source_id?: string | undefined;
3491
+ };
3492
+ updated_fields: ("filter" | "name" | "sorts" | "configuration")[];
3493
+ };
3494
+ entity: {
3495
+ id: string;
3496
+ type: "view";
3497
+ };
3498
+ type: "view.updated";
3499
+ api_version: "2022-06-28" | "2025-09-03" | "2026-03-11";
3500
+ attempt_number: number;
3501
+ authors: ({
3502
+ id: string;
3503
+ type: "person";
3504
+ } | {
3505
+ id: string;
3506
+ type: "bot";
3507
+ } | {
3508
+ id: string;
3509
+ type: "agent";
3510
+ })[];
3511
+ id: string;
3512
+ integration_id: string;
3513
+ subscription_id: string;
3514
+ timestamp: string;
3515
+ workspace_id: string;
3516
+ workspace_name: string;
3517
+ accessible_by?: ({
3518
+ id: string;
3519
+ type: "person";
3520
+ } | {
3521
+ id: string;
3522
+ type: "bot";
3523
+ })[] | undefined;
3524
+ }>>]>, z.ZodObject<{}, z.core.$strip>, Record<never, never>, Record<never, never>>;
1454
3525
  };