@sixb/client 0.1.24 → 0.2.0

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.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/dist/agent-streams.d.ts +9 -2
  3. package/dist/agent-streams.d.ts.map +1 -1
  4. package/dist/browser.js +2 -2
  5. package/dist/{chunk-1zthvcby.js → chunk-1wdszw1c.js} +12 -7
  6. package/dist/{chunk-1zthvcby.js.map → chunk-1wdszw1c.js.map} +3 -3
  7. package/dist/{chunk-14c2tg81.js → chunk-2qsekqcn.js} +52 -40
  8. package/dist/chunk-2qsekqcn.js.map +19 -0
  9. package/dist/{chunk-fzpxv5j5.js → chunk-fnd56xxz.js} +2 -2
  10. package/dist/{chunk-z28fxqd0.js → chunk-mk0w4zr1.js} +1 -1
  11. package/dist/{chunk-4xavy5bx.js → chunk-s2pagg09.js} +52 -4
  12. package/dist/chunk-s2pagg09.js.map +11 -0
  13. package/dist/{chunk-2ezmcce2.js → chunk-sh0f609h.js} +1 -1
  14. package/dist/connectors/queries.d.ts.map +1 -1
  15. package/dist/generated/@tanstack/react-query.gen.d.ts +2661 -432
  16. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  17. package/dist/generated/index.d.ts +2 -2
  18. package/dist/generated/index.d.ts.map +1 -1
  19. package/dist/generated/sdk.gen.d.ts +41 -15
  20. package/dist/generated/sdk.gen.d.ts.map +1 -1
  21. package/dist/generated/types.gen.d.ts +1003 -169
  22. package/dist/generated/types.gen.d.ts.map +1 -1
  23. package/dist/hooks.d.ts +2 -0
  24. package/dist/hooks.d.ts.map +1 -1
  25. package/dist/hooks.js +319 -77
  26. package/dist/hooks.js.map +8 -6
  27. package/dist/index.js +21 -15
  28. package/dist/index.js.map +1 -1
  29. package/dist/logs.js +3 -3
  30. package/dist/models.js +17 -11
  31. package/dist/models.js.map +1 -1
  32. package/dist/object-query-live-updates.d.ts +34 -0
  33. package/dist/object-query-live-updates.d.ts.map +1 -0
  34. package/dist/object-query-reads.d.ts +8 -0
  35. package/dist/object-query-reads.d.ts.map +1 -0
  36. package/dist/query.d.ts.map +1 -1
  37. package/dist/query.js +3 -3
  38. package/dist/useAgentActivityStream.d.ts +4 -1
  39. package/dist/useAgentActivityStream.d.ts.map +1 -1
  40. package/dist/useDesktop.d.ts +22 -0
  41. package/dist/useDesktop.d.ts.map +1 -0
  42. package/dist/users-hooks.d.ts.map +1 -1
  43. package/package.json +2 -2
  44. package/src/agent-streams.ts +16 -2
  45. package/src/generated/@tanstack/react-query.gen.ts +207 -105
  46. package/src/generated/index.ts +41 -24
  47. package/src/generated/sdk.gen.ts +149 -73
  48. package/src/generated/types.gen.ts +1187 -182
  49. package/src/hooks.ts +5 -0
  50. package/src/object-query-live-updates.ts +276 -0
  51. package/src/object-query-reads.ts +72 -0
  52. package/src/query.ts +5 -0
  53. package/src/useAgentActivityStream.ts +11 -0
  54. package/src/useDesktop.ts +50 -0
  55. package/dist/chunk-14c2tg81.js.map +0 -19
  56. package/dist/chunk-4xavy5bx.js.map +0 -10
  57. /package/dist/{chunk-fzpxv5j5.js.map → chunk-fnd56xxz.js.map} +0 -0
  58. /package/dist/{chunk-z28fxqd0.js.map → chunk-mk0w4zr1.js.map} +0 -0
  59. /package/dist/{chunk-2ezmcce2.js.map → chunk-sh0f609h.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,26 @@ 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"
2268
2326
  bucket: "hour" | "day" | "week"
2269
2327
  }
2270
2328
  url: "/api/ai/accounting/overview"
@@ -2438,6 +2496,81 @@ export type GetAiAccountingOverviewResponses = {
2438
2496
  start: string
2439
2497
  end: string
2440
2498
  }>
2499
+ /**
2500
+ * Each model's own series, every period included
2501
+ */
2502
+ modelSeries: Array<{
2503
+ providerId: string
2504
+ modelId: string
2505
+ series: Array<{
2506
+ modelCallCount: number
2507
+ /**
2508
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
2509
+ */
2510
+ usage: {
2511
+ inputTokens?: number
2512
+ outputTokens?: number
2513
+ totalTokens?: number
2514
+ uncachedInputTokens?: number
2515
+ cacheReadInputTokens?: number
2516
+ cacheWriteInputTokens?: number
2517
+ textOutputTokens?: number
2518
+ reasoningOutputTokens?: number
2519
+ /**
2520
+ * Audio content duration in milliseconds; not billed duration.
2521
+ */
2522
+ audioDurationMs?: number
2523
+ /**
2524
+ * Output tokens that encode generated images, within outputTokens.
2525
+ */
2526
+ imageOutputTokens?: number
2527
+ /**
2528
+ * Output tokens that encode generated audio, within outputTokens.
2529
+ */
2530
+ audioOutputTokens?: number
2531
+ /**
2532
+ * Images the call returned.
2533
+ */
2534
+ outputImages?: number
2535
+ /**
2536
+ * Input characters, counted by the provider's own billing rule.
2537
+ */
2538
+ inputCharacters?: number
2539
+ reportingStatus: "complete" | "partial" | "unavailable"
2540
+ }
2541
+ usageCoverage: {
2542
+ /**
2543
+ * Calls reporting both inputTokens and outputTokens.
2544
+ */
2545
+ completeCallCount: number
2546
+ fieldCallCounts: {
2547
+ inputTokens: number
2548
+ outputTokens: number
2549
+ uncachedInputTokens: number
2550
+ cacheReadInputTokens: number
2551
+ cacheWriteInputTokens: number
2552
+ textOutputTokens: number
2553
+ reasoningOutputTokens: number
2554
+ audioDurationMs: number
2555
+ imageOutputTokens: number
2556
+ audioOutputTokens: number
2557
+ outputImages: number
2558
+ inputCharacters: number
2559
+ }
2560
+ }
2561
+ costs: {
2562
+ amounts: Array<{
2563
+ currency: string
2564
+ amountNanos: string
2565
+ }>
2566
+ ratedCallCount: number
2567
+ unpriceableCallCount: number
2568
+ unvaluedCallCount: number
2569
+ }
2570
+ start: string
2571
+ end: string
2572
+ }>
2573
+ }>
2441
2574
  models: Array<{
2442
2575
  modelCallCount: number
2443
2576
  /**
@@ -2506,6 +2639,87 @@ export type GetAiAccountingOverviewResponses = {
2506
2639
  providerId: string
2507
2640
  modelId: string
2508
2641
  }>
2642
+ /**
2643
+ * Who asked for the calls
2644
+ */
2645
+ people: Array<{
2646
+ modelCallCount: number
2647
+ /**
2648
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
2649
+ */
2650
+ usage: {
2651
+ inputTokens?: number
2652
+ outputTokens?: number
2653
+ totalTokens?: number
2654
+ uncachedInputTokens?: number
2655
+ cacheReadInputTokens?: number
2656
+ cacheWriteInputTokens?: number
2657
+ textOutputTokens?: number
2658
+ reasoningOutputTokens?: number
2659
+ /**
2660
+ * Audio content duration in milliseconds; not billed duration.
2661
+ */
2662
+ audioDurationMs?: number
2663
+ /**
2664
+ * Output tokens that encode generated images, within outputTokens.
2665
+ */
2666
+ imageOutputTokens?: number
2667
+ /**
2668
+ * Output tokens that encode generated audio, within outputTokens.
2669
+ */
2670
+ audioOutputTokens?: number
2671
+ /**
2672
+ * Images the call returned.
2673
+ */
2674
+ outputImages?: number
2675
+ /**
2676
+ * Input characters, counted by the provider's own billing rule.
2677
+ */
2678
+ inputCharacters?: number
2679
+ reportingStatus: "complete" | "partial" | "unavailable"
2680
+ }
2681
+ usageCoverage: {
2682
+ /**
2683
+ * Calls reporting both inputTokens and outputTokens.
2684
+ */
2685
+ completeCallCount: number
2686
+ fieldCallCounts: {
2687
+ inputTokens: number
2688
+ outputTokens: number
2689
+ uncachedInputTokens: number
2690
+ cacheReadInputTokens: number
2691
+ cacheWriteInputTokens: number
2692
+ textOutputTokens: number
2693
+ reasoningOutputTokens: number
2694
+ audioDurationMs: number
2695
+ imageOutputTokens: number
2696
+ audioOutputTokens: number
2697
+ outputImages: number
2698
+ inputCharacters: number
2699
+ }
2700
+ }
2701
+ costs: {
2702
+ amounts: Array<{
2703
+ currency: string
2704
+ amountNanos: string
2705
+ }>
2706
+ ratedCallCount: number
2707
+ unpriceableCallCount: number
2708
+ unvaluedCallCount: number
2709
+ }
2710
+ /**
2711
+ * Absent for the calls nobody asked for, such as a schedule's
2712
+ */
2713
+ requester?: {
2714
+ type: "user" | "serviceAccount"
2715
+ id: string
2716
+ /**
2717
+ * Their name, or a service account's
2718
+ */
2719
+ name?: string
2720
+ email?: string
2721
+ }
2722
+ }>
2509
2723
  kinds: Array<{
2510
2724
  modelCallCount: number
2511
2725
  /**
@@ -2803,6 +3017,26 @@ export type ListAiModelCallsData = {
2803
3017
  to: string
2804
3018
  providerId?: string
2805
3019
  modelId?: string
3020
+ /**
3021
+ * 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
3022
+ */
3023
+ person?: string
3024
+ /**
3025
+ * Calls from agent conversations and their sub-agents, actions, workflows or one as workflow:<id>, or other
3026
+ */
3027
+ source?: string
3028
+ /**
3029
+ * Calls to one kind of model
3030
+ */
3031
+ kind?:
3032
+ | "language"
3033
+ | "image"
3034
+ | "video"
3035
+ | "embedding"
3036
+ | "decision"
3037
+ | "transcription"
3038
+ | "speech"
3039
+ | "reranking"
2806
3040
  executionId?: string
2807
3041
  valuationStatus?: "rated" | "unpriceable" | "unvalued"
2808
3042
  limit?: string
@@ -3710,9 +3944,33 @@ export type ListAiModelCallGroupsData = {
3710
3944
  to: string
3711
3945
  providerId?: string
3712
3946
  modelId?: string
3947
+ /**
3948
+ * 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
3949
+ */
3950
+ person?: string
3951
+ /**
3952
+ * Calls from agent conversations and their sub-agents, actions, workflows or one as workflow:<id>, or other
3953
+ */
3954
+ source?: string
3955
+ /**
3956
+ * Calls to one kind of model
3957
+ */
3958
+ kind?:
3959
+ | "language"
3960
+ | "image"
3961
+ | "video"
3962
+ | "embedding"
3963
+ | "decision"
3964
+ | "transcription"
3965
+ | "speech"
3966
+ | "reranking"
3713
3967
  valuationStatus?: "rated" | "unpriceable" | "unvalued"
3714
3968
  limit?: string
3715
3969
  offset?: string
3970
+ /**
3971
+ * Most recent first, the default, or costliest first
3972
+ */
3973
+ sort?: "recent" | "cost"
3716
3974
  }
3717
3975
  url: "/api/ai/model-call-groups"
3718
3976
  }
@@ -3785,6 +4043,8 @@ export type ListAiModelCallGroupsResponses = {
3785
4043
  * Present when every call that reports tokens did; images and speech don't.
3786
4044
  */
3787
4045
  totalTokens?: number
4046
+ inputTokens?: number
4047
+ cacheReadInputTokens?: number
3788
4048
  outputImages?: number
3789
4049
  inputCharacters?: number
3790
4050
  audioDurationMs?: number
@@ -3800,6 +4060,9 @@ export type ListAiModelCallGroupsResponses = {
3800
4060
  firstCallAt: string
3801
4061
  lastCallAt: string
3802
4062
  label?: string
4063
+ /**
4064
+ * A conversation's turns and sub-agents, or a workflow run's agent steps
4065
+ */
3803
4066
  executions: Array<{
3804
4067
  executionId: string
3805
4068
  attribution?:
@@ -3839,6 +4102,8 @@ export type ListAiModelCallGroupsResponses = {
3839
4102
  * Present when every call that reports tokens did; images and speech don't.
3840
4103
  */
3841
4104
  totalTokens?: number
4105
+ inputTokens?: number
4106
+ cacheReadInputTokens?: number
3842
4107
  outputImages?: number
3843
4108
  inputCharacters?: number
3844
4109
  audioDurationMs?: number
@@ -3856,10 +4121,36 @@ export type ListAiModelCallGroupsResponses = {
3856
4121
  models: Array<{
3857
4122
  providerId: string
3858
4123
  modelId: string
4124
+ modelCallCount: number
4125
+ costs: {
4126
+ amounts: Array<{
4127
+ currency: string
4128
+ amountNanos: string
4129
+ }>
4130
+ ratedCallCount: number
4131
+ unpriceableCallCount: number
4132
+ unvaluedCallCount: number
4133
+ }
3859
4134
  }>
3860
4135
  label?: string
4136
+ /**
4137
+ * What a turn was asked, when the caller can read its conversation
4138
+ */
4139
+ prompt?: string
3861
4140
  }>
3862
4141
  canOpenThread: boolean
4142
+ /**
4143
+ * Who started it
4144
+ */
4145
+ requester?: {
4146
+ type: "user" | "serviceAccount"
4147
+ id: string
4148
+ /**
4149
+ * Their name, or a service account's
4150
+ */
4151
+ name?: string
4152
+ email?: string
4153
+ }
3863
4154
  }>
3864
4155
  total: number
3865
4156
  hasMore: boolean
@@ -6120,6 +6411,7 @@ export type ListDatasetVersionsResponses = {
6120
6411
  kind: "sync" | "pipeline" | "ingest"
6121
6412
  id?: string
6122
6413
  runId?: string
6414
+ stepId?: string
6123
6415
  }
6124
6416
  inputs?: Array<{
6125
6417
  datasetId: string
@@ -6196,6 +6488,7 @@ export type GetDatasetVersionResponses = {
6196
6488
  kind: "sync" | "pipeline" | "ingest"
6197
6489
  id?: string
6198
6490
  runId?: string
6491
+ stepId?: string
6199
6492
  }
6200
6493
  inputs?: Array<{
6201
6494
  datasetId: string
@@ -6208,6 +6501,89 @@ export type GetDatasetVersionResponses = {
6208
6501
 
6209
6502
  export type GetDatasetVersionResponse = GetDatasetVersionResponses[keyof GetDatasetVersionResponses]
6210
6503
 
6504
+ export type GetDatasetVersionLineageData = {
6505
+ body?: never
6506
+ path: {
6507
+ datasetId: string
6508
+ versionId: string
6509
+ }
6510
+ query?: {
6511
+ depth?: string
6512
+ }
6513
+ url: "/api/datasets/{datasetId}/versions/{versionId}/lineage"
6514
+ }
6515
+
6516
+ export type GetDatasetVersionLineageErrors = {
6517
+ /**
6518
+ * Response for status 400
6519
+ */
6520
+ 400: {
6521
+ error: string
6522
+ }
6523
+ /**
6524
+ * Response for status 404
6525
+ */
6526
+ 404: {
6527
+ error: string
6528
+ /**
6529
+ * Stable machine-readable failure code for programmatic handling.
6530
+ */
6531
+ code: "dataset.not_found" | "dataset.version_not_found"
6532
+ }
6533
+ }
6534
+
6535
+ export type GetDatasetVersionLineageError =
6536
+ GetDatasetVersionLineageErrors[keyof GetDatasetVersionLineageErrors]
6537
+
6538
+ export type GetDatasetVersionLineageResponses = {
6539
+ /**
6540
+ * Response for status 200
6541
+ */
6542
+ 200: {
6543
+ nodes: Array<
6544
+ | {
6545
+ datasetId: string
6546
+ versionId: string
6547
+ parentVersionId?: string
6548
+ mode: "snapshot" | "append" | "merge" | "schema"
6549
+ createdAt: string
6550
+ producer?: {
6551
+ kind: "sync" | "pipeline" | "ingest"
6552
+ id?: string
6553
+ runId?: string
6554
+ stepId?: string
6555
+ }
6556
+ }
6557
+ | {
6558
+ datasetId: string
6559
+ versionId: string
6560
+ expired: true
6561
+ }
6562
+ >
6563
+ edges: Array<{
6564
+ from: {
6565
+ datasetId: string
6566
+ versionId: string
6567
+ }
6568
+ to: {
6569
+ datasetId: string
6570
+ versionId: string
6571
+ }
6572
+ }>
6573
+ /**
6574
+ * Versions left out because the caller cannot view their dataset.
6575
+ */
6576
+ restricted: number
6577
+ /**
6578
+ * Whether the walk stopped at `depth` or at the node cap.
6579
+ */
6580
+ truncated: boolean
6581
+ }
6582
+ }
6583
+
6584
+ export type GetDatasetVersionLineageResponse =
6585
+ GetDatasetVersionLineageResponses[keyof GetDatasetVersionLineageResponses]
6586
+
6211
6587
  export type ListDatasetRowsData = {
6212
6588
  body?: never
6213
6589
  path: {
@@ -6276,6 +6652,7 @@ export type ListDatasetRowsResponses = {
6276
6652
  kind: "sync" | "pipeline" | "ingest"
6277
6653
  id?: string
6278
6654
  runId?: string
6655
+ stepId?: string
6279
6656
  }
6280
6657
  inputs?: Array<{
6281
6658
  datasetId: string
@@ -8420,7 +8797,9 @@ export type GetWorkflowAgentNodeExecutionResponses = {
8420
8797
  | "action.run_in_progress"
8421
8798
  | "action.timeout"
8422
8799
  | "agent.approval_authority_lost"
8800
+ | "agent.context_limit_exceeded"
8423
8801
  | "agent.execution_failed"
8802
+ | "agent.step_limit_reached"
8424
8803
  | "ai.usage_limit_exceeded"
8425
8804
  | "ai.usage_limit_unavailable"
8426
8805
  | "connector.adapter_invalid"
@@ -8621,13 +9000,24 @@ export type GetWorkflowAgentNodeExecutionResponses = {
8621
9000
  [key: string]: unknown
8622
9001
  }
8623
9002
  | null
8624
- }
8625
- | {
8626
- type: "tool-call"
8627
- toolCallId: string
8628
- toolName: string
8629
- dynamic?: boolean
8630
- providerExecuted?: boolean
9003
+ outputFile?: {
9004
+ fileRef: {
9005
+ blobId: string
9006
+ digest: string
9007
+ sizeBytes: number
9008
+ fileName?: string
9009
+ mediaType?: string
9010
+ logicalPath?: string
9011
+ }
9012
+ path: string
9013
+ }
9014
+ }
9015
+ | {
9016
+ type: "tool-call"
9017
+ toolCallId: string
9018
+ toolName: string
9019
+ dynamic?: boolean
9020
+ providerExecuted?: boolean
8631
9021
  /**
8632
9022
  * Any JSON-compatible value.
8633
9023
  */
@@ -8680,7 +9070,9 @@ export type GetWorkflowAgentNodeExecutionResponses = {
8680
9070
  code:
8681
9071
  | "internal.unexpected"
8682
9072
  | "runtime.cancelled"
9073
+ | "agent.context_limit_exceeded"
8683
9074
  | "agent.execution_failed"
9075
+ | "agent.step_limit_reached"
8684
9076
  | "ai.usage_limit_exceeded"
8685
9077
  | "ai.usage_limit_unavailable"
8686
9078
  message: string
@@ -10579,75 +10971,219 @@ export type GetObjectResponses = {
10579
10971
 
10580
10972
  export type GetObjectResponse = GetObjectResponses[keyof GetObjectResponses]
10581
10973
 
10582
- export type UpsertObjectData = {
10583
- body: {
10584
- properties: {
10585
- [key: string]: unknown
10586
- }
10587
- }
10974
+ export type GetObjectLineageData = {
10975
+ body?: never
10588
10976
  path: {
10589
10977
  objectTypeId: string
10590
10978
  objectId: string
10591
10979
  }
10592
10980
  query?: never
10593
- url: "/api/objects/{objectTypeId}/{objectId}"
10981
+ url: "/api/objects/{objectTypeId}/{objectId}/lineage"
10594
10982
  }
10595
10983
 
10596
- export type UpsertObjectErrors = {
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
- }
10984
+ export type GetObjectLineageErrors = {
10609
10985
  /**
10610
10986
  * Response for status 404
10611
10987
  */
10612
10988
  404: {
10613
10989
  error: string
10614
10990
  }
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
10991
  }
10626
10992
 
10627
- export type UpsertObjectError = UpsertObjectErrors[keyof UpsertObjectErrors]
10993
+ export type GetObjectLineageError = GetObjectLineageErrors[keyof GetObjectLineageErrors]
10628
10994
 
10629
- export type UpsertObjectResponses = {
10995
+ export type GetObjectLineageResponses = {
10630
10996
  /**
10631
10997
  * Response for status 200
10632
10998
  */
10633
10999
  200: {
10634
- score?: number
10635
- primaryId: string
10636
11000
  objectTypeId: string
10637
- properties: {
10638
- [key: string]: unknown
11001
+ primaryId: string
11002
+ existence: {
11003
+ source: string
10639
11004
  }
10640
- redactions?: {
11005
+ /**
11006
+ * Keyed `projection:<id>`, `commit:<id>`, `commit@<instant>` when the commit is unknown, `telemetry:<commitId>` and `identity`.
11007
+ */
11008
+ sources: {
11009
+ [key: string]:
11010
+ | {
11011
+ kind: "projection"
11012
+ projectionId: string
11013
+ /**
11014
+ * Absent for a caller who cannot view the projection's runs.
11015
+ */
11016
+ projectionRunId?: string
11017
+ /**
11018
+ * The dataset version applied. Absent for a caller who cannot view the dataset.
11019
+ */
11020
+ datasetVersion?: {
11021
+ datasetId: string
11022
+ versionId: string
11023
+ }
11024
+ /**
11025
+ * 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.
11026
+ */
11027
+ rowOrigins?: Array<{
11028
+ datasetId: string
11029
+ column: string
11030
+ }>
11031
+ }
11032
+ | {
11033
+ kind: "edit"
11034
+ /**
11035
+ * Null when the commits made at that instant cannot be told apart.
11036
+ */
11037
+ commitId: string | null
11038
+ committedAt: string
11039
+ /**
11040
+ * Principal on whose behalf the commit ran; absent for automatic or anonymous work.
11041
+ */
11042
+ requestedBy?: {
11043
+ type: "user" | "serviceAccount"
11044
+ id: string
11045
+ }
11046
+ executor?:
11047
+ | {
11048
+ type: "request"
11049
+ requestId: string
11050
+ }
11051
+ | {
11052
+ type: "primitive"
11053
+ kind:
11054
+ | "action"
11055
+ | "pipeline"
11056
+ | "projection"
11057
+ | "rule"
11058
+ | "sync"
11059
+ | "webhook"
11060
+ | "workflow"
11061
+ id: string
11062
+ runId: string
11063
+ }
11064
+ | {
11065
+ type: "agent"
11066
+ runId: string
11067
+ }
11068
+ | {
11069
+ type: "kernel"
11070
+ operation:
11071
+ | {
11072
+ type: "ontology.recover"
11073
+ recoveryId: string
11074
+ }
11075
+ | {
11076
+ type: "ontology.indexVectors"
11077
+ indexingId: string
11078
+ }
11079
+ }
11080
+ /**
11081
+ * Absent for a direct write, and for an Action run the caller cannot view.
11082
+ */
11083
+ action?: {
11084
+ actionId: string
11085
+ runId: string
11086
+ }
11087
+ }
11088
+ | {
11089
+ kind: "telemetry"
11090
+ commitId: string
11091
+ committedAt: string
11092
+ projectionId?: string
11093
+ /**
11094
+ * Principal on whose behalf the commit ran; absent for automatic or anonymous work.
11095
+ */
11096
+ requestedBy?: {
11097
+ type: "user" | "serviceAccount"
11098
+ id: string
11099
+ }
11100
+ executor?:
11101
+ | {
11102
+ type: "request"
11103
+ requestId: string
11104
+ }
11105
+ | {
11106
+ type: "primitive"
11107
+ kind:
11108
+ | "action"
11109
+ | "pipeline"
11110
+ | "projection"
11111
+ | "rule"
11112
+ | "sync"
11113
+ | "webhook"
11114
+ | "workflow"
11115
+ id: string
11116
+ runId: string
11117
+ }
11118
+ | {
11119
+ type: "agent"
11120
+ runId: string
11121
+ }
11122
+ | {
11123
+ type: "kernel"
11124
+ operation:
11125
+ | {
11126
+ type: "ontology.recover"
11127
+ recoveryId: string
11128
+ }
11129
+ | {
11130
+ type: "ontology.indexVectors"
11131
+ indexingId: string
11132
+ }
11133
+ }
11134
+ }
11135
+ | {
11136
+ kind: "identity"
11137
+ }
11138
+ }
11139
+ properties: {
10641
11140
  [key: string]: {
10642
- reason: "missing_clearance"
11141
+ /**
11142
+ * The source that decided the value: a key of `sources`.
11143
+ */
11144
+ source: string
11145
+ column?: string
11146
+ origins?: Array<{
11147
+ datasetId: string
11148
+ column: string
11149
+ }>
11150
+ removed?: true
11151
+ at?: string
11152
+ replaced?: {
11153
+ source: string
11154
+ column?: string
11155
+ /**
11156
+ * Any JSON-compatible value.
11157
+ */
11158
+ value?:
11159
+ | string
11160
+ | number
11161
+ | boolean
11162
+ | Array<unknown>
11163
+ | {
11164
+ [key: string]: unknown
11165
+ }
11166
+ | null
11167
+ }
11168
+ resolution?:
11169
+ | {
11170
+ strategy: "editsWin"
11171
+ }
11172
+ | {
11173
+ strategy: "mostRecent"
11174
+ sourceUpdatedAt: string
11175
+ editedAt?: string
11176
+ }
10643
11177
  }
10644
11178
  }
10645
- createdAt: string
10646
- updatedAt: string
11179
+ /**
11180
+ * Steps left out because the caller cannot view them.
11181
+ */
11182
+ restricted: number
10647
11183
  }
10648
11184
  }
10649
11185
 
10650
- export type UpsertObjectResponse = UpsertObjectResponses[keyof UpsertObjectResponses]
11186
+ export type GetObjectLineageResponse = GetObjectLineageResponses[keyof GetObjectLineageResponses]
10651
11187
 
10652
11188
  export type GetObjectByUniquePropertyData = {
10653
11189
  body: {
@@ -10871,7 +11407,9 @@ export type RequestActionErrors = {
10871
11407
  | "action.run_in_progress"
10872
11408
  | "action.timeout"
10873
11409
  | "agent.approval_authority_lost"
11410
+ | "agent.context_limit_exceeded"
10874
11411
  | "agent.execution_failed"
11412
+ | "agent.step_limit_reached"
10875
11413
  | "ai.usage_limit_exceeded"
10876
11414
  | "ai.usage_limit_unavailable"
10877
11415
  | "connector.adapter_invalid"
@@ -11857,7 +12395,13 @@ export type ListAgentThreadsResponses = {
11857
12395
  | null
11858
12396
  }
11859
12397
  runsOn?: "computer"
11860
- computerId?: string
12398
+ computer?: {
12399
+ id: string
12400
+ name: string
12401
+ folder: string
12402
+ online: boolean
12403
+ }
12404
+ movedAt?: string
11861
12405
  status: "active" | "archived"
11862
12406
  activeRunId: string | null
11863
12407
  lastMessageAt?: string
@@ -11890,6 +12434,11 @@ export type CreateAgentThreadData = {
11890
12434
  | null
11891
12435
  }
11892
12436
  runsOn?: "computer"
12437
+ computer?: {
12438
+ id: string
12439
+ name: string
12440
+ folder: string
12441
+ }
11893
12442
  }
11894
12443
  path?: never
11895
12444
  query?: never
@@ -11978,7 +12527,13 @@ export type CreateAgentThreadResponses = {
11978
12527
  | null
11979
12528
  }
11980
12529
  runsOn?: "computer"
11981
- computerId?: string
12530
+ computer?: {
12531
+ id: string
12532
+ name: string
12533
+ folder: string
12534
+ online: boolean
12535
+ }
12536
+ movedAt?: string
11982
12537
  status: "active" | "archived"
11983
12538
  activeRunId: string | null
11984
12539
  lastMessageAt?: string
@@ -12077,7 +12632,13 @@ export type GetAgentThreadResponses = {
12077
12632
  | null
12078
12633
  }
12079
12634
  runsOn?: "computer"
12080
- computerId?: string
12635
+ computer?: {
12636
+ id: string
12637
+ name: string
12638
+ folder: string
12639
+ online: boolean
12640
+ }
12641
+ movedAt?: string
12081
12642
  status: "active" | "archived"
12082
12643
  activeRunId: string | null
12083
12644
  lastMessageAt?: string
@@ -12201,7 +12762,13 @@ export type AddAgentThreadParticipantsResponses = {
12201
12762
  | null
12202
12763
  }
12203
12764
  runsOn?: "computer"
12204
- computerId?: string
12765
+ computer?: {
12766
+ id: string
12767
+ name: string
12768
+ folder: string
12769
+ online: boolean
12770
+ }
12771
+ movedAt?: string
12205
12772
  status: "active" | "archived"
12206
12773
  activeRunId: string | null
12207
12774
  lastMessageAt?: string
@@ -12365,7 +12932,13 @@ export type ForkAgentThreadResponses = {
12365
12932
  | null
12366
12933
  }
12367
12934
  runsOn?: "computer"
12368
- computerId?: string
12935
+ computer?: {
12936
+ id: string
12937
+ name: string
12938
+ folder: string
12939
+ online: boolean
12940
+ }
12941
+ movedAt?: string
12369
12942
  status: "active" | "archived"
12370
12943
  activeRunId: string | null
12371
12944
  lastMessageAt?: string
@@ -12475,7 +13048,13 @@ export type RecreateAgentThreadSandboxResponses = {
12475
13048
  | null
12476
13049
  }
12477
13050
  runsOn?: "computer"
12478
- computerId?: string
13051
+ computer?: {
13052
+ id: string
13053
+ name: string
13054
+ folder: string
13055
+ online: boolean
13056
+ }
13057
+ movedAt?: string
12479
13058
  status: "active" | "archived"
12480
13059
  activeRunId: string | null
12481
13060
  lastMessageAt?: string
@@ -12628,7 +13207,9 @@ export type ListAgentThreadMessagesResponses = {
12628
13207
  | "action.run_in_progress"
12629
13208
  | "action.timeout"
12630
13209
  | "agent.approval_authority_lost"
13210
+ | "agent.context_limit_exceeded"
12631
13211
  | "agent.execution_failed"
13212
+ | "agent.step_limit_reached"
12632
13213
  | "ai.usage_limit_exceeded"
12633
13214
  | "ai.usage_limit_unavailable"
12634
13215
  | "connector.adapter_invalid"
@@ -12829,6 +13410,17 @@ export type ListAgentThreadMessagesResponses = {
12829
13410
  [key: string]: unknown
12830
13411
  }
12831
13412
  | null
13413
+ outputFile?: {
13414
+ fileRef: {
13415
+ blobId: string
13416
+ digest: string
13417
+ sizeBytes: number
13418
+ fileName?: string
13419
+ mediaType?: string
13420
+ logicalPath?: string
13421
+ }
13422
+ path: string
13423
+ }
12832
13424
  }
12833
13425
  | {
12834
13426
  type: "tool-call"
@@ -12881,6 +13473,10 @@ export type ListAgentThreadMessagesResponses = {
12881
13473
  }>
12882
13474
  compaction?: {
12883
13475
  checkpointId: string
13476
+ /**
13477
+ * `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.
13478
+ */
13479
+ reason: "threshold" | "overflow"
12884
13480
  summary: string
12885
13481
  createdAt: string
12886
13482
  }
@@ -13146,7 +13742,9 @@ export type PostAgentThreadMessageResponses = {
13146
13742
  code:
13147
13743
  | "internal.unexpected"
13148
13744
  | "runtime.cancelled"
13745
+ | "agent.context_limit_exceeded"
13149
13746
  | "agent.execution_failed"
13747
+ | "agent.step_limit_reached"
13150
13748
  | "ai.usage_limit_exceeded"
13151
13749
  | "ai.usage_limit_unavailable"
13152
13750
  message: string
@@ -13431,7 +14029,9 @@ export type CancelAgentRunResponses = {
13431
14029
  code:
13432
14030
  | "internal.unexpected"
13433
14031
  | "runtime.cancelled"
14032
+ | "agent.context_limit_exceeded"
13434
14033
  | "agent.execution_failed"
14034
+ | "agent.step_limit_reached"
13435
14035
  | "ai.usage_limit_exceeded"
13436
14036
  | "ai.usage_limit_unavailable"
13437
14037
  message: string
@@ -13633,7 +14233,9 @@ export type RetryAgentRunResponses = {
13633
14233
  code:
13634
14234
  | "internal.unexpected"
13635
14235
  | "runtime.cancelled"
14236
+ | "agent.context_limit_exceeded"
13636
14237
  | "agent.execution_failed"
14238
+ | "agent.step_limit_reached"
13637
14239
  | "ai.usage_limit_exceeded"
13638
14240
  | "ai.usage_limit_unavailable"
13639
14241
  message: string
@@ -13666,6 +14268,99 @@ export type RetryAgentRunResponses = {
13666
14268
 
13667
14269
  export type RetryAgentRunResponse = RetryAgentRunResponses[keyof RetryAgentRunResponses]
13668
14270
 
14271
+ export type GetAgentThreadContextData = {
14272
+ body?: never
14273
+ path: {
14274
+ threadId: string
14275
+ }
14276
+ query?: {
14277
+ provider?: string
14278
+ modelId?: string
14279
+ }
14280
+ url: "/api/agent-threads/{threadId}/context"
14281
+ }
14282
+
14283
+ export type GetAgentThreadContextErrors = {
14284
+ /**
14285
+ * Response for status 400
14286
+ */
14287
+ 400: {
14288
+ error: string
14289
+ }
14290
+ /**
14291
+ * Response for status 404
14292
+ */
14293
+ 404: {
14294
+ error: string
14295
+ }
14296
+ /**
14297
+ * Response for status 409
14298
+ */
14299
+ 409: {
14300
+ error: string
14301
+ code?: string
14302
+ }
14303
+ /**
14304
+ * Response for status 501
14305
+ */
14306
+ 501: {
14307
+ error: string
14308
+ }
14309
+ }
14310
+
14311
+ export type GetAgentThreadContextError =
14312
+ GetAgentThreadContextErrors[keyof GetAgentThreadContextErrors]
14313
+
14314
+ export type GetAgentThreadContextResponses = {
14315
+ /**
14316
+ * Response for status 200
14317
+ */
14318
+ 200: {
14319
+ model: {
14320
+ provider: string
14321
+ modelId: string
14322
+ }
14323
+ windowTokens: number
14324
+ limitTokens: number
14325
+ usedTokens?: number
14326
+ parts?: Array<{
14327
+ /**
14328
+ * `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.
14329
+ */
14330
+ part:
14331
+ | "system"
14332
+ | "instructions"
14333
+ | "memory"
14334
+ | "skills"
14335
+ | "ontology"
14336
+ | "tools"
14337
+ | "summary"
14338
+ | "messages"
14339
+ | "toolResults"
14340
+ | "files"
14341
+ tokens: number
14342
+ }>
14343
+ lastCall?: {
14344
+ inputTokens: number
14345
+ outputTokens?: number
14346
+ cacheReadInputTokens?: number
14347
+ occurredAt: string
14348
+ }
14349
+ lastCompaction?: {
14350
+ /**
14351
+ * `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.
14352
+ */
14353
+ reason: "threshold" | "overflow"
14354
+ createdAt: string
14355
+ estimatedInputTokensBefore: number
14356
+ estimatedInputTokensAfter: number
14357
+ }
14358
+ }
14359
+ }
14360
+
14361
+ export type GetAgentThreadContextResponse =
14362
+ GetAgentThreadContextResponses[keyof GetAgentThreadContextResponses]
14363
+
13669
14364
  export type ListAgentThreadRunsData = {
13670
14365
  body?: never
13671
14366
  path: {
@@ -13802,7 +14497,9 @@ export type ListAgentThreadRunsResponses = {
13802
14497
  code:
13803
14498
  | "internal.unexpected"
13804
14499
  | "runtime.cancelled"
14500
+ | "agent.context_limit_exceeded"
13805
14501
  | "agent.execution_failed"
14502
+ | "agent.step_limit_reached"
13806
14503
  | "ai.usage_limit_exceeded"
13807
14504
  | "ai.usage_limit_unavailable"
13808
14505
  message: string
@@ -13968,7 +14665,9 @@ export type GetAgentRunResponses = {
13968
14665
  code:
13969
14666
  | "internal.unexpected"
13970
14667
  | "runtime.cancelled"
14668
+ | "agent.context_limit_exceeded"
13971
14669
  | "agent.execution_failed"
14670
+ | "agent.step_limit_reached"
13972
14671
  | "ai.usage_limit_exceeded"
13973
14672
  | "ai.usage_limit_unavailable"
13974
14673
  message: string
@@ -14146,7 +14845,9 @@ export type CancelAgentRunByIdResponses = {
14146
14845
  code:
14147
14846
  | "internal.unexpected"
14148
14847
  | "runtime.cancelled"
14848
+ | "agent.context_limit_exceeded"
14149
14849
  | "agent.execution_failed"
14850
+ | "agent.step_limit_reached"
14150
14851
  | "ai.usage_limit_exceeded"
14151
14852
  | "ai.usage_limit_unavailable"
14152
14853
  message: string
@@ -14330,10 +15031,8 @@ export type HeadAgentChildFileContentResponses = {
14330
15031
  206: unknown
14331
15032
  }
14332
15033
 
14333
- export type MoveAgentThreadToComputerData = {
14334
- body: {
14335
- computerId: string
14336
- }
15034
+ export type MoveAgentThreadToCloudData = {
15035
+ body?: never
14337
15036
  path: {
14338
15037
  threadId: string
14339
15038
  }
@@ -14341,7 +15040,7 @@ export type MoveAgentThreadToComputerData = {
14341
15040
  url: "/api/agent-threads/{threadId}/computer"
14342
15041
  }
14343
15042
 
14344
- export type MoveAgentThreadToComputerErrors = {
15043
+ export type MoveAgentThreadToCloudErrors = {
14345
15044
  /**
14346
15045
  * Response for status 400
14347
15046
  */
@@ -14363,6 +15062,13 @@ export type MoveAgentThreadToComputerErrors = {
14363
15062
  error: string
14364
15063
  code?: string
14365
15064
  }
15065
+ /**
15066
+ * Response for status 409
15067
+ */
15068
+ 409: {
15069
+ error: string
15070
+ code?: string
15071
+ }
14366
15072
  /**
14367
15073
  * Response for status 501
14368
15074
  */
@@ -14371,10 +15077,10 @@ export type MoveAgentThreadToComputerErrors = {
14371
15077
  }
14372
15078
  }
14373
15079
 
14374
- export type MoveAgentThreadToComputerError =
14375
- MoveAgentThreadToComputerErrors[keyof MoveAgentThreadToComputerErrors]
15080
+ export type MoveAgentThreadToCloudError =
15081
+ MoveAgentThreadToCloudErrors[keyof MoveAgentThreadToCloudErrors]
14376
15082
 
14377
- export type MoveAgentThreadToComputerResponses = {
15083
+ export type MoveAgentThreadToCloudResponses = {
14378
15084
  /**
14379
15085
  * Response for status 200
14380
15086
  */
@@ -14426,7 +15132,13 @@ export type MoveAgentThreadToComputerResponses = {
14426
15132
  | null
14427
15133
  }
14428
15134
  runsOn?: "computer"
14429
- computerId?: string
15135
+ computer?: {
15136
+ id: string
15137
+ name: string
15138
+ folder: string
15139
+ online: boolean
15140
+ }
15141
+ movedAt?: string
14430
15142
  status: "active" | "archived"
14431
15143
  activeRunId: string | null
14432
15144
  lastMessageAt?: string
@@ -14438,14 +15150,223 @@ export type MoveAgentThreadToComputerResponses = {
14438
15150
  }
14439
15151
  }
14440
15152
 
14441
- export type MoveAgentThreadToComputerResponse =
14442
- MoveAgentThreadToComputerResponses[keyof MoveAgentThreadToComputerResponses]
15153
+ export type MoveAgentThreadToCloudResponse =
15154
+ MoveAgentThreadToCloudResponses[keyof MoveAgentThreadToCloudResponses]
14443
15155
 
14444
- export type GetAgentPreferencesData = {
14445
- body?: never
14446
- path?: never
14447
- query?: never
14448
- url: "/api/agent/preferences"
15156
+ export type MoveAgentThreadToComputerData = {
15157
+ body: {
15158
+ computer: {
15159
+ id: string
15160
+ name: string
15161
+ folder: string
15162
+ }
15163
+ }
15164
+ path: {
15165
+ threadId: string
15166
+ }
15167
+ query?: never
15168
+ url: "/api/agent-threads/{threadId}/computer"
15169
+ }
15170
+
15171
+ export type MoveAgentThreadToComputerErrors = {
15172
+ /**
15173
+ * Response for status 400
15174
+ */
15175
+ 400: {
15176
+ error: string
15177
+ code?: string
15178
+ }
15179
+ /**
15180
+ * Response for status 403
15181
+ */
15182
+ 403: {
15183
+ error: string
15184
+ code?: string
15185
+ }
15186
+ /**
15187
+ * Response for status 404
15188
+ */
15189
+ 404: {
15190
+ error: string
15191
+ code?: string
15192
+ }
15193
+ /**
15194
+ * Response for status 409
15195
+ */
15196
+ 409: {
15197
+ error: string
15198
+ code?: string
15199
+ }
15200
+ /**
15201
+ * Response for status 501
15202
+ */
15203
+ 501: {
15204
+ error: string
15205
+ }
15206
+ }
15207
+
15208
+ export type MoveAgentThreadToComputerError =
15209
+ MoveAgentThreadToComputerErrors[keyof MoveAgentThreadToComputerErrors]
15210
+
15211
+ export type MoveAgentThreadToComputerResponses = {
15212
+ /**
15213
+ * Response for status 200
15214
+ */
15215
+ 200: {
15216
+ sandboxState?: {
15217
+ name: string
15218
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable"
15219
+ initialized: boolean
15220
+ }
15221
+ id: string
15222
+ projectId: string
15223
+ kind: "conversation" | "subagent"
15224
+ parent?: {
15225
+ threadId: string
15226
+ spawnedBy: string
15227
+ key: string
15228
+ }
15229
+ ownerPrincipal: {
15230
+ type: "user" | "serviceAccount" | "system"
15231
+ id: string
15232
+ }
15233
+ owner: {
15234
+ type: "user" | "serviceAccount" | "system"
15235
+ id: string
15236
+ displayName?: string
15237
+ }
15238
+ participants: Array<{
15239
+ principal: {
15240
+ type: "user"
15241
+ id: string
15242
+ displayName?: string
15243
+ }
15244
+ addedAt: string
15245
+ addedBy: {
15246
+ type: "user" | "serviceAccount" | "system"
15247
+ id: string
15248
+ }
15249
+ }>
15250
+ title?: string
15251
+ sandboxParams?: {
15252
+ [key: string]:
15253
+ | string
15254
+ | number
15255
+ | boolean
15256
+ | Array<unknown>
15257
+ | {
15258
+ [key: string]: unknown
15259
+ }
15260
+ | null
15261
+ }
15262
+ runsOn?: "computer"
15263
+ computer?: {
15264
+ id: string
15265
+ name: string
15266
+ folder: string
15267
+ online: boolean
15268
+ }
15269
+ movedAt?: string
15270
+ status: "active" | "archived"
15271
+ activeRunId: string | null
15272
+ lastMessageAt?: string
15273
+ messageCount: number
15274
+ createdAt: string
15275
+ updatedAt: string
15276
+ approvalMode?: "manual" | "accept-edits" | "auto"
15277
+ approvalModeSource?: "thread" | "default" | "fallback" | "run"
15278
+ }
15279
+ }
15280
+
15281
+ export type MoveAgentThreadToComputerResponse =
15282
+ MoveAgentThreadToComputerResponses[keyof MoveAgentThreadToComputerResponses]
15283
+
15284
+ export type ReleaseAgentComputerSessionData = {
15285
+ body?: never
15286
+ path: {
15287
+ sessionId: string
15288
+ }
15289
+ query?: never
15290
+ url: "/api/agent-computers/sessions/{sessionId}"
15291
+ }
15292
+
15293
+ export type ReleaseAgentComputerSessionErrors = {
15294
+ /**
15295
+ * Response for status 501
15296
+ */
15297
+ 501: {
15298
+ error: string
15299
+ }
15300
+ }
15301
+
15302
+ export type ReleaseAgentComputerSessionError =
15303
+ ReleaseAgentComputerSessionErrors[keyof ReleaseAgentComputerSessionErrors]
15304
+
15305
+ export type ReleaseAgentComputerSessionResponses = {
15306
+ /**
15307
+ * Response for status 204
15308
+ */
15309
+ 204: unknown
15310
+ }
15311
+
15312
+ export type HoldAgentComputerSessionData = {
15313
+ body: {
15314
+ computer: {
15315
+ id: string
15316
+ name: string
15317
+ folder: string
15318
+ }
15319
+ }
15320
+ path: {
15321
+ sessionId: string
15322
+ }
15323
+ query?: never
15324
+ url: "/api/agent-computers/sessions/{sessionId}"
15325
+ }
15326
+
15327
+ export type HoldAgentComputerSessionErrors = {
15328
+ /**
15329
+ * Response for status 400
15330
+ */
15331
+ 400: {
15332
+ error: string
15333
+ code?: string
15334
+ }
15335
+ /**
15336
+ * Response for status 429
15337
+ */
15338
+ 429: {
15339
+ error: string
15340
+ }
15341
+ /**
15342
+ * Response for status 501
15343
+ */
15344
+ 501: {
15345
+ error: string
15346
+ }
15347
+ }
15348
+
15349
+ export type HoldAgentComputerSessionError =
15350
+ HoldAgentComputerSessionErrors[keyof HoldAgentComputerSessionErrors]
15351
+
15352
+ export type HoldAgentComputerSessionResponses = {
15353
+ /**
15354
+ * Response for status 200
15355
+ */
15356
+ 200: {
15357
+ expiresAt: string
15358
+ waiting: Array<string>
15359
+ }
15360
+ }
15361
+
15362
+ export type HoldAgentComputerSessionResponse =
15363
+ HoldAgentComputerSessionResponses[keyof HoldAgentComputerSessionResponses]
15364
+
15365
+ export type GetAgentPreferencesData = {
15366
+ body?: never
15367
+ path?: never
15368
+ query?: never
15369
+ url: "/api/agent/preferences"
14449
15370
  }
14450
15371
 
14451
15372
  export type GetAgentPreferencesErrors = {
@@ -14623,7 +15544,13 @@ export type SetAgentThreadApprovalModeResponses = {
14623
15544
  | null
14624
15545
  }
14625
15546
  runsOn?: "computer"
14626
- computerId?: string
15547
+ computer?: {
15548
+ id: string
15549
+ name: string
15550
+ folder: string
15551
+ online: boolean
15552
+ }
15553
+ movedAt?: string
14627
15554
  status: "active" | "archived"
14628
15555
  activeRunId: string | null
14629
15556
  lastMessageAt?: string
@@ -14788,7 +15715,9 @@ export type ListAgentThreadApprovalsResponses = {
14788
15715
  | "action.run_in_progress"
14789
15716
  | "action.timeout"
14790
15717
  | "agent.approval_authority_lost"
15718
+ | "agent.context_limit_exceeded"
14791
15719
  | "agent.execution_failed"
15720
+ | "agent.step_limit_reached"
14792
15721
  | "ai.usage_limit_exceeded"
14793
15722
  | "ai.usage_limit_unavailable"
14794
15723
  | "connector.adapter_invalid"
@@ -15021,7 +15950,9 @@ export type DecideAgentApprovalResponses = {
15021
15950
  | "action.run_in_progress"
15022
15951
  | "action.timeout"
15023
15952
  | "agent.approval_authority_lost"
15953
+ | "agent.context_limit_exceeded"
15024
15954
  | "agent.execution_failed"
15955
+ | "agent.step_limit_reached"
15025
15956
  | "ai.usage_limit_exceeded"
15026
15957
  | "ai.usage_limit_unavailable"
15027
15958
  | "connector.adapter_invalid"
@@ -15177,7 +16108,9 @@ export type DecideAgentApprovalResponses = {
15177
16108
  code:
15178
16109
  | "internal.unexpected"
15179
16110
  | "runtime.cancelled"
16111
+ | "agent.context_limit_exceeded"
15180
16112
  | "agent.execution_failed"
16113
+ | "agent.step_limit_reached"
15181
16114
  | "ai.usage_limit_exceeded"
15182
16115
  | "ai.usage_limit_unavailable"
15183
16116
  message: string
@@ -15357,7 +16290,9 @@ export type ListAgentApprovalsResponses = {
15357
16290
  | "action.run_in_progress"
15358
16291
  | "action.timeout"
15359
16292
  | "agent.approval_authority_lost"
16293
+ | "agent.context_limit_exceeded"
15360
16294
  | "agent.execution_failed"
16295
+ | "agent.step_limit_reached"
15361
16296
  | "ai.usage_limit_exceeded"
15362
16297
  | "ai.usage_limit_unavailable"
15363
16298
  | "connector.adapter_invalid"
@@ -15518,7 +16453,13 @@ export type GetObservedAgentThreadResponses = {
15518
16453
  | null
15519
16454
  }
15520
16455
  runsOn?: "computer"
15521
- computerId?: string
16456
+ computer?: {
16457
+ id: string
16458
+ name: string
16459
+ folder: string
16460
+ online: boolean
16461
+ }
16462
+ movedAt?: string
15522
16463
  status: "active" | "archived"
15523
16464
  activeRunId: string | null
15524
16465
  lastMessageAt?: string
@@ -15677,7 +16618,9 @@ export type ListObservedAgentThreadMessagesResponses = {
15677
16618
  | "action.run_in_progress"
15678
16619
  | "action.timeout"
15679
16620
  | "agent.approval_authority_lost"
16621
+ | "agent.context_limit_exceeded"
15680
16622
  | "agent.execution_failed"
16623
+ | "agent.step_limit_reached"
15681
16624
  | "ai.usage_limit_exceeded"
15682
16625
  | "ai.usage_limit_unavailable"
15683
16626
  | "connector.adapter_invalid"
@@ -15878,6 +16821,17 @@ export type ListObservedAgentThreadMessagesResponses = {
15878
16821
  [key: string]: unknown
15879
16822
  }
15880
16823
  | null
16824
+ outputFile?: {
16825
+ fileRef: {
16826
+ blobId: string
16827
+ digest: string
16828
+ sizeBytes: number
16829
+ fileName?: string
16830
+ mediaType?: string
16831
+ logicalPath?: string
16832
+ }
16833
+ path: string
16834
+ }
15881
16835
  }
15882
16836
  | {
15883
16837
  type: "tool-call"
@@ -15930,6 +16884,10 @@ export type ListObservedAgentThreadMessagesResponses = {
15930
16884
  }>
15931
16885
  compaction?: {
15932
16886
  checkpointId: string
16887
+ /**
16888
+ * `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.
16889
+ */
16890
+ reason: "threshold" | "overflow"
15933
16891
  summary: string
15934
16892
  createdAt: string
15935
16893
  }
@@ -16158,7 +17116,9 @@ export type ListObservedAgentThreadRunsResponses = {
16158
17116
  code:
16159
17117
  | "internal.unexpected"
16160
17118
  | "runtime.cancelled"
17119
+ | "agent.context_limit_exceeded"
16161
17120
  | "agent.execution_failed"
17121
+ | "agent.step_limit_reached"
16162
17122
  | "ai.usage_limit_exceeded"
16163
17123
  | "ai.usage_limit_unavailable"
16164
17124
  message: string
@@ -18912,7 +19872,7 @@ export type ListModelsResponses = {
18912
19872
 
18913
19873
  export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses]
18914
19874
 
18915
- export type RemoveObjectLinkData = {
19875
+ export type GetObjectLinkLineageData = {
18916
19876
  body?: never
18917
19877
  path: {
18918
19878
  objectTypeId: string
@@ -18923,22 +19883,16 @@ export type RemoveObjectLinkData = {
18923
19883
  targetTypeId: string
18924
19884
  targetId: string
18925
19885
  }
18926
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
19886
+ url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}/lineage"
18927
19887
  }
18928
19888
 
18929
- export type RemoveObjectLinkErrors = {
19889
+ export type GetObjectLinkLineageErrors = {
18930
19890
  /**
18931
19891
  * Response for status 400
18932
19892
  */
18933
19893
  400: {
18934
19894
  error: string
18935
19895
  }
18936
- /**
18937
- * Response for status 403
18938
- */
18939
- 403: {
18940
- error: string
18941
- }
18942
19896
  /**
18943
19897
  * Response for status 404
18944
19898
  */
@@ -18947,118 +19901,169 @@ export type RemoveObjectLinkErrors = {
18947
19901
  }
18948
19902
  }
18949
19903
 
18950
- export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors]
19904
+ export type GetObjectLinkLineageError = GetObjectLinkLineageErrors[keyof GetObjectLinkLineageErrors]
18951
19905
 
18952
- export type RemoveObjectLinkResponses = {
19906
+ export type GetObjectLinkLineageResponses = {
18953
19907
  /**
18954
19908
  * Response for status 200
18955
19909
  */
18956
19910
  200: {
18957
- success: boolean
18958
- }
18959
- }
18960
-
18961
- export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses]
18962
-
18963
- export type UpsertObjectLinkData = {
18964
- body: {
19911
+ sourceTypeId: string
19912
+ sourceId: string
19913
+ linkId: string
18965
19914
  targetTypeId: string
18966
19915
  targetId: string
18967
- properties?: {
18968
- [key: string]: unknown
19916
+ existence: {
19917
+ source: string
19918
+ columns?: Array<string>
19919
+ origins?: Array<{
19920
+ datasetId: string
19921
+ column: string
19922
+ }>
18969
19923
  }
18970
- }
18971
- path: {
18972
- objectTypeId: string
18973
- objectId: string
18974
- linkId: string
18975
- }
18976
- query?: never
18977
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}"
18978
- }
18979
-
18980
- export type UpsertObjectLinkErrors = {
18981
- /**
18982
- * Response for status 400
18983
- */
18984
- 400: {
18985
- error: string
18986
- }
18987
- /**
18988
- * Response for status 403
18989
- */
18990
- 403: {
18991
- error: string
18992
- }
18993
- /**
18994
- * Response for status 404
18995
- */
18996
- 404: {
18997
- error: string
18998
- }
18999
- }
19000
-
19001
- export type UpsertObjectLinkError = UpsertObjectLinkErrors[keyof UpsertObjectLinkErrors]
19002
-
19003
- export type UpsertObjectLinkResponses = {
19004
- /**
19005
- * Response for status 200
19006
- */
19007
- 200: {
19008
- success: boolean
19009
- }
19010
- }
19011
-
19012
- export type UpsertObjectLinkResponse = UpsertObjectLinkResponses[keyof UpsertObjectLinkResponses]
19013
-
19014
- export type AppendTelemetryData = {
19015
- body: {
19016
- value?: unknown
19017
- unit?: string
19018
- at?: string
19019
- }
19020
- path: {
19021
- objectTypeId: string
19022
- objectId: string
19023
- propertyId: string
19024
- }
19025
- query?: never
19026
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}"
19027
- }
19028
-
19029
- export type AppendTelemetryErrors = {
19030
- /**
19031
- * Response for status 400
19032
- */
19033
- 400: {
19034
- error: string
19035
- }
19036
- /**
19037
- * Response for status 403
19038
- */
19039
- 403: {
19040
- error: string
19041
- }
19042
- /**
19043
- * Response for status 404
19044
- */
19045
- 404: {
19046
- error: string
19047
- }
19048
- }
19049
-
19050
- export type AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors]
19051
-
19052
- export type AppendTelemetryResponses = {
19053
- /**
19054
- * Response for status 200
19055
- */
19056
- 200: {
19057
- success: boolean
19924
+ /**
19925
+ * Keyed `projection:<id>`, `commit:<id>`, `commit@<instant>` when the commit is unknown, `telemetry:<commitId>` and `identity`.
19926
+ */
19927
+ sources: {
19928
+ [key: string]:
19929
+ | {
19930
+ kind: "projection"
19931
+ projectionId: string
19932
+ /**
19933
+ * Absent for a caller who cannot view the projection's runs.
19934
+ */
19935
+ projectionRunId?: string
19936
+ /**
19937
+ * The dataset version applied. Absent for a caller who cannot view the dataset.
19938
+ */
19939
+ datasetVersion?: {
19940
+ datasetId: string
19941
+ versionId: string
19942
+ }
19943
+ /**
19944
+ * 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.
19945
+ */
19946
+ rowOrigins?: Array<{
19947
+ datasetId: string
19948
+ column: string
19949
+ }>
19950
+ }
19951
+ | {
19952
+ kind: "edit"
19953
+ /**
19954
+ * Null when the commits made at that instant cannot be told apart.
19955
+ */
19956
+ commitId: string | null
19957
+ committedAt: string
19958
+ /**
19959
+ * Principal on whose behalf the commit ran; absent for automatic or anonymous work.
19960
+ */
19961
+ requestedBy?: {
19962
+ type: "user" | "serviceAccount"
19963
+ id: string
19964
+ }
19965
+ executor?:
19966
+ | {
19967
+ type: "request"
19968
+ requestId: string
19969
+ }
19970
+ | {
19971
+ type: "primitive"
19972
+ kind:
19973
+ | "action"
19974
+ | "pipeline"
19975
+ | "projection"
19976
+ | "rule"
19977
+ | "sync"
19978
+ | "webhook"
19979
+ | "workflow"
19980
+ id: string
19981
+ runId: string
19982
+ }
19983
+ | {
19984
+ type: "agent"
19985
+ runId: string
19986
+ }
19987
+ | {
19988
+ type: "kernel"
19989
+ operation:
19990
+ | {
19991
+ type: "ontology.recover"
19992
+ recoveryId: string
19993
+ }
19994
+ | {
19995
+ type: "ontology.indexVectors"
19996
+ indexingId: string
19997
+ }
19998
+ }
19999
+ /**
20000
+ * Absent for a direct write, and for an Action run the caller cannot view.
20001
+ */
20002
+ action?: {
20003
+ actionId: string
20004
+ runId: string
20005
+ }
20006
+ }
20007
+ | {
20008
+ kind: "telemetry"
20009
+ commitId: string
20010
+ committedAt: string
20011
+ projectionId?: string
20012
+ /**
20013
+ * Principal on whose behalf the commit ran; absent for automatic or anonymous work.
20014
+ */
20015
+ requestedBy?: {
20016
+ type: "user" | "serviceAccount"
20017
+ id: string
20018
+ }
20019
+ executor?:
20020
+ | {
20021
+ type: "request"
20022
+ requestId: string
20023
+ }
20024
+ | {
20025
+ type: "primitive"
20026
+ kind:
20027
+ | "action"
20028
+ | "pipeline"
20029
+ | "projection"
20030
+ | "rule"
20031
+ | "sync"
20032
+ | "webhook"
20033
+ | "workflow"
20034
+ id: string
20035
+ runId: string
20036
+ }
20037
+ | {
20038
+ type: "agent"
20039
+ runId: string
20040
+ }
20041
+ | {
20042
+ type: "kernel"
20043
+ operation:
20044
+ | {
20045
+ type: "ontology.recover"
20046
+ recoveryId: string
20047
+ }
20048
+ | {
20049
+ type: "ontology.indexVectors"
20050
+ indexingId: string
20051
+ }
20052
+ }
20053
+ }
20054
+ | {
20055
+ kind: "identity"
20056
+ }
20057
+ }
20058
+ /**
20059
+ * Steps left out because the caller cannot view them.
20060
+ */
20061
+ restricted: number
19058
20062
  }
19059
20063
  }
19060
20064
 
19061
- export type AppendTelemetryResponse = AppendTelemetryResponses[keyof AppendTelemetryResponses]
20065
+ export type GetObjectLinkLineageResponse =
20066
+ GetObjectLinkLineageResponses[keyof GetObjectLinkLineageResponses]
19062
20067
 
19063
20068
  export type GetBulkTelemetryHistoryData = {
19064
20069
  body: {