@deepraxis/sdk 0.1.1-dev.185c0c2 → 0.1.1-dev.1ae4311

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>;
@@ -761,6 +765,7 @@ export declare function createAgent(transport: Transport): {
761
765
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
762
766
  id: string;
763
767
  access: "read_only" | "read_write" | "invoke";
768
+ customer_access?: "read_only" | "read_write" | "invoke";
764
769
  instructions?: string;
765
770
  readonly verified?: boolean;
766
771
  enabled?: boolean;
@@ -885,6 +890,7 @@ export declare function createAgent(transport: Transport): {
885
890
  };
886
891
  avatar: string | null;
887
892
  creation_source: string | null;
893
+ managed_by: string | null;
888
894
  identity_number: string | null;
889
895
  environment_id?: string | null;
890
896
  vault_ids?: Array<string>;
@@ -938,6 +944,7 @@ export declare function createAgent(transport: Transport): {
938
944
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
939
945
  id: string;
940
946
  access: "read_only" | "read_write" | "invoke";
947
+ customer_access?: "read_only" | "read_write" | "invoke";
941
948
  instructions?: string;
942
949
  readonly verified?: boolean;
943
950
  enabled?: boolean;
@@ -1062,6 +1069,7 @@ export declare function createAgent(transport: Transport): {
1062
1069
  };
1063
1070
  avatar: string | null;
1064
1071
  creation_source: string | null;
1072
+ managed_by: string | null;
1065
1073
  identity_number: string | null;
1066
1074
  environment_id?: string | null;
1067
1075
  vault_ids?: Array<string>;
@@ -1144,6 +1152,11 @@ export declare function createAgent(transport: Transport): {
1144
1152
  max_file_bytes: number;
1145
1153
  max_files_per_session: number;
1146
1154
  };
1155
+ share_links: {
1156
+ enabled: boolean;
1157
+ daily_session_cap: number | null;
1158
+ daily_spend_cap_micro_usd: number | null;
1159
+ };
1147
1160
  }>;
1148
1161
  unarchive: {
1149
1162
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
@@ -1388,6 +1401,7 @@ export declare function createAgent(transport: Transport): {
1388
1401
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1389
1402
  id: string;
1390
1403
  access: "read_only" | "read_write" | "invoke";
1404
+ customer_access?: "read_only" | "read_write" | "invoke";
1391
1405
  instructions?: string;
1392
1406
  readonly verified?: boolean;
1393
1407
  enabled?: boolean;
@@ -1512,6 +1526,7 @@ export declare function createAgent(transport: Transport): {
1512
1526
  };
1513
1527
  avatar: string | null;
1514
1528
  creation_source: string | null;
1529
+ managed_by: string | null;
1515
1530
  identity_number: string | null;
1516
1531
  environment_id?: string | null;
1517
1532
  vault_ids?: Array<string>;
@@ -1564,6 +1579,7 @@ export declare function createAgent(transport: Transport): {
1564
1579
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
1565
1580
  id: string;
1566
1581
  access: "read_only" | "read_write" | "invoke";
1582
+ customer_access?: "read_only" | "read_write" | "invoke";
1567
1583
  instructions?: string;
1568
1584
  readonly verified?: boolean;
1569
1585
  enabled?: boolean;
@@ -1688,6 +1704,7 @@ export declare function createAgent(transport: Transport): {
1688
1704
  };
1689
1705
  avatar: string | null;
1690
1706
  creation_source: string | null;
1707
+ managed_by: string | null;
1691
1708
  identity_number: string | null;
1692
1709
  environment_id?: string | null;
1693
1710
  vault_ids?: Array<string>;
@@ -1707,6 +1724,11 @@ export declare function createAgent(transport: Transport): {
1707
1724
  max_file_bytes: number;
1708
1725
  max_files_per_session: number;
1709
1726
  };
1727
+ share_links: {
1728
+ enabled: boolean;
1729
+ daily_session_cap: number | null;
1730
+ daily_spend_cap_micro_usd: number | null;
1731
+ };
1710
1732
  }>;
1711
1733
  versions: {
1712
1734
  apply: (options: import("./core/transport.js").CallOptions<Types.ApplyAgentVersionData>) => Promise<{
@@ -1951,6 +1973,7 @@ export declare function createAgent(transport: Transport): {
1951
1973
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
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>;
@@ -2127,6 +2151,7 @@ export declare function createAgent(transport: Transport): {
2127
2151
  type: "database" | "vector_store" | "file" | "media_library" | "model" | "workflow" | "script";
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,18 @@ 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
+ }>;
2341
2379
  };
2342
2380
  leases: {
2343
2381
  delete: (options: import("./core/transport.js").CallOptions<Types.ReleaseComputerLeaseData>) => Promise<{
@@ -4285,244 +4323,776 @@ export declare function createAgent(transport: Transport): {
4285
4323
  }>;
4286
4324
  next_page: string | null;
4287
4325
  }>;
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: {
4326
+ name: {
4327
+ create: (options: import("./core/transport.js").CallOptions<Types.RenameSessionData>) => Promise<{
4322
4328
  id: string;
4323
- description: null | string;
4324
- mcp_servers: Array<Types.AgentManaged36>;
4325
- model: {
4329
+ agent: {
4326
4330
  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
- }>;
4331
+ description: null | string;
4332
+ mcp_servers: Array<{
4333
+ type: "url";
4334
+ name: string;
4335
+ url: string;
4336
+ headers?: {
4337
+ [key: string]: string;
4477
4338
  };
4478
- message_id?: string;
4479
- } | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
4480
- id: string;
4481
- content: Array<{
4482
- text: string;
4483
- type: "text";
4484
- citations?: Array<{
4485
- type: "search_result_location";
4486
- source: string;
4487
- title: string;
4488
- cited_text: string;
4489
- search_result_index: number;
4490
- start_block_index: number;
4491
- end_block_index: number;
4492
- }>;
4493
- } | Types.AgentManaged70>;
4494
- processed_at: string;
4495
- type: "agent.message";
4496
- run_id: string | null;
4497
- message_id?: string;
4339
+ timeout_ms?: number;
4498
4340
  } | {
4499
- id: string;
4500
- processed_at: string;
4501
- type: "agent.thinking";
4502
- run_id: string | null;
4503
- message_id?: string;
4341
+ type: "sse";
4342
+ name: string;
4343
+ url: string;
4344
+ headers?: {
4345
+ [key: string]: string;
4346
+ };
4347
+ timeout_ms?: number;
4504
4348
  } | {
4505
- id: string;
4506
- input: Types.AgentManaged197;
4507
- mcp_server_name: string;
4349
+ type: "stdio";
4508
4350
  name: string;
4509
- processed_at: string;
4510
- type: "agent.mcp_tool_use";
4511
- evaluated_permission?: "allow" | "deny" | "ask";
4512
- evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
4513
- session_thread_id?: null | string;
4514
- permission_suggestions?: Array<{
4515
- type: "add_rules";
4516
- behavior: "allow";
4517
- destination: "agent" | "session";
4518
- rules: Array<{
4519
- tool_name: string;
4520
- rule_content: string;
4521
- }>;
4522
- }>;
4523
- full_access_available?: boolean;
4524
- user_once?: true;
4525
- guarded_rule?: string;
4351
+ command: string;
4352
+ args?: Array<string>;
4353
+ env?: {
4354
+ [key: string]: string;
4355
+ };
4356
+ timeout_ms?: number;
4357
+ }>;
4358
+ model: {
4359
+ id: string;
4360
+ effort?: {
4361
+ type: "low";
4362
+ } | {
4363
+ type: "medium";
4364
+ } | {
4365
+ type: "high";
4366
+ } | {
4367
+ type: "xhigh";
4368
+ } | {
4369
+ type: "max";
4370
+ };
4371
+ inference_geo?: string;
4372
+ speed?: "standard" | "fast";
4373
+ settings?: {
4374
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4375
+ max_output_tokens?: number;
4376
+ };
4377
+ };
4378
+ multiagent: null | {
4379
+ agents: Array<{
4380
+ model: string;
4381
+ type: "advisor";
4382
+ } | {
4383
+ id: string;
4384
+ description: null | string;
4385
+ mcp_servers: Array<{
4386
+ type: "url";
4387
+ name: string;
4388
+ url: string;
4389
+ headers?: {
4390
+ [key: string]: string;
4391
+ };
4392
+ timeout_ms?: number;
4393
+ } | {
4394
+ type: "sse";
4395
+ name: string;
4396
+ url: string;
4397
+ headers?: {
4398
+ [key: string]: string;
4399
+ };
4400
+ timeout_ms?: number;
4401
+ } | {
4402
+ type: "stdio";
4403
+ name: string;
4404
+ command: string;
4405
+ args?: Array<string>;
4406
+ env?: {
4407
+ [key: string]: string;
4408
+ };
4409
+ timeout_ms?: number;
4410
+ }>;
4411
+ model: {
4412
+ id: string;
4413
+ effort?: {
4414
+ type: "low";
4415
+ } | {
4416
+ type: "medium";
4417
+ } | {
4418
+ type: "high";
4419
+ } | {
4420
+ type: "xhigh";
4421
+ } | {
4422
+ type: "max";
4423
+ };
4424
+ inference_geo?: string;
4425
+ speed?: "standard" | "fast";
4426
+ };
4427
+ name: string;
4428
+ skills: Array<{
4429
+ skill_id: string;
4430
+ type: "anthropic";
4431
+ version: string;
4432
+ } | {
4433
+ skill_id: string;
4434
+ type: "custom";
4435
+ version: string;
4436
+ }>;
4437
+ system: null | string;
4438
+ tools: Array<{
4439
+ configs: Array<{
4440
+ enabled: boolean;
4441
+ name: "bash";
4442
+ permission_policy: {
4443
+ type: "always_allow";
4444
+ } | {
4445
+ type: "always_ask";
4446
+ } | {
4447
+ type: "auto";
4448
+ };
4449
+ type: "bash";
4450
+ } | {
4451
+ enabled: boolean;
4452
+ name: "edit";
4453
+ permission_policy: {
4454
+ type: "always_allow";
4455
+ } | {
4456
+ type: "always_ask";
4457
+ } | {
4458
+ type: "auto";
4459
+ };
4460
+ type: "edit";
4461
+ } | {
4462
+ enabled: boolean;
4463
+ name: "read";
4464
+ permission_policy: {
4465
+ type: "always_allow";
4466
+ } | {
4467
+ type: "always_ask";
4468
+ } | {
4469
+ type: "auto";
4470
+ };
4471
+ type: "read";
4472
+ } | {
4473
+ enabled: boolean;
4474
+ name: "write";
4475
+ permission_policy: {
4476
+ type: "always_allow";
4477
+ } | {
4478
+ type: "always_ask";
4479
+ } | {
4480
+ type: "auto";
4481
+ };
4482
+ type: "write";
4483
+ } | {
4484
+ enabled: boolean;
4485
+ name: "glob";
4486
+ permission_policy: {
4487
+ type: "always_allow";
4488
+ } | {
4489
+ type: "always_ask";
4490
+ } | {
4491
+ type: "auto";
4492
+ };
4493
+ type: "glob";
4494
+ } | {
4495
+ enabled: boolean;
4496
+ name: "grep";
4497
+ permission_policy: {
4498
+ type: "always_allow";
4499
+ } | {
4500
+ type: "always_ask";
4501
+ } | {
4502
+ type: "auto";
4503
+ };
4504
+ type: "grep";
4505
+ } | {
4506
+ enabled: boolean;
4507
+ name: "web_fetch";
4508
+ permission_policy: {
4509
+ type: "always_allow";
4510
+ } | {
4511
+ type: "always_ask";
4512
+ } | {
4513
+ type: "auto";
4514
+ };
4515
+ type: "web_fetch";
4516
+ allowed_domains?: Array<string>;
4517
+ blocked_domains?: Array<string>;
4518
+ max_content_tokens?: null | number;
4519
+ } | {
4520
+ enabled: boolean;
4521
+ name: "web_search";
4522
+ permission_policy: {
4523
+ type: "always_allow";
4524
+ } | {
4525
+ type: "always_ask";
4526
+ } | {
4527
+ type: "auto";
4528
+ };
4529
+ type: "web_search";
4530
+ allowed_domains?: Array<string>;
4531
+ blocked_domains?: Array<string>;
4532
+ user_location?: null | {
4533
+ type: "approximate";
4534
+ city?: null | string;
4535
+ country?: null | string;
4536
+ region?: null | string;
4537
+ timezone?: null | string;
4538
+ };
4539
+ } | {
4540
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
4541
+ enabled: boolean;
4542
+ permission_policy: {
4543
+ type: "always_allow" | "always_ask";
4544
+ };
4545
+ }>;
4546
+ default_config: {
4547
+ enabled: boolean;
4548
+ permission_policy: {
4549
+ type: "always_allow";
4550
+ } | {
4551
+ type: "always_ask";
4552
+ } | {
4553
+ type: "auto";
4554
+ };
4555
+ };
4556
+ type: "agent_toolset_20260401";
4557
+ } | {
4558
+ type: "mcp_toolset";
4559
+ mcp_server_name: string;
4560
+ default_config?: {
4561
+ enabled?: boolean | null;
4562
+ permission_policy?: null | {
4563
+ type: "always_allow" | "always_ask";
4564
+ };
4565
+ } | null;
4566
+ configs?: Array<{
4567
+ name: string;
4568
+ enabled?: boolean | null;
4569
+ permission_policy?: null | {
4570
+ type: "always_allow" | "always_ask";
4571
+ };
4572
+ }> | null;
4573
+ } | {
4574
+ description: string;
4575
+ input_schema: {
4576
+ type: "object";
4577
+ properties?: null | {
4578
+ [key: string]: unknown;
4579
+ };
4580
+ required?: null | Array<string>;
4581
+ [key: string]: unknown;
4582
+ };
4583
+ name: string;
4584
+ type: "custom";
4585
+ }>;
4586
+ type: "agent";
4587
+ version: number;
4588
+ }>;
4589
+ type: "coordinator";
4590
+ };
4591
+ name: string;
4592
+ skills: Array<{
4593
+ skill_id: string;
4594
+ type: "anthropic";
4595
+ version: string;
4596
+ } | {
4597
+ skill_id: string;
4598
+ type: "custom";
4599
+ version: string;
4600
+ }>;
4601
+ system: null | string;
4602
+ tools: Array<{
4603
+ configs: Array<{
4604
+ enabled: boolean;
4605
+ name: "bash";
4606
+ permission_policy: {
4607
+ type: "always_allow";
4608
+ } | {
4609
+ type: "always_ask";
4610
+ } | {
4611
+ type: "auto";
4612
+ };
4613
+ type: "bash";
4614
+ } | {
4615
+ enabled: boolean;
4616
+ name: "edit";
4617
+ permission_policy: {
4618
+ type: "always_allow";
4619
+ } | {
4620
+ type: "always_ask";
4621
+ } | {
4622
+ type: "auto";
4623
+ };
4624
+ type: "edit";
4625
+ } | {
4626
+ enabled: boolean;
4627
+ name: "read";
4628
+ permission_policy: {
4629
+ type: "always_allow";
4630
+ } | {
4631
+ type: "always_ask";
4632
+ } | {
4633
+ type: "auto";
4634
+ };
4635
+ type: "read";
4636
+ } | {
4637
+ enabled: boolean;
4638
+ name: "write";
4639
+ permission_policy: {
4640
+ type: "always_allow";
4641
+ } | {
4642
+ type: "always_ask";
4643
+ } | {
4644
+ type: "auto";
4645
+ };
4646
+ type: "write";
4647
+ } | {
4648
+ enabled: boolean;
4649
+ name: "glob";
4650
+ permission_policy: {
4651
+ type: "always_allow";
4652
+ } | {
4653
+ type: "always_ask";
4654
+ } | {
4655
+ type: "auto";
4656
+ };
4657
+ type: "glob";
4658
+ } | {
4659
+ enabled: boolean;
4660
+ name: "grep";
4661
+ permission_policy: {
4662
+ type: "always_allow";
4663
+ } | {
4664
+ type: "always_ask";
4665
+ } | {
4666
+ type: "auto";
4667
+ };
4668
+ type: "grep";
4669
+ } | {
4670
+ enabled: boolean;
4671
+ name: "web_fetch";
4672
+ permission_policy: {
4673
+ type: "always_allow";
4674
+ } | {
4675
+ type: "always_ask";
4676
+ } | {
4677
+ type: "auto";
4678
+ };
4679
+ type: "web_fetch";
4680
+ allowed_domains?: Array<string>;
4681
+ blocked_domains?: Array<string>;
4682
+ max_content_tokens?: null | number;
4683
+ } | {
4684
+ enabled: boolean;
4685
+ name: "web_search";
4686
+ permission_policy: {
4687
+ type: "always_allow";
4688
+ } | {
4689
+ type: "always_ask";
4690
+ } | {
4691
+ type: "auto";
4692
+ };
4693
+ type: "web_search";
4694
+ allowed_domains?: Array<string>;
4695
+ blocked_domains?: Array<string>;
4696
+ user_location?: null | {
4697
+ type: "approximate";
4698
+ city?: null | string;
4699
+ country?: null | string;
4700
+ region?: null | string;
4701
+ timezone?: null | string;
4702
+ };
4703
+ } | {
4704
+ name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
4705
+ enabled: boolean;
4706
+ permission_policy: {
4707
+ type: "always_allow" | "always_ask";
4708
+ };
4709
+ }>;
4710
+ default_config: {
4711
+ enabled: boolean;
4712
+ permission_policy: {
4713
+ type: "always_allow";
4714
+ } | {
4715
+ type: "always_ask";
4716
+ } | {
4717
+ type: "auto";
4718
+ };
4719
+ };
4720
+ type: "agent_toolset_20260401";
4721
+ } | {
4722
+ type: "mcp_toolset";
4723
+ mcp_server_name: string;
4724
+ default_config?: {
4725
+ enabled?: boolean | null;
4726
+ permission_policy?: null | {
4727
+ type: "always_allow" | "always_ask";
4728
+ };
4729
+ } | null;
4730
+ configs?: Array<{
4731
+ name: string;
4732
+ enabled?: boolean | null;
4733
+ permission_policy?: null | {
4734
+ type: "always_allow" | "always_ask";
4735
+ };
4736
+ }> | null;
4737
+ } | {
4738
+ description: string;
4739
+ input_schema: {
4740
+ type: "object";
4741
+ properties?: null | {
4742
+ [key: string]: unknown;
4743
+ };
4744
+ required?: null | Array<string>;
4745
+ [key: string]: unknown;
4746
+ };
4747
+ name: string;
4748
+ type: "custom";
4749
+ }>;
4750
+ type: "agent";
4751
+ version: number;
4752
+ };
4753
+ archived_at: null | string;
4754
+ budget: null | {
4755
+ max_list_cost: {
4756
+ amount: string;
4757
+ currency: "USD";
4758
+ };
4759
+ type: "limit";
4760
+ };
4761
+ created_at: string;
4762
+ environment_id?: string;
4763
+ metadata: {
4764
+ [key: string]: string;
4765
+ };
4766
+ outcome_evaluations: Array<{
4767
+ completed_at: null | string;
4768
+ description: string;
4769
+ explanation: null | string;
4770
+ iteration: number;
4771
+ outcome_id: string;
4772
+ result: string;
4773
+ type: "outcome_evaluation";
4774
+ }>;
4775
+ resources: Array<{
4776
+ id: string;
4777
+ created_at: string;
4778
+ mount_path: string;
4779
+ type: "github_repository";
4780
+ updated_at: string;
4781
+ url: string;
4782
+ checkout?: null | {
4783
+ name: string;
4784
+ type: "branch";
4785
+ } | {
4786
+ sha: string;
4787
+ type: "commit";
4788
+ };
4789
+ } | {
4790
+ id: string;
4791
+ created_at: string;
4792
+ file_id: string;
4793
+ mount_path: string;
4794
+ type: "file";
4795
+ updated_at: string;
4796
+ } | {
4797
+ memory_store_id: string;
4798
+ type: "memory_store";
4799
+ access?: null | "read_write" | "read_only";
4800
+ description?: string;
4801
+ instructions?: null | string;
4802
+ mount_path?: null | string;
4803
+ name?: null | string;
4804
+ }>;
4805
+ stats: {
4806
+ active_seconds?: number;
4807
+ duration_seconds?: number;
4808
+ };
4809
+ status: "rescheduling" | "running" | "idle" | "terminated";
4810
+ title: null | string;
4811
+ type: "session";
4812
+ updated_at: string;
4813
+ usage: {
4814
+ active_seconds?: number;
4815
+ cache_creation?: {
4816
+ ephemeral_1h_input_tokens?: number;
4817
+ ephemeral_5m_input_tokens?: number;
4818
+ };
4819
+ cache_read_input_tokens?: number;
4820
+ input_tokens?: number;
4821
+ list_cost?: null | {
4822
+ amount: string;
4823
+ currency: "USD";
4824
+ };
4825
+ output_tokens?: number;
4826
+ server_tool_use?: null | {
4827
+ web_fetch_requests?: number;
4828
+ web_search_requests?: number;
4829
+ };
4830
+ cost_by_product?: {
4831
+ [key: string]: string;
4832
+ };
4833
+ subagent_cost_micro_usd?: number;
4834
+ };
4835
+ vault_ids: Array<string>;
4836
+ deployment_id?: null | string;
4837
+ cwd: string;
4838
+ computer_id?: string;
4839
+ model?: {
4840
+ id: string;
4841
+ thinking: {
4842
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4843
+ can_disable: boolean;
4844
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4845
+ } | null;
4846
+ };
4847
+ thinking?: {
4848
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4849
+ } | null;
4850
+ forked_from?: {
4851
+ session_id: string;
4852
+ message_id: string;
4853
+ } | null;
4854
+ readonly external_user_id: string | null;
4855
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4856
+ }>;
4857
+ };
4858
+ requests: {
4859
+ list: (options: import("./core/transport.js").CallOptions<Types.ListSessionRequestsData>) => Promise<{
4860
+ data: Array<{
4861
+ id: string;
4862
+ object: "request";
4863
+ kind: "question" | "approval";
4864
+ status: "pending";
4865
+ tool_name: string;
4866
+ input: unknown;
4867
+ create_time: string;
4868
+ expire_time: string | null;
4869
+ }>;
4870
+ }>;
4871
+ };
4872
+ resources: {
4873
+ create: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesAddData>) => Promise<Types.AgentManaged176>;
4874
+ delete: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesDeleteData, {
4875
+ query: {
4876
+ "session_id": "query_session_id";
4877
+ };
4878
+ }>>) => Promise<Types.AgentManaged255>;
4879
+ list: (options: import("./core/transport.js").CallOptions<Types.SessionsResourcesListData>) => Promise<{
4880
+ data: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4881
+ next_page: string | null;
4882
+ }>;
4883
+ retrieve: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsResourcesRetrieveData, {
4884
+ query: {
4885
+ "session_id": "query_session_id";
4886
+ };
4887
+ }>>) => Promise<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4888
+ };
4889
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.SessionsRetrieveData>) => Promise<{
4890
+ id: string;
4891
+ agent: {
4892
+ id: string;
4893
+ description: null | string;
4894
+ mcp_servers: Array<Types.AgentManaged36>;
4895
+ model: {
4896
+ id: string;
4897
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
4898
+ inference_geo?: string;
4899
+ speed?: "standard" | "fast";
4900
+ settings?: {
4901
+ reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4902
+ max_output_tokens?: number;
4903
+ };
4904
+ };
4905
+ multiagent: null | Types.AgentManaged171;
4906
+ name: string;
4907
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
4908
+ system: null | string;
4909
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
4910
+ type: "agent";
4911
+ version: number;
4912
+ };
4913
+ archived_at: null | string;
4914
+ budget: null | Types.AgentManaged76;
4915
+ created_at: string;
4916
+ environment_id?: string;
4917
+ metadata: Types.AgentManaged173;
4918
+ outcome_evaluations: Array<Types.AgentManaged174>;
4919
+ resources: Array<Types.AgentManaged175 | Types.AgentManaged176 | Types.AgentManaged177>;
4920
+ stats: Types.AgentManaged178;
4921
+ status: "rescheduling" | "running" | "idle" | "terminated";
4922
+ title: null | string;
4923
+ type: "session";
4924
+ updated_at: string;
4925
+ usage: Types.AgentManaged179;
4926
+ vault_ids: Array<string>;
4927
+ deployment_id?: null | string;
4928
+ cwd: string;
4929
+ computer_id?: string;
4930
+ model?: {
4931
+ id: string;
4932
+ thinking: {
4933
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4934
+ can_disable: boolean;
4935
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4936
+ } | null;
4937
+ };
4938
+ thinking?: {
4939
+ effort: "low" | "medium" | "high" | "xhigh" | "max" | "none";
4940
+ } | null;
4941
+ forked_from?: {
4942
+ session_id: string;
4943
+ message_id: string;
4944
+ } | null;
4945
+ readonly external_user_id: string | null;
4946
+ readonly source: "kit" | "iframe" | "hosted" | "api" | "automation" | null;
4947
+ }>;
4948
+ retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
4949
+ type: "session_compaction";
4950
+ id: string;
4951
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
4952
+ reason?: string;
4953
+ }>;
4954
+ retrieveContext: (options: import("./core/transport.js").CallOptions<Types.GetSessionContextData>) => Promise<{
4955
+ type: "session_context";
4956
+ session_id: string;
4957
+ model: {
4958
+ id: string;
4959
+ display_name: string;
4960
+ thinking: {
4961
+ efforts: Array<"low" | "medium" | "high" | "xhigh" | "max">;
4962
+ can_disable: boolean;
4963
+ default_effort: "low" | "medium" | "high" | "xhigh" | "max" | null;
4964
+ } | null;
4965
+ };
4966
+ total_tokens: number | null;
4967
+ total_tokens_source: "actual" | "estimated" | null;
4968
+ max_tokens: number | null;
4969
+ max_input_tokens: number | null;
4970
+ percentage: number;
4971
+ auto_compact_threshold: number | null;
4972
+ is_auto_compact_enabled: boolean;
4973
+ clear_tool_results_at: number;
4974
+ detail: "summary";
4975
+ categories: Array<{
4976
+ key: string;
4977
+ name: string;
4978
+ tokens: number;
4979
+ kind: "used" | "free" | "buffer" | "deferred";
4980
+ }>;
4981
+ mcp_tools: Array<{
4982
+ name: string;
4983
+ server_name: string;
4984
+ tokens: number;
4985
+ }>;
4986
+ plugin_blocks: Array<{
4987
+ name: string;
4988
+ tokens: number;
4989
+ }>;
4990
+ message_breakdown: {
4991
+ user_message_tokens: number;
4992
+ assistant_message_tokens: number;
4993
+ tool_call_tokens: number;
4994
+ tool_result_tokens: number;
4995
+ reasoning_tokens: number;
4996
+ tool_calls_by_type: Array<{
4997
+ name: string;
4998
+ call_tokens: number;
4999
+ result_tokens: number;
5000
+ }>;
5001
+ };
5002
+ compaction_summary: {
5003
+ tokens: number;
5004
+ } | null;
5005
+ excluded_items: {
5006
+ count: number;
5007
+ tokens: number;
5008
+ };
5009
+ measured_at: string | null;
5010
+ }>;
5011
+ runs: {
5012
+ deleteFeedback: (options: import("./core/transport.js").CallOptions<Types.DeleteRunFeedbackData>) => Promise<void>;
5013
+ feedback: {
5014
+ create: (options: import("./core/transport.js").CallOptions<Types.SetRunFeedbackData>) => Promise<{
5015
+ type: "run_feedback";
5016
+ session_id: string;
5017
+ run_id: string;
5018
+ rating: "positive" | "negative";
5019
+ comment: string | null;
5020
+ created_at: string;
5021
+ updated_at: string;
5022
+ }>;
5023
+ };
5024
+ };
5025
+ threads: {
5026
+ archive: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsArchiveData, {
5027
+ query: {
5028
+ "session_id": "query_session_id";
5029
+ };
5030
+ }>>) => Promise<Types.AgentManaged256>;
5031
+ events: {
5032
+ list: (options: import("./core/transport.js").CallOptions<RenameParameters<Types.SessionsThreadsEventsListData, {
5033
+ query: {
5034
+ "session_id": "query_session_id";
5035
+ };
5036
+ }>>) => Promise<{
5037
+ data: Array<{
5038
+ id: string;
5039
+ content: Array<Types.AgentManaged60 | Types.AgentManaged61 | Types.AgentManaged65 | Types.AgentManaged70>;
5040
+ type: "user.message";
5041
+ processed_at?: null | string;
5042
+ praxis_context?: {
5043
+ items: Array<{
5044
+ name: string;
5045
+ value: string;
5046
+ }>;
5047
+ };
5048
+ message_id?: string;
5049
+ } | Types.AgentManaged186 | Types.AgentManaged187 | Types.AgentManaged188 | Types.AgentManaged192 | {
5050
+ id: string;
5051
+ content: Array<{
5052
+ text: string;
5053
+ type: "text";
5054
+ citations?: Array<{
5055
+ type: "search_result_location";
5056
+ source: string;
5057
+ title: string;
5058
+ cited_text: string;
5059
+ search_result_index: number;
5060
+ start_block_index: number;
5061
+ end_block_index: number;
5062
+ }>;
5063
+ } | Types.AgentManaged70>;
5064
+ processed_at: string;
5065
+ type: "agent.message";
5066
+ run_id: string | null;
5067
+ message_id?: string;
5068
+ } | {
5069
+ id: string;
5070
+ processed_at: string;
5071
+ type: "agent.thinking";
5072
+ run_id: string | null;
5073
+ message_id?: string;
5074
+ } | {
5075
+ id: string;
5076
+ input: Types.AgentManaged197;
5077
+ mcp_server_name: string;
5078
+ name: string;
5079
+ processed_at: string;
5080
+ type: "agent.mcp_tool_use";
5081
+ evaluated_permission?: "allow" | "deny" | "ask";
5082
+ evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
5083
+ session_thread_id?: null | string;
5084
+ permission_suggestions?: Array<{
5085
+ type: "add_rules";
5086
+ behavior: "allow";
5087
+ destination: "agent" | "session";
5088
+ rules: Array<{
5089
+ tool_name: string;
5090
+ rule_content: string;
5091
+ }>;
5092
+ }>;
5093
+ full_access_available?: boolean;
5094
+ user_once?: true;
5095
+ guarded_rule?: string;
4526
5096
  run_id: string | null;
4527
5097
  parent_tool_use_id?: string;
4528
5098
  _meta?: {
@@ -5519,6 +6089,7 @@ export declare function createDevops(transport: Transport): {
5519
6089
  };
5520
6090
  };
5521
6091
  pullRequests: {
6092
+ close: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsCloseData>) => Promise<Types.DevopsPullRequest>;
5522
6093
  merge: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsMergeData>) => Promise<Types.DevopsPullRequest>;
5523
6094
  recordVerdict: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRecordVerdictData>) => Promise<Types.DevopsPullRequest>;
5524
6095
  rerunGate: (options: import("./core/transport.js").CallOptions<Types.DevopsPullRequestsRerunGateData>) => Promise<Types.DevopsPullRequest>;
@@ -5738,6 +6309,12 @@ export declare function createMedia(transport: Transport): {
5738
6309
  retrieveFailureSummary: (options: import("./core/transport.js").CallOptions<Types.MediaUnderstandingFailureSummaryData>) => Promise<Types.MediaFailureSummary>;
5739
6310
  };
5740
6311
  update: (options: import("./core/transport.js").CallOptions<Types.MediaUpdateLibraryData>) => Promise<Types.MediaLibrary>;
6312
+ voices: {
6313
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateVoiceData>) => Promise<Types.MediaJob>;
6314
+ designs: {
6315
+ create: (options: import("./core/transport.js").CallOptions<Types.MediaDesignVoiceData>) => Promise<Types.MediaJob>;
6316
+ };
6317
+ };
5741
6318
  };
5742
6319
  speech: {
5743
6320
  create: (options: import("./core/transport.js").CallOptions<Types.MediaCreateSpeechData>) => Promise<Types.MediaJob>;
@@ -6261,6 +6838,7 @@ export declare function createModel(transport: Transport): {
6261
6838
  unsigned_urls: Array<string>;
6262
6839
  usage?: {
6263
6840
  cost: number;
6841
+ billed_seconds?: number;
6264
6842
  };
6265
6843
  }>;
6266
6844
  delete: (options: import("./core/transport.js").CallOptions<Types.DeleteVideoData>) => Promise<{
@@ -6291,6 +6869,7 @@ export declare function createModel(transport: Transport): {
6291
6869
  unsigned_urls: Array<string>;
6292
6870
  usage?: {
6293
6871
  cost: number;
6872
+ billed_seconds?: number;
6294
6873
  };
6295
6874
  }>;
6296
6875
  has_more: boolean;
@@ -6319,6 +6898,7 @@ export declare function createModel(transport: Transport): {
6319
6898
  unsigned_urls: Array<string>;
6320
6899
  usage?: {
6321
6900
  cost: number;
6901
+ billed_seconds?: number;
6322
6902
  };
6323
6903
  }>;
6324
6904
  retrieveContent: (options: import("./core/transport.js").CallOptions<Types.DownloadVideoContentData>) => Promise<Blob | File>;
@@ -6735,6 +7315,18 @@ export declare function createRegistry(transport: Transport): {
6735
7315
  update: (options: import("./core/transport.js").CallOptions<Types.RegistryInstallationsUpdateData>) => Promise<Types.RegistryInstallation>;
6736
7316
  };
6737
7317
  packages: {
7318
+ git: {
7319
+ commits: {
7320
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitCommitsRetrieveData>) => Promise<Types.RegistryGitCommit>;
7321
+ };
7322
+ files: {
7323
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitFilesRetrieveData>) => Promise<Blob | File>;
7324
+ };
7325
+ retrieveLog: (options: import("./core/transport.js").CallOptions<Types.RegistryGitLogData>) => Promise<Types.RegistryGitLog>;
7326
+ trees: {
7327
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.RegistryGitTreesRetrieveData>) => Promise<Types.RegistryGitTree>;
7328
+ };
7329
+ };
6738
7330
  installations: {
6739
7331
  create: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsCreateData>) => Promise<Types.RegistryInstallResult>;
6740
7332
  list: (options: import("./core/transport.js").CallOptions<Types.RegistryPackagesInstallationsListData>) => Promise<Types.RegistryInstallationList>;