@deepraxis/sdk 0.1.1-dev.b176367 → 0.1.1-dev.b71d0f4

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,40 +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
- cost_micro_usd: number;
364
- blocked: boolean;
370
+ cost: {
371
+ amount: string;
372
+ currency: "USD";
373
+ };
365
374
  }>;
366
375
  };
367
- delete: (options: import("./core/transport.js").CallOptions<Types.DeleteEndUserData>) => Promise<{
376
+ delete: (options: import("./core/transport.js").CallOptions<Types.DeleteCustomerData>) => Promise<{
368
377
  id: string;
369
378
  status: "pending";
370
379
  }>;
371
- list: (options: import("./core/transport.js").CallOptions<Types.ListEndUsersData>) => Promise<{
380
+ list: (options: import("./core/transport.js").CallOptions<Types.ListCustomersData>) => Promise<{
372
381
  data: Array<{
373
- external_user_id: string;
382
+ id: string;
383
+ type: "identified" | "anonymous";
384
+ merged_into: string | null;
385
+ blocked: boolean;
374
386
  first_seen_at: string | null;
375
- last_active_at: string | null;
387
+ last_seen_at: string | null;
376
388
  session_count: number;
377
- cost_micro_usd: number;
378
- blocked: boolean;
389
+ cost: {
390
+ amount: string;
391
+ currency: "USD";
392
+ };
379
393
  }>;
380
394
  next_page: string | null;
381
395
  }>;
382
- retrieve: (options: import("./core/transport.js").CallOptions<Types.GetEndUserData>) => Promise<{
383
- 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;
384
401
  first_seen_at: string | null;
385
- last_active_at: string | null;
402
+ last_seen_at: string | null;
386
403
  session_count: number;
387
- cost_micro_usd: number;
388
- blocked: boolean;
404
+ cost: {
405
+ amount: string;
406
+ currency: "USD";
407
+ };
389
408
  recent_sessions: Array<{
390
409
  id: string;
391
410
  title: string | null;
@@ -394,7 +413,7 @@ export declare function createAgent(transport: Transport): {
394
413
  updated_at: string;
395
414
  }>;
396
415
  }>;
397
- retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetEndUserDeletionData>) => Promise<{
416
+ retrieveDeletion: (options: import("./core/transport.js").CallOptions<Types.GetCustomerDeletionData>) => Promise<{
398
417
  id: string;
399
418
  status: "pending" | "snapshotting" | "deleting" | "done" | "failed";
400
419
  counts: {
@@ -410,18 +429,23 @@ export declare function createAgent(transport: Transport): {
410
429
  updated_at: string;
411
430
  }>;
412
431
  revokeTokens: {
413
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEndUserTokensData>) => Promise<{
432
+ create: (options: import("./core/transport.js").CallOptions<Types.RevokeCustomerTokensData>) => Promise<{
414
433
  revoked: number;
415
434
  }>;
416
435
  };
417
436
  unblock: {
418
- create: (options: import("./core/transport.js").CallOptions<Types.UnblockEndUserData>) => Promise<{
419
- 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;
420
442
  first_seen_at: string | null;
421
- last_active_at: string | null;
443
+ last_seen_at: string | null;
422
444
  session_count: number;
423
- cost_micro_usd: number;
424
- blocked: boolean;
445
+ cost: {
446
+ amount: string;
447
+ currency: "USD";
448
+ };
425
449
  }>;
426
450
  };
427
451
  };
@@ -465,14 +489,17 @@ export declare function createAgent(transport: Transport): {
465
489
  id: string;
466
490
  access: "read_only" | "read_write" | "invoke";
467
491
  instructions?: string;
492
+ readonly verified?: boolean;
468
493
  enabled?: boolean;
469
494
  } | {
470
495
  type: "search" | "browser";
496
+ readonly verified?: boolean;
471
497
  enabled?: boolean;
472
498
  }>;
473
499
  kind: "personal" | "service";
474
500
  computer_id?: string;
475
501
  subagent_model?: string | null;
502
+ image_model?: string | null;
476
503
  subagents?: Array<{
477
504
  name: string;
478
505
  description: string;
@@ -608,6 +635,7 @@ export declare function createAgent(transport: Transport): {
608
635
  type: "agent";
609
636
  updated_at: string;
610
637
  version: number;
638
+ latest_version?: number;
611
639
  active_version: number;
612
640
  created_by: {
613
641
  type: "user";
@@ -623,14 +651,17 @@ export declare function createAgent(transport: Transport): {
623
651
  id: string;
624
652
  access: "read_only" | "read_write" | "invoke";
625
653
  instructions?: string;
654
+ readonly verified?: boolean;
626
655
  enabled?: boolean;
627
656
  } | {
628
657
  type: "search" | "browser";
658
+ readonly verified?: boolean;
629
659
  enabled?: boolean;
630
660
  }>;
631
661
  kind: "personal" | "service";
632
662
  computer_id?: string;
633
663
  subagent_model?: string | null;
664
+ image_model?: string | null;
634
665
  subagents?: Array<{
635
666
  name: string;
636
667
  description: string;
@@ -740,6 +771,64 @@ export declare function createAgent(transport: Transport): {
740
771
  vault_ids?: Array<string>;
741
772
  status: "active" | "archived";
742
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
+ }>;
743
832
  unarchive: {
744
833
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
745
834
  id: string;
@@ -967,6 +1056,7 @@ export declare function createAgent(transport: Transport): {
967
1056
  type: "agent";
968
1057
  updated_at: string;
969
1058
  version: number;
1059
+ latest_version?: number;
970
1060
  active_version: number;
971
1061
  created_by: {
972
1062
  type: "user";
@@ -982,14 +1072,17 @@ export declare function createAgent(transport: Transport): {
982
1072
  id: string;
983
1073
  access: "read_only" | "read_write" | "invoke";
984
1074
  instructions?: string;
1075
+ readonly verified?: boolean;
985
1076
  enabled?: boolean;
986
1077
  } | {
987
1078
  type: "search" | "browser";
1079
+ readonly verified?: boolean;
988
1080
  enabled?: boolean;
989
1081
  }>;
990
1082
  kind: "personal" | "service";
991
1083
  computer_id?: string;
992
1084
  subagent_model?: string | null;
1085
+ image_model?: string | null;
993
1086
  subagents?: Array<{
994
1087
  name: string;
995
1088
  description: string;
@@ -1124,6 +1217,7 @@ export declare function createAgent(transport: Transport): {
1124
1217
  type: "agent";
1125
1218
  updated_at: string;
1126
1219
  version: number;
1220
+ latest_version?: number;
1127
1221
  active_version: number;
1128
1222
  created_by: {
1129
1223
  type: "user";
@@ -1139,14 +1233,17 @@ export declare function createAgent(transport: Transport): {
1139
1233
  id: string;
1140
1234
  access: "read_only" | "read_write" | "invoke";
1141
1235
  instructions?: string;
1236
+ readonly verified?: boolean;
1142
1237
  enabled?: boolean;
1143
1238
  } | {
1144
1239
  type: "search" | "browser";
1240
+ readonly verified?: boolean;
1145
1241
  enabled?: boolean;
1146
1242
  }>;
1147
1243
  kind: "personal" | "service";
1148
1244
  computer_id?: string;
1149
1245
  subagent_model?: string | null;
1246
+ image_model?: string | null;
1150
1247
  subagents?: Array<{
1151
1248
  name: string;
1152
1249
  description: string;
@@ -1262,227 +1359,26 @@ export declare function createAgent(transport: Transport): {
1262
1359
  archived_at: null | string;
1263
1360
  created_at: string;
1264
1361
  description: null | string;
1265
- mcp_servers: Array<{
1266
- type: "url";
1267
- name: string;
1268
- url: string;
1269
- headers?: {
1270
- [key: string]: string;
1271
- };
1272
- timeout_ms?: number;
1273
- } | {
1274
- type: "sse";
1275
- name: string;
1276
- url: string;
1277
- headers?: {
1278
- [key: string]: string;
1279
- };
1280
- timeout_ms?: number;
1281
- } | {
1282
- type: "stdio";
1283
- name: string;
1284
- command: string;
1285
- args?: Array<string>;
1286
- env?: {
1287
- [key: string]: string;
1288
- };
1289
- timeout_ms?: number;
1290
- }>;
1291
- metadata: {
1292
- [key: string]: string;
1293
- };
1362
+ mcp_servers: Array<Types.AgentManaged36>;
1363
+ metadata: Types.AgentManaged37;
1294
1364
  model: {
1295
1365
  id: string;
1296
- effort?: {
1297
- type: "low";
1298
- } | {
1299
- type: "medium";
1300
- } | {
1301
- type: "high";
1302
- } | {
1303
- type: "xhigh";
1304
- } | {
1305
- type: "max";
1306
- };
1366
+ effort?: Types.AgentManaged2 | Types.AgentManaged3 | Types.AgentManaged4 | Types.AgentManaged5 | Types.AgentManaged6;
1307
1367
  inference_geo?: string;
1308
1368
  speed?: "standard" | "fast";
1309
1369
  settings?: {
1310
1370
  reasoning?: "low" | "medium" | "high" | "xhigh" | "max" | "none";
1311
1371
  };
1312
1372
  };
1313
- multiagent: null | {
1314
- agents: Array<{
1315
- id: string;
1316
- type: "agent";
1317
- version: number;
1318
- } | {
1319
- model: string;
1320
- type: "advisor";
1321
- }>;
1322
- type: "coordinator";
1323
- };
1373
+ multiagent: null | Types.AgentManaged39;
1324
1374
  name: string;
1325
- skills: Array<{
1326
- skill_id: string;
1327
- type: "anthropic";
1328
- version: string;
1329
- } | {
1330
- skill_id: string;
1331
- type: "custom";
1332
- version: string;
1333
- }>;
1375
+ skills: Array<Types.AgentManaged42 | Types.AgentManaged43>;
1334
1376
  system: null | string;
1335
- tools: Array<{
1336
- configs: Array<{
1337
- enabled: boolean;
1338
- name: "bash";
1339
- permission_policy: {
1340
- type: "always_allow";
1341
- } | {
1342
- type: "always_ask";
1343
- } | {
1344
- type: "auto";
1345
- };
1346
- type: "bash";
1347
- } | {
1348
- enabled: boolean;
1349
- name: "edit";
1350
- permission_policy: {
1351
- type: "always_allow";
1352
- } | {
1353
- type: "always_ask";
1354
- } | {
1355
- type: "auto";
1356
- };
1357
- type: "edit";
1358
- } | {
1359
- enabled: boolean;
1360
- name: "read";
1361
- permission_policy: {
1362
- type: "always_allow";
1363
- } | {
1364
- type: "always_ask";
1365
- } | {
1366
- type: "auto";
1367
- };
1368
- type: "read";
1369
- } | {
1370
- enabled: boolean;
1371
- name: "write";
1372
- permission_policy: {
1373
- type: "always_allow";
1374
- } | {
1375
- type: "always_ask";
1376
- } | {
1377
- type: "auto";
1378
- };
1379
- type: "write";
1380
- } | {
1381
- enabled: boolean;
1382
- name: "glob";
1383
- permission_policy: {
1384
- type: "always_allow";
1385
- } | {
1386
- type: "always_ask";
1387
- } | {
1388
- type: "auto";
1389
- };
1390
- type: "glob";
1391
- } | {
1392
- enabled: boolean;
1393
- name: "grep";
1394
- permission_policy: {
1395
- type: "always_allow";
1396
- } | {
1397
- type: "always_ask";
1398
- } | {
1399
- type: "auto";
1400
- };
1401
- type: "grep";
1402
- } | {
1403
- enabled: boolean;
1404
- name: "web_fetch";
1405
- permission_policy: {
1406
- type: "always_allow";
1407
- } | {
1408
- type: "always_ask";
1409
- } | {
1410
- type: "auto";
1411
- };
1412
- type: "web_fetch";
1413
- allowed_domains?: Array<string>;
1414
- blocked_domains?: Array<string>;
1415
- max_content_tokens?: null | number;
1416
- } | {
1417
- enabled: boolean;
1418
- name: "web_search";
1419
- permission_policy: {
1420
- type: "always_allow";
1421
- } | {
1422
- type: "always_ask";
1423
- } | {
1424
- type: "auto";
1425
- };
1426
- type: "web_search";
1427
- allowed_domains?: Array<string>;
1428
- blocked_domains?: Array<string>;
1429
- user_location?: null | {
1430
- type: "approximate";
1431
- city?: null | string;
1432
- country?: null | string;
1433
- region?: null | string;
1434
- timezone?: null | string;
1435
- };
1436
- } | {
1437
- name: "task_output" | "task_stop" | "monitor" | "agent" | "send_message" | "codemode" | "skill";
1438
- enabled: boolean;
1439
- permission_policy: {
1440
- type: "always_allow" | "always_ask";
1441
- };
1442
- }>;
1443
- default_config: {
1444
- enabled: boolean;
1445
- permission_policy: {
1446
- type: "always_allow";
1447
- } | {
1448
- type: "always_ask";
1449
- } | {
1450
- type: "auto";
1451
- };
1452
- };
1453
- type: "agent_toolset_20260401";
1454
- } | {
1455
- type: "mcp_toolset";
1456
- mcp_server_name: string;
1457
- default_config?: {
1458
- enabled?: boolean | null;
1459
- permission_policy?: null | {
1460
- type: "always_allow" | "always_ask";
1461
- };
1462
- } | null;
1463
- configs?: Array<{
1464
- name: string;
1465
- enabled?: boolean | null;
1466
- permission_policy?: null | {
1467
- type: "always_allow" | "always_ask";
1468
- };
1469
- }> | null;
1470
- } | {
1471
- description: string;
1472
- input_schema: {
1473
- type: "object";
1474
- properties?: null | {
1475
- [key: string]: unknown;
1476
- };
1477
- required?: null | Array<string>;
1478
- [key: string]: unknown;
1479
- };
1480
- name: string;
1481
- type: "custom";
1482
- }>;
1377
+ tools: Array<Types.AgentManaged44 | Types.AgentManaged54 | Types.AgentManaged57>;
1483
1378
  type: "agent";
1484
1379
  updated_at: string;
1485
1380
  version: number;
1381
+ latest_version?: number;
1486
1382
  active_version: number;
1487
1383
  created_by: {
1488
1384
  type: "user";
@@ -1498,14 +1394,17 @@ export declare function createAgent(transport: Transport): {
1498
1394
  id: string;
1499
1395
  access: "read_only" | "read_write" | "invoke";
1500
1396
  instructions?: string;
1397
+ readonly verified?: boolean;
1501
1398
  enabled?: boolean;
1502
1399
  } | {
1503
1400
  type: "search" | "browser";
1401
+ readonly verified?: boolean;
1504
1402
  enabled?: boolean;
1505
1403
  }>;
1506
1404
  kind: "personal" | "service";
1507
1405
  computer_id?: string;
1508
1406
  subagent_model?: string | null;
1407
+ image_model?: string | null;
1509
1408
  subagents?: Array<{
1510
1409
  name: string;
1511
1410
  description: string;
@@ -1656,14 +1555,17 @@ export declare function createAgent(transport: Transport): {
1656
1555
  id: string;
1657
1556
  access: "read_only" | "read_write" | "invoke";
1658
1557
  instructions?: string;
1558
+ readonly verified?: boolean;
1659
1559
  enabled?: boolean;
1660
1560
  } | {
1661
1561
  type: "search" | "browser";
1562
+ readonly verified?: boolean;
1662
1563
  enabled?: boolean;
1663
1564
  }>;
1664
1565
  kind: "personal" | "service";
1665
1566
  computer_id?: string;
1666
1567
  subagent_model?: string | null;
1568
+ image_model?: string | null;
1667
1569
  subagents?: Array<{
1668
1570
  name: string;
1669
1571
  description: string;
@@ -1917,7 +1819,7 @@ export declare function createAgent(transport: Transport): {
1917
1819
  } | {
1918
1820
  id: string;
1919
1821
  type: "agent_with_overrides";
1920
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1822
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1921
1823
  cwd?: string;
1922
1824
  model?: string | {
1923
1825
  id: string;
@@ -1954,7 +1856,7 @@ export declare function createAgent(transport: Transport): {
1954
1856
  } | {
1955
1857
  id: string;
1956
1858
  type: "agent_with_overrides";
1957
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1859
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1958
1860
  cwd?: string;
1959
1861
  model?: string | {
1960
1862
  id: string;
@@ -1992,7 +1894,7 @@ export declare function createAgent(transport: Transport): {
1992
1894
  } | {
1993
1895
  id: string;
1994
1896
  type: "agent_with_overrides";
1995
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1897
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
1996
1898
  cwd?: string;
1997
1899
  model?: string | {
1998
1900
  id: string;
@@ -2031,7 +1933,7 @@ export declare function createAgent(transport: Transport): {
2031
1933
  } | {
2032
1934
  id: string;
2033
1935
  type: "agent_with_overrides";
2034
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1936
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2035
1937
  cwd?: string;
2036
1938
  model?: string | {
2037
1939
  id: string;
@@ -2068,7 +1970,7 @@ export declare function createAgent(transport: Transport): {
2068
1970
  } | {
2069
1971
  id: string;
2070
1972
  type: "agent_with_overrides";
2071
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
1973
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2072
1974
  cwd?: string;
2073
1975
  model?: string | {
2074
1976
  id: string;
@@ -2109,7 +2011,7 @@ export declare function createAgent(transport: Transport): {
2109
2011
  } | {
2110
2012
  id: string;
2111
2013
  type: "agent_with_overrides";
2112
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2014
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2113
2015
  cwd?: string;
2114
2016
  model?: string | {
2115
2017
  id: string;
@@ -2147,7 +2049,7 @@ export declare function createAgent(transport: Transport): {
2147
2049
  } | {
2148
2050
  id: string;
2149
2051
  type: "agent_with_overrides";
2150
- permission_mode?: "build" | "edit" | "plan" | "yolo" | null;
2052
+ permission_mode?: "build" | "edit" | "plan" | "yolo" | "guarded" | null;
2151
2053
  cwd?: string;
2152
2054
  model?: string | {
2153
2055
  id: string;
@@ -2176,122 +2078,6 @@ export declare function createAgent(transport: Transport): {
2176
2078
  };
2177
2079
  }>;
2178
2080
  };
2179
- embed: {
2180
- exchange: {
2181
- create: (options: import("./core/transport.js").CallOptions<Types.ExchangeEmbedCodeData>) => Promise<{
2182
- token: string;
2183
- expires_at: string;
2184
- }>;
2185
- };
2186
- retrieveAppearance: (options?: import("./core/transport.js").CallOptions<Types.GetEmbedAppearanceData> | undefined) => Promise<{
2187
- agent?: {
2188
- name?: string;
2189
- avatar?: string;
2190
- };
2191
- layout?: "inline" | "sidebar" | "popup" | "modal";
2192
- launcher?: {
2193
- type: "none" | "bubble" | "mascot";
2194
- pack?: {
2195
- preset?: "mint" | "cat" | "bot";
2196
- images?: {
2197
- idle: string;
2198
- greet?: string;
2199
- listening?: string;
2200
- thinking?: string;
2201
- talking?: string;
2202
- "talking-2"?: string;
2203
- sorry?: string;
2204
- sleep?: string;
2205
- };
2206
- };
2207
- image?: string;
2208
- motion?: "float" | "none";
2209
- position?: "bottom-right" | "bottom-left";
2210
- label?: string;
2211
- };
2212
- header?: {
2213
- title?: string;
2214
- subtitle?: string;
2215
- icon?: string;
2216
- };
2217
- theme?: {
2218
- colorScheme?: "light" | "dark" | "system";
2219
- accent?: string;
2220
- surface?: string;
2221
- grayscale?: "neutral" | "warm" | "cool";
2222
- radius?: "none" | "sm" | "md" | "lg" | "full";
2223
- density?: "compact" | "normal" | "spacious";
2224
- fontFamily?: string;
2225
- fontSize?: number;
2226
- };
2227
- locale?: "zh" | "en";
2228
- startScreen?: {
2229
- greeting?: string;
2230
- prompts?: Array<{
2231
- label: string;
2232
- prompt: string;
2233
- }>;
2234
- };
2235
- composer?: {
2236
- placeholder?: string;
2237
- };
2238
- disclaimer?: string;
2239
- footer?: string;
2240
- history?: {
2241
- enabled?: boolean;
2242
- };
2243
- }>;
2244
- };
2245
- embedTokens: {
2246
- anonymous: {
2247
- create: (options: import("./core/transport.js").CallOptions<Types.CreateAnonymousEmbedTokenData>) => Promise<{
2248
- token: string;
2249
- expires_at: string;
2250
- visitor_secret?: string;
2251
- }>;
2252
- };
2253
- create: (options: import("./core/transport.js").CallOptions<Types.CreateEmbedTokenData>) => Promise<{
2254
- hosted_url?: string;
2255
- id: string;
2256
- token: string;
2257
- expires_at: string;
2258
- }>;
2259
- list: (options?: import("./core/transport.js").CallOptions<Types.ListEmbedTokensData> | undefined) => Promise<{
2260
- data: Array<{
2261
- id: string;
2262
- type: "embed_token";
2263
- agent_id: string;
2264
- agent_version: number;
2265
- external_user_id: string;
2266
- created_at: string;
2267
- expires_at: string;
2268
- revoked_at: string | null;
2269
- host_origin: string | null;
2270
- issued_by: {
2271
- type: "user" | "api_key";
2272
- id: string;
2273
- };
2274
- }>;
2275
- next_page: string | null;
2276
- }>;
2277
- revoke: {
2278
- create: (options: import("./core/transport.js").CallOptions<Types.RevokeEmbedTokenData>) => Promise<{
2279
- id: string;
2280
- type: "embed_token";
2281
- agent_id: string;
2282
- agent_version: number;
2283
- external_user_id: string;
2284
- created_at: string;
2285
- expires_at: string;
2286
- revoked_at: string | null;
2287
- host_origin: string | null;
2288
- issued_by: {
2289
- type: "user" | "api_key";
2290
- id: string;
2291
- };
2292
- }>;
2293
- };
2294
- };
2295
2081
  environments: {
2296
2082
  archive: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsArchiveData>) => Promise<Types.AgentManaged138>;
2297
2083
  create: (options: import("./core/transport.js").CallOptions<Types.EnvironmentsCreateData>) => Promise<Types.AgentManaged138>;
@@ -2523,6 +2309,7 @@ export declare function createAgent(transport: Transport): {
2523
2309
  run_id: string | null;
2524
2310
  message_id?: string;
2525
2311
  } | {
2312
+ full_access_available?: boolean;
2526
2313
  id: string;
2527
2314
  input: Types.AgentManaged197;
2528
2315
  mcp_server_name: string;
@@ -2545,6 +2332,17 @@ export declare function createAgent(transport: Transport): {
2545
2332
  };
2546
2333
  source?: "app" | "codemode";
2547
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
+ }>;
2548
2346
  title?: string;
2549
2347
  input_titles?: {
2550
2348
  [key: string]: string;
@@ -2563,6 +2361,7 @@ export declare function createAgent(transport: Transport): {
2563
2361
  };
2564
2362
  source?: "app" | "codemode";
2565
2363
  } | {
2364
+ full_access_available?: boolean;
2566
2365
  id: string;
2567
2366
  input: Types.AgentManaged206;
2568
2367
  name: string;
@@ -2572,6 +2371,17 @@ export declare function createAgent(transport: Transport): {
2572
2371
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
2573
2372
  session_thread_id?: null | string;
2574
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
+ }>;
2575
2385
  } | {
2576
2386
  id: string;
2577
2387
  processed_at: string;
@@ -2592,6 +2402,9 @@ export declare function createAgent(transport: Transport): {
2592
2402
  type: "session.status_idle";
2593
2403
  run_id: string | null;
2594
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;
2595
2408
  id: string;
2596
2409
  processed_at: string;
2597
2410
  type: "session.updated";
@@ -3213,6 +3026,10 @@ export declare function createAgent(transport: Transport): {
3213
3026
  web_fetch_requests?: number;
3214
3027
  web_search_requests?: number;
3215
3028
  };
3029
+ cost_by_product?: {
3030
+ [key: string]: string;
3031
+ };
3032
+ subagent_cost_micro_usd?: number;
3216
3033
  };
3217
3034
  vault_ids: Array<string>;
3218
3035
  deployment_id?: null | string;
@@ -3499,6 +3316,7 @@ export declare function createAgent(transport: Transport): {
3499
3316
  run_id: string | null;
3500
3317
  message_id?: string;
3501
3318
  } | {
3319
+ full_access_available?: boolean;
3502
3320
  id: string;
3503
3321
  input: Types.AgentManaged197;
3504
3322
  mcp_server_name: string;
@@ -3521,6 +3339,17 @@ export declare function createAgent(transport: Transport): {
3521
3339
  };
3522
3340
  };
3523
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
+ }>;
3524
3353
  title?: string;
3525
3354
  input_titles?: {
3526
3355
  [key: string]: string;
@@ -3539,6 +3368,7 @@ export declare function createAgent(transport: Transport): {
3539
3368
  };
3540
3369
  source?: "app" | "codemode";
3541
3370
  } | {
3371
+ full_access_available?: boolean;
3542
3372
  id: string;
3543
3373
  input: Types.AgentManaged206;
3544
3374
  name: string;
@@ -3548,6 +3378,17 @@ export declare function createAgent(transport: Transport): {
3548
3378
  evaluation?: Types.AgentManaged198 | Types.AgentManaged199 | Types.AgentManaged200;
3549
3379
  session_thread_id?: null | string;
3550
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
+ }>;
3551
3392
  } | {
3552
3393
  id: string;
3553
3394
  processed_at: string;
@@ -3568,6 +3409,9 @@ export declare function createAgent(transport: Transport): {
3568
3409
  type: "session.status_idle";
3569
3410
  run_id: string | null;
3570
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;
3571
3415
  id: string;
3572
3416
  processed_at: string;
3573
3417
  type: "session.updated";