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

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
52
  kind: "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;
@@ -198,14 +201,17 @@ export declare function createAgent(transport: Transport): {
198
201
  id: string;
199
202
  access: "read_only" | "read_write" | "invoke";
200
203
  instructions?: string;
204
+ readonly verified?: boolean;
201
205
  enabled?: boolean;
202
206
  } | {
203
207
  type: "search" | "browser";
208
+ readonly verified?: boolean;
204
209
  enabled?: boolean;
205
210
  }>;
206
211
  kind: "personal" | "service";
207
212
  computer_id?: string;
208
213
  subagent_model?: string | null;
214
+ image_model?: string | null;
209
215
  subagents?: Array<{
210
216
  name: string;
211
217
  description: string;
@@ -352,49 +358,53 @@ export declare function createAgent(transport: Transport): {
352
358
  }>;
353
359
  };
354
360
  };
355
- };
356
- endUsers: {
357
361
  block: {
358
- create: (options: import("./core/transport.js").CallOptions<Types.BlockEndUserData>) => Promise<{
359
- external_user_id: string;
362
+ create: (options: import("./core/transport.js").CallOptions<Types.BlockCustomerData>) => Promise<{
363
+ id: string;
364
+ type: "identified" | "anonymous";
365
+ merged_into: string | null;
366
+ blocked: boolean;
360
367
  first_seen_at: string | null;
361
- last_active_at: string | null;
368
+ last_seen_at: string | null;
362
369
  session_count: number;
363
370
  cost: {
364
371
  amount: string;
365
372
  currency: "USD";
366
373
  };
367
- blocked: boolean;
368
374
  }>;
369
375
  };
370
- delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
376
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteCustomerData>) => Promise<{
371
377
  id: string;
372
378
  status: "pending";
373
379
  }>;
374
- list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
380
+ list: (options: import("./core/transport.js").CallOptions<Types.ListCustomersData>) => Promise<{
375
381
  data: Array<{
376
- external_user_id: string;
382
+ id: string;
383
+ type: "identified" | "anonymous";
384
+ merged_into: string | null;
385
+ blocked: boolean;
377
386
  first_seen_at: string | null;
378
- last_active_at: string | null;
387
+ last_seen_at: string | null;
379
388
  session_count: number;
380
389
  cost: {
381
390
  amount: string;
382
391
  currency: "USD";
383
392
  };
384
- blocked: boolean;
385
393
  }>;
386
394
  next_page: string | null;
387
395
  }>;
388
- retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
389
- external_user_id: string;
396
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.GetCustomerData>) => Promise<{
397
+ id: string;
398
+ type: "identified" | "anonymous";
399
+ merged_into: string | null;
400
+ blocked: boolean;
390
401
  first_seen_at: string | null;
391
- last_active_at: string | null;
402
+ last_seen_at: string | null;
392
403
  session_count: number;
393
404
  cost: {
394
405
  amount: string;
395
406
  currency: "USD";
396
407
  };
397
- blocked: boolean;
398
408
  recent_sessions: Array<{
399
409
  id: string;
400
410
  title: string | null;
@@ -403,7 +413,7 @@ export declare function createAgent(transport: Transport): {
403
413
  updated_at: string;
404
414
  }>;
405
415
  }>;
406
- retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
416
+ retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetCustomerDeletionData>) => Promise<{
407
417
  id: string;
408
418
  status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
409
419
  counts: {
@@ -419,21 +429,23 @@ export declare function createAgent(transport: Transport): {
419
429
  updated_at: string;
420
430
  }>;
421
431
  revokeTokens: {
422
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
432
+ create: (options: import("./core/transport.js").CallOptions<Types.RevokeCustomerTokensData>) => Promise<{
423
433
  revoked: number;
424
434
  }>;
425
435
  };
426
436
  unblock: {
427
- create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
428
- external_user_id: string;
437
+ create: (options: import("./core/transport.js").CallOptions<Types.UnblockCustomerData>) => Promise<{
438
+ id: string;
439
+ type: "identified" | "anonymous";
440
+ merged_into: string | null;
441
+ blocked: boolean;
429
442
  first_seen_at: string | null;
430
- last_active_at: string | null;
443
+ last_seen_at: string | null;
431
444
  session_count: number;
432
445
  cost: {
433
446
  amount: string;
434
447
  currency: "USD";
435
448
  };
436
- blocked: boolean;
437
449
  }>;
438
450
  };
439
451
  };
@@ -477,14 +489,17 @@ export declare function createAgent(transport: Transport): {
477
489
  id: string;
478
490
  access: "read_only" | "read_write" | "invoke";
479
491
  instructions?: string;
492
+ readonly verified?: boolean;
480
493
  enabled?: boolean;
481
494
  } | {
482
495
  type: "search" | "browser";
496
+ readonly verified?: boolean;
483
497
  enabled?: boolean;
484
498
  }>;
485
499
  kind: "personal" | "service";
486
500
  computer_id?: string;
487
501
  subagent_model?: string | null;
502
+ image_model?: string | null;
488
503
  subagents?: Array<{
489
504
  name: string;
490
505
  description: string;
@@ -620,6 +635,7 @@ export declare function createAgent(transport: Transport): {
620
635
  type: "agent";
621
636
  updated_at: string;
622
637
  version: number;
638
+ latest_version?: number;
623
639
  active_version: number;
624
640
  created_by: {
625
641
  type: "user";
@@ -635,14 +651,17 @@ export declare function createAgent(transport: Transport): {
635
651
  id: string;
636
652
  access: "read_only" | "read_write" | "invoke";
637
653
  instructions?: string;
654
+ readonly verified?: boolean;
638
655
  enabled?: boolean;
639
656
  } | {
640
657
  type: "search" | "browser";
658
+ readonly verified?: boolean;
641
659
  enabled?: boolean;
642
660
  }>;
643
661
  kind: "personal" | "service";
644
662
  computer_id?: string;
645
663
  subagent_model?: string | null;
664
+ image_model?: string | null;
646
665
  subagents?: Array<{
647
666
  name: string;
648
667
  description: string;
@@ -752,6 +771,64 @@ export declare function createAgent(transport: Transport): {
752
771
  vault_ids?: Array<string>;
753
772
  status: "active" | "archived";
754
773
  }>;
774
+ retrieveAppearance: (options: import("./core/transport.js").CallOptions<Types.GetAgentAppearanceData>) => Promise<{
775
+ agent?: {
776
+ name?: string;
777
+ avatar?: string;
778
+ };
779
+ layout?: "inline" | "sidebar" | "popup" | "modal";
780
+ launcher?: {
781
+ type: "none" | "bubble" | "mascot";
782
+ pack?: {
783
+ preset?: "mint" | "cat" | "bot";
784
+ images?: {
785
+ idle: string;
786
+ greet?: string;
787
+ listening?: string;
788
+ thinking?: string;
789
+ talking?: string;
790
+ "talking-2"?: string;
791
+ sorry?: string;
792
+ sleep?: string;
793
+ };
794
+ };
795
+ image?: string;
796
+ motion?: "float" | "none";
797
+ position?: "bottom-right" | "bottom-left";
798
+ label?: string;
799
+ };
800
+ header?: {
801
+ title?: string;
802
+ subtitle?: string;
803
+ icon?: string;
804
+ };
805
+ theme?: {
806
+ colorScheme?: "light" | "dark" | "system";
807
+ accent?: string;
808
+ surface?: string;
809
+ grayscale?: "neutral" | "warm" | "cool";
810
+ radius?: "none" | "sm" | "md" | "lg" | "full";
811
+ density?: "compact" | "normal" | "spacious";
812
+ fontFamily?: string;
813
+ fontSize?: number;
814
+ };
815
+ locale?: "zh" | "en";
816
+ startScreen?: {
817
+ greeting?: string;
818
+ prompts?: Array<{
819
+ label: string;
820
+ prompt: string;
821
+ }>;
822
+ };
823
+ composer?: {
824
+ placeholder?: string;
825
+ };
826
+ disclaimer?: string;
827
+ footer?: string;
828
+ history?: {
829
+ enabled?: boolean;
830
+ };
831
+ }>;
755
832
  unarchive: {
756
833
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
757
834
  id: string;
@@ -979,6 +1056,7 @@ export declare function createAgent(transport: Transport): {
979
1056
  type: "agent";
980
1057
  updated_at: string;
981
1058
  version: number;
1059
+ latest_version?: number;
982
1060
  active_version: number;
983
1061
  created_by: {
984
1062
  type: "user";
@@ -994,14 +1072,17 @@ export declare function createAgent(transport: Transport): {
994
1072
  id: string;
995
1073
  access: "read_only" | "read_write" | "invoke";
996
1074
  instructions?: string;
1075
+ readonly verified?: boolean;
997
1076
  enabled?: boolean;
998
1077
  } | {
999
1078
  type: "search" | "browser";
1079
+ readonly verified?: boolean;
1000
1080
  enabled?: boolean;
1001
1081
  }>;
1002
1082
  kind: "personal" | "service";
1003
1083
  computer_id?: string;
1004
1084
  subagent_model?: string | null;
1085
+ image_model?: string | null;
1005
1086
  subagents?: Array<{
1006
1087
  name: string;
1007
1088
  description: string;
@@ -1136,6 +1217,7 @@ export declare function createAgent(transport: Transport): {
1136
1217
  type: "agent";
1137
1218
  updated_at: string;
1138
1219
  version: number;
1220
+ latest_version?: number;
1139
1221
  active_version: number;
1140
1222
  created_by: {
1141
1223
  type: "user";
@@ -1151,14 +1233,17 @@ export declare function createAgent(transport: Transport): {
1151
1233
  id: string;
1152
1234
  access: "read_only" | "read_write" | "invoke";
1153
1235
  instructions?: string;
1236
+ readonly verified?: boolean;
1154
1237
  enabled?: boolean;
1155
1238
  } | {
1156
1239
  type: "search" | "browser";
1240
+ readonly verified?: boolean;
1157
1241
  enabled?: boolean;
1158
1242
  }>;
1159
1243
  kind: "personal" | "service";
1160
1244
  computer_id?: string;
1161
1245
  subagent_model?: string | null;
1246
+ image_model?: string | null;
1162
1247
  subagents?: Array<{
1163
1248
  name: string;
1164
1249
  description: string;
@@ -1274,227 +1359,26 @@ export declare function createAgent(transport: Transport): {
1274
1359
  archived_at: null | string;
1275
1360
  created_at: string;
1276
1361
  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
- };
1362
+ mcp_servers: Array<Types.AgentManaged36>;
1363
+ metadata: Types.AgentManaged37;
1306
1364
  model: {
1307
1365
  id: string;
1308
- effort?: {
1309
- type: "low";
1310
- } | {
1311
- type: "medium";
1312
- } | {
1313
- type: "high";
1314
- } | {
1315
- type: "xhigh";
1316
- } | {
1317
- type: "max";
1318
- };
1366
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1319
1367
  inference_geo?: string;
1320
1368
  speed?: "standard" | "fast";
1321
1369
  settings?: {
1322
1370
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1323
1371
  };
1324
1372
  };
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
- };
1373
+ multiagent: null | Types.AgentManaged39;
1336
1374
  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
- }>;
1375
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1346
1376
  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
- }>;
1377
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
1495
1378
  type: "agent";
1496
1379
  updated_at: string;
1497
1380
  version: number;
1381
+ latest_version?: number;
1498
1382
  active_version: number;
1499
1383
  created_by: {
1500
1384
  type: "user";
@@ -1510,14 +1394,17 @@ export declare function createAgent(transport: Transport): {
1510
1394
  id: string;
1511
1395
  access: "read_only" | "read_write" | "invoke";
1512
1396
  instructions?: string;
1397
+ readonly verified?: boolean;
1513
1398
  enabled?: boolean;
1514
1399
  } | {
1515
1400
  type: "search" | "browser";
1401
+ readonly verified?: boolean;
1516
1402
  enabled?: boolean;
1517
1403
  }>;
1518
1404
  kind: "personal" | "service";
1519
1405
  computer_id?: string;
1520
1406
  subagent_model?: string | null;
1407
+ image_model?: string | null;
1521
1408
  subagents?: Array<{
1522
1409
  name: string;
1523
1410
  description: string;
@@ -1668,14 +1555,17 @@ export declare function createAgent(transport: Transport): {
1668
1555
  id: string;
1669
1556
  access: "read_only" | "read_write" | "invoke";
1670
1557
  instructions?: string;
1558
+ readonly verified?: boolean;
1671
1559
  enabled?: boolean;
1672
1560
  } | {
1673
1561
  type: "search" | "browser";
1562
+ readonly verified?: boolean;
1674
1563
  enabled?: boolean;
1675
1564
  }>;
1676
1565
  kind: "personal" | "service";
1677
1566
  computer_id?: string;
1678
1567
  subagent_model?: string | null;
1568
+ image_model?: string | null;
1679
1569
  subagents?: Array<{
1680
1570
  name: string;
1681
1571
  description: string;
@@ -1929,7 +1819,7 @@ export declare function createAgent(transport: Transport): {
1929
1819
  } | {
1930
1820
  id: string;
1931
1821
  type: "agent_with_overrides";
1932
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1822
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1933
1823
  cwd?: string;
1934
1824
  model?: string | {
1935
1825
  id: string;
@@ -1966,7 +1856,7 @@ export declare function createAgent(transport: Transport): {
1966
1856
  } | {
1967
1857
  id: string;
1968
1858
  type: "agent_with_overrides";
1969
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1859
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1970
1860
  cwd?: string;
1971
1861
  model?: string | {
1972
1862
  id: string;
@@ -2004,7 +1894,7 @@ export declare function createAgent(transport: Transport): {
2004
1894
  } | {
2005
1895
  id: string;
2006
1896
  type: "agent_with_overrides";
2007
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1897
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2008
1898
  cwd?: string;
2009
1899
  model?: string | {
2010
1900
  id: string;
@@ -2043,7 +1933,7 @@ export declare function createAgent(transport: Transport): {
2043
1933
  } | {
2044
1934
  id: string;
2045
1935
  type: "agent_with_overrides";
2046
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1936
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2047
1937
  cwd?: string;
2048
1938
  model?: string | {
2049
1939
  id: string;
@@ -2080,7 +1970,7 @@ export declare function createAgent(transport: Transport): {
2080
1970
  } | {
2081
1971
  id: string;
2082
1972
  type: "agent_with_overrides";
2083
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1973
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2084
1974
  cwd?: string;
2085
1975
  model?: string | {
2086
1976
  id: string;
@@ -2121,7 +2011,7 @@ export declare function createAgent(transport: Transport): {
2121
2011
  } | {
2122
2012
  id: string;
2123
2013
  type: "agent_with_overrides";
2124
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2014
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2125
2015
  cwd?: string;
2126
2016
  model?: string | {
2127
2017
  id: string;
@@ -2159,7 +2049,7 @@ export declare function createAgent(transport: Transport): {
2159
2049
  } | {
2160
2050
  id: string;
2161
2051
  type: "agent_with_overrides";
2162
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2052
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2163
2053
  cwd?: string;
2164
2054
  model?: string | {
2165
2055
  id: string;
@@ -2188,122 +2078,6 @@ export declare function createAgent(transport: Transport): {
2188
2078
  };
2189
2079
  }>;
2190
2080
  };
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
2081
  environments: {
2308
2082
  archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2309
2083
  create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
@@ -2535,6 +2309,7 @@ export declare function createAgent(transport: Transport): {
2535
2309
  run_id: string | null;
2536
2310
  message_id?: string;
2537
2311
  } | {
2312
+ full_access_available?: boolean;
2538
2313
  id: string;
2539
2314
  input: Types.AgentManaged197;
2540
2315
  mcp_server_name: string;
@@ -2557,6 +2332,17 @@ export declare function createAgent(transport: Transport): {
2557
2332
  };
2558
2333
  source?: "app" | "codemode";
2559
2334
  parent_tool_use_id?: string;
2335
+ user_once?: true;
2336
+ guarded_rule?: string;
2337
+ permission_suggestions?: Array<{
2338
+ type: "add_rules";
2339
+ behavior: "allow";
2340
+ destination: "agent" | "session";
2341
+ rules: Array<{
2342
+ tool_name: string;
2343
+ rule_content: string;
2344
+ }>;
2345
+ }>;
2560
2346
  title?: string;
2561
2347
  input_titles?: {
2562
2348
  [key: string]: string;
@@ -2575,6 +2361,7 @@ export declare function createAgent(transport: Transport): {
2575
2361
  };
2576
2362
  source?: "app" | "codemode";
2577
2363
  } | {
2364
+ full_access_available?: boolean;
2578
2365
  id: string;
2579
2366
  input: Types.AgentManaged206;
2580
2367
  name: string;
@@ -2584,6 +2371,17 @@ export declare function createAgent(transport: Transport): {
2584
2371
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2585
2372
  session_thread_id?: null | string;
2586
2373
  run_id: string | null;
2374
+ user_once?: true;
2375
+ guarded_rule?: string;
2376
+ permission_suggestions?: Array<{
2377
+ type: "add_rules";
2378
+ behavior: "allow";
2379
+ destination: "agent" | "session";
2380
+ rules: Array<{
2381
+ tool_name: string;
2382
+ rule_content: string;
2383
+ }>;
2384
+ }>;
2587
2385
  } | {
2588
2386
  id: string;
2589
2387
  processed_at: string;
@@ -2604,6 +2402,9 @@ export declare function createAgent(transport: Transport): {
2604
2402
  type: "session.status_idle";
2605
2403
  run_id: string | null;
2606
2404
  } | 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 | {
2405
+ permission_mode_version?: number;
2406
+ previous_permission_mode?: string | null;
2407
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2607
2408
  id: string;
2608
2409
  processed_at: string;
2609
2410
  type: "session.updated";
@@ -3225,10 +3026,10 @@ export declare function createAgent(transport: Transport): {
3225
3026
  web_fetch_requests?: number;
3226
3027
  web_search_requests?: number;
3227
3028
  };
3228
- runtime_cost?: {
3229
- amount: string;
3230
- currency: "USD";
3029
+ cost_by_product?: {
3030
+ [key: string]: string;
3231
3031
  };
3032
+ subagent_cost_micro_usd?: number;
3232
3033
  };
3233
3034
  vault_ids: Array<string>;
3234
3035
  deployment_id?: null | string;
@@ -3515,6 +3316,7 @@ export declare function createAgent(transport: Transport): {
3515
3316
  run_id: string | null;
3516
3317
  message_id?: string;
3517
3318
  } | {
3319
+ full_access_available?: boolean;
3518
3320
  id: string;
3519
3321
  input: Types.AgentManaged197;
3520
3322
  mcp_server_name: string;
@@ -3537,6 +3339,17 @@ export declare function createAgent(transport: Transport): {
3537
3339
  };
3538
3340
  };
3539
3341
  source?: "app" | "codemode";
3342
+ user_once?: true;
3343
+ guarded_rule?: string;
3344
+ permission_suggestions?: Array<{
3345
+ type: "add_rules";
3346
+ behavior: "allow";
3347
+ destination: "agent" | "session";
3348
+ rules: Array<{
3349
+ tool_name: string;
3350
+ rule_content: string;
3351
+ }>;
3352
+ }>;
3540
3353
  title?: string;
3541
3354
  input_titles?: {
3542
3355
  [key: string]: string;
@@ -3555,6 +3368,7 @@ export declare function createAgent(transport: Transport): {
3555
3368
  };
3556
3369
  source?: "app" | "codemode";
3557
3370
  } | {
3371
+ full_access_available?: boolean;
3558
3372
  id: string;
3559
3373
  input: Types.AgentManaged206;
3560
3374
  name: string;
@@ -3564,6 +3378,17 @@ export declare function createAgent(transport: Transport): {
3564
3378
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
3565
3379
  session_thread_id?: null | string;
3566
3380
  run_id: string | null;
3381
+ user_once?: true;
3382
+ guarded_rule?: string;
3383
+ permission_suggestions?: Array<{
3384
+ type: "add_rules";
3385
+ behavior: "allow";
3386
+ destination: "agent" | "session";
3387
+ rules: Array<{
3388
+ tool_name: string;
3389
+ rule_content: string;
3390
+ }>;
3391
+ }>;
3567
3392
  } | {
3568
3393
  id: string;
3569
3394
  processed_at: string;
@@ -3584,6 +3409,9 @@ export declare function createAgent(transport: Transport): {
3584
3409
  type: "session.status_idle";
3585
3410
  run_id: string | null;
3586
3411
  } | 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 | {
3412
+ permission_mode_version?: number;
3413
+ previous_permission_mode?: string | null;
3414
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
3587
3415
  id: string;
3588
3416
  processed_at: string;
3589
3417
  type: "session.updated";
@@ -3852,6 +3680,13 @@ export declare function createAutomation(transport: Transport): {
3852
3680
  hooks: {
3853
3681
  send: (options: import("./core/transport.js").CallOptions<Types.AutomationHooksReceiveData>) => Promise<Types.AutomationFiring>;
3854
3682
  };
3683
+ humanTasks: {
3684
+ cancel: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksCancelData>) => Promise<Types.AutomationHumanTask>;
3685
+ delegate: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksDelegateData>) => Promise<Types.AutomationHumanTask>;
3686
+ list: (options?: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksListData> | undefined) => Promise<import("./automation.js").Page<Types.AutomationHumanTask>>;
3687
+ respond: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksRespondData>) => Promise<Types.AutomationHumanTask>;
3688
+ retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationHumanTasksGetData>) => Promise<Types.AutomationHumanTask>;
3689
+ };
3855
3690
  resolve: {
3856
3691
  retrieve: (options: import("./core/transport.js").CallOptions<Types.AutomationResolveResolveData>) => Promise<Types.AutomationResolveResult>;
3857
3692
  };