@sixb/client 0.1.1 → 0.1.3
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.
- package/README.md +2 -2
- package/dist/agent-streams.d.ts +26 -3
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/api.d.ts +6 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +2 -2
- package/dist/browser.js.map +1 -1
- package/dist/{chunk-2vsyqn32.js → chunk-6esh0dxx.js} +1 -1
- package/dist/{chunk-hkrfakyt.js → chunk-7ts981a8.js} +2 -2
- package/dist/{chunk-h8bd95xf.js → chunk-eyd61e4t.js} +55 -2
- package/dist/chunk-eyd61e4t.js.map +19 -0
- package/dist/{chunk-1mnf48s9.js → chunk-heqezbjc.js} +2 -2
- package/dist/{chunk-dkd2wgva.js → chunk-hfk246y4.js} +40 -28
- package/dist/{chunk-dkd2wgva.js.map → chunk-hfk246y4.js.map} +3 -3
- package/dist/{chunk-w527w02k.js → chunk-mpgzkmwc.js} +2 -74
- package/dist/chunk-mpgzkmwc.js.map +10 -0
- package/dist/{chunk-6w5w9e75.js → chunk-yjank04c.js} +27 -12
- package/dist/chunk-yjank04c.js.map +10 -0
- package/dist/client-provider.d.ts +8 -0
- package/dist/client-provider.d.ts.map +1 -0
- package/dist/connectors/connection.d.ts +50 -0
- package/dist/connectors/connection.d.ts.map +1 -0
- package/dist/connectors/index.d.ts +4 -0
- package/dist/connectors/index.d.ts.map +1 -0
- package/dist/connectors/mutations.d.ts +62 -0
- package/dist/connectors/mutations.d.ts.map +1 -0
- package/dist/connectors/queries.d.ts +536 -0
- package/dist/connectors/queries.d.ts.map +1 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +5679 -809
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +41 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +2330 -218
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts +2 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +1180 -360
- package/dist/hooks.js.map +11 -6
- package/dist/index.js +29 -11
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.d.ts +0 -31
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +23 -7
- package/dist/models.js.map +1 -1
- package/dist/query-hooks.d.ts +2 -6
- package/dist/query-hooks.d.ts.map +1 -1
- package/dist/query.js +3 -3
- package/dist/useAgentActivityStream.d.ts +14 -0
- package/dist/useAgentActivityStream.d.ts.map +1 -0
- package/package.json +6 -2
- package/src/agent-streams.ts +68 -45
- package/src/api.ts +26 -2
- package/src/browser.ts +1 -1
- package/src/client-provider.ts +12 -0
- package/src/connectors/connection.ts +443 -0
- package/src/connectors/index.ts +12 -0
- package/src/connectors/mutations.ts +417 -0
- package/src/connectors/queries.ts +150 -0
- package/src/generated/@tanstack/react-query.gen.ts +346 -0
- package/src/generated/index.ts +60 -0
- package/src/generated/sdk.gen.ts +189 -0
- package/src/generated/types.gen.ts +3048 -254
- package/src/hooks.ts +6 -0
- package/src/models.ts +0 -103
- package/src/query-hooks.ts +8 -14
- package/src/useAgentActivityStream.ts +48 -0
- package/dist/chunk-6w5w9e75.js.map +0 -10
- package/dist/chunk-h8bd95xf.js.map +0 -19
- package/dist/chunk-w527w02k.js.map +0 -10
- /package/dist/{chunk-2vsyqn32.js.map → chunk-6esh0dxx.js.map} +0 -0
- /package/dist/{chunk-hkrfakyt.js.map → chunk-7ts981a8.js.map} +0 -0
- /package/dist/{chunk-1mnf48s9.js.map → chunk-heqezbjc.js.map} +0 -0
|
@@ -1584,6 +1584,344 @@ export type ReactivateAuthMemberResponses = {
|
|
|
1584
1584
|
export type ReactivateAuthMemberResponse =
|
|
1585
1585
|
ReactivateAuthMemberResponses[keyof ReactivateAuthMemberResponses]
|
|
1586
1586
|
|
|
1587
|
+
export type GetAiAccountingOverviewData = {
|
|
1588
|
+
body?: never
|
|
1589
|
+
path?: never
|
|
1590
|
+
query: {
|
|
1591
|
+
from: string
|
|
1592
|
+
to: string
|
|
1593
|
+
providerId?: string
|
|
1594
|
+
modelId?: string
|
|
1595
|
+
bucket: "hour" | "day" | "week"
|
|
1596
|
+
}
|
|
1597
|
+
url: "/api/ai/accounting/overview"
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
export type GetAiAccountingOverviewErrors = {
|
|
1601
|
+
/**
|
|
1602
|
+
* Response for status 400
|
|
1603
|
+
*/
|
|
1604
|
+
400: {
|
|
1605
|
+
error: string
|
|
1606
|
+
}
|
|
1607
|
+
/**
|
|
1608
|
+
* Response for status 501
|
|
1609
|
+
*/
|
|
1610
|
+
501: {
|
|
1611
|
+
error: string
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
export type GetAiAccountingOverviewError =
|
|
1616
|
+
GetAiAccountingOverviewErrors[keyof GetAiAccountingOverviewErrors]
|
|
1617
|
+
|
|
1618
|
+
export type GetAiAccountingOverviewResponses = {
|
|
1619
|
+
/**
|
|
1620
|
+
* Response for status 200
|
|
1621
|
+
*/
|
|
1622
|
+
200: {
|
|
1623
|
+
range: {
|
|
1624
|
+
from: string
|
|
1625
|
+
to: string
|
|
1626
|
+
}
|
|
1627
|
+
bucket: "hour" | "day" | "week"
|
|
1628
|
+
totals: {
|
|
1629
|
+
modelCallCount: number
|
|
1630
|
+
usage: {
|
|
1631
|
+
inputTokens?: number
|
|
1632
|
+
outputTokens?: number
|
|
1633
|
+
totalTokens?: number
|
|
1634
|
+
uncachedInputTokens?: number
|
|
1635
|
+
cacheReadInputTokens?: number
|
|
1636
|
+
cacheWriteInputTokens?: number
|
|
1637
|
+
textOutputTokens?: number
|
|
1638
|
+
reasoningOutputTokens?: number
|
|
1639
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1640
|
+
}
|
|
1641
|
+
costs: {
|
|
1642
|
+
amounts: Array<{
|
|
1643
|
+
currency: string
|
|
1644
|
+
amountNanos: string
|
|
1645
|
+
}>
|
|
1646
|
+
ratedCallCount: number
|
|
1647
|
+
unpriceableCallCount: number
|
|
1648
|
+
unvaluedCallCount: number
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
series: Array<{
|
|
1652
|
+
modelCallCount: number
|
|
1653
|
+
usage: {
|
|
1654
|
+
inputTokens?: number
|
|
1655
|
+
outputTokens?: number
|
|
1656
|
+
totalTokens?: number
|
|
1657
|
+
uncachedInputTokens?: number
|
|
1658
|
+
cacheReadInputTokens?: number
|
|
1659
|
+
cacheWriteInputTokens?: number
|
|
1660
|
+
textOutputTokens?: number
|
|
1661
|
+
reasoningOutputTokens?: number
|
|
1662
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1663
|
+
}
|
|
1664
|
+
costs: {
|
|
1665
|
+
amounts: Array<{
|
|
1666
|
+
currency: string
|
|
1667
|
+
amountNanos: string
|
|
1668
|
+
}>
|
|
1669
|
+
ratedCallCount: number
|
|
1670
|
+
unpriceableCallCount: number
|
|
1671
|
+
unvaluedCallCount: number
|
|
1672
|
+
}
|
|
1673
|
+
start: string
|
|
1674
|
+
end: string
|
|
1675
|
+
}>
|
|
1676
|
+
models: Array<{
|
|
1677
|
+
modelCallCount: number
|
|
1678
|
+
usage: {
|
|
1679
|
+
inputTokens?: number
|
|
1680
|
+
outputTokens?: number
|
|
1681
|
+
totalTokens?: number
|
|
1682
|
+
uncachedInputTokens?: number
|
|
1683
|
+
cacheReadInputTokens?: number
|
|
1684
|
+
cacheWriteInputTokens?: number
|
|
1685
|
+
textOutputTokens?: number
|
|
1686
|
+
reasoningOutputTokens?: number
|
|
1687
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1688
|
+
}
|
|
1689
|
+
costs: {
|
|
1690
|
+
amounts: Array<{
|
|
1691
|
+
currency: string
|
|
1692
|
+
amountNanos: string
|
|
1693
|
+
}>
|
|
1694
|
+
ratedCallCount: number
|
|
1695
|
+
unpriceableCallCount: number
|
|
1696
|
+
unvaluedCallCount: number
|
|
1697
|
+
}
|
|
1698
|
+
providerId: string
|
|
1699
|
+
modelId: string
|
|
1700
|
+
}>
|
|
1701
|
+
agents: Array<{
|
|
1702
|
+
modelCallCount: number
|
|
1703
|
+
usage: {
|
|
1704
|
+
inputTokens?: number
|
|
1705
|
+
outputTokens?: number
|
|
1706
|
+
totalTokens?: number
|
|
1707
|
+
uncachedInputTokens?: number
|
|
1708
|
+
cacheReadInputTokens?: number
|
|
1709
|
+
cacheWriteInputTokens?: number
|
|
1710
|
+
textOutputTokens?: number
|
|
1711
|
+
reasoningOutputTokens?: number
|
|
1712
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1713
|
+
}
|
|
1714
|
+
costs: {
|
|
1715
|
+
amounts: Array<{
|
|
1716
|
+
currency: string
|
|
1717
|
+
amountNanos: string
|
|
1718
|
+
}>
|
|
1719
|
+
ratedCallCount: number
|
|
1720
|
+
unpriceableCallCount: number
|
|
1721
|
+
unvaluedCallCount: number
|
|
1722
|
+
}
|
|
1723
|
+
agentId: string
|
|
1724
|
+
}>
|
|
1725
|
+
workflows: Array<{
|
|
1726
|
+
modelCallCount: number
|
|
1727
|
+
usage: {
|
|
1728
|
+
inputTokens?: number
|
|
1729
|
+
outputTokens?: number
|
|
1730
|
+
totalTokens?: number
|
|
1731
|
+
uncachedInputTokens?: number
|
|
1732
|
+
cacheReadInputTokens?: number
|
|
1733
|
+
cacheWriteInputTokens?: number
|
|
1734
|
+
textOutputTokens?: number
|
|
1735
|
+
reasoningOutputTokens?: number
|
|
1736
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1737
|
+
}
|
|
1738
|
+
costs: {
|
|
1739
|
+
amounts: Array<{
|
|
1740
|
+
currency: string
|
|
1741
|
+
amountNanos: string
|
|
1742
|
+
}>
|
|
1743
|
+
ratedCallCount: number
|
|
1744
|
+
unpriceableCallCount: number
|
|
1745
|
+
unvaluedCallCount: number
|
|
1746
|
+
}
|
|
1747
|
+
workflowId: string
|
|
1748
|
+
}>
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
export type GetAiAccountingOverviewResponse =
|
|
1753
|
+
GetAiAccountingOverviewResponses[keyof GetAiAccountingOverviewResponses]
|
|
1754
|
+
|
|
1755
|
+
export type ListAiModelCallsData = {
|
|
1756
|
+
body?: never
|
|
1757
|
+
path?: never
|
|
1758
|
+
query: {
|
|
1759
|
+
from: string
|
|
1760
|
+
to: string
|
|
1761
|
+
providerId?: string
|
|
1762
|
+
modelId?: string
|
|
1763
|
+
executionId?: string
|
|
1764
|
+
valuationStatus?: "rated" | "unpriceable" | "unvalued"
|
|
1765
|
+
limit?: string
|
|
1766
|
+
offset?: string
|
|
1767
|
+
}
|
|
1768
|
+
url: "/api/ai/model-calls"
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
export type ListAiModelCallsErrors = {
|
|
1772
|
+
/**
|
|
1773
|
+
* Response for status 400
|
|
1774
|
+
*/
|
|
1775
|
+
400: {
|
|
1776
|
+
error: string
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Response for status 501
|
|
1780
|
+
*/
|
|
1781
|
+
501: {
|
|
1782
|
+
error: string
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
export type ListAiModelCallsError = ListAiModelCallsErrors[keyof ListAiModelCallsErrors]
|
|
1787
|
+
|
|
1788
|
+
export type ListAiModelCallsResponses = {
|
|
1789
|
+
/**
|
|
1790
|
+
* Response for status 200
|
|
1791
|
+
*/
|
|
1792
|
+
200: {
|
|
1793
|
+
items: Array<{
|
|
1794
|
+
usage: {
|
|
1795
|
+
id: string
|
|
1796
|
+
executionId: string
|
|
1797
|
+
attempt: number
|
|
1798
|
+
callId: string
|
|
1799
|
+
providerId: string
|
|
1800
|
+
requestedModelId: string
|
|
1801
|
+
responseModelId?: string
|
|
1802
|
+
responseId: string
|
|
1803
|
+
usage: {
|
|
1804
|
+
inputTokens?: number
|
|
1805
|
+
outputTokens?: number
|
|
1806
|
+
totalTokens?: number
|
|
1807
|
+
uncachedInputTokens?: number
|
|
1808
|
+
cacheReadInputTokens?: number
|
|
1809
|
+
cacheWriteInputTokens?: number
|
|
1810
|
+
textOutputTokens?: number
|
|
1811
|
+
reasoningOutputTokens?: number
|
|
1812
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1813
|
+
}
|
|
1814
|
+
occurredAt: string
|
|
1815
|
+
recordedAt: string
|
|
1816
|
+
}
|
|
1817
|
+
attribution?:
|
|
1818
|
+
| {
|
|
1819
|
+
kind: "agent"
|
|
1820
|
+
agentId: string
|
|
1821
|
+
agentRunId: string
|
|
1822
|
+
threadId: string
|
|
1823
|
+
}
|
|
1824
|
+
| {
|
|
1825
|
+
kind: "workflowAgent"
|
|
1826
|
+
agentId: string
|
|
1827
|
+
nodeRunId: string
|
|
1828
|
+
workflowId: string
|
|
1829
|
+
workflowRunId: string
|
|
1830
|
+
}
|
|
1831
|
+
cost?:
|
|
1832
|
+
| {
|
|
1833
|
+
status: "rated"
|
|
1834
|
+
billingIdentity: {
|
|
1835
|
+
providerId: string
|
|
1836
|
+
modelId: string
|
|
1837
|
+
}
|
|
1838
|
+
pricingContext: {
|
|
1839
|
+
serviceTier?: string
|
|
1840
|
+
batch?: boolean
|
|
1841
|
+
region?: string
|
|
1842
|
+
inferenceGeo?: string
|
|
1843
|
+
routedProviderId?: string
|
|
1844
|
+
deploymentId?: string
|
|
1845
|
+
inferenceProfileId?: string
|
|
1846
|
+
cacheWriteTtlSeconds?: number
|
|
1847
|
+
mode?: string
|
|
1848
|
+
}
|
|
1849
|
+
priceSource: {
|
|
1850
|
+
sourceId: string
|
|
1851
|
+
sourceEntryId: string
|
|
1852
|
+
sourceVersion: string
|
|
1853
|
+
sourceUrl: string
|
|
1854
|
+
observedAt: string
|
|
1855
|
+
}
|
|
1856
|
+
money: {
|
|
1857
|
+
currency: string
|
|
1858
|
+
amountNanos: string
|
|
1859
|
+
}
|
|
1860
|
+
components: Array<{
|
|
1861
|
+
meter:
|
|
1862
|
+
| "tokens.input.total"
|
|
1863
|
+
| "tokens.input.uncached"
|
|
1864
|
+
| "tokens.input.cacheRead"
|
|
1865
|
+
| "tokens.input.cacheWrite"
|
|
1866
|
+
| "tokens.output.total"
|
|
1867
|
+
| "tokens.output.text"
|
|
1868
|
+
| "tokens.output.reasoning"
|
|
1869
|
+
quantity: string
|
|
1870
|
+
rateAmountNanosPerMillion: string
|
|
1871
|
+
chargeAmountNanos: string
|
|
1872
|
+
}>
|
|
1873
|
+
ratedAt: string
|
|
1874
|
+
}
|
|
1875
|
+
| {
|
|
1876
|
+
status: "unpriceable"
|
|
1877
|
+
billingIdentity?: {
|
|
1878
|
+
providerId: string
|
|
1879
|
+
modelId: string
|
|
1880
|
+
}
|
|
1881
|
+
pricingContext: {
|
|
1882
|
+
serviceTier?: string
|
|
1883
|
+
batch?: boolean
|
|
1884
|
+
region?: string
|
|
1885
|
+
inferenceGeo?: string
|
|
1886
|
+
routedProviderId?: string
|
|
1887
|
+
deploymentId?: string
|
|
1888
|
+
inferenceProfileId?: string
|
|
1889
|
+
cacheWriteTtlSeconds?: number
|
|
1890
|
+
mode?: string
|
|
1891
|
+
}
|
|
1892
|
+
priceSource: {
|
|
1893
|
+
sourceId: string
|
|
1894
|
+
sourceEntryId: string
|
|
1895
|
+
sourceVersion: string
|
|
1896
|
+
sourceUrl: string
|
|
1897
|
+
observedAt: string
|
|
1898
|
+
}
|
|
1899
|
+
reason:
|
|
1900
|
+
| "missingBillingIdentity"
|
|
1901
|
+
| "missingCatalogEntry"
|
|
1902
|
+
| "missingUsageMeter"
|
|
1903
|
+
| "unsupportedPricingDimension"
|
|
1904
|
+
| "invalidUsageForFormula"
|
|
1905
|
+
missingMeters?: Array<
|
|
1906
|
+
| "tokens.input.total"
|
|
1907
|
+
| "tokens.input.uncached"
|
|
1908
|
+
| "tokens.input.cacheRead"
|
|
1909
|
+
| "tokens.input.cacheWrite"
|
|
1910
|
+
| "tokens.output.total"
|
|
1911
|
+
| "tokens.output.text"
|
|
1912
|
+
| "tokens.output.reasoning"
|
|
1913
|
+
>
|
|
1914
|
+
ratedAt: string
|
|
1915
|
+
}
|
|
1916
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued"
|
|
1917
|
+
}>
|
|
1918
|
+
hasMore: boolean
|
|
1919
|
+
total: number
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
export type ListAiModelCallsResponse = ListAiModelCallsResponses[keyof ListAiModelCallsResponses]
|
|
1924
|
+
|
|
1587
1925
|
export type GetProjectInfoData = {
|
|
1588
1926
|
body?: never
|
|
1589
1927
|
path?: never
|
|
@@ -1643,76 +1981,1191 @@ export type GetStatusResponses = {
|
|
|
1643
1981
|
}
|
|
1644
1982
|
}
|
|
1645
1983
|
|
|
1646
|
-
export type GetStatusResponse = GetStatusResponses[keyof GetStatusResponses]
|
|
1647
|
-
|
|
1648
|
-
export type ListConnectorsData = {
|
|
1649
|
-
body?: never
|
|
1650
|
-
path?: never
|
|
1651
|
-
query?: never
|
|
1652
|
-
url: "/api/connectors"
|
|
1653
|
-
}
|
|
1984
|
+
export type GetStatusResponse = GetStatusResponses[keyof GetStatusResponses]
|
|
1985
|
+
|
|
1986
|
+
export type ListConnectorsData = {
|
|
1987
|
+
body?: never
|
|
1988
|
+
path?: never
|
|
1989
|
+
query?: never
|
|
1990
|
+
url: "/api/connectors"
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
export type ListConnectorsResponses = {
|
|
1994
|
+
/**
|
|
1995
|
+
* Response for status 200
|
|
1996
|
+
*/
|
|
1997
|
+
200: Array<{
|
|
1998
|
+
id: string
|
|
1999
|
+
type: string
|
|
2000
|
+
connection: {
|
|
2001
|
+
authentication: "oauth2"
|
|
2002
|
+
} | null
|
|
2003
|
+
syncIds: Array<string>
|
|
2004
|
+
webhooks: Array<{
|
|
2005
|
+
id: string
|
|
2006
|
+
method: "POST"
|
|
2007
|
+
route: string
|
|
2008
|
+
bodyFormat: "json" | "text" | "raw"
|
|
2009
|
+
hasVerify: boolean
|
|
2010
|
+
hasIdempotency: boolean
|
|
2011
|
+
}>
|
|
2012
|
+
}>
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
export type ListConnectorsResponse = ListConnectorsResponses[keyof ListConnectorsResponses]
|
|
2016
|
+
|
|
2017
|
+
export type GetConnectorData = {
|
|
2018
|
+
body?: never
|
|
2019
|
+
path: {
|
|
2020
|
+
connectorId: string
|
|
2021
|
+
}
|
|
2022
|
+
query?: never
|
|
2023
|
+
url: "/api/connectors/{connectorId}"
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
export type GetConnectorErrors = {
|
|
2027
|
+
/**
|
|
2028
|
+
* Response for status 404
|
|
2029
|
+
*/
|
|
2030
|
+
404: {
|
|
2031
|
+
error: string
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
export type GetConnectorError = GetConnectorErrors[keyof GetConnectorErrors]
|
|
2036
|
+
|
|
2037
|
+
export type GetConnectorResponses = {
|
|
2038
|
+
/**
|
|
2039
|
+
* Response for status 200
|
|
2040
|
+
*/
|
|
2041
|
+
200: {
|
|
2042
|
+
id: string
|
|
2043
|
+
type: string
|
|
2044
|
+
connection: {
|
|
2045
|
+
authentication: "oauth2"
|
|
2046
|
+
} | null
|
|
2047
|
+
syncIds: Array<string>
|
|
2048
|
+
webhooks: Array<{
|
|
2049
|
+
id: string
|
|
2050
|
+
method: "POST"
|
|
2051
|
+
route: string
|
|
2052
|
+
bodyFormat: "json" | "text" | "raw"
|
|
2053
|
+
hasVerify: boolean
|
|
2054
|
+
hasIdempotency: boolean
|
|
2055
|
+
}>
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
export type GetConnectorResponse = GetConnectorResponses[keyof GetConnectorResponses]
|
|
2060
|
+
|
|
2061
|
+
export type ListConnectorConnectionsData = {
|
|
2062
|
+
body?: never
|
|
2063
|
+
path: {
|
|
2064
|
+
connectorId: string
|
|
2065
|
+
}
|
|
2066
|
+
query?: never
|
|
2067
|
+
url: "/api/connectors/{connectorId}/connections"
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
export type ListConnectorConnectionsErrors = {
|
|
2071
|
+
/**
|
|
2072
|
+
* Response for status 400
|
|
2073
|
+
*/
|
|
2074
|
+
400: {
|
|
2075
|
+
error: string
|
|
2076
|
+
/**
|
|
2077
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2078
|
+
*/
|
|
2079
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid"
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
* Response for status 403
|
|
2083
|
+
*/
|
|
2084
|
+
403: {
|
|
2085
|
+
error: string
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Response for status 404
|
|
2089
|
+
*/
|
|
2090
|
+
404: {
|
|
2091
|
+
error: string
|
|
2092
|
+
/**
|
|
2093
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2094
|
+
*/
|
|
2095
|
+
code?: "connector.not_found"
|
|
2096
|
+
}
|
|
2097
|
+
/**
|
|
2098
|
+
* Response for status 500
|
|
2099
|
+
*/
|
|
2100
|
+
500: {
|
|
2101
|
+
error: string
|
|
2102
|
+
/**
|
|
2103
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2104
|
+
*/
|
|
2105
|
+
code?: "internal.unexpected"
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
export type ListConnectorConnectionsError =
|
|
2110
|
+
ListConnectorConnectionsErrors[keyof ListConnectorConnectionsErrors]
|
|
2111
|
+
|
|
2112
|
+
export type ListConnectorConnectionsResponses = {
|
|
2113
|
+
/**
|
|
2114
|
+
* Response for status 200
|
|
2115
|
+
*/
|
|
2116
|
+
200: Array<{
|
|
2117
|
+
id: string
|
|
2118
|
+
connectorId: string
|
|
2119
|
+
owner: {
|
|
2120
|
+
type: "project"
|
|
2121
|
+
}
|
|
2122
|
+
slot: string
|
|
2123
|
+
account: {
|
|
2124
|
+
id: string
|
|
2125
|
+
label: string
|
|
2126
|
+
description?: string
|
|
2127
|
+
avatarUrl?: string
|
|
2128
|
+
}
|
|
2129
|
+
status: "connected" | "needs_reauthorization" | "disconnected"
|
|
2130
|
+
}>
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
export type ListConnectorConnectionsResponse =
|
|
2134
|
+
ListConnectorConnectionsResponses[keyof ListConnectorConnectionsResponses]
|
|
2135
|
+
|
|
2136
|
+
export type DisconnectConnectorConnectionData = {
|
|
2137
|
+
body?: never
|
|
2138
|
+
path: {
|
|
2139
|
+
connectorId: string
|
|
2140
|
+
connectionId: string
|
|
2141
|
+
}
|
|
2142
|
+
query?: never
|
|
2143
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}"
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
export type DisconnectConnectorConnectionErrors = {
|
|
2147
|
+
/**
|
|
2148
|
+
* Response for status 400
|
|
2149
|
+
*/
|
|
2150
|
+
400: {
|
|
2151
|
+
error: string
|
|
2152
|
+
/**
|
|
2153
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2154
|
+
*/
|
|
2155
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid"
|
|
2156
|
+
}
|
|
2157
|
+
/**
|
|
2158
|
+
* Response for status 403
|
|
2159
|
+
*/
|
|
2160
|
+
403: {
|
|
2161
|
+
error: string
|
|
2162
|
+
}
|
|
2163
|
+
/**
|
|
2164
|
+
* Response for status 404
|
|
2165
|
+
*/
|
|
2166
|
+
404: {
|
|
2167
|
+
error: string
|
|
2168
|
+
/**
|
|
2169
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2170
|
+
*/
|
|
2171
|
+
code?: "connector.not_found"
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* Response for status 409
|
|
2175
|
+
*/
|
|
2176
|
+
409: {
|
|
2177
|
+
error: string
|
|
2178
|
+
/**
|
|
2179
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2180
|
+
*/
|
|
2181
|
+
code?:
|
|
2182
|
+
| "connector.authorization_required"
|
|
2183
|
+
| "connector.operation_conflict"
|
|
2184
|
+
| "connector.operation_in_progress"
|
|
2185
|
+
| "connector.replacement_required"
|
|
2186
|
+
| "connector.revocation_pending"
|
|
2187
|
+
}
|
|
2188
|
+
/**
|
|
2189
|
+
* Response for status 500
|
|
2190
|
+
*/
|
|
2191
|
+
500: {
|
|
2192
|
+
error: string
|
|
2193
|
+
/**
|
|
2194
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2195
|
+
*/
|
|
2196
|
+
code?: "internal.unexpected"
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
export type DisconnectConnectorConnectionError =
|
|
2201
|
+
DisconnectConnectorConnectionErrors[keyof DisconnectConnectorConnectionErrors]
|
|
2202
|
+
|
|
2203
|
+
export type DisconnectConnectorConnectionResponses = {
|
|
2204
|
+
/**
|
|
2205
|
+
* Response for status 200
|
|
2206
|
+
*/
|
|
2207
|
+
200: {
|
|
2208
|
+
success: boolean
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
export type DisconnectConnectorConnectionResponse =
|
|
2213
|
+
DisconnectConnectorConnectionResponses[keyof DisconnectConnectorConnectionResponses]
|
|
2214
|
+
|
|
2215
|
+
export type RevokeConnectorConnectionData = {
|
|
2216
|
+
body?: never
|
|
2217
|
+
path: {
|
|
2218
|
+
connectorId: string
|
|
2219
|
+
connectionId: string
|
|
2220
|
+
}
|
|
2221
|
+
query?: never
|
|
2222
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/revoke"
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
export type RevokeConnectorConnectionErrors = {
|
|
2226
|
+
/**
|
|
2227
|
+
* Response for status 400
|
|
2228
|
+
*/
|
|
2229
|
+
400: {
|
|
2230
|
+
error: string
|
|
2231
|
+
/**
|
|
2232
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2233
|
+
*/
|
|
2234
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid"
|
|
2235
|
+
}
|
|
2236
|
+
/**
|
|
2237
|
+
* Response for status 403
|
|
2238
|
+
*/
|
|
2239
|
+
403: {
|
|
2240
|
+
error: string
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Response for status 404
|
|
2244
|
+
*/
|
|
2245
|
+
404: {
|
|
2246
|
+
error: string
|
|
2247
|
+
/**
|
|
2248
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2249
|
+
*/
|
|
2250
|
+
code?: "connector.not_found"
|
|
2251
|
+
}
|
|
2252
|
+
/**
|
|
2253
|
+
* Response for status 409
|
|
2254
|
+
*/
|
|
2255
|
+
409: {
|
|
2256
|
+
error: string
|
|
2257
|
+
/**
|
|
2258
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2259
|
+
*/
|
|
2260
|
+
code?:
|
|
2261
|
+
| "connector.authorization_required"
|
|
2262
|
+
| "connector.operation_conflict"
|
|
2263
|
+
| "connector.operation_in_progress"
|
|
2264
|
+
| "connector.replacement_required"
|
|
2265
|
+
| "connector.revocation_pending"
|
|
2266
|
+
}
|
|
2267
|
+
/**
|
|
2268
|
+
* Response for status 500
|
|
2269
|
+
*/
|
|
2270
|
+
500: {
|
|
2271
|
+
error: string
|
|
2272
|
+
/**
|
|
2273
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2274
|
+
*/
|
|
2275
|
+
code?: "internal.unexpected"
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* Response for status 502
|
|
2279
|
+
*/
|
|
2280
|
+
502: {
|
|
2281
|
+
error: string
|
|
2282
|
+
/**
|
|
2283
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2284
|
+
*/
|
|
2285
|
+
code?: "connector.adapter_invalid" | "connector.provider_failed"
|
|
2286
|
+
}
|
|
2287
|
+
/**
|
|
2288
|
+
* Response for status 503
|
|
2289
|
+
*/
|
|
2290
|
+
503: {
|
|
2291
|
+
error: string
|
|
2292
|
+
/**
|
|
2293
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2294
|
+
*/
|
|
2295
|
+
code?: "connector.credentials_unavailable" | "connector.provider_unavailable"
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
export type RevokeConnectorConnectionError =
|
|
2300
|
+
RevokeConnectorConnectionErrors[keyof RevokeConnectorConnectionErrors]
|
|
2301
|
+
|
|
2302
|
+
export type RevokeConnectorConnectionResponses = {
|
|
2303
|
+
/**
|
|
2304
|
+
* Response for status 200
|
|
2305
|
+
*/
|
|
2306
|
+
200: {
|
|
2307
|
+
affectedConnections: Array<{
|
|
2308
|
+
id: string
|
|
2309
|
+
connectorId: string
|
|
2310
|
+
owner: {
|
|
2311
|
+
type: "project"
|
|
2312
|
+
}
|
|
2313
|
+
slot: string
|
|
2314
|
+
account: {
|
|
2315
|
+
id: string
|
|
2316
|
+
label: string
|
|
2317
|
+
description?: string
|
|
2318
|
+
avatarUrl?: string
|
|
2319
|
+
}
|
|
2320
|
+
status: "connected" | "needs_reauthorization" | "disconnected"
|
|
2321
|
+
}>
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
export type RevokeConnectorConnectionResponse =
|
|
2326
|
+
RevokeConnectorConnectionResponses[keyof RevokeConnectorConnectionResponses]
|
|
2327
|
+
|
|
2328
|
+
export type StartConnectorConnectionRunData = {
|
|
2329
|
+
body: {
|
|
2330
|
+
slot: string
|
|
2331
|
+
returnTo: string
|
|
2332
|
+
}
|
|
2333
|
+
path: {
|
|
2334
|
+
connectorId: string
|
|
2335
|
+
}
|
|
2336
|
+
query?: never
|
|
2337
|
+
url: "/api/connectors/{connectorId}/connection-runs"
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
export type StartConnectorConnectionRunErrors = {
|
|
2341
|
+
/**
|
|
2342
|
+
* Response for status 400
|
|
2343
|
+
*/
|
|
2344
|
+
400: {
|
|
2345
|
+
error: string
|
|
2346
|
+
/**
|
|
2347
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2348
|
+
*/
|
|
2349
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid"
|
|
2350
|
+
}
|
|
2351
|
+
/**
|
|
2352
|
+
* Response for status 403
|
|
2353
|
+
*/
|
|
2354
|
+
403: {
|
|
2355
|
+
error: string
|
|
2356
|
+
}
|
|
2357
|
+
/**
|
|
2358
|
+
* Response for status 404
|
|
2359
|
+
*/
|
|
2360
|
+
404: {
|
|
2361
|
+
error: string
|
|
2362
|
+
/**
|
|
2363
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2364
|
+
*/
|
|
2365
|
+
code?: "connector.not_found"
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* Response for status 409
|
|
2369
|
+
*/
|
|
2370
|
+
409: {
|
|
2371
|
+
error: string
|
|
2372
|
+
/**
|
|
2373
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2374
|
+
*/
|
|
2375
|
+
code?:
|
|
2376
|
+
| "connector.authorization_required"
|
|
2377
|
+
| "connector.operation_conflict"
|
|
2378
|
+
| "connector.operation_in_progress"
|
|
2379
|
+
| "connector.replacement_required"
|
|
2380
|
+
| "connector.revocation_pending"
|
|
2381
|
+
}
|
|
2382
|
+
/**
|
|
2383
|
+
* Response for status 500
|
|
2384
|
+
*/
|
|
2385
|
+
500: {
|
|
2386
|
+
error: string
|
|
2387
|
+
/**
|
|
2388
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2389
|
+
*/
|
|
2390
|
+
code?: "internal.unexpected"
|
|
2391
|
+
}
|
|
2392
|
+
/**
|
|
2393
|
+
* Response for status 502
|
|
2394
|
+
*/
|
|
2395
|
+
502: {
|
|
2396
|
+
error: string
|
|
2397
|
+
/**
|
|
2398
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2399
|
+
*/
|
|
2400
|
+
code?: "connector.adapter_invalid" | "connector.provider_failed"
|
|
2401
|
+
}
|
|
2402
|
+
/**
|
|
2403
|
+
* Response for status 503
|
|
2404
|
+
*/
|
|
2405
|
+
503: {
|
|
2406
|
+
error: string
|
|
2407
|
+
/**
|
|
2408
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2409
|
+
*/
|
|
2410
|
+
code?: "connector.credentials_unavailable" | "connector.provider_unavailable"
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
export type StartConnectorConnectionRunError =
|
|
2415
|
+
StartConnectorConnectionRunErrors[keyof StartConnectorConnectionRunErrors]
|
|
2416
|
+
|
|
2417
|
+
export type StartConnectorConnectionRunResponses = {
|
|
2418
|
+
/**
|
|
2419
|
+
* Response for status 201
|
|
2420
|
+
*/
|
|
2421
|
+
201: {
|
|
2422
|
+
runId: string
|
|
2423
|
+
authorizationUrl: string
|
|
2424
|
+
affectedConnections: Array<{
|
|
2425
|
+
id: string
|
|
2426
|
+
connectorId: string
|
|
2427
|
+
owner: {
|
|
2428
|
+
type: "project"
|
|
2429
|
+
}
|
|
2430
|
+
slot: string
|
|
2431
|
+
account: {
|
|
2432
|
+
id: string
|
|
2433
|
+
label: string
|
|
2434
|
+
description?: string
|
|
2435
|
+
avatarUrl?: string
|
|
2436
|
+
}
|
|
2437
|
+
status: "connected" | "needs_reauthorization" | "disconnected"
|
|
2438
|
+
}>
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
export type StartConnectorConnectionRunResponse =
|
|
2443
|
+
StartConnectorConnectionRunResponses[keyof StartConnectorConnectionRunResponses]
|
|
2444
|
+
|
|
2445
|
+
export type GetConnectorConnectionRunData = {
|
|
2446
|
+
body?: never
|
|
2447
|
+
path: {
|
|
2448
|
+
connectorId: string
|
|
2449
|
+
runId: string
|
|
2450
|
+
}
|
|
2451
|
+
query?: never
|
|
2452
|
+
url: "/api/connectors/{connectorId}/connection-runs/{runId}"
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
export type GetConnectorConnectionRunErrors = {
|
|
2456
|
+
/**
|
|
2457
|
+
* Response for status 400
|
|
2458
|
+
*/
|
|
2459
|
+
400: {
|
|
2460
|
+
error: string
|
|
2461
|
+
/**
|
|
2462
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2463
|
+
*/
|
|
2464
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid"
|
|
2465
|
+
}
|
|
2466
|
+
/**
|
|
2467
|
+
* Response for status 403
|
|
2468
|
+
*/
|
|
2469
|
+
403: {
|
|
2470
|
+
error: string
|
|
2471
|
+
}
|
|
2472
|
+
/**
|
|
2473
|
+
* Response for status 404
|
|
2474
|
+
*/
|
|
2475
|
+
404: {
|
|
2476
|
+
error: string
|
|
2477
|
+
/**
|
|
2478
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2479
|
+
*/
|
|
2480
|
+
code?: "connector.not_found"
|
|
2481
|
+
}
|
|
2482
|
+
/**
|
|
2483
|
+
* Response for status 500
|
|
2484
|
+
*/
|
|
2485
|
+
500: {
|
|
2486
|
+
error: string
|
|
2487
|
+
/**
|
|
2488
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2489
|
+
*/
|
|
2490
|
+
code?: "internal.unexpected"
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
export type GetConnectorConnectionRunError =
|
|
2495
|
+
GetConnectorConnectionRunErrors[keyof GetConnectorConnectionRunErrors]
|
|
2496
|
+
|
|
2497
|
+
export type GetConnectorConnectionRunResponses = {
|
|
2498
|
+
/**
|
|
2499
|
+
* Response for status 200
|
|
2500
|
+
*/
|
|
2501
|
+
200:
|
|
2502
|
+
| {
|
|
2503
|
+
id: string
|
|
2504
|
+
connectorId: string
|
|
2505
|
+
kind: "connect" | "reauthorize"
|
|
2506
|
+
owner: {
|
|
2507
|
+
type: "project"
|
|
2508
|
+
}
|
|
2509
|
+
slot: string
|
|
2510
|
+
createdAt: string
|
|
2511
|
+
updatedAt: string
|
|
2512
|
+
status: "waiting"
|
|
2513
|
+
waitingFor: "provider_authorization"
|
|
2514
|
+
expiresAt: string
|
|
2515
|
+
}
|
|
2516
|
+
| {
|
|
2517
|
+
id: string
|
|
2518
|
+
connectorId: string
|
|
2519
|
+
kind: "connect" | "reauthorize"
|
|
2520
|
+
owner: {
|
|
2521
|
+
type: "project"
|
|
2522
|
+
}
|
|
2523
|
+
slot: string
|
|
2524
|
+
createdAt: string
|
|
2525
|
+
updatedAt: string
|
|
2526
|
+
status: "running"
|
|
2527
|
+
}
|
|
2528
|
+
| {
|
|
2529
|
+
id: string
|
|
2530
|
+
connectorId: string
|
|
2531
|
+
kind: "connect" | "reauthorize"
|
|
2532
|
+
owner: {
|
|
2533
|
+
type: "project"
|
|
2534
|
+
}
|
|
2535
|
+
slot: string
|
|
2536
|
+
createdAt: string
|
|
2537
|
+
updatedAt: string
|
|
2538
|
+
status: "waiting"
|
|
2539
|
+
waitingFor: "account_selection"
|
|
2540
|
+
accounts: Array<{
|
|
2541
|
+
id: string
|
|
2542
|
+
label: string
|
|
2543
|
+
description?: string
|
|
2544
|
+
avatarUrl?: string
|
|
2545
|
+
}>
|
|
2546
|
+
expiresAt: string
|
|
2547
|
+
}
|
|
2548
|
+
| {
|
|
2549
|
+
id: string
|
|
2550
|
+
connectorId: string
|
|
2551
|
+
kind: "connect" | "reauthorize"
|
|
2552
|
+
owner: {
|
|
2553
|
+
type: "project"
|
|
2554
|
+
}
|
|
2555
|
+
slot: string
|
|
2556
|
+
createdAt: string
|
|
2557
|
+
updatedAt: string
|
|
2558
|
+
status: "succeeded"
|
|
2559
|
+
connections: Array<{
|
|
2560
|
+
id: string
|
|
2561
|
+
connectorId: string
|
|
2562
|
+
owner: {
|
|
2563
|
+
type: "project"
|
|
2564
|
+
}
|
|
2565
|
+
slot: string
|
|
2566
|
+
account: {
|
|
2567
|
+
id: string
|
|
2568
|
+
label: string
|
|
2569
|
+
description?: string
|
|
2570
|
+
avatarUrl?: string
|
|
2571
|
+
}
|
|
2572
|
+
status: "connected" | "needs_reauthorization" | "disconnected"
|
|
2573
|
+
}>
|
|
2574
|
+
finishedAt: string
|
|
2575
|
+
}
|
|
2576
|
+
| {
|
|
2577
|
+
id: string
|
|
2578
|
+
connectorId: string
|
|
2579
|
+
kind: "connect" | "reauthorize"
|
|
2580
|
+
owner: {
|
|
2581
|
+
type: "project"
|
|
2582
|
+
}
|
|
2583
|
+
slot: string
|
|
2584
|
+
createdAt: string
|
|
2585
|
+
updatedAt: string
|
|
2586
|
+
status: "failed"
|
|
2587
|
+
error: {
|
|
2588
|
+
code:
|
|
2589
|
+
| "internal.unexpected"
|
|
2590
|
+
| "connector.adapter_invalid"
|
|
2591
|
+
| "connector.authorization_invalid"
|
|
2592
|
+
| "connector.authorization_required"
|
|
2593
|
+
| "connector.credentials_unavailable"
|
|
2594
|
+
| "connector.not_found"
|
|
2595
|
+
| "connector.operation_conflict"
|
|
2596
|
+
| "connector.operation_in_progress"
|
|
2597
|
+
| "connector.provider_failed"
|
|
2598
|
+
| "connector.provider_unavailable"
|
|
2599
|
+
message: string
|
|
2600
|
+
retryable: boolean
|
|
2601
|
+
at: string
|
|
2602
|
+
/**
|
|
2603
|
+
* Any JSON-compatible value.
|
|
2604
|
+
*/
|
|
2605
|
+
details?:
|
|
2606
|
+
| string
|
|
2607
|
+
| number
|
|
2608
|
+
| boolean
|
|
2609
|
+
| Array<unknown>
|
|
2610
|
+
| {
|
|
2611
|
+
[key: string]: unknown
|
|
2612
|
+
}
|
|
2613
|
+
| null
|
|
2614
|
+
truncated?: true
|
|
2615
|
+
}
|
|
2616
|
+
finishedAt: string
|
|
2617
|
+
}
|
|
2618
|
+
| {
|
|
2619
|
+
id: string
|
|
2620
|
+
connectorId: string
|
|
2621
|
+
kind: "connect" | "reauthorize"
|
|
2622
|
+
owner: {
|
|
2623
|
+
type: "project"
|
|
2624
|
+
}
|
|
2625
|
+
slot: string
|
|
2626
|
+
createdAt: string
|
|
2627
|
+
updatedAt: string
|
|
2628
|
+
status: "cancelled" | "expired"
|
|
2629
|
+
finishedAt: string
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
export type GetConnectorConnectionRunResponse =
|
|
2634
|
+
GetConnectorConnectionRunResponses[keyof GetConnectorConnectionRunResponses]
|
|
2635
|
+
|
|
2636
|
+
export type AddConnectorConnectionData = {
|
|
2637
|
+
body: {
|
|
2638
|
+
slot: string
|
|
2639
|
+
}
|
|
2640
|
+
path: {
|
|
2641
|
+
connectorId: string
|
|
2642
|
+
connectionId: string
|
|
2643
|
+
}
|
|
2644
|
+
query?: never
|
|
2645
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/connection-runs"
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
export type AddConnectorConnectionErrors = {
|
|
2649
|
+
/**
|
|
2650
|
+
* Response for status 400
|
|
2651
|
+
*/
|
|
2652
|
+
400: {
|
|
2653
|
+
error: string
|
|
2654
|
+
/**
|
|
2655
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2656
|
+
*/
|
|
2657
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid"
|
|
2658
|
+
}
|
|
2659
|
+
/**
|
|
2660
|
+
* Response for status 403
|
|
2661
|
+
*/
|
|
2662
|
+
403: {
|
|
2663
|
+
error: string
|
|
2664
|
+
}
|
|
2665
|
+
/**
|
|
2666
|
+
* Response for status 404
|
|
2667
|
+
*/
|
|
2668
|
+
404: {
|
|
2669
|
+
error: string
|
|
2670
|
+
/**
|
|
2671
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2672
|
+
*/
|
|
2673
|
+
code?: "connector.not_found"
|
|
2674
|
+
}
|
|
2675
|
+
/**
|
|
2676
|
+
* Response for status 409
|
|
2677
|
+
*/
|
|
2678
|
+
409: {
|
|
2679
|
+
error: string
|
|
2680
|
+
/**
|
|
2681
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2682
|
+
*/
|
|
2683
|
+
code?:
|
|
2684
|
+
| "connector.authorization_required"
|
|
2685
|
+
| "connector.operation_conflict"
|
|
2686
|
+
| "connector.operation_in_progress"
|
|
2687
|
+
| "connector.replacement_required"
|
|
2688
|
+
| "connector.revocation_pending"
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* Response for status 500
|
|
2692
|
+
*/
|
|
2693
|
+
500: {
|
|
2694
|
+
error: string
|
|
2695
|
+
/**
|
|
2696
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2697
|
+
*/
|
|
2698
|
+
code?: "internal.unexpected"
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
export type AddConnectorConnectionError =
|
|
2703
|
+
AddConnectorConnectionErrors[keyof AddConnectorConnectionErrors]
|
|
2704
|
+
|
|
2705
|
+
export type AddConnectorConnectionResponses = {
|
|
2706
|
+
/**
|
|
2707
|
+
* Response for status 201
|
|
2708
|
+
*/
|
|
2709
|
+
201:
|
|
2710
|
+
| {
|
|
2711
|
+
id: string
|
|
2712
|
+
connectorId: string
|
|
2713
|
+
kind: "connect" | "reauthorize"
|
|
2714
|
+
owner: {
|
|
2715
|
+
type: "project"
|
|
2716
|
+
}
|
|
2717
|
+
slot: string
|
|
2718
|
+
createdAt: string
|
|
2719
|
+
updatedAt: string
|
|
2720
|
+
status: "waiting"
|
|
2721
|
+
waitingFor: "provider_authorization"
|
|
2722
|
+
expiresAt: string
|
|
2723
|
+
}
|
|
2724
|
+
| {
|
|
2725
|
+
id: string
|
|
2726
|
+
connectorId: string
|
|
2727
|
+
kind: "connect" | "reauthorize"
|
|
2728
|
+
owner: {
|
|
2729
|
+
type: "project"
|
|
2730
|
+
}
|
|
2731
|
+
slot: string
|
|
2732
|
+
createdAt: string
|
|
2733
|
+
updatedAt: string
|
|
2734
|
+
status: "running"
|
|
2735
|
+
}
|
|
2736
|
+
| {
|
|
2737
|
+
id: string
|
|
2738
|
+
connectorId: string
|
|
2739
|
+
kind: "connect" | "reauthorize"
|
|
2740
|
+
owner: {
|
|
2741
|
+
type: "project"
|
|
2742
|
+
}
|
|
2743
|
+
slot: string
|
|
2744
|
+
createdAt: string
|
|
2745
|
+
updatedAt: string
|
|
2746
|
+
status: "waiting"
|
|
2747
|
+
waitingFor: "account_selection"
|
|
2748
|
+
accounts: Array<{
|
|
2749
|
+
id: string
|
|
2750
|
+
label: string
|
|
2751
|
+
description?: string
|
|
2752
|
+
avatarUrl?: string
|
|
2753
|
+
}>
|
|
2754
|
+
expiresAt: string
|
|
2755
|
+
}
|
|
2756
|
+
| {
|
|
2757
|
+
id: string
|
|
2758
|
+
connectorId: string
|
|
2759
|
+
kind: "connect" | "reauthorize"
|
|
2760
|
+
owner: {
|
|
2761
|
+
type: "project"
|
|
2762
|
+
}
|
|
2763
|
+
slot: string
|
|
2764
|
+
createdAt: string
|
|
2765
|
+
updatedAt: string
|
|
2766
|
+
status: "succeeded"
|
|
2767
|
+
connections: Array<{
|
|
2768
|
+
id: string
|
|
2769
|
+
connectorId: string
|
|
2770
|
+
owner: {
|
|
2771
|
+
type: "project"
|
|
2772
|
+
}
|
|
2773
|
+
slot: string
|
|
2774
|
+
account: {
|
|
2775
|
+
id: string
|
|
2776
|
+
label: string
|
|
2777
|
+
description?: string
|
|
2778
|
+
avatarUrl?: string
|
|
2779
|
+
}
|
|
2780
|
+
status: "connected" | "needs_reauthorization" | "disconnected"
|
|
2781
|
+
}>
|
|
2782
|
+
finishedAt: string
|
|
2783
|
+
}
|
|
2784
|
+
| {
|
|
2785
|
+
id: string
|
|
2786
|
+
connectorId: string
|
|
2787
|
+
kind: "connect" | "reauthorize"
|
|
2788
|
+
owner: {
|
|
2789
|
+
type: "project"
|
|
2790
|
+
}
|
|
2791
|
+
slot: string
|
|
2792
|
+
createdAt: string
|
|
2793
|
+
updatedAt: string
|
|
2794
|
+
status: "failed"
|
|
2795
|
+
error: {
|
|
2796
|
+
code:
|
|
2797
|
+
| "internal.unexpected"
|
|
2798
|
+
| "connector.adapter_invalid"
|
|
2799
|
+
| "connector.authorization_invalid"
|
|
2800
|
+
| "connector.authorization_required"
|
|
2801
|
+
| "connector.credentials_unavailable"
|
|
2802
|
+
| "connector.not_found"
|
|
2803
|
+
| "connector.operation_conflict"
|
|
2804
|
+
| "connector.operation_in_progress"
|
|
2805
|
+
| "connector.provider_failed"
|
|
2806
|
+
| "connector.provider_unavailable"
|
|
2807
|
+
message: string
|
|
2808
|
+
retryable: boolean
|
|
2809
|
+
at: string
|
|
2810
|
+
/**
|
|
2811
|
+
* Any JSON-compatible value.
|
|
2812
|
+
*/
|
|
2813
|
+
details?:
|
|
2814
|
+
| string
|
|
2815
|
+
| number
|
|
2816
|
+
| boolean
|
|
2817
|
+
| Array<unknown>
|
|
2818
|
+
| {
|
|
2819
|
+
[key: string]: unknown
|
|
2820
|
+
}
|
|
2821
|
+
| null
|
|
2822
|
+
truncated?: true
|
|
2823
|
+
}
|
|
2824
|
+
finishedAt: string
|
|
2825
|
+
}
|
|
2826
|
+
| {
|
|
2827
|
+
id: string
|
|
2828
|
+
connectorId: string
|
|
2829
|
+
kind: "connect" | "reauthorize"
|
|
2830
|
+
owner: {
|
|
2831
|
+
type: "project"
|
|
2832
|
+
}
|
|
2833
|
+
slot: string
|
|
2834
|
+
createdAt: string
|
|
2835
|
+
updatedAt: string
|
|
2836
|
+
status: "cancelled" | "expired"
|
|
2837
|
+
finishedAt: string
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
export type AddConnectorConnectionResponse =
|
|
2842
|
+
AddConnectorConnectionResponses[keyof AddConnectorConnectionResponses]
|
|
2843
|
+
|
|
2844
|
+
export type SelectConnectorConnectionRunAccountData = {
|
|
2845
|
+
body: {
|
|
2846
|
+
accountId: string
|
|
2847
|
+
replace?: boolean
|
|
2848
|
+
}
|
|
2849
|
+
path: {
|
|
2850
|
+
connectorId: string
|
|
2851
|
+
runId: string
|
|
2852
|
+
}
|
|
2853
|
+
query?: never
|
|
2854
|
+
url: "/api/connectors/{connectorId}/connection-runs/{runId}/selection"
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
export type SelectConnectorConnectionRunAccountErrors = {
|
|
2858
|
+
/**
|
|
2859
|
+
* Response for status 400
|
|
2860
|
+
*/
|
|
2861
|
+
400: {
|
|
2862
|
+
error: string
|
|
2863
|
+
/**
|
|
2864
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2865
|
+
*/
|
|
2866
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid"
|
|
2867
|
+
}
|
|
2868
|
+
/**
|
|
2869
|
+
* Response for status 403
|
|
2870
|
+
*/
|
|
2871
|
+
403: {
|
|
2872
|
+
error: string
|
|
2873
|
+
}
|
|
2874
|
+
/**
|
|
2875
|
+
* Response for status 404
|
|
2876
|
+
*/
|
|
2877
|
+
404: {
|
|
2878
|
+
error: string
|
|
2879
|
+
/**
|
|
2880
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2881
|
+
*/
|
|
2882
|
+
code?: "connector.not_found"
|
|
2883
|
+
}
|
|
2884
|
+
/**
|
|
2885
|
+
* Response for status 409
|
|
2886
|
+
*/
|
|
2887
|
+
409: {
|
|
2888
|
+
error: string
|
|
2889
|
+
/**
|
|
2890
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2891
|
+
*/
|
|
2892
|
+
code?:
|
|
2893
|
+
| "connector.authorization_required"
|
|
2894
|
+
| "connector.operation_conflict"
|
|
2895
|
+
| "connector.operation_in_progress"
|
|
2896
|
+
| "connector.replacement_required"
|
|
2897
|
+
| "connector.revocation_pending"
|
|
2898
|
+
}
|
|
2899
|
+
/**
|
|
2900
|
+
* Response for status 500
|
|
2901
|
+
*/
|
|
2902
|
+
500: {
|
|
2903
|
+
error: string
|
|
2904
|
+
/**
|
|
2905
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2906
|
+
*/
|
|
2907
|
+
code?: "internal.unexpected"
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
export type SelectConnectorConnectionRunAccountError =
|
|
2912
|
+
SelectConnectorConnectionRunAccountErrors[keyof SelectConnectorConnectionRunAccountErrors]
|
|
1654
2913
|
|
|
1655
|
-
export type
|
|
2914
|
+
export type SelectConnectorConnectionRunAccountResponses = {
|
|
1656
2915
|
/**
|
|
1657
2916
|
* Response for status 200
|
|
1658
2917
|
*/
|
|
1659
|
-
200:
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
2918
|
+
200:
|
|
2919
|
+
| {
|
|
2920
|
+
id: string
|
|
2921
|
+
connectorId: string
|
|
2922
|
+
kind: "connect" | "reauthorize"
|
|
2923
|
+
owner: {
|
|
2924
|
+
type: "project"
|
|
2925
|
+
}
|
|
2926
|
+
slot: string
|
|
2927
|
+
createdAt: string
|
|
2928
|
+
updatedAt: string
|
|
2929
|
+
status: "waiting"
|
|
2930
|
+
waitingFor: "provider_authorization"
|
|
2931
|
+
expiresAt: string
|
|
2932
|
+
}
|
|
2933
|
+
| {
|
|
2934
|
+
id: string
|
|
2935
|
+
connectorId: string
|
|
2936
|
+
kind: "connect" | "reauthorize"
|
|
2937
|
+
owner: {
|
|
2938
|
+
type: "project"
|
|
2939
|
+
}
|
|
2940
|
+
slot: string
|
|
2941
|
+
createdAt: string
|
|
2942
|
+
updatedAt: string
|
|
2943
|
+
status: "running"
|
|
2944
|
+
}
|
|
2945
|
+
| {
|
|
2946
|
+
id: string
|
|
2947
|
+
connectorId: string
|
|
2948
|
+
kind: "connect" | "reauthorize"
|
|
2949
|
+
owner: {
|
|
2950
|
+
type: "project"
|
|
2951
|
+
}
|
|
2952
|
+
slot: string
|
|
2953
|
+
createdAt: string
|
|
2954
|
+
updatedAt: string
|
|
2955
|
+
status: "waiting"
|
|
2956
|
+
waitingFor: "account_selection"
|
|
2957
|
+
accounts: Array<{
|
|
2958
|
+
id: string
|
|
2959
|
+
label: string
|
|
2960
|
+
description?: string
|
|
2961
|
+
avatarUrl?: string
|
|
2962
|
+
}>
|
|
2963
|
+
expiresAt: string
|
|
2964
|
+
}
|
|
2965
|
+
| {
|
|
2966
|
+
id: string
|
|
2967
|
+
connectorId: string
|
|
2968
|
+
kind: "connect" | "reauthorize"
|
|
2969
|
+
owner: {
|
|
2970
|
+
type: "project"
|
|
2971
|
+
}
|
|
2972
|
+
slot: string
|
|
2973
|
+
createdAt: string
|
|
2974
|
+
updatedAt: string
|
|
2975
|
+
status: "succeeded"
|
|
2976
|
+
connections: Array<{
|
|
2977
|
+
id: string
|
|
2978
|
+
connectorId: string
|
|
2979
|
+
owner: {
|
|
2980
|
+
type: "project"
|
|
2981
|
+
}
|
|
2982
|
+
slot: string
|
|
2983
|
+
account: {
|
|
2984
|
+
id: string
|
|
2985
|
+
label: string
|
|
2986
|
+
description?: string
|
|
2987
|
+
avatarUrl?: string
|
|
2988
|
+
}
|
|
2989
|
+
status: "connected" | "needs_reauthorization" | "disconnected"
|
|
2990
|
+
}>
|
|
2991
|
+
finishedAt: string
|
|
2992
|
+
}
|
|
2993
|
+
| {
|
|
2994
|
+
id: string
|
|
2995
|
+
connectorId: string
|
|
2996
|
+
kind: "connect" | "reauthorize"
|
|
2997
|
+
owner: {
|
|
2998
|
+
type: "project"
|
|
2999
|
+
}
|
|
3000
|
+
slot: string
|
|
3001
|
+
createdAt: string
|
|
3002
|
+
updatedAt: string
|
|
3003
|
+
status: "failed"
|
|
3004
|
+
error: {
|
|
3005
|
+
code:
|
|
3006
|
+
| "internal.unexpected"
|
|
3007
|
+
| "connector.adapter_invalid"
|
|
3008
|
+
| "connector.authorization_invalid"
|
|
3009
|
+
| "connector.authorization_required"
|
|
3010
|
+
| "connector.credentials_unavailable"
|
|
3011
|
+
| "connector.not_found"
|
|
3012
|
+
| "connector.operation_conflict"
|
|
3013
|
+
| "connector.operation_in_progress"
|
|
3014
|
+
| "connector.provider_failed"
|
|
3015
|
+
| "connector.provider_unavailable"
|
|
3016
|
+
message: string
|
|
3017
|
+
retryable: boolean
|
|
3018
|
+
at: string
|
|
3019
|
+
/**
|
|
3020
|
+
* Any JSON-compatible value.
|
|
3021
|
+
*/
|
|
3022
|
+
details?:
|
|
3023
|
+
| string
|
|
3024
|
+
| number
|
|
3025
|
+
| boolean
|
|
3026
|
+
| Array<unknown>
|
|
3027
|
+
| {
|
|
3028
|
+
[key: string]: unknown
|
|
3029
|
+
}
|
|
3030
|
+
| null
|
|
3031
|
+
truncated?: true
|
|
3032
|
+
}
|
|
3033
|
+
finishedAt: string
|
|
3034
|
+
}
|
|
3035
|
+
| {
|
|
3036
|
+
id: string
|
|
3037
|
+
connectorId: string
|
|
3038
|
+
kind: "connect" | "reauthorize"
|
|
3039
|
+
owner: {
|
|
3040
|
+
type: "project"
|
|
3041
|
+
}
|
|
3042
|
+
slot: string
|
|
3043
|
+
createdAt: string
|
|
3044
|
+
updatedAt: string
|
|
3045
|
+
status: "cancelled" | "expired"
|
|
3046
|
+
finishedAt: string
|
|
3047
|
+
}
|
|
1672
3048
|
}
|
|
1673
3049
|
|
|
1674
|
-
export type
|
|
3050
|
+
export type SelectConnectorConnectionRunAccountResponse =
|
|
3051
|
+
SelectConnectorConnectionRunAccountResponses[keyof SelectConnectorConnectionRunAccountResponses]
|
|
1675
3052
|
|
|
1676
|
-
export type
|
|
1677
|
-
body
|
|
3053
|
+
export type ReauthorizeConnectorConnectionData = {
|
|
3054
|
+
body: {
|
|
3055
|
+
returnTo: string
|
|
3056
|
+
}
|
|
1678
3057
|
path: {
|
|
1679
3058
|
connectorId: string
|
|
3059
|
+
connectionId: string
|
|
1680
3060
|
}
|
|
1681
3061
|
query?: never
|
|
1682
|
-
url: "/api/connectors/{connectorId}"
|
|
3062
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/reauthorize"
|
|
1683
3063
|
}
|
|
1684
3064
|
|
|
1685
|
-
export type
|
|
3065
|
+
export type ReauthorizeConnectorConnectionErrors = {
|
|
3066
|
+
/**
|
|
3067
|
+
* Response for status 400
|
|
3068
|
+
*/
|
|
3069
|
+
400: {
|
|
3070
|
+
error: string
|
|
3071
|
+
/**
|
|
3072
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3073
|
+
*/
|
|
3074
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid"
|
|
3075
|
+
}
|
|
3076
|
+
/**
|
|
3077
|
+
* Response for status 403
|
|
3078
|
+
*/
|
|
3079
|
+
403: {
|
|
3080
|
+
error: string
|
|
3081
|
+
}
|
|
1686
3082
|
/**
|
|
1687
3083
|
* Response for status 404
|
|
1688
3084
|
*/
|
|
1689
3085
|
404: {
|
|
1690
3086
|
error: string
|
|
3087
|
+
/**
|
|
3088
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3089
|
+
*/
|
|
3090
|
+
code?: "connector.not_found"
|
|
3091
|
+
}
|
|
3092
|
+
/**
|
|
3093
|
+
* Response for status 409
|
|
3094
|
+
*/
|
|
3095
|
+
409: {
|
|
3096
|
+
error: string
|
|
3097
|
+
/**
|
|
3098
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3099
|
+
*/
|
|
3100
|
+
code?:
|
|
3101
|
+
| "connector.authorization_required"
|
|
3102
|
+
| "connector.operation_conflict"
|
|
3103
|
+
| "connector.operation_in_progress"
|
|
3104
|
+
| "connector.replacement_required"
|
|
3105
|
+
| "connector.revocation_pending"
|
|
3106
|
+
}
|
|
3107
|
+
/**
|
|
3108
|
+
* Response for status 500
|
|
3109
|
+
*/
|
|
3110
|
+
500: {
|
|
3111
|
+
error: string
|
|
3112
|
+
/**
|
|
3113
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3114
|
+
*/
|
|
3115
|
+
code?: "internal.unexpected"
|
|
3116
|
+
}
|
|
3117
|
+
/**
|
|
3118
|
+
* Response for status 502
|
|
3119
|
+
*/
|
|
3120
|
+
502: {
|
|
3121
|
+
error: string
|
|
3122
|
+
/**
|
|
3123
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3124
|
+
*/
|
|
3125
|
+
code?: "connector.adapter_invalid" | "connector.provider_failed"
|
|
3126
|
+
}
|
|
3127
|
+
/**
|
|
3128
|
+
* Response for status 503
|
|
3129
|
+
*/
|
|
3130
|
+
503: {
|
|
3131
|
+
error: string
|
|
3132
|
+
/**
|
|
3133
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3134
|
+
*/
|
|
3135
|
+
code?: "connector.credentials_unavailable" | "connector.provider_unavailable"
|
|
1691
3136
|
}
|
|
1692
3137
|
}
|
|
1693
3138
|
|
|
1694
|
-
export type
|
|
3139
|
+
export type ReauthorizeConnectorConnectionError =
|
|
3140
|
+
ReauthorizeConnectorConnectionErrors[keyof ReauthorizeConnectorConnectionErrors]
|
|
1695
3141
|
|
|
1696
|
-
export type
|
|
3142
|
+
export type ReauthorizeConnectorConnectionResponses = {
|
|
1697
3143
|
/**
|
|
1698
|
-
* Response for status
|
|
3144
|
+
* Response for status 201
|
|
1699
3145
|
*/
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
webhooks: Array<{
|
|
3146
|
+
201: {
|
|
3147
|
+
runId: string
|
|
3148
|
+
authorizationUrl: string
|
|
3149
|
+
affectedConnections: Array<{
|
|
1705
3150
|
id: string
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
3151
|
+
connectorId: string
|
|
3152
|
+
owner: {
|
|
3153
|
+
type: "project"
|
|
3154
|
+
}
|
|
3155
|
+
slot: string
|
|
3156
|
+
account: {
|
|
3157
|
+
id: string
|
|
3158
|
+
label: string
|
|
3159
|
+
description?: string
|
|
3160
|
+
avatarUrl?: string
|
|
3161
|
+
}
|
|
3162
|
+
status: "connected" | "needs_reauthorization" | "disconnected"
|
|
1711
3163
|
}>
|
|
1712
3164
|
}
|
|
1713
3165
|
}
|
|
1714
3166
|
|
|
1715
|
-
export type
|
|
3167
|
+
export type ReauthorizeConnectorConnectionResponse =
|
|
3168
|
+
ReauthorizeConnectorConnectionResponses[keyof ReauthorizeConnectorConnectionResponses]
|
|
1716
3169
|
|
|
1717
3170
|
export type ListDatasetsData = {
|
|
1718
3171
|
body?: never
|
|
@@ -1796,6 +3249,10 @@ export type GetDatasetErrors = {
|
|
|
1796
3249
|
*/
|
|
1797
3250
|
404: {
|
|
1798
3251
|
error: string
|
|
3252
|
+
/**
|
|
3253
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3254
|
+
*/
|
|
3255
|
+
code: "dataset.not_found"
|
|
1799
3256
|
}
|
|
1800
3257
|
}
|
|
1801
3258
|
|
|
@@ -1867,6 +3324,10 @@ export type ListDatasetVersionsErrors = {
|
|
|
1867
3324
|
*/
|
|
1868
3325
|
404: {
|
|
1869
3326
|
error: string
|
|
3327
|
+
/**
|
|
3328
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3329
|
+
*/
|
|
3330
|
+
code: "dataset.not_found"
|
|
1870
3331
|
}
|
|
1871
3332
|
}
|
|
1872
3333
|
|
|
@@ -1940,6 +3401,10 @@ export type GetDatasetVersionErrors = {
|
|
|
1940
3401
|
*/
|
|
1941
3402
|
404: {
|
|
1942
3403
|
error: string
|
|
3404
|
+
/**
|
|
3405
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3406
|
+
*/
|
|
3407
|
+
code: "dataset.not_found" | "dataset.version_not_found"
|
|
1943
3408
|
}
|
|
1944
3409
|
}
|
|
1945
3410
|
|
|
@@ -2013,6 +3478,10 @@ export type ListDatasetRowsErrors = {
|
|
|
2013
3478
|
*/
|
|
2014
3479
|
404: {
|
|
2015
3480
|
error: string
|
|
3481
|
+
/**
|
|
3482
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3483
|
+
*/
|
|
3484
|
+
code: "dataset.not_found" | "dataset.version_not_found"
|
|
2016
3485
|
}
|
|
2017
3486
|
}
|
|
2018
3487
|
|
|
@@ -2126,8 +3595,9 @@ export type ListSyncsResponses = {
|
|
|
2126
3595
|
syncId: string
|
|
2127
3596
|
datasetId: string
|
|
2128
3597
|
mode: "snapshot" | "append" | "merge"
|
|
2129
|
-
status: "running" | "succeeded" | "failed" | "cancelled"
|
|
2130
|
-
|
|
3598
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
3599
|
+
queuedAt: string
|
|
3600
|
+
startedAt?: string
|
|
2131
3601
|
finishedAt?: string
|
|
2132
3602
|
rowsRead?: number
|
|
2133
3603
|
output?: {
|
|
@@ -2137,8 +3607,27 @@ export type ListSyncsResponses = {
|
|
|
2137
3607
|
expectedLatestVersionId?: string
|
|
2138
3608
|
commitMessage?: string
|
|
2139
3609
|
error?: {
|
|
2140
|
-
|
|
3610
|
+
code:
|
|
3611
|
+
| "internal.unexpected"
|
|
3612
|
+
| "runtime.cancelled"
|
|
3613
|
+
| "queue.enqueue_failed"
|
|
3614
|
+
| "sync.execution_failed"
|
|
2141
3615
|
message: string
|
|
3616
|
+
retryable: boolean
|
|
3617
|
+
at: string
|
|
3618
|
+
/**
|
|
3619
|
+
* Any JSON-compatible value.
|
|
3620
|
+
*/
|
|
3621
|
+
details?:
|
|
3622
|
+
| string
|
|
3623
|
+
| number
|
|
3624
|
+
| boolean
|
|
3625
|
+
| Array<unknown>
|
|
3626
|
+
| {
|
|
3627
|
+
[key: string]: unknown
|
|
3628
|
+
}
|
|
3629
|
+
| null
|
|
3630
|
+
truncated?: true
|
|
2142
3631
|
}
|
|
2143
3632
|
} | null
|
|
2144
3633
|
}>
|
|
@@ -2212,8 +3701,9 @@ export type GetSyncResponses = {
|
|
|
2212
3701
|
syncId: string
|
|
2213
3702
|
datasetId: string
|
|
2214
3703
|
mode: "snapshot" | "append" | "merge"
|
|
2215
|
-
status: "running" | "succeeded" | "failed" | "cancelled"
|
|
2216
|
-
|
|
3704
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
3705
|
+
queuedAt: string
|
|
3706
|
+
startedAt?: string
|
|
2217
3707
|
finishedAt?: string
|
|
2218
3708
|
rowsRead?: number
|
|
2219
3709
|
output?: {
|
|
@@ -2223,8 +3713,27 @@ export type GetSyncResponses = {
|
|
|
2223
3713
|
expectedLatestVersionId?: string
|
|
2224
3714
|
commitMessage?: string
|
|
2225
3715
|
error?: {
|
|
2226
|
-
|
|
3716
|
+
code:
|
|
3717
|
+
| "internal.unexpected"
|
|
3718
|
+
| "runtime.cancelled"
|
|
3719
|
+
| "queue.enqueue_failed"
|
|
3720
|
+
| "sync.execution_failed"
|
|
2227
3721
|
message: string
|
|
3722
|
+
retryable: boolean
|
|
3723
|
+
at: string
|
|
3724
|
+
/**
|
|
3725
|
+
* Any JSON-compatible value.
|
|
3726
|
+
*/
|
|
3727
|
+
details?:
|
|
3728
|
+
| string
|
|
3729
|
+
| number
|
|
3730
|
+
| boolean
|
|
3731
|
+
| Array<unknown>
|
|
3732
|
+
| {
|
|
3733
|
+
[key: string]: unknown
|
|
3734
|
+
}
|
|
3735
|
+
| null
|
|
3736
|
+
truncated?: true
|
|
2228
3737
|
}
|
|
2229
3738
|
} | null
|
|
2230
3739
|
}
|
|
@@ -2238,7 +3747,7 @@ export type ListSyncRunsData = {
|
|
|
2238
3747
|
query?: {
|
|
2239
3748
|
syncId?: string
|
|
2240
3749
|
datasetId?: string
|
|
2241
|
-
status?: "running" | "succeeded" | "failed" | "cancelled"
|
|
3750
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
2242
3751
|
startedAfter?: string
|
|
2243
3752
|
startedBefore?: string
|
|
2244
3753
|
limit?: string
|
|
@@ -2276,8 +3785,9 @@ export type ListSyncRunsResponses = {
|
|
|
2276
3785
|
syncId: string
|
|
2277
3786
|
datasetId: string
|
|
2278
3787
|
mode: "snapshot" | "append" | "merge"
|
|
2279
|
-
status: "running" | "succeeded" | "failed" | "cancelled"
|
|
2280
|
-
|
|
3788
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
3789
|
+
queuedAt: string
|
|
3790
|
+
startedAt?: string
|
|
2281
3791
|
finishedAt?: string
|
|
2282
3792
|
rowsRead?: number
|
|
2283
3793
|
output?: {
|
|
@@ -2287,8 +3797,27 @@ export type ListSyncRunsResponses = {
|
|
|
2287
3797
|
expectedLatestVersionId?: string
|
|
2288
3798
|
commitMessage?: string
|
|
2289
3799
|
error?: {
|
|
2290
|
-
|
|
3800
|
+
code:
|
|
3801
|
+
| "internal.unexpected"
|
|
3802
|
+
| "runtime.cancelled"
|
|
3803
|
+
| "queue.enqueue_failed"
|
|
3804
|
+
| "sync.execution_failed"
|
|
2291
3805
|
message: string
|
|
3806
|
+
retryable: boolean
|
|
3807
|
+
at: string
|
|
3808
|
+
/**
|
|
3809
|
+
* Any JSON-compatible value.
|
|
3810
|
+
*/
|
|
3811
|
+
details?:
|
|
3812
|
+
| string
|
|
3813
|
+
| number
|
|
3814
|
+
| boolean
|
|
3815
|
+
| Array<unknown>
|
|
3816
|
+
| {
|
|
3817
|
+
[key: string]: unknown
|
|
3818
|
+
}
|
|
3819
|
+
| null
|
|
3820
|
+
truncated?: true
|
|
2292
3821
|
}
|
|
2293
3822
|
}>
|
|
2294
3823
|
hasMore: boolean
|
|
@@ -2433,16 +3962,36 @@ export type ListPipelinesResponses = {
|
|
|
2433
3962
|
id: string
|
|
2434
3963
|
projectId: string
|
|
2435
3964
|
pipelineId: string
|
|
2436
|
-
status: "running" | "succeeded" | "failed" | "cancelled"
|
|
2437
|
-
|
|
3965
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
3966
|
+
queuedAt: string
|
|
3967
|
+
startedAt?: string
|
|
2438
3968
|
finishedAt?: string
|
|
2439
3969
|
output?: {
|
|
2440
3970
|
datasetId: string
|
|
2441
3971
|
versionId: string
|
|
2442
3972
|
}
|
|
2443
3973
|
error?: {
|
|
2444
|
-
|
|
3974
|
+
code:
|
|
3975
|
+
| "internal.unexpected"
|
|
3976
|
+
| "runtime.cancelled"
|
|
3977
|
+
| "queue.enqueue_failed"
|
|
3978
|
+
| "pipeline.step_failed"
|
|
2445
3979
|
message: string
|
|
3980
|
+
retryable: boolean
|
|
3981
|
+
at: string
|
|
3982
|
+
/**
|
|
3983
|
+
* Any JSON-compatible value.
|
|
3984
|
+
*/
|
|
3985
|
+
details?:
|
|
3986
|
+
| string
|
|
3987
|
+
| number
|
|
3988
|
+
| boolean
|
|
3989
|
+
| Array<unknown>
|
|
3990
|
+
| {
|
|
3991
|
+
[key: string]: unknown
|
|
3992
|
+
}
|
|
3993
|
+
| null
|
|
3994
|
+
truncated?: true
|
|
2446
3995
|
}
|
|
2447
3996
|
} | null
|
|
2448
3997
|
}>
|
|
@@ -2549,16 +4098,36 @@ export type GetPipelineResponses = {
|
|
|
2549
4098
|
id: string
|
|
2550
4099
|
projectId: string
|
|
2551
4100
|
pipelineId: string
|
|
2552
|
-
status: "running" | "succeeded" | "failed" | "cancelled"
|
|
2553
|
-
|
|
4101
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
4102
|
+
queuedAt: string
|
|
4103
|
+
startedAt?: string
|
|
2554
4104
|
finishedAt?: string
|
|
2555
4105
|
output?: {
|
|
2556
4106
|
datasetId: string
|
|
2557
4107
|
versionId: string
|
|
2558
4108
|
}
|
|
2559
4109
|
error?: {
|
|
2560
|
-
|
|
4110
|
+
code:
|
|
4111
|
+
| "internal.unexpected"
|
|
4112
|
+
| "runtime.cancelled"
|
|
4113
|
+
| "queue.enqueue_failed"
|
|
4114
|
+
| "pipeline.step_failed"
|
|
2561
4115
|
message: string
|
|
4116
|
+
retryable: boolean
|
|
4117
|
+
at: string
|
|
4118
|
+
/**
|
|
4119
|
+
* Any JSON-compatible value.
|
|
4120
|
+
*/
|
|
4121
|
+
details?:
|
|
4122
|
+
| string
|
|
4123
|
+
| number
|
|
4124
|
+
| boolean
|
|
4125
|
+
| Array<unknown>
|
|
4126
|
+
| {
|
|
4127
|
+
[key: string]: unknown
|
|
4128
|
+
}
|
|
4129
|
+
| null
|
|
4130
|
+
truncated?: true
|
|
2562
4131
|
}
|
|
2563
4132
|
} | null
|
|
2564
4133
|
}
|
|
@@ -2571,7 +4140,7 @@ export type ListPipelineRunsData = {
|
|
|
2571
4140
|
path?: never
|
|
2572
4141
|
query?: {
|
|
2573
4142
|
pipelineId?: string
|
|
2574
|
-
status?: "running" | "succeeded" | "failed" | "cancelled"
|
|
4143
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
2575
4144
|
startedAfter?: string
|
|
2576
4145
|
startedBefore?: string
|
|
2577
4146
|
limit?: string
|
|
@@ -2607,16 +4176,36 @@ export type ListPipelineRunsResponses = {
|
|
|
2607
4176
|
id: string
|
|
2608
4177
|
projectId: string
|
|
2609
4178
|
pipelineId: string
|
|
2610
|
-
status: "running" | "succeeded" | "failed" | "cancelled"
|
|
2611
|
-
|
|
4179
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
4180
|
+
queuedAt: string
|
|
4181
|
+
startedAt?: string
|
|
2612
4182
|
finishedAt?: string
|
|
2613
4183
|
output?: {
|
|
2614
4184
|
datasetId: string
|
|
2615
4185
|
versionId: string
|
|
2616
4186
|
}
|
|
2617
4187
|
error?: {
|
|
2618
|
-
|
|
4188
|
+
code:
|
|
4189
|
+
| "internal.unexpected"
|
|
4190
|
+
| "runtime.cancelled"
|
|
4191
|
+
| "queue.enqueue_failed"
|
|
4192
|
+
| "pipeline.step_failed"
|
|
2619
4193
|
message: string
|
|
4194
|
+
retryable: boolean
|
|
4195
|
+
at: string
|
|
4196
|
+
/**
|
|
4197
|
+
* Any JSON-compatible value.
|
|
4198
|
+
*/
|
|
4199
|
+
details?:
|
|
4200
|
+
| string
|
|
4201
|
+
| number
|
|
4202
|
+
| boolean
|
|
4203
|
+
| Array<unknown>
|
|
4204
|
+
| {
|
|
4205
|
+
[key: string]: unknown
|
|
4206
|
+
}
|
|
4207
|
+
| null
|
|
4208
|
+
truncated?: true
|
|
2620
4209
|
}
|
|
2621
4210
|
}>
|
|
2622
4211
|
hasMore: boolean
|
|
@@ -2667,16 +4256,36 @@ export type GetPipelineRunResponses = {
|
|
|
2667
4256
|
id: string
|
|
2668
4257
|
projectId: string
|
|
2669
4258
|
pipelineId: string
|
|
2670
|
-
status: "running" | "succeeded" | "failed" | "cancelled"
|
|
2671
|
-
|
|
4259
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
4260
|
+
queuedAt: string
|
|
4261
|
+
startedAt?: string
|
|
2672
4262
|
finishedAt?: string
|
|
2673
4263
|
output?: {
|
|
2674
4264
|
datasetId: string
|
|
2675
4265
|
versionId: string
|
|
2676
4266
|
}
|
|
2677
4267
|
error?: {
|
|
2678
|
-
|
|
4268
|
+
code:
|
|
4269
|
+
| "internal.unexpected"
|
|
4270
|
+
| "runtime.cancelled"
|
|
4271
|
+
| "queue.enqueue_failed"
|
|
4272
|
+
| "pipeline.step_failed"
|
|
2679
4273
|
message: string
|
|
4274
|
+
retryable: boolean
|
|
4275
|
+
at: string
|
|
4276
|
+
/**
|
|
4277
|
+
* Any JSON-compatible value.
|
|
4278
|
+
*/
|
|
4279
|
+
details?:
|
|
4280
|
+
| string
|
|
4281
|
+
| number
|
|
4282
|
+
| boolean
|
|
4283
|
+
| Array<unknown>
|
|
4284
|
+
| {
|
|
4285
|
+
[key: string]: unknown
|
|
4286
|
+
}
|
|
4287
|
+
| null
|
|
4288
|
+
truncated?: true
|
|
2680
4289
|
}
|
|
2681
4290
|
}
|
|
2682
4291
|
steps: Array<{
|
|
@@ -2700,8 +4309,27 @@ export type GetPipelineRunResponses = {
|
|
|
2700
4309
|
}
|
|
2701
4310
|
rowsWritten?: number
|
|
2702
4311
|
error?: {
|
|
2703
|
-
|
|
4312
|
+
code:
|
|
4313
|
+
| "internal.unexpected"
|
|
4314
|
+
| "runtime.cancelled"
|
|
4315
|
+
| "queue.enqueue_failed"
|
|
4316
|
+
| "pipeline.step_failed"
|
|
2704
4317
|
message: string
|
|
4318
|
+
retryable: boolean
|
|
4319
|
+
at: string
|
|
4320
|
+
/**
|
|
4321
|
+
* Any JSON-compatible value.
|
|
4322
|
+
*/
|
|
4323
|
+
details?:
|
|
4324
|
+
| string
|
|
4325
|
+
| number
|
|
4326
|
+
| boolean
|
|
4327
|
+
| Array<unknown>
|
|
4328
|
+
| {
|
|
4329
|
+
[key: string]: unknown
|
|
4330
|
+
}
|
|
4331
|
+
| null
|
|
4332
|
+
truncated?: true
|
|
2705
4333
|
}
|
|
2706
4334
|
}>
|
|
2707
4335
|
}
|
|
@@ -2894,7 +4522,25 @@ export type ListWorkflowsResponses = {
|
|
|
2894
4522
|
queuedAt?: string
|
|
2895
4523
|
startedAt: string
|
|
2896
4524
|
finishedAt?: string
|
|
2897
|
-
error?:
|
|
4525
|
+
error?: {
|
|
4526
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"
|
|
4527
|
+
message: string
|
|
4528
|
+
retryable: boolean
|
|
4529
|
+
at: string
|
|
4530
|
+
/**
|
|
4531
|
+
* Any JSON-compatible value.
|
|
4532
|
+
*/
|
|
4533
|
+
details?:
|
|
4534
|
+
| string
|
|
4535
|
+
| number
|
|
4536
|
+
| boolean
|
|
4537
|
+
| Array<unknown>
|
|
4538
|
+
| {
|
|
4539
|
+
[key: string]: unknown
|
|
4540
|
+
}
|
|
4541
|
+
| null
|
|
4542
|
+
truncated?: true
|
|
4543
|
+
}
|
|
2898
4544
|
requestedBy: {
|
|
2899
4545
|
principalType: "user" | "serviceAccount" | "system"
|
|
2900
4546
|
principalId: string
|
|
@@ -3056,7 +4702,25 @@ export type GetWorkflowResponses = {
|
|
|
3056
4702
|
queuedAt?: string
|
|
3057
4703
|
startedAt: string
|
|
3058
4704
|
finishedAt?: string
|
|
3059
|
-
error?:
|
|
4705
|
+
error?: {
|
|
4706
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"
|
|
4707
|
+
message: string
|
|
4708
|
+
retryable: boolean
|
|
4709
|
+
at: string
|
|
4710
|
+
/**
|
|
4711
|
+
* Any JSON-compatible value.
|
|
4712
|
+
*/
|
|
4713
|
+
details?:
|
|
4714
|
+
| string
|
|
4715
|
+
| number
|
|
4716
|
+
| boolean
|
|
4717
|
+
| Array<unknown>
|
|
4718
|
+
| {
|
|
4719
|
+
[key: string]: unknown
|
|
4720
|
+
}
|
|
4721
|
+
| null
|
|
4722
|
+
truncated?: true
|
|
4723
|
+
}
|
|
3060
4724
|
requestedBy: {
|
|
3061
4725
|
principalType: "user" | "serviceAccount" | "system"
|
|
3062
4726
|
principalId: string
|
|
@@ -3540,7 +5204,25 @@ export type ListWorkflowRunsResponses = {
|
|
|
3540
5204
|
queuedAt?: string
|
|
3541
5205
|
startedAt: string
|
|
3542
5206
|
finishedAt?: string
|
|
3543
|
-
error?:
|
|
5207
|
+
error?: {
|
|
5208
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"
|
|
5209
|
+
message: string
|
|
5210
|
+
retryable: boolean
|
|
5211
|
+
at: string
|
|
5212
|
+
/**
|
|
5213
|
+
* Any JSON-compatible value.
|
|
5214
|
+
*/
|
|
5215
|
+
details?:
|
|
5216
|
+
| string
|
|
5217
|
+
| number
|
|
5218
|
+
| boolean
|
|
5219
|
+
| Array<unknown>
|
|
5220
|
+
| {
|
|
5221
|
+
[key: string]: unknown
|
|
5222
|
+
}
|
|
5223
|
+
| null
|
|
5224
|
+
truncated?: true
|
|
5225
|
+
}
|
|
3544
5226
|
requestedBy: {
|
|
3545
5227
|
principalType: "user" | "serviceAccount" | "system"
|
|
3546
5228
|
principalId: string
|
|
@@ -3598,7 +5280,25 @@ export type GetWorkflowRunResponses = {
|
|
|
3598
5280
|
queuedAt?: string
|
|
3599
5281
|
startedAt: string
|
|
3600
5282
|
finishedAt?: string
|
|
3601
|
-
error?:
|
|
5283
|
+
error?: {
|
|
5284
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"
|
|
5285
|
+
message: string
|
|
5286
|
+
retryable: boolean
|
|
5287
|
+
at: string
|
|
5288
|
+
/**
|
|
5289
|
+
* Any JSON-compatible value.
|
|
5290
|
+
*/
|
|
5291
|
+
details?:
|
|
5292
|
+
| string
|
|
5293
|
+
| number
|
|
5294
|
+
| boolean
|
|
5295
|
+
| Array<unknown>
|
|
5296
|
+
| {
|
|
5297
|
+
[key: string]: unknown
|
|
5298
|
+
}
|
|
5299
|
+
| null
|
|
5300
|
+
truncated?: true
|
|
5301
|
+
}
|
|
3602
5302
|
requestedBy: {
|
|
3603
5303
|
principalType: "user" | "serviceAccount" | "system"
|
|
3604
5304
|
principalId: string
|
|
@@ -3660,7 +5360,25 @@ export type GetWorkflowRunResponses = {
|
|
|
3660
5360
|
}
|
|
3661
5361
|
| null
|
|
3662
5362
|
}
|
|
3663
|
-
error?:
|
|
5363
|
+
error?: {
|
|
5364
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"
|
|
5365
|
+
message: string
|
|
5366
|
+
retryable: boolean
|
|
5367
|
+
at: string
|
|
5368
|
+
/**
|
|
5369
|
+
* Any JSON-compatible value.
|
|
5370
|
+
*/
|
|
5371
|
+
details?:
|
|
5372
|
+
| string
|
|
5373
|
+
| number
|
|
5374
|
+
| boolean
|
|
5375
|
+
| Array<unknown>
|
|
5376
|
+
| {
|
|
5377
|
+
[key: string]: unknown
|
|
5378
|
+
}
|
|
5379
|
+
| null
|
|
5380
|
+
truncated?: true
|
|
5381
|
+
}
|
|
3664
5382
|
agentExecution?: {
|
|
3665
5383
|
agentId: string
|
|
3666
5384
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -3668,7 +5386,24 @@ export type GetWorkflowRunResponses = {
|
|
|
3668
5386
|
modelId?: string
|
|
3669
5387
|
finishReason?: string
|
|
3670
5388
|
usage?: {
|
|
3671
|
-
|
|
5389
|
+
inputTokens?: number
|
|
5390
|
+
outputTokens?: number
|
|
5391
|
+
totalTokens?: number
|
|
5392
|
+
uncachedInputTokens?: number
|
|
5393
|
+
cacheReadInputTokens?: number
|
|
5394
|
+
cacheWriteInputTokens?: number
|
|
5395
|
+
textOutputTokens?: number
|
|
5396
|
+
reasoningOutputTokens?: number
|
|
5397
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
5398
|
+
}
|
|
5399
|
+
cost?: {
|
|
5400
|
+
amounts: Array<{
|
|
5401
|
+
currency: string
|
|
5402
|
+
amountNanos: string
|
|
5403
|
+
}>
|
|
5404
|
+
ratedCallCount: number
|
|
5405
|
+
unpriceableCallCount: number
|
|
5406
|
+
unvaluedCallCount: number
|
|
3672
5407
|
}
|
|
3673
5408
|
startedAt?: string
|
|
3674
5409
|
completedAt?: string
|
|
@@ -3724,19 +5459,226 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
3724
5459
|
modelId?: string
|
|
3725
5460
|
finishReason?: string
|
|
3726
5461
|
usage?: {
|
|
3727
|
-
|
|
5462
|
+
inputTokens?: number
|
|
5463
|
+
outputTokens?: number
|
|
5464
|
+
totalTokens?: number
|
|
5465
|
+
uncachedInputTokens?: number
|
|
5466
|
+
cacheReadInputTokens?: number
|
|
5467
|
+
cacheWriteInputTokens?: number
|
|
5468
|
+
textOutputTokens?: number
|
|
5469
|
+
reasoningOutputTokens?: number
|
|
5470
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
5471
|
+
}
|
|
5472
|
+
cost?: {
|
|
5473
|
+
amounts: Array<{
|
|
5474
|
+
currency: string
|
|
5475
|
+
amountNanos: string
|
|
5476
|
+
}>
|
|
5477
|
+
ratedCallCount: number
|
|
5478
|
+
unpriceableCallCount: number
|
|
5479
|
+
unvaluedCallCount: number
|
|
3728
5480
|
}
|
|
3729
5481
|
startedAt?: string
|
|
3730
5482
|
completedAt?: string
|
|
3731
5483
|
nodeRunId: string
|
|
3732
5484
|
prompt: string
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
5485
|
+
trace?: Array<
|
|
5486
|
+
| {
|
|
5487
|
+
type: "text"
|
|
5488
|
+
text: string
|
|
5489
|
+
/**
|
|
5490
|
+
* Any JSON-compatible value.
|
|
5491
|
+
*/
|
|
5492
|
+
providerMetadata?:
|
|
5493
|
+
| string
|
|
5494
|
+
| number
|
|
5495
|
+
| boolean
|
|
5496
|
+
| Array<unknown>
|
|
5497
|
+
| {
|
|
5498
|
+
[key: string]: unknown
|
|
5499
|
+
}
|
|
5500
|
+
| null
|
|
5501
|
+
}
|
|
5502
|
+
| {
|
|
5503
|
+
type: "reasoning"
|
|
5504
|
+
text: string
|
|
5505
|
+
/**
|
|
5506
|
+
* Any JSON-compatible value.
|
|
5507
|
+
*/
|
|
5508
|
+
providerMetadata?:
|
|
5509
|
+
| string
|
|
5510
|
+
| number
|
|
5511
|
+
| boolean
|
|
5512
|
+
| Array<unknown>
|
|
5513
|
+
| {
|
|
5514
|
+
[key: string]: unknown
|
|
5515
|
+
}
|
|
5516
|
+
| null
|
|
5517
|
+
}
|
|
5518
|
+
| {
|
|
5519
|
+
type: "step-start"
|
|
5520
|
+
}
|
|
5521
|
+
| {
|
|
5522
|
+
type: "file"
|
|
5523
|
+
fileRef: {
|
|
5524
|
+
blobId: string
|
|
5525
|
+
digest: string
|
|
5526
|
+
sizeBytes: number
|
|
5527
|
+
fileName?: string
|
|
5528
|
+
mediaType?: string
|
|
5529
|
+
logicalPath?: string
|
|
5530
|
+
}
|
|
5531
|
+
/**
|
|
5532
|
+
* Any JSON-compatible value.
|
|
5533
|
+
*/
|
|
5534
|
+
providerMetadata?:
|
|
5535
|
+
| string
|
|
5536
|
+
| number
|
|
5537
|
+
| boolean
|
|
5538
|
+
| Array<unknown>
|
|
5539
|
+
| {
|
|
5540
|
+
[key: string]: unknown
|
|
5541
|
+
}
|
|
5542
|
+
| null
|
|
5543
|
+
}
|
|
5544
|
+
| {
|
|
5545
|
+
context:
|
|
5546
|
+
| {
|
|
5547
|
+
kind: "object"
|
|
5548
|
+
ref: {
|
|
5549
|
+
objectTypeId: string
|
|
5550
|
+
primaryId: string
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5553
|
+
| {
|
|
5554
|
+
kind: "app-state"
|
|
5555
|
+
id: string
|
|
5556
|
+
label: string
|
|
5557
|
+
description: string
|
|
5558
|
+
/**
|
|
5559
|
+
* Any JSON-compatible value.
|
|
5560
|
+
*/
|
|
5561
|
+
value:
|
|
5562
|
+
| string
|
|
5563
|
+
| number
|
|
5564
|
+
| boolean
|
|
5565
|
+
| Array<unknown>
|
|
5566
|
+
| {
|
|
5567
|
+
[key: string]: unknown
|
|
5568
|
+
}
|
|
5569
|
+
| null
|
|
5570
|
+
}
|
|
5571
|
+
origin: "ambient" | "explicit"
|
|
5572
|
+
type: "context"
|
|
5573
|
+
}
|
|
5574
|
+
| {
|
|
5575
|
+
type: "tool-call"
|
|
5576
|
+
toolCallId: string
|
|
5577
|
+
toolName: string
|
|
5578
|
+
dynamic?: boolean
|
|
5579
|
+
providerExecuted?: boolean
|
|
5580
|
+
/**
|
|
5581
|
+
* Any JSON-compatible value.
|
|
5582
|
+
*/
|
|
5583
|
+
input:
|
|
5584
|
+
| string
|
|
5585
|
+
| number
|
|
5586
|
+
| boolean
|
|
5587
|
+
| Array<unknown>
|
|
5588
|
+
| {
|
|
5589
|
+
[key: string]: unknown
|
|
5590
|
+
}
|
|
5591
|
+
| null
|
|
5592
|
+
/**
|
|
5593
|
+
* Any JSON-compatible value.
|
|
5594
|
+
*/
|
|
5595
|
+
providerMetadata?:
|
|
5596
|
+
| string
|
|
5597
|
+
| number
|
|
5598
|
+
| boolean
|
|
5599
|
+
| Array<unknown>
|
|
5600
|
+
| {
|
|
5601
|
+
[key: string]: unknown
|
|
5602
|
+
}
|
|
5603
|
+
| null
|
|
5604
|
+
state: "output-available"
|
|
5605
|
+
/**
|
|
5606
|
+
* Any JSON-compatible value.
|
|
5607
|
+
*/
|
|
5608
|
+
output:
|
|
5609
|
+
| string
|
|
5610
|
+
| number
|
|
5611
|
+
| boolean
|
|
5612
|
+
| Array<unknown>
|
|
5613
|
+
| {
|
|
5614
|
+
[key: string]: unknown
|
|
5615
|
+
}
|
|
5616
|
+
| null
|
|
5617
|
+
}
|
|
5618
|
+
| {
|
|
5619
|
+
type: "tool-call"
|
|
5620
|
+
toolCallId: string
|
|
5621
|
+
toolName: string
|
|
5622
|
+
dynamic?: boolean
|
|
5623
|
+
providerExecuted?: boolean
|
|
5624
|
+
/**
|
|
5625
|
+
* Any JSON-compatible value.
|
|
5626
|
+
*/
|
|
5627
|
+
input:
|
|
5628
|
+
| string
|
|
5629
|
+
| number
|
|
5630
|
+
| boolean
|
|
5631
|
+
| Array<unknown>
|
|
5632
|
+
| {
|
|
5633
|
+
[key: string]: unknown
|
|
5634
|
+
}
|
|
5635
|
+
| null
|
|
5636
|
+
/**
|
|
5637
|
+
* Any JSON-compatible value.
|
|
5638
|
+
*/
|
|
5639
|
+
providerMetadata?:
|
|
5640
|
+
| string
|
|
5641
|
+
| number
|
|
5642
|
+
| boolean
|
|
5643
|
+
| Array<unknown>
|
|
5644
|
+
| {
|
|
5645
|
+
[key: string]: unknown
|
|
5646
|
+
}
|
|
5647
|
+
| null
|
|
5648
|
+
state: "output-error"
|
|
5649
|
+
errorText: string
|
|
5650
|
+
}
|
|
5651
|
+
>
|
|
5652
|
+
diagnostics?: Array<
|
|
5653
|
+
| string
|
|
5654
|
+
| number
|
|
5655
|
+
| boolean
|
|
5656
|
+
| Array<unknown>
|
|
5657
|
+
| {
|
|
5658
|
+
[key: string]: unknown
|
|
5659
|
+
}
|
|
5660
|
+
| null
|
|
5661
|
+
>
|
|
5662
|
+
failurePhase?: "agent-loop" | "structured-finalizer"
|
|
5663
|
+
error?: {
|
|
5664
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed"
|
|
5665
|
+
message: string
|
|
5666
|
+
retryable: boolean
|
|
5667
|
+
at: string
|
|
5668
|
+
/**
|
|
5669
|
+
* Any JSON-compatible value.
|
|
5670
|
+
*/
|
|
5671
|
+
details?:
|
|
5672
|
+
| string
|
|
5673
|
+
| number
|
|
5674
|
+
| boolean
|
|
5675
|
+
| Array<unknown>
|
|
5676
|
+
| {
|
|
5677
|
+
[key: string]: unknown
|
|
5678
|
+
}
|
|
5679
|
+
| null
|
|
5680
|
+
truncated?: true
|
|
3736
5681
|
}
|
|
3737
|
-
trace?: Array<unknown>
|
|
3738
|
-
diagnostics?: Array<unknown>
|
|
3739
|
-
error?: string
|
|
3740
5682
|
createdAt: string
|
|
3741
5683
|
}
|
|
3742
5684
|
}
|
|
@@ -3791,7 +5733,25 @@ export type CancelWorkflowRunResponses = {
|
|
|
3791
5733
|
queuedAt?: string
|
|
3792
5734
|
startedAt: string
|
|
3793
5735
|
finishedAt?: string
|
|
3794
|
-
error?:
|
|
5736
|
+
error?: {
|
|
5737
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"
|
|
5738
|
+
message: string
|
|
5739
|
+
retryable: boolean
|
|
5740
|
+
at: string
|
|
5741
|
+
/**
|
|
5742
|
+
* Any JSON-compatible value.
|
|
5743
|
+
*/
|
|
5744
|
+
details?:
|
|
5745
|
+
| string
|
|
5746
|
+
| number
|
|
5747
|
+
| boolean
|
|
5748
|
+
| Array<unknown>
|
|
5749
|
+
| {
|
|
5750
|
+
[key: string]: unknown
|
|
5751
|
+
}
|
|
5752
|
+
| null
|
|
5753
|
+
truncated?: true
|
|
5754
|
+
}
|
|
3795
5755
|
requestedBy: {
|
|
3796
5756
|
principalType: "user" | "serviceAccount" | "system"
|
|
3797
5757
|
principalId: string
|
|
@@ -3853,7 +5813,25 @@ export type CancelWorkflowRunResponses = {
|
|
|
3853
5813
|
}
|
|
3854
5814
|
| null
|
|
3855
5815
|
}
|
|
3856
|
-
error?:
|
|
5816
|
+
error?: {
|
|
5817
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"
|
|
5818
|
+
message: string
|
|
5819
|
+
retryable: boolean
|
|
5820
|
+
at: string
|
|
5821
|
+
/**
|
|
5822
|
+
* Any JSON-compatible value.
|
|
5823
|
+
*/
|
|
5824
|
+
details?:
|
|
5825
|
+
| string
|
|
5826
|
+
| number
|
|
5827
|
+
| boolean
|
|
5828
|
+
| Array<unknown>
|
|
5829
|
+
| {
|
|
5830
|
+
[key: string]: unknown
|
|
5831
|
+
}
|
|
5832
|
+
| null
|
|
5833
|
+
truncated?: true
|
|
5834
|
+
}
|
|
3857
5835
|
agentExecution?: {
|
|
3858
5836
|
agentId: string
|
|
3859
5837
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -3861,7 +5839,24 @@ export type CancelWorkflowRunResponses = {
|
|
|
3861
5839
|
modelId?: string
|
|
3862
5840
|
finishReason?: string
|
|
3863
5841
|
usage?: {
|
|
3864
|
-
|
|
5842
|
+
inputTokens?: number
|
|
5843
|
+
outputTokens?: number
|
|
5844
|
+
totalTokens?: number
|
|
5845
|
+
uncachedInputTokens?: number
|
|
5846
|
+
cacheReadInputTokens?: number
|
|
5847
|
+
cacheWriteInputTokens?: number
|
|
5848
|
+
textOutputTokens?: number
|
|
5849
|
+
reasoningOutputTokens?: number
|
|
5850
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
5851
|
+
}
|
|
5852
|
+
cost?: {
|
|
5853
|
+
amounts: Array<{
|
|
5854
|
+
currency: string
|
|
5855
|
+
amountNanos: string
|
|
5856
|
+
}>
|
|
5857
|
+
ratedCallCount: number
|
|
5858
|
+
unpriceableCallCount: number
|
|
5859
|
+
unvaluedCallCount: number
|
|
3865
5860
|
}
|
|
3866
5861
|
startedAt?: string
|
|
3867
5862
|
completedAt?: string
|
|
@@ -5588,17 +7583,28 @@ export type ListActionRunsResponses = {
|
|
|
5588
7583
|
startedAt?: string
|
|
5589
7584
|
finishedAt?: string
|
|
5590
7585
|
error?: {
|
|
5591
|
-
|
|
7586
|
+
code:
|
|
7587
|
+
| "internal.unexpected"
|
|
7588
|
+
| "runtime.cancelled"
|
|
7589
|
+
| "queue.enqueue_failed"
|
|
7590
|
+
| "action.phase_failed"
|
|
5592
7591
|
message: string
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
7592
|
+
retryable: boolean
|
|
7593
|
+
at: string
|
|
7594
|
+
details: {
|
|
7595
|
+
actionId: string
|
|
7596
|
+
runId: string
|
|
7597
|
+
phase:
|
|
7598
|
+
| "request"
|
|
7599
|
+
| "enqueue"
|
|
7600
|
+
| "validation"
|
|
7601
|
+
| "writeback"
|
|
7602
|
+
| "edits"
|
|
7603
|
+
| "commit"
|
|
7604
|
+
| "effects"
|
|
7605
|
+
| "cancelled"
|
|
7606
|
+
}
|
|
7607
|
+
truncated?: true
|
|
5602
7608
|
}
|
|
5603
7609
|
}>
|
|
5604
7610
|
hasMore: boolean
|
|
@@ -5671,29 +7677,18 @@ export type GetActionRunResponses = {
|
|
|
5671
7677
|
startedAt?: string
|
|
5672
7678
|
finishedAt?: string
|
|
5673
7679
|
error?: {
|
|
5674
|
-
|
|
7680
|
+
code:
|
|
7681
|
+
| "internal.unexpected"
|
|
7682
|
+
| "runtime.cancelled"
|
|
7683
|
+
| "queue.enqueue_failed"
|
|
7684
|
+
| "action.phase_failed"
|
|
5675
7685
|
message: string
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
| "commit"
|
|
5683
|
-
| "effects"
|
|
5684
|
-
| "cancelled"
|
|
5685
|
-
}
|
|
5686
|
-
params: {
|
|
5687
|
-
[key: string]: unknown
|
|
5688
|
-
}
|
|
5689
|
-
writeback?: {
|
|
5690
|
-
status: "succeeded" | "failed"
|
|
5691
|
-
completedAt: string
|
|
5692
|
-
result?: unknown
|
|
5693
|
-
error?: {
|
|
5694
|
-
name?: string
|
|
5695
|
-
message: string
|
|
5696
|
-
phase?:
|
|
7686
|
+
retryable: boolean
|
|
7687
|
+
at: string
|
|
7688
|
+
details: {
|
|
7689
|
+
actionId: string
|
|
7690
|
+
runId: string
|
|
7691
|
+
phase:
|
|
5697
7692
|
| "request"
|
|
5698
7693
|
| "enqueue"
|
|
5699
7694
|
| "validation"
|
|
@@ -5703,24 +7698,73 @@ export type GetActionRunResponses = {
|
|
|
5703
7698
|
| "effects"
|
|
5704
7699
|
| "cancelled"
|
|
5705
7700
|
}
|
|
7701
|
+
truncated?: true
|
|
5706
7702
|
}
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
completedAt: string
|
|
5710
|
-
error?: {
|
|
5711
|
-
name?: string
|
|
5712
|
-
message: string
|
|
5713
|
-
phase?:
|
|
5714
|
-
| "request"
|
|
5715
|
-
| "enqueue"
|
|
5716
|
-
| "validation"
|
|
5717
|
-
| "writeback"
|
|
5718
|
-
| "edits"
|
|
5719
|
-
| "commit"
|
|
5720
|
-
| "effects"
|
|
5721
|
-
| "cancelled"
|
|
5722
|
-
}
|
|
7703
|
+
params: {
|
|
7704
|
+
[key: string]: unknown
|
|
5723
7705
|
}
|
|
7706
|
+
writeback?:
|
|
7707
|
+
| {
|
|
7708
|
+
status: "succeeded"
|
|
7709
|
+
completedAt: string
|
|
7710
|
+
/**
|
|
7711
|
+
* Any JSON-compatible value.
|
|
7712
|
+
*/
|
|
7713
|
+
result:
|
|
7714
|
+
| string
|
|
7715
|
+
| number
|
|
7716
|
+
| boolean
|
|
7717
|
+
| Array<unknown>
|
|
7718
|
+
| {
|
|
7719
|
+
[key: string]: unknown
|
|
7720
|
+
}
|
|
7721
|
+
| null
|
|
7722
|
+
}
|
|
7723
|
+
| {
|
|
7724
|
+
status: "failed"
|
|
7725
|
+
completedAt: string
|
|
7726
|
+
error: {
|
|
7727
|
+
code:
|
|
7728
|
+
| "internal.unexpected"
|
|
7729
|
+
| "runtime.cancelled"
|
|
7730
|
+
| "queue.enqueue_failed"
|
|
7731
|
+
| "action.phase_failed"
|
|
7732
|
+
message: string
|
|
7733
|
+
retryable: boolean
|
|
7734
|
+
at: string
|
|
7735
|
+
details: {
|
|
7736
|
+
actionId: string
|
|
7737
|
+
runId: string
|
|
7738
|
+
phase: "writeback"
|
|
7739
|
+
}
|
|
7740
|
+
truncated?: true
|
|
7741
|
+
}
|
|
7742
|
+
}
|
|
7743
|
+
effects?:
|
|
7744
|
+
| {
|
|
7745
|
+
status: "succeeded"
|
|
7746
|
+
completedAt: string
|
|
7747
|
+
}
|
|
7748
|
+
| {
|
|
7749
|
+
status: "failed"
|
|
7750
|
+
completedAt: string
|
|
7751
|
+
error: {
|
|
7752
|
+
code:
|
|
7753
|
+
| "internal.unexpected"
|
|
7754
|
+
| "runtime.cancelled"
|
|
7755
|
+
| "queue.enqueue_failed"
|
|
7756
|
+
| "action.phase_failed"
|
|
7757
|
+
message: string
|
|
7758
|
+
retryable: boolean
|
|
7759
|
+
at: string
|
|
7760
|
+
details: {
|
|
7761
|
+
actionId: string
|
|
7762
|
+
runId: string
|
|
7763
|
+
phase: "effects"
|
|
7764
|
+
}
|
|
7765
|
+
truncated?: true
|
|
7766
|
+
}
|
|
7767
|
+
}
|
|
5724
7768
|
}
|
|
5725
7769
|
}
|
|
5726
7770
|
|
|
@@ -6422,12 +8466,8 @@ export type PostAgentThreadMessageResponses = {
|
|
|
6422
8466
|
threadId: string
|
|
6423
8467
|
agentId: string
|
|
6424
8468
|
triggerMessageId: string
|
|
6425
|
-
|
|
6426
|
-
type: "user" | "serviceAccount"
|
|
6427
|
-
id: string
|
|
6428
|
-
}
|
|
6429
|
-
executionPrincipal?: {
|
|
6430
|
-
type: "user" | "serviceAccount" | "system"
|
|
8469
|
+
requestedBy?: {
|
|
8470
|
+
type: "user" | "serviceAccount"
|
|
6431
8471
|
id: string
|
|
6432
8472
|
}
|
|
6433
8473
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -6437,6 +8477,7 @@ export type PostAgentThreadMessageResponses = {
|
|
|
6437
8477
|
| "length"
|
|
6438
8478
|
| "content-filter"
|
|
6439
8479
|
| "tool-calls"
|
|
8480
|
+
| "timeout"
|
|
6440
8481
|
| "error"
|
|
6441
8482
|
| "other"
|
|
6442
8483
|
| "unknown"
|
|
@@ -6444,8 +8485,21 @@ export type PostAgentThreadMessageResponses = {
|
|
|
6444
8485
|
inputTokens?: number
|
|
6445
8486
|
outputTokens?: number
|
|
6446
8487
|
totalTokens?: number
|
|
6447
|
-
|
|
6448
|
-
|
|
8488
|
+
uncachedInputTokens?: number
|
|
8489
|
+
cacheReadInputTokens?: number
|
|
8490
|
+
cacheWriteInputTokens?: number
|
|
8491
|
+
textOutputTokens?: number
|
|
8492
|
+
reasoningOutputTokens?: number
|
|
8493
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
8494
|
+
}
|
|
8495
|
+
cost?: {
|
|
8496
|
+
amounts: Array<{
|
|
8497
|
+
currency: string
|
|
8498
|
+
amountNanos: string
|
|
8499
|
+
}>
|
|
8500
|
+
ratedCallCount: number
|
|
8501
|
+
unpriceableCallCount: number
|
|
8502
|
+
unvaluedCallCount: number
|
|
6449
8503
|
}
|
|
6450
8504
|
diagnostics?: Array<{
|
|
6451
8505
|
code:
|
|
@@ -6460,7 +8514,25 @@ export type PostAgentThreadMessageResponses = {
|
|
|
6460
8514
|
path?: string
|
|
6461
8515
|
message: string
|
|
6462
8516
|
}>
|
|
6463
|
-
error?:
|
|
8517
|
+
error?: {
|
|
8518
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed"
|
|
8519
|
+
message: string
|
|
8520
|
+
retryable: boolean
|
|
8521
|
+
at: string
|
|
8522
|
+
/**
|
|
8523
|
+
* Any JSON-compatible value.
|
|
8524
|
+
*/
|
|
8525
|
+
details?:
|
|
8526
|
+
| string
|
|
8527
|
+
| number
|
|
8528
|
+
| boolean
|
|
8529
|
+
| Array<unknown>
|
|
8530
|
+
| {
|
|
8531
|
+
[key: string]: unknown
|
|
8532
|
+
}
|
|
8533
|
+
| null
|
|
8534
|
+
truncated?: true
|
|
8535
|
+
}
|
|
6464
8536
|
attempt: number
|
|
6465
8537
|
streamId: string
|
|
6466
8538
|
createdAt: string
|
|
@@ -6617,14 +8689,10 @@ export type CancelAgentRunResponses = {
|
|
|
6617
8689
|
id: string
|
|
6618
8690
|
projectId: string
|
|
6619
8691
|
threadId: string
|
|
6620
|
-
agentId: string
|
|
6621
|
-
triggerMessageId: string
|
|
6622
|
-
|
|
6623
|
-
type: "user" | "serviceAccount"
|
|
6624
|
-
id: string
|
|
6625
|
-
}
|
|
6626
|
-
executionPrincipal?: {
|
|
6627
|
-
type: "user" | "serviceAccount" | "system"
|
|
8692
|
+
agentId: string
|
|
8693
|
+
triggerMessageId: string
|
|
8694
|
+
requestedBy?: {
|
|
8695
|
+
type: "user" | "serviceAccount"
|
|
6628
8696
|
id: string
|
|
6629
8697
|
}
|
|
6630
8698
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -6634,6 +8702,7 @@ export type CancelAgentRunResponses = {
|
|
|
6634
8702
|
| "length"
|
|
6635
8703
|
| "content-filter"
|
|
6636
8704
|
| "tool-calls"
|
|
8705
|
+
| "timeout"
|
|
6637
8706
|
| "error"
|
|
6638
8707
|
| "other"
|
|
6639
8708
|
| "unknown"
|
|
@@ -6641,8 +8710,21 @@ export type CancelAgentRunResponses = {
|
|
|
6641
8710
|
inputTokens?: number
|
|
6642
8711
|
outputTokens?: number
|
|
6643
8712
|
totalTokens?: number
|
|
6644
|
-
|
|
6645
|
-
|
|
8713
|
+
uncachedInputTokens?: number
|
|
8714
|
+
cacheReadInputTokens?: number
|
|
8715
|
+
cacheWriteInputTokens?: number
|
|
8716
|
+
textOutputTokens?: number
|
|
8717
|
+
reasoningOutputTokens?: number
|
|
8718
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
8719
|
+
}
|
|
8720
|
+
cost?: {
|
|
8721
|
+
amounts: Array<{
|
|
8722
|
+
currency: string
|
|
8723
|
+
amountNanos: string
|
|
8724
|
+
}>
|
|
8725
|
+
ratedCallCount: number
|
|
8726
|
+
unpriceableCallCount: number
|
|
8727
|
+
unvaluedCallCount: number
|
|
6646
8728
|
}
|
|
6647
8729
|
diagnostics?: Array<{
|
|
6648
8730
|
code:
|
|
@@ -6657,7 +8739,25 @@ export type CancelAgentRunResponses = {
|
|
|
6657
8739
|
path?: string
|
|
6658
8740
|
message: string
|
|
6659
8741
|
}>
|
|
6660
|
-
error?:
|
|
8742
|
+
error?: {
|
|
8743
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed"
|
|
8744
|
+
message: string
|
|
8745
|
+
retryable: boolean
|
|
8746
|
+
at: string
|
|
8747
|
+
/**
|
|
8748
|
+
* Any JSON-compatible value.
|
|
8749
|
+
*/
|
|
8750
|
+
details?:
|
|
8751
|
+
| string
|
|
8752
|
+
| number
|
|
8753
|
+
| boolean
|
|
8754
|
+
| Array<unknown>
|
|
8755
|
+
| {
|
|
8756
|
+
[key: string]: unknown
|
|
8757
|
+
}
|
|
8758
|
+
| null
|
|
8759
|
+
truncated?: true
|
|
8760
|
+
}
|
|
6661
8761
|
attempt: number
|
|
6662
8762
|
streamId: string
|
|
6663
8763
|
createdAt: string
|
|
@@ -6719,12 +8819,8 @@ export type RetryAgentRunResponses = {
|
|
|
6719
8819
|
threadId: string
|
|
6720
8820
|
agentId: string
|
|
6721
8821
|
triggerMessageId: string
|
|
6722
|
-
|
|
6723
|
-
type: "user" | "serviceAccount"
|
|
6724
|
-
id: string
|
|
6725
|
-
}
|
|
6726
|
-
executionPrincipal?: {
|
|
6727
|
-
type: "user" | "serviceAccount" | "system"
|
|
8822
|
+
requestedBy?: {
|
|
8823
|
+
type: "user" | "serviceAccount"
|
|
6728
8824
|
id: string
|
|
6729
8825
|
}
|
|
6730
8826
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -6734,6 +8830,7 @@ export type RetryAgentRunResponses = {
|
|
|
6734
8830
|
| "length"
|
|
6735
8831
|
| "content-filter"
|
|
6736
8832
|
| "tool-calls"
|
|
8833
|
+
| "timeout"
|
|
6737
8834
|
| "error"
|
|
6738
8835
|
| "other"
|
|
6739
8836
|
| "unknown"
|
|
@@ -6741,8 +8838,21 @@ export type RetryAgentRunResponses = {
|
|
|
6741
8838
|
inputTokens?: number
|
|
6742
8839
|
outputTokens?: number
|
|
6743
8840
|
totalTokens?: number
|
|
6744
|
-
|
|
6745
|
-
|
|
8841
|
+
uncachedInputTokens?: number
|
|
8842
|
+
cacheReadInputTokens?: number
|
|
8843
|
+
cacheWriteInputTokens?: number
|
|
8844
|
+
textOutputTokens?: number
|
|
8845
|
+
reasoningOutputTokens?: number
|
|
8846
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
8847
|
+
}
|
|
8848
|
+
cost?: {
|
|
8849
|
+
amounts: Array<{
|
|
8850
|
+
currency: string
|
|
8851
|
+
amountNanos: string
|
|
8852
|
+
}>
|
|
8853
|
+
ratedCallCount: number
|
|
8854
|
+
unpriceableCallCount: number
|
|
8855
|
+
unvaluedCallCount: number
|
|
6746
8856
|
}
|
|
6747
8857
|
diagnostics?: Array<{
|
|
6748
8858
|
code:
|
|
@@ -6757,7 +8867,25 @@ export type RetryAgentRunResponses = {
|
|
|
6757
8867
|
path?: string
|
|
6758
8868
|
message: string
|
|
6759
8869
|
}>
|
|
6760
|
-
error?:
|
|
8870
|
+
error?: {
|
|
8871
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed"
|
|
8872
|
+
message: string
|
|
8873
|
+
retryable: boolean
|
|
8874
|
+
at: string
|
|
8875
|
+
/**
|
|
8876
|
+
* Any JSON-compatible value.
|
|
8877
|
+
*/
|
|
8878
|
+
details?:
|
|
8879
|
+
| string
|
|
8880
|
+
| number
|
|
8881
|
+
| boolean
|
|
8882
|
+
| Array<unknown>
|
|
8883
|
+
| {
|
|
8884
|
+
[key: string]: unknown
|
|
8885
|
+
}
|
|
8886
|
+
| null
|
|
8887
|
+
truncated?: true
|
|
8888
|
+
}
|
|
6761
8889
|
attempt: number
|
|
6762
8890
|
streamId: string
|
|
6763
8891
|
createdAt: string
|
|
@@ -6817,12 +8945,8 @@ export type ListAgentThreadRunsResponses = {
|
|
|
6817
8945
|
threadId: string
|
|
6818
8946
|
agentId: string
|
|
6819
8947
|
triggerMessageId: string
|
|
6820
|
-
|
|
6821
|
-
type: "user" | "serviceAccount"
|
|
6822
|
-
id: string
|
|
6823
|
-
}
|
|
6824
|
-
executionPrincipal?: {
|
|
6825
|
-
type: "user" | "serviceAccount" | "system"
|
|
8948
|
+
requestedBy?: {
|
|
8949
|
+
type: "user" | "serviceAccount"
|
|
6826
8950
|
id: string
|
|
6827
8951
|
}
|
|
6828
8952
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -6832,6 +8956,7 @@ export type ListAgentThreadRunsResponses = {
|
|
|
6832
8956
|
| "length"
|
|
6833
8957
|
| "content-filter"
|
|
6834
8958
|
| "tool-calls"
|
|
8959
|
+
| "timeout"
|
|
6835
8960
|
| "error"
|
|
6836
8961
|
| "other"
|
|
6837
8962
|
| "unknown"
|
|
@@ -6839,8 +8964,21 @@ export type ListAgentThreadRunsResponses = {
|
|
|
6839
8964
|
inputTokens?: number
|
|
6840
8965
|
outputTokens?: number
|
|
6841
8966
|
totalTokens?: number
|
|
6842
|
-
|
|
6843
|
-
|
|
8967
|
+
uncachedInputTokens?: number
|
|
8968
|
+
cacheReadInputTokens?: number
|
|
8969
|
+
cacheWriteInputTokens?: number
|
|
8970
|
+
textOutputTokens?: number
|
|
8971
|
+
reasoningOutputTokens?: number
|
|
8972
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
8973
|
+
}
|
|
8974
|
+
cost?: {
|
|
8975
|
+
amounts: Array<{
|
|
8976
|
+
currency: string
|
|
8977
|
+
amountNanos: string
|
|
8978
|
+
}>
|
|
8979
|
+
ratedCallCount: number
|
|
8980
|
+
unpriceableCallCount: number
|
|
8981
|
+
unvaluedCallCount: number
|
|
6844
8982
|
}
|
|
6845
8983
|
diagnostics?: Array<{
|
|
6846
8984
|
code:
|
|
@@ -6855,7 +8993,25 @@ export type ListAgentThreadRunsResponses = {
|
|
|
6855
8993
|
path?: string
|
|
6856
8994
|
message: string
|
|
6857
8995
|
}>
|
|
6858
|
-
error?:
|
|
8996
|
+
error?: {
|
|
8997
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed"
|
|
8998
|
+
message: string
|
|
8999
|
+
retryable: boolean
|
|
9000
|
+
at: string
|
|
9001
|
+
/**
|
|
9002
|
+
* Any JSON-compatible value.
|
|
9003
|
+
*/
|
|
9004
|
+
details?:
|
|
9005
|
+
| string
|
|
9006
|
+
| number
|
|
9007
|
+
| boolean
|
|
9008
|
+
| Array<unknown>
|
|
9009
|
+
| {
|
|
9010
|
+
[key: string]: unknown
|
|
9011
|
+
}
|
|
9012
|
+
| null
|
|
9013
|
+
truncated?: true
|
|
9014
|
+
}
|
|
6859
9015
|
attempt: number
|
|
6860
9016
|
streamId: string
|
|
6861
9017
|
createdAt: string
|
|
@@ -6912,12 +9068,8 @@ export type GetAgentRunResponses = {
|
|
|
6912
9068
|
threadId: string
|
|
6913
9069
|
agentId: string
|
|
6914
9070
|
triggerMessageId: string
|
|
6915
|
-
|
|
6916
|
-
type: "user" | "serviceAccount"
|
|
6917
|
-
id: string
|
|
6918
|
-
}
|
|
6919
|
-
executionPrincipal?: {
|
|
6920
|
-
type: "user" | "serviceAccount" | "system"
|
|
9071
|
+
requestedBy?: {
|
|
9072
|
+
type: "user" | "serviceAccount"
|
|
6921
9073
|
id: string
|
|
6922
9074
|
}
|
|
6923
9075
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
@@ -6927,6 +9079,7 @@ export type GetAgentRunResponses = {
|
|
|
6927
9079
|
| "length"
|
|
6928
9080
|
| "content-filter"
|
|
6929
9081
|
| "tool-calls"
|
|
9082
|
+
| "timeout"
|
|
6930
9083
|
| "error"
|
|
6931
9084
|
| "other"
|
|
6932
9085
|
| "unknown"
|
|
@@ -6934,8 +9087,21 @@ export type GetAgentRunResponses = {
|
|
|
6934
9087
|
inputTokens?: number
|
|
6935
9088
|
outputTokens?: number
|
|
6936
9089
|
totalTokens?: number
|
|
6937
|
-
|
|
6938
|
-
|
|
9090
|
+
uncachedInputTokens?: number
|
|
9091
|
+
cacheReadInputTokens?: number
|
|
9092
|
+
cacheWriteInputTokens?: number
|
|
9093
|
+
textOutputTokens?: number
|
|
9094
|
+
reasoningOutputTokens?: number
|
|
9095
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
9096
|
+
}
|
|
9097
|
+
cost?: {
|
|
9098
|
+
amounts: Array<{
|
|
9099
|
+
currency: string
|
|
9100
|
+
amountNanos: string
|
|
9101
|
+
}>
|
|
9102
|
+
ratedCallCount: number
|
|
9103
|
+
unpriceableCallCount: number
|
|
9104
|
+
unvaluedCallCount: number
|
|
6939
9105
|
}
|
|
6940
9106
|
diagnostics?: Array<{
|
|
6941
9107
|
code:
|
|
@@ -6950,7 +9116,25 @@ export type GetAgentRunResponses = {
|
|
|
6950
9116
|
path?: string
|
|
6951
9117
|
message: string
|
|
6952
9118
|
}>
|
|
6953
|
-
error?:
|
|
9119
|
+
error?: {
|
|
9120
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed"
|
|
9121
|
+
message: string
|
|
9122
|
+
retryable: boolean
|
|
9123
|
+
at: string
|
|
9124
|
+
/**
|
|
9125
|
+
* Any JSON-compatible value.
|
|
9126
|
+
*/
|
|
9127
|
+
details?:
|
|
9128
|
+
| string
|
|
9129
|
+
| number
|
|
9130
|
+
| boolean
|
|
9131
|
+
| Array<unknown>
|
|
9132
|
+
| {
|
|
9133
|
+
[key: string]: unknown
|
|
9134
|
+
}
|
|
9135
|
+
| null
|
|
9136
|
+
truncated?: true
|
|
9137
|
+
}
|
|
6954
9138
|
attempt: number
|
|
6955
9139
|
streamId: string
|
|
6956
9140
|
createdAt: string
|
|
@@ -8394,19 +10578,51 @@ export type ListProjectionsResponses = {
|
|
|
8394
10578
|
targetObjectTypeId: string
|
|
8395
10579
|
}
|
|
8396
10580
|
}
|
|
10581
|
+
conflictResolution:
|
|
10582
|
+
| {
|
|
10583
|
+
strategy: "editsWin"
|
|
10584
|
+
}
|
|
10585
|
+
| {
|
|
10586
|
+
strategy: "mostRecent"
|
|
10587
|
+
sourceTimestamp: string
|
|
10588
|
+
}
|
|
8397
10589
|
latestRun:
|
|
8398
10590
|
| {
|
|
8399
10591
|
id: string
|
|
8400
10592
|
projectId: string
|
|
8401
|
-
|
|
10593
|
+
executionId: string
|
|
10594
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8402
10595
|
attempt: number
|
|
8403
10596
|
progress: {
|
|
8404
10597
|
sourceRowsRead: number
|
|
8405
10598
|
sourceRowsSkipped: number
|
|
8406
10599
|
}
|
|
8407
|
-
|
|
10600
|
+
queuedAt: string
|
|
10601
|
+
startedAt?: string
|
|
8408
10602
|
finishedAt?: string
|
|
8409
|
-
|
|
10603
|
+
error?: {
|
|
10604
|
+
code:
|
|
10605
|
+
| "internal.unexpected"
|
|
10606
|
+
| "runtime.cancelled"
|
|
10607
|
+
| "queue.enqueue_failed"
|
|
10608
|
+
| "projection.execution_failed"
|
|
10609
|
+
message: string
|
|
10610
|
+
retryable: boolean
|
|
10611
|
+
at: string
|
|
10612
|
+
/**
|
|
10613
|
+
* Any JSON-compatible value.
|
|
10614
|
+
*/
|
|
10615
|
+
details?:
|
|
10616
|
+
| string
|
|
10617
|
+
| number
|
|
10618
|
+
| boolean
|
|
10619
|
+
| Array<unknown>
|
|
10620
|
+
| {
|
|
10621
|
+
[key: string]: unknown
|
|
10622
|
+
}
|
|
10623
|
+
| null
|
|
10624
|
+
truncated?: true
|
|
10625
|
+
}
|
|
8410
10626
|
identity: {
|
|
8411
10627
|
projectionId: string
|
|
8412
10628
|
datasetVersion: {
|
|
@@ -8427,15 +10643,39 @@ export type ListProjectionsResponses = {
|
|
|
8427
10643
|
| {
|
|
8428
10644
|
id: string
|
|
8429
10645
|
projectId: string
|
|
8430
|
-
|
|
10646
|
+
executionId: string
|
|
10647
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8431
10648
|
attempt: number
|
|
8432
10649
|
progress: {
|
|
8433
10650
|
sourceRowsRead: number
|
|
8434
10651
|
sourceRowsSkipped: number
|
|
8435
10652
|
}
|
|
8436
|
-
|
|
10653
|
+
queuedAt: string
|
|
10654
|
+
startedAt?: string
|
|
8437
10655
|
finishedAt?: string
|
|
8438
|
-
|
|
10656
|
+
error?: {
|
|
10657
|
+
code:
|
|
10658
|
+
| "internal.unexpected"
|
|
10659
|
+
| "runtime.cancelled"
|
|
10660
|
+
| "queue.enqueue_failed"
|
|
10661
|
+
| "projection.execution_failed"
|
|
10662
|
+
message: string
|
|
10663
|
+
retryable: boolean
|
|
10664
|
+
at: string
|
|
10665
|
+
/**
|
|
10666
|
+
* Any JSON-compatible value.
|
|
10667
|
+
*/
|
|
10668
|
+
details?:
|
|
10669
|
+
| string
|
|
10670
|
+
| number
|
|
10671
|
+
| boolean
|
|
10672
|
+
| Array<unknown>
|
|
10673
|
+
| {
|
|
10674
|
+
[key: string]: unknown
|
|
10675
|
+
}
|
|
10676
|
+
| null
|
|
10677
|
+
truncated?: true
|
|
10678
|
+
}
|
|
8439
10679
|
identity: {
|
|
8440
10680
|
projectionId: string
|
|
8441
10681
|
datasetVersion: {
|
|
@@ -8457,15 +10697,39 @@ export type ListProjectionsResponses = {
|
|
|
8457
10697
|
| {
|
|
8458
10698
|
id: string
|
|
8459
10699
|
projectId: string
|
|
8460
|
-
|
|
10700
|
+
executionId: string
|
|
10701
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8461
10702
|
attempt: number
|
|
8462
10703
|
progress: {
|
|
8463
10704
|
sourceRowsRead: number
|
|
8464
10705
|
sourceRowsSkipped: number
|
|
8465
10706
|
}
|
|
8466
|
-
|
|
10707
|
+
queuedAt: string
|
|
10708
|
+
startedAt?: string
|
|
8467
10709
|
finishedAt?: string
|
|
8468
|
-
|
|
10710
|
+
error?: {
|
|
10711
|
+
code:
|
|
10712
|
+
| "internal.unexpected"
|
|
10713
|
+
| "runtime.cancelled"
|
|
10714
|
+
| "queue.enqueue_failed"
|
|
10715
|
+
| "projection.execution_failed"
|
|
10716
|
+
message: string
|
|
10717
|
+
retryable: boolean
|
|
10718
|
+
at: string
|
|
10719
|
+
/**
|
|
10720
|
+
* Any JSON-compatible value.
|
|
10721
|
+
*/
|
|
10722
|
+
details?:
|
|
10723
|
+
| string
|
|
10724
|
+
| number
|
|
10725
|
+
| boolean
|
|
10726
|
+
| Array<unknown>
|
|
10727
|
+
| {
|
|
10728
|
+
[key: string]: unknown
|
|
10729
|
+
}
|
|
10730
|
+
| null
|
|
10731
|
+
truncated?: true
|
|
10732
|
+
}
|
|
8469
10733
|
identity: {
|
|
8470
10734
|
projectionId: string
|
|
8471
10735
|
datasetVersion: {
|
|
@@ -8498,15 +10762,39 @@ export type ListProjectionsResponses = {
|
|
|
8498
10762
|
| {
|
|
8499
10763
|
id: string
|
|
8500
10764
|
projectId: string
|
|
8501
|
-
|
|
10765
|
+
executionId: string
|
|
10766
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8502
10767
|
attempt: number
|
|
8503
10768
|
progress: {
|
|
8504
10769
|
sourceRowsRead: number
|
|
8505
10770
|
sourceRowsSkipped: number
|
|
8506
10771
|
}
|
|
8507
|
-
|
|
10772
|
+
queuedAt: string
|
|
10773
|
+
startedAt?: string
|
|
8508
10774
|
finishedAt?: string
|
|
8509
|
-
|
|
10775
|
+
error?: {
|
|
10776
|
+
code:
|
|
10777
|
+
| "internal.unexpected"
|
|
10778
|
+
| "runtime.cancelled"
|
|
10779
|
+
| "queue.enqueue_failed"
|
|
10780
|
+
| "projection.execution_failed"
|
|
10781
|
+
message: string
|
|
10782
|
+
retryable: boolean
|
|
10783
|
+
at: string
|
|
10784
|
+
/**
|
|
10785
|
+
* Any JSON-compatible value.
|
|
10786
|
+
*/
|
|
10787
|
+
details?:
|
|
10788
|
+
| string
|
|
10789
|
+
| number
|
|
10790
|
+
| boolean
|
|
10791
|
+
| Array<unknown>
|
|
10792
|
+
| {
|
|
10793
|
+
[key: string]: unknown
|
|
10794
|
+
}
|
|
10795
|
+
| null
|
|
10796
|
+
truncated?: true
|
|
10797
|
+
}
|
|
8510
10798
|
identity: {
|
|
8511
10799
|
projectionId: string
|
|
8512
10800
|
datasetVersion: {
|
|
@@ -8527,15 +10815,39 @@ export type ListProjectionsResponses = {
|
|
|
8527
10815
|
| {
|
|
8528
10816
|
id: string
|
|
8529
10817
|
projectId: string
|
|
8530
|
-
|
|
10818
|
+
executionId: string
|
|
10819
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8531
10820
|
attempt: number
|
|
8532
10821
|
progress: {
|
|
8533
10822
|
sourceRowsRead: number
|
|
8534
10823
|
sourceRowsSkipped: number
|
|
8535
10824
|
}
|
|
8536
|
-
|
|
10825
|
+
queuedAt: string
|
|
10826
|
+
startedAt?: string
|
|
8537
10827
|
finishedAt?: string
|
|
8538
|
-
|
|
10828
|
+
error?: {
|
|
10829
|
+
code:
|
|
10830
|
+
| "internal.unexpected"
|
|
10831
|
+
| "runtime.cancelled"
|
|
10832
|
+
| "queue.enqueue_failed"
|
|
10833
|
+
| "projection.execution_failed"
|
|
10834
|
+
message: string
|
|
10835
|
+
retryable: boolean
|
|
10836
|
+
at: string
|
|
10837
|
+
/**
|
|
10838
|
+
* Any JSON-compatible value.
|
|
10839
|
+
*/
|
|
10840
|
+
details?:
|
|
10841
|
+
| string
|
|
10842
|
+
| number
|
|
10843
|
+
| boolean
|
|
10844
|
+
| Array<unknown>
|
|
10845
|
+
| {
|
|
10846
|
+
[key: string]: unknown
|
|
10847
|
+
}
|
|
10848
|
+
| null
|
|
10849
|
+
truncated?: true
|
|
10850
|
+
}
|
|
8539
10851
|
identity: {
|
|
8540
10852
|
projectionId: string
|
|
8541
10853
|
datasetVersion: {
|
|
@@ -8557,15 +10869,39 @@ export type ListProjectionsResponses = {
|
|
|
8557
10869
|
| {
|
|
8558
10870
|
id: string
|
|
8559
10871
|
projectId: string
|
|
8560
|
-
|
|
10872
|
+
executionId: string
|
|
10873
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8561
10874
|
attempt: number
|
|
8562
10875
|
progress: {
|
|
8563
10876
|
sourceRowsRead: number
|
|
8564
10877
|
sourceRowsSkipped: number
|
|
8565
10878
|
}
|
|
8566
|
-
|
|
10879
|
+
queuedAt: string
|
|
10880
|
+
startedAt?: string
|
|
8567
10881
|
finishedAt?: string
|
|
8568
|
-
|
|
10882
|
+
error?: {
|
|
10883
|
+
code:
|
|
10884
|
+
| "internal.unexpected"
|
|
10885
|
+
| "runtime.cancelled"
|
|
10886
|
+
| "queue.enqueue_failed"
|
|
10887
|
+
| "projection.execution_failed"
|
|
10888
|
+
message: string
|
|
10889
|
+
retryable: boolean
|
|
10890
|
+
at: string
|
|
10891
|
+
/**
|
|
10892
|
+
* Any JSON-compatible value.
|
|
10893
|
+
*/
|
|
10894
|
+
details?:
|
|
10895
|
+
| string
|
|
10896
|
+
| number
|
|
10897
|
+
| boolean
|
|
10898
|
+
| Array<unknown>
|
|
10899
|
+
| {
|
|
10900
|
+
[key: string]: unknown
|
|
10901
|
+
}
|
|
10902
|
+
| null
|
|
10903
|
+
truncated?: true
|
|
10904
|
+
}
|
|
8569
10905
|
identity: {
|
|
8570
10906
|
projectionId: string
|
|
8571
10907
|
datasetVersion: {
|
|
@@ -8599,15 +10935,39 @@ export type ListProjectionsResponses = {
|
|
|
8599
10935
|
| {
|
|
8600
10936
|
id: string
|
|
8601
10937
|
projectId: string
|
|
8602
|
-
|
|
10938
|
+
executionId: string
|
|
10939
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8603
10940
|
attempt: number
|
|
8604
10941
|
progress: {
|
|
8605
10942
|
sourceRowsRead: number
|
|
8606
10943
|
sourceRowsSkipped: number
|
|
8607
10944
|
}
|
|
8608
|
-
|
|
10945
|
+
queuedAt: string
|
|
10946
|
+
startedAt?: string
|
|
8609
10947
|
finishedAt?: string
|
|
8610
|
-
|
|
10948
|
+
error?: {
|
|
10949
|
+
code:
|
|
10950
|
+
| "internal.unexpected"
|
|
10951
|
+
| "runtime.cancelled"
|
|
10952
|
+
| "queue.enqueue_failed"
|
|
10953
|
+
| "projection.execution_failed"
|
|
10954
|
+
message: string
|
|
10955
|
+
retryable: boolean
|
|
10956
|
+
at: string
|
|
10957
|
+
/**
|
|
10958
|
+
* Any JSON-compatible value.
|
|
10959
|
+
*/
|
|
10960
|
+
details?:
|
|
10961
|
+
| string
|
|
10962
|
+
| number
|
|
10963
|
+
| boolean
|
|
10964
|
+
| Array<unknown>
|
|
10965
|
+
| {
|
|
10966
|
+
[key: string]: unknown
|
|
10967
|
+
}
|
|
10968
|
+
| null
|
|
10969
|
+
truncated?: true
|
|
10970
|
+
}
|
|
8611
10971
|
identity: {
|
|
8612
10972
|
projectionId: string
|
|
8613
10973
|
datasetVersion: {
|
|
@@ -8628,15 +10988,39 @@ export type ListProjectionsResponses = {
|
|
|
8628
10988
|
| {
|
|
8629
10989
|
id: string
|
|
8630
10990
|
projectId: string
|
|
8631
|
-
|
|
10991
|
+
executionId: string
|
|
10992
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8632
10993
|
attempt: number
|
|
8633
10994
|
progress: {
|
|
8634
10995
|
sourceRowsRead: number
|
|
8635
10996
|
sourceRowsSkipped: number
|
|
8636
10997
|
}
|
|
8637
|
-
|
|
10998
|
+
queuedAt: string
|
|
10999
|
+
startedAt?: string
|
|
8638
11000
|
finishedAt?: string
|
|
8639
|
-
|
|
11001
|
+
error?: {
|
|
11002
|
+
code:
|
|
11003
|
+
| "internal.unexpected"
|
|
11004
|
+
| "runtime.cancelled"
|
|
11005
|
+
| "queue.enqueue_failed"
|
|
11006
|
+
| "projection.execution_failed"
|
|
11007
|
+
message: string
|
|
11008
|
+
retryable: boolean
|
|
11009
|
+
at: string
|
|
11010
|
+
/**
|
|
11011
|
+
* Any JSON-compatible value.
|
|
11012
|
+
*/
|
|
11013
|
+
details?:
|
|
11014
|
+
| string
|
|
11015
|
+
| number
|
|
11016
|
+
| boolean
|
|
11017
|
+
| Array<unknown>
|
|
11018
|
+
| {
|
|
11019
|
+
[key: string]: unknown
|
|
11020
|
+
}
|
|
11021
|
+
| null
|
|
11022
|
+
truncated?: true
|
|
11023
|
+
}
|
|
8640
11024
|
identity: {
|
|
8641
11025
|
projectionId: string
|
|
8642
11026
|
datasetVersion: {
|
|
@@ -8658,15 +11042,39 @@ export type ListProjectionsResponses = {
|
|
|
8658
11042
|
| {
|
|
8659
11043
|
id: string
|
|
8660
11044
|
projectId: string
|
|
8661
|
-
|
|
11045
|
+
executionId: string
|
|
11046
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8662
11047
|
attempt: number
|
|
8663
11048
|
progress: {
|
|
8664
11049
|
sourceRowsRead: number
|
|
8665
11050
|
sourceRowsSkipped: number
|
|
8666
11051
|
}
|
|
8667
|
-
|
|
11052
|
+
queuedAt: string
|
|
11053
|
+
startedAt?: string
|
|
8668
11054
|
finishedAt?: string
|
|
8669
|
-
|
|
11055
|
+
error?: {
|
|
11056
|
+
code:
|
|
11057
|
+
| "internal.unexpected"
|
|
11058
|
+
| "runtime.cancelled"
|
|
11059
|
+
| "queue.enqueue_failed"
|
|
11060
|
+
| "projection.execution_failed"
|
|
11061
|
+
message: string
|
|
11062
|
+
retryable: boolean
|
|
11063
|
+
at: string
|
|
11064
|
+
/**
|
|
11065
|
+
* Any JSON-compatible value.
|
|
11066
|
+
*/
|
|
11067
|
+
details?:
|
|
11068
|
+
| string
|
|
11069
|
+
| number
|
|
11070
|
+
| boolean
|
|
11071
|
+
| Array<unknown>
|
|
11072
|
+
| {
|
|
11073
|
+
[key: string]: unknown
|
|
11074
|
+
}
|
|
11075
|
+
| null
|
|
11076
|
+
truncated?: true
|
|
11077
|
+
}
|
|
8670
11078
|
identity: {
|
|
8671
11079
|
projectionId: string
|
|
8672
11080
|
datasetVersion: {
|
|
@@ -8732,19 +11140,51 @@ export type GetProjectionResponses = {
|
|
|
8732
11140
|
targetObjectTypeId: string
|
|
8733
11141
|
}
|
|
8734
11142
|
}
|
|
11143
|
+
conflictResolution:
|
|
11144
|
+
| {
|
|
11145
|
+
strategy: "editsWin"
|
|
11146
|
+
}
|
|
11147
|
+
| {
|
|
11148
|
+
strategy: "mostRecent"
|
|
11149
|
+
sourceTimestamp: string
|
|
11150
|
+
}
|
|
8735
11151
|
latestRun:
|
|
8736
11152
|
| {
|
|
8737
11153
|
id: string
|
|
8738
11154
|
projectId: string
|
|
8739
|
-
|
|
11155
|
+
executionId: string
|
|
11156
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8740
11157
|
attempt: number
|
|
8741
11158
|
progress: {
|
|
8742
11159
|
sourceRowsRead: number
|
|
8743
11160
|
sourceRowsSkipped: number
|
|
8744
11161
|
}
|
|
8745
|
-
|
|
11162
|
+
queuedAt: string
|
|
11163
|
+
startedAt?: string
|
|
8746
11164
|
finishedAt?: string
|
|
8747
|
-
|
|
11165
|
+
error?: {
|
|
11166
|
+
code:
|
|
11167
|
+
| "internal.unexpected"
|
|
11168
|
+
| "runtime.cancelled"
|
|
11169
|
+
| "queue.enqueue_failed"
|
|
11170
|
+
| "projection.execution_failed"
|
|
11171
|
+
message: string
|
|
11172
|
+
retryable: boolean
|
|
11173
|
+
at: string
|
|
11174
|
+
/**
|
|
11175
|
+
* Any JSON-compatible value.
|
|
11176
|
+
*/
|
|
11177
|
+
details?:
|
|
11178
|
+
| string
|
|
11179
|
+
| number
|
|
11180
|
+
| boolean
|
|
11181
|
+
| Array<unknown>
|
|
11182
|
+
| {
|
|
11183
|
+
[key: string]: unknown
|
|
11184
|
+
}
|
|
11185
|
+
| null
|
|
11186
|
+
truncated?: true
|
|
11187
|
+
}
|
|
8748
11188
|
identity: {
|
|
8749
11189
|
projectionId: string
|
|
8750
11190
|
datasetVersion: {
|
|
@@ -8765,15 +11205,39 @@ export type GetProjectionResponses = {
|
|
|
8765
11205
|
| {
|
|
8766
11206
|
id: string
|
|
8767
11207
|
projectId: string
|
|
8768
|
-
|
|
11208
|
+
executionId: string
|
|
11209
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8769
11210
|
attempt: number
|
|
8770
11211
|
progress: {
|
|
8771
11212
|
sourceRowsRead: number
|
|
8772
11213
|
sourceRowsSkipped: number
|
|
8773
11214
|
}
|
|
8774
|
-
|
|
11215
|
+
queuedAt: string
|
|
11216
|
+
startedAt?: string
|
|
8775
11217
|
finishedAt?: string
|
|
8776
|
-
|
|
11218
|
+
error?: {
|
|
11219
|
+
code:
|
|
11220
|
+
| "internal.unexpected"
|
|
11221
|
+
| "runtime.cancelled"
|
|
11222
|
+
| "queue.enqueue_failed"
|
|
11223
|
+
| "projection.execution_failed"
|
|
11224
|
+
message: string
|
|
11225
|
+
retryable: boolean
|
|
11226
|
+
at: string
|
|
11227
|
+
/**
|
|
11228
|
+
* Any JSON-compatible value.
|
|
11229
|
+
*/
|
|
11230
|
+
details?:
|
|
11231
|
+
| string
|
|
11232
|
+
| number
|
|
11233
|
+
| boolean
|
|
11234
|
+
| Array<unknown>
|
|
11235
|
+
| {
|
|
11236
|
+
[key: string]: unknown
|
|
11237
|
+
}
|
|
11238
|
+
| null
|
|
11239
|
+
truncated?: true
|
|
11240
|
+
}
|
|
8777
11241
|
identity: {
|
|
8778
11242
|
projectionId: string
|
|
8779
11243
|
datasetVersion: {
|
|
@@ -8795,15 +11259,39 @@ export type GetProjectionResponses = {
|
|
|
8795
11259
|
| {
|
|
8796
11260
|
id: string
|
|
8797
11261
|
projectId: string
|
|
8798
|
-
|
|
11262
|
+
executionId: string
|
|
11263
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8799
11264
|
attempt: number
|
|
8800
11265
|
progress: {
|
|
8801
11266
|
sourceRowsRead: number
|
|
8802
11267
|
sourceRowsSkipped: number
|
|
8803
11268
|
}
|
|
8804
|
-
|
|
11269
|
+
queuedAt: string
|
|
11270
|
+
startedAt?: string
|
|
8805
11271
|
finishedAt?: string
|
|
8806
|
-
|
|
11272
|
+
error?: {
|
|
11273
|
+
code:
|
|
11274
|
+
| "internal.unexpected"
|
|
11275
|
+
| "runtime.cancelled"
|
|
11276
|
+
| "queue.enqueue_failed"
|
|
11277
|
+
| "projection.execution_failed"
|
|
11278
|
+
message: string
|
|
11279
|
+
retryable: boolean
|
|
11280
|
+
at: string
|
|
11281
|
+
/**
|
|
11282
|
+
* Any JSON-compatible value.
|
|
11283
|
+
*/
|
|
11284
|
+
details?:
|
|
11285
|
+
| string
|
|
11286
|
+
| number
|
|
11287
|
+
| boolean
|
|
11288
|
+
| Array<unknown>
|
|
11289
|
+
| {
|
|
11290
|
+
[key: string]: unknown
|
|
11291
|
+
}
|
|
11292
|
+
| null
|
|
11293
|
+
truncated?: true
|
|
11294
|
+
}
|
|
8807
11295
|
identity: {
|
|
8808
11296
|
projectionId: string
|
|
8809
11297
|
datasetVersion: {
|
|
@@ -8836,15 +11324,39 @@ export type GetProjectionResponses = {
|
|
|
8836
11324
|
| {
|
|
8837
11325
|
id: string
|
|
8838
11326
|
projectId: string
|
|
8839
|
-
|
|
11327
|
+
executionId: string
|
|
11328
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8840
11329
|
attempt: number
|
|
8841
11330
|
progress: {
|
|
8842
11331
|
sourceRowsRead: number
|
|
8843
11332
|
sourceRowsSkipped: number
|
|
8844
11333
|
}
|
|
8845
|
-
|
|
11334
|
+
queuedAt: string
|
|
11335
|
+
startedAt?: string
|
|
8846
11336
|
finishedAt?: string
|
|
8847
|
-
|
|
11337
|
+
error?: {
|
|
11338
|
+
code:
|
|
11339
|
+
| "internal.unexpected"
|
|
11340
|
+
| "runtime.cancelled"
|
|
11341
|
+
| "queue.enqueue_failed"
|
|
11342
|
+
| "projection.execution_failed"
|
|
11343
|
+
message: string
|
|
11344
|
+
retryable: boolean
|
|
11345
|
+
at: string
|
|
11346
|
+
/**
|
|
11347
|
+
* Any JSON-compatible value.
|
|
11348
|
+
*/
|
|
11349
|
+
details?:
|
|
11350
|
+
| string
|
|
11351
|
+
| number
|
|
11352
|
+
| boolean
|
|
11353
|
+
| Array<unknown>
|
|
11354
|
+
| {
|
|
11355
|
+
[key: string]: unknown
|
|
11356
|
+
}
|
|
11357
|
+
| null
|
|
11358
|
+
truncated?: true
|
|
11359
|
+
}
|
|
8848
11360
|
identity: {
|
|
8849
11361
|
projectionId: string
|
|
8850
11362
|
datasetVersion: {
|
|
@@ -8865,15 +11377,39 @@ export type GetProjectionResponses = {
|
|
|
8865
11377
|
| {
|
|
8866
11378
|
id: string
|
|
8867
11379
|
projectId: string
|
|
8868
|
-
|
|
11380
|
+
executionId: string
|
|
11381
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8869
11382
|
attempt: number
|
|
8870
11383
|
progress: {
|
|
8871
11384
|
sourceRowsRead: number
|
|
8872
11385
|
sourceRowsSkipped: number
|
|
8873
11386
|
}
|
|
8874
|
-
|
|
11387
|
+
queuedAt: string
|
|
11388
|
+
startedAt?: string
|
|
8875
11389
|
finishedAt?: string
|
|
8876
|
-
|
|
11390
|
+
error?: {
|
|
11391
|
+
code:
|
|
11392
|
+
| "internal.unexpected"
|
|
11393
|
+
| "runtime.cancelled"
|
|
11394
|
+
| "queue.enqueue_failed"
|
|
11395
|
+
| "projection.execution_failed"
|
|
11396
|
+
message: string
|
|
11397
|
+
retryable: boolean
|
|
11398
|
+
at: string
|
|
11399
|
+
/**
|
|
11400
|
+
* Any JSON-compatible value.
|
|
11401
|
+
*/
|
|
11402
|
+
details?:
|
|
11403
|
+
| string
|
|
11404
|
+
| number
|
|
11405
|
+
| boolean
|
|
11406
|
+
| Array<unknown>
|
|
11407
|
+
| {
|
|
11408
|
+
[key: string]: unknown
|
|
11409
|
+
}
|
|
11410
|
+
| null
|
|
11411
|
+
truncated?: true
|
|
11412
|
+
}
|
|
8877
11413
|
identity: {
|
|
8878
11414
|
projectionId: string
|
|
8879
11415
|
datasetVersion: {
|
|
@@ -8895,15 +11431,39 @@ export type GetProjectionResponses = {
|
|
|
8895
11431
|
| {
|
|
8896
11432
|
id: string
|
|
8897
11433
|
projectId: string
|
|
8898
|
-
|
|
11434
|
+
executionId: string
|
|
11435
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8899
11436
|
attempt: number
|
|
8900
11437
|
progress: {
|
|
8901
11438
|
sourceRowsRead: number
|
|
8902
11439
|
sourceRowsSkipped: number
|
|
8903
11440
|
}
|
|
8904
|
-
|
|
11441
|
+
queuedAt: string
|
|
11442
|
+
startedAt?: string
|
|
8905
11443
|
finishedAt?: string
|
|
8906
|
-
|
|
11444
|
+
error?: {
|
|
11445
|
+
code:
|
|
11446
|
+
| "internal.unexpected"
|
|
11447
|
+
| "runtime.cancelled"
|
|
11448
|
+
| "queue.enqueue_failed"
|
|
11449
|
+
| "projection.execution_failed"
|
|
11450
|
+
message: string
|
|
11451
|
+
retryable: boolean
|
|
11452
|
+
at: string
|
|
11453
|
+
/**
|
|
11454
|
+
* Any JSON-compatible value.
|
|
11455
|
+
*/
|
|
11456
|
+
details?:
|
|
11457
|
+
| string
|
|
11458
|
+
| number
|
|
11459
|
+
| boolean
|
|
11460
|
+
| Array<unknown>
|
|
11461
|
+
| {
|
|
11462
|
+
[key: string]: unknown
|
|
11463
|
+
}
|
|
11464
|
+
| null
|
|
11465
|
+
truncated?: true
|
|
11466
|
+
}
|
|
8907
11467
|
identity: {
|
|
8908
11468
|
projectionId: string
|
|
8909
11469
|
datasetVersion: {
|
|
@@ -8937,15 +11497,39 @@ export type GetProjectionResponses = {
|
|
|
8937
11497
|
| {
|
|
8938
11498
|
id: string
|
|
8939
11499
|
projectId: string
|
|
8940
|
-
|
|
11500
|
+
executionId: string
|
|
11501
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8941
11502
|
attempt: number
|
|
8942
11503
|
progress: {
|
|
8943
11504
|
sourceRowsRead: number
|
|
8944
11505
|
sourceRowsSkipped: number
|
|
8945
11506
|
}
|
|
8946
|
-
|
|
11507
|
+
queuedAt: string
|
|
11508
|
+
startedAt?: string
|
|
8947
11509
|
finishedAt?: string
|
|
8948
|
-
|
|
11510
|
+
error?: {
|
|
11511
|
+
code:
|
|
11512
|
+
| "internal.unexpected"
|
|
11513
|
+
| "runtime.cancelled"
|
|
11514
|
+
| "queue.enqueue_failed"
|
|
11515
|
+
| "projection.execution_failed"
|
|
11516
|
+
message: string
|
|
11517
|
+
retryable: boolean
|
|
11518
|
+
at: string
|
|
11519
|
+
/**
|
|
11520
|
+
* Any JSON-compatible value.
|
|
11521
|
+
*/
|
|
11522
|
+
details?:
|
|
11523
|
+
| string
|
|
11524
|
+
| number
|
|
11525
|
+
| boolean
|
|
11526
|
+
| Array<unknown>
|
|
11527
|
+
| {
|
|
11528
|
+
[key: string]: unknown
|
|
11529
|
+
}
|
|
11530
|
+
| null
|
|
11531
|
+
truncated?: true
|
|
11532
|
+
}
|
|
8949
11533
|
identity: {
|
|
8950
11534
|
projectionId: string
|
|
8951
11535
|
datasetVersion: {
|
|
@@ -8966,15 +11550,39 @@ export type GetProjectionResponses = {
|
|
|
8966
11550
|
| {
|
|
8967
11551
|
id: string
|
|
8968
11552
|
projectId: string
|
|
8969
|
-
|
|
11553
|
+
executionId: string
|
|
11554
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
8970
11555
|
attempt: number
|
|
8971
11556
|
progress: {
|
|
8972
11557
|
sourceRowsRead: number
|
|
8973
11558
|
sourceRowsSkipped: number
|
|
8974
11559
|
}
|
|
8975
|
-
|
|
11560
|
+
queuedAt: string
|
|
11561
|
+
startedAt?: string
|
|
8976
11562
|
finishedAt?: string
|
|
8977
|
-
|
|
11563
|
+
error?: {
|
|
11564
|
+
code:
|
|
11565
|
+
| "internal.unexpected"
|
|
11566
|
+
| "runtime.cancelled"
|
|
11567
|
+
| "queue.enqueue_failed"
|
|
11568
|
+
| "projection.execution_failed"
|
|
11569
|
+
message: string
|
|
11570
|
+
retryable: boolean
|
|
11571
|
+
at: string
|
|
11572
|
+
/**
|
|
11573
|
+
* Any JSON-compatible value.
|
|
11574
|
+
*/
|
|
11575
|
+
details?:
|
|
11576
|
+
| string
|
|
11577
|
+
| number
|
|
11578
|
+
| boolean
|
|
11579
|
+
| Array<unknown>
|
|
11580
|
+
| {
|
|
11581
|
+
[key: string]: unknown
|
|
11582
|
+
}
|
|
11583
|
+
| null
|
|
11584
|
+
truncated?: true
|
|
11585
|
+
}
|
|
8978
11586
|
identity: {
|
|
8979
11587
|
projectionId: string
|
|
8980
11588
|
datasetVersion: {
|
|
@@ -8996,15 +11604,39 @@ export type GetProjectionResponses = {
|
|
|
8996
11604
|
| {
|
|
8997
11605
|
id: string
|
|
8998
11606
|
projectId: string
|
|
8999
|
-
|
|
11607
|
+
executionId: string
|
|
11608
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9000
11609
|
attempt: number
|
|
9001
11610
|
progress: {
|
|
9002
11611
|
sourceRowsRead: number
|
|
9003
11612
|
sourceRowsSkipped: number
|
|
9004
11613
|
}
|
|
9005
|
-
|
|
11614
|
+
queuedAt: string
|
|
11615
|
+
startedAt?: string
|
|
9006
11616
|
finishedAt?: string
|
|
9007
|
-
|
|
11617
|
+
error?: {
|
|
11618
|
+
code:
|
|
11619
|
+
| "internal.unexpected"
|
|
11620
|
+
| "runtime.cancelled"
|
|
11621
|
+
| "queue.enqueue_failed"
|
|
11622
|
+
| "projection.execution_failed"
|
|
11623
|
+
message: string
|
|
11624
|
+
retryable: boolean
|
|
11625
|
+
at: string
|
|
11626
|
+
/**
|
|
11627
|
+
* Any JSON-compatible value.
|
|
11628
|
+
*/
|
|
11629
|
+
details?:
|
|
11630
|
+
| string
|
|
11631
|
+
| number
|
|
11632
|
+
| boolean
|
|
11633
|
+
| Array<unknown>
|
|
11634
|
+
| {
|
|
11635
|
+
[key: string]: unknown
|
|
11636
|
+
}
|
|
11637
|
+
| null
|
|
11638
|
+
truncated?: true
|
|
11639
|
+
}
|
|
9008
11640
|
identity: {
|
|
9009
11641
|
projectionId: string
|
|
9010
11642
|
datasetVersion: {
|
|
@@ -9036,7 +11668,7 @@ export type ListProjectionRunsData = {
|
|
|
9036
11668
|
projectionKind?: "object" | "link" | "telemetry"
|
|
9037
11669
|
datasetId?: string
|
|
9038
11670
|
datasetVersionId?: string
|
|
9039
|
-
status?: "running" | "succeeded" | "failed" | "cancelled"
|
|
11671
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9040
11672
|
startedAfter?: string
|
|
9041
11673
|
startedBefore?: string
|
|
9042
11674
|
limit?: string
|
|
@@ -9072,15 +11704,39 @@ export type ListProjectionRunsResponses = {
|
|
|
9072
11704
|
| {
|
|
9073
11705
|
id: string
|
|
9074
11706
|
projectId: string
|
|
9075
|
-
|
|
11707
|
+
executionId: string
|
|
11708
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9076
11709
|
attempt: number
|
|
9077
11710
|
progress: {
|
|
9078
11711
|
sourceRowsRead: number
|
|
9079
11712
|
sourceRowsSkipped: number
|
|
9080
11713
|
}
|
|
9081
|
-
|
|
11714
|
+
queuedAt: string
|
|
11715
|
+
startedAt?: string
|
|
9082
11716
|
finishedAt?: string
|
|
9083
|
-
|
|
11717
|
+
error?: {
|
|
11718
|
+
code:
|
|
11719
|
+
| "internal.unexpected"
|
|
11720
|
+
| "runtime.cancelled"
|
|
11721
|
+
| "queue.enqueue_failed"
|
|
11722
|
+
| "projection.execution_failed"
|
|
11723
|
+
message: string
|
|
11724
|
+
retryable: boolean
|
|
11725
|
+
at: string
|
|
11726
|
+
/**
|
|
11727
|
+
* Any JSON-compatible value.
|
|
11728
|
+
*/
|
|
11729
|
+
details?:
|
|
11730
|
+
| string
|
|
11731
|
+
| number
|
|
11732
|
+
| boolean
|
|
11733
|
+
| Array<unknown>
|
|
11734
|
+
| {
|
|
11735
|
+
[key: string]: unknown
|
|
11736
|
+
}
|
|
11737
|
+
| null
|
|
11738
|
+
truncated?: true
|
|
11739
|
+
}
|
|
9084
11740
|
identity: {
|
|
9085
11741
|
projectionId: string
|
|
9086
11742
|
datasetVersion: {
|
|
@@ -9101,15 +11757,39 @@ export type ListProjectionRunsResponses = {
|
|
|
9101
11757
|
| {
|
|
9102
11758
|
id: string
|
|
9103
11759
|
projectId: string
|
|
9104
|
-
|
|
11760
|
+
executionId: string
|
|
11761
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9105
11762
|
attempt: number
|
|
9106
11763
|
progress: {
|
|
9107
11764
|
sourceRowsRead: number
|
|
9108
11765
|
sourceRowsSkipped: number
|
|
9109
11766
|
}
|
|
9110
|
-
|
|
11767
|
+
queuedAt: string
|
|
11768
|
+
startedAt?: string
|
|
9111
11769
|
finishedAt?: string
|
|
9112
|
-
|
|
11770
|
+
error?: {
|
|
11771
|
+
code:
|
|
11772
|
+
| "internal.unexpected"
|
|
11773
|
+
| "runtime.cancelled"
|
|
11774
|
+
| "queue.enqueue_failed"
|
|
11775
|
+
| "projection.execution_failed"
|
|
11776
|
+
message: string
|
|
11777
|
+
retryable: boolean
|
|
11778
|
+
at: string
|
|
11779
|
+
/**
|
|
11780
|
+
* Any JSON-compatible value.
|
|
11781
|
+
*/
|
|
11782
|
+
details?:
|
|
11783
|
+
| string
|
|
11784
|
+
| number
|
|
11785
|
+
| boolean
|
|
11786
|
+
| Array<unknown>
|
|
11787
|
+
| {
|
|
11788
|
+
[key: string]: unknown
|
|
11789
|
+
}
|
|
11790
|
+
| null
|
|
11791
|
+
truncated?: true
|
|
11792
|
+
}
|
|
9113
11793
|
identity: {
|
|
9114
11794
|
projectionId: string
|
|
9115
11795
|
datasetVersion: {
|
|
@@ -9131,15 +11811,39 @@ export type ListProjectionRunsResponses = {
|
|
|
9131
11811
|
| {
|
|
9132
11812
|
id: string
|
|
9133
11813
|
projectId: string
|
|
9134
|
-
|
|
11814
|
+
executionId: string
|
|
11815
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9135
11816
|
attempt: number
|
|
9136
11817
|
progress: {
|
|
9137
11818
|
sourceRowsRead: number
|
|
9138
11819
|
sourceRowsSkipped: number
|
|
9139
11820
|
}
|
|
9140
|
-
|
|
11821
|
+
queuedAt: string
|
|
11822
|
+
startedAt?: string
|
|
9141
11823
|
finishedAt?: string
|
|
9142
|
-
|
|
11824
|
+
error?: {
|
|
11825
|
+
code:
|
|
11826
|
+
| "internal.unexpected"
|
|
11827
|
+
| "runtime.cancelled"
|
|
11828
|
+
| "queue.enqueue_failed"
|
|
11829
|
+
| "projection.execution_failed"
|
|
11830
|
+
message: string
|
|
11831
|
+
retryable: boolean
|
|
11832
|
+
at: string
|
|
11833
|
+
/**
|
|
11834
|
+
* Any JSON-compatible value.
|
|
11835
|
+
*/
|
|
11836
|
+
details?:
|
|
11837
|
+
| string
|
|
11838
|
+
| number
|
|
11839
|
+
| boolean
|
|
11840
|
+
| Array<unknown>
|
|
11841
|
+
| {
|
|
11842
|
+
[key: string]: unknown
|
|
11843
|
+
}
|
|
11844
|
+
| null
|
|
11845
|
+
truncated?: true
|
|
11846
|
+
}
|
|
9143
11847
|
identity: {
|
|
9144
11848
|
projectionId: string
|
|
9145
11849
|
datasetVersion: {
|
|
@@ -9206,15 +11910,39 @@ export type GetProjectionRunResponses = {
|
|
|
9206
11910
|
| {
|
|
9207
11911
|
id: string
|
|
9208
11912
|
projectId: string
|
|
9209
|
-
|
|
11913
|
+
executionId: string
|
|
11914
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9210
11915
|
attempt: number
|
|
9211
11916
|
progress: {
|
|
9212
11917
|
sourceRowsRead: number
|
|
9213
11918
|
sourceRowsSkipped: number
|
|
9214
11919
|
}
|
|
9215
|
-
|
|
11920
|
+
queuedAt: string
|
|
11921
|
+
startedAt?: string
|
|
9216
11922
|
finishedAt?: string
|
|
9217
|
-
|
|
11923
|
+
error?: {
|
|
11924
|
+
code:
|
|
11925
|
+
| "internal.unexpected"
|
|
11926
|
+
| "runtime.cancelled"
|
|
11927
|
+
| "queue.enqueue_failed"
|
|
11928
|
+
| "projection.execution_failed"
|
|
11929
|
+
message: string
|
|
11930
|
+
retryable: boolean
|
|
11931
|
+
at: string
|
|
11932
|
+
/**
|
|
11933
|
+
* Any JSON-compatible value.
|
|
11934
|
+
*/
|
|
11935
|
+
details?:
|
|
11936
|
+
| string
|
|
11937
|
+
| number
|
|
11938
|
+
| boolean
|
|
11939
|
+
| Array<unknown>
|
|
11940
|
+
| {
|
|
11941
|
+
[key: string]: unknown
|
|
11942
|
+
}
|
|
11943
|
+
| null
|
|
11944
|
+
truncated?: true
|
|
11945
|
+
}
|
|
9218
11946
|
identity: {
|
|
9219
11947
|
projectionId: string
|
|
9220
11948
|
datasetVersion: {
|
|
@@ -9235,15 +11963,39 @@ export type GetProjectionRunResponses = {
|
|
|
9235
11963
|
| {
|
|
9236
11964
|
id: string
|
|
9237
11965
|
projectId: string
|
|
9238
|
-
|
|
11966
|
+
executionId: string
|
|
11967
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9239
11968
|
attempt: number
|
|
9240
11969
|
progress: {
|
|
9241
11970
|
sourceRowsRead: number
|
|
9242
11971
|
sourceRowsSkipped: number
|
|
9243
11972
|
}
|
|
9244
|
-
|
|
11973
|
+
queuedAt: string
|
|
11974
|
+
startedAt?: string
|
|
9245
11975
|
finishedAt?: string
|
|
9246
|
-
|
|
11976
|
+
error?: {
|
|
11977
|
+
code:
|
|
11978
|
+
| "internal.unexpected"
|
|
11979
|
+
| "runtime.cancelled"
|
|
11980
|
+
| "queue.enqueue_failed"
|
|
11981
|
+
| "projection.execution_failed"
|
|
11982
|
+
message: string
|
|
11983
|
+
retryable: boolean
|
|
11984
|
+
at: string
|
|
11985
|
+
/**
|
|
11986
|
+
* Any JSON-compatible value.
|
|
11987
|
+
*/
|
|
11988
|
+
details?:
|
|
11989
|
+
| string
|
|
11990
|
+
| number
|
|
11991
|
+
| boolean
|
|
11992
|
+
| Array<unknown>
|
|
11993
|
+
| {
|
|
11994
|
+
[key: string]: unknown
|
|
11995
|
+
}
|
|
11996
|
+
| null
|
|
11997
|
+
truncated?: true
|
|
11998
|
+
}
|
|
9247
11999
|
identity: {
|
|
9248
12000
|
projectionId: string
|
|
9249
12001
|
datasetVersion: {
|
|
@@ -9265,15 +12017,39 @@ export type GetProjectionRunResponses = {
|
|
|
9265
12017
|
| {
|
|
9266
12018
|
id: string
|
|
9267
12019
|
projectId: string
|
|
9268
|
-
|
|
12020
|
+
executionId: string
|
|
12021
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9269
12022
|
attempt: number
|
|
9270
12023
|
progress: {
|
|
9271
12024
|
sourceRowsRead: number
|
|
9272
12025
|
sourceRowsSkipped: number
|
|
9273
12026
|
}
|
|
9274
|
-
|
|
12027
|
+
queuedAt: string
|
|
12028
|
+
startedAt?: string
|
|
9275
12029
|
finishedAt?: string
|
|
9276
|
-
|
|
12030
|
+
error?: {
|
|
12031
|
+
code:
|
|
12032
|
+
| "internal.unexpected"
|
|
12033
|
+
| "runtime.cancelled"
|
|
12034
|
+
| "queue.enqueue_failed"
|
|
12035
|
+
| "projection.execution_failed"
|
|
12036
|
+
message: string
|
|
12037
|
+
retryable: boolean
|
|
12038
|
+
at: string
|
|
12039
|
+
/**
|
|
12040
|
+
* Any JSON-compatible value.
|
|
12041
|
+
*/
|
|
12042
|
+
details?:
|
|
12043
|
+
| string
|
|
12044
|
+
| number
|
|
12045
|
+
| boolean
|
|
12046
|
+
| Array<unknown>
|
|
12047
|
+
| {
|
|
12048
|
+
[key: string]: unknown
|
|
12049
|
+
}
|
|
12050
|
+
| null
|
|
12051
|
+
truncated?: true
|
|
12052
|
+
}
|
|
9277
12053
|
identity: {
|
|
9278
12054
|
projectionId: string
|
|
9279
12055
|
datasetVersion: {
|
|
@@ -9301,7 +12077,7 @@ export type ListWebhookRunsData = {
|
|
|
9301
12077
|
query?: {
|
|
9302
12078
|
connectorId?: string
|
|
9303
12079
|
webhookId?: string
|
|
9304
|
-
status?: "running" | "succeeded" | "failed"
|
|
12080
|
+
status?: "running" | "succeeded" | "failed"
|
|
9305
12081
|
idempotencyKey?: string
|
|
9306
12082
|
startedAfter?: string
|
|
9307
12083
|
startedBefore?: string
|
|
@@ -9337,18 +12113,36 @@ export type ListWebhookRunsResponses = {
|
|
|
9337
12113
|
runs: Array<{
|
|
9338
12114
|
id: string
|
|
9339
12115
|
projectId: string
|
|
12116
|
+
executionId: string
|
|
9340
12117
|
connectorId: string
|
|
9341
12118
|
webhookId: string
|
|
9342
|
-
status: "running" | "succeeded" | "failed"
|
|
12119
|
+
status: "running" | "succeeded" | "failed"
|
|
9343
12120
|
method: string
|
|
9344
12121
|
route: string
|
|
9345
12122
|
startedAt: string
|
|
9346
12123
|
finishedAt?: string
|
|
9347
|
-
requestBodyBytes
|
|
12124
|
+
requestBodyBytes: number
|
|
9348
12125
|
responseStatus?: number
|
|
9349
12126
|
idempotencyKey?: string
|
|
9350
|
-
|
|
9351
|
-
|
|
12127
|
+
error?: {
|
|
12128
|
+
code: "internal.unexpected" | "webhook.delivery_failed" | "webhook.delivery_rejected"
|
|
12129
|
+
message: string
|
|
12130
|
+
retryable: boolean
|
|
12131
|
+
at: string
|
|
12132
|
+
/**
|
|
12133
|
+
* Any JSON-compatible value.
|
|
12134
|
+
*/
|
|
12135
|
+
details?:
|
|
12136
|
+
| string
|
|
12137
|
+
| number
|
|
12138
|
+
| boolean
|
|
12139
|
+
| Array<unknown>
|
|
12140
|
+
| {
|
|
12141
|
+
[key: string]: unknown
|
|
12142
|
+
}
|
|
12143
|
+
| null
|
|
12144
|
+
truncated?: true
|
|
12145
|
+
}
|
|
9352
12146
|
}>
|
|
9353
12147
|
hasMore: boolean
|
|
9354
12148
|
total: number
|