@deepraxis/sdk 0.1.1-dev.ddaf60a → 0.1.1-dev.df2f02a

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.
@@ -17,6 +17,7 @@ export declare function createAgent(transport: Transport): {
17
17
  speed?: "standard" | "fast";
18
18
  settings?: {
19
19
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
20
+ max_output_tokens?: number;
20
21
  };
21
22
  };
22
23
  multiagent?: null | Types.AgentManaged39;
@@ -41,6 +42,7 @@ export declare function createAgent(transport: Transport): {
41
42
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
42
43
  id: string;
43
44
  access: "read_only" | "read_write" | "invoke";
45
+ customer_access?: "read_only" | "read_write" | "invoke";
44
46
  instructions?: string;
45
47
  readonly verified?: boolean;
46
48
  enabled?: boolean;
@@ -142,6 +144,7 @@ export declare function createAgent(transport: Transport): {
142
144
  allowManagedHooksOnly?: boolean;
143
145
  allowManagedMcpServersOnly?: boolean;
144
146
  allowManagedPermissionRulesOnly?: boolean;
147
+ idleCompaction?: boolean;
145
148
  autoMemoryEnabled?: boolean;
146
149
  disabled?: {
147
150
  subagents?: Array<string>;
@@ -150,7 +153,6 @@ export declare function createAgent(transport: Transport): {
150
153
  mcpServers?: Array<string>;
151
154
  hooks?: Array<string>;
152
155
  };
153
- idleCompaction?: boolean;
154
156
  outputStyle?: string;
155
157
  } | null;
156
158
  models?: {
@@ -158,6 +160,7 @@ export declare function createAgent(transport: Transport): {
158
160
  };
159
161
  avatar: string | null;
160
162
  creation_source: string | null;
163
+ managed_by: string | null;
161
164
  identity_number: string | null;
162
165
  environment_id?: string | null;
163
166
  vault_ids?: Array<string>;
@@ -199,6 +202,7 @@ export declare function createAgent(transport: Transport): {
199
202
  speed?: "standard" | "fast";
200
203
  settings?: {
201
204
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
205
+ max_output_tokens?: number;
202
206
  };
203
207
  };
204
208
  multiagent?: null | Types.AgentManaged39;
@@ -223,6 +227,7 @@ export declare function createAgent(transport: Transport): {
223
227
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
224
228
  id: string;
225
229
  access: "read_only" | "read_write" | "invoke";
230
+ customer_access?: "read_only" | "read_write" | "invoke";
226
231
  instructions?: string;
227
232
  readonly verified?: boolean;
228
233
  enabled?: boolean;
@@ -232,6 +237,13 @@ export declare function createAgent(transport: Transport): {
232
237
  enabled?: boolean;
233
238
  }>;
234
239
  kind: "general" | "service" | "assume";
240
+ computers?: {
241
+ default: string;
242
+ allowed: Array<{
243
+ template: string;
244
+ name: string;
245
+ }>;
246
+ };
235
247
  computer_id?: string;
236
248
  subagent_model?: string | null;
237
249
  subagents?: Array<{
@@ -324,6 +336,7 @@ export declare function createAgent(transport: Transport): {
324
336
  allowManagedHooksOnly?: boolean;
325
337
  allowManagedMcpServersOnly?: boolean;
326
338
  allowManagedPermissionRulesOnly?: boolean;
339
+ idleCompaction?: boolean;
327
340
  autoMemoryEnabled?: boolean;
328
341
  disabled?: {
329
342
  subagents?: Array<string>;
@@ -332,7 +345,6 @@ export declare function createAgent(transport: Transport): {
332
345
  mcpServers?: Array<string>;
333
346
  hooks?: Array<string>;
334
347
  };
335
- idleCompaction?: boolean;
336
348
  outputStyle?: string;
337
349
  } | null;
338
350
  models?: {
@@ -340,6 +352,7 @@ export declare function createAgent(transport: Transport): {
340
352
  };
341
353
  avatar: string | null;
342
354
  creation_source: string | null;
355
+ managed_by: string | null;
343
356
  identity_number: string | null;
344
357
  environment_id?: string | null;
345
358
  vault_ids?: Array<string>;
@@ -352,42 +365,6 @@ export declare function createAgent(transport: Transport): {
352
365
  }> | null;
353
366
  }>;
354
367
  customers: {
355
- auth: {
356
- accessTokens: {
357
- create: (options: import("./core/transport.js").CallOptions<Types.CreateCustomerAccessTokenData>) => Promise<{
358
- type: "customer_access_token";
359
- access_token: string;
360
- expires_at: string;
361
- session_expires_at: string;
362
- customer: {
363
- id: string;
364
- type: "identified" | "anonymous";
365
- };
366
- }>;
367
- deleteCurrent: (options: import("./core/transport.js").CallOptions<Types.DeleteCurrentCustomerAccessTokenData>) => Promise<void>;
368
- renew: {
369
- create: (options: import("./core/transport.js").CallOptions<Types.RenewCustomerAccessTokenData>) => Promise<{
370
- type: "customer_access_token";
371
- access_token: string;
372
- expires_at: string;
373
- session_expires_at: string;
374
- customer: {
375
- id: string;
376
- type: "identified" | "anonymous";
377
- };
378
- }>;
379
- };
380
- };
381
- grantCodes: {
382
- create: (options: import("./core/transport.js").CallOptions<Types.CreateCustomerGrantCodeData>) => Promise<{
383
- type: "customer_grant_code";
384
- code: string;
385
- customer_id: string;
386
- expires_at: string;
387
- hosted_url?: string;
388
- }>;
389
- };
390
- };
391
368
  block: {
392
369
  create: (options: import("./core/transport.js").CallOptions<Types.BlockCustomerData>) => Promise<{
393
370
  id: string;
@@ -519,7 +496,6 @@ export declare function createAgent(transport: Transport): {
519
496
  run_id: string | null;
520
497
  message_id?: string;
521
498
  } | {
522
- full_access_available?: boolean;
523
499
  id: string;
524
500
  input: Types.AgentManaged197;
525
501
  mcp_server_name: string;
@@ -529,6 +505,18 @@ export declare function createAgent(transport: Transport): {
529
505
  evaluated_permission?: "allow" | "deny" | "ask";
530
506
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
531
507
  session_thread_id?: null | string;
508
+ permission_suggestions?: Array<{
509
+ type: "add_rules";
510
+ behavior: "allow";
511
+ destination: "agent" | "session";
512
+ rules: Array<{
513
+ tool_name: string;
514
+ rule_content: string;
515
+ }>;
516
+ }>;
517
+ full_access_available?: boolean;
518
+ user_once?: true;
519
+ guarded_rule?: string;
532
520
  run_id: string | null;
533
521
  _meta?: {
534
522
  ui?: {
@@ -542,17 +530,6 @@ export declare function createAgent(transport: Transport): {
542
530
  };
543
531
  source?: "app" | "codemode";
544
532
  parent_tool_use_id?: string;
545
- user_once?: true;
546
- guarded_rule?: string;
547
- permission_suggestions?: Array<{
548
- type: "add_rules";
549
- behavior: "allow";
550
- destination: "agent" | "session";
551
- rules: Array<{
552
- tool_name: string;
553
- rule_content: string;
554
- }>;
555
- }>;
556
533
  title?: string;
557
534
  input_titles?: {
558
535
  [key: string]: string;
@@ -571,7 +548,6 @@ export declare function createAgent(transport: Transport): {
571
548
  };
572
549
  source?: "app" | "codemode";
573
550
  } | {
574
- full_access_available?: boolean;
575
551
  id: string;
576
552
  input: Types.AgentManaged206;
577
553
  name: string;
@@ -580,9 +556,6 @@ export declare function createAgent(transport: Transport): {
580
556
  evaluated_permission?: "allow" | "deny" | "ask";
581
557
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
582
558
  session_thread_id?: null | string;
583
- run_id: string | null;
584
- user_once?: true;
585
- guarded_rule?: string;
586
559
  permission_suggestions?: Array<{
587
560
  type: "add_rules";
588
561
  behavior: "allow";
@@ -592,6 +565,10 @@ export declare function createAgent(transport: Transport): {
592
565
  rule_content: string;
593
566
  }>;
594
567
  }>;
568
+ full_access_available?: boolean;
569
+ user_once?: true;
570
+ guarded_rule?: string;
571
+ run_id: string | null;
595
572
  } | {
596
573
  id: string;
597
574
  processed_at: string;
@@ -612,9 +589,6 @@ export declare function createAgent(transport: Transport): {
612
589
  type: "session.status_idle";
613
590
  run_id: string | null;
614
591
  } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
615
- permission_mode_version?: number;
616
- previous_permission_mode?: string | null;
617
- permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
618
592
  id: string;
619
593
  processed_at: string;
620
594
  type: "session.updated";
@@ -622,6 +596,9 @@ export declare function createAgent(transport: Transport): {
622
596
  budget?: null | Types.AgentManaged76;
623
597
  metadata?: Types.AgentManaged246;
624
598
  title?: null | string;
599
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
600
+ previous_permission_mode?: string | null;
601
+ permission_mode_version?: number;
625
602
  model?: {
626
603
  id: string;
627
604
  };
@@ -680,21 +657,6 @@ export declare function createAgent(transport: Transport): {
680
657
  type: "user.steer";
681
658
  event_id: string;
682
659
  processed_at: string;
683
- } | {
684
- id: string;
685
- type: "user.tool_confirmation";
686
- processed_at: string;
687
- tool_use_id: string;
688
- result: "allow";
689
- answers: {
690
- [key: string]: string;
691
- };
692
- annotations?: {
693
- [key: string]: {
694
- preview?: string;
695
- notes?: string;
696
- };
697
- };
698
660
  }>;
699
661
  next_page: string | null;
700
662
  }>;
@@ -715,21 +677,6 @@ export declare function createAgent(transport: Transport): {
715
677
  type: "user.steer";
716
678
  event_id: string;
717
679
  processed_at: string;
718
- } | {
719
- id: string;
720
- type: "user.tool_confirmation";
721
- processed_at: string;
722
- tool_use_id: string;
723
- result: "allow";
724
- answers: {
725
- [key: string]: string;
726
- };
727
- annotations?: {
728
- [key: string]: {
729
- preview?: string;
730
- notes?: string;
731
- };
732
- };
733
680
  }>;
734
681
  }>;
735
682
  stream: (options: import("./core/transport.js").StreamOptions<Types.StreamAgentEventsData>) => AsyncIterable<Types.AgentSseEvent>;
@@ -763,6 +710,7 @@ export declare function createAgent(transport: Transport): {
763
710
  speed?: "standard" | "fast";
764
711
  settings?: {
765
712
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
713
+ max_output_tokens?: number;
766
714
  };
767
715
  };
768
716
  multiagent?: null | Types.AgentManaged39;
@@ -787,6 +735,7 @@ export declare function createAgent(transport: Transport): {
787
735
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
788
736
  id: string;
789
737
  access: "read_only" | "read_write" | "invoke";
738
+ customer_access?: "read_only" | "read_write" | "invoke";
790
739
  instructions?: string;
791
740
  readonly verified?: boolean;
792
741
  enabled?: boolean;
@@ -796,6 +745,13 @@ export declare function createAgent(transport: Transport): {
796
745
  enabled?: boolean;
797
746
  }>;
798
747
  kind: "general" | "service" | "assume";
748
+ computers?: {
749
+ default: string;
750
+ allowed: Array<{
751
+ template: string;
752
+ name: string;
753
+ }>;
754
+ };
799
755
  computer_id?: string;
800
756
  subagent_model?: string | null;
801
757
  subagents?: Array<{
@@ -888,6 +844,7 @@ export declare function createAgent(transport: Transport): {
888
844
  allowManagedHooksOnly?: boolean;
889
845
  allowManagedMcpServersOnly?: boolean;
890
846
  allowManagedPermissionRulesOnly?: boolean;
847
+ idleCompaction?: boolean;
891
848
  autoMemoryEnabled?: boolean;
892
849
  disabled?: {
893
850
  subagents?: Array<string>;
@@ -896,7 +853,6 @@ export declare function createAgent(transport: Transport): {
896
853
  mcpServers?: Array<string>;
897
854
  hooks?: Array<string>;
898
855
  };
899
- idleCompaction?: boolean;
900
856
  outputStyle?: string;
901
857
  } | null;
902
858
  models?: {
@@ -904,6 +860,7 @@ export declare function createAgent(transport: Transport): {
904
860
  };
905
861
  avatar: string | null;
906
862
  creation_source: string | null;
863
+ managed_by: string | null;
907
864
  identity_number: string | null;
908
865
  environment_id?: string | null;
909
866
  vault_ids?: Array<string>;
@@ -917,6 +874,34 @@ export declare function createAgent(transport: Transport): {
917
874
  }>;
918
875
  next_page: string | null;
919
876
  }>;
877
+ phone: {
878
+ release: (options: import("./core/transport.js").CallOptions<Types.AgentsPhoneReleaseData>) => Promise<{
879
+ object: "agent_phone";
880
+ agent_id: string;
881
+ configured: boolean;
882
+ state: "none" | "starting" | "booting" | "restoring" | "running" | "archiving" | "releasing" | "online" | "offline";
883
+ sku: string | null;
884
+ byod_device: string | null;
885
+ name: string | null;
886
+ sandbox_id: string | null;
887
+ lease_ends_at: string | null;
888
+ archived_at: string | null;
889
+ archive_error: string | null;
890
+ }>;
891
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AgentsPhoneRetrieveData>) => Promise<{
892
+ object: "agent_phone";
893
+ agent_id: string;
894
+ configured: boolean;
895
+ state: "none" | "starting" | "booting" | "restoring" | "running" | "archiving" | "releasing" | "online" | "offline";
896
+ sku: string | null;
897
+ byod_device: string | null;
898
+ name: string | null;
899
+ sandbox_id: string | null;
900
+ lease_ends_at: string | null;
901
+ archived_at: string | null;
902
+ archive_error: string | null;
903
+ }>;
904
+ };
920
905
  retrieve: (options: import("./core/transport.js").CallOptions<Types.AgentsRetrieveData>) => Promise<{
921
906
  id: string;
922
907
  archived_at: null | string;
@@ -931,6 +916,7 @@ export declare function createAgent(transport: Transport): {
931
916
  speed?: "standard" | "fast";
932
917
  settings?: {
933
918
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
919
+ max_output_tokens?: number;
934
920
  };
935
921
  };
936
922
  multiagent?: null | Types.AgentManaged39;
@@ -956,6 +942,7 @@ export declare function createAgent(transport: Transport): {
956
942
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
957
943
  id: string;
958
944
  access: "read_only" | "read_write" | "invoke";
945
+ customer_access?: "read_only" | "read_write" | "invoke";
959
946
  instructions?: string;
960
947
  readonly verified?: boolean;
961
948
  enabled?: boolean;
@@ -965,6 +952,13 @@ export declare function createAgent(transport: Transport): {
965
952
  enabled?: boolean;
966
953
  }>;
967
954
  kind: "general" | "service" | "assume";
955
+ computers?: {
956
+ default: string;
957
+ allowed: Array<{
958
+ template: string;
959
+ name: string;
960
+ }>;
961
+ };
968
962
  computer_id?: string;
969
963
  subagent_model?: string | null;
970
964
  subagents?: Array<{
@@ -1057,6 +1051,7 @@ export declare function createAgent(transport: Transport): {
1057
1051
  allowManagedHooksOnly?: boolean;
1058
1052
  allowManagedMcpServersOnly?: boolean;
1059
1053
  allowManagedPermissionRulesOnly?: boolean;
1054
+ idleCompaction?: boolean;
1060
1055
  autoMemoryEnabled?: boolean;
1061
1056
  disabled?: {
1062
1057
  subagents?: Array<string>;
@@ -1065,7 +1060,6 @@ export declare function createAgent(transport: Transport): {
1065
1060
  mcpServers?: Array<string>;
1066
1061
  hooks?: Array<string>;
1067
1062
  };
1068
- idleCompaction?: boolean;
1069
1063
  outputStyle?: string;
1070
1064
  } | null;
1071
1065
  models?: {
@@ -1073,6 +1067,7 @@ export declare function createAgent(transport: Transport): {
1073
1067
  };
1074
1068
  avatar: string | null;
1075
1069
  creation_source: string | null;
1070
+ managed_by: string | null;
1076
1071
  identity_number: string | null;
1077
1072
  environment_id?: string | null;
1078
1073
  vault_ids?: Array<string>;
@@ -1141,6 +1136,25 @@ export declare function createAgent(transport: Transport): {
1141
1136
  history?: {
1142
1137
  enabled?: boolean;
1143
1138
  };
1139
+ uploads?: {
1140
+ enabled: boolean;
1141
+ max_file_bytes: number;
1142
+ max_files_per_session: number;
1143
+ };
1144
+ }>;
1145
+ retrieveEmbedPolicy: (options: import("./core/transport.js").CallOptions<Types.GetAgentEmbedPolicyData>) => Promise<{
1146
+ allowed_origins: Array<string>;
1147
+ allow_localhost: boolean;
1148
+ uploads: {
1149
+ enabled: boolean;
1150
+ max_file_bytes: number;
1151
+ max_files_per_session: number;
1152
+ };
1153
+ share_links: {
1154
+ enabled: boolean;
1155
+ daily_session_cap: number | null;
1156
+ daily_spend_cap_micro_usd: number | null;
1157
+ };
1144
1158
  }>;
1145
1159
  unarchive: {
1146
1160
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
@@ -1194,6 +1208,7 @@ export declare function createAgent(transport: Transport): {
1194
1208
  speed?: "standard" | "fast";
1195
1209
  settings?: {
1196
1210
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1211
+ max_output_tokens?: number;
1197
1212
  };
1198
1213
  };
1199
1214
  multiagent?: null | {
@@ -1384,6 +1399,7 @@ export declare function createAgent(transport: Transport): {
1384
1399
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1385
1400
  id: string;
1386
1401
  access: "read_only" | "read_write" | "invoke";
1402
+ customer_access?: "read_only" | "read_write" | "invoke";
1387
1403
  instructions?: string;
1388
1404
  readonly verified?: boolean;
1389
1405
  enabled?: boolean;
@@ -1393,6 +1409,13 @@ export declare function createAgent(transport: Transport): {
1393
1409
  enabled?: boolean;
1394
1410
  }>;
1395
1411
  kind: "general" | "service" | "assume";
1412
+ computers?: {
1413
+ default: string;
1414
+ allowed: Array<{
1415
+ template: string;
1416
+ name: string;
1417
+ }>;
1418
+ };
1396
1419
  computer_id?: string;
1397
1420
  subagent_model?: string | null;
1398
1421
  subagents?: Array<{
@@ -1485,6 +1508,7 @@ export declare function createAgent(transport: Transport): {
1485
1508
  allowManagedHooksOnly?: boolean;
1486
1509
  allowManagedMcpServersOnly?: boolean;
1487
1510
  allowManagedPermissionRulesOnly?: boolean;
1511
+ idleCompaction?: boolean;
1488
1512
  autoMemoryEnabled?: boolean;
1489
1513
  disabled?: {
1490
1514
  subagents?: Array<string>;
@@ -1493,7 +1517,6 @@ export declare function createAgent(transport: Transport): {
1493
1517
  mcpServers?: Array<string>;
1494
1518
  hooks?: Array<string>;
1495
1519
  };
1496
- idleCompaction?: boolean;
1497
1520
  outputStyle?: string;
1498
1521
  } | null;
1499
1522
  models?: {
@@ -1501,6 +1524,7 @@ export declare function createAgent(transport: Transport): {
1501
1524
  };
1502
1525
  avatar: string | null;
1503
1526
  creation_source: string | null;
1527
+ managed_by: string | null;
1504
1528
  identity_number: string | null;
1505
1529
  environment_id?: string | null;
1506
1530
  vault_ids?: Array<string>;
@@ -1527,6 +1551,7 @@ export declare function createAgent(transport: Transport): {
1527
1551
  speed?: "standard" | "fast";
1528
1552
  settings?: {
1529
1553
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1554
+ max_output_tokens?: number;
1530
1555
  };
1531
1556
  };
1532
1557
  multiagent?: null | Types.AgentManaged39;
@@ -1552,6 +1577,7 @@ export declare function createAgent(transport: Transport): {
1552
1577
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1553
1578
  id: string;
1554
1579
  access: "read_only" | "read_write" | "invoke";
1580
+ customer_access?: "read_only" | "read_write" | "invoke";
1555
1581
  instructions?: string;
1556
1582
  readonly verified?: boolean;
1557
1583
  enabled?: boolean;
@@ -1561,6 +1587,13 @@ export declare function createAgent(transport: Transport): {
1561
1587
  enabled?: boolean;
1562
1588
  }>;
1563
1589
  kind: "general" | "service" | "assume";
1590
+ computers?: {
1591
+ default: string;
1592
+ allowed: Array<{
1593
+ template: string;
1594
+ name: string;
1595
+ }>;
1596
+ };
1564
1597
  computer_id?: string;
1565
1598
  subagent_model?: string | null;
1566
1599
  subagents?: Array<{
@@ -1653,6 +1686,7 @@ export declare function createAgent(transport: Transport): {
1653
1686
  allowManagedHooksOnly?: boolean;
1654
1687
  allowManagedMcpServersOnly?: boolean;
1655
1688
  allowManagedPermissionRulesOnly?: boolean;
1689
+ idleCompaction?: boolean;
1656
1690
  autoMemoryEnabled?: boolean;
1657
1691
  disabled?: {
1658
1692
  subagents?: Array<string>;
@@ -1661,7 +1695,6 @@ export declare function createAgent(transport: Transport): {
1661
1695
  mcpServers?: Array<string>;
1662
1696
  hooks?: Array<string>;
1663
1697
  };
1664
- idleCompaction?: boolean;
1665
1698
  outputStyle?: string;
1666
1699
  } | null;
1667
1700
  models?: {
@@ -1669,6 +1702,7 @@ export declare function createAgent(transport: Transport): {
1669
1702
  };
1670
1703
  avatar: string | null;
1671
1704
  creation_source: string | null;
1705
+ managed_by: string | null;
1672
1706
  identity_number: string | null;
1673
1707
  environment_id?: string | null;
1674
1708
  vault_ids?: Array<string>;
@@ -1680,113 +1714,338 @@ export declare function createAgent(transport: Transport): {
1680
1714
  keep_coding_instructions?: boolean;
1681
1715
  }> | null;
1682
1716
  }>;
1717
+ updateEmbedPolicy: (options: import("./core/transport.js").CallOptions<Types.UpdateAgentEmbedPolicyData>) => Promise<{
1718
+ allowed_origins: Array<string>;
1719
+ allow_localhost: boolean;
1720
+ uploads: {
1721
+ enabled: boolean;
1722
+ max_file_bytes: number;
1723
+ max_files_per_session: number;
1724
+ };
1725
+ share_links: {
1726
+ enabled: boolean;
1727
+ daily_session_cap: number | null;
1728
+ daily_spend_cap_micro_usd: number | null;
1729
+ };
1730
+ }>;
1683
1731
  versions: {
1684
1732
  apply: (options: import("./core/transport.js").CallOptions<Types.ApplyAgentVersionData>) => Promise<{
1685
1733
  id: string;
1686
1734
  archived_at: null | string;
1687
1735
  created_at: string;
1688
1736
  description: null | string;
1689
- mcp_servers: Array<Types.AgentManaged36>;
1690
- metadata: Types.AgentManaged37;
1737
+ mcp_servers: Array<{
1738
+ type: "url";
1739
+ name: string;
1740
+ url: string;
1741
+ headers?: {
1742
+ [key: string]: string;
1743
+ };
1744
+ timeout_ms?: number;
1745
+ } | {
1746
+ type: "sse";
1747
+ name: string;
1748
+ url: string;
1749
+ headers?: {
1750
+ [key: string]: string;
1751
+ };
1752
+ timeout_ms?: number;
1753
+ } | {
1754
+ type: "stdio";
1755
+ name: string;
1756
+ command: string;
1757
+ args?: Array<string>;
1758
+ env?: {
1759
+ [key: string]: string;
1760
+ };
1761
+ timeout_ms?: number;
1762
+ }>;
1763
+ metadata: {
1764
+ [key: string]: string;
1765
+ };
1691
1766
  model?: {
1692
1767
  id: string;
1693
- effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1768
+ effort?: {
1769
+ type: "low";
1770
+ } | {
1771
+ type: "medium";
1772
+ } | {
1773
+ type: "high";
1774
+ } | {
1775
+ type: "xhigh";
1776
+ } | {
1777
+ type: "max";
1778
+ };
1694
1779
  inference_geo?: string;
1695
1780
  speed?: "standard" | "fast";
1696
1781
  settings?: {
1697
1782
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1783
+ max_output_tokens?: number;
1698
1784
  };
1699
1785
  };
1700
- multiagent?: null | Types.AgentManaged39;
1786
+ multiagent?: null | {
1787
+ agents: Array<{
1788
+ id: string;
1789
+ type: "agent";
1790
+ version: number;
1791
+ } | {
1792
+ model: string;
1793
+ type: "advisor";
1794
+ }>;
1795
+ type: "coordinator";
1796
+ };
1701
1797
  name: string;
1702
- skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1703
- system: null | string;
1704
- tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
1705
- type: "agent";
1706
- updated_at: string;
1707
- version: number;
1708
- latest_version?: number;
1709
- active_version: number;
1710
- created_by: {
1711
- type: "user";
1712
- id: string;
1713
- name?: string;
1714
- } | {
1715
- type: "api_key";
1716
- id: string;
1717
- } | null;
1718
- note: string | null;
1719
- bindings: Array<{
1720
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1721
- id: string;
1722
- access: "read_only" | "read_write" | "invoke";
1723
- instructions?: string;
1724
- readonly verified?: boolean;
1725
- enabled?: boolean;
1798
+ skills: Array<{
1799
+ skill_id: string;
1800
+ type: "anthropic";
1801
+ version: string;
1726
1802
  } | {
1727
- type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut" | "studio" | "feedback" | "workspace";
1728
- readonly verified?: boolean;
1729
- enabled?: boolean;
1803
+ skill_id: string;
1804
+ type: "custom";
1805
+ version: string;
1730
1806
  }>;
1731
- kind: "general" | "service" | "assume";
1732
- computer_id?: string;
1733
- subagent_model?: string | null;
1734
- subagents?: Array<{
1735
- name: string;
1736
- description: string;
1737
- prompt: string;
1738
- tools?: Array<string>;
1739
- disallowed_tools?: Array<string>;
1740
- model?: string;
1741
- }> | null;
1742
- commands?: Array<{
1743
- name: string;
1744
- description?: string;
1745
- argument_hint?: string;
1746
- prompt: string;
1747
- }> | null;
1748
- settings?: {
1749
- hooks?: {
1750
- SessionStart?: Array<{
1751
- matcher?: string;
1752
- hooks: Array<{
1753
- type: "command";
1754
- command: string;
1755
- timeout?: number;
1756
- async?: boolean;
1757
- enabled?: boolean;
1758
- }>;
1759
- }>;
1760
- UserPromptSubmit?: Array<{
1761
- matcher?: string;
1762
- hooks: Array<{
1763
- type: "command";
1764
- command: string;
1765
- timeout?: number;
1766
- async?: boolean;
1767
- enabled?: boolean;
1768
- }>;
1769
- }>;
1770
- PreToolUse?: Array<{
1771
- matcher?: string;
1772
- hooks: Array<{
1773
- type: "command";
1774
- command: string;
1775
- timeout?: number;
1776
- async?: boolean;
1777
- enabled?: boolean;
1778
- }>;
1779
- }>;
1780
- PermissionRequest?: Array<{
1781
- matcher?: string;
1782
- hooks: Array<{
1783
- type: "command";
1784
- command: string;
1785
- timeout?: number;
1786
- async?: boolean;
1787
- enabled?: boolean;
1788
- }>;
1789
- }>;
1807
+ system: null | string;
1808
+ tools: Array<{
1809
+ configs: Array<{
1810
+ enabled: boolean;
1811
+ name: "bash";
1812
+ permission_policy: {
1813
+ type: "always_allow";
1814
+ } | {
1815
+ type: "always_ask";
1816
+ } | {
1817
+ type: "auto";
1818
+ };
1819
+ type: "bash";
1820
+ } | {
1821
+ enabled: boolean;
1822
+ name: "edit";
1823
+ permission_policy: {
1824
+ type: "always_allow";
1825
+ } | {
1826
+ type: "always_ask";
1827
+ } | {
1828
+ type: "auto";
1829
+ };
1830
+ type: "edit";
1831
+ } | {
1832
+ enabled: boolean;
1833
+ name: "read";
1834
+ permission_policy: {
1835
+ type: "always_allow";
1836
+ } | {
1837
+ type: "always_ask";
1838
+ } | {
1839
+ type: "auto";
1840
+ };
1841
+ type: "read";
1842
+ } | {
1843
+ enabled: boolean;
1844
+ name: "write";
1845
+ permission_policy: {
1846
+ type: "always_allow";
1847
+ } | {
1848
+ type: "always_ask";
1849
+ } | {
1850
+ type: "auto";
1851
+ };
1852
+ type: "write";
1853
+ } | {
1854
+ enabled: boolean;
1855
+ name: "glob";
1856
+ permission_policy: {
1857
+ type: "always_allow";
1858
+ } | {
1859
+ type: "always_ask";
1860
+ } | {
1861
+ type: "auto";
1862
+ };
1863
+ type: "glob";
1864
+ } | {
1865
+ enabled: boolean;
1866
+ name: "grep";
1867
+ permission_policy: {
1868
+ type: "always_allow";
1869
+ } | {
1870
+ type: "always_ask";
1871
+ } | {
1872
+ type: "auto";
1873
+ };
1874
+ type: "grep";
1875
+ } | {
1876
+ enabled: boolean;
1877
+ name: "web_fetch";
1878
+ permission_policy: {
1879
+ type: "always_allow";
1880
+ } | {
1881
+ type: "always_ask";
1882
+ } | {
1883
+ type: "auto";
1884
+ };
1885
+ type: "web_fetch";
1886
+ allowed_domains?: Array<string>;
1887
+ blocked_domains?: Array<string>;
1888
+ max_content_tokens?: null | number;
1889
+ } | {
1890
+ enabled: boolean;
1891
+ name: "web_search";
1892
+ permission_policy: {
1893
+ type: "always_allow";
1894
+ } | {
1895
+ type: "always_ask";
1896
+ } | {
1897
+ type: "auto";
1898
+ };
1899
+ type: "web_search";
1900
+ allowed_domains?: Array<string>;
1901
+ blocked_domains?: Array<string>;
1902
+ user_location?: null | {
1903
+ type: "approximate";
1904
+ city?: null | string;
1905
+ country?: null | string;
1906
+ region?: null | string;
1907
+ timezone?: null | string;
1908
+ };
1909
+ } | {
1910
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
1911
+ enabled: boolean;
1912
+ permission_policy: {
1913
+ type: "always_allow" | "always_ask";
1914
+ };
1915
+ }>;
1916
+ default_config: {
1917
+ enabled: boolean;
1918
+ permission_policy: {
1919
+ type: "always_allow";
1920
+ } | {
1921
+ type: "always_ask";
1922
+ } | {
1923
+ type: "auto";
1924
+ };
1925
+ };
1926
+ type: "agent_toolset_20260401";
1927
+ } | {
1928
+ type: "mcp_toolset";
1929
+ mcp_server_name: string;
1930
+ default_config?: {
1931
+ enabled?: boolean | null;
1932
+ permission_policy?: null | {
1933
+ type: "always_allow" | "always_ask";
1934
+ };
1935
+ } | null;
1936
+ configs?: Array<{
1937
+ name: string;
1938
+ enabled?: boolean | null;
1939
+ permission_policy?: null | {
1940
+ type: "always_allow" | "always_ask";
1941
+ };
1942
+ }> | null;
1943
+ } | {
1944
+ description: string;
1945
+ input_schema: {
1946
+ type: "object";
1947
+ properties?: null | {
1948
+ [key: string]: unknown;
1949
+ };
1950
+ required?: null | Array<string>;
1951
+ [key: string]: unknown;
1952
+ };
1953
+ name: string;
1954
+ type: "custom";
1955
+ }>;
1956
+ type: "agent";
1957
+ updated_at: string;
1958
+ version: number;
1959
+ latest_version?: number;
1960
+ active_version: number;
1961
+ created_by: {
1962
+ type: "user";
1963
+ id: string;
1964
+ name?: string;
1965
+ } | {
1966
+ type: "api_key";
1967
+ id: string;
1968
+ } | null;
1969
+ note: string | null;
1970
+ bindings: Array<{
1971
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1972
+ id: string;
1973
+ access: "read_only" | "read_write" | "invoke";
1974
+ customer_access?: "read_only" | "read_write" | "invoke";
1975
+ instructions?: string;
1976
+ readonly verified?: boolean;
1977
+ enabled?: boolean;
1978
+ } | {
1979
+ type: "search" | "browser" | "ticket" | "crm" | "canvas" | "cut" | "studio" | "feedback" | "workspace";
1980
+ readonly verified?: boolean;
1981
+ enabled?: boolean;
1982
+ }>;
1983
+ kind: "general" | "service" | "assume";
1984
+ computers?: {
1985
+ default: string;
1986
+ allowed: Array<{
1987
+ template: string;
1988
+ name: string;
1989
+ }>;
1990
+ };
1991
+ computer_id?: string;
1992
+ subagent_model?: string | null;
1993
+ subagents?: Array<{
1994
+ name: string;
1995
+ description: string;
1996
+ prompt: string;
1997
+ tools?: Array<string>;
1998
+ disallowed_tools?: Array<string>;
1999
+ model?: string;
2000
+ }> | null;
2001
+ commands?: Array<{
2002
+ name: string;
2003
+ description?: string;
2004
+ argument_hint?: string;
2005
+ prompt: string;
2006
+ }> | null;
2007
+ settings?: {
2008
+ hooks?: {
2009
+ SessionStart?: Array<{
2010
+ matcher?: string;
2011
+ hooks: Array<{
2012
+ type: "command";
2013
+ command: string;
2014
+ timeout?: number;
2015
+ async?: boolean;
2016
+ enabled?: boolean;
2017
+ }>;
2018
+ }>;
2019
+ UserPromptSubmit?: Array<{
2020
+ matcher?: string;
2021
+ hooks: Array<{
2022
+ type: "command";
2023
+ command: string;
2024
+ timeout?: number;
2025
+ async?: boolean;
2026
+ enabled?: boolean;
2027
+ }>;
2028
+ }>;
2029
+ PreToolUse?: Array<{
2030
+ matcher?: string;
2031
+ hooks: Array<{
2032
+ type: "command";
2033
+ command: string;
2034
+ timeout?: number;
2035
+ async?: boolean;
2036
+ enabled?: boolean;
2037
+ }>;
2038
+ }>;
2039
+ PermissionRequest?: Array<{
2040
+ matcher?: string;
2041
+ hooks: Array<{
2042
+ type: "command";
2043
+ command: string;
2044
+ timeout?: number;
2045
+ async?: boolean;
2046
+ enabled?: boolean;
2047
+ }>;
2048
+ }>;
1790
2049
  PostToolUse?: Array<{
1791
2050
  matcher?: string;
1792
2051
  hooks: Array<{
@@ -1821,6 +2080,7 @@ export declare function createAgent(transport: Transport): {
1821
2080
  allowManagedHooksOnly?: boolean;
1822
2081
  allowManagedMcpServersOnly?: boolean;
1823
2082
  allowManagedPermissionRulesOnly?: boolean;
2083
+ idleCompaction?: boolean;
1824
2084
  autoMemoryEnabled?: boolean;
1825
2085
  disabled?: {
1826
2086
  subagents?: Array<string>;
@@ -1829,7 +2089,6 @@ export declare function createAgent(transport: Transport): {
1829
2089
  mcpServers?: Array<string>;
1830
2090
  hooks?: Array<string>;
1831
2091
  };
1832
- idleCompaction?: boolean;
1833
2092
  outputStyle?: string;
1834
2093
  } | null;
1835
2094
  models?: {
@@ -1837,6 +2096,7 @@ export declare function createAgent(transport: Transport): {
1837
2096
  };
1838
2097
  avatar: string | null;
1839
2098
  creation_source: string | null;
2099
+ managed_by: string | null;
1840
2100
  identity_number: string | null;
1841
2101
  environment_id?: string | null;
1842
2102
  vault_ids?: Array<string>;
@@ -1863,6 +2123,7 @@ export declare function createAgent(transport: Transport): {
1863
2123
  speed?: "standard" | "fast";
1864
2124
  settings?: {
1865
2125
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2126
+ max_output_tokens?: number;
1866
2127
  };
1867
2128
  };
1868
2129
  multiagent?: null | Types.AgentManaged39;
@@ -1888,6 +2149,7 @@ export declare function createAgent(transport: Transport): {
1888
2149
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1889
2150
  id: string;
1890
2151
  access: "read_only" | "read_write" | "invoke";
2152
+ customer_access?: "read_only" | "read_write" | "invoke";
1891
2153
  instructions?: string;
1892
2154
  readonly verified?: boolean;
1893
2155
  enabled?: boolean;
@@ -1897,6 +2159,13 @@ export declare function createAgent(transport: Transport): {
1897
2159
  enabled?: boolean;
1898
2160
  }>;
1899
2161
  kind: "general" | "service" | "assume";
2162
+ computers?: {
2163
+ default: string;
2164
+ allowed: Array<{
2165
+ template: string;
2166
+ name: string;
2167
+ }>;
2168
+ };
1900
2169
  computer_id?: string;
1901
2170
  subagent_model?: string | null;
1902
2171
  subagents?: Array<{
@@ -1989,6 +2258,7 @@ export declare function createAgent(transport: Transport): {
1989
2258
  allowManagedHooksOnly?: boolean;
1990
2259
  allowManagedMcpServersOnly?: boolean;
1991
2260
  allowManagedPermissionRulesOnly?: boolean;
2261
+ idleCompaction?: boolean;
1992
2262
  autoMemoryEnabled?: boolean;
1993
2263
  disabled?: {
1994
2264
  subagents?: Array<string>;
@@ -1997,7 +2267,6 @@ export declare function createAgent(transport: Transport): {
1997
2267
  mcpServers?: Array<string>;
1998
2268
  hooks?: Array<string>;
1999
2269
  };
2000
- idleCompaction?: boolean;
2001
2270
  outputStyle?: string;
2002
2271
  } | null;
2003
2272
  models?: {
@@ -2005,6 +2274,7 @@ export declare function createAgent(transport: Transport): {
2005
2274
  };
2006
2275
  avatar: string | null;
2007
2276
  creation_source: string | null;
2277
+ managed_by: string | null;
2008
2278
  identity_number: string | null;
2009
2279
  environment_id?: string | null;
2010
2280
  vault_ids?: Array<string>;
@@ -2092,6 +2362,18 @@ export declare function createAgent(transport: Transport): {
2092
2362
  tier: "light" | "heavy";
2093
2363
  }>;
2094
2364
  retrieveContent: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesContentData>) => Promise<Blob | File>;
2365
+ retrievePreview: (options: import("./core/transport.js").CallOptions<Types.PreviewComputerFileData>) => Promise<{
2366
+ variant: "image" | "pdf" | "text" | "original";
2367
+ version?: string;
2368
+ mime_type?: string;
2369
+ size?: number;
2370
+ file_id?: string;
2371
+ url?: string;
2372
+ expires_at?: string;
2373
+ cached: boolean;
2374
+ fallback?: "content";
2375
+ skipped?: boolean;
2376
+ }>;
2095
2377
  };
2096
2378
  leases: {
2097
2379
  delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
@@ -2357,87 +2639,624 @@ export declare function createAgent(transport: Transport): {
2357
2639
  id: string;
2358
2640
  type: "agent";
2359
2641
  version: number;
2360
- } | {
2361
- id: string;
2362
- type: "agent_with_overrides";
2363
- permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2364
- cwd?: string;
2365
- model?: string | {
2366
- id: string;
2367
- effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
2368
- speed?: null | "standard" | "fast";
2369
- };
2370
- version: number;
2642
+ } | {
2643
+ id: string;
2644
+ type: "agent_with_overrides";
2645
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2646
+ cwd?: string;
2647
+ model?: string | {
2648
+ id: string;
2649
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
2650
+ speed?: null | "standard" | "fast";
2651
+ };
2652
+ version: number;
2653
+ };
2654
+ archived_at: null | string;
2655
+ created_at: string;
2656
+ description: null | string;
2657
+ environment_id?: string | null;
2658
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
2659
+ metadata: Types.AgentManaged91;
2660
+ name: string;
2661
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
2662
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
2663
+ schedule: null | Types.AgentManaged111;
2664
+ status: "active" | "paused";
2665
+ type: "deployment";
2666
+ updated_at: string;
2667
+ vault_ids: Array<string>;
2668
+ budget?: null | Types.AgentManaged76;
2669
+ target: {
2670
+ type: "environment" | "computer";
2671
+ };
2672
+ }>;
2673
+ };
2674
+ update: (options: import("./core/transport.js").CallOptions<Types.DeploymentsUpdateData>) => Promise<{
2675
+ id: string;
2676
+ agent: {
2677
+ id: string;
2678
+ type: "agent";
2679
+ version: number;
2680
+ } | {
2681
+ id: string;
2682
+ type: "agent_with_overrides";
2683
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2684
+ cwd?: string;
2685
+ model?: string | {
2686
+ id: string;
2687
+ effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
2688
+ speed?: null | "standard" | "fast";
2689
+ };
2690
+ version: number;
2691
+ };
2692
+ archived_at: null | string;
2693
+ created_at: string;
2694
+ description: null | string;
2695
+ environment_id?: string | null;
2696
+ initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
2697
+ metadata: Types.AgentManaged91;
2698
+ name: string;
2699
+ paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
2700
+ resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
2701
+ schedule: null | Types.AgentManaged111;
2702
+ status: "active" | "paused";
2703
+ type: "deployment";
2704
+ updated_at: string;
2705
+ vault_ids: Array<string>;
2706
+ budget?: null | Types.AgentManaged76;
2707
+ target: {
2708
+ type: "environment" | "computer";
2709
+ };
2710
+ }>;
2711
+ };
2712
+ environments: {
2713
+ archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2714
+ create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
2715
+ list: (options?: import("./core/transport.js").CallOptions<Types.EnvironmentsListData> | undefined) => Promise<{
2716
+ data: Array<Types.AgentManaged138>;
2717
+ next_page: string | null;
2718
+ }>;
2719
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsRetrieveData>) => Promise<Types.AgentManaged138>;
2720
+ update: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsUpdateData>) => Promise<Types.AgentManaged138>;
2721
+ };
2722
+ sessions: {
2723
+ agentVersion: {
2724
+ create: (options: import("./core/transport.js").CallOptions<Types.UpdateSessionAgentVersionData>) => Promise<{
2725
+ id: string;
2726
+ agent: {
2727
+ id: string;
2728
+ description: null | string;
2729
+ mcp_servers: Array<{
2730
+ type: "url";
2731
+ name: string;
2732
+ url: string;
2733
+ headers?: {
2734
+ [key: string]: string;
2735
+ };
2736
+ timeout_ms?: number;
2737
+ } | {
2738
+ type: "sse";
2739
+ name: string;
2740
+ url: string;
2741
+ headers?: {
2742
+ [key: string]: string;
2743
+ };
2744
+ timeout_ms?: number;
2745
+ } | {
2746
+ type: "stdio";
2747
+ name: string;
2748
+ command: string;
2749
+ args?: Array<string>;
2750
+ env?: {
2751
+ [key: string]: string;
2752
+ };
2753
+ timeout_ms?: number;
2754
+ }>;
2755
+ model: {
2756
+ id: string;
2757
+ effort?: {
2758
+ type: "low";
2759
+ } | {
2760
+ type: "medium";
2761
+ } | {
2762
+ type: "high";
2763
+ } | {
2764
+ type: "xhigh";
2765
+ } | {
2766
+ type: "max";
2767
+ };
2768
+ inference_geo?: string;
2769
+ speed?: "standard" | "fast";
2770
+ settings?: {
2771
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2772
+ max_output_tokens?: number;
2773
+ };
2774
+ };
2775
+ multiagent: null | {
2776
+ agents: Array<{
2777
+ model: string;
2778
+ type: "advisor";
2779
+ } | {
2780
+ id: string;
2781
+ description: null | string;
2782
+ mcp_servers: Array<{
2783
+ type: "url";
2784
+ name: string;
2785
+ url: string;
2786
+ headers?: {
2787
+ [key: string]: string;
2788
+ };
2789
+ timeout_ms?: number;
2790
+ } | {
2791
+ type: "sse";
2792
+ name: string;
2793
+ url: string;
2794
+ headers?: {
2795
+ [key: string]: string;
2796
+ };
2797
+ timeout_ms?: number;
2798
+ } | {
2799
+ type: "stdio";
2800
+ name: string;
2801
+ command: string;
2802
+ args?: Array<string>;
2803
+ env?: {
2804
+ [key: string]: string;
2805
+ };
2806
+ timeout_ms?: number;
2807
+ }>;
2808
+ model: {
2809
+ id: string;
2810
+ effort?: {
2811
+ type: "low";
2812
+ } | {
2813
+ type: "medium";
2814
+ } | {
2815
+ type: "high";
2816
+ } | {
2817
+ type: "xhigh";
2818
+ } | {
2819
+ type: "max";
2820
+ };
2821
+ inference_geo?: string;
2822
+ speed?: "standard" | "fast";
2823
+ };
2824
+ name: string;
2825
+ skills: Array<{
2826
+ skill_id: string;
2827
+ type: "anthropic";
2828
+ version: string;
2829
+ } | {
2830
+ skill_id: string;
2831
+ type: "custom";
2832
+ version: string;
2833
+ }>;
2834
+ system: null | string;
2835
+ tools: Array<{
2836
+ configs: Array<{
2837
+ enabled: boolean;
2838
+ name: "bash";
2839
+ permission_policy: {
2840
+ type: "always_allow";
2841
+ } | {
2842
+ type: "always_ask";
2843
+ } | {
2844
+ type: "auto";
2845
+ };
2846
+ type: "bash";
2847
+ } | {
2848
+ enabled: boolean;
2849
+ name: "edit";
2850
+ permission_policy: {
2851
+ type: "always_allow";
2852
+ } | {
2853
+ type: "always_ask";
2854
+ } | {
2855
+ type: "auto";
2856
+ };
2857
+ type: "edit";
2858
+ } | {
2859
+ enabled: boolean;
2860
+ name: "read";
2861
+ permission_policy: {
2862
+ type: "always_allow";
2863
+ } | {
2864
+ type: "always_ask";
2865
+ } | {
2866
+ type: "auto";
2867
+ };
2868
+ type: "read";
2869
+ } | {
2870
+ enabled: boolean;
2871
+ name: "write";
2872
+ permission_policy: {
2873
+ type: "always_allow";
2874
+ } | {
2875
+ type: "always_ask";
2876
+ } | {
2877
+ type: "auto";
2878
+ };
2879
+ type: "write";
2880
+ } | {
2881
+ enabled: boolean;
2882
+ name: "glob";
2883
+ permission_policy: {
2884
+ type: "always_allow";
2885
+ } | {
2886
+ type: "always_ask";
2887
+ } | {
2888
+ type: "auto";
2889
+ };
2890
+ type: "glob";
2891
+ } | {
2892
+ enabled: boolean;
2893
+ name: "grep";
2894
+ permission_policy: {
2895
+ type: "always_allow";
2896
+ } | {
2897
+ type: "always_ask";
2898
+ } | {
2899
+ type: "auto";
2900
+ };
2901
+ type: "grep";
2902
+ } | {
2903
+ enabled: boolean;
2904
+ name: "web_fetch";
2905
+ permission_policy: {
2906
+ type: "always_allow";
2907
+ } | {
2908
+ type: "always_ask";
2909
+ } | {
2910
+ type: "auto";
2911
+ };
2912
+ type: "web_fetch";
2913
+ allowed_domains?: Array<string>;
2914
+ blocked_domains?: Array<string>;
2915
+ max_content_tokens?: null | number;
2916
+ } | {
2917
+ enabled: boolean;
2918
+ name: "web_search";
2919
+ permission_policy: {
2920
+ type: "always_allow";
2921
+ } | {
2922
+ type: "always_ask";
2923
+ } | {
2924
+ type: "auto";
2925
+ };
2926
+ type: "web_search";
2927
+ allowed_domains?: Array<string>;
2928
+ blocked_domains?: Array<string>;
2929
+ user_location?: null | {
2930
+ type: "approximate";
2931
+ city?: null | string;
2932
+ country?: null | string;
2933
+ region?: null | string;
2934
+ timezone?: null | string;
2935
+ };
2936
+ } | {
2937
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
2938
+ enabled: boolean;
2939
+ permission_policy: {
2940
+ type: "always_allow" | "always_ask";
2941
+ };
2942
+ }>;
2943
+ default_config: {
2944
+ enabled: boolean;
2945
+ permission_policy: {
2946
+ type: "always_allow";
2947
+ } | {
2948
+ type: "always_ask";
2949
+ } | {
2950
+ type: "auto";
2951
+ };
2952
+ };
2953
+ type: "agent_toolset_20260401";
2954
+ } | {
2955
+ type: "mcp_toolset";
2956
+ mcp_server_name: string;
2957
+ default_config?: {
2958
+ enabled?: boolean | null;
2959
+ permission_policy?: null | {
2960
+ type: "always_allow" | "always_ask";
2961
+ };
2962
+ } | null;
2963
+ configs?: Array<{
2964
+ name: string;
2965
+ enabled?: boolean | null;
2966
+ permission_policy?: null | {
2967
+ type: "always_allow" | "always_ask";
2968
+ };
2969
+ }> | null;
2970
+ } | {
2971
+ description: string;
2972
+ input_schema: {
2973
+ type: "object";
2974
+ properties?: null | {
2975
+ [key: string]: unknown;
2976
+ };
2977
+ required?: null | Array<string>;
2978
+ [key: string]: unknown;
2979
+ };
2980
+ name: string;
2981
+ type: "custom";
2982
+ }>;
2983
+ type: "agent";
2984
+ version: number;
2985
+ }>;
2986
+ type: "coordinator";
2987
+ };
2988
+ name: string;
2989
+ skills: Array<{
2990
+ skill_id: string;
2991
+ type: "anthropic";
2992
+ version: string;
2993
+ } | {
2994
+ skill_id: string;
2995
+ type: "custom";
2996
+ version: string;
2997
+ }>;
2998
+ system: null | string;
2999
+ tools: Array<{
3000
+ configs: Array<{
3001
+ enabled: boolean;
3002
+ name: "bash";
3003
+ permission_policy: {
3004
+ type: "always_allow";
3005
+ } | {
3006
+ type: "always_ask";
3007
+ } | {
3008
+ type: "auto";
3009
+ };
3010
+ type: "bash";
3011
+ } | {
3012
+ enabled: boolean;
3013
+ name: "edit";
3014
+ permission_policy: {
3015
+ type: "always_allow";
3016
+ } | {
3017
+ type: "always_ask";
3018
+ } | {
3019
+ type: "auto";
3020
+ };
3021
+ type: "edit";
3022
+ } | {
3023
+ enabled: boolean;
3024
+ name: "read";
3025
+ permission_policy: {
3026
+ type: "always_allow";
3027
+ } | {
3028
+ type: "always_ask";
3029
+ } | {
3030
+ type: "auto";
3031
+ };
3032
+ type: "read";
3033
+ } | {
3034
+ enabled: boolean;
3035
+ name: "write";
3036
+ permission_policy: {
3037
+ type: "always_allow";
3038
+ } | {
3039
+ type: "always_ask";
3040
+ } | {
3041
+ type: "auto";
3042
+ };
3043
+ type: "write";
3044
+ } | {
3045
+ enabled: boolean;
3046
+ name: "glob";
3047
+ permission_policy: {
3048
+ type: "always_allow";
3049
+ } | {
3050
+ type: "always_ask";
3051
+ } | {
3052
+ type: "auto";
3053
+ };
3054
+ type: "glob";
3055
+ } | {
3056
+ enabled: boolean;
3057
+ name: "grep";
3058
+ permission_policy: {
3059
+ type: "always_allow";
3060
+ } | {
3061
+ type: "always_ask";
3062
+ } | {
3063
+ type: "auto";
3064
+ };
3065
+ type: "grep";
3066
+ } | {
3067
+ enabled: boolean;
3068
+ name: "web_fetch";
3069
+ permission_policy: {
3070
+ type: "always_allow";
3071
+ } | {
3072
+ type: "always_ask";
3073
+ } | {
3074
+ type: "auto";
3075
+ };
3076
+ type: "web_fetch";
3077
+ allowed_domains?: Array<string>;
3078
+ blocked_domains?: Array<string>;
3079
+ max_content_tokens?: null | number;
3080
+ } | {
3081
+ enabled: boolean;
3082
+ name: "web_search";
3083
+ permission_policy: {
3084
+ type: "always_allow";
3085
+ } | {
3086
+ type: "always_ask";
3087
+ } | {
3088
+ type: "auto";
3089
+ };
3090
+ type: "web_search";
3091
+ allowed_domains?: Array<string>;
3092
+ blocked_domains?: Array<string>;
3093
+ user_location?: null | {
3094
+ type: "approximate";
3095
+ city?: null | string;
3096
+ country?: null | string;
3097
+ region?: null | string;
3098
+ timezone?: null | string;
3099
+ };
3100
+ } | {
3101
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
3102
+ enabled: boolean;
3103
+ permission_policy: {
3104
+ type: "always_allow" | "always_ask";
3105
+ };
3106
+ }>;
3107
+ default_config: {
3108
+ enabled: boolean;
3109
+ permission_policy: {
3110
+ type: "always_allow";
3111
+ } | {
3112
+ type: "always_ask";
3113
+ } | {
3114
+ type: "auto";
3115
+ };
3116
+ };
3117
+ type: "agent_toolset_20260401";
3118
+ } | {
3119
+ type: "mcp_toolset";
3120
+ mcp_server_name: string;
3121
+ default_config?: {
3122
+ enabled?: boolean | null;
3123
+ permission_policy?: null | {
3124
+ type: "always_allow" | "always_ask";
3125
+ };
3126
+ } | null;
3127
+ configs?: Array<{
3128
+ name: string;
3129
+ enabled?: boolean | null;
3130
+ permission_policy?: null | {
3131
+ type: "always_allow" | "always_ask";
3132
+ };
3133
+ }> | null;
3134
+ } | {
3135
+ description: string;
3136
+ input_schema: {
3137
+ type: "object";
3138
+ properties?: null | {
3139
+ [key: string]: unknown;
3140
+ };
3141
+ required?: null | Array<string>;
3142
+ [key: string]: unknown;
3143
+ };
3144
+ name: string;
3145
+ type: "custom";
3146
+ }>;
3147
+ type: "agent";
3148
+ version: number;
2371
3149
  };
2372
3150
  archived_at: null | string;
3151
+ budget: null | {
3152
+ max_list_cost: {
3153
+ amount: string;
3154
+ currency: "USD";
3155
+ };
3156
+ type: "limit";
3157
+ };
2373
3158
  created_at: string;
2374
- description: null | string;
2375
- environment_id?: string | null;
2376
- initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
2377
- metadata: Types.AgentManaged91;
2378
- name: string;
2379
- paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
2380
- resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
2381
- schedule: null | Types.AgentManaged111;
2382
- status: "active" | "paused";
2383
- type: "deployment";
3159
+ environment_id?: string;
3160
+ metadata: {
3161
+ [key: string]: string;
3162
+ };
3163
+ outcome_evaluations: Array<{
3164
+ completed_at: null | string;
3165
+ description: string;
3166
+ explanation: null | string;
3167
+ iteration: number;
3168
+ outcome_id: string;
3169
+ result: string;
3170
+ type: "outcome_evaluation";
3171
+ }>;
3172
+ resources: Array<{
3173
+ id: string;
3174
+ created_at: string;
3175
+ mount_path: string;
3176
+ type: "github_repository";
3177
+ updated_at: string;
3178
+ url: string;
3179
+ checkout?: null | {
3180
+ name: string;
3181
+ type: "branch";
3182
+ } | {
3183
+ sha: string;
3184
+ type: "commit";
3185
+ };
3186
+ } | {
3187
+ id: string;
3188
+ created_at: string;
3189
+ file_id: string;
3190
+ mount_path: string;
3191
+ type: "file";
3192
+ updated_at: string;
3193
+ } | {
3194
+ memory_store_id: string;
3195
+ type: "memory_store";
3196
+ access?: null | "read_write" | "read_only";
3197
+ description?: string;
3198
+ instructions?: null | string;
3199
+ mount_path?: null | string;
3200
+ name?: null | string;
3201
+ }>;
3202
+ stats: {
3203
+ active_seconds?: number;
3204
+ duration_seconds?: number;
3205
+ };
3206
+ status: "rescheduling" | "running" | "idle" | "terminated";
3207
+ title: null | string;
3208
+ type: "session";
2384
3209
  updated_at: string;
3210
+ usage: {
3211
+ active_seconds?: number;
3212
+ cache_creation?: {
3213
+ ephemeral_1h_input_tokens?: number;
3214
+ ephemeral_5m_input_tokens?: number;
3215
+ };
3216
+ cache_read_input_tokens?: number;
3217
+ input_tokens?: number;
3218
+ list_cost?: null | {
3219
+ amount: string;
3220
+ currency: "USD";
3221
+ };
3222
+ output_tokens?: number;
3223
+ server_tool_use?: null | {
3224
+ web_fetch_requests?: number;
3225
+ web_search_requests?: number;
3226
+ };
3227
+ cost_by_product?: {
3228
+ [key: string]: string;
3229
+ };
3230
+ subagent_cost_micro_usd?: number;
3231
+ };
2385
3232
  vault_ids: Array<string>;
2386
- budget?: null | Types.AgentManaged76;
2387
- target: {
2388
- type: "environment" | "computer";
3233
+ deployment_id?: null | string;
3234
+ cwd: string;
3235
+ workspace?: {
3236
+ kind: "shared" | "isolated";
3237
+ path?: string;
3238
+ branch?: string;
2389
3239
  };
2390
- }>;
2391
- };
2392
- update: (options: import("./core/transport.js").CallOptions<Types.DeploymentsUpdateData>) => Promise<{
2393
- id: string;
2394
- agent: {
2395
- id: string;
2396
- type: "agent";
2397
- version: number;
2398
- } | {
2399
- id: string;
2400
- type: "agent_with_overrides";
2401
- permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2402
- cwd?: string;
2403
- model?: string | {
3240
+ computer_id?: string;
3241
+ model?: {
2404
3242
  id: string;
2405
- effort?: null | "low" | "medium" | "high" | "xhigh" | "max" | Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
2406
- speed?: null | "standard" | "fast";
3243
+ thinking: {
3244
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
3245
+ can_disable: boolean;
3246
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
3247
+ } | null;
2407
3248
  };
2408
- version: number;
2409
- };
2410
- archived_at: null | string;
2411
- created_at: string;
2412
- description: null | string;
2413
- environment_id?: string | null;
2414
- initial_events: Array<Types.AgentManaged86 | Types.AgentManaged87 | Types.AgentManaged90>;
2415
- metadata: Types.AgentManaged91;
2416
- name: string;
2417
- paused_reason: null | Types.AgentManaged92 | Types.AgentManaged93;
2418
- resources: Array<Types.AgentManaged108 | Types.AgentManaged109 | Types.AgentManaged110>;
2419
- schedule: null | Types.AgentManaged111;
2420
- status: "active" | "paused";
2421
- type: "deployment";
2422
- updated_at: string;
2423
- vault_ids: Array<string>;
2424
- budget?: null | Types.AgentManaged76;
2425
- target: {
2426
- type: "environment" | "computer";
2427
- };
2428
- }>;
2429
- };
2430
- environments: {
2431
- archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2432
- create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
2433
- list: (options?: import("./core/transport.js").CallOptions<Types.EnvironmentsListData> | undefined) => Promise<{
2434
- data: Array<Types.AgentManaged138>;
2435
- next_page: string | null;
2436
- }>;
2437
- retrieve: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsRetrieveData>) => Promise<Types.AgentManaged138>;
2438
- update: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsUpdateData>) => Promise<Types.AgentManaged138>;
2439
- };
2440
- sessions: {
3249
+ thinking?: {
3250
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
3251
+ } | null;
3252
+ forked_from?: {
3253
+ session_id: string;
3254
+ message_id: string;
3255
+ } | null;
3256
+ readonly external_user_id: string | null;
3257
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
3258
+ }>;
3259
+ };
2441
3260
  archive: (options: import("./core/transport.js").CallOptions<Types.SessionsArchiveData>) => Promise<{
2442
3261
  id: string;
2443
3262
  agent: {
@@ -2451,6 +3270,7 @@ export declare function createAgent(transport: Transport): {
2451
3270
  speed?: "standard" | "fast";
2452
3271
  settings?: {
2453
3272
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
3273
+ max_output_tokens?: number;
2454
3274
  };
2455
3275
  };
2456
3276
  multiagent: null | Types.AgentManaged171;
@@ -2477,6 +3297,11 @@ export declare function createAgent(transport: Transport): {
2477
3297
  vault_ids: Array<string>;
2478
3298
  deployment_id?: null | string;
2479
3299
  cwd: string;
3300
+ workspace?: {
3301
+ kind: "shared" | "isolated";
3302
+ path?: string;
3303
+ branch?: string;
3304
+ };
2480
3305
  computer_id?: string;
2481
3306
  model?: {
2482
3307
  id: string;
@@ -2612,6 +3437,7 @@ export declare function createAgent(transport: Transport): {
2612
3437
  speed?: "standard" | "fast";
2613
3438
  settings?: {
2614
3439
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
3440
+ max_output_tokens?: number;
2615
3441
  };
2616
3442
  };
2617
3443
  multiagent: null | Types.AgentManaged171;
@@ -2638,6 +3464,11 @@ export declare function createAgent(transport: Transport): {
2638
3464
  vault_ids: Array<string>;
2639
3465
  deployment_id?: null | string;
2640
3466
  cwd: string;
3467
+ workspace?: {
3468
+ kind: "shared" | "isolated";
3469
+ path?: string;
3470
+ branch?: string;
3471
+ };
2641
3472
  computer_id?: string;
2642
3473
  model?: {
2643
3474
  id: string;
@@ -2698,7 +3529,6 @@ export declare function createAgent(transport: Transport): {
2698
3529
  run_id: string | null;
2699
3530
  message_id?: string;
2700
3531
  } | {
2701
- full_access_available?: boolean;
2702
3532
  id: string;
2703
3533
  input: Types.AgentManaged197;
2704
3534
  mcp_server_name: string;
@@ -2708,6 +3538,18 @@ export declare function createAgent(transport: Transport): {
2708
3538
  evaluated_permission?: "allow" | "deny" | "ask";
2709
3539
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2710
3540
  session_thread_id?: null | string;
3541
+ permission_suggestions?: Array<{
3542
+ type: "add_rules";
3543
+ behavior: "allow";
3544
+ destination: "agent" | "session";
3545
+ rules: Array<{
3546
+ tool_name: string;
3547
+ rule_content: string;
3548
+ }>;
3549
+ }>;
3550
+ full_access_available?: boolean;
3551
+ user_once?: true;
3552
+ guarded_rule?: string;
2711
3553
  run_id: string | null;
2712
3554
  _meta?: {
2713
3555
  ui?: {
@@ -2721,17 +3563,6 @@ export declare function createAgent(transport: Transport): {
2721
3563
  };
2722
3564
  source?: "app" | "codemode";
2723
3565
  parent_tool_use_id?: string;
2724
- user_once?: true;
2725
- guarded_rule?: string;
2726
- permission_suggestions?: Array<{
2727
- type: "add_rules";
2728
- behavior: "allow";
2729
- destination: "agent" | "session";
2730
- rules: Array<{
2731
- tool_name: string;
2732
- rule_content: string;
2733
- }>;
2734
- }>;
2735
3566
  title?: string;
2736
3567
  input_titles?: {
2737
3568
  [key: string]: string;
@@ -2750,7 +3581,6 @@ export declare function createAgent(transport: Transport): {
2750
3581
  };
2751
3582
  source?: "app" | "codemode";
2752
3583
  } | {
2753
- full_access_available?: boolean;
2754
3584
  id: string;
2755
3585
  input: Types.AgentManaged206;
2756
3586
  name: string;
@@ -2759,9 +3589,6 @@ export declare function createAgent(transport: Transport): {
2759
3589
  evaluated_permission?: "allow" | "deny" | "ask";
2760
3590
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2761
3591
  session_thread_id?: null | string;
2762
- run_id: string | null;
2763
- user_once?: true;
2764
- guarded_rule?: string;
2765
3592
  permission_suggestions?: Array<{
2766
3593
  type: "add_rules";
2767
3594
  behavior: "allow";
@@ -2771,6 +3598,10 @@ export declare function createAgent(transport: Transport): {
2771
3598
  rule_content: string;
2772
3599
  }>;
2773
3600
  }>;
3601
+ full_access_available?: boolean;
3602
+ user_once?: true;
3603
+ guarded_rule?: string;
3604
+ run_id: string | null;
2774
3605
  } | {
2775
3606
  id: string;
2776
3607
  processed_at: string;
@@ -2791,9 +3622,6 @@ export declare function createAgent(transport: Transport): {
2791
3622
  type: "session.status_idle";
2792
3623
  run_id: string | null;
2793
3624
  } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
2794
- permission_mode_version?: number;
2795
- previous_permission_mode?: string | null;
2796
- permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2797
3625
  id: string;
2798
3626
  processed_at: string;
2799
3627
  type: "session.updated";
@@ -2801,6 +3629,9 @@ export declare function createAgent(transport: Transport): {
2801
3629
  budget?: null | Types.AgentManaged76;
2802
3630
  metadata?: Types.AgentManaged246;
2803
3631
  title?: null | string;
3632
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
3633
+ previous_permission_mode?: string | null;
3634
+ permission_mode_version?: number;
2804
3635
  model?: {
2805
3636
  id: string;
2806
3637
  };
@@ -2859,21 +3690,6 @@ export declare function createAgent(transport: Transport): {
2859
3690
  type: "user.steer";
2860
3691
  event_id: string;
2861
3692
  processed_at: string;
2862
- } | {
2863
- id: string;
2864
- type: "user.tool_confirmation";
2865
- processed_at: string;
2866
- tool_use_id: string;
2867
- result: "allow";
2868
- answers: {
2869
- [key: string]: string;
2870
- };
2871
- annotations?: {
2872
- [key: string]: {
2873
- preview?: string;
2874
- notes?: string;
2875
- };
2876
- };
2877
3693
  }>;
2878
3694
  next_page: string | null;
2879
3695
  }>;
@@ -2894,21 +3710,6 @@ export declare function createAgent(transport: Transport): {
2894
3710
  type: "user.steer";
2895
3711
  event_id: string;
2896
3712
  processed_at: string;
2897
- } | {
2898
- id: string;
2899
- type: "user.tool_confirmation";
2900
- processed_at: string;
2901
- tool_use_id: string;
2902
- result: "allow";
2903
- answers: {
2904
- [key: string]: string;
2905
- };
2906
- annotations?: {
2907
- [key: string]: {
2908
- preview?: string;
2909
- notes?: string;
2910
- };
2911
- };
2912
3713
  }>;
2913
3714
  }>;
2914
3715
  stream: (options: import("./core/transport.js").StreamOptions<Types.SessionsEventsStreamData>) => AsyncIterable<Types.AgentSseEvent>;
@@ -2961,6 +3762,7 @@ export declare function createAgent(transport: Transport): {
2961
3762
  speed?: "standard" | "fast";
2962
3763
  settings?: {
2963
3764
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
3765
+ max_output_tokens?: number;
2964
3766
  };
2965
3767
  };
2966
3768
  multiagent: null | {
@@ -3423,6 +4225,11 @@ export declare function createAgent(transport: Transport): {
3423
4225
  vault_ids: Array<string>;
3424
4226
  deployment_id?: null | string;
3425
4227
  cwd: string;
4228
+ workspace?: {
4229
+ kind: "shared" | "isolated";
4230
+ path?: string;
4231
+ branch?: string;
4232
+ };
3426
4233
  computer_id?: string;
3427
4234
  model?: {
3428
4235
  id: string;
@@ -3451,37 +4258,581 @@ export declare function createAgent(transport: Transport): {
3451
4258
  mcp_servers: Array<Types.AgentManaged36>;
3452
4259
  model: {
3453
4260
  id: string;
3454
- effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4261
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4262
+ inference_geo?: string;
4263
+ speed?: "standard" | "fast";
4264
+ settings?: {
4265
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4266
+ max_output_tokens?: number;
4267
+ };
4268
+ };
4269
+ multiagent: null | Types.AgentManaged171;
4270
+ name: string;
4271
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4272
+ system: null | string;
4273
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4274
+ type: "agent";
4275
+ version: number;
4276
+ };
4277
+ archived_at: null | string;
4278
+ budget: null | Types.AgentManaged76;
4279
+ created_at: string;
4280
+ environment_id?: string;
4281
+ metadata: Types.AgentManaged173;
4282
+ outcome_evaluations: Array<Types.AgentManaged174>;
4283
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4284
+ stats: Types.AgentManaged178;
4285
+ status: "rescheduling" | "running" | "idle" | "terminated";
4286
+ title: null | string;
4287
+ type: "session";
4288
+ updated_at: string;
4289
+ usage: Types.AgentManaged179;
4290
+ vault_ids: Array<string>;
4291
+ deployment_id?: null | string;
4292
+ cwd: string;
4293
+ workspace?: {
4294
+ kind: "shared" | "isolated";
4295
+ path?: string;
4296
+ branch?: string;
4297
+ };
4298
+ computer_id?: string;
4299
+ model?: {
4300
+ id: string;
4301
+ thinking: {
4302
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4303
+ can_disable: boolean;
4304
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4305
+ } | null;
4306
+ };
4307
+ thinking?: {
4308
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4309
+ } | null;
4310
+ forked_from?: {
4311
+ session_id: string;
4312
+ message_id: string;
4313
+ } | null;
4314
+ readonly external_user_id: string | null;
4315
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4316
+ }>;
4317
+ next_page: string | null;
4318
+ }>;
4319
+ name: {
4320
+ create: (options: import("./core/transport.js").CallOptions<Types.RenameSessionData>) => Promise<{
4321
+ id: string;
4322
+ agent: {
4323
+ id: string;
4324
+ description: null | string;
4325
+ mcp_servers: Array<{
4326
+ type: "url";
4327
+ name: string;
4328
+ url: string;
4329
+ headers?: {
4330
+ [key: string]: string;
4331
+ };
4332
+ timeout_ms?: number;
4333
+ } | {
4334
+ type: "sse";
4335
+ name: string;
4336
+ url: string;
4337
+ headers?: {
4338
+ [key: string]: string;
4339
+ };
4340
+ timeout_ms?: number;
4341
+ } | {
4342
+ type: "stdio";
4343
+ name: string;
4344
+ command: string;
4345
+ args?: Array<string>;
4346
+ env?: {
4347
+ [key: string]: string;
4348
+ };
4349
+ timeout_ms?: number;
4350
+ }>;
4351
+ model: {
4352
+ id: string;
4353
+ effort?: {
4354
+ type: "low";
4355
+ } | {
4356
+ type: "medium";
4357
+ } | {
4358
+ type: "high";
4359
+ } | {
4360
+ type: "xhigh";
4361
+ } | {
4362
+ type: "max";
4363
+ };
3455
4364
  inference_geo?: string;
3456
4365
  speed?: "standard" | "fast";
3457
4366
  settings?: {
3458
4367
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4368
+ max_output_tokens?: number;
3459
4369
  };
3460
4370
  };
3461
- multiagent: null | Types.AgentManaged171;
4371
+ multiagent: null | {
4372
+ agents: Array<{
4373
+ model: string;
4374
+ type: "advisor";
4375
+ } | {
4376
+ id: string;
4377
+ description: null | string;
4378
+ mcp_servers: Array<{
4379
+ type: "url";
4380
+ name: string;
4381
+ url: string;
4382
+ headers?: {
4383
+ [key: string]: string;
4384
+ };
4385
+ timeout_ms?: number;
4386
+ } | {
4387
+ type: "sse";
4388
+ name: string;
4389
+ url: string;
4390
+ headers?: {
4391
+ [key: string]: string;
4392
+ };
4393
+ timeout_ms?: number;
4394
+ } | {
4395
+ type: "stdio";
4396
+ name: string;
4397
+ command: string;
4398
+ args?: Array<string>;
4399
+ env?: {
4400
+ [key: string]: string;
4401
+ };
4402
+ timeout_ms?: number;
4403
+ }>;
4404
+ model: {
4405
+ id: string;
4406
+ effort?: {
4407
+ type: "low";
4408
+ } | {
4409
+ type: "medium";
4410
+ } | {
4411
+ type: "high";
4412
+ } | {
4413
+ type: "xhigh";
4414
+ } | {
4415
+ type: "max";
4416
+ };
4417
+ inference_geo?: string;
4418
+ speed?: "standard" | "fast";
4419
+ };
4420
+ name: string;
4421
+ skills: Array<{
4422
+ skill_id: string;
4423
+ type: "anthropic";
4424
+ version: string;
4425
+ } | {
4426
+ skill_id: string;
4427
+ type: "custom";
4428
+ version: string;
4429
+ }>;
4430
+ system: null | string;
4431
+ tools: Array<{
4432
+ configs: Array<{
4433
+ enabled: boolean;
4434
+ name: "bash";
4435
+ permission_policy: {
4436
+ type: "always_allow";
4437
+ } | {
4438
+ type: "always_ask";
4439
+ } | {
4440
+ type: "auto";
4441
+ };
4442
+ type: "bash";
4443
+ } | {
4444
+ enabled: boolean;
4445
+ name: "edit";
4446
+ permission_policy: {
4447
+ type: "always_allow";
4448
+ } | {
4449
+ type: "always_ask";
4450
+ } | {
4451
+ type: "auto";
4452
+ };
4453
+ type: "edit";
4454
+ } | {
4455
+ enabled: boolean;
4456
+ name: "read";
4457
+ permission_policy: {
4458
+ type: "always_allow";
4459
+ } | {
4460
+ type: "always_ask";
4461
+ } | {
4462
+ type: "auto";
4463
+ };
4464
+ type: "read";
4465
+ } | {
4466
+ enabled: boolean;
4467
+ name: "write";
4468
+ permission_policy: {
4469
+ type: "always_allow";
4470
+ } | {
4471
+ type: "always_ask";
4472
+ } | {
4473
+ type: "auto";
4474
+ };
4475
+ type: "write";
4476
+ } | {
4477
+ enabled: boolean;
4478
+ name: "glob";
4479
+ permission_policy: {
4480
+ type: "always_allow";
4481
+ } | {
4482
+ type: "always_ask";
4483
+ } | {
4484
+ type: "auto";
4485
+ };
4486
+ type: "glob";
4487
+ } | {
4488
+ enabled: boolean;
4489
+ name: "grep";
4490
+ permission_policy: {
4491
+ type: "always_allow";
4492
+ } | {
4493
+ type: "always_ask";
4494
+ } | {
4495
+ type: "auto";
4496
+ };
4497
+ type: "grep";
4498
+ } | {
4499
+ enabled: boolean;
4500
+ name: "web_fetch";
4501
+ permission_policy: {
4502
+ type: "always_allow";
4503
+ } | {
4504
+ type: "always_ask";
4505
+ } | {
4506
+ type: "auto";
4507
+ };
4508
+ type: "web_fetch";
4509
+ allowed_domains?: Array<string>;
4510
+ blocked_domains?: Array<string>;
4511
+ max_content_tokens?: null | number;
4512
+ } | {
4513
+ enabled: boolean;
4514
+ name: "web_search";
4515
+ permission_policy: {
4516
+ type: "always_allow";
4517
+ } | {
4518
+ type: "always_ask";
4519
+ } | {
4520
+ type: "auto";
4521
+ };
4522
+ type: "web_search";
4523
+ allowed_domains?: Array<string>;
4524
+ blocked_domains?: Array<string>;
4525
+ user_location?: null | {
4526
+ type: "approximate";
4527
+ city?: null | string;
4528
+ country?: null | string;
4529
+ region?: null | string;
4530
+ timezone?: null | string;
4531
+ };
4532
+ } | {
4533
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
4534
+ enabled: boolean;
4535
+ permission_policy: {
4536
+ type: "always_allow" | "always_ask";
4537
+ };
4538
+ }>;
4539
+ default_config: {
4540
+ enabled: boolean;
4541
+ permission_policy: {
4542
+ type: "always_allow";
4543
+ } | {
4544
+ type: "always_ask";
4545
+ } | {
4546
+ type: "auto";
4547
+ };
4548
+ };
4549
+ type: "agent_toolset_20260401";
4550
+ } | {
4551
+ type: "mcp_toolset";
4552
+ mcp_server_name: string;
4553
+ default_config?: {
4554
+ enabled?: boolean | null;
4555
+ permission_policy?: null | {
4556
+ type: "always_allow" | "always_ask";
4557
+ };
4558
+ } | null;
4559
+ configs?: Array<{
4560
+ name: string;
4561
+ enabled?: boolean | null;
4562
+ permission_policy?: null | {
4563
+ type: "always_allow" | "always_ask";
4564
+ };
4565
+ }> | null;
4566
+ } | {
4567
+ description: string;
4568
+ input_schema: {
4569
+ type: "object";
4570
+ properties?: null | {
4571
+ [key: string]: unknown;
4572
+ };
4573
+ required?: null | Array<string>;
4574
+ [key: string]: unknown;
4575
+ };
4576
+ name: string;
4577
+ type: "custom";
4578
+ }>;
4579
+ type: "agent";
4580
+ version: number;
4581
+ }>;
4582
+ type: "coordinator";
4583
+ };
3462
4584
  name: string;
3463
- skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4585
+ skills: Array<{
4586
+ skill_id: string;
4587
+ type: "anthropic";
4588
+ version: string;
4589
+ } | {
4590
+ skill_id: string;
4591
+ type: "custom";
4592
+ version: string;
4593
+ }>;
3464
4594
  system: null | string;
3465
- tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4595
+ tools: Array<{
4596
+ configs: Array<{
4597
+ enabled: boolean;
4598
+ name: "bash";
4599
+ permission_policy: {
4600
+ type: "always_allow";
4601
+ } | {
4602
+ type: "always_ask";
4603
+ } | {
4604
+ type: "auto";
4605
+ };
4606
+ type: "bash";
4607
+ } | {
4608
+ enabled: boolean;
4609
+ name: "edit";
4610
+ permission_policy: {
4611
+ type: "always_allow";
4612
+ } | {
4613
+ type: "always_ask";
4614
+ } | {
4615
+ type: "auto";
4616
+ };
4617
+ type: "edit";
4618
+ } | {
4619
+ enabled: boolean;
4620
+ name: "read";
4621
+ permission_policy: {
4622
+ type: "always_allow";
4623
+ } | {
4624
+ type: "always_ask";
4625
+ } | {
4626
+ type: "auto";
4627
+ };
4628
+ type: "read";
4629
+ } | {
4630
+ enabled: boolean;
4631
+ name: "write";
4632
+ permission_policy: {
4633
+ type: "always_allow";
4634
+ } | {
4635
+ type: "always_ask";
4636
+ } | {
4637
+ type: "auto";
4638
+ };
4639
+ type: "write";
4640
+ } | {
4641
+ enabled: boolean;
4642
+ name: "glob";
4643
+ permission_policy: {
4644
+ type: "always_allow";
4645
+ } | {
4646
+ type: "always_ask";
4647
+ } | {
4648
+ type: "auto";
4649
+ };
4650
+ type: "glob";
4651
+ } | {
4652
+ enabled: boolean;
4653
+ name: "grep";
4654
+ permission_policy: {
4655
+ type: "always_allow";
4656
+ } | {
4657
+ type: "always_ask";
4658
+ } | {
4659
+ type: "auto";
4660
+ };
4661
+ type: "grep";
4662
+ } | {
4663
+ enabled: boolean;
4664
+ name: "web_fetch";
4665
+ permission_policy: {
4666
+ type: "always_allow";
4667
+ } | {
4668
+ type: "always_ask";
4669
+ } | {
4670
+ type: "auto";
4671
+ };
4672
+ type: "web_fetch";
4673
+ allowed_domains?: Array<string>;
4674
+ blocked_domains?: Array<string>;
4675
+ max_content_tokens?: null | number;
4676
+ } | {
4677
+ enabled: boolean;
4678
+ name: "web_search";
4679
+ permission_policy: {
4680
+ type: "always_allow";
4681
+ } | {
4682
+ type: "always_ask";
4683
+ } | {
4684
+ type: "auto";
4685
+ };
4686
+ type: "web_search";
4687
+ allowed_domains?: Array<string>;
4688
+ blocked_domains?: Array<string>;
4689
+ user_location?: null | {
4690
+ type: "approximate";
4691
+ city?: null | string;
4692
+ country?: null | string;
4693
+ region?: null | string;
4694
+ timezone?: null | string;
4695
+ };
4696
+ } | {
4697
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
4698
+ enabled: boolean;
4699
+ permission_policy: {
4700
+ type: "always_allow" | "always_ask";
4701
+ };
4702
+ }>;
4703
+ default_config: {
4704
+ enabled: boolean;
4705
+ permission_policy: {
4706
+ type: "always_allow";
4707
+ } | {
4708
+ type: "always_ask";
4709
+ } | {
4710
+ type: "auto";
4711
+ };
4712
+ };
4713
+ type: "agent_toolset_20260401";
4714
+ } | {
4715
+ type: "mcp_toolset";
4716
+ mcp_server_name: string;
4717
+ default_config?: {
4718
+ enabled?: boolean | null;
4719
+ permission_policy?: null | {
4720
+ type: "always_allow" | "always_ask";
4721
+ };
4722
+ } | null;
4723
+ configs?: Array<{
4724
+ name: string;
4725
+ enabled?: boolean | null;
4726
+ permission_policy?: null | {
4727
+ type: "always_allow" | "always_ask";
4728
+ };
4729
+ }> | null;
4730
+ } | {
4731
+ description: string;
4732
+ input_schema: {
4733
+ type: "object";
4734
+ properties?: null | {
4735
+ [key: string]: unknown;
4736
+ };
4737
+ required?: null | Array<string>;
4738
+ [key: string]: unknown;
4739
+ };
4740
+ name: string;
4741
+ type: "custom";
4742
+ }>;
3466
4743
  type: "agent";
3467
4744
  version: number;
3468
4745
  };
3469
4746
  archived_at: null | string;
3470
- budget: null | Types.AgentManaged76;
4747
+ budget: null | {
4748
+ max_list_cost: {
4749
+ amount: string;
4750
+ currency: "USD";
4751
+ };
4752
+ type: "limit";
4753
+ };
3471
4754
  created_at: string;
3472
4755
  environment_id?: string;
3473
- metadata: Types.AgentManaged173;
3474
- outcome_evaluations: Array<Types.AgentManaged174>;
3475
- resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
3476
- stats: Types.AgentManaged178;
4756
+ metadata: {
4757
+ [key: string]: string;
4758
+ };
4759
+ outcome_evaluations: Array<{
4760
+ completed_at: null | string;
4761
+ description: string;
4762
+ explanation: null | string;
4763
+ iteration: number;
4764
+ outcome_id: string;
4765
+ result: string;
4766
+ type: "outcome_evaluation";
4767
+ }>;
4768
+ resources: Array<{
4769
+ id: string;
4770
+ created_at: string;
4771
+ mount_path: string;
4772
+ type: "github_repository";
4773
+ updated_at: string;
4774
+ url: string;
4775
+ checkout?: null | {
4776
+ name: string;
4777
+ type: "branch";
4778
+ } | {
4779
+ sha: string;
4780
+ type: "commit";
4781
+ };
4782
+ } | {
4783
+ id: string;
4784
+ created_at: string;
4785
+ file_id: string;
4786
+ mount_path: string;
4787
+ type: "file";
4788
+ updated_at: string;
4789
+ } | {
4790
+ memory_store_id: string;
4791
+ type: "memory_store";
4792
+ access?: null | "read_write" | "read_only";
4793
+ description?: string;
4794
+ instructions?: null | string;
4795
+ mount_path?: null | string;
4796
+ name?: null | string;
4797
+ }>;
4798
+ stats: {
4799
+ active_seconds?: number;
4800
+ duration_seconds?: number;
4801
+ };
3477
4802
  status: "rescheduling" | "running" | "idle" | "terminated";
3478
4803
  title: null | string;
3479
4804
  type: "session";
3480
4805
  updated_at: string;
3481
- usage: Types.AgentManaged179;
4806
+ usage: {
4807
+ active_seconds?: number;
4808
+ cache_creation?: {
4809
+ ephemeral_1h_input_tokens?: number;
4810
+ ephemeral_5m_input_tokens?: number;
4811
+ };
4812
+ cache_read_input_tokens?: number;
4813
+ input_tokens?: number;
4814
+ list_cost?: null | {
4815
+ amount: string;
4816
+ currency: "USD";
4817
+ };
4818
+ output_tokens?: number;
4819
+ server_tool_use?: null | {
4820
+ web_fetch_requests?: number;
4821
+ web_search_requests?: number;
4822
+ };
4823
+ cost_by_product?: {
4824
+ [key: string]: string;
4825
+ };
4826
+ subagent_cost_micro_usd?: number;
4827
+ };
3482
4828
  vault_ids: Array<string>;
3483
4829
  deployment_id?: null | string;
3484
4830
  cwd: string;
4831
+ workspace?: {
4832
+ kind: "shared" | "isolated";
4833
+ path?: string;
4834
+ branch?: string;
4835
+ };
3485
4836
  computer_id?: string;
3486
4837
  model?: {
3487
4838
  id: string;
@@ -3501,8 +4852,7 @@ export declare function createAgent(transport: Transport): {
3501
4852
  readonly external_user_id: string | null;
3502
4853
  readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
3503
4854
  }>;
3504
- next_page: string | null;
3505
- }>;
4855
+ };
3506
4856
  requests: {
3507
4857
  list: (options: import("./core/transport.js").CallOptions<Types.ListSessionRequestsData>) => Promise<{
3508
4858
  data: Array<{
@@ -3547,6 +4897,7 @@ export declare function createAgent(transport: Transport): {
3547
4897
  speed?: "standard" | "fast";
3548
4898
  settings?: {
3549
4899
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4900
+ max_output_tokens?: number;
3550
4901
  };
3551
4902
  };
3552
4903
  multiagent: null | Types.AgentManaged171;
@@ -3573,6 +4924,11 @@ export declare function createAgent(transport: Transport): {
3573
4924
  vault_ids: Array<string>;
3574
4925
  deployment_id?: null | string;
3575
4926
  cwd: string;
4927
+ workspace?: {
4928
+ kind: "shared" | "isolated";
4929
+ path?: string;
4930
+ branch?: string;
4931
+ };
3576
4932
  computer_id?: string;
3577
4933
  model?: {
3578
4934
  id: string;
@@ -3719,7 +5075,6 @@ export declare function createAgent(transport: Transport): {
3719
5075
  run_id: string | null;
3720
5076
  message_id?: string;
3721
5077
  } | {
3722
- full_access_available?: boolean;
3723
5078
  id: string;
3724
5079
  input: Types.AgentManaged197;
3725
5080
  mcp_server_name: string;
@@ -3729,6 +5084,18 @@ export declare function createAgent(transport: Transport): {
3729
5084
  evaluated_permission?: "allow" | "deny" | "ask";
3730
5085
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
3731
5086
  session_thread_id?: null | string;
5087
+ permission_suggestions?: Array<{
5088
+ type: "add_rules";
5089
+ behavior: "allow";
5090
+ destination: "agent" | "session";
5091
+ rules: Array<{
5092
+ tool_name: string;
5093
+ rule_content: string;
5094
+ }>;
5095
+ }>;
5096
+ full_access_available?: boolean;
5097
+ user_once?: true;
5098
+ guarded_rule?: string;
3732
5099
  run_id: string | null;
3733
5100
  parent_tool_use_id?: string;
3734
5101
  _meta?: {
@@ -3742,17 +5109,6 @@ export declare function createAgent(transport: Transport): {
3742
5109
  };
3743
5110
  };
3744
5111
  source?: "app" | "codemode";
3745
- user_once?: true;
3746
- guarded_rule?: string;
3747
- permission_suggestions?: Array<{
3748
- type: "add_rules";
3749
- behavior: "allow";
3750
- destination: "agent" | "session";
3751
- rules: Array<{
3752
- tool_name: string;
3753
- rule_content: string;
3754
- }>;
3755
- }>;
3756
5112
  title?: string;
3757
5113
  input_titles?: {
3758
5114
  [key: string]: string;
@@ -3771,7 +5127,6 @@ export declare function createAgent(transport: Transport): {
3771
5127
  };
3772
5128
  source?: "app" | "codemode";
3773
5129
  } | {
3774
- full_access_available?: boolean;
3775
5130
  id: string;
3776
5131
  input: Types.AgentManaged206;
3777
5132
  name: string;
@@ -3780,9 +5135,6 @@ export declare function createAgent(transport: Transport): {
3780
5135
  evaluated_permission?: "allow" | "deny" | "ask";
3781
5136
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
3782
5137
  session_thread_id?: null | string;
3783
- run_id: string | null;
3784
- user_once?: true;
3785
- guarded_rule?: string;
3786
5138
  permission_suggestions?: Array<{
3787
5139
  type: "add_rules";
3788
5140
  behavior: "allow";
@@ -3792,6 +5144,10 @@ export declare function createAgent(transport: Transport): {
3792
5144
  rule_content: string;
3793
5145
  }>;
3794
5146
  }>;
5147
+ full_access_available?: boolean;
5148
+ user_once?: true;
5149
+ guarded_rule?: string;
5150
+ run_id: string | null;
3795
5151
  } | {
3796
5152
  id: string;
3797
5153
  processed_at: string;
@@ -3812,9 +5168,6 @@ export declare function createAgent(transport: Transport): {
3812
5168
  type: "session.status_idle";
3813
5169
  run_id: string | null;
3814
5170
  } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
3815
- permission_mode_version?: number;
3816
- previous_permission_mode?: string | null;
3817
- permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
3818
5171
  id: string;
3819
5172
  processed_at: string;
3820
5173
  type: "session.updated";
@@ -3822,6 +5175,9 @@ export declare function createAgent(transport: Transport): {
3822
5175
  budget?: null | Types.AgentManaged76;
3823
5176
  metadata?: Types.AgentManaged246;
3824
5177
  title?: null | string;
5178
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
5179
+ previous_permission_mode?: string | null;
5180
+ permission_mode_version?: number;
3825
5181
  model?: {
3826
5182
  id: string;
3827
5183
  };
@@ -3912,6 +5268,7 @@ export declare function createAgent(transport: Transport): {
3912
5268
  speed?: "standard" | "fast";
3913
5269
  settings?: {
3914
5270
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
5271
+ max_output_tokens?: number;
3915
5272
  };
3916
5273
  };
3917
5274
  multiagent: null | Types.AgentManaged171;
@@ -3938,6 +5295,11 @@ export declare function createAgent(transport: Transport): {
3938
5295
  vault_ids: Array<string>;
3939
5296
  deployment_id?: null | string;
3940
5297
  cwd: string;
5298
+ workspace?: {
5299
+ kind: "shared" | "isolated";
5300
+ path?: string;
5301
+ branch?: string;
5302
+ };
3941
5303
  computer_id?: string;
3942
5304
  model?: {
3943
5305
  id: string;
@@ -4002,6 +5364,29 @@ export declare function createAgent(transport: Transport): {
4002
5364
  next_page: null;
4003
5365
  }>;
4004
5366
  };
5367
+ uploads: {
5368
+ contentUrl: {
5369
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateAgentUploadContentUrlData>) => Promise<{
5370
+ url: string;
5371
+ expires_at: string;
5372
+ }>;
5373
+ };
5374
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateAgentUploadData>) => Promise<{
5375
+ upload_id: string;
5376
+ expires_at: string;
5377
+ url: string;
5378
+ } | {
5379
+ upload_id: string;
5380
+ expires_at: string;
5381
+ part_size: number;
5382
+ parts: Array<{
5383
+ part_number: number;
5384
+ url: string;
5385
+ }>;
5386
+ complete_url: string;
5387
+ status_url: string;
5388
+ }>;
5389
+ };
4005
5390
  };
4006
5391
  export declare function createApplication(transport: Transport): {
4007
5392
  assets: {
@@ -4266,6 +5651,11 @@ export declare function createAutomation(transport: Transport): {
4266
5651
  };
4267
5652
  };
4268
5653
  };
5654
+ export declare function createBilling(transport: Transport): {
5655
+ prices: {
5656
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListPublicPricesData> | undefined) => Promise<Types.BillingPriceList>;
5657
+ };
5658
+ };
4269
5659
  export declare function createBrowser(transport: Transport): {
4270
5660
  connect: {
4271
5661
  retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserConnectData> | undefined) => Promise<unknown>;
@@ -4589,6 +5979,7 @@ export declare function createDatabase(transport: Transport): {
4589
5979
  export declare function createDevops(transport: Transport): {
4590
5980
  changes: {
4591
5981
  abandon: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesAbandonData>) => Promise<Types.DevopsChange>;
5982
+ gitCredential: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesGitCredentialData>) => Promise<Types.DevopsChangeGitCredential>;
4592
5983
  markLastSlice: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesMarkLastSliceData>) => Promise<Types.DevopsChange>;
4593
5984
  openPullRequest: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesOpenPullRequestData>) => Promise<Types.DevopsChangePullRequestOpened>;
4594
5985
  retrieve: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesGetData>) => Promise<Types.DevopsChange>;
@@ -4711,6 +6102,7 @@ export declare function createDevops(transport: Transport): {
4711
6102
  };
4712
6103
  };
4713
6104
  pullRequests: {
6105
+ close: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsCloseData>) => Promise<Types.DevopsPullRequest>;
4714
6106
  merge: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsMergeData>) => Promise<Types.DevopsPullRequest>;
4715
6107
  recordVerdict: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRecordVerdictData>) => Promise<Types.DevopsPullRequest>;
4716
6108
  rerunGate: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRerunGateData>) => Promise<Types.DevopsPullRequest>;
@@ -4930,6 +6322,12 @@ export declare function createMedia(transport: Transport): {
4930
6322
  retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
4931
6323
  };
4932
6324
  update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
6325
+ voices: {
6326
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateVoiceData>) => Promise<Types.MediaJob>;
6327
+ designs: {
6328
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaDesignVoiceData>) => Promise<Types.MediaJob>;
6329
+ };
6330
+ };
4933
6331
  };
4934
6332
  speech: {
4935
6333
  create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateSpeechData>) => Promise<Types.MediaJob>;
@@ -5453,6 +6851,7 @@ export declare function createModel(transport: Transport): {
5453
6851
  unsigned_urls: Array<string>;
5454
6852
  usage?: {
5455
6853
  cost: number;
6854
+ billed_seconds?: number;
5456
6855
  };
5457
6856
  }>;
5458
6857
  delete: (options: import("./core/transport.js").CallOptions<Types.DeleteVideoData>) => Promise<{
@@ -5483,6 +6882,7 @@ export declare function createModel(transport: Transport): {
5483
6882
  unsigned_urls: Array<string>;
5484
6883
  usage?: {
5485
6884
  cost: number;
6885
+ billed_seconds?: number;
5486
6886
  };
5487
6887
  }>;
5488
6888
  has_more: boolean;
@@ -5511,6 +6911,7 @@ export declare function createModel(transport: Transport): {
5511
6911
  unsigned_urls: Array<string>;
5512
6912
  usage?: {
5513
6913
  cost: number;
6914
+ billed_seconds?: number;
5514
6915
  };
5515
6916
  }>;
5516
6917
  retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
@@ -5927,6 +7328,18 @@ export declare function createRegistry(transport: Transport): {
5927
7328
  update: (options: import("./core/transport.js").CallOptions<Types.RegistryInstallationsUpdateData>) => Promise<Types.RegistryInstallation>;
5928
7329
  };
5929
7330
  packages: {
7331
+ git: {
7332
+ commits: {
7333
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitCommitsRetrieveData>) => Promise<Types.RegistryGitCommit>;
7334
+ };
7335
+ files: {
7336
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitFilesRetrieveData>) => Promise<Blob | File>;
7337
+ };
7338
+ retrieveLog: (options: import("./core/transport.js").CallOptions<Types.RegistryGitLogData>) => Promise<Types.RegistryGitLog>;
7339
+ trees: {
7340
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitTreesRetrieveData>) => Promise<Types.RegistryGitTree>;
7341
+ };
7342
+ };
5930
7343
  installations: {
5931
7344
  create: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsCreateData>) => Promise<Types.RegistryInstallResult>;
5932
7345
  list: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsListData>) => Promise<Types.RegistryInstallationList>;
@@ -5958,12 +7371,105 @@ export declare function createRegistry(transport: Transport): {
5958
7371
  };
5959
7372
  };
5960
7373
  export declare function createSandbox(transport: Transport): {
7374
+ byod: {
7375
+ devices: {
7376
+ disconnect: {
7377
+ create: (options: import("./core/transport.js").CallOptions<Types.DisconnectByodDeviceData>) => Promise<{
7378
+ id: string;
7379
+ object: "byod_device";
7380
+ disconnected: true;
7381
+ }>;
7382
+ };
7383
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListByodDevicesData> | undefined) => Promise<{
7384
+ data: Array<{
7385
+ object: "byod_device";
7386
+ id: string;
7387
+ platform: "android" | "macos" | "linux";
7388
+ name: string;
7389
+ model: string;
7390
+ os_version: string;
7391
+ online: boolean;
7392
+ last_seen_at: string | null;
7393
+ created_at: string;
7394
+ capabilities: Array<"display" | "agent">;
7395
+ agent_dirs: Array<string>;
7396
+ allow_bypass: boolean;
7397
+ }>;
7398
+ }>;
7399
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetByodDeviceData>) => Promise<{
7400
+ object: "byod_device";
7401
+ id: string;
7402
+ platform: "android" | "macos" | "linux";
7403
+ name: string;
7404
+ model: string;
7405
+ os_version: string;
7406
+ online: boolean;
7407
+ last_seen_at: string | null;
7408
+ created_at: string;
7409
+ capabilities: Array<"display" | "agent">;
7410
+ agent_dirs: Array<string>;
7411
+ allow_bypass: boolean;
7412
+ }>;
7413
+ update: (options: import("./core/transport.js").CallOptions<Types.UpdateByodDeviceData>) => Promise<{
7414
+ object: "byod_device";
7415
+ id: string;
7416
+ platform: "android" | "macos" | "linux";
7417
+ name: string;
7418
+ model: string;
7419
+ os_version: string;
7420
+ online: boolean;
7421
+ last_seen_at: string | null;
7422
+ created_at: string;
7423
+ capabilities: Array<"display" | "agent">;
7424
+ agent_dirs: Array<string>;
7425
+ allow_bypass: boolean;
7426
+ }>;
7427
+ };
7428
+ pairings: {
7429
+ claim: {
7430
+ create: (options: import("./core/transport.js").CallOptions<Types.ClaimByodPairingData>) => Promise<{
7431
+ device_id: string;
7432
+ credential: string;
7433
+ socket_url: string;
7434
+ }>;
7435
+ };
7436
+ create: (options?: import("./core/transport.js").CallOptions<Types.CreateByodPairingData> | undefined) => Promise<{
7437
+ code: string;
7438
+ expires_at: string;
7439
+ qr: string;
7440
+ }>;
7441
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetByodPairingData>) => Promise<{
7442
+ organization_name: string;
7443
+ expires_at: string;
7444
+ }>;
7445
+ };
7446
+ };
5961
7447
  events: {
5962
7448
  sandboxes: {
5963
7449
  retrieve: (options: import("./core/transport.js").CallOptions<Types.GetSandboxEventsData>) => Promise<Types.SandboxSandboxEvent[]>;
5964
7450
  };
5965
7451
  };
5966
7452
  sandboxes: {
7453
+ act: (options: import("./core/transport.js").CallOptions<Types.ActOnSandboxDisplayData>) => Promise<{
7454
+ type: "snapshot";
7455
+ snapshot: string;
7456
+ refs: number;
7457
+ truncated: boolean;
7458
+ package: string;
7459
+ } | {
7460
+ type: "screenshot";
7461
+ mediaType: string;
7462
+ data: string;
7463
+ width: number;
7464
+ height: number;
7465
+ bytes: number;
7466
+ } | {
7467
+ type: "ok";
7468
+ ms?: number;
7469
+ } | {
7470
+ type: "wait";
7471
+ ms: number;
7472
+ }>;
5967
7473
  commands: {
5968
7474
  run: (options: import("./core/transport.js").CallOptions<Types.RunSandboxCommandData>) => Promise<{
5969
7475
  stdout: string;
@@ -6492,6 +7998,7 @@ export declare const resourceFactories: {
6492
7998
  agent: typeof createAgent;
6493
7999
  application: typeof createApplication;
6494
8000
  automation: typeof createAutomation;
8001
+ billing: typeof createBilling;
6495
8002
  browser: typeof createBrowser;
6496
8003
  canvas: typeof createCanvas;
6497
8004
  content: typeof createContent;