@deepraxis/sdk 0.1.1-dev.ed927d7 → 0.1.1-dev.ee5d4e3

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.
@@ -42,6 +42,7 @@ export declare function createAgent(transport: Transport): {
42
42
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
43
43
  id: string;
44
44
  access: "read_only" | "read_write" | "invoke";
45
+ customer_access?: "read_only" | "read_write" | "invoke";
45
46
  instructions?: string;
46
47
  readonly verified?: boolean;
47
48
  enabled?: boolean;
@@ -159,6 +160,7 @@ export declare function createAgent(transport: Transport): {
159
160
  };
160
161
  avatar: string | null;
161
162
  creation_source: string | null;
163
+ managed_by: string | null;
162
164
  identity_number: string | null;
163
165
  environment_id?: string | null;
164
166
  vault_ids?: Array<string>;
@@ -225,6 +227,7 @@ export declare function createAgent(transport: Transport): {
225
227
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
226
228
  id: string;
227
229
  access: "read_only" | "read_write" | "invoke";
230
+ customer_access?: "read_only" | "read_write" | "invoke";
228
231
  instructions?: string;
229
232
  readonly verified?: boolean;
230
233
  enabled?: boolean;
@@ -349,6 +352,7 @@ export declare function createAgent(transport: Transport): {
349
352
  };
350
353
  avatar: string | null;
351
354
  creation_source: string | null;
355
+ managed_by: string | null;
352
356
  identity_number: string | null;
353
357
  environment_id?: string | null;
354
358
  vault_ids?: Array<string>;
@@ -653,21 +657,6 @@ export declare function createAgent(transport: Transport): {
653
657
  type: "user.steer";
654
658
  event_id: string;
655
659
  processed_at: string;
656
- } | {
657
- id: string;
658
- type: "user.tool_confirmation";
659
- processed_at: string;
660
- tool_use_id: string;
661
- result: "allow";
662
- answers: {
663
- [key: string]: string;
664
- };
665
- annotations?: {
666
- [key: string]: {
667
- preview?: string;
668
- notes?: string;
669
- };
670
- };
671
660
  }>;
672
661
  next_page: string | null;
673
662
  }>;
@@ -688,21 +677,6 @@ export declare function createAgent(transport: Transport): {
688
677
  type: "user.steer";
689
678
  event_id: string;
690
679
  processed_at: string;
691
- } | {
692
- id: string;
693
- type: "user.tool_confirmation";
694
- processed_at: string;
695
- tool_use_id: string;
696
- result: "allow";
697
- answers: {
698
- [key: string]: string;
699
- };
700
- annotations?: {
701
- [key: string]: {
702
- preview?: string;
703
- notes?: string;
704
- };
705
- };
706
680
  }>;
707
681
  }>;
708
682
  stream: (options: import("./core/transport.js").StreamOptions<Types.StreamAgentEventsData>) => AsyncIterable<Types.AgentSseEvent>;
@@ -761,6 +735,7 @@ export declare function createAgent(transport: Transport): {
761
735
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
762
736
  id: string;
763
737
  access: "read_only" | "read_write" | "invoke";
738
+ customer_access?: "read_only" | "read_write" | "invoke";
764
739
  instructions?: string;
765
740
  readonly verified?: boolean;
766
741
  enabled?: boolean;
@@ -885,6 +860,7 @@ export declare function createAgent(transport: Transport): {
885
860
  };
886
861
  avatar: string | null;
887
862
  creation_source: string | null;
863
+ managed_by: string | null;
888
864
  identity_number: string | null;
889
865
  environment_id?: string | null;
890
866
  vault_ids?: Array<string>;
@@ -898,6 +874,34 @@ export declare function createAgent(transport: Transport): {
898
874
  }>;
899
875
  next_page: string | null;
900
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
+ };
901
905
  retrieve: (options: import("./core/transport.js").CallOptions<Types.AgentsRetrieveData>) => Promise<{
902
906
  id: string;
903
907
  archived_at: null | string;
@@ -938,6 +942,7 @@ export declare function createAgent(transport: Transport): {
938
942
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
939
943
  id: string;
940
944
  access: "read_only" | "read_write" | "invoke";
945
+ customer_access?: "read_only" | "read_write" | "invoke";
941
946
  instructions?: string;
942
947
  readonly verified?: boolean;
943
948
  enabled?: boolean;
@@ -1062,6 +1067,7 @@ export declare function createAgent(transport: Transport): {
1062
1067
  };
1063
1068
  avatar: string | null;
1064
1069
  creation_source: string | null;
1070
+ managed_by: string | null;
1065
1071
  identity_number: string | null;
1066
1072
  environment_id?: string | null;
1067
1073
  vault_ids?: Array<string>;
@@ -1136,6 +1142,21 @@ export declare function createAgent(transport: Transport): {
1136
1142
  max_files_per_session: number;
1137
1143
  };
1138
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
+ currency?: "USD" | "CNY" | null;
1158
+ };
1159
+ }>;
1139
1160
  unarchive: {
1140
1161
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
1141
1162
  id: string;
@@ -1379,6 +1400,7 @@ export declare function createAgent(transport: Transport): {
1379
1400
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1380
1401
  id: string;
1381
1402
  access: "read_only" | "read_write" | "invoke";
1403
+ customer_access?: "read_only" | "read_write" | "invoke";
1382
1404
  instructions?: string;
1383
1405
  readonly verified?: boolean;
1384
1406
  enabled?: boolean;
@@ -1503,6 +1525,7 @@ export declare function createAgent(transport: Transport): {
1503
1525
  };
1504
1526
  avatar: string | null;
1505
1527
  creation_source: string | null;
1528
+ managed_by: string | null;
1506
1529
  identity_number: string | null;
1507
1530
  environment_id?: string | null;
1508
1531
  vault_ids?: Array<string>;
@@ -1555,6 +1578,7 @@ export declare function createAgent(transport: Transport): {
1555
1578
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1556
1579
  id: string;
1557
1580
  access: "read_only" | "read_write" | "invoke";
1581
+ customer_access?: "read_only" | "read_write" | "invoke";
1558
1582
  instructions?: string;
1559
1583
  readonly verified?: boolean;
1560
1584
  enabled?: boolean;
@@ -1679,6 +1703,7 @@ export declare function createAgent(transport: Transport): {
1679
1703
  };
1680
1704
  avatar: string | null;
1681
1705
  creation_source: string | null;
1706
+ managed_by: string | null;
1682
1707
  identity_number: string | null;
1683
1708
  environment_id?: string | null;
1684
1709
  vault_ids?: Array<string>;
@@ -1690,6 +1715,21 @@ export declare function createAgent(transport: Transport): {
1690
1715
  keep_coding_instructions?: boolean;
1691
1716
  }> | null;
1692
1717
  }>;
1718
+ updateEmbedPolicy: (options: import("./core/transport.js").CallOptions<Types.UpdateAgentEmbedPolicyData>) => Promise<{
1719
+ allowed_origins: Array<string>;
1720
+ allow_localhost: boolean;
1721
+ uploads: {
1722
+ enabled: boolean;
1723
+ max_file_bytes: number;
1724
+ max_files_per_session: number;
1725
+ };
1726
+ share_links: {
1727
+ enabled: boolean;
1728
+ daily_session_cap: number | null;
1729
+ daily_spend_cap_micro_usd: number | null;
1730
+ currency?: "USD" | "CNY" | null;
1731
+ };
1732
+ }>;
1693
1733
  versions: {
1694
1734
  apply: (options: import("./core/transport.js").CallOptions<Types.ApplyAgentVersionData>) => Promise<{
1695
1735
  id: string;
@@ -1933,6 +1973,7 @@ export declare function createAgent(transport: Transport): {
1933
1973
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1934
1974
  id: string;
1935
1975
  access: "read_only" | "read_write" | "invoke";
1976
+ customer_access?: "read_only" | "read_write" | "invoke";
1936
1977
  instructions?: string;
1937
1978
  readonly verified?: boolean;
1938
1979
  enabled?: boolean;
@@ -2057,6 +2098,7 @@ export declare function createAgent(transport: Transport): {
2057
2098
  };
2058
2099
  avatar: string | null;
2059
2100
  creation_source: string | null;
2101
+ managed_by: string | null;
2060
2102
  identity_number: string | null;
2061
2103
  environment_id?: string | null;
2062
2104
  vault_ids?: Array<string>;
@@ -2109,6 +2151,7 @@ export declare function createAgent(transport: Transport): {
2109
2151
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
2110
2152
  id: string;
2111
2153
  access: "read_only" | "read_write" | "invoke";
2154
+ customer_access?: "read_only" | "read_write" | "invoke";
2112
2155
  instructions?: string;
2113
2156
  readonly verified?: boolean;
2114
2157
  enabled?: boolean;
@@ -2233,6 +2276,7 @@ export declare function createAgent(transport: Transport): {
2233
2276
  };
2234
2277
  avatar: string | null;
2235
2278
  creation_source: string | null;
2279
+ managed_by: string | null;
2236
2280
  identity_number: string | null;
2237
2281
  environment_id?: string | null;
2238
2282
  vault_ids?: Array<string>;
@@ -2320,6 +2364,24 @@ export declare function createAgent(transport: Transport): {
2320
2364
  tier: "light" | "heavy";
2321
2365
  }>;
2322
2366
  retrieveContent: (options: import("./core/transport.js").CallOptions<Types.ComputersFilesContentData>) => Promise<Blob | File>;
2367
+ retrievePreview: (options: import("./core/transport.js").CallOptions<Types.PreviewComputerFileData>) => Promise<{
2368
+ variant: "image" | "pdf" | "text" | "original";
2369
+ version?: string;
2370
+ mime_type?: string;
2371
+ size?: number;
2372
+ file_id?: string;
2373
+ url?: string;
2374
+ expires_at?: string;
2375
+ cached: boolean;
2376
+ fallback?: "content";
2377
+ skipped?: boolean;
2378
+ }>;
2379
+ updateContent: (options: import("./core/transport.js").CallOptions<Types.UpdateComputerFileContentData>) => Promise<{
2380
+ path: string;
2381
+ size: number;
2382
+ mtime: string | null;
2383
+ version: string;
2384
+ }>;
2323
2385
  };
2324
2386
  leases: {
2325
2387
  delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
@@ -2666,6 +2728,543 @@ export declare function createAgent(transport: Transport): {
2666
2728
  update: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsUpdateData>) => Promise<Types.AgentManaged138>;
2667
2729
  };
2668
2730
  sessions: {
2731
+ agentVersion: {
2732
+ create: (options: import("./core/transport.js").CallOptions<Types.UpdateSessionAgentVersionData>) => Promise<{
2733
+ id: string;
2734
+ agent: {
2735
+ id: string;
2736
+ description: null | string;
2737
+ mcp_servers: Array<{
2738
+ type: "url";
2739
+ name: string;
2740
+ url: string;
2741
+ headers?: {
2742
+ [key: string]: string;
2743
+ };
2744
+ timeout_ms?: number;
2745
+ } | {
2746
+ type: "sse";
2747
+ name: string;
2748
+ url: string;
2749
+ headers?: {
2750
+ [key: string]: string;
2751
+ };
2752
+ timeout_ms?: number;
2753
+ } | {
2754
+ type: "stdio";
2755
+ name: string;
2756
+ command: string;
2757
+ args?: Array<string>;
2758
+ env?: {
2759
+ [key: string]: string;
2760
+ };
2761
+ timeout_ms?: number;
2762
+ }>;
2763
+ model: {
2764
+ id: string;
2765
+ effort?: {
2766
+ type: "low";
2767
+ } | {
2768
+ type: "medium";
2769
+ } | {
2770
+ type: "high";
2771
+ } | {
2772
+ type: "xhigh";
2773
+ } | {
2774
+ type: "max";
2775
+ };
2776
+ inference_geo?: string;
2777
+ speed?: "standard" | "fast";
2778
+ settings?: {
2779
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
2780
+ max_output_tokens?: number;
2781
+ };
2782
+ };
2783
+ multiagent: null | {
2784
+ agents: Array<{
2785
+ model: string;
2786
+ type: "advisor";
2787
+ } | {
2788
+ id: string;
2789
+ description: null | string;
2790
+ mcp_servers: Array<{
2791
+ type: "url";
2792
+ name: string;
2793
+ url: string;
2794
+ headers?: {
2795
+ [key: string]: string;
2796
+ };
2797
+ timeout_ms?: number;
2798
+ } | {
2799
+ type: "sse";
2800
+ name: string;
2801
+ url: string;
2802
+ headers?: {
2803
+ [key: string]: string;
2804
+ };
2805
+ timeout_ms?: number;
2806
+ } | {
2807
+ type: "stdio";
2808
+ name: string;
2809
+ command: string;
2810
+ args?: Array<string>;
2811
+ env?: {
2812
+ [key: string]: string;
2813
+ };
2814
+ timeout_ms?: number;
2815
+ }>;
2816
+ model: {
2817
+ id: string;
2818
+ effort?: {
2819
+ type: "low";
2820
+ } | {
2821
+ type: "medium";
2822
+ } | {
2823
+ type: "high";
2824
+ } | {
2825
+ type: "xhigh";
2826
+ } | {
2827
+ type: "max";
2828
+ };
2829
+ inference_geo?: string;
2830
+ speed?: "standard" | "fast";
2831
+ };
2832
+ name: string;
2833
+ skills: Array<{
2834
+ skill_id: string;
2835
+ type: "anthropic";
2836
+ version: string;
2837
+ } | {
2838
+ skill_id: string;
2839
+ type: "custom";
2840
+ version: string;
2841
+ }>;
2842
+ system: null | string;
2843
+ tools: Array<{
2844
+ configs: Array<{
2845
+ enabled: boolean;
2846
+ name: "bash";
2847
+ permission_policy: {
2848
+ type: "always_allow";
2849
+ } | {
2850
+ type: "always_ask";
2851
+ } | {
2852
+ type: "auto";
2853
+ };
2854
+ type: "bash";
2855
+ } | {
2856
+ enabled: boolean;
2857
+ name: "edit";
2858
+ permission_policy: {
2859
+ type: "always_allow";
2860
+ } | {
2861
+ type: "always_ask";
2862
+ } | {
2863
+ type: "auto";
2864
+ };
2865
+ type: "edit";
2866
+ } | {
2867
+ enabled: boolean;
2868
+ name: "read";
2869
+ permission_policy: {
2870
+ type: "always_allow";
2871
+ } | {
2872
+ type: "always_ask";
2873
+ } | {
2874
+ type: "auto";
2875
+ };
2876
+ type: "read";
2877
+ } | {
2878
+ enabled: boolean;
2879
+ name: "write";
2880
+ permission_policy: {
2881
+ type: "always_allow";
2882
+ } | {
2883
+ type: "always_ask";
2884
+ } | {
2885
+ type: "auto";
2886
+ };
2887
+ type: "write";
2888
+ } | {
2889
+ enabled: boolean;
2890
+ name: "glob";
2891
+ permission_policy: {
2892
+ type: "always_allow";
2893
+ } | {
2894
+ type: "always_ask";
2895
+ } | {
2896
+ type: "auto";
2897
+ };
2898
+ type: "glob";
2899
+ } | {
2900
+ enabled: boolean;
2901
+ name: "grep";
2902
+ permission_policy: {
2903
+ type: "always_allow";
2904
+ } | {
2905
+ type: "always_ask";
2906
+ } | {
2907
+ type: "auto";
2908
+ };
2909
+ type: "grep";
2910
+ } | {
2911
+ enabled: boolean;
2912
+ name: "web_fetch";
2913
+ permission_policy: {
2914
+ type: "always_allow";
2915
+ } | {
2916
+ type: "always_ask";
2917
+ } | {
2918
+ type: "auto";
2919
+ };
2920
+ type: "web_fetch";
2921
+ allowed_domains?: Array<string>;
2922
+ blocked_domains?: Array<string>;
2923
+ max_content_tokens?: null | number;
2924
+ } | {
2925
+ enabled: boolean;
2926
+ name: "web_search";
2927
+ permission_policy: {
2928
+ type: "always_allow";
2929
+ } | {
2930
+ type: "always_ask";
2931
+ } | {
2932
+ type: "auto";
2933
+ };
2934
+ type: "web_search";
2935
+ allowed_domains?: Array<string>;
2936
+ blocked_domains?: Array<string>;
2937
+ user_location?: null | {
2938
+ type: "approximate";
2939
+ city?: null | string;
2940
+ country?: null | string;
2941
+ region?: null | string;
2942
+ timezone?: null | string;
2943
+ };
2944
+ } | {
2945
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
2946
+ enabled: boolean;
2947
+ permission_policy: {
2948
+ type: "always_allow" | "always_ask";
2949
+ };
2950
+ }>;
2951
+ default_config: {
2952
+ enabled: boolean;
2953
+ permission_policy: {
2954
+ type: "always_allow";
2955
+ } | {
2956
+ type: "always_ask";
2957
+ } | {
2958
+ type: "auto";
2959
+ };
2960
+ };
2961
+ type: "agent_toolset_20260401";
2962
+ } | {
2963
+ type: "mcp_toolset";
2964
+ mcp_server_name: string;
2965
+ default_config?: {
2966
+ enabled?: boolean | null;
2967
+ permission_policy?: null | {
2968
+ type: "always_allow" | "always_ask";
2969
+ };
2970
+ } | null;
2971
+ configs?: Array<{
2972
+ name: string;
2973
+ enabled?: boolean | null;
2974
+ permission_policy?: null | {
2975
+ type: "always_allow" | "always_ask";
2976
+ };
2977
+ }> | null;
2978
+ } | {
2979
+ description: string;
2980
+ input_schema: {
2981
+ type: "object";
2982
+ properties?: null | {
2983
+ [key: string]: unknown;
2984
+ };
2985
+ required?: null | Array<string>;
2986
+ [key: string]: unknown;
2987
+ };
2988
+ name: string;
2989
+ type: "custom";
2990
+ }>;
2991
+ type: "agent";
2992
+ version: number;
2993
+ }>;
2994
+ type: "coordinator";
2995
+ };
2996
+ name: string;
2997
+ skills: Array<{
2998
+ skill_id: string;
2999
+ type: "anthropic";
3000
+ version: string;
3001
+ } | {
3002
+ skill_id: string;
3003
+ type: "custom";
3004
+ version: string;
3005
+ }>;
3006
+ system: null | string;
3007
+ tools: Array<{
3008
+ configs: Array<{
3009
+ enabled: boolean;
3010
+ name: "bash";
3011
+ permission_policy: {
3012
+ type: "always_allow";
3013
+ } | {
3014
+ type: "always_ask";
3015
+ } | {
3016
+ type: "auto";
3017
+ };
3018
+ type: "bash";
3019
+ } | {
3020
+ enabled: boolean;
3021
+ name: "edit";
3022
+ permission_policy: {
3023
+ type: "always_allow";
3024
+ } | {
3025
+ type: "always_ask";
3026
+ } | {
3027
+ type: "auto";
3028
+ };
3029
+ type: "edit";
3030
+ } | {
3031
+ enabled: boolean;
3032
+ name: "read";
3033
+ permission_policy: {
3034
+ type: "always_allow";
3035
+ } | {
3036
+ type: "always_ask";
3037
+ } | {
3038
+ type: "auto";
3039
+ };
3040
+ type: "read";
3041
+ } | {
3042
+ enabled: boolean;
3043
+ name: "write";
3044
+ permission_policy: {
3045
+ type: "always_allow";
3046
+ } | {
3047
+ type: "always_ask";
3048
+ } | {
3049
+ type: "auto";
3050
+ };
3051
+ type: "write";
3052
+ } | {
3053
+ enabled: boolean;
3054
+ name: "glob";
3055
+ permission_policy: {
3056
+ type: "always_allow";
3057
+ } | {
3058
+ type: "always_ask";
3059
+ } | {
3060
+ type: "auto";
3061
+ };
3062
+ type: "glob";
3063
+ } | {
3064
+ enabled: boolean;
3065
+ name: "grep";
3066
+ permission_policy: {
3067
+ type: "always_allow";
3068
+ } | {
3069
+ type: "always_ask";
3070
+ } | {
3071
+ type: "auto";
3072
+ };
3073
+ type: "grep";
3074
+ } | {
3075
+ enabled: boolean;
3076
+ name: "web_fetch";
3077
+ permission_policy: {
3078
+ type: "always_allow";
3079
+ } | {
3080
+ type: "always_ask";
3081
+ } | {
3082
+ type: "auto";
3083
+ };
3084
+ type: "web_fetch";
3085
+ allowed_domains?: Array<string>;
3086
+ blocked_domains?: Array<string>;
3087
+ max_content_tokens?: null | number;
3088
+ } | {
3089
+ enabled: boolean;
3090
+ name: "web_search";
3091
+ permission_policy: {
3092
+ type: "always_allow";
3093
+ } | {
3094
+ type: "always_ask";
3095
+ } | {
3096
+ type: "auto";
3097
+ };
3098
+ type: "web_search";
3099
+ allowed_domains?: Array<string>;
3100
+ blocked_domains?: Array<string>;
3101
+ user_location?: null | {
3102
+ type: "approximate";
3103
+ city?: null | string;
3104
+ country?: null | string;
3105
+ region?: null | string;
3106
+ timezone?: null | string;
3107
+ };
3108
+ } | {
3109
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
3110
+ enabled: boolean;
3111
+ permission_policy: {
3112
+ type: "always_allow" | "always_ask";
3113
+ };
3114
+ }>;
3115
+ default_config: {
3116
+ enabled: boolean;
3117
+ permission_policy: {
3118
+ type: "always_allow";
3119
+ } | {
3120
+ type: "always_ask";
3121
+ } | {
3122
+ type: "auto";
3123
+ };
3124
+ };
3125
+ type: "agent_toolset_20260401";
3126
+ } | {
3127
+ type: "mcp_toolset";
3128
+ mcp_server_name: string;
3129
+ default_config?: {
3130
+ enabled?: boolean | null;
3131
+ permission_policy?: null | {
3132
+ type: "always_allow" | "always_ask";
3133
+ };
3134
+ } | null;
3135
+ configs?: Array<{
3136
+ name: string;
3137
+ enabled?: boolean | null;
3138
+ permission_policy?: null | {
3139
+ type: "always_allow" | "always_ask";
3140
+ };
3141
+ }> | null;
3142
+ } | {
3143
+ description: string;
3144
+ input_schema: {
3145
+ type: "object";
3146
+ properties?: null | {
3147
+ [key: string]: unknown;
3148
+ };
3149
+ required?: null | Array<string>;
3150
+ [key: string]: unknown;
3151
+ };
3152
+ name: string;
3153
+ type: "custom";
3154
+ }>;
3155
+ type: "agent";
3156
+ version: number;
3157
+ };
3158
+ archived_at: null | string;
3159
+ budget: null | {
3160
+ max_list_cost: {
3161
+ amount: string;
3162
+ currency: "USD";
3163
+ };
3164
+ type: "limit";
3165
+ };
3166
+ created_at: string;
3167
+ environment_id?: string;
3168
+ metadata: {
3169
+ [key: string]: string;
3170
+ };
3171
+ outcome_evaluations: Array<{
3172
+ completed_at: null | string;
3173
+ description: string;
3174
+ explanation: null | string;
3175
+ iteration: number;
3176
+ outcome_id: string;
3177
+ result: string;
3178
+ type: "outcome_evaluation";
3179
+ }>;
3180
+ resources: Array<{
3181
+ id: string;
3182
+ created_at: string;
3183
+ mount_path: string;
3184
+ type: "github_repository";
3185
+ updated_at: string;
3186
+ url: string;
3187
+ checkout?: null | {
3188
+ name: string;
3189
+ type: "branch";
3190
+ } | {
3191
+ sha: string;
3192
+ type: "commit";
3193
+ };
3194
+ } | {
3195
+ id: string;
3196
+ created_at: string;
3197
+ file_id: string;
3198
+ mount_path: string;
3199
+ type: "file";
3200
+ updated_at: string;
3201
+ } | {
3202
+ memory_store_id: string;
3203
+ type: "memory_store";
3204
+ access?: null | "read_write" | "read_only";
3205
+ description?: string;
3206
+ instructions?: null | string;
3207
+ mount_path?: null | string;
3208
+ name?: null | string;
3209
+ }>;
3210
+ stats: {
3211
+ active_seconds?: number;
3212
+ duration_seconds?: number;
3213
+ };
3214
+ status: "rescheduling" | "running" | "idle" | "terminated";
3215
+ title: null | string;
3216
+ type: "session";
3217
+ updated_at: string;
3218
+ usage: {
3219
+ active_seconds?: number;
3220
+ cache_creation?: {
3221
+ ephemeral_1h_input_tokens?: number;
3222
+ ephemeral_5m_input_tokens?: number;
3223
+ };
3224
+ cache_read_input_tokens?: number;
3225
+ input_tokens?: number;
3226
+ list_cost?: null | {
3227
+ amount: string;
3228
+ currency: "USD";
3229
+ };
3230
+ output_tokens?: number;
3231
+ server_tool_use?: null | {
3232
+ web_fetch_requests?: number;
3233
+ web_search_requests?: number;
3234
+ };
3235
+ cost_by_product?: {
3236
+ [key: string]: string;
3237
+ };
3238
+ subagent_cost_micro_usd?: number;
3239
+ };
3240
+ vault_ids: Array<string>;
3241
+ deployment_id?: null | string;
3242
+ cwd: string;
3243
+ workspace?: {
3244
+ kind: "shared" | "isolated";
3245
+ path?: string;
3246
+ branch?: string;
3247
+ };
3248
+ computer_id?: string;
3249
+ model?: {
3250
+ id: string;
3251
+ thinking: {
3252
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
3253
+ can_disable: boolean;
3254
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
3255
+ } | null;
3256
+ };
3257
+ thinking?: {
3258
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
3259
+ } | null;
3260
+ forked_from?: {
3261
+ session_id: string;
3262
+ message_id: string;
3263
+ } | null;
3264
+ readonly external_user_id: string | null;
3265
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
3266
+ }>;
3267
+ };
2669
3268
  archive: (options: import("./core/transport.js").CallOptions<Types.SessionsArchiveData>) => Promise<{
2670
3269
  id: string;
2671
3270
  agent: {
@@ -2706,6 +3305,11 @@ export declare function createAgent(transport: Transport): {
2706
3305
  vault_ids: Array<string>;
2707
3306
  deployment_id?: null | string;
2708
3307
  cwd: string;
3308
+ workspace?: {
3309
+ kind: "shared" | "isolated";
3310
+ path?: string;
3311
+ branch?: string;
3312
+ };
2709
3313
  computer_id?: string;
2710
3314
  model?: {
2711
3315
  id: string;
@@ -2868,6 +3472,11 @@ export declare function createAgent(transport: Transport): {
2868
3472
  vault_ids: Array<string>;
2869
3473
  deployment_id?: null | string;
2870
3474
  cwd: string;
3475
+ workspace?: {
3476
+ kind: "shared" | "isolated";
3477
+ path?: string;
3478
+ branch?: string;
3479
+ };
2871
3480
  computer_id?: string;
2872
3481
  model?: {
2873
3482
  id: string;
@@ -3089,21 +3698,6 @@ export declare function createAgent(transport: Transport): {
3089
3698
  type: "user.steer";
3090
3699
  event_id: string;
3091
3700
  processed_at: string;
3092
- } | {
3093
- id: string;
3094
- type: "user.tool_confirmation";
3095
- processed_at: string;
3096
- tool_use_id: string;
3097
- result: "allow";
3098
- answers: {
3099
- [key: string]: string;
3100
- };
3101
- annotations?: {
3102
- [key: string]: {
3103
- preview?: string;
3104
- notes?: string;
3105
- };
3106
- };
3107
3701
  }>;
3108
3702
  next_page: string | null;
3109
3703
  }>;
@@ -3124,21 +3718,6 @@ export declare function createAgent(transport: Transport): {
3124
3718
  type: "user.steer";
3125
3719
  event_id: string;
3126
3720
  processed_at: string;
3127
- } | {
3128
- id: string;
3129
- type: "user.tool_confirmation";
3130
- processed_at: string;
3131
- tool_use_id: string;
3132
- result: "allow";
3133
- answers: {
3134
- [key: string]: string;
3135
- };
3136
- annotations?: {
3137
- [key: string]: {
3138
- preview?: string;
3139
- notes?: string;
3140
- };
3141
- };
3142
3721
  }>;
3143
3722
  }>;
3144
3723
  stream: (options: import("./core/transport.js").StreamOptions<Types.SessionsEventsStreamData>) => AsyncIterable<Types.AgentSseEvent>;
@@ -3649,40 +4228,147 @@ export declare function createAgent(transport: Transport): {
3649
4228
  cost_by_product?: {
3650
4229
  [key: string]: string;
3651
4230
  };
3652
- subagent_cost_micro_usd?: number;
3653
- };
3654
- vault_ids: Array<string>;
3655
- deployment_id?: null | string;
3656
- cwd: string;
3657
- computer_id?: string;
3658
- model?: {
3659
- id: string;
3660
- thinking: {
3661
- efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
3662
- can_disable: boolean;
3663
- default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4231
+ subagent_cost_micro_usd?: number;
4232
+ };
4233
+ vault_ids: Array<string>;
4234
+ deployment_id?: null | string;
4235
+ cwd: string;
4236
+ workspace?: {
4237
+ kind: "shared" | "isolated";
4238
+ path?: string;
4239
+ branch?: string;
4240
+ };
4241
+ computer_id?: string;
4242
+ model?: {
4243
+ id: string;
4244
+ thinking: {
4245
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4246
+ can_disable: boolean;
4247
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4248
+ } | null;
4249
+ };
4250
+ thinking?: {
4251
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4252
+ } | null;
4253
+ forked_from?: {
4254
+ session_id: string;
4255
+ message_id: string;
4256
+ } | null;
4257
+ readonly external_user_id: string | null;
4258
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4259
+ }>;
4260
+ list: (options?: import("./core/transport.js").CallOptions<Types.SessionsListData> | undefined) => Promise<{
4261
+ data: Array<{
4262
+ id: string;
4263
+ agent: {
4264
+ id: string;
4265
+ description: null | string;
4266
+ mcp_servers: Array<Types.AgentManaged36>;
4267
+ model: {
4268
+ id: string;
4269
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4270
+ inference_geo?: string;
4271
+ speed?: "standard" | "fast";
4272
+ settings?: {
4273
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4274
+ max_output_tokens?: number;
4275
+ };
4276
+ };
4277
+ multiagent: null | Types.AgentManaged171;
4278
+ name: string;
4279
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4280
+ system: null | string;
4281
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4282
+ type: "agent";
4283
+ version: number;
4284
+ };
4285
+ archived_at: null | string;
4286
+ budget: null | Types.AgentManaged76;
4287
+ created_at: string;
4288
+ environment_id?: string;
4289
+ metadata: Types.AgentManaged173;
4290
+ outcome_evaluations: Array<Types.AgentManaged174>;
4291
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4292
+ stats: Types.AgentManaged178;
4293
+ status: "rescheduling" | "running" | "idle" | "terminated";
4294
+ title: null | string;
4295
+ type: "session";
4296
+ updated_at: string;
4297
+ usage: Types.AgentManaged179;
4298
+ vault_ids: Array<string>;
4299
+ deployment_id?: null | string;
4300
+ cwd: string;
4301
+ workspace?: {
4302
+ kind: "shared" | "isolated";
4303
+ path?: string;
4304
+ branch?: string;
4305
+ };
4306
+ computer_id?: string;
4307
+ model?: {
4308
+ id: string;
4309
+ thinking: {
4310
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4311
+ can_disable: boolean;
4312
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4313
+ } | null;
4314
+ };
4315
+ thinking?: {
4316
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
3664
4317
  } | null;
3665
- };
3666
- thinking?: {
3667
- effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
3668
- } | null;
3669
- forked_from?: {
3670
- session_id: string;
3671
- message_id: string;
3672
- } | null;
3673
- readonly external_user_id: string | null;
3674
- readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4318
+ forked_from?: {
4319
+ session_id: string;
4320
+ message_id: string;
4321
+ } | null;
4322
+ readonly external_user_id: string | null;
4323
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4324
+ }>;
4325
+ next_page: string | null;
3675
4326
  }>;
3676
- list: (options?: import("./core/transport.js").CallOptions<Types.SessionsListData> | undefined) => Promise<{
3677
- data: Array<{
4327
+ name: {
4328
+ create: (options: import("./core/transport.js").CallOptions<Types.RenameSessionData>) => Promise<{
3678
4329
  id: string;
3679
4330
  agent: {
3680
4331
  id: string;
3681
4332
  description: null | string;
3682
- mcp_servers: Array<Types.AgentManaged36>;
4333
+ mcp_servers: Array<{
4334
+ type: "url";
4335
+ name: string;
4336
+ url: string;
4337
+ headers?: {
4338
+ [key: string]: string;
4339
+ };
4340
+ timeout_ms?: number;
4341
+ } | {
4342
+ type: "sse";
4343
+ name: string;
4344
+ url: string;
4345
+ headers?: {
4346
+ [key: string]: string;
4347
+ };
4348
+ timeout_ms?: number;
4349
+ } | {
4350
+ type: "stdio";
4351
+ name: string;
4352
+ command: string;
4353
+ args?: Array<string>;
4354
+ env?: {
4355
+ [key: string]: string;
4356
+ };
4357
+ timeout_ms?: number;
4358
+ }>;
3683
4359
  model: {
3684
4360
  id: string;
3685
- effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4361
+ effort?: {
4362
+ type: "low";
4363
+ } | {
4364
+ type: "medium";
4365
+ } | {
4366
+ type: "high";
4367
+ } | {
4368
+ type: "xhigh";
4369
+ } | {
4370
+ type: "max";
4371
+ };
3686
4372
  inference_geo?: string;
3687
4373
  speed?: "standard" | "fast";
3688
4374
  settings?: {
@@ -3690,30 +4376,471 @@ export declare function createAgent(transport: Transport): {
3690
4376
  max_output_tokens?: number;
3691
4377
  };
3692
4378
  };
3693
- multiagent: null | Types.AgentManaged171;
4379
+ multiagent: null | {
4380
+ agents: Array<{
4381
+ model: string;
4382
+ type: "advisor";
4383
+ } | {
4384
+ id: string;
4385
+ description: null | string;
4386
+ mcp_servers: Array<{
4387
+ type: "url";
4388
+ name: string;
4389
+ url: string;
4390
+ headers?: {
4391
+ [key: string]: string;
4392
+ };
4393
+ timeout_ms?: number;
4394
+ } | {
4395
+ type: "sse";
4396
+ name: string;
4397
+ url: string;
4398
+ headers?: {
4399
+ [key: string]: string;
4400
+ };
4401
+ timeout_ms?: number;
4402
+ } | {
4403
+ type: "stdio";
4404
+ name: string;
4405
+ command: string;
4406
+ args?: Array<string>;
4407
+ env?: {
4408
+ [key: string]: string;
4409
+ };
4410
+ timeout_ms?: number;
4411
+ }>;
4412
+ model: {
4413
+ id: string;
4414
+ effort?: {
4415
+ type: "low";
4416
+ } | {
4417
+ type: "medium";
4418
+ } | {
4419
+ type: "high";
4420
+ } | {
4421
+ type: "xhigh";
4422
+ } | {
4423
+ type: "max";
4424
+ };
4425
+ inference_geo?: string;
4426
+ speed?: "standard" | "fast";
4427
+ };
4428
+ name: string;
4429
+ skills: Array<{
4430
+ skill_id: string;
4431
+ type: "anthropic";
4432
+ version: string;
4433
+ } | {
4434
+ skill_id: string;
4435
+ type: "custom";
4436
+ version: string;
4437
+ }>;
4438
+ system: null | string;
4439
+ tools: Array<{
4440
+ configs: Array<{
4441
+ enabled: boolean;
4442
+ name: "bash";
4443
+ permission_policy: {
4444
+ type: "always_allow";
4445
+ } | {
4446
+ type: "always_ask";
4447
+ } | {
4448
+ type: "auto";
4449
+ };
4450
+ type: "bash";
4451
+ } | {
4452
+ enabled: boolean;
4453
+ name: "edit";
4454
+ permission_policy: {
4455
+ type: "always_allow";
4456
+ } | {
4457
+ type: "always_ask";
4458
+ } | {
4459
+ type: "auto";
4460
+ };
4461
+ type: "edit";
4462
+ } | {
4463
+ enabled: boolean;
4464
+ name: "read";
4465
+ permission_policy: {
4466
+ type: "always_allow";
4467
+ } | {
4468
+ type: "always_ask";
4469
+ } | {
4470
+ type: "auto";
4471
+ };
4472
+ type: "read";
4473
+ } | {
4474
+ enabled: boolean;
4475
+ name: "write";
4476
+ permission_policy: {
4477
+ type: "always_allow";
4478
+ } | {
4479
+ type: "always_ask";
4480
+ } | {
4481
+ type: "auto";
4482
+ };
4483
+ type: "write";
4484
+ } | {
4485
+ enabled: boolean;
4486
+ name: "glob";
4487
+ permission_policy: {
4488
+ type: "always_allow";
4489
+ } | {
4490
+ type: "always_ask";
4491
+ } | {
4492
+ type: "auto";
4493
+ };
4494
+ type: "glob";
4495
+ } | {
4496
+ enabled: boolean;
4497
+ name: "grep";
4498
+ permission_policy: {
4499
+ type: "always_allow";
4500
+ } | {
4501
+ type: "always_ask";
4502
+ } | {
4503
+ type: "auto";
4504
+ };
4505
+ type: "grep";
4506
+ } | {
4507
+ enabled: boolean;
4508
+ name: "web_fetch";
4509
+ permission_policy: {
4510
+ type: "always_allow";
4511
+ } | {
4512
+ type: "always_ask";
4513
+ } | {
4514
+ type: "auto";
4515
+ };
4516
+ type: "web_fetch";
4517
+ allowed_domains?: Array<string>;
4518
+ blocked_domains?: Array<string>;
4519
+ max_content_tokens?: null | number;
4520
+ } | {
4521
+ enabled: boolean;
4522
+ name: "web_search";
4523
+ permission_policy: {
4524
+ type: "always_allow";
4525
+ } | {
4526
+ type: "always_ask";
4527
+ } | {
4528
+ type: "auto";
4529
+ };
4530
+ type: "web_search";
4531
+ allowed_domains?: Array<string>;
4532
+ blocked_domains?: Array<string>;
4533
+ user_location?: null | {
4534
+ type: "approximate";
4535
+ city?: null | string;
4536
+ country?: null | string;
4537
+ region?: null | string;
4538
+ timezone?: null | string;
4539
+ };
4540
+ } | {
4541
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
4542
+ enabled: boolean;
4543
+ permission_policy: {
4544
+ type: "always_allow" | "always_ask";
4545
+ };
4546
+ }>;
4547
+ default_config: {
4548
+ enabled: boolean;
4549
+ permission_policy: {
4550
+ type: "always_allow";
4551
+ } | {
4552
+ type: "always_ask";
4553
+ } | {
4554
+ type: "auto";
4555
+ };
4556
+ };
4557
+ type: "agent_toolset_20260401";
4558
+ } | {
4559
+ type: "mcp_toolset";
4560
+ mcp_server_name: string;
4561
+ default_config?: {
4562
+ enabled?: boolean | null;
4563
+ permission_policy?: null | {
4564
+ type: "always_allow" | "always_ask";
4565
+ };
4566
+ } | null;
4567
+ configs?: Array<{
4568
+ name: string;
4569
+ enabled?: boolean | null;
4570
+ permission_policy?: null | {
4571
+ type: "always_allow" | "always_ask";
4572
+ };
4573
+ }> | null;
4574
+ } | {
4575
+ description: string;
4576
+ input_schema: {
4577
+ type: "object";
4578
+ properties?: null | {
4579
+ [key: string]: unknown;
4580
+ };
4581
+ required?: null | Array<string>;
4582
+ [key: string]: unknown;
4583
+ };
4584
+ name: string;
4585
+ type: "custom";
4586
+ }>;
4587
+ type: "agent";
4588
+ version: number;
4589
+ }>;
4590
+ type: "coordinator";
4591
+ };
3694
4592
  name: string;
3695
- skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4593
+ skills: Array<{
4594
+ skill_id: string;
4595
+ type: "anthropic";
4596
+ version: string;
4597
+ } | {
4598
+ skill_id: string;
4599
+ type: "custom";
4600
+ version: string;
4601
+ }>;
3696
4602
  system: null | string;
3697
- tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4603
+ tools: Array<{
4604
+ configs: Array<{
4605
+ enabled: boolean;
4606
+ name: "bash";
4607
+ permission_policy: {
4608
+ type: "always_allow";
4609
+ } | {
4610
+ type: "always_ask";
4611
+ } | {
4612
+ type: "auto";
4613
+ };
4614
+ type: "bash";
4615
+ } | {
4616
+ enabled: boolean;
4617
+ name: "edit";
4618
+ permission_policy: {
4619
+ type: "always_allow";
4620
+ } | {
4621
+ type: "always_ask";
4622
+ } | {
4623
+ type: "auto";
4624
+ };
4625
+ type: "edit";
4626
+ } | {
4627
+ enabled: boolean;
4628
+ name: "read";
4629
+ permission_policy: {
4630
+ type: "always_allow";
4631
+ } | {
4632
+ type: "always_ask";
4633
+ } | {
4634
+ type: "auto";
4635
+ };
4636
+ type: "read";
4637
+ } | {
4638
+ enabled: boolean;
4639
+ name: "write";
4640
+ permission_policy: {
4641
+ type: "always_allow";
4642
+ } | {
4643
+ type: "always_ask";
4644
+ } | {
4645
+ type: "auto";
4646
+ };
4647
+ type: "write";
4648
+ } | {
4649
+ enabled: boolean;
4650
+ name: "glob";
4651
+ permission_policy: {
4652
+ type: "always_allow";
4653
+ } | {
4654
+ type: "always_ask";
4655
+ } | {
4656
+ type: "auto";
4657
+ };
4658
+ type: "glob";
4659
+ } | {
4660
+ enabled: boolean;
4661
+ name: "grep";
4662
+ permission_policy: {
4663
+ type: "always_allow";
4664
+ } | {
4665
+ type: "always_ask";
4666
+ } | {
4667
+ type: "auto";
4668
+ };
4669
+ type: "grep";
4670
+ } | {
4671
+ enabled: boolean;
4672
+ name: "web_fetch";
4673
+ permission_policy: {
4674
+ type: "always_allow";
4675
+ } | {
4676
+ type: "always_ask";
4677
+ } | {
4678
+ type: "auto";
4679
+ };
4680
+ type: "web_fetch";
4681
+ allowed_domains?: Array<string>;
4682
+ blocked_domains?: Array<string>;
4683
+ max_content_tokens?: null | number;
4684
+ } | {
4685
+ enabled: boolean;
4686
+ name: "web_search";
4687
+ permission_policy: {
4688
+ type: "always_allow";
4689
+ } | {
4690
+ type: "always_ask";
4691
+ } | {
4692
+ type: "auto";
4693
+ };
4694
+ type: "web_search";
4695
+ allowed_domains?: Array<string>;
4696
+ blocked_domains?: Array<string>;
4697
+ user_location?: null | {
4698
+ type: "approximate";
4699
+ city?: null | string;
4700
+ country?: null | string;
4701
+ region?: null | string;
4702
+ timezone?: null | string;
4703
+ };
4704
+ } | {
4705
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
4706
+ enabled: boolean;
4707
+ permission_policy: {
4708
+ type: "always_allow" | "always_ask";
4709
+ };
4710
+ }>;
4711
+ default_config: {
4712
+ enabled: boolean;
4713
+ permission_policy: {
4714
+ type: "always_allow";
4715
+ } | {
4716
+ type: "always_ask";
4717
+ } | {
4718
+ type: "auto";
4719
+ };
4720
+ };
4721
+ type: "agent_toolset_20260401";
4722
+ } | {
4723
+ type: "mcp_toolset";
4724
+ mcp_server_name: string;
4725
+ default_config?: {
4726
+ enabled?: boolean | null;
4727
+ permission_policy?: null | {
4728
+ type: "always_allow" | "always_ask";
4729
+ };
4730
+ } | null;
4731
+ configs?: Array<{
4732
+ name: string;
4733
+ enabled?: boolean | null;
4734
+ permission_policy?: null | {
4735
+ type: "always_allow" | "always_ask";
4736
+ };
4737
+ }> | null;
4738
+ } | {
4739
+ description: string;
4740
+ input_schema: {
4741
+ type: "object";
4742
+ properties?: null | {
4743
+ [key: string]: unknown;
4744
+ };
4745
+ required?: null | Array<string>;
4746
+ [key: string]: unknown;
4747
+ };
4748
+ name: string;
4749
+ type: "custom";
4750
+ }>;
3698
4751
  type: "agent";
3699
4752
  version: number;
3700
4753
  };
3701
4754
  archived_at: null | string;
3702
- budget: null | Types.AgentManaged76;
4755
+ budget: null | {
4756
+ max_list_cost: {
4757
+ amount: string;
4758
+ currency: "USD";
4759
+ };
4760
+ type: "limit";
4761
+ };
3703
4762
  created_at: string;
3704
4763
  environment_id?: string;
3705
- metadata: Types.AgentManaged173;
3706
- outcome_evaluations: Array<Types.AgentManaged174>;
3707
- resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
3708
- stats: Types.AgentManaged178;
4764
+ metadata: {
4765
+ [key: string]: string;
4766
+ };
4767
+ outcome_evaluations: Array<{
4768
+ completed_at: null | string;
4769
+ description: string;
4770
+ explanation: null | string;
4771
+ iteration: number;
4772
+ outcome_id: string;
4773
+ result: string;
4774
+ type: "outcome_evaluation";
4775
+ }>;
4776
+ resources: Array<{
4777
+ id: string;
4778
+ created_at: string;
4779
+ mount_path: string;
4780
+ type: "github_repository";
4781
+ updated_at: string;
4782
+ url: string;
4783
+ checkout?: null | {
4784
+ name: string;
4785
+ type: "branch";
4786
+ } | {
4787
+ sha: string;
4788
+ type: "commit";
4789
+ };
4790
+ } | {
4791
+ id: string;
4792
+ created_at: string;
4793
+ file_id: string;
4794
+ mount_path: string;
4795
+ type: "file";
4796
+ updated_at: string;
4797
+ } | {
4798
+ memory_store_id: string;
4799
+ type: "memory_store";
4800
+ access?: null | "read_write" | "read_only";
4801
+ description?: string;
4802
+ instructions?: null | string;
4803
+ mount_path?: null | string;
4804
+ name?: null | string;
4805
+ }>;
4806
+ stats: {
4807
+ active_seconds?: number;
4808
+ duration_seconds?: number;
4809
+ };
3709
4810
  status: "rescheduling" | "running" | "idle" | "terminated";
3710
4811
  title: null | string;
3711
4812
  type: "session";
3712
4813
  updated_at: string;
3713
- usage: Types.AgentManaged179;
4814
+ usage: {
4815
+ active_seconds?: number;
4816
+ cache_creation?: {
4817
+ ephemeral_1h_input_tokens?: number;
4818
+ ephemeral_5m_input_tokens?: number;
4819
+ };
4820
+ cache_read_input_tokens?: number;
4821
+ input_tokens?: number;
4822
+ list_cost?: null | {
4823
+ amount: string;
4824
+ currency: "USD";
4825
+ };
4826
+ output_tokens?: number;
4827
+ server_tool_use?: null | {
4828
+ web_fetch_requests?: number;
4829
+ web_search_requests?: number;
4830
+ };
4831
+ cost_by_product?: {
4832
+ [key: string]: string;
4833
+ };
4834
+ subagent_cost_micro_usd?: number;
4835
+ };
3714
4836
  vault_ids: Array<string>;
3715
4837
  deployment_id?: null | string;
3716
4838
  cwd: string;
4839
+ workspace?: {
4840
+ kind: "shared" | "isolated";
4841
+ path?: string;
4842
+ branch?: string;
4843
+ };
3717
4844
  computer_id?: string;
3718
4845
  model?: {
3719
4846
  id: string;
@@ -3733,8 +4860,7 @@ export declare function createAgent(transport: Transport): {
3733
4860
  readonly external_user_id: string | null;
3734
4861
  readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
3735
4862
  }>;
3736
- next_page: string | null;
3737
- }>;
4863
+ };
3738
4864
  requests: {
3739
4865
  list: (options: import("./core/transport.js").CallOptions<Types.ListSessionRequestsData>) => Promise<{
3740
4866
  data: Array<{
@@ -3806,6 +4932,11 @@ export declare function createAgent(transport: Transport): {
3806
4932
  vault_ids: Array<string>;
3807
4933
  deployment_id?: null | string;
3808
4934
  cwd: string;
4935
+ workspace?: {
4936
+ kind: "shared" | "isolated";
4937
+ path?: string;
4938
+ branch?: string;
4939
+ };
3809
4940
  computer_id?: string;
3810
4941
  model?: {
3811
4942
  id: string;
@@ -4172,6 +5303,11 @@ export declare function createAgent(transport: Transport): {
4172
5303
  vault_ids: Array<string>;
4173
5304
  deployment_id?: null | string;
4174
5305
  cwd: string;
5306
+ workspace?: {
5307
+ kind: "shared" | "isolated";
5308
+ path?: string;
5309
+ branch?: string;
5310
+ };
4175
5311
  computer_id?: string;
4176
5312
  model?: {
4177
5313
  id: string;
@@ -4523,6 +5659,11 @@ export declare function createAutomation(transport: Transport): {
4523
5659
  };
4524
5660
  };
4525
5661
  };
5662
+ export declare function createBilling(transport: Transport): {
5663
+ prices: {
5664
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListPublicPricesData> | undefined) => Promise<Types.BillingPriceList>;
5665
+ };
5666
+ };
4526
5667
  export declare function createBrowser(transport: Transport): {
4527
5668
  connect: {
4528
5669
  retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserConnectData> | undefined) => Promise<unknown>;
@@ -4888,6 +6029,13 @@ export declare function createDevops(transport: Transport): {
4888
6029
  create: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesCreateData>) => Promise<Types.DevopsChange>;
4889
6030
  list: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesListData>) => Promise<Types.DevopsChangePage>;
4890
6031
  };
6032
+ cleanups: {
6033
+ list: (options: import("./core/transport.js").CallOptions<Types.DevopsCleanupsListData>) => Promise<Types.DevopsCleanupPage>;
6034
+ };
6035
+ create: (options: import("./core/transport.js").CallOptions<Types.DevopsProjectsCreateData>) => Promise<Types.DevopsProject>;
6036
+ defaultBranch: {
6037
+ initialize: (options: import("./core/transport.js").CallOptions<Types.DevopsProjectsInitializeDefaultBranchData>) => Promise<Types.DevopsDefaultBranchInitialized>;
6038
+ };
4891
6039
  environments: {
4892
6040
  list: (options: import("./core/transport.js").CallOptions<Types.DevopsEnvironmentsListData>) => Promise<Types.DevopsEnvironmentList>;
4893
6041
  targets: {
@@ -4960,6 +6108,7 @@ export declare function createDevops(transport: Transport): {
4960
6108
  promotions: {
4961
6109
  approve: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsApproveData>) => Promise<Types.DevopsPromotion>;
4962
6110
  cancel: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsCancelData>) => Promise<Types.DevopsPromotion>;
6111
+ checkoutCredential: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsCheckoutCredentialData>) => Promise<Types.DevopsCheckoutCredential>;
4963
6112
  conclude: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsConcludeData>) => Promise<Types.DevopsPromotion>;
4964
6113
  create: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsCreateData>) => Promise<Types.DevopsPromotion>;
4965
6114
  retrieve: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsGetData>) => Promise<Types.DevopsPromotion>;
@@ -4969,10 +6118,14 @@ export declare function createDevops(transport: Transport): {
4969
6118
  };
4970
6119
  };
4971
6120
  pullRequests: {
6121
+ close: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsCloseData>) => Promise<Types.DevopsPullRequest>;
4972
6122
  merge: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsMergeData>) => Promise<Types.DevopsPullRequest>;
4973
6123
  recordVerdict: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRecordVerdictData>) => Promise<Types.DevopsPullRequest>;
4974
6124
  rerunGate: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRerunGateData>) => Promise<Types.DevopsPullRequest>;
4975
6125
  retrieve: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsGetData>) => Promise<Types.DevopsPullRequest>;
6126
+ reviews: {
6127
+ create: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsReviewsCreateData>) => Promise<Types.DevopsPullRequest>;
6128
+ };
4976
6129
  };
4977
6130
  releases: {
4978
6131
  abandon: (options: import("./core/transport.js").CallOptions<Types.DevopsReleasesAbandonData>) => Promise<Types.DevopsRelease>;
@@ -5188,6 +6341,12 @@ export declare function createMedia(transport: Transport): {
5188
6341
  retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
5189
6342
  };
5190
6343
  update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
6344
+ voices: {
6345
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateVoiceData>) => Promise<Types.MediaJob>;
6346
+ designs: {
6347
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaDesignVoiceData>) => Promise<Types.MediaJob>;
6348
+ };
6349
+ };
5191
6350
  };
5192
6351
  speech: {
5193
6352
  create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateSpeechData>) => Promise<Types.MediaJob>;
@@ -5711,6 +6870,7 @@ export declare function createModel(transport: Transport): {
5711
6870
  unsigned_urls: Array<string>;
5712
6871
  usage?: {
5713
6872
  cost: number;
6873
+ billed_seconds?: number;
5714
6874
  };
5715
6875
  }>;
5716
6876
  delete: (options: import("./core/transport.js").CallOptions<Types.DeleteVideoData>) => Promise<{
@@ -5741,6 +6901,7 @@ export declare function createModel(transport: Transport): {
5741
6901
  unsigned_urls: Array<string>;
5742
6902
  usage?: {
5743
6903
  cost: number;
6904
+ billed_seconds?: number;
5744
6905
  };
5745
6906
  }>;
5746
6907
  has_more: boolean;
@@ -5769,6 +6930,7 @@ export declare function createModel(transport: Transport): {
5769
6930
  unsigned_urls: Array<string>;
5770
6931
  usage?: {
5771
6932
  cost: number;
6933
+ billed_seconds?: number;
5772
6934
  };
5773
6935
  }>;
5774
6936
  retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
@@ -5874,6 +7036,9 @@ export declare function createOrganization(transport: Transport): {
5874
7036
  update: (options: import("./core/transport.js").CallOptions<Types.ReorganizeOrganizationDepartmentData>) => Promise<Types.OrganizationDepartment>;
5875
7037
  updateCharter: (options: import("./core/transport.js").CallOptions<Types.AmendOrganizationDepartmentCharterData>) => Promise<Types.OrganizationDepartment>;
5876
7038
  };
7039
+ effectiveSpec: {
7040
+ retrieve: (options?: import("./core/transport.js").CallOptions<Types.GetOrganizationEffectiveSpecData> | undefined) => Promise<Types.OrganizationEffectiveSpec>;
7041
+ };
5877
7042
  events: {
5878
7043
  list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationEventsData>) => Promise<{
5879
7044
  object: "page";
@@ -6156,6 +7321,29 @@ export declare function createOrganization(transport: Transport): {
6156
7321
  updateLevel: (options: import("./core/transport.js").CallOptions<Types.RegradeOrganizationPositionData>) => Promise<Types.OrganizationPosition>;
6157
7322
  updateManager: (options: import("./core/transport.js").CallOptions<Types.ReassignOrganizationPositionManagerData>) => Promise<Types.OrganizationPosition>;
6158
7323
  };
7324
+ reconcile: {
7325
+ pause: (options: import("./core/transport.js").CallOptions<Types.PauseOrganizationReconcileData>) => Promise<Types.OrganizationReconcileStatus>;
7326
+ resume: (options: import("./core/transport.js").CallOptions<Types.ResumeOrganizationReconcileData>) => Promise<Types.OrganizationReconcileStatus>;
7327
+ retrievePlan: (options: import("./core/transport.js").CallOptions<Types.PlanOrganizationReconcileData>) => Promise<Types.OrganizationReconcilePlan>;
7328
+ run: {
7329
+ create: (options: import("./core/transport.js").CallOptions<Types.RunOrganizationReconcileData>) => Promise<Types.OrganizationReconcileStatus>;
7330
+ };
7331
+ status: {
7332
+ list: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationReconcileStatusData>) => Promise<Types.OrganizationReconcileStatus>;
7333
+ };
7334
+ };
7335
+ specSchema: {
7336
+ retrieve: (options?: import("./core/transport.js").CallOptions<Types.GetOrganizationSpecSchemaData> | undefined) => Promise<Types.OrganizationSpecSchema>;
7337
+ };
7338
+ specs: {
7339
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListOrganizationSpecsData> | undefined) => Promise<Types.OrganizationSpecList>;
7340
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetOrganizationSpecData>) => Promise<Types.OrganizationSpec>;
7341
+ retrieveDiff: (options: import("./core/transport.js").CallOptions<Types.DiffOrganizationSpecData>) => Promise<Types.OrganizationSpecDiff>;
7342
+ revisions: {
7343
+ list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationSpecRevisionsData>) => Promise<Types.OrganizationSpecRevisionList>;
7344
+ };
7345
+ update: (options: import("./core/transport.js").CallOptions<Types.ReviseOrganizationSpecData>) => Promise<Types.OrganizationSpec | Types.OrganizationSpecDryRun>;
7346
+ };
6159
7347
  usage: {
6160
7348
  list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationUsageData>) => Promise<{
6161
7349
  object: "page";
@@ -6185,6 +7373,27 @@ export declare function createRegistry(transport: Transport): {
6185
7373
  update: (options: import("./core/transport.js").CallOptions<Types.RegistryInstallationsUpdateData>) => Promise<Types.RegistryInstallation>;
6186
7374
  };
6187
7375
  packages: {
7376
+ git: {
7377
+ commits: {
7378
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitCommitsRetrieveData>) => Promise<Types.RegistryGitCommitDetail>;
7379
+ };
7380
+ files: {
7381
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitFilesRetrieveData>) => Promise<Blob | File>;
7382
+ };
7383
+ refs: {
7384
+ list: (options: import("./core/transport.js").CallOptions<Types.RegistryGitRefsData>) => Promise<Types.RegistryGitRefs>;
7385
+ };
7386
+ retrieveCompare: (options: import("./core/transport.js").CallOptions<Types.RegistryGitCompareData>) => Promise<Types.RegistryGitComparison>;
7387
+ retrieveLog: (options: import("./core/transport.js").CallOptions<Types.RegistryGitLogData>) => Promise<Types.RegistryGitLog>;
7388
+ retrieveResolve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitResolveData>) => Promise<Types.RegistryGitResolvedRef>;
7389
+ trees: {
7390
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitTreesRetrieveData>) => Promise<Types.RegistryGitTree>;
7391
+ retrieveRecursive: (options: import("./core/transport.js").CallOptions<Types.RegistryGitTreesRecursiveData>) => Promise<Types.RegistryGitTreeRecursive>;
7392
+ };
7393
+ };
7394
+ gitCredential: {
7395
+ create: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesGitCredentialCreateData>) => Promise<Types.RegistryGitCredential>;
7396
+ };
6188
7397
  installations: {
6189
7398
  create: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsCreateData>) => Promise<Types.RegistryInstallResult>;
6190
7399
  list: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsListData>) => Promise<Types.RegistryInstallationList>;
@@ -6216,12 +7425,105 @@ export declare function createRegistry(transport: Transport): {
6216
7425
  };
6217
7426
  };
6218
7427
  export declare function createSandbox(transport: Transport): {
7428
+ byod: {
7429
+ devices: {
7430
+ disconnect: {
7431
+ create: (options: import("./core/transport.js").CallOptions<Types.DisconnectByodDeviceData>) => Promise<{
7432
+ id: string;
7433
+ object: "byod_device";
7434
+ disconnected: true;
7435
+ }>;
7436
+ };
7437
+ list: (options?: import("./core/transport.js").CallOptions<Types.ListByodDevicesData> | undefined) => Promise<{
7438
+ data: Array<{
7439
+ object: "byod_device";
7440
+ id: string;
7441
+ platform: "android" | "macos" | "linux";
7442
+ name: string;
7443
+ model: string;
7444
+ os_version: string;
7445
+ online: boolean;
7446
+ last_seen_at: string | null;
7447
+ created_at: string;
7448
+ capabilities: Array<"display" | "agent">;
7449
+ agent_dirs: Array<string>;
7450
+ allow_bypass: boolean;
7451
+ }>;
7452
+ }>;
7453
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetByodDeviceData>) => Promise<{
7454
+ object: "byod_device";
7455
+ id: string;
7456
+ platform: "android" | "macos" | "linux";
7457
+ name: string;
7458
+ model: string;
7459
+ os_version: string;
7460
+ online: boolean;
7461
+ last_seen_at: string | null;
7462
+ created_at: string;
7463
+ capabilities: Array<"display" | "agent">;
7464
+ agent_dirs: Array<string>;
7465
+ allow_bypass: boolean;
7466
+ }>;
7467
+ update: (options: import("./core/transport.js").CallOptions<Types.UpdateByodDeviceData>) => Promise<{
7468
+ object: "byod_device";
7469
+ id: string;
7470
+ platform: "android" | "macos" | "linux";
7471
+ name: string;
7472
+ model: string;
7473
+ os_version: string;
7474
+ online: boolean;
7475
+ last_seen_at: string | null;
7476
+ created_at: string;
7477
+ capabilities: Array<"display" | "agent">;
7478
+ agent_dirs: Array<string>;
7479
+ allow_bypass: boolean;
7480
+ }>;
7481
+ };
7482
+ pairings: {
7483
+ claim: {
7484
+ create: (options: import("./core/transport.js").CallOptions<Types.ClaimByodPairingData>) => Promise<{
7485
+ device_id: string;
7486
+ credential: string;
7487
+ socket_url: string;
7488
+ }>;
7489
+ };
7490
+ create: (options?: import("./core/transport.js").CallOptions<Types.CreateByodPairingData> | undefined) => Promise<{
7491
+ code: string;
7492
+ expires_at: string;
7493
+ qr: string;
7494
+ }>;
7495
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetByodPairingData>) => Promise<{
7496
+ organization_name: string;
7497
+ expires_at: string;
7498
+ }>;
7499
+ };
7500
+ };
6219
7501
  events: {
6220
7502
  sandboxes: {
6221
7503
  retrieve: (options: import("./core/transport.js").CallOptions<Types.GetSandboxEventsData>) => Promise<Types.SandboxSandboxEvent[]>;
6222
7504
  };
6223
7505
  };
6224
7506
  sandboxes: {
7507
+ act: (options: import("./core/transport.js").CallOptions<Types.ActOnSandboxDisplayData>) => Promise<{
7508
+ type: "snapshot";
7509
+ snapshot: string;
7510
+ refs: number;
7511
+ truncated: boolean;
7512
+ package: string;
7513
+ } | {
7514
+ type: "screenshot";
7515
+ mediaType: string;
7516
+ data: string;
7517
+ width: number;
7518
+ height: number;
7519
+ bytes: number;
7520
+ } | {
7521
+ type: "ok";
7522
+ ms?: number;
7523
+ } | {
7524
+ type: "wait";
7525
+ ms: number;
7526
+ }>;
6225
7527
  commands: {
6226
7528
  run: (options: import("./core/transport.js").CallOptions<Types.RunSandboxCommandData>) => Promise<{
6227
7529
  stdout: string;
@@ -6750,6 +8052,7 @@ export declare const resourceFactories: {
6750
8052
  agent: typeof createAgent;
6751
8053
  application: typeof createApplication;
6752
8054
  automation: typeof createAutomation;
8055
+ billing: typeof createBilling;
6753
8056
  browser: typeof createBrowser;
6754
8057
  canvas: typeof createCanvas;
6755
8058
  content: typeof createContent;