@sixb/client 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +2 -2
  2. package/dist/agent-streams.d.ts +26 -3
  3. package/dist/agent-streams.d.ts.map +1 -1
  4. package/dist/api.d.ts +6 -2
  5. package/dist/api.d.ts.map +1 -1
  6. package/dist/browser.d.ts +1 -1
  7. package/dist/browser.d.ts.map +1 -1
  8. package/dist/browser.js +2 -2
  9. package/dist/browser.js.map +1 -1
  10. package/dist/{chunk-3g6ad4jc.js → chunk-5vp5zr0d.js} +1 -1
  11. package/dist/{chunk-fxrh83wy.js → chunk-ctf97s25.js} +2 -2
  12. package/dist/{chunk-05yz32g0.js → chunk-mpgzkmwc.js} +2 -74
  13. package/dist/chunk-mpgzkmwc.js.map +10 -0
  14. package/dist/{chunk-ctsdm59b.js → chunk-skkt217g.js} +58 -3
  15. package/dist/chunk-skkt217g.js.map +19 -0
  16. package/dist/{chunk-pey7nh0d.js → chunk-tsdnw994.js} +2 -2
  17. package/dist/{chunk-2d7239yx.js → chunk-v4jdc1nb.js} +40 -28
  18. package/dist/{chunk-2d7239yx.js.map → chunk-v4jdc1nb.js.map} +3 -3
  19. package/dist/{chunk-aw8rcsq3.js → chunk-zfne7wxr.js} +27 -12
  20. package/dist/chunk-zfne7wxr.js.map +10 -0
  21. package/dist/client-provider.d.ts +8 -0
  22. package/dist/client-provider.d.ts.map +1 -0
  23. package/dist/connectors/connection.d.ts +50 -0
  24. package/dist/connectors/connection.d.ts.map +1 -0
  25. package/dist/connectors/index.d.ts +4 -0
  26. package/dist/connectors/index.d.ts.map +1 -0
  27. package/dist/connectors/mutations.d.ts +62 -0
  28. package/dist/connectors/mutations.d.ts.map +1 -0
  29. package/dist/connectors/queries.d.ts +536 -0
  30. package/dist/connectors/queries.d.ts.map +1 -0
  31. package/dist/generated/@tanstack/react-query.gen.d.ts +3954 -950
  32. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  33. package/dist/generated/index.d.ts +2 -2
  34. package/dist/generated/index.d.ts.map +1 -1
  35. package/dist/generated/sdk.gen.d.ts +33 -1
  36. package/dist/generated/sdk.gen.d.ts.map +1 -1
  37. package/dist/generated/types.gen.d.ts +1953 -251
  38. package/dist/generated/types.gen.d.ts.map +1 -1
  39. package/dist/hooks.d.ts +2 -0
  40. package/dist/hooks.d.ts.map +1 -1
  41. package/dist/hooks.js +1118 -351
  42. package/dist/hooks.js.map +11 -6
  43. package/dist/index.js +25 -11
  44. package/dist/index.js.map +1 -1
  45. package/dist/logs.js +3 -3
  46. package/dist/models.d.ts +0 -31
  47. package/dist/models.d.ts.map +1 -1
  48. package/dist/models.js +19 -7
  49. package/dist/models.js.map +1 -1
  50. package/dist/query-hooks.d.ts +2 -6
  51. package/dist/query-hooks.d.ts.map +1 -1
  52. package/dist/query.js +3 -3
  53. package/dist/useAgentActivityStream.d.ts +14 -0
  54. package/dist/useAgentActivityStream.d.ts.map +1 -0
  55. package/package.json +6 -2
  56. package/src/agent-streams.ts +68 -45
  57. package/src/api.ts +26 -2
  58. package/src/browser.ts +1 -1
  59. package/src/client-provider.ts +12 -0
  60. package/src/connectors/connection.ts +443 -0
  61. package/src/connectors/index.ts +12 -0
  62. package/src/connectors/mutations.ts +417 -0
  63. package/src/connectors/queries.ts +150 -0
  64. package/src/generated/@tanstack/react-query.gen.ts +245 -0
  65. package/src/generated/index.ts +48 -0
  66. package/src/generated/sdk.gen.ts +168 -1
  67. package/src/generated/types.gen.ts +2789 -293
  68. package/src/hooks.ts +6 -0
  69. package/src/models.ts +0 -103
  70. package/src/query-hooks.ts +8 -14
  71. package/src/useAgentActivityStream.ts +48 -0
  72. package/dist/chunk-05yz32g0.js.map +0 -10
  73. package/dist/chunk-aw8rcsq3.js.map +0 -10
  74. package/dist/chunk-ctsdm59b.js.map +0 -19
  75. /package/dist/{chunk-3g6ad4jc.js.map → chunk-5vp5zr0d.js.map} +0 -0
  76. /package/dist/{chunk-fxrh83wy.js.map → chunk-ctf97s25.js.map} +0 -0
  77. /package/dist/{chunk-pey7nh0d.js.map → chunk-tsdnw994.js.map} +0 -0
@@ -1458,6 +1458,9 @@ export type ListConnectorsResponses = {
1458
1458
  200: Array<{
1459
1459
  id: string;
1460
1460
  type: string;
1461
+ connection: {
1462
+ authentication: "oauth2";
1463
+ } | null;
1461
1464
  syncIds: Array<string>;
1462
1465
  webhooks: Array<{
1463
1466
  id: string;
@@ -1476,36 +1479,996 @@ export type GetConnectorData = {
1476
1479
  connectorId: string;
1477
1480
  };
1478
1481
  query?: never;
1479
- url: "/api/connectors/{connectorId}";
1482
+ url: "/api/connectors/{connectorId}";
1483
+ };
1484
+ export type GetConnectorErrors = {
1485
+ /**
1486
+ * Response for status 404
1487
+ */
1488
+ 404: {
1489
+ error: string;
1490
+ };
1491
+ };
1492
+ export type GetConnectorError = GetConnectorErrors[keyof GetConnectorErrors];
1493
+ export type GetConnectorResponses = {
1494
+ /**
1495
+ * Response for status 200
1496
+ */
1497
+ 200: {
1498
+ id: string;
1499
+ type: string;
1500
+ connection: {
1501
+ authentication: "oauth2";
1502
+ } | null;
1503
+ syncIds: Array<string>;
1504
+ webhooks: Array<{
1505
+ id: string;
1506
+ method: "POST";
1507
+ route: string;
1508
+ bodyFormat: "json" | "text" | "raw";
1509
+ hasVerify: boolean;
1510
+ hasIdempotency: boolean;
1511
+ }>;
1512
+ };
1513
+ };
1514
+ export type GetConnectorResponse = GetConnectorResponses[keyof GetConnectorResponses];
1515
+ export type ListConnectorConnectionsData = {
1516
+ body?: never;
1517
+ path: {
1518
+ connectorId: string;
1519
+ };
1520
+ query?: never;
1521
+ url: "/api/connectors/{connectorId}/connections";
1522
+ };
1523
+ export type ListConnectorConnectionsErrors = {
1524
+ /**
1525
+ * Response for status 400
1526
+ */
1527
+ 400: {
1528
+ error: string;
1529
+ /**
1530
+ * Stable machine-readable failure code for programmatic handling.
1531
+ */
1532
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
1533
+ };
1534
+ /**
1535
+ * Response for status 403
1536
+ */
1537
+ 403: {
1538
+ error: string;
1539
+ };
1540
+ /**
1541
+ * Response for status 404
1542
+ */
1543
+ 404: {
1544
+ error: string;
1545
+ /**
1546
+ * Stable machine-readable failure code for programmatic handling.
1547
+ */
1548
+ code?: "connector.not_found";
1549
+ };
1550
+ /**
1551
+ * Response for status 500
1552
+ */
1553
+ 500: {
1554
+ error: string;
1555
+ /**
1556
+ * Stable machine-readable failure code for programmatic handling.
1557
+ */
1558
+ code?: "internal.unexpected";
1559
+ };
1560
+ };
1561
+ export type ListConnectorConnectionsError = ListConnectorConnectionsErrors[keyof ListConnectorConnectionsErrors];
1562
+ export type ListConnectorConnectionsResponses = {
1563
+ /**
1564
+ * Response for status 200
1565
+ */
1566
+ 200: Array<{
1567
+ id: string;
1568
+ connectorId: string;
1569
+ owner: {
1570
+ type: "project";
1571
+ };
1572
+ slot: string;
1573
+ account: {
1574
+ id: string;
1575
+ label: string;
1576
+ description?: string;
1577
+ avatarUrl?: string;
1578
+ };
1579
+ status: "connected" | "needs_reauthorization" | "disconnected";
1580
+ }>;
1581
+ };
1582
+ export type ListConnectorConnectionsResponse = ListConnectorConnectionsResponses[keyof ListConnectorConnectionsResponses];
1583
+ export type DisconnectConnectorConnectionData = {
1584
+ body?: never;
1585
+ path: {
1586
+ connectorId: string;
1587
+ connectionId: string;
1588
+ };
1589
+ query?: never;
1590
+ url: "/api/connectors/{connectorId}/connections/{connectionId}";
1591
+ };
1592
+ export type DisconnectConnectorConnectionErrors = {
1593
+ /**
1594
+ * Response for status 400
1595
+ */
1596
+ 400: {
1597
+ error: string;
1598
+ /**
1599
+ * Stable machine-readable failure code for programmatic handling.
1600
+ */
1601
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
1602
+ };
1603
+ /**
1604
+ * Response for status 403
1605
+ */
1606
+ 403: {
1607
+ error: string;
1608
+ };
1609
+ /**
1610
+ * Response for status 404
1611
+ */
1612
+ 404: {
1613
+ error: string;
1614
+ /**
1615
+ * Stable machine-readable failure code for programmatic handling.
1616
+ */
1617
+ code?: "connector.not_found";
1618
+ };
1619
+ /**
1620
+ * Response for status 409
1621
+ */
1622
+ 409: {
1623
+ error: string;
1624
+ /**
1625
+ * Stable machine-readable failure code for programmatic handling.
1626
+ */
1627
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
1628
+ };
1629
+ /**
1630
+ * Response for status 500
1631
+ */
1632
+ 500: {
1633
+ error: string;
1634
+ /**
1635
+ * Stable machine-readable failure code for programmatic handling.
1636
+ */
1637
+ code?: "internal.unexpected";
1638
+ };
1639
+ };
1640
+ export type DisconnectConnectorConnectionError = DisconnectConnectorConnectionErrors[keyof DisconnectConnectorConnectionErrors];
1641
+ export type DisconnectConnectorConnectionResponses = {
1642
+ /**
1643
+ * Response for status 200
1644
+ */
1645
+ 200: {
1646
+ success: boolean;
1647
+ };
1648
+ };
1649
+ export type DisconnectConnectorConnectionResponse = DisconnectConnectorConnectionResponses[keyof DisconnectConnectorConnectionResponses];
1650
+ export type RevokeConnectorConnectionData = {
1651
+ body?: never;
1652
+ path: {
1653
+ connectorId: string;
1654
+ connectionId: string;
1655
+ };
1656
+ query?: never;
1657
+ url: "/api/connectors/{connectorId}/connections/{connectionId}/revoke";
1658
+ };
1659
+ export type RevokeConnectorConnectionErrors = {
1660
+ /**
1661
+ * Response for status 400
1662
+ */
1663
+ 400: {
1664
+ error: string;
1665
+ /**
1666
+ * Stable machine-readable failure code for programmatic handling.
1667
+ */
1668
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
1669
+ };
1670
+ /**
1671
+ * Response for status 403
1672
+ */
1673
+ 403: {
1674
+ error: string;
1675
+ };
1676
+ /**
1677
+ * Response for status 404
1678
+ */
1679
+ 404: {
1680
+ error: string;
1681
+ /**
1682
+ * Stable machine-readable failure code for programmatic handling.
1683
+ */
1684
+ code?: "connector.not_found";
1685
+ };
1686
+ /**
1687
+ * Response for status 409
1688
+ */
1689
+ 409: {
1690
+ error: string;
1691
+ /**
1692
+ * Stable machine-readable failure code for programmatic handling.
1693
+ */
1694
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
1695
+ };
1696
+ /**
1697
+ * Response for status 500
1698
+ */
1699
+ 500: {
1700
+ error: string;
1701
+ /**
1702
+ * Stable machine-readable failure code for programmatic handling.
1703
+ */
1704
+ code?: "internal.unexpected";
1705
+ };
1706
+ /**
1707
+ * Response for status 502
1708
+ */
1709
+ 502: {
1710
+ error: string;
1711
+ /**
1712
+ * Stable machine-readable failure code for programmatic handling.
1713
+ */
1714
+ code?: "connector.adapter_invalid" | "connector.provider_failed";
1715
+ };
1716
+ /**
1717
+ * Response for status 503
1718
+ */
1719
+ 503: {
1720
+ error: string;
1721
+ /**
1722
+ * Stable machine-readable failure code for programmatic handling.
1723
+ */
1724
+ code?: "connector.credentials_unavailable" | "connector.provider_unavailable";
1725
+ };
1726
+ };
1727
+ export type RevokeConnectorConnectionError = RevokeConnectorConnectionErrors[keyof RevokeConnectorConnectionErrors];
1728
+ export type RevokeConnectorConnectionResponses = {
1729
+ /**
1730
+ * Response for status 200
1731
+ */
1732
+ 200: {
1733
+ affectedConnections: Array<{
1734
+ id: string;
1735
+ connectorId: string;
1736
+ owner: {
1737
+ type: "project";
1738
+ };
1739
+ slot: string;
1740
+ account: {
1741
+ id: string;
1742
+ label: string;
1743
+ description?: string;
1744
+ avatarUrl?: string;
1745
+ };
1746
+ status: "connected" | "needs_reauthorization" | "disconnected";
1747
+ }>;
1748
+ };
1749
+ };
1750
+ export type RevokeConnectorConnectionResponse = RevokeConnectorConnectionResponses[keyof RevokeConnectorConnectionResponses];
1751
+ export type StartConnectorConnectionRunData = {
1752
+ body: {
1753
+ slot: string;
1754
+ returnTo: string;
1755
+ };
1756
+ path: {
1757
+ connectorId: string;
1758
+ };
1759
+ query?: never;
1760
+ url: "/api/connectors/{connectorId}/connection-runs";
1761
+ };
1762
+ export type StartConnectorConnectionRunErrors = {
1763
+ /**
1764
+ * Response for status 400
1765
+ */
1766
+ 400: {
1767
+ error: string;
1768
+ /**
1769
+ * Stable machine-readable failure code for programmatic handling.
1770
+ */
1771
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
1772
+ };
1773
+ /**
1774
+ * Response for status 403
1775
+ */
1776
+ 403: {
1777
+ error: string;
1778
+ };
1779
+ /**
1780
+ * Response for status 404
1781
+ */
1782
+ 404: {
1783
+ error: string;
1784
+ /**
1785
+ * Stable machine-readable failure code for programmatic handling.
1786
+ */
1787
+ code?: "connector.not_found";
1788
+ };
1789
+ /**
1790
+ * Response for status 409
1791
+ */
1792
+ 409: {
1793
+ error: string;
1794
+ /**
1795
+ * Stable machine-readable failure code for programmatic handling.
1796
+ */
1797
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
1798
+ };
1799
+ /**
1800
+ * Response for status 500
1801
+ */
1802
+ 500: {
1803
+ error: string;
1804
+ /**
1805
+ * Stable machine-readable failure code for programmatic handling.
1806
+ */
1807
+ code?: "internal.unexpected";
1808
+ };
1809
+ /**
1810
+ * Response for status 502
1811
+ */
1812
+ 502: {
1813
+ error: string;
1814
+ /**
1815
+ * Stable machine-readable failure code for programmatic handling.
1816
+ */
1817
+ code?: "connector.adapter_invalid" | "connector.provider_failed";
1818
+ };
1819
+ /**
1820
+ * Response for status 503
1821
+ */
1822
+ 503: {
1823
+ error: string;
1824
+ /**
1825
+ * Stable machine-readable failure code for programmatic handling.
1826
+ */
1827
+ code?: "connector.credentials_unavailable" | "connector.provider_unavailable";
1828
+ };
1829
+ };
1830
+ export type StartConnectorConnectionRunError = StartConnectorConnectionRunErrors[keyof StartConnectorConnectionRunErrors];
1831
+ export type StartConnectorConnectionRunResponses = {
1832
+ /**
1833
+ * Response for status 201
1834
+ */
1835
+ 201: {
1836
+ runId: string;
1837
+ authorizationUrl: string;
1838
+ affectedConnections: Array<{
1839
+ id: string;
1840
+ connectorId: string;
1841
+ owner: {
1842
+ type: "project";
1843
+ };
1844
+ slot: string;
1845
+ account: {
1846
+ id: string;
1847
+ label: string;
1848
+ description?: string;
1849
+ avatarUrl?: string;
1850
+ };
1851
+ status: "connected" | "needs_reauthorization" | "disconnected";
1852
+ }>;
1853
+ };
1854
+ };
1855
+ export type StartConnectorConnectionRunResponse = StartConnectorConnectionRunResponses[keyof StartConnectorConnectionRunResponses];
1856
+ export type GetConnectorConnectionRunData = {
1857
+ body?: never;
1858
+ path: {
1859
+ connectorId: string;
1860
+ runId: string;
1861
+ };
1862
+ query?: never;
1863
+ url: "/api/connectors/{connectorId}/connection-runs/{runId}";
1864
+ };
1865
+ export type GetConnectorConnectionRunErrors = {
1866
+ /**
1867
+ * Response for status 400
1868
+ */
1869
+ 400: {
1870
+ error: string;
1871
+ /**
1872
+ * Stable machine-readable failure code for programmatic handling.
1873
+ */
1874
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
1875
+ };
1876
+ /**
1877
+ * Response for status 403
1878
+ */
1879
+ 403: {
1880
+ error: string;
1881
+ };
1882
+ /**
1883
+ * Response for status 404
1884
+ */
1885
+ 404: {
1886
+ error: string;
1887
+ /**
1888
+ * Stable machine-readable failure code for programmatic handling.
1889
+ */
1890
+ code?: "connector.not_found";
1891
+ };
1892
+ /**
1893
+ * Response for status 500
1894
+ */
1895
+ 500: {
1896
+ error: string;
1897
+ /**
1898
+ * Stable machine-readable failure code for programmatic handling.
1899
+ */
1900
+ code?: "internal.unexpected";
1901
+ };
1902
+ };
1903
+ export type GetConnectorConnectionRunError = GetConnectorConnectionRunErrors[keyof GetConnectorConnectionRunErrors];
1904
+ export type GetConnectorConnectionRunResponses = {
1905
+ /**
1906
+ * Response for status 200
1907
+ */
1908
+ 200: {
1909
+ id: string;
1910
+ connectorId: string;
1911
+ kind: "connect" | "reauthorize";
1912
+ owner: {
1913
+ type: "project";
1914
+ };
1915
+ slot: string;
1916
+ createdAt: string;
1917
+ updatedAt: string;
1918
+ status: "waiting";
1919
+ waitingFor: "provider_authorization";
1920
+ expiresAt: string;
1921
+ } | {
1922
+ id: string;
1923
+ connectorId: string;
1924
+ kind: "connect" | "reauthorize";
1925
+ owner: {
1926
+ type: "project";
1927
+ };
1928
+ slot: string;
1929
+ createdAt: string;
1930
+ updatedAt: string;
1931
+ status: "running";
1932
+ } | {
1933
+ id: string;
1934
+ connectorId: string;
1935
+ kind: "connect" | "reauthorize";
1936
+ owner: {
1937
+ type: "project";
1938
+ };
1939
+ slot: string;
1940
+ createdAt: string;
1941
+ updatedAt: string;
1942
+ status: "waiting";
1943
+ waitingFor: "account_selection";
1944
+ accounts: Array<{
1945
+ id: string;
1946
+ label: string;
1947
+ description?: string;
1948
+ avatarUrl?: string;
1949
+ }>;
1950
+ expiresAt: string;
1951
+ } | {
1952
+ id: string;
1953
+ connectorId: string;
1954
+ kind: "connect" | "reauthorize";
1955
+ owner: {
1956
+ type: "project";
1957
+ };
1958
+ slot: string;
1959
+ createdAt: string;
1960
+ updatedAt: string;
1961
+ status: "succeeded";
1962
+ connections: Array<{
1963
+ id: string;
1964
+ connectorId: string;
1965
+ owner: {
1966
+ type: "project";
1967
+ };
1968
+ slot: string;
1969
+ account: {
1970
+ id: string;
1971
+ label: string;
1972
+ description?: string;
1973
+ avatarUrl?: string;
1974
+ };
1975
+ status: "connected" | "needs_reauthorization" | "disconnected";
1976
+ }>;
1977
+ finishedAt: string;
1978
+ } | {
1979
+ id: string;
1980
+ connectorId: string;
1981
+ kind: "connect" | "reauthorize";
1982
+ owner: {
1983
+ type: "project";
1984
+ };
1985
+ slot: string;
1986
+ createdAt: string;
1987
+ updatedAt: string;
1988
+ status: "failed";
1989
+ error: {
1990
+ code: "internal.unexpected" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable";
1991
+ message: string;
1992
+ retryable: boolean;
1993
+ at: string;
1994
+ /**
1995
+ * Any JSON-compatible value.
1996
+ */
1997
+ details?: string | number | boolean | Array<unknown> | {
1998
+ [key: string]: unknown;
1999
+ } | null;
2000
+ truncated?: true;
2001
+ };
2002
+ finishedAt: string;
2003
+ } | {
2004
+ id: string;
2005
+ connectorId: string;
2006
+ kind: "connect" | "reauthorize";
2007
+ owner: {
2008
+ type: "project";
2009
+ };
2010
+ slot: string;
2011
+ createdAt: string;
2012
+ updatedAt: string;
2013
+ status: "cancelled" | "expired";
2014
+ finishedAt: string;
2015
+ };
2016
+ };
2017
+ export type GetConnectorConnectionRunResponse = GetConnectorConnectionRunResponses[keyof GetConnectorConnectionRunResponses];
2018
+ export type AddConnectorConnectionData = {
2019
+ body: {
2020
+ slot: string;
2021
+ };
2022
+ path: {
2023
+ connectorId: string;
2024
+ connectionId: string;
2025
+ };
2026
+ query?: never;
2027
+ url: "/api/connectors/{connectorId}/connections/{connectionId}/connection-runs";
2028
+ };
2029
+ export type AddConnectorConnectionErrors = {
2030
+ /**
2031
+ * Response for status 400
2032
+ */
2033
+ 400: {
2034
+ error: string;
2035
+ /**
2036
+ * Stable machine-readable failure code for programmatic handling.
2037
+ */
2038
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
2039
+ };
2040
+ /**
2041
+ * Response for status 403
2042
+ */
2043
+ 403: {
2044
+ error: string;
2045
+ };
2046
+ /**
2047
+ * Response for status 404
2048
+ */
2049
+ 404: {
2050
+ error: string;
2051
+ /**
2052
+ * Stable machine-readable failure code for programmatic handling.
2053
+ */
2054
+ code?: "connector.not_found";
2055
+ };
2056
+ /**
2057
+ * Response for status 409
2058
+ */
2059
+ 409: {
2060
+ error: string;
2061
+ /**
2062
+ * Stable machine-readable failure code for programmatic handling.
2063
+ */
2064
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
2065
+ };
2066
+ /**
2067
+ * Response for status 500
2068
+ */
2069
+ 500: {
2070
+ error: string;
2071
+ /**
2072
+ * Stable machine-readable failure code for programmatic handling.
2073
+ */
2074
+ code?: "internal.unexpected";
2075
+ };
2076
+ };
2077
+ export type AddConnectorConnectionError = AddConnectorConnectionErrors[keyof AddConnectorConnectionErrors];
2078
+ export type AddConnectorConnectionResponses = {
2079
+ /**
2080
+ * Response for status 201
2081
+ */
2082
+ 201: {
2083
+ id: string;
2084
+ connectorId: string;
2085
+ kind: "connect" | "reauthorize";
2086
+ owner: {
2087
+ type: "project";
2088
+ };
2089
+ slot: string;
2090
+ createdAt: string;
2091
+ updatedAt: string;
2092
+ status: "waiting";
2093
+ waitingFor: "provider_authorization";
2094
+ expiresAt: string;
2095
+ } | {
2096
+ id: string;
2097
+ connectorId: string;
2098
+ kind: "connect" | "reauthorize";
2099
+ owner: {
2100
+ type: "project";
2101
+ };
2102
+ slot: string;
2103
+ createdAt: string;
2104
+ updatedAt: string;
2105
+ status: "running";
2106
+ } | {
2107
+ id: string;
2108
+ connectorId: string;
2109
+ kind: "connect" | "reauthorize";
2110
+ owner: {
2111
+ type: "project";
2112
+ };
2113
+ slot: string;
2114
+ createdAt: string;
2115
+ updatedAt: string;
2116
+ status: "waiting";
2117
+ waitingFor: "account_selection";
2118
+ accounts: Array<{
2119
+ id: string;
2120
+ label: string;
2121
+ description?: string;
2122
+ avatarUrl?: string;
2123
+ }>;
2124
+ expiresAt: string;
2125
+ } | {
2126
+ id: string;
2127
+ connectorId: string;
2128
+ kind: "connect" | "reauthorize";
2129
+ owner: {
2130
+ type: "project";
2131
+ };
2132
+ slot: string;
2133
+ createdAt: string;
2134
+ updatedAt: string;
2135
+ status: "succeeded";
2136
+ connections: Array<{
2137
+ id: string;
2138
+ connectorId: string;
2139
+ owner: {
2140
+ type: "project";
2141
+ };
2142
+ slot: string;
2143
+ account: {
2144
+ id: string;
2145
+ label: string;
2146
+ description?: string;
2147
+ avatarUrl?: string;
2148
+ };
2149
+ status: "connected" | "needs_reauthorization" | "disconnected";
2150
+ }>;
2151
+ finishedAt: string;
2152
+ } | {
2153
+ id: string;
2154
+ connectorId: string;
2155
+ kind: "connect" | "reauthorize";
2156
+ owner: {
2157
+ type: "project";
2158
+ };
2159
+ slot: string;
2160
+ createdAt: string;
2161
+ updatedAt: string;
2162
+ status: "failed";
2163
+ error: {
2164
+ code: "internal.unexpected" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable";
2165
+ message: string;
2166
+ retryable: boolean;
2167
+ at: string;
2168
+ /**
2169
+ * Any JSON-compatible value.
2170
+ */
2171
+ details?: string | number | boolean | Array<unknown> | {
2172
+ [key: string]: unknown;
2173
+ } | null;
2174
+ truncated?: true;
2175
+ };
2176
+ finishedAt: string;
2177
+ } | {
2178
+ id: string;
2179
+ connectorId: string;
2180
+ kind: "connect" | "reauthorize";
2181
+ owner: {
2182
+ type: "project";
2183
+ };
2184
+ slot: string;
2185
+ createdAt: string;
2186
+ updatedAt: string;
2187
+ status: "cancelled" | "expired";
2188
+ finishedAt: string;
2189
+ };
2190
+ };
2191
+ export type AddConnectorConnectionResponse = AddConnectorConnectionResponses[keyof AddConnectorConnectionResponses];
2192
+ export type SelectConnectorConnectionRunAccountData = {
2193
+ body: {
2194
+ accountId: string;
2195
+ replace?: boolean;
2196
+ };
2197
+ path: {
2198
+ connectorId: string;
2199
+ runId: string;
2200
+ };
2201
+ query?: never;
2202
+ url: "/api/connectors/{connectorId}/connection-runs/{runId}/selection";
2203
+ };
2204
+ export type SelectConnectorConnectionRunAccountErrors = {
2205
+ /**
2206
+ * Response for status 400
2207
+ */
2208
+ 400: {
2209
+ error: string;
2210
+ /**
2211
+ * Stable machine-readable failure code for programmatic handling.
2212
+ */
2213
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
2214
+ };
2215
+ /**
2216
+ * Response for status 403
2217
+ */
2218
+ 403: {
2219
+ error: string;
2220
+ };
2221
+ /**
2222
+ * Response for status 404
2223
+ */
2224
+ 404: {
2225
+ error: string;
2226
+ /**
2227
+ * Stable machine-readable failure code for programmatic handling.
2228
+ */
2229
+ code?: "connector.not_found";
2230
+ };
2231
+ /**
2232
+ * Response for status 409
2233
+ */
2234
+ 409: {
2235
+ error: string;
2236
+ /**
2237
+ * Stable machine-readable failure code for programmatic handling.
2238
+ */
2239
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
2240
+ };
2241
+ /**
2242
+ * Response for status 500
2243
+ */
2244
+ 500: {
2245
+ error: string;
2246
+ /**
2247
+ * Stable machine-readable failure code for programmatic handling.
2248
+ */
2249
+ code?: "internal.unexpected";
2250
+ };
2251
+ };
2252
+ export type SelectConnectorConnectionRunAccountError = SelectConnectorConnectionRunAccountErrors[keyof SelectConnectorConnectionRunAccountErrors];
2253
+ export type SelectConnectorConnectionRunAccountResponses = {
2254
+ /**
2255
+ * Response for status 200
2256
+ */
2257
+ 200: {
2258
+ id: string;
2259
+ connectorId: string;
2260
+ kind: "connect" | "reauthorize";
2261
+ owner: {
2262
+ type: "project";
2263
+ };
2264
+ slot: string;
2265
+ createdAt: string;
2266
+ updatedAt: string;
2267
+ status: "waiting";
2268
+ waitingFor: "provider_authorization";
2269
+ expiresAt: string;
2270
+ } | {
2271
+ id: string;
2272
+ connectorId: string;
2273
+ kind: "connect" | "reauthorize";
2274
+ owner: {
2275
+ type: "project";
2276
+ };
2277
+ slot: string;
2278
+ createdAt: string;
2279
+ updatedAt: string;
2280
+ status: "running";
2281
+ } | {
2282
+ id: string;
2283
+ connectorId: string;
2284
+ kind: "connect" | "reauthorize";
2285
+ owner: {
2286
+ type: "project";
2287
+ };
2288
+ slot: string;
2289
+ createdAt: string;
2290
+ updatedAt: string;
2291
+ status: "waiting";
2292
+ waitingFor: "account_selection";
2293
+ accounts: Array<{
2294
+ id: string;
2295
+ label: string;
2296
+ description?: string;
2297
+ avatarUrl?: string;
2298
+ }>;
2299
+ expiresAt: string;
2300
+ } | {
2301
+ id: string;
2302
+ connectorId: string;
2303
+ kind: "connect" | "reauthorize";
2304
+ owner: {
2305
+ type: "project";
2306
+ };
2307
+ slot: string;
2308
+ createdAt: string;
2309
+ updatedAt: string;
2310
+ status: "succeeded";
2311
+ connections: Array<{
2312
+ id: string;
2313
+ connectorId: string;
2314
+ owner: {
2315
+ type: "project";
2316
+ };
2317
+ slot: string;
2318
+ account: {
2319
+ id: string;
2320
+ label: string;
2321
+ description?: string;
2322
+ avatarUrl?: string;
2323
+ };
2324
+ status: "connected" | "needs_reauthorization" | "disconnected";
2325
+ }>;
2326
+ finishedAt: string;
2327
+ } | {
2328
+ id: string;
2329
+ connectorId: string;
2330
+ kind: "connect" | "reauthorize";
2331
+ owner: {
2332
+ type: "project";
2333
+ };
2334
+ slot: string;
2335
+ createdAt: string;
2336
+ updatedAt: string;
2337
+ status: "failed";
2338
+ error: {
2339
+ code: "internal.unexpected" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable";
2340
+ message: string;
2341
+ retryable: boolean;
2342
+ at: string;
2343
+ /**
2344
+ * Any JSON-compatible value.
2345
+ */
2346
+ details?: string | number | boolean | Array<unknown> | {
2347
+ [key: string]: unknown;
2348
+ } | null;
2349
+ truncated?: true;
2350
+ };
2351
+ finishedAt: string;
2352
+ } | {
2353
+ id: string;
2354
+ connectorId: string;
2355
+ kind: "connect" | "reauthorize";
2356
+ owner: {
2357
+ type: "project";
2358
+ };
2359
+ slot: string;
2360
+ createdAt: string;
2361
+ updatedAt: string;
2362
+ status: "cancelled" | "expired";
2363
+ finishedAt: string;
2364
+ };
2365
+ };
2366
+ export type SelectConnectorConnectionRunAccountResponse = SelectConnectorConnectionRunAccountResponses[keyof SelectConnectorConnectionRunAccountResponses];
2367
+ export type ReauthorizeConnectorConnectionData = {
2368
+ body: {
2369
+ returnTo: string;
2370
+ };
2371
+ path: {
2372
+ connectorId: string;
2373
+ connectionId: string;
2374
+ };
2375
+ query?: never;
2376
+ url: "/api/connectors/{connectorId}/connections/{connectionId}/reauthorize";
1480
2377
  };
1481
- export type GetConnectorErrors = {
2378
+ export type ReauthorizeConnectorConnectionErrors = {
2379
+ /**
2380
+ * Response for status 400
2381
+ */
2382
+ 400: {
2383
+ error: string;
2384
+ /**
2385
+ * Stable machine-readable failure code for programmatic handling.
2386
+ */
2387
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
2388
+ };
2389
+ /**
2390
+ * Response for status 403
2391
+ */
2392
+ 403: {
2393
+ error: string;
2394
+ };
1482
2395
  /**
1483
2396
  * Response for status 404
1484
2397
  */
1485
2398
  404: {
1486
2399
  error: string;
2400
+ /**
2401
+ * Stable machine-readable failure code for programmatic handling.
2402
+ */
2403
+ code?: "connector.not_found";
2404
+ };
2405
+ /**
2406
+ * Response for status 409
2407
+ */
2408
+ 409: {
2409
+ error: string;
2410
+ /**
2411
+ * Stable machine-readable failure code for programmatic handling.
2412
+ */
2413
+ code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
2414
+ };
2415
+ /**
2416
+ * Response for status 500
2417
+ */
2418
+ 500: {
2419
+ error: string;
2420
+ /**
2421
+ * Stable machine-readable failure code for programmatic handling.
2422
+ */
2423
+ code?: "internal.unexpected";
2424
+ };
2425
+ /**
2426
+ * Response for status 502
2427
+ */
2428
+ 502: {
2429
+ error: string;
2430
+ /**
2431
+ * Stable machine-readable failure code for programmatic handling.
2432
+ */
2433
+ code?: "connector.adapter_invalid" | "connector.provider_failed";
2434
+ };
2435
+ /**
2436
+ * Response for status 503
2437
+ */
2438
+ 503: {
2439
+ error: string;
2440
+ /**
2441
+ * Stable machine-readable failure code for programmatic handling.
2442
+ */
2443
+ code?: "connector.credentials_unavailable" | "connector.provider_unavailable";
1487
2444
  };
1488
2445
  };
1489
- export type GetConnectorError = GetConnectorErrors[keyof GetConnectorErrors];
1490
- export type GetConnectorResponses = {
2446
+ export type ReauthorizeConnectorConnectionError = ReauthorizeConnectorConnectionErrors[keyof ReauthorizeConnectorConnectionErrors];
2447
+ export type ReauthorizeConnectorConnectionResponses = {
1491
2448
  /**
1492
- * Response for status 200
2449
+ * Response for status 201
1493
2450
  */
1494
- 200: {
1495
- id: string;
1496
- type: string;
1497
- syncIds: Array<string>;
1498
- webhooks: Array<{
2451
+ 201: {
2452
+ runId: string;
2453
+ authorizationUrl: string;
2454
+ affectedConnections: Array<{
1499
2455
  id: string;
1500
- method: "POST";
1501
- route: string;
1502
- bodyFormat: "json" | "text" | "raw";
1503
- hasVerify: boolean;
1504
- hasIdempotency: boolean;
2456
+ connectorId: string;
2457
+ owner: {
2458
+ type: "project";
2459
+ };
2460
+ slot: string;
2461
+ account: {
2462
+ id: string;
2463
+ label: string;
2464
+ description?: string;
2465
+ avatarUrl?: string;
2466
+ };
2467
+ status: "connected" | "needs_reauthorization" | "disconnected";
1505
2468
  }>;
1506
2469
  };
1507
2470
  };
1508
- export type GetConnectorResponse = GetConnectorResponses[keyof GetConnectorResponses];
2471
+ export type ReauthorizeConnectorConnectionResponse = ReauthorizeConnectorConnectionResponses[keyof ReauthorizeConnectorConnectionResponses];
1509
2472
  export type ListDatasetsData = {
1510
2473
  body?: never;
1511
2474
  path?: never;
@@ -1528,6 +2491,7 @@ export type ListDatasetsResponses = {
1528
2491
  200: Array<{
1529
2492
  id: string;
1530
2493
  description?: string;
2494
+ primaryKey?: string | Array<string>;
1531
2495
  partitionBy?: Array<string>;
1532
2496
  schema: {
1533
2497
  columns: Array<{
@@ -1541,7 +2505,7 @@ export type ListDatasetsResponses = {
1541
2505
  latestVersion: {
1542
2506
  datasetId: string;
1543
2507
  versionId: string;
1544
- mode: "snapshot" | "append" | "schema";
2508
+ mode: "snapshot" | "append" | "merge" | "schema";
1545
2509
  createdAt: string;
1546
2510
  rowCount?: number;
1547
2511
  } | null;
@@ -1572,6 +2536,10 @@ export type GetDatasetErrors = {
1572
2536
  */
1573
2537
  404: {
1574
2538
  error: string;
2539
+ /**
2540
+ * Stable machine-readable failure code for programmatic handling.
2541
+ */
2542
+ code: "dataset.not_found";
1575
2543
  };
1576
2544
  };
1577
2545
  export type GetDatasetError = GetDatasetErrors[keyof GetDatasetErrors];
@@ -1582,6 +2550,7 @@ export type GetDatasetResponses = {
1582
2550
  200: {
1583
2551
  id: string;
1584
2552
  description?: string;
2553
+ primaryKey?: string | Array<string>;
1585
2554
  partitionBy?: Array<string>;
1586
2555
  schema: {
1587
2556
  columns: Array<{
@@ -1595,7 +2564,7 @@ export type GetDatasetResponses = {
1595
2564
  latestVersion: {
1596
2565
  datasetId: string;
1597
2566
  versionId: string;
1598
- mode: "snapshot" | "append" | "schema";
2567
+ mode: "snapshot" | "append" | "merge" | "schema";
1599
2568
  createdAt: string;
1600
2569
  rowCount?: number;
1601
2570
  } | null;
@@ -1628,6 +2597,10 @@ export type ListDatasetVersionsErrors = {
1628
2597
  */
1629
2598
  404: {
1630
2599
  error: string;
2600
+ /**
2601
+ * Stable machine-readable failure code for programmatic handling.
2602
+ */
2603
+ code: "dataset.not_found";
1631
2604
  };
1632
2605
  };
1633
2606
  export type ListDatasetVersionsError = ListDatasetVersionsErrors[keyof ListDatasetVersionsErrors];
@@ -1640,7 +2613,7 @@ export type ListDatasetVersionsResponses = {
1640
2613
  datasetId: string;
1641
2614
  versionId: string;
1642
2615
  parentVersionId?: string;
1643
- mode: "snapshot" | "append" | "schema";
2616
+ mode: "snapshot" | "append" | "merge" | "schema";
1644
2617
  createdAt: string;
1645
2618
  schema: {
1646
2619
  columns: Array<{
@@ -1686,6 +2659,10 @@ export type GetDatasetVersionErrors = {
1686
2659
  */
1687
2660
  404: {
1688
2661
  error: string;
2662
+ /**
2663
+ * Stable machine-readable failure code for programmatic handling.
2664
+ */
2665
+ code: "dataset.not_found" | "dataset.version_not_found";
1689
2666
  };
1690
2667
  };
1691
2668
  export type GetDatasetVersionError = GetDatasetVersionErrors[keyof GetDatasetVersionErrors];
@@ -1697,7 +2674,7 @@ export type GetDatasetVersionResponses = {
1697
2674
  datasetId: string;
1698
2675
  versionId: string;
1699
2676
  parentVersionId?: string;
1700
- mode: "snapshot" | "append" | "schema";
2677
+ mode: "snapshot" | "append" | "merge" | "schema";
1701
2678
  createdAt: string;
1702
2679
  schema: {
1703
2680
  columns: Array<{
@@ -1745,6 +2722,10 @@ export type ListDatasetRowsErrors = {
1745
2722
  */
1746
2723
  404: {
1747
2724
  error: string;
2725
+ /**
2726
+ * Stable machine-readable failure code for programmatic handling.
2727
+ */
2728
+ code: "dataset.not_found" | "dataset.version_not_found";
1748
2729
  };
1749
2730
  };
1750
2731
  export type ListDatasetRowsError = ListDatasetRowsErrors[keyof ListDatasetRowsErrors];
@@ -1759,7 +2740,7 @@ export type ListDatasetRowsResponses = {
1759
2740
  datasetId: string;
1760
2741
  versionId: string;
1761
2742
  parentVersionId?: string;
1762
- mode: "snapshot" | "append" | "schema";
2743
+ mode: "snapshot" | "append" | "merge" | "schema";
1763
2744
  createdAt: string;
1764
2745
  schema: {
1765
2746
  columns: Array<{
@@ -1804,7 +2785,7 @@ export type ListSyncsResponses = {
1804
2785
  */
1805
2786
  200: Array<{
1806
2787
  id: string;
1807
- mode: "snapshot" | "append";
2788
+ mode: "snapshot" | "append" | "merge";
1808
2789
  connector: {
1809
2790
  id: string;
1810
2791
  type: string;
@@ -1814,6 +2795,7 @@ export type ListSyncsResponses = {
1814
2795
  dataset: {
1815
2796
  id: string;
1816
2797
  description?: string;
2798
+ primaryKey?: string | Array<string>;
1817
2799
  partitionBy?: Array<string>;
1818
2800
  schema: {
1819
2801
  columns: Array<{
@@ -1833,9 +2815,10 @@ export type ListSyncsResponses = {
1833
2815
  projectId: string;
1834
2816
  syncId: string;
1835
2817
  datasetId: string;
1836
- mode: "snapshot" | "append";
1837
- status: "running" | "succeeded" | "failed" | "cancelled";
1838
- startedAt: string;
2818
+ mode: "snapshot" | "append" | "merge";
2819
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2820
+ queuedAt: string;
2821
+ startedAt?: string;
1839
2822
  finishedAt?: string;
1840
2823
  rowsRead?: number;
1841
2824
  output?: {
@@ -1845,8 +2828,17 @@ export type ListSyncsResponses = {
1845
2828
  expectedLatestVersionId?: string;
1846
2829
  commitMessage?: string;
1847
2830
  error?: {
1848
- name?: string;
2831
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
1849
2832
  message: string;
2833
+ retryable: boolean;
2834
+ at: string;
2835
+ /**
2836
+ * Any JSON-compatible value.
2837
+ */
2838
+ details?: string | number | boolean | Array<unknown> | {
2839
+ [key: string]: unknown;
2840
+ } | null;
2841
+ truncated?: true;
1850
2842
  };
1851
2843
  } | null;
1852
2844
  }>;
@@ -1875,7 +2867,7 @@ export type GetSyncResponses = {
1875
2867
  */
1876
2868
  200: {
1877
2869
  id: string;
1878
- mode: "snapshot" | "append";
2870
+ mode: "snapshot" | "append" | "merge";
1879
2871
  connector: {
1880
2872
  id: string;
1881
2873
  type: string;
@@ -1885,6 +2877,7 @@ export type GetSyncResponses = {
1885
2877
  dataset: {
1886
2878
  id: string;
1887
2879
  description?: string;
2880
+ primaryKey?: string | Array<string>;
1888
2881
  partitionBy?: Array<string>;
1889
2882
  schema: {
1890
2883
  columns: Array<{
@@ -1904,9 +2897,10 @@ export type GetSyncResponses = {
1904
2897
  projectId: string;
1905
2898
  syncId: string;
1906
2899
  datasetId: string;
1907
- mode: "snapshot" | "append";
1908
- status: "running" | "succeeded" | "failed" | "cancelled";
1909
- startedAt: string;
2900
+ mode: "snapshot" | "append" | "merge";
2901
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2902
+ queuedAt: string;
2903
+ startedAt?: string;
1910
2904
  finishedAt?: string;
1911
2905
  rowsRead?: number;
1912
2906
  output?: {
@@ -1916,8 +2910,17 @@ export type GetSyncResponses = {
1916
2910
  expectedLatestVersionId?: string;
1917
2911
  commitMessage?: string;
1918
2912
  error?: {
1919
- name?: string;
2913
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
1920
2914
  message: string;
2915
+ retryable: boolean;
2916
+ at: string;
2917
+ /**
2918
+ * Any JSON-compatible value.
2919
+ */
2920
+ details?: string | number | boolean | Array<unknown> | {
2921
+ [key: string]: unknown;
2922
+ } | null;
2923
+ truncated?: true;
1921
2924
  };
1922
2925
  } | null;
1923
2926
  };
@@ -1929,7 +2932,7 @@ export type ListSyncRunsData = {
1929
2932
  query?: {
1930
2933
  syncId?: string;
1931
2934
  datasetId?: string;
1932
- status?: "running" | "succeeded" | "failed" | "cancelled";
2935
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1933
2936
  startedAfter?: string;
1934
2937
  startedBefore?: string;
1935
2938
  limit?: string;
@@ -1963,9 +2966,10 @@ export type ListSyncRunsResponses = {
1963
2966
  projectId: string;
1964
2967
  syncId: string;
1965
2968
  datasetId: string;
1966
- mode: "snapshot" | "append";
1967
- status: "running" | "succeeded" | "failed" | "cancelled";
1968
- startedAt: string;
2969
+ mode: "snapshot" | "append" | "merge";
2970
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2971
+ queuedAt: string;
2972
+ startedAt?: string;
1969
2973
  finishedAt?: string;
1970
2974
  rowsRead?: number;
1971
2975
  output?: {
@@ -1975,8 +2979,17 @@ export type ListSyncRunsResponses = {
1975
2979
  expectedLatestVersionId?: string;
1976
2980
  commitMessage?: string;
1977
2981
  error?: {
1978
- name?: string;
2982
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
1979
2983
  message: string;
2984
+ retryable: boolean;
2985
+ at: string;
2986
+ /**
2987
+ * Any JSON-compatible value.
2988
+ */
2989
+ details?: string | number | boolean | Array<unknown> | {
2990
+ [key: string]: unknown;
2991
+ } | null;
2992
+ truncated?: true;
1980
2993
  };
1981
2994
  }>;
1982
2995
  hasMore: boolean;
@@ -2062,6 +3075,7 @@ export type ListPipelinesResponses = {
2062
3075
  dataset: {
2063
3076
  id: string;
2064
3077
  description?: string;
3078
+ primaryKey?: string | Array<string>;
2065
3079
  partitionBy?: Array<string>;
2066
3080
  schema: {
2067
3081
  columns: Array<{
@@ -2075,6 +3089,7 @@ export type ListPipelinesResponses = {
2075
3089
  output: {
2076
3090
  id: string;
2077
3091
  description?: string;
3092
+ primaryKey?: string | Array<string>;
2078
3093
  partitionBy?: Array<string>;
2079
3094
  schema: {
2080
3095
  columns: Array<{
@@ -2091,16 +3106,26 @@ export type ListPipelinesResponses = {
2091
3106
  id: string;
2092
3107
  projectId: string;
2093
3108
  pipelineId: string;
2094
- status: "running" | "succeeded" | "failed" | "cancelled";
2095
- startedAt: string;
3109
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3110
+ queuedAt: string;
3111
+ startedAt?: string;
2096
3112
  finishedAt?: string;
2097
3113
  output?: {
2098
3114
  datasetId: string;
2099
3115
  versionId: string;
2100
3116
  };
2101
3117
  error?: {
2102
- name?: string;
3118
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
2103
3119
  message: string;
3120
+ retryable: boolean;
3121
+ at: string;
3122
+ /**
3123
+ * Any JSON-compatible value.
3124
+ */
3125
+ details?: string | number | boolean | Array<unknown> | {
3126
+ [key: string]: unknown;
3127
+ } | null;
3128
+ truncated?: true;
2104
3129
  };
2105
3130
  } | null;
2106
3131
  }>;
@@ -2151,6 +3176,7 @@ export type GetPipelineResponses = {
2151
3176
  dataset: {
2152
3177
  id: string;
2153
3178
  description?: string;
3179
+ primaryKey?: string | Array<string>;
2154
3180
  partitionBy?: Array<string>;
2155
3181
  schema: {
2156
3182
  columns: Array<{
@@ -2164,6 +3190,7 @@ export type GetPipelineResponses = {
2164
3190
  output: {
2165
3191
  id: string;
2166
3192
  description?: string;
3193
+ primaryKey?: string | Array<string>;
2167
3194
  partitionBy?: Array<string>;
2168
3195
  schema: {
2169
3196
  columns: Array<{
@@ -2180,16 +3207,26 @@ export type GetPipelineResponses = {
2180
3207
  id: string;
2181
3208
  projectId: string;
2182
3209
  pipelineId: string;
2183
- status: "running" | "succeeded" | "failed" | "cancelled";
2184
- startedAt: string;
3210
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3211
+ queuedAt: string;
3212
+ startedAt?: string;
2185
3213
  finishedAt?: string;
2186
3214
  output?: {
2187
3215
  datasetId: string;
2188
3216
  versionId: string;
2189
3217
  };
2190
3218
  error?: {
2191
- name?: string;
3219
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
2192
3220
  message: string;
3221
+ retryable: boolean;
3222
+ at: string;
3223
+ /**
3224
+ * Any JSON-compatible value.
3225
+ */
3226
+ details?: string | number | boolean | Array<unknown> | {
3227
+ [key: string]: unknown;
3228
+ } | null;
3229
+ truncated?: true;
2193
3230
  };
2194
3231
  } | null;
2195
3232
  };
@@ -2200,7 +3237,7 @@ export type ListPipelineRunsData = {
2200
3237
  path?: never;
2201
3238
  query?: {
2202
3239
  pipelineId?: string;
2203
- status?: "running" | "succeeded" | "failed" | "cancelled";
3240
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2204
3241
  startedAfter?: string;
2205
3242
  startedBefore?: string;
2206
3243
  limit?: string;
@@ -2233,16 +3270,26 @@ export type ListPipelineRunsResponses = {
2233
3270
  id: string;
2234
3271
  projectId: string;
2235
3272
  pipelineId: string;
2236
- status: "running" | "succeeded" | "failed" | "cancelled";
2237
- startedAt: string;
3273
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3274
+ queuedAt: string;
3275
+ startedAt?: string;
2238
3276
  finishedAt?: string;
2239
3277
  output?: {
2240
3278
  datasetId: string;
2241
3279
  versionId: string;
2242
3280
  };
2243
3281
  error?: {
2244
- name?: string;
3282
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
2245
3283
  message: string;
3284
+ retryable: boolean;
3285
+ at: string;
3286
+ /**
3287
+ * Any JSON-compatible value.
3288
+ */
3289
+ details?: string | number | boolean | Array<unknown> | {
3290
+ [key: string]: unknown;
3291
+ } | null;
3292
+ truncated?: true;
2246
3293
  };
2247
3294
  }>;
2248
3295
  hasMore: boolean;
@@ -2288,16 +3335,26 @@ export type GetPipelineRunResponses = {
2288
3335
  id: string;
2289
3336
  projectId: string;
2290
3337
  pipelineId: string;
2291
- status: "running" | "succeeded" | "failed" | "cancelled";
2292
- startedAt: string;
3338
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3339
+ queuedAt: string;
3340
+ startedAt?: string;
2293
3341
  finishedAt?: string;
2294
3342
  output?: {
2295
3343
  datasetId: string;
2296
3344
  versionId: string;
2297
3345
  };
2298
3346
  error?: {
2299
- name?: string;
3347
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
2300
3348
  message: string;
3349
+ retryable: boolean;
3350
+ at: string;
3351
+ /**
3352
+ * Any JSON-compatible value.
3353
+ */
3354
+ details?: string | number | boolean | Array<unknown> | {
3355
+ [key: string]: unknown;
3356
+ } | null;
3357
+ truncated?: true;
2301
3358
  };
2302
3359
  };
2303
3360
  steps: Array<{
@@ -2321,8 +3378,17 @@ export type GetPipelineRunResponses = {
2321
3378
  };
2322
3379
  rowsWritten?: number;
2323
3380
  error?: {
2324
- name?: string;
3381
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
2325
3382
  message: string;
3383
+ retryable: boolean;
3384
+ at: string;
3385
+ /**
3386
+ * Any JSON-compatible value.
3387
+ */
3388
+ details?: string | number | boolean | Array<unknown> | {
3389
+ [key: string]: unknown;
3390
+ } | null;
3391
+ truncated?: true;
2326
3392
  };
2327
3393
  }>;
2328
3394
  };
@@ -2382,7 +3448,9 @@ export type ListWorkflowsResponses = {
2382
3448
  200: Array<{
2383
3449
  id: string;
2384
3450
  input: {
2385
- [key: string]: unknown;
3451
+ [key: string]: string | number | boolean | Array<unknown> | {
3452
+ [key: string]: unknown;
3453
+ } | null;
2386
3454
  };
2387
3455
  triggers: Array<{
2388
3456
  type: "schedule";
@@ -2393,10 +3461,14 @@ export type ListWorkflowsResponses = {
2393
3461
  id: string;
2394
3462
  key: string;
2395
3463
  input: {
2396
- [key: string]: unknown;
3464
+ [key: string]: string | number | boolean | Array<unknown> | {
3465
+ [key: string]: unknown;
3466
+ } | null;
2397
3467
  };
2398
3468
  output: {
2399
- [key: string]: unknown;
3469
+ [key: string]: string | number | boolean | Array<unknown> | {
3470
+ [key: string]: unknown;
3471
+ } | null;
2400
3472
  };
2401
3473
  } | {
2402
3474
  type: "action";
@@ -2404,17 +3476,23 @@ export type ListWorkflowsResponses = {
2404
3476
  key: string;
2405
3477
  objectTypeId?: string;
2406
3478
  params: {
2407
- [key: string]: unknown;
3479
+ [key: string]: string | number | boolean | Array<unknown> | {
3480
+ [key: string]: unknown;
3481
+ } | null;
2408
3482
  };
2409
3483
  } | {
2410
3484
  type: "intervention";
2411
3485
  id: string;
2412
3486
  key: string;
2413
3487
  input: {
2414
- [key: string]: unknown;
3488
+ [key: string]: string | number | boolean | Array<unknown> | {
3489
+ [key: string]: unknown;
3490
+ } | null;
2415
3491
  };
2416
3492
  response: {
2417
- [key: string]: unknown;
3493
+ [key: string]: string | number | boolean | Array<unknown> | {
3494
+ [key: string]: unknown;
3495
+ } | null;
2418
3496
  };
2419
3497
  description?: string;
2420
3498
  } | {
@@ -2423,10 +3501,14 @@ export type ListWorkflowsResponses = {
2423
3501
  key: string;
2424
3502
  agentId: string;
2425
3503
  input: {
2426
- [key: string]: unknown;
3504
+ [key: string]: string | number | boolean | Array<unknown> | {
3505
+ [key: string]: unknown;
3506
+ } | null;
2427
3507
  };
2428
3508
  output: {
2429
- [key: string]: unknown;
3509
+ [key: string]: string | number | boolean | Array<unknown> | {
3510
+ [key: string]: unknown;
3511
+ } | null;
2430
3512
  };
2431
3513
  }>;
2432
3514
  latestRun: {
@@ -2434,13 +3516,22 @@ export type ListWorkflowsResponses = {
2434
3516
  projectId: string;
2435
3517
  workflowId: string;
2436
3518
  status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled";
2437
- input: {
2438
- [key: string]: unknown;
2439
- };
2440
3519
  queuedAt?: string;
2441
3520
  startedAt: string;
2442
3521
  finishedAt?: string;
2443
- error?: string;
3522
+ error?: {
3523
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
3524
+ message: string;
3525
+ retryable: boolean;
3526
+ at: string;
3527
+ /**
3528
+ * Any JSON-compatible value.
3529
+ */
3530
+ details?: string | number | boolean | Array<unknown> | {
3531
+ [key: string]: unknown;
3532
+ } | null;
3533
+ truncated?: true;
3534
+ };
2444
3535
  requestedBy: {
2445
3536
  principalType: "user" | "serviceAccount" | "system";
2446
3537
  principalId: string;
@@ -2473,7 +3564,9 @@ export type GetWorkflowResponses = {
2473
3564
  200: {
2474
3565
  id: string;
2475
3566
  input: {
2476
- [key: string]: unknown;
3567
+ [key: string]: string | number | boolean | Array<unknown> | {
3568
+ [key: string]: unknown;
3569
+ } | null;
2477
3570
  };
2478
3571
  triggers: Array<{
2479
3572
  type: "schedule";
@@ -2484,10 +3577,14 @@ export type GetWorkflowResponses = {
2484
3577
  id: string;
2485
3578
  key: string;
2486
3579
  input: {
2487
- [key: string]: unknown;
3580
+ [key: string]: string | number | boolean | Array<unknown> | {
3581
+ [key: string]: unknown;
3582
+ } | null;
2488
3583
  };
2489
3584
  output: {
2490
- [key: string]: unknown;
3585
+ [key: string]: string | number | boolean | Array<unknown> | {
3586
+ [key: string]: unknown;
3587
+ } | null;
2491
3588
  };
2492
3589
  } | {
2493
3590
  type: "action";
@@ -2495,17 +3592,23 @@ export type GetWorkflowResponses = {
2495
3592
  key: string;
2496
3593
  objectTypeId?: string;
2497
3594
  params: {
2498
- [key: string]: unknown;
3595
+ [key: string]: string | number | boolean | Array<unknown> | {
3596
+ [key: string]: unknown;
3597
+ } | null;
2499
3598
  };
2500
3599
  } | {
2501
3600
  type: "intervention";
2502
3601
  id: string;
2503
3602
  key: string;
2504
3603
  input: {
2505
- [key: string]: unknown;
3604
+ [key: string]: string | number | boolean | Array<unknown> | {
3605
+ [key: string]: unknown;
3606
+ } | null;
2506
3607
  };
2507
3608
  response: {
2508
- [key: string]: unknown;
3609
+ [key: string]: string | number | boolean | Array<unknown> | {
3610
+ [key: string]: unknown;
3611
+ } | null;
2509
3612
  };
2510
3613
  description?: string;
2511
3614
  } | {
@@ -2514,10 +3617,14 @@ export type GetWorkflowResponses = {
2514
3617
  key: string;
2515
3618
  agentId: string;
2516
3619
  input: {
2517
- [key: string]: unknown;
3620
+ [key: string]: string | number | boolean | Array<unknown> | {
3621
+ [key: string]: unknown;
3622
+ } | null;
2518
3623
  };
2519
3624
  output: {
2520
- [key: string]: unknown;
3625
+ [key: string]: string | number | boolean | Array<unknown> | {
3626
+ [key: string]: unknown;
3627
+ } | null;
2521
3628
  };
2522
3629
  }>;
2523
3630
  latestRun: {
@@ -2525,13 +3632,22 @@ export type GetWorkflowResponses = {
2525
3632
  projectId: string;
2526
3633
  workflowId: string;
2527
3634
  status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled";
2528
- input: {
2529
- [key: string]: unknown;
2530
- };
2531
3635
  queuedAt?: string;
2532
3636
  startedAt: string;
2533
3637
  finishedAt?: string;
2534
- error?: string;
3638
+ error?: {
3639
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
3640
+ message: string;
3641
+ retryable: boolean;
3642
+ at: string;
3643
+ /**
3644
+ * Any JSON-compatible value.
3645
+ */
3646
+ details?: string | number | boolean | Array<unknown> | {
3647
+ [key: string]: unknown;
3648
+ } | null;
3649
+ truncated?: true;
3650
+ };
2535
3651
  requestedBy: {
2536
3652
  principalType: "user" | "serviceAccount" | "system";
2537
3653
  principalId: string;
@@ -2590,10 +3706,14 @@ export type ListWorkflowInterventionsResponses = {
2590
3706
  nodeKey: string;
2591
3707
  interventionId: string;
2592
3708
  input: {
2593
- [key: string]: unknown;
3709
+ [key: string]: string | number | boolean | Array<unknown> | {
3710
+ [key: string]: unknown;
3711
+ } | null;
2594
3712
  };
2595
3713
  defaultResponse: {
2596
- [key: string]: unknown;
3714
+ [key: string]: string | number | boolean | Array<unknown> | {
3715
+ [key: string]: unknown;
3716
+ } | null;
2597
3717
  };
2598
3718
  status: "pending" | "submitted" | "cancelled" | "expired";
2599
3719
  requestedAt: string;
@@ -2604,7 +3724,9 @@ export type ListWorkflowInterventionsResponses = {
2604
3724
  principalId: string;
2605
3725
  };
2606
3726
  response?: {
2607
- [key: string]: unknown;
3727
+ [key: string]: string | number | boolean | Array<unknown> | {
3728
+ [key: string]: unknown;
3729
+ } | null;
2608
3730
  };
2609
3731
  cancelledAt?: string;
2610
3732
  cancelledBy?: {
@@ -2662,10 +3784,14 @@ export type GetWorkflowInterventionResponses = {
2662
3784
  nodeKey: string;
2663
3785
  interventionId: string;
2664
3786
  input: {
2665
- [key: string]: unknown;
3787
+ [key: string]: string | number | boolean | Array<unknown> | {
3788
+ [key: string]: unknown;
3789
+ } | null;
2666
3790
  };
2667
3791
  defaultResponse: {
2668
- [key: string]: unknown;
3792
+ [key: string]: string | number | boolean | Array<unknown> | {
3793
+ [key: string]: unknown;
3794
+ } | null;
2669
3795
  };
2670
3796
  status: "pending" | "submitted" | "cancelled" | "expired";
2671
3797
  requestedAt: string;
@@ -2676,7 +3802,9 @@ export type GetWorkflowInterventionResponses = {
2676
3802
  principalId: string;
2677
3803
  };
2678
3804
  response?: {
2679
- [key: string]: unknown;
3805
+ [key: string]: string | number | boolean | Array<unknown> | {
3806
+ [key: string]: unknown;
3807
+ } | null;
2680
3808
  };
2681
3809
  cancelledAt?: string;
2682
3810
  cancelledBy?: {
@@ -2690,7 +3818,9 @@ export type GetWorkflowInterventionResponse = GetWorkflowInterventionResponses[k
2690
3818
  export type SubmitWorkflowInterventionData = {
2691
3819
  body: {
2692
3820
  response: {
2693
- [key: string]: unknown;
3821
+ [key: string]: string | number | boolean | Array<unknown> | {
3822
+ [key: string]: unknown;
3823
+ } | null;
2694
3824
  };
2695
3825
  };
2696
3826
  path: {
@@ -2736,10 +3866,14 @@ export type SubmitWorkflowInterventionResponses = {
2736
3866
  nodeKey: string;
2737
3867
  interventionId: string;
2738
3868
  input: {
2739
- [key: string]: unknown;
3869
+ [key: string]: string | number | boolean | Array<unknown> | {
3870
+ [key: string]: unknown;
3871
+ } | null;
2740
3872
  };
2741
3873
  defaultResponse: {
2742
- [key: string]: unknown;
3874
+ [key: string]: string | number | boolean | Array<unknown> | {
3875
+ [key: string]: unknown;
3876
+ } | null;
2743
3877
  };
2744
3878
  status: "pending" | "submitted" | "cancelled" | "expired";
2745
3879
  requestedAt: string;
@@ -2750,7 +3884,9 @@ export type SubmitWorkflowInterventionResponses = {
2750
3884
  principalId: string;
2751
3885
  };
2752
3886
  response?: {
2753
- [key: string]: unknown;
3887
+ [key: string]: string | number | boolean | Array<unknown> | {
3888
+ [key: string]: unknown;
3889
+ } | null;
2754
3890
  };
2755
3891
  cancelledAt?: string;
2756
3892
  cancelledBy?: {
@@ -2810,10 +3946,14 @@ export type CancelWorkflowInterventionResponses = {
2810
3946
  nodeKey: string;
2811
3947
  interventionId: string;
2812
3948
  input: {
2813
- [key: string]: unknown;
3949
+ [key: string]: string | number | boolean | Array<unknown> | {
3950
+ [key: string]: unknown;
3951
+ } | null;
2814
3952
  };
2815
3953
  defaultResponse: {
2816
- [key: string]: unknown;
3954
+ [key: string]: string | number | boolean | Array<unknown> | {
3955
+ [key: string]: unknown;
3956
+ } | null;
2817
3957
  };
2818
3958
  status: "pending" | "submitted" | "cancelled" | "expired";
2819
3959
  requestedAt: string;
@@ -2824,7 +3964,9 @@ export type CancelWorkflowInterventionResponses = {
2824
3964
  principalId: string;
2825
3965
  };
2826
3966
  response?: {
2827
- [key: string]: unknown;
3967
+ [key: string]: string | number | boolean | Array<unknown> | {
3968
+ [key: string]: unknown;
3969
+ } | null;
2828
3970
  };
2829
3971
  cancelledAt?: string;
2830
3972
  cancelledBy?: {
@@ -2875,13 +4017,22 @@ export type ListWorkflowRunsResponses = {
2875
4017
  projectId: string;
2876
4018
  workflowId: string;
2877
4019
  status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled";
2878
- input: {
2879
- [key: string]: unknown;
2880
- };
2881
4020
  queuedAt?: string;
2882
4021
  startedAt: string;
2883
4022
  finishedAt?: string;
2884
- error?: string;
4023
+ error?: {
4024
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
4025
+ message: string;
4026
+ retryable: boolean;
4027
+ at: string;
4028
+ /**
4029
+ * Any JSON-compatible value.
4030
+ */
4031
+ details?: string | number | boolean | Array<unknown> | {
4032
+ [key: string]: unknown;
4033
+ } | null;
4034
+ truncated?: true;
4035
+ };
2885
4036
  requestedBy: {
2886
4037
  principalType: "user" | "serviceAccount" | "system";
2887
4038
  principalId: string;
@@ -2931,17 +4082,36 @@ export type GetWorkflowRunResponses = {
2931
4082
  projectId: string;
2932
4083
  workflowId: string;
2933
4084
  status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled";
2934
- input: {
2935
- [key: string]: unknown;
2936
- };
2937
4085
  queuedAt?: string;
2938
4086
  startedAt: string;
2939
4087
  finishedAt?: string;
2940
- error?: string;
4088
+ error?: {
4089
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
4090
+ message: string;
4091
+ retryable: boolean;
4092
+ at: string;
4093
+ /**
4094
+ * Any JSON-compatible value.
4095
+ */
4096
+ details?: string | number | boolean | Array<unknown> | {
4097
+ [key: string]: unknown;
4098
+ } | null;
4099
+ truncated?: true;
4100
+ };
2941
4101
  requestedBy: {
2942
4102
  principalType: "user" | "serviceAccount" | "system";
2943
4103
  principalId: string;
2944
4104
  };
4105
+ input: {
4106
+ [key: string]: string | number | boolean | Array<unknown> | {
4107
+ [key: string]: unknown;
4108
+ } | null;
4109
+ };
4110
+ output?: {
4111
+ [key: string]: string | number | boolean | Array<unknown> | {
4112
+ [key: string]: unknown;
4113
+ } | null;
4114
+ };
2945
4115
  };
2946
4116
  nodes: Array<{
2947
4117
  id: string;
@@ -2954,14 +4124,30 @@ export type GetWorkflowRunResponses = {
2954
4124
  nodeKey: string;
2955
4125
  status: "running" | "waiting" | "succeeded" | "failed" | "cancelled";
2956
4126
  input: {
2957
- [key: string]: unknown;
4127
+ [key: string]: string | number | boolean | Array<unknown> | {
4128
+ [key: string]: unknown;
4129
+ } | null;
2958
4130
  };
2959
4131
  startedAt: string;
2960
4132
  finishedAt?: string;
2961
4133
  output?: {
2962
- [key: string]: unknown;
4134
+ [key: string]: string | number | boolean | Array<unknown> | {
4135
+ [key: string]: unknown;
4136
+ } | null;
4137
+ };
4138
+ error?: {
4139
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
4140
+ message: string;
4141
+ retryable: boolean;
4142
+ at: string;
4143
+ /**
4144
+ * Any JSON-compatible value.
4145
+ */
4146
+ details?: string | number | boolean | Array<unknown> | {
4147
+ [key: string]: unknown;
4148
+ } | null;
4149
+ truncated?: true;
2963
4150
  };
2964
- error?: string;
2965
4151
  agentExecution?: {
2966
4152
  agentId: string;
2967
4153
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -2969,7 +4155,15 @@ export type GetWorkflowRunResponses = {
2969
4155
  modelId?: string;
2970
4156
  finishReason?: string;
2971
4157
  usage?: {
2972
- [key: string]: unknown;
4158
+ inputTokens?: number;
4159
+ outputTokens?: number;
4160
+ totalTokens?: number;
4161
+ uncachedInputTokens?: number;
4162
+ cacheReadInputTokens?: number;
4163
+ cacheWriteInputTokens?: number;
4164
+ textOutputTokens?: number;
4165
+ reasoningOutputTokens?: number;
4166
+ reportingStatus: "complete" | "partial" | "unavailable";
2973
4167
  };
2974
4168
  startedAt?: string;
2975
4169
  completedAt?: string;
@@ -3019,19 +4213,35 @@ export type GetWorkflowAgentNodeExecutionResponses = {
3019
4213
  modelId?: string;
3020
4214
  finishReason?: string;
3021
4215
  usage?: {
3022
- [key: string]: unknown;
4216
+ inputTokens?: number;
4217
+ outputTokens?: number;
4218
+ totalTokens?: number;
4219
+ uncachedInputTokens?: number;
4220
+ cacheReadInputTokens?: number;
4221
+ cacheWriteInputTokens?: number;
4222
+ textOutputTokens?: number;
4223
+ reasoningOutputTokens?: number;
4224
+ reportingStatus: "complete" | "partial" | "unavailable";
3023
4225
  };
3024
4226
  startedAt?: string;
3025
4227
  completedAt?: string;
3026
4228
  nodeRunId: string;
3027
4229
  prompt: string;
3028
- executionPrincipal?: {
3029
- principalType: "user" | "serviceAccount" | "system";
3030
- principalId: string;
3031
- };
3032
4230
  trace?: Array<unknown>;
3033
4231
  diagnostics?: Array<unknown>;
3034
- error?: string;
4232
+ error?: {
4233
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
4234
+ message: string;
4235
+ retryable: boolean;
4236
+ at: string;
4237
+ /**
4238
+ * Any JSON-compatible value.
4239
+ */
4240
+ details?: string | number | boolean | Array<unknown> | {
4241
+ [key: string]: unknown;
4242
+ } | null;
4243
+ truncated?: true;
4244
+ };
3035
4245
  createdAt: string;
3036
4246
  };
3037
4247
  };
@@ -3077,17 +4287,36 @@ export type CancelWorkflowRunResponses = {
3077
4287
  projectId: string;
3078
4288
  workflowId: string;
3079
4289
  status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled";
3080
- input: {
3081
- [key: string]: unknown;
3082
- };
3083
4290
  queuedAt?: string;
3084
4291
  startedAt: string;
3085
4292
  finishedAt?: string;
3086
- error?: string;
4293
+ error?: {
4294
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
4295
+ message: string;
4296
+ retryable: boolean;
4297
+ at: string;
4298
+ /**
4299
+ * Any JSON-compatible value.
4300
+ */
4301
+ details?: string | number | boolean | Array<unknown> | {
4302
+ [key: string]: unknown;
4303
+ } | null;
4304
+ truncated?: true;
4305
+ };
3087
4306
  requestedBy: {
3088
4307
  principalType: "user" | "serviceAccount" | "system";
3089
4308
  principalId: string;
3090
4309
  };
4310
+ input: {
4311
+ [key: string]: string | number | boolean | Array<unknown> | {
4312
+ [key: string]: unknown;
4313
+ } | null;
4314
+ };
4315
+ output?: {
4316
+ [key: string]: string | number | boolean | Array<unknown> | {
4317
+ [key: string]: unknown;
4318
+ } | null;
4319
+ };
3091
4320
  };
3092
4321
  nodes: Array<{
3093
4322
  id: string;
@@ -3100,14 +4329,30 @@ export type CancelWorkflowRunResponses = {
3100
4329
  nodeKey: string;
3101
4330
  status: "running" | "waiting" | "succeeded" | "failed" | "cancelled";
3102
4331
  input: {
3103
- [key: string]: unknown;
4332
+ [key: string]: string | number | boolean | Array<unknown> | {
4333
+ [key: string]: unknown;
4334
+ } | null;
3104
4335
  };
3105
4336
  startedAt: string;
3106
4337
  finishedAt?: string;
3107
4338
  output?: {
3108
- [key: string]: unknown;
4339
+ [key: string]: string | number | boolean | Array<unknown> | {
4340
+ [key: string]: unknown;
4341
+ } | null;
4342
+ };
4343
+ error?: {
4344
+ code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
4345
+ message: string;
4346
+ retryable: boolean;
4347
+ at: string;
4348
+ /**
4349
+ * Any JSON-compatible value.
4350
+ */
4351
+ details?: string | number | boolean | Array<unknown> | {
4352
+ [key: string]: unknown;
4353
+ } | null;
4354
+ truncated?: true;
3109
4355
  };
3110
- error?: string;
3111
4356
  agentExecution?: {
3112
4357
  agentId: string;
3113
4358
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -3115,7 +4360,15 @@ export type CancelWorkflowRunResponses = {
3115
4360
  modelId?: string;
3116
4361
  finishReason?: string;
3117
4362
  usage?: {
3118
- [key: string]: unknown;
4363
+ inputTokens?: number;
4364
+ outputTokens?: number;
4365
+ totalTokens?: number;
4366
+ uncachedInputTokens?: number;
4367
+ cacheReadInputTokens?: number;
4368
+ cacheWriteInputTokens?: number;
4369
+ textOutputTokens?: number;
4370
+ reasoningOutputTokens?: number;
4371
+ reportingStatus: "complete" | "partial" | "unavailable";
3119
4372
  };
3120
4373
  startedAt?: string;
3121
4374
  completedAt?: string;
@@ -3291,7 +4544,9 @@ export type HeadWorkflowNodeRunFileContentResponses = {
3291
4544
  export type RequestWorkflowRunData = {
3292
4545
  body: {
3293
4546
  input?: {
3294
- [key: string]: unknown;
4547
+ [key: string]: string | number | boolean | Array<unknown> | {
4548
+ [key: string]: unknown;
4549
+ } | null;
3295
4550
  };
3296
4551
  };
3297
4552
  path: {
@@ -4617,9 +5872,16 @@ export type ListActionRunsResponses = {
4617
5872
  startedAt?: string;
4618
5873
  finishedAt?: string;
4619
5874
  error?: {
4620
- name?: string;
5875
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
4621
5876
  message: string;
4622
- phase?: "request" | "enqueue" | "validation" | "writeback" | "edits" | "commit" | "effects" | "cancelled";
5877
+ retryable: boolean;
5878
+ at: string;
5879
+ details: {
5880
+ actionId: string;
5881
+ runId: string;
5882
+ phase: "request" | "enqueue" | "validation" | "writeback" | "edits" | "commit" | "effects" | "cancelled";
5883
+ };
5884
+ truncated?: true;
4623
5885
  };
4624
5886
  }>;
4625
5887
  hasMore: boolean;
@@ -4677,30 +5939,62 @@ export type GetActionRunResponses = {
4677
5939
  startedAt?: string;
4678
5940
  finishedAt?: string;
4679
5941
  error?: {
4680
- name?: string;
5942
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
4681
5943
  message: string;
4682
- phase?: "request" | "enqueue" | "validation" | "writeback" | "edits" | "commit" | "effects" | "cancelled";
5944
+ retryable: boolean;
5945
+ at: string;
5946
+ details: {
5947
+ actionId: string;
5948
+ runId: string;
5949
+ phase: "request" | "enqueue" | "validation" | "writeback" | "edits" | "commit" | "effects" | "cancelled";
5950
+ };
5951
+ truncated?: true;
4683
5952
  };
4684
5953
  params: {
4685
5954
  [key: string]: unknown;
4686
5955
  };
4687
5956
  writeback?: {
4688
- status: "succeeded" | "failed";
5957
+ status: "succeeded";
4689
5958
  completedAt: string;
4690
- result?: unknown;
4691
- error?: {
4692
- name?: string;
5959
+ /**
5960
+ * Any JSON-compatible value.
5961
+ */
5962
+ result: string | number | boolean | Array<unknown> | {
5963
+ [key: string]: unknown;
5964
+ } | null;
5965
+ } | {
5966
+ status: "failed";
5967
+ completedAt: string;
5968
+ error: {
5969
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
4693
5970
  message: string;
4694
- phase?: "request" | "enqueue" | "validation" | "writeback" | "edits" | "commit" | "effects" | "cancelled";
5971
+ retryable: boolean;
5972
+ at: string;
5973
+ details: {
5974
+ actionId: string;
5975
+ runId: string;
5976
+ phase: "writeback";
5977
+ };
5978
+ truncated?: true;
4695
5979
  };
4696
5980
  };
4697
5981
  effects?: {
4698
- status: "succeeded" | "failed";
5982
+ status: "succeeded";
4699
5983
  completedAt: string;
4700
- error?: {
4701
- name?: string;
5984
+ } | {
5985
+ status: "failed";
5986
+ completedAt: string;
5987
+ error: {
5988
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
4702
5989
  message: string;
4703
- phase?: "request" | "enqueue" | "validation" | "writeback" | "edits" | "commit" | "effects" | "cancelled";
5990
+ retryable: boolean;
5991
+ at: string;
5992
+ details: {
5993
+ actionId: string;
5994
+ runId: string;
5995
+ phase: "effects";
5996
+ };
5997
+ truncated?: true;
4704
5998
  };
4705
5999
  };
4706
6000
  };
@@ -5272,12 +6566,8 @@ export type PostAgentThreadMessageResponses = {
5272
6566
  threadId: string;
5273
6567
  agentId: string;
5274
6568
  triggerMessageId: string;
5275
- requestedByPrincipal: {
5276
- type: "user" | "serviceAccount" | "system";
5277
- id: string;
5278
- };
5279
- executionPrincipal?: {
5280
- type: "user" | "serviceAccount" | "system";
6569
+ requestedBy?: {
6570
+ type: "user" | "serviceAccount";
5281
6571
  id: string;
5282
6572
  };
5283
6573
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -5287,8 +6577,12 @@ export type PostAgentThreadMessageResponses = {
5287
6577
  inputTokens?: number;
5288
6578
  outputTokens?: number;
5289
6579
  totalTokens?: number;
5290
- reasoningTokens?: number;
5291
- cachedInputTokens?: number;
6580
+ uncachedInputTokens?: number;
6581
+ cacheReadInputTokens?: number;
6582
+ cacheWriteInputTokens?: number;
6583
+ textOutputTokens?: number;
6584
+ reasoningOutputTokens?: number;
6585
+ reportingStatus: "complete" | "partial" | "unavailable";
5292
6586
  };
5293
6587
  diagnostics?: Array<{
5294
6588
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
@@ -5297,7 +6591,19 @@ export type PostAgentThreadMessageResponses = {
5297
6591
  path?: string;
5298
6592
  message: string;
5299
6593
  }>;
5300
- error?: string;
6594
+ error?: {
6595
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
6596
+ message: string;
6597
+ retryable: boolean;
6598
+ at: string;
6599
+ /**
6600
+ * Any JSON-compatible value.
6601
+ */
6602
+ details?: string | number | boolean | Array<unknown> | {
6603
+ [key: string]: unknown;
6604
+ } | null;
6605
+ truncated?: true;
6606
+ };
5301
6607
  attempt: number;
5302
6608
  streamId: string;
5303
6609
  createdAt: string;
@@ -5438,12 +6744,8 @@ export type CancelAgentRunResponses = {
5438
6744
  threadId: string;
5439
6745
  agentId: string;
5440
6746
  triggerMessageId: string;
5441
- requestedByPrincipal: {
5442
- type: "user" | "serviceAccount" | "system";
5443
- id: string;
5444
- };
5445
- executionPrincipal?: {
5446
- type: "user" | "serviceAccount" | "system";
6747
+ requestedBy?: {
6748
+ type: "user" | "serviceAccount";
5447
6749
  id: string;
5448
6750
  };
5449
6751
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -5453,8 +6755,12 @@ export type CancelAgentRunResponses = {
5453
6755
  inputTokens?: number;
5454
6756
  outputTokens?: number;
5455
6757
  totalTokens?: number;
5456
- reasoningTokens?: number;
5457
- cachedInputTokens?: number;
6758
+ uncachedInputTokens?: number;
6759
+ cacheReadInputTokens?: number;
6760
+ cacheWriteInputTokens?: number;
6761
+ textOutputTokens?: number;
6762
+ reasoningOutputTokens?: number;
6763
+ reportingStatus: "complete" | "partial" | "unavailable";
5458
6764
  };
5459
6765
  diagnostics?: Array<{
5460
6766
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
@@ -5463,7 +6769,19 @@ export type CancelAgentRunResponses = {
5463
6769
  path?: string;
5464
6770
  message: string;
5465
6771
  }>;
5466
- error?: string;
6772
+ error?: {
6773
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
6774
+ message: string;
6775
+ retryable: boolean;
6776
+ at: string;
6777
+ /**
6778
+ * Any JSON-compatible value.
6779
+ */
6780
+ details?: string | number | boolean | Array<unknown> | {
6781
+ [key: string]: unknown;
6782
+ } | null;
6783
+ truncated?: true;
6784
+ };
5467
6785
  attempt: number;
5468
6786
  streamId: string;
5469
6787
  createdAt: string;
@@ -5520,12 +6838,8 @@ export type RetryAgentRunResponses = {
5520
6838
  threadId: string;
5521
6839
  agentId: string;
5522
6840
  triggerMessageId: string;
5523
- requestedByPrincipal: {
5524
- type: "user" | "serviceAccount" | "system";
5525
- id: string;
5526
- };
5527
- executionPrincipal?: {
5528
- type: "user" | "serviceAccount" | "system";
6841
+ requestedBy?: {
6842
+ type: "user" | "serviceAccount";
5529
6843
  id: string;
5530
6844
  };
5531
6845
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -5535,8 +6849,12 @@ export type RetryAgentRunResponses = {
5535
6849
  inputTokens?: number;
5536
6850
  outputTokens?: number;
5537
6851
  totalTokens?: number;
5538
- reasoningTokens?: number;
5539
- cachedInputTokens?: number;
6852
+ uncachedInputTokens?: number;
6853
+ cacheReadInputTokens?: number;
6854
+ cacheWriteInputTokens?: number;
6855
+ textOutputTokens?: number;
6856
+ reasoningOutputTokens?: number;
6857
+ reportingStatus: "complete" | "partial" | "unavailable";
5540
6858
  };
5541
6859
  diagnostics?: Array<{
5542
6860
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
@@ -5545,7 +6863,19 @@ export type RetryAgentRunResponses = {
5545
6863
  path?: string;
5546
6864
  message: string;
5547
6865
  }>;
5548
- error?: string;
6866
+ error?: {
6867
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
6868
+ message: string;
6869
+ retryable: boolean;
6870
+ at: string;
6871
+ /**
6872
+ * Any JSON-compatible value.
6873
+ */
6874
+ details?: string | number | boolean | Array<unknown> | {
6875
+ [key: string]: unknown;
6876
+ } | null;
6877
+ truncated?: true;
6878
+ };
5549
6879
  attempt: number;
5550
6880
  streamId: string;
5551
6881
  createdAt: string;
@@ -5600,12 +6930,8 @@ export type ListAgentThreadRunsResponses = {
5600
6930
  threadId: string;
5601
6931
  agentId: string;
5602
6932
  triggerMessageId: string;
5603
- requestedByPrincipal: {
5604
- type: "user" | "serviceAccount" | "system";
5605
- id: string;
5606
- };
5607
- executionPrincipal?: {
5608
- type: "user" | "serviceAccount" | "system";
6933
+ requestedBy?: {
6934
+ type: "user" | "serviceAccount";
5609
6935
  id: string;
5610
6936
  };
5611
6937
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -5615,8 +6941,12 @@ export type ListAgentThreadRunsResponses = {
5615
6941
  inputTokens?: number;
5616
6942
  outputTokens?: number;
5617
6943
  totalTokens?: number;
5618
- reasoningTokens?: number;
5619
- cachedInputTokens?: number;
6944
+ uncachedInputTokens?: number;
6945
+ cacheReadInputTokens?: number;
6946
+ cacheWriteInputTokens?: number;
6947
+ textOutputTokens?: number;
6948
+ reasoningOutputTokens?: number;
6949
+ reportingStatus: "complete" | "partial" | "unavailable";
5620
6950
  };
5621
6951
  diagnostics?: Array<{
5622
6952
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
@@ -5625,7 +6955,19 @@ export type ListAgentThreadRunsResponses = {
5625
6955
  path?: string;
5626
6956
  message: string;
5627
6957
  }>;
5628
- error?: string;
6958
+ error?: {
6959
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
6960
+ message: string;
6961
+ retryable: boolean;
6962
+ at: string;
6963
+ /**
6964
+ * Any JSON-compatible value.
6965
+ */
6966
+ details?: string | number | boolean | Array<unknown> | {
6967
+ [key: string]: unknown;
6968
+ } | null;
6969
+ truncated?: true;
6970
+ };
5629
6971
  attempt: number;
5630
6972
  streamId: string;
5631
6973
  createdAt: string;
@@ -5676,12 +7018,8 @@ export type GetAgentRunResponses = {
5676
7018
  threadId: string;
5677
7019
  agentId: string;
5678
7020
  triggerMessageId: string;
5679
- requestedByPrincipal: {
5680
- type: "user" | "serviceAccount" | "system";
5681
- id: string;
5682
- };
5683
- executionPrincipal?: {
5684
- type: "user" | "serviceAccount" | "system";
7021
+ requestedBy?: {
7022
+ type: "user" | "serviceAccount";
5685
7023
  id: string;
5686
7024
  };
5687
7025
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -5691,8 +7029,12 @@ export type GetAgentRunResponses = {
5691
7029
  inputTokens?: number;
5692
7030
  outputTokens?: number;
5693
7031
  totalTokens?: number;
5694
- reasoningTokens?: number;
5695
- cachedInputTokens?: number;
7032
+ uncachedInputTokens?: number;
7033
+ cacheReadInputTokens?: number;
7034
+ cacheWriteInputTokens?: number;
7035
+ textOutputTokens?: number;
7036
+ reasoningOutputTokens?: number;
7037
+ reportingStatus: "complete" | "partial" | "unavailable";
5696
7038
  };
5697
7039
  diagnostics?: Array<{
5698
7040
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
@@ -5701,7 +7043,19 @@ export type GetAgentRunResponses = {
5701
7043
  path?: string;
5702
7044
  message: string;
5703
7045
  }>;
5704
- error?: string;
7046
+ error?: {
7047
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
7048
+ message: string;
7049
+ retryable: boolean;
7050
+ at: string;
7051
+ /**
7052
+ * Any JSON-compatible value.
7053
+ */
7054
+ details?: string | number | boolean | Array<unknown> | {
7055
+ [key: string]: unknown;
7056
+ } | null;
7057
+ truncated?: true;
7058
+ };
5705
7059
  attempt: number;
5706
7060
  streamId: string;
5707
7061
  createdAt: string;
@@ -6766,15 +8120,29 @@ export type ListProjectionsResponses = {
6766
8120
  latestRun: {
6767
8121
  id: string;
6768
8122
  projectId: string;
6769
- status: "running" | "succeeded" | "failed" | "cancelled";
8123
+ executionId: string;
8124
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6770
8125
  attempt: number;
6771
8126
  progress: {
6772
8127
  sourceRowsRead: number;
6773
8128
  sourceRowsSkipped: number;
6774
8129
  };
6775
- startedAt: string;
8130
+ queuedAt: string;
8131
+ startedAt?: string;
6776
8132
  finishedAt?: string;
6777
- errorMessage?: string;
8133
+ error?: {
8134
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8135
+ message: string;
8136
+ retryable: boolean;
8137
+ at: string;
8138
+ /**
8139
+ * Any JSON-compatible value.
8140
+ */
8141
+ details?: string | number | boolean | Array<unknown> | {
8142
+ [key: string]: unknown;
8143
+ } | null;
8144
+ truncated?: true;
8145
+ };
6778
8146
  identity: {
6779
8147
  projectionId: string;
6780
8148
  datasetVersion: {
@@ -6794,15 +8162,29 @@ export type ListProjectionsResponses = {
6794
8162
  } | {
6795
8163
  id: string;
6796
8164
  projectId: string;
6797
- status: "running" | "succeeded" | "failed" | "cancelled";
8165
+ executionId: string;
8166
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6798
8167
  attempt: number;
6799
8168
  progress: {
6800
8169
  sourceRowsRead: number;
6801
8170
  sourceRowsSkipped: number;
6802
8171
  };
6803
- startedAt: string;
8172
+ queuedAt: string;
8173
+ startedAt?: string;
6804
8174
  finishedAt?: string;
6805
- errorMessage?: string;
8175
+ error?: {
8176
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8177
+ message: string;
8178
+ retryable: boolean;
8179
+ at: string;
8180
+ /**
8181
+ * Any JSON-compatible value.
8182
+ */
8183
+ details?: string | number | boolean | Array<unknown> | {
8184
+ [key: string]: unknown;
8185
+ } | null;
8186
+ truncated?: true;
8187
+ };
6806
8188
  identity: {
6807
8189
  projectionId: string;
6808
8190
  datasetVersion: {
@@ -6823,15 +8205,29 @@ export type ListProjectionsResponses = {
6823
8205
  } | {
6824
8206
  id: string;
6825
8207
  projectId: string;
6826
- status: "running" | "succeeded" | "failed" | "cancelled";
8208
+ executionId: string;
8209
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6827
8210
  attempt: number;
6828
8211
  progress: {
6829
8212
  sourceRowsRead: number;
6830
8213
  sourceRowsSkipped: number;
6831
8214
  };
6832
- startedAt: string;
8215
+ queuedAt: string;
8216
+ startedAt?: string;
6833
8217
  finishedAt?: string;
6834
- errorMessage?: string;
8218
+ error?: {
8219
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8220
+ message: string;
8221
+ retryable: boolean;
8222
+ at: string;
8223
+ /**
8224
+ * Any JSON-compatible value.
8225
+ */
8226
+ details?: string | number | boolean | Array<unknown> | {
8227
+ [key: string]: unknown;
8228
+ } | null;
8229
+ truncated?: true;
8230
+ };
6835
8231
  identity: {
6836
8232
  projectionId: string;
6837
8233
  datasetVersion: {
@@ -6862,15 +8258,29 @@ export type ListProjectionsResponses = {
6862
8258
  latestRun: {
6863
8259
  id: string;
6864
8260
  projectId: string;
6865
- status: "running" | "succeeded" | "failed" | "cancelled";
8261
+ executionId: string;
8262
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6866
8263
  attempt: number;
6867
8264
  progress: {
6868
8265
  sourceRowsRead: number;
6869
8266
  sourceRowsSkipped: number;
6870
8267
  };
6871
- startedAt: string;
6872
- finishedAt?: string;
6873
- errorMessage?: string;
8268
+ queuedAt: string;
8269
+ startedAt?: string;
8270
+ finishedAt?: string;
8271
+ error?: {
8272
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8273
+ message: string;
8274
+ retryable: boolean;
8275
+ at: string;
8276
+ /**
8277
+ * Any JSON-compatible value.
8278
+ */
8279
+ details?: string | number | boolean | Array<unknown> | {
8280
+ [key: string]: unknown;
8281
+ } | null;
8282
+ truncated?: true;
8283
+ };
6874
8284
  identity: {
6875
8285
  projectionId: string;
6876
8286
  datasetVersion: {
@@ -6890,15 +8300,29 @@ export type ListProjectionsResponses = {
6890
8300
  } | {
6891
8301
  id: string;
6892
8302
  projectId: string;
6893
- status: "running" | "succeeded" | "failed" | "cancelled";
8303
+ executionId: string;
8304
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6894
8305
  attempt: number;
6895
8306
  progress: {
6896
8307
  sourceRowsRead: number;
6897
8308
  sourceRowsSkipped: number;
6898
8309
  };
6899
- startedAt: string;
8310
+ queuedAt: string;
8311
+ startedAt?: string;
6900
8312
  finishedAt?: string;
6901
- errorMessage?: string;
8313
+ error?: {
8314
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8315
+ message: string;
8316
+ retryable: boolean;
8317
+ at: string;
8318
+ /**
8319
+ * Any JSON-compatible value.
8320
+ */
8321
+ details?: string | number | boolean | Array<unknown> | {
8322
+ [key: string]: unknown;
8323
+ } | null;
8324
+ truncated?: true;
8325
+ };
6902
8326
  identity: {
6903
8327
  projectionId: string;
6904
8328
  datasetVersion: {
@@ -6919,15 +8343,29 @@ export type ListProjectionsResponses = {
6919
8343
  } | {
6920
8344
  id: string;
6921
8345
  projectId: string;
6922
- status: "running" | "succeeded" | "failed" | "cancelled";
8346
+ executionId: string;
8347
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6923
8348
  attempt: number;
6924
8349
  progress: {
6925
8350
  sourceRowsRead: number;
6926
8351
  sourceRowsSkipped: number;
6927
8352
  };
6928
- startedAt: string;
8353
+ queuedAt: string;
8354
+ startedAt?: string;
6929
8355
  finishedAt?: string;
6930
- errorMessage?: string;
8356
+ error?: {
8357
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8358
+ message: string;
8359
+ retryable: boolean;
8360
+ at: string;
8361
+ /**
8362
+ * Any JSON-compatible value.
8363
+ */
8364
+ details?: string | number | boolean | Array<unknown> | {
8365
+ [key: string]: unknown;
8366
+ } | null;
8367
+ truncated?: true;
8368
+ };
6931
8369
  identity: {
6932
8370
  projectionId: string;
6933
8371
  datasetVersion: {
@@ -6959,15 +8397,29 @@ export type ListProjectionsResponses = {
6959
8397
  latestRun: {
6960
8398
  id: string;
6961
8399
  projectId: string;
6962
- status: "running" | "succeeded" | "failed" | "cancelled";
8400
+ executionId: string;
8401
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6963
8402
  attempt: number;
6964
8403
  progress: {
6965
8404
  sourceRowsRead: number;
6966
8405
  sourceRowsSkipped: number;
6967
8406
  };
6968
- startedAt: string;
8407
+ queuedAt: string;
8408
+ startedAt?: string;
6969
8409
  finishedAt?: string;
6970
- errorMessage?: string;
8410
+ error?: {
8411
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8412
+ message: string;
8413
+ retryable: boolean;
8414
+ at: string;
8415
+ /**
8416
+ * Any JSON-compatible value.
8417
+ */
8418
+ details?: string | number | boolean | Array<unknown> | {
8419
+ [key: string]: unknown;
8420
+ } | null;
8421
+ truncated?: true;
8422
+ };
6971
8423
  identity: {
6972
8424
  projectionId: string;
6973
8425
  datasetVersion: {
@@ -6987,15 +8439,29 @@ export type ListProjectionsResponses = {
6987
8439
  } | {
6988
8440
  id: string;
6989
8441
  projectId: string;
6990
- status: "running" | "succeeded" | "failed" | "cancelled";
8442
+ executionId: string;
8443
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6991
8444
  attempt: number;
6992
8445
  progress: {
6993
8446
  sourceRowsRead: number;
6994
8447
  sourceRowsSkipped: number;
6995
8448
  };
6996
- startedAt: string;
8449
+ queuedAt: string;
8450
+ startedAt?: string;
6997
8451
  finishedAt?: string;
6998
- errorMessage?: string;
8452
+ error?: {
8453
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8454
+ message: string;
8455
+ retryable: boolean;
8456
+ at: string;
8457
+ /**
8458
+ * Any JSON-compatible value.
8459
+ */
8460
+ details?: string | number | boolean | Array<unknown> | {
8461
+ [key: string]: unknown;
8462
+ } | null;
8463
+ truncated?: true;
8464
+ };
6999
8465
  identity: {
7000
8466
  projectionId: string;
7001
8467
  datasetVersion: {
@@ -7016,15 +8482,29 @@ export type ListProjectionsResponses = {
7016
8482
  } | {
7017
8483
  id: string;
7018
8484
  projectId: string;
7019
- status: "running" | "succeeded" | "failed" | "cancelled";
8485
+ executionId: string;
8486
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7020
8487
  attempt: number;
7021
8488
  progress: {
7022
8489
  sourceRowsRead: number;
7023
8490
  sourceRowsSkipped: number;
7024
8491
  };
7025
- startedAt: string;
8492
+ queuedAt: string;
8493
+ startedAt?: string;
7026
8494
  finishedAt?: string;
7027
- errorMessage?: string;
8495
+ error?: {
8496
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8497
+ message: string;
8498
+ retryable: boolean;
8499
+ at: string;
8500
+ /**
8501
+ * Any JSON-compatible value.
8502
+ */
8503
+ details?: string | number | boolean | Array<unknown> | {
8504
+ [key: string]: unknown;
8505
+ } | null;
8506
+ truncated?: true;
8507
+ };
7028
8508
  identity: {
7029
8509
  projectionId: string;
7030
8510
  datasetVersion: {
@@ -7086,15 +8566,29 @@ export type GetProjectionResponses = {
7086
8566
  latestRun: {
7087
8567
  id: string;
7088
8568
  projectId: string;
7089
- status: "running" | "succeeded" | "failed" | "cancelled";
8569
+ executionId: string;
8570
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7090
8571
  attempt: number;
7091
8572
  progress: {
7092
8573
  sourceRowsRead: number;
7093
8574
  sourceRowsSkipped: number;
7094
8575
  };
7095
- startedAt: string;
8576
+ queuedAt: string;
8577
+ startedAt?: string;
7096
8578
  finishedAt?: string;
7097
- errorMessage?: string;
8579
+ error?: {
8580
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8581
+ message: string;
8582
+ retryable: boolean;
8583
+ at: string;
8584
+ /**
8585
+ * Any JSON-compatible value.
8586
+ */
8587
+ details?: string | number | boolean | Array<unknown> | {
8588
+ [key: string]: unknown;
8589
+ } | null;
8590
+ truncated?: true;
8591
+ };
7098
8592
  identity: {
7099
8593
  projectionId: string;
7100
8594
  datasetVersion: {
@@ -7114,15 +8608,29 @@ export type GetProjectionResponses = {
7114
8608
  } | {
7115
8609
  id: string;
7116
8610
  projectId: string;
7117
- status: "running" | "succeeded" | "failed" | "cancelled";
8611
+ executionId: string;
8612
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7118
8613
  attempt: number;
7119
8614
  progress: {
7120
8615
  sourceRowsRead: number;
7121
8616
  sourceRowsSkipped: number;
7122
8617
  };
7123
- startedAt: string;
8618
+ queuedAt: string;
8619
+ startedAt?: string;
7124
8620
  finishedAt?: string;
7125
- errorMessage?: string;
8621
+ error?: {
8622
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8623
+ message: string;
8624
+ retryable: boolean;
8625
+ at: string;
8626
+ /**
8627
+ * Any JSON-compatible value.
8628
+ */
8629
+ details?: string | number | boolean | Array<unknown> | {
8630
+ [key: string]: unknown;
8631
+ } | null;
8632
+ truncated?: true;
8633
+ };
7126
8634
  identity: {
7127
8635
  projectionId: string;
7128
8636
  datasetVersion: {
@@ -7143,15 +8651,29 @@ export type GetProjectionResponses = {
7143
8651
  } | {
7144
8652
  id: string;
7145
8653
  projectId: string;
7146
- status: "running" | "succeeded" | "failed" | "cancelled";
8654
+ executionId: string;
8655
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7147
8656
  attempt: number;
7148
8657
  progress: {
7149
8658
  sourceRowsRead: number;
7150
8659
  sourceRowsSkipped: number;
7151
8660
  };
7152
- startedAt: string;
8661
+ queuedAt: string;
8662
+ startedAt?: string;
7153
8663
  finishedAt?: string;
7154
- errorMessage?: string;
8664
+ error?: {
8665
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8666
+ message: string;
8667
+ retryable: boolean;
8668
+ at: string;
8669
+ /**
8670
+ * Any JSON-compatible value.
8671
+ */
8672
+ details?: string | number | boolean | Array<unknown> | {
8673
+ [key: string]: unknown;
8674
+ } | null;
8675
+ truncated?: true;
8676
+ };
7155
8677
  identity: {
7156
8678
  projectionId: string;
7157
8679
  datasetVersion: {
@@ -7181,15 +8703,29 @@ export type GetProjectionResponses = {
7181
8703
  latestRun: {
7182
8704
  id: string;
7183
8705
  projectId: string;
7184
- status: "running" | "succeeded" | "failed" | "cancelled";
8706
+ executionId: string;
8707
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7185
8708
  attempt: number;
7186
8709
  progress: {
7187
8710
  sourceRowsRead: number;
7188
8711
  sourceRowsSkipped: number;
7189
8712
  };
7190
- startedAt: string;
8713
+ queuedAt: string;
8714
+ startedAt?: string;
7191
8715
  finishedAt?: string;
7192
- errorMessage?: string;
8716
+ error?: {
8717
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8718
+ message: string;
8719
+ retryable: boolean;
8720
+ at: string;
8721
+ /**
8722
+ * Any JSON-compatible value.
8723
+ */
8724
+ details?: string | number | boolean | Array<unknown> | {
8725
+ [key: string]: unknown;
8726
+ } | null;
8727
+ truncated?: true;
8728
+ };
7193
8729
  identity: {
7194
8730
  projectionId: string;
7195
8731
  datasetVersion: {
@@ -7209,15 +8745,29 @@ export type GetProjectionResponses = {
7209
8745
  } | {
7210
8746
  id: string;
7211
8747
  projectId: string;
7212
- status: "running" | "succeeded" | "failed" | "cancelled";
8748
+ executionId: string;
8749
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7213
8750
  attempt: number;
7214
8751
  progress: {
7215
8752
  sourceRowsRead: number;
7216
8753
  sourceRowsSkipped: number;
7217
8754
  };
7218
- startedAt: string;
8755
+ queuedAt: string;
8756
+ startedAt?: string;
7219
8757
  finishedAt?: string;
7220
- errorMessage?: string;
8758
+ error?: {
8759
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8760
+ message: string;
8761
+ retryable: boolean;
8762
+ at: string;
8763
+ /**
8764
+ * Any JSON-compatible value.
8765
+ */
8766
+ details?: string | number | boolean | Array<unknown> | {
8767
+ [key: string]: unknown;
8768
+ } | null;
8769
+ truncated?: true;
8770
+ };
7221
8771
  identity: {
7222
8772
  projectionId: string;
7223
8773
  datasetVersion: {
@@ -7238,15 +8788,29 @@ export type GetProjectionResponses = {
7238
8788
  } | {
7239
8789
  id: string;
7240
8790
  projectId: string;
7241
- status: "running" | "succeeded" | "failed" | "cancelled";
8791
+ executionId: string;
8792
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7242
8793
  attempt: number;
7243
8794
  progress: {
7244
8795
  sourceRowsRead: number;
7245
8796
  sourceRowsSkipped: number;
7246
8797
  };
7247
- startedAt: string;
8798
+ queuedAt: string;
8799
+ startedAt?: string;
7248
8800
  finishedAt?: string;
7249
- errorMessage?: string;
8801
+ error?: {
8802
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8803
+ message: string;
8804
+ retryable: boolean;
8805
+ at: string;
8806
+ /**
8807
+ * Any JSON-compatible value.
8808
+ */
8809
+ details?: string | number | boolean | Array<unknown> | {
8810
+ [key: string]: unknown;
8811
+ } | null;
8812
+ truncated?: true;
8813
+ };
7250
8814
  identity: {
7251
8815
  projectionId: string;
7252
8816
  datasetVersion: {
@@ -7277,15 +8841,29 @@ export type GetProjectionResponses = {
7277
8841
  latestRun: {
7278
8842
  id: string;
7279
8843
  projectId: string;
7280
- status: "running" | "succeeded" | "failed" | "cancelled";
8844
+ executionId: string;
8845
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7281
8846
  attempt: number;
7282
8847
  progress: {
7283
8848
  sourceRowsRead: number;
7284
8849
  sourceRowsSkipped: number;
7285
8850
  };
7286
- startedAt: string;
8851
+ queuedAt: string;
8852
+ startedAt?: string;
7287
8853
  finishedAt?: string;
7288
- errorMessage?: string;
8854
+ error?: {
8855
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8856
+ message: string;
8857
+ retryable: boolean;
8858
+ at: string;
8859
+ /**
8860
+ * Any JSON-compatible value.
8861
+ */
8862
+ details?: string | number | boolean | Array<unknown> | {
8863
+ [key: string]: unknown;
8864
+ } | null;
8865
+ truncated?: true;
8866
+ };
7289
8867
  identity: {
7290
8868
  projectionId: string;
7291
8869
  datasetVersion: {
@@ -7305,15 +8883,29 @@ export type GetProjectionResponses = {
7305
8883
  } | {
7306
8884
  id: string;
7307
8885
  projectId: string;
7308
- status: "running" | "succeeded" | "failed" | "cancelled";
8886
+ executionId: string;
8887
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7309
8888
  attempt: number;
7310
8889
  progress: {
7311
8890
  sourceRowsRead: number;
7312
8891
  sourceRowsSkipped: number;
7313
8892
  };
7314
- startedAt: string;
8893
+ queuedAt: string;
8894
+ startedAt?: string;
7315
8895
  finishedAt?: string;
7316
- errorMessage?: string;
8896
+ error?: {
8897
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8898
+ message: string;
8899
+ retryable: boolean;
8900
+ at: string;
8901
+ /**
8902
+ * Any JSON-compatible value.
8903
+ */
8904
+ details?: string | number | boolean | Array<unknown> | {
8905
+ [key: string]: unknown;
8906
+ } | null;
8907
+ truncated?: true;
8908
+ };
7317
8909
  identity: {
7318
8910
  projectionId: string;
7319
8911
  datasetVersion: {
@@ -7334,15 +8926,29 @@ export type GetProjectionResponses = {
7334
8926
  } | {
7335
8927
  id: string;
7336
8928
  projectId: string;
7337
- status: "running" | "succeeded" | "failed" | "cancelled";
8929
+ executionId: string;
8930
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7338
8931
  attempt: number;
7339
8932
  progress: {
7340
8933
  sourceRowsRead: number;
7341
8934
  sourceRowsSkipped: number;
7342
8935
  };
7343
- startedAt: string;
8936
+ queuedAt: string;
8937
+ startedAt?: string;
7344
8938
  finishedAt?: string;
7345
- errorMessage?: string;
8939
+ error?: {
8940
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
8941
+ message: string;
8942
+ retryable: boolean;
8943
+ at: string;
8944
+ /**
8945
+ * Any JSON-compatible value.
8946
+ */
8947
+ details?: string | number | boolean | Array<unknown> | {
8948
+ [key: string]: unknown;
8949
+ } | null;
8950
+ truncated?: true;
8951
+ };
7346
8952
  identity: {
7347
8953
  projectionId: string;
7348
8954
  datasetVersion: {
@@ -7371,7 +8977,7 @@ export type ListProjectionRunsData = {
7371
8977
  projectionKind?: "object" | "link" | "telemetry";
7372
8978
  datasetId?: string;
7373
8979
  datasetVersionId?: string;
7374
- status?: "running" | "succeeded" | "failed" | "cancelled";
8980
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7375
8981
  startedAfter?: string;
7376
8982
  startedBefore?: string;
7377
8983
  limit?: string;
@@ -7403,15 +9009,29 @@ export type ListProjectionRunsResponses = {
7403
9009
  runs: Array<{
7404
9010
  id: string;
7405
9011
  projectId: string;
7406
- status: "running" | "succeeded" | "failed" | "cancelled";
9012
+ executionId: string;
9013
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7407
9014
  attempt: number;
7408
9015
  progress: {
7409
9016
  sourceRowsRead: number;
7410
9017
  sourceRowsSkipped: number;
7411
9018
  };
7412
- startedAt: string;
9019
+ queuedAt: string;
9020
+ startedAt?: string;
7413
9021
  finishedAt?: string;
7414
- errorMessage?: string;
9022
+ error?: {
9023
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
9024
+ message: string;
9025
+ retryable: boolean;
9026
+ at: string;
9027
+ /**
9028
+ * Any JSON-compatible value.
9029
+ */
9030
+ details?: string | number | boolean | Array<unknown> | {
9031
+ [key: string]: unknown;
9032
+ } | null;
9033
+ truncated?: true;
9034
+ };
7415
9035
  identity: {
7416
9036
  projectionId: string;
7417
9037
  datasetVersion: {
@@ -7431,15 +9051,29 @@ export type ListProjectionRunsResponses = {
7431
9051
  } | {
7432
9052
  id: string;
7433
9053
  projectId: string;
7434
- status: "running" | "succeeded" | "failed" | "cancelled";
9054
+ executionId: string;
9055
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7435
9056
  attempt: number;
7436
9057
  progress: {
7437
9058
  sourceRowsRead: number;
7438
9059
  sourceRowsSkipped: number;
7439
9060
  };
7440
- startedAt: string;
9061
+ queuedAt: string;
9062
+ startedAt?: string;
7441
9063
  finishedAt?: string;
7442
- errorMessage?: string;
9064
+ error?: {
9065
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
9066
+ message: string;
9067
+ retryable: boolean;
9068
+ at: string;
9069
+ /**
9070
+ * Any JSON-compatible value.
9071
+ */
9072
+ details?: string | number | boolean | Array<unknown> | {
9073
+ [key: string]: unknown;
9074
+ } | null;
9075
+ truncated?: true;
9076
+ };
7443
9077
  identity: {
7444
9078
  projectionId: string;
7445
9079
  datasetVersion: {
@@ -7460,15 +9094,29 @@ export type ListProjectionRunsResponses = {
7460
9094
  } | {
7461
9095
  id: string;
7462
9096
  projectId: string;
7463
- status: "running" | "succeeded" | "failed" | "cancelled";
9097
+ executionId: string;
9098
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7464
9099
  attempt: number;
7465
9100
  progress: {
7466
9101
  sourceRowsRead: number;
7467
9102
  sourceRowsSkipped: number;
7468
9103
  };
7469
- startedAt: string;
9104
+ queuedAt: string;
9105
+ startedAt?: string;
7470
9106
  finishedAt?: string;
7471
- errorMessage?: string;
9107
+ error?: {
9108
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
9109
+ message: string;
9110
+ retryable: boolean;
9111
+ at: string;
9112
+ /**
9113
+ * Any JSON-compatible value.
9114
+ */
9115
+ details?: string | number | boolean | Array<unknown> | {
9116
+ [key: string]: unknown;
9117
+ } | null;
9118
+ truncated?: true;
9119
+ };
7472
9120
  identity: {
7473
9121
  projectionId: string;
7474
9122
  datasetVersion: {
@@ -7527,15 +9175,29 @@ export type GetProjectionRunResponses = {
7527
9175
  200: {
7528
9176
  id: string;
7529
9177
  projectId: string;
7530
- status: "running" | "succeeded" | "failed" | "cancelled";
9178
+ executionId: string;
9179
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7531
9180
  attempt: number;
7532
9181
  progress: {
7533
9182
  sourceRowsRead: number;
7534
9183
  sourceRowsSkipped: number;
7535
9184
  };
7536
- startedAt: string;
9185
+ queuedAt: string;
9186
+ startedAt?: string;
7537
9187
  finishedAt?: string;
7538
- errorMessage?: string;
9188
+ error?: {
9189
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
9190
+ message: string;
9191
+ retryable: boolean;
9192
+ at: string;
9193
+ /**
9194
+ * Any JSON-compatible value.
9195
+ */
9196
+ details?: string | number | boolean | Array<unknown> | {
9197
+ [key: string]: unknown;
9198
+ } | null;
9199
+ truncated?: true;
9200
+ };
7539
9201
  identity: {
7540
9202
  projectionId: string;
7541
9203
  datasetVersion: {
@@ -7555,15 +9217,29 @@ export type GetProjectionRunResponses = {
7555
9217
  } | {
7556
9218
  id: string;
7557
9219
  projectId: string;
7558
- status: "running" | "succeeded" | "failed" | "cancelled";
9220
+ executionId: string;
9221
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7559
9222
  attempt: number;
7560
9223
  progress: {
7561
9224
  sourceRowsRead: number;
7562
9225
  sourceRowsSkipped: number;
7563
9226
  };
7564
- startedAt: string;
9227
+ queuedAt: string;
9228
+ startedAt?: string;
7565
9229
  finishedAt?: string;
7566
- errorMessage?: string;
9230
+ error?: {
9231
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
9232
+ message: string;
9233
+ retryable: boolean;
9234
+ at: string;
9235
+ /**
9236
+ * Any JSON-compatible value.
9237
+ */
9238
+ details?: string | number | boolean | Array<unknown> | {
9239
+ [key: string]: unknown;
9240
+ } | null;
9241
+ truncated?: true;
9242
+ };
7567
9243
  identity: {
7568
9244
  projectionId: string;
7569
9245
  datasetVersion: {
@@ -7584,15 +9260,29 @@ export type GetProjectionRunResponses = {
7584
9260
  } | {
7585
9261
  id: string;
7586
9262
  projectId: string;
7587
- status: "running" | "succeeded" | "failed" | "cancelled";
9263
+ executionId: string;
9264
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7588
9265
  attempt: number;
7589
9266
  progress: {
7590
9267
  sourceRowsRead: number;
7591
9268
  sourceRowsSkipped: number;
7592
9269
  };
7593
- startedAt: string;
9270
+ queuedAt: string;
9271
+ startedAt?: string;
7594
9272
  finishedAt?: string;
7595
- errorMessage?: string;
9273
+ error?: {
9274
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
9275
+ message: string;
9276
+ retryable: boolean;
9277
+ at: string;
9278
+ /**
9279
+ * Any JSON-compatible value.
9280
+ */
9281
+ details?: string | number | boolean | Array<unknown> | {
9282
+ [key: string]: unknown;
9283
+ } | null;
9284
+ truncated?: true;
9285
+ };
7596
9286
  identity: {
7597
9287
  projectionId: string;
7598
9288
  datasetVersion: {
@@ -7618,7 +9308,7 @@ export type ListWebhookRunsData = {
7618
9308
  query?: {
7619
9309
  connectorId?: string;
7620
9310
  webhookId?: string;
7621
- status?: "running" | "succeeded" | "failed" | "skipped";
9311
+ status?: "running" | "succeeded" | "failed";
7622
9312
  idempotencyKey?: string;
7623
9313
  startedAfter?: string;
7624
9314
  startedBefore?: string;
@@ -7651,18 +9341,30 @@ export type ListWebhookRunsResponses = {
7651
9341
  runs: Array<{
7652
9342
  id: string;
7653
9343
  projectId: string;
9344
+ executionId: string;
7654
9345
  connectorId: string;
7655
9346
  webhookId: string;
7656
- status: "running" | "succeeded" | "failed" | "skipped";
9347
+ status: "running" | "succeeded" | "failed";
7657
9348
  method: string;
7658
9349
  route: string;
7659
9350
  startedAt: string;
7660
9351
  finishedAt?: string;
7661
- requestBodyBytes?: number;
9352
+ requestBodyBytes: number;
7662
9353
  responseStatus?: number;
7663
9354
  idempotencyKey?: string;
7664
- deliveryClaimResult?: "claimed" | "duplicate" | "in_progress";
7665
- error?: string;
9355
+ error?: {
9356
+ code: "internal.unexpected" | "webhook.delivery_failed" | "webhook.delivery_rejected";
9357
+ message: string;
9358
+ retryable: boolean;
9359
+ at: string;
9360
+ /**
9361
+ * Any JSON-compatible value.
9362
+ */
9363
+ details?: string | number | boolean | Array<unknown> | {
9364
+ [key: string]: unknown;
9365
+ } | null;
9366
+ truncated?: true;
9367
+ };
7666
9368
  }>;
7667
9369
  hasMore: boolean;
7668
9370
  total: number;