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