@deepraxis/sdk 0.1.1-dev.d25d171 → 0.1.1-dev.ea219e1

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,14 +42,17 @@ export declare function createAgent(transport: Transport): {
42
42
  id: string;
43
43
  access: "read_only" | "read_write" | "invoke";
44
44
  instructions?: string;
45
+ readonly verified?: boolean;
45
46
  enabled?: boolean;
46
47
  } | {
47
48
  type: "search" | "browser";
49
+ readonly verified?: boolean;
48
50
  enabled?: boolean;
49
51
  }>;
50
- kind: "personal" | "service";
52
+ kind: "general" | "personal" | "service";
51
53
  computer_id?: string;
52
54
  subagent_model?: string | null;
55
+ image_model?: string | null;
53
56
  subagents?: Array<{
54
57
  name: string;
55
58
  description: string;
@@ -148,6 +151,7 @@ export declare function createAgent(transport: Transport): {
148
151
  mcpServers?: Array<string>;
149
152
  hooks?: Array<string>;
150
153
  };
154
+ idleCompaction?: boolean;
151
155
  } | null;
152
156
  models?: {
153
157
  allowed: Array<string>;
@@ -198,14 +202,17 @@ export declare function createAgent(transport: Transport): {
198
202
  id: string;
199
203
  access: "read_only" | "read_write" | "invoke";
200
204
  instructions?: string;
205
+ readonly verified?: boolean;
201
206
  enabled?: boolean;
202
207
  } | {
203
208
  type: "search" | "browser";
209
+ readonly verified?: boolean;
204
210
  enabled?: boolean;
205
211
  }>;
206
- kind: "personal" | "service";
212
+ kind: "general" | "personal" | "service";
207
213
  computer_id?: string;
208
214
  subagent_model?: string | null;
215
+ image_model?: string | null;
209
216
  subagents?: Array<{
210
217
  name: string;
211
218
  description: string;
@@ -304,6 +311,7 @@ export declare function createAgent(transport: Transport): {
304
311
  mcpServers?: Array<string>;
305
312
  hooks?: Array<string>;
306
313
  };
314
+ idleCompaction?: boolean;
307
315
  } | null;
308
316
  models?: {
309
317
  allowed: Array<string>;
@@ -352,49 +360,53 @@ export declare function createAgent(transport: Transport): {
352
360
  }>;
353
361
  };
354
362
  };
355
- };
356
- endUsers: {
357
363
  block: {
358
- create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
359
- external_user_id: string;
364
+ create: (options: import("./core/transport.js").CallOptions<Types.BlockCustomerData>) => Promise<{
365
+ id: string;
366
+ type: "identified" | "anonymous";
367
+ merged_into: string | null;
368
+ blocked: boolean;
360
369
  first_seen_at: string | null;
361
- last_active_at: string | null;
370
+ last_seen_at: string | null;
362
371
  session_count: number;
363
372
  cost: {
364
373
  amount: string;
365
374
  currency: "USD";
366
375
  };
367
- blocked: boolean;
368
376
  }>;
369
377
  };
370
- delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
378
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteCustomerData>) => Promise<{
371
379
  id: string;
372
380
  status: "pending";
373
381
  }>;
374
- list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
382
+ list: (options: import("./core/transport.js").CallOptions<Types.ListCustomersData>) => Promise<{
375
383
  data: Array<{
376
- external_user_id: string;
384
+ id: string;
385
+ type: "identified" | "anonymous";
386
+ merged_into: string | null;
387
+ blocked: boolean;
377
388
  first_seen_at: string | null;
378
- last_active_at: string | null;
389
+ last_seen_at: string | null;
379
390
  session_count: number;
380
391
  cost: {
381
392
  amount: string;
382
393
  currency: "USD";
383
394
  };
384
- blocked: boolean;
385
395
  }>;
386
396
  next_page: string | null;
387
397
  }>;
388
- retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
389
- external_user_id: string;
398
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetCustomerData>) => Promise<{
399
+ id: string;
400
+ type: "identified" | "anonymous";
401
+ merged_into: string | null;
402
+ blocked: boolean;
390
403
  first_seen_at: string | null;
391
- last_active_at: string | null;
404
+ last_seen_at: string | null;
392
405
  session_count: number;
393
406
  cost: {
394
407
  amount: string;
395
408
  currency: "USD";
396
409
  };
397
- blocked: boolean;
398
410
  recent_sessions: Array<{
399
411
  id: string;
400
412
  title: string | null;
@@ -403,7 +415,7 @@ export declare function createAgent(transport: Transport): {
403
415
  updated_at: string;
404
416
  }>;
405
417
  }>;
406
- retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
418
+ retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetCustomerDeletionData>) => Promise<{
407
419
  id: string;
408
420
  status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
409
421
  counts: {
@@ -419,21 +431,23 @@ export declare function createAgent(transport: Transport): {
419
431
  updated_at: string;
420
432
  }>;
421
433
  revokeTokens: {
422
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
434
+ create: (options: import("./core/transport.js").CallOptions<Types.RevokeCustomerTokensData>) => Promise<{
423
435
  revoked: number;
424
436
  }>;
425
437
  };
426
438
  unblock: {
427
- create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
428
- external_user_id: string;
439
+ create: (options: import("./core/transport.js").CallOptions<Types.UnblockCustomerData>) => Promise<{
440
+ id: string;
441
+ type: "identified" | "anonymous";
442
+ merged_into: string | null;
443
+ blocked: boolean;
429
444
  first_seen_at: string | null;
430
- last_active_at: string | null;
445
+ last_seen_at: string | null;
431
446
  session_count: number;
432
447
  cost: {
433
448
  amount: string;
434
449
  currency: "USD";
435
450
  };
436
- blocked: boolean;
437
451
  }>;
438
452
  };
439
453
  };
@@ -477,14 +491,17 @@ export declare function createAgent(transport: Transport): {
477
491
  id: string;
478
492
  access: "read_only" | "read_write" | "invoke";
479
493
  instructions?: string;
494
+ readonly verified?: boolean;
480
495
  enabled?: boolean;
481
496
  } | {
482
497
  type: "search" | "browser";
498
+ readonly verified?: boolean;
483
499
  enabled?: boolean;
484
500
  }>;
485
- kind: "personal" | "service";
501
+ kind: "general" | "personal" | "service";
486
502
  computer_id?: string;
487
503
  subagent_model?: string | null;
504
+ image_model?: string | null;
488
505
  subagents?: Array<{
489
506
  name: string;
490
507
  description: string;
@@ -583,6 +600,7 @@ export declare function createAgent(transport: Transport): {
583
600
  mcpServers?: Array<string>;
584
601
  hooks?: Array<string>;
585
602
  };
603
+ idleCompaction?: boolean;
586
604
  } | null;
587
605
  models?: {
588
606
  allowed: Array<string>;
@@ -620,6 +638,7 @@ export declare function createAgent(transport: Transport): {
620
638
  type: "agent";
621
639
  updated_at: string;
622
640
  version: number;
641
+ latest_version?: number;
623
642
  active_version: number;
624
643
  created_by: {
625
644
  type: "user";
@@ -635,14 +654,17 @@ export declare function createAgent(transport: Transport): {
635
654
  id: string;
636
655
  access: "read_only" | "read_write" | "invoke";
637
656
  instructions?: string;
657
+ readonly verified?: boolean;
638
658
  enabled?: boolean;
639
659
  } | {
640
660
  type: "search" | "browser";
661
+ readonly verified?: boolean;
641
662
  enabled?: boolean;
642
663
  }>;
643
- kind: "personal" | "service";
664
+ kind: "general" | "personal" | "service";
644
665
  computer_id?: string;
645
666
  subagent_model?: string | null;
667
+ image_model?: string | null;
646
668
  subagents?: Array<{
647
669
  name: string;
648
670
  description: string;
@@ -741,6 +763,7 @@ export declare function createAgent(transport: Transport): {
741
763
  mcpServers?: Array<string>;
742
764
  hooks?: Array<string>;
743
765
  };
766
+ idleCompaction?: boolean;
744
767
  } | null;
745
768
  models?: {
746
769
  allowed: Array<string>;
@@ -752,6 +775,64 @@ export declare function createAgent(transport: Transport): {
752
775
  vault_ids?: Array<string>;
753
776
  status: "active" | "archived";
754
777
  }>;
778
+ retrieveAppearance: (options: import("./core/transport.js").CallOptions<Types.GetAgentAppearanceData>) => Promise<{
779
+ agent?: {
780
+ name?: string;
781
+ avatar?: string;
782
+ };
783
+ layout?: "inline" | "sidebar" | "popup" | "modal";
784
+ launcher?: {
785
+ type: "none" | "bubble" | "mascot";
786
+ pack?: {
787
+ preset?: "mint" | "cat" | "bot";
788
+ images?: {
789
+ idle: string;
790
+ greet?: string;
791
+ listening?: string;
792
+ thinking?: string;
793
+ talking?: string;
794
+ "talking-2"?: string;
795
+ sorry?: string;
796
+ sleep?: string;
797
+ };
798
+ };
799
+ image?: string;
800
+ motion?: "float" | "none";
801
+ position?: "bottom-right" | "bottom-left";
802
+ label?: string;
803
+ };
804
+ header?: {
805
+ title?: string;
806
+ subtitle?: string;
807
+ icon?: string;
808
+ };
809
+ theme?: {
810
+ colorScheme?: "light" | "dark" | "system";
811
+ accent?: string;
812
+ surface?: string;
813
+ grayscale?: "neutral" | "warm" | "cool";
814
+ radius?: "none" | "sm" | "md" | "lg" | "full";
815
+ density?: "compact" | "normal" | "spacious";
816
+ fontFamily?: string;
817
+ fontSize?: number;
818
+ };
819
+ locale?: "zh" | "en";
820
+ startScreen?: {
821
+ greeting?: string;
822
+ prompts?: Array<{
823
+ label: string;
824
+ prompt: string;
825
+ }>;
826
+ };
827
+ composer?: {
828
+ placeholder?: string;
829
+ };
830
+ disclaimer?: string;
831
+ footer?: string;
832
+ history?: {
833
+ enabled?: boolean;
834
+ };
835
+ }>;
755
836
  unarchive: {
756
837
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
757
838
  id: string;
@@ -979,6 +1060,7 @@ export declare function createAgent(transport: Transport): {
979
1060
  type: "agent";
980
1061
  updated_at: string;
981
1062
  version: number;
1063
+ latest_version?: number;
982
1064
  active_version: number;
983
1065
  created_by: {
984
1066
  type: "user";
@@ -994,14 +1076,17 @@ export declare function createAgent(transport: Transport): {
994
1076
  id: string;
995
1077
  access: "read_only" | "read_write" | "invoke";
996
1078
  instructions?: string;
1079
+ readonly verified?: boolean;
997
1080
  enabled?: boolean;
998
1081
  } | {
999
1082
  type: "search" | "browser";
1083
+ readonly verified?: boolean;
1000
1084
  enabled?: boolean;
1001
1085
  }>;
1002
- kind: "personal" | "service";
1086
+ kind: "general" | "personal" | "service";
1003
1087
  computer_id?: string;
1004
1088
  subagent_model?: string | null;
1089
+ image_model?: string | null;
1005
1090
  subagents?: Array<{
1006
1091
  name: string;
1007
1092
  description: string;
@@ -1100,6 +1185,7 @@ export declare function createAgent(transport: Transport): {
1100
1185
  mcpServers?: Array<string>;
1101
1186
  hooks?: Array<string>;
1102
1187
  };
1188
+ idleCompaction?: boolean;
1103
1189
  } | null;
1104
1190
  models?: {
1105
1191
  allowed: Array<string>;
@@ -1136,6 +1222,7 @@ export declare function createAgent(transport: Transport): {
1136
1222
  type: "agent";
1137
1223
  updated_at: string;
1138
1224
  version: number;
1225
+ latest_version?: number;
1139
1226
  active_version: number;
1140
1227
  created_by: {
1141
1228
  type: "user";
@@ -1151,14 +1238,17 @@ export declare function createAgent(transport: Transport): {
1151
1238
  id: string;
1152
1239
  access: "read_only" | "read_write" | "invoke";
1153
1240
  instructions?: string;
1241
+ readonly verified?: boolean;
1154
1242
  enabled?: boolean;
1155
1243
  } | {
1156
1244
  type: "search" | "browser";
1245
+ readonly verified?: boolean;
1157
1246
  enabled?: boolean;
1158
1247
  }>;
1159
- kind: "personal" | "service";
1248
+ kind: "general" | "personal" | "service";
1160
1249
  computer_id?: string;
1161
1250
  subagent_model?: string | null;
1251
+ image_model?: string | null;
1162
1252
  subagents?: Array<{
1163
1253
  name: string;
1164
1254
  description: string;
@@ -1257,6 +1347,7 @@ export declare function createAgent(transport: Transport): {
1257
1347
  mcpServers?: Array<string>;
1258
1348
  hooks?: Array<string>;
1259
1349
  };
1350
+ idleCompaction?: boolean;
1260
1351
  } | null;
1261
1352
  models?: {
1262
1353
  allowed: Array<string>;
@@ -1274,227 +1365,26 @@ export declare function createAgent(transport: Transport): {
1274
1365
  archived_at: null | string;
1275
1366
  created_at: string;
1276
1367
  description: null | string;
1277
- mcp_servers: Array<{
1278
- type: "url";
1279
- name: string;
1280
- url: string;
1281
- headers?: {
1282
- [key: string]: string;
1283
- };
1284
- timeout_ms?: number;
1285
- } | {
1286
- type: "sse";
1287
- name: string;
1288
- url: string;
1289
- headers?: {
1290
- [key: string]: string;
1291
- };
1292
- timeout_ms?: number;
1293
- } | {
1294
- type: "stdio";
1295
- name: string;
1296
- command: string;
1297
- args?: Array<string>;
1298
- env?: {
1299
- [key: string]: string;
1300
- };
1301
- timeout_ms?: number;
1302
- }>;
1303
- metadata: {
1304
- [key: string]: string;
1305
- };
1368
+ mcp_servers: Array<Types.AgentManaged36>;
1369
+ metadata: Types.AgentManaged37;
1306
1370
  model: {
1307
1371
  id: string;
1308
- effort?: {
1309
- type: "low";
1310
- } | {
1311
- type: "medium";
1312
- } | {
1313
- type: "high";
1314
- } | {
1315
- type: "xhigh";
1316
- } | {
1317
- type: "max";
1318
- };
1372
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1319
1373
  inference_geo?: string;
1320
1374
  speed?: "standard" | "fast";
1321
1375
  settings?: {
1322
1376
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1323
1377
  };
1324
1378
  };
1325
- multiagent: null | {
1326
- agents: Array<{
1327
- id: string;
1328
- type: "agent";
1329
- version: number;
1330
- } | {
1331
- model: string;
1332
- type: "advisor";
1333
- }>;
1334
- type: "coordinator";
1335
- };
1379
+ multiagent: null | Types.AgentManaged39;
1336
1380
  name: string;
1337
- skills: Array<{
1338
- skill_id: string;
1339
- type: "anthropic";
1340
- version: string;
1341
- } | {
1342
- skill_id: string;
1343
- type: "custom";
1344
- version: string;
1345
- }>;
1381
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1346
1382
  system: null | string;
1347
- tools: Array<{
1348
- configs: Array<{
1349
- enabled: boolean;
1350
- name: "bash";
1351
- permission_policy: {
1352
- type: "always_allow";
1353
- } | {
1354
- type: "always_ask";
1355
- } | {
1356
- type: "auto";
1357
- };
1358
- type: "bash";
1359
- } | {
1360
- enabled: boolean;
1361
- name: "edit";
1362
- permission_policy: {
1363
- type: "always_allow";
1364
- } | {
1365
- type: "always_ask";
1366
- } | {
1367
- type: "auto";
1368
- };
1369
- type: "edit";
1370
- } | {
1371
- enabled: boolean;
1372
- name: "read";
1373
- permission_policy: {
1374
- type: "always_allow";
1375
- } | {
1376
- type: "always_ask";
1377
- } | {
1378
- type: "auto";
1379
- };
1380
- type: "read";
1381
- } | {
1382
- enabled: boolean;
1383
- name: "write";
1384
- permission_policy: {
1385
- type: "always_allow";
1386
- } | {
1387
- type: "always_ask";
1388
- } | {
1389
- type: "auto";
1390
- };
1391
- type: "write";
1392
- } | {
1393
- enabled: boolean;
1394
- name: "glob";
1395
- permission_policy: {
1396
- type: "always_allow";
1397
- } | {
1398
- type: "always_ask";
1399
- } | {
1400
- type: "auto";
1401
- };
1402
- type: "glob";
1403
- } | {
1404
- enabled: boolean;
1405
- name: "grep";
1406
- permission_policy: {
1407
- type: "always_allow";
1408
- } | {
1409
- type: "always_ask";
1410
- } | {
1411
- type: "auto";
1412
- };
1413
- type: "grep";
1414
- } | {
1415
- enabled: boolean;
1416
- name: "web_fetch";
1417
- permission_policy: {
1418
- type: "always_allow";
1419
- } | {
1420
- type: "always_ask";
1421
- } | {
1422
- type: "auto";
1423
- };
1424
- type: "web_fetch";
1425
- allowed_domains?: Array<string>;
1426
- blocked_domains?: Array<string>;
1427
- max_content_tokens?: null | number;
1428
- } | {
1429
- enabled: boolean;
1430
- name: "web_search";
1431
- permission_policy: {
1432
- type: "always_allow";
1433
- } | {
1434
- type: "always_ask";
1435
- } | {
1436
- type: "auto";
1437
- };
1438
- type: "web_search";
1439
- allowed_domains?: Array<string>;
1440
- blocked_domains?: Array<string>;
1441
- user_location?: null | {
1442
- type: "approximate";
1443
- city?: null | string;
1444
- country?: null | string;
1445
- region?: null | string;
1446
- timezone?: null | string;
1447
- };
1448
- } | {
1449
- name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
1450
- enabled: boolean;
1451
- permission_policy: {
1452
- type: "always_allow" | "always_ask";
1453
- };
1454
- }>;
1455
- default_config: {
1456
- enabled: boolean;
1457
- permission_policy: {
1458
- type: "always_allow";
1459
- } | {
1460
- type: "always_ask";
1461
- } | {
1462
- type: "auto";
1463
- };
1464
- };
1465
- type: "agent_toolset_20260401";
1466
- } | {
1467
- type: "mcp_toolset";
1468
- mcp_server_name: string;
1469
- default_config?: {
1470
- enabled?: boolean | null;
1471
- permission_policy?: null | {
1472
- type: "always_allow" | "always_ask";
1473
- };
1474
- } | null;
1475
- configs?: Array<{
1476
- name: string;
1477
- enabled?: boolean | null;
1478
- permission_policy?: null | {
1479
- type: "always_allow" | "always_ask";
1480
- };
1481
- }> | null;
1482
- } | {
1483
- description: string;
1484
- input_schema: {
1485
- type: "object";
1486
- properties?: null | {
1487
- [key: string]: unknown;
1488
- };
1489
- required?: null | Array<string>;
1490
- [key: string]: unknown;
1491
- };
1492
- name: string;
1493
- type: "custom";
1494
- }>;
1383
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
1495
1384
  type: "agent";
1496
1385
  updated_at: string;
1497
1386
  version: number;
1387
+ latest_version?: number;
1498
1388
  active_version: number;
1499
1389
  created_by: {
1500
1390
  type: "user";
@@ -1510,14 +1400,17 @@ export declare function createAgent(transport: Transport): {
1510
1400
  id: string;
1511
1401
  access: "read_only" | "read_write" | "invoke";
1512
1402
  instructions?: string;
1403
+ readonly verified?: boolean;
1513
1404
  enabled?: boolean;
1514
1405
  } | {
1515
1406
  type: "search" | "browser";
1407
+ readonly verified?: boolean;
1516
1408
  enabled?: boolean;
1517
1409
  }>;
1518
- kind: "personal" | "service";
1410
+ kind: "general" | "personal" | "service";
1519
1411
  computer_id?: string;
1520
1412
  subagent_model?: string | null;
1413
+ image_model?: string | null;
1521
1414
  subagents?: Array<{
1522
1415
  name: string;
1523
1416
  description: string;
@@ -1616,6 +1509,7 @@ export declare function createAgent(transport: Transport): {
1616
1509
  mcpServers?: Array<string>;
1617
1510
  hooks?: Array<string>;
1618
1511
  };
1512
+ idleCompaction?: boolean;
1619
1513
  } | null;
1620
1514
  models?: {
1621
1515
  allowed: Array<string>;
@@ -1668,14 +1562,17 @@ export declare function createAgent(transport: Transport): {
1668
1562
  id: string;
1669
1563
  access: "read_only" | "read_write" | "invoke";
1670
1564
  instructions?: string;
1565
+ readonly verified?: boolean;
1671
1566
  enabled?: boolean;
1672
1567
  } | {
1673
1568
  type: "search" | "browser";
1569
+ readonly verified?: boolean;
1674
1570
  enabled?: boolean;
1675
1571
  }>;
1676
- kind: "personal" | "service";
1572
+ kind: "general" | "personal" | "service";
1677
1573
  computer_id?: string;
1678
1574
  subagent_model?: string | null;
1575
+ image_model?: string | null;
1679
1576
  subagents?: Array<{
1680
1577
  name: string;
1681
1578
  description: string;
@@ -1774,6 +1671,7 @@ export declare function createAgent(transport: Transport): {
1774
1671
  mcpServers?: Array<string>;
1775
1672
  hooks?: Array<string>;
1776
1673
  };
1674
+ idleCompaction?: boolean;
1777
1675
  } | null;
1778
1676
  models?: {
1779
1677
  allowed: Array<string>;
@@ -1929,7 +1827,7 @@ export declare function createAgent(transport: Transport): {
1929
1827
  } | {
1930
1828
  id: string;
1931
1829
  type: "agent_with_overrides";
1932
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1830
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1933
1831
  cwd?: string;
1934
1832
  model?: string | {
1935
1833
  id: string;
@@ -1966,7 +1864,7 @@ export declare function createAgent(transport: Transport): {
1966
1864
  } | {
1967
1865
  id: string;
1968
1866
  type: "agent_with_overrides";
1969
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1867
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1970
1868
  cwd?: string;
1971
1869
  model?: string | {
1972
1870
  id: string;
@@ -2004,7 +1902,7 @@ export declare function createAgent(transport: Transport): {
2004
1902
  } | {
2005
1903
  id: string;
2006
1904
  type: "agent_with_overrides";
2007
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1905
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2008
1906
  cwd?: string;
2009
1907
  model?: string | {
2010
1908
  id: string;
@@ -2043,7 +1941,7 @@ export declare function createAgent(transport: Transport): {
2043
1941
  } | {
2044
1942
  id: string;
2045
1943
  type: "agent_with_overrides";
2046
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1944
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2047
1945
  cwd?: string;
2048
1946
  model?: string | {
2049
1947
  id: string;
@@ -2080,7 +1978,7 @@ export declare function createAgent(transport: Transport): {
2080
1978
  } | {
2081
1979
  id: string;
2082
1980
  type: "agent_with_overrides";
2083
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1981
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2084
1982
  cwd?: string;
2085
1983
  model?: string | {
2086
1984
  id: string;
@@ -2121,7 +2019,7 @@ export declare function createAgent(transport: Transport): {
2121
2019
  } | {
2122
2020
  id: string;
2123
2021
  type: "agent_with_overrides";
2124
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2022
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2125
2023
  cwd?: string;
2126
2024
  model?: string | {
2127
2025
  id: string;
@@ -2159,7 +2057,7 @@ export declare function createAgent(transport: Transport): {
2159
2057
  } | {
2160
2058
  id: string;
2161
2059
  type: "agent_with_overrides";
2162
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2060
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2163
2061
  cwd?: string;
2164
2062
  model?: string | {
2165
2063
  id: string;
@@ -2188,122 +2086,6 @@ export declare function createAgent(transport: Transport): {
2188
2086
  };
2189
2087
  }>;
2190
2088
  };
2191
- embed: {
2192
- exchange: {
2193
- create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
2194
- token: string;
2195
- expires_at: string;
2196
- }>;
2197
- };
2198
- retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
2199
- agent?: {
2200
- name?: string;
2201
- avatar?: string;
2202
- };
2203
- layout?: "inline" | "sidebar" | "popup" | "modal";
2204
- launcher?: {
2205
- type: "none" | "bubble" | "mascot";
2206
- pack?: {
2207
- preset?: "mint" | "cat" | "bot";
2208
- images?: {
2209
- idle: string;
2210
- greet?: string;
2211
- listening?: string;
2212
- thinking?: string;
2213
- talking?: string;
2214
- "talking-2"?: string;
2215
- sorry?: string;
2216
- sleep?: string;
2217
- };
2218
- };
2219
- image?: string;
2220
- motion?: "float" | "none";
2221
- position?: "bottom-right" | "bottom-left";
2222
- label?: string;
2223
- };
2224
- header?: {
2225
- title?: string;
2226
- subtitle?: string;
2227
- icon?: string;
2228
- };
2229
- theme?: {
2230
- colorScheme?: "light" | "dark" | "system";
2231
- accent?: string;
2232
- surface?: string;
2233
- grayscale?: "neutral" | "warm" | "cool";
2234
- radius?: "none" | "sm" | "md" | "lg" | "full";
2235
- density?: "compact" | "normal" | "spacious";
2236
- fontFamily?: string;
2237
- fontSize?: number;
2238
- };
2239
- locale?: "zh" | "en";
2240
- startScreen?: {
2241
- greeting?: string;
2242
- prompts?: Array<{
2243
- label: string;
2244
- prompt: string;
2245
- }>;
2246
- };
2247
- composer?: {
2248
- placeholder?: string;
2249
- };
2250
- disclaimer?: string;
2251
- footer?: string;
2252
- history?: {
2253
- enabled?: boolean;
2254
- };
2255
- }>;
2256
- };
2257
- embedTokens: {
2258
- anonymous: {
2259
- create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
2260
- token: string;
2261
- expires_at: string;
2262
- visitor_secret?: string;
2263
- }>;
2264
- };
2265
- create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
2266
- hosted_url?: string;
2267
- id: string;
2268
- token: string;
2269
- expires_at: string;
2270
- }>;
2271
- list: (options?: import("./core/transport.js").CallOptions<Types.ListEmbedTokensData> | undefined) => Promise<{
2272
- data: Array<{
2273
- id: string;
2274
- type: "embed_token";
2275
- agent_id: string;
2276
- agent_version: number;
2277
- external_user_id: string;
2278
- created_at: string;
2279
- expires_at: string;
2280
- revoked_at: string | null;
2281
- host_origin: string | null;
2282
- issued_by: {
2283
- type: "user" | "api_key";
2284
- id: string;
2285
- };
2286
- }>;
2287
- next_page: string | null;
2288
- }>;
2289
- revoke: {
2290
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEmbedTokenData>) => Promise<{
2291
- id: string;
2292
- type: "embed_token";
2293
- agent_id: string;
2294
- agent_version: number;
2295
- external_user_id: string;
2296
- created_at: string;
2297
- expires_at: string;
2298
- revoked_at: string | null;
2299
- host_origin: string | null;
2300
- issued_by: {
2301
- type: "user" | "api_key";
2302
- id: string;
2303
- };
2304
- }>;
2305
- };
2306
- };
2307
2089
  environments: {
2308
2090
  archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2309
2091
  create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
@@ -2410,21 +2192,27 @@ export declare function createAgent(transport: Transport): {
2410
2192
  compact: (options: import("./core/transport.js").CallOptions<Types.CompactSessionData>) => Promise<{
2411
2193
  type: "session_compaction";
2412
2194
  id: string;
2413
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
2195
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
2414
2196
  reason?: string;
2415
2197
  } | {
2416
2198
  type: "session_compaction";
2417
2199
  id: string;
2418
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
2200
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
2419
2201
  reason?: string;
2420
2202
  }>;
2421
2203
  compactions: {
2422
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;
2423
2211
  data: Array<{
2424
2212
  type: "context_compaction";
2425
2213
  id: string;
2426
2214
  event_id: string | null;
2427
- trigger: "auto" | "manual" | "model_downshift";
2215
+ trigger: "auto" | "manual" | "model_downshift" | "idle";
2428
2216
  status: "succeeded" | "failed";
2429
2217
  model: string;
2430
2218
  compacted_message_count: number;
@@ -2535,6 +2323,7 @@ export declare function createAgent(transport: Transport): {
2535
2323
  run_id: string | null;
2536
2324
  message_id?: string;
2537
2325
  } | {
2326
+ full_access_available?: boolean;
2538
2327
  id: string;
2539
2328
  input: Types.AgentManaged197;
2540
2329
  mcp_server_name: string;
@@ -2557,6 +2346,17 @@ export declare function createAgent(transport: Transport): {
2557
2346
  };
2558
2347
  source?: "app" | "codemode";
2559
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
+ }>;
2560
2360
  title?: string;
2561
2361
  input_titles?: {
2562
2362
  [key: string]: string;
@@ -2575,6 +2375,7 @@ export declare function createAgent(transport: Transport): {
2575
2375
  };
2576
2376
  source?: "app" | "codemode";
2577
2377
  } | {
2378
+ full_access_available?: boolean;
2578
2379
  id: string;
2579
2380
  input: Types.AgentManaged206;
2580
2381
  name: string;
@@ -2584,6 +2385,17 @@ export declare function createAgent(transport: Transport): {
2584
2385
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2585
2386
  session_thread_id?: null | string;
2586
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
+ }>;
2587
2399
  } | {
2588
2400
  id: string;
2589
2401
  processed_at: string;
@@ -2604,6 +2416,9 @@ export declare function createAgent(transport: Transport): {
2604
2416
  type: "session.status_idle";
2605
2417
  run_id: string | null;
2606
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;
2607
2422
  id: string;
2608
2423
  processed_at: string;
2609
2424
  type: "session.updated";
@@ -3225,10 +3040,10 @@ export declare function createAgent(transport: Transport): {
3225
3040
  web_fetch_requests?: number;
3226
3041
  web_search_requests?: number;
3227
3042
  };
3228
- runtime_cost?: {
3229
- amount: string;
3230
- currency: "USD";
3043
+ cost_by_product?: {
3044
+ [key: string]: string;
3231
3045
  };
3046
+ subagent_cost_micro_usd?: number;
3232
3047
  };
3233
3048
  vault_ids: Array<string>;
3234
3049
  deployment_id?: null | string;
@@ -3391,7 +3206,7 @@ export declare function createAgent(transport: Transport): {
3391
3206
  retrieveCompact: (options: import("./core/transport.js").CallOptions<Types.GetSessionCompactionData>) => Promise<{
3392
3207
  type: "session_compaction";
3393
3208
  id: string;
3394
- status: "queued" | "running" | "skipped" | "succeeded" | "failed";
3209
+ status: "queued" | "running" | "skipped" | "succeeded" | "failed" | "cancelled";
3395
3210
  reason?: string;
3396
3211
  }>;
3397
3212
  retrieveContext: (options: import("./core/transport.js").CallOptions<Types.GetSessionContextData>) => Promise<{
@@ -3515,6 +3330,7 @@ export declare function createAgent(transport: Transport): {
3515
3330
  run_id: string | null;
3516
3331
  message_id?: string;
3517
3332
  } | {
3333
+ full_access_available?: boolean;
3518
3334
  id: string;
3519
3335
  input: Types.AgentManaged197;
3520
3336
  mcp_server_name: string;
@@ -3537,6 +3353,17 @@ export declare function createAgent(transport: Transport): {
3537
3353
  };
3538
3354
  };
3539
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
+ }>;
3540
3367
  title?: string;
3541
3368
  input_titles?: {
3542
3369
  [key: string]: string;
@@ -3555,6 +3382,7 @@ export declare function createAgent(transport: Transport): {
3555
3382
  };
3556
3383
  source?: "app" | "codemode";
3557
3384
  } | {
3385
+ full_access_available?: boolean;
3558
3386
  id: string;
3559
3387
  input: Types.AgentManaged206;
3560
3388
  name: string;
@@ -3564,6 +3392,17 @@ export declare function createAgent(transport: Transport): {
3564
3392
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
3565
3393
  session_thread_id?: null | string;
3566
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
+ }>;
3567
3406
  } | {
3568
3407
  id: string;
3569
3408
  processed_at: string;
@@ -3584,6 +3423,9 @@ export declare function createAgent(transport: Transport): {
3584
3423
  type: "session.status_idle";
3585
3424
  run_id: string | null;
3586
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;
3587
3429
  id: string;
3588
3430
  processed_at: string;
3589
3431
  type: "session.updated";
@@ -3852,6 +3694,13 @@ export declare function createAutomation(transport: Transport): {
3852
3694
  hooks: {
3853
3695
  send: (options: import("./core/transport.js").CallOptions<Types.AutomationHooksReceiveData>) => Promise<Types.AutomationFiring>;
3854
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
+ };
3855
3704
  resolve: {
3856
3705
  retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationResolveResolveData>) => Promise<Types.AutomationResolveResult>;
3857
3706
  };
@@ -4185,6 +4034,20 @@ export declare function createMedia(transport: Transport): {
4185
4034
  };
4186
4035
  };
4187
4036
  export declare function createMeta(transport: Transport): {
4037
+ docs: {
4038
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.MetaDocsRetrieveData>) => Promise<{
4039
+ path: string;
4040
+ title: string;
4041
+ url: string;
4042
+ markdown: string;
4043
+ }>;
4044
+ search: (options: import("./core/transport.js").CallOptions<Types.MetaDocsSearchData>) => Promise<{
4045
+ path: string;
4046
+ title: string;
4047
+ url: string;
4048
+ snippet: string;
4049
+ }[]>;
4050
+ };
4188
4051
  health: {
4189
4052
  retrieve: (options?: import("./core/transport.js").CallOptions<Types.HealthCheckData> | undefined) => Promise<string>;
4190
4053
  };