@superatomai/sdk-node 0.0.83-dsp → 0.0.85-dsp

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.
package/dist/index.d.mts CHANGED
@@ -1366,20 +1366,44 @@ declare const DSLRendererPropsSchema$1: z.ZodObject<{
1366
1366
  methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1367
1367
  fn: z.ZodString;
1368
1368
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1369
- }, z.core.$strip>>>;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ fn: string;
1371
+ params?: Record<string, any> | undefined;
1372
+ }, {
1373
+ fn: string;
1374
+ params?: Record<string, any> | undefined;
1375
+ }>>>;
1370
1376
  effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
1371
1377
  fn: z.ZodString;
1372
- deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1373
- }, z.core.$strip>>>;
1378
+ deps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ fn: string;
1381
+ deps?: string[] | undefined;
1382
+ }, {
1383
+ fn: string;
1384
+ deps?: string[] | undefined;
1385
+ }>, "many">>;
1374
1386
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1375
- render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1387
+ render: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1376
1388
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1377
1389
  id: z.ZodString;
1378
1390
  name: z.ZodString;
1379
1391
  order: z.ZodNumber;
1380
1392
  icon: z.ZodOptional<z.ZodString>;
1381
- render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
1382
- }, z.core.$strip>>>;
1393
+ render: z.ZodType<any, z.ZodTypeDef, any>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ id: string;
1396
+ name: string;
1397
+ order: number;
1398
+ icon?: string | undefined;
1399
+ render?: any;
1400
+ }, {
1401
+ id: string;
1402
+ name: string;
1403
+ order: number;
1404
+ icon?: string | undefined;
1405
+ render?: any;
1406
+ }>, "many">>;
1383
1407
  defaultPageId: z.ZodOptional<z.ZodString>;
1384
1408
  query: z.ZodOptional<z.ZodObject<{
1385
1409
  graphql: z.ZodOptional<z.ZodString>;
@@ -1387,17 +1411,165 @@ declare const DSLRendererPropsSchema$1: z.ZodObject<{
1387
1411
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1388
1412
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1389
1413
  key: z.ZodOptional<z.ZodString>;
1390
- refetchPolicy: z.ZodOptional<z.ZodEnum<{
1391
- "cache-first": "cache-first";
1392
- "network-only": "network-only";
1393
- "cache-and-network": "cache-and-network";
1394
- }>>;
1395
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
1396
- }, z.core.$strip>>;
1397
- }, z.core.$strip>;
1414
+ refetchPolicy: z.ZodOptional<z.ZodEnum<["cache-first", "network-only", "cache-and-network"]>>;
1415
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ params?: Record<string, any> | undefined;
1418
+ key?: string | undefined;
1419
+ graphql?: string | undefined;
1420
+ sql?: string | undefined;
1421
+ variables?: Record<string, any> | undefined;
1422
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1423
+ dependencies?: string[] | undefined;
1424
+ }, {
1425
+ params?: Record<string, any> | undefined;
1426
+ key?: string | undefined;
1427
+ graphql?: string | undefined;
1428
+ sql?: string | undefined;
1429
+ variables?: Record<string, any> | undefined;
1430
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1431
+ dependencies?: string[] | undefined;
1432
+ }>>;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ id: string;
1435
+ name?: string | undefined;
1436
+ query?: {
1437
+ params?: Record<string, any> | undefined;
1438
+ key?: string | undefined;
1439
+ graphql?: string | undefined;
1440
+ sql?: string | undefined;
1441
+ variables?: Record<string, any> | undefined;
1442
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1443
+ dependencies?: string[] | undefined;
1444
+ } | undefined;
1445
+ props?: Record<string, any> | undefined;
1446
+ data?: Record<string, any> | undefined;
1447
+ render?: any;
1448
+ states?: Record<string, any> | undefined;
1449
+ methods?: Record<string, {
1450
+ fn: string;
1451
+ params?: Record<string, any> | undefined;
1452
+ }> | undefined;
1453
+ effects?: {
1454
+ fn: string;
1455
+ deps?: string[] | undefined;
1456
+ }[] | undefined;
1457
+ pages?: {
1458
+ id: string;
1459
+ name: string;
1460
+ order: number;
1461
+ icon?: string | undefined;
1462
+ render?: any;
1463
+ }[] | undefined;
1464
+ defaultPageId?: string | undefined;
1465
+ }, {
1466
+ id: string;
1467
+ name?: string | undefined;
1468
+ query?: {
1469
+ params?: Record<string, any> | undefined;
1470
+ key?: string | undefined;
1471
+ graphql?: string | undefined;
1472
+ sql?: string | undefined;
1473
+ variables?: Record<string, any> | undefined;
1474
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1475
+ dependencies?: string[] | undefined;
1476
+ } | undefined;
1477
+ props?: Record<string, any> | undefined;
1478
+ data?: Record<string, any> | undefined;
1479
+ render?: any;
1480
+ states?: Record<string, any> | undefined;
1481
+ methods?: Record<string, {
1482
+ fn: string;
1483
+ params?: Record<string, any> | undefined;
1484
+ }> | undefined;
1485
+ effects?: {
1486
+ fn: string;
1487
+ deps?: string[] | undefined;
1488
+ }[] | undefined;
1489
+ pages?: {
1490
+ id: string;
1491
+ name: string;
1492
+ order: number;
1493
+ icon?: string | undefined;
1494
+ render?: any;
1495
+ }[] | undefined;
1496
+ defaultPageId?: string | undefined;
1497
+ }>;
1398
1498
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1399
1499
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1400
- }, z.core.$strip>;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ dsl: {
1502
+ id: string;
1503
+ name?: string | undefined;
1504
+ query?: {
1505
+ params?: Record<string, any> | undefined;
1506
+ key?: string | undefined;
1507
+ graphql?: string | undefined;
1508
+ sql?: string | undefined;
1509
+ variables?: Record<string, any> | undefined;
1510
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1511
+ dependencies?: string[] | undefined;
1512
+ } | undefined;
1513
+ props?: Record<string, any> | undefined;
1514
+ data?: Record<string, any> | undefined;
1515
+ render?: any;
1516
+ states?: Record<string, any> | undefined;
1517
+ methods?: Record<string, {
1518
+ fn: string;
1519
+ params?: Record<string, any> | undefined;
1520
+ }> | undefined;
1521
+ effects?: {
1522
+ fn: string;
1523
+ deps?: string[] | undefined;
1524
+ }[] | undefined;
1525
+ pages?: {
1526
+ id: string;
1527
+ name: string;
1528
+ order: number;
1529
+ icon?: string | undefined;
1530
+ render?: any;
1531
+ }[] | undefined;
1532
+ defaultPageId?: string | undefined;
1533
+ };
1534
+ data?: Record<string, any> | undefined;
1535
+ context?: Record<string, any> | undefined;
1536
+ }, {
1537
+ dsl: {
1538
+ id: string;
1539
+ name?: string | undefined;
1540
+ query?: {
1541
+ params?: Record<string, any> | undefined;
1542
+ key?: string | undefined;
1543
+ graphql?: string | undefined;
1544
+ sql?: string | undefined;
1545
+ variables?: Record<string, any> | undefined;
1546
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1547
+ dependencies?: string[] | undefined;
1548
+ } | undefined;
1549
+ props?: Record<string, any> | undefined;
1550
+ data?: Record<string, any> | undefined;
1551
+ render?: any;
1552
+ states?: Record<string, any> | undefined;
1553
+ methods?: Record<string, {
1554
+ fn: string;
1555
+ params?: Record<string, any> | undefined;
1556
+ }> | undefined;
1557
+ effects?: {
1558
+ fn: string;
1559
+ deps?: string[] | undefined;
1560
+ }[] | undefined;
1561
+ pages?: {
1562
+ id: string;
1563
+ name: string;
1564
+ order: number;
1565
+ icon?: string | undefined;
1566
+ render?: any;
1567
+ }[] | undefined;
1568
+ defaultPageId?: string | undefined;
1569
+ };
1570
+ data?: Record<string, any> | undefined;
1571
+ context?: Record<string, any> | undefined;
1572
+ }>;
1401
1573
  type DSLRendererProps$1 = z.infer<typeof DSLRendererPropsSchema$1>;
1402
1574
 
1403
1575
  declare const DSLRendererPropsSchema: z.ZodObject<{
@@ -1409,30 +1581,158 @@ declare const DSLRendererPropsSchema: z.ZodObject<{
1409
1581
  methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1410
1582
  fn: z.ZodString;
1411
1583
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1412
- }, z.core.$strip>>>;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ fn: string;
1586
+ params?: Record<string, any> | undefined;
1587
+ }, {
1588
+ fn: string;
1589
+ params?: Record<string, any> | undefined;
1590
+ }>>>;
1413
1591
  effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
1414
1592
  fn: z.ZodString;
1415
- deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1416
- }, z.core.$strip>>>;
1593
+ deps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ fn: string;
1596
+ deps?: string[] | undefined;
1597
+ }, {
1598
+ fn: string;
1599
+ deps?: string[] | undefined;
1600
+ }>, "many">>;
1417
1601
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1418
- render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
1602
+ render: z.ZodType<any, z.ZodTypeDef, any>;
1419
1603
  query: z.ZodOptional<z.ZodObject<{
1420
1604
  graphql: z.ZodOptional<z.ZodString>;
1421
1605
  sql: z.ZodOptional<z.ZodString>;
1422
1606
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1423
1607
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1424
1608
  key: z.ZodOptional<z.ZodString>;
1425
- refetchPolicy: z.ZodOptional<z.ZodEnum<{
1426
- "cache-first": "cache-first";
1427
- "network-only": "network-only";
1428
- "cache-and-network": "cache-and-network";
1429
- }>>;
1430
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
1431
- }, z.core.$strip>>;
1432
- }, z.core.$strip>;
1609
+ refetchPolicy: z.ZodOptional<z.ZodEnum<["cache-first", "network-only", "cache-and-network"]>>;
1610
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ params?: Record<string, any> | undefined;
1613
+ key?: string | undefined;
1614
+ graphql?: string | undefined;
1615
+ sql?: string | undefined;
1616
+ variables?: Record<string, any> | undefined;
1617
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1618
+ dependencies?: string[] | undefined;
1619
+ }, {
1620
+ params?: Record<string, any> | undefined;
1621
+ key?: string | undefined;
1622
+ graphql?: string | undefined;
1623
+ sql?: string | undefined;
1624
+ variables?: Record<string, any> | undefined;
1625
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1626
+ dependencies?: string[] | undefined;
1627
+ }>>;
1628
+ }, "strip", z.ZodTypeAny, {
1629
+ id: string;
1630
+ name?: string | undefined;
1631
+ query?: {
1632
+ params?: Record<string, any> | undefined;
1633
+ key?: string | undefined;
1634
+ graphql?: string | undefined;
1635
+ sql?: string | undefined;
1636
+ variables?: Record<string, any> | undefined;
1637
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1638
+ dependencies?: string[] | undefined;
1639
+ } | undefined;
1640
+ props?: Record<string, any> | undefined;
1641
+ data?: Record<string, any> | undefined;
1642
+ render?: any;
1643
+ states?: Record<string, any> | undefined;
1644
+ methods?: Record<string, {
1645
+ fn: string;
1646
+ params?: Record<string, any> | undefined;
1647
+ }> | undefined;
1648
+ effects?: {
1649
+ fn: string;
1650
+ deps?: string[] | undefined;
1651
+ }[] | undefined;
1652
+ }, {
1653
+ id: string;
1654
+ name?: string | undefined;
1655
+ query?: {
1656
+ params?: Record<string, any> | undefined;
1657
+ key?: string | undefined;
1658
+ graphql?: string | undefined;
1659
+ sql?: string | undefined;
1660
+ variables?: Record<string, any> | undefined;
1661
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1662
+ dependencies?: string[] | undefined;
1663
+ } | undefined;
1664
+ props?: Record<string, any> | undefined;
1665
+ data?: Record<string, any> | undefined;
1666
+ render?: any;
1667
+ states?: Record<string, any> | undefined;
1668
+ methods?: Record<string, {
1669
+ fn: string;
1670
+ params?: Record<string, any> | undefined;
1671
+ }> | undefined;
1672
+ effects?: {
1673
+ fn: string;
1674
+ deps?: string[] | undefined;
1675
+ }[] | undefined;
1676
+ }>;
1433
1677
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1434
1678
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1435
- }, z.core.$strip>;
1679
+ }, "strip", z.ZodTypeAny, {
1680
+ dsl: {
1681
+ id: string;
1682
+ name?: string | undefined;
1683
+ query?: {
1684
+ params?: Record<string, any> | undefined;
1685
+ key?: string | undefined;
1686
+ graphql?: string | undefined;
1687
+ sql?: string | undefined;
1688
+ variables?: Record<string, any> | undefined;
1689
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1690
+ dependencies?: string[] | undefined;
1691
+ } | undefined;
1692
+ props?: Record<string, any> | undefined;
1693
+ data?: Record<string, any> | undefined;
1694
+ render?: any;
1695
+ states?: Record<string, any> | undefined;
1696
+ methods?: Record<string, {
1697
+ fn: string;
1698
+ params?: Record<string, any> | undefined;
1699
+ }> | undefined;
1700
+ effects?: {
1701
+ fn: string;
1702
+ deps?: string[] | undefined;
1703
+ }[] | undefined;
1704
+ };
1705
+ data?: Record<string, any> | undefined;
1706
+ context?: Record<string, any> | undefined;
1707
+ }, {
1708
+ dsl: {
1709
+ id: string;
1710
+ name?: string | undefined;
1711
+ query?: {
1712
+ params?: Record<string, any> | undefined;
1713
+ key?: string | undefined;
1714
+ graphql?: string | undefined;
1715
+ sql?: string | undefined;
1716
+ variables?: Record<string, any> | undefined;
1717
+ refetchPolicy?: "cache-first" | "network-only" | "cache-and-network" | undefined;
1718
+ dependencies?: string[] | undefined;
1719
+ } | undefined;
1720
+ props?: Record<string, any> | undefined;
1721
+ data?: Record<string, any> | undefined;
1722
+ render?: any;
1723
+ states?: Record<string, any> | undefined;
1724
+ methods?: Record<string, {
1725
+ fn: string;
1726
+ params?: Record<string, any> | undefined;
1727
+ }> | undefined;
1728
+ effects?: {
1729
+ fn: string;
1730
+ deps?: string[] | undefined;
1731
+ }[] | undefined;
1732
+ };
1733
+ data?: Record<string, any> | undefined;
1734
+ context?: Record<string, any> | undefined;
1735
+ }>;
1436
1736
  type DSLRendererProps = z.infer<typeof DSLRendererPropsSchema>;
1437
1737
 
1438
1738
  declare const UserSchema: z.ZodObject<{
@@ -1442,8 +1742,24 @@ declare const UserSchema: z.ZodObject<{
1442
1742
  fullname: z.ZodOptional<z.ZodString>;
1443
1743
  role: z.ZodOptional<z.ZodString>;
1444
1744
  userInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1445
- wsIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1446
- }, z.core.$strip>;
1745
+ wsIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ username: string;
1748
+ password: string;
1749
+ email?: string | undefined;
1750
+ fullname?: string | undefined;
1751
+ role?: string | undefined;
1752
+ userInfo?: Record<string, unknown> | undefined;
1753
+ wsIds?: string[] | undefined;
1754
+ }, {
1755
+ username: string;
1756
+ password: string;
1757
+ email?: string | undefined;
1758
+ fullname?: string | undefined;
1759
+ role?: string | undefined;
1760
+ userInfo?: Record<string, unknown> | undefined;
1761
+ wsIds?: string[] | undefined;
1762
+ }>;
1447
1763
  type User = z.infer<typeof UserSchema>;
1448
1764
  declare const UsersDataSchema: z.ZodObject<{
1449
1765
  users: z.ZodArray<z.ZodObject<{
@@ -1453,9 +1769,45 @@ declare const UsersDataSchema: z.ZodObject<{
1453
1769
  fullname: z.ZodOptional<z.ZodString>;
1454
1770
  role: z.ZodOptional<z.ZodString>;
1455
1771
  userInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1456
- wsIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1457
- }, z.core.$strip>>;
1458
- }, z.core.$strip>;
1772
+ wsIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ username: string;
1775
+ password: string;
1776
+ email?: string | undefined;
1777
+ fullname?: string | undefined;
1778
+ role?: string | undefined;
1779
+ userInfo?: Record<string, unknown> | undefined;
1780
+ wsIds?: string[] | undefined;
1781
+ }, {
1782
+ username: string;
1783
+ password: string;
1784
+ email?: string | undefined;
1785
+ fullname?: string | undefined;
1786
+ role?: string | undefined;
1787
+ userInfo?: Record<string, unknown> | undefined;
1788
+ wsIds?: string[] | undefined;
1789
+ }>, "many">;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ users: {
1792
+ username: string;
1793
+ password: string;
1794
+ email?: string | undefined;
1795
+ fullname?: string | undefined;
1796
+ role?: string | undefined;
1797
+ userInfo?: Record<string, unknown> | undefined;
1798
+ wsIds?: string[] | undefined;
1799
+ }[];
1800
+ }, {
1801
+ users: {
1802
+ username: string;
1803
+ password: string;
1804
+ email?: string | undefined;
1805
+ fullname?: string | undefined;
1806
+ role?: string | undefined;
1807
+ userInfo?: Record<string, unknown> | undefined;
1808
+ wsIds?: string[] | undefined;
1809
+ }[];
1810
+ }>;
1459
1811
  type UsersData = z.infer<typeof UsersDataSchema>;
1460
1812
  declare const MessageSchema: z.ZodObject<{
1461
1813
  id: z.ZodOptional<z.ZodString>;
@@ -1463,13 +1815,49 @@ declare const MessageSchema: z.ZodObject<{
1463
1815
  from: z.ZodObject<{
1464
1816
  id: z.ZodOptional<z.ZodString>;
1465
1817
  type: z.ZodOptional<z.ZodString>;
1466
- }, z.core.$strip>;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ id?: string | undefined;
1820
+ type?: string | undefined;
1821
+ }, {
1822
+ id?: string | undefined;
1823
+ type?: string | undefined;
1824
+ }>;
1467
1825
  to: z.ZodOptional<z.ZodObject<{
1468
1826
  id: z.ZodOptional<z.ZodString>;
1469
1827
  type: z.ZodOptional<z.ZodString>;
1470
- }, z.core.$strip>>;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ id?: string | undefined;
1830
+ type?: string | undefined;
1831
+ }, {
1832
+ id?: string | undefined;
1833
+ type?: string | undefined;
1834
+ }>>;
1471
1835
  payload: z.ZodUnknown;
1472
- }, z.core.$strip>;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ type: string;
1838
+ from: {
1839
+ id?: string | undefined;
1840
+ type?: string | undefined;
1841
+ };
1842
+ id?: string | undefined;
1843
+ to?: {
1844
+ id?: string | undefined;
1845
+ type?: string | undefined;
1846
+ } | undefined;
1847
+ payload?: unknown;
1848
+ }, {
1849
+ type: string;
1850
+ from: {
1851
+ id?: string | undefined;
1852
+ type?: string | undefined;
1853
+ };
1854
+ id?: string | undefined;
1855
+ to?: {
1856
+ id?: string | undefined;
1857
+ type?: string | undefined;
1858
+ } | undefined;
1859
+ payload?: unknown;
1860
+ }>;
1473
1861
  type Message = z.infer<typeof MessageSchema>;
1474
1862
  declare const IncomingMessageSchema: z.ZodObject<{
1475
1863
  id: z.ZodOptional<z.ZodString>;
@@ -1477,13 +1865,49 @@ declare const IncomingMessageSchema: z.ZodObject<{
1477
1865
  from: z.ZodObject<{
1478
1866
  id: z.ZodOptional<z.ZodString>;
1479
1867
  type: z.ZodOptional<z.ZodString>;
1480
- }, z.core.$strip>;
1868
+ }, "strip", z.ZodTypeAny, {
1869
+ id?: string | undefined;
1870
+ type?: string | undefined;
1871
+ }, {
1872
+ id?: string | undefined;
1873
+ type?: string | undefined;
1874
+ }>;
1481
1875
  to: z.ZodOptional<z.ZodObject<{
1482
1876
  id: z.ZodOptional<z.ZodString>;
1483
1877
  type: z.ZodOptional<z.ZodString>;
1484
- }, z.core.$strip>>;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ id?: string | undefined;
1880
+ type?: string | undefined;
1881
+ }, {
1882
+ id?: string | undefined;
1883
+ type?: string | undefined;
1884
+ }>>;
1485
1885
  payload: z.ZodUnknown;
1486
- }, z.core.$strip>;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ type: string;
1888
+ from: {
1889
+ id?: string | undefined;
1890
+ type?: string | undefined;
1891
+ };
1892
+ id?: string | undefined;
1893
+ to?: {
1894
+ id?: string | undefined;
1895
+ type?: string | undefined;
1896
+ } | undefined;
1897
+ payload?: unknown;
1898
+ }, {
1899
+ type: string;
1900
+ from: {
1901
+ id?: string | undefined;
1902
+ type?: string | undefined;
1903
+ };
1904
+ id?: string | undefined;
1905
+ to?: {
1906
+ id?: string | undefined;
1907
+ type?: string | undefined;
1908
+ } | undefined;
1909
+ payload?: unknown;
1910
+ }>;
1487
1911
  type IncomingMessage = z.infer<typeof IncomingMessageSchema>;
1488
1912
  /**
1489
1913
  * A file attached to a question. Synced with sdk-web: PromptAttachmentSchema.
@@ -1493,11 +1917,23 @@ type IncomingMessage = z.infer<typeof IncomingMessageSchema>;
1493
1917
  * with /upload/chat-attachment/signed-get.
1494
1918
  */
1495
1919
  declare const PromptAttachmentSchema: z.ZodObject<{
1920
+ /** The R2 object key. */
1496
1921
  key: z.ZodString;
1497
1922
  fileName: z.ZodString;
1923
+ /** Size in bytes. */
1498
1924
  size: z.ZodNumber;
1499
1925
  contentType: z.ZodOptional<z.ZodString>;
1500
- }, z.core.$strip>;
1926
+ }, "strip", z.ZodTypeAny, {
1927
+ key: string;
1928
+ fileName: string;
1929
+ size: number;
1930
+ contentType?: string | undefined;
1931
+ }, {
1932
+ key: string;
1933
+ fileName: string;
1934
+ size: number;
1935
+ contentType?: string | undefined;
1936
+ }>;
1501
1937
  type PromptAttachment = z.infer<typeof PromptAttachmentSchema>;
1502
1938
  /**
1503
1939
  * A file the agent generated or changed for the person: the host backend has put it
@@ -1524,68 +1960,191 @@ declare const ComponentSchema: z.ZodObject<{
1524
1960
  type: z.ZodString;
1525
1961
  description: z.ZodString;
1526
1962
  props: z.ZodObject<{
1527
- query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<{}, unknown, z.core.$ZodTypeInternals<{}, unknown>>]>>>;
1963
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<{}, z.ZodTypeDef, {}>]>>>;
1964
+ title: z.ZodOptional<z.ZodString>;
1965
+ description: z.ZodOptional<z.ZodString>;
1966
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1967
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1968
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<{}, z.ZodTypeDef, {}>]>>>;
1528
1969
  title: z.ZodOptional<z.ZodString>;
1529
1970
  description: z.ZodOptional<z.ZodString>;
1530
1971
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1531
- }, z.core.$loose>;
1972
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1973
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<{}, z.ZodTypeDef, {}>]>>>;
1974
+ title: z.ZodOptional<z.ZodString>;
1975
+ description: z.ZodOptional<z.ZodString>;
1976
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1977
+ }, z.ZodTypeAny, "passthrough">>;
1532
1978
  category: z.ZodOptional<z.ZodString>;
1533
- keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
1534
- }, z.core.$strip>;
1979
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1980
+ }, "strip", z.ZodTypeAny, {
1981
+ id: string;
1982
+ type: string;
1983
+ name: string;
1984
+ description: string;
1985
+ props: {
1986
+ description?: string | undefined;
1987
+ query?: string | {} | null | undefined;
1988
+ title?: string | undefined;
1989
+ config?: Record<string, unknown> | undefined;
1990
+ } & {
1991
+ [k: string]: unknown;
1992
+ };
1993
+ displayName?: string | undefined;
1994
+ isDisplayComp?: boolean | undefined;
1995
+ category?: string | undefined;
1996
+ keywords?: string[] | undefined;
1997
+ }, {
1998
+ id: string;
1999
+ type: string;
2000
+ name: string;
2001
+ description: string;
2002
+ props: {
2003
+ description?: string | undefined;
2004
+ query?: string | {} | null | undefined;
2005
+ title?: string | undefined;
2006
+ config?: Record<string, unknown> | undefined;
2007
+ } & {
2008
+ [k: string]: unknown;
2009
+ };
2010
+ displayName?: string | undefined;
2011
+ isDisplayComp?: boolean | undefined;
2012
+ category?: string | undefined;
2013
+ keywords?: string[] | undefined;
2014
+ }>;
1535
2015
  type Component = z.infer<typeof ComponentSchema>;
1536
2016
  declare const OutputFieldSchema: z.ZodObject<{
1537
2017
  name: z.ZodString;
1538
- type: z.ZodEnum<{
1539
- string: "string";
1540
- number: "number";
1541
- boolean: "boolean";
1542
- date: "date";
1543
- }>;
2018
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1544
2019
  description: z.ZodString;
1545
- }, z.core.$strip>;
2020
+ }, "strip", z.ZodTypeAny, {
2021
+ type: "string" | "number" | "boolean" | "date";
2022
+ name: string;
2023
+ description: string;
2024
+ }, {
2025
+ type: "string" | "number" | "boolean" | "date";
2026
+ name: string;
2027
+ description: string;
2028
+ }>;
1546
2029
  type OutputField = z.infer<typeof OutputFieldSchema>;
1547
2030
  declare const OutputSchema: z.ZodObject<{
1548
2031
  description: z.ZodString;
1549
2032
  fields: z.ZodArray<z.ZodObject<{
1550
2033
  name: z.ZodString;
1551
- type: z.ZodEnum<{
1552
- string: "string";
1553
- number: "number";
1554
- boolean: "boolean";
1555
- date: "date";
1556
- }>;
2034
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1557
2035
  description: z.ZodString;
1558
- }, z.core.$strip>>;
1559
- }, z.core.$strip>;
2036
+ }, "strip", z.ZodTypeAny, {
2037
+ type: "string" | "number" | "boolean" | "date";
2038
+ name: string;
2039
+ description: string;
2040
+ }, {
2041
+ type: "string" | "number" | "boolean" | "date";
2042
+ name: string;
2043
+ description: string;
2044
+ }>, "many">;
2045
+ }, "strip", z.ZodTypeAny, {
2046
+ description: string;
2047
+ fields: {
2048
+ type: "string" | "number" | "boolean" | "date";
2049
+ name: string;
2050
+ description: string;
2051
+ }[];
2052
+ }, {
2053
+ description: string;
2054
+ fields: {
2055
+ type: "string" | "number" | "boolean" | "date";
2056
+ name: string;
2057
+ description: string;
2058
+ }[];
2059
+ }>;
1560
2060
  type ToolOutputSchema = z.infer<typeof OutputSchema>;
1561
2061
  declare const ToolSchema: z.ZodObject<{
1562
2062
  id: z.ZodString;
1563
2063
  name: z.ZodString;
1564
2064
  description: z.ZodString;
1565
- toolType: z.ZodOptional<z.ZodEnum<{
1566
- source: "source";
1567
- direct: "direct";
1568
- }>>;
2065
+ /** Tool type: "source" = routed through SourceAgent, "direct" = called directly by MainAgent */
2066
+ toolType: z.ZodOptional<z.ZodEnum<["source", "direct"]>>;
2067
+ /** Full untruncated schema for source agent (all columns visible) */
1569
2068
  fullSchema: z.ZodOptional<z.ZodString>;
1570
2069
  params: z.ZodRecord<z.ZodString, z.ZodString>;
1571
- fn: z.ZodCustom<(...args: any[]) => any, (...args: any[]) => any>;
2070
+ fn: z.ZodType<(...args: any[]) => any, z.ZodTypeDef, (...args: any[]) => any>;
1572
2071
  outputSchema: z.ZodOptional<z.ZodObject<{
1573
2072
  description: z.ZodString;
1574
2073
  fields: z.ZodArray<z.ZodObject<{
1575
2074
  name: z.ZodString;
1576
- type: z.ZodEnum<{
1577
- string: "string";
1578
- number: "number";
1579
- boolean: "boolean";
1580
- date: "date";
1581
- }>;
2075
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1582
2076
  description: z.ZodString;
1583
- }, z.core.$strip>>;
1584
- }, z.core.$strip>>;
1585
- cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ type: "string" | "number" | "boolean" | "date";
2079
+ name: string;
2080
+ description: string;
2081
+ }, {
2082
+ type: "string" | "number" | "boolean" | "date";
2083
+ name: string;
2084
+ description: string;
2085
+ }>, "many">;
2086
+ }, "strip", z.ZodTypeAny, {
2087
+ description: string;
2088
+ fields: {
2089
+ type: "string" | "number" | "boolean" | "date";
2090
+ name: string;
2091
+ description: string;
2092
+ }[];
2093
+ }, {
2094
+ description: string;
2095
+ fields: {
2096
+ type: "string" | "number" | "boolean" | "date";
2097
+ name: string;
2098
+ description: string;
2099
+ }[];
2100
+ }>>;
2101
+ /** Cache policy. `false` = never cache (live data, write ops). Mirrors HTTP `Cache-Control: no-store`. */
2102
+ cache: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
1586
2103
  ttlMs: z.ZodOptional<z.ZodNumber>;
1587
- }, z.core.$strip>]>>;
1588
- }, z.core.$strip>;
2104
+ }, "strip", z.ZodTypeAny, {
2105
+ ttlMs?: number | undefined;
2106
+ }, {
2107
+ ttlMs?: number | undefined;
2108
+ }>]>>;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ id: string;
2111
+ params: Record<string, string>;
2112
+ name: string;
2113
+ description: string;
2114
+ fn: (...args: any[]) => any;
2115
+ toolType?: "source" | "direct" | undefined;
2116
+ fullSchema?: string | undefined;
2117
+ outputSchema?: {
2118
+ description: string;
2119
+ fields: {
2120
+ type: "string" | "number" | "boolean" | "date";
2121
+ name: string;
2122
+ description: string;
2123
+ }[];
2124
+ } | undefined;
2125
+ cache?: false | {
2126
+ ttlMs?: number | undefined;
2127
+ } | undefined;
2128
+ }, {
2129
+ id: string;
2130
+ params: Record<string, string>;
2131
+ name: string;
2132
+ description: string;
2133
+ fn: (...args: any[]) => any;
2134
+ toolType?: "source" | "direct" | undefined;
2135
+ fullSchema?: string | undefined;
2136
+ outputSchema?: {
2137
+ description: string;
2138
+ fields: {
2139
+ type: "string" | "number" | "boolean" | "date";
2140
+ name: string;
2141
+ description: string;
2142
+ }[];
2143
+ } | undefined;
2144
+ cache?: false | {
2145
+ ttlMs?: number | undefined;
2146
+ } | undefined;
2147
+ }>;
1589
2148
  type Tool$1 = z.infer<typeof ToolSchema>;
1590
2149
  type CollectionOperation = 'getMany' | 'getOne' | 'query' | 'mutation' | 'updateOne' | 'deleteOne' | 'createOne';
1591
2150
  type CollectionHandler<TParams = any, TResult = any> = (params: TParams) => Promise<TResult> | TResult;
@@ -1624,6 +2183,8 @@ interface PromptContext {
1624
2183
  dashboardId?: string;
1625
2184
  /** The filter values set on that dashboard, keyed by parameter name. */
1626
2185
  filters?: Record<string, unknown>;
2186
+ /** Follow the question already running in this thread (a reloaded page); never starts a new one. */
2187
+ follow?: boolean;
1627
2188
  }
1628
2189
  /**
1629
2190
  * Everything a replacement answer flow is handed for one question. Deliberately
@@ -1781,39 +2342,32 @@ interface SuperatomSDKConfig {
1781
2342
  declare const KbNodesQueryFiltersSchema: z.ZodObject<{
1782
2343
  query: z.ZodOptional<z.ZodString>;
1783
2344
  category: z.ZodOptional<z.ZodString>;
1784
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1785
- type: z.ZodOptional<z.ZodEnum<{
1786
- query: "query";
1787
- user: "user";
1788
- global: "global";
1789
- }>>;
2345
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2346
+ type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
1790
2347
  createdBy: z.ZodOptional<z.ZodString>;
1791
- }, z.core.$strip>;
2348
+ }, "strip", z.ZodTypeAny, {
2349
+ type?: "query" | "user" | "global" | undefined;
2350
+ query?: string | undefined;
2351
+ category?: string | undefined;
2352
+ createdBy?: string | undefined;
2353
+ tags?: string[] | undefined;
2354
+ }, {
2355
+ type?: "query" | "user" | "global" | undefined;
2356
+ query?: string | undefined;
2357
+ category?: string | undefined;
2358
+ createdBy?: string | undefined;
2359
+ tags?: string[] | undefined;
2360
+ }>;
1792
2361
  type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
1793
2362
  declare const KbNodesRequestPayloadSchema: z.ZodObject<{
1794
- operation: z.ZodEnum<{
1795
- getOne: "getOne";
1796
- search: "search";
1797
- create: "create";
1798
- update: "update";
1799
- delete: "delete";
1800
- getAll: "getAll";
1801
- getByCategory: "getByCategory";
1802
- getByUser: "getByUser";
1803
- getCategories: "getCategories";
1804
- getTags: "getTags";
1805
- }>;
2363
+ operation: z.ZodEnum<["create", "update", "delete", "getAll", "getOne", "search", "getByCategory", "getByUser", "getCategories", "getTags"]>;
1806
2364
  data: z.ZodOptional<z.ZodObject<{
1807
2365
  id: z.ZodOptional<z.ZodNumber>;
1808
2366
  title: z.ZodOptional<z.ZodString>;
1809
2367
  content: z.ZodOptional<z.ZodString>;
1810
2368
  category: z.ZodOptional<z.ZodString>;
1811
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1812
- type: z.ZodOptional<z.ZodEnum<{
1813
- query: "query";
1814
- user: "user";
1815
- global: "global";
1816
- }>>;
2369
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2370
+ type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
1817
2371
  createdBy: z.ZodOptional<z.ZodString>;
1818
2372
  updatedBy: z.ZodOptional<z.ZodString>;
1819
2373
  userId: z.ZodOptional<z.ZodString>;
@@ -1821,37 +2375,165 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
1821
2375
  filters: z.ZodOptional<z.ZodObject<{
1822
2376
  query: z.ZodOptional<z.ZodString>;
1823
2377
  category: z.ZodOptional<z.ZodString>;
1824
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1825
- type: z.ZodOptional<z.ZodEnum<{
1826
- query: "query";
1827
- user: "user";
1828
- global: "global";
1829
- }>>;
2378
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2379
+ type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
1830
2380
  createdBy: z.ZodOptional<z.ZodString>;
1831
- }, z.core.$strip>>;
2381
+ }, "strip", z.ZodTypeAny, {
2382
+ type?: "query" | "user" | "global" | undefined;
2383
+ query?: string | undefined;
2384
+ category?: string | undefined;
2385
+ createdBy?: string | undefined;
2386
+ tags?: string[] | undefined;
2387
+ }, {
2388
+ type?: "query" | "user" | "global" | undefined;
2389
+ query?: string | undefined;
2390
+ category?: string | undefined;
2391
+ createdBy?: string | undefined;
2392
+ tags?: string[] | undefined;
2393
+ }>>;
1832
2394
  limit: z.ZodOptional<z.ZodNumber>;
1833
2395
  offset: z.ZodOptional<z.ZodNumber>;
1834
- }, z.core.$strip>>;
1835
- }, z.core.$strip>;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ id?: number | undefined;
2398
+ type?: "query" | "user" | "global" | undefined;
2399
+ query?: string | undefined;
2400
+ title?: string | undefined;
2401
+ category?: string | undefined;
2402
+ userId?: string | undefined;
2403
+ limit?: number | undefined;
2404
+ filters?: {
2405
+ type?: "query" | "user" | "global" | undefined;
2406
+ query?: string | undefined;
2407
+ category?: string | undefined;
2408
+ createdBy?: string | undefined;
2409
+ tags?: string[] | undefined;
2410
+ } | undefined;
2411
+ createdBy?: string | undefined;
2412
+ updatedBy?: string | undefined;
2413
+ offset?: number | undefined;
2414
+ tags?: string[] | undefined;
2415
+ content?: string | undefined;
2416
+ }, {
2417
+ id?: number | undefined;
2418
+ type?: "query" | "user" | "global" | undefined;
2419
+ query?: string | undefined;
2420
+ title?: string | undefined;
2421
+ category?: string | undefined;
2422
+ userId?: string | undefined;
2423
+ limit?: number | undefined;
2424
+ filters?: {
2425
+ type?: "query" | "user" | "global" | undefined;
2426
+ query?: string | undefined;
2427
+ category?: string | undefined;
2428
+ createdBy?: string | undefined;
2429
+ tags?: string[] | undefined;
2430
+ } | undefined;
2431
+ createdBy?: string | undefined;
2432
+ updatedBy?: string | undefined;
2433
+ offset?: number | undefined;
2434
+ tags?: string[] | undefined;
2435
+ content?: string | undefined;
2436
+ }>>;
2437
+ }, "strip", z.ZodTypeAny, {
2438
+ operation: "getOne" | "search" | "create" | "update" | "delete" | "getAll" | "getByCategory" | "getByUser" | "getCategories" | "getTags";
2439
+ data?: {
2440
+ id?: number | undefined;
2441
+ type?: "query" | "user" | "global" | undefined;
2442
+ query?: string | undefined;
2443
+ title?: string | undefined;
2444
+ category?: string | undefined;
2445
+ userId?: string | undefined;
2446
+ limit?: number | undefined;
2447
+ filters?: {
2448
+ type?: "query" | "user" | "global" | undefined;
2449
+ query?: string | undefined;
2450
+ category?: string | undefined;
2451
+ createdBy?: string | undefined;
2452
+ tags?: string[] | undefined;
2453
+ } | undefined;
2454
+ createdBy?: string | undefined;
2455
+ updatedBy?: string | undefined;
2456
+ offset?: number | undefined;
2457
+ tags?: string[] | undefined;
2458
+ content?: string | undefined;
2459
+ } | undefined;
2460
+ }, {
2461
+ operation: "getOne" | "search" | "create" | "update" | "delete" | "getAll" | "getByCategory" | "getByUser" | "getCategories" | "getTags";
2462
+ data?: {
2463
+ id?: number | undefined;
2464
+ type?: "query" | "user" | "global" | undefined;
2465
+ query?: string | undefined;
2466
+ title?: string | undefined;
2467
+ category?: string | undefined;
2468
+ userId?: string | undefined;
2469
+ limit?: number | undefined;
2470
+ filters?: {
2471
+ type?: "query" | "user" | "global" | undefined;
2472
+ query?: string | undefined;
2473
+ category?: string | undefined;
2474
+ createdBy?: string | undefined;
2475
+ tags?: string[] | undefined;
2476
+ } | undefined;
2477
+ createdBy?: string | undefined;
2478
+ updatedBy?: string | undefined;
2479
+ offset?: number | undefined;
2480
+ tags?: string[] | undefined;
2481
+ content?: string | undefined;
2482
+ } | undefined;
2483
+ }>;
1836
2484
  type KbNodesRequestPayload = z.infer<typeof KbNodesRequestPayloadSchema>;
1837
2485
  declare const DashComponentSchema: z.ZodObject<{
1838
2486
  name: z.ZodString;
1839
2487
  kind: z.ZodString;
1840
2488
  purpose: z.ZodString;
1841
- props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2489
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1842
2490
  description: z.ZodString;
1843
- importance: z.ZodOptional<z.ZodEnum<{
1844
- optional: "optional";
1845
- required: "required";
1846
- recommended: "recommended";
1847
- }>>;
1848
- default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2491
+ importance: z.ZodOptional<z.ZodEnum<["required", "recommended", "optional"]>>;
2492
+ default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1849
2493
  caution: z.ZodOptional<z.ZodString>;
1850
2494
  group: z.ZodOptional<z.ZodString>;
1851
- }, z.core.$strip>]>>>;
2495
+ }, "strip", z.ZodTypeAny, {
2496
+ description: string;
2497
+ importance?: "required" | "recommended" | "optional" | undefined;
2498
+ default?: string | number | boolean | undefined;
2499
+ caution?: string | undefined;
2500
+ group?: string | undefined;
2501
+ }, {
2502
+ description: string;
2503
+ importance?: "required" | "recommended" | "optional" | undefined;
2504
+ default?: string | number | boolean | undefined;
2505
+ caution?: string | undefined;
2506
+ group?: string | undefined;
2507
+ }>]>>>;
1852
2508
  useWhen: z.ZodOptional<z.ZodString>;
1853
2509
  notes: z.ZodOptional<z.ZodString>;
1854
- }, z.core.$strip>;
2510
+ }, "strip", z.ZodTypeAny, {
2511
+ name: string;
2512
+ kind: string;
2513
+ purpose: string;
2514
+ props?: Record<string, string | {
2515
+ description: string;
2516
+ importance?: "required" | "recommended" | "optional" | undefined;
2517
+ default?: string | number | boolean | undefined;
2518
+ caution?: string | undefined;
2519
+ group?: string | undefined;
2520
+ }> | undefined;
2521
+ useWhen?: string | undefined;
2522
+ notes?: string | undefined;
2523
+ }, {
2524
+ name: string;
2525
+ kind: string;
2526
+ purpose: string;
2527
+ props?: Record<string, string | {
2528
+ description: string;
2529
+ importance?: "required" | "recommended" | "optional" | undefined;
2530
+ default?: string | number | boolean | undefined;
2531
+ caution?: string | undefined;
2532
+ group?: string | undefined;
2533
+ }> | undefined;
2534
+ useWhen?: string | undefined;
2535
+ notes?: string | undefined;
2536
+ }>;
1855
2537
  type DashComponent = z.infer<typeof DashComponentSchema>;
1856
2538
  interface T_RESPONSE {
1857
2539
  success: boolean;
@@ -4437,6 +5119,29 @@ interface RowFilter {
4437
5119
  */
4438
5120
  label?: string;
4439
5121
  }
5122
+ /**
5123
+ * One table of an exception. Either `link` + `columns`, or `own`.
5124
+ * - `link`: the column that points at the scope table (or, for the scope table itself, its key).
5125
+ * - `columns`: the only columns with real values on rows that are not the user's own; the
5126
+ * rest are NULL there. The user's own rows keep every column.
5127
+ * - `own`: for a table with no stamp column, a predicate for the user's own rows (`{t}` is the
5128
+ * table); its other rows are not visible at all.
5129
+ */
5130
+ interface PolicyExceptionTable {
5131
+ link?: string;
5132
+ columns?: string[];
5133
+ own?: string;
5134
+ }
5135
+ /**
5136
+ * A named grant: extra rows a restricted user may see outside their branch. `visibleKeys` is
5137
+ * one admin-written SELECT of key values of the scope table (one column): the rows that become visible. Each table
5138
+ * then follows its own stamp. Enforced by the rewriter.
5139
+ */
5140
+ interface PolicyException {
5141
+ name?: string;
5142
+ visibleKeys?: string;
5143
+ tables: Record<string, PolicyExceptionTable>;
5144
+ }
4440
5145
  /**
4441
5146
  * What one user may see in one source. `sourceId` is not optional in spirit: a
4442
5147
  * filter naming a column of one database must never be injected into another's
@@ -4450,6 +5155,8 @@ interface SourcePolicy {
4450
5155
  rowFilters?: RowFilter[];
4451
5156
  /** Gate 3. Empty means no table restriction — see SQL-AUTHORIZATION-DESIGN.md. */
4452
5157
  readableTables?: string[];
5158
+ /** Grants outside the scope above. Empty or absent means none. */
5159
+ exceptions?: PolicyException[];
4453
5160
  }
4454
5161
  interface RequestContext {
4455
5162
  principal: Principal;
@@ -6056,4 +6763,4 @@ declare class SuperatomSDK {
6056
6763
  getConversationSimilarityThreshold(): number;
6057
6764
  }
6058
6765
 
6059
- export { ALL_COLUMN_KEYS, ANSWER_COMPONENT_NAMES, type AgentConfig, type AgentEvent, type AgentResponse, type AgentRunContext, type AgentRunHandlers, type AgentRunRecord, type AgentRunResult, type AgentTrigger, type AgentUsage, type AnalyticsEventType, type AnalyticsStatus, type AnswerProvider, type AnswerProviderContext, type ApplySummary, BM25L, type BM25LOptions, type BaseLLMConfig, type BuildTriggerInput, CATEGORY_KEYS, CONTEXT_CONFIG, type CapturedLog, CleanupService, type CodexSessionOptions, type CodingAgentCollectionConfig, type CodingAgentDefinition, type CodingAgentSession, type CodingAgentSessionOptions, type CodingAgentsConfig, type ColInfo, type ColType, type CollectionHandler, type CollectionOperation, type Component, type DBUIBlock, DEFAULT_AGENT_CONFIG, DEFAULT_FMT_CONFIG, type DashboardAgentCollectionConfig, type DatabaseType, type FindingCode, type Fmt, type FmtConfig, type GeneratedFile, type GraphVersion, type Harness, type HybridSearchOptions, INSTRUCTIONS_FILE, type IncomingMessage, type KbNodesQueryFilters, type KbNodesRequestPayload, LLM, type LLMUsageEntry, type LogLevel, MainAgent, type McpServerSpec, type Message, MissingRequestContextError, type ModelStrategy, NUMERIC_KEYS, type NarrationUpdate, type OutputContract, type OutputField, type OutputValidator, type PiSessionListener, type PiSessionState, type PiTranscriptEntry, type Principal, type PromptAttachment, type PromptContext, type RequestContext, type RerankedResult, type ResolvedAccess, type RowFilter, type RunAgentOptions, STORAGE_CONFIG, type ScriptComponentSpec, ScriptMatcher, type ScriptParameter, type ScriptRecipe, type ScriptRecipeMetaRow, type ScriptRecipeStore, type ScriptResult, ScriptStore, type ScriptStoreOptions, type SelectedWorkflow, type ShimDef, type ShimSummary, type ShimTarget, type SourcePolicy, type SpecToValidate, SuperatomSDK, type SuperatomSDKConfig, type T_RESPONSE, type TaskType, Thread, ThreadManager, type Tool$1 as Tool, type ToolOutputSchema, type TriggerEvent, type TriggerFireInfo, UIBlock, UILogCollector, type User, UserManager, type UsersData, type ValidationContext, type ValidationFinding, type WorkflowDescriptor, type Workspace, accessFromConfig, analyticsClient, answerCatalogForBinding, answerComponents, anthropicLLM, assertReadOnlySql, bindContext, bridgePreamble, captureContext, clearContextTokens, contextTokenCount, createCodexSession, createCodingAgentSession, dashboardConversationHistory, dataFingerprint, describeContext, describeTriggers, emitAgentEvent, extractNamedExport, formatFindingsForAgent, geminiLLM, getCodingAgent, getCodingAgentsConfig, getPiSessionState, getRequestContext, groqLLM, hybridRerank, inferColumns, isUserContext, listCodingAgents, llmUsageLogger, logger, makeFmt, mintContextToken, normalizeScriptBody, onAgentRun, onPiSessionUpdate, openaiLLM, policiesFromConfig, projectForDatasetBinding, promptLoader, queryCache, registerCodingAgentCollection, registerCodingAgents, registerDashboardAgentCollection, requireRequestContext, rerankChromaResults, rerankConversationResults, resolveContextToken, resolveScriptRecipeStore, revokeContextToken, runAsSystem, runAsUser, runCodingAgent, runScript, runWithContext, runWithMessageIdentity, startAgentTriggers, stopAgentTriggers, userPromptErrorLogger, validateComponentSpec, withCapturedContext, writeBridgeShims, writeShims };
6766
+ export { ALL_COLUMN_KEYS, ANSWER_COMPONENT_NAMES, type AgentConfig, type AgentEvent, type AgentResponse, type AgentRunContext, type AgentRunHandlers, type AgentRunRecord, type AgentRunResult, type AgentTrigger, type AgentUsage, type AnalyticsEventType, type AnalyticsStatus, type AnswerProvider, type AnswerProviderContext, type ApplySummary, BM25L, type BM25LOptions, type BaseLLMConfig, type BuildTriggerInput, CATEGORY_KEYS, CONTEXT_CONFIG, type CapturedLog, CleanupService, type CodexSessionOptions, type CodingAgentCollectionConfig, type CodingAgentDefinition, type CodingAgentSession, type CodingAgentSessionOptions, type CodingAgentsConfig, type ColInfo, type ColType, type CollectionHandler, type CollectionOperation, type Component, type DBUIBlock, DEFAULT_AGENT_CONFIG, DEFAULT_FMT_CONFIG, type DashboardAgentCollectionConfig, type DatabaseType, type FindingCode, type Fmt, type FmtConfig, type GeneratedFile, type GraphVersion, type Harness, type HybridSearchOptions, INSTRUCTIONS_FILE, type IncomingMessage, type KbNodesQueryFilters, type KbNodesRequestPayload, LLM, type LLMUsageEntry, type LogLevel, MainAgent, type McpServerSpec, type Message, MissingRequestContextError, type ModelStrategy, NUMERIC_KEYS, type NarrationUpdate, type OutputContract, type OutputField, type OutputValidator, type PiSessionListener, type PiSessionState, type PiTranscriptEntry, type PolicyException, type PolicyExceptionTable, type Principal, type PromptAttachment, type PromptContext, type RequestContext, type RerankedResult, type ResolvedAccess, type RowFilter, type RunAgentOptions, STORAGE_CONFIG, type ScriptComponentSpec, ScriptMatcher, type ScriptParameter, type ScriptRecipe, type ScriptRecipeMetaRow, type ScriptRecipeStore, type ScriptResult, ScriptStore, type ScriptStoreOptions, type SelectedWorkflow, type ShimDef, type ShimSummary, type ShimTarget, type SourcePolicy, type SpecToValidate, SuperatomSDK, type SuperatomSDKConfig, type T_RESPONSE, type TaskType, Thread, ThreadManager, type Tool$1 as Tool, type ToolOutputSchema, type TriggerEvent, type TriggerFireInfo, UIBlock, UILogCollector, type User, UserManager, type UsersData, type ValidationContext, type ValidationFinding, type WorkflowDescriptor, type Workspace, accessFromConfig, analyticsClient, answerCatalogForBinding, answerComponents, anthropicLLM, assertReadOnlySql, bindContext, bridgePreamble, captureContext, clearContextTokens, contextTokenCount, createCodexSession, createCodingAgentSession, dashboardConversationHistory, dataFingerprint, describeContext, describeTriggers, emitAgentEvent, extractNamedExport, formatFindingsForAgent, geminiLLM, getCodingAgent, getCodingAgentsConfig, getPiSessionState, getRequestContext, groqLLM, hybridRerank, inferColumns, isUserContext, listCodingAgents, llmUsageLogger, logger, makeFmt, mintContextToken, normalizeScriptBody, onAgentRun, onPiSessionUpdate, openaiLLM, policiesFromConfig, projectForDatasetBinding, promptLoader, queryCache, registerCodingAgentCollection, registerCodingAgents, registerDashboardAgentCollection, requireRequestContext, rerankChromaResults, rerankConversationResults, resolveContextToken, resolveScriptRecipeStore, revokeContextToken, runAsSystem, runAsUser, runCodingAgent, runScript, runWithContext, runWithMessageIdentity, startAgentTriggers, stopAgentTriggers, userPromptErrorLogger, validateComponentSpec, withCapturedContext, writeBridgeShims, writeShims };