@illalabs/interfaces 0.4.0-canary-dev-39a7ed21 → 0.4.0-canary-beta-e22dfc29

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.
@@ -4,20 +4,20 @@ import { z } from "zod";
4
4
  * Telemetry event type enum values.
5
5
  * Used to infer TelemetryEventType in types/telemetry.ts
6
6
  */
7
- export declare const telemetryEventTypes: readonly ["iteration_start", "iteration_end", "tool_call_batch", "tool_result", "scratchpad_reset", "llm_start", "llm_end", "text_delta", "finish", "error", "connected", "stream_end"];
7
+ export declare const telemetryEventTypes: readonly ["iteration_start", "iteration_end", "tool_call_batch", "tool_result", "scratchpad_reset", "llm_start", "llm_end", "text_delta", "finish", "error", "connected", "stream_end", "plan_generated"];
8
8
  /**
9
9
  * Base telemetry event schema with common fields
10
10
  */
11
11
  export declare const baseTelemetryEventSchema: z.ZodObject<{
12
12
  requestId: z.ZodString;
13
- type: z.ZodEnum<["iteration_start", "iteration_end", "tool_call_batch", "tool_result", "scratchpad_reset", "llm_start", "llm_end", "text_delta", "finish", "error", "connected", "stream_end"]>;
13
+ type: z.ZodEnum<["iteration_start", "iteration_end", "tool_call_batch", "tool_result", "scratchpad_reset", "llm_start", "llm_end", "text_delta", "finish", "error", "connected", "stream_end", "plan_generated"]>;
14
14
  timestamp: z.ZodOptional<z.ZodNumber>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- type: "error" | "iteration_start" | "iteration_end" | "tool_call_batch" | "tool_result" | "scratchpad_reset" | "llm_start" | "llm_end" | "text_delta" | "finish" | "connected" | "stream_end";
16
+ type: "error" | "iteration_start" | "iteration_end" | "tool_call_batch" | "tool_result" | "scratchpad_reset" | "llm_start" | "llm_end" | "text_delta" | "finish" | "connected" | "stream_end" | "plan_generated";
17
17
  requestId: string;
18
18
  timestamp?: number | undefined;
19
19
  }, {
20
- type: "error" | "iteration_start" | "iteration_end" | "tool_call_batch" | "tool_result" | "scratchpad_reset" | "llm_start" | "llm_end" | "text_delta" | "finish" | "connected" | "stream_end";
20
+ type: "error" | "iteration_start" | "iteration_end" | "tool_call_batch" | "tool_result" | "scratchpad_reset" | "llm_start" | "llm_end" | "text_delta" | "finish" | "connected" | "stream_end" | "plan_generated";
21
21
  requestId: string;
22
22
  timestamp?: number | undefined;
23
23
  }>;
@@ -472,6 +472,26 @@ export declare const errorTelemetryEventSchema: z.ZodObject<{
472
472
  requestId: string;
473
473
  timestamp?: number | undefined;
474
474
  }>;
475
+ /**
476
+ * Plan generated event schema - emitted when a plan is generated by the planning agent.
477
+ */
478
+ export declare const planGeneratedEventSchema: z.ZodObject<{
479
+ requestId: z.ZodString;
480
+ timestamp: z.ZodOptional<z.ZodNumber>;
481
+ } & {
482
+ type: z.ZodLiteral<"plan_generated">;
483
+ planId: z.ZodString;
484
+ }, "strip", z.ZodTypeAny, {
485
+ type: "plan_generated";
486
+ requestId: string;
487
+ planId: string;
488
+ timestamp?: number | undefined;
489
+ }, {
490
+ type: "plan_generated";
491
+ requestId: string;
492
+ planId: string;
493
+ timestamp?: number | undefined;
494
+ }>;
475
495
  /**
476
496
  * Schema for validating telemetry events.
477
497
  * Discriminated union using the "type" field.
@@ -878,6 +898,22 @@ export declare const telemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
878
898
  };
879
899
  requestId: string;
880
900
  timestamp?: number | undefined;
901
+ }>, z.ZodObject<{
902
+ requestId: z.ZodString;
903
+ timestamp: z.ZodOptional<z.ZodNumber>;
904
+ } & {
905
+ type: z.ZodLiteral<"plan_generated">;
906
+ planId: z.ZodString;
907
+ }, "strip", z.ZodTypeAny, {
908
+ type: "plan_generated";
909
+ requestId: string;
910
+ planId: string;
911
+ timestamp?: number | undefined;
912
+ }, {
913
+ type: "plan_generated";
914
+ requestId: string;
915
+ planId: string;
916
+ timestamp?: number | undefined;
881
917
  }>]>;
882
918
  /**
883
919
  * Schema for validating result events from the streaming endpoint.
@@ -1233,6 +1269,459 @@ export declare const resultEventDataSchema: z.ZodObject<{
1233
1269
  }[] | undefined;
1234
1270
  };
1235
1271
  type: "SignatureRequests";
1272
+ }>, z.ZodObject<{
1273
+ type: z.ZodLiteral<"ActionSequence">;
1274
+ value: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1275
+ type: z.ZodLiteral<"SingleTransaction">;
1276
+ value: z.ZodObject<{
1277
+ transaction: z.ZodType<import("viem").PrepareTransactionRequestReturnType>;
1278
+ metadata: z.ZodOptional<z.ZodObject<{
1279
+ explorerUrl: z.ZodOptional<z.ZodString>;
1280
+ usdValue: z.ZodOptional<z.ZodString>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ explorerUrl?: string | undefined;
1283
+ usdValue?: string | undefined;
1284
+ }, {
1285
+ explorerUrl?: string | undefined;
1286
+ usdValue?: string | undefined;
1287
+ }>>;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1290
+ metadata?: {
1291
+ explorerUrl?: string | undefined;
1292
+ usdValue?: string | undefined;
1293
+ } | undefined;
1294
+ }, {
1295
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1296
+ metadata?: {
1297
+ explorerUrl?: string | undefined;
1298
+ usdValue?: string | undefined;
1299
+ } | undefined;
1300
+ }>;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ value: {
1303
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1304
+ metadata?: {
1305
+ explorerUrl?: string | undefined;
1306
+ usdValue?: string | undefined;
1307
+ } | undefined;
1308
+ };
1309
+ type: "SingleTransaction";
1310
+ }, {
1311
+ value: {
1312
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1313
+ metadata?: {
1314
+ explorerUrl?: string | undefined;
1315
+ usdValue?: string | undefined;
1316
+ } | undefined;
1317
+ };
1318
+ type: "SingleTransaction";
1319
+ }>, z.ZodObject<{
1320
+ type: z.ZodLiteral<"BatchTransactions">;
1321
+ value: z.ZodArray<z.ZodObject<{
1322
+ transaction: z.ZodType<import("viem").PrepareTransactionRequestReturnType>;
1323
+ metadata: z.ZodOptional<z.ZodObject<{
1324
+ explorerUrl: z.ZodOptional<z.ZodString>;
1325
+ usdValue: z.ZodOptional<z.ZodString>;
1326
+ }, "strip", z.ZodTypeAny, {
1327
+ explorerUrl?: string | undefined;
1328
+ usdValue?: string | undefined;
1329
+ }, {
1330
+ explorerUrl?: string | undefined;
1331
+ usdValue?: string | undefined;
1332
+ }>>;
1333
+ }, "strip", z.ZodTypeAny, {
1334
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1335
+ metadata?: {
1336
+ explorerUrl?: string | undefined;
1337
+ usdValue?: string | undefined;
1338
+ } | undefined;
1339
+ }, {
1340
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1341
+ metadata?: {
1342
+ explorerUrl?: string | undefined;
1343
+ usdValue?: string | undefined;
1344
+ } | undefined;
1345
+ }>, "many">;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ value: {
1348
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1349
+ metadata?: {
1350
+ explorerUrl?: string | undefined;
1351
+ usdValue?: string | undefined;
1352
+ } | undefined;
1353
+ }[];
1354
+ type: "BatchTransactions";
1355
+ }, {
1356
+ value: {
1357
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1358
+ metadata?: {
1359
+ explorerUrl?: string | undefined;
1360
+ usdValue?: string | undefined;
1361
+ } | undefined;
1362
+ }[];
1363
+ type: "BatchTransactions";
1364
+ }>, z.ZodObject<{
1365
+ type: z.ZodLiteral<"SignatureRequests">;
1366
+ value: z.ZodObject<{
1367
+ signatureRequests: z.ZodArray<z.ZodDiscriminatedUnion<"signMethod", [z.ZodObject<{
1368
+ id: z.ZodString;
1369
+ signerAddress: z.ZodString;
1370
+ description: z.ZodOptional<z.ZodString>;
1371
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1372
+ } & {
1373
+ signMethod: z.ZodLiteral<"typedData">;
1374
+ typedData: z.ZodObject<{
1375
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1376
+ name: z.ZodString;
1377
+ type: z.ZodString;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ type: string;
1380
+ name: string;
1381
+ }, {
1382
+ type: string;
1383
+ name: string;
1384
+ }>, "many">>;
1385
+ domain: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1386
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1387
+ primaryType: z.ZodString;
1388
+ }, "strip", z.ZodTypeAny, {
1389
+ message: Record<string, unknown>;
1390
+ types: Record<string, {
1391
+ type: string;
1392
+ name: string;
1393
+ }[]>;
1394
+ domain: Record<string, unknown>;
1395
+ primaryType: string;
1396
+ }, {
1397
+ message: Record<string, unknown>;
1398
+ types: Record<string, {
1399
+ type: string;
1400
+ name: string;
1401
+ }[]>;
1402
+ domain: Record<string, unknown>;
1403
+ primaryType: string;
1404
+ }>;
1405
+ }, "strip", z.ZodTypeAny, {
1406
+ id: string;
1407
+ signerAddress: string;
1408
+ signMethod: "typedData";
1409
+ typedData: {
1410
+ message: Record<string, unknown>;
1411
+ types: Record<string, {
1412
+ type: string;
1413
+ name: string;
1414
+ }[]>;
1415
+ domain: Record<string, unknown>;
1416
+ primaryType: string;
1417
+ };
1418
+ description?: string | undefined;
1419
+ metadata?: Record<string, unknown> | undefined;
1420
+ }, {
1421
+ id: string;
1422
+ signerAddress: string;
1423
+ signMethod: "typedData";
1424
+ typedData: {
1425
+ message: Record<string, unknown>;
1426
+ types: Record<string, {
1427
+ type: string;
1428
+ name: string;
1429
+ }[]>;
1430
+ domain: Record<string, unknown>;
1431
+ primaryType: string;
1432
+ };
1433
+ description?: string | undefined;
1434
+ metadata?: Record<string, unknown> | undefined;
1435
+ }>, z.ZodObject<{
1436
+ id: z.ZodString;
1437
+ signerAddress: z.ZodString;
1438
+ description: z.ZodOptional<z.ZodString>;
1439
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1440
+ } & {
1441
+ signMethod: z.ZodLiteral<"message">;
1442
+ rawHash: z.ZodString;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ id: string;
1445
+ signerAddress: string;
1446
+ signMethod: "message";
1447
+ rawHash: string;
1448
+ description?: string | undefined;
1449
+ metadata?: Record<string, unknown> | undefined;
1450
+ }, {
1451
+ id: string;
1452
+ signerAddress: string;
1453
+ signMethod: "message";
1454
+ rawHash: string;
1455
+ description?: string | undefined;
1456
+ metadata?: Record<string, unknown> | undefined;
1457
+ }>]>, "many">;
1458
+ transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1459
+ transaction: z.ZodType<import("viem").PrepareTransactionRequestReturnType>;
1460
+ metadata: z.ZodOptional<z.ZodObject<{
1461
+ explorerUrl: z.ZodOptional<z.ZodString>;
1462
+ usdValue: z.ZodOptional<z.ZodString>;
1463
+ }, "strip", z.ZodTypeAny, {
1464
+ explorerUrl?: string | undefined;
1465
+ usdValue?: string | undefined;
1466
+ }, {
1467
+ explorerUrl?: string | undefined;
1468
+ usdValue?: string | undefined;
1469
+ }>>;
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1472
+ metadata?: {
1473
+ explorerUrl?: string | undefined;
1474
+ usdValue?: string | undefined;
1475
+ } | undefined;
1476
+ }, {
1477
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1478
+ metadata?: {
1479
+ explorerUrl?: string | undefined;
1480
+ usdValue?: string | undefined;
1481
+ } | undefined;
1482
+ }>, "many">>;
1483
+ }, "strip", z.ZodTypeAny, {
1484
+ signatureRequests: ({
1485
+ id: string;
1486
+ signerAddress: string;
1487
+ signMethod: "typedData";
1488
+ typedData: {
1489
+ message: Record<string, unknown>;
1490
+ types: Record<string, {
1491
+ type: string;
1492
+ name: string;
1493
+ }[]>;
1494
+ domain: Record<string, unknown>;
1495
+ primaryType: string;
1496
+ };
1497
+ description?: string | undefined;
1498
+ metadata?: Record<string, unknown> | undefined;
1499
+ } | {
1500
+ id: string;
1501
+ signerAddress: string;
1502
+ signMethod: "message";
1503
+ rawHash: string;
1504
+ description?: string | undefined;
1505
+ metadata?: Record<string, unknown> | undefined;
1506
+ })[];
1507
+ transactions?: {
1508
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1509
+ metadata?: {
1510
+ explorerUrl?: string | undefined;
1511
+ usdValue?: string | undefined;
1512
+ } | undefined;
1513
+ }[] | undefined;
1514
+ }, {
1515
+ signatureRequests: ({
1516
+ id: string;
1517
+ signerAddress: string;
1518
+ signMethod: "typedData";
1519
+ typedData: {
1520
+ message: Record<string, unknown>;
1521
+ types: Record<string, {
1522
+ type: string;
1523
+ name: string;
1524
+ }[]>;
1525
+ domain: Record<string, unknown>;
1526
+ primaryType: string;
1527
+ };
1528
+ description?: string | undefined;
1529
+ metadata?: Record<string, unknown> | undefined;
1530
+ } | {
1531
+ id: string;
1532
+ signerAddress: string;
1533
+ signMethod: "message";
1534
+ rawHash: string;
1535
+ description?: string | undefined;
1536
+ metadata?: Record<string, unknown> | undefined;
1537
+ })[];
1538
+ transactions?: {
1539
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1540
+ metadata?: {
1541
+ explorerUrl?: string | undefined;
1542
+ usdValue?: string | undefined;
1543
+ } | undefined;
1544
+ }[] | undefined;
1545
+ }>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ value: {
1548
+ signatureRequests: ({
1549
+ id: string;
1550
+ signerAddress: string;
1551
+ signMethod: "typedData";
1552
+ typedData: {
1553
+ message: Record<string, unknown>;
1554
+ types: Record<string, {
1555
+ type: string;
1556
+ name: string;
1557
+ }[]>;
1558
+ domain: Record<string, unknown>;
1559
+ primaryType: string;
1560
+ };
1561
+ description?: string | undefined;
1562
+ metadata?: Record<string, unknown> | undefined;
1563
+ } | {
1564
+ id: string;
1565
+ signerAddress: string;
1566
+ signMethod: "message";
1567
+ rawHash: string;
1568
+ description?: string | undefined;
1569
+ metadata?: Record<string, unknown> | undefined;
1570
+ })[];
1571
+ transactions?: {
1572
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1573
+ metadata?: {
1574
+ explorerUrl?: string | undefined;
1575
+ usdValue?: string | undefined;
1576
+ } | undefined;
1577
+ }[] | undefined;
1578
+ };
1579
+ type: "SignatureRequests";
1580
+ }, {
1581
+ value: {
1582
+ signatureRequests: ({
1583
+ id: string;
1584
+ signerAddress: string;
1585
+ signMethod: "typedData";
1586
+ typedData: {
1587
+ message: Record<string, unknown>;
1588
+ types: Record<string, {
1589
+ type: string;
1590
+ name: string;
1591
+ }[]>;
1592
+ domain: Record<string, unknown>;
1593
+ primaryType: string;
1594
+ };
1595
+ description?: string | undefined;
1596
+ metadata?: Record<string, unknown> | undefined;
1597
+ } | {
1598
+ id: string;
1599
+ signerAddress: string;
1600
+ signMethod: "message";
1601
+ rawHash: string;
1602
+ description?: string | undefined;
1603
+ metadata?: Record<string, unknown> | undefined;
1604
+ })[];
1605
+ transactions?: {
1606
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1607
+ metadata?: {
1608
+ explorerUrl?: string | undefined;
1609
+ usdValue?: string | undefined;
1610
+ } | undefined;
1611
+ }[] | undefined;
1612
+ };
1613
+ type: "SignatureRequests";
1614
+ }>]>, "many">;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ value: ({
1617
+ value: {
1618
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1619
+ metadata?: {
1620
+ explorerUrl?: string | undefined;
1621
+ usdValue?: string | undefined;
1622
+ } | undefined;
1623
+ }[];
1624
+ type: "BatchTransactions";
1625
+ } | {
1626
+ value: {
1627
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1628
+ metadata?: {
1629
+ explorerUrl?: string | undefined;
1630
+ usdValue?: string | undefined;
1631
+ } | undefined;
1632
+ };
1633
+ type: "SingleTransaction";
1634
+ } | {
1635
+ value: {
1636
+ signatureRequests: ({
1637
+ id: string;
1638
+ signerAddress: string;
1639
+ signMethod: "typedData";
1640
+ typedData: {
1641
+ message: Record<string, unknown>;
1642
+ types: Record<string, {
1643
+ type: string;
1644
+ name: string;
1645
+ }[]>;
1646
+ domain: Record<string, unknown>;
1647
+ primaryType: string;
1648
+ };
1649
+ description?: string | undefined;
1650
+ metadata?: Record<string, unknown> | undefined;
1651
+ } | {
1652
+ id: string;
1653
+ signerAddress: string;
1654
+ signMethod: "message";
1655
+ rawHash: string;
1656
+ description?: string | undefined;
1657
+ metadata?: Record<string, unknown> | undefined;
1658
+ })[];
1659
+ transactions?: {
1660
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1661
+ metadata?: {
1662
+ explorerUrl?: string | undefined;
1663
+ usdValue?: string | undefined;
1664
+ } | undefined;
1665
+ }[] | undefined;
1666
+ };
1667
+ type: "SignatureRequests";
1668
+ })[];
1669
+ type: "ActionSequence";
1670
+ }, {
1671
+ value: ({
1672
+ value: {
1673
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1674
+ metadata?: {
1675
+ explorerUrl?: string | undefined;
1676
+ usdValue?: string | undefined;
1677
+ } | undefined;
1678
+ }[];
1679
+ type: "BatchTransactions";
1680
+ } | {
1681
+ value: {
1682
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1683
+ metadata?: {
1684
+ explorerUrl?: string | undefined;
1685
+ usdValue?: string | undefined;
1686
+ } | undefined;
1687
+ };
1688
+ type: "SingleTransaction";
1689
+ } | {
1690
+ value: {
1691
+ signatureRequests: ({
1692
+ id: string;
1693
+ signerAddress: string;
1694
+ signMethod: "typedData";
1695
+ typedData: {
1696
+ message: Record<string, unknown>;
1697
+ types: Record<string, {
1698
+ type: string;
1699
+ name: string;
1700
+ }[]>;
1701
+ domain: Record<string, unknown>;
1702
+ primaryType: string;
1703
+ };
1704
+ description?: string | undefined;
1705
+ metadata?: Record<string, unknown> | undefined;
1706
+ } | {
1707
+ id: string;
1708
+ signerAddress: string;
1709
+ signMethod: "message";
1710
+ rawHash: string;
1711
+ description?: string | undefined;
1712
+ metadata?: Record<string, unknown> | undefined;
1713
+ })[];
1714
+ transactions?: {
1715
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1716
+ metadata?: {
1717
+ explorerUrl?: string | undefined;
1718
+ usdValue?: string | undefined;
1719
+ } | undefined;
1720
+ }[] | undefined;
1721
+ };
1722
+ type: "SignatureRequests";
1723
+ })[];
1724
+ type: "ActionSequence";
1236
1725
  }>]>;
1237
1726
  } & {
1238
1727
  simulation: z.ZodOptional<z.ZodObject<{
@@ -1487,6 +1976,61 @@ export declare const resultEventDataSchema: z.ZodObject<{
1487
1976
  }[] | undefined;
1488
1977
  };
1489
1978
  type: "SignatureRequests";
1979
+ } | {
1980
+ value: ({
1981
+ value: {
1982
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1983
+ metadata?: {
1984
+ explorerUrl?: string | undefined;
1985
+ usdValue?: string | undefined;
1986
+ } | undefined;
1987
+ }[];
1988
+ type: "BatchTransactions";
1989
+ } | {
1990
+ value: {
1991
+ transaction: import("viem").PrepareTransactionRequestReturnType;
1992
+ metadata?: {
1993
+ explorerUrl?: string | undefined;
1994
+ usdValue?: string | undefined;
1995
+ } | undefined;
1996
+ };
1997
+ type: "SingleTransaction";
1998
+ } | {
1999
+ value: {
2000
+ signatureRequests: ({
2001
+ id: string;
2002
+ signerAddress: string;
2003
+ signMethod: "typedData";
2004
+ typedData: {
2005
+ message: Record<string, unknown>;
2006
+ types: Record<string, {
2007
+ type: string;
2008
+ name: string;
2009
+ }[]>;
2010
+ domain: Record<string, unknown>;
2011
+ primaryType: string;
2012
+ };
2013
+ description?: string | undefined;
2014
+ metadata?: Record<string, unknown> | undefined;
2015
+ } | {
2016
+ id: string;
2017
+ signerAddress: string;
2018
+ signMethod: "message";
2019
+ rawHash: string;
2020
+ description?: string | undefined;
2021
+ metadata?: Record<string, unknown> | undefined;
2022
+ })[];
2023
+ transactions?: {
2024
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2025
+ metadata?: {
2026
+ explorerUrl?: string | undefined;
2027
+ usdValue?: string | undefined;
2028
+ } | undefined;
2029
+ }[] | undefined;
2030
+ };
2031
+ type: "SignatureRequests";
2032
+ })[];
2033
+ type: "ActionSequence";
1490
2034
  };
1491
2035
  toolCallId: string;
1492
2036
  toolName: string;
@@ -1590,6 +2134,61 @@ export declare const resultEventDataSchema: z.ZodObject<{
1590
2134
  }[] | undefined;
1591
2135
  };
1592
2136
  type: "SignatureRequests";
2137
+ } | {
2138
+ value: ({
2139
+ value: {
2140
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2141
+ metadata?: {
2142
+ explorerUrl?: string | undefined;
2143
+ usdValue?: string | undefined;
2144
+ } | undefined;
2145
+ }[];
2146
+ type: "BatchTransactions";
2147
+ } | {
2148
+ value: {
2149
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2150
+ metadata?: {
2151
+ explorerUrl?: string | undefined;
2152
+ usdValue?: string | undefined;
2153
+ } | undefined;
2154
+ };
2155
+ type: "SingleTransaction";
2156
+ } | {
2157
+ value: {
2158
+ signatureRequests: ({
2159
+ id: string;
2160
+ signerAddress: string;
2161
+ signMethod: "typedData";
2162
+ typedData: {
2163
+ message: Record<string, unknown>;
2164
+ types: Record<string, {
2165
+ type: string;
2166
+ name: string;
2167
+ }[]>;
2168
+ domain: Record<string, unknown>;
2169
+ primaryType: string;
2170
+ };
2171
+ description?: string | undefined;
2172
+ metadata?: Record<string, unknown> | undefined;
2173
+ } | {
2174
+ id: string;
2175
+ signerAddress: string;
2176
+ signMethod: "message";
2177
+ rawHash: string;
2178
+ description?: string | undefined;
2179
+ metadata?: Record<string, unknown> | undefined;
2180
+ })[];
2181
+ transactions?: {
2182
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2183
+ metadata?: {
2184
+ explorerUrl?: string | undefined;
2185
+ usdValue?: string | undefined;
2186
+ } | undefined;
2187
+ }[] | undefined;
2188
+ };
2189
+ type: "SignatureRequests";
2190
+ })[];
2191
+ type: "ActionSequence";
1593
2192
  };
1594
2193
  toolCallId: string;
1595
2194
  toolName: string;
@@ -1783,6 +2382,61 @@ export declare const resultEventDataSchema: z.ZodObject<{
1783
2382
  }[] | undefined;
1784
2383
  };
1785
2384
  type: "SignatureRequests";
2385
+ } | {
2386
+ value: ({
2387
+ value: {
2388
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2389
+ metadata?: {
2390
+ explorerUrl?: string | undefined;
2391
+ usdValue?: string | undefined;
2392
+ } | undefined;
2393
+ }[];
2394
+ type: "BatchTransactions";
2395
+ } | {
2396
+ value: {
2397
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2398
+ metadata?: {
2399
+ explorerUrl?: string | undefined;
2400
+ usdValue?: string | undefined;
2401
+ } | undefined;
2402
+ };
2403
+ type: "SingleTransaction";
2404
+ } | {
2405
+ value: {
2406
+ signatureRequests: ({
2407
+ id: string;
2408
+ signerAddress: string;
2409
+ signMethod: "typedData";
2410
+ typedData: {
2411
+ message: Record<string, unknown>;
2412
+ types: Record<string, {
2413
+ type: string;
2414
+ name: string;
2415
+ }[]>;
2416
+ domain: Record<string, unknown>;
2417
+ primaryType: string;
2418
+ };
2419
+ description?: string | undefined;
2420
+ metadata?: Record<string, unknown> | undefined;
2421
+ } | {
2422
+ id: string;
2423
+ signerAddress: string;
2424
+ signMethod: "message";
2425
+ rawHash: string;
2426
+ description?: string | undefined;
2427
+ metadata?: Record<string, unknown> | undefined;
2428
+ })[];
2429
+ transactions?: {
2430
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2431
+ metadata?: {
2432
+ explorerUrl?: string | undefined;
2433
+ usdValue?: string | undefined;
2434
+ } | undefined;
2435
+ }[] | undefined;
2436
+ };
2437
+ type: "SignatureRequests";
2438
+ })[];
2439
+ type: "ActionSequence";
1786
2440
  };
1787
2441
  toolCallId: string;
1788
2442
  toolName: string;
@@ -1913,6 +2567,61 @@ export declare const resultEventDataSchema: z.ZodObject<{
1913
2567
  }[] | undefined;
1914
2568
  };
1915
2569
  type: "SignatureRequests";
2570
+ } | {
2571
+ value: ({
2572
+ value: {
2573
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2574
+ metadata?: {
2575
+ explorerUrl?: string | undefined;
2576
+ usdValue?: string | undefined;
2577
+ } | undefined;
2578
+ }[];
2579
+ type: "BatchTransactions";
2580
+ } | {
2581
+ value: {
2582
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2583
+ metadata?: {
2584
+ explorerUrl?: string | undefined;
2585
+ usdValue?: string | undefined;
2586
+ } | undefined;
2587
+ };
2588
+ type: "SingleTransaction";
2589
+ } | {
2590
+ value: {
2591
+ signatureRequests: ({
2592
+ id: string;
2593
+ signerAddress: string;
2594
+ signMethod: "typedData";
2595
+ typedData: {
2596
+ message: Record<string, unknown>;
2597
+ types: Record<string, {
2598
+ type: string;
2599
+ name: string;
2600
+ }[]>;
2601
+ domain: Record<string, unknown>;
2602
+ primaryType: string;
2603
+ };
2604
+ description?: string | undefined;
2605
+ metadata?: Record<string, unknown> | undefined;
2606
+ } | {
2607
+ id: string;
2608
+ signerAddress: string;
2609
+ signMethod: "message";
2610
+ rawHash: string;
2611
+ description?: string | undefined;
2612
+ metadata?: Record<string, unknown> | undefined;
2613
+ })[];
2614
+ transactions?: {
2615
+ transaction: import("viem").PrepareTransactionRequestReturnType;
2616
+ metadata?: {
2617
+ explorerUrl?: string | undefined;
2618
+ usdValue?: string | undefined;
2619
+ } | undefined;
2620
+ }[] | undefined;
2621
+ };
2622
+ type: "SignatureRequests";
2623
+ })[];
2624
+ type: "ActionSequence";
1916
2625
  };
1917
2626
  toolCallId: string;
1918
2627
  toolName: string;
@@ -1984,6 +2693,29 @@ export declare const resultEventDataSchema: z.ZodObject<{
1984
2693
  };
1985
2694
  }[] | undefined;
1986
2695
  }>;
2696
+ /**
2697
+ * Schema for plan approval required result events.
2698
+ * Emitted when a plan requires user approval before execution.
2699
+ */
2700
+ export declare const planApprovalRequiredEventDataSchema: z.ZodObject<{
2701
+ type: z.ZodLiteral<"plan_approval_required">;
2702
+ status: z.ZodLiteral<200>;
2703
+ plan: z.ZodUnknown;
2704
+ requiresApproval: z.ZodBoolean;
2705
+ requestId: z.ZodString;
2706
+ }, "strip", z.ZodTypeAny, {
2707
+ type: "plan_approval_required";
2708
+ status: 200;
2709
+ requestId: string;
2710
+ requiresApproval: boolean;
2711
+ plan?: unknown;
2712
+ }, {
2713
+ type: "plan_approval_required";
2714
+ status: 200;
2715
+ requestId: string;
2716
+ requiresApproval: boolean;
2717
+ plan?: unknown;
2718
+ }>;
1987
2719
  /**
1988
2720
  * Schema for validating error events from the streaming endpoint
1989
2721
  */
@@ -2387,6 +3119,459 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2387
3119
  }[] | undefined;
2388
3120
  };
2389
3121
  type: "SignatureRequests";
3122
+ }>, z.ZodObject<{
3123
+ type: z.ZodLiteral<"ActionSequence">;
3124
+ value: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3125
+ type: z.ZodLiteral<"SingleTransaction">;
3126
+ value: z.ZodObject<{
3127
+ transaction: z.ZodType<import("viem").PrepareTransactionRequestReturnType>;
3128
+ metadata: z.ZodOptional<z.ZodObject<{
3129
+ explorerUrl: z.ZodOptional<z.ZodString>;
3130
+ usdValue: z.ZodOptional<z.ZodString>;
3131
+ }, "strip", z.ZodTypeAny, {
3132
+ explorerUrl?: string | undefined;
3133
+ usdValue?: string | undefined;
3134
+ }, {
3135
+ explorerUrl?: string | undefined;
3136
+ usdValue?: string | undefined;
3137
+ }>>;
3138
+ }, "strip", z.ZodTypeAny, {
3139
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3140
+ metadata?: {
3141
+ explorerUrl?: string | undefined;
3142
+ usdValue?: string | undefined;
3143
+ } | undefined;
3144
+ }, {
3145
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3146
+ metadata?: {
3147
+ explorerUrl?: string | undefined;
3148
+ usdValue?: string | undefined;
3149
+ } | undefined;
3150
+ }>;
3151
+ }, "strip", z.ZodTypeAny, {
3152
+ value: {
3153
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3154
+ metadata?: {
3155
+ explorerUrl?: string | undefined;
3156
+ usdValue?: string | undefined;
3157
+ } | undefined;
3158
+ };
3159
+ type: "SingleTransaction";
3160
+ }, {
3161
+ value: {
3162
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3163
+ metadata?: {
3164
+ explorerUrl?: string | undefined;
3165
+ usdValue?: string | undefined;
3166
+ } | undefined;
3167
+ };
3168
+ type: "SingleTransaction";
3169
+ }>, z.ZodObject<{
3170
+ type: z.ZodLiteral<"BatchTransactions">;
3171
+ value: z.ZodArray<z.ZodObject<{
3172
+ transaction: z.ZodType<import("viem").PrepareTransactionRequestReturnType>;
3173
+ metadata: z.ZodOptional<z.ZodObject<{
3174
+ explorerUrl: z.ZodOptional<z.ZodString>;
3175
+ usdValue: z.ZodOptional<z.ZodString>;
3176
+ }, "strip", z.ZodTypeAny, {
3177
+ explorerUrl?: string | undefined;
3178
+ usdValue?: string | undefined;
3179
+ }, {
3180
+ explorerUrl?: string | undefined;
3181
+ usdValue?: string | undefined;
3182
+ }>>;
3183
+ }, "strip", z.ZodTypeAny, {
3184
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3185
+ metadata?: {
3186
+ explorerUrl?: string | undefined;
3187
+ usdValue?: string | undefined;
3188
+ } | undefined;
3189
+ }, {
3190
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3191
+ metadata?: {
3192
+ explorerUrl?: string | undefined;
3193
+ usdValue?: string | undefined;
3194
+ } | undefined;
3195
+ }>, "many">;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ value: {
3198
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3199
+ metadata?: {
3200
+ explorerUrl?: string | undefined;
3201
+ usdValue?: string | undefined;
3202
+ } | undefined;
3203
+ }[];
3204
+ type: "BatchTransactions";
3205
+ }, {
3206
+ value: {
3207
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3208
+ metadata?: {
3209
+ explorerUrl?: string | undefined;
3210
+ usdValue?: string | undefined;
3211
+ } | undefined;
3212
+ }[];
3213
+ type: "BatchTransactions";
3214
+ }>, z.ZodObject<{
3215
+ type: z.ZodLiteral<"SignatureRequests">;
3216
+ value: z.ZodObject<{
3217
+ signatureRequests: z.ZodArray<z.ZodDiscriminatedUnion<"signMethod", [z.ZodObject<{
3218
+ id: z.ZodString;
3219
+ signerAddress: z.ZodString;
3220
+ description: z.ZodOptional<z.ZodString>;
3221
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3222
+ } & {
3223
+ signMethod: z.ZodLiteral<"typedData">;
3224
+ typedData: z.ZodObject<{
3225
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
3226
+ name: z.ZodString;
3227
+ type: z.ZodString;
3228
+ }, "strip", z.ZodTypeAny, {
3229
+ type: string;
3230
+ name: string;
3231
+ }, {
3232
+ type: string;
3233
+ name: string;
3234
+ }>, "many">>;
3235
+ domain: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3236
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3237
+ primaryType: z.ZodString;
3238
+ }, "strip", z.ZodTypeAny, {
3239
+ message: Record<string, unknown>;
3240
+ types: Record<string, {
3241
+ type: string;
3242
+ name: string;
3243
+ }[]>;
3244
+ domain: Record<string, unknown>;
3245
+ primaryType: string;
3246
+ }, {
3247
+ message: Record<string, unknown>;
3248
+ types: Record<string, {
3249
+ type: string;
3250
+ name: string;
3251
+ }[]>;
3252
+ domain: Record<string, unknown>;
3253
+ primaryType: string;
3254
+ }>;
3255
+ }, "strip", z.ZodTypeAny, {
3256
+ id: string;
3257
+ signerAddress: string;
3258
+ signMethod: "typedData";
3259
+ typedData: {
3260
+ message: Record<string, unknown>;
3261
+ types: Record<string, {
3262
+ type: string;
3263
+ name: string;
3264
+ }[]>;
3265
+ domain: Record<string, unknown>;
3266
+ primaryType: string;
3267
+ };
3268
+ description?: string | undefined;
3269
+ metadata?: Record<string, unknown> | undefined;
3270
+ }, {
3271
+ id: string;
3272
+ signerAddress: string;
3273
+ signMethod: "typedData";
3274
+ typedData: {
3275
+ message: Record<string, unknown>;
3276
+ types: Record<string, {
3277
+ type: string;
3278
+ name: string;
3279
+ }[]>;
3280
+ domain: Record<string, unknown>;
3281
+ primaryType: string;
3282
+ };
3283
+ description?: string | undefined;
3284
+ metadata?: Record<string, unknown> | undefined;
3285
+ }>, z.ZodObject<{
3286
+ id: z.ZodString;
3287
+ signerAddress: z.ZodString;
3288
+ description: z.ZodOptional<z.ZodString>;
3289
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3290
+ } & {
3291
+ signMethod: z.ZodLiteral<"message">;
3292
+ rawHash: z.ZodString;
3293
+ }, "strip", z.ZodTypeAny, {
3294
+ id: string;
3295
+ signerAddress: string;
3296
+ signMethod: "message";
3297
+ rawHash: string;
3298
+ description?: string | undefined;
3299
+ metadata?: Record<string, unknown> | undefined;
3300
+ }, {
3301
+ id: string;
3302
+ signerAddress: string;
3303
+ signMethod: "message";
3304
+ rawHash: string;
3305
+ description?: string | undefined;
3306
+ metadata?: Record<string, unknown> | undefined;
3307
+ }>]>, "many">;
3308
+ transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3309
+ transaction: z.ZodType<import("viem").PrepareTransactionRequestReturnType>;
3310
+ metadata: z.ZodOptional<z.ZodObject<{
3311
+ explorerUrl: z.ZodOptional<z.ZodString>;
3312
+ usdValue: z.ZodOptional<z.ZodString>;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ explorerUrl?: string | undefined;
3315
+ usdValue?: string | undefined;
3316
+ }, {
3317
+ explorerUrl?: string | undefined;
3318
+ usdValue?: string | undefined;
3319
+ }>>;
3320
+ }, "strip", z.ZodTypeAny, {
3321
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3322
+ metadata?: {
3323
+ explorerUrl?: string | undefined;
3324
+ usdValue?: string | undefined;
3325
+ } | undefined;
3326
+ }, {
3327
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3328
+ metadata?: {
3329
+ explorerUrl?: string | undefined;
3330
+ usdValue?: string | undefined;
3331
+ } | undefined;
3332
+ }>, "many">>;
3333
+ }, "strip", z.ZodTypeAny, {
3334
+ signatureRequests: ({
3335
+ id: string;
3336
+ signerAddress: string;
3337
+ signMethod: "typedData";
3338
+ typedData: {
3339
+ message: Record<string, unknown>;
3340
+ types: Record<string, {
3341
+ type: string;
3342
+ name: string;
3343
+ }[]>;
3344
+ domain: Record<string, unknown>;
3345
+ primaryType: string;
3346
+ };
3347
+ description?: string | undefined;
3348
+ metadata?: Record<string, unknown> | undefined;
3349
+ } | {
3350
+ id: string;
3351
+ signerAddress: string;
3352
+ signMethod: "message";
3353
+ rawHash: string;
3354
+ description?: string | undefined;
3355
+ metadata?: Record<string, unknown> | undefined;
3356
+ })[];
3357
+ transactions?: {
3358
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3359
+ metadata?: {
3360
+ explorerUrl?: string | undefined;
3361
+ usdValue?: string | undefined;
3362
+ } | undefined;
3363
+ }[] | undefined;
3364
+ }, {
3365
+ signatureRequests: ({
3366
+ id: string;
3367
+ signerAddress: string;
3368
+ signMethod: "typedData";
3369
+ typedData: {
3370
+ message: Record<string, unknown>;
3371
+ types: Record<string, {
3372
+ type: string;
3373
+ name: string;
3374
+ }[]>;
3375
+ domain: Record<string, unknown>;
3376
+ primaryType: string;
3377
+ };
3378
+ description?: string | undefined;
3379
+ metadata?: Record<string, unknown> | undefined;
3380
+ } | {
3381
+ id: string;
3382
+ signerAddress: string;
3383
+ signMethod: "message";
3384
+ rawHash: string;
3385
+ description?: string | undefined;
3386
+ metadata?: Record<string, unknown> | undefined;
3387
+ })[];
3388
+ transactions?: {
3389
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3390
+ metadata?: {
3391
+ explorerUrl?: string | undefined;
3392
+ usdValue?: string | undefined;
3393
+ } | undefined;
3394
+ }[] | undefined;
3395
+ }>;
3396
+ }, "strip", z.ZodTypeAny, {
3397
+ value: {
3398
+ signatureRequests: ({
3399
+ id: string;
3400
+ signerAddress: string;
3401
+ signMethod: "typedData";
3402
+ typedData: {
3403
+ message: Record<string, unknown>;
3404
+ types: Record<string, {
3405
+ type: string;
3406
+ name: string;
3407
+ }[]>;
3408
+ domain: Record<string, unknown>;
3409
+ primaryType: string;
3410
+ };
3411
+ description?: string | undefined;
3412
+ metadata?: Record<string, unknown> | undefined;
3413
+ } | {
3414
+ id: string;
3415
+ signerAddress: string;
3416
+ signMethod: "message";
3417
+ rawHash: string;
3418
+ description?: string | undefined;
3419
+ metadata?: Record<string, unknown> | undefined;
3420
+ })[];
3421
+ transactions?: {
3422
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3423
+ metadata?: {
3424
+ explorerUrl?: string | undefined;
3425
+ usdValue?: string | undefined;
3426
+ } | undefined;
3427
+ }[] | undefined;
3428
+ };
3429
+ type: "SignatureRequests";
3430
+ }, {
3431
+ value: {
3432
+ signatureRequests: ({
3433
+ id: string;
3434
+ signerAddress: string;
3435
+ signMethod: "typedData";
3436
+ typedData: {
3437
+ message: Record<string, unknown>;
3438
+ types: Record<string, {
3439
+ type: string;
3440
+ name: string;
3441
+ }[]>;
3442
+ domain: Record<string, unknown>;
3443
+ primaryType: string;
3444
+ };
3445
+ description?: string | undefined;
3446
+ metadata?: Record<string, unknown> | undefined;
3447
+ } | {
3448
+ id: string;
3449
+ signerAddress: string;
3450
+ signMethod: "message";
3451
+ rawHash: string;
3452
+ description?: string | undefined;
3453
+ metadata?: Record<string, unknown> | undefined;
3454
+ })[];
3455
+ transactions?: {
3456
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3457
+ metadata?: {
3458
+ explorerUrl?: string | undefined;
3459
+ usdValue?: string | undefined;
3460
+ } | undefined;
3461
+ }[] | undefined;
3462
+ };
3463
+ type: "SignatureRequests";
3464
+ }>]>, "many">;
3465
+ }, "strip", z.ZodTypeAny, {
3466
+ value: ({
3467
+ value: {
3468
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3469
+ metadata?: {
3470
+ explorerUrl?: string | undefined;
3471
+ usdValue?: string | undefined;
3472
+ } | undefined;
3473
+ }[];
3474
+ type: "BatchTransactions";
3475
+ } | {
3476
+ value: {
3477
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3478
+ metadata?: {
3479
+ explorerUrl?: string | undefined;
3480
+ usdValue?: string | undefined;
3481
+ } | undefined;
3482
+ };
3483
+ type: "SingleTransaction";
3484
+ } | {
3485
+ value: {
3486
+ signatureRequests: ({
3487
+ id: string;
3488
+ signerAddress: string;
3489
+ signMethod: "typedData";
3490
+ typedData: {
3491
+ message: Record<string, unknown>;
3492
+ types: Record<string, {
3493
+ type: string;
3494
+ name: string;
3495
+ }[]>;
3496
+ domain: Record<string, unknown>;
3497
+ primaryType: string;
3498
+ };
3499
+ description?: string | undefined;
3500
+ metadata?: Record<string, unknown> | undefined;
3501
+ } | {
3502
+ id: string;
3503
+ signerAddress: string;
3504
+ signMethod: "message";
3505
+ rawHash: string;
3506
+ description?: string | undefined;
3507
+ metadata?: Record<string, unknown> | undefined;
3508
+ })[];
3509
+ transactions?: {
3510
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3511
+ metadata?: {
3512
+ explorerUrl?: string | undefined;
3513
+ usdValue?: string | undefined;
3514
+ } | undefined;
3515
+ }[] | undefined;
3516
+ };
3517
+ type: "SignatureRequests";
3518
+ })[];
3519
+ type: "ActionSequence";
3520
+ }, {
3521
+ value: ({
3522
+ value: {
3523
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3524
+ metadata?: {
3525
+ explorerUrl?: string | undefined;
3526
+ usdValue?: string | undefined;
3527
+ } | undefined;
3528
+ }[];
3529
+ type: "BatchTransactions";
3530
+ } | {
3531
+ value: {
3532
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3533
+ metadata?: {
3534
+ explorerUrl?: string | undefined;
3535
+ usdValue?: string | undefined;
3536
+ } | undefined;
3537
+ };
3538
+ type: "SingleTransaction";
3539
+ } | {
3540
+ value: {
3541
+ signatureRequests: ({
3542
+ id: string;
3543
+ signerAddress: string;
3544
+ signMethod: "typedData";
3545
+ typedData: {
3546
+ message: Record<string, unknown>;
3547
+ types: Record<string, {
3548
+ type: string;
3549
+ name: string;
3550
+ }[]>;
3551
+ domain: Record<string, unknown>;
3552
+ primaryType: string;
3553
+ };
3554
+ description?: string | undefined;
3555
+ metadata?: Record<string, unknown> | undefined;
3556
+ } | {
3557
+ id: string;
3558
+ signerAddress: string;
3559
+ signMethod: "message";
3560
+ rawHash: string;
3561
+ description?: string | undefined;
3562
+ metadata?: Record<string, unknown> | undefined;
3563
+ })[];
3564
+ transactions?: {
3565
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3566
+ metadata?: {
3567
+ explorerUrl?: string | undefined;
3568
+ usdValue?: string | undefined;
3569
+ } | undefined;
3570
+ }[] | undefined;
3571
+ };
3572
+ type: "SignatureRequests";
3573
+ })[];
3574
+ type: "ActionSequence";
2390
3575
  }>]>;
2391
3576
  } & {
2392
3577
  simulation: z.ZodOptional<z.ZodObject<{
@@ -2641,6 +3826,61 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2641
3826
  }[] | undefined;
2642
3827
  };
2643
3828
  type: "SignatureRequests";
3829
+ } | {
3830
+ value: ({
3831
+ value: {
3832
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3833
+ metadata?: {
3834
+ explorerUrl?: string | undefined;
3835
+ usdValue?: string | undefined;
3836
+ } | undefined;
3837
+ }[];
3838
+ type: "BatchTransactions";
3839
+ } | {
3840
+ value: {
3841
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3842
+ metadata?: {
3843
+ explorerUrl?: string | undefined;
3844
+ usdValue?: string | undefined;
3845
+ } | undefined;
3846
+ };
3847
+ type: "SingleTransaction";
3848
+ } | {
3849
+ value: {
3850
+ signatureRequests: ({
3851
+ id: string;
3852
+ signerAddress: string;
3853
+ signMethod: "typedData";
3854
+ typedData: {
3855
+ message: Record<string, unknown>;
3856
+ types: Record<string, {
3857
+ type: string;
3858
+ name: string;
3859
+ }[]>;
3860
+ domain: Record<string, unknown>;
3861
+ primaryType: string;
3862
+ };
3863
+ description?: string | undefined;
3864
+ metadata?: Record<string, unknown> | undefined;
3865
+ } | {
3866
+ id: string;
3867
+ signerAddress: string;
3868
+ signMethod: "message";
3869
+ rawHash: string;
3870
+ description?: string | undefined;
3871
+ metadata?: Record<string, unknown> | undefined;
3872
+ })[];
3873
+ transactions?: {
3874
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3875
+ metadata?: {
3876
+ explorerUrl?: string | undefined;
3877
+ usdValue?: string | undefined;
3878
+ } | undefined;
3879
+ }[] | undefined;
3880
+ };
3881
+ type: "SignatureRequests";
3882
+ })[];
3883
+ type: "ActionSequence";
2644
3884
  };
2645
3885
  toolCallId: string;
2646
3886
  toolName: string;
@@ -2744,6 +3984,61 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2744
3984
  }[] | undefined;
2745
3985
  };
2746
3986
  type: "SignatureRequests";
3987
+ } | {
3988
+ value: ({
3989
+ value: {
3990
+ transaction: import("viem").PrepareTransactionRequestReturnType;
3991
+ metadata?: {
3992
+ explorerUrl?: string | undefined;
3993
+ usdValue?: string | undefined;
3994
+ } | undefined;
3995
+ }[];
3996
+ type: "BatchTransactions";
3997
+ } | {
3998
+ value: {
3999
+ transaction: import("viem").PrepareTransactionRequestReturnType;
4000
+ metadata?: {
4001
+ explorerUrl?: string | undefined;
4002
+ usdValue?: string | undefined;
4003
+ } | undefined;
4004
+ };
4005
+ type: "SingleTransaction";
4006
+ } | {
4007
+ value: {
4008
+ signatureRequests: ({
4009
+ id: string;
4010
+ signerAddress: string;
4011
+ signMethod: "typedData";
4012
+ typedData: {
4013
+ message: Record<string, unknown>;
4014
+ types: Record<string, {
4015
+ type: string;
4016
+ name: string;
4017
+ }[]>;
4018
+ domain: Record<string, unknown>;
4019
+ primaryType: string;
4020
+ };
4021
+ description?: string | undefined;
4022
+ metadata?: Record<string, unknown> | undefined;
4023
+ } | {
4024
+ id: string;
4025
+ signerAddress: string;
4026
+ signMethod: "message";
4027
+ rawHash: string;
4028
+ description?: string | undefined;
4029
+ metadata?: Record<string, unknown> | undefined;
4030
+ })[];
4031
+ transactions?: {
4032
+ transaction: import("viem").PrepareTransactionRequestReturnType;
4033
+ metadata?: {
4034
+ explorerUrl?: string | undefined;
4035
+ usdValue?: string | undefined;
4036
+ } | undefined;
4037
+ }[] | undefined;
4038
+ };
4039
+ type: "SignatureRequests";
4040
+ })[];
4041
+ type: "ActionSequence";
2747
4042
  };
2748
4043
  toolCallId: string;
2749
4044
  toolName: string;
@@ -2937,6 +4232,61 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2937
4232
  }[] | undefined;
2938
4233
  };
2939
4234
  type: "SignatureRequests";
4235
+ } | {
4236
+ value: ({
4237
+ value: {
4238
+ transaction: import("viem").PrepareTransactionRequestReturnType;
4239
+ metadata?: {
4240
+ explorerUrl?: string | undefined;
4241
+ usdValue?: string | undefined;
4242
+ } | undefined;
4243
+ }[];
4244
+ type: "BatchTransactions";
4245
+ } | {
4246
+ value: {
4247
+ transaction: import("viem").PrepareTransactionRequestReturnType;
4248
+ metadata?: {
4249
+ explorerUrl?: string | undefined;
4250
+ usdValue?: string | undefined;
4251
+ } | undefined;
4252
+ };
4253
+ type: "SingleTransaction";
4254
+ } | {
4255
+ value: {
4256
+ signatureRequests: ({
4257
+ id: string;
4258
+ signerAddress: string;
4259
+ signMethod: "typedData";
4260
+ typedData: {
4261
+ message: Record<string, unknown>;
4262
+ types: Record<string, {
4263
+ type: string;
4264
+ name: string;
4265
+ }[]>;
4266
+ domain: Record<string, unknown>;
4267
+ primaryType: string;
4268
+ };
4269
+ description?: string | undefined;
4270
+ metadata?: Record<string, unknown> | undefined;
4271
+ } | {
4272
+ id: string;
4273
+ signerAddress: string;
4274
+ signMethod: "message";
4275
+ rawHash: string;
4276
+ description?: string | undefined;
4277
+ metadata?: Record<string, unknown> | undefined;
4278
+ })[];
4279
+ transactions?: {
4280
+ transaction: import("viem").PrepareTransactionRequestReturnType;
4281
+ metadata?: {
4282
+ explorerUrl?: string | undefined;
4283
+ usdValue?: string | undefined;
4284
+ } | undefined;
4285
+ }[] | undefined;
4286
+ };
4287
+ type: "SignatureRequests";
4288
+ })[];
4289
+ type: "ActionSequence";
2940
4290
  };
2941
4291
  toolCallId: string;
2942
4292
  toolName: string;
@@ -3067,6 +4417,61 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3067
4417
  }[] | undefined;
3068
4418
  };
3069
4419
  type: "SignatureRequests";
4420
+ } | {
4421
+ value: ({
4422
+ value: {
4423
+ transaction: import("viem").PrepareTransactionRequestReturnType;
4424
+ metadata?: {
4425
+ explorerUrl?: string | undefined;
4426
+ usdValue?: string | undefined;
4427
+ } | undefined;
4428
+ }[];
4429
+ type: "BatchTransactions";
4430
+ } | {
4431
+ value: {
4432
+ transaction: import("viem").PrepareTransactionRequestReturnType;
4433
+ metadata?: {
4434
+ explorerUrl?: string | undefined;
4435
+ usdValue?: string | undefined;
4436
+ } | undefined;
4437
+ };
4438
+ type: "SingleTransaction";
4439
+ } | {
4440
+ value: {
4441
+ signatureRequests: ({
4442
+ id: string;
4443
+ signerAddress: string;
4444
+ signMethod: "typedData";
4445
+ typedData: {
4446
+ message: Record<string, unknown>;
4447
+ types: Record<string, {
4448
+ type: string;
4449
+ name: string;
4450
+ }[]>;
4451
+ domain: Record<string, unknown>;
4452
+ primaryType: string;
4453
+ };
4454
+ description?: string | undefined;
4455
+ metadata?: Record<string, unknown> | undefined;
4456
+ } | {
4457
+ id: string;
4458
+ signerAddress: string;
4459
+ signMethod: "message";
4460
+ rawHash: string;
4461
+ description?: string | undefined;
4462
+ metadata?: Record<string, unknown> | undefined;
4463
+ })[];
4464
+ transactions?: {
4465
+ transaction: import("viem").PrepareTransactionRequestReturnType;
4466
+ metadata?: {
4467
+ explorerUrl?: string | undefined;
4468
+ usdValue?: string | undefined;
4469
+ } | undefined;
4470
+ }[] | undefined;
4471
+ };
4472
+ type: "SignatureRequests";
4473
+ })[];
4474
+ type: "ActionSequence";
3070
4475
  };
3071
4476
  toolCallId: string;
3072
4477
  toolName: string;
@@ -3137,6 +4542,24 @@ export declare const streamEventDataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3137
4542
  details?: unknown;
3138
4543
  };
3139
4544
  }[] | undefined;
4545
+ }>, z.ZodObject<{
4546
+ type: z.ZodLiteral<"plan_approval_required">;
4547
+ status: z.ZodLiteral<200>;
4548
+ plan: z.ZodUnknown;
4549
+ requiresApproval: z.ZodBoolean;
4550
+ requestId: z.ZodString;
4551
+ }, "strip", z.ZodTypeAny, {
4552
+ type: "plan_approval_required";
4553
+ status: 200;
4554
+ requestId: string;
4555
+ requiresApproval: boolean;
4556
+ plan?: unknown;
4557
+ }, {
4558
+ type: "plan_approval_required";
4559
+ status: 200;
4560
+ requestId: string;
4561
+ requiresApproval: boolean;
4562
+ plan?: unknown;
3140
4563
  }>, z.ZodObject<{
3141
4564
  type: z.ZodLiteral<"error">;
3142
4565
  requestId: z.ZodString;