@automate.ax/api-contract 0.128.0 → 0.130.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ import * as z from "zod";
2
+ export declare const discordEventsContract: {
3
+ discordEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4
+ applicationId: z.ZodString;
5
+ application_id: z.ZodString;
6
+ event: z.ZodOptional<z.ZodObject<{
7
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
8
+ timestamp: z.ZodString;
9
+ type: z.ZodString;
10
+ }, z.core.$loose>>;
11
+ type: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>;
12
+ version: z.ZodLiteral<1>;
13
+ }, z.core.$loose>, z.ZodVoid, Record<never, never>, Record<never, never>>;
14
+ };
@@ -0,0 +1,28 @@
1
+ import { oc } from "@orpc/contract";
2
+ import * as z from "zod";
3
+ export const discordEventsContract = {
4
+ discordEvent: oc
5
+ .route({
6
+ description: "Receives and authenticates callbacks delivered by Discord Event Webhooks.",
7
+ method: "POST",
8
+ operationId: "receiveDiscordEvent",
9
+ path: "/events/discord/{applicationId}",
10
+ successStatus: 204,
11
+ summary: "Receive a Discord webhook event",
12
+ tags: ["Events"],
13
+ })
14
+ .input(z.looseObject({
15
+ applicationId: z.string(),
16
+ application_id: z.string(),
17
+ event: z
18
+ .looseObject({
19
+ data: z.record(z.string(), z.json()).optional(),
20
+ timestamp: z.string(),
21
+ type: z.string(),
22
+ })
23
+ .optional(),
24
+ type: z.union([z.literal(0), z.literal(1)]),
25
+ version: z.literal(1),
26
+ }))
27
+ .output(z.void()),
28
+ };
@@ -1502,9 +1502,9 @@ export declare const eventsContract: {
1502
1502
  };
1503
1503
  pageId: string;
1504
1504
  };
1505
+ subscriptionId: string;
1505
1506
  workspaceId: string;
1506
1507
  workspaceName: string;
1507
- subscriptionId: string;
1508
1508
  integrationId: string;
1509
1509
  attemptNumber: number;
1510
1510
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1521,7 +1521,7 @@ export declare const eventsContract: {
1521
1521
  };
1522
1522
  authors: {
1523
1523
  id: string;
1524
- type: "agent" | "bot" | "person";
1524
+ type: "bot" | "agent" | "person";
1525
1525
  }[];
1526
1526
  } | {
1527
1527
  type: "comment.deleted";
@@ -1534,9 +1534,9 @@ export declare const eventsContract: {
1534
1534
  };
1535
1535
  pageId: string;
1536
1536
  };
1537
+ subscriptionId: string;
1537
1538
  workspaceId: string;
1538
1539
  workspaceName: string;
1539
- subscriptionId: string;
1540
1540
  integrationId: string;
1541
1541
  attemptNumber: number;
1542
1542
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1553,7 +1553,7 @@ export declare const eventsContract: {
1553
1553
  };
1554
1554
  authors: {
1555
1555
  id: string;
1556
- type: "agent" | "bot" | "person";
1556
+ type: "bot" | "agent" | "person";
1557
1557
  }[];
1558
1558
  } | {
1559
1559
  type: "comment.updated";
@@ -1566,9 +1566,9 @@ export declare const eventsContract: {
1566
1566
  };
1567
1567
  pageId: string;
1568
1568
  };
1569
+ subscriptionId: string;
1569
1570
  workspaceId: string;
1570
1571
  workspaceName: string;
1571
- subscriptionId: string;
1572
1572
  integrationId: string;
1573
1573
  attemptNumber: number;
1574
1574
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1585,7 +1585,7 @@ export declare const eventsContract: {
1585
1585
  };
1586
1586
  authors: {
1587
1587
  id: string;
1588
- type: "agent" | "bot" | "person";
1588
+ type: "bot" | "agent" | "person";
1589
1589
  }[];
1590
1590
  } | {
1591
1591
  type: "data_source.content_updated";
@@ -1602,9 +1602,9 @@ export declare const eventsContract: {
1602
1602
  type: "page" | "block" | "database";
1603
1603
  }[];
1604
1604
  };
1605
+ subscriptionId: string;
1605
1606
  workspaceId: string;
1606
1607
  workspaceName: string;
1607
- subscriptionId: string;
1608
1608
  integrationId: string;
1609
1609
  attemptNumber: number;
1610
1610
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1621,7 +1621,7 @@ export declare const eventsContract: {
1621
1621
  };
1622
1622
  authors: {
1623
1623
  id: string;
1624
- type: "agent" | "bot" | "person";
1624
+ type: "bot" | "agent" | "person";
1625
1625
  }[];
1626
1626
  } | {
1627
1627
  type: "data_source.created";
@@ -1634,9 +1634,9 @@ export declare const eventsContract: {
1634
1634
  dataSourceId?: string | undefined;
1635
1635
  };
1636
1636
  };
1637
+ subscriptionId: string;
1637
1638
  workspaceId: string;
1638
1639
  workspaceName: string;
1639
- subscriptionId: string;
1640
1640
  integrationId: string;
1641
1641
  attemptNumber: number;
1642
1642
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1653,7 +1653,7 @@ export declare const eventsContract: {
1653
1653
  };
1654
1654
  authors: {
1655
1655
  id: string;
1656
- type: "agent" | "bot" | "person";
1656
+ type: "bot" | "agent" | "person";
1657
1657
  }[];
1658
1658
  } | {
1659
1659
  type: "data_source.deleted";
@@ -1666,9 +1666,9 @@ export declare const eventsContract: {
1666
1666
  dataSourceId?: string | undefined;
1667
1667
  };
1668
1668
  };
1669
+ subscriptionId: string;
1669
1670
  workspaceId: string;
1670
1671
  workspaceName: string;
1671
- subscriptionId: string;
1672
1672
  integrationId: string;
1673
1673
  attemptNumber: number;
1674
1674
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1685,7 +1685,7 @@ export declare const eventsContract: {
1685
1685
  };
1686
1686
  authors: {
1687
1687
  id: string;
1688
- type: "agent" | "bot" | "person";
1688
+ type: "bot" | "agent" | "person";
1689
1689
  }[];
1690
1690
  } | {
1691
1691
  type: "data_source.moved";
@@ -1698,9 +1698,9 @@ export declare const eventsContract: {
1698
1698
  dataSourceId?: string | undefined;
1699
1699
  };
1700
1700
  };
1701
+ subscriptionId: string;
1701
1702
  workspaceId: string;
1702
1703
  workspaceName: string;
1703
- subscriptionId: string;
1704
1704
  integrationId: string;
1705
1705
  attemptNumber: number;
1706
1706
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1717,7 +1717,7 @@ export declare const eventsContract: {
1717
1717
  };
1718
1718
  authors: {
1719
1719
  id: string;
1720
- type: "agent" | "bot" | "person";
1720
+ type: "bot" | "agent" | "person";
1721
1721
  }[];
1722
1722
  } | {
1723
1723
  type: "data_source.schema_updated";
@@ -1735,9 +1735,9 @@ export declare const eventsContract: {
1735
1735
  action: "created" | "updated" | "deleted";
1736
1736
  }[] | undefined;
1737
1737
  };
1738
+ subscriptionId: string;
1738
1739
  workspaceId: string;
1739
1740
  workspaceName: string;
1740
- subscriptionId: string;
1741
1741
  integrationId: string;
1742
1742
  attemptNumber: number;
1743
1743
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1754,7 +1754,7 @@ export declare const eventsContract: {
1754
1754
  };
1755
1755
  authors: {
1756
1756
  id: string;
1757
- type: "agent" | "bot" | "person";
1757
+ type: "bot" | "agent" | "person";
1758
1758
  }[];
1759
1759
  } | {
1760
1760
  type: "data_source.undeleted";
@@ -1767,9 +1767,9 @@ export declare const eventsContract: {
1767
1767
  dataSourceId?: string | undefined;
1768
1768
  };
1769
1769
  };
1770
+ subscriptionId: string;
1770
1771
  workspaceId: string;
1771
1772
  workspaceName: string;
1772
- subscriptionId: string;
1773
1773
  integrationId: string;
1774
1774
  attemptNumber: number;
1775
1775
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1786,7 +1786,7 @@ export declare const eventsContract: {
1786
1786
  };
1787
1787
  authors: {
1788
1788
  id: string;
1789
- type: "agent" | "bot" | "person";
1789
+ type: "bot" | "agent" | "person";
1790
1790
  }[];
1791
1791
  } | {
1792
1792
  type: "database.created";
@@ -1799,9 +1799,9 @@ export declare const eventsContract: {
1799
1799
  dataSourceId?: string | undefined;
1800
1800
  };
1801
1801
  };
1802
+ subscriptionId: string;
1802
1803
  workspaceId: string;
1803
1804
  workspaceName: string;
1804
- subscriptionId: string;
1805
1805
  integrationId: string;
1806
1806
  attemptNumber: number;
1807
1807
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1818,7 +1818,7 @@ export declare const eventsContract: {
1818
1818
  };
1819
1819
  authors: {
1820
1820
  id: string;
1821
- type: "agent" | "bot" | "person";
1821
+ type: "bot" | "agent" | "person";
1822
1822
  }[];
1823
1823
  } | {
1824
1824
  type: "database.deleted";
@@ -1831,9 +1831,9 @@ export declare const eventsContract: {
1831
1831
  dataSourceId?: string | undefined;
1832
1832
  };
1833
1833
  };
1834
+ subscriptionId: string;
1834
1835
  workspaceId: string;
1835
1836
  workspaceName: string;
1836
- subscriptionId: string;
1837
1837
  integrationId: string;
1838
1838
  attemptNumber: number;
1839
1839
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1850,7 +1850,7 @@ export declare const eventsContract: {
1850
1850
  };
1851
1851
  authors: {
1852
1852
  id: string;
1853
- type: "agent" | "bot" | "person";
1853
+ type: "bot" | "agent" | "person";
1854
1854
  }[];
1855
1855
  } | {
1856
1856
  type: "database.moved";
@@ -1863,9 +1863,9 @@ export declare const eventsContract: {
1863
1863
  dataSourceId?: string | undefined;
1864
1864
  };
1865
1865
  };
1866
+ subscriptionId: string;
1866
1867
  workspaceId: string;
1867
1868
  workspaceName: string;
1868
- subscriptionId: string;
1869
1869
  integrationId: string;
1870
1870
  attemptNumber: number;
1871
1871
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1882,7 +1882,7 @@ export declare const eventsContract: {
1882
1882
  };
1883
1883
  authors: {
1884
1884
  id: string;
1885
- type: "agent" | "bot" | "person";
1885
+ type: "bot" | "agent" | "person";
1886
1886
  }[];
1887
1887
  } | {
1888
1888
  type: "database.undeleted";
@@ -1895,9 +1895,9 @@ export declare const eventsContract: {
1895
1895
  dataSourceId?: string | undefined;
1896
1896
  };
1897
1897
  };
1898
+ subscriptionId: string;
1898
1899
  workspaceId: string;
1899
1900
  workspaceName: string;
1900
- subscriptionId: string;
1901
1901
  integrationId: string;
1902
1902
  attemptNumber: number;
1903
1903
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1914,15 +1914,15 @@ export declare const eventsContract: {
1914
1914
  };
1915
1915
  authors: {
1916
1916
  id: string;
1917
- type: "agent" | "bot" | "person";
1917
+ type: "bot" | "agent" | "person";
1918
1918
  }[];
1919
1919
  } | {
1920
1920
  type: "file_upload.completed";
1921
1921
  id: string;
1922
1922
  timestamp: string;
1923
+ subscriptionId: string;
1923
1924
  workspaceId: string;
1924
1925
  workspaceName: string;
1925
- subscriptionId: string;
1926
1926
  integrationId: string;
1927
1927
  attemptNumber: number;
1928
1928
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1939,15 +1939,15 @@ export declare const eventsContract: {
1939
1939
  };
1940
1940
  authors: {
1941
1941
  id: string;
1942
- type: "agent" | "bot" | "person";
1942
+ type: "bot" | "agent" | "person";
1943
1943
  }[];
1944
1944
  } | {
1945
1945
  type: "file_upload.created";
1946
1946
  id: string;
1947
1947
  timestamp: string;
1948
+ subscriptionId: string;
1948
1949
  workspaceId: string;
1949
1950
  workspaceName: string;
1950
- subscriptionId: string;
1951
1951
  integrationId: string;
1952
1952
  attemptNumber: number;
1953
1953
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1964,15 +1964,15 @@ export declare const eventsContract: {
1964
1964
  };
1965
1965
  authors: {
1966
1966
  id: string;
1967
- type: "agent" | "bot" | "person";
1967
+ type: "bot" | "agent" | "person";
1968
1968
  }[];
1969
1969
  } | {
1970
1970
  type: "file_upload.expired";
1971
1971
  id: string;
1972
1972
  timestamp: string;
1973
+ subscriptionId: string;
1973
1974
  workspaceId: string;
1974
1975
  workspaceName: string;
1975
- subscriptionId: string;
1976
1976
  integrationId: string;
1977
1977
  attemptNumber: number;
1978
1978
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -1989,7 +1989,7 @@ export declare const eventsContract: {
1989
1989
  };
1990
1990
  authors: {
1991
1991
  id: string;
1992
- type: "agent" | "bot" | "person";
1992
+ type: "bot" | "agent" | "person";
1993
1993
  }[];
1994
1994
  } | {
1995
1995
  type: "file_upload.upload_failed";
@@ -2014,9 +2014,9 @@ export declare const eventsContract: {
2014
2014
  };
2015
2015
  };
2016
2016
  };
2017
+ subscriptionId: string;
2017
2018
  workspaceId: string;
2018
2019
  workspaceName: string;
2019
- subscriptionId: string;
2020
2020
  integrationId: string;
2021
2021
  attemptNumber: number;
2022
2022
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2033,7 +2033,7 @@ export declare const eventsContract: {
2033
2033
  };
2034
2034
  authors: {
2035
2035
  id: string;
2036
- type: "agent" | "bot" | "person";
2036
+ type: "bot" | "agent" | "person";
2037
2037
  }[];
2038
2038
  } | {
2039
2039
  type: "page.content_updated";
@@ -2050,9 +2050,9 @@ export declare const eventsContract: {
2050
2050
  type: "page" | "block" | "database";
2051
2051
  }[];
2052
2052
  };
2053
+ subscriptionId: string;
2053
2054
  workspaceId: string;
2054
2055
  workspaceName: string;
2055
- subscriptionId: string;
2056
2056
  integrationId: string;
2057
2057
  attemptNumber: number;
2058
2058
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2069,7 +2069,7 @@ export declare const eventsContract: {
2069
2069
  };
2070
2070
  authors: {
2071
2071
  id: string;
2072
- type: "agent" | "bot" | "person";
2072
+ type: "bot" | "agent" | "person";
2073
2073
  }[];
2074
2074
  } | {
2075
2075
  type: "page.created";
@@ -2082,9 +2082,9 @@ export declare const eventsContract: {
2082
2082
  dataSourceId?: string | undefined;
2083
2083
  };
2084
2084
  };
2085
+ subscriptionId: string;
2085
2086
  workspaceId: string;
2086
2087
  workspaceName: string;
2087
- subscriptionId: string;
2088
2088
  integrationId: string;
2089
2089
  attemptNumber: number;
2090
2090
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2101,7 +2101,7 @@ export declare const eventsContract: {
2101
2101
  };
2102
2102
  authors: {
2103
2103
  id: string;
2104
- type: "agent" | "bot" | "person";
2104
+ type: "bot" | "agent" | "person";
2105
2105
  }[];
2106
2106
  } | {
2107
2107
  type: "page.deleted";
@@ -2114,9 +2114,9 @@ export declare const eventsContract: {
2114
2114
  dataSourceId?: string | undefined;
2115
2115
  };
2116
2116
  };
2117
+ subscriptionId: string;
2117
2118
  workspaceId: string;
2118
2119
  workspaceName: string;
2119
- subscriptionId: string;
2120
2120
  integrationId: string;
2121
2121
  attemptNumber: number;
2122
2122
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2133,7 +2133,7 @@ export declare const eventsContract: {
2133
2133
  };
2134
2134
  authors: {
2135
2135
  id: string;
2136
- type: "agent" | "bot" | "person";
2136
+ type: "bot" | "agent" | "person";
2137
2137
  }[];
2138
2138
  } | {
2139
2139
  type: "page.locked";
@@ -2146,9 +2146,9 @@ export declare const eventsContract: {
2146
2146
  dataSourceId?: string | undefined;
2147
2147
  };
2148
2148
  };
2149
+ subscriptionId: string;
2149
2150
  workspaceId: string;
2150
2151
  workspaceName: string;
2151
- subscriptionId: string;
2152
2152
  integrationId: string;
2153
2153
  attemptNumber: number;
2154
2154
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2165,7 +2165,7 @@ export declare const eventsContract: {
2165
2165
  };
2166
2166
  authors: {
2167
2167
  id: string;
2168
- type: "agent" | "bot" | "person";
2168
+ type: "bot" | "agent" | "person";
2169
2169
  }[];
2170
2170
  } | {
2171
2171
  type: "page.moved";
@@ -2178,9 +2178,9 @@ export declare const eventsContract: {
2178
2178
  dataSourceId?: string | undefined;
2179
2179
  };
2180
2180
  };
2181
+ subscriptionId: string;
2181
2182
  workspaceId: string;
2182
2183
  workspaceName: string;
2183
- subscriptionId: string;
2184
2184
  integrationId: string;
2185
2185
  attemptNumber: number;
2186
2186
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2197,7 +2197,7 @@ export declare const eventsContract: {
2197
2197
  };
2198
2198
  authors: {
2199
2199
  id: string;
2200
- type: "agent" | "bot" | "person";
2200
+ type: "bot" | "agent" | "person";
2201
2201
  }[];
2202
2202
  } | {
2203
2203
  type: "page.properties_updated";
@@ -2211,9 +2211,9 @@ export declare const eventsContract: {
2211
2211
  };
2212
2212
  updatedProperties: string[];
2213
2213
  };
2214
+ subscriptionId: string;
2214
2215
  workspaceId: string;
2215
2216
  workspaceName: string;
2216
- subscriptionId: string;
2217
2217
  integrationId: string;
2218
2218
  attemptNumber: number;
2219
2219
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2230,7 +2230,7 @@ export declare const eventsContract: {
2230
2230
  };
2231
2231
  authors: {
2232
2232
  id: string;
2233
- type: "agent" | "bot" | "person";
2233
+ type: "bot" | "agent" | "person";
2234
2234
  }[];
2235
2235
  } | {
2236
2236
  type: "page.transcription_block.transcript_deleted";
@@ -2243,9 +2243,9 @@ export declare const eventsContract: {
2243
2243
  };
2244
2244
  transcriptId: string | null;
2245
2245
  };
2246
+ subscriptionId: string;
2246
2247
  workspaceId: string;
2247
2248
  workspaceName: string;
2248
- subscriptionId: string;
2249
2249
  integrationId: string;
2250
2250
  attemptNumber: number;
2251
2251
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2262,7 +2262,7 @@ export declare const eventsContract: {
2262
2262
  };
2263
2263
  authors: {
2264
2264
  id: string;
2265
- type: "agent" | "bot" | "person";
2265
+ type: "bot" | "agent" | "person";
2266
2266
  }[];
2267
2267
  } | {
2268
2268
  type: "page.undeleted";
@@ -2275,9 +2275,9 @@ export declare const eventsContract: {
2275
2275
  dataSourceId?: string | undefined;
2276
2276
  };
2277
2277
  };
2278
+ subscriptionId: string;
2278
2279
  workspaceId: string;
2279
2280
  workspaceName: string;
2280
- subscriptionId: string;
2281
2281
  integrationId: string;
2282
2282
  attemptNumber: number;
2283
2283
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2294,7 +2294,7 @@ export declare const eventsContract: {
2294
2294
  };
2295
2295
  authors: {
2296
2296
  id: string;
2297
- type: "agent" | "bot" | "person";
2297
+ type: "bot" | "agent" | "person";
2298
2298
  }[];
2299
2299
  } | {
2300
2300
  type: "page.unlocked";
@@ -2307,9 +2307,9 @@ export declare const eventsContract: {
2307
2307
  dataSourceId?: string | undefined;
2308
2308
  };
2309
2309
  };
2310
+ subscriptionId: string;
2310
2311
  workspaceId: string;
2311
2312
  workspaceName: string;
2312
- subscriptionId: string;
2313
2313
  integrationId: string;
2314
2314
  attemptNumber: number;
2315
2315
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2326,7 +2326,7 @@ export declare const eventsContract: {
2326
2326
  };
2327
2327
  authors: {
2328
2328
  id: string;
2329
- type: "agent" | "bot" | "person";
2329
+ type: "bot" | "agent" | "person";
2330
2330
  }[];
2331
2331
  } | {
2332
2332
  type: "view.created";
@@ -2340,9 +2340,9 @@ export declare const eventsContract: {
2340
2340
  };
2341
2341
  viewType: string;
2342
2342
  };
2343
+ subscriptionId: string;
2343
2344
  workspaceId: string;
2344
2345
  workspaceName: string;
2345
- subscriptionId: string;
2346
2346
  integrationId: string;
2347
2347
  attemptNumber: number;
2348
2348
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2359,7 +2359,7 @@ export declare const eventsContract: {
2359
2359
  };
2360
2360
  authors: {
2361
2361
  id: string;
2362
- type: "agent" | "bot" | "person";
2362
+ type: "bot" | "agent" | "person";
2363
2363
  }[];
2364
2364
  } | {
2365
2365
  type: "view.deleted";
@@ -2372,9 +2372,9 @@ export declare const eventsContract: {
2372
2372
  dataSourceId?: string | undefined;
2373
2373
  };
2374
2374
  };
2375
+ subscriptionId: string;
2375
2376
  workspaceId: string;
2376
2377
  workspaceName: string;
2377
- subscriptionId: string;
2378
2378
  integrationId: string;
2379
2379
  attemptNumber: number;
2380
2380
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2391,7 +2391,7 @@ export declare const eventsContract: {
2391
2391
  };
2392
2392
  authors: {
2393
2393
  id: string;
2394
- type: "agent" | "bot" | "person";
2394
+ type: "bot" | "agent" | "person";
2395
2395
  }[];
2396
2396
  } | {
2397
2397
  type: "view.updated";
@@ -2405,9 +2405,9 @@ export declare const eventsContract: {
2405
2405
  };
2406
2406
  updatedFields: ("filter" | "name" | "sorts" | "configuration")[];
2407
2407
  };
2408
+ subscriptionId: string;
2408
2409
  workspaceId: string;
2409
2410
  workspaceName: string;
2410
- subscriptionId: string;
2411
2411
  integrationId: string;
2412
2412
  attemptNumber: number;
2413
2413
  apiVersion: "2022-06-28" | "2025-09-03" | "2026-03-11";
@@ -2424,7 +2424,7 @@ export declare const eventsContract: {
2424
2424
  };
2425
2425
  authors: {
2426
2426
  id: string;
2427
- type: "agent" | "bot" | "person";
2427
+ type: "bot" | "agent" | "person";
2428
2428
  }[];
2429
2429
  }, {
2430
2430
  [x: string]: import("zod").JSONType;
@@ -3666,6 +3666,17 @@ export declare const eventsContract: {
3666
3666
  closeEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3667
3667
  sourceId: import("zod").ZodString;
3668
3668
  }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
3669
+ discordEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3670
+ applicationId: import("zod").ZodString;
3671
+ application_id: import("zod").ZodString;
3672
+ event: import("zod").ZodOptional<import("zod").ZodObject<{
3673
+ data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodJSONSchema>>;
3674
+ timestamp: import("zod").ZodString;
3675
+ type: import("zod").ZodString;
3676
+ }, import("zod/v4/core").$loose>>;
3677
+ type: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>]>;
3678
+ version: import("zod").ZodLiteral<1>;
3679
+ }, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
3669
3680
  convexEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3670
3681
  emittedAt: import("zod").ZodISODateTime;
3671
3682
  endpointKey: import("zod").ZodString;
@@ -4,6 +4,7 @@ import { axiomEventsContract } from "./axiom.js";
4
4
  import { asanaEventsContract } from "./asana.js";
5
5
  import { brevoEventsContract } from "./brevo.js";
6
6
  import { convexEventsContract } from "./convex.js";
7
+ import { discordEventsContract } from "./discord.js";
7
8
  import { closeEventsContract } from "./close.js";
8
9
  import { cloudflareEventsContract } from "./cloudflare.js";
9
10
  import { googleCalendarEventsContract } from "./google-calendar.js";
@@ -31,6 +32,7 @@ export const eventsContract = {
31
32
  ...asanaEventsContract,
32
33
  ...brevoEventsContract,
33
34
  ...convexEventsContract,
35
+ ...discordEventsContract,
34
36
  ...closeEventsContract,
35
37
  ...cloudflareEventsContract,
36
38
  ...googleCalendarEventsContract,