@sixb/client 0.1.11 → 0.1.13
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/agent-streams.d.ts +7 -2
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/api.d.ts +8 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/base-url.d.ts +2 -0
- package/dist/base-url.d.ts.map +1 -0
- package/dist/browser.js +7 -7
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-y4g6jrvs.js → chunk-1d0xnr6p.js} +38 -7
- package/dist/chunk-1d0xnr6p.js.map +10 -0
- package/dist/{chunk-f4qeqxz2.js → chunk-50rkzhcy.js} +23 -30
- package/dist/chunk-50rkzhcy.js.map +10 -0
- package/dist/{chunk-65mmaq7r.js → chunk-6k1hzwk1.js} +13 -11
- package/dist/chunk-6k1hzwk1.js.map +17 -0
- package/dist/{chunk-7bv57jcq.js → chunk-hdgztpzs.js} +372 -70
- package/dist/chunk-hdgztpzs.js.map +19 -0
- package/dist/{chunk-tyym13kq.js → chunk-jh4ts8mt.js} +3 -1
- package/dist/chunk-jh4ts8mt.js.map +10 -0
- package/dist/{chunk-qaacaq2e.js → chunk-nkx0fxxn.js} +6 -4
- package/dist/chunk-nkx0fxxn.js.map +10 -0
- package/dist/{chunk-65bdf9vw.js → chunk-tgyh8wz9.js} +7 -6
- package/dist/chunk-tgyh8wz9.js.map +12 -0
- package/dist/chunk-ys86w6hc.js +277 -0
- package/dist/chunk-ys86w6hc.js.map +12 -0
- package/dist/client-authority.d.ts +4 -0
- package/dist/client-authority.d.ts.map +1 -1
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.d.ts +2 -2
- package/dist/events-builder.d.ts.map +1 -1
- package/dist/events-transport.d.ts +4 -1
- package/dist/events-transport.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +1555 -366
- 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 +9 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +594 -91
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +44 -12
- package/dist/hooks.js.map +6 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -10
- package/dist/index.js.map +1 -1
- package/dist/logs-builder.d.ts +1 -1
- package/dist/logs-builder.d.ts.map +1 -1
- package/dist/logs-transport.d.ts +4 -1
- package/dist/logs-transport.d.ts.map +1 -1
- package/dist/logs.js +4 -4
- package/dist/models.d.ts +2 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +7 -3
- package/dist/models.js.map +1 -1
- package/dist/query-hooks.d.ts +3 -21
- package/dist/query-hooks.d.ts.map +1 -1
- package/dist/query.d.ts +2 -4
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +4 -4
- package/dist/session.d.ts +56 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/useAgentActivityStream.d.ts +3 -0
- package/dist/useAgentActivityStream.d.ts.map +1 -1
- package/dist/useAgentRunStream.d.ts +4 -1
- package/dist/useAgentRunStream.d.ts.map +1 -1
- package/dist/ws-socket.d.ts +3 -0
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +11 -4
- package/src/api.ts +37 -32
- package/src/base-url.ts +30 -0
- package/src/browser.ts +1 -1
- package/src/client-authority.ts +19 -0
- package/src/events-builder.ts +5 -9
- package/src/events-transport.ts +6 -2
- package/src/generated/@tanstack/react-query.gen.ts +62 -0
- package/src/generated/index.ts +13 -0
- package/src/generated/sdk.gen.ts +398 -68
- package/src/generated/types.gen.ts +735 -87
- package/src/index.ts +13 -1
- package/src/logs-builder.ts +2 -2
- package/src/logs-transport.ts +6 -2
- package/src/models.ts +4 -2
- package/src/query-hooks.ts +2 -17
- package/src/query.ts +9 -12
- package/src/session.ts +316 -0
- package/src/useAgentActivityStream.ts +6 -2
- package/src/useAgentRunStream.ts +7 -3
- package/src/ws-socket.ts +62 -5
- package/dist/chunk-65bdf9vw.js.map +0 -12
- package/dist/chunk-65mmaq7r.js.map +0 -17
- package/dist/chunk-65zz479s.js +0 -23
- package/dist/chunk-65zz479s.js.map +0 -10
- package/dist/chunk-7bv57jcq.js.map +0 -19
- package/dist/chunk-f4qeqxz2.js.map +0 -10
- package/dist/chunk-qaacaq2e.js.map +0 -10
- package/dist/chunk-tyym13kq.js.map +0 -10
- package/dist/chunk-y4g6jrvs.js.map +0 -10
|
@@ -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";
|
|
@@ -223,8 +237,6 @@ export type ObjectQuerySortField = {
|
|
|
223
237
|
export type CreateDeviceAuthorizationData = {
|
|
224
238
|
body: {
|
|
225
239
|
clientName: string;
|
|
226
|
-
tokenName: string;
|
|
227
|
-
expiresIn?: "90d";
|
|
228
240
|
};
|
|
229
241
|
path?: never;
|
|
230
242
|
query?: never;
|
|
@@ -272,11 +284,41 @@ export type ExchangeDeviceAuthorizationResponses = {
|
|
|
272
284
|
} | {
|
|
273
285
|
status: "expired";
|
|
274
286
|
} | {
|
|
275
|
-
status: "approved";
|
|
276
287
|
accessToken: string;
|
|
288
|
+
refreshToken: string;
|
|
289
|
+
expiresIn: number;
|
|
290
|
+
status: "approved";
|
|
277
291
|
};
|
|
278
292
|
};
|
|
279
293
|
export type ExchangeDeviceAuthorizationResponse = ExchangeDeviceAuthorizationResponses[keyof ExchangeDeviceAuthorizationResponses];
|
|
294
|
+
export type RefreshAuthSessionData = {
|
|
295
|
+
body: {
|
|
296
|
+
refreshToken: string;
|
|
297
|
+
};
|
|
298
|
+
path?: never;
|
|
299
|
+
query?: never;
|
|
300
|
+
url: "/api/auth/refresh";
|
|
301
|
+
};
|
|
302
|
+
export type RefreshAuthSessionErrors = {
|
|
303
|
+
/**
|
|
304
|
+
* Response for status 401
|
|
305
|
+
*/
|
|
306
|
+
401: {
|
|
307
|
+
error: string;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
export type RefreshAuthSessionError = RefreshAuthSessionErrors[keyof RefreshAuthSessionErrors];
|
|
311
|
+
export type RefreshAuthSessionResponses = {
|
|
312
|
+
/**
|
|
313
|
+
* Response for status 200
|
|
314
|
+
*/
|
|
315
|
+
200: {
|
|
316
|
+
accessToken: string;
|
|
317
|
+
refreshToken: string;
|
|
318
|
+
expiresIn: number;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
export type RefreshAuthSessionResponse = RefreshAuthSessionResponses[keyof RefreshAuthSessionResponses];
|
|
280
322
|
export type GetAuthSessionData = {
|
|
281
323
|
body?: never;
|
|
282
324
|
path?: never;
|
|
@@ -291,7 +333,7 @@ export type GetAuthSessionResponses = {
|
|
|
291
333
|
authenticated: false;
|
|
292
334
|
} | {
|
|
293
335
|
authenticated: true;
|
|
294
|
-
csrfToken
|
|
336
|
+
csrfToken?: string;
|
|
295
337
|
applicationAccess: {
|
|
296
338
|
allowed: boolean;
|
|
297
339
|
audience: "atlas" | "app";
|
|
@@ -356,13 +398,14 @@ export type ListAuthSessionsResponses = {
|
|
|
356
398
|
200: {
|
|
357
399
|
sessions: Array<{
|
|
358
400
|
id: string;
|
|
359
|
-
audience
|
|
401
|
+
audience?: "atlas" | "app";
|
|
360
402
|
current: boolean;
|
|
361
403
|
createdAt: string;
|
|
362
404
|
expiresAt: string;
|
|
363
405
|
lastSeenAt?: string;
|
|
364
406
|
userAgent?: string;
|
|
365
407
|
ipAddress?: string;
|
|
408
|
+
clientName?: string;
|
|
366
409
|
}>;
|
|
367
410
|
};
|
|
368
411
|
};
|
|
@@ -501,8 +544,10 @@ export type ListAuthAccessTokensResponses = {
|
|
|
501
544
|
name: string;
|
|
502
545
|
kind: "personal" | "serviceAccount";
|
|
503
546
|
status: "active" | "expired" | "revoked";
|
|
504
|
-
|
|
505
|
-
|
|
547
|
+
subject: {
|
|
548
|
+
type: "user" | "serviceAccount";
|
|
549
|
+
id: string;
|
|
550
|
+
};
|
|
506
551
|
subjectLabel?: string;
|
|
507
552
|
groupIds?: Array<string>;
|
|
508
553
|
createdAt: string;
|
|
@@ -562,8 +607,10 @@ export type CreateAuthPersonalAccessTokenResponses = {
|
|
|
562
607
|
name: string;
|
|
563
608
|
kind: "personal" | "serviceAccount";
|
|
564
609
|
status: "active" | "expired" | "revoked";
|
|
565
|
-
|
|
566
|
-
|
|
610
|
+
subject: {
|
|
611
|
+
type: "user" | "serviceAccount";
|
|
612
|
+
id: string;
|
|
613
|
+
};
|
|
567
614
|
subjectLabel?: string;
|
|
568
615
|
groupIds?: Array<string>;
|
|
569
616
|
createdAt: string;
|
|
@@ -622,8 +669,10 @@ export type RevokeAuthAccessTokenResponses = {
|
|
|
622
669
|
name: string;
|
|
623
670
|
kind: "personal" | "serviceAccount";
|
|
624
671
|
status: "active" | "expired" | "revoked";
|
|
625
|
-
|
|
626
|
-
|
|
672
|
+
subject: {
|
|
673
|
+
type: "user" | "serviceAccount";
|
|
674
|
+
id: string;
|
|
675
|
+
};
|
|
627
676
|
subjectLabel?: string;
|
|
628
677
|
groupIds?: Array<string>;
|
|
629
678
|
createdAt: string;
|
|
@@ -832,8 +881,10 @@ export type ListAuthServiceAccountAccessTokensResponses = {
|
|
|
832
881
|
name: string;
|
|
833
882
|
kind: "personal" | "serviceAccount";
|
|
834
883
|
status: "active" | "expired" | "revoked";
|
|
835
|
-
|
|
836
|
-
|
|
884
|
+
subject: {
|
|
885
|
+
type: "user" | "serviceAccount";
|
|
886
|
+
id: string;
|
|
887
|
+
};
|
|
837
888
|
subjectLabel?: string;
|
|
838
889
|
groupIds?: Array<string>;
|
|
839
890
|
createdAt: string;
|
|
@@ -901,8 +952,10 @@ export type CreateAuthServiceAccountAccessTokenResponses = {
|
|
|
901
952
|
name: string;
|
|
902
953
|
kind: "personal" | "serviceAccount";
|
|
903
954
|
status: "active" | "expired" | "revoked";
|
|
904
|
-
|
|
905
|
-
|
|
955
|
+
subject: {
|
|
956
|
+
type: "user" | "serviceAccount";
|
|
957
|
+
id: string;
|
|
958
|
+
};
|
|
906
959
|
subjectLabel?: string;
|
|
907
960
|
groupIds?: Array<string>;
|
|
908
961
|
createdAt: string;
|
|
@@ -962,8 +1015,10 @@ export type RevokeAuthServiceAccountAccessTokenResponses = {
|
|
|
962
1015
|
name: string;
|
|
963
1016
|
kind: "personal" | "serviceAccount";
|
|
964
1017
|
status: "active" | "expired" | "revoked";
|
|
965
|
-
|
|
966
|
-
|
|
1018
|
+
subject: {
|
|
1019
|
+
type: "user" | "serviceAccount";
|
|
1020
|
+
id: string;
|
|
1021
|
+
};
|
|
967
1022
|
subjectLabel?: string;
|
|
968
1023
|
groupIds?: Array<string>;
|
|
969
1024
|
createdAt: string;
|
|
@@ -1543,6 +1598,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1543
1598
|
bucket: "hour" | "day" | "week";
|
|
1544
1599
|
totals: {
|
|
1545
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
|
+
*/
|
|
1546
1604
|
usage: {
|
|
1547
1605
|
inputTokens?: number;
|
|
1548
1606
|
outputTokens?: number;
|
|
@@ -1554,6 +1612,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1554
1612
|
reasoningOutputTokens?: number;
|
|
1555
1613
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1556
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
|
+
};
|
|
1557
1630
|
costs: {
|
|
1558
1631
|
amounts: Array<{
|
|
1559
1632
|
currency: string;
|
|
@@ -1566,6 +1639,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1566
1639
|
};
|
|
1567
1640
|
series: Array<{
|
|
1568
1641
|
modelCallCount: number;
|
|
1642
|
+
/**
|
|
1643
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1644
|
+
*/
|
|
1569
1645
|
usage: {
|
|
1570
1646
|
inputTokens?: number;
|
|
1571
1647
|
outputTokens?: number;
|
|
@@ -1577,6 +1653,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1577
1653
|
reasoningOutputTokens?: number;
|
|
1578
1654
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1579
1655
|
};
|
|
1656
|
+
usageCoverage: {
|
|
1657
|
+
/**
|
|
1658
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1659
|
+
*/
|
|
1660
|
+
completeCallCount: number;
|
|
1661
|
+
fieldCallCounts: {
|
|
1662
|
+
inputTokens: number;
|
|
1663
|
+
outputTokens: number;
|
|
1664
|
+
uncachedInputTokens: number;
|
|
1665
|
+
cacheReadInputTokens: number;
|
|
1666
|
+
cacheWriteInputTokens: number;
|
|
1667
|
+
textOutputTokens: number;
|
|
1668
|
+
reasoningOutputTokens: number;
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1580
1671
|
costs: {
|
|
1581
1672
|
amounts: Array<{
|
|
1582
1673
|
currency: string;
|
|
@@ -1591,6 +1682,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1591
1682
|
}>;
|
|
1592
1683
|
models: Array<{
|
|
1593
1684
|
modelCallCount: number;
|
|
1685
|
+
/**
|
|
1686
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1687
|
+
*/
|
|
1594
1688
|
usage: {
|
|
1595
1689
|
inputTokens?: number;
|
|
1596
1690
|
outputTokens?: number;
|
|
@@ -1602,6 +1696,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1602
1696
|
reasoningOutputTokens?: number;
|
|
1603
1697
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1604
1698
|
};
|
|
1699
|
+
usageCoverage: {
|
|
1700
|
+
/**
|
|
1701
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1702
|
+
*/
|
|
1703
|
+
completeCallCount: number;
|
|
1704
|
+
fieldCallCounts: {
|
|
1705
|
+
inputTokens: number;
|
|
1706
|
+
outputTokens: number;
|
|
1707
|
+
uncachedInputTokens: number;
|
|
1708
|
+
cacheReadInputTokens: number;
|
|
1709
|
+
cacheWriteInputTokens: number;
|
|
1710
|
+
textOutputTokens: number;
|
|
1711
|
+
reasoningOutputTokens: number;
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1605
1714
|
costs: {
|
|
1606
1715
|
amounts: Array<{
|
|
1607
1716
|
currency: string;
|
|
@@ -1616,6 +1725,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1616
1725
|
}>;
|
|
1617
1726
|
agents: Array<{
|
|
1618
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
|
+
*/
|
|
1619
1731
|
usage: {
|
|
1620
1732
|
inputTokens?: number;
|
|
1621
1733
|
outputTokens?: number;
|
|
@@ -1627,6 +1739,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1627
1739
|
reasoningOutputTokens?: number;
|
|
1628
1740
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1629
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
|
+
};
|
|
1630
1757
|
costs: {
|
|
1631
1758
|
amounts: Array<{
|
|
1632
1759
|
currency: string;
|
|
@@ -1639,6 +1766,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1639
1766
|
kind: "agent";
|
|
1640
1767
|
} | {
|
|
1641
1768
|
modelCallCount: number;
|
|
1769
|
+
/**
|
|
1770
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1771
|
+
*/
|
|
1642
1772
|
usage: {
|
|
1643
1773
|
inputTokens?: number;
|
|
1644
1774
|
outputTokens?: number;
|
|
@@ -1650,6 +1780,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1650
1780
|
reasoningOutputTokens?: number;
|
|
1651
1781
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1652
1782
|
};
|
|
1783
|
+
usageCoverage: {
|
|
1784
|
+
/**
|
|
1785
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1786
|
+
*/
|
|
1787
|
+
completeCallCount: number;
|
|
1788
|
+
fieldCallCounts: {
|
|
1789
|
+
inputTokens: number;
|
|
1790
|
+
outputTokens: number;
|
|
1791
|
+
uncachedInputTokens: number;
|
|
1792
|
+
cacheReadInputTokens: number;
|
|
1793
|
+
cacheWriteInputTokens: number;
|
|
1794
|
+
textOutputTokens: number;
|
|
1795
|
+
reasoningOutputTokens: number;
|
|
1796
|
+
};
|
|
1797
|
+
};
|
|
1653
1798
|
costs: {
|
|
1654
1799
|
amounts: Array<{
|
|
1655
1800
|
currency: string;
|
|
@@ -1665,6 +1810,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1665
1810
|
}>;
|
|
1666
1811
|
workflows: Array<{
|
|
1667
1812
|
modelCallCount: number;
|
|
1813
|
+
/**
|
|
1814
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1815
|
+
*/
|
|
1668
1816
|
usage: {
|
|
1669
1817
|
inputTokens?: number;
|
|
1670
1818
|
outputTokens?: number;
|
|
@@ -1676,6 +1824,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1676
1824
|
reasoningOutputTokens?: number;
|
|
1677
1825
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1678
1826
|
};
|
|
1827
|
+
usageCoverage: {
|
|
1828
|
+
/**
|
|
1829
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1830
|
+
*/
|
|
1831
|
+
completeCallCount: number;
|
|
1832
|
+
fieldCallCounts: {
|
|
1833
|
+
inputTokens: number;
|
|
1834
|
+
outputTokens: number;
|
|
1835
|
+
uncachedInputTokens: number;
|
|
1836
|
+
cacheReadInputTokens: number;
|
|
1837
|
+
cacheWriteInputTokens: number;
|
|
1838
|
+
textOutputTokens: number;
|
|
1839
|
+
reasoningOutputTokens: number;
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1679
1842
|
costs: {
|
|
1680
1843
|
amounts: Array<{
|
|
1681
1844
|
currency: string;
|
|
@@ -4821,8 +4984,8 @@ export type ListWorkflowsResponses = {
|
|
|
4821
4984
|
truncated?: true;
|
|
4822
4985
|
};
|
|
4823
4986
|
requestedBy: {
|
|
4824
|
-
|
|
4825
|
-
|
|
4987
|
+
type: "user" | "serviceAccount" | "system";
|
|
4988
|
+
id: string;
|
|
4826
4989
|
};
|
|
4827
4990
|
} | null;
|
|
4828
4991
|
}>;
|
|
@@ -4938,8 +5101,8 @@ export type GetWorkflowResponses = {
|
|
|
4938
5101
|
truncated?: true;
|
|
4939
5102
|
};
|
|
4940
5103
|
requestedBy: {
|
|
4941
|
-
|
|
4942
|
-
|
|
5104
|
+
type: "user" | "serviceAccount" | "system";
|
|
5105
|
+
id: string;
|
|
4943
5106
|
};
|
|
4944
5107
|
} | null;
|
|
4945
5108
|
};
|
|
@@ -5009,8 +5172,8 @@ export type ListWorkflowInterventionsResponses = {
|
|
|
5009
5172
|
expiresAt?: string;
|
|
5010
5173
|
submittedAt?: string;
|
|
5011
5174
|
submittedBy?: {
|
|
5012
|
-
|
|
5013
|
-
|
|
5175
|
+
type: "user" | "serviceAccount" | "system";
|
|
5176
|
+
id: string;
|
|
5014
5177
|
};
|
|
5015
5178
|
response?: {
|
|
5016
5179
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
@@ -5019,8 +5182,8 @@ export type ListWorkflowInterventionsResponses = {
|
|
|
5019
5182
|
};
|
|
5020
5183
|
cancelledAt?: string;
|
|
5021
5184
|
cancelledBy?: {
|
|
5022
|
-
|
|
5023
|
-
|
|
5185
|
+
type: "user" | "serviceAccount" | "system";
|
|
5186
|
+
id: string;
|
|
5024
5187
|
};
|
|
5025
5188
|
expiredAt?: string;
|
|
5026
5189
|
}>;
|
|
@@ -5087,8 +5250,8 @@ export type GetWorkflowInterventionResponses = {
|
|
|
5087
5250
|
expiresAt?: string;
|
|
5088
5251
|
submittedAt?: string;
|
|
5089
5252
|
submittedBy?: {
|
|
5090
|
-
|
|
5091
|
-
|
|
5253
|
+
type: "user" | "serviceAccount" | "system";
|
|
5254
|
+
id: string;
|
|
5092
5255
|
};
|
|
5093
5256
|
response?: {
|
|
5094
5257
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
@@ -5097,8 +5260,8 @@ export type GetWorkflowInterventionResponses = {
|
|
|
5097
5260
|
};
|
|
5098
5261
|
cancelledAt?: string;
|
|
5099
5262
|
cancelledBy?: {
|
|
5100
|
-
|
|
5101
|
-
|
|
5263
|
+
type: "user" | "serviceAccount" | "system";
|
|
5264
|
+
id: string;
|
|
5102
5265
|
};
|
|
5103
5266
|
expiredAt?: string;
|
|
5104
5267
|
};
|
|
@@ -5169,8 +5332,8 @@ export type SubmitWorkflowInterventionResponses = {
|
|
|
5169
5332
|
expiresAt?: string;
|
|
5170
5333
|
submittedAt?: string;
|
|
5171
5334
|
submittedBy?: {
|
|
5172
|
-
|
|
5173
|
-
|
|
5335
|
+
type: "user" | "serviceAccount" | "system";
|
|
5336
|
+
id: string;
|
|
5174
5337
|
};
|
|
5175
5338
|
response?: {
|
|
5176
5339
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
@@ -5179,8 +5342,8 @@ export type SubmitWorkflowInterventionResponses = {
|
|
|
5179
5342
|
};
|
|
5180
5343
|
cancelledAt?: string;
|
|
5181
5344
|
cancelledBy?: {
|
|
5182
|
-
|
|
5183
|
-
|
|
5345
|
+
type: "user" | "serviceAccount" | "system";
|
|
5346
|
+
id: string;
|
|
5184
5347
|
};
|
|
5185
5348
|
expiredAt?: string;
|
|
5186
5349
|
};
|
|
@@ -5249,8 +5412,8 @@ export type CancelWorkflowInterventionResponses = {
|
|
|
5249
5412
|
expiresAt?: string;
|
|
5250
5413
|
submittedAt?: string;
|
|
5251
5414
|
submittedBy?: {
|
|
5252
|
-
|
|
5253
|
-
|
|
5415
|
+
type: "user" | "serviceAccount" | "system";
|
|
5416
|
+
id: string;
|
|
5254
5417
|
};
|
|
5255
5418
|
response?: {
|
|
5256
5419
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
@@ -5259,8 +5422,8 @@ export type CancelWorkflowInterventionResponses = {
|
|
|
5259
5422
|
};
|
|
5260
5423
|
cancelledAt?: string;
|
|
5261
5424
|
cancelledBy?: {
|
|
5262
|
-
|
|
5263
|
-
|
|
5425
|
+
type: "user" | "serviceAccount" | "system";
|
|
5426
|
+
id: string;
|
|
5264
5427
|
};
|
|
5265
5428
|
expiredAt?: string;
|
|
5266
5429
|
};
|
|
@@ -5325,8 +5488,8 @@ export type ListWorkflowRunsResponses = {
|
|
|
5325
5488
|
truncated?: true;
|
|
5326
5489
|
};
|
|
5327
5490
|
requestedBy: {
|
|
5328
|
-
|
|
5329
|
-
|
|
5491
|
+
type: "user" | "serviceAccount" | "system";
|
|
5492
|
+
id: string;
|
|
5330
5493
|
};
|
|
5331
5494
|
}>;
|
|
5332
5495
|
hasMore: boolean;
|
|
@@ -5392,8 +5555,8 @@ export type GetWorkflowRunResponses = {
|
|
|
5392
5555
|
truncated?: true;
|
|
5393
5556
|
};
|
|
5394
5557
|
requestedBy: {
|
|
5395
|
-
|
|
5396
|
-
|
|
5558
|
+
type: "user" | "serviceAccount" | "system";
|
|
5559
|
+
id: string;
|
|
5397
5560
|
};
|
|
5398
5561
|
input: {
|
|
5399
5562
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
@@ -5733,8 +5896,8 @@ export type CancelWorkflowRunResponses = {
|
|
|
5733
5896
|
truncated?: true;
|
|
5734
5897
|
};
|
|
5735
5898
|
requestedBy: {
|
|
5736
|
-
|
|
5737
|
-
|
|
5899
|
+
type: "user" | "serviceAccount" | "system";
|
|
5900
|
+
id: string;
|
|
5738
5901
|
};
|
|
5739
5902
|
input: {
|
|
5740
5903
|
[key: string]: string | number | boolean | Array<unknown> | {
|
|
@@ -6710,17 +6873,35 @@ export type ListObjectTypesResponses = {
|
|
|
6710
6873
|
text?: boolean;
|
|
6711
6874
|
exact?: boolean;
|
|
6712
6875
|
facet?: boolean;
|
|
6713
|
-
vector?: boolean;
|
|
6714
6876
|
weight?: number;
|
|
6715
6877
|
};
|
|
6878
|
+
/**
|
|
6879
|
+
* What object queries accept for this property, resolved from its schema and query metadata.
|
|
6880
|
+
*/
|
|
6881
|
+
capabilities: {
|
|
6882
|
+
operators: Array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains">;
|
|
6883
|
+
sortable: boolean;
|
|
6884
|
+
facet: boolean;
|
|
6885
|
+
text: boolean;
|
|
6886
|
+
};
|
|
6716
6887
|
}>;
|
|
6717
6888
|
search?: {
|
|
6718
6889
|
title?: string;
|
|
6719
6890
|
defaultText?: Array<string>;
|
|
6720
6891
|
exact?: Array<string>;
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6892
|
+
vectors?: {
|
|
6893
|
+
[key: string]: {
|
|
6894
|
+
source: Array<string>;
|
|
6895
|
+
model: {
|
|
6896
|
+
providerId: string;
|
|
6897
|
+
modelId: string;
|
|
6898
|
+
dimensions: number;
|
|
6899
|
+
representation?: {
|
|
6900
|
+
name: string;
|
|
6901
|
+
version?: string;
|
|
6902
|
+
};
|
|
6903
|
+
};
|
|
6904
|
+
};
|
|
6724
6905
|
};
|
|
6725
6906
|
};
|
|
6726
6907
|
links: Array<{
|
|
@@ -6746,7 +6927,6 @@ export type ListObjectTypesResponses = {
|
|
|
6746
6927
|
text?: boolean;
|
|
6747
6928
|
exact?: boolean;
|
|
6748
6929
|
facet?: boolean;
|
|
6749
|
-
vector?: boolean;
|
|
6750
6930
|
weight?: number;
|
|
6751
6931
|
};
|
|
6752
6932
|
}>;
|
|
@@ -6812,17 +6992,35 @@ export type GetObjectTypeResponses = {
|
|
|
6812
6992
|
text?: boolean;
|
|
6813
6993
|
exact?: boolean;
|
|
6814
6994
|
facet?: boolean;
|
|
6815
|
-
vector?: boolean;
|
|
6816
6995
|
weight?: number;
|
|
6817
6996
|
};
|
|
6997
|
+
/**
|
|
6998
|
+
* What object queries accept for this property, resolved from its schema and query metadata.
|
|
6999
|
+
*/
|
|
7000
|
+
capabilities: {
|
|
7001
|
+
operators: Array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains">;
|
|
7002
|
+
sortable: boolean;
|
|
7003
|
+
facet: boolean;
|
|
7004
|
+
text: boolean;
|
|
7005
|
+
};
|
|
6818
7006
|
}>;
|
|
6819
7007
|
search?: {
|
|
6820
7008
|
title?: string;
|
|
6821
7009
|
defaultText?: Array<string>;
|
|
6822
7010
|
exact?: Array<string>;
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
7011
|
+
vectors?: {
|
|
7012
|
+
[key: string]: {
|
|
7013
|
+
source: Array<string>;
|
|
7014
|
+
model: {
|
|
7015
|
+
providerId: string;
|
|
7016
|
+
modelId: string;
|
|
7017
|
+
dimensions: number;
|
|
7018
|
+
representation?: {
|
|
7019
|
+
name: string;
|
|
7020
|
+
version?: string;
|
|
7021
|
+
};
|
|
7022
|
+
};
|
|
7023
|
+
};
|
|
6826
7024
|
};
|
|
6827
7025
|
};
|
|
6828
7026
|
links: Array<{
|
|
@@ -6848,7 +7046,6 @@ export type GetObjectTypeResponses = {
|
|
|
6848
7046
|
text?: boolean;
|
|
6849
7047
|
exact?: boolean;
|
|
6850
7048
|
facet?: boolean;
|
|
6851
|
-
vector?: boolean;
|
|
6852
7049
|
weight?: number;
|
|
6853
7050
|
};
|
|
6854
7051
|
}>;
|
|
@@ -6948,6 +7145,7 @@ export type ListObjectsResponses = {
|
|
|
6948
7145
|
*/
|
|
6949
7146
|
200: {
|
|
6950
7147
|
objects: Array<{
|
|
7148
|
+
score?: number;
|
|
6951
7149
|
primaryId: string;
|
|
6952
7150
|
objectTypeId: string;
|
|
6953
7151
|
properties: {
|
|
@@ -6976,6 +7174,10 @@ export type QueryObjectsErrors = {
|
|
|
6976
7174
|
* Response for status 403
|
|
6977
7175
|
*/
|
|
6978
7176
|
403: ErrorResponse;
|
|
7177
|
+
/**
|
|
7178
|
+
* AI usage limit exceeded or unavailable
|
|
7179
|
+
*/
|
|
7180
|
+
429: AiUsageLimitErrorResponse;
|
|
6979
7181
|
/**
|
|
6980
7182
|
* Response for status 500
|
|
6981
7183
|
*/
|
|
@@ -7032,6 +7234,10 @@ export type CountObjectsErrors = {
|
|
|
7032
7234
|
* Response for status 403
|
|
7033
7235
|
*/
|
|
7034
7236
|
403: ErrorResponse;
|
|
7237
|
+
/**
|
|
7238
|
+
* AI usage limit exceeded or unavailable
|
|
7239
|
+
*/
|
|
7240
|
+
429: AiUsageLimitErrorResponse;
|
|
7035
7241
|
/**
|
|
7036
7242
|
* Response for status 500
|
|
7037
7243
|
*/
|
|
@@ -7060,6 +7266,10 @@ export type ExistsObjectsErrors = {
|
|
|
7060
7266
|
* Response for status 403
|
|
7061
7267
|
*/
|
|
7062
7268
|
403: ErrorResponse;
|
|
7269
|
+
/**
|
|
7270
|
+
* AI usage limit exceeded or unavailable
|
|
7271
|
+
*/
|
|
7272
|
+
429: AiUsageLimitErrorResponse;
|
|
7063
7273
|
/**
|
|
7064
7274
|
* Response for status 500
|
|
7065
7275
|
*/
|
|
@@ -7215,6 +7425,7 @@ export type GetObjectResponses = {
|
|
|
7215
7425
|
* Response for status 200
|
|
7216
7426
|
*/
|
|
7217
7427
|
200: {
|
|
7428
|
+
score?: number;
|
|
7218
7429
|
primaryId: string;
|
|
7219
7430
|
objectTypeId: string;
|
|
7220
7431
|
properties: {
|
|
@@ -7264,6 +7475,7 @@ export type UpsertObjectResponses = {
|
|
|
7264
7475
|
* Response for status 200
|
|
7265
7476
|
*/
|
|
7266
7477
|
200: {
|
|
7478
|
+
score?: number;
|
|
7267
7479
|
primaryId: string;
|
|
7268
7480
|
objectTypeId: string;
|
|
7269
7481
|
properties: {
|
|
@@ -7464,6 +7676,12 @@ export type CreateFileUploadErrors = {
|
|
|
7464
7676
|
400: {
|
|
7465
7677
|
error: string;
|
|
7466
7678
|
};
|
|
7679
|
+
/**
|
|
7680
|
+
* Response for status 501
|
|
7681
|
+
*/
|
|
7682
|
+
501: {
|
|
7683
|
+
error: string;
|
|
7684
|
+
};
|
|
7467
7685
|
};
|
|
7468
7686
|
export type CreateFileUploadError = CreateFileUploadErrors[keyof CreateFileUploadErrors];
|
|
7469
7687
|
export type CreateFileUploadResponses = {
|
|
@@ -7527,6 +7745,12 @@ export type UploadFileContentErrors = {
|
|
|
7527
7745
|
410: {
|
|
7528
7746
|
error: string;
|
|
7529
7747
|
};
|
|
7748
|
+
/**
|
|
7749
|
+
* Response for status 501
|
|
7750
|
+
*/
|
|
7751
|
+
501: {
|
|
7752
|
+
error: string;
|
|
7753
|
+
};
|
|
7530
7754
|
};
|
|
7531
7755
|
export type UploadFileContentError = UploadFileContentErrors[keyof UploadFileContentErrors];
|
|
7532
7756
|
export type UploadFileContentResponses = {
|
|
@@ -7572,6 +7796,12 @@ export type SignFileUploadPartErrors = {
|
|
|
7572
7796
|
410: {
|
|
7573
7797
|
error: string;
|
|
7574
7798
|
};
|
|
7799
|
+
/**
|
|
7800
|
+
* Response for status 501
|
|
7801
|
+
*/
|
|
7802
|
+
501: {
|
|
7803
|
+
error: string;
|
|
7804
|
+
};
|
|
7575
7805
|
};
|
|
7576
7806
|
export type SignFileUploadPartError = SignFileUploadPartErrors[keyof SignFileUploadPartErrors];
|
|
7577
7807
|
export type SignFileUploadPartResponses = {
|
|
@@ -7629,6 +7859,12 @@ export type CompleteFileUploadErrors = {
|
|
|
7629
7859
|
410: {
|
|
7630
7860
|
error: string;
|
|
7631
7861
|
};
|
|
7862
|
+
/**
|
|
7863
|
+
* Response for status 501
|
|
7864
|
+
*/
|
|
7865
|
+
501: {
|
|
7866
|
+
error: string;
|
|
7867
|
+
};
|
|
7632
7868
|
};
|
|
7633
7869
|
export type CompleteFileUploadError = CompleteFileUploadErrors[keyof CompleteFileUploadErrors];
|
|
7634
7870
|
export type CompleteFileUploadResponses = {
|
|
@@ -7678,6 +7914,12 @@ export type AbortFileUploadErrors = {
|
|
|
7678
7914
|
410: {
|
|
7679
7915
|
error: string;
|
|
7680
7916
|
};
|
|
7917
|
+
/**
|
|
7918
|
+
* Response for status 501
|
|
7919
|
+
*/
|
|
7920
|
+
501: {
|
|
7921
|
+
error: string;
|
|
7922
|
+
};
|
|
7681
7923
|
};
|
|
7682
7924
|
export type AbortFileUploadError = AbortFileUploadErrors[keyof AbortFileUploadErrors];
|
|
7683
7925
|
export type AbortFileUploadResponses = {
|
|
@@ -7742,7 +7984,7 @@ export type ListActionRunsResponses = {
|
|
|
7742
7984
|
startedAt?: string;
|
|
7743
7985
|
finishedAt?: string;
|
|
7744
7986
|
error?: {
|
|
7745
|
-
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
|
|
7987
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed" | "action.read_conflict";
|
|
7746
7988
|
message: string;
|
|
7747
7989
|
retryable: boolean;
|
|
7748
7990
|
at: string;
|
|
@@ -7811,7 +8053,7 @@ export type GetActionRunResponses = {
|
|
|
7811
8053
|
startedAt?: string;
|
|
7812
8054
|
finishedAt?: string;
|
|
7813
8055
|
error?: {
|
|
7814
|
-
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
|
|
8056
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed" | "action.read_conflict";
|
|
7815
8057
|
message: string;
|
|
7816
8058
|
retryable: boolean;
|
|
7817
8059
|
at: string;
|
|
@@ -7840,7 +8082,7 @@ export type GetActionRunResponses = {
|
|
|
7840
8082
|
status: "failed";
|
|
7841
8083
|
completedAt: string;
|
|
7842
8084
|
error: {
|
|
7843
|
-
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
|
|
8085
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed" | "action.read_conflict";
|
|
7844
8086
|
message: string;
|
|
7845
8087
|
retryable: boolean;
|
|
7846
8088
|
at: string;
|
|
@@ -7861,7 +8103,7 @@ export type GetActionRunResponses = {
|
|
|
7861
8103
|
status: "failed";
|
|
7862
8104
|
completedAt: string;
|
|
7863
8105
|
error: {
|
|
7864
|
-
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed";
|
|
8106
|
+
code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "action.phase_failed" | "action.read_conflict";
|
|
7865
8107
|
message: string;
|
|
7866
8108
|
retryable: boolean;
|
|
7867
8109
|
at: string;
|
|
@@ -8035,6 +8277,11 @@ export type ListAgentThreadsResponses = {
|
|
|
8035
8277
|
*/
|
|
8036
8278
|
200: {
|
|
8037
8279
|
threads: Array<{
|
|
8280
|
+
sandboxState?: {
|
|
8281
|
+
name: string;
|
|
8282
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable";
|
|
8283
|
+
initialized: boolean;
|
|
8284
|
+
};
|
|
8038
8285
|
id: string;
|
|
8039
8286
|
projectId: string;
|
|
8040
8287
|
ownerPrincipal: {
|
|
@@ -8042,6 +8289,11 @@ export type ListAgentThreadsResponses = {
|
|
|
8042
8289
|
id: string;
|
|
8043
8290
|
};
|
|
8044
8291
|
title?: string;
|
|
8292
|
+
sandboxParams?: {
|
|
8293
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8294
|
+
[key: string]: unknown;
|
|
8295
|
+
} | null;
|
|
8296
|
+
};
|
|
8045
8297
|
status: "active" | "archived";
|
|
8046
8298
|
activeRunId: string | null;
|
|
8047
8299
|
lastMessageAt?: string;
|
|
@@ -8058,6 +8310,11 @@ export type CreateAgentThreadData = {
|
|
|
8058
8310
|
body: {
|
|
8059
8311
|
title?: string;
|
|
8060
8312
|
threadId?: string;
|
|
8313
|
+
sandbox?: {
|
|
8314
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8315
|
+
[key: string]: unknown;
|
|
8316
|
+
} | null;
|
|
8317
|
+
};
|
|
8061
8318
|
};
|
|
8062
8319
|
path?: never;
|
|
8063
8320
|
query?: never;
|
|
@@ -8096,6 +8353,11 @@ export type CreateAgentThreadResponses = {
|
|
|
8096
8353
|
*/
|
|
8097
8354
|
201: {
|
|
8098
8355
|
thread: {
|
|
8356
|
+
sandboxState?: {
|
|
8357
|
+
name: string;
|
|
8358
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable";
|
|
8359
|
+
initialized: boolean;
|
|
8360
|
+
};
|
|
8099
8361
|
id: string;
|
|
8100
8362
|
projectId: string;
|
|
8101
8363
|
ownerPrincipal: {
|
|
@@ -8103,6 +8365,11 @@ export type CreateAgentThreadResponses = {
|
|
|
8103
8365
|
id: string;
|
|
8104
8366
|
};
|
|
8105
8367
|
title?: string;
|
|
8368
|
+
sandboxParams?: {
|
|
8369
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8370
|
+
[key: string]: unknown;
|
|
8371
|
+
} | null;
|
|
8372
|
+
};
|
|
8106
8373
|
status: "active" | "archived";
|
|
8107
8374
|
activeRunId: string | null;
|
|
8108
8375
|
lastMessageAt?: string;
|
|
@@ -8147,6 +8414,11 @@ export type GetAgentThreadResponses = {
|
|
|
8147
8414
|
* Response for status 200
|
|
8148
8415
|
*/
|
|
8149
8416
|
200: {
|
|
8417
|
+
sandboxState?: {
|
|
8418
|
+
name: string;
|
|
8419
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable";
|
|
8420
|
+
initialized: boolean;
|
|
8421
|
+
};
|
|
8150
8422
|
id: string;
|
|
8151
8423
|
projectId: string;
|
|
8152
8424
|
ownerPrincipal: {
|
|
@@ -8154,6 +8426,11 @@ export type GetAgentThreadResponses = {
|
|
|
8154
8426
|
id: string;
|
|
8155
8427
|
};
|
|
8156
8428
|
title?: string;
|
|
8429
|
+
sandboxParams?: {
|
|
8430
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8431
|
+
[key: string]: unknown;
|
|
8432
|
+
} | null;
|
|
8433
|
+
};
|
|
8157
8434
|
status: "active" | "archived";
|
|
8158
8435
|
activeRunId: string | null;
|
|
8159
8436
|
lastMessageAt?: string;
|
|
@@ -8163,6 +8440,68 @@ export type GetAgentThreadResponses = {
|
|
|
8163
8440
|
};
|
|
8164
8441
|
};
|
|
8165
8442
|
export type GetAgentThreadResponse = GetAgentThreadResponses[keyof GetAgentThreadResponses];
|
|
8443
|
+
export type RecreateAgentThreadSandboxData = {
|
|
8444
|
+
body: {
|
|
8445
|
+
expectedSandboxName: string;
|
|
8446
|
+
};
|
|
8447
|
+
path: {
|
|
8448
|
+
threadId: string;
|
|
8449
|
+
};
|
|
8450
|
+
query?: never;
|
|
8451
|
+
url: "/api/agent-threads/{threadId}/sandbox/recreate";
|
|
8452
|
+
};
|
|
8453
|
+
export type RecreateAgentThreadSandboxErrors = {
|
|
8454
|
+
/**
|
|
8455
|
+
* Response for status 400
|
|
8456
|
+
*/
|
|
8457
|
+
400: {
|
|
8458
|
+
error: string;
|
|
8459
|
+
};
|
|
8460
|
+
/**
|
|
8461
|
+
* Response for status 404
|
|
8462
|
+
*/
|
|
8463
|
+
404: {
|
|
8464
|
+
error: string;
|
|
8465
|
+
};
|
|
8466
|
+
/**
|
|
8467
|
+
* Response for status 409
|
|
8468
|
+
*/
|
|
8469
|
+
409: {
|
|
8470
|
+
error: string;
|
|
8471
|
+
};
|
|
8472
|
+
};
|
|
8473
|
+
export type RecreateAgentThreadSandboxError = RecreateAgentThreadSandboxErrors[keyof RecreateAgentThreadSandboxErrors];
|
|
8474
|
+
export type RecreateAgentThreadSandboxResponses = {
|
|
8475
|
+
/**
|
|
8476
|
+
* Response for status 200
|
|
8477
|
+
*/
|
|
8478
|
+
200: {
|
|
8479
|
+
sandboxState?: {
|
|
8480
|
+
name: string;
|
|
8481
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable";
|
|
8482
|
+
initialized: boolean;
|
|
8483
|
+
};
|
|
8484
|
+
id: string;
|
|
8485
|
+
projectId: string;
|
|
8486
|
+
ownerPrincipal: {
|
|
8487
|
+
type: "user" | "serviceAccount" | "system";
|
|
8488
|
+
id: string;
|
|
8489
|
+
};
|
|
8490
|
+
title?: string;
|
|
8491
|
+
sandboxParams?: {
|
|
8492
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
8493
|
+
[key: string]: unknown;
|
|
8494
|
+
} | null;
|
|
8495
|
+
};
|
|
8496
|
+
status: "active" | "archived";
|
|
8497
|
+
activeRunId: string | null;
|
|
8498
|
+
lastMessageAt?: string;
|
|
8499
|
+
messageCount: number;
|
|
8500
|
+
createdAt: string;
|
|
8501
|
+
updatedAt: string;
|
|
8502
|
+
};
|
|
8503
|
+
};
|
|
8504
|
+
export type RecreateAgentThreadSandboxResponse = RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses];
|
|
8166
8505
|
export type ListAgentThreadMessagesData = {
|
|
8167
8506
|
body?: never;
|
|
8168
8507
|
path: {
|
|
@@ -9419,10 +9758,6 @@ export type ListEventsResponses = {
|
|
|
9419
9758
|
schemaVersion: 1;
|
|
9420
9759
|
projectId: string;
|
|
9421
9760
|
occurredAt: string;
|
|
9422
|
-
actor?: {
|
|
9423
|
-
type: "user" | "serviceAccount" | "system";
|
|
9424
|
-
id: string;
|
|
9425
|
-
};
|
|
9426
9761
|
partitionKey: string;
|
|
9427
9762
|
origin: {
|
|
9428
9763
|
kind: "action";
|
|
@@ -9451,6 +9786,34 @@ export type ListEventsResponses = {
|
|
|
9451
9786
|
batchOrdinal: number;
|
|
9452
9787
|
};
|
|
9453
9788
|
};
|
|
9789
|
+
/**
|
|
9790
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
9791
|
+
*/
|
|
9792
|
+
requestedBy?: {
|
|
9793
|
+
type: "user" | "serviceAccount";
|
|
9794
|
+
id: string;
|
|
9795
|
+
};
|
|
9796
|
+
executor: {
|
|
9797
|
+
type: "request";
|
|
9798
|
+
requestId: string;
|
|
9799
|
+
} | {
|
|
9800
|
+
type: "primitive";
|
|
9801
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
9802
|
+
id: string;
|
|
9803
|
+
runId: string;
|
|
9804
|
+
} | {
|
|
9805
|
+
type: "agent";
|
|
9806
|
+
runId: string;
|
|
9807
|
+
} | {
|
|
9808
|
+
type: "kernel";
|
|
9809
|
+
operation: {
|
|
9810
|
+
type: "ontology.recover";
|
|
9811
|
+
recoveryId: string;
|
|
9812
|
+
} | {
|
|
9813
|
+
type: "ontology.indexVectors";
|
|
9814
|
+
indexingId: string;
|
|
9815
|
+
};
|
|
9816
|
+
};
|
|
9454
9817
|
commitId: string;
|
|
9455
9818
|
commitOrdinal: number;
|
|
9456
9819
|
type: "object.created";
|
|
@@ -9504,10 +9867,6 @@ export type ListEventsResponses = {
|
|
|
9504
9867
|
schemaVersion: 1;
|
|
9505
9868
|
projectId: string;
|
|
9506
9869
|
occurredAt: string;
|
|
9507
|
-
actor?: {
|
|
9508
|
-
type: "user" | "serviceAccount" | "system";
|
|
9509
|
-
id: string;
|
|
9510
|
-
};
|
|
9511
9870
|
partitionKey: string;
|
|
9512
9871
|
origin: {
|
|
9513
9872
|
kind: "action";
|
|
@@ -9536,6 +9895,34 @@ export type ListEventsResponses = {
|
|
|
9536
9895
|
batchOrdinal: number;
|
|
9537
9896
|
};
|
|
9538
9897
|
};
|
|
9898
|
+
/**
|
|
9899
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
9900
|
+
*/
|
|
9901
|
+
requestedBy?: {
|
|
9902
|
+
type: "user" | "serviceAccount";
|
|
9903
|
+
id: string;
|
|
9904
|
+
};
|
|
9905
|
+
executor: {
|
|
9906
|
+
type: "request";
|
|
9907
|
+
requestId: string;
|
|
9908
|
+
} | {
|
|
9909
|
+
type: "primitive";
|
|
9910
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
9911
|
+
id: string;
|
|
9912
|
+
runId: string;
|
|
9913
|
+
} | {
|
|
9914
|
+
type: "agent";
|
|
9915
|
+
runId: string;
|
|
9916
|
+
} | {
|
|
9917
|
+
type: "kernel";
|
|
9918
|
+
operation: {
|
|
9919
|
+
type: "ontology.recover";
|
|
9920
|
+
recoveryId: string;
|
|
9921
|
+
} | {
|
|
9922
|
+
type: "ontology.indexVectors";
|
|
9923
|
+
indexingId: string;
|
|
9924
|
+
};
|
|
9925
|
+
};
|
|
9539
9926
|
commitId: string;
|
|
9540
9927
|
commitOrdinal: number;
|
|
9541
9928
|
type: "object.updated";
|
|
@@ -9589,10 +9976,6 @@ export type ListEventsResponses = {
|
|
|
9589
9976
|
schemaVersion: 1;
|
|
9590
9977
|
projectId: string;
|
|
9591
9978
|
occurredAt: string;
|
|
9592
|
-
actor?: {
|
|
9593
|
-
type: "user" | "serviceAccount" | "system";
|
|
9594
|
-
id: string;
|
|
9595
|
-
};
|
|
9596
9979
|
partitionKey: string;
|
|
9597
9980
|
origin: {
|
|
9598
9981
|
kind: "action";
|
|
@@ -9621,6 +10004,34 @@ export type ListEventsResponses = {
|
|
|
9621
10004
|
batchOrdinal: number;
|
|
9622
10005
|
};
|
|
9623
10006
|
};
|
|
10007
|
+
/**
|
|
10008
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
10009
|
+
*/
|
|
10010
|
+
requestedBy?: {
|
|
10011
|
+
type: "user" | "serviceAccount";
|
|
10012
|
+
id: string;
|
|
10013
|
+
};
|
|
10014
|
+
executor: {
|
|
10015
|
+
type: "request";
|
|
10016
|
+
requestId: string;
|
|
10017
|
+
} | {
|
|
10018
|
+
type: "primitive";
|
|
10019
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10020
|
+
id: string;
|
|
10021
|
+
runId: string;
|
|
10022
|
+
} | {
|
|
10023
|
+
type: "agent";
|
|
10024
|
+
runId: string;
|
|
10025
|
+
} | {
|
|
10026
|
+
type: "kernel";
|
|
10027
|
+
operation: {
|
|
10028
|
+
type: "ontology.recover";
|
|
10029
|
+
recoveryId: string;
|
|
10030
|
+
} | {
|
|
10031
|
+
type: "ontology.indexVectors";
|
|
10032
|
+
indexingId: string;
|
|
10033
|
+
};
|
|
10034
|
+
};
|
|
9624
10035
|
commitId: string;
|
|
9625
10036
|
commitOrdinal: number;
|
|
9626
10037
|
type: "object.deleted";
|
|
@@ -9669,10 +10080,6 @@ export type ListEventsResponses = {
|
|
|
9669
10080
|
schemaVersion: 1;
|
|
9670
10081
|
projectId: string;
|
|
9671
10082
|
occurredAt: string;
|
|
9672
|
-
actor?: {
|
|
9673
|
-
type: "user" | "serviceAccount" | "system";
|
|
9674
|
-
id: string;
|
|
9675
|
-
};
|
|
9676
10083
|
partitionKey: string;
|
|
9677
10084
|
origin: {
|
|
9678
10085
|
kind: "action";
|
|
@@ -9701,6 +10108,34 @@ export type ListEventsResponses = {
|
|
|
9701
10108
|
batchOrdinal: number;
|
|
9702
10109
|
};
|
|
9703
10110
|
};
|
|
10111
|
+
/**
|
|
10112
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
10113
|
+
*/
|
|
10114
|
+
requestedBy?: {
|
|
10115
|
+
type: "user" | "serviceAccount";
|
|
10116
|
+
id: string;
|
|
10117
|
+
};
|
|
10118
|
+
executor: {
|
|
10119
|
+
type: "request";
|
|
10120
|
+
requestId: string;
|
|
10121
|
+
} | {
|
|
10122
|
+
type: "primitive";
|
|
10123
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10124
|
+
id: string;
|
|
10125
|
+
runId: string;
|
|
10126
|
+
} | {
|
|
10127
|
+
type: "agent";
|
|
10128
|
+
runId: string;
|
|
10129
|
+
} | {
|
|
10130
|
+
type: "kernel";
|
|
10131
|
+
operation: {
|
|
10132
|
+
type: "ontology.recover";
|
|
10133
|
+
recoveryId: string;
|
|
10134
|
+
} | {
|
|
10135
|
+
type: "ontology.indexVectors";
|
|
10136
|
+
indexingId: string;
|
|
10137
|
+
};
|
|
10138
|
+
};
|
|
9704
10139
|
commitId: string;
|
|
9705
10140
|
commitOrdinal: number;
|
|
9706
10141
|
type: "telemetry.appended";
|
|
@@ -9724,10 +10159,6 @@ export type ListEventsResponses = {
|
|
|
9724
10159
|
schemaVersion: 1;
|
|
9725
10160
|
projectId: string;
|
|
9726
10161
|
occurredAt: string;
|
|
9727
|
-
actor?: {
|
|
9728
|
-
type: "user" | "serviceAccount" | "system";
|
|
9729
|
-
id: string;
|
|
9730
|
-
};
|
|
9731
10162
|
partitionKey: string;
|
|
9732
10163
|
origin: {
|
|
9733
10164
|
kind: "action";
|
|
@@ -9756,6 +10187,34 @@ export type ListEventsResponses = {
|
|
|
9756
10187
|
batchOrdinal: number;
|
|
9757
10188
|
};
|
|
9758
10189
|
};
|
|
10190
|
+
/**
|
|
10191
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
10192
|
+
*/
|
|
10193
|
+
requestedBy?: {
|
|
10194
|
+
type: "user" | "serviceAccount";
|
|
10195
|
+
id: string;
|
|
10196
|
+
};
|
|
10197
|
+
executor: {
|
|
10198
|
+
type: "request";
|
|
10199
|
+
requestId: string;
|
|
10200
|
+
} | {
|
|
10201
|
+
type: "primitive";
|
|
10202
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10203
|
+
id: string;
|
|
10204
|
+
runId: string;
|
|
10205
|
+
} | {
|
|
10206
|
+
type: "agent";
|
|
10207
|
+
runId: string;
|
|
10208
|
+
} | {
|
|
10209
|
+
type: "kernel";
|
|
10210
|
+
operation: {
|
|
10211
|
+
type: "ontology.recover";
|
|
10212
|
+
recoveryId: string;
|
|
10213
|
+
} | {
|
|
10214
|
+
type: "ontology.indexVectors";
|
|
10215
|
+
indexingId: string;
|
|
10216
|
+
};
|
|
10217
|
+
};
|
|
9759
10218
|
commitId: string;
|
|
9760
10219
|
commitOrdinal: number;
|
|
9761
10220
|
type: "link.created";
|
|
@@ -9812,10 +10271,6 @@ export type ListEventsResponses = {
|
|
|
9812
10271
|
schemaVersion: 1;
|
|
9813
10272
|
projectId: string;
|
|
9814
10273
|
occurredAt: string;
|
|
9815
|
-
actor?: {
|
|
9816
|
-
type: "user" | "serviceAccount" | "system";
|
|
9817
|
-
id: string;
|
|
9818
|
-
};
|
|
9819
10274
|
partitionKey: string;
|
|
9820
10275
|
origin: {
|
|
9821
10276
|
kind: "action";
|
|
@@ -9844,6 +10299,34 @@ export type ListEventsResponses = {
|
|
|
9844
10299
|
batchOrdinal: number;
|
|
9845
10300
|
};
|
|
9846
10301
|
};
|
|
10302
|
+
/**
|
|
10303
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
10304
|
+
*/
|
|
10305
|
+
requestedBy?: {
|
|
10306
|
+
type: "user" | "serviceAccount";
|
|
10307
|
+
id: string;
|
|
10308
|
+
};
|
|
10309
|
+
executor: {
|
|
10310
|
+
type: "request";
|
|
10311
|
+
requestId: string;
|
|
10312
|
+
} | {
|
|
10313
|
+
type: "primitive";
|
|
10314
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10315
|
+
id: string;
|
|
10316
|
+
runId: string;
|
|
10317
|
+
} | {
|
|
10318
|
+
type: "agent";
|
|
10319
|
+
runId: string;
|
|
10320
|
+
} | {
|
|
10321
|
+
type: "kernel";
|
|
10322
|
+
operation: {
|
|
10323
|
+
type: "ontology.recover";
|
|
10324
|
+
recoveryId: string;
|
|
10325
|
+
} | {
|
|
10326
|
+
type: "ontology.indexVectors";
|
|
10327
|
+
indexingId: string;
|
|
10328
|
+
};
|
|
10329
|
+
};
|
|
9847
10330
|
commitId: string;
|
|
9848
10331
|
commitOrdinal: number;
|
|
9849
10332
|
type: "link.updated";
|
|
@@ -9900,10 +10383,6 @@ export type ListEventsResponses = {
|
|
|
9900
10383
|
schemaVersion: 1;
|
|
9901
10384
|
projectId: string;
|
|
9902
10385
|
occurredAt: string;
|
|
9903
|
-
actor?: {
|
|
9904
|
-
type: "user" | "serviceAccount" | "system";
|
|
9905
|
-
id: string;
|
|
9906
|
-
};
|
|
9907
10386
|
partitionKey: string;
|
|
9908
10387
|
origin: {
|
|
9909
10388
|
kind: "action";
|
|
@@ -9932,6 +10411,34 @@ export type ListEventsResponses = {
|
|
|
9932
10411
|
batchOrdinal: number;
|
|
9933
10412
|
};
|
|
9934
10413
|
};
|
|
10414
|
+
/**
|
|
10415
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
10416
|
+
*/
|
|
10417
|
+
requestedBy?: {
|
|
10418
|
+
type: "user" | "serviceAccount";
|
|
10419
|
+
id: string;
|
|
10420
|
+
};
|
|
10421
|
+
executor: {
|
|
10422
|
+
type: "request";
|
|
10423
|
+
requestId: string;
|
|
10424
|
+
} | {
|
|
10425
|
+
type: "primitive";
|
|
10426
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10427
|
+
id: string;
|
|
10428
|
+
runId: string;
|
|
10429
|
+
} | {
|
|
10430
|
+
type: "agent";
|
|
10431
|
+
runId: string;
|
|
10432
|
+
} | {
|
|
10433
|
+
type: "kernel";
|
|
10434
|
+
operation: {
|
|
10435
|
+
type: "ontology.recover";
|
|
10436
|
+
recoveryId: string;
|
|
10437
|
+
} | {
|
|
10438
|
+
type: "ontology.indexVectors";
|
|
10439
|
+
indexingId: string;
|
|
10440
|
+
};
|
|
10441
|
+
};
|
|
9935
10442
|
commitId: string;
|
|
9936
10443
|
commitOrdinal: number;
|
|
9937
10444
|
type: "link.deleted";
|
|
@@ -9983,10 +10490,6 @@ export type ListEventsResponses = {
|
|
|
9983
10490
|
schemaVersion: 1;
|
|
9984
10491
|
projectId: string;
|
|
9985
10492
|
occurredAt: string;
|
|
9986
|
-
actor?: {
|
|
9987
|
-
type: "user" | "serviceAccount" | "system";
|
|
9988
|
-
id: string;
|
|
9989
|
-
};
|
|
9990
10493
|
partitionKey: string;
|
|
9991
10494
|
correlationId?: string;
|
|
9992
10495
|
causationId?: string;
|