@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.
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-0p42gyb5.js} +12 -7
  6. package/dist/{chunk-1zthvcby.js.map → chunk-0p42gyb5.js.map} +3 -3
  7. package/dist/{chunk-z28fxqd0.js → chunk-3kfn00we.js} +1 -1
  8. package/dist/{chunk-2ezmcce2.js → chunk-hkn0keqj.js} +1 -1
  9. package/dist/{chunk-14c2tg81.js → chunk-k2na62sa.js} +64 -40
  10. package/dist/chunk-k2na62sa.js.map +19 -0
  11. package/dist/{chunk-fzpxv5j5.js → chunk-r50kxqa5.js} +2 -2
  12. package/dist/{chunk-4xavy5bx.js → chunk-rrexv1gk.js} +52 -4
  13. package/dist/chunk-rrexv1gk.js.map +11 -0
  14. package/dist/connectors/queries.d.ts.map +1 -1
  15. package/dist/generated/@tanstack/react-query.gen.d.ts +2905 -476
  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 +47 -15
  20. package/dist/generated/sdk.gen.d.ts.map +1 -1
  21. package/dist/generated/types.gen.d.ts +1250 -243
  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 +334 -77
  26. package/dist/hooks.js.map +8 -6
  27. package/dist/index.js +23 -15
  28. package/dist/index.js.map +1 -1
  29. package/dist/logs.js +3 -3
  30. package/dist/models.js +19 -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 +47 -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 +240 -105
  46. package/src/generated/index.ts +47 -24
  47. package/src/generated/sdk.gen.ts +177 -73
  48. package/src/generated/types.gen.ts +1359 -169
  49. package/src/hooks.ts +11 -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 +77 -0
  55. package/dist/chunk-14c2tg81.js.map +0 -19
  56. package/dist/chunk-4xavy5bx.js.map +0 -10
  57. /package/dist/{chunk-z28fxqd0.js.map → chunk-3kfn00we.js.map} +0 -0
  58. /package/dist/{chunk-2ezmcce2.js.map → chunk-hkn0keqj.js.map} +0 -0
  59. /package/dist/{chunk-fzpxv5j5.js.map → chunk-r50kxqa5.js.map} +0 -0
@@ -44,6 +44,10 @@ export type ObjectQueryIssue = {
44
44
  message: string;
45
45
  };
46
46
  export type ObjectQueryPlanSummary = {
47
+ /**
48
+ * Every object type the query reads: where it starts, and what it traverses or expands
49
+ */
50
+ readObjectTypeIds?: Array<string>;
47
51
  mode: "pushdown" | "fallback" | "pipeline" | "rejected";
48
52
  providerIssues: Array<ObjectQueryIssue>;
49
53
  fallbackIssues: Array<ObjectQueryIssue>;
@@ -368,7 +372,7 @@ export type AgentChild = {
368
372
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
369
373
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
370
374
  error?: {
371
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
375
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
372
376
  message: string;
373
377
  retryable: boolean;
374
378
  at: string;
@@ -435,7 +439,7 @@ export type AgentChildRun = {
435
439
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
436
440
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
437
441
  error?: {
438
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
442
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
439
443
  message: string;
440
444
  retryable: boolean;
441
445
  at: string;
@@ -635,6 +639,32 @@ export type GetAuthSessionResponses = {
635
639
  avatarUrl?: string;
636
640
  groupIds: Array<string>;
637
641
  };
642
+ access: {
643
+ /**
644
+ * Members: a membership policy lets them invite, assign groups or suspend
645
+ */
646
+ members: boolean;
647
+ /**
648
+ * Service accounts: a membership policy lets them manage them
649
+ */
650
+ serviceAccounts: boolean;
651
+ /**
652
+ * Usage: they hold can.observe(agent.usage)
653
+ */
654
+ usage: boolean;
655
+ /**
656
+ * Activity: they hold can.observe(project.activity)
657
+ */
658
+ activity: boolean;
659
+ /**
660
+ * The Console: they hold can.observe(project.console)
661
+ */
662
+ console: boolean;
663
+ /**
664
+ * Console › Logs: they hold can.observe(project.logs)
665
+ */
666
+ logs: boolean;
667
+ };
638
668
  session: {
639
669
  id: string;
640
670
  expiresAt: string;
@@ -1753,6 +1783,10 @@ export type ListAuthMembersResponses = {
1753
1783
  suspend: boolean;
1754
1784
  reactivate: boolean;
1755
1785
  };
1786
+ /**
1787
+ * Their latest session's last request, or its sign-in; absent if they never signed in
1788
+ */
1789
+ lastActiveAt?: string;
1756
1790
  }>;
1757
1791
  hasMore: boolean;
1758
1792
  total: number;
@@ -1943,6 +1977,18 @@ export type GetAiAccountingOverviewData = {
1943
1977
  to: string;
1944
1978
  providerId?: string;
1945
1979
  modelId?: string;
1980
+ /**
1981
+ * 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
1982
+ */
1983
+ person?: string;
1984
+ /**
1985
+ * Calls from agent conversations and their sub-agents, actions, workflows or one as workflow:<id>, or other
1986
+ */
1987
+ source?: string;
1988
+ /**
1989
+ * Calls to one kind of model
1990
+ */
1991
+ kind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking" | "web-search";
1946
1992
  bucket: "hour" | "day" | "week";
1947
1993
  };
1948
1994
  url: "/api/ai/accounting/overview";
@@ -2112,6 +2158,81 @@ export type GetAiAccountingOverviewResponses = {
2112
2158
  start: string;
2113
2159
  end: string;
2114
2160
  }>;
2161
+ /**
2162
+ * Each model's own series, every period included
2163
+ */
2164
+ modelSeries: Array<{
2165
+ providerId: string;
2166
+ modelId: string;
2167
+ series: Array<{
2168
+ modelCallCount: number;
2169
+ /**
2170
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
2171
+ */
2172
+ usage: {
2173
+ inputTokens?: number;
2174
+ outputTokens?: number;
2175
+ totalTokens?: number;
2176
+ uncachedInputTokens?: number;
2177
+ cacheReadInputTokens?: number;
2178
+ cacheWriteInputTokens?: number;
2179
+ textOutputTokens?: number;
2180
+ reasoningOutputTokens?: number;
2181
+ /**
2182
+ * Audio content duration in milliseconds; not billed duration.
2183
+ */
2184
+ audioDurationMs?: number;
2185
+ /**
2186
+ * Output tokens that encode generated images, within outputTokens.
2187
+ */
2188
+ imageOutputTokens?: number;
2189
+ /**
2190
+ * Output tokens that encode generated audio, within outputTokens.
2191
+ */
2192
+ audioOutputTokens?: number;
2193
+ /**
2194
+ * Images the call returned.
2195
+ */
2196
+ outputImages?: number;
2197
+ /**
2198
+ * Input characters, counted by the provider's own billing rule.
2199
+ */
2200
+ inputCharacters?: number;
2201
+ reportingStatus: "complete" | "partial" | "unavailable";
2202
+ };
2203
+ usageCoverage: {
2204
+ /**
2205
+ * Calls reporting both inputTokens and outputTokens.
2206
+ */
2207
+ completeCallCount: number;
2208
+ fieldCallCounts: {
2209
+ inputTokens: number;
2210
+ outputTokens: number;
2211
+ uncachedInputTokens: number;
2212
+ cacheReadInputTokens: number;
2213
+ cacheWriteInputTokens: number;
2214
+ textOutputTokens: number;
2215
+ reasoningOutputTokens: number;
2216
+ audioDurationMs: number;
2217
+ imageOutputTokens: number;
2218
+ audioOutputTokens: number;
2219
+ outputImages: number;
2220
+ inputCharacters: number;
2221
+ };
2222
+ };
2223
+ costs: {
2224
+ amounts: Array<{
2225
+ currency: string;
2226
+ amountNanos: string;
2227
+ }>;
2228
+ ratedCallCount: number;
2229
+ unpriceableCallCount: number;
2230
+ unvaluedCallCount: number;
2231
+ };
2232
+ start: string;
2233
+ end: string;
2234
+ }>;
2235
+ }>;
2115
2236
  models: Array<{
2116
2237
  modelCallCount: number;
2117
2238
  /**
@@ -2180,6 +2301,87 @@ export type GetAiAccountingOverviewResponses = {
2180
2301
  providerId: string;
2181
2302
  modelId: string;
2182
2303
  }>;
2304
+ /**
2305
+ * Who asked for the calls
2306
+ */
2307
+ people: Array<{
2308
+ modelCallCount: number;
2309
+ /**
2310
+ * Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
2311
+ */
2312
+ usage: {
2313
+ inputTokens?: number;
2314
+ outputTokens?: number;
2315
+ totalTokens?: number;
2316
+ uncachedInputTokens?: number;
2317
+ cacheReadInputTokens?: number;
2318
+ cacheWriteInputTokens?: number;
2319
+ textOutputTokens?: number;
2320
+ reasoningOutputTokens?: number;
2321
+ /**
2322
+ * Audio content duration in milliseconds; not billed duration.
2323
+ */
2324
+ audioDurationMs?: number;
2325
+ /**
2326
+ * Output tokens that encode generated images, within outputTokens.
2327
+ */
2328
+ imageOutputTokens?: number;
2329
+ /**
2330
+ * Output tokens that encode generated audio, within outputTokens.
2331
+ */
2332
+ audioOutputTokens?: number;
2333
+ /**
2334
+ * Images the call returned.
2335
+ */
2336
+ outputImages?: number;
2337
+ /**
2338
+ * Input characters, counted by the provider's own billing rule.
2339
+ */
2340
+ inputCharacters?: number;
2341
+ reportingStatus: "complete" | "partial" | "unavailable";
2342
+ };
2343
+ usageCoverage: {
2344
+ /**
2345
+ * Calls reporting both inputTokens and outputTokens.
2346
+ */
2347
+ completeCallCount: number;
2348
+ fieldCallCounts: {
2349
+ inputTokens: number;
2350
+ outputTokens: number;
2351
+ uncachedInputTokens: number;
2352
+ cacheReadInputTokens: number;
2353
+ cacheWriteInputTokens: number;
2354
+ textOutputTokens: number;
2355
+ reasoningOutputTokens: number;
2356
+ audioDurationMs: number;
2357
+ imageOutputTokens: number;
2358
+ audioOutputTokens: number;
2359
+ outputImages: number;
2360
+ inputCharacters: number;
2361
+ };
2362
+ };
2363
+ costs: {
2364
+ amounts: Array<{
2365
+ currency: string;
2366
+ amountNanos: string;
2367
+ }>;
2368
+ ratedCallCount: number;
2369
+ unpriceableCallCount: number;
2370
+ unvaluedCallCount: number;
2371
+ };
2372
+ /**
2373
+ * Absent for the calls nobody asked for, such as a schedule's
2374
+ */
2375
+ requester?: {
2376
+ type: "user" | "serviceAccount";
2377
+ id: string;
2378
+ /**
2379
+ * Their name, or a service account's
2380
+ */
2381
+ name?: string;
2382
+ email?: string;
2383
+ };
2384
+ }>;
2183
2385
  kinds: Array<{
2184
2386
  modelCallCount: number;
2185
2387
  /**
@@ -2248,7 +2450,7 @@ export type GetAiAccountingOverviewResponses = {
2248
2450
  /**
2249
2451
  * Absent for calls recorded before their kind was captured.
2250
2452
  */
2251
- modelKind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking";
2453
+ modelKind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking" | "web-search";
2252
2454
  }>;
2253
2455
  agents: Array<{
2254
2456
  modelCallCount: number;
@@ -2463,6 +2665,18 @@ export type ListAiModelCallsData = {
2463
2665
  to: string;
2464
2666
  providerId?: string;
2465
2667
  modelId?: string;
2668
+ /**
2669
+ * 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
2670
+ */
2671
+ person?: string;
2672
+ /**
2673
+ * Calls from agent conversations and their sub-agents, actions, workflows or one as workflow:<id>, or other
2674
+ */
2675
+ source?: string;
2676
+ /**
2677
+ * Calls to one kind of model
2678
+ */
2679
+ kind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking" | "web-search";
2466
2680
  executionId?: string;
2467
2681
  valuationStatus?: "rated" | "unpriceable" | "unvalued";
2468
2682
  limit?: string;
@@ -2504,7 +2718,7 @@ export type ListAiModelCallsResponses = {
2504
2718
  callId: string;
2505
2719
  providerId: string;
2506
2720
  requestedModelId: string;
2507
- modelKind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking";
2721
+ modelKind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking" | "web-search";
2508
2722
  requestedReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2509
2723
  budgetTokens: number;
2510
2724
  };
@@ -3158,9 +3372,25 @@ export type ListAiModelCallGroupsData = {
3158
3372
  to: string;
3159
3373
  providerId?: string;
3160
3374
  modelId?: string;
3375
+ /**
3376
+ * 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
3377
+ */
3378
+ person?: string;
3379
+ /**
3380
+ * Calls from agent conversations and their sub-agents, actions, workflows or one as workflow:<id>, or other
3381
+ */
3382
+ source?: string;
3383
+ /**
3384
+ * Calls to one kind of model
3385
+ */
3386
+ kind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking" | "web-search";
3161
3387
  valuationStatus?: "rated" | "unpriceable" | "unvalued";
3162
3388
  limit?: string;
3163
3389
  offset?: string;
3390
+ /**
3391
+ * Most recent first, the default, or costliest first
3392
+ */
3393
+ sort?: "recent" | "cost";
3164
3394
  };
3165
3395
  url: "/api/ai/model-call-groups";
3166
3396
  };
@@ -3223,6 +3453,8 @@ export type ListAiModelCallGroupsResponses = {
3223
3453
  * Present when every call that reports tokens did; images and speech don't.
3224
3454
  */
3225
3455
  totalTokens?: number;
3456
+ inputTokens?: number;
3457
+ cacheReadInputTokens?: number;
3226
3458
  outputImages?: number;
3227
3459
  inputCharacters?: number;
3228
3460
  audioDurationMs?: number;
@@ -3238,6 +3470,9 @@ export type ListAiModelCallGroupsResponses = {
3238
3470
  firstCallAt: string;
3239
3471
  lastCallAt: string;
3240
3472
  label?: string;
3473
+ /**
3474
+ * A conversation's turns and sub-agents, or a workflow run's agent steps
3475
+ */
3241
3476
  executions: Array<{
3242
3477
  executionId: string;
3243
3478
  attribution?: {
@@ -3271,6 +3506,8 @@ export type ListAiModelCallGroupsResponses = {
3271
3506
  * Present when every call that reports tokens did; images and speech don't.
3272
3507
  */
3273
3508
  totalTokens?: number;
3509
+ inputTokens?: number;
3510
+ cacheReadInputTokens?: number;
3274
3511
  outputImages?: number;
3275
3512
  inputCharacters?: number;
3276
3513
  audioDurationMs?: number;
@@ -3288,10 +3525,36 @@ export type ListAiModelCallGroupsResponses = {
3288
3525
  models: Array<{
3289
3526
  providerId: string;
3290
3527
  modelId: string;
3528
+ modelCallCount: number;
3529
+ costs: {
3530
+ amounts: Array<{
3531
+ currency: string;
3532
+ amountNanos: string;
3533
+ }>;
3534
+ ratedCallCount: number;
3535
+ unpriceableCallCount: number;
3536
+ unvaluedCallCount: number;
3537
+ };
3291
3538
  }>;
3292
3539
  label?: string;
3540
+ /**
3541
+ * What a turn was asked, when the caller can read its conversation
3542
+ */
3543
+ prompt?: string;
3293
3544
  }>;
3294
3545
  canOpenThread: boolean;
3546
+ /**
3547
+ * Who started it
3548
+ */
3549
+ requester?: {
3550
+ type: "user" | "serviceAccount";
3551
+ id: string;
3552
+ /**
3553
+ * Their name, or a service account's
3554
+ */
3555
+ name?: string;
3556
+ email?: string;
3557
+ };
3295
3558
  }>;
3296
3559
  total: number;
3297
3560
  hasMore: boolean;
@@ -5236,6 +5499,7 @@ export type ListDatasetVersionsResponses = {
5236
5499
  kind: "sync" | "pipeline" | "ingest";
5237
5500
  id?: string;
5238
5501
  runId?: string;
5502
+ stepId?: string;
5239
5503
  };
5240
5504
  inputs?: Array<{
5241
5505
  datasetId: string;
@@ -5297,6 +5561,7 @@ export type GetDatasetVersionResponses = {
5297
5561
  kind: "sync" | "pipeline" | "ingest";
5298
5562
  id?: string;
5299
5563
  runId?: string;
5564
+ stepId?: string;
5300
5565
  };
5301
5566
  inputs?: Array<{
5302
5567
  datasetId: string;
@@ -5307,6 +5572,79 @@ export type GetDatasetVersionResponses = {
5307
5572
  };
5308
5573
  };
5309
5574
  export type GetDatasetVersionResponse = GetDatasetVersionResponses[keyof GetDatasetVersionResponses];
5575
+ export type GetDatasetVersionLineageData = {
5576
+ body?: never;
5577
+ path: {
5578
+ datasetId: string;
5579
+ versionId: string;
5580
+ };
5581
+ query?: {
5582
+ depth?: string;
5583
+ };
5584
+ url: "/api/datasets/{datasetId}/versions/{versionId}/lineage";
5585
+ };
5586
+ export type GetDatasetVersionLineageErrors = {
5587
+ /**
5588
+ * Response for status 400
5589
+ */
5590
+ 400: {
5591
+ error: string;
5592
+ };
5593
+ /**
5594
+ * Response for status 404
5595
+ */
5596
+ 404: {
5597
+ error: string;
5598
+ /**
5599
+ * Stable machine-readable failure code for programmatic handling.
5600
+ */
5601
+ code: "dataset.not_found" | "dataset.version_not_found";
5602
+ };
5603
+ };
5604
+ export type GetDatasetVersionLineageError = GetDatasetVersionLineageErrors[keyof GetDatasetVersionLineageErrors];
5605
+ export type GetDatasetVersionLineageResponses = {
5606
+ /**
5607
+ * Response for status 200
5608
+ */
5609
+ 200: {
5610
+ nodes: Array<{
5611
+ datasetId: string;
5612
+ versionId: string;
5613
+ parentVersionId?: string;
5614
+ mode: "snapshot" | "append" | "merge" | "schema";
5615
+ createdAt: string;
5616
+ producer?: {
5617
+ kind: "sync" | "pipeline" | "ingest";
5618
+ id?: string;
5619
+ runId?: string;
5620
+ stepId?: string;
5621
+ };
5622
+ } | {
5623
+ datasetId: string;
5624
+ versionId: string;
5625
+ expired: true;
5626
+ }>;
5627
+ edges: Array<{
5628
+ from: {
5629
+ datasetId: string;
5630
+ versionId: string;
5631
+ };
5632
+ to: {
5633
+ datasetId: string;
5634
+ versionId: string;
5635
+ };
5636
+ }>;
5637
+ /**
5638
+ * Versions left out because the caller cannot view their dataset.
5639
+ */
5640
+ restricted: number;
5641
+ /**
5642
+ * Whether the walk stopped at `depth` or at the node cap.
5643
+ */
5644
+ truncated: boolean;
5645
+ };
5646
+ };
5647
+ export type GetDatasetVersionLineageResponse = GetDatasetVersionLineageResponses[keyof GetDatasetVersionLineageResponses];
5310
5648
  export type ListDatasetRowsData = {
5311
5649
  body?: never;
5312
5650
  path: {
@@ -5363,6 +5701,7 @@ export type ListDatasetRowsResponses = {
5363
5701
  kind: "sync" | "pipeline" | "ingest";
5364
5702
  id?: string;
5365
5703
  runId?: string;
5704
+ stepId?: string;
5366
5705
  };
5367
5706
  inputs?: Array<{
5368
5707
  datasetId: string;
@@ -6982,7 +7321,7 @@ export type GetWorkflowAgentNodeExecutionResponses = {
6982
7321
  } | {
6983
7322
  kind: "error";
6984
7323
  error: {
6985
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
7324
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
6986
7325
  message: string;
6987
7326
  retryable: boolean;
6988
7327
  at: string;
@@ -7088,6 +7427,17 @@ export type GetWorkflowAgentNodeExecutionResponses = {
7088
7427
  output: string | number | boolean | Array<unknown> | {
7089
7428
  [key: string]: unknown;
7090
7429
  } | null;
7430
+ outputFile?: {
7431
+ fileRef: {
7432
+ blobId: string;
7433
+ digest: string;
7434
+ sizeBytes: number;
7435
+ fileName?: string;
7436
+ mediaType?: string;
7437
+ logicalPath?: string;
7438
+ };
7439
+ path: string;
7440
+ };
7091
7441
  } | {
7092
7442
  type: "tool-call";
7093
7443
  toolCallId: string;
@@ -7122,7 +7472,7 @@ export type GetWorkflowAgentNodeExecutionResponses = {
7122
7472
  } | null>;
7123
7473
  failurePhase?: "agent-loop" | "structured-finalizer";
7124
7474
  error?: {
7125
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
7475
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
7126
7476
  message: string;
7127
7477
  retryable: boolean;
7128
7478
  at: string;
@@ -8761,71 +9111,177 @@ export type GetObjectResponses = {
8761
9111
  };
8762
9112
  };
8763
9113
  export type GetObjectResponse = GetObjectResponses[keyof GetObjectResponses];
8764
- export type UpsertObjectData = {
8765
- body: {
8766
- properties: {
8767
- [key: string]: unknown;
8768
- };
8769
- };
9114
+ export type GetObjectLineageData = {
9115
+ body?: never;
8770
9116
  path: {
8771
9117
  objectTypeId: string;
8772
9118
  objectId: string;
8773
9119
  };
8774
9120
  query?: never;
8775
- url: "/api/objects/{objectTypeId}/{objectId}";
9121
+ url: "/api/objects/{objectTypeId}/{objectId}/lineage";
8776
9122
  };
8777
- export type UpsertObjectErrors = {
8778
- /**
8779
- * Response for status 400
8780
- */
8781
- 400: {
8782
- error: string;
8783
- };
8784
- /**
8785
- * Response for status 403
8786
- */
8787
- 403: {
8788
- error: string;
8789
- };
9123
+ export type GetObjectLineageErrors = {
8790
9124
  /**
8791
9125
  * Response for status 404
8792
9126
  */
8793
9127
  404: {
8794
9128
  error: string;
8795
9129
  };
8796
- /**
8797
- * Response for status 409
8798
- */
8799
- 409: {
8800
- error: string;
8801
- /**
8802
- * Stable machine-readable failure code for programmatic handling.
8803
- */
8804
- code: "object.unique_violation";
8805
- };
8806
9130
  };
8807
- export type UpsertObjectError = UpsertObjectErrors[keyof UpsertObjectErrors];
8808
- export type UpsertObjectResponses = {
9131
+ export type GetObjectLineageError = GetObjectLineageErrors[keyof GetObjectLineageErrors];
9132
+ export type GetObjectLineageResponses = {
8809
9133
  /**
8810
9134
  * Response for status 200
8811
9135
  */
8812
9136
  200: {
8813
- score?: number;
8814
- primaryId: string;
8815
9137
  objectTypeId: string;
8816
- properties: {
8817
- [key: string]: unknown;
9138
+ primaryId: string;
9139
+ existence: {
9140
+ source: string;
8818
9141
  };
8819
- redactions?: {
9142
+ /**
9143
+ * Keyed `projection:<id>`, `commit:<id>`, `commit@<instant>` when the commit is unknown, `telemetry:<commitId>` and `identity`.
9144
+ */
9145
+ sources: {
8820
9146
  [key: string]: {
8821
- reason: "missing_clearance";
9147
+ kind: "projection";
9148
+ projectionId: string;
9149
+ /**
9150
+ * Absent for a caller who cannot view the projection's runs.
9151
+ */
9152
+ projectionRunId?: string;
9153
+ /**
9154
+ * The dataset version applied. Absent for a caller who cannot view the dataset.
9155
+ */
9156
+ datasetVersion?: {
9157
+ datasetId: string;
9158
+ versionId: string;
9159
+ };
9160
+ /**
9161
+ * 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.
9162
+ */
9163
+ rowOrigins?: Array<{
9164
+ datasetId: string;
9165
+ column: string;
9166
+ }>;
9167
+ } | {
9168
+ kind: "edit";
9169
+ /**
9170
+ * Null when the commits made at that instant cannot be told apart.
9171
+ */
9172
+ commitId: string | null;
9173
+ committedAt: string;
9174
+ /**
9175
+ * Principal on whose behalf the commit ran; absent for automatic or anonymous work.
9176
+ */
9177
+ requestedBy?: {
9178
+ type: "user" | "serviceAccount";
9179
+ id: string;
9180
+ };
9181
+ executor?: {
9182
+ type: "request";
9183
+ requestId: string;
9184
+ } | {
9185
+ type: "primitive";
9186
+ kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
9187
+ id: string;
9188
+ runId: string;
9189
+ } | {
9190
+ type: "agent";
9191
+ runId: string;
9192
+ } | {
9193
+ type: "kernel";
9194
+ operation: {
9195
+ type: "ontology.recover";
9196
+ recoveryId: string;
9197
+ } | {
9198
+ type: "ontology.indexVectors";
9199
+ indexingId: string;
9200
+ };
9201
+ };
9202
+ /**
9203
+ * Absent for a direct write, and for an Action run the caller cannot view.
9204
+ */
9205
+ action?: {
9206
+ actionId: string;
9207
+ runId: string;
9208
+ };
9209
+ } | {
9210
+ kind: "telemetry";
9211
+ commitId: string;
9212
+ committedAt: string;
9213
+ projectionId?: string;
9214
+ /**
9215
+ * Principal on whose behalf the commit ran; absent for automatic or anonymous work.
9216
+ */
9217
+ requestedBy?: {
9218
+ type: "user" | "serviceAccount";
9219
+ id: string;
9220
+ };
9221
+ executor?: {
9222
+ type: "request";
9223
+ requestId: string;
9224
+ } | {
9225
+ type: "primitive";
9226
+ kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
9227
+ id: string;
9228
+ runId: string;
9229
+ } | {
9230
+ type: "agent";
9231
+ runId: string;
9232
+ } | {
9233
+ type: "kernel";
9234
+ operation: {
9235
+ type: "ontology.recover";
9236
+ recoveryId: string;
9237
+ } | {
9238
+ type: "ontology.indexVectors";
9239
+ indexingId: string;
9240
+ };
9241
+ };
9242
+ } | {
9243
+ kind: "identity";
8822
9244
  };
8823
9245
  };
8824
- createdAt: string;
8825
- updatedAt: string;
9246
+ properties: {
9247
+ [key: string]: {
9248
+ /**
9249
+ * The source that decided the value: a key of `sources`.
9250
+ */
9251
+ source: string;
9252
+ column?: string;
9253
+ origins?: Array<{
9254
+ datasetId: string;
9255
+ column: string;
9256
+ }>;
9257
+ removed?: true;
9258
+ at?: string;
9259
+ replaced?: {
9260
+ source: string;
9261
+ column?: string;
9262
+ /**
9263
+ * Any JSON-compatible value.
9264
+ */
9265
+ value?: string | number | boolean | Array<unknown> | {
9266
+ [key: string]: unknown;
9267
+ } | null;
9268
+ };
9269
+ resolution?: {
9270
+ strategy: "editsWin";
9271
+ } | {
9272
+ strategy: "mostRecent";
9273
+ sourceUpdatedAt: string;
9274
+ editedAt?: string;
9275
+ };
9276
+ };
9277
+ };
9278
+ /**
9279
+ * Steps left out because the caller cannot view them.
9280
+ */
9281
+ restricted: number;
8826
9282
  };
8827
9283
  };
8828
- export type UpsertObjectResponse = UpsertObjectResponses[keyof UpsertObjectResponses];
9284
+ export type GetObjectLineageResponse = GetObjectLineageResponses[keyof GetObjectLineageResponses];
8829
9285
  export type GetObjectByUniquePropertyData = {
8830
9286
  body: {
8831
9287
  /**
@@ -9023,7 +9479,7 @@ export type RequestActionErrors = {
9023
9479
  /**
9024
9480
  * Stable machine-readable failure code for programmatic handling.
9025
9481
  */
9026
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
9482
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
9027
9483
  };
9028
9484
  /**
9029
9485
  * Response for status 503
@@ -9820,7 +10276,23 @@ export type ListAgentThreadsResponses = {
9820
10276
  } | null;
9821
10277
  };
9822
10278
  runsOn?: "computer";
9823
- computerId?: string;
10279
+ computer?: {
10280
+ id: string;
10281
+ name: string;
10282
+ folder: string;
10283
+ online: boolean;
10284
+ };
10285
+ backgroundCommands?: Array<{
10286
+ threadId: string;
10287
+ id: string;
10288
+ command: string;
10289
+ status: "running" | "exited" | "stopped";
10290
+ exitCode?: number;
10291
+ startedAt: string;
10292
+ endedAt?: string;
10293
+ stopping?: boolean;
10294
+ }>;
10295
+ movedAt?: string;
9824
10296
  status: "active" | "archived";
9825
10297
  activeRunId: string | null;
9826
10298
  lastMessageAt?: string;
@@ -9845,6 +10317,11 @@ export type CreateAgentThreadData = {
9845
10317
  } | null;
9846
10318
  };
9847
10319
  runsOn?: "computer";
10320
+ computer?: {
10321
+ id: string;
10322
+ name: string;
10323
+ folder: string;
10324
+ };
9848
10325
  };
9849
10326
  path?: never;
9850
10327
  query?: never;
@@ -9924,7 +10401,23 @@ export type CreateAgentThreadResponses = {
9924
10401
  } | null;
9925
10402
  };
9926
10403
  runsOn?: "computer";
9927
- computerId?: string;
10404
+ computer?: {
10405
+ id: string;
10406
+ name: string;
10407
+ folder: string;
10408
+ online: boolean;
10409
+ };
10410
+ backgroundCommands?: Array<{
10411
+ threadId: string;
10412
+ id: string;
10413
+ command: string;
10414
+ status: "running" | "exited" | "stopped";
10415
+ exitCode?: number;
10416
+ startedAt: string;
10417
+ endedAt?: string;
10418
+ stopping?: boolean;
10419
+ }>;
10420
+ movedAt?: string;
9928
10421
  status: "active" | "archived";
9929
10422
  activeRunId: string | null;
9930
10423
  lastMessageAt?: string;
@@ -10012,7 +10505,23 @@ export type GetAgentThreadResponses = {
10012
10505
  } | null;
10013
10506
  };
10014
10507
  runsOn?: "computer";
10015
- computerId?: string;
10508
+ computer?: {
10509
+ id: string;
10510
+ name: string;
10511
+ folder: string;
10512
+ online: boolean;
10513
+ };
10514
+ backgroundCommands?: Array<{
10515
+ threadId: string;
10516
+ id: string;
10517
+ command: string;
10518
+ status: "running" | "exited" | "stopped";
10519
+ exitCode?: number;
10520
+ startedAt: string;
10521
+ endedAt?: string;
10522
+ stopping?: boolean;
10523
+ }>;
10524
+ movedAt?: string;
10016
10525
  status: "active" | "archived";
10017
10526
  activeRunId: string | null;
10018
10527
  lastMessageAt?: string;
@@ -10121,7 +10630,23 @@ export type AddAgentThreadParticipantsResponses = {
10121
10630
  } | null;
10122
10631
  };
10123
10632
  runsOn?: "computer";
10124
- computerId?: string;
10633
+ computer?: {
10634
+ id: string;
10635
+ name: string;
10636
+ folder: string;
10637
+ online: boolean;
10638
+ };
10639
+ backgroundCommands?: Array<{
10640
+ threadId: string;
10641
+ id: string;
10642
+ command: string;
10643
+ status: "running" | "exited" | "stopped";
10644
+ exitCode?: number;
10645
+ startedAt: string;
10646
+ endedAt?: string;
10647
+ stopping?: boolean;
10648
+ }>;
10649
+ movedAt?: string;
10125
10650
  status: "active" | "archived";
10126
10651
  activeRunId: string | null;
10127
10652
  lastMessageAt?: string;
@@ -10268,7 +10793,23 @@ export type ForkAgentThreadResponses = {
10268
10793
  } | null;
10269
10794
  };
10270
10795
  runsOn?: "computer";
10271
- computerId?: string;
10796
+ computer?: {
10797
+ id: string;
10798
+ name: string;
10799
+ folder: string;
10800
+ online: boolean;
10801
+ };
10802
+ backgroundCommands?: Array<{
10803
+ threadId: string;
10804
+ id: string;
10805
+ command: string;
10806
+ status: "running" | "exited" | "stopped";
10807
+ exitCode?: number;
10808
+ startedAt: string;
10809
+ endedAt?: string;
10810
+ stopping?: boolean;
10811
+ }>;
10812
+ movedAt?: string;
10272
10813
  status: "active" | "archived";
10273
10814
  activeRunId: string | null;
10274
10815
  lastMessageAt?: string;
@@ -10366,7 +10907,23 @@ export type RecreateAgentThreadSandboxResponses = {
10366
10907
  } | null;
10367
10908
  };
10368
10909
  runsOn?: "computer";
10369
- computerId?: string;
10910
+ computer?: {
10911
+ id: string;
10912
+ name: string;
10913
+ folder: string;
10914
+ online: boolean;
10915
+ };
10916
+ backgroundCommands?: Array<{
10917
+ threadId: string;
10918
+ id: string;
10919
+ command: string;
10920
+ status: "running" | "exited" | "stopped";
10921
+ exitCode?: number;
10922
+ startedAt: string;
10923
+ endedAt?: string;
10924
+ stopping?: boolean;
10925
+ }>;
10926
+ movedAt?: string;
10370
10927
  status: "active" | "archived";
10371
10928
  activeRunId: string | null;
10372
10929
  lastMessageAt?: string;
@@ -10482,7 +11039,7 @@ export type ListAgentThreadMessagesResponses = {
10482
11039
  } | {
10483
11040
  kind: "error";
10484
11041
  error: {
10485
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
11042
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
10486
11043
  message: string;
10487
11044
  retryable: boolean;
10488
11045
  at: string;
@@ -10588,6 +11145,17 @@ export type ListAgentThreadMessagesResponses = {
10588
11145
  output: string | number | boolean | Array<unknown> | {
10589
11146
  [key: string]: unknown;
10590
11147
  } | null;
11148
+ outputFile?: {
11149
+ fileRef: {
11150
+ blobId: string;
11151
+ digest: string;
11152
+ sizeBytes: number;
11153
+ fileName?: string;
11154
+ mediaType?: string;
11155
+ logicalPath?: string;
11156
+ };
11157
+ path: string;
11158
+ };
10591
11159
  } | {
10592
11160
  type: "tool-call";
10593
11161
  toolCallId: string;
@@ -10625,6 +11193,10 @@ export type ListAgentThreadMessagesResponses = {
10625
11193
  }>;
10626
11194
  compaction?: {
10627
11195
  checkpointId: string;
11196
+ /**
11197
+ * `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.
11198
+ */
11199
+ reason: "threshold" | "overflow";
10628
11200
  summary: string;
10629
11201
  createdAt: string;
10630
11202
  };
@@ -10831,7 +11403,7 @@ export type PostAgentThreadMessageResponses = {
10831
11403
  message: string;
10832
11404
  }>;
10833
11405
  error?: {
10834
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11406
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
10835
11407
  message: string;
10836
11408
  retryable: boolean;
10837
11409
  at: string;
@@ -11067,7 +11639,7 @@ export type CancelAgentRunResponses = {
11067
11639
  message: string;
11068
11640
  }>;
11069
11641
  error?: {
11070
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11642
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11071
11643
  message: string;
11072
11644
  retryable: boolean;
11073
11645
  at: string;
@@ -11227,7 +11799,7 @@ export type RetryAgentRunResponses = {
11227
11799
  message: string;
11228
11800
  }>;
11229
11801
  error?: {
11230
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11802
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11231
11803
  message: string;
11232
11804
  retryable: boolean;
11233
11805
  at: string;
@@ -11250,6 +11822,82 @@ export type RetryAgentRunResponses = {
11250
11822
  };
11251
11823
  };
11252
11824
  export type RetryAgentRunResponse = RetryAgentRunResponses[keyof RetryAgentRunResponses];
11825
+ export type GetAgentThreadContextData = {
11826
+ body?: never;
11827
+ path: {
11828
+ threadId: string;
11829
+ };
11830
+ query?: {
11831
+ provider?: string;
11832
+ modelId?: string;
11833
+ };
11834
+ url: "/api/agent-threads/{threadId}/context";
11835
+ };
11836
+ export type GetAgentThreadContextErrors = {
11837
+ /**
11838
+ * Response for status 400
11839
+ */
11840
+ 400: {
11841
+ error: string;
11842
+ };
11843
+ /**
11844
+ * Response for status 404
11845
+ */
11846
+ 404: {
11847
+ error: string;
11848
+ };
11849
+ /**
11850
+ * Response for status 409
11851
+ */
11852
+ 409: {
11853
+ error: string;
11854
+ code?: string;
11855
+ };
11856
+ /**
11857
+ * Response for status 501
11858
+ */
11859
+ 501: {
11860
+ error: string;
11861
+ };
11862
+ };
11863
+ export type GetAgentThreadContextError = GetAgentThreadContextErrors[keyof GetAgentThreadContextErrors];
11864
+ export type GetAgentThreadContextResponses = {
11865
+ /**
11866
+ * Response for status 200
11867
+ */
11868
+ 200: {
11869
+ model: {
11870
+ provider: string;
11871
+ modelId: string;
11872
+ };
11873
+ windowTokens: number;
11874
+ limitTokens: number;
11875
+ usedTokens?: number;
11876
+ parts?: Array<{
11877
+ /**
11878
+ * `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.
11879
+ */
11880
+ part: "system" | "instructions" | "memory" | "skills" | "ontology" | "tools" | "summary" | "messages" | "toolResults" | "files";
11881
+ tokens: number;
11882
+ }>;
11883
+ lastCall?: {
11884
+ inputTokens: number;
11885
+ outputTokens?: number;
11886
+ cacheReadInputTokens?: number;
11887
+ occurredAt: string;
11888
+ };
11889
+ lastCompaction?: {
11890
+ /**
11891
+ * `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.
11892
+ */
11893
+ reason: "threshold" | "overflow";
11894
+ createdAt: string;
11895
+ estimatedInputTokensBefore: number;
11896
+ estimatedInputTokensAfter: number;
11897
+ };
11898
+ };
11899
+ };
11900
+ export type GetAgentThreadContextResponse = GetAgentThreadContextResponses[keyof GetAgentThreadContextResponses];
11253
11901
  export type ListAgentThreadRunsData = {
11254
11902
  body?: never;
11255
11903
  path: {
@@ -11360,7 +12008,7 @@ export type ListAgentThreadRunsResponses = {
11360
12008
  message: string;
11361
12009
  }>;
11362
12010
  error?: {
11363
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
12011
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11364
12012
  message: string;
11365
12013
  retryable: boolean;
11366
12014
  at: string;
@@ -11489,7 +12137,7 @@ export type GetAgentRunResponses = {
11489
12137
  message: string;
11490
12138
  }>;
11491
12139
  error?: {
11492
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
12140
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11493
12141
  message: string;
11494
12142
  retryable: boolean;
11495
12143
  at: string;
@@ -11631,7 +12279,7 @@ export type CancelAgentRunByIdResponses = {
11631
12279
  message: string;
11632
12280
  }>;
11633
12281
  error?: {
11634
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
12282
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11635
12283
  message: string;
11636
12284
  retryable: boolean;
11637
12285
  at: string;
@@ -11756,46 +12404,374 @@ export type HeadAgentChildFileContentData = {
11756
12404
  };
11757
12405
  url: "/api/agent-threads/{threadId}/child-files/content";
11758
12406
  };
11759
- export type HeadAgentChildFileContentErrors = {
12407
+ export type HeadAgentChildFileContentErrors = {
12408
+ /**
12409
+ * Response for status 400
12410
+ */
12411
+ 400: ErrorResponse;
12412
+ /**
12413
+ * Response for status 404
12414
+ */
12415
+ 404: ErrorResponse;
12416
+ /**
12417
+ * Requested byte range is not satisfiable
12418
+ */
12419
+ 416: unknown;
12420
+ /**
12421
+ * The storage role backing this content is not configured
12422
+ */
12423
+ 501: ErrorResponse;
12424
+ };
12425
+ export type HeadAgentChildFileContentError = HeadAgentChildFileContentErrors[keyof HeadAgentChildFileContentErrors];
12426
+ export type HeadAgentChildFileContentResponses = {
12427
+ /**
12428
+ * File content headers
12429
+ */
12430
+ 200: unknown;
12431
+ /**
12432
+ * Partial file content headers
12433
+ */
12434
+ 206: unknown;
12435
+ };
12436
+ export type MoveAgentThreadToCloudData = {
12437
+ body?: never;
12438
+ path: {
12439
+ threadId: string;
12440
+ };
12441
+ query?: never;
12442
+ url: "/api/agent-threads/{threadId}/computer";
12443
+ };
12444
+ export type MoveAgentThreadToCloudErrors = {
12445
+ /**
12446
+ * Response for status 400
12447
+ */
12448
+ 400: {
12449
+ error: string;
12450
+ code?: string;
12451
+ };
12452
+ /**
12453
+ * Response for status 403
12454
+ */
12455
+ 403: {
12456
+ error: string;
12457
+ code?: string;
12458
+ };
12459
+ /**
12460
+ * Response for status 404
12461
+ */
12462
+ 404: {
12463
+ error: string;
12464
+ code?: string;
12465
+ };
12466
+ /**
12467
+ * Response for status 409
12468
+ */
12469
+ 409: {
12470
+ error: string;
12471
+ code?: string;
12472
+ };
12473
+ /**
12474
+ * Response for status 501
12475
+ */
12476
+ 501: {
12477
+ error: string;
12478
+ };
12479
+ };
12480
+ export type MoveAgentThreadToCloudError = MoveAgentThreadToCloudErrors[keyof MoveAgentThreadToCloudErrors];
12481
+ export type MoveAgentThreadToCloudResponses = {
12482
+ /**
12483
+ * Response for status 200
12484
+ */
12485
+ 200: {
12486
+ sandboxState?: {
12487
+ name: string;
12488
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable";
12489
+ initialized: boolean;
12490
+ };
12491
+ id: string;
12492
+ projectId: string;
12493
+ kind: "conversation" | "subagent";
12494
+ parent?: {
12495
+ threadId: string;
12496
+ spawnedBy: string;
12497
+ key: string;
12498
+ };
12499
+ ownerPrincipal: {
12500
+ type: "user" | "serviceAccount" | "system";
12501
+ id: string;
12502
+ };
12503
+ owner: {
12504
+ type: "user" | "serviceAccount" | "system";
12505
+ id: string;
12506
+ displayName?: string;
12507
+ };
12508
+ participants: Array<{
12509
+ principal: {
12510
+ type: "user";
12511
+ id: string;
12512
+ displayName?: string;
12513
+ };
12514
+ addedAt: string;
12515
+ addedBy: {
12516
+ type: "user" | "serviceAccount" | "system";
12517
+ id: string;
12518
+ };
12519
+ }>;
12520
+ title?: string;
12521
+ sandboxParams?: {
12522
+ [key: string]: string | number | boolean | Array<unknown> | {
12523
+ [key: string]: unknown;
12524
+ } | null;
12525
+ };
12526
+ runsOn?: "computer";
12527
+ computer?: {
12528
+ id: string;
12529
+ name: string;
12530
+ folder: string;
12531
+ online: boolean;
12532
+ };
12533
+ backgroundCommands?: Array<{
12534
+ threadId: string;
12535
+ id: string;
12536
+ command: string;
12537
+ status: "running" | "exited" | "stopped";
12538
+ exitCode?: number;
12539
+ startedAt: string;
12540
+ endedAt?: string;
12541
+ stopping?: boolean;
12542
+ }>;
12543
+ movedAt?: string;
12544
+ status: "active" | "archived";
12545
+ activeRunId: string | null;
12546
+ lastMessageAt?: string;
12547
+ messageCount: number;
12548
+ createdAt: string;
12549
+ updatedAt: string;
12550
+ approvalMode?: "manual" | "accept-edits" | "auto";
12551
+ approvalModeSource?: "thread" | "default" | "fallback" | "run";
12552
+ };
12553
+ };
12554
+ export type MoveAgentThreadToCloudResponse = MoveAgentThreadToCloudResponses[keyof MoveAgentThreadToCloudResponses];
12555
+ export type MoveAgentThreadToComputerData = {
12556
+ body: {
12557
+ computer: {
12558
+ id: string;
12559
+ name: string;
12560
+ folder: string;
12561
+ };
12562
+ };
12563
+ path: {
12564
+ threadId: string;
12565
+ };
12566
+ query?: never;
12567
+ url: "/api/agent-threads/{threadId}/computer";
12568
+ };
12569
+ export type MoveAgentThreadToComputerErrors = {
12570
+ /**
12571
+ * Response for status 400
12572
+ */
12573
+ 400: {
12574
+ error: string;
12575
+ code?: string;
12576
+ };
12577
+ /**
12578
+ * Response for status 403
12579
+ */
12580
+ 403: {
12581
+ error: string;
12582
+ code?: string;
12583
+ };
12584
+ /**
12585
+ * Response for status 404
12586
+ */
12587
+ 404: {
12588
+ error: string;
12589
+ code?: string;
12590
+ };
12591
+ /**
12592
+ * Response for status 409
12593
+ */
12594
+ 409: {
12595
+ error: string;
12596
+ code?: string;
12597
+ };
12598
+ /**
12599
+ * Response for status 501
12600
+ */
12601
+ 501: {
12602
+ error: string;
12603
+ };
12604
+ };
12605
+ export type MoveAgentThreadToComputerError = MoveAgentThreadToComputerErrors[keyof MoveAgentThreadToComputerErrors];
12606
+ export type MoveAgentThreadToComputerResponses = {
12607
+ /**
12608
+ * Response for status 200
12609
+ */
12610
+ 200: {
12611
+ sandboxState?: {
12612
+ name: string;
12613
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable";
12614
+ initialized: boolean;
12615
+ };
12616
+ id: string;
12617
+ projectId: string;
12618
+ kind: "conversation" | "subagent";
12619
+ parent?: {
12620
+ threadId: string;
12621
+ spawnedBy: string;
12622
+ key: string;
12623
+ };
12624
+ ownerPrincipal: {
12625
+ type: "user" | "serviceAccount" | "system";
12626
+ id: string;
12627
+ };
12628
+ owner: {
12629
+ type: "user" | "serviceAccount" | "system";
12630
+ id: string;
12631
+ displayName?: string;
12632
+ };
12633
+ participants: Array<{
12634
+ principal: {
12635
+ type: "user";
12636
+ id: string;
12637
+ displayName?: string;
12638
+ };
12639
+ addedAt: string;
12640
+ addedBy: {
12641
+ type: "user" | "serviceAccount" | "system";
12642
+ id: string;
12643
+ };
12644
+ }>;
12645
+ title?: string;
12646
+ sandboxParams?: {
12647
+ [key: string]: string | number | boolean | Array<unknown> | {
12648
+ [key: string]: unknown;
12649
+ } | null;
12650
+ };
12651
+ runsOn?: "computer";
12652
+ computer?: {
12653
+ id: string;
12654
+ name: string;
12655
+ folder: string;
12656
+ online: boolean;
12657
+ };
12658
+ backgroundCommands?: Array<{
12659
+ threadId: string;
12660
+ id: string;
12661
+ command: string;
12662
+ status: "running" | "exited" | "stopped";
12663
+ exitCode?: number;
12664
+ startedAt: string;
12665
+ endedAt?: string;
12666
+ stopping?: boolean;
12667
+ }>;
12668
+ movedAt?: string;
12669
+ status: "active" | "archived";
12670
+ activeRunId: string | null;
12671
+ lastMessageAt?: string;
12672
+ messageCount: number;
12673
+ createdAt: string;
12674
+ updatedAt: string;
12675
+ approvalMode?: "manual" | "accept-edits" | "auto";
12676
+ approvalModeSource?: "thread" | "default" | "fallback" | "run";
12677
+ };
12678
+ };
12679
+ export type MoveAgentThreadToComputerResponse = MoveAgentThreadToComputerResponses[keyof MoveAgentThreadToComputerResponses];
12680
+ export type ReleaseAgentComputerSessionData = {
12681
+ body?: never;
12682
+ path: {
12683
+ sessionId: string;
12684
+ };
12685
+ query?: never;
12686
+ url: "/api/agent-computers/sessions/{sessionId}";
12687
+ };
12688
+ export type ReleaseAgentComputerSessionErrors = {
12689
+ /**
12690
+ * Response for status 501
12691
+ */
12692
+ 501: {
12693
+ error: string;
12694
+ };
12695
+ };
12696
+ export type ReleaseAgentComputerSessionError = ReleaseAgentComputerSessionErrors[keyof ReleaseAgentComputerSessionErrors];
12697
+ export type ReleaseAgentComputerSessionResponses = {
12698
+ /**
12699
+ * Response for status 204
12700
+ */
12701
+ 204: unknown;
12702
+ };
12703
+ export type HoldAgentComputerSessionData = {
12704
+ body: {
12705
+ computer: {
12706
+ id: string;
12707
+ name: string;
12708
+ folder: string;
12709
+ };
12710
+ backgroundCommands?: Array<{
12711
+ threadId: string;
12712
+ id: string;
12713
+ command: string;
12714
+ status: "running" | "exited" | "stopped";
12715
+ exitCode?: number;
12716
+ startedAt: string;
12717
+ endedAt?: string;
12718
+ }>;
12719
+ };
12720
+ path: {
12721
+ sessionId: string;
12722
+ };
12723
+ query?: never;
12724
+ url: "/api/agent-computers/sessions/{sessionId}";
12725
+ };
12726
+ export type HoldAgentComputerSessionErrors = {
11760
12727
  /**
11761
12728
  * Response for status 400
11762
12729
  */
11763
- 400: ErrorResponse;
11764
- /**
11765
- * Response for status 404
11766
- */
11767
- 404: ErrorResponse;
12730
+ 400: {
12731
+ error: string;
12732
+ code?: string;
12733
+ };
11768
12734
  /**
11769
- * Requested byte range is not satisfiable
12735
+ * Response for status 429
11770
12736
  */
11771
- 416: unknown;
12737
+ 429: {
12738
+ error: string;
12739
+ };
11772
12740
  /**
11773
- * The storage role backing this content is not configured
12741
+ * Response for status 501
11774
12742
  */
11775
- 501: ErrorResponse;
12743
+ 501: {
12744
+ error: string;
12745
+ };
11776
12746
  };
11777
- export type HeadAgentChildFileContentError = HeadAgentChildFileContentErrors[keyof HeadAgentChildFileContentErrors];
11778
- export type HeadAgentChildFileContentResponses = {
12747
+ export type HoldAgentComputerSessionError = HoldAgentComputerSessionErrors[keyof HoldAgentComputerSessionErrors];
12748
+ export type HoldAgentComputerSessionResponses = {
11779
12749
  /**
11780
- * File content headers
11781
- */
11782
- 200: unknown;
11783
- /**
11784
- * Partial file content headers
12750
+ * Response for status 200
11785
12751
  */
11786
- 206: unknown;
12752
+ 200: {
12753
+ expiresAt: string;
12754
+ waiting: Array<string>;
12755
+ stop?: Array<{
12756
+ threadId: string;
12757
+ id: string;
12758
+ startedAt: string;
12759
+ }>;
12760
+ };
11787
12761
  };
11788
- export type MoveAgentThreadToComputerData = {
12762
+ export type HoldAgentComputerSessionResponse = HoldAgentComputerSessionResponses[keyof HoldAgentComputerSessionResponses];
12763
+ export type StopAgentBackgroundCommandData = {
11789
12764
  body: {
11790
- computerId: string;
12765
+ startedAt: string;
11791
12766
  };
11792
12767
  path: {
11793
12768
  threadId: string;
12769
+ commandId: string;
11794
12770
  };
11795
12771
  query?: never;
11796
- url: "/api/agent-threads/{threadId}/computer";
12772
+ url: "/api/agent-threads/{threadId}/background-commands/{commandId}/stop";
11797
12773
  };
11798
- export type MoveAgentThreadToComputerErrors = {
12774
+ export type StopAgentBackgroundCommandErrors = {
11799
12775
  /**
11800
12776
  * Response for status 400
11801
12777
  */
@@ -11824,65 +12800,25 @@ export type MoveAgentThreadToComputerErrors = {
11824
12800
  error: string;
11825
12801
  };
11826
12802
  };
11827
- export type MoveAgentThreadToComputerError = MoveAgentThreadToComputerErrors[keyof MoveAgentThreadToComputerErrors];
11828
- export type MoveAgentThreadToComputerResponses = {
12803
+ export type StopAgentBackgroundCommandError = StopAgentBackgroundCommandErrors[keyof StopAgentBackgroundCommandErrors];
12804
+ export type StopAgentBackgroundCommandResponses = {
11829
12805
  /**
11830
- * Response for status 200
12806
+ * Response for status 202
11831
12807
  */
11832
- 200: {
11833
- sandboxState?: {
11834
- name: string;
11835
- status: "new" | "busy" | "ready" | "blocked" | "unavailable";
11836
- initialized: boolean;
11837
- };
11838
- id: string;
11839
- projectId: string;
11840
- kind: "conversation" | "subagent";
11841
- parent?: {
12808
+ 202: {
12809
+ command: {
11842
12810
  threadId: string;
11843
- spawnedBy: string;
11844
- key: string;
11845
- };
11846
- ownerPrincipal: {
11847
- type: "user" | "serviceAccount" | "system";
11848
- id: string;
11849
- };
11850
- owner: {
11851
- type: "user" | "serviceAccount" | "system";
11852
12811
  id: string;
11853
- displayName?: string;
11854
- };
11855
- participants: Array<{
11856
- principal: {
11857
- type: "user";
11858
- id: string;
11859
- displayName?: string;
11860
- };
11861
- addedAt: string;
11862
- addedBy: {
11863
- type: "user" | "serviceAccount" | "system";
11864
- id: string;
11865
- };
11866
- }>;
11867
- title?: string;
11868
- sandboxParams?: {
11869
- [key: string]: string | number | boolean | Array<unknown> | {
11870
- [key: string]: unknown;
11871
- } | null;
12812
+ command: string;
12813
+ status: "running" | "exited" | "stopped";
12814
+ exitCode?: number;
12815
+ startedAt: string;
12816
+ endedAt?: string;
12817
+ stopping?: boolean;
11872
12818
  };
11873
- runsOn?: "computer";
11874
- computerId?: string;
11875
- status: "active" | "archived";
11876
- activeRunId: string | null;
11877
- lastMessageAt?: string;
11878
- messageCount: number;
11879
- createdAt: string;
11880
- updatedAt: string;
11881
- approvalMode?: "manual" | "accept-edits" | "auto";
11882
- approvalModeSource?: "thread" | "default" | "fallback" | "run";
11883
12819
  };
11884
12820
  };
11885
- export type MoveAgentThreadToComputerResponse = MoveAgentThreadToComputerResponses[keyof MoveAgentThreadToComputerResponses];
12821
+ export type StopAgentBackgroundCommandResponse = StopAgentBackgroundCommandResponses[keyof StopAgentBackgroundCommandResponses];
11886
12822
  export type GetAgentPreferencesData = {
11887
12823
  body?: never;
11888
12824
  path?: never;
@@ -12042,7 +12978,23 @@ export type SetAgentThreadApprovalModeResponses = {
12042
12978
  } | null;
12043
12979
  };
12044
12980
  runsOn?: "computer";
12045
- computerId?: string;
12981
+ computer?: {
12982
+ id: string;
12983
+ name: string;
12984
+ folder: string;
12985
+ online: boolean;
12986
+ };
12987
+ backgroundCommands?: Array<{
12988
+ threadId: string;
12989
+ id: string;
12990
+ command: string;
12991
+ status: "running" | "exited" | "stopped";
12992
+ exitCode?: number;
12993
+ startedAt: string;
12994
+ endedAt?: string;
12995
+ stopping?: boolean;
12996
+ }>;
12997
+ movedAt?: string;
12046
12998
  status: "active" | "archived";
12047
12999
  activeRunId: string | null;
12048
13000
  lastMessageAt?: string;
@@ -12167,7 +13119,7 @@ export type ListAgentThreadApprovalsResponses = {
12167
13119
  } | {
12168
13120
  kind: "error";
12169
13121
  error: {
12170
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
13122
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12171
13123
  message: string;
12172
13124
  retryable: boolean;
12173
13125
  at: string;
@@ -12316,7 +13268,7 @@ export type DecideAgentApprovalResponses = {
12316
13268
  } | {
12317
13269
  kind: "error";
12318
13270
  error: {
12319
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
13271
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12320
13272
  message: string;
12321
13273
  retryable: boolean;
12322
13274
  at: string;
@@ -12404,7 +13356,7 @@ export type DecideAgentApprovalResponses = {
12404
13356
  message: string;
12405
13357
  }>;
12406
13358
  error?: {
12407
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13359
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
12408
13360
  message: string;
12409
13361
  retryable: boolean;
12410
13362
  at: string;
@@ -12537,7 +13489,7 @@ export type ListAgentApprovalsResponses = {
12537
13489
  } | {
12538
13490
  kind: "error";
12539
13491
  error: {
12540
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
13492
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12541
13493
  message: string;
12542
13494
  retryable: boolean;
12543
13495
  at: string;
@@ -12640,7 +13592,23 @@ export type GetObservedAgentThreadResponses = {
12640
13592
  } | null;
12641
13593
  };
12642
13594
  runsOn?: "computer";
12643
- computerId?: string;
13595
+ computer?: {
13596
+ id: string;
13597
+ name: string;
13598
+ folder: string;
13599
+ online: boolean;
13600
+ };
13601
+ backgroundCommands?: Array<{
13602
+ threadId: string;
13603
+ id: string;
13604
+ command: string;
13605
+ status: "running" | "exited" | "stopped";
13606
+ exitCode?: number;
13607
+ startedAt: string;
13608
+ endedAt?: string;
13609
+ stopping?: boolean;
13610
+ }>;
13611
+ movedAt?: string;
12644
13612
  status: "active" | "archived";
12645
13613
  activeRunId: string | null;
12646
13614
  lastMessageAt?: string;
@@ -12762,7 +13730,7 @@ export type ListObservedAgentThreadMessagesResponses = {
12762
13730
  } | {
12763
13731
  kind: "error";
12764
13732
  error: {
12765
- code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
13733
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12766
13734
  message: string;
12767
13735
  retryable: boolean;
12768
13736
  at: string;
@@ -12868,6 +13836,17 @@ export type ListObservedAgentThreadMessagesResponses = {
12868
13836
  output: string | number | boolean | Array<unknown> | {
12869
13837
  [key: string]: unknown;
12870
13838
  } | null;
13839
+ outputFile?: {
13840
+ fileRef: {
13841
+ blobId: string;
13842
+ digest: string;
13843
+ sizeBytes: number;
13844
+ fileName?: string;
13845
+ mediaType?: string;
13846
+ logicalPath?: string;
13847
+ };
13848
+ path: string;
13849
+ };
12871
13850
  } | {
12872
13851
  type: "tool-call";
12873
13852
  toolCallId: string;
@@ -12905,6 +13884,10 @@ export type ListObservedAgentThreadMessagesResponses = {
12905
13884
  }>;
12906
13885
  compaction?: {
12907
13886
  checkpointId: string;
13887
+ /**
13888
+ * `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.
13889
+ */
13890
+ reason: "threshold" | "overflow";
12908
13891
  summary: string;
12909
13892
  createdAt: string;
12910
13893
  };
@@ -13090,7 +14073,7 @@ export type ListObservedAgentThreadRunsResponses = {
13090
14073
  message: string;
13091
14074
  }>;
13092
14075
  error?: {
13093
- code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14076
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13094
14077
  message: string;
13095
14078
  retryable: boolean;
13096
14079
  at: string;
@@ -15590,7 +16573,7 @@ export type ListModelsResponses = {
15590
16573
  };
15591
16574
  };
15592
16575
  export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
15593
- export type RemoveObjectLinkData = {
16576
+ export type GetObjectLinkLineageData = {
15594
16577
  body?: never;
15595
16578
  path: {
15596
16579
  objectTypeId: string;
@@ -15601,21 +16584,15 @@ export type RemoveObjectLinkData = {
15601
16584
  targetTypeId: string;
15602
16585
  targetId: string;
15603
16586
  };
15604
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}";
16587
+ url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}/lineage";
15605
16588
  };
15606
- export type RemoveObjectLinkErrors = {
16589
+ export type GetObjectLinkLineageErrors = {
15607
16590
  /**
15608
16591
  * Response for status 400
15609
16592
  */
15610
16593
  400: {
15611
16594
  error: string;
15612
16595
  };
15613
- /**
15614
- * Response for status 403
15615
- */
15616
- 403: {
15617
- error: string;
15618
- };
15619
16596
  /**
15620
16597
  * Response for status 404
15621
16598
  */
@@ -15623,106 +16600,136 @@ export type RemoveObjectLinkErrors = {
15623
16600
  error: string;
15624
16601
  };
15625
16602
  };
15626
- export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors];
15627
- export type RemoveObjectLinkResponses = {
16603
+ export type GetObjectLinkLineageError = GetObjectLinkLineageErrors[keyof GetObjectLinkLineageErrors];
16604
+ export type GetObjectLinkLineageResponses = {
15628
16605
  /**
15629
16606
  * Response for status 200
15630
16607
  */
15631
16608
  200: {
15632
- success: boolean;
15633
- };
15634
- };
15635
- export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses];
15636
- export type UpsertObjectLinkData = {
15637
- body: {
16609
+ sourceTypeId: string;
16610
+ sourceId: string;
16611
+ linkId: string;
15638
16612
  targetTypeId: string;
15639
16613
  targetId: string;
15640
- properties?: {
15641
- [key: string]: unknown;
16614
+ existence: {
16615
+ source: string;
16616
+ columns?: Array<string>;
16617
+ origins?: Array<{
16618
+ datasetId: string;
16619
+ column: string;
16620
+ }>;
15642
16621
  };
15643
- };
15644
- path: {
15645
- objectTypeId: string;
15646
- objectId: string;
15647
- linkId: string;
15648
- };
15649
- query?: never;
15650
- url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}";
15651
- };
15652
- export type UpsertObjectLinkErrors = {
15653
- /**
15654
- * Response for status 400
15655
- */
15656
- 400: {
15657
- error: string;
15658
- };
15659
- /**
15660
- * Response for status 403
15661
- */
15662
- 403: {
15663
- error: string;
15664
- };
15665
- /**
15666
- * Response for status 404
15667
- */
15668
- 404: {
15669
- error: string;
15670
- };
15671
- };
15672
- export type UpsertObjectLinkError = UpsertObjectLinkErrors[keyof UpsertObjectLinkErrors];
15673
- export type UpsertObjectLinkResponses = {
15674
- /**
15675
- * Response for status 200
15676
- */
15677
- 200: {
15678
- success: boolean;
15679
- };
15680
- };
15681
- export type UpsertObjectLinkResponse = UpsertObjectLinkResponses[keyof UpsertObjectLinkResponses];
15682
- export type AppendTelemetryData = {
15683
- body: {
15684
- value?: unknown;
15685
- unit?: string;
15686
- at?: string;
15687
- };
15688
- path: {
15689
- objectTypeId: string;
15690
- objectId: string;
15691
- propertyId: string;
15692
- };
15693
- query?: never;
15694
- url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}";
15695
- };
15696
- export type AppendTelemetryErrors = {
15697
- /**
15698
- * Response for status 400
15699
- */
15700
- 400: {
15701
- error: string;
15702
- };
15703
- /**
15704
- * Response for status 403
15705
- */
15706
- 403: {
15707
- error: string;
15708
- };
15709
- /**
15710
- * Response for status 404
15711
- */
15712
- 404: {
15713
- error: string;
15714
- };
15715
- };
15716
- export type AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors];
15717
- export type AppendTelemetryResponses = {
15718
- /**
15719
- * Response for status 200
15720
- */
15721
- 200: {
15722
- success: boolean;
16622
+ /**
16623
+ * Keyed `projection:<id>`, `commit:<id>`, `commit@<instant>` when the commit is unknown, `telemetry:<commitId>` and `identity`.
16624
+ */
16625
+ sources: {
16626
+ [key: string]: {
16627
+ kind: "projection";
16628
+ projectionId: string;
16629
+ /**
16630
+ * Absent for a caller who cannot view the projection's runs.
16631
+ */
16632
+ projectionRunId?: string;
16633
+ /**
16634
+ * The dataset version applied. Absent for a caller who cannot view the dataset.
16635
+ */
16636
+ datasetVersion?: {
16637
+ datasetId: string;
16638
+ versionId: string;
16639
+ };
16640
+ /**
16641
+ * 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.
16642
+ */
16643
+ rowOrigins?: Array<{
16644
+ datasetId: string;
16645
+ column: string;
16646
+ }>;
16647
+ } | {
16648
+ kind: "edit";
16649
+ /**
16650
+ * Null when the commits made at that instant cannot be told apart.
16651
+ */
16652
+ commitId: string | null;
16653
+ committedAt: string;
16654
+ /**
16655
+ * Principal on whose behalf the commit ran; absent for automatic or anonymous work.
16656
+ */
16657
+ requestedBy?: {
16658
+ type: "user" | "serviceAccount";
16659
+ id: string;
16660
+ };
16661
+ executor?: {
16662
+ type: "request";
16663
+ requestId: string;
16664
+ } | {
16665
+ type: "primitive";
16666
+ kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
16667
+ id: string;
16668
+ runId: string;
16669
+ } | {
16670
+ type: "agent";
16671
+ runId: string;
16672
+ } | {
16673
+ type: "kernel";
16674
+ operation: {
16675
+ type: "ontology.recover";
16676
+ recoveryId: string;
16677
+ } | {
16678
+ type: "ontology.indexVectors";
16679
+ indexingId: string;
16680
+ };
16681
+ };
16682
+ /**
16683
+ * Absent for a direct write, and for an Action run the caller cannot view.
16684
+ */
16685
+ action?: {
16686
+ actionId: string;
16687
+ runId: string;
16688
+ };
16689
+ } | {
16690
+ kind: "telemetry";
16691
+ commitId: string;
16692
+ committedAt: string;
16693
+ projectionId?: string;
16694
+ /**
16695
+ * Principal on whose behalf the commit ran; absent for automatic or anonymous work.
16696
+ */
16697
+ requestedBy?: {
16698
+ type: "user" | "serviceAccount";
16699
+ id: string;
16700
+ };
16701
+ executor?: {
16702
+ type: "request";
16703
+ requestId: string;
16704
+ } | {
16705
+ type: "primitive";
16706
+ kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
16707
+ id: string;
16708
+ runId: string;
16709
+ } | {
16710
+ type: "agent";
16711
+ runId: string;
16712
+ } | {
16713
+ type: "kernel";
16714
+ operation: {
16715
+ type: "ontology.recover";
16716
+ recoveryId: string;
16717
+ } | {
16718
+ type: "ontology.indexVectors";
16719
+ indexingId: string;
16720
+ };
16721
+ };
16722
+ } | {
16723
+ kind: "identity";
16724
+ };
16725
+ };
16726
+ /**
16727
+ * Steps left out because the caller cannot view them.
16728
+ */
16729
+ restricted: number;
15723
16730
  };
15724
16731
  };
15725
- export type AppendTelemetryResponse = AppendTelemetryResponses[keyof AppendTelemetryResponses];
16732
+ export type GetObjectLinkLineageResponse = GetObjectLinkLineageResponses[keyof GetObjectLinkLineageResponses];
15726
16733
  export type GetBulkTelemetryHistoryData = {
15727
16734
  body: {
15728
16735
  series: Array<{