@sixb/client 0.1.24 → 0.2.1
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 +1 -1
- package/dist/agent-streams.d.ts +9 -2
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/browser.js +2 -2
- package/dist/{chunk-1zthvcby.js → chunk-0p42gyb5.js} +12 -7
- package/dist/{chunk-1zthvcby.js.map → chunk-0p42gyb5.js.map} +3 -3
- package/dist/{chunk-z28fxqd0.js → chunk-3kfn00we.js} +1 -1
- package/dist/{chunk-2ezmcce2.js → chunk-hkn0keqj.js} +1 -1
- package/dist/{chunk-14c2tg81.js → chunk-k2na62sa.js} +64 -40
- package/dist/chunk-k2na62sa.js.map +19 -0
- package/dist/{chunk-fzpxv5j5.js → chunk-r50kxqa5.js} +2 -2
- package/dist/{chunk-4xavy5bx.js → chunk-rrexv1gk.js} +52 -4
- package/dist/chunk-rrexv1gk.js.map +11 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2905 -476
- 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 +47 -15
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +1250 -243
- 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 +334 -77
- package/dist/hooks.js.map +8 -6
- package/dist/index.js +23 -15
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +19 -11
- package/dist/models.js.map +1 -1
- package/dist/object-query-live-updates.d.ts +34 -0
- package/dist/object-query-live-updates.d.ts.map +1 -0
- package/dist/object-query-reads.d.ts +8 -0
- package/dist/object-query-reads.d.ts.map +1 -0
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +3 -3
- package/dist/useAgentActivityStream.d.ts +4 -1
- package/dist/useAgentActivityStream.d.ts.map +1 -1
- package/dist/useDesktop.d.ts +47 -0
- package/dist/useDesktop.d.ts.map +1 -0
- package/dist/users-hooks.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +16 -2
- package/src/generated/@tanstack/react-query.gen.ts +240 -105
- package/src/generated/index.ts +47 -24
- package/src/generated/sdk.gen.ts +177 -73
- package/src/generated/types.gen.ts +1359 -169
- package/src/hooks.ts +11 -0
- package/src/object-query-live-updates.ts +276 -0
- package/src/object-query-reads.ts +72 -0
- package/src/query.ts +5 -0
- package/src/useAgentActivityStream.ts +11 -0
- package/src/useDesktop.ts +77 -0
- package/dist/chunk-14c2tg81.js.map +0 -19
- package/dist/chunk-4xavy5bx.js.map +0 -10
- /package/dist/{chunk-z28fxqd0.js.map → chunk-3kfn00we.js.map} +0 -0
- /package/dist/{chunk-2ezmcce2.js.map → chunk-hkn0keqj.js.map} +0 -0
- /package/dist/{chunk-fzpxv5j5.js.map → chunk-r50kxqa5.js.map} +0 -0
|
@@ -54,6 +54,10 @@ export type ObjectQueryIssue = {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export type ObjectQueryPlanSummary = {
|
|
57
|
+
/**
|
|
58
|
+
* Every object type the query reads: where it starts, and what it traverses or expands
|
|
59
|
+
*/
|
|
60
|
+
readObjectTypeIds?: Array<string>
|
|
57
61
|
mode: "pushdown" | "fallback" | "pipeline" | "rejected"
|
|
58
62
|
providerIssues: Array<ObjectQueryIssue>
|
|
59
63
|
fallbackIssues: Array<ObjectQueryIssue>
|
|
@@ -470,7 +474,9 @@ export type AgentChild = {
|
|
|
470
474
|
code:
|
|
471
475
|
| "internal.unexpected"
|
|
472
476
|
| "runtime.cancelled"
|
|
477
|
+
| "agent.context_limit_exceeded"
|
|
473
478
|
| "agent.execution_failed"
|
|
479
|
+
| "agent.step_limit_reached"
|
|
474
480
|
| "ai.usage_limit_exceeded"
|
|
475
481
|
| "ai.usage_limit_unavailable"
|
|
476
482
|
message: string
|
|
@@ -560,7 +566,9 @@ export type AgentChildRun = {
|
|
|
560
566
|
code:
|
|
561
567
|
| "internal.unexpected"
|
|
562
568
|
| "runtime.cancelled"
|
|
569
|
+
| "agent.context_limit_exceeded"
|
|
563
570
|
| "agent.execution_failed"
|
|
571
|
+
| "agent.step_limit_reached"
|
|
564
572
|
| "ai.usage_limit_exceeded"
|
|
565
573
|
| "ai.usage_limit_unavailable"
|
|
566
574
|
message: string
|
|
@@ -799,6 +807,32 @@ export type GetAuthSessionResponses = {
|
|
|
799
807
|
avatarUrl?: string
|
|
800
808
|
groupIds: Array<string>
|
|
801
809
|
}
|
|
810
|
+
access: {
|
|
811
|
+
/**
|
|
812
|
+
* Members: a membership policy lets them invite, assign groups or suspend
|
|
813
|
+
*/
|
|
814
|
+
members: boolean
|
|
815
|
+
/**
|
|
816
|
+
* Service accounts: a membership policy lets them manage them
|
|
817
|
+
*/
|
|
818
|
+
serviceAccounts: boolean
|
|
819
|
+
/**
|
|
820
|
+
* Usage: they hold can.observe(agent.usage)
|
|
821
|
+
*/
|
|
822
|
+
usage: boolean
|
|
823
|
+
/**
|
|
824
|
+
* Activity: they hold can.observe(project.activity)
|
|
825
|
+
*/
|
|
826
|
+
activity: boolean
|
|
827
|
+
/**
|
|
828
|
+
* The Console: they hold can.observe(project.console)
|
|
829
|
+
*/
|
|
830
|
+
console: boolean
|
|
831
|
+
/**
|
|
832
|
+
* Console › Logs: they hold can.observe(project.logs)
|
|
833
|
+
*/
|
|
834
|
+
logs: boolean
|
|
835
|
+
}
|
|
802
836
|
session: {
|
|
803
837
|
id: string
|
|
804
838
|
expiresAt: string
|
|
@@ -2055,6 +2089,10 @@ export type ListAuthMembersResponses = {
|
|
|
2055
2089
|
suspend: boolean
|
|
2056
2090
|
reactivate: boolean
|
|
2057
2091
|
}
|
|
2092
|
+
/**
|
|
2093
|
+
* Their latest session's last request, or its sign-in; absent if they never signed in
|
|
2094
|
+
*/
|
|
2095
|
+
lastActiveAt?: string
|
|
2058
2096
|
}>
|
|
2059
2097
|
hasMore: boolean
|
|
2060
2098
|
total: number
|
|
@@ -2265,6 +2303,27 @@ export type GetAiAccountingOverviewData = {
|
|
|
2265
2303
|
to: string
|
|
2266
2304
|
providerId?: string
|
|
2267
2305
|
modelId?: string
|
|
2306
|
+
/**
|
|
2307
|
+
* Calls one person or service account asked for, as user:<id> or serviceAccount:<id>, or none for those nobody did, such as a schedule's
|
|
2308
|
+
*/
|
|
2309
|
+
person?: string
|
|
2310
|
+
/**
|
|
2311
|
+
* Calls from agent conversations and their sub-agents, actions, workflows or one as workflow:<id>, or other
|
|
2312
|
+
*/
|
|
2313
|
+
source?: string
|
|
2314
|
+
/**
|
|
2315
|
+
* Calls to one kind of model
|
|
2316
|
+
*/
|
|
2317
|
+
kind?:
|
|
2318
|
+
| "language"
|
|
2319
|
+
| "image"
|
|
2320
|
+
| "video"
|
|
2321
|
+
| "embedding"
|
|
2322
|
+
| "decision"
|
|
2323
|
+
| "transcription"
|
|
2324
|
+
| "speech"
|
|
2325
|
+
| "reranking"
|
|
2326
|
+
| "web-search"
|
|
2268
2327
|
bucket: "hour" | "day" | "week"
|
|
2269
2328
|
}
|
|
2270
2329
|
url: "/api/ai/accounting/overview"
|
|
@@ -2438,6 +2497,81 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
2438
2497
|
start: string
|
|
2439
2498
|
end: string
|
|
2440
2499
|
}>
|
|
2500
|
+
/**
|
|
2501
|
+
* Each model's own series, every period included
|
|
2502
|
+
*/
|
|
2503
|
+
modelSeries: Array<{
|
|
2504
|
+
providerId: string
|
|
2505
|
+
modelId: string
|
|
2506
|
+
series: Array<{
|
|
2507
|
+
modelCallCount: number
|
|
2508
|
+
/**
|
|
2509
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
2510
|
+
*/
|
|
2511
|
+
usage: {
|
|
2512
|
+
inputTokens?: number
|
|
2513
|
+
outputTokens?: number
|
|
2514
|
+
totalTokens?: number
|
|
2515
|
+
uncachedInputTokens?: number
|
|
2516
|
+
cacheReadInputTokens?: number
|
|
2517
|
+
cacheWriteInputTokens?: number
|
|
2518
|
+
textOutputTokens?: number
|
|
2519
|
+
reasoningOutputTokens?: number
|
|
2520
|
+
/**
|
|
2521
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
2522
|
+
*/
|
|
2523
|
+
audioDurationMs?: number
|
|
2524
|
+
/**
|
|
2525
|
+
* Output tokens that encode generated images, within outputTokens.
|
|
2526
|
+
*/
|
|
2527
|
+
imageOutputTokens?: number
|
|
2528
|
+
/**
|
|
2529
|
+
* Output tokens that encode generated audio, within outputTokens.
|
|
2530
|
+
*/
|
|
2531
|
+
audioOutputTokens?: number
|
|
2532
|
+
/**
|
|
2533
|
+
* Images the call returned.
|
|
2534
|
+
*/
|
|
2535
|
+
outputImages?: number
|
|
2536
|
+
/**
|
|
2537
|
+
* Input characters, counted by the provider's own billing rule.
|
|
2538
|
+
*/
|
|
2539
|
+
inputCharacters?: number
|
|
2540
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
2541
|
+
}
|
|
2542
|
+
usageCoverage: {
|
|
2543
|
+
/**
|
|
2544
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
2545
|
+
*/
|
|
2546
|
+
completeCallCount: number
|
|
2547
|
+
fieldCallCounts: {
|
|
2548
|
+
inputTokens: number
|
|
2549
|
+
outputTokens: number
|
|
2550
|
+
uncachedInputTokens: number
|
|
2551
|
+
cacheReadInputTokens: number
|
|
2552
|
+
cacheWriteInputTokens: number
|
|
2553
|
+
textOutputTokens: number
|
|
2554
|
+
reasoningOutputTokens: number
|
|
2555
|
+
audioDurationMs: number
|
|
2556
|
+
imageOutputTokens: number
|
|
2557
|
+
audioOutputTokens: number
|
|
2558
|
+
outputImages: number
|
|
2559
|
+
inputCharacters: number
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
costs: {
|
|
2563
|
+
amounts: Array<{
|
|
2564
|
+
currency: string
|
|
2565
|
+
amountNanos: string
|
|
2566
|
+
}>
|
|
2567
|
+
ratedCallCount: number
|
|
2568
|
+
unpriceableCallCount: number
|
|
2569
|
+
unvaluedCallCount: number
|
|
2570
|
+
}
|
|
2571
|
+
start: string
|
|
2572
|
+
end: string
|
|
2573
|
+
}>
|
|
2574
|
+
}>
|
|
2441
2575
|
models: Array<{
|
|
2442
2576
|
modelCallCount: number
|
|
2443
2577
|
/**
|
|
@@ -2506,6 +2640,87 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
2506
2640
|
providerId: string
|
|
2507
2641
|
modelId: string
|
|
2508
2642
|
}>
|
|
2643
|
+
/**
|
|
2644
|
+
* Who asked for the calls
|
|
2645
|
+
*/
|
|
2646
|
+
people: Array<{
|
|
2647
|
+
modelCallCount: number
|
|
2648
|
+
/**
|
|
2649
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
2650
|
+
*/
|
|
2651
|
+
usage: {
|
|
2652
|
+
inputTokens?: number
|
|
2653
|
+
outputTokens?: number
|
|
2654
|
+
totalTokens?: number
|
|
2655
|
+
uncachedInputTokens?: number
|
|
2656
|
+
cacheReadInputTokens?: number
|
|
2657
|
+
cacheWriteInputTokens?: number
|
|
2658
|
+
textOutputTokens?: number
|
|
2659
|
+
reasoningOutputTokens?: number
|
|
2660
|
+
/**
|
|
2661
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
2662
|
+
*/
|
|
2663
|
+
audioDurationMs?: number
|
|
2664
|
+
/**
|
|
2665
|
+
* Output tokens that encode generated images, within outputTokens.
|
|
2666
|
+
*/
|
|
2667
|
+
imageOutputTokens?: number
|
|
2668
|
+
/**
|
|
2669
|
+
* Output tokens that encode generated audio, within outputTokens.
|
|
2670
|
+
*/
|
|
2671
|
+
audioOutputTokens?: number
|
|
2672
|
+
/**
|
|
2673
|
+
* Images the call returned.
|
|
2674
|
+
*/
|
|
2675
|
+
outputImages?: number
|
|
2676
|
+
/**
|
|
2677
|
+
* Input characters, counted by the provider's own billing rule.
|
|
2678
|
+
*/
|
|
2679
|
+
inputCharacters?: number
|
|
2680
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
2681
|
+
}
|
|
2682
|
+
usageCoverage: {
|
|
2683
|
+
/**
|
|
2684
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
2685
|
+
*/
|
|
2686
|
+
completeCallCount: number
|
|
2687
|
+
fieldCallCounts: {
|
|
2688
|
+
inputTokens: number
|
|
2689
|
+
outputTokens: number
|
|
2690
|
+
uncachedInputTokens: number
|
|
2691
|
+
cacheReadInputTokens: number
|
|
2692
|
+
cacheWriteInputTokens: number
|
|
2693
|
+
textOutputTokens: number
|
|
2694
|
+
reasoningOutputTokens: number
|
|
2695
|
+
audioDurationMs: number
|
|
2696
|
+
imageOutputTokens: number
|
|
2697
|
+
audioOutputTokens: number
|
|
2698
|
+
outputImages: number
|
|
2699
|
+
inputCharacters: number
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
costs: {
|
|
2703
|
+
amounts: Array<{
|
|
2704
|
+
currency: string
|
|
2705
|
+
amountNanos: string
|
|
2706
|
+
}>
|
|
2707
|
+
ratedCallCount: number
|
|
2708
|
+
unpriceableCallCount: number
|
|
2709
|
+
unvaluedCallCount: number
|
|
2710
|
+
}
|
|
2711
|
+
/**
|
|
2712
|
+
* Absent for the calls nobody asked for, such as a schedule's
|
|
2713
|
+
*/
|
|
2714
|
+
requester?: {
|
|
2715
|
+
type: "user" | "serviceAccount"
|
|
2716
|
+
id: string
|
|
2717
|
+
/**
|
|
2718
|
+
* Their name, or a service account's
|
|
2719
|
+
*/
|
|
2720
|
+
name?: string
|
|
2721
|
+
email?: string
|
|
2722
|
+
}
|
|
2723
|
+
}>
|
|
2509
2724
|
kinds: Array<{
|
|
2510
2725
|
modelCallCount: number
|
|
2511
2726
|
/**
|
|
@@ -2583,6 +2798,7 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
2583
2798
|
| "transcription"
|
|
2584
2799
|
| "speech"
|
|
2585
2800
|
| "reranking"
|
|
2801
|
+
| "web-search"
|
|
2586
2802
|
}>
|
|
2587
2803
|
agents: Array<
|
|
2588
2804
|
| {
|
|
@@ -2803,6 +3019,27 @@ export type ListAiModelCallsData = {
|
|
|
2803
3019
|
to: string
|
|
2804
3020
|
providerId?: string
|
|
2805
3021
|
modelId?: string
|
|
3022
|
+
/**
|
|
3023
|
+
* Calls one person or service account asked for, as user:<id> or serviceAccount:<id>, or none for those nobody did, such as a schedule's
|
|
3024
|
+
*/
|
|
3025
|
+
person?: string
|
|
3026
|
+
/**
|
|
3027
|
+
* Calls from agent conversations and their sub-agents, actions, workflows or one as workflow:<id>, or other
|
|
3028
|
+
*/
|
|
3029
|
+
source?: string
|
|
3030
|
+
/**
|
|
3031
|
+
* Calls to one kind of model
|
|
3032
|
+
*/
|
|
3033
|
+
kind?:
|
|
3034
|
+
| "language"
|
|
3035
|
+
| "image"
|
|
3036
|
+
| "video"
|
|
3037
|
+
| "embedding"
|
|
3038
|
+
| "decision"
|
|
3039
|
+
| "transcription"
|
|
3040
|
+
| "speech"
|
|
3041
|
+
| "reranking"
|
|
3042
|
+
| "web-search"
|
|
2806
3043
|
executionId?: string
|
|
2807
3044
|
valuationStatus?: "rated" | "unpriceable" | "unvalued"
|
|
2808
3045
|
limit?: string
|
|
@@ -2856,6 +3093,7 @@ export type ListAiModelCallsResponses = {
|
|
|
2856
3093
|
| "transcription"
|
|
2857
3094
|
| "speech"
|
|
2858
3095
|
| "reranking"
|
|
3096
|
+
| "web-search"
|
|
2859
3097
|
requestedReasoning?:
|
|
2860
3098
|
| "provider-default"
|
|
2861
3099
|
| "none"
|
|
@@ -3710,9 +3948,34 @@ export type ListAiModelCallGroupsData = {
|
|
|
3710
3948
|
to: string
|
|
3711
3949
|
providerId?: string
|
|
3712
3950
|
modelId?: string
|
|
3951
|
+
/**
|
|
3952
|
+
* Calls one person or service account asked for, as user:<id> or serviceAccount:<id>, or none for those nobody did, such as a schedule's
|
|
3953
|
+
*/
|
|
3954
|
+
person?: string
|
|
3955
|
+
/**
|
|
3956
|
+
* Calls from agent conversations and their sub-agents, actions, workflows or one as workflow:<id>, or other
|
|
3957
|
+
*/
|
|
3958
|
+
source?: string
|
|
3959
|
+
/**
|
|
3960
|
+
* Calls to one kind of model
|
|
3961
|
+
*/
|
|
3962
|
+
kind?:
|
|
3963
|
+
| "language"
|
|
3964
|
+
| "image"
|
|
3965
|
+
| "video"
|
|
3966
|
+
| "embedding"
|
|
3967
|
+
| "decision"
|
|
3968
|
+
| "transcription"
|
|
3969
|
+
| "speech"
|
|
3970
|
+
| "reranking"
|
|
3971
|
+
| "web-search"
|
|
3713
3972
|
valuationStatus?: "rated" | "unpriceable" | "unvalued"
|
|
3714
3973
|
limit?: string
|
|
3715
3974
|
offset?: string
|
|
3975
|
+
/**
|
|
3976
|
+
* Most recent first, the default, or costliest first
|
|
3977
|
+
*/
|
|
3978
|
+
sort?: "recent" | "cost"
|
|
3716
3979
|
}
|
|
3717
3980
|
url: "/api/ai/model-call-groups"
|
|
3718
3981
|
}
|
|
@@ -3785,6 +4048,8 @@ export type ListAiModelCallGroupsResponses = {
|
|
|
3785
4048
|
* Present when every call that reports tokens did; images and speech don't.
|
|
3786
4049
|
*/
|
|
3787
4050
|
totalTokens?: number
|
|
4051
|
+
inputTokens?: number
|
|
4052
|
+
cacheReadInputTokens?: number
|
|
3788
4053
|
outputImages?: number
|
|
3789
4054
|
inputCharacters?: number
|
|
3790
4055
|
audioDurationMs?: number
|
|
@@ -3800,6 +4065,9 @@ export type ListAiModelCallGroupsResponses = {
|
|
|
3800
4065
|
firstCallAt: string
|
|
3801
4066
|
lastCallAt: string
|
|
3802
4067
|
label?: string
|
|
4068
|
+
/**
|
|
4069
|
+
* A conversation's turns and sub-agents, or a workflow run's agent steps
|
|
4070
|
+
*/
|
|
3803
4071
|
executions: Array<{
|
|
3804
4072
|
executionId: string
|
|
3805
4073
|
attribution?:
|
|
@@ -3839,6 +4107,8 @@ export type ListAiModelCallGroupsResponses = {
|
|
|
3839
4107
|
* Present when every call that reports tokens did; images and speech don't.
|
|
3840
4108
|
*/
|
|
3841
4109
|
totalTokens?: number
|
|
4110
|
+
inputTokens?: number
|
|
4111
|
+
cacheReadInputTokens?: number
|
|
3842
4112
|
outputImages?: number
|
|
3843
4113
|
inputCharacters?: number
|
|
3844
4114
|
audioDurationMs?: number
|
|
@@ -3856,10 +4126,36 @@ export type ListAiModelCallGroupsResponses = {
|
|
|
3856
4126
|
models: Array<{
|
|
3857
4127
|
providerId: string
|
|
3858
4128
|
modelId: string
|
|
4129
|
+
modelCallCount: number
|
|
4130
|
+
costs: {
|
|
4131
|
+
amounts: Array<{
|
|
4132
|
+
currency: string
|
|
4133
|
+
amountNanos: string
|
|
4134
|
+
}>
|
|
4135
|
+
ratedCallCount: number
|
|
4136
|
+
unpriceableCallCount: number
|
|
4137
|
+
unvaluedCallCount: number
|
|
4138
|
+
}
|
|
3859
4139
|
}>
|
|
3860
4140
|
label?: string
|
|
4141
|
+
/**
|
|
4142
|
+
* What a turn was asked, when the caller can read its conversation
|
|
4143
|
+
*/
|
|
4144
|
+
prompt?: string
|
|
3861
4145
|
}>
|
|
3862
4146
|
canOpenThread: boolean
|
|
4147
|
+
/**
|
|
4148
|
+
* Who started it
|
|
4149
|
+
*/
|
|
4150
|
+
requester?: {
|
|
4151
|
+
type: "user" | "serviceAccount"
|
|
4152
|
+
id: string
|
|
4153
|
+
/**
|
|
4154
|
+
* Their name, or a service account's
|
|
4155
|
+
*/
|
|
4156
|
+
name?: string
|
|
4157
|
+
email?: string
|
|
4158
|
+
}
|
|
3863
4159
|
}>
|
|
3864
4160
|
total: number
|
|
3865
4161
|
hasMore: boolean
|
|
@@ -6120,6 +6416,7 @@ export type ListDatasetVersionsResponses = {
|
|
|
6120
6416
|
kind: "sync" | "pipeline" | "ingest"
|
|
6121
6417
|
id?: string
|
|
6122
6418
|
runId?: string
|
|
6419
|
+
stepId?: string
|
|
6123
6420
|
}
|
|
6124
6421
|
inputs?: Array<{
|
|
6125
6422
|
datasetId: string
|
|
@@ -6196,6 +6493,7 @@ export type GetDatasetVersionResponses = {
|
|
|
6196
6493
|
kind: "sync" | "pipeline" | "ingest"
|
|
6197
6494
|
id?: string
|
|
6198
6495
|
runId?: string
|
|
6496
|
+
stepId?: string
|
|
6199
6497
|
}
|
|
6200
6498
|
inputs?: Array<{
|
|
6201
6499
|
datasetId: string
|
|
@@ -6208,6 +6506,89 @@ export type GetDatasetVersionResponses = {
|
|
|
6208
6506
|
|
|
6209
6507
|
export type GetDatasetVersionResponse = GetDatasetVersionResponses[keyof GetDatasetVersionResponses]
|
|
6210
6508
|
|
|
6509
|
+
export type GetDatasetVersionLineageData = {
|
|
6510
|
+
body?: never
|
|
6511
|
+
path: {
|
|
6512
|
+
datasetId: string
|
|
6513
|
+
versionId: string
|
|
6514
|
+
}
|
|
6515
|
+
query?: {
|
|
6516
|
+
depth?: string
|
|
6517
|
+
}
|
|
6518
|
+
url: "/api/datasets/{datasetId}/versions/{versionId}/lineage"
|
|
6519
|
+
}
|
|
6520
|
+
|
|
6521
|
+
export type GetDatasetVersionLineageErrors = {
|
|
6522
|
+
/**
|
|
6523
|
+
* Response for status 400
|
|
6524
|
+
*/
|
|
6525
|
+
400: {
|
|
6526
|
+
error: string
|
|
6527
|
+
}
|
|
6528
|
+
/**
|
|
6529
|
+
* Response for status 404
|
|
6530
|
+
*/
|
|
6531
|
+
404: {
|
|
6532
|
+
error: string
|
|
6533
|
+
/**
|
|
6534
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
6535
|
+
*/
|
|
6536
|
+
code: "dataset.not_found" | "dataset.version_not_found"
|
|
6537
|
+
}
|
|
6538
|
+
}
|
|
6539
|
+
|
|
6540
|
+
export type GetDatasetVersionLineageError =
|
|
6541
|
+
GetDatasetVersionLineageErrors[keyof GetDatasetVersionLineageErrors]
|
|
6542
|
+
|
|
6543
|
+
export type GetDatasetVersionLineageResponses = {
|
|
6544
|
+
/**
|
|
6545
|
+
* Response for status 200
|
|
6546
|
+
*/
|
|
6547
|
+
200: {
|
|
6548
|
+
nodes: Array<
|
|
6549
|
+
| {
|
|
6550
|
+
datasetId: string
|
|
6551
|
+
versionId: string
|
|
6552
|
+
parentVersionId?: string
|
|
6553
|
+
mode: "snapshot" | "append" | "merge" | "schema"
|
|
6554
|
+
createdAt: string
|
|
6555
|
+
producer?: {
|
|
6556
|
+
kind: "sync" | "pipeline" | "ingest"
|
|
6557
|
+
id?: string
|
|
6558
|
+
runId?: string
|
|
6559
|
+
stepId?: string
|
|
6560
|
+
}
|
|
6561
|
+
}
|
|
6562
|
+
| {
|
|
6563
|
+
datasetId: string
|
|
6564
|
+
versionId: string
|
|
6565
|
+
expired: true
|
|
6566
|
+
}
|
|
6567
|
+
>
|
|
6568
|
+
edges: Array<{
|
|
6569
|
+
from: {
|
|
6570
|
+
datasetId: string
|
|
6571
|
+
versionId: string
|
|
6572
|
+
}
|
|
6573
|
+
to: {
|
|
6574
|
+
datasetId: string
|
|
6575
|
+
versionId: string
|
|
6576
|
+
}
|
|
6577
|
+
}>
|
|
6578
|
+
/**
|
|
6579
|
+
* Versions left out because the caller cannot view their dataset.
|
|
6580
|
+
*/
|
|
6581
|
+
restricted: number
|
|
6582
|
+
/**
|
|
6583
|
+
* Whether the walk stopped at `depth` or at the node cap.
|
|
6584
|
+
*/
|
|
6585
|
+
truncated: boolean
|
|
6586
|
+
}
|
|
6587
|
+
}
|
|
6588
|
+
|
|
6589
|
+
export type GetDatasetVersionLineageResponse =
|
|
6590
|
+
GetDatasetVersionLineageResponses[keyof GetDatasetVersionLineageResponses]
|
|
6591
|
+
|
|
6211
6592
|
export type ListDatasetRowsData = {
|
|
6212
6593
|
body?: never
|
|
6213
6594
|
path: {
|
|
@@ -6276,6 +6657,7 @@ export type ListDatasetRowsResponses = {
|
|
|
6276
6657
|
kind: "sync" | "pipeline" | "ingest"
|
|
6277
6658
|
id?: string
|
|
6278
6659
|
runId?: string
|
|
6660
|
+
stepId?: string
|
|
6279
6661
|
}
|
|
6280
6662
|
inputs?: Array<{
|
|
6281
6663
|
datasetId: string
|
|
@@ -8420,7 +8802,9 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
8420
8802
|
| "action.run_in_progress"
|
|
8421
8803
|
| "action.timeout"
|
|
8422
8804
|
| "agent.approval_authority_lost"
|
|
8805
|
+
| "agent.context_limit_exceeded"
|
|
8423
8806
|
| "agent.execution_failed"
|
|
8807
|
+
| "agent.step_limit_reached"
|
|
8424
8808
|
| "ai.usage_limit_exceeded"
|
|
8425
8809
|
| "ai.usage_limit_unavailable"
|
|
8426
8810
|
| "connector.adapter_invalid"
|
|
@@ -8621,13 +9005,24 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
8621
9005
|
[key: string]: unknown
|
|
8622
9006
|
}
|
|
8623
9007
|
| null
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
9008
|
+
outputFile?: {
|
|
9009
|
+
fileRef: {
|
|
9010
|
+
blobId: string
|
|
9011
|
+
digest: string
|
|
9012
|
+
sizeBytes: number
|
|
9013
|
+
fileName?: string
|
|
9014
|
+
mediaType?: string
|
|
9015
|
+
logicalPath?: string
|
|
9016
|
+
}
|
|
9017
|
+
path: string
|
|
9018
|
+
}
|
|
9019
|
+
}
|
|
9020
|
+
| {
|
|
9021
|
+
type: "tool-call"
|
|
9022
|
+
toolCallId: string
|
|
9023
|
+
toolName: string
|
|
9024
|
+
dynamic?: boolean
|
|
9025
|
+
providerExecuted?: boolean
|
|
8631
9026
|
/**
|
|
8632
9027
|
* Any JSON-compatible value.
|
|
8633
9028
|
*/
|
|
@@ -8680,7 +9075,9 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
8680
9075
|
code:
|
|
8681
9076
|
| "internal.unexpected"
|
|
8682
9077
|
| "runtime.cancelled"
|
|
9078
|
+
| "agent.context_limit_exceeded"
|
|
8683
9079
|
| "agent.execution_failed"
|
|
9080
|
+
| "agent.step_limit_reached"
|
|
8684
9081
|
| "ai.usage_limit_exceeded"
|
|
8685
9082
|
| "ai.usage_limit_unavailable"
|
|
8686
9083
|
message: string
|
|
@@ -10579,75 +10976,219 @@ export type GetObjectResponses = {
|
|
|
10579
10976
|
|
|
10580
10977
|
export type GetObjectResponse = GetObjectResponses[keyof GetObjectResponses]
|
|
10581
10978
|
|
|
10582
|
-
export type
|
|
10583
|
-
body
|
|
10584
|
-
properties: {
|
|
10585
|
-
[key: string]: unknown
|
|
10586
|
-
}
|
|
10587
|
-
}
|
|
10979
|
+
export type GetObjectLineageData = {
|
|
10980
|
+
body?: never
|
|
10588
10981
|
path: {
|
|
10589
10982
|
objectTypeId: string
|
|
10590
10983
|
objectId: string
|
|
10591
10984
|
}
|
|
10592
10985
|
query?: never
|
|
10593
|
-
url: "/api/objects/{objectTypeId}/{objectId}"
|
|
10986
|
+
url: "/api/objects/{objectTypeId}/{objectId}/lineage"
|
|
10594
10987
|
}
|
|
10595
10988
|
|
|
10596
|
-
export type
|
|
10597
|
-
/**
|
|
10598
|
-
* Response for status 400
|
|
10599
|
-
*/
|
|
10600
|
-
400: {
|
|
10601
|
-
error: string
|
|
10602
|
-
}
|
|
10603
|
-
/**
|
|
10604
|
-
* Response for status 403
|
|
10605
|
-
*/
|
|
10606
|
-
403: {
|
|
10607
|
-
error: string
|
|
10608
|
-
}
|
|
10989
|
+
export type GetObjectLineageErrors = {
|
|
10609
10990
|
/**
|
|
10610
10991
|
* Response for status 404
|
|
10611
10992
|
*/
|
|
10612
10993
|
404: {
|
|
10613
10994
|
error: string
|
|
10614
10995
|
}
|
|
10615
|
-
/**
|
|
10616
|
-
* Response for status 409
|
|
10617
|
-
*/
|
|
10618
|
-
409: {
|
|
10619
|
-
error: string
|
|
10620
|
-
/**
|
|
10621
|
-
* Stable machine-readable failure code for programmatic handling.
|
|
10622
|
-
*/
|
|
10623
|
-
code: "object.unique_violation"
|
|
10624
|
-
}
|
|
10625
10996
|
}
|
|
10626
10997
|
|
|
10627
|
-
export type
|
|
10998
|
+
export type GetObjectLineageError = GetObjectLineageErrors[keyof GetObjectLineageErrors]
|
|
10628
10999
|
|
|
10629
|
-
export type
|
|
11000
|
+
export type GetObjectLineageResponses = {
|
|
10630
11001
|
/**
|
|
10631
11002
|
* Response for status 200
|
|
10632
11003
|
*/
|
|
10633
11004
|
200: {
|
|
10634
|
-
score?: number
|
|
10635
|
-
primaryId: string
|
|
10636
11005
|
objectTypeId: string
|
|
10637
|
-
|
|
10638
|
-
|
|
11006
|
+
primaryId: string
|
|
11007
|
+
existence: {
|
|
11008
|
+
source: string
|
|
10639
11009
|
}
|
|
10640
|
-
|
|
11010
|
+
/**
|
|
11011
|
+
* Keyed `projection:<id>`, `commit:<id>`, `commit@<instant>` when the commit is unknown, `telemetry:<commitId>` and `identity`.
|
|
11012
|
+
*/
|
|
11013
|
+
sources: {
|
|
11014
|
+
[key: string]:
|
|
11015
|
+
| {
|
|
11016
|
+
kind: "projection"
|
|
11017
|
+
projectionId: string
|
|
11018
|
+
/**
|
|
11019
|
+
* Absent for a caller who cannot view the projection's runs.
|
|
11020
|
+
*/
|
|
11021
|
+
projectionRunId?: string
|
|
11022
|
+
/**
|
|
11023
|
+
* The dataset version applied. Absent for a caller who cannot view the dataset.
|
|
11024
|
+
*/
|
|
11025
|
+
datasetVersion?: {
|
|
11026
|
+
datasetId: string
|
|
11027
|
+
versionId: string
|
|
11028
|
+
}
|
|
11029
|
+
/**
|
|
11030
|
+
* Upstream columns that decide which rows the version holds, which every value depends on. Absent when the version records no lineage or the caller cannot view it.
|
|
11031
|
+
*/
|
|
11032
|
+
rowOrigins?: Array<{
|
|
11033
|
+
datasetId: string
|
|
11034
|
+
column: string
|
|
11035
|
+
}>
|
|
11036
|
+
}
|
|
11037
|
+
| {
|
|
11038
|
+
kind: "edit"
|
|
11039
|
+
/**
|
|
11040
|
+
* Null when the commits made at that instant cannot be told apart.
|
|
11041
|
+
*/
|
|
11042
|
+
commitId: string | null
|
|
11043
|
+
committedAt: string
|
|
11044
|
+
/**
|
|
11045
|
+
* Principal on whose behalf the commit ran; absent for automatic or anonymous work.
|
|
11046
|
+
*/
|
|
11047
|
+
requestedBy?: {
|
|
11048
|
+
type: "user" | "serviceAccount"
|
|
11049
|
+
id: string
|
|
11050
|
+
}
|
|
11051
|
+
executor?:
|
|
11052
|
+
| {
|
|
11053
|
+
type: "request"
|
|
11054
|
+
requestId: string
|
|
11055
|
+
}
|
|
11056
|
+
| {
|
|
11057
|
+
type: "primitive"
|
|
11058
|
+
kind:
|
|
11059
|
+
| "action"
|
|
11060
|
+
| "pipeline"
|
|
11061
|
+
| "projection"
|
|
11062
|
+
| "rule"
|
|
11063
|
+
| "sync"
|
|
11064
|
+
| "webhook"
|
|
11065
|
+
| "workflow"
|
|
11066
|
+
id: string
|
|
11067
|
+
runId: string
|
|
11068
|
+
}
|
|
11069
|
+
| {
|
|
11070
|
+
type: "agent"
|
|
11071
|
+
runId: string
|
|
11072
|
+
}
|
|
11073
|
+
| {
|
|
11074
|
+
type: "kernel"
|
|
11075
|
+
operation:
|
|
11076
|
+
| {
|
|
11077
|
+
type: "ontology.recover"
|
|
11078
|
+
recoveryId: string
|
|
11079
|
+
}
|
|
11080
|
+
| {
|
|
11081
|
+
type: "ontology.indexVectors"
|
|
11082
|
+
indexingId: string
|
|
11083
|
+
}
|
|
11084
|
+
}
|
|
11085
|
+
/**
|
|
11086
|
+
* Absent for a direct write, and for an Action run the caller cannot view.
|
|
11087
|
+
*/
|
|
11088
|
+
action?: {
|
|
11089
|
+
actionId: string
|
|
11090
|
+
runId: string
|
|
11091
|
+
}
|
|
11092
|
+
}
|
|
11093
|
+
| {
|
|
11094
|
+
kind: "telemetry"
|
|
11095
|
+
commitId: string
|
|
11096
|
+
committedAt: string
|
|
11097
|
+
projectionId?: string
|
|
11098
|
+
/**
|
|
11099
|
+
* Principal on whose behalf the commit ran; absent for automatic or anonymous work.
|
|
11100
|
+
*/
|
|
11101
|
+
requestedBy?: {
|
|
11102
|
+
type: "user" | "serviceAccount"
|
|
11103
|
+
id: string
|
|
11104
|
+
}
|
|
11105
|
+
executor?:
|
|
11106
|
+
| {
|
|
11107
|
+
type: "request"
|
|
11108
|
+
requestId: string
|
|
11109
|
+
}
|
|
11110
|
+
| {
|
|
11111
|
+
type: "primitive"
|
|
11112
|
+
kind:
|
|
11113
|
+
| "action"
|
|
11114
|
+
| "pipeline"
|
|
11115
|
+
| "projection"
|
|
11116
|
+
| "rule"
|
|
11117
|
+
| "sync"
|
|
11118
|
+
| "webhook"
|
|
11119
|
+
| "workflow"
|
|
11120
|
+
id: string
|
|
11121
|
+
runId: string
|
|
11122
|
+
}
|
|
11123
|
+
| {
|
|
11124
|
+
type: "agent"
|
|
11125
|
+
runId: string
|
|
11126
|
+
}
|
|
11127
|
+
| {
|
|
11128
|
+
type: "kernel"
|
|
11129
|
+
operation:
|
|
11130
|
+
| {
|
|
11131
|
+
type: "ontology.recover"
|
|
11132
|
+
recoveryId: string
|
|
11133
|
+
}
|
|
11134
|
+
| {
|
|
11135
|
+
type: "ontology.indexVectors"
|
|
11136
|
+
indexingId: string
|
|
11137
|
+
}
|
|
11138
|
+
}
|
|
11139
|
+
}
|
|
11140
|
+
| {
|
|
11141
|
+
kind: "identity"
|
|
11142
|
+
}
|
|
11143
|
+
}
|
|
11144
|
+
properties: {
|
|
10641
11145
|
[key: string]: {
|
|
10642
|
-
|
|
11146
|
+
/**
|
|
11147
|
+
* The source that decided the value: a key of `sources`.
|
|
11148
|
+
*/
|
|
11149
|
+
source: string
|
|
11150
|
+
column?: string
|
|
11151
|
+
origins?: Array<{
|
|
11152
|
+
datasetId: string
|
|
11153
|
+
column: string
|
|
11154
|
+
}>
|
|
11155
|
+
removed?: true
|
|
11156
|
+
at?: string
|
|
11157
|
+
replaced?: {
|
|
11158
|
+
source: string
|
|
11159
|
+
column?: string
|
|
11160
|
+
/**
|
|
11161
|
+
* Any JSON-compatible value.
|
|
11162
|
+
*/
|
|
11163
|
+
value?:
|
|
11164
|
+
| string
|
|
11165
|
+
| number
|
|
11166
|
+
| boolean
|
|
11167
|
+
| Array<unknown>
|
|
11168
|
+
| {
|
|
11169
|
+
[key: string]: unknown
|
|
11170
|
+
}
|
|
11171
|
+
| null
|
|
11172
|
+
}
|
|
11173
|
+
resolution?:
|
|
11174
|
+
| {
|
|
11175
|
+
strategy: "editsWin"
|
|
11176
|
+
}
|
|
11177
|
+
| {
|
|
11178
|
+
strategy: "mostRecent"
|
|
11179
|
+
sourceUpdatedAt: string
|
|
11180
|
+
editedAt?: string
|
|
11181
|
+
}
|
|
10643
11182
|
}
|
|
10644
11183
|
}
|
|
10645
|
-
|
|
10646
|
-
|
|
11184
|
+
/**
|
|
11185
|
+
* Steps left out because the caller cannot view them.
|
|
11186
|
+
*/
|
|
11187
|
+
restricted: number
|
|
10647
11188
|
}
|
|
10648
11189
|
}
|
|
10649
11190
|
|
|
10650
|
-
export type
|
|
11191
|
+
export type GetObjectLineageResponse = GetObjectLineageResponses[keyof GetObjectLineageResponses]
|
|
10651
11192
|
|
|
10652
11193
|
export type GetObjectByUniquePropertyData = {
|
|
10653
11194
|
body: {
|
|
@@ -10871,7 +11412,9 @@ export type RequestActionErrors = {
|
|
|
10871
11412
|
| "action.run_in_progress"
|
|
10872
11413
|
| "action.timeout"
|
|
10873
11414
|
| "agent.approval_authority_lost"
|
|
11415
|
+
| "agent.context_limit_exceeded"
|
|
10874
11416
|
| "agent.execution_failed"
|
|
11417
|
+
| "agent.step_limit_reached"
|
|
10875
11418
|
| "ai.usage_limit_exceeded"
|
|
10876
11419
|
| "ai.usage_limit_unavailable"
|
|
10877
11420
|
| "connector.adapter_invalid"
|
|
@@ -11857,7 +12400,23 @@ export type ListAgentThreadsResponses = {
|
|
|
11857
12400
|
| null
|
|
11858
12401
|
}
|
|
11859
12402
|
runsOn?: "computer"
|
|
11860
|
-
|
|
12403
|
+
computer?: {
|
|
12404
|
+
id: string
|
|
12405
|
+
name: string
|
|
12406
|
+
folder: string
|
|
12407
|
+
online: boolean
|
|
12408
|
+
}
|
|
12409
|
+
backgroundCommands?: Array<{
|
|
12410
|
+
threadId: string
|
|
12411
|
+
id: string
|
|
12412
|
+
command: string
|
|
12413
|
+
status: "running" | "exited" | "stopped"
|
|
12414
|
+
exitCode?: number
|
|
12415
|
+
startedAt: string
|
|
12416
|
+
endedAt?: string
|
|
12417
|
+
stopping?: boolean
|
|
12418
|
+
}>
|
|
12419
|
+
movedAt?: string
|
|
11861
12420
|
status: "active" | "archived"
|
|
11862
12421
|
activeRunId: string | null
|
|
11863
12422
|
lastMessageAt?: string
|
|
@@ -11890,6 +12449,11 @@ export type CreateAgentThreadData = {
|
|
|
11890
12449
|
| null
|
|
11891
12450
|
}
|
|
11892
12451
|
runsOn?: "computer"
|
|
12452
|
+
computer?: {
|
|
12453
|
+
id: string
|
|
12454
|
+
name: string
|
|
12455
|
+
folder: string
|
|
12456
|
+
}
|
|
11893
12457
|
}
|
|
11894
12458
|
path?: never
|
|
11895
12459
|
query?: never
|
|
@@ -11978,7 +12542,23 @@ export type CreateAgentThreadResponses = {
|
|
|
11978
12542
|
| null
|
|
11979
12543
|
}
|
|
11980
12544
|
runsOn?: "computer"
|
|
11981
|
-
|
|
12545
|
+
computer?: {
|
|
12546
|
+
id: string
|
|
12547
|
+
name: string
|
|
12548
|
+
folder: string
|
|
12549
|
+
online: boolean
|
|
12550
|
+
}
|
|
12551
|
+
backgroundCommands?: Array<{
|
|
12552
|
+
threadId: string
|
|
12553
|
+
id: string
|
|
12554
|
+
command: string
|
|
12555
|
+
status: "running" | "exited" | "stopped"
|
|
12556
|
+
exitCode?: number
|
|
12557
|
+
startedAt: string
|
|
12558
|
+
endedAt?: string
|
|
12559
|
+
stopping?: boolean
|
|
12560
|
+
}>
|
|
12561
|
+
movedAt?: string
|
|
11982
12562
|
status: "active" | "archived"
|
|
11983
12563
|
activeRunId: string | null
|
|
11984
12564
|
lastMessageAt?: string
|
|
@@ -12077,7 +12657,23 @@ export type GetAgentThreadResponses = {
|
|
|
12077
12657
|
| null
|
|
12078
12658
|
}
|
|
12079
12659
|
runsOn?: "computer"
|
|
12080
|
-
|
|
12660
|
+
computer?: {
|
|
12661
|
+
id: string
|
|
12662
|
+
name: string
|
|
12663
|
+
folder: string
|
|
12664
|
+
online: boolean
|
|
12665
|
+
}
|
|
12666
|
+
backgroundCommands?: Array<{
|
|
12667
|
+
threadId: string
|
|
12668
|
+
id: string
|
|
12669
|
+
command: string
|
|
12670
|
+
status: "running" | "exited" | "stopped"
|
|
12671
|
+
exitCode?: number
|
|
12672
|
+
startedAt: string
|
|
12673
|
+
endedAt?: string
|
|
12674
|
+
stopping?: boolean
|
|
12675
|
+
}>
|
|
12676
|
+
movedAt?: string
|
|
12081
12677
|
status: "active" | "archived"
|
|
12082
12678
|
activeRunId: string | null
|
|
12083
12679
|
lastMessageAt?: string
|
|
@@ -12201,7 +12797,23 @@ export type AddAgentThreadParticipantsResponses = {
|
|
|
12201
12797
|
| null
|
|
12202
12798
|
}
|
|
12203
12799
|
runsOn?: "computer"
|
|
12204
|
-
|
|
12800
|
+
computer?: {
|
|
12801
|
+
id: string
|
|
12802
|
+
name: string
|
|
12803
|
+
folder: string
|
|
12804
|
+
online: boolean
|
|
12805
|
+
}
|
|
12806
|
+
backgroundCommands?: Array<{
|
|
12807
|
+
threadId: string
|
|
12808
|
+
id: string
|
|
12809
|
+
command: string
|
|
12810
|
+
status: "running" | "exited" | "stopped"
|
|
12811
|
+
exitCode?: number
|
|
12812
|
+
startedAt: string
|
|
12813
|
+
endedAt?: string
|
|
12814
|
+
stopping?: boolean
|
|
12815
|
+
}>
|
|
12816
|
+
movedAt?: string
|
|
12205
12817
|
status: "active" | "archived"
|
|
12206
12818
|
activeRunId: string | null
|
|
12207
12819
|
lastMessageAt?: string
|
|
@@ -12365,7 +12977,23 @@ export type ForkAgentThreadResponses = {
|
|
|
12365
12977
|
| null
|
|
12366
12978
|
}
|
|
12367
12979
|
runsOn?: "computer"
|
|
12368
|
-
|
|
12980
|
+
computer?: {
|
|
12981
|
+
id: string
|
|
12982
|
+
name: string
|
|
12983
|
+
folder: string
|
|
12984
|
+
online: boolean
|
|
12985
|
+
}
|
|
12986
|
+
backgroundCommands?: Array<{
|
|
12987
|
+
threadId: string
|
|
12988
|
+
id: string
|
|
12989
|
+
command: string
|
|
12990
|
+
status: "running" | "exited" | "stopped"
|
|
12991
|
+
exitCode?: number
|
|
12992
|
+
startedAt: string
|
|
12993
|
+
endedAt?: string
|
|
12994
|
+
stopping?: boolean
|
|
12995
|
+
}>
|
|
12996
|
+
movedAt?: string
|
|
12369
12997
|
status: "active" | "archived"
|
|
12370
12998
|
activeRunId: string | null
|
|
12371
12999
|
lastMessageAt?: string
|
|
@@ -12475,7 +13103,23 @@ export type RecreateAgentThreadSandboxResponses = {
|
|
|
12475
13103
|
| null
|
|
12476
13104
|
}
|
|
12477
13105
|
runsOn?: "computer"
|
|
12478
|
-
|
|
13106
|
+
computer?: {
|
|
13107
|
+
id: string
|
|
13108
|
+
name: string
|
|
13109
|
+
folder: string
|
|
13110
|
+
online: boolean
|
|
13111
|
+
}
|
|
13112
|
+
backgroundCommands?: Array<{
|
|
13113
|
+
threadId: string
|
|
13114
|
+
id: string
|
|
13115
|
+
command: string
|
|
13116
|
+
status: "running" | "exited" | "stopped"
|
|
13117
|
+
exitCode?: number
|
|
13118
|
+
startedAt: string
|
|
13119
|
+
endedAt?: string
|
|
13120
|
+
stopping?: boolean
|
|
13121
|
+
}>
|
|
13122
|
+
movedAt?: string
|
|
12479
13123
|
status: "active" | "archived"
|
|
12480
13124
|
activeRunId: string | null
|
|
12481
13125
|
lastMessageAt?: string
|
|
@@ -12628,7 +13272,9 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
12628
13272
|
| "action.run_in_progress"
|
|
12629
13273
|
| "action.timeout"
|
|
12630
13274
|
| "agent.approval_authority_lost"
|
|
13275
|
+
| "agent.context_limit_exceeded"
|
|
12631
13276
|
| "agent.execution_failed"
|
|
13277
|
+
| "agent.step_limit_reached"
|
|
12632
13278
|
| "ai.usage_limit_exceeded"
|
|
12633
13279
|
| "ai.usage_limit_unavailable"
|
|
12634
13280
|
| "connector.adapter_invalid"
|
|
@@ -12829,6 +13475,17 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
12829
13475
|
[key: string]: unknown
|
|
12830
13476
|
}
|
|
12831
13477
|
| null
|
|
13478
|
+
outputFile?: {
|
|
13479
|
+
fileRef: {
|
|
13480
|
+
blobId: string
|
|
13481
|
+
digest: string
|
|
13482
|
+
sizeBytes: number
|
|
13483
|
+
fileName?: string
|
|
13484
|
+
mediaType?: string
|
|
13485
|
+
logicalPath?: string
|
|
13486
|
+
}
|
|
13487
|
+
path: string
|
|
13488
|
+
}
|
|
12832
13489
|
}
|
|
12833
13490
|
| {
|
|
12834
13491
|
type: "tool-call"
|
|
@@ -12881,6 +13538,10 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
12881
13538
|
}>
|
|
12882
13539
|
compaction?: {
|
|
12883
13540
|
checkpointId: string
|
|
13541
|
+
/**
|
|
13542
|
+
* `threshold`: the conversation reached its model's limit, or came back large after its cache expired. `overflow`: the provider refused a request as too long, and the turn went on condensed.
|
|
13543
|
+
*/
|
|
13544
|
+
reason: "threshold" | "overflow"
|
|
12884
13545
|
summary: string
|
|
12885
13546
|
createdAt: string
|
|
12886
13547
|
}
|
|
@@ -13146,7 +13807,9 @@ export type PostAgentThreadMessageResponses = {
|
|
|
13146
13807
|
code:
|
|
13147
13808
|
| "internal.unexpected"
|
|
13148
13809
|
| "runtime.cancelled"
|
|
13810
|
+
| "agent.context_limit_exceeded"
|
|
13149
13811
|
| "agent.execution_failed"
|
|
13812
|
+
| "agent.step_limit_reached"
|
|
13150
13813
|
| "ai.usage_limit_exceeded"
|
|
13151
13814
|
| "ai.usage_limit_unavailable"
|
|
13152
13815
|
message: string
|
|
@@ -13431,7 +14094,9 @@ export type CancelAgentRunResponses = {
|
|
|
13431
14094
|
code:
|
|
13432
14095
|
| "internal.unexpected"
|
|
13433
14096
|
| "runtime.cancelled"
|
|
14097
|
+
| "agent.context_limit_exceeded"
|
|
13434
14098
|
| "agent.execution_failed"
|
|
14099
|
+
| "agent.step_limit_reached"
|
|
13435
14100
|
| "ai.usage_limit_exceeded"
|
|
13436
14101
|
| "ai.usage_limit_unavailable"
|
|
13437
14102
|
message: string
|
|
@@ -13633,7 +14298,9 @@ export type RetryAgentRunResponses = {
|
|
|
13633
14298
|
code:
|
|
13634
14299
|
| "internal.unexpected"
|
|
13635
14300
|
| "runtime.cancelled"
|
|
14301
|
+
| "agent.context_limit_exceeded"
|
|
13636
14302
|
| "agent.execution_failed"
|
|
14303
|
+
| "agent.step_limit_reached"
|
|
13637
14304
|
| "ai.usage_limit_exceeded"
|
|
13638
14305
|
| "ai.usage_limit_unavailable"
|
|
13639
14306
|
message: string
|
|
@@ -13666,6 +14333,99 @@ export type RetryAgentRunResponses = {
|
|
|
13666
14333
|
|
|
13667
14334
|
export type RetryAgentRunResponse = RetryAgentRunResponses[keyof RetryAgentRunResponses]
|
|
13668
14335
|
|
|
14336
|
+
export type GetAgentThreadContextData = {
|
|
14337
|
+
body?: never
|
|
14338
|
+
path: {
|
|
14339
|
+
threadId: string
|
|
14340
|
+
}
|
|
14341
|
+
query?: {
|
|
14342
|
+
provider?: string
|
|
14343
|
+
modelId?: string
|
|
14344
|
+
}
|
|
14345
|
+
url: "/api/agent-threads/{threadId}/context"
|
|
14346
|
+
}
|
|
14347
|
+
|
|
14348
|
+
export type GetAgentThreadContextErrors = {
|
|
14349
|
+
/**
|
|
14350
|
+
* Response for status 400
|
|
14351
|
+
*/
|
|
14352
|
+
400: {
|
|
14353
|
+
error: string
|
|
14354
|
+
}
|
|
14355
|
+
/**
|
|
14356
|
+
* Response for status 404
|
|
14357
|
+
*/
|
|
14358
|
+
404: {
|
|
14359
|
+
error: string
|
|
14360
|
+
}
|
|
14361
|
+
/**
|
|
14362
|
+
* Response for status 409
|
|
14363
|
+
*/
|
|
14364
|
+
409: {
|
|
14365
|
+
error: string
|
|
14366
|
+
code?: string
|
|
14367
|
+
}
|
|
14368
|
+
/**
|
|
14369
|
+
* Response for status 501
|
|
14370
|
+
*/
|
|
14371
|
+
501: {
|
|
14372
|
+
error: string
|
|
14373
|
+
}
|
|
14374
|
+
}
|
|
14375
|
+
|
|
14376
|
+
export type GetAgentThreadContextError =
|
|
14377
|
+
GetAgentThreadContextErrors[keyof GetAgentThreadContextErrors]
|
|
14378
|
+
|
|
14379
|
+
export type GetAgentThreadContextResponses = {
|
|
14380
|
+
/**
|
|
14381
|
+
* Response for status 200
|
|
14382
|
+
*/
|
|
14383
|
+
200: {
|
|
14384
|
+
model: {
|
|
14385
|
+
provider: string
|
|
14386
|
+
modelId: string
|
|
14387
|
+
}
|
|
14388
|
+
windowTokens: number
|
|
14389
|
+
limitTokens: number
|
|
14390
|
+
usedTokens?: number
|
|
14391
|
+
parts?: Array<{
|
|
14392
|
+
/**
|
|
14393
|
+
* `system`: Sixb's own prompt. `instructions`: the project's SIXB.md. `memory`, `skills`, `ontology`: their index in the prompt and the files the agent read. `tools`: the tool definitions. `summary`: what a condensed conversation keeps of its earlier part. `messages`: the conversation's text. `toolResults`: every other tool result. `files`: attachments and images.
|
|
14394
|
+
*/
|
|
14395
|
+
part:
|
|
14396
|
+
| "system"
|
|
14397
|
+
| "instructions"
|
|
14398
|
+
| "memory"
|
|
14399
|
+
| "skills"
|
|
14400
|
+
| "ontology"
|
|
14401
|
+
| "tools"
|
|
14402
|
+
| "summary"
|
|
14403
|
+
| "messages"
|
|
14404
|
+
| "toolResults"
|
|
14405
|
+
| "files"
|
|
14406
|
+
tokens: number
|
|
14407
|
+
}>
|
|
14408
|
+
lastCall?: {
|
|
14409
|
+
inputTokens: number
|
|
14410
|
+
outputTokens?: number
|
|
14411
|
+
cacheReadInputTokens?: number
|
|
14412
|
+
occurredAt: string
|
|
14413
|
+
}
|
|
14414
|
+
lastCompaction?: {
|
|
14415
|
+
/**
|
|
14416
|
+
* `threshold`: the conversation reached its model's limit, or came back large after its cache expired. `overflow`: the provider refused a request as too long, and the turn went on condensed.
|
|
14417
|
+
*/
|
|
14418
|
+
reason: "threshold" | "overflow"
|
|
14419
|
+
createdAt: string
|
|
14420
|
+
estimatedInputTokensBefore: number
|
|
14421
|
+
estimatedInputTokensAfter: number
|
|
14422
|
+
}
|
|
14423
|
+
}
|
|
14424
|
+
}
|
|
14425
|
+
|
|
14426
|
+
export type GetAgentThreadContextResponse =
|
|
14427
|
+
GetAgentThreadContextResponses[keyof GetAgentThreadContextResponses]
|
|
14428
|
+
|
|
13669
14429
|
export type ListAgentThreadRunsData = {
|
|
13670
14430
|
body?: never
|
|
13671
14431
|
path: {
|
|
@@ -13802,7 +14562,9 @@ export type ListAgentThreadRunsResponses = {
|
|
|
13802
14562
|
code:
|
|
13803
14563
|
| "internal.unexpected"
|
|
13804
14564
|
| "runtime.cancelled"
|
|
14565
|
+
| "agent.context_limit_exceeded"
|
|
13805
14566
|
| "agent.execution_failed"
|
|
14567
|
+
| "agent.step_limit_reached"
|
|
13806
14568
|
| "ai.usage_limit_exceeded"
|
|
13807
14569
|
| "ai.usage_limit_unavailable"
|
|
13808
14570
|
message: string
|
|
@@ -13968,7 +14730,9 @@ export type GetAgentRunResponses = {
|
|
|
13968
14730
|
code:
|
|
13969
14731
|
| "internal.unexpected"
|
|
13970
14732
|
| "runtime.cancelled"
|
|
14733
|
+
| "agent.context_limit_exceeded"
|
|
13971
14734
|
| "agent.execution_failed"
|
|
14735
|
+
| "agent.step_limit_reached"
|
|
13972
14736
|
| "ai.usage_limit_exceeded"
|
|
13973
14737
|
| "ai.usage_limit_unavailable"
|
|
13974
14738
|
message: string
|
|
@@ -14146,7 +14910,9 @@ export type CancelAgentRunByIdResponses = {
|
|
|
14146
14910
|
code:
|
|
14147
14911
|
| "internal.unexpected"
|
|
14148
14912
|
| "runtime.cancelled"
|
|
14913
|
+
| "agent.context_limit_exceeded"
|
|
14149
14914
|
| "agent.execution_failed"
|
|
14915
|
+
| "agent.step_limit_reached"
|
|
14150
14916
|
| "ai.usage_limit_exceeded"
|
|
14151
14917
|
| "ai.usage_limit_unavailable"
|
|
14152
14918
|
message: string
|
|
@@ -14330,9 +15096,145 @@ export type HeadAgentChildFileContentResponses = {
|
|
|
14330
15096
|
206: unknown
|
|
14331
15097
|
}
|
|
14332
15098
|
|
|
14333
|
-
export type
|
|
15099
|
+
export type MoveAgentThreadToCloudData = {
|
|
15100
|
+
body?: never
|
|
15101
|
+
path: {
|
|
15102
|
+
threadId: string
|
|
15103
|
+
}
|
|
15104
|
+
query?: never
|
|
15105
|
+
url: "/api/agent-threads/{threadId}/computer"
|
|
15106
|
+
}
|
|
15107
|
+
|
|
15108
|
+
export type MoveAgentThreadToCloudErrors = {
|
|
15109
|
+
/**
|
|
15110
|
+
* Response for status 400
|
|
15111
|
+
*/
|
|
15112
|
+
400: {
|
|
15113
|
+
error: string
|
|
15114
|
+
code?: string
|
|
15115
|
+
}
|
|
15116
|
+
/**
|
|
15117
|
+
* Response for status 403
|
|
15118
|
+
*/
|
|
15119
|
+
403: {
|
|
15120
|
+
error: string
|
|
15121
|
+
code?: string
|
|
15122
|
+
}
|
|
15123
|
+
/**
|
|
15124
|
+
* Response for status 404
|
|
15125
|
+
*/
|
|
15126
|
+
404: {
|
|
15127
|
+
error: string
|
|
15128
|
+
code?: string
|
|
15129
|
+
}
|
|
15130
|
+
/**
|
|
15131
|
+
* Response for status 409
|
|
15132
|
+
*/
|
|
15133
|
+
409: {
|
|
15134
|
+
error: string
|
|
15135
|
+
code?: string
|
|
15136
|
+
}
|
|
15137
|
+
/**
|
|
15138
|
+
* Response for status 501
|
|
15139
|
+
*/
|
|
15140
|
+
501: {
|
|
15141
|
+
error: string
|
|
15142
|
+
}
|
|
15143
|
+
}
|
|
15144
|
+
|
|
15145
|
+
export type MoveAgentThreadToCloudError =
|
|
15146
|
+
MoveAgentThreadToCloudErrors[keyof MoveAgentThreadToCloudErrors]
|
|
15147
|
+
|
|
15148
|
+
export type MoveAgentThreadToCloudResponses = {
|
|
15149
|
+
/**
|
|
15150
|
+
* Response for status 200
|
|
15151
|
+
*/
|
|
15152
|
+
200: {
|
|
15153
|
+
sandboxState?: {
|
|
15154
|
+
name: string
|
|
15155
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable"
|
|
15156
|
+
initialized: boolean
|
|
15157
|
+
}
|
|
15158
|
+
id: string
|
|
15159
|
+
projectId: string
|
|
15160
|
+
kind: "conversation" | "subagent"
|
|
15161
|
+
parent?: {
|
|
15162
|
+
threadId: string
|
|
15163
|
+
spawnedBy: string
|
|
15164
|
+
key: string
|
|
15165
|
+
}
|
|
15166
|
+
ownerPrincipal: {
|
|
15167
|
+
type: "user" | "serviceAccount" | "system"
|
|
15168
|
+
id: string
|
|
15169
|
+
}
|
|
15170
|
+
owner: {
|
|
15171
|
+
type: "user" | "serviceAccount" | "system"
|
|
15172
|
+
id: string
|
|
15173
|
+
displayName?: string
|
|
15174
|
+
}
|
|
15175
|
+
participants: Array<{
|
|
15176
|
+
principal: {
|
|
15177
|
+
type: "user"
|
|
15178
|
+
id: string
|
|
15179
|
+
displayName?: string
|
|
15180
|
+
}
|
|
15181
|
+
addedAt: string
|
|
15182
|
+
addedBy: {
|
|
15183
|
+
type: "user" | "serviceAccount" | "system"
|
|
15184
|
+
id: string
|
|
15185
|
+
}
|
|
15186
|
+
}>
|
|
15187
|
+
title?: string
|
|
15188
|
+
sandboxParams?: {
|
|
15189
|
+
[key: string]:
|
|
15190
|
+
| string
|
|
15191
|
+
| number
|
|
15192
|
+
| boolean
|
|
15193
|
+
| Array<unknown>
|
|
15194
|
+
| {
|
|
15195
|
+
[key: string]: unknown
|
|
15196
|
+
}
|
|
15197
|
+
| null
|
|
15198
|
+
}
|
|
15199
|
+
runsOn?: "computer"
|
|
15200
|
+
computer?: {
|
|
15201
|
+
id: string
|
|
15202
|
+
name: string
|
|
15203
|
+
folder: string
|
|
15204
|
+
online: boolean
|
|
15205
|
+
}
|
|
15206
|
+
backgroundCommands?: Array<{
|
|
15207
|
+
threadId: string
|
|
15208
|
+
id: string
|
|
15209
|
+
command: string
|
|
15210
|
+
status: "running" | "exited" | "stopped"
|
|
15211
|
+
exitCode?: number
|
|
15212
|
+
startedAt: string
|
|
15213
|
+
endedAt?: string
|
|
15214
|
+
stopping?: boolean
|
|
15215
|
+
}>
|
|
15216
|
+
movedAt?: string
|
|
15217
|
+
status: "active" | "archived"
|
|
15218
|
+
activeRunId: string | null
|
|
15219
|
+
lastMessageAt?: string
|
|
15220
|
+
messageCount: number
|
|
15221
|
+
createdAt: string
|
|
15222
|
+
updatedAt: string
|
|
15223
|
+
approvalMode?: "manual" | "accept-edits" | "auto"
|
|
15224
|
+
approvalModeSource?: "thread" | "default" | "fallback" | "run"
|
|
15225
|
+
}
|
|
15226
|
+
}
|
|
15227
|
+
|
|
15228
|
+
export type MoveAgentThreadToCloudResponse =
|
|
15229
|
+
MoveAgentThreadToCloudResponses[keyof MoveAgentThreadToCloudResponses]
|
|
15230
|
+
|
|
15231
|
+
export type MoveAgentThreadToComputerData = {
|
|
14334
15232
|
body: {
|
|
14335
|
-
|
|
15233
|
+
computer: {
|
|
15234
|
+
id: string
|
|
15235
|
+
name: string
|
|
15236
|
+
folder: string
|
|
15237
|
+
}
|
|
14336
15238
|
}
|
|
14337
15239
|
path: {
|
|
14338
15240
|
threadId: string
|
|
@@ -14363,6 +15265,13 @@ export type MoveAgentThreadToComputerErrors = {
|
|
|
14363
15265
|
error: string
|
|
14364
15266
|
code?: string
|
|
14365
15267
|
}
|
|
15268
|
+
/**
|
|
15269
|
+
* Response for status 409
|
|
15270
|
+
*/
|
|
15271
|
+
409: {
|
|
15272
|
+
error: string
|
|
15273
|
+
code?: string
|
|
15274
|
+
}
|
|
14366
15275
|
/**
|
|
14367
15276
|
* Response for status 501
|
|
14368
15277
|
*/
|
|
@@ -14426,7 +15335,23 @@ export type MoveAgentThreadToComputerResponses = {
|
|
|
14426
15335
|
| null
|
|
14427
15336
|
}
|
|
14428
15337
|
runsOn?: "computer"
|
|
14429
|
-
|
|
15338
|
+
computer?: {
|
|
15339
|
+
id: string
|
|
15340
|
+
name: string
|
|
15341
|
+
folder: string
|
|
15342
|
+
online: boolean
|
|
15343
|
+
}
|
|
15344
|
+
backgroundCommands?: Array<{
|
|
15345
|
+
threadId: string
|
|
15346
|
+
id: string
|
|
15347
|
+
command: string
|
|
15348
|
+
status: "running" | "exited" | "stopped"
|
|
15349
|
+
exitCode?: number
|
|
15350
|
+
startedAt: string
|
|
15351
|
+
endedAt?: string
|
|
15352
|
+
stopping?: boolean
|
|
15353
|
+
}>
|
|
15354
|
+
movedAt?: string
|
|
14430
15355
|
status: "active" | "archived"
|
|
14431
15356
|
activeRunId: string | null
|
|
14432
15357
|
lastMessageAt?: string
|
|
@@ -14441,6 +15366,167 @@ export type MoveAgentThreadToComputerResponses = {
|
|
|
14441
15366
|
export type MoveAgentThreadToComputerResponse =
|
|
14442
15367
|
MoveAgentThreadToComputerResponses[keyof MoveAgentThreadToComputerResponses]
|
|
14443
15368
|
|
|
15369
|
+
export type ReleaseAgentComputerSessionData = {
|
|
15370
|
+
body?: never
|
|
15371
|
+
path: {
|
|
15372
|
+
sessionId: string
|
|
15373
|
+
}
|
|
15374
|
+
query?: never
|
|
15375
|
+
url: "/api/agent-computers/sessions/{sessionId}"
|
|
15376
|
+
}
|
|
15377
|
+
|
|
15378
|
+
export type ReleaseAgentComputerSessionErrors = {
|
|
15379
|
+
/**
|
|
15380
|
+
* Response for status 501
|
|
15381
|
+
*/
|
|
15382
|
+
501: {
|
|
15383
|
+
error: string
|
|
15384
|
+
}
|
|
15385
|
+
}
|
|
15386
|
+
|
|
15387
|
+
export type ReleaseAgentComputerSessionError =
|
|
15388
|
+
ReleaseAgentComputerSessionErrors[keyof ReleaseAgentComputerSessionErrors]
|
|
15389
|
+
|
|
15390
|
+
export type ReleaseAgentComputerSessionResponses = {
|
|
15391
|
+
/**
|
|
15392
|
+
* Response for status 204
|
|
15393
|
+
*/
|
|
15394
|
+
204: unknown
|
|
15395
|
+
}
|
|
15396
|
+
|
|
15397
|
+
export type HoldAgentComputerSessionData = {
|
|
15398
|
+
body: {
|
|
15399
|
+
computer: {
|
|
15400
|
+
id: string
|
|
15401
|
+
name: string
|
|
15402
|
+
folder: string
|
|
15403
|
+
}
|
|
15404
|
+
backgroundCommands?: Array<{
|
|
15405
|
+
threadId: string
|
|
15406
|
+
id: string
|
|
15407
|
+
command: string
|
|
15408
|
+
status: "running" | "exited" | "stopped"
|
|
15409
|
+
exitCode?: number
|
|
15410
|
+
startedAt: string
|
|
15411
|
+
endedAt?: string
|
|
15412
|
+
}>
|
|
15413
|
+
}
|
|
15414
|
+
path: {
|
|
15415
|
+
sessionId: string
|
|
15416
|
+
}
|
|
15417
|
+
query?: never
|
|
15418
|
+
url: "/api/agent-computers/sessions/{sessionId}"
|
|
15419
|
+
}
|
|
15420
|
+
|
|
15421
|
+
export type HoldAgentComputerSessionErrors = {
|
|
15422
|
+
/**
|
|
15423
|
+
* Response for status 400
|
|
15424
|
+
*/
|
|
15425
|
+
400: {
|
|
15426
|
+
error: string
|
|
15427
|
+
code?: string
|
|
15428
|
+
}
|
|
15429
|
+
/**
|
|
15430
|
+
* Response for status 429
|
|
15431
|
+
*/
|
|
15432
|
+
429: {
|
|
15433
|
+
error: string
|
|
15434
|
+
}
|
|
15435
|
+
/**
|
|
15436
|
+
* Response for status 501
|
|
15437
|
+
*/
|
|
15438
|
+
501: {
|
|
15439
|
+
error: string
|
|
15440
|
+
}
|
|
15441
|
+
}
|
|
15442
|
+
|
|
15443
|
+
export type HoldAgentComputerSessionError =
|
|
15444
|
+
HoldAgentComputerSessionErrors[keyof HoldAgentComputerSessionErrors]
|
|
15445
|
+
|
|
15446
|
+
export type HoldAgentComputerSessionResponses = {
|
|
15447
|
+
/**
|
|
15448
|
+
* Response for status 200
|
|
15449
|
+
*/
|
|
15450
|
+
200: {
|
|
15451
|
+
expiresAt: string
|
|
15452
|
+
waiting: Array<string>
|
|
15453
|
+
stop?: Array<{
|
|
15454
|
+
threadId: string
|
|
15455
|
+
id: string
|
|
15456
|
+
startedAt: string
|
|
15457
|
+
}>
|
|
15458
|
+
}
|
|
15459
|
+
}
|
|
15460
|
+
|
|
15461
|
+
export type HoldAgentComputerSessionResponse =
|
|
15462
|
+
HoldAgentComputerSessionResponses[keyof HoldAgentComputerSessionResponses]
|
|
15463
|
+
|
|
15464
|
+
export type StopAgentBackgroundCommandData = {
|
|
15465
|
+
body: {
|
|
15466
|
+
startedAt: string
|
|
15467
|
+
}
|
|
15468
|
+
path: {
|
|
15469
|
+
threadId: string
|
|
15470
|
+
commandId: string
|
|
15471
|
+
}
|
|
15472
|
+
query?: never
|
|
15473
|
+
url: "/api/agent-threads/{threadId}/background-commands/{commandId}/stop"
|
|
15474
|
+
}
|
|
15475
|
+
|
|
15476
|
+
export type StopAgentBackgroundCommandErrors = {
|
|
15477
|
+
/**
|
|
15478
|
+
* Response for status 400
|
|
15479
|
+
*/
|
|
15480
|
+
400: {
|
|
15481
|
+
error: string
|
|
15482
|
+
code?: string
|
|
15483
|
+
}
|
|
15484
|
+
/**
|
|
15485
|
+
* Response for status 403
|
|
15486
|
+
*/
|
|
15487
|
+
403: {
|
|
15488
|
+
error: string
|
|
15489
|
+
code?: string
|
|
15490
|
+
}
|
|
15491
|
+
/**
|
|
15492
|
+
* Response for status 404
|
|
15493
|
+
*/
|
|
15494
|
+
404: {
|
|
15495
|
+
error: string
|
|
15496
|
+
code?: string
|
|
15497
|
+
}
|
|
15498
|
+
/**
|
|
15499
|
+
* Response for status 501
|
|
15500
|
+
*/
|
|
15501
|
+
501: {
|
|
15502
|
+
error: string
|
|
15503
|
+
}
|
|
15504
|
+
}
|
|
15505
|
+
|
|
15506
|
+
export type StopAgentBackgroundCommandError =
|
|
15507
|
+
StopAgentBackgroundCommandErrors[keyof StopAgentBackgroundCommandErrors]
|
|
15508
|
+
|
|
15509
|
+
export type StopAgentBackgroundCommandResponses = {
|
|
15510
|
+
/**
|
|
15511
|
+
* Response for status 202
|
|
15512
|
+
*/
|
|
15513
|
+
202: {
|
|
15514
|
+
command: {
|
|
15515
|
+
threadId: string
|
|
15516
|
+
id: string
|
|
15517
|
+
command: string
|
|
15518
|
+
status: "running" | "exited" | "stopped"
|
|
15519
|
+
exitCode?: number
|
|
15520
|
+
startedAt: string
|
|
15521
|
+
endedAt?: string
|
|
15522
|
+
stopping?: boolean
|
|
15523
|
+
}
|
|
15524
|
+
}
|
|
15525
|
+
}
|
|
15526
|
+
|
|
15527
|
+
export type StopAgentBackgroundCommandResponse =
|
|
15528
|
+
StopAgentBackgroundCommandResponses[keyof StopAgentBackgroundCommandResponses]
|
|
15529
|
+
|
|
14444
15530
|
export type GetAgentPreferencesData = {
|
|
14445
15531
|
body?: never
|
|
14446
15532
|
path?: never
|
|
@@ -14623,7 +15709,23 @@ export type SetAgentThreadApprovalModeResponses = {
|
|
|
14623
15709
|
| null
|
|
14624
15710
|
}
|
|
14625
15711
|
runsOn?: "computer"
|
|
14626
|
-
|
|
15712
|
+
computer?: {
|
|
15713
|
+
id: string
|
|
15714
|
+
name: string
|
|
15715
|
+
folder: string
|
|
15716
|
+
online: boolean
|
|
15717
|
+
}
|
|
15718
|
+
backgroundCommands?: Array<{
|
|
15719
|
+
threadId: string
|
|
15720
|
+
id: string
|
|
15721
|
+
command: string
|
|
15722
|
+
status: "running" | "exited" | "stopped"
|
|
15723
|
+
exitCode?: number
|
|
15724
|
+
startedAt: string
|
|
15725
|
+
endedAt?: string
|
|
15726
|
+
stopping?: boolean
|
|
15727
|
+
}>
|
|
15728
|
+
movedAt?: string
|
|
14627
15729
|
status: "active" | "archived"
|
|
14628
15730
|
activeRunId: string | null
|
|
14629
15731
|
lastMessageAt?: string
|
|
@@ -14788,7 +15890,9 @@ export type ListAgentThreadApprovalsResponses = {
|
|
|
14788
15890
|
| "action.run_in_progress"
|
|
14789
15891
|
| "action.timeout"
|
|
14790
15892
|
| "agent.approval_authority_lost"
|
|
15893
|
+
| "agent.context_limit_exceeded"
|
|
14791
15894
|
| "agent.execution_failed"
|
|
15895
|
+
| "agent.step_limit_reached"
|
|
14792
15896
|
| "ai.usage_limit_exceeded"
|
|
14793
15897
|
| "ai.usage_limit_unavailable"
|
|
14794
15898
|
| "connector.adapter_invalid"
|
|
@@ -15021,7 +16125,9 @@ export type DecideAgentApprovalResponses = {
|
|
|
15021
16125
|
| "action.run_in_progress"
|
|
15022
16126
|
| "action.timeout"
|
|
15023
16127
|
| "agent.approval_authority_lost"
|
|
16128
|
+
| "agent.context_limit_exceeded"
|
|
15024
16129
|
| "agent.execution_failed"
|
|
16130
|
+
| "agent.step_limit_reached"
|
|
15025
16131
|
| "ai.usage_limit_exceeded"
|
|
15026
16132
|
| "ai.usage_limit_unavailable"
|
|
15027
16133
|
| "connector.adapter_invalid"
|
|
@@ -15177,7 +16283,9 @@ export type DecideAgentApprovalResponses = {
|
|
|
15177
16283
|
code:
|
|
15178
16284
|
| "internal.unexpected"
|
|
15179
16285
|
| "runtime.cancelled"
|
|
16286
|
+
| "agent.context_limit_exceeded"
|
|
15180
16287
|
| "agent.execution_failed"
|
|
16288
|
+
| "agent.step_limit_reached"
|
|
15181
16289
|
| "ai.usage_limit_exceeded"
|
|
15182
16290
|
| "ai.usage_limit_unavailable"
|
|
15183
16291
|
message: string
|
|
@@ -15357,7 +16465,9 @@ export type ListAgentApprovalsResponses = {
|
|
|
15357
16465
|
| "action.run_in_progress"
|
|
15358
16466
|
| "action.timeout"
|
|
15359
16467
|
| "agent.approval_authority_lost"
|
|
16468
|
+
| "agent.context_limit_exceeded"
|
|
15360
16469
|
| "agent.execution_failed"
|
|
16470
|
+
| "agent.step_limit_reached"
|
|
15361
16471
|
| "ai.usage_limit_exceeded"
|
|
15362
16472
|
| "ai.usage_limit_unavailable"
|
|
15363
16473
|
| "connector.adapter_invalid"
|
|
@@ -15518,7 +16628,23 @@ export type GetObservedAgentThreadResponses = {
|
|
|
15518
16628
|
| null
|
|
15519
16629
|
}
|
|
15520
16630
|
runsOn?: "computer"
|
|
15521
|
-
|
|
16631
|
+
computer?: {
|
|
16632
|
+
id: string
|
|
16633
|
+
name: string
|
|
16634
|
+
folder: string
|
|
16635
|
+
online: boolean
|
|
16636
|
+
}
|
|
16637
|
+
backgroundCommands?: Array<{
|
|
16638
|
+
threadId: string
|
|
16639
|
+
id: string
|
|
16640
|
+
command: string
|
|
16641
|
+
status: "running" | "exited" | "stopped"
|
|
16642
|
+
exitCode?: number
|
|
16643
|
+
startedAt: string
|
|
16644
|
+
endedAt?: string
|
|
16645
|
+
stopping?: boolean
|
|
16646
|
+
}>
|
|
16647
|
+
movedAt?: string
|
|
15522
16648
|
status: "active" | "archived"
|
|
15523
16649
|
activeRunId: string | null
|
|
15524
16650
|
lastMessageAt?: string
|
|
@@ -15677,7 +16803,9 @@ export type ListObservedAgentThreadMessagesResponses = {
|
|
|
15677
16803
|
| "action.run_in_progress"
|
|
15678
16804
|
| "action.timeout"
|
|
15679
16805
|
| "agent.approval_authority_lost"
|
|
16806
|
+
| "agent.context_limit_exceeded"
|
|
15680
16807
|
| "agent.execution_failed"
|
|
16808
|
+
| "agent.step_limit_reached"
|
|
15681
16809
|
| "ai.usage_limit_exceeded"
|
|
15682
16810
|
| "ai.usage_limit_unavailable"
|
|
15683
16811
|
| "connector.adapter_invalid"
|
|
@@ -15878,6 +17006,17 @@ export type ListObservedAgentThreadMessagesResponses = {
|
|
|
15878
17006
|
[key: string]: unknown
|
|
15879
17007
|
}
|
|
15880
17008
|
| null
|
|
17009
|
+
outputFile?: {
|
|
17010
|
+
fileRef: {
|
|
17011
|
+
blobId: string
|
|
17012
|
+
digest: string
|
|
17013
|
+
sizeBytes: number
|
|
17014
|
+
fileName?: string
|
|
17015
|
+
mediaType?: string
|
|
17016
|
+
logicalPath?: string
|
|
17017
|
+
}
|
|
17018
|
+
path: string
|
|
17019
|
+
}
|
|
15881
17020
|
}
|
|
15882
17021
|
| {
|
|
15883
17022
|
type: "tool-call"
|
|
@@ -15930,6 +17069,10 @@ export type ListObservedAgentThreadMessagesResponses = {
|
|
|
15930
17069
|
}>
|
|
15931
17070
|
compaction?: {
|
|
15932
17071
|
checkpointId: string
|
|
17072
|
+
/**
|
|
17073
|
+
* `threshold`: the conversation reached its model's limit, or came back large after its cache expired. `overflow`: the provider refused a request as too long, and the turn went on condensed.
|
|
17074
|
+
*/
|
|
17075
|
+
reason: "threshold" | "overflow"
|
|
15933
17076
|
summary: string
|
|
15934
17077
|
createdAt: string
|
|
15935
17078
|
}
|
|
@@ -16158,7 +17301,9 @@ export type ListObservedAgentThreadRunsResponses = {
|
|
|
16158
17301
|
code:
|
|
16159
17302
|
| "internal.unexpected"
|
|
16160
17303
|
| "runtime.cancelled"
|
|
17304
|
+
| "agent.context_limit_exceeded"
|
|
16161
17305
|
| "agent.execution_failed"
|
|
17306
|
+
| "agent.step_limit_reached"
|
|
16162
17307
|
| "ai.usage_limit_exceeded"
|
|
16163
17308
|
| "ai.usage_limit_unavailable"
|
|
16164
17309
|
message: string
|
|
@@ -18912,7 +20057,7 @@ export type ListModelsResponses = {
|
|
|
18912
20057
|
|
|
18913
20058
|
export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses]
|
|
18914
20059
|
|
|
18915
|
-
export type
|
|
20060
|
+
export type GetObjectLinkLineageData = {
|
|
18916
20061
|
body?: never
|
|
18917
20062
|
path: {
|
|
18918
20063
|
objectTypeId: string
|
|
@@ -18923,22 +20068,16 @@ export type RemoveObjectLinkData = {
|
|
|
18923
20068
|
targetTypeId: string
|
|
18924
20069
|
targetId: string
|
|
18925
20070
|
}
|
|
18926
|
-
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
|
|
20071
|
+
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}/lineage"
|
|
18927
20072
|
}
|
|
18928
20073
|
|
|
18929
|
-
export type
|
|
20074
|
+
export type GetObjectLinkLineageErrors = {
|
|
18930
20075
|
/**
|
|
18931
20076
|
* Response for status 400
|
|
18932
20077
|
*/
|
|
18933
20078
|
400: {
|
|
18934
20079
|
error: string
|
|
18935
20080
|
}
|
|
18936
|
-
/**
|
|
18937
|
-
* Response for status 403
|
|
18938
|
-
*/
|
|
18939
|
-
403: {
|
|
18940
|
-
error: string
|
|
18941
|
-
}
|
|
18942
20081
|
/**
|
|
18943
20082
|
* Response for status 404
|
|
18944
20083
|
*/
|
|
@@ -18947,118 +20086,169 @@ export type RemoveObjectLinkErrors = {
|
|
|
18947
20086
|
}
|
|
18948
20087
|
}
|
|
18949
20088
|
|
|
18950
|
-
export type
|
|
20089
|
+
export type GetObjectLinkLineageError = GetObjectLinkLineageErrors[keyof GetObjectLinkLineageErrors]
|
|
18951
20090
|
|
|
18952
|
-
export type
|
|
20091
|
+
export type GetObjectLinkLineageResponses = {
|
|
18953
20092
|
/**
|
|
18954
20093
|
* Response for status 200
|
|
18955
20094
|
*/
|
|
18956
20095
|
200: {
|
|
18957
|
-
|
|
18958
|
-
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses]
|
|
18962
|
-
|
|
18963
|
-
export type UpsertObjectLinkData = {
|
|
18964
|
-
body: {
|
|
20096
|
+
sourceTypeId: string
|
|
20097
|
+
sourceId: string
|
|
20098
|
+
linkId: string
|
|
18965
20099
|
targetTypeId: string
|
|
18966
20100
|
targetId: string
|
|
18967
|
-
|
|
18968
|
-
|
|
20101
|
+
existence: {
|
|
20102
|
+
source: string
|
|
20103
|
+
columns?: Array<string>
|
|
20104
|
+
origins?: Array<{
|
|
20105
|
+
datasetId: string
|
|
20106
|
+
column: string
|
|
20107
|
+
}>
|
|
18969
20108
|
}
|
|
18970
|
-
|
|
18971
|
-
|
|
18972
|
-
|
|
18973
|
-
|
|
18974
|
-
|
|
18975
|
-
|
|
18976
|
-
|
|
18977
|
-
|
|
18978
|
-
|
|
18979
|
-
|
|
18980
|
-
|
|
18981
|
-
|
|
18982
|
-
|
|
18983
|
-
|
|
18984
|
-
|
|
18985
|
-
|
|
18986
|
-
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
|
|
19001
|
-
|
|
19002
|
-
|
|
19003
|
-
|
|
19004
|
-
|
|
19005
|
-
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
|
-
}
|
|
19011
|
-
|
|
19012
|
-
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
|
|
19057
|
-
|
|
20109
|
+
/**
|
|
20110
|
+
* Keyed `projection:<id>`, `commit:<id>`, `commit@<instant>` when the commit is unknown, `telemetry:<commitId>` and `identity`.
|
|
20111
|
+
*/
|
|
20112
|
+
sources: {
|
|
20113
|
+
[key: string]:
|
|
20114
|
+
| {
|
|
20115
|
+
kind: "projection"
|
|
20116
|
+
projectionId: string
|
|
20117
|
+
/**
|
|
20118
|
+
* Absent for a caller who cannot view the projection's runs.
|
|
20119
|
+
*/
|
|
20120
|
+
projectionRunId?: string
|
|
20121
|
+
/**
|
|
20122
|
+
* The dataset version applied. Absent for a caller who cannot view the dataset.
|
|
20123
|
+
*/
|
|
20124
|
+
datasetVersion?: {
|
|
20125
|
+
datasetId: string
|
|
20126
|
+
versionId: string
|
|
20127
|
+
}
|
|
20128
|
+
/**
|
|
20129
|
+
* Upstream columns that decide which rows the version holds, which every value depends on. Absent when the version records no lineage or the caller cannot view it.
|
|
20130
|
+
*/
|
|
20131
|
+
rowOrigins?: Array<{
|
|
20132
|
+
datasetId: string
|
|
20133
|
+
column: string
|
|
20134
|
+
}>
|
|
20135
|
+
}
|
|
20136
|
+
| {
|
|
20137
|
+
kind: "edit"
|
|
20138
|
+
/**
|
|
20139
|
+
* Null when the commits made at that instant cannot be told apart.
|
|
20140
|
+
*/
|
|
20141
|
+
commitId: string | null
|
|
20142
|
+
committedAt: string
|
|
20143
|
+
/**
|
|
20144
|
+
* Principal on whose behalf the commit ran; absent for automatic or anonymous work.
|
|
20145
|
+
*/
|
|
20146
|
+
requestedBy?: {
|
|
20147
|
+
type: "user" | "serviceAccount"
|
|
20148
|
+
id: string
|
|
20149
|
+
}
|
|
20150
|
+
executor?:
|
|
20151
|
+
| {
|
|
20152
|
+
type: "request"
|
|
20153
|
+
requestId: string
|
|
20154
|
+
}
|
|
20155
|
+
| {
|
|
20156
|
+
type: "primitive"
|
|
20157
|
+
kind:
|
|
20158
|
+
| "action"
|
|
20159
|
+
| "pipeline"
|
|
20160
|
+
| "projection"
|
|
20161
|
+
| "rule"
|
|
20162
|
+
| "sync"
|
|
20163
|
+
| "webhook"
|
|
20164
|
+
| "workflow"
|
|
20165
|
+
id: string
|
|
20166
|
+
runId: string
|
|
20167
|
+
}
|
|
20168
|
+
| {
|
|
20169
|
+
type: "agent"
|
|
20170
|
+
runId: string
|
|
20171
|
+
}
|
|
20172
|
+
| {
|
|
20173
|
+
type: "kernel"
|
|
20174
|
+
operation:
|
|
20175
|
+
| {
|
|
20176
|
+
type: "ontology.recover"
|
|
20177
|
+
recoveryId: string
|
|
20178
|
+
}
|
|
20179
|
+
| {
|
|
20180
|
+
type: "ontology.indexVectors"
|
|
20181
|
+
indexingId: string
|
|
20182
|
+
}
|
|
20183
|
+
}
|
|
20184
|
+
/**
|
|
20185
|
+
* Absent for a direct write, and for an Action run the caller cannot view.
|
|
20186
|
+
*/
|
|
20187
|
+
action?: {
|
|
20188
|
+
actionId: string
|
|
20189
|
+
runId: string
|
|
20190
|
+
}
|
|
20191
|
+
}
|
|
20192
|
+
| {
|
|
20193
|
+
kind: "telemetry"
|
|
20194
|
+
commitId: string
|
|
20195
|
+
committedAt: string
|
|
20196
|
+
projectionId?: string
|
|
20197
|
+
/**
|
|
20198
|
+
* Principal on whose behalf the commit ran; absent for automatic or anonymous work.
|
|
20199
|
+
*/
|
|
20200
|
+
requestedBy?: {
|
|
20201
|
+
type: "user" | "serviceAccount"
|
|
20202
|
+
id: string
|
|
20203
|
+
}
|
|
20204
|
+
executor?:
|
|
20205
|
+
| {
|
|
20206
|
+
type: "request"
|
|
20207
|
+
requestId: string
|
|
20208
|
+
}
|
|
20209
|
+
| {
|
|
20210
|
+
type: "primitive"
|
|
20211
|
+
kind:
|
|
20212
|
+
| "action"
|
|
20213
|
+
| "pipeline"
|
|
20214
|
+
| "projection"
|
|
20215
|
+
| "rule"
|
|
20216
|
+
| "sync"
|
|
20217
|
+
| "webhook"
|
|
20218
|
+
| "workflow"
|
|
20219
|
+
id: string
|
|
20220
|
+
runId: string
|
|
20221
|
+
}
|
|
20222
|
+
| {
|
|
20223
|
+
type: "agent"
|
|
20224
|
+
runId: string
|
|
20225
|
+
}
|
|
20226
|
+
| {
|
|
20227
|
+
type: "kernel"
|
|
20228
|
+
operation:
|
|
20229
|
+
| {
|
|
20230
|
+
type: "ontology.recover"
|
|
20231
|
+
recoveryId: string
|
|
20232
|
+
}
|
|
20233
|
+
| {
|
|
20234
|
+
type: "ontology.indexVectors"
|
|
20235
|
+
indexingId: string
|
|
20236
|
+
}
|
|
20237
|
+
}
|
|
20238
|
+
}
|
|
20239
|
+
| {
|
|
20240
|
+
kind: "identity"
|
|
20241
|
+
}
|
|
20242
|
+
}
|
|
20243
|
+
/**
|
|
20244
|
+
* Steps left out because the caller cannot view them.
|
|
20245
|
+
*/
|
|
20246
|
+
restricted: number
|
|
19058
20247
|
}
|
|
19059
20248
|
}
|
|
19060
20249
|
|
|
19061
|
-
export type
|
|
20250
|
+
export type GetObjectLinkLineageResponse =
|
|
20251
|
+
GetObjectLinkLineageResponses[keyof GetObjectLinkLineageResponses]
|
|
19062
20252
|
|
|
19063
20253
|
export type GetBulkTelemetryHistoryData = {
|
|
19064
20254
|
body: {
|