@deepraxis/sdk 0.1.1-dev.b5dbc63 → 0.1.1-dev.b6aac46

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.
@@ -39,9 +39,10 @@ export declare function createAgent(transport: Transport): {
39
39
  } | null;
40
40
  note: string | null;
41
41
  bindings: Array<{
42
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
42
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
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>;
@@ -222,9 +224,10 @@ export declare function createAgent(transport: Transport): {
222
224
  } | null;
223
225
  note: string | null;
224
226
  bindings: Array<{
225
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
227
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
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>;
@@ -758,9 +732,10 @@ export declare function createAgent(transport: Transport): {
758
732
  } | null;
759
733
  note: string | null;
760
734
  bindings: Array<{
761
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
735
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
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;
@@ -935,9 +939,10 @@ export declare function createAgent(transport: Transport): {
935
939
  } | null;
936
940
  note: string | null;
937
941
  bindings: Array<{
938
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
942
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
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>;
@@ -1144,6 +1150,12 @@ export declare function createAgent(transport: Transport): {
1144
1150
  max_file_bytes: number;
1145
1151
  max_files_per_session: number;
1146
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
+ };
1147
1159
  }>;
1148
1160
  unarchive: {
1149
1161
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
@@ -1385,9 +1397,10 @@ export declare function createAgent(transport: Transport): {
1385
1397
  } | null;
1386
1398
  note: string | null;
1387
1399
  bindings: Array<{
1388
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1400
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
1389
1401
  id: string;
1390
1402
  access: "read_only" | "read_write" | "invoke";
1403
+ customer_access?: "read_only" | "read_write" | "invoke";
1391
1404
  instructions?: string;
1392
1405
  readonly verified?: boolean;
1393
1406
  enabled?: boolean;
@@ -1512,6 +1525,7 @@ export declare function createAgent(transport: Transport): {
1512
1525
  };
1513
1526
  avatar: string | null;
1514
1527
  creation_source: string | null;
1528
+ managed_by: string | null;
1515
1529
  identity_number: string | null;
1516
1530
  environment_id?: string | null;
1517
1531
  vault_ids?: Array<string>;
@@ -1561,9 +1575,10 @@ export declare function createAgent(transport: Transport): {
1561
1575
  } | null;
1562
1576
  note: string | null;
1563
1577
  bindings: Array<{
1564
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1578
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
1565
1579
  id: string;
1566
1580
  access: "read_only" | "read_write" | "invoke";
1581
+ customer_access?: "read_only" | "read_write" | "invoke";
1567
1582
  instructions?: string;
1568
1583
  readonly verified?: boolean;
1569
1584
  enabled?: boolean;
@@ -1688,6 +1703,7 @@ export declare function createAgent(transport: Transport): {
1688
1703
  };
1689
1704
  avatar: string | null;
1690
1705
  creation_source: string | null;
1706
+ managed_by: string | null;
1691
1707
  identity_number: string | null;
1692
1708
  environment_id?: string | null;
1693
1709
  vault_ids?: Array<string>;
@@ -1707,6 +1723,12 @@ export declare function createAgent(transport: Transport): {
1707
1723
  max_file_bytes: number;
1708
1724
  max_files_per_session: number;
1709
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
+ };
1710
1732
  }>;
1711
1733
  versions: {
1712
1734
  apply: (options: import("./core/transport.js").CallOptions<Types.ApplyAgentVersionData>) => Promise<{
@@ -1948,9 +1970,10 @@ export declare function createAgent(transport: Transport): {
1948
1970
  } | null;
1949
1971
  note: string | null;
1950
1972
  bindings: Array<{
1951
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1973
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
1952
1974
  id: string;
1953
1975
  access: "read_only" | "read_write" | "invoke";
1976
+ customer_access?: "read_only" | "read_write" | "invoke";
1954
1977
  instructions?: string;
1955
1978
  readonly verified?: boolean;
1956
1979
  enabled?: boolean;
@@ -2075,6 +2098,7 @@ export declare function createAgent(transport: Transport): {
2075
2098
  };
2076
2099
  avatar: string | null;
2077
2100
  creation_source: string | null;
2101
+ managed_by: string | null;
2078
2102
  identity_number: string | null;
2079
2103
  environment_id?: string | null;
2080
2104
  vault_ids?: Array<string>;
@@ -2124,9 +2148,10 @@ export declare function createAgent(transport: Transport): {
2124
2148
  } | null;
2125
2149
  note: string | null;
2126
2150
  bindings: Array<{
2127
- type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
2151
+ type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script" | "repository" | "browser_context";
2128
2152
  id: string;
2129
2153
  access: "read_only" | "read_write" | "invoke";
2154
+ customer_access?: "read_only" | "read_write" | "invoke";
2130
2155
  instructions?: string;
2131
2156
  readonly verified?: boolean;
2132
2157
  enabled?: boolean;
@@ -2251,6 +2276,7 @@ export declare function createAgent(transport: Transport): {
2251
2276
  };
2252
2277
  avatar: string | null;
2253
2278
  creation_source: string | null;
2279
+ managed_by: string | null;
2254
2280
  identity_number: string | null;
2255
2281
  environment_id?: string | null;
2256
2282
  vault_ids?: Array<string>;
@@ -2338,6 +2364,24 @@ export declare function createAgent(transport: Transport): {
2338
2364
  tier: "light" | "heavy";
2339
2365
  }>;
2340
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
+ }>;
2341
2385
  };
2342
2386
  leases: {
2343
2387
  delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
@@ -3196,6 +3240,11 @@ export declare function createAgent(transport: Transport): {
3196
3240
  vault_ids: Array<string>;
3197
3241
  deployment_id?: null | string;
3198
3242
  cwd: string;
3243
+ workspace?: {
3244
+ kind: "shared" | "isolated";
3245
+ path?: string;
3246
+ branch?: string;
3247
+ };
3199
3248
  computer_id?: string;
3200
3249
  model?: {
3201
3250
  id: string;
@@ -3256,6 +3305,11 @@ export declare function createAgent(transport: Transport): {
3256
3305
  vault_ids: Array<string>;
3257
3306
  deployment_id?: null | string;
3258
3307
  cwd: string;
3308
+ workspace?: {
3309
+ kind: "shared" | "isolated";
3310
+ path?: string;
3311
+ branch?: string;
3312
+ };
3259
3313
  computer_id?: string;
3260
3314
  model?: {
3261
3315
  id: string;
@@ -3418,6 +3472,11 @@ export declare function createAgent(transport: Transport): {
3418
3472
  vault_ids: Array<string>;
3419
3473
  deployment_id?: null | string;
3420
3474
  cwd: string;
3475
+ workspace?: {
3476
+ kind: "shared" | "isolated";
3477
+ path?: string;
3478
+ branch?: string;
3479
+ };
3421
3480
  computer_id?: string;
3422
3481
  model?: {
3423
3482
  id: string;
@@ -3639,21 +3698,6 @@ export declare function createAgent(transport: Transport): {
3639
3698
  type: "user.steer";
3640
3699
  event_id: string;
3641
3700
  processed_at: string;
3642
- } | {
3643
- id: string;
3644
- type: "user.tool_confirmation";
3645
- processed_at: string;
3646
- tool_use_id: string;
3647
- result: "allow";
3648
- answers: {
3649
- [key: string]: string;
3650
- };
3651
- annotations?: {
3652
- [key: string]: {
3653
- preview?: string;
3654
- notes?: string;
3655
- };
3656
- };
3657
3701
  }>;
3658
3702
  next_page: string | null;
3659
3703
  }>;
@@ -3674,21 +3718,6 @@ export declare function createAgent(transport: Transport): {
3674
3718
  type: "user.steer";
3675
3719
  event_id: string;
3676
3720
  processed_at: string;
3677
- } | {
3678
- id: string;
3679
- type: "user.tool_confirmation";
3680
- processed_at: string;
3681
- tool_use_id: string;
3682
- result: "allow";
3683
- answers: {
3684
- [key: string]: string;
3685
- };
3686
- annotations?: {
3687
- [key: string]: {
3688
- preview?: string;
3689
- notes?: string;
3690
- };
3691
- };
3692
3721
  }>;
3693
3722
  }>;
3694
3723
  stream: (options: import("./core/transport.js").StreamOptions<Types.SessionsEventsStreamData>) => AsyncIterable<Types.AgentSseEvent>;
@@ -4204,6 +4233,11 @@ export declare function createAgent(transport: Transport): {
4204
4233
  vault_ids: Array<string>;
4205
4234
  deployment_id?: null | string;
4206
4235
  cwd: string;
4236
+ workspace?: {
4237
+ kind: "shared" | "isolated";
4238
+ path?: string;
4239
+ branch?: string;
4240
+ };
4207
4241
  computer_id?: string;
4208
4242
  model?: {
4209
4243
  id: string;
@@ -4264,6 +4298,11 @@ export declare function createAgent(transport: Transport): {
4264
4298
  vault_ids: Array<string>;
4265
4299
  deployment_id?: null | string;
4266
4300
  cwd: string;
4301
+ workspace?: {
4302
+ kind: "shared" | "isolated";
4303
+ path?: string;
4304
+ branch?: string;
4305
+ };
4267
4306
  computer_id?: string;
4268
4307
  model?: {
4269
4308
  id: string;
@@ -4285,201 +4324,743 @@ export declare function createAgent(transport: Transport): {
4285
4324
  }>;
4286
4325
  next_page: string | null;
4287
4326
  }>;
4288
- requests: {
4289
- list: (options: import("./core/transport.js").CallOptions<Types.ListSessionRequestsData>) => Promise<{
4290
- data: Array<{
4291
- id: string;
4292
- object: "request";
4293
- kind: "question" | "approval";
4294
- status: "pending";
4295
- tool_name: string;
4296
- input: unknown;
4297
- create_time: string;
4298
- expire_time: string | null;
4299
- }>;
4300
- }>;
4301
- };
4302
- resources: {
4303
- create: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesAddData>) => Promise<Types.AgentManaged176>;
4304
- delete: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesDeleteData, {
4305
- query: {
4306
- "session_id": "query_session_id";
4307
- };
4308
- }>>) => Promise<Types.AgentManaged255>;
4309
- list: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesListData>) => Promise<{
4310
- data: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4311
- next_page: string | null;
4312
- }>;
4313
- retrieve: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesRetrieveData, {
4314
- query: {
4315
- "session_id": "query_session_id";
4316
- };
4317
- }>>) => Promise<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4318
- };
4319
- retrieve: (options: import("./core/transport.js").CallOptions<Types.SessionsRetrieveData>) => Promise<{
4320
- id: string;
4321
- agent: {
4327
+ name: {
4328
+ create: (options: import("./core/transport.js").CallOptions<Types.RenameSessionData>) => Promise<{
4322
4329
  id: string;
4323
- description: null | string;
4324
- mcp_servers: Array<Types.AgentManaged36>;
4325
- model: {
4330
+ agent: {
4326
4331
  id: string;
4327
- effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4328
- inference_geo?: string;
4329
- speed?: "standard" | "fast";
4330
- settings?: {
4331
- reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4332
- max_output_tokens?: number;
4333
- };
4334
- };
4335
- multiagent: null | Types.AgentManaged171;
4336
- name: string;
4337
- skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4338
- system: null | string;
4339
- tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4340
- type: "agent";
4341
- version: number;
4342
- };
4343
- archived_at: null | string;
4344
- budget: null | Types.AgentManaged76;
4345
- created_at: string;
4346
- environment_id?: string;
4347
- metadata: Types.AgentManaged173;
4348
- outcome_evaluations: Array<Types.AgentManaged174>;
4349
- resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4350
- stats: Types.AgentManaged178;
4351
- status: "rescheduling" | "running" | "idle" | "terminated";
4352
- title: null | string;
4353
- type: "session";
4354
- updated_at: string;
4355
- usage: Types.AgentManaged179;
4356
- vault_ids: Array<string>;
4357
- deployment_id?: null | string;
4358
- cwd: string;
4359
- computer_id?: string;
4360
- model?: {
4361
- id: string;
4362
- thinking: {
4363
- efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4364
- can_disable: boolean;
4365
- default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4366
- } | null;
4367
- };
4368
- thinking?: {
4369
- effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4370
- } | null;
4371
- forked_from?: {
4372
- session_id: string;
4373
- message_id: string;
4374
- } | null;
4375
- readonly external_user_id: string | null;
4376
- readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4377
- }>;
4378
- retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
4379
- type: "session_compaction";
4380
- id: string;
4381
- status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
4382
- reason?: string;
4383
- }>;
4384
- retrieveContext: (options: import("./core/transport.js").CallOptions<Types.GetSessionContextData>) => Promise<{
4385
- type: "session_context";
4386
- session_id: string;
4387
- model: {
4388
- id: string;
4389
- display_name: string;
4390
- thinking: {
4391
- efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4392
- can_disable: boolean;
4393
- default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4394
- } | null;
4395
- };
4396
- total_tokens: number | null;
4397
- total_tokens_source: "actual" | "estimated" | null;
4398
- max_tokens: number | null;
4399
- max_input_tokens: number | null;
4400
- percentage: number;
4401
- auto_compact_threshold: number | null;
4402
- is_auto_compact_enabled: boolean;
4403
- clear_tool_results_at: number;
4404
- detail: "summary";
4405
- categories: Array<{
4406
- key: string;
4407
- name: string;
4408
- tokens: number;
4409
- kind: "used" | "free" | "buffer" | "deferred";
4410
- }>;
4411
- mcp_tools: Array<{
4412
- name: string;
4413
- server_name: string;
4414
- tokens: number;
4415
- }>;
4416
- plugin_blocks: Array<{
4417
- name: string;
4418
- tokens: number;
4419
- }>;
4420
- message_breakdown: {
4421
- user_message_tokens: number;
4422
- assistant_message_tokens: number;
4423
- tool_call_tokens: number;
4424
- tool_result_tokens: number;
4425
- reasoning_tokens: number;
4426
- tool_calls_by_type: Array<{
4427
- name: string;
4428
- call_tokens: number;
4429
- result_tokens: number;
4430
- }>;
4431
- };
4432
- compaction_summary: {
4433
- tokens: number;
4434
- } | null;
4435
- excluded_items: {
4436
- count: number;
4437
- tokens: number;
4438
- };
4439
- measured_at: string | null;
4440
- }>;
4441
- runs: {
4442
- deleteFeedback: (options: import("./core/transport.js").CallOptions<Types.DeleteRunFeedbackData>) => Promise<void>;
4443
- feedback: {
4444
- create: (options: import("./core/transport.js").CallOptions<Types.SetRunFeedbackData>) => Promise<{
4445
- type: "run_feedback";
4446
- session_id: string;
4447
- run_id: string;
4448
- rating: "positive" | "negative";
4449
- comment: string | null;
4450
- created_at: string;
4451
- updated_at: string;
4452
- }>;
4453
- };
4454
- };
4455
- threads: {
4456
- archive: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsArchiveData, {
4457
- query: {
4458
- "session_id": "query_session_id";
4459
- };
4460
- }>>) => Promise<Types.AgentManaged256>;
4461
- events: {
4462
- list: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsEventsListData, {
4463
- query: {
4464
- "session_id": "query_session_id";
4465
- };
4466
- }>>) => Promise<{
4467
- data: Array<{
4468
- id: string;
4469
- content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
4470
- type: "user.message";
4471
- processed_at?: null | string;
4472
- praxis_context?: {
4473
- items: Array<{
4474
- name: string;
4475
- value: string;
4476
- }>;
4332
+ description: null | string;
4333
+ mcp_servers: Array<{
4334
+ type: "url";
4335
+ name: string;
4336
+ url: string;
4337
+ headers?: {
4338
+ [key: string]: string;
4477
4339
  };
4478
- message_id?: string;
4479
- } | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
4480
- id: string;
4481
- content: Array<{
4482
- text: string;
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
+ }>;
4359
+ model: {
4360
+ id: string;
4361
+ effort?: {
4362
+ type: "low";
4363
+ } | {
4364
+ type: "medium";
4365
+ } | {
4366
+ type: "high";
4367
+ } | {
4368
+ type: "xhigh";
4369
+ } | {
4370
+ type: "max";
4371
+ };
4372
+ inference_geo?: string;
4373
+ speed?: "standard" | "fast";
4374
+ settings?: {
4375
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4376
+ max_output_tokens?: number;
4377
+ };
4378
+ };
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
+ };
4592
+ name: string;
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
+ }>;
4602
+ system: null | string;
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
+ }>;
4751
+ type: "agent";
4752
+ version: number;
4753
+ };
4754
+ archived_at: null | string;
4755
+ budget: null | {
4756
+ max_list_cost: {
4757
+ amount: string;
4758
+ currency: "USD";
4759
+ };
4760
+ type: "limit";
4761
+ };
4762
+ created_at: string;
4763
+ environment_id?: string;
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
+ };
4810
+ status: "rescheduling" | "running" | "idle" | "terminated";
4811
+ title: null | string;
4812
+ type: "session";
4813
+ updated_at: string;
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
+ };
4836
+ vault_ids: Array<string>;
4837
+ deployment_id?: null | string;
4838
+ cwd: string;
4839
+ workspace?: {
4840
+ kind: "shared" | "isolated";
4841
+ path?: string;
4842
+ branch?: string;
4843
+ };
4844
+ computer_id?: string;
4845
+ model?: {
4846
+ id: string;
4847
+ thinking: {
4848
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4849
+ can_disable: boolean;
4850
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4851
+ } | null;
4852
+ };
4853
+ thinking?: {
4854
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4855
+ } | null;
4856
+ forked_from?: {
4857
+ session_id: string;
4858
+ message_id: string;
4859
+ } | null;
4860
+ readonly external_user_id: string | null;
4861
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4862
+ }>;
4863
+ };
4864
+ requests: {
4865
+ list: (options: import("./core/transport.js").CallOptions<Types.ListSessionRequestsData>) => Promise<{
4866
+ data: Array<{
4867
+ id: string;
4868
+ object: "request";
4869
+ kind: "question" | "approval";
4870
+ status: "pending";
4871
+ tool_name: string;
4872
+ input: unknown;
4873
+ create_time: string;
4874
+ expire_time: string | null;
4875
+ }>;
4876
+ }>;
4877
+ };
4878
+ resources: {
4879
+ create: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesAddData>) => Promise<Types.AgentManaged176>;
4880
+ delete: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesDeleteData, {
4881
+ query: {
4882
+ "session_id": "query_session_id";
4883
+ };
4884
+ }>>) => Promise<Types.AgentManaged255>;
4885
+ list: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesListData>) => Promise<{
4886
+ data: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4887
+ next_page: string | null;
4888
+ }>;
4889
+ retrieve: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesRetrieveData, {
4890
+ query: {
4891
+ "session_id": "query_session_id";
4892
+ };
4893
+ }>>) => Promise<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4894
+ };
4895
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.SessionsRetrieveData>) => Promise<{
4896
+ id: string;
4897
+ agent: {
4898
+ id: string;
4899
+ description: null | string;
4900
+ mcp_servers: Array<Types.AgentManaged36>;
4901
+ model: {
4902
+ id: string;
4903
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4904
+ inference_geo?: string;
4905
+ speed?: "standard" | "fast";
4906
+ settings?: {
4907
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4908
+ max_output_tokens?: number;
4909
+ };
4910
+ };
4911
+ multiagent: null | Types.AgentManaged171;
4912
+ name: string;
4913
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4914
+ system: null | string;
4915
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4916
+ type: "agent";
4917
+ version: number;
4918
+ };
4919
+ archived_at: null | string;
4920
+ budget: null | Types.AgentManaged76;
4921
+ created_at: string;
4922
+ environment_id?: string;
4923
+ metadata: Types.AgentManaged173;
4924
+ outcome_evaluations: Array<Types.AgentManaged174>;
4925
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4926
+ stats: Types.AgentManaged178;
4927
+ status: "rescheduling" | "running" | "idle" | "terminated";
4928
+ title: null | string;
4929
+ type: "session";
4930
+ updated_at: string;
4931
+ usage: Types.AgentManaged179;
4932
+ vault_ids: Array<string>;
4933
+ deployment_id?: null | string;
4934
+ cwd: string;
4935
+ workspace?: {
4936
+ kind: "shared" | "isolated";
4937
+ path?: string;
4938
+ branch?: string;
4939
+ };
4940
+ computer_id?: string;
4941
+ model?: {
4942
+ id: string;
4943
+ thinking: {
4944
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4945
+ can_disable: boolean;
4946
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4947
+ } | null;
4948
+ };
4949
+ thinking?: {
4950
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4951
+ } | null;
4952
+ forked_from?: {
4953
+ session_id: string;
4954
+ message_id: string;
4955
+ } | null;
4956
+ readonly external_user_id: string | null;
4957
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4958
+ }>;
4959
+ retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
4960
+ type: "session_compaction";
4961
+ id: string;
4962
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
4963
+ reason?: string;
4964
+ }>;
4965
+ retrieveContext: (options: import("./core/transport.js").CallOptions<Types.GetSessionContextData>) => Promise<{
4966
+ type: "session_context";
4967
+ session_id: string;
4968
+ model: {
4969
+ id: string;
4970
+ display_name: string;
4971
+ thinking: {
4972
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4973
+ can_disable: boolean;
4974
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4975
+ } | null;
4976
+ };
4977
+ total_tokens: number | null;
4978
+ total_tokens_source: "actual" | "estimated" | null;
4979
+ max_tokens: number | null;
4980
+ max_input_tokens: number | null;
4981
+ percentage: number;
4982
+ auto_compact_threshold: number | null;
4983
+ is_auto_compact_enabled: boolean;
4984
+ clear_tool_results_at: number;
4985
+ detail: "summary";
4986
+ categories: Array<{
4987
+ key: string;
4988
+ name: string;
4989
+ tokens: number;
4990
+ kind: "used" | "free" | "buffer" | "deferred";
4991
+ }>;
4992
+ mcp_tools: Array<{
4993
+ name: string;
4994
+ server_name: string;
4995
+ tokens: number;
4996
+ }>;
4997
+ plugin_blocks: Array<{
4998
+ name: string;
4999
+ tokens: number;
5000
+ }>;
5001
+ message_breakdown: {
5002
+ user_message_tokens: number;
5003
+ assistant_message_tokens: number;
5004
+ tool_call_tokens: number;
5005
+ tool_result_tokens: number;
5006
+ reasoning_tokens: number;
5007
+ tool_calls_by_type: Array<{
5008
+ name: string;
5009
+ call_tokens: number;
5010
+ result_tokens: number;
5011
+ }>;
5012
+ };
5013
+ compaction_summary: {
5014
+ tokens: number;
5015
+ } | null;
5016
+ excluded_items: {
5017
+ count: number;
5018
+ tokens: number;
5019
+ };
5020
+ measured_at: string | null;
5021
+ }>;
5022
+ runs: {
5023
+ deleteFeedback: (options: import("./core/transport.js").CallOptions<Types.DeleteRunFeedbackData>) => Promise<void>;
5024
+ feedback: {
5025
+ create: (options: import("./core/transport.js").CallOptions<Types.SetRunFeedbackData>) => Promise<{
5026
+ type: "run_feedback";
5027
+ session_id: string;
5028
+ run_id: string;
5029
+ rating: "positive" | "negative";
5030
+ comment: string | null;
5031
+ created_at: string;
5032
+ updated_at: string;
5033
+ }>;
5034
+ };
5035
+ };
5036
+ threads: {
5037
+ archive: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsArchiveData, {
5038
+ query: {
5039
+ "session_id": "query_session_id";
5040
+ };
5041
+ }>>) => Promise<Types.AgentManaged256>;
5042
+ events: {
5043
+ list: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsEventsListData, {
5044
+ query: {
5045
+ "session_id": "query_session_id";
5046
+ };
5047
+ }>>) => Promise<{
5048
+ data: Array<{
5049
+ id: string;
5050
+ content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
5051
+ type: "user.message";
5052
+ processed_at?: null | string;
5053
+ praxis_context?: {
5054
+ items: Array<{
5055
+ name: string;
5056
+ value: string;
5057
+ }>;
5058
+ };
5059
+ message_id?: string;
5060
+ } | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
5061
+ id: string;
5062
+ content: Array<{
5063
+ text: string;
4483
5064
  type: "text";
4484
5065
  citations?: Array<{
4485
5066
  type: "search_result_location";
@@ -4722,6 +5303,11 @@ export declare function createAgent(transport: Transport): {
4722
5303
  vault_ids: Array<string>;
4723
5304
  deployment_id?: null | string;
4724
5305
  cwd: string;
5306
+ workspace?: {
5307
+ kind: "shared" | "isolated";
5308
+ path?: string;
5309
+ branch?: string;
5310
+ };
4725
5311
  computer_id?: string;
4726
5312
  model?: {
4727
5313
  id: string;
@@ -5073,6 +5659,11 @@ export declare function createAutomation(transport: Transport): {
5073
5659
  };
5074
5660
  };
5075
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
+ };
5076
5667
  export declare function createBrowser(transport: Transport): {
5077
5668
  connect: {
5078
5669
  retrieve: (options?: import("./core/transport.js").CallOptions<Types.BrowserConnectData> | undefined) => Promise<unknown>;
@@ -5438,6 +6029,13 @@ export declare function createDevops(transport: Transport): {
5438
6029
  create: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesCreateData>) => Promise<Types.DevopsChange>;
5439
6030
  list: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesListData>) => Promise<Types.DevopsChangePage>;
5440
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
+ };
5441
6039
  environments: {
5442
6040
  list: (options: import("./core/transport.js").CallOptions<Types.DevopsEnvironmentsListData>) => Promise<Types.DevopsEnvironmentList>;
5443
6041
  targets: {
@@ -5510,6 +6108,7 @@ export declare function createDevops(transport: Transport): {
5510
6108
  promotions: {
5511
6109
  approve: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsApproveData>) => Promise<Types.DevopsPromotion>;
5512
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>;
5513
6112
  conclude: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsConcludeData>) => Promise<Types.DevopsPromotion>;
5514
6113
  create: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsCreateData>) => Promise<Types.DevopsPromotion>;
5515
6114
  retrieve: (options: import("./core/transport.js").CallOptions<Types.DevopsPromotionsGetData>) => Promise<Types.DevopsPromotion>;
@@ -5519,10 +6118,14 @@ export declare function createDevops(transport: Transport): {
5519
6118
  };
5520
6119
  };
5521
6120
  pullRequests: {
6121
+ close: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsCloseData>) => Promise<Types.DevopsPullRequest>;
5522
6122
  merge: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsMergeData>) => Promise<Types.DevopsPullRequest>;
5523
6123
  recordVerdict: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRecordVerdictData>) => Promise<Types.DevopsPullRequest>;
5524
6124
  rerunGate: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRerunGateData>) => Promise<Types.DevopsPullRequest>;
5525
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
+ };
5526
6129
  };
5527
6130
  releases: {
5528
6131
  abandon: (options: import("./core/transport.js").CallOptions<Types.DevopsReleasesAbandonData>) => Promise<Types.DevopsRelease>;
@@ -5738,6 +6341,12 @@ export declare function createMedia(transport: Transport): {
5738
6341
  retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
5739
6342
  };
5740
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
+ };
5741
6350
  };
5742
6351
  speech: {
5743
6352
  create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateSpeechData>) => Promise<Types.MediaJob>;
@@ -6427,6 +7036,9 @@ export declare function createOrganization(transport: Transport): {
6427
7036
  update: (options: import("./core/transport.js").CallOptions<Types.ReorganizeOrganizationDepartmentData>) => Promise<Types.OrganizationDepartment>;
6428
7037
  updateCharter: (options: import("./core/transport.js").CallOptions<Types.AmendOrganizationDepartmentCharterData>) => Promise<Types.OrganizationDepartment>;
6429
7038
  };
7039
+ effectiveSpec: {
7040
+ retrieve: (options?: import("./core/transport.js").CallOptions<Types.GetOrganizationEffectiveSpecData> | undefined) => Promise<Types.OrganizationEffectiveSpec>;
7041
+ };
6430
7042
  events: {
6431
7043
  list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationEventsData>) => Promise<{
6432
7044
  object: "page";
@@ -6709,6 +7321,29 @@ export declare function createOrganization(transport: Transport): {
6709
7321
  updateLevel: (options: import("./core/transport.js").CallOptions<Types.RegradeOrganizationPositionData>) => Promise<Types.OrganizationPosition>;
6710
7322
  updateManager: (options: import("./core/transport.js").CallOptions<Types.ReassignOrganizationPositionManagerData>) => Promise<Types.OrganizationPosition>;
6711
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
+ };
6712
7347
  usage: {
6713
7348
  list: (options: import("./core/transport.js").CallOptions<Types.ListOrganizationUsageData>) => Promise<{
6714
7349
  object: "page";
@@ -6738,6 +7373,27 @@ export declare function createRegistry(transport: Transport): {
6738
7373
  update: (options: import("./core/transport.js").CallOptions<Types.RegistryInstallationsUpdateData>) => Promise<Types.RegistryInstallation>;
6739
7374
  };
6740
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
+ };
6741
7397
  installations: {
6742
7398
  create: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsCreateData>) => Promise<Types.RegistryInstallResult>;
6743
7399
  list: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsListData>) => Promise<Types.RegistryInstallationList>;
@@ -6769,12 +7425,105 @@ export declare function createRegistry(transport: Transport): {
6769
7425
  };
6770
7426
  };
6771
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
+ };
6772
7501
  events: {
6773
7502
  sandboxes: {
6774
7503
  retrieve: (options: import("./core/transport.js").CallOptions<Types.GetSandboxEventsData>) => Promise<Types.SandboxSandboxEvent[]>;
6775
7504
  };
6776
7505
  };
6777
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
+ }>;
6778
7527
  commands: {
6779
7528
  run: (options: import("./core/transport.js").CallOptions<Types.RunSandboxCommandData>) => Promise<{
6780
7529
  stdout: string;
@@ -7303,6 +8052,7 @@ export declare const resourceFactories: {
7303
8052
  agent: typeof createAgent;
7304
8053
  application: typeof createApplication;
7305
8054
  automation: typeof createAutomation;
8055
+ billing: typeof createBilling;
7306
8056
  browser: typeof createBrowser;
7307
8057
  canvas: typeof createCanvas;
7308
8058
  content: typeof createContent;