@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
|
@@ -1390,6 +1390,308 @@ export type ReactivateAuthMemberResponses = {
|
|
|
1390
1390
|
};
|
|
1391
1391
|
};
|
|
1392
1392
|
export type ReactivateAuthMemberResponse = ReactivateAuthMemberResponses[keyof ReactivateAuthMemberResponses];
|
|
1393
|
+
export type GetAiAccountingOverviewData = {
|
|
1394
|
+
body?: never;
|
|
1395
|
+
path?: never;
|
|
1396
|
+
query: {
|
|
1397
|
+
from: string;
|
|
1398
|
+
to: string;
|
|
1399
|
+
providerId?: string;
|
|
1400
|
+
modelId?: string;
|
|
1401
|
+
bucket: "hour" | "day" | "week";
|
|
1402
|
+
};
|
|
1403
|
+
url: "/api/ai/accounting/overview";
|
|
1404
|
+
};
|
|
1405
|
+
export type GetAiAccountingOverviewErrors = {
|
|
1406
|
+
/**
|
|
1407
|
+
* Response for status 400
|
|
1408
|
+
*/
|
|
1409
|
+
400: {
|
|
1410
|
+
error: string;
|
|
1411
|
+
};
|
|
1412
|
+
/**
|
|
1413
|
+
* Response for status 501
|
|
1414
|
+
*/
|
|
1415
|
+
501: {
|
|
1416
|
+
error: string;
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
export type GetAiAccountingOverviewError = GetAiAccountingOverviewErrors[keyof GetAiAccountingOverviewErrors];
|
|
1420
|
+
export type GetAiAccountingOverviewResponses = {
|
|
1421
|
+
/**
|
|
1422
|
+
* Response for status 200
|
|
1423
|
+
*/
|
|
1424
|
+
200: {
|
|
1425
|
+
range: {
|
|
1426
|
+
from: string;
|
|
1427
|
+
to: string;
|
|
1428
|
+
};
|
|
1429
|
+
bucket: "hour" | "day" | "week";
|
|
1430
|
+
totals: {
|
|
1431
|
+
modelCallCount: number;
|
|
1432
|
+
usage: {
|
|
1433
|
+
inputTokens?: number;
|
|
1434
|
+
outputTokens?: number;
|
|
1435
|
+
totalTokens?: number;
|
|
1436
|
+
uncachedInputTokens?: number;
|
|
1437
|
+
cacheReadInputTokens?: number;
|
|
1438
|
+
cacheWriteInputTokens?: number;
|
|
1439
|
+
textOutputTokens?: number;
|
|
1440
|
+
reasoningOutputTokens?: number;
|
|
1441
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1442
|
+
};
|
|
1443
|
+
costs: {
|
|
1444
|
+
amounts: Array<{
|
|
1445
|
+
currency: string;
|
|
1446
|
+
amountNanos: string;
|
|
1447
|
+
}>;
|
|
1448
|
+
ratedCallCount: number;
|
|
1449
|
+
unpriceableCallCount: number;
|
|
1450
|
+
unvaluedCallCount: number;
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
series: Array<{
|
|
1454
|
+
modelCallCount: number;
|
|
1455
|
+
usage: {
|
|
1456
|
+
inputTokens?: number;
|
|
1457
|
+
outputTokens?: number;
|
|
1458
|
+
totalTokens?: number;
|
|
1459
|
+
uncachedInputTokens?: number;
|
|
1460
|
+
cacheReadInputTokens?: number;
|
|
1461
|
+
cacheWriteInputTokens?: number;
|
|
1462
|
+
textOutputTokens?: number;
|
|
1463
|
+
reasoningOutputTokens?: number;
|
|
1464
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1465
|
+
};
|
|
1466
|
+
costs: {
|
|
1467
|
+
amounts: Array<{
|
|
1468
|
+
currency: string;
|
|
1469
|
+
amountNanos: string;
|
|
1470
|
+
}>;
|
|
1471
|
+
ratedCallCount: number;
|
|
1472
|
+
unpriceableCallCount: number;
|
|
1473
|
+
unvaluedCallCount: number;
|
|
1474
|
+
};
|
|
1475
|
+
start: string;
|
|
1476
|
+
end: string;
|
|
1477
|
+
}>;
|
|
1478
|
+
models: Array<{
|
|
1479
|
+
modelCallCount: number;
|
|
1480
|
+
usage: {
|
|
1481
|
+
inputTokens?: number;
|
|
1482
|
+
outputTokens?: number;
|
|
1483
|
+
totalTokens?: number;
|
|
1484
|
+
uncachedInputTokens?: number;
|
|
1485
|
+
cacheReadInputTokens?: number;
|
|
1486
|
+
cacheWriteInputTokens?: number;
|
|
1487
|
+
textOutputTokens?: number;
|
|
1488
|
+
reasoningOutputTokens?: number;
|
|
1489
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1490
|
+
};
|
|
1491
|
+
costs: {
|
|
1492
|
+
amounts: Array<{
|
|
1493
|
+
currency: string;
|
|
1494
|
+
amountNanos: string;
|
|
1495
|
+
}>;
|
|
1496
|
+
ratedCallCount: number;
|
|
1497
|
+
unpriceableCallCount: number;
|
|
1498
|
+
unvaluedCallCount: number;
|
|
1499
|
+
};
|
|
1500
|
+
providerId: string;
|
|
1501
|
+
modelId: string;
|
|
1502
|
+
}>;
|
|
1503
|
+
agents: Array<{
|
|
1504
|
+
modelCallCount: number;
|
|
1505
|
+
usage: {
|
|
1506
|
+
inputTokens?: number;
|
|
1507
|
+
outputTokens?: number;
|
|
1508
|
+
totalTokens?: number;
|
|
1509
|
+
uncachedInputTokens?: number;
|
|
1510
|
+
cacheReadInputTokens?: number;
|
|
1511
|
+
cacheWriteInputTokens?: number;
|
|
1512
|
+
textOutputTokens?: number;
|
|
1513
|
+
reasoningOutputTokens?: number;
|
|
1514
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1515
|
+
};
|
|
1516
|
+
costs: {
|
|
1517
|
+
amounts: Array<{
|
|
1518
|
+
currency: string;
|
|
1519
|
+
amountNanos: string;
|
|
1520
|
+
}>;
|
|
1521
|
+
ratedCallCount: number;
|
|
1522
|
+
unpriceableCallCount: number;
|
|
1523
|
+
unvaluedCallCount: number;
|
|
1524
|
+
};
|
|
1525
|
+
agentId: string;
|
|
1526
|
+
}>;
|
|
1527
|
+
workflows: Array<{
|
|
1528
|
+
modelCallCount: number;
|
|
1529
|
+
usage: {
|
|
1530
|
+
inputTokens?: number;
|
|
1531
|
+
outputTokens?: number;
|
|
1532
|
+
totalTokens?: number;
|
|
1533
|
+
uncachedInputTokens?: number;
|
|
1534
|
+
cacheReadInputTokens?: number;
|
|
1535
|
+
cacheWriteInputTokens?: number;
|
|
1536
|
+
textOutputTokens?: number;
|
|
1537
|
+
reasoningOutputTokens?: number;
|
|
1538
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1539
|
+
};
|
|
1540
|
+
costs: {
|
|
1541
|
+
amounts: Array<{
|
|
1542
|
+
currency: string;
|
|
1543
|
+
amountNanos: string;
|
|
1544
|
+
}>;
|
|
1545
|
+
ratedCallCount: number;
|
|
1546
|
+
unpriceableCallCount: number;
|
|
1547
|
+
unvaluedCallCount: number;
|
|
1548
|
+
};
|
|
1549
|
+
workflowId: string;
|
|
1550
|
+
}>;
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
export type GetAiAccountingOverviewResponse = GetAiAccountingOverviewResponses[keyof GetAiAccountingOverviewResponses];
|
|
1554
|
+
export type ListAiModelCallsData = {
|
|
1555
|
+
body?: never;
|
|
1556
|
+
path?: never;
|
|
1557
|
+
query: {
|
|
1558
|
+
from: string;
|
|
1559
|
+
to: string;
|
|
1560
|
+
providerId?: string;
|
|
1561
|
+
modelId?: string;
|
|
1562
|
+
executionId?: string;
|
|
1563
|
+
valuationStatus?: "rated" | "unpriceable" | "unvalued";
|
|
1564
|
+
limit?: string;
|
|
1565
|
+
offset?: string;
|
|
1566
|
+
};
|
|
1567
|
+
url: "/api/ai/model-calls";
|
|
1568
|
+
};
|
|
1569
|
+
export type ListAiModelCallsErrors = {
|
|
1570
|
+
/**
|
|
1571
|
+
* Response for status 400
|
|
1572
|
+
*/
|
|
1573
|
+
400: {
|
|
1574
|
+
error: string;
|
|
1575
|
+
};
|
|
1576
|
+
/**
|
|
1577
|
+
* Response for status 501
|
|
1578
|
+
*/
|
|
1579
|
+
501: {
|
|
1580
|
+
error: string;
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
export type ListAiModelCallsError = ListAiModelCallsErrors[keyof ListAiModelCallsErrors];
|
|
1584
|
+
export type ListAiModelCallsResponses = {
|
|
1585
|
+
/**
|
|
1586
|
+
* Response for status 200
|
|
1587
|
+
*/
|
|
1588
|
+
200: {
|
|
1589
|
+
items: Array<{
|
|
1590
|
+
usage: {
|
|
1591
|
+
id: string;
|
|
1592
|
+
executionId: string;
|
|
1593
|
+
attempt: number;
|
|
1594
|
+
callId: string;
|
|
1595
|
+
providerId: string;
|
|
1596
|
+
requestedModelId: string;
|
|
1597
|
+
responseModelId?: string;
|
|
1598
|
+
responseId: string;
|
|
1599
|
+
usage: {
|
|
1600
|
+
inputTokens?: number;
|
|
1601
|
+
outputTokens?: number;
|
|
1602
|
+
totalTokens?: number;
|
|
1603
|
+
uncachedInputTokens?: number;
|
|
1604
|
+
cacheReadInputTokens?: number;
|
|
1605
|
+
cacheWriteInputTokens?: number;
|
|
1606
|
+
textOutputTokens?: number;
|
|
1607
|
+
reasoningOutputTokens?: number;
|
|
1608
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1609
|
+
};
|
|
1610
|
+
occurredAt: string;
|
|
1611
|
+
recordedAt: string;
|
|
1612
|
+
};
|
|
1613
|
+
attribution?: {
|
|
1614
|
+
kind: "agent";
|
|
1615
|
+
agentId: string;
|
|
1616
|
+
agentRunId: string;
|
|
1617
|
+
threadId: string;
|
|
1618
|
+
} | {
|
|
1619
|
+
kind: "workflowAgent";
|
|
1620
|
+
agentId: string;
|
|
1621
|
+
nodeRunId: string;
|
|
1622
|
+
workflowId: string;
|
|
1623
|
+
workflowRunId: string;
|
|
1624
|
+
};
|
|
1625
|
+
cost?: {
|
|
1626
|
+
status: "rated";
|
|
1627
|
+
billingIdentity: {
|
|
1628
|
+
providerId: string;
|
|
1629
|
+
modelId: string;
|
|
1630
|
+
};
|
|
1631
|
+
pricingContext: {
|
|
1632
|
+
serviceTier?: string;
|
|
1633
|
+
batch?: boolean;
|
|
1634
|
+
region?: string;
|
|
1635
|
+
inferenceGeo?: string;
|
|
1636
|
+
routedProviderId?: string;
|
|
1637
|
+
deploymentId?: string;
|
|
1638
|
+
inferenceProfileId?: string;
|
|
1639
|
+
cacheWriteTtlSeconds?: number;
|
|
1640
|
+
mode?: string;
|
|
1641
|
+
};
|
|
1642
|
+
priceSource: {
|
|
1643
|
+
sourceId: string;
|
|
1644
|
+
sourceEntryId: string;
|
|
1645
|
+
sourceVersion: string;
|
|
1646
|
+
sourceUrl: string;
|
|
1647
|
+
observedAt: string;
|
|
1648
|
+
};
|
|
1649
|
+
money: {
|
|
1650
|
+
currency: string;
|
|
1651
|
+
amountNanos: string;
|
|
1652
|
+
};
|
|
1653
|
+
components: Array<{
|
|
1654
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1655
|
+
quantity: string;
|
|
1656
|
+
rateAmountNanosPerMillion: string;
|
|
1657
|
+
chargeAmountNanos: string;
|
|
1658
|
+
}>;
|
|
1659
|
+
ratedAt: string;
|
|
1660
|
+
} | {
|
|
1661
|
+
status: "unpriceable";
|
|
1662
|
+
billingIdentity?: {
|
|
1663
|
+
providerId: string;
|
|
1664
|
+
modelId: string;
|
|
1665
|
+
};
|
|
1666
|
+
pricingContext: {
|
|
1667
|
+
serviceTier?: string;
|
|
1668
|
+
batch?: boolean;
|
|
1669
|
+
region?: string;
|
|
1670
|
+
inferenceGeo?: string;
|
|
1671
|
+
routedProviderId?: string;
|
|
1672
|
+
deploymentId?: string;
|
|
1673
|
+
inferenceProfileId?: string;
|
|
1674
|
+
cacheWriteTtlSeconds?: number;
|
|
1675
|
+
mode?: string;
|
|
1676
|
+
};
|
|
1677
|
+
priceSource: {
|
|
1678
|
+
sourceId: string;
|
|
1679
|
+
sourceEntryId: string;
|
|
1680
|
+
sourceVersion: string;
|
|
1681
|
+
sourceUrl: string;
|
|
1682
|
+
observedAt: string;
|
|
1683
|
+
};
|
|
1684
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
1685
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1686
|
+
ratedAt: string;
|
|
1687
|
+
};
|
|
1688
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
1689
|
+
}>;
|
|
1690
|
+
hasMore: boolean;
|
|
1691
|
+
total: number;
|
|
1692
|
+
};
|
|
1693
|
+
};
|
|
1694
|
+
export type ListAiModelCallsResponse = ListAiModelCallsResponses[keyof ListAiModelCallsResponses];
|
|
1393
1695
|
export type GetProjectInfoData = {
|
|
1394
1696
|
body?: never;
|
|
1395
1697
|
path?: never;
|
|
@@ -1444,68 +1746,1031 @@ export type GetStatusResponses = {
|
|
|
1444
1746
|
};
|
|
1445
1747
|
};
|
|
1446
1748
|
};
|
|
1447
|
-
export type GetStatusResponse = GetStatusResponses[keyof GetStatusResponses];
|
|
1448
|
-
export type ListConnectorsData = {
|
|
1449
|
-
body?: never;
|
|
1450
|
-
path?: never;
|
|
1451
|
-
query?: never;
|
|
1452
|
-
url: "/api/connectors";
|
|
1453
|
-
};
|
|
1454
|
-
export type ListConnectorsResponses = {
|
|
1749
|
+
export type GetStatusResponse = GetStatusResponses[keyof GetStatusResponses];
|
|
1750
|
+
export type ListConnectorsData = {
|
|
1751
|
+
body?: never;
|
|
1752
|
+
path?: never;
|
|
1753
|
+
query?: never;
|
|
1754
|
+
url: "/api/connectors";
|
|
1755
|
+
};
|
|
1756
|
+
export type ListConnectorsResponses = {
|
|
1757
|
+
/**
|
|
1758
|
+
* Response for status 200
|
|
1759
|
+
*/
|
|
1760
|
+
200: Array<{
|
|
1761
|
+
id: string;
|
|
1762
|
+
type: string;
|
|
1763
|
+
connection: {
|
|
1764
|
+
authentication: "oauth2";
|
|
1765
|
+
} | null;
|
|
1766
|
+
syncIds: Array<string>;
|
|
1767
|
+
webhooks: Array<{
|
|
1768
|
+
id: string;
|
|
1769
|
+
method: "POST";
|
|
1770
|
+
route: string;
|
|
1771
|
+
bodyFormat: "json" | "text" | "raw";
|
|
1772
|
+
hasVerify: boolean;
|
|
1773
|
+
hasIdempotency: boolean;
|
|
1774
|
+
}>;
|
|
1775
|
+
}>;
|
|
1776
|
+
};
|
|
1777
|
+
export type ListConnectorsResponse = ListConnectorsResponses[keyof ListConnectorsResponses];
|
|
1778
|
+
export type GetConnectorData = {
|
|
1779
|
+
body?: never;
|
|
1780
|
+
path: {
|
|
1781
|
+
connectorId: string;
|
|
1782
|
+
};
|
|
1783
|
+
query?: never;
|
|
1784
|
+
url: "/api/connectors/{connectorId}";
|
|
1785
|
+
};
|
|
1786
|
+
export type GetConnectorErrors = {
|
|
1787
|
+
/**
|
|
1788
|
+
* Response for status 404
|
|
1789
|
+
*/
|
|
1790
|
+
404: {
|
|
1791
|
+
error: string;
|
|
1792
|
+
};
|
|
1793
|
+
};
|
|
1794
|
+
export type GetConnectorError = GetConnectorErrors[keyof GetConnectorErrors];
|
|
1795
|
+
export type GetConnectorResponses = {
|
|
1796
|
+
/**
|
|
1797
|
+
* Response for status 200
|
|
1798
|
+
*/
|
|
1799
|
+
200: {
|
|
1800
|
+
id: string;
|
|
1801
|
+
type: string;
|
|
1802
|
+
connection: {
|
|
1803
|
+
authentication: "oauth2";
|
|
1804
|
+
} | null;
|
|
1805
|
+
syncIds: Array<string>;
|
|
1806
|
+
webhooks: Array<{
|
|
1807
|
+
id: string;
|
|
1808
|
+
method: "POST";
|
|
1809
|
+
route: string;
|
|
1810
|
+
bodyFormat: "json" | "text" | "raw";
|
|
1811
|
+
hasVerify: boolean;
|
|
1812
|
+
hasIdempotency: boolean;
|
|
1813
|
+
}>;
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
export type GetConnectorResponse = GetConnectorResponses[keyof GetConnectorResponses];
|
|
1817
|
+
export type ListConnectorConnectionsData = {
|
|
1818
|
+
body?: never;
|
|
1819
|
+
path: {
|
|
1820
|
+
connectorId: string;
|
|
1821
|
+
};
|
|
1822
|
+
query?: never;
|
|
1823
|
+
url: "/api/connectors/{connectorId}/connections";
|
|
1824
|
+
};
|
|
1825
|
+
export type ListConnectorConnectionsErrors = {
|
|
1826
|
+
/**
|
|
1827
|
+
* Response for status 400
|
|
1828
|
+
*/
|
|
1829
|
+
400: {
|
|
1830
|
+
error: string;
|
|
1831
|
+
/**
|
|
1832
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1833
|
+
*/
|
|
1834
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid";
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* Response for status 403
|
|
1838
|
+
*/
|
|
1839
|
+
403: {
|
|
1840
|
+
error: string;
|
|
1841
|
+
};
|
|
1842
|
+
/**
|
|
1843
|
+
* Response for status 404
|
|
1844
|
+
*/
|
|
1845
|
+
404: {
|
|
1846
|
+
error: string;
|
|
1847
|
+
/**
|
|
1848
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1849
|
+
*/
|
|
1850
|
+
code?: "connector.not_found";
|
|
1851
|
+
};
|
|
1852
|
+
/**
|
|
1853
|
+
* Response for status 500
|
|
1854
|
+
*/
|
|
1855
|
+
500: {
|
|
1856
|
+
error: string;
|
|
1857
|
+
/**
|
|
1858
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1859
|
+
*/
|
|
1860
|
+
code?: "internal.unexpected";
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
export type ListConnectorConnectionsError = ListConnectorConnectionsErrors[keyof ListConnectorConnectionsErrors];
|
|
1864
|
+
export type ListConnectorConnectionsResponses = {
|
|
1865
|
+
/**
|
|
1866
|
+
* Response for status 200
|
|
1867
|
+
*/
|
|
1868
|
+
200: Array<{
|
|
1869
|
+
id: string;
|
|
1870
|
+
connectorId: string;
|
|
1871
|
+
owner: {
|
|
1872
|
+
type: "project";
|
|
1873
|
+
};
|
|
1874
|
+
slot: string;
|
|
1875
|
+
account: {
|
|
1876
|
+
id: string;
|
|
1877
|
+
label: string;
|
|
1878
|
+
description?: string;
|
|
1879
|
+
avatarUrl?: string;
|
|
1880
|
+
};
|
|
1881
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
1882
|
+
}>;
|
|
1883
|
+
};
|
|
1884
|
+
export type ListConnectorConnectionsResponse = ListConnectorConnectionsResponses[keyof ListConnectorConnectionsResponses];
|
|
1885
|
+
export type DisconnectConnectorConnectionData = {
|
|
1886
|
+
body?: never;
|
|
1887
|
+
path: {
|
|
1888
|
+
connectorId: string;
|
|
1889
|
+
connectionId: string;
|
|
1890
|
+
};
|
|
1891
|
+
query?: never;
|
|
1892
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}";
|
|
1893
|
+
};
|
|
1894
|
+
export type DisconnectConnectorConnectionErrors = {
|
|
1895
|
+
/**
|
|
1896
|
+
* Response for status 400
|
|
1897
|
+
*/
|
|
1898
|
+
400: {
|
|
1899
|
+
error: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1902
|
+
*/
|
|
1903
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid";
|
|
1904
|
+
};
|
|
1905
|
+
/**
|
|
1906
|
+
* Response for status 403
|
|
1907
|
+
*/
|
|
1908
|
+
403: {
|
|
1909
|
+
error: string;
|
|
1910
|
+
};
|
|
1911
|
+
/**
|
|
1912
|
+
* Response for status 404
|
|
1913
|
+
*/
|
|
1914
|
+
404: {
|
|
1915
|
+
error: string;
|
|
1916
|
+
/**
|
|
1917
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1918
|
+
*/
|
|
1919
|
+
code?: "connector.not_found";
|
|
1920
|
+
};
|
|
1921
|
+
/**
|
|
1922
|
+
* Response for status 409
|
|
1923
|
+
*/
|
|
1924
|
+
409: {
|
|
1925
|
+
error: string;
|
|
1926
|
+
/**
|
|
1927
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1928
|
+
*/
|
|
1929
|
+
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
|
|
1930
|
+
};
|
|
1931
|
+
/**
|
|
1932
|
+
* Response for status 500
|
|
1933
|
+
*/
|
|
1934
|
+
500: {
|
|
1935
|
+
error: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1938
|
+
*/
|
|
1939
|
+
code?: "internal.unexpected";
|
|
1940
|
+
};
|
|
1941
|
+
};
|
|
1942
|
+
export type DisconnectConnectorConnectionError = DisconnectConnectorConnectionErrors[keyof DisconnectConnectorConnectionErrors];
|
|
1943
|
+
export type DisconnectConnectorConnectionResponses = {
|
|
1944
|
+
/**
|
|
1945
|
+
* Response for status 200
|
|
1946
|
+
*/
|
|
1947
|
+
200: {
|
|
1948
|
+
success: boolean;
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
export type DisconnectConnectorConnectionResponse = DisconnectConnectorConnectionResponses[keyof DisconnectConnectorConnectionResponses];
|
|
1952
|
+
export type RevokeConnectorConnectionData = {
|
|
1953
|
+
body?: never;
|
|
1954
|
+
path: {
|
|
1955
|
+
connectorId: string;
|
|
1956
|
+
connectionId: string;
|
|
1957
|
+
};
|
|
1958
|
+
query?: never;
|
|
1959
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/revoke";
|
|
1960
|
+
};
|
|
1961
|
+
export type RevokeConnectorConnectionErrors = {
|
|
1962
|
+
/**
|
|
1963
|
+
* Response for status 400
|
|
1964
|
+
*/
|
|
1965
|
+
400: {
|
|
1966
|
+
error: string;
|
|
1967
|
+
/**
|
|
1968
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1969
|
+
*/
|
|
1970
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid";
|
|
1971
|
+
};
|
|
1972
|
+
/**
|
|
1973
|
+
* Response for status 403
|
|
1974
|
+
*/
|
|
1975
|
+
403: {
|
|
1976
|
+
error: string;
|
|
1977
|
+
};
|
|
1978
|
+
/**
|
|
1979
|
+
* Response for status 404
|
|
1980
|
+
*/
|
|
1981
|
+
404: {
|
|
1982
|
+
error: string;
|
|
1983
|
+
/**
|
|
1984
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1985
|
+
*/
|
|
1986
|
+
code?: "connector.not_found";
|
|
1987
|
+
};
|
|
1988
|
+
/**
|
|
1989
|
+
* Response for status 409
|
|
1990
|
+
*/
|
|
1991
|
+
409: {
|
|
1992
|
+
error: string;
|
|
1993
|
+
/**
|
|
1994
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
1995
|
+
*/
|
|
1996
|
+
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
|
|
1997
|
+
};
|
|
1998
|
+
/**
|
|
1999
|
+
* Response for status 500
|
|
2000
|
+
*/
|
|
2001
|
+
500: {
|
|
2002
|
+
error: string;
|
|
2003
|
+
/**
|
|
2004
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2005
|
+
*/
|
|
2006
|
+
code?: "internal.unexpected";
|
|
2007
|
+
};
|
|
2008
|
+
/**
|
|
2009
|
+
* Response for status 502
|
|
2010
|
+
*/
|
|
2011
|
+
502: {
|
|
2012
|
+
error: string;
|
|
2013
|
+
/**
|
|
2014
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2015
|
+
*/
|
|
2016
|
+
code?: "connector.adapter_invalid" | "connector.provider_failed";
|
|
2017
|
+
};
|
|
2018
|
+
/**
|
|
2019
|
+
* Response for status 503
|
|
2020
|
+
*/
|
|
2021
|
+
503: {
|
|
2022
|
+
error: string;
|
|
2023
|
+
/**
|
|
2024
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2025
|
+
*/
|
|
2026
|
+
code?: "connector.credentials_unavailable" | "connector.provider_unavailable";
|
|
2027
|
+
};
|
|
2028
|
+
};
|
|
2029
|
+
export type RevokeConnectorConnectionError = RevokeConnectorConnectionErrors[keyof RevokeConnectorConnectionErrors];
|
|
2030
|
+
export type RevokeConnectorConnectionResponses = {
|
|
2031
|
+
/**
|
|
2032
|
+
* Response for status 200
|
|
2033
|
+
*/
|
|
2034
|
+
200: {
|
|
2035
|
+
affectedConnections: Array<{
|
|
2036
|
+
id: string;
|
|
2037
|
+
connectorId: string;
|
|
2038
|
+
owner: {
|
|
2039
|
+
type: "project";
|
|
2040
|
+
};
|
|
2041
|
+
slot: string;
|
|
2042
|
+
account: {
|
|
2043
|
+
id: string;
|
|
2044
|
+
label: string;
|
|
2045
|
+
description?: string;
|
|
2046
|
+
avatarUrl?: string;
|
|
2047
|
+
};
|
|
2048
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
2049
|
+
}>;
|
|
2050
|
+
};
|
|
2051
|
+
};
|
|
2052
|
+
export type RevokeConnectorConnectionResponse = RevokeConnectorConnectionResponses[keyof RevokeConnectorConnectionResponses];
|
|
2053
|
+
export type StartConnectorConnectionRunData = {
|
|
2054
|
+
body: {
|
|
2055
|
+
slot: string;
|
|
2056
|
+
returnTo: string;
|
|
2057
|
+
};
|
|
2058
|
+
path: {
|
|
2059
|
+
connectorId: string;
|
|
2060
|
+
};
|
|
2061
|
+
query?: never;
|
|
2062
|
+
url: "/api/connectors/{connectorId}/connection-runs";
|
|
2063
|
+
};
|
|
2064
|
+
export type StartConnectorConnectionRunErrors = {
|
|
2065
|
+
/**
|
|
2066
|
+
* Response for status 400
|
|
2067
|
+
*/
|
|
2068
|
+
400: {
|
|
2069
|
+
error: string;
|
|
2070
|
+
/**
|
|
2071
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2072
|
+
*/
|
|
2073
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid";
|
|
2074
|
+
};
|
|
2075
|
+
/**
|
|
2076
|
+
* Response for status 403
|
|
2077
|
+
*/
|
|
2078
|
+
403: {
|
|
2079
|
+
error: string;
|
|
2080
|
+
};
|
|
2081
|
+
/**
|
|
2082
|
+
* Response for status 404
|
|
2083
|
+
*/
|
|
2084
|
+
404: {
|
|
2085
|
+
error: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2088
|
+
*/
|
|
2089
|
+
code?: "connector.not_found";
|
|
2090
|
+
};
|
|
2091
|
+
/**
|
|
2092
|
+
* Response for status 409
|
|
2093
|
+
*/
|
|
2094
|
+
409: {
|
|
2095
|
+
error: string;
|
|
2096
|
+
/**
|
|
2097
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2098
|
+
*/
|
|
2099
|
+
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
|
|
2100
|
+
};
|
|
2101
|
+
/**
|
|
2102
|
+
* Response for status 500
|
|
2103
|
+
*/
|
|
2104
|
+
500: {
|
|
2105
|
+
error: string;
|
|
2106
|
+
/**
|
|
2107
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2108
|
+
*/
|
|
2109
|
+
code?: "internal.unexpected";
|
|
2110
|
+
};
|
|
2111
|
+
/**
|
|
2112
|
+
* Response for status 502
|
|
2113
|
+
*/
|
|
2114
|
+
502: {
|
|
2115
|
+
error: string;
|
|
2116
|
+
/**
|
|
2117
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2118
|
+
*/
|
|
2119
|
+
code?: "connector.adapter_invalid" | "connector.provider_failed";
|
|
2120
|
+
};
|
|
2121
|
+
/**
|
|
2122
|
+
* Response for status 503
|
|
2123
|
+
*/
|
|
2124
|
+
503: {
|
|
2125
|
+
error: string;
|
|
2126
|
+
/**
|
|
2127
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2128
|
+
*/
|
|
2129
|
+
code?: "connector.credentials_unavailable" | "connector.provider_unavailable";
|
|
2130
|
+
};
|
|
2131
|
+
};
|
|
2132
|
+
export type StartConnectorConnectionRunError = StartConnectorConnectionRunErrors[keyof StartConnectorConnectionRunErrors];
|
|
2133
|
+
export type StartConnectorConnectionRunResponses = {
|
|
2134
|
+
/**
|
|
2135
|
+
* Response for status 201
|
|
2136
|
+
*/
|
|
2137
|
+
201: {
|
|
2138
|
+
runId: string;
|
|
2139
|
+
authorizationUrl: string;
|
|
2140
|
+
affectedConnections: Array<{
|
|
2141
|
+
id: string;
|
|
2142
|
+
connectorId: string;
|
|
2143
|
+
owner: {
|
|
2144
|
+
type: "project";
|
|
2145
|
+
};
|
|
2146
|
+
slot: string;
|
|
2147
|
+
account: {
|
|
2148
|
+
id: string;
|
|
2149
|
+
label: string;
|
|
2150
|
+
description?: string;
|
|
2151
|
+
avatarUrl?: string;
|
|
2152
|
+
};
|
|
2153
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
2154
|
+
}>;
|
|
2155
|
+
};
|
|
2156
|
+
};
|
|
2157
|
+
export type StartConnectorConnectionRunResponse = StartConnectorConnectionRunResponses[keyof StartConnectorConnectionRunResponses];
|
|
2158
|
+
export type GetConnectorConnectionRunData = {
|
|
2159
|
+
body?: never;
|
|
2160
|
+
path: {
|
|
2161
|
+
connectorId: string;
|
|
2162
|
+
runId: string;
|
|
2163
|
+
};
|
|
2164
|
+
query?: never;
|
|
2165
|
+
url: "/api/connectors/{connectorId}/connection-runs/{runId}";
|
|
2166
|
+
};
|
|
2167
|
+
export type GetConnectorConnectionRunErrors = {
|
|
2168
|
+
/**
|
|
2169
|
+
* Response for status 400
|
|
2170
|
+
*/
|
|
2171
|
+
400: {
|
|
2172
|
+
error: string;
|
|
2173
|
+
/**
|
|
2174
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2175
|
+
*/
|
|
2176
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid";
|
|
2177
|
+
};
|
|
2178
|
+
/**
|
|
2179
|
+
* Response for status 403
|
|
2180
|
+
*/
|
|
2181
|
+
403: {
|
|
2182
|
+
error: string;
|
|
2183
|
+
};
|
|
2184
|
+
/**
|
|
2185
|
+
* Response for status 404
|
|
2186
|
+
*/
|
|
2187
|
+
404: {
|
|
2188
|
+
error: string;
|
|
2189
|
+
/**
|
|
2190
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2191
|
+
*/
|
|
2192
|
+
code?: "connector.not_found";
|
|
2193
|
+
};
|
|
2194
|
+
/**
|
|
2195
|
+
* Response for status 500
|
|
2196
|
+
*/
|
|
2197
|
+
500: {
|
|
2198
|
+
error: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2201
|
+
*/
|
|
2202
|
+
code?: "internal.unexpected";
|
|
2203
|
+
};
|
|
2204
|
+
};
|
|
2205
|
+
export type GetConnectorConnectionRunError = GetConnectorConnectionRunErrors[keyof GetConnectorConnectionRunErrors];
|
|
2206
|
+
export type GetConnectorConnectionRunResponses = {
|
|
2207
|
+
/**
|
|
2208
|
+
* Response for status 200
|
|
2209
|
+
*/
|
|
2210
|
+
200: {
|
|
2211
|
+
id: string;
|
|
2212
|
+
connectorId: string;
|
|
2213
|
+
kind: "connect" | "reauthorize";
|
|
2214
|
+
owner: {
|
|
2215
|
+
type: "project";
|
|
2216
|
+
};
|
|
2217
|
+
slot: string;
|
|
2218
|
+
createdAt: string;
|
|
2219
|
+
updatedAt: string;
|
|
2220
|
+
status: "waiting";
|
|
2221
|
+
waitingFor: "provider_authorization";
|
|
2222
|
+
expiresAt: string;
|
|
2223
|
+
} | {
|
|
2224
|
+
id: string;
|
|
2225
|
+
connectorId: string;
|
|
2226
|
+
kind: "connect" | "reauthorize";
|
|
2227
|
+
owner: {
|
|
2228
|
+
type: "project";
|
|
2229
|
+
};
|
|
2230
|
+
slot: string;
|
|
2231
|
+
createdAt: string;
|
|
2232
|
+
updatedAt: string;
|
|
2233
|
+
status: "running";
|
|
2234
|
+
} | {
|
|
2235
|
+
id: string;
|
|
2236
|
+
connectorId: string;
|
|
2237
|
+
kind: "connect" | "reauthorize";
|
|
2238
|
+
owner: {
|
|
2239
|
+
type: "project";
|
|
2240
|
+
};
|
|
2241
|
+
slot: string;
|
|
2242
|
+
createdAt: string;
|
|
2243
|
+
updatedAt: string;
|
|
2244
|
+
status: "waiting";
|
|
2245
|
+
waitingFor: "account_selection";
|
|
2246
|
+
accounts: Array<{
|
|
2247
|
+
id: string;
|
|
2248
|
+
label: string;
|
|
2249
|
+
description?: string;
|
|
2250
|
+
avatarUrl?: string;
|
|
2251
|
+
}>;
|
|
2252
|
+
expiresAt: string;
|
|
2253
|
+
} | {
|
|
2254
|
+
id: string;
|
|
2255
|
+
connectorId: string;
|
|
2256
|
+
kind: "connect" | "reauthorize";
|
|
2257
|
+
owner: {
|
|
2258
|
+
type: "project";
|
|
2259
|
+
};
|
|
2260
|
+
slot: string;
|
|
2261
|
+
createdAt: string;
|
|
2262
|
+
updatedAt: string;
|
|
2263
|
+
status: "succeeded";
|
|
2264
|
+
connections: Array<{
|
|
2265
|
+
id: string;
|
|
2266
|
+
connectorId: string;
|
|
2267
|
+
owner: {
|
|
2268
|
+
type: "project";
|
|
2269
|
+
};
|
|
2270
|
+
slot: string;
|
|
2271
|
+
account: {
|
|
2272
|
+
id: string;
|
|
2273
|
+
label: string;
|
|
2274
|
+
description?: string;
|
|
2275
|
+
avatarUrl?: string;
|
|
2276
|
+
};
|
|
2277
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
2278
|
+
}>;
|
|
2279
|
+
finishedAt: string;
|
|
2280
|
+
} | {
|
|
2281
|
+
id: string;
|
|
2282
|
+
connectorId: string;
|
|
2283
|
+
kind: "connect" | "reauthorize";
|
|
2284
|
+
owner: {
|
|
2285
|
+
type: "project";
|
|
2286
|
+
};
|
|
2287
|
+
slot: string;
|
|
2288
|
+
createdAt: string;
|
|
2289
|
+
updatedAt: string;
|
|
2290
|
+
status: "failed";
|
|
2291
|
+
error: {
|
|
2292
|
+
code: "internal.unexpected" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable";
|
|
2293
|
+
message: string;
|
|
2294
|
+
retryable: boolean;
|
|
2295
|
+
at: string;
|
|
2296
|
+
/**
|
|
2297
|
+
* Any JSON-compatible value.
|
|
2298
|
+
*/
|
|
2299
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
2300
|
+
[key: string]: unknown;
|
|
2301
|
+
} | null;
|
|
2302
|
+
truncated?: true;
|
|
2303
|
+
};
|
|
2304
|
+
finishedAt: string;
|
|
2305
|
+
} | {
|
|
2306
|
+
id: string;
|
|
2307
|
+
connectorId: string;
|
|
2308
|
+
kind: "connect" | "reauthorize";
|
|
2309
|
+
owner: {
|
|
2310
|
+
type: "project";
|
|
2311
|
+
};
|
|
2312
|
+
slot: string;
|
|
2313
|
+
createdAt: string;
|
|
2314
|
+
updatedAt: string;
|
|
2315
|
+
status: "cancelled" | "expired";
|
|
2316
|
+
finishedAt: string;
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2319
|
+
export type GetConnectorConnectionRunResponse = GetConnectorConnectionRunResponses[keyof GetConnectorConnectionRunResponses];
|
|
2320
|
+
export type AddConnectorConnectionData = {
|
|
2321
|
+
body: {
|
|
2322
|
+
slot: string;
|
|
2323
|
+
};
|
|
2324
|
+
path: {
|
|
2325
|
+
connectorId: string;
|
|
2326
|
+
connectionId: string;
|
|
2327
|
+
};
|
|
2328
|
+
query?: never;
|
|
2329
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/connection-runs";
|
|
2330
|
+
};
|
|
2331
|
+
export type AddConnectorConnectionErrors = {
|
|
2332
|
+
/**
|
|
2333
|
+
* Response for status 400
|
|
2334
|
+
*/
|
|
2335
|
+
400: {
|
|
2336
|
+
error: string;
|
|
2337
|
+
/**
|
|
2338
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2339
|
+
*/
|
|
2340
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid";
|
|
2341
|
+
};
|
|
2342
|
+
/**
|
|
2343
|
+
* Response for status 403
|
|
2344
|
+
*/
|
|
2345
|
+
403: {
|
|
2346
|
+
error: string;
|
|
2347
|
+
};
|
|
2348
|
+
/**
|
|
2349
|
+
* Response for status 404
|
|
2350
|
+
*/
|
|
2351
|
+
404: {
|
|
2352
|
+
error: string;
|
|
2353
|
+
/**
|
|
2354
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2355
|
+
*/
|
|
2356
|
+
code?: "connector.not_found";
|
|
2357
|
+
};
|
|
2358
|
+
/**
|
|
2359
|
+
* Response for status 409
|
|
2360
|
+
*/
|
|
2361
|
+
409: {
|
|
2362
|
+
error: string;
|
|
2363
|
+
/**
|
|
2364
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2365
|
+
*/
|
|
2366
|
+
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
|
|
2367
|
+
};
|
|
2368
|
+
/**
|
|
2369
|
+
* Response for status 500
|
|
2370
|
+
*/
|
|
2371
|
+
500: {
|
|
2372
|
+
error: string;
|
|
2373
|
+
/**
|
|
2374
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2375
|
+
*/
|
|
2376
|
+
code?: "internal.unexpected";
|
|
2377
|
+
};
|
|
2378
|
+
};
|
|
2379
|
+
export type AddConnectorConnectionError = AddConnectorConnectionErrors[keyof AddConnectorConnectionErrors];
|
|
2380
|
+
export type AddConnectorConnectionResponses = {
|
|
2381
|
+
/**
|
|
2382
|
+
* Response for status 201
|
|
2383
|
+
*/
|
|
2384
|
+
201: {
|
|
2385
|
+
id: string;
|
|
2386
|
+
connectorId: string;
|
|
2387
|
+
kind: "connect" | "reauthorize";
|
|
2388
|
+
owner: {
|
|
2389
|
+
type: "project";
|
|
2390
|
+
};
|
|
2391
|
+
slot: string;
|
|
2392
|
+
createdAt: string;
|
|
2393
|
+
updatedAt: string;
|
|
2394
|
+
status: "waiting";
|
|
2395
|
+
waitingFor: "provider_authorization";
|
|
2396
|
+
expiresAt: string;
|
|
2397
|
+
} | {
|
|
2398
|
+
id: string;
|
|
2399
|
+
connectorId: string;
|
|
2400
|
+
kind: "connect" | "reauthorize";
|
|
2401
|
+
owner: {
|
|
2402
|
+
type: "project";
|
|
2403
|
+
};
|
|
2404
|
+
slot: string;
|
|
2405
|
+
createdAt: string;
|
|
2406
|
+
updatedAt: string;
|
|
2407
|
+
status: "running";
|
|
2408
|
+
} | {
|
|
2409
|
+
id: string;
|
|
2410
|
+
connectorId: string;
|
|
2411
|
+
kind: "connect" | "reauthorize";
|
|
2412
|
+
owner: {
|
|
2413
|
+
type: "project";
|
|
2414
|
+
};
|
|
2415
|
+
slot: string;
|
|
2416
|
+
createdAt: string;
|
|
2417
|
+
updatedAt: string;
|
|
2418
|
+
status: "waiting";
|
|
2419
|
+
waitingFor: "account_selection";
|
|
2420
|
+
accounts: Array<{
|
|
2421
|
+
id: string;
|
|
2422
|
+
label: string;
|
|
2423
|
+
description?: string;
|
|
2424
|
+
avatarUrl?: string;
|
|
2425
|
+
}>;
|
|
2426
|
+
expiresAt: string;
|
|
2427
|
+
} | {
|
|
2428
|
+
id: string;
|
|
2429
|
+
connectorId: string;
|
|
2430
|
+
kind: "connect" | "reauthorize";
|
|
2431
|
+
owner: {
|
|
2432
|
+
type: "project";
|
|
2433
|
+
};
|
|
2434
|
+
slot: string;
|
|
2435
|
+
createdAt: string;
|
|
2436
|
+
updatedAt: string;
|
|
2437
|
+
status: "succeeded";
|
|
2438
|
+
connections: Array<{
|
|
2439
|
+
id: string;
|
|
2440
|
+
connectorId: string;
|
|
2441
|
+
owner: {
|
|
2442
|
+
type: "project";
|
|
2443
|
+
};
|
|
2444
|
+
slot: string;
|
|
2445
|
+
account: {
|
|
2446
|
+
id: string;
|
|
2447
|
+
label: string;
|
|
2448
|
+
description?: string;
|
|
2449
|
+
avatarUrl?: string;
|
|
2450
|
+
};
|
|
2451
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
2452
|
+
}>;
|
|
2453
|
+
finishedAt: string;
|
|
2454
|
+
} | {
|
|
2455
|
+
id: string;
|
|
2456
|
+
connectorId: string;
|
|
2457
|
+
kind: "connect" | "reauthorize";
|
|
2458
|
+
owner: {
|
|
2459
|
+
type: "project";
|
|
2460
|
+
};
|
|
2461
|
+
slot: string;
|
|
2462
|
+
createdAt: string;
|
|
2463
|
+
updatedAt: string;
|
|
2464
|
+
status: "failed";
|
|
2465
|
+
error: {
|
|
2466
|
+
code: "internal.unexpected" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable";
|
|
2467
|
+
message: string;
|
|
2468
|
+
retryable: boolean;
|
|
2469
|
+
at: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* Any JSON-compatible value.
|
|
2472
|
+
*/
|
|
2473
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
2474
|
+
[key: string]: unknown;
|
|
2475
|
+
} | null;
|
|
2476
|
+
truncated?: true;
|
|
2477
|
+
};
|
|
2478
|
+
finishedAt: string;
|
|
2479
|
+
} | {
|
|
2480
|
+
id: string;
|
|
2481
|
+
connectorId: string;
|
|
2482
|
+
kind: "connect" | "reauthorize";
|
|
2483
|
+
owner: {
|
|
2484
|
+
type: "project";
|
|
2485
|
+
};
|
|
2486
|
+
slot: string;
|
|
2487
|
+
createdAt: string;
|
|
2488
|
+
updatedAt: string;
|
|
2489
|
+
status: "cancelled" | "expired";
|
|
2490
|
+
finishedAt: string;
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
export type AddConnectorConnectionResponse = AddConnectorConnectionResponses[keyof AddConnectorConnectionResponses];
|
|
2494
|
+
export type SelectConnectorConnectionRunAccountData = {
|
|
2495
|
+
body: {
|
|
2496
|
+
accountId: string;
|
|
2497
|
+
replace?: boolean;
|
|
2498
|
+
};
|
|
2499
|
+
path: {
|
|
2500
|
+
connectorId: string;
|
|
2501
|
+
runId: string;
|
|
2502
|
+
};
|
|
2503
|
+
query?: never;
|
|
2504
|
+
url: "/api/connectors/{connectorId}/connection-runs/{runId}/selection";
|
|
2505
|
+
};
|
|
2506
|
+
export type SelectConnectorConnectionRunAccountErrors = {
|
|
2507
|
+
/**
|
|
2508
|
+
* Response for status 400
|
|
2509
|
+
*/
|
|
2510
|
+
400: {
|
|
2511
|
+
error: string;
|
|
2512
|
+
/**
|
|
2513
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2514
|
+
*/
|
|
2515
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid";
|
|
2516
|
+
};
|
|
2517
|
+
/**
|
|
2518
|
+
* Response for status 403
|
|
2519
|
+
*/
|
|
2520
|
+
403: {
|
|
2521
|
+
error: string;
|
|
2522
|
+
};
|
|
2523
|
+
/**
|
|
2524
|
+
* Response for status 404
|
|
2525
|
+
*/
|
|
2526
|
+
404: {
|
|
2527
|
+
error: string;
|
|
2528
|
+
/**
|
|
2529
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2530
|
+
*/
|
|
2531
|
+
code?: "connector.not_found";
|
|
2532
|
+
};
|
|
2533
|
+
/**
|
|
2534
|
+
* Response for status 409
|
|
2535
|
+
*/
|
|
2536
|
+
409: {
|
|
2537
|
+
error: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2540
|
+
*/
|
|
2541
|
+
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
|
|
2542
|
+
};
|
|
2543
|
+
/**
|
|
2544
|
+
* Response for status 500
|
|
2545
|
+
*/
|
|
2546
|
+
500: {
|
|
2547
|
+
error: string;
|
|
2548
|
+
/**
|
|
2549
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2550
|
+
*/
|
|
2551
|
+
code?: "internal.unexpected";
|
|
2552
|
+
};
|
|
2553
|
+
};
|
|
2554
|
+
export type SelectConnectorConnectionRunAccountError = SelectConnectorConnectionRunAccountErrors[keyof SelectConnectorConnectionRunAccountErrors];
|
|
2555
|
+
export type SelectConnectorConnectionRunAccountResponses = {
|
|
1455
2556
|
/**
|
|
1456
2557
|
* Response for status 200
|
|
1457
2558
|
*/
|
|
1458
|
-
200:
|
|
2559
|
+
200: {
|
|
1459
2560
|
id: string;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
2561
|
+
connectorId: string;
|
|
2562
|
+
kind: "connect" | "reauthorize";
|
|
2563
|
+
owner: {
|
|
2564
|
+
type: "project";
|
|
2565
|
+
};
|
|
2566
|
+
slot: string;
|
|
2567
|
+
createdAt: string;
|
|
2568
|
+
updatedAt: string;
|
|
2569
|
+
status: "waiting";
|
|
2570
|
+
waitingFor: "provider_authorization";
|
|
2571
|
+
expiresAt: string;
|
|
2572
|
+
} | {
|
|
2573
|
+
id: string;
|
|
2574
|
+
connectorId: string;
|
|
2575
|
+
kind: "connect" | "reauthorize";
|
|
2576
|
+
owner: {
|
|
2577
|
+
type: "project";
|
|
2578
|
+
};
|
|
2579
|
+
slot: string;
|
|
2580
|
+
createdAt: string;
|
|
2581
|
+
updatedAt: string;
|
|
2582
|
+
status: "running";
|
|
2583
|
+
} | {
|
|
2584
|
+
id: string;
|
|
2585
|
+
connectorId: string;
|
|
2586
|
+
kind: "connect" | "reauthorize";
|
|
2587
|
+
owner: {
|
|
2588
|
+
type: "project";
|
|
2589
|
+
};
|
|
2590
|
+
slot: string;
|
|
2591
|
+
createdAt: string;
|
|
2592
|
+
updatedAt: string;
|
|
2593
|
+
status: "waiting";
|
|
2594
|
+
waitingFor: "account_selection";
|
|
2595
|
+
accounts: Array<{
|
|
1463
2596
|
id: string;
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
hasVerify: boolean;
|
|
1468
|
-
hasIdempotency: boolean;
|
|
2597
|
+
label: string;
|
|
2598
|
+
description?: string;
|
|
2599
|
+
avatarUrl?: string;
|
|
1469
2600
|
}>;
|
|
1470
|
-
|
|
2601
|
+
expiresAt: string;
|
|
2602
|
+
} | {
|
|
2603
|
+
id: string;
|
|
2604
|
+
connectorId: string;
|
|
2605
|
+
kind: "connect" | "reauthorize";
|
|
2606
|
+
owner: {
|
|
2607
|
+
type: "project";
|
|
2608
|
+
};
|
|
2609
|
+
slot: string;
|
|
2610
|
+
createdAt: string;
|
|
2611
|
+
updatedAt: string;
|
|
2612
|
+
status: "succeeded";
|
|
2613
|
+
connections: Array<{
|
|
2614
|
+
id: string;
|
|
2615
|
+
connectorId: string;
|
|
2616
|
+
owner: {
|
|
2617
|
+
type: "project";
|
|
2618
|
+
};
|
|
2619
|
+
slot: string;
|
|
2620
|
+
account: {
|
|
2621
|
+
id: string;
|
|
2622
|
+
label: string;
|
|
2623
|
+
description?: string;
|
|
2624
|
+
avatarUrl?: string;
|
|
2625
|
+
};
|
|
2626
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
2627
|
+
}>;
|
|
2628
|
+
finishedAt: string;
|
|
2629
|
+
} | {
|
|
2630
|
+
id: string;
|
|
2631
|
+
connectorId: string;
|
|
2632
|
+
kind: "connect" | "reauthorize";
|
|
2633
|
+
owner: {
|
|
2634
|
+
type: "project";
|
|
2635
|
+
};
|
|
2636
|
+
slot: string;
|
|
2637
|
+
createdAt: string;
|
|
2638
|
+
updatedAt: string;
|
|
2639
|
+
status: "failed";
|
|
2640
|
+
error: {
|
|
2641
|
+
code: "internal.unexpected" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable";
|
|
2642
|
+
message: string;
|
|
2643
|
+
retryable: boolean;
|
|
2644
|
+
at: string;
|
|
2645
|
+
/**
|
|
2646
|
+
* Any JSON-compatible value.
|
|
2647
|
+
*/
|
|
2648
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
2649
|
+
[key: string]: unknown;
|
|
2650
|
+
} | null;
|
|
2651
|
+
truncated?: true;
|
|
2652
|
+
};
|
|
2653
|
+
finishedAt: string;
|
|
2654
|
+
} | {
|
|
2655
|
+
id: string;
|
|
2656
|
+
connectorId: string;
|
|
2657
|
+
kind: "connect" | "reauthorize";
|
|
2658
|
+
owner: {
|
|
2659
|
+
type: "project";
|
|
2660
|
+
};
|
|
2661
|
+
slot: string;
|
|
2662
|
+
createdAt: string;
|
|
2663
|
+
updatedAt: string;
|
|
2664
|
+
status: "cancelled" | "expired";
|
|
2665
|
+
finishedAt: string;
|
|
2666
|
+
};
|
|
1471
2667
|
};
|
|
1472
|
-
export type
|
|
1473
|
-
export type
|
|
1474
|
-
body
|
|
2668
|
+
export type SelectConnectorConnectionRunAccountResponse = SelectConnectorConnectionRunAccountResponses[keyof SelectConnectorConnectionRunAccountResponses];
|
|
2669
|
+
export type ReauthorizeConnectorConnectionData = {
|
|
2670
|
+
body: {
|
|
2671
|
+
returnTo: string;
|
|
2672
|
+
};
|
|
1475
2673
|
path: {
|
|
1476
2674
|
connectorId: string;
|
|
2675
|
+
connectionId: string;
|
|
1477
2676
|
};
|
|
1478
2677
|
query?: never;
|
|
1479
|
-
url: "/api/connectors/{connectorId}";
|
|
2678
|
+
url: "/api/connectors/{connectorId}/connections/{connectionId}/reauthorize";
|
|
1480
2679
|
};
|
|
1481
|
-
export type
|
|
2680
|
+
export type ReauthorizeConnectorConnectionErrors = {
|
|
2681
|
+
/**
|
|
2682
|
+
* Response for status 400
|
|
2683
|
+
*/
|
|
2684
|
+
400: {
|
|
2685
|
+
error: string;
|
|
2686
|
+
/**
|
|
2687
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2688
|
+
*/
|
|
2689
|
+
code?: "connector.authorization_invalid" | "connector.configuration_invalid";
|
|
2690
|
+
};
|
|
2691
|
+
/**
|
|
2692
|
+
* Response for status 403
|
|
2693
|
+
*/
|
|
2694
|
+
403: {
|
|
2695
|
+
error: string;
|
|
2696
|
+
};
|
|
1482
2697
|
/**
|
|
1483
2698
|
* Response for status 404
|
|
1484
2699
|
*/
|
|
1485
2700
|
404: {
|
|
1486
2701
|
error: string;
|
|
2702
|
+
/**
|
|
2703
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2704
|
+
*/
|
|
2705
|
+
code?: "connector.not_found";
|
|
2706
|
+
};
|
|
2707
|
+
/**
|
|
2708
|
+
* Response for status 409
|
|
2709
|
+
*/
|
|
2710
|
+
409: {
|
|
2711
|
+
error: string;
|
|
2712
|
+
/**
|
|
2713
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2714
|
+
*/
|
|
2715
|
+
code?: "connector.authorization_required" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.replacement_required" | "connector.revocation_pending";
|
|
2716
|
+
};
|
|
2717
|
+
/**
|
|
2718
|
+
* Response for status 500
|
|
2719
|
+
*/
|
|
2720
|
+
500: {
|
|
2721
|
+
error: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2724
|
+
*/
|
|
2725
|
+
code?: "internal.unexpected";
|
|
2726
|
+
};
|
|
2727
|
+
/**
|
|
2728
|
+
* Response for status 502
|
|
2729
|
+
*/
|
|
2730
|
+
502: {
|
|
2731
|
+
error: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2734
|
+
*/
|
|
2735
|
+
code?: "connector.adapter_invalid" | "connector.provider_failed";
|
|
2736
|
+
};
|
|
2737
|
+
/**
|
|
2738
|
+
* Response for status 503
|
|
2739
|
+
*/
|
|
2740
|
+
503: {
|
|
2741
|
+
error: string;
|
|
2742
|
+
/**
|
|
2743
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2744
|
+
*/
|
|
2745
|
+
code?: "connector.credentials_unavailable" | "connector.provider_unavailable";
|
|
1487
2746
|
};
|
|
1488
2747
|
};
|
|
1489
|
-
export type
|
|
1490
|
-
export type
|
|
2748
|
+
export type ReauthorizeConnectorConnectionError = ReauthorizeConnectorConnectionErrors[keyof ReauthorizeConnectorConnectionErrors];
|
|
2749
|
+
export type ReauthorizeConnectorConnectionResponses = {
|
|
1491
2750
|
/**
|
|
1492
|
-
* Response for status
|
|
2751
|
+
* Response for status 201
|
|
1493
2752
|
*/
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
webhooks: Array<{
|
|
2753
|
+
201: {
|
|
2754
|
+
runId: string;
|
|
2755
|
+
authorizationUrl: string;
|
|
2756
|
+
affectedConnections: Array<{
|
|
1499
2757
|
id: string;
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
2758
|
+
connectorId: string;
|
|
2759
|
+
owner: {
|
|
2760
|
+
type: "project";
|
|
2761
|
+
};
|
|
2762
|
+
slot: string;
|
|
2763
|
+
account: {
|
|
2764
|
+
id: string;
|
|
2765
|
+
label: string;
|
|
2766
|
+
description?: string;
|
|
2767
|
+
avatarUrl?: string;
|
|
2768
|
+
};
|
|
2769
|
+
status: "connected" | "needs_reauthorization" | "disconnected";
|
|
1505
2770
|
}>;
|
|
1506
2771
|
};
|
|
1507
2772
|
};
|
|
1508
|
-
export type
|
|
2773
|
+
export type ReauthorizeConnectorConnectionResponse = ReauthorizeConnectorConnectionResponses[keyof ReauthorizeConnectorConnectionResponses];
|
|
1509
2774
|
export type ListDatasetsData = {
|
|
1510
2775
|
body?: never;
|
|
1511
2776
|
path?: never;
|
|
@@ -1573,6 +2838,10 @@ export type GetDatasetErrors = {
|
|
|
1573
2838
|
*/
|
|
1574
2839
|
404: {
|
|
1575
2840
|
error: string;
|
|
2841
|
+
/**
|
|
2842
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2843
|
+
*/
|
|
2844
|
+
code: "dataset.not_found";
|
|
1576
2845
|
};
|
|
1577
2846
|
};
|
|
1578
2847
|
export type GetDatasetError = GetDatasetErrors[keyof GetDatasetErrors];
|
|
@@ -1630,6 +2899,10 @@ export type ListDatasetVersionsErrors = {
|
|
|
1630
2899
|
*/
|
|
1631
2900
|
404: {
|
|
1632
2901
|
error: string;
|
|
2902
|
+
/**
|
|
2903
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2904
|
+
*/
|
|
2905
|
+
code: "dataset.not_found";
|
|
1633
2906
|
};
|
|
1634
2907
|
};
|
|
1635
2908
|
export type ListDatasetVersionsError = ListDatasetVersionsErrors[keyof ListDatasetVersionsErrors];
|
|
@@ -1688,6 +2961,10 @@ export type GetDatasetVersionErrors = {
|
|
|
1688
2961
|
*/
|
|
1689
2962
|
404: {
|
|
1690
2963
|
error: string;
|
|
2964
|
+
/**
|
|
2965
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
2966
|
+
*/
|
|
2967
|
+
code: "dataset.not_found" | "dataset.version_not_found";
|
|
1691
2968
|
};
|
|
1692
2969
|
};
|
|
1693
2970
|
export type GetDatasetVersionError = GetDatasetVersionErrors[keyof GetDatasetVersionErrors];
|
|
@@ -1747,6 +3024,10 @@ export type ListDatasetRowsErrors = {
|
|
|
1747
3024
|
*/
|
|
1748
3025
|
404: {
|
|
1749
3026
|
error: string;
|
|
3027
|
+
/**
|
|
3028
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
3029
|
+
*/
|
|
3030
|
+
code: "dataset.not_found" | "dataset.version_not_found";
|
|
1750
3031
|
};
|
|
1751
3032
|
};
|
|
1752
3033
|
export type ListDatasetRowsError = ListDatasetRowsErrors[keyof ListDatasetRowsErrors];
|
|
@@ -1837,8 +3118,9 @@ export type ListSyncsResponses = {
|
|
|
1837
3118
|
syncId: string;
|
|
1838
3119
|
datasetId: string;
|
|
1839
3120
|
mode: "snapshot" | "append" | "merge";
|
|
1840
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1841
|
-
|
|
3121
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3122
|
+
queuedAt: string;
|
|
3123
|
+
startedAt?: string;
|
|
1842
3124
|
finishedAt?: string;
|
|
1843
3125
|
rowsRead?: number;
|
|
1844
3126
|
output?: {
|
|
@@ -1848,8 +3130,17 @@ export type ListSyncsResponses = {
|
|
|
1848
3130
|
expectedLatestVersionId?: string;
|
|
1849
3131
|
commitMessage?: string;
|
|
1850
3132
|
error?: {
|
|
1851
|
-
|
|
3133
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
|
|
1852
3134
|
message: string;
|
|
3135
|
+
retryable: boolean;
|
|
3136
|
+
at: string;
|
|
3137
|
+
/**
|
|
3138
|
+
* Any JSON-compatible value.
|
|
3139
|
+
*/
|
|
3140
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3141
|
+
[key: string]: unknown;
|
|
3142
|
+
} | null;
|
|
3143
|
+
truncated?: true;
|
|
1853
3144
|
};
|
|
1854
3145
|
} | null;
|
|
1855
3146
|
}>;
|
|
@@ -1909,8 +3200,9 @@ export type GetSyncResponses = {
|
|
|
1909
3200
|
syncId: string;
|
|
1910
3201
|
datasetId: string;
|
|
1911
3202
|
mode: "snapshot" | "append" | "merge";
|
|
1912
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1913
|
-
|
|
3203
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3204
|
+
queuedAt: string;
|
|
3205
|
+
startedAt?: string;
|
|
1914
3206
|
finishedAt?: string;
|
|
1915
3207
|
rowsRead?: number;
|
|
1916
3208
|
output?: {
|
|
@@ -1920,8 +3212,17 @@ export type GetSyncResponses = {
|
|
|
1920
3212
|
expectedLatestVersionId?: string;
|
|
1921
3213
|
commitMessage?: string;
|
|
1922
3214
|
error?: {
|
|
1923
|
-
|
|
3215
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
|
|
1924
3216
|
message: string;
|
|
3217
|
+
retryable: boolean;
|
|
3218
|
+
at: string;
|
|
3219
|
+
/**
|
|
3220
|
+
* Any JSON-compatible value.
|
|
3221
|
+
*/
|
|
3222
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3223
|
+
[key: string]: unknown;
|
|
3224
|
+
} | null;
|
|
3225
|
+
truncated?: true;
|
|
1925
3226
|
};
|
|
1926
3227
|
} | null;
|
|
1927
3228
|
};
|
|
@@ -1933,7 +3234,7 @@ export type ListSyncRunsData = {
|
|
|
1933
3234
|
query?: {
|
|
1934
3235
|
syncId?: string;
|
|
1935
3236
|
datasetId?: string;
|
|
1936
|
-
status?: "running" | "succeeded" | "failed" | "cancelled";
|
|
3237
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1937
3238
|
startedAfter?: string;
|
|
1938
3239
|
startedBefore?: string;
|
|
1939
3240
|
limit?: string;
|
|
@@ -1968,8 +3269,9 @@ export type ListSyncRunsResponses = {
|
|
|
1968
3269
|
syncId: string;
|
|
1969
3270
|
datasetId: string;
|
|
1970
3271
|
mode: "snapshot" | "append" | "merge";
|
|
1971
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
1972
|
-
|
|
3272
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3273
|
+
queuedAt: string;
|
|
3274
|
+
startedAt?: string;
|
|
1973
3275
|
finishedAt?: string;
|
|
1974
3276
|
rowsRead?: number;
|
|
1975
3277
|
output?: {
|
|
@@ -1979,8 +3281,17 @@ export type ListSyncRunsResponses = {
|
|
|
1979
3281
|
expectedLatestVersionId?: string;
|
|
1980
3282
|
commitMessage?: string;
|
|
1981
3283
|
error?: {
|
|
1982
|
-
|
|
3284
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
|
|
1983
3285
|
message: string;
|
|
3286
|
+
retryable: boolean;
|
|
3287
|
+
at: string;
|
|
3288
|
+
/**
|
|
3289
|
+
* Any JSON-compatible value.
|
|
3290
|
+
*/
|
|
3291
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3292
|
+
[key: string]: unknown;
|
|
3293
|
+
} | null;
|
|
3294
|
+
truncated?: true;
|
|
1984
3295
|
};
|
|
1985
3296
|
}>;
|
|
1986
3297
|
hasMore: boolean;
|
|
@@ -2097,16 +3408,26 @@ export type ListPipelinesResponses = {
|
|
|
2097
3408
|
id: string;
|
|
2098
3409
|
projectId: string;
|
|
2099
3410
|
pipelineId: string;
|
|
2100
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
2101
|
-
|
|
3411
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3412
|
+
queuedAt: string;
|
|
3413
|
+
startedAt?: string;
|
|
2102
3414
|
finishedAt?: string;
|
|
2103
3415
|
output?: {
|
|
2104
3416
|
datasetId: string;
|
|
2105
3417
|
versionId: string;
|
|
2106
3418
|
};
|
|
2107
3419
|
error?: {
|
|
2108
|
-
|
|
3420
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
|
|
2109
3421
|
message: string;
|
|
3422
|
+
retryable: boolean;
|
|
3423
|
+
at: string;
|
|
3424
|
+
/**
|
|
3425
|
+
* Any JSON-compatible value.
|
|
3426
|
+
*/
|
|
3427
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3428
|
+
[key: string]: unknown;
|
|
3429
|
+
} | null;
|
|
3430
|
+
truncated?: true;
|
|
2110
3431
|
};
|
|
2111
3432
|
} | null;
|
|
2112
3433
|
}>;
|
|
@@ -2188,16 +3509,26 @@ export type GetPipelineResponses = {
|
|
|
2188
3509
|
id: string;
|
|
2189
3510
|
projectId: string;
|
|
2190
3511
|
pipelineId: string;
|
|
2191
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
2192
|
-
|
|
3512
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3513
|
+
queuedAt: string;
|
|
3514
|
+
startedAt?: string;
|
|
2193
3515
|
finishedAt?: string;
|
|
2194
3516
|
output?: {
|
|
2195
3517
|
datasetId: string;
|
|
2196
3518
|
versionId: string;
|
|
2197
3519
|
};
|
|
2198
3520
|
error?: {
|
|
2199
|
-
|
|
3521
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
|
|
2200
3522
|
message: string;
|
|
3523
|
+
retryable: boolean;
|
|
3524
|
+
at: string;
|
|
3525
|
+
/**
|
|
3526
|
+
* Any JSON-compatible value.
|
|
3527
|
+
*/
|
|
3528
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3529
|
+
[key: string]: unknown;
|
|
3530
|
+
} | null;
|
|
3531
|
+
truncated?: true;
|
|
2201
3532
|
};
|
|
2202
3533
|
} | null;
|
|
2203
3534
|
};
|
|
@@ -2208,7 +3539,7 @@ export type ListPipelineRunsData = {
|
|
|
2208
3539
|
path?: never;
|
|
2209
3540
|
query?: {
|
|
2210
3541
|
pipelineId?: string;
|
|
2211
|
-
status?: "running" | "succeeded" | "failed" | "cancelled";
|
|
3542
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
2212
3543
|
startedAfter?: string;
|
|
2213
3544
|
startedBefore?: string;
|
|
2214
3545
|
limit?: string;
|
|
@@ -2241,16 +3572,26 @@ export type ListPipelineRunsResponses = {
|
|
|
2241
3572
|
id: string;
|
|
2242
3573
|
projectId: string;
|
|
2243
3574
|
pipelineId: string;
|
|
2244
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
2245
|
-
|
|
3575
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3576
|
+
queuedAt: string;
|
|
3577
|
+
startedAt?: string;
|
|
2246
3578
|
finishedAt?: string;
|
|
2247
3579
|
output?: {
|
|
2248
3580
|
datasetId: string;
|
|
2249
3581
|
versionId: string;
|
|
2250
3582
|
};
|
|
2251
3583
|
error?: {
|
|
2252
|
-
|
|
3584
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
|
|
2253
3585
|
message: string;
|
|
3586
|
+
retryable: boolean;
|
|
3587
|
+
at: string;
|
|
3588
|
+
/**
|
|
3589
|
+
* Any JSON-compatible value.
|
|
3590
|
+
*/
|
|
3591
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3592
|
+
[key: string]: unknown;
|
|
3593
|
+
} | null;
|
|
3594
|
+
truncated?: true;
|
|
2254
3595
|
};
|
|
2255
3596
|
}>;
|
|
2256
3597
|
hasMore: boolean;
|
|
@@ -2296,16 +3637,26 @@ export type GetPipelineRunResponses = {
|
|
|
2296
3637
|
id: string;
|
|
2297
3638
|
projectId: string;
|
|
2298
3639
|
pipelineId: string;
|
|
2299
|
-
status: "running" | "succeeded" | "failed" | "cancelled";
|
|
2300
|
-
|
|
3640
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
3641
|
+
queuedAt: string;
|
|
3642
|
+
startedAt?: string;
|
|
2301
3643
|
finishedAt?: string;
|
|
2302
3644
|
output?: {
|
|
2303
3645
|
datasetId: string;
|
|
2304
3646
|
versionId: string;
|
|
2305
3647
|
};
|
|
2306
3648
|
error?: {
|
|
2307
|
-
|
|
3649
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
|
|
2308
3650
|
message: string;
|
|
3651
|
+
retryable: boolean;
|
|
3652
|
+
at: string;
|
|
3653
|
+
/**
|
|
3654
|
+
* Any JSON-compatible value.
|
|
3655
|
+
*/
|
|
3656
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3657
|
+
[key: string]: unknown;
|
|
3658
|
+
} | null;
|
|
3659
|
+
truncated?: true;
|
|
2309
3660
|
};
|
|
2310
3661
|
};
|
|
2311
3662
|
steps: Array<{
|
|
@@ -2329,8 +3680,17 @@ export type GetPipelineRunResponses = {
|
|
|
2329
3680
|
};
|
|
2330
3681
|
rowsWritten?: number;
|
|
2331
3682
|
error?: {
|
|
2332
|
-
|
|
3683
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "pipeline.step_failed";
|
|
2333
3684
|
message: string;
|
|
3685
|
+
retryable: boolean;
|
|
3686
|
+
at: string;
|
|
3687
|
+
/**
|
|
3688
|
+
* Any JSON-compatible value.
|
|
3689
|
+
*/
|
|
3690
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3691
|
+
[key: string]: unknown;
|
|
3692
|
+
} | null;
|
|
3693
|
+
truncated?: true;
|
|
2334
3694
|
};
|
|
2335
3695
|
}>;
|
|
2336
3696
|
};
|
|
@@ -2461,7 +3821,19 @@ export type ListWorkflowsResponses = {
|
|
|
2461
3821
|
queuedAt?: string;
|
|
2462
3822
|
startedAt: string;
|
|
2463
3823
|
finishedAt?: string;
|
|
2464
|
-
error?:
|
|
3824
|
+
error?: {
|
|
3825
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
3826
|
+
message: string;
|
|
3827
|
+
retryable: boolean;
|
|
3828
|
+
at: string;
|
|
3829
|
+
/**
|
|
3830
|
+
* Any JSON-compatible value.
|
|
3831
|
+
*/
|
|
3832
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3833
|
+
[key: string]: unknown;
|
|
3834
|
+
} | null;
|
|
3835
|
+
truncated?: true;
|
|
3836
|
+
};
|
|
2465
3837
|
requestedBy: {
|
|
2466
3838
|
principalType: "user" | "serviceAccount" | "system";
|
|
2467
3839
|
principalId: string;
|
|
@@ -2565,7 +3937,19 @@ export type GetWorkflowResponses = {
|
|
|
2565
3937
|
queuedAt?: string;
|
|
2566
3938
|
startedAt: string;
|
|
2567
3939
|
finishedAt?: string;
|
|
2568
|
-
error?:
|
|
3940
|
+
error?: {
|
|
3941
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
3942
|
+
message: string;
|
|
3943
|
+
retryable: boolean;
|
|
3944
|
+
at: string;
|
|
3945
|
+
/**
|
|
3946
|
+
* Any JSON-compatible value.
|
|
3947
|
+
*/
|
|
3948
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
3949
|
+
[key: string]: unknown;
|
|
3950
|
+
} | null;
|
|
3951
|
+
truncated?: true;
|
|
3952
|
+
};
|
|
2569
3953
|
requestedBy: {
|
|
2570
3954
|
principalType: "user" | "serviceAccount" | "system";
|
|
2571
3955
|
principalId: string;
|
|
@@ -2938,7 +4322,19 @@ export type ListWorkflowRunsResponses = {
|
|
|
2938
4322
|
queuedAt?: string;
|
|
2939
4323
|
startedAt: string;
|
|
2940
4324
|
finishedAt?: string;
|
|
2941
|
-
error?:
|
|
4325
|
+
error?: {
|
|
4326
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
4327
|
+
message: string;
|
|
4328
|
+
retryable: boolean;
|
|
4329
|
+
at: string;
|
|
4330
|
+
/**
|
|
4331
|
+
* Any JSON-compatible value.
|
|
4332
|
+
*/
|
|
4333
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
4334
|
+
[key: string]: unknown;
|
|
4335
|
+
} | null;
|
|
4336
|
+
truncated?: true;
|
|
4337
|
+
};
|
|
2942
4338
|
requestedBy: {
|
|
2943
4339
|
principalType: "user" | "serviceAccount" | "system";
|
|
2944
4340
|
principalId: string;
|
|
@@ -2991,7 +4387,19 @@ export type GetWorkflowRunResponses = {
|
|
|
2991
4387
|
queuedAt?: string;
|
|
2992
4388
|
startedAt: string;
|
|
2993
4389
|
finishedAt?: string;
|
|
2994
|
-
error?:
|
|
4390
|
+
error?: {
|
|
4391
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
4392
|
+
message: string;
|
|
4393
|
+
retryable: boolean;
|
|
4394
|
+
at: string;
|
|
4395
|
+
/**
|
|
4396
|
+
* Any JSON-compatible value.
|
|
4397
|
+
*/
|
|
4398
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
4399
|
+
[key: string]: unknown;
|
|
4400
|
+
} | null;
|
|
4401
|
+
truncated?: true;
|
|
4402
|
+
};
|
|
2995
4403
|
requestedBy: {
|
|
2996
4404
|
principalType: "user" | "serviceAccount" | "system";
|
|
2997
4405
|
principalId: string;
|
|
@@ -3029,7 +4437,19 @@ export type GetWorkflowRunResponses = {
|
|
|
3029
4437
|
[key: string]: unknown;
|
|
3030
4438
|
} | null;
|
|
3031
4439
|
};
|
|
3032
|
-
error?:
|
|
4440
|
+
error?: {
|
|
4441
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
4442
|
+
message: string;
|
|
4443
|
+
retryable: boolean;
|
|
4444
|
+
at: string;
|
|
4445
|
+
/**
|
|
4446
|
+
* Any JSON-compatible value.
|
|
4447
|
+
*/
|
|
4448
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
4449
|
+
[key: string]: unknown;
|
|
4450
|
+
} | null;
|
|
4451
|
+
truncated?: true;
|
|
4452
|
+
};
|
|
3033
4453
|
agentExecution?: {
|
|
3034
4454
|
agentId: string;
|
|
3035
4455
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
@@ -3037,7 +4457,24 @@ export type GetWorkflowRunResponses = {
|
|
|
3037
4457
|
modelId?: string;
|
|
3038
4458
|
finishReason?: string;
|
|
3039
4459
|
usage?: {
|
|
3040
|
-
|
|
4460
|
+
inputTokens?: number;
|
|
4461
|
+
outputTokens?: number;
|
|
4462
|
+
totalTokens?: number;
|
|
4463
|
+
uncachedInputTokens?: number;
|
|
4464
|
+
cacheReadInputTokens?: number;
|
|
4465
|
+
cacheWriteInputTokens?: number;
|
|
4466
|
+
textOutputTokens?: number;
|
|
4467
|
+
reasoningOutputTokens?: number;
|
|
4468
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
4469
|
+
};
|
|
4470
|
+
cost?: {
|
|
4471
|
+
amounts: Array<{
|
|
4472
|
+
currency: string;
|
|
4473
|
+
amountNanos: string;
|
|
4474
|
+
}>;
|
|
4475
|
+
ratedCallCount: number;
|
|
4476
|
+
unpriceableCallCount: number;
|
|
4477
|
+
unvaluedCallCount: number;
|
|
3041
4478
|
};
|
|
3042
4479
|
startedAt?: string;
|
|
3043
4480
|
completedAt?: string;
|
|
@@ -3087,19 +4524,149 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
3087
4524
|
modelId?: string;
|
|
3088
4525
|
finishReason?: string;
|
|
3089
4526
|
usage?: {
|
|
3090
|
-
|
|
4527
|
+
inputTokens?: number;
|
|
4528
|
+
outputTokens?: number;
|
|
4529
|
+
totalTokens?: number;
|
|
4530
|
+
uncachedInputTokens?: number;
|
|
4531
|
+
cacheReadInputTokens?: number;
|
|
4532
|
+
cacheWriteInputTokens?: number;
|
|
4533
|
+
textOutputTokens?: number;
|
|
4534
|
+
reasoningOutputTokens?: number;
|
|
4535
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
4536
|
+
};
|
|
4537
|
+
cost?: {
|
|
4538
|
+
amounts: Array<{
|
|
4539
|
+
currency: string;
|
|
4540
|
+
amountNanos: string;
|
|
4541
|
+
}>;
|
|
4542
|
+
ratedCallCount: number;
|
|
4543
|
+
unpriceableCallCount: number;
|
|
4544
|
+
unvaluedCallCount: number;
|
|
3091
4545
|
};
|
|
3092
4546
|
startedAt?: string;
|
|
3093
4547
|
completedAt?: string;
|
|
3094
4548
|
nodeRunId: string;
|
|
3095
4549
|
prompt: string;
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
4550
|
+
trace?: Array<{
|
|
4551
|
+
type: "text";
|
|
4552
|
+
text: string;
|
|
4553
|
+
/**
|
|
4554
|
+
* Any JSON-compatible value.
|
|
4555
|
+
*/
|
|
4556
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4557
|
+
[key: string]: unknown;
|
|
4558
|
+
} | null;
|
|
4559
|
+
} | {
|
|
4560
|
+
type: "reasoning";
|
|
4561
|
+
text: string;
|
|
4562
|
+
/**
|
|
4563
|
+
* Any JSON-compatible value.
|
|
4564
|
+
*/
|
|
4565
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4566
|
+
[key: string]: unknown;
|
|
4567
|
+
} | null;
|
|
4568
|
+
} | {
|
|
4569
|
+
type: "step-start";
|
|
4570
|
+
} | {
|
|
4571
|
+
type: "file";
|
|
4572
|
+
fileRef: {
|
|
4573
|
+
blobId: string;
|
|
4574
|
+
digest: string;
|
|
4575
|
+
sizeBytes: number;
|
|
4576
|
+
fileName?: string;
|
|
4577
|
+
mediaType?: string;
|
|
4578
|
+
logicalPath?: string;
|
|
4579
|
+
};
|
|
4580
|
+
/**
|
|
4581
|
+
* Any JSON-compatible value.
|
|
4582
|
+
*/
|
|
4583
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4584
|
+
[key: string]: unknown;
|
|
4585
|
+
} | null;
|
|
4586
|
+
} | {
|
|
4587
|
+
context: {
|
|
4588
|
+
kind: "object";
|
|
4589
|
+
ref: {
|
|
4590
|
+
objectTypeId: string;
|
|
4591
|
+
primaryId: string;
|
|
4592
|
+
};
|
|
4593
|
+
} | {
|
|
4594
|
+
kind: "app-state";
|
|
4595
|
+
id: string;
|
|
4596
|
+
label: string;
|
|
4597
|
+
description: string;
|
|
4598
|
+
/**
|
|
4599
|
+
* Any JSON-compatible value.
|
|
4600
|
+
*/
|
|
4601
|
+
value: string | number | boolean | Array<unknown> | {
|
|
4602
|
+
[key: string]: unknown;
|
|
4603
|
+
} | null;
|
|
4604
|
+
};
|
|
4605
|
+
origin: "ambient" | "explicit";
|
|
4606
|
+
type: "context";
|
|
4607
|
+
} | {
|
|
4608
|
+
type: "tool-call";
|
|
4609
|
+
toolCallId: string;
|
|
4610
|
+
toolName: string;
|
|
4611
|
+
dynamic?: boolean;
|
|
4612
|
+
providerExecuted?: boolean;
|
|
4613
|
+
/**
|
|
4614
|
+
* Any JSON-compatible value.
|
|
4615
|
+
*/
|
|
4616
|
+
input: string | number | boolean | Array<unknown> | {
|
|
4617
|
+
[key: string]: unknown;
|
|
4618
|
+
} | null;
|
|
4619
|
+
/**
|
|
4620
|
+
* Any JSON-compatible value.
|
|
4621
|
+
*/
|
|
4622
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4623
|
+
[key: string]: unknown;
|
|
4624
|
+
} | null;
|
|
4625
|
+
state: "output-available";
|
|
4626
|
+
/**
|
|
4627
|
+
* Any JSON-compatible value.
|
|
4628
|
+
*/
|
|
4629
|
+
output: string | number | boolean | Array<unknown> | {
|
|
4630
|
+
[key: string]: unknown;
|
|
4631
|
+
} | null;
|
|
4632
|
+
} | {
|
|
4633
|
+
type: "tool-call";
|
|
4634
|
+
toolCallId: string;
|
|
4635
|
+
toolName: string;
|
|
4636
|
+
dynamic?: boolean;
|
|
4637
|
+
providerExecuted?: boolean;
|
|
4638
|
+
/**
|
|
4639
|
+
* Any JSON-compatible value.
|
|
4640
|
+
*/
|
|
4641
|
+
input: string | number | boolean | Array<unknown> | {
|
|
4642
|
+
[key: string]: unknown;
|
|
4643
|
+
} | null;
|
|
4644
|
+
/**
|
|
4645
|
+
* Any JSON-compatible value.
|
|
4646
|
+
*/
|
|
4647
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4648
|
+
[key: string]: unknown;
|
|
4649
|
+
} | null;
|
|
4650
|
+
state: "output-error";
|
|
4651
|
+
errorText: string;
|
|
4652
|
+
}>;
|
|
4653
|
+
diagnostics?: Array<string | number | boolean | Array<unknown> | {
|
|
4654
|
+
[key: string]: unknown;
|
|
4655
|
+
} | null>;
|
|
4656
|
+
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
4657
|
+
error?: {
|
|
4658
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
4659
|
+
message: string;
|
|
4660
|
+
retryable: boolean;
|
|
4661
|
+
at: string;
|
|
4662
|
+
/**
|
|
4663
|
+
* Any JSON-compatible value.
|
|
4664
|
+
*/
|
|
4665
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
4666
|
+
[key: string]: unknown;
|
|
4667
|
+
} | null;
|
|
4668
|
+
truncated?: true;
|
|
3099
4669
|
};
|
|
3100
|
-
trace?: Array<unknown>;
|
|
3101
|
-
diagnostics?: Array<unknown>;
|
|
3102
|
-
error?: string;
|
|
3103
4670
|
createdAt: string;
|
|
3104
4671
|
};
|
|
3105
4672
|
};
|
|
@@ -3148,7 +4715,19 @@ export type CancelWorkflowRunResponses = {
|
|
|
3148
4715
|
queuedAt?: string;
|
|
3149
4716
|
startedAt: string;
|
|
3150
4717
|
finishedAt?: string;
|
|
3151
|
-
error?:
|
|
4718
|
+
error?: {
|
|
4719
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
4720
|
+
message: string;
|
|
4721
|
+
retryable: boolean;
|
|
4722
|
+
at: string;
|
|
4723
|
+
/**
|
|
4724
|
+
* Any JSON-compatible value.
|
|
4725
|
+
*/
|
|
4726
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
4727
|
+
[key: string]: unknown;
|
|
4728
|
+
} | null;
|
|
4729
|
+
truncated?: true;
|
|
4730
|
+
};
|
|
3152
4731
|
requestedBy: {
|
|
3153
4732
|
principalType: "user" | "serviceAccount" | "system";
|
|
3154
4733
|
principalId: string;
|
|
@@ -3186,7 +4765,19 @@ export type CancelWorkflowRunResponses = {
|
|
|
3186
4765
|
[key: string]: unknown;
|
|
3187
4766
|
} | null;
|
|
3188
4767
|
};
|
|
3189
|
-
error?:
|
|
4768
|
+
error?: {
|
|
4769
|
+
code: "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed";
|
|
4770
|
+
message: string;
|
|
4771
|
+
retryable: boolean;
|
|
4772
|
+
at: string;
|
|
4773
|
+
/**
|
|
4774
|
+
* Any JSON-compatible value.
|
|
4775
|
+
*/
|
|
4776
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
4777
|
+
[key: string]: unknown;
|
|
4778
|
+
} | null;
|
|
4779
|
+
truncated?: true;
|
|
4780
|
+
};
|
|
3190
4781
|
agentExecution?: {
|
|
3191
4782
|
agentId: string;
|
|
3192
4783
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
@@ -3194,7 +4785,24 @@ export type CancelWorkflowRunResponses = {
|
|
|
3194
4785
|
modelId?: string;
|
|
3195
4786
|
finishReason?: string;
|
|
3196
4787
|
usage?: {
|
|
3197
|
-
|
|
4788
|
+
inputTokens?: number;
|
|
4789
|
+
outputTokens?: number;
|
|
4790
|
+
totalTokens?: number;
|
|
4791
|
+
uncachedInputTokens?: number;
|
|
4792
|
+
cacheReadInputTokens?: number;
|
|
4793
|
+
cacheWriteInputTokens?: number;
|
|
4794
|
+
textOutputTokens?: number;
|
|
4795
|
+
reasoningOutputTokens?: number;
|
|
4796
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
4797
|
+
};
|
|
4798
|
+
cost?: {
|
|
4799
|
+
amounts: Array<{
|
|
4800
|
+
currency: string;
|
|
4801
|
+
amountNanos: string;
|
|
4802
|
+
}>;
|
|
4803
|
+
ratedCallCount: number;
|
|
4804
|
+
unpriceableCallCount: number;
|
|
4805
|
+
unvaluedCallCount: number;
|
|
3198
4806
|
};
|
|
3199
4807
|
startedAt?: string;
|
|
3200
4808
|
completedAt?: string;
|
|
@@ -4698,9 +6306,16 @@ export type ListActionRunsResponses = {
|
|
|
4698
6306
|
startedAt?: string;
|
|
4699
6307
|
finishedAt?: string;
|
|
4700
6308
|
error?: {
|
|
4701
|
-
|
|
6309
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
|
|
4702
6310
|
message: string;
|
|
4703
|
-
|
|
6311
|
+
retryable: boolean;
|
|
6312
|
+
at: string;
|
|
6313
|
+
details: {
|
|
6314
|
+
actionId: string;
|
|
6315
|
+
runId: string;
|
|
6316
|
+
phase: "request" | "enqueue" | "validation" | "writeback" | "edits" | "commit" | "effects" | "cancelled";
|
|
6317
|
+
};
|
|
6318
|
+
truncated?: true;
|
|
4704
6319
|
};
|
|
4705
6320
|
}>;
|
|
4706
6321
|
hasMore: boolean;
|
|
@@ -4758,30 +6373,62 @@ export type GetActionRunResponses = {
|
|
|
4758
6373
|
startedAt?: string;
|
|
4759
6374
|
finishedAt?: string;
|
|
4760
6375
|
error?: {
|
|
4761
|
-
|
|
6376
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
|
|
4762
6377
|
message: string;
|
|
4763
|
-
|
|
6378
|
+
retryable: boolean;
|
|
6379
|
+
at: string;
|
|
6380
|
+
details: {
|
|
6381
|
+
actionId: string;
|
|
6382
|
+
runId: string;
|
|
6383
|
+
phase: "request" | "enqueue" | "validation" | "writeback" | "edits" | "commit" | "effects" | "cancelled";
|
|
6384
|
+
};
|
|
6385
|
+
truncated?: true;
|
|
4764
6386
|
};
|
|
4765
6387
|
params: {
|
|
4766
6388
|
[key: string]: unknown;
|
|
4767
6389
|
};
|
|
4768
6390
|
writeback?: {
|
|
4769
|
-
status: "succeeded"
|
|
6391
|
+
status: "succeeded";
|
|
4770
6392
|
completedAt: string;
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
6393
|
+
/**
|
|
6394
|
+
* Any JSON-compatible value.
|
|
6395
|
+
*/
|
|
6396
|
+
result: string | number | boolean | Array<unknown> | {
|
|
6397
|
+
[key: string]: unknown;
|
|
6398
|
+
} | null;
|
|
6399
|
+
} | {
|
|
6400
|
+
status: "failed";
|
|
6401
|
+
completedAt: string;
|
|
6402
|
+
error: {
|
|
6403
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
|
|
4774
6404
|
message: string;
|
|
4775
|
-
|
|
6405
|
+
retryable: boolean;
|
|
6406
|
+
at: string;
|
|
6407
|
+
details: {
|
|
6408
|
+
actionId: string;
|
|
6409
|
+
runId: string;
|
|
6410
|
+
phase: "writeback";
|
|
6411
|
+
};
|
|
6412
|
+
truncated?: true;
|
|
4776
6413
|
};
|
|
4777
6414
|
};
|
|
4778
6415
|
effects?: {
|
|
4779
|
-
status: "succeeded"
|
|
6416
|
+
status: "succeeded";
|
|
4780
6417
|
completedAt: string;
|
|
4781
|
-
|
|
4782
|
-
|
|
6418
|
+
} | {
|
|
6419
|
+
status: "failed";
|
|
6420
|
+
completedAt: string;
|
|
6421
|
+
error: {
|
|
6422
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
|
|
4783
6423
|
message: string;
|
|
4784
|
-
|
|
6424
|
+
retryable: boolean;
|
|
6425
|
+
at: string;
|
|
6426
|
+
details: {
|
|
6427
|
+
actionId: string;
|
|
6428
|
+
runId: string;
|
|
6429
|
+
phase: "effects";
|
|
6430
|
+
};
|
|
6431
|
+
truncated?: true;
|
|
4785
6432
|
};
|
|
4786
6433
|
};
|
|
4787
6434
|
};
|
|
@@ -5353,23 +7000,32 @@ export type PostAgentThreadMessageResponses = {
|
|
|
5353
7000
|
threadId: string;
|
|
5354
7001
|
agentId: string;
|
|
5355
7002
|
triggerMessageId: string;
|
|
5356
|
-
|
|
5357
|
-
type: "user" | "serviceAccount"
|
|
5358
|
-
id: string;
|
|
5359
|
-
};
|
|
5360
|
-
executionPrincipal?: {
|
|
5361
|
-
type: "user" | "serviceAccount" | "system";
|
|
7003
|
+
requestedBy?: {
|
|
7004
|
+
type: "user" | "serviceAccount";
|
|
5362
7005
|
id: string;
|
|
5363
7006
|
};
|
|
5364
7007
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
5365
7008
|
modelId?: string;
|
|
5366
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7009
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
5367
7010
|
usage?: {
|
|
5368
7011
|
inputTokens?: number;
|
|
5369
7012
|
outputTokens?: number;
|
|
5370
7013
|
totalTokens?: number;
|
|
5371
|
-
|
|
5372
|
-
|
|
7014
|
+
uncachedInputTokens?: number;
|
|
7015
|
+
cacheReadInputTokens?: number;
|
|
7016
|
+
cacheWriteInputTokens?: number;
|
|
7017
|
+
textOutputTokens?: number;
|
|
7018
|
+
reasoningOutputTokens?: number;
|
|
7019
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7020
|
+
};
|
|
7021
|
+
cost?: {
|
|
7022
|
+
amounts: Array<{
|
|
7023
|
+
currency: string;
|
|
7024
|
+
amountNanos: string;
|
|
7025
|
+
}>;
|
|
7026
|
+
ratedCallCount: number;
|
|
7027
|
+
unpriceableCallCount: number;
|
|
7028
|
+
unvaluedCallCount: number;
|
|
5373
7029
|
};
|
|
5374
7030
|
diagnostics?: Array<{
|
|
5375
7031
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
@@ -5378,7 +7034,19 @@ export type PostAgentThreadMessageResponses = {
|
|
|
5378
7034
|
path?: string;
|
|
5379
7035
|
message: string;
|
|
5380
7036
|
}>;
|
|
5381
|
-
error?:
|
|
7037
|
+
error?: {
|
|
7038
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7039
|
+
message: string;
|
|
7040
|
+
retryable: boolean;
|
|
7041
|
+
at: string;
|
|
7042
|
+
/**
|
|
7043
|
+
* Any JSON-compatible value.
|
|
7044
|
+
*/
|
|
7045
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
7046
|
+
[key: string]: unknown;
|
|
7047
|
+
} | null;
|
|
7048
|
+
truncated?: true;
|
|
7049
|
+
};
|
|
5382
7050
|
attempt: number;
|
|
5383
7051
|
streamId: string;
|
|
5384
7052
|
createdAt: string;
|
|
@@ -5519,23 +7187,32 @@ export type CancelAgentRunResponses = {
|
|
|
5519
7187
|
threadId: string;
|
|
5520
7188
|
agentId: string;
|
|
5521
7189
|
triggerMessageId: string;
|
|
5522
|
-
|
|
5523
|
-
type: "user" | "serviceAccount"
|
|
5524
|
-
id: string;
|
|
5525
|
-
};
|
|
5526
|
-
executionPrincipal?: {
|
|
5527
|
-
type: "user" | "serviceAccount" | "system";
|
|
7190
|
+
requestedBy?: {
|
|
7191
|
+
type: "user" | "serviceAccount";
|
|
5528
7192
|
id: string;
|
|
5529
7193
|
};
|
|
5530
7194
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
5531
7195
|
modelId?: string;
|
|
5532
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7196
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
5533
7197
|
usage?: {
|
|
5534
7198
|
inputTokens?: number;
|
|
5535
7199
|
outputTokens?: number;
|
|
5536
7200
|
totalTokens?: number;
|
|
5537
|
-
|
|
5538
|
-
|
|
7201
|
+
uncachedInputTokens?: number;
|
|
7202
|
+
cacheReadInputTokens?: number;
|
|
7203
|
+
cacheWriteInputTokens?: number;
|
|
7204
|
+
textOutputTokens?: number;
|
|
7205
|
+
reasoningOutputTokens?: number;
|
|
7206
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7207
|
+
};
|
|
7208
|
+
cost?: {
|
|
7209
|
+
amounts: Array<{
|
|
7210
|
+
currency: string;
|
|
7211
|
+
amountNanos: string;
|
|
7212
|
+
}>;
|
|
7213
|
+
ratedCallCount: number;
|
|
7214
|
+
unpriceableCallCount: number;
|
|
7215
|
+
unvaluedCallCount: number;
|
|
5539
7216
|
};
|
|
5540
7217
|
diagnostics?: Array<{
|
|
5541
7218
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
@@ -5544,7 +7221,19 @@ export type CancelAgentRunResponses = {
|
|
|
5544
7221
|
path?: string;
|
|
5545
7222
|
message: string;
|
|
5546
7223
|
}>;
|
|
5547
|
-
error?:
|
|
7224
|
+
error?: {
|
|
7225
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7226
|
+
message: string;
|
|
7227
|
+
retryable: boolean;
|
|
7228
|
+
at: string;
|
|
7229
|
+
/**
|
|
7230
|
+
* Any JSON-compatible value.
|
|
7231
|
+
*/
|
|
7232
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
7233
|
+
[key: string]: unknown;
|
|
7234
|
+
} | null;
|
|
7235
|
+
truncated?: true;
|
|
7236
|
+
};
|
|
5548
7237
|
attempt: number;
|
|
5549
7238
|
streamId: string;
|
|
5550
7239
|
createdAt: string;
|
|
@@ -5601,23 +7290,32 @@ export type RetryAgentRunResponses = {
|
|
|
5601
7290
|
threadId: string;
|
|
5602
7291
|
agentId: string;
|
|
5603
7292
|
triggerMessageId: string;
|
|
5604
|
-
|
|
5605
|
-
type: "user" | "serviceAccount"
|
|
5606
|
-
id: string;
|
|
5607
|
-
};
|
|
5608
|
-
executionPrincipal?: {
|
|
5609
|
-
type: "user" | "serviceAccount" | "system";
|
|
7293
|
+
requestedBy?: {
|
|
7294
|
+
type: "user" | "serviceAccount";
|
|
5610
7295
|
id: string;
|
|
5611
7296
|
};
|
|
5612
7297
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
5613
7298
|
modelId?: string;
|
|
5614
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7299
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
5615
7300
|
usage?: {
|
|
5616
7301
|
inputTokens?: number;
|
|
5617
7302
|
outputTokens?: number;
|
|
5618
7303
|
totalTokens?: number;
|
|
5619
|
-
|
|
5620
|
-
|
|
7304
|
+
uncachedInputTokens?: number;
|
|
7305
|
+
cacheReadInputTokens?: number;
|
|
7306
|
+
cacheWriteInputTokens?: number;
|
|
7307
|
+
textOutputTokens?: number;
|
|
7308
|
+
reasoningOutputTokens?: number;
|
|
7309
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7310
|
+
};
|
|
7311
|
+
cost?: {
|
|
7312
|
+
amounts: Array<{
|
|
7313
|
+
currency: string;
|
|
7314
|
+
amountNanos: string;
|
|
7315
|
+
}>;
|
|
7316
|
+
ratedCallCount: number;
|
|
7317
|
+
unpriceableCallCount: number;
|
|
7318
|
+
unvaluedCallCount: number;
|
|
5621
7319
|
};
|
|
5622
7320
|
diagnostics?: Array<{
|
|
5623
7321
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
@@ -5626,7 +7324,19 @@ export type RetryAgentRunResponses = {
|
|
|
5626
7324
|
path?: string;
|
|
5627
7325
|
message: string;
|
|
5628
7326
|
}>;
|
|
5629
|
-
error?:
|
|
7327
|
+
error?: {
|
|
7328
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7329
|
+
message: string;
|
|
7330
|
+
retryable: boolean;
|
|
7331
|
+
at: string;
|
|
7332
|
+
/**
|
|
7333
|
+
* Any JSON-compatible value.
|
|
7334
|
+
*/
|
|
7335
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
7336
|
+
[key: string]: unknown;
|
|
7337
|
+
} | null;
|
|
7338
|
+
truncated?: true;
|
|
7339
|
+
};
|
|
5630
7340
|
attempt: number;
|
|
5631
7341
|
streamId: string;
|
|
5632
7342
|
createdAt: string;
|
|
@@ -5681,23 +7391,32 @@ export type ListAgentThreadRunsResponses = {
|
|
|
5681
7391
|
threadId: string;
|
|
5682
7392
|
agentId: string;
|
|
5683
7393
|
triggerMessageId: string;
|
|
5684
|
-
|
|
5685
|
-
type: "user" | "serviceAccount"
|
|
5686
|
-
id: string;
|
|
5687
|
-
};
|
|
5688
|
-
executionPrincipal?: {
|
|
5689
|
-
type: "user" | "serviceAccount" | "system";
|
|
7394
|
+
requestedBy?: {
|
|
7395
|
+
type: "user" | "serviceAccount";
|
|
5690
7396
|
id: string;
|
|
5691
7397
|
};
|
|
5692
7398
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
5693
7399
|
modelId?: string;
|
|
5694
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7400
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
5695
7401
|
usage?: {
|
|
5696
7402
|
inputTokens?: number;
|
|
5697
7403
|
outputTokens?: number;
|
|
5698
7404
|
totalTokens?: number;
|
|
5699
|
-
|
|
5700
|
-
|
|
7405
|
+
uncachedInputTokens?: number;
|
|
7406
|
+
cacheReadInputTokens?: number;
|
|
7407
|
+
cacheWriteInputTokens?: number;
|
|
7408
|
+
textOutputTokens?: number;
|
|
7409
|
+
reasoningOutputTokens?: number;
|
|
7410
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7411
|
+
};
|
|
7412
|
+
cost?: {
|
|
7413
|
+
amounts: Array<{
|
|
7414
|
+
currency: string;
|
|
7415
|
+
amountNanos: string;
|
|
7416
|
+
}>;
|
|
7417
|
+
ratedCallCount: number;
|
|
7418
|
+
unpriceableCallCount: number;
|
|
7419
|
+
unvaluedCallCount: number;
|
|
5701
7420
|
};
|
|
5702
7421
|
diagnostics?: Array<{
|
|
5703
7422
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
@@ -5706,7 +7425,19 @@ export type ListAgentThreadRunsResponses = {
|
|
|
5706
7425
|
path?: string;
|
|
5707
7426
|
message: string;
|
|
5708
7427
|
}>;
|
|
5709
|
-
error?:
|
|
7428
|
+
error?: {
|
|
7429
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7430
|
+
message: string;
|
|
7431
|
+
retryable: boolean;
|
|
7432
|
+
at: string;
|
|
7433
|
+
/**
|
|
7434
|
+
* Any JSON-compatible value.
|
|
7435
|
+
*/
|
|
7436
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
7437
|
+
[key: string]: unknown;
|
|
7438
|
+
} | null;
|
|
7439
|
+
truncated?: true;
|
|
7440
|
+
};
|
|
5710
7441
|
attempt: number;
|
|
5711
7442
|
streamId: string;
|
|
5712
7443
|
createdAt: string;
|
|
@@ -5757,23 +7488,32 @@ export type GetAgentRunResponses = {
|
|
|
5757
7488
|
threadId: string;
|
|
5758
7489
|
agentId: string;
|
|
5759
7490
|
triggerMessageId: string;
|
|
5760
|
-
|
|
5761
|
-
type: "user" | "serviceAccount"
|
|
5762
|
-
id: string;
|
|
5763
|
-
};
|
|
5764
|
-
executionPrincipal?: {
|
|
5765
|
-
type: "user" | "serviceAccount" | "system";
|
|
7491
|
+
requestedBy?: {
|
|
7492
|
+
type: "user" | "serviceAccount";
|
|
5766
7493
|
id: string;
|
|
5767
7494
|
};
|
|
5768
7495
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
5769
7496
|
modelId?: string;
|
|
5770
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7497
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
5771
7498
|
usage?: {
|
|
5772
7499
|
inputTokens?: number;
|
|
5773
7500
|
outputTokens?: number;
|
|
5774
7501
|
totalTokens?: number;
|
|
5775
|
-
|
|
5776
|
-
|
|
7502
|
+
uncachedInputTokens?: number;
|
|
7503
|
+
cacheReadInputTokens?: number;
|
|
7504
|
+
cacheWriteInputTokens?: number;
|
|
7505
|
+
textOutputTokens?: number;
|
|
7506
|
+
reasoningOutputTokens?: number;
|
|
7507
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7508
|
+
};
|
|
7509
|
+
cost?: {
|
|
7510
|
+
amounts: Array<{
|
|
7511
|
+
currency: string;
|
|
7512
|
+
amountNanos: string;
|
|
7513
|
+
}>;
|
|
7514
|
+
ratedCallCount: number;
|
|
7515
|
+
unpriceableCallCount: number;
|
|
7516
|
+
unvaluedCallCount: number;
|
|
5777
7517
|
};
|
|
5778
7518
|
diagnostics?: Array<{
|
|
5779
7519
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
@@ -5782,7 +7522,19 @@ export type GetAgentRunResponses = {
|
|
|
5782
7522
|
path?: string;
|
|
5783
7523
|
message: string;
|
|
5784
7524
|
}>;
|
|
5785
|
-
error?:
|
|
7525
|
+
error?: {
|
|
7526
|
+
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
7527
|
+
message: string;
|
|
7528
|
+
retryable: boolean;
|
|
7529
|
+
at: string;
|
|
7530
|
+
/**
|
|
7531
|
+
* Any JSON-compatible value.
|
|
7532
|
+
*/
|
|
7533
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
7534
|
+
[key: string]: unknown;
|
|
7535
|
+
} | null;
|
|
7536
|
+
truncated?: true;
|
|
7537
|
+
};
|
|
5786
7538
|
attempt: number;
|
|
5787
7539
|
streamId: string;
|
|
5788
7540
|
createdAt: string;
|
|
@@ -6844,18 +8596,38 @@ export type ListProjectionsResponses = {
|
|
|
6844
8596
|
targetObjectTypeId: string;
|
|
6845
8597
|
};
|
|
6846
8598
|
};
|
|
8599
|
+
conflictResolution: {
|
|
8600
|
+
strategy: "editsWin";
|
|
8601
|
+
} | {
|
|
8602
|
+
strategy: "mostRecent";
|
|
8603
|
+
sourceTimestamp: string;
|
|
8604
|
+
};
|
|
6847
8605
|
latestRun: {
|
|
6848
8606
|
id: string;
|
|
6849
8607
|
projectId: string;
|
|
6850
|
-
|
|
8608
|
+
executionId: string;
|
|
8609
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6851
8610
|
attempt: number;
|
|
6852
8611
|
progress: {
|
|
6853
8612
|
sourceRowsRead: number;
|
|
6854
8613
|
sourceRowsSkipped: number;
|
|
6855
8614
|
};
|
|
6856
|
-
|
|
8615
|
+
queuedAt: string;
|
|
8616
|
+
startedAt?: string;
|
|
6857
8617
|
finishedAt?: string;
|
|
6858
|
-
|
|
8618
|
+
error?: {
|
|
8619
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8620
|
+
message: string;
|
|
8621
|
+
retryable: boolean;
|
|
8622
|
+
at: string;
|
|
8623
|
+
/**
|
|
8624
|
+
* Any JSON-compatible value.
|
|
8625
|
+
*/
|
|
8626
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8627
|
+
[key: string]: unknown;
|
|
8628
|
+
} | null;
|
|
8629
|
+
truncated?: true;
|
|
8630
|
+
};
|
|
6859
8631
|
identity: {
|
|
6860
8632
|
projectionId: string;
|
|
6861
8633
|
datasetVersion: {
|
|
@@ -6875,15 +8647,29 @@ export type ListProjectionsResponses = {
|
|
|
6875
8647
|
} | {
|
|
6876
8648
|
id: string;
|
|
6877
8649
|
projectId: string;
|
|
6878
|
-
|
|
8650
|
+
executionId: string;
|
|
8651
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6879
8652
|
attempt: number;
|
|
6880
8653
|
progress: {
|
|
6881
8654
|
sourceRowsRead: number;
|
|
6882
8655
|
sourceRowsSkipped: number;
|
|
6883
8656
|
};
|
|
6884
|
-
|
|
8657
|
+
queuedAt: string;
|
|
8658
|
+
startedAt?: string;
|
|
6885
8659
|
finishedAt?: string;
|
|
6886
|
-
|
|
8660
|
+
error?: {
|
|
8661
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8662
|
+
message: string;
|
|
8663
|
+
retryable: boolean;
|
|
8664
|
+
at: string;
|
|
8665
|
+
/**
|
|
8666
|
+
* Any JSON-compatible value.
|
|
8667
|
+
*/
|
|
8668
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8669
|
+
[key: string]: unknown;
|
|
8670
|
+
} | null;
|
|
8671
|
+
truncated?: true;
|
|
8672
|
+
};
|
|
6887
8673
|
identity: {
|
|
6888
8674
|
projectionId: string;
|
|
6889
8675
|
datasetVersion: {
|
|
@@ -6904,15 +8690,29 @@ export type ListProjectionsResponses = {
|
|
|
6904
8690
|
} | {
|
|
6905
8691
|
id: string;
|
|
6906
8692
|
projectId: string;
|
|
6907
|
-
|
|
8693
|
+
executionId: string;
|
|
8694
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6908
8695
|
attempt: number;
|
|
6909
8696
|
progress: {
|
|
6910
8697
|
sourceRowsRead: number;
|
|
6911
8698
|
sourceRowsSkipped: number;
|
|
6912
8699
|
};
|
|
6913
|
-
|
|
8700
|
+
queuedAt: string;
|
|
8701
|
+
startedAt?: string;
|
|
6914
8702
|
finishedAt?: string;
|
|
6915
|
-
|
|
8703
|
+
error?: {
|
|
8704
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8705
|
+
message: string;
|
|
8706
|
+
retryable: boolean;
|
|
8707
|
+
at: string;
|
|
8708
|
+
/**
|
|
8709
|
+
* Any JSON-compatible value.
|
|
8710
|
+
*/
|
|
8711
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8712
|
+
[key: string]: unknown;
|
|
8713
|
+
} | null;
|
|
8714
|
+
truncated?: true;
|
|
8715
|
+
};
|
|
6916
8716
|
identity: {
|
|
6917
8717
|
projectionId: string;
|
|
6918
8718
|
datasetVersion: {
|
|
@@ -6943,15 +8743,29 @@ export type ListProjectionsResponses = {
|
|
|
6943
8743
|
latestRun: {
|
|
6944
8744
|
id: string;
|
|
6945
8745
|
projectId: string;
|
|
6946
|
-
|
|
8746
|
+
executionId: string;
|
|
8747
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6947
8748
|
attempt: number;
|
|
6948
8749
|
progress: {
|
|
6949
8750
|
sourceRowsRead: number;
|
|
6950
8751
|
sourceRowsSkipped: number;
|
|
6951
8752
|
};
|
|
6952
|
-
|
|
8753
|
+
queuedAt: string;
|
|
8754
|
+
startedAt?: string;
|
|
6953
8755
|
finishedAt?: string;
|
|
6954
|
-
|
|
8756
|
+
error?: {
|
|
8757
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8758
|
+
message: string;
|
|
8759
|
+
retryable: boolean;
|
|
8760
|
+
at: string;
|
|
8761
|
+
/**
|
|
8762
|
+
* Any JSON-compatible value.
|
|
8763
|
+
*/
|
|
8764
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8765
|
+
[key: string]: unknown;
|
|
8766
|
+
} | null;
|
|
8767
|
+
truncated?: true;
|
|
8768
|
+
};
|
|
6955
8769
|
identity: {
|
|
6956
8770
|
projectionId: string;
|
|
6957
8771
|
datasetVersion: {
|
|
@@ -6971,15 +8785,29 @@ export type ListProjectionsResponses = {
|
|
|
6971
8785
|
} | {
|
|
6972
8786
|
id: string;
|
|
6973
8787
|
projectId: string;
|
|
6974
|
-
|
|
8788
|
+
executionId: string;
|
|
8789
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6975
8790
|
attempt: number;
|
|
6976
8791
|
progress: {
|
|
6977
8792
|
sourceRowsRead: number;
|
|
6978
8793
|
sourceRowsSkipped: number;
|
|
6979
8794
|
};
|
|
6980
|
-
|
|
8795
|
+
queuedAt: string;
|
|
8796
|
+
startedAt?: string;
|
|
6981
8797
|
finishedAt?: string;
|
|
6982
|
-
|
|
8798
|
+
error?: {
|
|
8799
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8800
|
+
message: string;
|
|
8801
|
+
retryable: boolean;
|
|
8802
|
+
at: string;
|
|
8803
|
+
/**
|
|
8804
|
+
* Any JSON-compatible value.
|
|
8805
|
+
*/
|
|
8806
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8807
|
+
[key: string]: unknown;
|
|
8808
|
+
} | null;
|
|
8809
|
+
truncated?: true;
|
|
8810
|
+
};
|
|
6983
8811
|
identity: {
|
|
6984
8812
|
projectionId: string;
|
|
6985
8813
|
datasetVersion: {
|
|
@@ -7000,15 +8828,29 @@ export type ListProjectionsResponses = {
|
|
|
7000
8828
|
} | {
|
|
7001
8829
|
id: string;
|
|
7002
8830
|
projectId: string;
|
|
7003
|
-
|
|
8831
|
+
executionId: string;
|
|
8832
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7004
8833
|
attempt: number;
|
|
7005
8834
|
progress: {
|
|
7006
8835
|
sourceRowsRead: number;
|
|
7007
8836
|
sourceRowsSkipped: number;
|
|
7008
8837
|
};
|
|
7009
|
-
|
|
8838
|
+
queuedAt: string;
|
|
8839
|
+
startedAt?: string;
|
|
7010
8840
|
finishedAt?: string;
|
|
7011
|
-
|
|
8841
|
+
error?: {
|
|
8842
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8843
|
+
message: string;
|
|
8844
|
+
retryable: boolean;
|
|
8845
|
+
at: string;
|
|
8846
|
+
/**
|
|
8847
|
+
* Any JSON-compatible value.
|
|
8848
|
+
*/
|
|
8849
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8850
|
+
[key: string]: unknown;
|
|
8851
|
+
} | null;
|
|
8852
|
+
truncated?: true;
|
|
8853
|
+
};
|
|
7012
8854
|
identity: {
|
|
7013
8855
|
projectionId: string;
|
|
7014
8856
|
datasetVersion: {
|
|
@@ -7040,15 +8882,29 @@ export type ListProjectionsResponses = {
|
|
|
7040
8882
|
latestRun: {
|
|
7041
8883
|
id: string;
|
|
7042
8884
|
projectId: string;
|
|
7043
|
-
|
|
8885
|
+
executionId: string;
|
|
8886
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7044
8887
|
attempt: number;
|
|
7045
8888
|
progress: {
|
|
7046
8889
|
sourceRowsRead: number;
|
|
7047
8890
|
sourceRowsSkipped: number;
|
|
7048
8891
|
};
|
|
7049
|
-
|
|
8892
|
+
queuedAt: string;
|
|
8893
|
+
startedAt?: string;
|
|
7050
8894
|
finishedAt?: string;
|
|
7051
|
-
|
|
8895
|
+
error?: {
|
|
8896
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8897
|
+
message: string;
|
|
8898
|
+
retryable: boolean;
|
|
8899
|
+
at: string;
|
|
8900
|
+
/**
|
|
8901
|
+
* Any JSON-compatible value.
|
|
8902
|
+
*/
|
|
8903
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8904
|
+
[key: string]: unknown;
|
|
8905
|
+
} | null;
|
|
8906
|
+
truncated?: true;
|
|
8907
|
+
};
|
|
7052
8908
|
identity: {
|
|
7053
8909
|
projectionId: string;
|
|
7054
8910
|
datasetVersion: {
|
|
@@ -7068,15 +8924,29 @@ export type ListProjectionsResponses = {
|
|
|
7068
8924
|
} | {
|
|
7069
8925
|
id: string;
|
|
7070
8926
|
projectId: string;
|
|
7071
|
-
|
|
8927
|
+
executionId: string;
|
|
8928
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7072
8929
|
attempt: number;
|
|
7073
8930
|
progress: {
|
|
7074
8931
|
sourceRowsRead: number;
|
|
7075
8932
|
sourceRowsSkipped: number;
|
|
7076
8933
|
};
|
|
7077
|
-
|
|
8934
|
+
queuedAt: string;
|
|
8935
|
+
startedAt?: string;
|
|
7078
8936
|
finishedAt?: string;
|
|
7079
|
-
|
|
8937
|
+
error?: {
|
|
8938
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8939
|
+
message: string;
|
|
8940
|
+
retryable: boolean;
|
|
8941
|
+
at: string;
|
|
8942
|
+
/**
|
|
8943
|
+
* Any JSON-compatible value.
|
|
8944
|
+
*/
|
|
8945
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8946
|
+
[key: string]: unknown;
|
|
8947
|
+
} | null;
|
|
8948
|
+
truncated?: true;
|
|
8949
|
+
};
|
|
7080
8950
|
identity: {
|
|
7081
8951
|
projectionId: string;
|
|
7082
8952
|
datasetVersion: {
|
|
@@ -7097,15 +8967,29 @@ export type ListProjectionsResponses = {
|
|
|
7097
8967
|
} | {
|
|
7098
8968
|
id: string;
|
|
7099
8969
|
projectId: string;
|
|
7100
|
-
|
|
8970
|
+
executionId: string;
|
|
8971
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7101
8972
|
attempt: number;
|
|
7102
8973
|
progress: {
|
|
7103
8974
|
sourceRowsRead: number;
|
|
7104
8975
|
sourceRowsSkipped: number;
|
|
7105
8976
|
};
|
|
7106
|
-
|
|
8977
|
+
queuedAt: string;
|
|
8978
|
+
startedAt?: string;
|
|
7107
8979
|
finishedAt?: string;
|
|
7108
|
-
|
|
8980
|
+
error?: {
|
|
8981
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
8982
|
+
message: string;
|
|
8983
|
+
retryable: boolean;
|
|
8984
|
+
at: string;
|
|
8985
|
+
/**
|
|
8986
|
+
* Any JSON-compatible value.
|
|
8987
|
+
*/
|
|
8988
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
8989
|
+
[key: string]: unknown;
|
|
8990
|
+
} | null;
|
|
8991
|
+
truncated?: true;
|
|
8992
|
+
};
|
|
7109
8993
|
identity: {
|
|
7110
8994
|
projectionId: string;
|
|
7111
8995
|
datasetVersion: {
|
|
@@ -7164,18 +9048,38 @@ export type GetProjectionResponses = {
|
|
|
7164
9048
|
targetObjectTypeId: string;
|
|
7165
9049
|
};
|
|
7166
9050
|
};
|
|
9051
|
+
conflictResolution: {
|
|
9052
|
+
strategy: "editsWin";
|
|
9053
|
+
} | {
|
|
9054
|
+
strategy: "mostRecent";
|
|
9055
|
+
sourceTimestamp: string;
|
|
9056
|
+
};
|
|
7167
9057
|
latestRun: {
|
|
7168
9058
|
id: string;
|
|
7169
9059
|
projectId: string;
|
|
7170
|
-
|
|
9060
|
+
executionId: string;
|
|
9061
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7171
9062
|
attempt: number;
|
|
7172
9063
|
progress: {
|
|
7173
9064
|
sourceRowsRead: number;
|
|
7174
9065
|
sourceRowsSkipped: number;
|
|
7175
9066
|
};
|
|
7176
|
-
|
|
9067
|
+
queuedAt: string;
|
|
9068
|
+
startedAt?: string;
|
|
7177
9069
|
finishedAt?: string;
|
|
7178
|
-
|
|
9070
|
+
error?: {
|
|
9071
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9072
|
+
message: string;
|
|
9073
|
+
retryable: boolean;
|
|
9074
|
+
at: string;
|
|
9075
|
+
/**
|
|
9076
|
+
* Any JSON-compatible value.
|
|
9077
|
+
*/
|
|
9078
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9079
|
+
[key: string]: unknown;
|
|
9080
|
+
} | null;
|
|
9081
|
+
truncated?: true;
|
|
9082
|
+
};
|
|
7179
9083
|
identity: {
|
|
7180
9084
|
projectionId: string;
|
|
7181
9085
|
datasetVersion: {
|
|
@@ -7195,15 +9099,29 @@ export type GetProjectionResponses = {
|
|
|
7195
9099
|
} | {
|
|
7196
9100
|
id: string;
|
|
7197
9101
|
projectId: string;
|
|
7198
|
-
|
|
9102
|
+
executionId: string;
|
|
9103
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7199
9104
|
attempt: number;
|
|
7200
9105
|
progress: {
|
|
7201
9106
|
sourceRowsRead: number;
|
|
7202
9107
|
sourceRowsSkipped: number;
|
|
7203
9108
|
};
|
|
7204
|
-
|
|
9109
|
+
queuedAt: string;
|
|
9110
|
+
startedAt?: string;
|
|
7205
9111
|
finishedAt?: string;
|
|
7206
|
-
|
|
9112
|
+
error?: {
|
|
9113
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9114
|
+
message: string;
|
|
9115
|
+
retryable: boolean;
|
|
9116
|
+
at: string;
|
|
9117
|
+
/**
|
|
9118
|
+
* Any JSON-compatible value.
|
|
9119
|
+
*/
|
|
9120
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9121
|
+
[key: string]: unknown;
|
|
9122
|
+
} | null;
|
|
9123
|
+
truncated?: true;
|
|
9124
|
+
};
|
|
7207
9125
|
identity: {
|
|
7208
9126
|
projectionId: string;
|
|
7209
9127
|
datasetVersion: {
|
|
@@ -7224,15 +9142,29 @@ export type GetProjectionResponses = {
|
|
|
7224
9142
|
} | {
|
|
7225
9143
|
id: string;
|
|
7226
9144
|
projectId: string;
|
|
7227
|
-
|
|
9145
|
+
executionId: string;
|
|
9146
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7228
9147
|
attempt: number;
|
|
7229
9148
|
progress: {
|
|
7230
9149
|
sourceRowsRead: number;
|
|
7231
9150
|
sourceRowsSkipped: number;
|
|
7232
9151
|
};
|
|
7233
|
-
|
|
9152
|
+
queuedAt: string;
|
|
9153
|
+
startedAt?: string;
|
|
7234
9154
|
finishedAt?: string;
|
|
7235
|
-
|
|
9155
|
+
error?: {
|
|
9156
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9157
|
+
message: string;
|
|
9158
|
+
retryable: boolean;
|
|
9159
|
+
at: string;
|
|
9160
|
+
/**
|
|
9161
|
+
* Any JSON-compatible value.
|
|
9162
|
+
*/
|
|
9163
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9164
|
+
[key: string]: unknown;
|
|
9165
|
+
} | null;
|
|
9166
|
+
truncated?: true;
|
|
9167
|
+
};
|
|
7236
9168
|
identity: {
|
|
7237
9169
|
projectionId: string;
|
|
7238
9170
|
datasetVersion: {
|
|
@@ -7262,15 +9194,29 @@ export type GetProjectionResponses = {
|
|
|
7262
9194
|
latestRun: {
|
|
7263
9195
|
id: string;
|
|
7264
9196
|
projectId: string;
|
|
7265
|
-
|
|
9197
|
+
executionId: string;
|
|
9198
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7266
9199
|
attempt: number;
|
|
7267
9200
|
progress: {
|
|
7268
9201
|
sourceRowsRead: number;
|
|
7269
9202
|
sourceRowsSkipped: number;
|
|
7270
9203
|
};
|
|
7271
|
-
|
|
9204
|
+
queuedAt: string;
|
|
9205
|
+
startedAt?: string;
|
|
7272
9206
|
finishedAt?: string;
|
|
7273
|
-
|
|
9207
|
+
error?: {
|
|
9208
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9209
|
+
message: string;
|
|
9210
|
+
retryable: boolean;
|
|
9211
|
+
at: string;
|
|
9212
|
+
/**
|
|
9213
|
+
* Any JSON-compatible value.
|
|
9214
|
+
*/
|
|
9215
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9216
|
+
[key: string]: unknown;
|
|
9217
|
+
} | null;
|
|
9218
|
+
truncated?: true;
|
|
9219
|
+
};
|
|
7274
9220
|
identity: {
|
|
7275
9221
|
projectionId: string;
|
|
7276
9222
|
datasetVersion: {
|
|
@@ -7290,15 +9236,29 @@ export type GetProjectionResponses = {
|
|
|
7290
9236
|
} | {
|
|
7291
9237
|
id: string;
|
|
7292
9238
|
projectId: string;
|
|
7293
|
-
|
|
9239
|
+
executionId: string;
|
|
9240
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7294
9241
|
attempt: number;
|
|
7295
9242
|
progress: {
|
|
7296
9243
|
sourceRowsRead: number;
|
|
7297
9244
|
sourceRowsSkipped: number;
|
|
7298
9245
|
};
|
|
7299
|
-
|
|
9246
|
+
queuedAt: string;
|
|
9247
|
+
startedAt?: string;
|
|
7300
9248
|
finishedAt?: string;
|
|
7301
|
-
|
|
9249
|
+
error?: {
|
|
9250
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9251
|
+
message: string;
|
|
9252
|
+
retryable: boolean;
|
|
9253
|
+
at: string;
|
|
9254
|
+
/**
|
|
9255
|
+
* Any JSON-compatible value.
|
|
9256
|
+
*/
|
|
9257
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9258
|
+
[key: string]: unknown;
|
|
9259
|
+
} | null;
|
|
9260
|
+
truncated?: true;
|
|
9261
|
+
};
|
|
7302
9262
|
identity: {
|
|
7303
9263
|
projectionId: string;
|
|
7304
9264
|
datasetVersion: {
|
|
@@ -7319,15 +9279,29 @@ export type GetProjectionResponses = {
|
|
|
7319
9279
|
} | {
|
|
7320
9280
|
id: string;
|
|
7321
9281
|
projectId: string;
|
|
7322
|
-
|
|
9282
|
+
executionId: string;
|
|
9283
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7323
9284
|
attempt: number;
|
|
7324
9285
|
progress: {
|
|
7325
9286
|
sourceRowsRead: number;
|
|
7326
9287
|
sourceRowsSkipped: number;
|
|
7327
9288
|
};
|
|
7328
|
-
|
|
9289
|
+
queuedAt: string;
|
|
9290
|
+
startedAt?: string;
|
|
7329
9291
|
finishedAt?: string;
|
|
7330
|
-
|
|
9292
|
+
error?: {
|
|
9293
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9294
|
+
message: string;
|
|
9295
|
+
retryable: boolean;
|
|
9296
|
+
at: string;
|
|
9297
|
+
/**
|
|
9298
|
+
* Any JSON-compatible value.
|
|
9299
|
+
*/
|
|
9300
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9301
|
+
[key: string]: unknown;
|
|
9302
|
+
} | null;
|
|
9303
|
+
truncated?: true;
|
|
9304
|
+
};
|
|
7331
9305
|
identity: {
|
|
7332
9306
|
projectionId: string;
|
|
7333
9307
|
datasetVersion: {
|
|
@@ -7358,15 +9332,29 @@ export type GetProjectionResponses = {
|
|
|
7358
9332
|
latestRun: {
|
|
7359
9333
|
id: string;
|
|
7360
9334
|
projectId: string;
|
|
7361
|
-
|
|
9335
|
+
executionId: string;
|
|
9336
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7362
9337
|
attempt: number;
|
|
7363
9338
|
progress: {
|
|
7364
9339
|
sourceRowsRead: number;
|
|
7365
9340
|
sourceRowsSkipped: number;
|
|
7366
9341
|
};
|
|
7367
|
-
|
|
9342
|
+
queuedAt: string;
|
|
9343
|
+
startedAt?: string;
|
|
7368
9344
|
finishedAt?: string;
|
|
7369
|
-
|
|
9345
|
+
error?: {
|
|
9346
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9347
|
+
message: string;
|
|
9348
|
+
retryable: boolean;
|
|
9349
|
+
at: string;
|
|
9350
|
+
/**
|
|
9351
|
+
* Any JSON-compatible value.
|
|
9352
|
+
*/
|
|
9353
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9354
|
+
[key: string]: unknown;
|
|
9355
|
+
} | null;
|
|
9356
|
+
truncated?: true;
|
|
9357
|
+
};
|
|
7370
9358
|
identity: {
|
|
7371
9359
|
projectionId: string;
|
|
7372
9360
|
datasetVersion: {
|
|
@@ -7386,15 +9374,29 @@ export type GetProjectionResponses = {
|
|
|
7386
9374
|
} | {
|
|
7387
9375
|
id: string;
|
|
7388
9376
|
projectId: string;
|
|
7389
|
-
|
|
9377
|
+
executionId: string;
|
|
9378
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7390
9379
|
attempt: number;
|
|
7391
9380
|
progress: {
|
|
7392
9381
|
sourceRowsRead: number;
|
|
7393
9382
|
sourceRowsSkipped: number;
|
|
7394
9383
|
};
|
|
7395
|
-
|
|
9384
|
+
queuedAt: string;
|
|
9385
|
+
startedAt?: string;
|
|
7396
9386
|
finishedAt?: string;
|
|
7397
|
-
|
|
9387
|
+
error?: {
|
|
9388
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9389
|
+
message: string;
|
|
9390
|
+
retryable: boolean;
|
|
9391
|
+
at: string;
|
|
9392
|
+
/**
|
|
9393
|
+
* Any JSON-compatible value.
|
|
9394
|
+
*/
|
|
9395
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9396
|
+
[key: string]: unknown;
|
|
9397
|
+
} | null;
|
|
9398
|
+
truncated?: true;
|
|
9399
|
+
};
|
|
7398
9400
|
identity: {
|
|
7399
9401
|
projectionId: string;
|
|
7400
9402
|
datasetVersion: {
|
|
@@ -7415,15 +9417,29 @@ export type GetProjectionResponses = {
|
|
|
7415
9417
|
} | {
|
|
7416
9418
|
id: string;
|
|
7417
9419
|
projectId: string;
|
|
7418
|
-
|
|
9420
|
+
executionId: string;
|
|
9421
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7419
9422
|
attempt: number;
|
|
7420
9423
|
progress: {
|
|
7421
9424
|
sourceRowsRead: number;
|
|
7422
9425
|
sourceRowsSkipped: number;
|
|
7423
9426
|
};
|
|
7424
|
-
|
|
9427
|
+
queuedAt: string;
|
|
9428
|
+
startedAt?: string;
|
|
7425
9429
|
finishedAt?: string;
|
|
7426
|
-
|
|
9430
|
+
error?: {
|
|
9431
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9432
|
+
message: string;
|
|
9433
|
+
retryable: boolean;
|
|
9434
|
+
at: string;
|
|
9435
|
+
/**
|
|
9436
|
+
* Any JSON-compatible value.
|
|
9437
|
+
*/
|
|
9438
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9439
|
+
[key: string]: unknown;
|
|
9440
|
+
} | null;
|
|
9441
|
+
truncated?: true;
|
|
9442
|
+
};
|
|
7427
9443
|
identity: {
|
|
7428
9444
|
projectionId: string;
|
|
7429
9445
|
datasetVersion: {
|
|
@@ -7452,7 +9468,7 @@ export type ListProjectionRunsData = {
|
|
|
7452
9468
|
projectionKind?: "object" | "link" | "telemetry";
|
|
7453
9469
|
datasetId?: string;
|
|
7454
9470
|
datasetVersionId?: string;
|
|
7455
|
-
status?: "running" | "succeeded" | "failed" | "cancelled";
|
|
9471
|
+
status?: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7456
9472
|
startedAfter?: string;
|
|
7457
9473
|
startedBefore?: string;
|
|
7458
9474
|
limit?: string;
|
|
@@ -7484,15 +9500,29 @@ export type ListProjectionRunsResponses = {
|
|
|
7484
9500
|
runs: Array<{
|
|
7485
9501
|
id: string;
|
|
7486
9502
|
projectId: string;
|
|
7487
|
-
|
|
9503
|
+
executionId: string;
|
|
9504
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7488
9505
|
attempt: number;
|
|
7489
9506
|
progress: {
|
|
7490
9507
|
sourceRowsRead: number;
|
|
7491
9508
|
sourceRowsSkipped: number;
|
|
7492
9509
|
};
|
|
7493
|
-
|
|
9510
|
+
queuedAt: string;
|
|
9511
|
+
startedAt?: string;
|
|
7494
9512
|
finishedAt?: string;
|
|
7495
|
-
|
|
9513
|
+
error?: {
|
|
9514
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9515
|
+
message: string;
|
|
9516
|
+
retryable: boolean;
|
|
9517
|
+
at: string;
|
|
9518
|
+
/**
|
|
9519
|
+
* Any JSON-compatible value.
|
|
9520
|
+
*/
|
|
9521
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9522
|
+
[key: string]: unknown;
|
|
9523
|
+
} | null;
|
|
9524
|
+
truncated?: true;
|
|
9525
|
+
};
|
|
7496
9526
|
identity: {
|
|
7497
9527
|
projectionId: string;
|
|
7498
9528
|
datasetVersion: {
|
|
@@ -7512,15 +9542,29 @@ export type ListProjectionRunsResponses = {
|
|
|
7512
9542
|
} | {
|
|
7513
9543
|
id: string;
|
|
7514
9544
|
projectId: string;
|
|
7515
|
-
|
|
9545
|
+
executionId: string;
|
|
9546
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7516
9547
|
attempt: number;
|
|
7517
9548
|
progress: {
|
|
7518
9549
|
sourceRowsRead: number;
|
|
7519
9550
|
sourceRowsSkipped: number;
|
|
7520
9551
|
};
|
|
7521
|
-
|
|
9552
|
+
queuedAt: string;
|
|
9553
|
+
startedAt?: string;
|
|
7522
9554
|
finishedAt?: string;
|
|
7523
|
-
|
|
9555
|
+
error?: {
|
|
9556
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9557
|
+
message: string;
|
|
9558
|
+
retryable: boolean;
|
|
9559
|
+
at: string;
|
|
9560
|
+
/**
|
|
9561
|
+
* Any JSON-compatible value.
|
|
9562
|
+
*/
|
|
9563
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9564
|
+
[key: string]: unknown;
|
|
9565
|
+
} | null;
|
|
9566
|
+
truncated?: true;
|
|
9567
|
+
};
|
|
7524
9568
|
identity: {
|
|
7525
9569
|
projectionId: string;
|
|
7526
9570
|
datasetVersion: {
|
|
@@ -7541,15 +9585,29 @@ export type ListProjectionRunsResponses = {
|
|
|
7541
9585
|
} | {
|
|
7542
9586
|
id: string;
|
|
7543
9587
|
projectId: string;
|
|
7544
|
-
|
|
9588
|
+
executionId: string;
|
|
9589
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7545
9590
|
attempt: number;
|
|
7546
9591
|
progress: {
|
|
7547
9592
|
sourceRowsRead: number;
|
|
7548
9593
|
sourceRowsSkipped: number;
|
|
7549
9594
|
};
|
|
7550
|
-
|
|
9595
|
+
queuedAt: string;
|
|
9596
|
+
startedAt?: string;
|
|
7551
9597
|
finishedAt?: string;
|
|
7552
|
-
|
|
9598
|
+
error?: {
|
|
9599
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9600
|
+
message: string;
|
|
9601
|
+
retryable: boolean;
|
|
9602
|
+
at: string;
|
|
9603
|
+
/**
|
|
9604
|
+
* Any JSON-compatible value.
|
|
9605
|
+
*/
|
|
9606
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9607
|
+
[key: string]: unknown;
|
|
9608
|
+
} | null;
|
|
9609
|
+
truncated?: true;
|
|
9610
|
+
};
|
|
7553
9611
|
identity: {
|
|
7554
9612
|
projectionId: string;
|
|
7555
9613
|
datasetVersion: {
|
|
@@ -7608,15 +9666,29 @@ export type GetProjectionRunResponses = {
|
|
|
7608
9666
|
200: {
|
|
7609
9667
|
id: string;
|
|
7610
9668
|
projectId: string;
|
|
7611
|
-
|
|
9669
|
+
executionId: string;
|
|
9670
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7612
9671
|
attempt: number;
|
|
7613
9672
|
progress: {
|
|
7614
9673
|
sourceRowsRead: number;
|
|
7615
9674
|
sourceRowsSkipped: number;
|
|
7616
9675
|
};
|
|
7617
|
-
|
|
9676
|
+
queuedAt: string;
|
|
9677
|
+
startedAt?: string;
|
|
7618
9678
|
finishedAt?: string;
|
|
7619
|
-
|
|
9679
|
+
error?: {
|
|
9680
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9681
|
+
message: string;
|
|
9682
|
+
retryable: boolean;
|
|
9683
|
+
at: string;
|
|
9684
|
+
/**
|
|
9685
|
+
* Any JSON-compatible value.
|
|
9686
|
+
*/
|
|
9687
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9688
|
+
[key: string]: unknown;
|
|
9689
|
+
} | null;
|
|
9690
|
+
truncated?: true;
|
|
9691
|
+
};
|
|
7620
9692
|
identity: {
|
|
7621
9693
|
projectionId: string;
|
|
7622
9694
|
datasetVersion: {
|
|
@@ -7636,15 +9708,29 @@ export type GetProjectionRunResponses = {
|
|
|
7636
9708
|
} | {
|
|
7637
9709
|
id: string;
|
|
7638
9710
|
projectId: string;
|
|
7639
|
-
|
|
9711
|
+
executionId: string;
|
|
9712
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7640
9713
|
attempt: number;
|
|
7641
9714
|
progress: {
|
|
7642
9715
|
sourceRowsRead: number;
|
|
7643
9716
|
sourceRowsSkipped: number;
|
|
7644
9717
|
};
|
|
7645
|
-
|
|
9718
|
+
queuedAt: string;
|
|
9719
|
+
startedAt?: string;
|
|
7646
9720
|
finishedAt?: string;
|
|
7647
|
-
|
|
9721
|
+
error?: {
|
|
9722
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9723
|
+
message: string;
|
|
9724
|
+
retryable: boolean;
|
|
9725
|
+
at: string;
|
|
9726
|
+
/**
|
|
9727
|
+
* Any JSON-compatible value.
|
|
9728
|
+
*/
|
|
9729
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9730
|
+
[key: string]: unknown;
|
|
9731
|
+
} | null;
|
|
9732
|
+
truncated?: true;
|
|
9733
|
+
};
|
|
7648
9734
|
identity: {
|
|
7649
9735
|
projectionId: string;
|
|
7650
9736
|
datasetVersion: {
|
|
@@ -7665,15 +9751,29 @@ export type GetProjectionRunResponses = {
|
|
|
7665
9751
|
} | {
|
|
7666
9752
|
id: string;
|
|
7667
9753
|
projectId: string;
|
|
7668
|
-
|
|
9754
|
+
executionId: string;
|
|
9755
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7669
9756
|
attempt: number;
|
|
7670
9757
|
progress: {
|
|
7671
9758
|
sourceRowsRead: number;
|
|
7672
9759
|
sourceRowsSkipped: number;
|
|
7673
9760
|
};
|
|
7674
|
-
|
|
9761
|
+
queuedAt: string;
|
|
9762
|
+
startedAt?: string;
|
|
7675
9763
|
finishedAt?: string;
|
|
7676
|
-
|
|
9764
|
+
error?: {
|
|
9765
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "projection.execution_failed";
|
|
9766
|
+
message: string;
|
|
9767
|
+
retryable: boolean;
|
|
9768
|
+
at: string;
|
|
9769
|
+
/**
|
|
9770
|
+
* Any JSON-compatible value.
|
|
9771
|
+
*/
|
|
9772
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9773
|
+
[key: string]: unknown;
|
|
9774
|
+
} | null;
|
|
9775
|
+
truncated?: true;
|
|
9776
|
+
};
|
|
7677
9777
|
identity: {
|
|
7678
9778
|
projectionId: string;
|
|
7679
9779
|
datasetVersion: {
|
|
@@ -7699,7 +9799,7 @@ export type ListWebhookRunsData = {
|
|
|
7699
9799
|
query?: {
|
|
7700
9800
|
connectorId?: string;
|
|
7701
9801
|
webhookId?: string;
|
|
7702
|
-
status?: "running" | "succeeded" | "failed"
|
|
9802
|
+
status?: "running" | "succeeded" | "failed";
|
|
7703
9803
|
idempotencyKey?: string;
|
|
7704
9804
|
startedAfter?: string;
|
|
7705
9805
|
startedBefore?: string;
|
|
@@ -7732,18 +9832,30 @@ export type ListWebhookRunsResponses = {
|
|
|
7732
9832
|
runs: Array<{
|
|
7733
9833
|
id: string;
|
|
7734
9834
|
projectId: string;
|
|
9835
|
+
executionId: string;
|
|
7735
9836
|
connectorId: string;
|
|
7736
9837
|
webhookId: string;
|
|
7737
|
-
status: "running" | "succeeded" | "failed"
|
|
9838
|
+
status: "running" | "succeeded" | "failed";
|
|
7738
9839
|
method: string;
|
|
7739
9840
|
route: string;
|
|
7740
9841
|
startedAt: string;
|
|
7741
9842
|
finishedAt?: string;
|
|
7742
|
-
requestBodyBytes
|
|
9843
|
+
requestBodyBytes: number;
|
|
7743
9844
|
responseStatus?: number;
|
|
7744
9845
|
idempotencyKey?: string;
|
|
7745
|
-
|
|
7746
|
-
|
|
9846
|
+
error?: {
|
|
9847
|
+
code: "internal.unexpected" | "webhook.delivery_failed" | "webhook.delivery_rejected";
|
|
9848
|
+
message: string;
|
|
9849
|
+
retryable: boolean;
|
|
9850
|
+
at: string;
|
|
9851
|
+
/**
|
|
9852
|
+
* Any JSON-compatible value.
|
|
9853
|
+
*/
|
|
9854
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
9855
|
+
[key: string]: unknown;
|
|
9856
|
+
} | null;
|
|
9857
|
+
truncated?: true;
|
|
9858
|
+
};
|
|
7747
9859
|
}>;
|
|
7748
9860
|
hasMore: boolean;
|
|
7749
9861
|
total: number;
|