@sixb/client 0.1.11 → 0.1.12
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/dist/browser.js +2 -2
- package/dist/{chunk-f4qeqxz2.js → chunk-bsy1hg20.js} +1 -1
- package/dist/{chunk-7bv57jcq.js → chunk-e8qjsvha.js} +11 -2
- package/dist/{chunk-7bv57jcq.js.map → chunk-e8qjsvha.js.map} +3 -3
- package/dist/{chunk-65mmaq7r.js → chunk-hx3n4fer.js} +3 -3
- package/dist/{chunk-qaacaq2e.js → chunk-kh20z2mt.js} +6 -4
- package/dist/chunk-kh20z2mt.js.map +10 -0
- package/dist/{chunk-y4g6jrvs.js → chunk-sjb188se.js} +1 -1
- package/dist/{chunk-65bdf9vw.js → chunk-t50n91tk.js} +2 -2
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +617 -82
- 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 +5 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +262 -12
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +21 -6
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +4 -2
- package/dist/models.js.map +1 -1
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +3 -3
- package/package.json +2 -2
- package/src/generated/@tanstack/react-query.gen.ts +31 -0
- package/src/generated/index.ts +7 -0
- package/src/generated/sdk.gen.ts +23 -0
- package/src/generated/types.gen.ts +306 -12
- package/src/query.ts +3 -1
- package/dist/chunk-qaacaq2e.js.map +0 -10
- /package/dist/{chunk-f4qeqxz2.js.map → chunk-bsy1hg20.js.map} +0 -0
- /package/dist/{chunk-65mmaq7r.js.map → chunk-hx3n4fer.js.map} +0 -0
- /package/dist/{chunk-y4g6jrvs.js.map → chunk-sjb188se.js.map} +0 -0
- /package/dist/{chunk-65bdf9vw.js.map → chunk-t50n91tk.js.map} +0 -0
|
@@ -5,6 +5,7 @@ export type ErrorResponse = {
|
|
|
5
5
|
error: string;
|
|
6
6
|
};
|
|
7
7
|
export type ObjectQueryObject = {
|
|
8
|
+
score?: number;
|
|
8
9
|
primaryId: string;
|
|
9
10
|
objectTypeId: string;
|
|
10
11
|
properties: {
|
|
@@ -84,6 +85,19 @@ export type ObjectQueryLinksResponse = {
|
|
|
84
85
|
hasMore: boolean;
|
|
85
86
|
nextPageToken?: string;
|
|
86
87
|
};
|
|
88
|
+
export type AiUsageLimitErrorResponse = {
|
|
89
|
+
error: string;
|
|
90
|
+
/**
|
|
91
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
92
|
+
*/
|
|
93
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
94
|
+
/**
|
|
95
|
+
* Any JSON-compatible value.
|
|
96
|
+
*/
|
|
97
|
+
details?: string | number | boolean | Array<unknown> | {
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
} | null;
|
|
100
|
+
};
|
|
87
101
|
export type ObjectQueryErrorResponse = {
|
|
88
102
|
error: string;
|
|
89
103
|
issues?: Array<ObjectQueryIssue>;
|
|
@@ -146,8 +160,8 @@ export type ObjectQuery = {
|
|
|
146
160
|
} | {
|
|
147
161
|
kind: "vector";
|
|
148
162
|
input: ObjectQuery;
|
|
149
|
-
vector:
|
|
150
|
-
|
|
163
|
+
vector: string;
|
|
164
|
+
profile: string;
|
|
151
165
|
k: number;
|
|
152
166
|
} | {
|
|
153
167
|
kind: "traverse";
|
|
@@ -1543,6 +1557,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1543
1557
|
bucket: "hour" | "day" | "week";
|
|
1544
1558
|
totals: {
|
|
1545
1559
|
modelCallCount: number;
|
|
1560
|
+
/**
|
|
1561
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1562
|
+
*/
|
|
1546
1563
|
usage: {
|
|
1547
1564
|
inputTokens?: number;
|
|
1548
1565
|
outputTokens?: number;
|
|
@@ -1554,6 +1571,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1554
1571
|
reasoningOutputTokens?: number;
|
|
1555
1572
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1556
1573
|
};
|
|
1574
|
+
usageCoverage: {
|
|
1575
|
+
/**
|
|
1576
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1577
|
+
*/
|
|
1578
|
+
completeCallCount: number;
|
|
1579
|
+
fieldCallCounts: {
|
|
1580
|
+
inputTokens: number;
|
|
1581
|
+
outputTokens: number;
|
|
1582
|
+
uncachedInputTokens: number;
|
|
1583
|
+
cacheReadInputTokens: number;
|
|
1584
|
+
cacheWriteInputTokens: number;
|
|
1585
|
+
textOutputTokens: number;
|
|
1586
|
+
reasoningOutputTokens: number;
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1557
1589
|
costs: {
|
|
1558
1590
|
amounts: Array<{
|
|
1559
1591
|
currency: string;
|
|
@@ -1566,6 +1598,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1566
1598
|
};
|
|
1567
1599
|
series: Array<{
|
|
1568
1600
|
modelCallCount: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1603
|
+
*/
|
|
1569
1604
|
usage: {
|
|
1570
1605
|
inputTokens?: number;
|
|
1571
1606
|
outputTokens?: number;
|
|
@@ -1577,6 +1612,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1577
1612
|
reasoningOutputTokens?: number;
|
|
1578
1613
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1579
1614
|
};
|
|
1615
|
+
usageCoverage: {
|
|
1616
|
+
/**
|
|
1617
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1618
|
+
*/
|
|
1619
|
+
completeCallCount: number;
|
|
1620
|
+
fieldCallCounts: {
|
|
1621
|
+
inputTokens: number;
|
|
1622
|
+
outputTokens: number;
|
|
1623
|
+
uncachedInputTokens: number;
|
|
1624
|
+
cacheReadInputTokens: number;
|
|
1625
|
+
cacheWriteInputTokens: number;
|
|
1626
|
+
textOutputTokens: number;
|
|
1627
|
+
reasoningOutputTokens: number;
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1580
1630
|
costs: {
|
|
1581
1631
|
amounts: Array<{
|
|
1582
1632
|
currency: string;
|
|
@@ -1591,6 +1641,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1591
1641
|
}>;
|
|
1592
1642
|
models: Array<{
|
|
1593
1643
|
modelCallCount: number;
|
|
1644
|
+
/**
|
|
1645
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1646
|
+
*/
|
|
1594
1647
|
usage: {
|
|
1595
1648
|
inputTokens?: number;
|
|
1596
1649
|
outputTokens?: number;
|
|
@@ -1602,6 +1655,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1602
1655
|
reasoningOutputTokens?: number;
|
|
1603
1656
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1604
1657
|
};
|
|
1658
|
+
usageCoverage: {
|
|
1659
|
+
/**
|
|
1660
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1661
|
+
*/
|
|
1662
|
+
completeCallCount: number;
|
|
1663
|
+
fieldCallCounts: {
|
|
1664
|
+
inputTokens: number;
|
|
1665
|
+
outputTokens: number;
|
|
1666
|
+
uncachedInputTokens: number;
|
|
1667
|
+
cacheReadInputTokens: number;
|
|
1668
|
+
cacheWriteInputTokens: number;
|
|
1669
|
+
textOutputTokens: number;
|
|
1670
|
+
reasoningOutputTokens: number;
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1605
1673
|
costs: {
|
|
1606
1674
|
amounts: Array<{
|
|
1607
1675
|
currency: string;
|
|
@@ -1616,6 +1684,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1616
1684
|
}>;
|
|
1617
1685
|
agents: Array<{
|
|
1618
1686
|
modelCallCount: number;
|
|
1687
|
+
/**
|
|
1688
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1689
|
+
*/
|
|
1619
1690
|
usage: {
|
|
1620
1691
|
inputTokens?: number;
|
|
1621
1692
|
outputTokens?: number;
|
|
@@ -1627,6 +1698,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1627
1698
|
reasoningOutputTokens?: number;
|
|
1628
1699
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1629
1700
|
};
|
|
1701
|
+
usageCoverage: {
|
|
1702
|
+
/**
|
|
1703
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1704
|
+
*/
|
|
1705
|
+
completeCallCount: number;
|
|
1706
|
+
fieldCallCounts: {
|
|
1707
|
+
inputTokens: number;
|
|
1708
|
+
outputTokens: number;
|
|
1709
|
+
uncachedInputTokens: number;
|
|
1710
|
+
cacheReadInputTokens: number;
|
|
1711
|
+
cacheWriteInputTokens: number;
|
|
1712
|
+
textOutputTokens: number;
|
|
1713
|
+
reasoningOutputTokens: number;
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1630
1716
|
costs: {
|
|
1631
1717
|
amounts: Array<{
|
|
1632
1718
|
currency: string;
|
|
@@ -1639,6 +1725,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1639
1725
|
kind: "agent";
|
|
1640
1726
|
} | {
|
|
1641
1727
|
modelCallCount: number;
|
|
1728
|
+
/**
|
|
1729
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1730
|
+
*/
|
|
1642
1731
|
usage: {
|
|
1643
1732
|
inputTokens?: number;
|
|
1644
1733
|
outputTokens?: number;
|
|
@@ -1650,6 +1739,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1650
1739
|
reasoningOutputTokens?: number;
|
|
1651
1740
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1652
1741
|
};
|
|
1742
|
+
usageCoverage: {
|
|
1743
|
+
/**
|
|
1744
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1745
|
+
*/
|
|
1746
|
+
completeCallCount: number;
|
|
1747
|
+
fieldCallCounts: {
|
|
1748
|
+
inputTokens: number;
|
|
1749
|
+
outputTokens: number;
|
|
1750
|
+
uncachedInputTokens: number;
|
|
1751
|
+
cacheReadInputTokens: number;
|
|
1752
|
+
cacheWriteInputTokens: number;
|
|
1753
|
+
textOutputTokens: number;
|
|
1754
|
+
reasoningOutputTokens: number;
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1653
1757
|
costs: {
|
|
1654
1758
|
amounts: Array<{
|
|
1655
1759
|
currency: string;
|
|
@@ -1665,6 +1769,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1665
1769
|
}>;
|
|
1666
1770
|
workflows: Array<{
|
|
1667
1771
|
modelCallCount: number;
|
|
1772
|
+
/**
|
|
1773
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1774
|
+
*/
|
|
1668
1775
|
usage: {
|
|
1669
1776
|
inputTokens?: number;
|
|
1670
1777
|
outputTokens?: number;
|
|
@@ -1676,6 +1783,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1676
1783
|
reasoningOutputTokens?: number;
|
|
1677
1784
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1678
1785
|
};
|
|
1786
|
+
usageCoverage: {
|
|
1787
|
+
/**
|
|
1788
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1789
|
+
*/
|
|
1790
|
+
completeCallCount: number;
|
|
1791
|
+
fieldCallCounts: {
|
|
1792
|
+
inputTokens: number;
|
|
1793
|
+
outputTokens: number;
|
|
1794
|
+
uncachedInputTokens: number;
|
|
1795
|
+
cacheReadInputTokens: number;
|
|
1796
|
+
cacheWriteInputTokens: number;
|
|
1797
|
+
textOutputTokens: number;
|
|
1798
|
+
reasoningOutputTokens: number;
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1679
1801
|
costs: {
|
|
1680
1802
|
amounts: Array<{
|
|
1681
1803
|
currency: string;
|
|
@@ -6710,7 +6832,6 @@ export type ListObjectTypesResponses = {
|
|
|
6710
6832
|
text?: boolean;
|
|
6711
6833
|
exact?: boolean;
|
|
6712
6834
|
facet?: boolean;
|
|
6713
|
-
vector?: boolean;
|
|
6714
6835
|
weight?: number;
|
|
6715
6836
|
};
|
|
6716
6837
|
}>;
|
|
@@ -6718,9 +6839,19 @@ export type ListObjectTypesResponses = {
|
|
|
6718
6839
|
title?: string;
|
|
6719
6840
|
defaultText?: Array<string>;
|
|
6720
6841
|
exact?: Array<string>;
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6842
|
+
vectors?: {
|
|
6843
|
+
[key: string]: {
|
|
6844
|
+
source: Array<string>;
|
|
6845
|
+
model: {
|
|
6846
|
+
providerId: string;
|
|
6847
|
+
modelId: string;
|
|
6848
|
+
dimensions: number;
|
|
6849
|
+
representation?: {
|
|
6850
|
+
name: string;
|
|
6851
|
+
version?: string;
|
|
6852
|
+
};
|
|
6853
|
+
};
|
|
6854
|
+
};
|
|
6724
6855
|
};
|
|
6725
6856
|
};
|
|
6726
6857
|
links: Array<{
|
|
@@ -6746,7 +6877,6 @@ export type ListObjectTypesResponses = {
|
|
|
6746
6877
|
text?: boolean;
|
|
6747
6878
|
exact?: boolean;
|
|
6748
6879
|
facet?: boolean;
|
|
6749
|
-
vector?: boolean;
|
|
6750
6880
|
weight?: number;
|
|
6751
6881
|
};
|
|
6752
6882
|
}>;
|
|
@@ -6812,7 +6942,6 @@ export type GetObjectTypeResponses = {
|
|
|
6812
6942
|
text?: boolean;
|
|
6813
6943
|
exact?: boolean;
|
|
6814
6944
|
facet?: boolean;
|
|
6815
|
-
vector?: boolean;
|
|
6816
6945
|
weight?: number;
|
|
6817
6946
|
};
|
|
6818
6947
|
}>;
|
|
@@ -6820,9 +6949,19 @@ export type GetObjectTypeResponses = {
|
|
|
6820
6949
|
title?: string;
|
|
6821
6950
|
defaultText?: Array<string>;
|
|
6822
6951
|
exact?: Array<string>;
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6952
|
+
vectors?: {
|
|
6953
|
+
[key: string]: {
|
|
6954
|
+
source: Array<string>;
|
|
6955
|
+
model: {
|
|
6956
|
+
providerId: string;
|
|
6957
|
+
modelId: string;
|
|
6958
|
+
dimensions: number;
|
|
6959
|
+
representation?: {
|
|
6960
|
+
name: string;
|
|
6961
|
+
version?: string;
|
|
6962
|
+
};
|
|
6963
|
+
};
|
|
6964
|
+
};
|
|
6826
6965
|
};
|
|
6827
6966
|
};
|
|
6828
6967
|
links: Array<{
|
|
@@ -6848,7 +6987,6 @@ export type GetObjectTypeResponses = {
|
|
|
6848
6987
|
text?: boolean;
|
|
6849
6988
|
exact?: boolean;
|
|
6850
6989
|
facet?: boolean;
|
|
6851
|
-
vector?: boolean;
|
|
6852
6990
|
weight?: number;
|
|
6853
6991
|
};
|
|
6854
6992
|
}>;
|
|
@@ -6948,6 +7086,7 @@ export type ListObjectsResponses = {
|
|
|
6948
7086
|
*/
|
|
6949
7087
|
200: {
|
|
6950
7088
|
objects: Array<{
|
|
7089
|
+
score?: number;
|
|
6951
7090
|
primaryId: string;
|
|
6952
7091
|
objectTypeId: string;
|
|
6953
7092
|
properties: {
|
|
@@ -6976,6 +7115,10 @@ export type QueryObjectsErrors = {
|
|
|
6976
7115
|
* Response for status 403
|
|
6977
7116
|
*/
|
|
6978
7117
|
403: ErrorResponse;
|
|
7118
|
+
/**
|
|
7119
|
+
* AI usage limit exceeded or unavailable
|
|
7120
|
+
*/
|
|
7121
|
+
429: AiUsageLimitErrorResponse;
|
|
6979
7122
|
/**
|
|
6980
7123
|
* Response for status 500
|
|
6981
7124
|
*/
|
|
@@ -7032,6 +7175,10 @@ export type CountObjectsErrors = {
|
|
|
7032
7175
|
* Response for status 403
|
|
7033
7176
|
*/
|
|
7034
7177
|
403: ErrorResponse;
|
|
7178
|
+
/**
|
|
7179
|
+
* AI usage limit exceeded or unavailable
|
|
7180
|
+
*/
|
|
7181
|
+
429: AiUsageLimitErrorResponse;
|
|
7035
7182
|
/**
|
|
7036
7183
|
* Response for status 500
|
|
7037
7184
|
*/
|
|
@@ -7060,6 +7207,10 @@ export type ExistsObjectsErrors = {
|
|
|
7060
7207
|
* Response for status 403
|
|
7061
7208
|
*/
|
|
7062
7209
|
403: ErrorResponse;
|
|
7210
|
+
/**
|
|
7211
|
+
* AI usage limit exceeded or unavailable
|
|
7212
|
+
*/
|
|
7213
|
+
429: AiUsageLimitErrorResponse;
|
|
7063
7214
|
/**
|
|
7064
7215
|
* Response for status 500
|
|
7065
7216
|
*/
|
|
@@ -7215,6 +7366,7 @@ export type GetObjectResponses = {
|
|
|
7215
7366
|
* Response for status 200
|
|
7216
7367
|
*/
|
|
7217
7368
|
200: {
|
|
7369
|
+
score?: number;
|
|
7218
7370
|
primaryId: string;
|
|
7219
7371
|
objectTypeId: string;
|
|
7220
7372
|
properties: {
|
|
@@ -7264,6 +7416,7 @@ export type UpsertObjectResponses = {
|
|
|
7264
7416
|
* Response for status 200
|
|
7265
7417
|
*/
|
|
7266
7418
|
200: {
|
|
7419
|
+
score?: number;
|
|
7267
7420
|
primaryId: string;
|
|
7268
7421
|
objectTypeId: string;
|
|
7269
7422
|
properties: {
|
|
@@ -8035,6 +8188,11 @@ export type ListAgentThreadsResponses = {
|
|
|
8035
8188
|
*/
|
|
8036
8189
|
200: {
|
|
8037
8190
|
threads: Array<{
|
|
8191
|
+
sandboxState?: {
|
|
8192
|
+
name: string;
|
|
8193
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable";
|
|
8194
|
+
initialized: boolean;
|
|
8195
|
+
};
|
|
8038
8196
|
id: string;
|
|
8039
8197
|
projectId: string;
|
|
8040
8198
|
ownerPrincipal: {
|
|
@@ -8042,6 +8200,11 @@ export type ListAgentThreadsResponses = {
|
|
|
8042
8200
|
id: string;
|
|
8043
8201
|
};
|
|
8044
8202
|
title?: string;
|
|
8203
|
+
sandboxParams?: {
|
|
8204
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8205
|
+
[key: string]: unknown;
|
|
8206
|
+
} | null;
|
|
8207
|
+
};
|
|
8045
8208
|
status: "active" | "archived";
|
|
8046
8209
|
activeRunId: string | null;
|
|
8047
8210
|
lastMessageAt?: string;
|
|
@@ -8058,6 +8221,11 @@ export type CreateAgentThreadData = {
|
|
|
8058
8221
|
body: {
|
|
8059
8222
|
title?: string;
|
|
8060
8223
|
threadId?: string;
|
|
8224
|
+
sandbox?: {
|
|
8225
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8226
|
+
[key: string]: unknown;
|
|
8227
|
+
} | null;
|
|
8228
|
+
};
|
|
8061
8229
|
};
|
|
8062
8230
|
path?: never;
|
|
8063
8231
|
query?: never;
|
|
@@ -8096,6 +8264,11 @@ export type CreateAgentThreadResponses = {
|
|
|
8096
8264
|
*/
|
|
8097
8265
|
201: {
|
|
8098
8266
|
thread: {
|
|
8267
|
+
sandboxState?: {
|
|
8268
|
+
name: string;
|
|
8269
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable";
|
|
8270
|
+
initialized: boolean;
|
|
8271
|
+
};
|
|
8099
8272
|
id: string;
|
|
8100
8273
|
projectId: string;
|
|
8101
8274
|
ownerPrincipal: {
|
|
@@ -8103,6 +8276,11 @@ export type CreateAgentThreadResponses = {
|
|
|
8103
8276
|
id: string;
|
|
8104
8277
|
};
|
|
8105
8278
|
title?: string;
|
|
8279
|
+
sandboxParams?: {
|
|
8280
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8281
|
+
[key: string]: unknown;
|
|
8282
|
+
} | null;
|
|
8283
|
+
};
|
|
8106
8284
|
status: "active" | "archived";
|
|
8107
8285
|
activeRunId: string | null;
|
|
8108
8286
|
lastMessageAt?: string;
|
|
@@ -8147,6 +8325,11 @@ export type GetAgentThreadResponses = {
|
|
|
8147
8325
|
* Response for status 200
|
|
8148
8326
|
*/
|
|
8149
8327
|
200: {
|
|
8328
|
+
sandboxState?: {
|
|
8329
|
+
name: string;
|
|
8330
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable";
|
|
8331
|
+
initialized: boolean;
|
|
8332
|
+
};
|
|
8150
8333
|
id: string;
|
|
8151
8334
|
projectId: string;
|
|
8152
8335
|
ownerPrincipal: {
|
|
@@ -8154,6 +8337,11 @@ export type GetAgentThreadResponses = {
|
|
|
8154
8337
|
id: string;
|
|
8155
8338
|
};
|
|
8156
8339
|
title?: string;
|
|
8340
|
+
sandboxParams?: {
|
|
8341
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8342
|
+
[key: string]: unknown;
|
|
8343
|
+
} | null;
|
|
8344
|
+
};
|
|
8157
8345
|
status: "active" | "archived";
|
|
8158
8346
|
activeRunId: string | null;
|
|
8159
8347
|
lastMessageAt?: string;
|
|
@@ -8163,6 +8351,68 @@ export type GetAgentThreadResponses = {
|
|
|
8163
8351
|
};
|
|
8164
8352
|
};
|
|
8165
8353
|
export type GetAgentThreadResponse = GetAgentThreadResponses[keyof GetAgentThreadResponses];
|
|
8354
|
+
export type RecreateAgentThreadSandboxData = {
|
|
8355
|
+
body: {
|
|
8356
|
+
expectedSandboxName: string;
|
|
8357
|
+
};
|
|
8358
|
+
path: {
|
|
8359
|
+
threadId: string;
|
|
8360
|
+
};
|
|
8361
|
+
query?: never;
|
|
8362
|
+
url: "/api/agent-threads/{threadId}/sandbox/recreate";
|
|
8363
|
+
};
|
|
8364
|
+
export type RecreateAgentThreadSandboxErrors = {
|
|
8365
|
+
/**
|
|
8366
|
+
* Response for status 400
|
|
8367
|
+
*/
|
|
8368
|
+
400: {
|
|
8369
|
+
error: string;
|
|
8370
|
+
};
|
|
8371
|
+
/**
|
|
8372
|
+
* Response for status 404
|
|
8373
|
+
*/
|
|
8374
|
+
404: {
|
|
8375
|
+
error: string;
|
|
8376
|
+
};
|
|
8377
|
+
/**
|
|
8378
|
+
* Response for status 409
|
|
8379
|
+
*/
|
|
8380
|
+
409: {
|
|
8381
|
+
error: string;
|
|
8382
|
+
};
|
|
8383
|
+
};
|
|
8384
|
+
export type RecreateAgentThreadSandboxError = RecreateAgentThreadSandboxErrors[keyof RecreateAgentThreadSandboxErrors];
|
|
8385
|
+
export type RecreateAgentThreadSandboxResponses = {
|
|
8386
|
+
/**
|
|
8387
|
+
* Response for status 200
|
|
8388
|
+
*/
|
|
8389
|
+
200: {
|
|
8390
|
+
sandboxState?: {
|
|
8391
|
+
name: string;
|
|
8392
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable";
|
|
8393
|
+
initialized: boolean;
|
|
8394
|
+
};
|
|
8395
|
+
id: string;
|
|
8396
|
+
projectId: string;
|
|
8397
|
+
ownerPrincipal: {
|
|
8398
|
+
type: "user" | "serviceAccount" | "system";
|
|
8399
|
+
id: string;
|
|
8400
|
+
};
|
|
8401
|
+
title?: string;
|
|
8402
|
+
sandboxParams?: {
|
|
8403
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8404
|
+
[key: string]: unknown;
|
|
8405
|
+
} | null;
|
|
8406
|
+
};
|
|
8407
|
+
status: "active" | "archived";
|
|
8408
|
+
activeRunId: string | null;
|
|
8409
|
+
lastMessageAt?: string;
|
|
8410
|
+
messageCount: number;
|
|
8411
|
+
createdAt: string;
|
|
8412
|
+
updatedAt: string;
|
|
8413
|
+
};
|
|
8414
|
+
};
|
|
8415
|
+
export type RecreateAgentThreadSandboxResponse = RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses];
|
|
8166
8416
|
export type ListAgentThreadMessagesData = {
|
|
8167
8417
|
body?: never;
|
|
8168
8418
|
path: {
|