@deepraxis/sdk 0.1.1-dev.218780d → 0.1.1-dev.22936b5

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.
@@ -2364,6 +2364,18 @@ export declare function createAgent(transport: Transport): {
2364
2364
  tier: "light" | "heavy";
2365
2365
  }>;
2366
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
+ }>;
2367
2379
  };
2368
2380
  leases: {
2369
2381
  delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
@@ -3222,6 +3234,11 @@ export declare function createAgent(transport: Transport): {
3222
3234
  vault_ids: Array<string>;
3223
3235
  deployment_id?: null | string;
3224
3236
  cwd: string;
3237
+ workspace?: {
3238
+ kind: "shared" | "isolated";
3239
+ path?: string;
3240
+ branch?: string;
3241
+ };
3225
3242
  computer_id?: string;
3226
3243
  model?: {
3227
3244
  id: string;
@@ -3282,6 +3299,11 @@ export declare function createAgent(transport: Transport): {
3282
3299
  vault_ids: Array<string>;
3283
3300
  deployment_id?: null | string;
3284
3301
  cwd: string;
3302
+ workspace?: {
3303
+ kind: "shared" | "isolated";
3304
+ path?: string;
3305
+ branch?: string;
3306
+ };
3285
3307
  computer_id?: string;
3286
3308
  model?: {
3287
3309
  id: string;
@@ -3444,6 +3466,11 @@ export declare function createAgent(transport: Transport): {
3444
3466
  vault_ids: Array<string>;
3445
3467
  deployment_id?: null | string;
3446
3468
  cwd: string;
3469
+ workspace?: {
3470
+ kind: "shared" | "isolated";
3471
+ path?: string;
3472
+ branch?: string;
3473
+ };
3447
3474
  computer_id?: string;
3448
3475
  model?: {
3449
3476
  id: string;
@@ -4136,160 +4163,708 @@ export declare function createAgent(transport: Transport): {
4136
4163
  properties?: null | {
4137
4164
  [key: string]: unknown;
4138
4165
  };
4139
- required?: null | Array<string>;
4140
- [key: string]: unknown;
4141
- };
4142
- name: string;
4143
- type: "custom";
4144
- }>;
4145
- type: "agent";
4146
- version: number;
4147
- };
4148
- archived_at: null | string;
4149
- budget: null | {
4150
- max_list_cost: {
4151
- amount: string;
4152
- currency: "USD";
4166
+ required?: null | Array<string>;
4167
+ [key: string]: unknown;
4168
+ };
4169
+ name: string;
4170
+ type: "custom";
4171
+ }>;
4172
+ type: "agent";
4173
+ version: number;
4174
+ };
4175
+ archived_at: null | string;
4176
+ budget: null | {
4177
+ max_list_cost: {
4178
+ amount: string;
4179
+ currency: "USD";
4180
+ };
4181
+ type: "limit";
4182
+ };
4183
+ created_at: string;
4184
+ environment_id?: string;
4185
+ metadata: {
4186
+ [key: string]: string;
4187
+ };
4188
+ outcome_evaluations: Array<{
4189
+ completed_at: null | string;
4190
+ description: string;
4191
+ explanation: null | string;
4192
+ iteration: number;
4193
+ outcome_id: string;
4194
+ result: string;
4195
+ type: "outcome_evaluation";
4196
+ }>;
4197
+ resources: Array<{
4198
+ id: string;
4199
+ created_at: string;
4200
+ mount_path: string;
4201
+ type: "github_repository";
4202
+ updated_at: string;
4203
+ url: string;
4204
+ checkout?: null | {
4205
+ name: string;
4206
+ type: "branch";
4207
+ } | {
4208
+ sha: string;
4209
+ type: "commit";
4210
+ };
4211
+ } | {
4212
+ id: string;
4213
+ created_at: string;
4214
+ file_id: string;
4215
+ mount_path: string;
4216
+ type: "file";
4217
+ updated_at: string;
4218
+ } | {
4219
+ memory_store_id: string;
4220
+ type: "memory_store";
4221
+ access?: null | "read_write" | "read_only";
4222
+ description?: string;
4223
+ instructions?: null | string;
4224
+ mount_path?: null | string;
4225
+ name?: null | string;
4226
+ }>;
4227
+ stats: {
4228
+ active_seconds?: number;
4229
+ duration_seconds?: number;
4230
+ };
4231
+ status: "rescheduling" | "running" | "idle" | "terminated";
4232
+ title: null | string;
4233
+ type: "session";
4234
+ updated_at: string;
4235
+ usage: {
4236
+ active_seconds?: number;
4237
+ cache_creation?: {
4238
+ ephemeral_1h_input_tokens?: number;
4239
+ ephemeral_5m_input_tokens?: number;
4240
+ };
4241
+ cache_read_input_tokens?: number;
4242
+ input_tokens?: number;
4243
+ list_cost?: null | {
4244
+ amount: string;
4245
+ currency: "USD";
4246
+ };
4247
+ output_tokens?: number;
4248
+ server_tool_use?: null | {
4249
+ web_fetch_requests?: number;
4250
+ web_search_requests?: number;
4251
+ };
4252
+ cost_by_product?: {
4253
+ [key: string]: string;
4254
+ };
4255
+ subagent_cost_micro_usd?: number;
4256
+ };
4257
+ vault_ids: Array<string>;
4258
+ deployment_id?: null | string;
4259
+ cwd: string;
4260
+ workspace?: {
4261
+ kind: "shared" | "isolated";
4262
+ path?: string;
4263
+ branch?: string;
4264
+ };
4265
+ computer_id?: string;
4266
+ model?: {
4267
+ id: string;
4268
+ thinking: {
4269
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4270
+ can_disable: boolean;
4271
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4272
+ } | null;
4273
+ };
4274
+ thinking?: {
4275
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4276
+ } | null;
4277
+ forked_from?: {
4278
+ session_id: string;
4279
+ message_id: string;
4280
+ } | null;
4281
+ readonly external_user_id: string | null;
4282
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4283
+ }>;
4284
+ list: (options?: import("./core/transport.js").CallOptions<Types.SessionsListData> | undefined) => Promise<{
4285
+ data: Array<{
4286
+ id: string;
4287
+ agent: {
4288
+ id: string;
4289
+ description: null | string;
4290
+ mcp_servers: Array<Types.AgentManaged36>;
4291
+ model: {
4292
+ id: string;
4293
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4294
+ inference_geo?: string;
4295
+ speed?: "standard" | "fast";
4296
+ settings?: {
4297
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4298
+ max_output_tokens?: number;
4299
+ };
4300
+ };
4301
+ multiagent: null | Types.AgentManaged171;
4302
+ name: string;
4303
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4304
+ system: null | string;
4305
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4306
+ type: "agent";
4307
+ version: number;
4308
+ };
4309
+ archived_at: null | string;
4310
+ budget: null | Types.AgentManaged76;
4311
+ created_at: string;
4312
+ environment_id?: string;
4313
+ metadata: Types.AgentManaged173;
4314
+ outcome_evaluations: Array<Types.AgentManaged174>;
4315
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4316
+ stats: Types.AgentManaged178;
4317
+ status: "rescheduling" | "running" | "idle" | "terminated";
4318
+ title: null | string;
4319
+ type: "session";
4320
+ updated_at: string;
4321
+ usage: Types.AgentManaged179;
4322
+ vault_ids: Array<string>;
4323
+ deployment_id?: null | string;
4324
+ cwd: string;
4325
+ workspace?: {
4326
+ kind: "shared" | "isolated";
4327
+ path?: string;
4328
+ branch?: string;
4329
+ };
4330
+ computer_id?: string;
4331
+ model?: {
4332
+ id: string;
4333
+ thinking: {
4334
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4335
+ can_disable: boolean;
4336
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4337
+ } | null;
4338
+ };
4339
+ thinking?: {
4340
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4341
+ } | null;
4342
+ forked_from?: {
4343
+ session_id: string;
4344
+ message_id: string;
4345
+ } | null;
4346
+ readonly external_user_id: string | null;
4347
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4348
+ }>;
4349
+ next_page: string | null;
4350
+ }>;
4351
+ name: {
4352
+ create: (options: import("./core/transport.js").CallOptions<Types.RenameSessionData>) => Promise<{
4353
+ id: string;
4354
+ agent: {
4355
+ id: string;
4356
+ description: null | string;
4357
+ mcp_servers: Array<{
4358
+ type: "url";
4359
+ name: string;
4360
+ url: string;
4361
+ headers?: {
4362
+ [key: string]: string;
4363
+ };
4364
+ timeout_ms?: number;
4365
+ } | {
4366
+ type: "sse";
4367
+ name: string;
4368
+ url: string;
4369
+ headers?: {
4370
+ [key: string]: string;
4371
+ };
4372
+ timeout_ms?: number;
4373
+ } | {
4374
+ type: "stdio";
4375
+ name: string;
4376
+ command: string;
4377
+ args?: Array<string>;
4378
+ env?: {
4379
+ [key: string]: string;
4380
+ };
4381
+ timeout_ms?: number;
4382
+ }>;
4383
+ model: {
4384
+ id: string;
4385
+ effort?: {
4386
+ type: "low";
4387
+ } | {
4388
+ type: "medium";
4389
+ } | {
4390
+ type: "high";
4391
+ } | {
4392
+ type: "xhigh";
4393
+ } | {
4394
+ type: "max";
4395
+ };
4396
+ inference_geo?: string;
4397
+ speed?: "standard" | "fast";
4398
+ settings?: {
4399
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4400
+ max_output_tokens?: number;
4401
+ };
4402
+ };
4403
+ multiagent: null | {
4404
+ agents: Array<{
4405
+ model: string;
4406
+ type: "advisor";
4407
+ } | {
4408
+ id: string;
4409
+ description: null | string;
4410
+ mcp_servers: Array<{
4411
+ type: "url";
4412
+ name: string;
4413
+ url: string;
4414
+ headers?: {
4415
+ [key: string]: string;
4416
+ };
4417
+ timeout_ms?: number;
4418
+ } | {
4419
+ type: "sse";
4420
+ name: string;
4421
+ url: string;
4422
+ headers?: {
4423
+ [key: string]: string;
4424
+ };
4425
+ timeout_ms?: number;
4426
+ } | {
4427
+ type: "stdio";
4428
+ name: string;
4429
+ command: string;
4430
+ args?: Array<string>;
4431
+ env?: {
4432
+ [key: string]: string;
4433
+ };
4434
+ timeout_ms?: number;
4435
+ }>;
4436
+ model: {
4437
+ id: string;
4438
+ effort?: {
4439
+ type: "low";
4440
+ } | {
4441
+ type: "medium";
4442
+ } | {
4443
+ type: "high";
4444
+ } | {
4445
+ type: "xhigh";
4446
+ } | {
4447
+ type: "max";
4448
+ };
4449
+ inference_geo?: string;
4450
+ speed?: "standard" | "fast";
4451
+ };
4452
+ name: string;
4453
+ skills: Array<{
4454
+ skill_id: string;
4455
+ type: "anthropic";
4456
+ version: string;
4457
+ } | {
4458
+ skill_id: string;
4459
+ type: "custom";
4460
+ version: string;
4461
+ }>;
4462
+ system: null | string;
4463
+ tools: Array<{
4464
+ configs: Array<{
4465
+ enabled: boolean;
4466
+ name: "bash";
4467
+ permission_policy: {
4468
+ type: "always_allow";
4469
+ } | {
4470
+ type: "always_ask";
4471
+ } | {
4472
+ type: "auto";
4473
+ };
4474
+ type: "bash";
4475
+ } | {
4476
+ enabled: boolean;
4477
+ name: "edit";
4478
+ permission_policy: {
4479
+ type: "always_allow";
4480
+ } | {
4481
+ type: "always_ask";
4482
+ } | {
4483
+ type: "auto";
4484
+ };
4485
+ type: "edit";
4486
+ } | {
4487
+ enabled: boolean;
4488
+ name: "read";
4489
+ permission_policy: {
4490
+ type: "always_allow";
4491
+ } | {
4492
+ type: "always_ask";
4493
+ } | {
4494
+ type: "auto";
4495
+ };
4496
+ type: "read";
4497
+ } | {
4498
+ enabled: boolean;
4499
+ name: "write";
4500
+ permission_policy: {
4501
+ type: "always_allow";
4502
+ } | {
4503
+ type: "always_ask";
4504
+ } | {
4505
+ type: "auto";
4506
+ };
4507
+ type: "write";
4508
+ } | {
4509
+ enabled: boolean;
4510
+ name: "glob";
4511
+ permission_policy: {
4512
+ type: "always_allow";
4513
+ } | {
4514
+ type: "always_ask";
4515
+ } | {
4516
+ type: "auto";
4517
+ };
4518
+ type: "glob";
4519
+ } | {
4520
+ enabled: boolean;
4521
+ name: "grep";
4522
+ permission_policy: {
4523
+ type: "always_allow";
4524
+ } | {
4525
+ type: "always_ask";
4526
+ } | {
4527
+ type: "auto";
4528
+ };
4529
+ type: "grep";
4530
+ } | {
4531
+ enabled: boolean;
4532
+ name: "web_fetch";
4533
+ permission_policy: {
4534
+ type: "always_allow";
4535
+ } | {
4536
+ type: "always_ask";
4537
+ } | {
4538
+ type: "auto";
4539
+ };
4540
+ type: "web_fetch";
4541
+ allowed_domains?: Array<string>;
4542
+ blocked_domains?: Array<string>;
4543
+ max_content_tokens?: null | number;
4544
+ } | {
4545
+ enabled: boolean;
4546
+ name: "web_search";
4547
+ permission_policy: {
4548
+ type: "always_allow";
4549
+ } | {
4550
+ type: "always_ask";
4551
+ } | {
4552
+ type: "auto";
4553
+ };
4554
+ type: "web_search";
4555
+ allowed_domains?: Array<string>;
4556
+ blocked_domains?: Array<string>;
4557
+ user_location?: null | {
4558
+ type: "approximate";
4559
+ city?: null | string;
4560
+ country?: null | string;
4561
+ region?: null | string;
4562
+ timezone?: null | string;
4563
+ };
4564
+ } | {
4565
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
4566
+ enabled: boolean;
4567
+ permission_policy: {
4568
+ type: "always_allow" | "always_ask";
4569
+ };
4570
+ }>;
4571
+ default_config: {
4572
+ enabled: boolean;
4573
+ permission_policy: {
4574
+ type: "always_allow";
4575
+ } | {
4576
+ type: "always_ask";
4577
+ } | {
4578
+ type: "auto";
4579
+ };
4580
+ };
4581
+ type: "agent_toolset_20260401";
4582
+ } | {
4583
+ type: "mcp_toolset";
4584
+ mcp_server_name: string;
4585
+ default_config?: {
4586
+ enabled?: boolean | null;
4587
+ permission_policy?: null | {
4588
+ type: "always_allow" | "always_ask";
4589
+ };
4590
+ } | null;
4591
+ configs?: Array<{
4592
+ name: string;
4593
+ enabled?: boolean | null;
4594
+ permission_policy?: null | {
4595
+ type: "always_allow" | "always_ask";
4596
+ };
4597
+ }> | null;
4598
+ } | {
4599
+ description: string;
4600
+ input_schema: {
4601
+ type: "object";
4602
+ properties?: null | {
4603
+ [key: string]: unknown;
4604
+ };
4605
+ required?: null | Array<string>;
4606
+ [key: string]: unknown;
4607
+ };
4608
+ name: string;
4609
+ type: "custom";
4610
+ }>;
4611
+ type: "agent";
4612
+ version: number;
4613
+ }>;
4614
+ type: "coordinator";
4615
+ };
4616
+ name: string;
4617
+ skills: Array<{
4618
+ skill_id: string;
4619
+ type: "anthropic";
4620
+ version: string;
4621
+ } | {
4622
+ skill_id: string;
4623
+ type: "custom";
4624
+ version: string;
4625
+ }>;
4626
+ system: null | string;
4627
+ tools: Array<{
4628
+ configs: Array<{
4629
+ enabled: boolean;
4630
+ name: "bash";
4631
+ permission_policy: {
4632
+ type: "always_allow";
4633
+ } | {
4634
+ type: "always_ask";
4635
+ } | {
4636
+ type: "auto";
4637
+ };
4638
+ type: "bash";
4639
+ } | {
4640
+ enabled: boolean;
4641
+ name: "edit";
4642
+ permission_policy: {
4643
+ type: "always_allow";
4644
+ } | {
4645
+ type: "always_ask";
4646
+ } | {
4647
+ type: "auto";
4648
+ };
4649
+ type: "edit";
4650
+ } | {
4651
+ enabled: boolean;
4652
+ name: "read";
4653
+ permission_policy: {
4654
+ type: "always_allow";
4655
+ } | {
4656
+ type: "always_ask";
4657
+ } | {
4658
+ type: "auto";
4659
+ };
4660
+ type: "read";
4661
+ } | {
4662
+ enabled: boolean;
4663
+ name: "write";
4664
+ permission_policy: {
4665
+ type: "always_allow";
4666
+ } | {
4667
+ type: "always_ask";
4668
+ } | {
4669
+ type: "auto";
4670
+ };
4671
+ type: "write";
4672
+ } | {
4673
+ enabled: boolean;
4674
+ name: "glob";
4675
+ permission_policy: {
4676
+ type: "always_allow";
4677
+ } | {
4678
+ type: "always_ask";
4679
+ } | {
4680
+ type: "auto";
4681
+ };
4682
+ type: "glob";
4683
+ } | {
4684
+ enabled: boolean;
4685
+ name: "grep";
4686
+ permission_policy: {
4687
+ type: "always_allow";
4688
+ } | {
4689
+ type: "always_ask";
4690
+ } | {
4691
+ type: "auto";
4692
+ };
4693
+ type: "grep";
4694
+ } | {
4695
+ enabled: boolean;
4696
+ name: "web_fetch";
4697
+ permission_policy: {
4698
+ type: "always_allow";
4699
+ } | {
4700
+ type: "always_ask";
4701
+ } | {
4702
+ type: "auto";
4703
+ };
4704
+ type: "web_fetch";
4705
+ allowed_domains?: Array<string>;
4706
+ blocked_domains?: Array<string>;
4707
+ max_content_tokens?: null | number;
4708
+ } | {
4709
+ enabled: boolean;
4710
+ name: "web_search";
4711
+ permission_policy: {
4712
+ type: "always_allow";
4713
+ } | {
4714
+ type: "always_ask";
4715
+ } | {
4716
+ type: "auto";
4717
+ };
4718
+ type: "web_search";
4719
+ allowed_domains?: Array<string>;
4720
+ blocked_domains?: Array<string>;
4721
+ user_location?: null | {
4722
+ type: "approximate";
4723
+ city?: null | string;
4724
+ country?: null | string;
4725
+ region?: null | string;
4726
+ timezone?: null | string;
4727
+ };
4728
+ } | {
4729
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
4730
+ enabled: boolean;
4731
+ permission_policy: {
4732
+ type: "always_allow" | "always_ask";
4733
+ };
4734
+ }>;
4735
+ default_config: {
4736
+ enabled: boolean;
4737
+ permission_policy: {
4738
+ type: "always_allow";
4739
+ } | {
4740
+ type: "always_ask";
4741
+ } | {
4742
+ type: "auto";
4743
+ };
4744
+ };
4745
+ type: "agent_toolset_20260401";
4746
+ } | {
4747
+ type: "mcp_toolset";
4748
+ mcp_server_name: string;
4749
+ default_config?: {
4750
+ enabled?: boolean | null;
4751
+ permission_policy?: null | {
4752
+ type: "always_allow" | "always_ask";
4753
+ };
4754
+ } | null;
4755
+ configs?: Array<{
4756
+ name: string;
4757
+ enabled?: boolean | null;
4758
+ permission_policy?: null | {
4759
+ type: "always_allow" | "always_ask";
4760
+ };
4761
+ }> | null;
4762
+ } | {
4763
+ description: string;
4764
+ input_schema: {
4765
+ type: "object";
4766
+ properties?: null | {
4767
+ [key: string]: unknown;
4768
+ };
4769
+ required?: null | Array<string>;
4770
+ [key: string]: unknown;
4771
+ };
4772
+ name: string;
4773
+ type: "custom";
4774
+ }>;
4775
+ type: "agent";
4776
+ version: number;
4153
4777
  };
4154
- type: "limit";
4155
- };
4156
- created_at: string;
4157
- environment_id?: string;
4158
- metadata: {
4159
- [key: string]: string;
4160
- };
4161
- outcome_evaluations: Array<{
4162
- completed_at: null | string;
4163
- description: string;
4164
- explanation: null | string;
4165
- iteration: number;
4166
- outcome_id: string;
4167
- result: string;
4168
- type: "outcome_evaluation";
4169
- }>;
4170
- resources: Array<{
4171
- id: string;
4172
- created_at: string;
4173
- mount_path: string;
4174
- type: "github_repository";
4175
- updated_at: string;
4176
- url: string;
4177
- checkout?: null | {
4178
- name: string;
4179
- type: "branch";
4180
- } | {
4181
- sha: string;
4182
- type: "commit";
4778
+ archived_at: null | string;
4779
+ budget: null | {
4780
+ max_list_cost: {
4781
+ amount: string;
4782
+ currency: "USD";
4783
+ };
4784
+ type: "limit";
4183
4785
  };
4184
- } | {
4185
- id: string;
4186
4786
  created_at: string;
4187
- file_id: string;
4188
- mount_path: string;
4189
- type: "file";
4190
- updated_at: string;
4191
- } | {
4192
- memory_store_id: string;
4193
- type: "memory_store";
4194
- access?: null | "read_write" | "read_only";
4195
- description?: string;
4196
- instructions?: null | string;
4197
- mount_path?: null | string;
4198
- name?: null | string;
4199
- }>;
4200
- stats: {
4201
- active_seconds?: number;
4202
- duration_seconds?: number;
4203
- };
4204
- status: "rescheduling" | "running" | "idle" | "terminated";
4205
- title: null | string;
4206
- type: "session";
4207
- updated_at: string;
4208
- usage: {
4209
- active_seconds?: number;
4210
- cache_creation?: {
4211
- ephemeral_1h_input_tokens?: number;
4212
- ephemeral_5m_input_tokens?: number;
4213
- };
4214
- cache_read_input_tokens?: number;
4215
- input_tokens?: number;
4216
- list_cost?: null | {
4217
- amount: string;
4218
- currency: "USD";
4219
- };
4220
- output_tokens?: number;
4221
- server_tool_use?: null | {
4222
- web_fetch_requests?: number;
4223
- web_search_requests?: number;
4224
- };
4225
- cost_by_product?: {
4787
+ environment_id?: string;
4788
+ metadata: {
4226
4789
  [key: string]: string;
4227
4790
  };
4228
- subagent_cost_micro_usd?: number;
4229
- };
4230
- vault_ids: Array<string>;
4231
- deployment_id?: null | string;
4232
- cwd: string;
4233
- computer_id?: string;
4234
- model?: {
4235
- id: string;
4236
- thinking: {
4237
- efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4238
- can_disable: boolean;
4239
- default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4240
- } | null;
4241
- };
4242
- thinking?: {
4243
- effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4244
- } | null;
4245
- forked_from?: {
4246
- session_id: string;
4247
- message_id: string;
4248
- } | null;
4249
- readonly external_user_id: string | null;
4250
- readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4251
- }>;
4252
- list: (options?: import("./core/transport.js").CallOptions<Types.SessionsListData> | undefined) => Promise<{
4253
- data: Array<{
4254
- id: string;
4255
- agent: {
4791
+ outcome_evaluations: Array<{
4792
+ completed_at: null | string;
4793
+ description: string;
4794
+ explanation: null | string;
4795
+ iteration: number;
4796
+ outcome_id: string;
4797
+ result: string;
4798
+ type: "outcome_evaluation";
4799
+ }>;
4800
+ resources: Array<{
4256
4801
  id: string;
4257
- description: null | string;
4258
- mcp_servers: Array<Types.AgentManaged36>;
4259
- model: {
4260
- id: string;
4261
- effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4262
- inference_geo?: string;
4263
- speed?: "standard" | "fast";
4264
- settings?: {
4265
- reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4266
- max_output_tokens?: number;
4267
- };
4802
+ created_at: string;
4803
+ mount_path: string;
4804
+ type: "github_repository";
4805
+ updated_at: string;
4806
+ url: string;
4807
+ checkout?: null | {
4808
+ name: string;
4809
+ type: "branch";
4810
+ } | {
4811
+ sha: string;
4812
+ type: "commit";
4268
4813
  };
4269
- multiagent: null | Types.AgentManaged171;
4270
- name: string;
4271
- skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4272
- system: null | string;
4273
- tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4274
- type: "agent";
4275
- version: number;
4814
+ } | {
4815
+ id: string;
4816
+ created_at: string;
4817
+ file_id: string;
4818
+ mount_path: string;
4819
+ type: "file";
4820
+ updated_at: string;
4821
+ } | {
4822
+ memory_store_id: string;
4823
+ type: "memory_store";
4824
+ access?: null | "read_write" | "read_only";
4825
+ description?: string;
4826
+ instructions?: null | string;
4827
+ mount_path?: null | string;
4828
+ name?: null | string;
4829
+ }>;
4830
+ stats: {
4831
+ active_seconds?: number;
4832
+ duration_seconds?: number;
4276
4833
  };
4277
- archived_at: null | string;
4278
- budget: null | Types.AgentManaged76;
4279
- created_at: string;
4280
- environment_id?: string;
4281
- metadata: Types.AgentManaged173;
4282
- outcome_evaluations: Array<Types.AgentManaged174>;
4283
- resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4284
- stats: Types.AgentManaged178;
4285
4834
  status: "rescheduling" | "running" | "idle" | "terminated";
4286
4835
  title: null | string;
4287
4836
  type: "session";
4288
4837
  updated_at: string;
4289
- usage: Types.AgentManaged179;
4838
+ usage: {
4839
+ active_seconds?: number;
4840
+ cache_creation?: {
4841
+ ephemeral_1h_input_tokens?: number;
4842
+ ephemeral_5m_input_tokens?: number;
4843
+ };
4844
+ cache_read_input_tokens?: number;
4845
+ input_tokens?: number;
4846
+ list_cost?: null | {
4847
+ amount: string;
4848
+ currency: "USD";
4849
+ };
4850
+ output_tokens?: number;
4851
+ server_tool_use?: null | {
4852
+ web_fetch_requests?: number;
4853
+ web_search_requests?: number;
4854
+ };
4855
+ cost_by_product?: {
4856
+ [key: string]: string;
4857
+ };
4858
+ subagent_cost_micro_usd?: number;
4859
+ };
4290
4860
  vault_ids: Array<string>;
4291
4861
  deployment_id?: null | string;
4292
4862
  cwd: string;
4863
+ workspace?: {
4864
+ kind: "shared" | "isolated";
4865
+ path?: string;
4866
+ branch?: string;
4867
+ };
4293
4868
  computer_id?: string;
4294
4869
  model?: {
4295
4870
  id: string;
@@ -4309,8 +4884,7 @@ export declare function createAgent(transport: Transport): {
4309
4884
  readonly external_user_id: string | null;
4310
4885
  readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4311
4886
  }>;
4312
- next_page: string | null;
4313
- }>;
4887
+ };
4314
4888
  requests: {
4315
4889
  list: (options: import("./core/transport.js").CallOptions<Types.ListSessionRequestsData>) => Promise<{
4316
4890
  data: Array<{
@@ -4382,6 +4956,11 @@ export declare function createAgent(transport: Transport): {
4382
4956
  vault_ids: Array<string>;
4383
4957
  deployment_id?: null | string;
4384
4958
  cwd: string;
4959
+ workspace?: {
4960
+ kind: "shared" | "isolated";
4961
+ path?: string;
4962
+ branch?: string;
4963
+ };
4385
4964
  computer_id?: string;
4386
4965
  model?: {
4387
4966
  id: string;
@@ -4748,6 +5327,11 @@ export declare function createAgent(transport: Transport): {
4748
5327
  vault_ids: Array<string>;
4749
5328
  deployment_id?: null | string;
4750
5329
  cwd: string;
5330
+ workspace?: {
5331
+ kind: "shared" | "isolated";
5332
+ path?: string;
5333
+ branch?: string;
5334
+ };
4751
5335
  computer_id?: string;
4752
5336
  model?: {
4753
5337
  id: string;
@@ -5545,6 +6129,7 @@ export declare function createDevops(transport: Transport): {
5545
6129
  };
5546
6130
  };
5547
6131
  pullRequests: {
6132
+ close: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsCloseData>) => Promise<Types.DevopsPullRequest>;
5548
6133
  merge: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsMergeData>) => Promise<Types.DevopsPullRequest>;
5549
6134
  recordVerdict: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRecordVerdictData>) => Promise<Types.DevopsPullRequest>;
5550
6135
  rerunGate: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRerunGateData>) => Promise<Types.DevopsPullRequest>;
@@ -5764,6 +6349,12 @@ export declare function createMedia(transport: Transport): {
5764
6349
  retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
5765
6350
  };
5766
6351
  update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
6352
+ voices: {
6353
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateVoiceData>) => Promise<Types.MediaJob>;
6354
+ designs: {
6355
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaDesignVoiceData>) => Promise<Types.MediaJob>;
6356
+ };
6357
+ };
5767
6358
  };
5768
6359
  speech: {
5769
6360
  create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateSpeechData>) => Promise<Types.MediaJob>;
@@ -6764,6 +7355,18 @@ export declare function createRegistry(transport: Transport): {
6764
7355
  update: (options: import("./core/transport.js").CallOptions<Types.RegistryInstallationsUpdateData>) => Promise<Types.RegistryInstallation>;
6765
7356
  };
6766
7357
  packages: {
7358
+ git: {
7359
+ commits: {
7360
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitCommitsRetrieveData>) => Promise<Types.RegistryGitCommit>;
7361
+ };
7362
+ files: {
7363
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitFilesRetrieveData>) => Promise<Blob | File>;
7364
+ };
7365
+ retrieveLog: (options: import("./core/transport.js").CallOptions<Types.RegistryGitLogData>) => Promise<Types.RegistryGitLog>;
7366
+ trees: {
7367
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitTreesRetrieveData>) => Promise<Types.RegistryGitTree>;
7368
+ };
7369
+ };
6767
7370
  installations: {
6768
7371
  create: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsCreateData>) => Promise<Types.RegistryInstallResult>;
6769
7372
  list: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsListData>) => Promise<Types.RegistryInstallationList>;
@@ -6801,6 +7404,26 @@ export declare function createSandbox(transport: Transport): {
6801
7404
  };
6802
7405
  };
6803
7406
  sandboxes: {
7407
+ act: (options: import("./core/transport.js").CallOptions<Types.ActOnSandboxDisplayData>) => Promise<{
7408
+ type: "snapshot";
7409
+ snapshot: string;
7410
+ refs: number;
7411
+ truncated: boolean;
7412
+ package: string;
7413
+ } | {
7414
+ type: "screenshot";
7415
+ mediaType: string;
7416
+ data: string;
7417
+ width: number;
7418
+ height: number;
7419
+ bytes: number;
7420
+ } | {
7421
+ type: "ok";
7422
+ ms?: number;
7423
+ } | {
7424
+ type: "wait";
7425
+ ms: number;
7426
+ }>;
6804
7427
  commands: {
6805
7428
  run: (options: import("./core/transport.js").CallOptions<Types.RunSandboxCommandData>) => Promise<{
6806
7429
  stdout: string;