@superatomai/sdk-node 0.0.82-dsp → 0.0.84-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.ts CHANGED
@@ -1366,44 +1366,20 @@ 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
- }, "strip", z.ZodTypeAny, {
1370
- fn: string;
1371
- params?: Record<string, any> | undefined;
1372
- }, {
1373
- fn: string;
1374
- params?: Record<string, any> | undefined;
1375
- }>>>;
1369
+ }, z.core.$strip>>>;
1376
1370
  effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
1377
1371
  fn: z.ZodString;
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">>;
1372
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1373
+ }, z.core.$strip>>>;
1386
1374
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1387
- render: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1375
+ render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1388
1376
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
1389
1377
  id: z.ZodString;
1390
1378
  name: z.ZodString;
1391
1379
  order: z.ZodNumber;
1392
1380
  icon: z.ZodOptional<z.ZodString>;
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">>;
1381
+ render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
1382
+ }, z.core.$strip>>>;
1407
1383
  defaultPageId: z.ZodOptional<z.ZodString>;
1408
1384
  query: z.ZodOptional<z.ZodObject<{
1409
1385
  graphql: z.ZodOptional<z.ZodString>;
@@ -1411,165 +1387,17 @@ declare const DSLRendererPropsSchema$1: z.ZodObject<{
1411
1387
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1412
1388
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1413
1389
  key: z.ZodOptional<z.ZodString>;
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
- }>;
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>;
1498
1398
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1499
1399
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
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
- }>;
1400
+ }, z.core.$strip>;
1573
1401
  type DSLRendererProps$1 = z.infer<typeof DSLRendererPropsSchema$1>;
1574
1402
 
1575
1403
  declare const DSLRendererPropsSchema: z.ZodObject<{
@@ -1581,158 +1409,30 @@ declare const DSLRendererPropsSchema: z.ZodObject<{
1581
1409
  methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1582
1410
  fn: z.ZodString;
1583
1411
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1584
- }, "strip", z.ZodTypeAny, {
1585
- fn: string;
1586
- params?: Record<string, any> | undefined;
1587
- }, {
1588
- fn: string;
1589
- params?: Record<string, any> | undefined;
1590
- }>>>;
1412
+ }, z.core.$strip>>>;
1591
1413
  effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
1592
1414
  fn: z.ZodString;
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">>;
1415
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1416
+ }, z.core.$strip>>>;
1601
1417
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1602
- render: z.ZodType<any, z.ZodTypeDef, any>;
1418
+ render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
1603
1419
  query: z.ZodOptional<z.ZodObject<{
1604
1420
  graphql: z.ZodOptional<z.ZodString>;
1605
1421
  sql: z.ZodOptional<z.ZodString>;
1606
1422
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1607
1423
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1608
1424
  key: z.ZodOptional<z.ZodString>;
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
- }>;
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>;
1677
1433
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1678
1434
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
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
- }>;
1435
+ }, z.core.$strip>;
1736
1436
  type DSLRendererProps = z.infer<typeof DSLRendererPropsSchema>;
1737
1437
 
1738
1438
  declare const UserSchema: z.ZodObject<{
@@ -1742,24 +1442,8 @@ declare const UserSchema: z.ZodObject<{
1742
1442
  fullname: z.ZodOptional<z.ZodString>;
1743
1443
  role: z.ZodOptional<z.ZodString>;
1744
1444
  userInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
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
- }>;
1445
+ wsIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1446
+ }, z.core.$strip>;
1763
1447
  type User = z.infer<typeof UserSchema>;
1764
1448
  declare const UsersDataSchema: z.ZodObject<{
1765
1449
  users: z.ZodArray<z.ZodObject<{
@@ -1769,45 +1453,9 @@ declare const UsersDataSchema: z.ZodObject<{
1769
1453
  fullname: z.ZodOptional<z.ZodString>;
1770
1454
  role: z.ZodOptional<z.ZodString>;
1771
1455
  userInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
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
- }>;
1456
+ wsIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1457
+ }, z.core.$strip>>;
1458
+ }, z.core.$strip>;
1811
1459
  type UsersData = z.infer<typeof UsersDataSchema>;
1812
1460
  declare const MessageSchema: z.ZodObject<{
1813
1461
  id: z.ZodOptional<z.ZodString>;
@@ -1815,49 +1463,13 @@ declare const MessageSchema: z.ZodObject<{
1815
1463
  from: z.ZodObject<{
1816
1464
  id: z.ZodOptional<z.ZodString>;
1817
1465
  type: z.ZodOptional<z.ZodString>;
1818
- }, "strip", z.ZodTypeAny, {
1819
- id?: string | undefined;
1820
- type?: string | undefined;
1821
- }, {
1822
- id?: string | undefined;
1823
- type?: string | undefined;
1824
- }>;
1466
+ }, z.core.$strip>;
1825
1467
  to: z.ZodOptional<z.ZodObject<{
1826
1468
  id: z.ZodOptional<z.ZodString>;
1827
1469
  type: z.ZodOptional<z.ZodString>;
1828
- }, "strip", z.ZodTypeAny, {
1829
- id?: string | undefined;
1830
- type?: string | undefined;
1831
- }, {
1832
- id?: string | undefined;
1833
- type?: string | undefined;
1834
- }>>;
1470
+ }, z.core.$strip>>;
1835
1471
  payload: z.ZodUnknown;
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
- }>;
1472
+ }, z.core.$strip>;
1861
1473
  type Message = z.infer<typeof MessageSchema>;
1862
1474
  declare const IncomingMessageSchema: z.ZodObject<{
1863
1475
  id: z.ZodOptional<z.ZodString>;
@@ -1865,49 +1477,13 @@ declare const IncomingMessageSchema: z.ZodObject<{
1865
1477
  from: z.ZodObject<{
1866
1478
  id: z.ZodOptional<z.ZodString>;
1867
1479
  type: z.ZodOptional<z.ZodString>;
1868
- }, "strip", z.ZodTypeAny, {
1869
- id?: string | undefined;
1870
- type?: string | undefined;
1871
- }, {
1872
- id?: string | undefined;
1873
- type?: string | undefined;
1874
- }>;
1480
+ }, z.core.$strip>;
1875
1481
  to: z.ZodOptional<z.ZodObject<{
1876
1482
  id: z.ZodOptional<z.ZodString>;
1877
1483
  type: z.ZodOptional<z.ZodString>;
1878
- }, "strip", z.ZodTypeAny, {
1879
- id?: string | undefined;
1880
- type?: string | undefined;
1881
- }, {
1882
- id?: string | undefined;
1883
- type?: string | undefined;
1884
- }>>;
1484
+ }, z.core.$strip>>;
1885
1485
  payload: z.ZodUnknown;
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
- }>;
1486
+ }, z.core.$strip>;
1911
1487
  type IncomingMessage = z.infer<typeof IncomingMessageSchema>;
1912
1488
  /**
1913
1489
  * A file attached to a question. Synced with sdk-web: PromptAttachmentSchema.
@@ -1917,23 +1493,11 @@ type IncomingMessage = z.infer<typeof IncomingMessageSchema>;
1917
1493
  * with /upload/chat-attachment/signed-get.
1918
1494
  */
1919
1495
  declare const PromptAttachmentSchema: z.ZodObject<{
1920
- /** The R2 object key. */
1921
1496
  key: z.ZodString;
1922
1497
  fileName: z.ZodString;
1923
- /** Size in bytes. */
1924
1498
  size: z.ZodNumber;
1925
1499
  contentType: z.ZodOptional<z.ZodString>;
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
- }>;
1500
+ }, z.core.$strip>;
1937
1501
  type PromptAttachment = z.infer<typeof PromptAttachmentSchema>;
1938
1502
  /**
1939
1503
  * A file the agent generated or changed for the person: the host backend has put it
@@ -1960,191 +1524,68 @@ declare const ComponentSchema: z.ZodObject<{
1960
1524
  type: z.ZodString;
1961
1525
  description: z.ZodString;
1962
1526
  props: z.ZodObject<{
1963
- query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>>;
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.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>>;
1527
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodType<{}, unknown, z.core.$ZodTypeInternals<{}, unknown>>]>>>;
1969
1528
  title: z.ZodOptional<z.ZodString>;
1970
1529
  description: z.ZodOptional<z.ZodString>;
1971
1530
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1972
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1973
- query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>>;
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">>;
1531
+ }, z.core.$loose>;
1978
1532
  category: z.ZodOptional<z.ZodString>;
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
- }>;
1533
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
1534
+ }, z.core.$strip>;
2015
1535
  type Component = z.infer<typeof ComponentSchema>;
2016
1536
  declare const OutputFieldSchema: z.ZodObject<{
2017
1537
  name: z.ZodString;
2018
- type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1538
+ type: z.ZodEnum<{
1539
+ string: "string";
1540
+ number: "number";
1541
+ boolean: "boolean";
1542
+ date: "date";
1543
+ }>;
2019
1544
  description: z.ZodString;
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
- }>;
1545
+ }, z.core.$strip>;
2029
1546
  type OutputField = z.infer<typeof OutputFieldSchema>;
2030
1547
  declare const OutputSchema: z.ZodObject<{
2031
1548
  description: z.ZodString;
2032
1549
  fields: z.ZodArray<z.ZodObject<{
2033
1550
  name: z.ZodString;
2034
- type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1551
+ type: z.ZodEnum<{
1552
+ string: "string";
1553
+ number: "number";
1554
+ boolean: "boolean";
1555
+ date: "date";
1556
+ }>;
2035
1557
  description: z.ZodString;
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
- }>;
1558
+ }, z.core.$strip>>;
1559
+ }, z.core.$strip>;
2060
1560
  type ToolOutputSchema = z.infer<typeof OutputSchema>;
2061
1561
  declare const ToolSchema: z.ZodObject<{
2062
1562
  id: z.ZodString;
2063
1563
  name: z.ZodString;
2064
1564
  description: z.ZodString;
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) */
1565
+ toolType: z.ZodOptional<z.ZodEnum<{
1566
+ source: "source";
1567
+ direct: "direct";
1568
+ }>>;
2068
1569
  fullSchema: z.ZodOptional<z.ZodString>;
2069
1570
  params: z.ZodRecord<z.ZodString, z.ZodString>;
2070
- fn: z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodAny>;
1571
+ fn: z.ZodCustom<(...args: any[]) => any, (...args: any[]) => any>;
2071
1572
  outputSchema: z.ZodOptional<z.ZodObject<{
2072
1573
  description: z.ZodString;
2073
1574
  fields: z.ZodArray<z.ZodObject<{
2074
1575
  name: z.ZodString;
2075
- type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1576
+ type: z.ZodEnum<{
1577
+ string: "string";
1578
+ number: "number";
1579
+ boolean: "boolean";
1580
+ date: "date";
1581
+ }>;
2076
1582
  description: z.ZodString;
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<{
1583
+ }, z.core.$strip>>;
1584
+ }, z.core.$strip>>;
1585
+ cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
2103
1586
  ttlMs: z.ZodOptional<z.ZodNumber>;
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_0: any, ...args: unknown[]) => 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_0: any, ...args: unknown[]) => 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
- }>;
1587
+ }, z.core.$strip>]>>;
1588
+ }, z.core.$strip>;
2148
1589
  type Tool$1 = z.infer<typeof ToolSchema>;
2149
1590
  type CollectionOperation = 'getMany' | 'getOne' | 'query' | 'mutation' | 'updateOne' | 'deleteOne' | 'createOne';
2150
1591
  type CollectionHandler<TParams = any, TResult = any> = (params: TParams) => Promise<TResult> | TResult;
@@ -2340,32 +1781,39 @@ interface SuperatomSDKConfig {
2340
1781
  declare const KbNodesQueryFiltersSchema: z.ZodObject<{
2341
1782
  query: z.ZodOptional<z.ZodString>;
2342
1783
  category: z.ZodOptional<z.ZodString>;
2343
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2344
- type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
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
1790
  createdBy: z.ZodOptional<z.ZodString>;
2346
- }, "strip", z.ZodTypeAny, {
2347
- type?: "query" | "user" | "global" | undefined;
2348
- query?: string | undefined;
2349
- category?: string | undefined;
2350
- createdBy?: string | undefined;
2351
- tags?: string[] | undefined;
2352
- }, {
2353
- type?: "query" | "user" | "global" | undefined;
2354
- query?: string | undefined;
2355
- category?: string | undefined;
2356
- createdBy?: string | undefined;
2357
- tags?: string[] | undefined;
2358
- }>;
1791
+ }, z.core.$strip>;
2359
1792
  type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
2360
1793
  declare const KbNodesRequestPayloadSchema: z.ZodObject<{
2361
- operation: z.ZodEnum<["create", "update", "delete", "getAll", "getOne", "search", "getByCategory", "getByUser", "getCategories", "getTags"]>;
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
+ }>;
2362
1806
  data: z.ZodOptional<z.ZodObject<{
2363
1807
  id: z.ZodOptional<z.ZodNumber>;
2364
1808
  title: z.ZodOptional<z.ZodString>;
2365
1809
  content: z.ZodOptional<z.ZodString>;
2366
1810
  category: z.ZodOptional<z.ZodString>;
2367
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2368
- type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
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
1817
  createdBy: z.ZodOptional<z.ZodString>;
2370
1818
  updatedBy: z.ZodOptional<z.ZodString>;
2371
1819
  userId: z.ZodOptional<z.ZodString>;
@@ -2373,165 +1821,37 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
2373
1821
  filters: z.ZodOptional<z.ZodObject<{
2374
1822
  query: z.ZodOptional<z.ZodString>;
2375
1823
  category: z.ZodOptional<z.ZodString>;
2376
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2377
- type: z.ZodOptional<z.ZodEnum<["global", "user", "query"]>>;
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
1830
  createdBy: z.ZodOptional<z.ZodString>;
2379
- }, "strip", z.ZodTypeAny, {
2380
- type?: "query" | "user" | "global" | undefined;
2381
- query?: string | undefined;
2382
- category?: string | undefined;
2383
- createdBy?: string | undefined;
2384
- tags?: string[] | undefined;
2385
- }, {
2386
- type?: "query" | "user" | "global" | undefined;
2387
- query?: string | undefined;
2388
- category?: string | undefined;
2389
- createdBy?: string | undefined;
2390
- tags?: string[] | undefined;
2391
- }>>;
1831
+ }, z.core.$strip>>;
2392
1832
  limit: z.ZodOptional<z.ZodNumber>;
2393
1833
  offset: z.ZodOptional<z.ZodNumber>;
2394
- }, "strip", z.ZodTypeAny, {
2395
- id?: number | undefined;
2396
- type?: "query" | "user" | "global" | undefined;
2397
- query?: string | undefined;
2398
- title?: string | undefined;
2399
- category?: string | undefined;
2400
- userId?: string | undefined;
2401
- limit?: number | undefined;
2402
- filters?: {
2403
- type?: "query" | "user" | "global" | undefined;
2404
- query?: string | undefined;
2405
- category?: string | undefined;
2406
- createdBy?: string | undefined;
2407
- tags?: string[] | undefined;
2408
- } | undefined;
2409
- createdBy?: string | undefined;
2410
- updatedBy?: string | undefined;
2411
- offset?: number | undefined;
2412
- tags?: string[] | undefined;
2413
- content?: string | undefined;
2414
- }, {
2415
- id?: number | undefined;
2416
- type?: "query" | "user" | "global" | undefined;
2417
- query?: string | undefined;
2418
- title?: string | undefined;
2419
- category?: string | undefined;
2420
- userId?: string | undefined;
2421
- limit?: number | undefined;
2422
- filters?: {
2423
- type?: "query" | "user" | "global" | undefined;
2424
- query?: string | undefined;
2425
- category?: string | undefined;
2426
- createdBy?: string | undefined;
2427
- tags?: string[] | undefined;
2428
- } | undefined;
2429
- createdBy?: string | undefined;
2430
- updatedBy?: string | undefined;
2431
- offset?: number | undefined;
2432
- tags?: string[] | undefined;
2433
- content?: string | undefined;
2434
- }>>;
2435
- }, "strip", z.ZodTypeAny, {
2436
- operation: "create" | "getOne" | "search" | "update" | "delete" | "getAll" | "getByCategory" | "getByUser" | "getCategories" | "getTags";
2437
- data?: {
2438
- id?: number | undefined;
2439
- type?: "query" | "user" | "global" | undefined;
2440
- query?: string | undefined;
2441
- title?: string | undefined;
2442
- category?: string | undefined;
2443
- userId?: string | undefined;
2444
- limit?: number | undefined;
2445
- filters?: {
2446
- type?: "query" | "user" | "global" | undefined;
2447
- query?: string | undefined;
2448
- category?: string | undefined;
2449
- createdBy?: string | undefined;
2450
- tags?: string[] | undefined;
2451
- } | undefined;
2452
- createdBy?: string | undefined;
2453
- updatedBy?: string | undefined;
2454
- offset?: number | undefined;
2455
- tags?: string[] | undefined;
2456
- content?: string | undefined;
2457
- } | undefined;
2458
- }, {
2459
- operation: "create" | "getOne" | "search" | "update" | "delete" | "getAll" | "getByCategory" | "getByUser" | "getCategories" | "getTags";
2460
- data?: {
2461
- id?: number | undefined;
2462
- type?: "query" | "user" | "global" | undefined;
2463
- query?: string | undefined;
2464
- title?: string | undefined;
2465
- category?: string | undefined;
2466
- userId?: string | undefined;
2467
- limit?: number | undefined;
2468
- filters?: {
2469
- type?: "query" | "user" | "global" | undefined;
2470
- query?: string | undefined;
2471
- category?: string | undefined;
2472
- createdBy?: string | undefined;
2473
- tags?: string[] | undefined;
2474
- } | undefined;
2475
- createdBy?: string | undefined;
2476
- updatedBy?: string | undefined;
2477
- offset?: number | undefined;
2478
- tags?: string[] | undefined;
2479
- content?: string | undefined;
2480
- } | undefined;
2481
- }>;
1834
+ }, z.core.$strip>>;
1835
+ }, z.core.$strip>;
2482
1836
  type KbNodesRequestPayload = z.infer<typeof KbNodesRequestPayloadSchema>;
2483
1837
  declare const DashComponentSchema: z.ZodObject<{
2484
1838
  name: z.ZodString;
2485
1839
  kind: z.ZodString;
2486
1840
  purpose: z.ZodString;
2487
- props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1841
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2488
1842
  description: z.ZodString;
2489
- importance: z.ZodOptional<z.ZodEnum<["required", "recommended", "optional"]>>;
2490
- default: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
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
1849
  caution: z.ZodOptional<z.ZodString>;
2492
1850
  group: z.ZodOptional<z.ZodString>;
2493
- }, "strip", z.ZodTypeAny, {
2494
- description: string;
2495
- importance?: "required" | "recommended" | "optional" | undefined;
2496
- default?: string | number | boolean | undefined;
2497
- caution?: string | undefined;
2498
- group?: string | undefined;
2499
- }, {
2500
- description: string;
2501
- importance?: "required" | "recommended" | "optional" | undefined;
2502
- default?: string | number | boolean | undefined;
2503
- caution?: string | undefined;
2504
- group?: string | undefined;
2505
- }>]>>>;
1851
+ }, z.core.$strip>]>>>;
2506
1852
  useWhen: z.ZodOptional<z.ZodString>;
2507
1853
  notes: z.ZodOptional<z.ZodString>;
2508
- }, "strip", z.ZodTypeAny, {
2509
- name: string;
2510
- kind: string;
2511
- purpose: string;
2512
- props?: Record<string, string | {
2513
- description: string;
2514
- importance?: "required" | "recommended" | "optional" | undefined;
2515
- default?: string | number | boolean | undefined;
2516
- caution?: string | undefined;
2517
- group?: string | undefined;
2518
- }> | undefined;
2519
- useWhen?: string | undefined;
2520
- notes?: string | undefined;
2521
- }, {
2522
- name: string;
2523
- kind: string;
2524
- purpose: string;
2525
- props?: Record<string, string | {
2526
- description: string;
2527
- importance?: "required" | "recommended" | "optional" | undefined;
2528
- default?: string | number | boolean | undefined;
2529
- caution?: string | undefined;
2530
- group?: string | undefined;
2531
- }> | undefined;
2532
- useWhen?: string | undefined;
2533
- notes?: string | undefined;
2534
- }>;
1854
+ }, z.core.$strip>;
2535
1855
  type DashComponent = z.infer<typeof DashComponentSchema>;
2536
1856
  interface T_RESPONSE {
2537
1857
  success: boolean;
@@ -5117,6 +4437,29 @@ interface RowFilter {
5117
4437
  */
5118
4438
  label?: string;
5119
4439
  }
4440
+ /**
4441
+ * One table of an exception. Either `link` + `columns`, or `own`.
4442
+ * - `link`: the column that points at the scope table (or, for the scope table itself, its key).
4443
+ * - `columns`: the only columns with real values on rows that are not the user's own; the
4444
+ * rest are NULL there. The user's own rows keep every column.
4445
+ * - `own`: for a table with no stamp column, a predicate for the user's own rows (`{t}` is the
4446
+ * table); its other rows are not visible at all.
4447
+ */
4448
+ interface PolicyExceptionTable {
4449
+ link?: string;
4450
+ columns?: string[];
4451
+ own?: string;
4452
+ }
4453
+ /**
4454
+ * A named grant: extra rows a restricted user may see outside their branch. `visibleKeys` is
4455
+ * one admin-written SELECT of key values of the scope table (one column): the rows that become visible. Each table
4456
+ * then follows its own stamp. Enforced by the rewriter.
4457
+ */
4458
+ interface PolicyException {
4459
+ name?: string;
4460
+ visibleKeys?: string;
4461
+ tables: Record<string, PolicyExceptionTable>;
4462
+ }
5120
4463
  /**
5121
4464
  * What one user may see in one source. `sourceId` is not optional in spirit: a
5122
4465
  * filter naming a column of one database must never be injected into another's
@@ -5130,6 +4473,8 @@ interface SourcePolicy {
5130
4473
  rowFilters?: RowFilter[];
5131
4474
  /** Gate 3. Empty means no table restriction — see SQL-AUTHORIZATION-DESIGN.md. */
5132
4475
  readableTables?: string[];
4476
+ /** Grants outside the scope above. Empty or absent means none. */
4477
+ exceptions?: PolicyException[];
5133
4478
  }
5134
4479
  interface RequestContext {
5135
4480
  principal: Principal;
@@ -6736,4 +6081,4 @@ declare class SuperatomSDK {
6736
6081
  getConversationSimilarityThreshold(): number;
6737
6082
  }
6738
6083
 
6739
- 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 };
6084
+ 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 };