@deepraxis/sdk 0.1.1-dev.9beb33a → 0.1.1-dev.a2a19cd

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.
@@ -10,7 +10,7 @@ export declare function createAgent(transport: Transport): {
10
10
  description: null | string;
11
11
  mcp_servers: Array<Types.AgentManaged36>;
12
12
  metadata: Types.AgentManaged37;
13
- model: {
13
+ model?: {
14
14
  id: string;
15
15
  effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
16
16
  inference_geo?: string;
@@ -19,7 +19,7 @@ export declare function createAgent(transport: Transport): {
19
19
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
20
20
  };
21
21
  };
22
- multiagent: null | Types.AgentManaged39;
22
+ multiagent?: null | Types.AgentManaged39;
23
23
  name: string;
24
24
  skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
25
25
  system: null | string;
@@ -49,7 +49,7 @@ export declare function createAgent(transport: Transport): {
49
49
  readonly verified?: boolean;
50
50
  enabled?: boolean;
51
51
  }>;
52
- kind: "personal" | "service";
52
+ kind: "general" | "personal" | "service" | "assume";
53
53
  computer_id?: string;
54
54
  subagent_model?: string | null;
55
55
  image_model?: string | null;
@@ -151,6 +151,7 @@ export declare function createAgent(transport: Transport): {
151
151
  mcpServers?: Array<string>;
152
152
  hooks?: Array<string>;
153
153
  };
154
+ idleCompaction?: boolean;
154
155
  } | null;
155
156
  models?: {
156
157
  allowed: Array<string>;
@@ -169,7 +170,7 @@ export declare function createAgent(transport: Transport): {
169
170
  description: null | string;
170
171
  mcp_servers: Array<Types.AgentManaged36>;
171
172
  metadata: Types.AgentManaged37;
172
- model: {
173
+ model?: {
173
174
  id: string;
174
175
  effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
175
176
  inference_geo?: string;
@@ -178,7 +179,7 @@ export declare function createAgent(transport: Transport): {
178
179
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
179
180
  };
180
181
  };
181
- multiagent: null | Types.AgentManaged39;
182
+ multiagent?: null | Types.AgentManaged39;
182
183
  name: string;
183
184
  skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
184
185
  system: null | string;
@@ -208,7 +209,7 @@ export declare function createAgent(transport: Transport): {
208
209
  readonly verified?: boolean;
209
210
  enabled?: boolean;
210
211
  }>;
211
- kind: "personal" | "service";
212
+ kind: "general" | "personal" | "service" | "assume";
212
213
  computer_id?: string;
213
214
  subagent_model?: string | null;
214
215
  image_model?: string | null;
@@ -310,6 +311,7 @@ export declare function createAgent(transport: Transport): {
310
311
  mcpServers?: Array<string>;
311
312
  hooks?: Array<string>;
312
313
  };
314
+ idleCompaction?: boolean;
313
315
  } | null;
314
316
  models?: {
315
317
  allowed: Array<string>;
@@ -449,90 +451,6 @@ export declare function createAgent(transport: Transport): {
449
451
  }>;
450
452
  };
451
453
  };
452
- endUsers: {
453
- block: {
454
- create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
455
- external_user_id: string;
456
- first_seen_at: string | null;
457
- last_active_at: string | null;
458
- session_count: number;
459
- cost: {
460
- amount: string;
461
- currency: "USD";
462
- };
463
- blocked: boolean;
464
- }>;
465
- };
466
- delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
467
- id: string;
468
- status: "pending";
469
- }>;
470
- list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
471
- data: Array<{
472
- external_user_id: string;
473
- first_seen_at: string | null;
474
- last_active_at: string | null;
475
- session_count: number;
476
- cost: {
477
- amount: string;
478
- currency: "USD";
479
- };
480
- blocked: boolean;
481
- }>;
482
- next_page: string | null;
483
- }>;
484
- retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
485
- external_user_id: string;
486
- first_seen_at: string | null;
487
- last_active_at: string | null;
488
- session_count: number;
489
- cost: {
490
- amount: string;
491
- currency: "USD";
492
- };
493
- blocked: boolean;
494
- recent_sessions: Array<{
495
- id: string;
496
- title: string | null;
497
- source: string | null;
498
- created_at: string;
499
- updated_at: string;
500
- }>;
501
- }>;
502
- retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
503
- id: string;
504
- status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
505
- counts: {
506
- sessions?: number;
507
- events?: number;
508
- messages?: number;
509
- d1_rows?: number;
510
- attachments?: number;
511
- };
512
- snapshot_key?: string;
513
- error?: string;
514
- created_at: string;
515
- updated_at: string;
516
- }>;
517
- revokeTokens: {
518
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
519
- revoked: number;
520
- }>;
521
- };
522
- unblock: {
523
- create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
524
- external_user_id: string;
525
- first_seen_at: string | null;
526
- last_active_at: string | null;
527
- session_count: number;
528
- cost: {
529
- amount: string;
530
- currency: "USD";
531
- };
532
- blocked: boolean;
533
- }>;
534
- };
535
- };
536
454
  list: (options?: import("./core/transport.js").CallOptions<Types.AgentsListData> | undefined) => Promise<{
537
455
  data: Array<{
538
456
  id: string;
@@ -541,7 +459,7 @@ export declare function createAgent(transport: Transport): {
541
459
  description: null | string;
542
460
  mcp_servers: Array<Types.AgentManaged36>;
543
461
  metadata: Types.AgentManaged37;
544
- model: {
462
+ model?: {
545
463
  id: string;
546
464
  effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
547
465
  inference_geo?: string;
@@ -550,7 +468,7 @@ export declare function createAgent(transport: Transport): {
550
468
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
551
469
  };
552
470
  };
553
- multiagent: null | Types.AgentManaged39;
471
+ multiagent?: null | Types.AgentManaged39;
554
472
  name: string;
555
473
  skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
556
474
  system: null | string;
@@ -580,7 +498,7 @@ export declare function createAgent(transport: Transport): {
580
498
  readonly verified?: boolean;
581
499
  enabled?: boolean;
582
500
  }>;
583
- kind: "personal" | "service";
501
+ kind: "general" | "personal" | "service" | "assume";
584
502
  computer_id?: string;
585
503
  subagent_model?: string | null;
586
504
  image_model?: string | null;
@@ -682,6 +600,7 @@ export declare function createAgent(transport: Transport): {
682
600
  mcpServers?: Array<string>;
683
601
  hooks?: Array<string>;
684
602
  };
603
+ idleCompaction?: boolean;
685
604
  } | null;
686
605
  models?: {
687
606
  allowed: Array<string>;
@@ -702,7 +621,7 @@ export declare function createAgent(transport: Transport): {
702
621
  description: null | string;
703
622
  mcp_servers: Array<Types.AgentManaged36>;
704
623
  metadata: Types.AgentManaged37;
705
- model: {
624
+ model?: {
706
625
  id: string;
707
626
  effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
708
627
  inference_geo?: string;
@@ -711,7 +630,7 @@ export declare function createAgent(transport: Transport): {
711
630
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
712
631
  };
713
632
  };
714
- multiagent: null | Types.AgentManaged39;
633
+ multiagent?: null | Types.AgentManaged39;
715
634
  name: string;
716
635
  skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
717
636
  system: null | string;
@@ -719,6 +638,7 @@ export declare function createAgent(transport: Transport): {
719
638
  type: "agent";
720
639
  updated_at: string;
721
640
  version: number;
641
+ latest_version?: number;
722
642
  active_version: number;
723
643
  created_by: {
724
644
  type: "user";
@@ -741,7 +661,7 @@ export declare function createAgent(transport: Transport): {
741
661
  readonly verified?: boolean;
742
662
  enabled?: boolean;
743
663
  }>;
744
- kind: "personal" | "service";
664
+ kind: "general" | "personal" | "service" | "assume";
745
665
  computer_id?: string;
746
666
  subagent_model?: string | null;
747
667
  image_model?: string | null;
@@ -843,6 +763,7 @@ export declare function createAgent(transport: Transport): {
843
763
  mcpServers?: Array<string>;
844
764
  hooks?: Array<string>;
845
765
  };
766
+ idleCompaction?: boolean;
846
767
  } | null;
847
768
  models?: {
848
769
  allowed: Array<string>;
@@ -947,7 +868,7 @@ export declare function createAgent(transport: Transport): {
947
868
  metadata: {
948
869
  [key: string]: string;
949
870
  };
950
- model: {
871
+ model?: {
951
872
  id: string;
952
873
  effort?: {
953
874
  type: "low";
@@ -966,7 +887,7 @@ export declare function createAgent(transport: Transport): {
966
887
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
967
888
  };
968
889
  };
969
- multiagent: null | {
890
+ multiagent?: null | {
970
891
  agents: Array<{
971
892
  id: string;
972
893
  type: "agent";
@@ -1139,6 +1060,7 @@ export declare function createAgent(transport: Transport): {
1139
1060
  type: "agent";
1140
1061
  updated_at: string;
1141
1062
  version: number;
1063
+ latest_version?: number;
1142
1064
  active_version: number;
1143
1065
  created_by: {
1144
1066
  type: "user";
@@ -1161,7 +1083,7 @@ export declare function createAgent(transport: Transport): {
1161
1083
  readonly verified?: boolean;
1162
1084
  enabled?: boolean;
1163
1085
  }>;
1164
- kind: "personal" | "service";
1086
+ kind: "general" | "personal" | "service" | "assume";
1165
1087
  computer_id?: string;
1166
1088
  subagent_model?: string | null;
1167
1089
  image_model?: string | null;
@@ -1263,6 +1185,7 @@ export declare function createAgent(transport: Transport): {
1263
1185
  mcpServers?: Array<string>;
1264
1186
  hooks?: Array<string>;
1265
1187
  };
1188
+ idleCompaction?: boolean;
1266
1189
  } | null;
1267
1190
  models?: {
1268
1191
  allowed: Array<string>;
@@ -1282,7 +1205,7 @@ export declare function createAgent(transport: Transport): {
1282
1205
  description: null | string;
1283
1206
  mcp_servers: Array<Types.AgentManaged36>;
1284
1207
  metadata: Types.AgentManaged37;
1285
- model: {
1208
+ model?: {
1286
1209
  id: string;
1287
1210
  effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1288
1211
  inference_geo?: string;
@@ -1291,7 +1214,7 @@ export declare function createAgent(transport: Transport): {
1291
1214
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1292
1215
  };
1293
1216
  };
1294
- multiagent: null | Types.AgentManaged39;
1217
+ multiagent?: null | Types.AgentManaged39;
1295
1218
  name: string;
1296
1219
  skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1297
1220
  system: null | string;
@@ -1299,6 +1222,7 @@ export declare function createAgent(transport: Transport): {
1299
1222
  type: "agent";
1300
1223
  updated_at: string;
1301
1224
  version: number;
1225
+ latest_version?: number;
1302
1226
  active_version: number;
1303
1227
  created_by: {
1304
1228
  type: "user";
@@ -1321,7 +1245,7 @@ export declare function createAgent(transport: Transport): {
1321
1245
  readonly verified?: boolean;
1322
1246
  enabled?: boolean;
1323
1247
  }>;
1324
- kind: "personal" | "service";
1248
+ kind: "general" | "personal" | "service" | "assume";
1325
1249
  computer_id?: string;
1326
1250
  subagent_model?: string | null;
1327
1251
  image_model?: string | null;
@@ -1423,6 +1347,7 @@ export declare function createAgent(transport: Transport): {
1423
1347
  mcpServers?: Array<string>;
1424
1348
  hooks?: Array<string>;
1425
1349
  };
1350
+ idleCompaction?: boolean;
1426
1351
  } | null;
1427
1352
  models?: {
1428
1353
  allowed: Array<string>;
@@ -1440,227 +1365,26 @@ export declare function createAgent(transport: Transport): {
1440
1365
  archived_at: null | string;
1441
1366
  created_at: string;
1442
1367
  description: null | string;
1443
- mcp_servers: Array<{
1444
- type: "url";
1445
- name: string;
1446
- url: string;
1447
- headers?: {
1448
- [key: string]: string;
1449
- };
1450
- timeout_ms?: number;
1451
- } | {
1452
- type: "sse";
1453
- name: string;
1454
- url: string;
1455
- headers?: {
1456
- [key: string]: string;
1457
- };
1458
- timeout_ms?: number;
1459
- } | {
1460
- type: "stdio";
1461
- name: string;
1462
- command: string;
1463
- args?: Array<string>;
1464
- env?: {
1465
- [key: string]: string;
1466
- };
1467
- timeout_ms?: number;
1468
- }>;
1469
- metadata: {
1470
- [key: string]: string;
1471
- };
1472
- model: {
1368
+ mcp_servers: Array<Types.AgentManaged36>;
1369
+ metadata: Types.AgentManaged37;
1370
+ model?: {
1473
1371
  id: string;
1474
- effort?: {
1475
- type: "low";
1476
- } | {
1477
- type: "medium";
1478
- } | {
1479
- type: "high";
1480
- } | {
1481
- type: "xhigh";
1482
- } | {
1483
- type: "max";
1484
- };
1372
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1485
1373
  inference_geo?: string;
1486
1374
  speed?: "standard" | "fast";
1487
1375
  settings?: {
1488
1376
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1489
1377
  };
1490
1378
  };
1491
- multiagent: null | {
1492
- agents: Array<{
1493
- id: string;
1494
- type: "agent";
1495
- version: number;
1496
- } | {
1497
- model: string;
1498
- type: "advisor";
1499
- }>;
1500
- type: "coordinator";
1501
- };
1379
+ multiagent?: null | Types.AgentManaged39;
1502
1380
  name: string;
1503
- skills: Array<{
1504
- skill_id: string;
1505
- type: "anthropic";
1506
- version: string;
1507
- } | {
1508
- skill_id: string;
1509
- type: "custom";
1510
- version: string;
1511
- }>;
1381
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1512
1382
  system: null | string;
1513
- tools: Array<{
1514
- configs: Array<{
1515
- enabled: boolean;
1516
- name: "bash";
1517
- permission_policy: {
1518
- type: "always_allow";
1519
- } | {
1520
- type: "always_ask";
1521
- } | {
1522
- type: "auto";
1523
- };
1524
- type: "bash";
1525
- } | {
1526
- enabled: boolean;
1527
- name: "edit";
1528
- permission_policy: {
1529
- type: "always_allow";
1530
- } | {
1531
- type: "always_ask";
1532
- } | {
1533
- type: "auto";
1534
- };
1535
- type: "edit";
1536
- } | {
1537
- enabled: boolean;
1538
- name: "read";
1539
- permission_policy: {
1540
- type: "always_allow";
1541
- } | {
1542
- type: "always_ask";
1543
- } | {
1544
- type: "auto";
1545
- };
1546
- type: "read";
1547
- } | {
1548
- enabled: boolean;
1549
- name: "write";
1550
- permission_policy: {
1551
- type: "always_allow";
1552
- } | {
1553
- type: "always_ask";
1554
- } | {
1555
- type: "auto";
1556
- };
1557
- type: "write";
1558
- } | {
1559
- enabled: boolean;
1560
- name: "glob";
1561
- permission_policy: {
1562
- type: "always_allow";
1563
- } | {
1564
- type: "always_ask";
1565
- } | {
1566
- type: "auto";
1567
- };
1568
- type: "glob";
1569
- } | {
1570
- enabled: boolean;
1571
- name: "grep";
1572
- permission_policy: {
1573
- type: "always_allow";
1574
- } | {
1575
- type: "always_ask";
1576
- } | {
1577
- type: "auto";
1578
- };
1579
- type: "grep";
1580
- } | {
1581
- enabled: boolean;
1582
- name: "web_fetch";
1583
- permission_policy: {
1584
- type: "always_allow";
1585
- } | {
1586
- type: "always_ask";
1587
- } | {
1588
- type: "auto";
1589
- };
1590
- type: "web_fetch";
1591
- allowed_domains?: Array<string>;
1592
- blocked_domains?: Array<string>;
1593
- max_content_tokens?: null | number;
1594
- } | {
1595
- enabled: boolean;
1596
- name: "web_search";
1597
- permission_policy: {
1598
- type: "always_allow";
1599
- } | {
1600
- type: "always_ask";
1601
- } | {
1602
- type: "auto";
1603
- };
1604
- type: "web_search";
1605
- allowed_domains?: Array<string>;
1606
- blocked_domains?: Array<string>;
1607
- user_location?: null | {
1608
- type: "approximate";
1609
- city?: null | string;
1610
- country?: null | string;
1611
- region?: null | string;
1612
- timezone?: null | string;
1613
- };
1614
- } | {
1615
- name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
1616
- enabled: boolean;
1617
- permission_policy: {
1618
- type: "always_allow" | "always_ask";
1619
- };
1620
- }>;
1621
- default_config: {
1622
- enabled: boolean;
1623
- permission_policy: {
1624
- type: "always_allow";
1625
- } | {
1626
- type: "always_ask";
1627
- } | {
1628
- type: "auto";
1629
- };
1630
- };
1631
- type: "agent_toolset_20260401";
1632
- } | {
1633
- type: "mcp_toolset";
1634
- mcp_server_name: string;
1635
- default_config?: {
1636
- enabled?: boolean | null;
1637
- permission_policy?: null | {
1638
- type: "always_allow" | "always_ask";
1639
- };
1640
- } | null;
1641
- configs?: Array<{
1642
- name: string;
1643
- enabled?: boolean | null;
1644
- permission_policy?: null | {
1645
- type: "always_allow" | "always_ask";
1646
- };
1647
- }> | null;
1648
- } | {
1649
- description: string;
1650
- input_schema: {
1651
- type: "object";
1652
- properties?: null | {
1653
- [key: string]: unknown;
1654
- };
1655
- required?: null | Array<string>;
1656
- [key: string]: unknown;
1657
- };
1658
- name: string;
1659
- type: "custom";
1660
- }>;
1383
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
1661
1384
  type: "agent";
1662
1385
  updated_at: string;
1663
1386
  version: number;
1387
+ latest_version?: number;
1664
1388
  active_version: number;
1665
1389
  created_by: {
1666
1390
  type: "user";
@@ -1683,7 +1407,7 @@ export declare function createAgent(transport: Transport): {
1683
1407
  readonly verified?: boolean;
1684
1408
  enabled?: boolean;
1685
1409
  }>;
1686
- kind: "personal" | "service";
1410
+ kind: "general" | "personal" | "service" | "assume";
1687
1411
  computer_id?: string;
1688
1412
  subagent_model?: string | null;
1689
1413
  image_model?: string | null;
@@ -1785,6 +1509,7 @@ export declare function createAgent(transport: Transport): {
1785
1509
  mcpServers?: Array<string>;
1786
1510
  hooks?: Array<string>;
1787
1511
  };
1512
+ idleCompaction?: boolean;
1788
1513
  } | null;
1789
1514
  models?: {
1790
1515
  allowed: Array<string>;
@@ -1804,7 +1529,7 @@ export declare function createAgent(transport: Transport): {
1804
1529
  description: null | string;
1805
1530
  mcp_servers: Array<Types.AgentManaged36>;
1806
1531
  metadata: Types.AgentManaged37;
1807
- model: {
1532
+ model?: {
1808
1533
  id: string;
1809
1534
  effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1810
1535
  inference_geo?: string;
@@ -1813,7 +1538,7 @@ export declare function createAgent(transport: Transport): {
1813
1538
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1814
1539
  };
1815
1540
  };
1816
- multiagent: null | Types.AgentManaged39;
1541
+ multiagent?: null | Types.AgentManaged39;
1817
1542
  name: string;
1818
1543
  skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1819
1544
  system: null | string;
@@ -1844,7 +1569,7 @@ export declare function createAgent(transport: Transport): {
1844
1569
  readonly verified?: boolean;
1845
1570
  enabled?: boolean;
1846
1571
  }>;
1847
- kind: "personal" | "service";
1572
+ kind: "general" | "personal" | "service" | "assume";
1848
1573
  computer_id?: string;
1849
1574
  subagent_model?: string | null;
1850
1575
  image_model?: string | null;
@@ -1946,6 +1671,7 @@ export declare function createAgent(transport: Transport): {
1946
1671
  mcpServers?: Array<string>;
1947
1672
  hooks?: Array<string>;
1948
1673
  };
1674
+ idleCompaction?: boolean;
1949
1675
  } | null;
1950
1676
  models?: {
1951
1677
  allowed: Array<string>;
@@ -2101,7 +1827,7 @@ export declare function createAgent(transport: Transport): {
2101
1827
  } | {
2102
1828
  id: string;
2103
1829
  type: "agent_with_overrides";
2104
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1830
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2105
1831
  cwd?: string;
2106
1832
  model?: string | {
2107
1833
  id: string;
@@ -2138,7 +1864,7 @@ export declare function createAgent(transport: Transport): {
2138
1864
  } | {
2139
1865
  id: string;
2140
1866
  type: "agent_with_overrides";
2141
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1867
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2142
1868
  cwd?: string;
2143
1869
  model?: string | {
2144
1870
  id: string;
@@ -2176,7 +1902,7 @@ export declare function createAgent(transport: Transport): {
2176
1902
  } | {
2177
1903
  id: string;
2178
1904
  type: "agent_with_overrides";
2179
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1905
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2180
1906
  cwd?: string;
2181
1907
  model?: string | {
2182
1908
  id: string;
@@ -2215,7 +1941,7 @@ export declare function createAgent(transport: Transport): {
2215
1941
  } | {
2216
1942
  id: string;
2217
1943
  type: "agent_with_overrides";
2218
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1944
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2219
1945
  cwd?: string;
2220
1946
  model?: string | {
2221
1947
  id: string;
@@ -2252,7 +1978,7 @@ export declare function createAgent(transport: Transport): {
2252
1978
  } | {
2253
1979
  id: string;
2254
1980
  type: "agent_with_overrides";
2255
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1981
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2256
1982
  cwd?: string;
2257
1983
  model?: string | {
2258
1984
  id: string;
@@ -2293,7 +2019,7 @@ export declare function createAgent(transport: Transport): {
2293
2019
  } | {
2294
2020
  id: string;
2295
2021
  type: "agent_with_overrides";
2296
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2022
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2297
2023
  cwd?: string;
2298
2024
  model?: string | {
2299
2025
  id: string;
@@ -2331,7 +2057,7 @@ export declare function createAgent(transport: Transport): {
2331
2057
  } | {
2332
2058
  id: string;
2333
2059
  type: "agent_with_overrides";
2334
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2060
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2335
2061
  cwd?: string;
2336
2062
  model?: string | {
2337
2063
  id: string;
@@ -2360,122 +2086,6 @@ export declare function createAgent(transport: Transport): {
2360
2086
  };
2361
2087
  }>;
2362
2088
  };
2363
- embed: {
2364
- exchange: {
2365
- create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
2366
- token: string;
2367
- expires_at: string;
2368
- }>;
2369
- };
2370
- retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
2371
- agent?: {
2372
- name?: string;
2373
- avatar?: string;
2374
- };
2375
- layout?: "inline" | "sidebar" | "popup" | "modal";
2376
- launcher?: {
2377
- type: "none" | "bubble" | "mascot";
2378
- pack?: {
2379
- preset?: "mint" | "cat" | "bot";
2380
- images?: {
2381
- idle: string;
2382
- greet?: string;
2383
- listening?: string;
2384
- thinking?: string;
2385
- talking?: string;
2386
- "talking-2"?: string;
2387
- sorry?: string;
2388
- sleep?: string;
2389
- };
2390
- };
2391
- image?: string;
2392
- motion?: "float" | "none";
2393
- position?: "bottom-right" | "bottom-left";
2394
- label?: string;
2395
- };
2396
- header?: {
2397
- title?: string;
2398
- subtitle?: string;
2399
- icon?: string;
2400
- };
2401
- theme?: {
2402
- colorScheme?: "light" | "dark" | "system";
2403
- accent?: string;
2404
- surface?: string;
2405
- grayscale?: "neutral" | "warm" | "cool";
2406
- radius?: "none" | "sm" | "md" | "lg" | "full";
2407
- density?: "compact" | "normal" | "spacious";
2408
- fontFamily?: string;
2409
- fontSize?: number;
2410
- };
2411
- locale?: "zh" | "en";
2412
- startScreen?: {
2413
- greeting?: string;
2414
- prompts?: Array<{
2415
- label: string;
2416
- prompt: string;
2417
- }>;
2418
- };
2419
- composer?: {
2420
- placeholder?: string;
2421
- };
2422
- disclaimer?: string;
2423
- footer?: string;
2424
- history?: {
2425
- enabled?: boolean;
2426
- };
2427
- }>;
2428
- };
2429
- embedTokens: {
2430
- anonymous: {
2431
- create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
2432
- token: string;
2433
- expires_at: string;
2434
- visitor_secret?: string;
2435
- }>;
2436
- };
2437
- create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
2438
- hosted_url?: string;
2439
- id: string;
2440
- token: string;
2441
- expires_at: string;
2442
- }>;
2443
- list: (options?: import("./core/transport.js").CallOptions<Types.ListEmbedTokensData> | undefined) => Promise<{
2444
- data: Array<{
2445
- id: string;
2446
- type: "embed_token";
2447
- agent_id: string;
2448
- agent_version: number;
2449
- external_user_id: string;
2450
- created_at: string;
2451
- expires_at: string;
2452
- revoked_at: string | null;
2453
- host_origin: string | null;
2454
- issued_by: {
2455
- type: "user" | "api_key";
2456
- id: string;
2457
- };
2458
- }>;
2459
- next_page: string | null;
2460
- }>;
2461
- revoke: {
2462
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEmbedTokenData>) => Promise<{
2463
- id: string;
2464
- type: "embed_token";
2465
- agent_id: string;
2466
- agent_version: number;
2467
- external_user_id: string;
2468
- created_at: string;
2469
- expires_at: string;
2470
- revoked_at: string | null;
2471
- host_origin: string | null;
2472
- issued_by: {
2473
- type: "user" | "api_key";
2474
- id: string;
2475
- };
2476
- }>;
2477
- };
2478
- };
2479
2089
  environments: {
2480
2090
  archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2481
2091
  create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
@@ -2582,21 +2192,27 @@ export declare function createAgent(transport: Transport): {
2582
2192
  compact: (options: import("./core/transport.js").CallOptions<Types.CompactSessionData>) => Promise<{
2583
2193
  type: "session_compaction";
2584
2194
  id: string;
2585
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
2195
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
2586
2196
  reason?: string;
2587
2197
  } | {
2588
2198
  type: "session_compaction";
2589
2199
  id: string;
2590
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
2200
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
2591
2201
  reason?: string;
2592
2202
  }>;
2593
2203
  compactions: {
2594
2204
  list: (options: import("./core/transport.js").CallOptions<Types.ListSessionCompactionsData>) => Promise<{
2205
+ active: {
2206
+ type: "session_compaction";
2207
+ id: string;
2208
+ status: "queued" | "running";
2209
+ trigger: "manual" | "auto" | "idle";
2210
+ } | null;
2595
2211
  data: Array<{
2596
2212
  type: "context_compaction";
2597
2213
  id: string;
2598
2214
  event_id: string | null;
2599
- trigger: "auto" | "manual" | "model_downshift";
2215
+ trigger: "auto" | "manual" | "model_downshift" | "idle";
2600
2216
  status: "succeeded" | "failed";
2601
2217
  model: string;
2602
2218
  compacted_message_count: number;
@@ -2707,6 +2323,7 @@ export declare function createAgent(transport: Transport): {
2707
2323
  run_id: string | null;
2708
2324
  message_id?: string;
2709
2325
  } | {
2326
+ full_access_available?: boolean;
2710
2327
  id: string;
2711
2328
  input: Types.AgentManaged197;
2712
2329
  mcp_server_name: string;
@@ -2729,6 +2346,17 @@ export declare function createAgent(transport: Transport): {
2729
2346
  };
2730
2347
  source?: "app" | "codemode";
2731
2348
  parent_tool_use_id?: string;
2349
+ user_once?: true;
2350
+ guarded_rule?: string;
2351
+ permission_suggestions?: Array<{
2352
+ type: "add_rules";
2353
+ behavior: "allow";
2354
+ destination: "agent" | "session";
2355
+ rules: Array<{
2356
+ tool_name: string;
2357
+ rule_content: string;
2358
+ }>;
2359
+ }>;
2732
2360
  title?: string;
2733
2361
  input_titles?: {
2734
2362
  [key: string]: string;
@@ -2747,6 +2375,7 @@ export declare function createAgent(transport: Transport): {
2747
2375
  };
2748
2376
  source?: "app" | "codemode";
2749
2377
  } | {
2378
+ full_access_available?: boolean;
2750
2379
  id: string;
2751
2380
  input: Types.AgentManaged206;
2752
2381
  name: string;
@@ -2756,6 +2385,17 @@ export declare function createAgent(transport: Transport): {
2756
2385
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2757
2386
  session_thread_id?: null | string;
2758
2387
  run_id: string | null;
2388
+ user_once?: true;
2389
+ guarded_rule?: string;
2390
+ permission_suggestions?: Array<{
2391
+ type: "add_rules";
2392
+ behavior: "allow";
2393
+ destination: "agent" | "session";
2394
+ rules: Array<{
2395
+ tool_name: string;
2396
+ rule_content: string;
2397
+ }>;
2398
+ }>;
2759
2399
  } | {
2760
2400
  id: string;
2761
2401
  processed_at: string;
@@ -2776,6 +2416,9 @@ export declare function createAgent(transport: Transport): {
2776
2416
  type: "session.status_idle";
2777
2417
  run_id: string | null;
2778
2418
  } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
2419
+ permission_mode_version?: number;
2420
+ previous_permission_mode?: string | null;
2421
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2779
2422
  id: string;
2780
2423
  processed_at: string;
2781
2424
  type: "session.updated";
@@ -3397,10 +3040,10 @@ export declare function createAgent(transport: Transport): {
3397
3040
  web_fetch_requests?: number;
3398
3041
  web_search_requests?: number;
3399
3042
  };
3400
- runtime_cost?: {
3401
- amount: string;
3402
- currency: "USD";
3043
+ cost_by_product?: {
3044
+ [key: string]: string;
3403
3045
  };
3046
+ subagent_cost_micro_usd?: number;
3404
3047
  };
3405
3048
  vault_ids: Array<string>;
3406
3049
  deployment_id?: null | string;
@@ -3563,7 +3206,7 @@ export declare function createAgent(transport: Transport): {
3563
3206
  retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
3564
3207
  type: "session_compaction";
3565
3208
  id: string;
3566
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
3209
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
3567
3210
  reason?: string;
3568
3211
  }>;
3569
3212
  retrieveContext: (options: import("./core/transport.js").CallOptions<Types.GetSessionContextData>) => Promise<{
@@ -3687,6 +3330,7 @@ export declare function createAgent(transport: Transport): {
3687
3330
  run_id: string | null;
3688
3331
  message_id?: string;
3689
3332
  } | {
3333
+ full_access_available?: boolean;
3690
3334
  id: string;
3691
3335
  input: Types.AgentManaged197;
3692
3336
  mcp_server_name: string;
@@ -3709,6 +3353,17 @@ export declare function createAgent(transport: Transport): {
3709
3353
  };
3710
3354
  };
3711
3355
  source?: "app" | "codemode";
3356
+ user_once?: true;
3357
+ guarded_rule?: string;
3358
+ permission_suggestions?: Array<{
3359
+ type: "add_rules";
3360
+ behavior: "allow";
3361
+ destination: "agent" | "session";
3362
+ rules: Array<{
3363
+ tool_name: string;
3364
+ rule_content: string;
3365
+ }>;
3366
+ }>;
3712
3367
  title?: string;
3713
3368
  input_titles?: {
3714
3369
  [key: string]: string;
@@ -3727,6 +3382,7 @@ export declare function createAgent(transport: Transport): {
3727
3382
  };
3728
3383
  source?: "app" | "codemode";
3729
3384
  } | {
3385
+ full_access_available?: boolean;
3730
3386
  id: string;
3731
3387
  input: Types.AgentManaged206;
3732
3388
  name: string;
@@ -3736,6 +3392,17 @@ export declare function createAgent(transport: Transport): {
3736
3392
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
3737
3393
  session_thread_id?: null | string;
3738
3394
  run_id: string | null;
3395
+ user_once?: true;
3396
+ guarded_rule?: string;
3397
+ permission_suggestions?: Array<{
3398
+ type: "add_rules";
3399
+ behavior: "allow";
3400
+ destination: "agent" | "session";
3401
+ rules: Array<{
3402
+ tool_name: string;
3403
+ rule_content: string;
3404
+ }>;
3405
+ }>;
3739
3406
  } | {
3740
3407
  id: string;
3741
3408
  processed_at: string;
@@ -3756,6 +3423,9 @@ export declare function createAgent(transport: Transport): {
3756
3423
  type: "session.status_idle";
3757
3424
  run_id: string | null;
3758
3425
  } | Types.AgentManaged230 | Types.AgentManaged231 | Types.AgentManaged232 | Types.AgentManaged233 | Types.AgentManaged235 | Types.AgentManaged236 | Types.AgentManaged237 | Types.AgentManaged238 | Types.AgentManaged239 | Types.AgentManaged240 | Types.AgentManaged241 | Types.AgentManaged242 | Types.AgentManaged243 | Types.AgentManaged244 | {
3426
+ permission_mode_version?: number;
3427
+ previous_permission_mode?: string | null;
3428
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
3759
3429
  id: string;
3760
3430
  processed_at: string;
3761
3431
  type: "session.updated";
@@ -4024,6 +3694,13 @@ export declare function createAutomation(transport: Transport): {
4024
3694
  hooks: {
4025
3695
  send: (options: import("./core/transport.js").CallOptions<Types.AutomationHooksReceiveData>) => Promise<Types.AutomationFiring>;
4026
3696
  };
3697
+ humanTasks: {
3698
+ cancel: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksCancelData>) => Promise<Types.AutomationHumanTask>;
3699
+ delegate: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksDelegateData>) => Promise<Types.AutomationHumanTask>;
3700
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksListData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationHumanTask>>;
3701
+ respond: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksRespondData>) => Promise<Types.AutomationHumanTask>;
3702
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksGetData>) => Promise<Types.AutomationHumanTask>;
3703
+ };
4027
3704
  resolve: {
4028
3705
  retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationResolveResolveData>) => Promise<Types.AutomationResolveResult>;
4029
3706
  };
@@ -4195,6 +3872,21 @@ export declare function createBrowser(transport: Transport): {
4195
3872
  };
4196
3873
  };
4197
3874
  };
3875
+ export declare function createCanvas(transport: Transport): {
3876
+ canvases: {
3877
+ create: (options?: import("./core/transport.js").CallOptions<Types.CanvasCreateCanvasData> | undefined) => Promise<Types.CanvasCanvas>;
3878
+ delete: (options: import("./core/transport.js").CallOptions<Types.CanvasDeleteCanvasData>) => Promise<Types.CanvasDeletedCanvas>;
3879
+ execute: (options: import("./core/transport.js").CallOptions<Types.CanvasExecuteData>) => Promise<Types.CanvasExecuteResult>;
3880
+ images: {
3881
+ list: (options: import("./core/transport.js").CallOptions<Types.CanvasListImagesData>) => Promise<Types.CanvasImagesResult>;
3882
+ };
3883
+ list: (options?: import("./core/transport.js").CallOptions<Types.CanvasListCanvasesData> | undefined) => Promise<import("./automation.js").Page<Types.CanvasCanvas>>;
3884
+ nodes: {
3885
+ list: (options: import("./core/transport.js").CallOptions<Types.CanvasListNodesData>) => Promise<Types.CanvasNodesResult>;
3886
+ };
3887
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.CanvasRetrieveCanvasData>) => Promise<Types.CanvasCanvasDetail>;
3888
+ };
3889
+ };
4198
3890
  export declare function createDatabase(transport: Transport): {
4199
3891
  databases: {
4200
3892
  create: (options: import("./core/transport.js").CallOptions<Types.DatabaseCreateDatabaseData>) => Promise<Types.DatabaseDatabase>;
@@ -4357,6 +4049,20 @@ export declare function createMedia(transport: Transport): {
4357
4049
  };
4358
4050
  };
4359
4051
  export declare function createMeta(transport: Transport): {
4052
+ docs: {
4053
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.MetaDocsRetrieveData>) => Promise<{
4054
+ path: string;
4055
+ title: string;
4056
+ url: string;
4057
+ markdown: string;
4058
+ }>;
4059
+ search: (options: import("./core/transport.js").CallOptions<Types.MetaDocsSearchData>) => Promise<{
4060
+ path: string;
4061
+ title: string;
4062
+ url: string;
4063
+ snippet: string;
4064
+ }[]>;
4065
+ };
4360
4066
  health: {
4361
4067
  retrieve: (options?: import("./core/transport.js").CallOptions<Types.HealthCheckData> | undefined) => Promise<string>;
4362
4068
  };
@@ -4766,6 +4472,39 @@ export declare function createModel(transport: Transport): {
4766
4472
  [key: string]: unknown;
4767
4473
  }>;
4768
4474
  };
4475
+ systemone: {
4476
+ create: (options: import("./core/transport.js").CallOptions<Types.CreateSystemoneData>) => Promise<{
4477
+ model: string;
4478
+ answers: {
4479
+ [key: string]: {
4480
+ type: "noul";
4481
+ noul: number;
4482
+ } | {
4483
+ type: "choice";
4484
+ choice: string;
4485
+ confidence: number;
4486
+ probabilities: {
4487
+ [key: string]: number;
4488
+ };
4489
+ } | {
4490
+ type: "score";
4491
+ score: number;
4492
+ confidence: number;
4493
+ legend: {
4494
+ [key: string]: unknown;
4495
+ };
4496
+ probabilities: {
4497
+ [key: string]: number;
4498
+ };
4499
+ };
4500
+ };
4501
+ usage: {
4502
+ input_tokens: number;
4503
+ output_tokens: number;
4504
+ cost: number;
4505
+ };
4506
+ }>;
4507
+ };
4769
4508
  videos: {
4770
4509
  create: (options: import("./core/transport.js").CallOptions<Types.CreateVideoData>) => Promise<{
4771
4510
  id: string;
@@ -5473,6 +5212,7 @@ export declare const resourceFactories: {
5473
5212
  application: typeof createApplication;
5474
5213
  automation: typeof createAutomation;
5475
5214
  browser: typeof createBrowser;
5215
+ canvas: typeof createCanvas;
5476
5216
  database: typeof createDatabase;
5477
5217
  file: typeof createFile;
5478
5218
  knowledge: typeof createKnowledge;