@xano/sdk 1.0.15 → 1.0.17

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.
Files changed (290) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +33 -37
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-ZRGNOA6Q.js → agent-file-refresh-QTFMNYPY.js} +12 -12
  5. package/dist/{agent-skill-command-DV26SDA2.js → agent-skill-command-XZVBG34H.js} +74 -73
  6. package/dist/{answer-shape-AVZSKBR6.js → answer-shape-ZRQS7ZC4.js} +5 -5
  7. package/dist/{backend-dir-NTMXWE5R.js → backend-dir-DCT3T6HP.js} +11 -11
  8. package/dist/{backend-slot-DZAUHLTS.js → backend-slot-7BATLL3X.js} +4 -4
  9. package/dist/bin.js +64 -63
  10. package/dist/{branch-IJTBZZFO.js → branch-SJKKUCMZ.js} +9 -9
  11. package/dist/branch-commands-OEMOFAKC.js +80 -0
  12. package/dist/bundle.d.ts +2 -2
  13. package/dist/bundle.js +15 -69
  14. package/dist/{capture-GW5KNKMB.js → capture-RYBJE25P.js} +5 -5
  15. package/dist/{chunk-3H7R4ISR.js → chunk-2DUYJR5N.js} +2 -2
  16. package/dist/{chunk-MFWF2NZJ.js → chunk-2H5BQRHF.js} +2 -2
  17. package/dist/{chunk-GDJCWQIK.js → chunk-2IC3K22K.js} +12 -8
  18. package/dist/{chunk-O44MJTLR.js → chunk-35SI4GBM.js} +3 -3
  19. package/dist/{chunk-VUWR5YLE.js → chunk-3QQFP3AD.js} +13 -13
  20. package/dist/{chunk-ICK36EGF.js → chunk-4EVDCSEY.js} +2 -2
  21. package/dist/{chunk-GIQIMWTK.js → chunk-4LT5AVHF.js} +14 -14
  22. package/dist/{chunk-AXMUYBWQ.js → chunk-4XGZ325S.js} +3 -3
  23. package/dist/{chunk-JWASCOHO.js → chunk-52QAENY6.js} +14 -14
  24. package/dist/{chunk-2LF734YB.js → chunk-54CJ74BH.js} +4 -4
  25. package/dist/{chunk-ASQX477B.js → chunk-573RRKNT.js} +7 -7
  26. package/dist/{chunk-3GZMP7II.js → chunk-5AVFVC22.js} +38 -22
  27. package/dist/{chunk-IKXXTRMN.js → chunk-64UVVLDT.js} +4 -4
  28. package/dist/{chunk-RBTZEHXF.js → chunk-6DSA6W4O.js} +3 -3
  29. package/dist/{chunk-EQXHUWUO.js → chunk-6FCAFWD5.js} +2 -2
  30. package/dist/{chunk-4MX5LMPQ.js → chunk-6ODQ5GDZ.js} +2 -2
  31. package/dist/{chunk-ZF2CBXT5.js → chunk-7NKC4MBT.js} +3 -3
  32. package/dist/{chunk-Y5XAPLZS.js → chunk-7UQZ7C4W.js} +4 -4
  33. package/dist/{chunk-CJDPSCMX.js → chunk-7ZVQIKNL.js} +3 -3
  34. package/dist/{chunk-FOBVJ2UR.js → chunk-ACFBRMCS.js} +8 -8
  35. package/dist/{chunk-RVAEPPRH.js → chunk-AICWDCLJ.js} +2 -2
  36. package/dist/{chunk-WS4BA75E.js → chunk-AJBOGO5U.js} +4 -4
  37. package/dist/{chunk-AE5CRAKS.js → chunk-ANUBTY3C.js} +8 -8
  38. package/dist/{chunk-UVHSMANV.js → chunk-C6RBLPFY.js} +47 -47
  39. package/dist/{chunk-SHHXLI2K.js → chunk-CNNGNK46.js} +7 -7
  40. package/dist/{chunk-7ZQ73AHJ.js → chunk-CWC6HE66.js} +31 -31
  41. package/dist/{chunk-A2N2C2WD.js → chunk-DNUU4IEM.js} +7 -7
  42. package/dist/{chunk-Q7DGTQ5G.js → chunk-E34VGSCI.js} +2 -1
  43. package/dist/{chunk-YR3MNGWZ.js → chunk-E5M5P23K.js} +8 -8
  44. package/dist/{chunk-HJZUI2ZU.js → chunk-EAZTRU75.js} +2 -2
  45. package/dist/{chunk-KMKUH2IO.js → chunk-EPB6FAR5.js} +5 -5
  46. package/dist/{chunk-B6AFJVG4.js → chunk-ES6FBPLY.js} +5 -5
  47. package/dist/chunk-EUAU4QKI.js +67 -0
  48. package/dist/{chunk-IDOVZLPK.js → chunk-EXJ4Q5F6.js} +2 -2
  49. package/dist/{chunk-FKQX6KU7.js → chunk-F3JK5RIY.js} +2 -2
  50. package/dist/{chunk-W2QFR3ZJ.js → chunk-FIOC7RSU.js} +2 -2
  51. package/dist/{chunk-YEH5OIPF.js → chunk-FMXPV5JI.js} +39 -11
  52. package/dist/{chunk-GVHWIDEJ.js → chunk-FRJB3NTE.js} +10 -5
  53. package/dist/{chunk-TXFOQZUQ.js → chunk-FSHW3GQU.js} +14 -7
  54. package/dist/{chunk-VIRFG3WG.js → chunk-FTFAPKCW.js} +23 -7
  55. package/dist/{chunk-LL6ED5IB.js → chunk-FTS42N37.js} +2 -2
  56. package/dist/{chunk-HCNIB3EC.js → chunk-FYPTWYCU.js} +4 -4
  57. package/dist/{chunk-MIS6F4HM.js → chunk-G2XSDIYS.js} +4 -4
  58. package/dist/{chunk-ZY55DO5P.js → chunk-G6BEJ3NA.js} +2 -2
  59. package/dist/{chunk-RYWNNJK5.js → chunk-GA6HTO3O.js} +2 -2
  60. package/dist/{chunk-ZYECXDVV.js → chunk-GBPIFCWL.js} +5 -5
  61. package/dist/{chunk-JIKGT7DO.js → chunk-GE3JV5SI.js} +1 -1
  62. package/dist/{chunk-GCINMMFL.js → chunk-GJZMKMWO.js} +2 -2
  63. package/dist/{chunk-6X73VFCX.js → chunk-GT7PZCTK.js} +2 -2
  64. package/dist/{chunk-TT6LN55R.js → chunk-GUC73LRA.js} +8 -8
  65. package/dist/{chunk-ZC6H2ERE.js → chunk-GYM22X2X.js} +5 -5
  66. package/dist/{chunk-V7WCTXEH.js → chunk-H3R4PAOI.js} +5 -5
  67. package/dist/{chunk-QW7NGUYW.js → chunk-H5OM5G3O.js} +244 -173
  68. package/dist/{chunk-WXKSB2N3.js → chunk-HM5X73PY.js} +3 -3
  69. package/dist/{chunk-K6SWZ6H4.js → chunk-HMV2VGTU.js} +54 -54
  70. package/dist/{chunk-G4WRZU5T.js → chunk-HXFUCPZO.js} +7 -7
  71. package/dist/{chunk-ECQXASG3.js → chunk-IFHFJR5O.js} +2 -2
  72. package/dist/{chunk-7AKH4QDJ.js → chunk-J2KY2VNC.js} +96 -65
  73. package/dist/{chunk-74OPNM2Z.js → chunk-JHAZK4RY.js} +3 -3
  74. package/dist/{chunk-JAYHFXWH.js → chunk-LWGCUB2A.js} +7 -7
  75. package/dist/{chunk-CJGLAQRD.js → chunk-LXJ72GY2.js} +4 -4
  76. package/dist/{chunk-OZWAITII.js → chunk-M2IB6N4V.js} +6 -6
  77. package/dist/{chunk-GKQTXUOW.js → chunk-MOVRSULZ.js} +2 -2
  78. package/dist/{chunk-QAEBBTYR.js → chunk-MSYMEP7Y.js} +7 -7
  79. package/dist/{chunk-Y453TW6J.js → chunk-NCERS5QH.js} +2 -2
  80. package/dist/{chunk-T3HNISBN.js → chunk-NDRIMFSH.js} +3 -3
  81. package/dist/{chunk-HXFLHA5K.js → chunk-NH5Z2NOD.js} +2 -2
  82. package/dist/{chunk-FXZEZAV2.js → chunk-NLWYNVJV.js} +3 -3
  83. package/dist/{chunk-66ZU2CD5.js → chunk-O2BLNQEC.js} +236 -17
  84. package/dist/{chunk-5SKWGCAJ.js → chunk-O7Z3LF44.js} +5 -5
  85. package/dist/{chunk-DBDTQR23.js → chunk-OTQF4B37.js} +4 -4
  86. package/dist/{chunk-SL55XKVL.js → chunk-PCY4IPXK.js} +25 -25
  87. package/dist/{chunk-ZDVVIJPU.js → chunk-PODT53SQ.js} +4 -4
  88. package/dist/{chunk-GBSHHNSD.js → chunk-PRSNMSVG.js} +3 -3
  89. package/dist/{chunk-UNFQN3TT.js → chunk-Q3CBDXKL.js} +3 -3
  90. package/dist/{chunk-P7GKTV7N.js → chunk-Q4LJCCH5.js} +75 -32
  91. package/dist/{chunk-DGYXCIBV.js → chunk-Q6AKSLD2.js} +2 -2
  92. package/dist/{chunk-7FIMUFBP.js → chunk-QDPY7RN3.js} +3 -3
  93. package/dist/{chunk-MGG4CHO4.js → chunk-QIT2GGNB.js} +3 -3
  94. package/dist/{chunk-VXHXSGPU.js → chunk-QTOW6YXL.js} +8 -8
  95. package/dist/{chunk-5SJQAJLF.js → chunk-QYZSNN35.js} +3 -3
  96. package/dist/{chunk-NNI5R6V6.js → chunk-R7Y6S7FF.js} +72 -72
  97. package/dist/{chunk-BEKEOXNG.js → chunk-RGPHFHJU.js} +2 -2
  98. package/dist/{chunk-YCKKL5PD.js → chunk-RH3NQTGQ.js} +53 -47
  99. package/dist/{chunk-5FJ4M4HB.js → chunk-RHH6SCB4.js} +17 -32
  100. package/dist/{chunk-M7O3T7IM.js → chunk-RIT3WBBX.js} +4 -4
  101. package/dist/{chunk-45K2QZBR.js → chunk-RKNCISPM.js} +3 -3
  102. package/dist/{chunk-NPYYDTXS.js → chunk-RKTVXFBV.js} +5 -5
  103. package/dist/{chunk-AXNX4NWN.js → chunk-RLQX6LHW.js} +37 -37
  104. package/dist/{chunk-FIERONKM.js → chunk-ROWYW3JF.js} +2 -2
  105. package/dist/{chunk-LSJ3SQEU.js → chunk-RVWWNNZQ.js} +4 -4
  106. package/dist/{chunk-4MIV244X.js → chunk-SGEOXJIH.js} +9 -2
  107. package/dist/{chunk-QRMKQYCB.js → chunk-SINL5WMI.js} +2 -2
  108. package/dist/{chunk-Z6N5N4MN.js → chunk-SIW2HT2H.js} +21 -5
  109. package/dist/{chunk-IEDQT4Z3.js → chunk-SOAZIMWL.js} +12 -12
  110. package/dist/{chunk-R3GPRNBT.js → chunk-SVQMDVND.js} +87 -16
  111. package/dist/{chunk-45ZUMF4E.js → chunk-TPUAXIPR.js} +2 -2
  112. package/dist/{chunk-76SBT7KS.js → chunk-U56HK2RG.js} +7 -5
  113. package/dist/{chunk-RXNMZM6H.js → chunk-UDW2KAVF.js} +6 -6
  114. package/dist/{chunk-NDV6CBR7.js → chunk-UH5VQGNR.js} +2 -2
  115. package/dist/{chunk-75QC66XI.js → chunk-V2MIBJZU.js} +2 -2
  116. package/dist/{chunk-N72XNQNJ.js → chunk-V4466NNS.js} +14 -14
  117. package/dist/{chunk-XPSDDTUZ.js → chunk-VCFRALU7.js} +3 -3
  118. package/dist/{chunk-5KJBWIDZ.js → chunk-VQDVEHDB.js} +2 -2
  119. package/dist/{chunk-6EFXPTHT.js → chunk-WAP5362D.js} +5 -5
  120. package/dist/{chunk-DH6O5NQU.js → chunk-WDN4QIJ4.js} +29 -20
  121. package/dist/{chunk-XLP4CNSF.js → chunk-WGGATSIP.js} +6 -6
  122. package/dist/{chunk-XY4OBD26.js → chunk-WGKKDGSA.js} +4 -4
  123. package/dist/{chunk-ZPJXWMHK.js → chunk-WLZSKD7E.js} +4 -4
  124. package/dist/{chunk-7REDHC4N.js → chunk-X5NF3ZXW.js} +69 -14
  125. package/dist/{chunk-5W7S2SCA.js → chunk-XAE4NIZ2.js} +4 -4
  126. package/dist/{chunk-SPLRKCFV.js → chunk-XDGLYIB2.js} +2 -2
  127. package/dist/{chunk-WS2X5BB2.js → chunk-YYBBJPCL.js} +5 -5
  128. package/dist/{chunk-ZOHEHIFS.js → chunk-YYDM4DNP.js} +2 -2
  129. package/dist/{chunk-SH4RY6QX.js → chunk-Z73I7Q2H.js} +1536 -413
  130. package/dist/{chunk-GRXX2TOJ.js → chunk-ZHFSIQ6E.js} +2 -2
  131. package/dist/{chunk-SXMZNSQ6.js → chunk-ZQUBCGGR.js} +8 -8
  132. package/dist/{chunk-ZRXDPCMN.js → chunk-ZYZ7GRX3.js} +2 -2
  133. package/dist/cli.d.ts +3 -3
  134. package/dist/cli.js +62 -61
  135. package/dist/codegen-command-HCHTNHDF.js +183 -0
  136. package/dist/codegen.d.ts +3 -3
  137. package/dist/codegen.js +5 -5
  138. package/dist/{commands-5ILSWDSV.js → commands-Z2QZOORB.js} +3 -3
  139. package/dist/{completion-UNKBVVDT.js → completion-LFXXNQGR.js} +3 -3
  140. package/dist/{config-NTOASFCA.js → config-7GGINOFY.js} +4 -4
  141. package/dist/{deploy-command-BYAZZF37.js → deploy-command-LYZ76OBA.js} +69 -68
  142. package/dist/{deploy-source-QCPZWNJO.js → deploy-source-AJESF6J2.js} +32 -32
  143. package/dist/{dev-env-sync-6MHK3UHC.js → dev-env-sync-PZEIRCFC.js} +63 -62
  144. package/dist/{diagnostics-FNVNRYMB.js → diagnostics-T3RN3372.js} +2 -2
  145. package/dist/{display-name-hint-MYXCCAOP.js → display-name-hint-5GLJGPQ6.js} +11 -11
  146. package/dist/{emit-YLt3GfsZ.d.ts → emit-DlOKIJER.d.ts} +185 -96
  147. package/dist/env-example-refresh-HLE2HRV4.js +136 -0
  148. package/dist/{env-pull-command-KUIEKBTM.js → env-pull-command-OTTZHTLK.js} +52 -52
  149. package/dist/{env-target-Y77RLRS5.js → env-target-VXOMKCMO.js} +14 -14
  150. package/dist/{env-var-command-BZWJD75C.js → env-var-command-TDVSO3JY.js} +41 -41
  151. package/dist/{ephemeral-VLPRDNEJ.js → ephemeral-2DXWP3VK.js} +9 -9
  152. package/dist/{ephemeral-command-SYKDPALW.js → ephemeral-command-AX5TRR23.js} +52 -52
  153. package/dist/{ephemeral-state-RUOU2GFS.js → ephemeral-state-56XEDUJW.js} +12 -12
  154. package/dist/{generate-command-CSQDQZSW.js → generate-command-LMSKMR4J.js} +89 -88
  155. package/dist/{gitignore-OQGYM7DO.js → gitignore-GKM5G2DJ.js} +15 -15
  156. package/dist/{guards-JUYBDLZY.js → guards-LQ7PSXOL.js} +51 -15
  157. package/dist/{impersonate-command-HSFCZBV6.js → impersonate-command-QTEOBL5N.js} +37 -37
  158. package/dist/{import-T4ZTOTBT.js → import-VJQGIS33.js} +5 -5
  159. package/dist/index.d.ts +597 -118
  160. package/dist/index.js +29 -28
  161. package/dist/init-command-OMZVE54Z.js +143 -0
  162. package/dist/{init-modules-BL2SR5RK.js → init-modules-OTISW6LL.js} +8 -8
  163. package/dist/{init-web-DYE2FEXL.js → init-web-25QJ4JWB.js} +3 -3
  164. package/dist/internal.d.ts +55 -8
  165. package/dist/internal.js +696 -506
  166. package/dist/{io-PGTCBSIQ.js → io-47TFRYDB.js} +6 -6
  167. package/dist/{keep-data-merge-SHF75FC7.js → keep-data-merge-ECLY5DYP.js} +38 -38
  168. package/dist/{lambda-config-reconcile-VOBVZPWS.js → lambda-config-reconcile-CC5QIP6E.js} +3 -3
  169. package/dist/{landed-F7PCHGCK.js → landed-VIUFHLCJ.js} +5 -5
  170. package/dist/{landing-record-7EOLEKH3.js → landing-record-RVE5WLFS.js} +22 -22
  171. package/dist/{live-diff-M2OLXKM6.js → live-diff-KJ2TWWWT.js} +14 -14
  172. package/dist/{local-engine-choice-TOC3UYZZ.js → local-engine-choice-CMG5V7RL.js} +35 -35
  173. package/dist/{local-engine-command-6KSRDZBR.js → local-engine-command-UMY37AZL.js} +40 -40
  174. package/dist/{local-engine-deploy-4N4NFZ4T.js → local-engine-deploy-XAEDT55W.js} +12 -12
  175. package/dist/{local-engine-lookup-AQTUGSBT.js → local-engine-lookup-WBYTY2JE.js} +2 -2
  176. package/dist/{local-engine-mcp-bridge-AMYRH4SY.js → local-engine-mcp-bridge-3H5OXBWQ.js} +5 -5
  177. package/dist/{local-engine-mcp-command-XTP3EATV.js → local-engine-mcp-command-AV2T3U4B.js} +42 -42
  178. package/dist/{local-engine-process-OD5OSWDG.js → local-engine-process-35B2KQED.js} +7 -7
  179. package/dist/{local-engine-update-check-G3YCBXRE.js → local-engine-update-check-VXJZSIJU.js} +5 -5
  180. package/dist/{lock-HDCHD2ON.js → lock-JBKTDEDO.js} +4 -4
  181. package/dist/{lock-commands-437P6BHY.js → lock-commands-PSKHBOKS.js} +67 -66
  182. package/dist/{login-command-BNRDAVFV.js → login-command-M7RKU3DR.js} +27 -27
  183. package/dist/{logout-command-FCGCHB7Y.js → logout-command-DAC3XKLT.js} +17 -17
  184. package/dist/{loop-WOAEXMTC.js → loop-HILLODVH.js} +15 -15
  185. package/dist/{marketplace-command-SUBJZPJV.js → marketplace-command-2M33OTSN.js} +30 -30
  186. package/dist/{marketplace-resolve-JR4BBJ6K.js → marketplace-resolve-63QWMQZU.js} +6 -6
  187. package/dist/{meta-client-AYJS3RQ3.js → meta-client-FC4DWPAC.js} +15 -15
  188. package/dist/{module-manifest-63I5GRK4.js → module-manifest-NWJWAQLQ.js} +4 -4
  189. package/dist/node.d.ts +8 -8
  190. package/dist/node.js +71 -70
  191. package/dist/{operation-outcome-ORQPVJKB.js → operation-outcome-3V4G7QD3.js} +24 -24
  192. package/dist/{output-target-KNHHNDM3.js → output-target-LTU4L3IA.js} +16 -16
  193. package/dist/{plan-disclosure-4DUFRGCP.js → plan-disclosure-6MG4YYJV.js} +28 -28
  194. package/dist/{plugin-contributions-YYEP7IWH.js → plugin-contributions-DD6R6RL6.js} +5 -5
  195. package/dist/{plugin-prompt-GKCQKNYI.js → plugin-prompt-UX2TT5NS.js} +5 -5
  196. package/dist/{plugin-questions-P7MA3TYI.js → plugin-questions-WE2F4ZC4.js} +4 -4
  197. package/dist/{preflight-command-32GFVKSN.js → preflight-command-724B7Y73.js} +75 -74
  198. package/dist/{profile-command-U2XTKOMF.js → profile-command-REIJ4F3Y.js} +28 -28
  199. package/dist/{profile-pointer-JJ7K5O2R.js → profile-pointer-RCPHVTJV.js} +4 -4
  200. package/dist/{project-dependency-X3KCWBK5.js → project-dependency-TPVV3YIX.js} +7 -7
  201. package/dist/{project-sdk-YHJZRCNB.js → project-sdk-DKZBK5H5.js} +4 -4
  202. package/dist/promote-command-5FK2NFHG.js +149 -0
  203. package/dist/{prompt-QNMJIWNI.js → prompt-OYQHQWKI.js} +4 -4
  204. package/dist/{publish-command-5ZVZ6IYT.js → publish-command-VEDUWLVB.js} +72 -71
  205. package/dist/pull-command-UXNEJSDI.js +171 -0
  206. package/dist/{pull-superseded-6HADGGC5.js → pull-superseded-3SSM3JFT.js} +4 -4
  207. package/dist/{raw-where-gWGr-E4t.d.ts → raw-where-CinW0keO.d.ts} +32 -4
  208. package/dist/release-command-BCKJ4BUN.js +153 -0
  209. package/dist/{release-ns-command-LDN5DOKQ.js → release-ns-command-VFI4PPSX.js} +96 -95
  210. package/dist/{retry-command-LFZYEVRU.js → retry-command-WP4ZI6CJ.js} +8 -8
  211. package/dist/{routes-manifest-BMAOL6WN.js → routes-manifest-N73THJB3.js} +16 -16
  212. package/dist/routes-manifest-file-R3JLJ5CA.js +41 -0
  213. package/dist/scaffold.js +2 -2
  214. package/dist/{secrets-file-7QM3ORGX.js → secrets-file-GF46TDY7.js} +15 -15
  215. package/dist/{secrets-fill-command-OZ537VOD.js → secrets-fill-command-HKNROT6W.js} +66 -65
  216. package/dist/{seed-ATGBOEJP.js → seed-W5FNE6IB.js} +13 -13
  217. package/dist/{source-resolve-QYSWA3QR.js → source-resolve-QYSVNJMY.js} +22 -22
  218. package/dist/{static-host-MO4VDHL7.js → static-host-3HPZKVKK.js} +5 -5
  219. package/dist/{status-command-IEB4K7ME.js → status-command-RLXDDCZA.js} +38 -38
  220. package/dist/{store-AJX4MC7Y.js → store-B63BQV6R.js} +6 -6
  221. package/dist/{store-DspGMsFY.d.ts → store-Dg9FLJkx.d.ts} +185 -11
  222. package/dist/sync-baseline-GRS33AB5.js +38 -0
  223. package/dist/{sync-contributions-DLV5JZUK.js → sync-contributions-BV7DFWBZ.js} +9 -9
  224. package/dist/{sync-record-NE62ERA3.js → sync-record-AWFCSS4D.js} +15 -15
  225. package/dist/{table-TFD4ZQXA.js → table-WJ7YDJ6Q.js} +12 -12
  226. package/dist/{tables-command-IMCVPUFY.js → tables-command-EXHXLLN6.js} +41 -41
  227. package/dist/{tenant-IIYECNWO.js → tenant-IXIW3FOI.js} +10 -10
  228. package/dist/{tenant-command-77KG76MU.js → tenant-command-D5H7MR3C.js} +104 -103
  229. package/dist/{test-command-NSPU4RUO.js → test-command-ORMWZXC3.js} +56 -45
  230. package/dist/{tests-JWQRHFCT.js → tests-N4MMBABH.js} +6 -6
  231. package/dist/{token-BDHD7GU3.js → token-EFSD6WSQ.js} +13 -13
  232. package/dist/{toolchain-hooks-QHJRDCRW.js → toolchain-hooks-IJWV3ZQS.js} +18 -18
  233. package/dist/{toolchain-modules-LY7BMYG6.js → toolchain-modules-BC37MYYD.js} +5 -5
  234. package/dist/{toolchain-peers-FQJBTKEB.js → toolchain-peers-EMOYN4U7.js} +8 -8
  235. package/dist/{tracked-backend-BIR7YJCE.js → tracked-backend-IPEGNGNI.js} +34 -34
  236. package/dist/update-check-4YTFF7NB.js +141 -0
  237. package/dist/{upgrade-command-YCADQCIA.js → upgrade-command-J4CPYEGO.js} +68 -67
  238. package/dist/{whoami-command-IZCTUPM4.js → whoami-command-XGVTKQSL.js} +16 -16
  239. package/dist/{workspace-TK52V7WO.js → workspace-JGUNVFRE.js} +5 -5
  240. package/dist/{workspace-binding-3UT6PP4B.js → workspace-binding-MQ2QIWOJ.js} +15 -15
  241. package/dist/{workspace-command-46OCB6XT.js → workspace-command-LSEG62RA.js} +100 -99
  242. package/dist/{workspace-env-PVPOWFNZ.js → workspace-env-7U7OLRUO.js} +18 -12
  243. package/dist/{workspace-export-PUEXKZNS.js → workspace-export-3KMWNZDD.js} +5 -5
  244. package/dist/{writable-LMMG4AFZ.js → writable-X7BCN7XE.js} +4 -4
  245. package/dist/xano-RLSNDM7O.js +44 -0
  246. package/dist/{xanosdk-import-XXJT365U.js → xanosdk-import-Y5SBF4LP.js} +10 -10
  247. package/dist/{xanosdk-project-CJKRLQ6U.js → xanosdk-project-5XARMFZ7.js} +13 -13
  248. package/dist/{xdo-D4OwfF2J.d.ts → xdo-DNGZGO1j.d.ts} +50 -12
  249. package/guides/authoring.md +1 -0
  250. package/guides/codes.md +33 -3
  251. package/guides/coverage.md +2 -2
  252. package/guides/object-kinds.md +1 -1
  253. package/guides/typed-frontend.md +9 -0
  254. package/llms/client.md +54 -36
  255. package/llms/errors.md +26 -6
  256. package/llms/fields.md +56 -32
  257. package/llms/filters.md +55 -46
  258. package/llms/kinds-agent-mcp.md +10 -9
  259. package/llms/kinds-core.md +19 -15
  260. package/llms/kinds-knowledge.md +4 -4
  261. package/llms/kinds-realtime.md +25 -23
  262. package/llms/lambda.md +42 -30
  263. package/llms/legacy.md +6 -7
  264. package/llms/lock.md +21 -17
  265. package/llms/object-kinds.md +9 -11
  266. package/llms/statements-calls.md +41 -20
  267. package/llms/statements-catalog.md +32 -25
  268. package/llms/statements-data.md +35 -25
  269. package/llms/statements-runtime.md +28 -18
  270. package/llms/tests.md +20 -7
  271. package/llms/toolchain.md +12 -9
  272. package/llms/triggers.md +15 -19
  273. package/llms/values.md +16 -9
  274. package/llms-full.txt +647 -506
  275. package/llms.txt +120 -137
  276. package/manifest.json +147 -95
  277. package/package.json +1 -1
  278. package/skills/xano-backend/SKILL.md +10 -12
  279. package/types/lambda-globals.d.ts +6 -1
  280. package/dist/branch-commands-4PJEBNRK.js +0 -80
  281. package/dist/codegen-command-RDD4GL35.js +0 -182
  282. package/dist/env-example-refresh-MQWHY7ZS.js +0 -135
  283. package/dist/init-command-6Z7QNVDY.js +0 -142
  284. package/dist/promote-command-OO56IZBT.js +0 -148
  285. package/dist/pull-command-LT5PCEIW.js +0 -170
  286. package/dist/release-command-RBUOXIH7.js +0 -152
  287. package/dist/routes-manifest-file-MPOVKD6N.js +0 -41
  288. package/dist/sync-baseline-IB7MABZO.js +0 -38
  289. package/dist/update-check-JDARCXAX.js +0 -140
  290. package/dist/xano-EOUVXNQX.js +0 -43
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { y as Condition, bB as TableDef, aQ as PathParams, x as Comparison, bq as SearchGroup, A as AddonDef, aN as OutputPath, aU as QualifiedCol, M as DbEval, bA as SortDirective, O as DbWhere, a2 as InferRow, aO as OutputRoot, a5 as InternalColsOf, aP as PagingEnvelopeField, k as AggregateRow, Q as EvalFields, aA as MicroserviceDef, g as AgentResultOf, a3 as InputDescriptor, F as FunctionDef, aX as QueryHandle } from './emit-YLt3GfsZ.js';
2
- export { a as AddonXdo, b as AdoptChange, c as AdoptResult, d as AgentDef, e as AgentHandle, f as AgentOutput, h as AgentSettingsXdo, i as AgentTriggerInputs, j as AgentXdo, l as AnthropicLlm, m as ApiGroupDef, n as ApiGroupXdo, o as AuthRef, B as Bundle, p as BundlePayload, q as BundleType, C as ChannelConversationDef, r as ChannelDeliveryDef, s as ChannelDeliveryGuarantee, t as ChannelPublishDef, u as ChannelPublishWho, v as ChannelRateLimitDef, w as ColumnDef, z as ContainerEnv, D as ContainerPort, E as ContainerResources, G as ContainerVolume, H as CorsConfig, I as CorsMode, J as DatabaseActions, K as DatabaseInputs, N as DbEvalFilter, P as ErrorInputs, R as ExceptionPolicy, S as FieldAccessor, T as GoogleGenAiLlm, U as HistoryInput, V as HostedFile, W as HostedFileAccess, Y as HttpVerb, Z as IndexDef, _ as IndexLang, $ as IndexOp, a0 as IndexType, a1 as IndexXdo, a4 as InputOptions, a6 as KnowledgeDef, a7 as KnowledgeDirSource, a8 as KnowledgeFileSource, a9 as KnowledgeMode, aa as KnowledgeType, ab as LlmPrompt, ac as LlmProvider, ad as LlmSettings, ae as LockEntry, af as LockExportContext, L as LockFile, ag as McpIcon, ah as McpIconMimeType, ai as McpOauth, aj as McpOauthEnvString, ak as McpOauthExternal, al as McpOauthHosted, am as McpOauthPreset, an as McpOauthXdo, ao as McpPathOptions, ap as McpPrimitiveEntry, aq as McpPrimitiveRef, ar as McpServerDef, as as McpServerHandle, at as McpServerTriggerInputs, au as McpServerXdo, av as MergeResult, aw as MessageDeliverTo, ax as MicroserviceChart, ay as MicroserviceConfig, az as MicroserviceContainer, aB as MicroserviceDeployment, aC as MicroserviceIngress, aD as MicroserviceIngressPath, aE as MicroserviceRegistryAuth, aF as MicroserviceVolume, aG as MicroserviceXdo, aH as MiddlewareAttach, aI as MiddlewareAttachEntry, aJ as MiddlewareDef, aK as MiddlewareXdo, aL as ObjectKind, aM as OpenAiLlm, aR as PayloadArrayKey, aS as PromptDef, aT as PromptXdo, aV as QueryDef, aW as QueryFilterName, aY as QueryResponseType, aZ as QueryXdo, a_ as RealtimeActions, a$ as RealtimeChannelActions, b0 as RealtimeChannelDef, b1 as RealtimeChannelHandle, b2 as RealtimeChannelRef, b3 as RealtimeChannelTriggerInputs, b4 as RealtimeChannelXdo, b5 as RealtimeClient, b6 as RealtimeInputs, b7 as RealtimeMessageDef, b8 as RealtimeMessageXdo, b9 as RealtimeServerActions, ba as RealtimeServerDef, bb as RealtimeServerHandle, bc as RealtimeServerRef, bd as RealtimeServerTriggerInputs, be as RealtimeServerXdo, bf as RealtimeUrlOptions, bg as RenameResult, bh as ResourceAnnotations, bi as ResourceDef, bj as ResourceXdo, bk as ResultStrategy, bl as RowOf, bm as ScheduleDef, bn as SchemaCols, bo as SchemaDef, bp as SearchComparison, br as SearchNode, bs as SearchOp, bt as SearchParamValue, bu as SearchParams, bv as SearchParamsMembers, bw as SeedFileSource, bx as SeedRow, by as SeedSource, bz as SortDir, bC as TableXdo, bD as TaskDef, bE as TaskXdo, bF as ToolAnnotations, bG as ToolDef, bH as ToolXdo, bI as ToolsetBaseDef, bJ as ToolsetBaseXdo, bK as ToolsetToolEntry, bL as ToolsetToolRef, bM as ToolsetType, bN as TriggerDef, bO as TriggerObjType, bP as TriggerXdo, bQ as UrlLike, bR as ViewDef, bS as ViewXdo, bT as WorkflowTestDef, bU as WorkflowTestXdo, bV as WorkspaceActions, bW as WorkspaceConfigDef, bX as WorkspaceConfigXdo, bY as WorkspaceHistoryDef, bZ as WorkspaceHistoryXdo, b_ as WorkspaceInputs, b$ as WorkspaceMiddlewareDef, c0 as WorkspaceMiddlewareXdo, X as Xano, c1 as XanoFreeLlm, c2 as addon, c3 as agent, c4 as agentTrigger, c5 as and, c6 as apiGroup, c7 as cmp, c8 as defineFunction, c9 as emit, ca as emitBundle, cb as errorTrigger, cc as expr, cd as hostedFile, ce as input, cf as isHostedFile, cg as knowledge, ch as knowledgeDir, ci as knowledgeFile, cj as mcpServer, ck as mcpServerTrigger, cl as microservice, cm as middleware, cn as mixed, co as or, cp as prompt, cq as query, cr as realtimeChannel, cs as realtimeChannelTrigger, ct as realtimeMessage, cu as realtimeServer, cv as realtimeServerTrigger, cw as realtimeTrigger, cx as resource, cy as seedFile, cz as table, cA as tableTrigger, cB as task, cC as toSearchParams, cD as tool, cE as typedEnv, cF as workflowTest, cG as workspace, cH as workspaceConfig, cI as workspaceTrigger } from './emit-YLt3GfsZ.js';
3
- import { n as FromFieldMap, S as Statement, H as StatementAnnotations, M as MaybeBodyBrand, b as BranchesBrand, J as StatementOptions, v as ObjectRef, a as AsShapeBrand, o as MemberUpdateBrand, w as Prettify, C as CatchBrand, B as BodyBrand, m as FoundBrand, A as AppendBrand, W as XanoFileRef, x as ProtoKeySafe, N as NoExtraKeys, X as XanoDbLink } from './raw-where-gWGr-E4t.js';
4
- export { c as BrandOpts, d as BrandType, e as BrandValue, f as ConstMethodOpts, D as DecimalMethod, E as EmailMethod, g as EnumDefault, F as FieldAccess, h as FieldDescriptor, i as FieldMap, j as FieldOptions, k as FieldOpts, l as FieldStyleType, I as IntMethod, p as MethodArg, q as MethodOpts, r as MethodSpec, s as MockEntry, t as MockMap, u as MockXdo, O as ObjectOf, P as PasswordMethod, R as RawBrandValue, y as ReadonlyMethods, z as ResponseDef, G as RowFromFieldMap, T as TableRefMethod, K as TextFormat, L as TextMethod, Q as TypeBrand, V as ValueOf, U as VectorMethod, Y as XanoFileUpload, Z as XanoGeoData, _ as XanoGeoPosition, $ as XanoGeoType, a0 as XanoGeoValue, a1 as annotate, a2 as f, a3 as statements } from './raw-where-gWGr-E4t.js';
5
- import { V as Value, N as NotObjMember, i as FilterXdo, j as FilteredValue, A as AuthValue, b as CaughtValue, a4 as CaughtShape, e as ConstValue, R as RefValue, I as InpValue, k as FunctionXdo } from './xdo-D4OwfF2J.js';
6
- export { C as CacheXdo, a as CaughtField, c as ConditionalContext, d as ConditionalElifContext, E as ExprGroup, f as ExprNode, g as ExprOperand, h as ExprStatement, F as FieldXdo, H as HistoryXdo, l as InputXdo, L as ListBoundsXdo, M as MethodXdo, P as PersistedFunctionRow, Q as QUERY_AGGREGATE_NAMES, m as QUERY_FILTER_NAMES, n as QUERY_FILTER_SPECS, o as QueryFilter, p as QueryFilterResults, q as RegexValue, r as ResultItemXdo, S as StackItemXdo, s as StatementInputXdo, T as TAGS, t as TEST_EXPECT_TYPES, u as Tag, v as TaggedValue, w as TestDef, x as TestExpect, y as TestExpectType, z as TestXdo, B as auth, D as c, G as caught, J as col, K as env, O as expect, U as filter, W as inp, X as out, Y as qf, Z as ref, _ as resp, $ as setting, a0 as sys, a1 as test, a2 as toolset, a3 as withFilters } from './xdo-D4OwfF2J.js';
7
- import { f as FilterResults, E as ElementResult, S as SameArrayResult, G as GroupedArrayResult, a3 as fl$1, O as OutputAuthored, Y as generated } from './store-DspGMsFY.js';
8
- export { A as AmbientBindings, d as Authored, e as Capturable, b as CaptureRecord, C as CaptureValue, F as FieldRule, I as IteratingBindings, g as LAMBDA_BINDINGS, h as LAMBDA_CODE_FILTERS, i as LAMBDA_GLOBALS, j as LAMBDA_MODULE_GLOBALS, k as LAMBDA_STATEMENTS, c as LambdaBindings, l as LambdaBody, L as LambdaOptions, a as LambdaSurface, M as Manifest, m as ManifestField, n as ManifestKind, o as ManifestStatement, p as ManifestValue, R as RawLambdaOptions, q as Route, r as StatementSpec, s as assertLambdaBody, t as bitwiseAnd, u as bitwiseOr, v as bitwiseXor, a4 as lam, w as mathAdd, x as mathDiv, y as mathMul, z as mathSub, B as objectEntries, D as objectKeys, H as objectValues, J as resetLockOverrides, K as seedLockOverrides, N as textAppend, P as textPrepend } from './store-DspGMsFY.js';
1
+ import { y as Condition, bB as TableDef, aQ as PathParams, x as Comparison, bq as SearchGroup, A as AddonDef, aN as OutputPath, aU as QualifiedCol, M as DbEval, bA as SortDirective, O as DbWhere, a2 as InferRow, aO as OutputRoot, a5 as InternalColsOf, aP as PagingEnvelopeField, k as AggregateRow, aA as MicroserviceDef, g as AgentResultOf, a3 as InputDescriptor, F as FunctionDef, aX as QueryHandle } from './emit-DlOKIJER.js';
2
+ export { a as AddonXdo, b as AdoptChange, c as AdoptResult, d as AgentDef, e as AgentHandle, f as AgentOutput, h as AgentSettingsXdo, i as AgentTriggerInputs, j as AgentXdo, l as AnthropicLlm, m as ApiGroupDef, n as ApiGroupXdo, o as AuthRef, B as Bundle, p as BundlePayload, q as BundleType, C as ChannelConversationDef, r as ChannelDeliveryDef, s as ChannelDeliveryGuarantee, t as ChannelPublishDef, u as ChannelPublishWho, v as ChannelRateLimitDef, w as ColumnDef, z as ContainerEnv, D as ContainerPort, E as ContainerResources, G as ContainerVolume, H as CorsConfig, I as CorsMode, J as DatabaseActions, K as DatabaseInputs, N as DbEvalFilter, P as ErrorInputs, Q as EvalFields, R as ExceptionPolicy, S as FieldAccessor, T as GoogleGenAiLlm, U as HistoryInput, V as HostedFile, W as HostedFileAccess, Y as HttpVerb, Z as IndexDef, _ as IndexLang, $ as IndexOp, a0 as IndexType, a1 as IndexXdo, a4 as InputOptions, a6 as KnowledgeDef, a7 as KnowledgeDirSource, a8 as KnowledgeFileSource, a9 as KnowledgeMode, aa as KnowledgeType, ab as LlmPrompt, ac as LlmProvider, ad as LlmSettings, ae as LockEntry, af as LockExportContext, L as LockFile, ag as McpIcon, ah as McpIconMimeType, ai as McpOauth, aj as McpOauthEnvString, ak as McpOauthExternal, al as McpOauthHosted, am as McpOauthPreset, an as McpOauthXdo, ao as McpPathOptions, ap as McpPrimitiveEntry, aq as McpPrimitiveRef, ar as McpServerDef, as as McpServerHandle, at as McpServerTriggerInputs, au as McpServerXdo, av as MergeResult, aw as MessageDeliverTo, ax as MicroserviceChart, ay as MicroserviceConfig, az as MicroserviceContainer, aB as MicroserviceDeployment, aC as MicroserviceIngress, aD as MicroserviceIngressPath, aE as MicroserviceRegistryAuth, aF as MicroserviceVolume, aG as MicroserviceXdo, aH as MiddlewareAttach, aI as MiddlewareAttachEntry, aJ as MiddlewareDef, aK as MiddlewareXdo, aL as ObjectKind, aM as OpenAiLlm, aR as PayloadArrayKey, aS as PromptDef, aT as PromptXdo, aV as QueryDef, aW as QueryFilterName, aY as QueryResponseType, aZ as QueryXdo, a_ as RealtimeActions, a$ as RealtimeChannelActions, b0 as RealtimeChannelDef, b1 as RealtimeChannelHandle, b2 as RealtimeChannelRef, b3 as RealtimeChannelTriggerInputs, b4 as RealtimeChannelXdo, b5 as RealtimeClient, b6 as RealtimeInputs, b7 as RealtimeMessageDef, b8 as RealtimeMessageXdo, b9 as RealtimeServerActions, ba as RealtimeServerDef, bb as RealtimeServerHandle, bc as RealtimeServerRef, bd as RealtimeServerTriggerInputs, be as RealtimeServerXdo, bf as RealtimeUrlOptions, bg as RenameResult, bh as ResourceAnnotations, bi as ResourceDef, bj as ResourceXdo, bk as ResultStrategy, bl as RowOf, bm as ScheduleDef, bn as SchemaCols, bo as SchemaDef, bp as SearchComparison, br as SearchNode, bs as SearchOp, bt as SearchParamValue, bu as SearchParams, bv as SearchParamsMembers, bw as SeedFileSource, bx as SeedRow, by as SeedSource, bz as SortDir, bC as TableXdo, bD as TaskDef, bE as TaskXdo, bF as ToolAnnotations, bG as ToolDef, bH as ToolXdo, bI as ToolsetBaseDef, bJ as ToolsetBaseXdo, bK as ToolsetToolEntry, bL as ToolsetToolRef, bM as ToolsetType, bN as TriggerDef, bO as TriggerObjType, bP as TriggerXdo, bQ as UrlLike, bR as ViewDef, bS as ViewXdo, bT as WorkflowTestDef, bU as WorkflowTestXdo, bV as WorkspaceActions, bW as WorkspaceConfigDef, bX as WorkspaceConfigXdo, bY as WorkspaceHistoryDef, bZ as WorkspaceHistoryXdo, b_ as WorkspaceInputs, b$ as WorkspaceMiddlewareDef, c0 as WorkspaceMiddlewareXdo, X as Xano, c1 as XanoFreeLlm, c2 as addon, c3 as agent, c4 as agentTrigger, c5 as and, c6 as apiGroup, c7 as cmp, c8 as defineFunction, c9 as emit, ca as emitBundle, cb as errorTrigger, cc as expr, cd as hostedFile, ce as input, cf as isHostedFile, cg as knowledge, ch as knowledgeDir, ci as knowledgeFile, cj as mcpServer, ck as mcpServerTrigger, cl as microservice, cm as middleware, cn as mixed, co as or, cp as prompt, cq as query, cr as realtimeChannel, cs as realtimeChannelTrigger, ct as realtimeMessage, cu as realtimeServer, cv as realtimeServerTrigger, cw as realtimeTrigger, cx as resource, cy as seedFile, cz as table, cA as tableTrigger, cB as task, cC as toSearchParams, cD as tool, cE as typedEnv, cF as workflowTest, cG as workspace, cH as workspaceConfig, cI as workspaceTrigger } from './emit-DlOKIJER.js';
3
+ import { n as FromFieldMap, S as Statement, H as StatementAnnotations, M as MaybeBodyBrand, b as BranchesBrand, J as StatementOptions, v as ObjectRef, a as AsShapeBrand, o as MemberUpdateBrand, w as Prettify, C as CatchBrand, B as BodyBrand, m as FoundBrand, A as AppendBrand, d as BrandType, c as BrandOpts, W as XanoFileRef, x as ProtoKeySafe, N as NoExtraKeys, X as XanoDbLink, t as MockMap } from './raw-where-CinW0keO.js';
4
+ export { e as BrandValue, f as ConstMethodOpts, D as DecimalMethod, E as EmailMethod, g as EnumDefault, F as FieldAccess, h as FieldDescriptor, i as FieldMap, j as FieldOptions, k as FieldOpts, l as FieldStyleType, I as IntMethod, p as MethodArg, q as MethodOpts, r as MethodSpec, s as MockEntry, u as MockXdo, O as ObjectOf, P as PasswordMethod, R as RawBrandValue, y as ReadonlyMethods, z as ResponseDef, G as RowFromFieldMap, T as TableRefMethod, K as TextFormat, L as TextMethod, Q as TypeBrand, V as ValueOf, U as VectorMethod, Y as XanoFileUpload, Z as XanoGeoData, _ as XanoGeoPosition, $ as XanoGeoType, a0 as XanoGeoValue, a1 as annotate, a2 as f, a3 as statements } from './raw-where-CinW0keO.js';
5
+ import { V as Value, N as NotObjMember, i as FilterXdo, j as FilteredValue, A as AuthValue, b as CaughtValue, a5 as CaughtShape, e as ConstValue, R as RefValue, I as InpValue, k as FunctionXdo } from './xdo-DNGZGO1j.js';
6
+ export { C as CacheXdo, a as CaughtField, c as ConditionalContext, d as ConditionalElifContext, E as ExprGroup, f as ExprNode, g as ExprOperand, h as ExprStatement, F as FieldXdo, H as HistoryXdo, l as InputXdo, L as ListBoundsXdo, M as MethodXdo, P as PersistedFunctionRow, Q as QUERY_AGGREGATE_NAMES, m as QUERY_FILTER_NAMES, n as QUERY_FILTER_SPECS, o as QueryFilter, p as QueryFilterResults, q as RegexValue, r as ResultItemXdo, S as SafeRefValue, s as StackItemXdo, t as StatementInputXdo, T as TAGS, u as TEST_EXPECT_TYPES, v as Tag, w as TaggedValue, x as TestDef, y as TestExpect, z as TestExpectType, B as TestXdo, D as auth, G as c, J as caught, K as col, O as env, U as expect, W as filter, X as inp, Y as out, Z as qf, _ as ref, $ as resp, a0 as setting, a1 as sys, a2 as test, a3 as toolset, a4 as withFilters } from './xdo-DNGZGO1j.js';
7
+ import { f as FilterResults, E as ElementResult, S as SameArrayResult, G as GroupedArrayResult, a3 as fl$1, O as OutputAuthored, Y as generated } from './store-Dg9FLJkx.js';
8
+ export { A as AmbientBindings, d as Authored, e as Capturable, b as CaptureRecord, C as CaptureValue, F as FieldRule, I as IteratingBindings, g as LAMBDA_BINDINGS, h as LAMBDA_CODE_FILTERS, i as LAMBDA_GLOBALS, j as LAMBDA_MODULE_GLOBALS, k as LAMBDA_STATEMENTS, c as LambdaBindings, l as LambdaBody, L as LambdaOptions, a as LambdaSurface, M as Manifest, m as ManifestField, n as ManifestKind, o as ManifestStatement, p as ManifestValue, R as RawLambdaOptions, q as Route, r as StatementSpec, s as assertLambdaBody, t as bitwiseAnd, u as bitwiseOr, v as bitwiseXor, a4 as lam, w as mathAdd, x as mathDiv, y as mathMul, z as mathSub, B as objectEntries, D as objectKeys, H as objectValues, J as resetLockOverrides, K as seedLockOverrides, N as textAppend, P as textPrepend } from './store-Dg9FLJkx.js';
9
9
 
10
10
  /**
11
11
  * `InferInput<Q>` — the request-payload TS type for a query (or function) def's
@@ -396,7 +396,14 @@ interface ArrayUnionArgs extends StatementOptions {
396
396
  */
397
397
  with: Value;
398
398
  as?: string;
399
- /** Optional per-item transform → stored `transform_value`. */
399
+ /**
400
+ * Optional per-item DEDUPE KEY → stored `transform_value`. NOT a map: the
401
+ * result keeps the ORIGINAL items, deduped by this value (first occurrence
402
+ * wins). Evaluated per item with `$this` (and `$index`) bound; default `$this`,
403
+ * the item itself. `ref("$this.id")` unions records by `id`;
404
+ * `withFilters(ref("$this.v"), fl.lower())` dedupes case-insensitively. A
405
+ * `$this.<path>` over a list of scalars 500s `Unable to locate var`.
406
+ */
400
407
  transform?: Value;
401
408
  }
402
409
  /**
@@ -502,6 +509,10 @@ interface RealtimePublishArgs extends StatementAnnotations {
502
509
  * This is attribution carried on the frame, NOT a credential — nothing validates it
503
510
  * and no auth gate consumes it. Do not use it to grant a publish that a channel's
504
511
  * `publish.who` would otherwise refuse; this statement bypasses that gate entirely.
512
+ *
513
+ * It lands in the frame's `_meta.as` as `{ dbo_id, row_id }` (NOT in `payload`).
514
+ * Every published frame also carries `_meta.injected: true`, the marker that
515
+ * tells a client a server-authored event from a relayed peer frame.
505
516
  */
506
517
  authTable?: ObjectRef;
507
518
  /** The asserted identity's row id. Attribution only — see {@link RealtimePublishArgs.authTable}. */
@@ -543,6 +554,48 @@ interface RealtimePublishArgs extends StatementAnnotations {
543
554
  * ```
544
555
  */
545
556
  declare function realtimePublish(a: RealtimePublishArgs): Statement;
557
+ interface RealtimeKickArgs extends StatementAnnotations {
558
+ /** The owning realtime server, by name (a `realtimeServer()` handle, its name, or a `Value`). */
559
+ server: RealtimePublishServer;
560
+ /**
561
+ * The FILLED-IN channel path to remove the user from, `"rooms/42"` (build it with
562
+ * `realtimeChannel().getChannel({…})`), or a `Value` computed at runtime.
563
+ */
564
+ channel: string | Value;
565
+ /** The removed user's auth table: a `table({ auth: true })` def or its name. Required. */
566
+ authTable: ObjectRef;
567
+ /** The removed user's row id. Required. */
568
+ authId: Value;
569
+ /** Optional reason sent to the removed connections with their `leave`. */
570
+ reason?: Value;
571
+ }
572
+ /**
573
+ * `realtime.kick { … }` — take one user's sockets out of one realtime channel
574
+ * (`mvp:realtime_kick`).
575
+ *
576
+ * A channel's `join` trigger runs ONCE, at join, so revoking a member later (a kick,
577
+ * a leave over HTTP, a private room losing someone) does not touch their open sockets:
578
+ * they keep receiving the channel and can still publish. Call this from the endpoint
579
+ * that revokes the membership. Every socket of that user, on every node, leaves the
580
+ * channel through the same steps as a client `leave` (the `leave` trigger, a
581
+ * `presence_leave`) and receives `{ action: "leave", channel, payload: { left: true,
582
+ * kicked: true, reason } }`. The socket stays CONNECTED and keeps its other channels.
583
+ *
584
+ * Unlike `s.realtime.publish` it is NOT fail-soft: an unknown server, a missing
585
+ * identity, or an unreachable bus FAILS the stack, since a kick that silently did
586
+ * nothing leaves the member subscribed.
587
+ *
588
+ * ```ts
589
+ * s.realtime.kick({
590
+ * server: chat,
591
+ * channel: rooms.getChannel({ room_id: 42 }),
592
+ * authTable: users,
593
+ * authId: inp("user_id"),
594
+ * reason: c.text("removed from the room"),
595
+ * });
596
+ * ```
597
+ */
598
+ declare function realtimeKick(a: RealtimeKickArgs): Statement;
546
599
  interface CreateAuthTokenArgs<As extends string = string> extends StatementOptions {
547
600
  /**
548
601
  * The auth table the token authenticates against.
@@ -861,16 +914,20 @@ type RebindsLater<Name extends string, S> = S extends readonly [infer Head, ...i
861
914
  *
862
915
  * **Null-propagating**: when the base is nullable (e.g. a `db.get` row,
863
916
  * `Row | null`), the null flows *through* the projection rather than erasing it —
864
- * `IndexShape<Row | null, "slug">` → `string | null`, mirroring the engine's
865
- * runtime where `$row.slug` on a missed (null) row is itself null. Without this,
866
- * `keyof (Row | null)` narrows to `never` and every dotted ref into a nullable
867
- * base would bottom out at `unknown`, silently dropping the projection.
917
+ * `IndexShape<Row | null, "slug">` → `string | null`, which is what a
918
+ * `ref(path, { safe: true })` (`$row|get:"slug"`) yields on a missed row. Without
919
+ * this, `keyof (Row | null)` narrows to `never` and every dotted ref into a
920
+ * nullable base would bottom out at `unknown`, silently dropping the projection.
921
+ *
922
+ * `Strict` is the PLAIN dotted ref: `$row.slug` on a null base RAISES `Unable to
923
+ * locate var` (HTTP 500) rather than yielding null, so the base's null is dropped
924
+ * (`string`) — the type then describes the only response the endpoint serves.
868
925
  *
869
926
  * A segment that genuinely isn't a key of the (non-null) shape — including a
870
927
  * shape that is already `unknown` (whose `keyof` is `never`) — still bottoms out
871
928
  * at `unknown`, the same honest floor as an untraceable whole ref.
872
929
  */
873
- type IndexShape<Shape, Path extends string> = unknown extends Shape ? IndexStep<Shape, Path> : null extends Shape ? IndexShape<Exclude<Shape, null>, Path> | null : undefined extends Shape ? IndexShape<Exclude<Shape, undefined>, Path> | undefined : IndexStep<Shape, Path>;
930
+ type IndexShape<Shape, Path extends string, Strict extends boolean = false> = unknown extends Shape ? IndexStep<Shape, Path, Strict> : null extends Shape ? Strict extends true ? IndexShape<Exclude<Shape, null>, Path, Strict> : IndexShape<Exclude<Shape, null>, Path, Strict> | null : undefined extends Shape ? IndexShape<Exclude<Shape, undefined>, Path, Strict> | undefined : IndexStep<Shape, Path, Strict>;
874
931
  /**
875
932
  * One non-null indexing step for {@link IndexShape}: split the head segment off
876
933
  * `Path` and project it into `Shape`, recursing (back through the null-aware
@@ -879,7 +936,29 @@ type IndexShape<Shape, Path extends string> = unknown extends Shape ? IndexStep<
879
936
  * (true for exactly `unknown`/`any` — the bases where null-distribution can't
880
937
  * terminate) routes straight here without looping.
881
938
  */
882
- type IndexStep<Shape, Path extends string> = Path extends `${infer Head}.${infer Rest}` ? Head extends keyof Shape ? IndexShape<Shape[Head], Rest> : unknown : Path extends keyof Shape ? Shape[Path] : unknown;
939
+ type IndexStep<Shape, Path extends string, Strict extends boolean = false> = Path extends `${infer Head}.${infer Rest}` ? IndexShape<Project<Shape, Head>, Rest, Strict> : Project<Shape, Path>;
940
+ /**
941
+ * Project key `Key` out of `Shape`, distributing over a union so a key present
942
+ * on only SOME arms is honest about the others: `{ a: number } | { b: string }`
943
+ * at `a` is `number | undefined`, because a value of that union might be the
944
+ * `{ b }` arm that has no `a`. This is what makes a non-raising call binding
945
+ * (`InferResponse<Fn> | CallErrorEnvelope`) drillable — `ref("<as>.code")`
946
+ * types `string | undefined`, `ref("<as>.okField")` `T | undefined` — instead
947
+ * of collapsing to `unknown` the moment the envelope joined the union.
948
+ *
949
+ * A key on NO arm still bottoms out at `unknown` (the honest floor for an
950
+ * untraceable path), and a non-union shape is unchanged: `Shape[Key]` when it
951
+ * has the key, `unknown` when it does not.
952
+ */
953
+ type Project<Shape, Key extends string> = [HasKey<Shape, Key>] extends [never] ? unknown : DistributeKey<Shape, Key>;
954
+ /** The arms of `Shape` that carry `Key` (optional included); `never` if none do. */
955
+ type HasKey<Shape, Key extends string> = Shape extends unknown ? (Key extends keyof Shape ? Shape : never) : never;
956
+ /**
957
+ * `Key` across every arm of `Shape`: its value where the arm has it, `undefined`
958
+ * where the arm does not — so a key on some-but-not-all arms carries the honest
959
+ * `| undefined`. Only reached once {@link HasKey} proves at least one arm has it.
960
+ */
961
+ type DistributeKey<Shape, Key extends string> = Shape extends unknown ? Key extends keyof Shape ? Shape[Key] : undefined : never;
883
962
  /**
884
963
  * Resolve a `ref` name against the branded stack `S`. A **dotted** name projects
885
964
  * a subpath: the head names the bound variable (traced via
@@ -889,7 +968,7 @@ type IndexStep<Shape, Path extends string> = Path extends `${infer Head}.${infer
889
968
  * identifiers (no dots), so the first `.` always splits the variable from the
890
969
  * subpath — matching how the engine resolves `$generated.result`.
891
970
  */
892
- type TraceVar<Name extends string, S, I = unknown> = Name extends `${infer Base}.${infer Path}` ? IndexShape<Traced<Base, S, I>, Path> : Traced<Name, S, I>;
971
+ type TraceVar<Name extends string, S, I = unknown, Strict extends boolean = false> = Name extends `${infer Base}.${infer Path}` ? IndexShape<Traced<Base, S, I>, Path, Strict> : Traced<Name, S, I>;
893
972
  /**
894
973
  * A variable's traced binding with the dotted `s.update_var`s after its last
895
974
  * top-level binding applied in order ({@link ApplyUpdates}): an unconditional
@@ -970,7 +1049,9 @@ type Inline<S> = S extends readonly [infer Head, ...infer Tail] ? [
970
1049
  * an `s.set_var` of it is ({@link WidenConst}): `response: { deleted:
971
1050
  * c.bool(true) }` derives `{ deleted: boolean }`.
972
1051
  */
973
- type ResolveValue<V, S, I = unknown> = V extends ObjValue<infer Members> ? ResolveObj<Members, S, I> : V extends FilteredValue<infer Base, infer Chain> ? ApplyFilters<ResolveValue<Base, S, I>, Chain> : V extends RefValue<infer Name> ? TraceVar<Name, S, I> : V extends InpValue<infer Name> ? InputAt<I, Name> : V extends AuthValue<infer Path> ? AuthAt<I, Path> : V extends CaughtValue<infer Path> ? CaughtShape<Path> : V extends ConstValue<infer T> ? WidenConst<T> : unknown;
1052
+ type ResolveValue<V, S, I = unknown> = V extends ObjValue<infer Members> ? ResolveObj<Members, S, I> : V extends FilteredValue<infer Base, infer Chain> ? ApplyFilters<ResolveValue<Base, S, I>, Chain> : V extends RefValue<infer Name> ? TraceVar<Name, S, I, V extends {
1053
+ readonly __safe: true;
1054
+ } ? false : true> : V extends InpValue<infer Name> ? InputAt<I, Name> : V extends AuthValue<infer Path> ? AuthAt<I, Path> : V extends CaughtValue<infer Path> ? CaughtShape<Path> : V extends ConstValue<infer T> ? WidenConst<T> : unknown;
974
1055
  /**
975
1056
  * `auth("id")` on a def whose `auth` names ONE table (`I` is the def): that
976
1057
  * table's `id` type. The identity carries the row's id, not its columns, so
@@ -982,11 +1063,30 @@ type AuthAt<I, Path extends string> = Path extends "id" ? I extends {
982
1063
  /**
983
1064
  * An `inp(name)` read, typed from the def's declared `input` (`I`, the def
984
1065
  * itself): `inp("")` is the whole payload, a dotted name projects into an
985
- * object input. An optional input the request left out reads as `null`; a
986
- * path param (a query's `{param}`, a message's channel `{param}`) never does.
1066
+ * object input. An optional input the request left out (or sent as `null`)
1067
+ * reads as its type's EMPTY value, not `null` ({@link OmittedInput}); a path
1068
+ * param (a query's `{param}`, a message's channel `{param}`) is always present.
987
1069
  */
988
- type InputAt<I, Name extends string> = unknown extends InputsOf<I> ? unknown : Name extends "" ? InferInput<I> : InputHead<Name> extends ChannelParams<I> ? InputHead<Name> extends keyof InferInput<ChannelOf<I>> ? Exclude<IndexShape<Required<InferInput<ChannelOf<I>>>, Name>, null> : string : IndexShape<Required<InferInput<I>>, Name> extends infer T ? InputHead<Name> extends QueryPathParams<I> ? Exclude<T, null> : InputHead<Name> extends RequiredKeys<InferInput<I>> ? T : T | null : never;
1070
+ type InputAt<I, Name extends string> = unknown extends InputsOf<I> ? unknown : Name extends "" ? InferInput<I> : InputHead<Name> extends ChannelParams<I> ? InputHead<Name> extends keyof InferInput<ChannelOf<I>> ? Exclude<IndexShape<Required<InferInput<ChannelOf<I>>>, Name>, null> : string : IndexShape<Required<InferInput<I>>, Name> extends infer T ? InputHead<Name> extends QueryPathParams<I> ? Exclude<T, null> : InputHead<Name> extends RequiredKeys<InferInput<I>> ? T : Name extends InputHead<Name> ? OmittedInput<InputMapOfDef<I>[Name & keyof InputMapOfDef<I>], T> : T | null : never;
989
1071
  type InputHead<Name extends string> = Name extends `${infer Head}.${string}` ? Head : Name;
1072
+ type InputMapOfDef<I> = I extends {
1073
+ input?: infer M;
1074
+ } ? NonNullable<M> : never;
1075
+ /**
1076
+ * What an OPTIONAL top-level input `D` (value type `T`) binds when the request
1077
+ * omits it or sends `null`. Measured on both backends: the engine binds the
1078
+ * type's EMPTY value — `""`, `0`, `false`, `{}`, `[]` — so `T` already covers
1079
+ * it, except an enum, whose `""` is outside its member union. A non-empty
1080
+ * `default` always applies. A type that binds `null` (the nullable-by-default
1081
+ * ones, `nullable: true`) carries it in `T` already. An `object` input keeps
1082
+ * `| null`: what it binds was not measured.
1083
+ */
1084
+ type OmittedInput<D, T> = [BrandType<D>] extends ["obj"] ? T | null : BrandOpts<D> extends {
1085
+ default: infer Dv;
1086
+ } ? [Dv] extends ["" | undefined] ? EmptyOf<D, T> : T : EmptyOf<D, T>;
1087
+ type EmptyOf<D, T> = null extends T ? T : [BrandType<D>] extends ["enum"] ? BrandOpts<D> extends {
1088
+ array: true;
1089
+ } ? T : T | "" : T;
990
1090
  /** A query's `{param}` names — a path param is always present, whatever its `required`. */
991
1091
  type QueryPathParams<I> = I extends {
992
1092
  verb: string;
@@ -1112,7 +1212,51 @@ declare function fileUrl(file: XanoFileRef | null | undefined, baseUrl: string):
1112
1212
  * `undefined` as on any object, so probing code is unaffected.
1113
1213
  */
1114
1214
 
1115
- declare const fl: typeof fl$1;
1215
+ /** Common spellings from other languages for a filter named differently here. */
1216
+ declare const FILTER_ALIASES: {
1217
+ readonly multiply: "mul";
1218
+ readonly times: "mul";
1219
+ readonly divide: "div";
1220
+ readonly subtract: "sub";
1221
+ readonly minus: "sub";
1222
+ readonly plus: "add";
1223
+ readonly modulo: "mod";
1224
+ readonly uppercase: "upper";
1225
+ readonly toupper: "upper";
1226
+ readonly touppercase: "upper";
1227
+ readonly lowercase: "lower";
1228
+ readonly tolower: "lower";
1229
+ readonly tolowercase: "lower";
1230
+ readonly len: "strlen";
1231
+ readonly includes: "contains";
1232
+ readonly startswith: "starts_with";
1233
+ readonly endswith: "ends_with";
1234
+ readonly replace: "string_replace";
1235
+ readonly replaceall: "string_replace";
1236
+ readonly tostring: "to_text";
1237
+ readonly tostr: "to_text";
1238
+ readonly parseint: "to_int";
1239
+ readonly tonumber: "to_decimal";
1240
+ readonly parsefloat: "to_decimal";
1241
+ readonly jsonparse: "json_decode";
1242
+ readonly jsonstringify: "json_encode";
1243
+ readonly stringify: "json_encode";
1244
+ readonly keys: "array_keys";
1245
+ readonly values: "array_values";
1246
+ readonly slice: "array_slice";
1247
+ readonly isempty: "empty";
1248
+ };
1249
+ type FilterAliases = typeof FILTER_ALIASES;
1250
+ /**
1251
+ * Each alias as a member whose only parameter is the hint itself, so
1252
+ * `fl.subtract(c.int(1))` fails typecheck naming the real filter instead of
1253
+ * "Property 'subtract' does not exist", and a hover shows the same message.
1254
+ * An alias that is itself a real filter name is left to the real filter.
1255
+ */
1256
+ type FilterAliasHints = {
1257
+ readonly [K in Exclude<keyof FilterAliases, keyof typeof fl$1>]: (did_you_mean: `fl.${K} is not a filter — did you mean fl.${FilterAliases[K]}?`) => never;
1258
+ };
1259
+ declare const fl: typeof fl$1 & FilterAliasHints;
1116
1260
 
1117
1261
  declare const cond: {
1118
1262
  /**
@@ -1173,9 +1317,11 @@ declare const cond: {
1173
1317
  readonly between: (value: Value, lo: Value, hi: Value) => SearchGroup;
1174
1318
  /**
1175
1319
  * The object at `value` has something at `path` — the engine's `has` filter,
1176
- * whose argument is a dotted path (`"address.city"`), not a value.
1320
+ * whose argument is a dotted path, not a runtime value. Pass it as a bare
1321
+ * string (`cond.has(inp("blob"), "address.city")`); it is wrapped as `c.text`
1322
+ * for you. A `Value` is still accepted for a computed path.
1177
1323
  */
1178
- readonly has: (value: Value, path: Value) => Comparison;
1324
+ readonly has: (value: Value, path: string | Value) => Comparison;
1179
1325
  /**
1180
1326
  * `value` (an array or object) has exactly `n` entries.
1181
1327
  *
@@ -1275,7 +1421,7 @@ interface AddonSpec<Graft = unknown> {
1275
1421
  * wrapper coerces to a `Value` and delegates to the generated factory, whose
1276
1422
  * spec carries the same set and rejects a constant outside it.
1277
1423
  */
1278
- type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "PATCH";
1424
+ type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "PATCH" | "QUERY";
1279
1425
  /** A headers map: full header lines built from `Name: value` pairs. */
1280
1426
  type HeaderMap = Readonly<Record<string, string | Value>>;
1281
1427
  /**
@@ -1394,11 +1540,20 @@ type NarrowGraft<G, O extends readonly string[]> = IsUnknown<G> extends true ? u
1394
1540
  * attachment-level `output` further restricts the graft to those columns
1395
1541
  * ({@link NarrowGraft}).
1396
1542
  */
1397
- type GraftOf<H> = H extends {
1543
+ type GraftOf<H> = WithChildren<H extends {
1398
1544
  addon: AddonDef<infer G>;
1399
1545
  } ? H extends {
1400
1546
  output: infer O extends readonly string[];
1401
- } ? NarrowGraft<G, O> : G : unknown;
1547
+ } ? NarrowGraft<G, O> : G : unknown, H extends {
1548
+ children: infer Ch;
1549
+ } ? Ch : readonly []>;
1550
+ /**
1551
+ * A graft with its nested `children` addons merged in. A child grafts onto
1552
+ * each ELEMENT of its parent's result (`_items[]._product`), with its own
1553
+ * cardinality, recursively. Distributes over a single graft's `| undefined`,
1554
+ * and leaves an `unknown` graft alone: there is no shape to add keys to.
1555
+ */
1556
+ type WithChildren<G, Ch> = [Ch] extends [readonly []] ? G : IsUnknown<G> extends true ? G : G extends readonly (infer E)[] ? WithAddons<E, Ch>[] : G extends object ? WithAddons<G, Ch> : G;
1402
1557
  /**
1403
1558
  * The keys a set of attached addons graft onto each returned row. Each addon's
1404
1559
  * alias (the last segment of its `as`) becomes a key valued by {@link GraftOf}.
@@ -1408,22 +1563,30 @@ type GraftOf<H> = H extends {
1408
1563
  * so `as:"items._book"` puts `_book` inside each `items[]` element = each row;
1409
1564
  * without paging `as:"_book"` puts it on each bare row. Both reduce to "the row
1410
1565
  * gains the alias key". Nested `children` addons enrich the addon's own result
1411
- * (under the alias), so they add no parent-visible keys.
1566
+ * (under the alias, see {@link WithChildren}), so they add no parent-visible keys.
1412
1567
  */
1413
1568
  type AddonFields<A> = A extends readonly [infer H, ...infer Rest] ? (H extends {
1414
1569
  envelope: true;
1415
1570
  } ? object : H extends {
1416
1571
  as: infer S extends string;
1417
- } ? {
1418
- [K in AddonAlias<S>]: GraftOf<H>;
1419
- } : object) & AddonFields<Rest> : object;
1572
+ } ? GraftKey<AddonAlias<S>, GraftOf<H>> : object) & AddonFields<Rest> : object;
1573
+ /**
1574
+ * One alias key valued by its graft. A `single` graft carries `undefined`
1575
+ * (see `AddonGraft`): the engine leaves the alias OUT of the row when no row
1576
+ * matches, rather than writing `null`, so the key is optional.
1577
+ */
1578
+ type GraftKey<K extends string, G> = IsUnknown<G> extends true ? {
1579
+ [P in K]: G;
1580
+ } : undefined extends G ? {
1581
+ [P in K]?: Exclude<G, undefined>;
1582
+ } : {
1583
+ [P in K]: G;
1584
+ };
1420
1585
  /** The keys `envelope: true` addons graft onto a query's paging envelope (see {@link AddonSpec.envelope}). */
1421
1586
  type EnvelopeAddonFields<A> = A extends readonly [infer H, ...infer Rest] ? (H extends {
1422
1587
  envelope: true;
1423
1588
  as: infer S extends string;
1424
- } ? {
1425
- [K in AddonAlias<S>]: GraftOf<H>;
1426
- } : object) & EnvelopeAddonFields<Rest> : object;
1589
+ } ? GraftKey<AddonAlias<S>, GraftOf<H>> : object) & EnvelopeAddonFields<Rest> : object;
1427
1590
  /**
1428
1591
  * A row shape augmented with any addon-grafted alias keys. With no addons
1429
1592
  * (`A = readonly []`) it is the row unchanged, so the non-addon path — and every
@@ -1438,11 +1601,44 @@ type EnvelopeAddonFields<A> = A extends readonly [infer H, ...infer Rest] ? (H e
1438
1601
  */
1439
1602
  type WithAddons<Row, A> = [keyof AddonFields<A>] extends [never] ? Row : Prettify<Omit<Row, keyof AddonFields<A>> & AddonFields<A>>;
1440
1603
  /**
1441
- * A row shape augmented with any `eval` alias keys. With no evals it is the row
1604
+ * The `eval` aliases a query actually RETURNS. `output` is applied to the eval
1605
+ * columns too, so with a non-empty `output` (`Cols`) only the aliases it names
1606
+ * come back — an alias computed but left out of `output` is dropped by the
1607
+ * engine. With no `output` (`Cols` empty) every alias is returned.
1608
+ */
1609
+ type SelectedEvalFields<E, Cols extends readonly string[], B = readonly []> = Cols["length"] extends 0 ? QueryEvalFields<E, B> : Pick<QueryEvalFields<E, B>, Extract<keyof QueryEvalFields<E, B>, Cols[number]>>;
1610
+ /**
1611
+ * A query's `eval` grafts (`EvalFields` in `db-search.ts`), with one alias typed rather than
1612
+ * `unknown`: an UNFILTERED eval naming `<alias>.<col>` of a `bind` entry that
1613
+ * joins a table handle under that explicit `as` carries that column's type
1614
+ * (`| null` under a `left` join). The documented way to read a joined column.
1615
+ * A filtered eval, a bind without `as`, or an unbranded table stays `unknown`.
1616
+ */
1617
+ type QueryEvalFields<E, B> = E extends readonly [infer H, ...infer Rest] ? (H extends {
1618
+ as: infer S extends string;
1619
+ } ? {
1620
+ [K in S]: JoinedEvalValue<H, B>;
1621
+ } : object) & QueryEvalFields<Rest, B> : object;
1622
+ type JoinedEvalValue<H, B> = H extends {
1623
+ filters: readonly [unknown, ...unknown[]];
1624
+ } ? unknown : H extends {
1625
+ name: `${infer Alias}.${infer Col}`;
1626
+ } ? JoinedColumn<B, Alias, Col> : unknown;
1627
+ type JoinedColumn<B, Alias extends string, Col extends string> = B extends readonly [infer H, ...infer Rest] ? H extends {
1628
+ as: Alias;
1629
+ table: infer T extends ObjectRef;
1630
+ } ? [InferRow<T>] extends [never] ? unknown : Col extends keyof InferRow<T> ? H extends {
1631
+ join: "left";
1632
+ } ? InferRow<T>[Col] | null : InferRow<T>[Col] : unknown : JoinedColumn<Rest, Alias, Col> : unknown;
1633
+ /**
1634
+ * A row shape augmented with any `eval` alias keys it returns under `output`
1635
+ * (see {@link SelectedEvalFields}). With no returned evals it is the row
1442
1636
  * unchanged. Like {@link WithAddons}, an eval alias **overrides** a base column of
1443
1637
  * the same name (the engine computes over it), so the honest type is the graft.
1444
1638
  */
1445
- type WithEval<Row, E> = [keyof EvalFields<E>] extends [never] ? Row : Prettify<Omit<Row, keyof EvalFields<E>> & EvalFields<E>>;
1639
+ type WithEval<Row, E, Cols extends readonly string[] = readonly [], B = readonly []> = [
1640
+ keyof SelectedEvalFields<E, Cols, B>
1641
+ ] extends [never] ? Row : Prettify<Omit<Row, keyof SelectedEvalFields<E, Cols, B>> & SelectedEvalFields<E, Cols, B>>;
1446
1642
  /**
1447
1643
  * The paging metadata envelope a `db.query` returns when `paging` is set with
1448
1644
  * metadata on. The result
@@ -1496,7 +1692,7 @@ type PagingTotals<P> = P extends {
1496
1692
  * The engine's `context.return.type` for a `db.query` — the return-type
1497
1693
  * discriminant. `"list"` is the default (a row array or paging envelope);
1498
1694
  * `"single"` a first-match object; `"count"`/`"exists"` a scalar; `"stream"` a
1499
- * (pageable) row array with no metadata envelope.
1695
+ * cursor only `s.foreach` reads (returned, it serves `"@stream"`).
1500
1696
  */
1501
1697
  type DbReturnType = "list" | "single" | "count" | "exists" | "stream" | "aggregate";
1502
1698
  /** Distinct-row handling (`context.return.<list|stream>.distinct`): engine default `"auto"`. */
@@ -1655,11 +1851,12 @@ interface DbExpandBind {
1655
1851
  }
1656
1852
  /**
1657
1853
  * The full `db.query` result shape, discriminated by return type `RT`:
1658
- * `count → number`, `exists → boolean`, `single → row | null`, `stream → row[]`,
1854
+ * `count → number`, `exists → boolean`, `single → row | null`, `stream → "@stream"`
1855
+ * (a cursor only `s.foreach` reads; returned, it serializes to that string),
1659
1856
  * and `list → row[]` or the {@link PagingEnvelope} when `paging` requests
1660
1857
  * metadata. The row is always the addon-augmented row.
1661
1858
  */
1662
- type QueryResult<Row, A, P, RT extends DbReturnType, E = readonly [], AG = unknown, Cols extends readonly string[] = readonly []> = RT extends "count" ? number : RT extends "exists" ? boolean : RT extends "aggregate" ? AggregateRow<AG, Row>[] : WithAddons<WithEval<Row, E>, A> extends infer R ? RT extends "single" ? R | null : RT extends "stream" ? R[] : HasPagingEnvelope<P> extends true ? PickEnvelope<[
1859
+ type QueryResult<Row, A, P, RT extends DbReturnType, E = readonly [], AG = unknown, Cols extends readonly string[] = readonly [], B = readonly []> = RT extends "count" ? number : RT extends "exists" ? boolean : RT extends "aggregate" ? AggregateRow<AG, Row>[] : RT extends "stream" ? "@stream" : WithAddons<WithEval<Row, E, Cols, B>, A> extends infer R ? RT extends "single" ? R | null : HasPagingEnvelope<P> extends true ? PickEnvelope<[
1663
1860
  keyof EnvelopeAddonFields<A>
1664
1861
  ] extends [never] ? PagingEnvelope<R[], PagingTotals<P>> : Prettify<PagingEnvelope<R[], PagingTotals<P>> & EnvelopeAddonFields<A>>, Cols> : R[] : never;
1665
1862
  /**
@@ -1682,6 +1879,20 @@ type PagedOutputCheck<Cols extends readonly string[], P, RT, Row extends string>
1682
1879
  [I in keyof Cols]: PagedEntry<Cols[I], Row>;
1683
1880
  };
1684
1881
  } : unknown : unknown;
1882
+ /**
1883
+ * `lock: true` refused where the engine's read is an aggregate. The lock is a
1884
+ * Postgres `FOR UPDATE`, which Postgres refuses beside `count(*)` and
1885
+ * `GROUP BY` (`0A000 FEATURE NOT SUPPORTED`, a 500 on every request), and
1886
+ * `paging.totals` runs a `count(*)` on the same locked query. `exists` wraps
1887
+ * the locked select in a subquery, which Postgres accepts.
1888
+ */
1889
+ type LockCheck<RT, P> = [RT] extends ["count" | "aggregate"] ? {
1890
+ lock?: false | Refused<true, "lock needs a row-returning query: FOR UPDATE is refused beside count and aggregate">;
1891
+ } : P extends {
1892
+ totals: true;
1893
+ } ? {
1894
+ lock?: false | Refused<true, "lock cannot be combined with paging.totals: the totals count(*) is refused FOR UPDATE">;
1895
+ } : unknown;
1685
1896
  type PagedEntry<E, Row extends string> = E extends PagingEnvelopeField ? E : E extends `items.${infer Col}` ? Col extends `${string}.${string}` | Row ? E : Refused<E, `"items.${Col}": the row has no "${Col}"`> : Refused<E, `"${E & string}" is dropped from a paged envelope — write "items.${E & string}"`>;
1686
1897
  /**
1687
1898
  * A refused entry, carrying its message. Branded rather than replaced by the
@@ -1721,7 +1932,13 @@ interface DbGetArgs<T extends ObjectRef = ObjectRef, As extends string = string,
1721
1932
  fieldName?: QualifiedCol<ColsOf<T>>;
1722
1933
  /** The value to match. */
1723
1934
  fieldValue: Value;
1724
- /** Acquire a row lock for the transaction. */
1935
+ /**
1936
+ * Acquire a row lock (`FOR UPDATE`) held until the enclosing
1937
+ * `s.db.transaction` ends. As the transaction's FIRST step on a shared parent
1938
+ * row (the room, the account), it serializes a check-then-insert that a
1939
+ * `lock: true` query cannot: concurrent requests wait here, then see each
1940
+ * other's inserts.
1941
+ */
1725
1942
  lock?: boolean;
1726
1943
  /**
1727
1944
  * Restrict the returned columns (XanoScript `output = [...]`). Encoded into
@@ -1918,16 +2135,19 @@ interface DbAddArgs<T extends ObjectRef = ObjectRef, As extends string = string,
1918
2135
  /**
1919
2136
  * Refuse to auto-wire request inputs the endpoint did not explicitly bind.
1920
2137
  *
1921
- * A row write auto-wires any column whose name matches an incoming request
1922
- * input, which is convenient and is also how a caller can reach a column the
1923
- * endpoint never meant to expose. With this on, the engine consults the
1924
- * endpoint's declared inputs and skips auto-wiring anything outside them;
1925
- * explicit `data`/`row` entries are unaffected, because those are bindings you
1926
- * wrote.
2138
+ * ⚠ This ONLY affects a hand-written `data: DbField[]` that LEAVES COLUMNS
2139
+ * OUT. The engine auto-wires a column ABSENT from the args from a same-named
2140
+ * request input (how a caller can reach a column the endpoint never meant to
2141
+ * expose); with this on, it skips auto-wiring anything outside the endpoint's
2142
+ * declared inputs. A `row:` write NEVER auto-wires — `row` expands to EVERY
2143
+ * column explicitly (the type default on add, `ignore` on edit), so nothing is
2144
+ * absent for the engine to fill, and this flag changes nothing for it. So a
2145
+ * `row` endpoint is not exposed to stray inputs in the first place.
1927
2146
  *
1928
2147
  * Off by default, matching the engine's own default — so leaving it unset
1929
- * writes nothing and changes nothing. Reach for it on any write whose table
1930
- * has a column a caller must not set (`role`, `is_admin`, `credits`).
2148
+ * writes nothing and changes nothing. Reach for it only alongside a PARTIAL
2149
+ * `data` list on a table with a column a caller must not set (`role`,
2150
+ * `is_admin`, `credits`).
1931
2151
  */
1932
2152
  enforceHiddenFields?: boolean;
1933
2153
  table: DbTableRef<T>;
@@ -1969,16 +2189,19 @@ interface DbEditArgs<T extends ObjectRef = ObjectRef, As extends string = string
1969
2189
  /**
1970
2190
  * Refuse to auto-wire request inputs the endpoint did not explicitly bind.
1971
2191
  *
1972
- * A row write auto-wires any column whose name matches an incoming request
1973
- * input, which is convenient and is also how a caller can reach a column the
1974
- * endpoint never meant to expose. With this on, the engine consults the
1975
- * endpoint's declared inputs and skips auto-wiring anything outside them;
1976
- * explicit `data`/`row` entries are unaffected, because those are bindings you
1977
- * wrote.
2192
+ * ⚠ This ONLY affects a hand-written `data: DbField[]` that LEAVES COLUMNS
2193
+ * OUT. The engine auto-wires a column ABSENT from the args from a same-named
2194
+ * request input (how a caller can reach a column the endpoint never meant to
2195
+ * expose); with this on, it skips auto-wiring anything outside the endpoint's
2196
+ * declared inputs. A `row:` write NEVER auto-wires — `row` expands to EVERY
2197
+ * column explicitly (the type default on add, `ignore` on edit), so nothing is
2198
+ * absent for the engine to fill, and this flag changes nothing for it. So a
2199
+ * `row` endpoint is not exposed to stray inputs in the first place.
1978
2200
  *
1979
2201
  * Off by default, matching the engine's own default — so leaving it unset
1980
- * writes nothing and changes nothing. Reach for it on any write whose table
1981
- * has a column a caller must not set (`role`, `is_admin`, `credits`).
2202
+ * writes nothing and changes nothing. Reach for it only alongside a PARTIAL
2203
+ * `data` list on a table with a column a caller must not set (`role`,
2204
+ * `is_admin`, `credits`).
1982
2205
  */
1983
2206
  enforceHiddenFields?: boolean;
1984
2207
  table: DbTableRef<T>;
@@ -2038,16 +2261,19 @@ interface DbAddOrEditArgs<T extends ObjectRef = ObjectRef, As extends string = s
2038
2261
  /**
2039
2262
  * Refuse to auto-wire request inputs the endpoint did not explicitly bind.
2040
2263
  *
2041
- * A row write auto-wires any column whose name matches an incoming request
2042
- * input, which is convenient and is also how a caller can reach a column the
2043
- * endpoint never meant to expose. With this on, the engine consults the
2044
- * endpoint's declared inputs and skips auto-wiring anything outside them;
2045
- * explicit `data`/`row` entries are unaffected, because those are bindings you
2046
- * wrote.
2264
+ * ⚠ This ONLY affects a hand-written `data: DbField[]` that LEAVES COLUMNS
2265
+ * OUT. The engine auto-wires a column ABSENT from the args from a same-named
2266
+ * request input (how a caller can reach a column the endpoint never meant to
2267
+ * expose); with this on, it skips auto-wiring anything outside the endpoint's
2268
+ * declared inputs. A `row:` write NEVER auto-wires — `row` expands to EVERY
2269
+ * column explicitly (the type default on add, `ignore` on edit), so nothing is
2270
+ * absent for the engine to fill, and this flag changes nothing for it. So a
2271
+ * `row` endpoint is not exposed to stray inputs in the first place.
2047
2272
  *
2048
2273
  * Off by default, matching the engine's own default — so leaving it unset
2049
- * writes nothing and changes nothing. Reach for it on any write whose table
2050
- * has a column a caller must not set (`role`, `is_admin`, `credits`).
2274
+ * writes nothing and changes nothing. Reach for it only alongside a PARTIAL
2275
+ * `data` list on a table with a column a caller must not set (`role`,
2276
+ * `is_admin`, `credits`).
2051
2277
  */
2052
2278
  enforceHiddenFields?: boolean;
2053
2279
  table: DbTableRef<T>;
@@ -2171,7 +2397,7 @@ interface DbBulkDeleteArgs<As extends string = string> extends StatementOptions
2171
2397
  /**
2172
2398
  * Filter selecting which rows to delete — the same `where` surface as
2173
2399
  * `s.db.query`: `expr(...)`/`cmp(...)` comparisons, `and(...)`/`or(...)` groups,
2174
- * an array of those (ANDed), or a raw `Value`. Encoded into `context.search`
2400
+ * or an array of those (ANDed). Encoded into `context.search`
2175
2401
  * via {@link encodeSearch}. **A `where` that constrains nothing deletes every
2176
2402
  * row in the table**, which is why it requires {@link DbBulkDeleteArgs.allRows}.
2177
2403
  */
@@ -2393,7 +2619,7 @@ interface DbExternal {
2393
2619
  /** Per-part gates; each defaults to the engine default. */
2394
2620
  permissions?: DbExternalPermissions;
2395
2621
  }
2396
- interface DbQueryArgs<T extends ObjectRef = ObjectRef, As extends string = string, Cols extends readonly OutputPath<ColsOf<T> | EvalAliases<E> | AddonAliases<A>>[] = readonly ColsOf<T>[], A extends readonly AddonSpec[] = readonly AddonSpec[], P extends DbPaging | undefined = DbPaging | undefined, RT extends DbReturnType = DbReturnType, E extends readonly DbEval[] = readonly DbEval[], AG extends DbAggregate = DbAggregate> extends StatementOptions {
2622
+ interface DbQueryArgs<T extends ObjectRef = ObjectRef, As extends string = string, Cols extends readonly OutputPath<ColsOf<T> | EvalAliases<E> | AddonAliases<A>>[] = readonly ColsOf<T>[], A extends readonly AddonSpec[] = readonly AddonSpec[], P extends DbPaging | undefined = DbPaging | undefined, RT extends DbReturnType = DbReturnType, E extends readonly DbEval[] = readonly DbEval[], AG extends DbAggregate = DbAggregate, B extends readonly DbBind[] = readonly DbBind[]> extends StatementOptions {
2397
2623
  /**
2398
2624
  * SQL alias for the bound table (`context.dbo.as`), used to qualify columns.
2399
2625
  * Absent unless set — Xano writes it on some statements and not others, so it
@@ -2404,11 +2630,12 @@ interface DbQueryArgs<T extends ObjectRef = ObjectRef, As extends string = strin
2404
2630
  /**
2405
2631
  * The engine's `context.return.type`. `"list"` (default) returns a row array
2406
2632
  * (or paging envelope); `"single"` a first-match `row | null`; `"count"` a
2407
- * `number`; `"exists"` a `boolean`; `"stream"` a pageable `row[]` with no
2408
- * metadata envelope. `InferResponse` reflects each shape.
2633
+ * `number`; `"exists"` a `boolean`; `"stream"` a cursor only `s.foreach`
2634
+ * reads (returned, it serves the string `"@stream"`, warning
2635
+ * `db.stream-returned`). `InferResponse` reflects each shape.
2409
2636
  */
2410
2637
  returnType?: RT;
2411
- /** Primary filter — `expr(...)`, an array of `expr(...)` (ANDed), or a raw `Value`. */
2638
+ /** Primary filter — `expr(...)` or an array of `expr(...)` (ANDed). A value is refused: the engine would run it unfiltered. */
2412
2639
  where?: DbWhere;
2413
2640
  /** Additional filter ANDed with `where` (same forms as `where`). */
2414
2641
  additionalWhere?: DbWhere;
@@ -2417,10 +2644,21 @@ interface DbQueryArgs<T extends ObjectRef = ObjectRef, As extends string = strin
2417
2644
  * are addressable by dotted path in `where`/`sort`/`eval`; the row shape is
2418
2645
  * unchanged (output columns still come from `output`/`eval`).
2419
2646
  */
2420
- bind?: DbBind[];
2647
+ bind?: B;
2421
2648
  /** Sort directives (`[{ sortBy, dir }]`) — applied by the engine. */
2422
2649
  sort?: DbSortDirective<ColsOf<T> | EvalAliases<E>>[];
2423
- /** Acquire row locks. */
2650
+ /**
2651
+ * Acquire row locks (`SELECT … FOR UPDATE`), held until the enclosing
2652
+ * `s.db.transaction` ends. Postgres refuses `FOR UPDATE` beside an
2653
+ * aggregate, so `count`, `aggregate`, and a `list` with `paging.totals` are
2654
+ * refused here rather than failing every request with a 500.
2655
+ *
2656
+ * ⚠ It locks only the rows the query RETURNS, so it cannot make a
2657
+ * check-then-insert exclusive: a competing request inserting a NEW row is
2658
+ * never blocked, and concurrent "is this slot free? then add" both succeed.
2659
+ * Lock a shared parent row first instead (`s.db.get({ …, lock: true })` as
2660
+ * the transaction's first step).
2661
+ */
2424
2662
  lock?: boolean;
2425
2663
  /**
2426
2664
  * Paging controls (`page`/`per_page`/`offset`/`totals`/`metadata`) — applied by
@@ -2478,9 +2716,9 @@ interface DbQueryArgs<T extends ObjectRef = ObjectRef, As extends string = strin
2478
2716
  * `InferResponse` can trace a `ref` back to this statement. */
2479
2717
  as?: As;
2480
2718
  }
2481
- declare function dbQuery<T extends ObjectRef, const As extends string = string, const Cols extends readonly OutputPath<ColsOf<T> | EvalAliases<E> | AddonAliases<A>>[] = readonly [], const A extends readonly AddonSpec[] = readonly [], const P extends DbPaging | undefined = undefined, const RT extends DbReturnType = "list", const E extends readonly DbEval[] = readonly [], const AG extends DbAggregate = DbAggregate, const Fs extends readonly FilterXdo[] = readonly []>(args: DbQueryArgs<T, As, Cols, A, P, RT, E, AG> & {
2719
+ declare function dbQuery<T extends ObjectRef, const As extends string = string, const Cols extends readonly OutputPath<ColsOf<T> | EvalAliases<E> | AddonAliases<A>>[] = readonly [], const A extends readonly AddonSpec[] = readonly [], const P extends DbPaging | undefined = undefined, const RT extends DbReturnType = "list", const E extends readonly DbEval[] = readonly [], const AG extends DbAggregate = DbAggregate, const Fs extends readonly FilterXdo[] = readonly [], const B extends readonly DbBind[] = readonly []>(args: DbQueryArgs<T, As, Cols, A, P, RT, E, AG, B> & {
2482
2720
  asFilters?: Fs;
2483
- } & QueryNestedKeys<P, E, AG> & PagedOutputCheck<Cols, P, RT, ColsOf<T> | EvalAliases<E> | AddonAliases<A>>): DbResult<As, ApplyFilters<QueryResult<QueryRow<T, Cols, P, RT>, A, P, RT, E, AG, Cols>, Fs>>;
2721
+ } & QueryNestedKeys<P, E, AG> & PagedOutputCheck<Cols, P, RT, ColsOf<T> | EvalAliases<E> | AddonAliases<A>> & LockCheck<RT, P>): DbResult<As, ApplyFilters<QueryResult<QueryRow<T, Cols, P, RT>, A, P, RT, E, AG, Cols, B>, Fs>>;
2484
2722
  /**
2485
2723
  * There is no `as`: the transaction returns nothing, so a binding on it is
2486
2724
  * always `null` (measured on a live instance). The
@@ -2528,11 +2766,11 @@ declare function dbExternalQuery(args: DbExternalQueryArgs): Statement;
2528
2766
  /**
2529
2767
  * Typed `precondition` / `throw` overrides.
2530
2768
  *
2531
- * `s.throw` raises a generic error the runtime returns with **HTTP 200** and an
2532
- * error body — a client checking `res.ok` (or any non-2xx guard) treats a
2533
- * deliberately-thrown error as success. `s.precondition` instead maps its
2534
- * `error_type` to a status-bearing exception (400/401/403/404/429/…), so a
2535
- * boundary rejection is observable via standard HTTP semantics.
2769
+ * `s.throw` raises a named error. Uncaught, the runtime answers **HTTP 200** with
2770
+ * `{ payload, statement: "Throw Error" }` unless the throw sets `status`, which
2771
+ * the request then answers with. `s.precondition` instead maps its `error_type`
2772
+ * to a status-bearing exception (400/401/403/404/429/…) with the
2773
+ * `{ code, message, payload }` envelope.
2536
2774
  *
2537
2775
  * Both delegate to the codegen'd factory — the encoded statement is identical —
2538
2776
  * and only narrow/annotate the authoring types. `error_type` in particular ships
@@ -2584,31 +2822,43 @@ interface PreconditionArgs extends StatementAnnotations {
2584
2822
  }
2585
2823
  /**
2586
2824
  * `precondition { … }` — assert a condition and raise a **status-bearing** error
2587
- * if it fails (`mvp:precondition`). Prefer this over {@link throwError} (`s.throw`)
2588
- * whenever the rejection must be observable via HTTP status — a client guarding
2589
- * on `res.ok` sees a real 4xx instead of a 200 with an error body.
2825
+ * if it fails (`mvp:precondition`), answered with the `{ code, message, payload }`
2826
+ * envelope. {@link throwError} (`s.throw`) with a `status` also fails the request,
2827
+ * with a `{ payload, statement }` body instead.
2590
2828
  *
2591
2829
  * @example
2592
2830
  * s.precondition({
2593
- * expr: fl.starts_with(input.url, "http"),
2831
+ * expr: cond.startsWith(inp("url"), c.text("http")),
2594
2832
  * error_type: "badrequest",
2595
2833
  * error: c.text("url must start with http:// or https://"),
2596
2834
  * })
2597
2835
  */
2598
2836
  declare function precondition(a?: PreconditionArgs): Statement;
2599
2837
  interface ThrowArgs extends StatementAnnotations {
2600
- /** Optional error name/code. */
2838
+ /** Optional error name/code. `s.try_catch` reads it as `caught("name")`; the client never sees it. */
2601
2839
  name?: string;
2602
- /** The error value/message. */
2840
+ /** The error value/message. The client receives it as `payload`. */
2603
2841
  value: Value;
2842
+ /**
2843
+ * The HTTP status the request answers with when nothing catches this throw,
2844
+ * a whole number from 100 to 599 (refused at build time otherwise). Without
2845
+ * it an uncaught throw answers 200. A throw that `s.try_catch` catches never
2846
+ * changes the response status, and one inside a function run with
2847
+ * `s.function.run` answers the caller's request with it.
2848
+ */
2849
+ status?: number;
2604
2850
  }
2605
2851
  /**
2606
2852
  * `throw <value>` — raise an error from the stack (`mvp:throw_error`).
2607
2853
  *
2608
- * ⚠️ The runtime returns a thrown error with **HTTP 200** and an error body, so
2609
- * a client checking `res.ok` treats it as success. For a rejection that surfaces
2610
- * as a real 4xx status, use {@link precondition} (`s.precondition`) with an
2611
- * `error_type`.
2854
+ * ⚠️ Uncaught and without `status`, the runtime answers **HTTP 200** with
2855
+ * `{ payload, statement: "Throw Error" }`, so a client checking `res.ok` treats
2856
+ * it as success. Set `status` to fail the request with that status and body, or
2857
+ * use {@link precondition} (`s.precondition`) for the `{ code, message, payload }`
2858
+ * envelope.
2859
+ *
2860
+ * @example
2861
+ * s.throw({ name: "NOT_ALLOWED", value: c.text("You can't edit this record"), status: 403 })
2612
2862
  */
2613
2863
  declare function throwError(a: ThrowArgs): Statement;
2614
2864
 
@@ -2861,7 +3111,9 @@ type ValueArg = Value | {
2861
3111
  /** `return <value>` — terminate and return a value. */
2862
3112
  declare function returnValue(value: ValueArg, a?: StatementAnnotations): Statement;
2863
3113
  /**
2864
- * `die <value>` — terminate the request with an error value.
3114
+ * `die <value>` — terminate the request: HTTP 200 with
3115
+ * `{ payload: <value>, statement: "Stop & Debug" }`, not an error status (use
3116
+ * `s.precondition` for one).
2865
3117
  *
2866
3118
  * The same statement as `s.debug.stop` (both emit `mvp:die`), and the one flat
2867
3119
  * alias whose name does not mirror its `s.*` path — there is no `s.die`. Despite
@@ -2875,7 +3127,16 @@ declare function debugLog(value: ValueArg, a?: StatementAnnotations): Statement;
2875
3127
  declare function foreachBreak(a?: StatementAnnotations): Statement;
2876
3128
  /** `foreach_continue` — continue the enclosing loop. */
2877
3129
  declare function foreachContinue(a?: StatementAnnotations): Statement;
2878
- /** `foreach_remove` — remove the current item from the iterated collection. */
3130
+ /**
3131
+ * `foreach_remove` — remove the current item from the iterated collection.
3132
+ *
3133
+ * ⚠ It rewrites the VARIABLE named by the loop's `list`, so the loop must
3134
+ * iterate a bare `ref("arr")` (a stack var): the shrunk list is visible on that
3135
+ * var AFTER the loop. On an `inp()` list — or any non-`ref` value — it silently
3136
+ * does NOTHING (nothing to write back to) and reports nothing. Removing during
3137
+ * iteration does not skip the next item. Copy an input into a var first
3138
+ * (`s.set_var("arr", inp("items"))`) to use it.
3139
+ */
2879
3140
  declare function foreachRemove(a?: StatementAnnotations): Statement;
2880
3141
 
2881
3142
  /**
@@ -3066,7 +3327,7 @@ interface ApiRequestArgs extends HttpRequestFields, StatementAnnotations {
3066
3327
  * field types over the generated `mvp:api_request` factory; delegates encoding
3067
3328
  * to it for byte-parity. Any field also accepts a dynamic {@link Value}.
3068
3329
  *
3069
- * `method` suggests the 7 verbs, `params` is a key/value object (→ query string
3330
+ * `method` suggests the 8 verbs, `params` is a key/value object (→ query string
3070
3331
  * for GET/HEAD/OPTIONS, body otherwise), `headers` an array of full header-line
3071
3332
  * strings, `timeout` seconds (engine bounds 1–86400), and the verify/follow
3072
3333
  * flags booleans.
@@ -3345,8 +3606,26 @@ type TargetInputKeys<T> = T extends {
3345
3606
  * (an endpoint, a tool), so any key reaches it.
3346
3607
  */
3347
3608
  type CallInputFor<T, RawWhenEmpty extends boolean = false> = string extends TargetInputKeys<T> ? CallInput : [TargetInputKeys<T>] extends [never] ? RawWhenEmpty extends true ? CallInput : NoInputs : {
3348
- [K in TargetInputKeys<T>]?: InputValue;
3609
+ [K in TargetInputKeys<T>]?: InputValueFor<TargetInputDescriptor<T, K>>;
3349
3610
  };
3611
+ type TargetInputDescriptor<T, K extends string> = T extends {
3612
+ readonly input?: infer I;
3613
+ } ? K extends keyof NonNullable<I> ? NonNullable<I>[K] : unknown : unknown;
3614
+ /**
3615
+ * What a call may pass to one target input. A `c.*` CONSTANT carries its type
3616
+ * (`ConstValue<T>`), so one that cannot bind is a compile error rather than a
3617
+ * 400 on the first request: `c.text("abc")` or `c.bool(true)` into an
3618
+ * `input.int`/`input.decimal`, or a number/bool into an `input.uuid`. Any other
3619
+ * value (`inp`, `ref`, a filtered value) carries no constant type and passes, as
3620
+ * does every list input and every other target type.
3621
+ */
3622
+ type InputValueFor<D> = BrandOpts<D> extends {
3623
+ array: true;
3624
+ } ? InputValue : [BrandType<D>] extends ["int" | "decimal"] ? number | (Value & {
3625
+ readonly __const?: number | null;
3626
+ }) : [BrandType<D>] extends ["uuid"] ? string | (Value & {
3627
+ readonly __const?: string | null;
3628
+ }) : InputValue;
3350
3629
  /**
3351
3630
  * The `input` of a target that declares none: an object literal naming any key
3352
3631
  * is an excess-property error, while a `Record<string, Value>` built elsewhere
@@ -3404,6 +3683,27 @@ declare function functionRun<const Fn extends FnRef = FnRef, const As extends st
3404
3683
  * `R` of `AsyncRuntime | undefined` yields the union rather than a guess.
3405
3684
  */
3406
3685
  type RunBinding<Fn, R> = [R] extends [undefined] ? InferResponse<Fn> : [R] extends [AsyncRuntime] ? string : string | InferResponse<Fn>;
3686
+ /**
3687
+ * The error envelope a NON-RAISING workspace run binds to `as` when its target
3688
+ * fails, in place of the success result. Two shapes, both measured live: a
3689
+ * precondition / `guard.found` failure binds `{ code, message, payload }`; an
3690
+ * uncaught `s.throw` binds `{ payload, statement }`. `s.function.call` and
3691
+ * `s.tool.call` answer 200 and bind one of these on failure (OUTSIDE a workflow
3692
+ * test), so their `as` is the success shape OR this. Branch on it with
3693
+ * `ref("<as>.code")` / `ref("<as>.statement")`. sdk-dev#137 / #203 / #165.
3694
+ *
3695
+ * `s.function.run` raises on a failing target, so its binding is the success
3696
+ * shape alone; a failed `s.await` serves the job's output through an untyped
3697
+ * (`unknown`) binding, which already admits this.
3698
+ */
3699
+ type CallErrorEnvelope = {
3700
+ code: string;
3701
+ message: string;
3702
+ payload: unknown;
3703
+ } | {
3704
+ payload: unknown;
3705
+ statement: string;
3706
+ };
3407
3707
  interface FunctionCallArgs<Fn extends ObjectRef = ObjectRef, As extends string = string> extends StatementOptions {
3408
3708
  fn: Fn;
3409
3709
  as?: As;
@@ -3428,10 +3728,21 @@ interface FunctionCallArgs<Fn extends ObjectRef = ObjectRef, As extends string =
3428
3728
  * where there is no def to read — propagates that `unknown` unchanged. Declaring
3429
3729
  * `responseShape` on the TARGET fixes every caller at once, which is why that
3430
3730
  * remains the recommendation for a response the walk cannot resolve.
3731
+ *
3732
+ * ⚠ This differs from `s.function.run` ON FAILURE. OUTSIDE a workflow test
3733
+ * `s.function.call` does NOT raise when the target fails — it binds an error
3734
+ * envelope to `as` and the stack answers 200. So the binding is typed
3735
+ * `InferResponse<Fn> | CallErrorEnvelope`: the SUCCESS shape OR
3736
+ * `{ code, message, payload }` (a precondition/`guard.found` failure) or
3737
+ * `{ payload, statement }` (an uncaught `s.throw`). A guard inside the target
3738
+ * never stops the caller here — use `s.function.run` whenever a failing target
3739
+ * must stop the caller; reach for `s.function.call` to INSPECT the envelope
3740
+ * (branch on `ref("<as>.code")`). INSIDE a workflow test it DOES raise — that is
3741
+ * its home.
3431
3742
  */
3432
3743
  declare function functionCall<const Fn extends ObjectRef = ObjectRef, const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(args: FunctionCallArgs<Fn, As> & {
3433
3744
  asFilters?: Fs;
3434
- }): Statement & AsShapeBrand<As, ApplyFilters<InferResponse<Fn>, Fs>>;
3745
+ }): Statement & AsShapeBrand<As, ApplyFilters<InferResponse<Fn>, Fs> | CallErrorEnvelope>;
3435
3746
  /** The type of `s.api.call`'s non-argument `query`, whose one member names the fix. */
3436
3747
  type EndpointGoesInApi = {
3437
3748
  readonly "s.api.call takes the endpoint as `api`, not `query`": never;
@@ -3514,10 +3825,16 @@ interface ToolCallArgs<Tool extends ObjectRef = ObjectRef, As extends string = s
3514
3825
  /**
3515
3826
  * `tool.call <tool>` — invoke a tool as a workspace run. Branded with the
3516
3827
  * TARGET's `InferResponse`, like {@link functionCall}.
3828
+ *
3829
+ * ⚠ Like {@link functionCall}, a FAILING tool does NOT raise, so the binding is
3830
+ * `InferResponse<Tool> | CallErrorEnvelope`: the SUCCESS shape OR
3831
+ * `{ code, message, payload }` (a precondition) or `{ payload, statement }` (an
3832
+ * uncaught `s.throw`), and the caller's stack continues to a 200. When a failure
3833
+ * must stop the caller, put the logic in a `defineFunction` and `s.function.run` it.
3517
3834
  */
3518
3835
  declare function toolCall<const Tool extends ObjectRef = ObjectRef, const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(args: ToolCallArgs<Tool, As> & {
3519
3836
  asFilters?: Fs;
3520
- }): Statement & AsShapeBrand<As, ApplyFilters<InferResponse<Tool>, Fs>>;
3837
+ }): Statement & AsShapeBrand<As, ApplyFilters<InferResponse<Tool>, Fs> | CallErrorEnvelope>;
3521
3838
  interface TriggerCallArgs extends StatementOptions {
3522
3839
  trigger: ObjectRef;
3523
3840
  as?: string;
@@ -3661,17 +3978,21 @@ interface AgentRunResult<R = string> {
3661
3978
  finishReason: string;
3662
3979
  /** Provider-specific metadata (e.g. usage counters, safety signals), keyed by provider. */
3663
3980
  providerMetadata: Record<string, Record<string, unknown>>;
3664
- /** Reasoning parts emitted by the model; `[]` when none. */
3665
- reasoningDetails: unknown[];
3666
- /** Per-step records (each with e.g. `text`, `finishReason`, `usage`, `toolCalls`, `providerMetadata`). */
3667
- steps: unknown[];
3981
+ /** Reasoning parts emitted by the model; `[]` when none. ABSENT on a structured-output (`output`) run with no tools. */
3982
+ reasoningDetails?: unknown[];
3983
+ /**
3984
+ * Per-step records (each with e.g. `text`, `finishReason`, `usage`, `toolCalls`, `providerMetadata`).
3985
+ * ABSENT on a structured-output (`output`) agent with NO tools, which runs as a
3986
+ * single call — read it with `ref("<as>.steps", { safe: true })` there.
3987
+ */
3988
+ steps?: unknown[];
3668
3989
  /** Fallback finish reason, populated only when `finishReason` is `'unknown'`; otherwise empty/absent. */
3669
3990
  finishReasonCandidate?: string;
3670
3991
  /** Merged tool-call + result records; absent or empty when no tools ran. */
3671
3992
  toolCalls?: unknown[];
3672
3993
  /** Token usage for the final generation (`inputTokens`, `outputTokens`, `totalTokens`, …). */
3673
3994
  usage?: Record<string, unknown>;
3674
- /** Token usage aggregated across all steps. */
3995
+ /** Token usage aggregated across all steps. Absent on a structured-output run with no tools. */
3675
3996
  totalUsage?: Record<string, unknown>;
3676
3997
  }
3677
3998
  interface AiAgentRunArgs<As extends string = "", A extends ObjectRef = ObjectRef, R = AgentResultOf<A>> extends StatementOptions {
@@ -3972,7 +4293,18 @@ type HeaderDuplicates = (typeof HEADER_DUPLICATES)[number];
3972
4293
  type WithAccess<T> = Omit<T, "access"> & {
3973
4294
  access?: StorageAccess;
3974
4295
  };
3975
- type CreateAttachmentArgs = WithAccess<Parameters<typeof generated.storage.create_attachment>[0]>;
4296
+ type CreateAttachmentArgs = Omit<WithAccess<Parameters<typeof generated.storage.create_attachment>[0]>, "include_meta"> & {
4297
+ /**
4298
+ * What `as` binds. Absent or `false`: the stored file VALUE
4299
+ * (`{ access, path, name, type, size, mime, meta }`), the thing to write into
4300
+ * an `f.attachment()` cell. `true`: the engine's internal file RECORD instead
4301
+ * (`id`, `sig`, `guid`, `canonical`, `user`, `workspace`, and `storage` with the
4302
+ * cloud provider, bucket and region). Read the fields you need from it; never
4303
+ * return it to a client (export warns `storage.include-meta-returned`) or store
4304
+ * it as the file value.
4305
+ */
4306
+ include_meta?: boolean;
4307
+ };
3976
4308
  type CreateAudioArgs = WithAccess<Parameters<typeof generated.storage.create_audio>[0]>;
3977
4309
  type CreateImageArgs = WithAccess<Parameters<typeof generated.storage.create_image>[0]>;
3978
4310
  type CreateVideoArgs = WithAccess<Parameters<typeof generated.storage.create_video>[0]>;
@@ -3985,6 +4317,10 @@ type SetHeaderArgs = Omit<Parameters<typeof generated.util.set_header>[0], "dupl
3985
4317
  * ⚠ `access` defaults to `"public"` (world-readable by URL). Pass
3986
4318
  * `access: "private"` and reach the file through `s.storage.sign_private_url`
3987
4319
  * when it must not be.
4320
+ *
4321
+ * ⚠ `include_meta: true` binds the internal file record (`sig`, `guid`, the
4322
+ * storage bucket), not the file value. Returned from an endpoint it exposes
4323
+ * storage internals: return the fields you need, or drop `include_meta`.
3988
4324
  */
3989
4325
  declare function createAttachment(a: CreateAttachmentArgs): Statement;
3990
4326
  /**
@@ -4048,24 +4384,37 @@ type LambdaArgs = Parameters<typeof generated.lambda>[0] & {
4048
4384
  */
4049
4385
  declare function lambda(a: LambdaArgs): Statement;
4050
4386
 
4051
- /** `s.object.keys`, branded so the bound var reads as the key list. */
4052
- type ObjectKeys = <const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(a?: Omit<NonNullable<Parameters<typeof generated.object.keys>[0]>, "as" | "asFilters"> & {
4387
+ /** `s.object.keys`, branded so the bound var reads as the key list. An
4388
+ * integer-like key comes back as a NUMBER (PHP coerces it), so the element is
4389
+ * `string | number`, not `string`. */
4390
+ type ObjectKeys = <const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(a: Omit<NonNullable<Parameters<typeof generated.object.keys>[0]>, "as" | "asFilters"> & {
4053
4391
  as?: As;
4054
4392
  asFilters?: Fs;
4055
- }) => Statement & AsShapeBrand<As, ApplyFilters<string[], Fs>>;
4393
+ }) => Statement & AsShapeBrand<As, ApplyFilters<(string | number)[], Fs>>;
4394
+ /** `s.object.entries`, branded so the bound var reads as the entry list. Each
4395
+ * entry is a `{ key, value }` OBJECT (not a `[key, value]` tuple), and an
4396
+ * integer-like key comes back as a NUMBER. */
4397
+ type ObjectEntries = <const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(a: Omit<NonNullable<Parameters<typeof generated.object.entries>[0]>, "as" | "asFilters"> & {
4398
+ as?: As;
4399
+ asFilters?: Fs;
4400
+ }) => Statement & AsShapeBrand<As, ApplyFilters<{
4401
+ key: string | number;
4402
+ value: unknown;
4403
+ }[], Fs>>;
4056
4404
  /** `s.security.create_uuid`, branded so the bound var reads as the UUID string it is. */
4057
4405
  type CreateUuid = <const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(a?: Omit<NonNullable<Parameters<typeof generated.security.create_uuid>[0]>, "as" | "asFilters"> & {
4058
4406
  as?: As;
4059
4407
  asFilters?: Fs;
4060
4408
  }) => Statement & AsShapeBrand<As, ApplyFilters<string, Fs>>;
4061
- /** An in-place list mutator, branded with the name it appends to and the value appended. */
4409
+ /**
4410
+ * An in-place list mutator, branded with the name it appends to and the value
4411
+ * appended. `name` and `value` are both required: the build refuses either
4412
+ * missing, so the type must too.
4413
+ */
4062
4414
  type Appender<F extends (a: never) => Statement, Spread extends boolean> = <const N extends string = string, V extends Value = Value>(a: Omit<NonNullable<Parameters<F>[0]>, "name" | "value"> & {
4063
- name?: N;
4064
- } & (Spread extends true ? {
4065
- value?: V;
4066
- } : {
4415
+ name: N;
4067
4416
  value: V;
4068
- })) => Statement & AppendBrand<N, V, Spread>;
4417
+ }) => Statement & AppendBrand<N, V, Spread>;
4069
4418
  declare const s: {
4070
4419
  readonly precondition: typeof precondition;
4071
4420
  readonly throw: typeof throwError;
@@ -4105,6 +4454,7 @@ declare const s: {
4105
4454
  value: Value;
4106
4455
  disabled?: boolean;
4107
4456
  description?: string;
4457
+ mock?: MockMap;
4108
4458
  }) => Statement;
4109
4459
  };
4110
4460
  readonly microservice: {
@@ -4112,10 +4462,12 @@ declare const s: {
4112
4462
  };
4113
4463
  readonly realtime: {
4114
4464
  readonly publish: typeof realtimePublish;
4465
+ readonly kick: typeof realtimeKick;
4115
4466
  readonly get_session: (a?: {
4116
4467
  as?: string;
4117
4468
  disabled?: boolean;
4118
4469
  description?: string;
4470
+ mock?: MockMap;
4119
4471
  asFilters?: FilterXdo[];
4120
4472
  uncheckedAs?: boolean;
4121
4473
  }) => Statement;
@@ -4130,6 +4482,7 @@ declare const s: {
4130
4482
  escape_char?: Value;
4131
4483
  disabled?: boolean;
4132
4484
  description?: string;
4485
+ mock?: MockMap;
4133
4486
  asFilters?: FilterXdo[];
4134
4487
  uncheckedAs?: boolean;
4135
4488
  output?: OutputAuthored;
@@ -4139,6 +4492,7 @@ declare const s: {
4139
4492
  value: Value;
4140
4493
  disabled?: boolean;
4141
4494
  description?: string;
4495
+ mock?: MockMap;
4142
4496
  asFilters?: FilterXdo[];
4143
4497
  uncheckedAs?: boolean;
4144
4498
  }) => Statement;
@@ -4162,6 +4516,7 @@ declare const s: {
4162
4516
  unsafe_user_id?: Value;
4163
4517
  disabled?: boolean;
4164
4518
  description?: string;
4519
+ mock?: MockMap;
4165
4520
  asFilters?: FilterXdo[];
4166
4521
  uncheckedAs?: boolean;
4167
4522
  }) => Statement;
@@ -4170,6 +4525,7 @@ declare const s: {
4170
4525
  request: Value;
4171
4526
  disabled?: boolean;
4172
4527
  description?: string;
4528
+ mock?: MockMap;
4173
4529
  asFilters?: FilterXdo[];
4174
4530
  uncheckedAs?: boolean;
4175
4531
  }) => Statement;
@@ -4181,6 +4537,7 @@ declare const s: {
4181
4537
  all?: Value;
4182
4538
  disabled?: boolean;
4183
4539
  description?: string;
4540
+ mock?: MockMap;
4184
4541
  asFilters?: FilterXdo[];
4185
4542
  uncheckedAs?: boolean;
4186
4543
  }) => Statement;
@@ -4191,6 +4548,7 @@ declare const s: {
4191
4548
  message?: Value;
4192
4549
  disabled?: boolean;
4193
4550
  description?: string;
4551
+ mock?: MockMap;
4194
4552
  }) => Statement;
4195
4553
  };
4196
4554
  readonly trigger: {
@@ -4244,6 +4602,7 @@ declare const s: {
4244
4602
  workspace_id?: Value;
4245
4603
  disabled?: boolean;
4246
4604
  description?: string;
4605
+ mock?: MockMap;
4247
4606
  }) => Statement;
4248
4607
  };
4249
4608
  readonly ai: {
@@ -4259,6 +4618,7 @@ declare const s: {
4259
4618
  connection_type?: "sse" | "stream" | Value;
4260
4619
  disabled?: boolean;
4261
4620
  description?: string;
4621
+ mock?: MockMap;
4262
4622
  asFilters?: FilterXdo[];
4263
4623
  uncheckedAs?: boolean;
4264
4624
  }) => Statement;
@@ -4270,6 +4630,7 @@ declare const s: {
4270
4630
  connection_type?: "sse" | "stream" | Value;
4271
4631
  disabled?: boolean;
4272
4632
  description?: string;
4633
+ mock?: MockMap;
4273
4634
  asFilters?: FilterXdo[];
4274
4635
  uncheckedAs?: boolean;
4275
4636
  }) => Statement;
@@ -4282,6 +4643,7 @@ declare const s: {
4282
4643
  args?: Value;
4283
4644
  disabled?: boolean;
4284
4645
  description?: string;
4646
+ mock?: MockMap;
4285
4647
  asFilters?: FilterXdo[];
4286
4648
  uncheckedAs?: boolean;
4287
4649
  }) => Statement;
@@ -4304,6 +4666,7 @@ declare const s: {
4304
4666
  payload: Value;
4305
4667
  disabled?: boolean;
4306
4668
  description?: string;
4669
+ mock?: MockMap;
4307
4670
  asFilters?: FilterXdo[];
4308
4671
  uncheckedAs?: boolean;
4309
4672
  output?: OutputAuthored;
@@ -4324,6 +4687,7 @@ declare const s: {
4324
4687
  doc: Value;
4325
4688
  disabled?: boolean;
4326
4689
  description?: string;
4690
+ mock?: MockMap;
4327
4691
  asFilters?: FilterXdo[];
4328
4692
  uncheckedAs?: boolean;
4329
4693
  }) => Statement;
@@ -4344,6 +4708,7 @@ declare const s: {
4344
4708
  sort?: Value;
4345
4709
  disabled?: boolean;
4346
4710
  description?: string;
4711
+ mock?: MockMap;
4347
4712
  asFilters?: FilterXdo[];
4348
4713
  uncheckedAs?: boolean;
4349
4714
  }) => Statement;
@@ -4358,6 +4723,7 @@ declare const s: {
4358
4723
  query: Value;
4359
4724
  disabled?: boolean;
4360
4725
  description?: string;
4726
+ mock?: MockMap;
4361
4727
  asFilters?: FilterXdo[];
4362
4728
  uncheckedAs?: boolean;
4363
4729
  }) => Statement;
@@ -4372,6 +4738,7 @@ declare const s: {
4372
4738
  file_key: Value;
4373
4739
  disabled?: boolean;
4374
4740
  description?: string;
4741
+ mock?: MockMap;
4375
4742
  asFilters?: FilterXdo[];
4376
4743
  uncheckedAs?: boolean;
4377
4744
  }) => Statement;
@@ -4384,6 +4751,7 @@ declare const s: {
4384
4751
  file_key: Value;
4385
4752
  disabled?: boolean;
4386
4753
  description?: string;
4754
+ mock?: MockMap;
4387
4755
  asFilters?: FilterXdo[];
4388
4756
  uncheckedAs?: boolean;
4389
4757
  }) => Statement;
@@ -4397,6 +4765,7 @@ declare const s: {
4397
4765
  next_page_token?: Value;
4398
4766
  disabled?: boolean;
4399
4767
  description?: string;
4768
+ mock?: MockMap;
4400
4769
  asFilters?: FilterXdo[];
4401
4770
  uncheckedAs?: boolean;
4402
4771
  }) => Statement;
@@ -4409,6 +4778,7 @@ declare const s: {
4409
4778
  file_key: Value;
4410
4779
  disabled?: boolean;
4411
4780
  description?: string;
4781
+ mock?: MockMap;
4412
4782
  asFilters?: FilterXdo[];
4413
4783
  uncheckedAs?: boolean;
4414
4784
  }) => Statement;
@@ -4422,6 +4792,7 @@ declare const s: {
4422
4792
  ttl?: Value;
4423
4793
  disabled?: boolean;
4424
4794
  description?: string;
4795
+ mock?: MockMap;
4425
4796
  asFilters?: FilterXdo[];
4426
4797
  uncheckedAs?: boolean;
4427
4798
  }) => Statement;
@@ -4438,6 +4809,7 @@ declare const s: {
4438
4809
  object_lock_retain_until?: Value;
4439
4810
  disabled?: boolean;
4440
4811
  description?: string;
4812
+ mock?: MockMap;
4441
4813
  asFilters?: FilterXdo[];
4442
4814
  uncheckedAs?: boolean;
4443
4815
  }) => Statement;
@@ -4453,6 +4825,7 @@ declare const s: {
4453
4825
  filePath: Value;
4454
4826
  disabled?: boolean;
4455
4827
  description?: string;
4828
+ mock?: MockMap;
4456
4829
  asFilters?: FilterXdo[];
4457
4830
  uncheckedAs?: boolean;
4458
4831
  }) => Statement;
@@ -4464,6 +4837,7 @@ declare const s: {
4464
4837
  filePath: Value;
4465
4838
  disabled?: boolean;
4466
4839
  description?: string;
4840
+ mock?: MockMap;
4467
4841
  asFilters?: FilterXdo[];
4468
4842
  uncheckedAs?: boolean;
4469
4843
  }) => Statement;
@@ -4475,6 +4849,7 @@ declare const s: {
4475
4849
  path?: Value;
4476
4850
  disabled?: boolean;
4477
4851
  description?: string;
4852
+ mock?: MockMap;
4478
4853
  asFilters?: FilterXdo[];
4479
4854
  uncheckedAs?: boolean;
4480
4855
  }) => Statement;
@@ -4486,6 +4861,7 @@ declare const s: {
4486
4861
  filePath: Value;
4487
4862
  disabled?: boolean;
4488
4863
  description?: string;
4864
+ mock?: MockMap;
4489
4865
  asFilters?: FilterXdo[];
4490
4866
  uncheckedAs?: boolean;
4491
4867
  }) => Statement;
@@ -4498,6 +4874,7 @@ declare const s: {
4498
4874
  ttl?: Value;
4499
4875
  disabled?: boolean;
4500
4876
  description?: string;
4877
+ mock?: MockMap;
4501
4878
  asFilters?: FilterXdo[];
4502
4879
  uncheckedAs?: boolean;
4503
4880
  }) => Statement;
@@ -4511,6 +4888,7 @@ declare const s: {
4511
4888
  metadata?: Value;
4512
4889
  disabled?: boolean;
4513
4890
  description?: string;
4891
+ mock?: MockMap;
4514
4892
  asFilters?: FilterXdo[];
4515
4893
  uncheckedAs?: boolean;
4516
4894
  }) => Statement;
@@ -4529,6 +4907,7 @@ declare const s: {
4529
4907
  doc: Value;
4530
4908
  disabled?: boolean;
4531
4909
  description?: string;
4910
+ mock?: MockMap;
4532
4911
  asFilters?: FilterXdo[];
4533
4912
  uncheckedAs?: boolean;
4534
4913
  }) => Statement;
@@ -4548,6 +4927,7 @@ declare const s: {
4548
4927
  sort?: Value;
4549
4928
  disabled?: boolean;
4550
4929
  description?: string;
4930
+ mock?: MockMap;
4551
4931
  asFilters?: FilterXdo[];
4552
4932
  uncheckedAs?: boolean;
4553
4933
  }) => Statement;
@@ -4561,6 +4941,7 @@ declare const s: {
4561
4941
  payload: Value;
4562
4942
  disabled?: boolean;
4563
4943
  description?: string;
4944
+ mock?: MockMap;
4564
4945
  asFilters?: FilterXdo[];
4565
4946
  uncheckedAs?: boolean;
4566
4947
  }) => Statement;
@@ -4574,6 +4955,7 @@ declare const s: {
4574
4955
  filePath: Value;
4575
4956
  disabled?: boolean;
4576
4957
  description?: string;
4958
+ mock?: MockMap;
4577
4959
  asFilters?: FilterXdo[];
4578
4960
  uncheckedAs?: boolean;
4579
4961
  }) => Statement;
@@ -4584,6 +4966,7 @@ declare const s: {
4584
4966
  filePath: Value;
4585
4967
  disabled?: boolean;
4586
4968
  description?: string;
4969
+ mock?: MockMap;
4587
4970
  asFilters?: FilterXdo[];
4588
4971
  uncheckedAs?: boolean;
4589
4972
  }) => Statement;
@@ -4594,6 +4977,7 @@ declare const s: {
4594
4977
  path: Value;
4595
4978
  disabled?: boolean;
4596
4979
  description?: string;
4980
+ mock?: MockMap;
4597
4981
  asFilters?: FilterXdo[];
4598
4982
  uncheckedAs?: boolean;
4599
4983
  }) => Statement;
@@ -4604,6 +4988,7 @@ declare const s: {
4604
4988
  filePath: Value;
4605
4989
  disabled?: boolean;
4606
4990
  description?: string;
4991
+ mock?: MockMap;
4607
4992
  asFilters?: FilterXdo[];
4608
4993
  uncheckedAs?: boolean;
4609
4994
  }) => Statement;
@@ -4616,6 +5001,7 @@ declare const s: {
4616
5001
  ttl?: Value;
4617
5002
  disabled?: boolean;
4618
5003
  description?: string;
5004
+ mock?: MockMap;
4619
5005
  asFilters?: FilterXdo[];
4620
5006
  uncheckedAs?: boolean;
4621
5007
  }) => Statement;
@@ -4628,6 +5014,7 @@ declare const s: {
4628
5014
  metadata?: Value;
4629
5015
  disabled?: boolean;
4630
5016
  description?: string;
5017
+ mock?: MockMap;
4631
5018
  asFilters?: FilterXdo[];
4632
5019
  uncheckedAs?: boolean;
4633
5020
  }) => Statement;
@@ -4647,6 +5034,7 @@ declare const s: {
4647
5034
  by?: Value;
4648
5035
  disabled?: boolean;
4649
5036
  description?: string;
5037
+ mock?: MockMap;
4650
5038
  asFilters?: FilterXdo[];
4651
5039
  uncheckedAs?: boolean;
4652
5040
  }) => Statement;
@@ -4656,6 +5044,7 @@ declare const s: {
4656
5044
  if: Condition;
4657
5045
  disabled?: boolean;
4658
5046
  description?: string;
5047
+ mock?: MockMap;
4659
5048
  asFilters?: FilterXdo[];
4660
5049
  uncheckedAs?: boolean;
4661
5050
  output?: OutputAuthored;
@@ -4666,6 +5055,7 @@ declare const s: {
4666
5055
  if: Condition;
4667
5056
  disabled?: boolean;
4668
5057
  description?: string;
5058
+ mock?: MockMap;
4669
5059
  asFilters?: FilterXdo[];
4670
5060
  uncheckedAs?: boolean;
4671
5061
  }) => Statement;
@@ -4675,6 +5065,7 @@ declare const s: {
4675
5065
  if: Condition;
4676
5066
  disabled?: boolean;
4677
5067
  description?: string;
5068
+ mock?: MockMap;
4678
5069
  asFilters?: FilterXdo[];
4679
5070
  uncheckedAs?: boolean;
4680
5071
  }) => Statement;
@@ -4684,6 +5075,7 @@ declare const s: {
4684
5075
  if: Condition;
4685
5076
  disabled?: boolean;
4686
5077
  description?: string;
5078
+ mock?: MockMap;
4687
5079
  asFilters?: FilterXdo[];
4688
5080
  uncheckedAs?: boolean;
4689
5081
  output?: OutputAuthored;
@@ -4694,6 +5086,7 @@ declare const s: {
4694
5086
  if: Condition;
4695
5087
  disabled?: boolean;
4696
5088
  description?: string;
5089
+ mock?: MockMap;
4697
5090
  asFilters?: FilterXdo[];
4698
5091
  uncheckedAs?: boolean;
4699
5092
  }) => Statement;
@@ -4703,6 +5096,7 @@ declare const s: {
4703
5096
  by?: Value;
4704
5097
  disabled?: boolean;
4705
5098
  description?: string;
5099
+ mock?: MockMap;
4706
5100
  asFilters?: FilterXdo[];
4707
5101
  uncheckedAs?: boolean;
4708
5102
  }) => Statement;
@@ -4712,6 +5106,7 @@ declare const s: {
4712
5106
  if: Condition;
4713
5107
  disabled?: boolean;
4714
5108
  description?: string;
5109
+ mock?: MockMap;
4715
5110
  asFilters?: FilterXdo[];
4716
5111
  uncheckedAs?: boolean;
4717
5112
  }) => Statement;
@@ -4722,6 +5117,7 @@ declare const s: {
4722
5117
  by?: Value;
4723
5118
  disabled?: boolean;
4724
5119
  description?: string;
5120
+ mock?: MockMap;
4725
5121
  asFilters?: FilterXdo[];
4726
5122
  uncheckedAs?: boolean;
4727
5123
  }) => Statement;
@@ -4731,6 +5127,7 @@ declare const s: {
4731
5127
  if: Condition;
4732
5128
  disabled?: boolean;
4733
5129
  description?: string;
5130
+ mock?: MockMap;
4734
5131
  asFilters?: FilterXdo[];
4735
5132
  uncheckedAs?: boolean;
4736
5133
  }) => Statement;
@@ -4739,6 +5136,7 @@ declare const s: {
4739
5136
  as?: string;
4740
5137
  disabled?: boolean;
4741
5138
  description?: string;
5139
+ mock?: MockMap;
4742
5140
  asFilters?: FilterXdo[];
4743
5141
  uncheckedAs?: boolean;
4744
5142
  output?: OutputAuthored;
@@ -4748,6 +5146,7 @@ declare const s: {
4748
5146
  as?: string;
4749
5147
  disabled?: boolean;
4750
5148
  description?: string;
5149
+ mock?: MockMap;
4751
5150
  asFilters?: FilterXdo[];
4752
5151
  uncheckedAs?: boolean;
4753
5152
  }) => Statement;
@@ -4759,48 +5158,57 @@ declare const s: {
4759
5158
  expr: Value;
4760
5159
  disabled?: boolean;
4761
5160
  description?: string;
5161
+ mock?: MockMap;
4762
5162
  }) => Statement;
4763
5163
  readonly to_be_empty: (a: {
4764
5164
  expr: Value;
4765
5165
  disabled?: boolean;
4766
5166
  description?: string;
5167
+ mock?: MockMap;
4767
5168
  }) => Statement;
4768
5169
  readonly to_be_false: (a: {
4769
5170
  expr: Value;
4770
5171
  disabled?: boolean;
4771
5172
  description?: string;
5173
+ mock?: MockMap;
4772
5174
  }) => Statement;
4773
5175
  readonly to_be_greater_than: (a: {
4774
5176
  expr: Value;
4775
5177
  value: Value;
4776
5178
  disabled?: boolean;
4777
5179
  description?: string;
5180
+ mock?: MockMap;
4778
5181
  }) => Statement;
4779
5182
  readonly to_be_in_the_future: (a: {
4780
5183
  expr: Value;
4781
5184
  disabled?: boolean;
4782
5185
  description?: string;
5186
+ mock?: MockMap;
4783
5187
  }) => Statement;
4784
5188
  readonly to_be_in_the_past: (a: {
4785
5189
  expr: Value;
4786
5190
  disabled?: boolean;
4787
5191
  description?: string;
5192
+ mock?: MockMap;
4788
5193
  }) => Statement;
4789
5194
  readonly to_be_less_than: (a: {
4790
5195
  expr: Value;
4791
5196
  value: Value;
4792
5197
  disabled?: boolean;
4793
5198
  description?: string;
5199
+ mock?: MockMap;
4794
5200
  }) => Statement;
4795
5201
  readonly to_be_null: (a: {
4796
5202
  expr: Value;
4797
5203
  disabled?: boolean;
4798
5204
  description?: string;
5205
+ mock?: MockMap;
4799
5206
  }) => Statement;
4800
5207
  readonly to_be_true: (a: {
4801
5208
  expr: Value;
4802
5209
  disabled?: boolean;
4803
5210
  description?: string;
5211
+ mock?: MockMap;
4804
5212
  }) => Statement;
4805
5213
  readonly to_be_within: (a: {
4806
5214
  expr: Value;
@@ -4808,46 +5216,54 @@ declare const s: {
4808
5216
  max: Value;
4809
5217
  disabled?: boolean;
4810
5218
  description?: string;
5219
+ mock?: MockMap;
4811
5220
  }) => Statement;
4812
5221
  readonly to_contain: (a: {
4813
5222
  expr: Value;
4814
5223
  value: Value;
4815
5224
  disabled?: boolean;
4816
5225
  description?: string;
5226
+ mock?: MockMap;
4817
5227
  }) => Statement;
4818
5228
  readonly to_end_with: (a: {
4819
5229
  expr: Value;
4820
5230
  value: Value;
4821
5231
  disabled?: boolean;
4822
5232
  description?: string;
5233
+ mock?: MockMap;
4823
5234
  }) => Statement;
4824
5235
  readonly to_equal: (a: {
4825
5236
  expr: Value;
4826
5237
  value: Value;
4827
5238
  disabled?: boolean;
4828
5239
  description?: string;
5240
+ mock?: MockMap;
4829
5241
  }) => Statement;
4830
5242
  readonly to_not_be_defined: (a: {
4831
5243
  expr: Value;
4832
5244
  disabled?: boolean;
4833
5245
  description?: string;
5246
+ mock?: MockMap;
4834
5247
  }) => Statement;
4835
5248
  readonly to_not_be_null: (a: {
4836
5249
  expr: Value;
4837
5250
  disabled?: boolean;
4838
5251
  description?: string;
5252
+ mock?: MockMap;
4839
5253
  }) => Statement;
4840
5254
  readonly to_not_equal: (a: {
4841
5255
  expr: Value;
4842
5256
  value: Value;
4843
5257
  disabled?: boolean;
4844
5258
  description?: string;
5259
+ mock?: MockMap;
4845
5260
  }) => Statement;
4846
5261
  readonly to_start_with: (a: {
4847
5262
  expr: Value;
4848
5263
  value: Value;
4849
5264
  disabled?: boolean;
4850
5265
  description?: string;
5266
+ mock?: MockMap;
4851
5267
  }) => Statement;
4852
5268
  };
4853
5269
  readonly security: {
@@ -4859,6 +5275,7 @@ declare const s: {
4859
5275
  hash_password: Value;
4860
5276
  disabled?: boolean;
4861
5277
  description?: string;
5278
+ mock?: MockMap;
4862
5279
  asFilters?: FilterXdo[];
4863
5280
  uncheckedAs?: boolean;
4864
5281
  output?: OutputAuthored;
@@ -4869,6 +5286,7 @@ declare const s: {
4869
5286
  format?: "object" | "base64" | Value;
4870
5287
  disabled?: boolean;
4871
5288
  description?: string;
5289
+ mock?: MockMap;
4872
5290
  asFilters?: FilterXdo[];
4873
5291
  uncheckedAs?: boolean;
4874
5292
  }) => Statement;
@@ -4882,6 +5300,7 @@ declare const s: {
4882
5300
  symbol_whitelist?: Value;
4883
5301
  disabled?: boolean;
4884
5302
  description?: string;
5303
+ mock?: MockMap;
4885
5304
  asFilters?: FilterXdo[];
4886
5305
  uncheckedAs?: boolean;
4887
5306
  }) => Statement;
@@ -4891,6 +5310,7 @@ declare const s: {
4891
5310
  format?: "object" | "base64" | Value;
4892
5311
  disabled?: boolean;
4893
5312
  description?: string;
5313
+ mock?: MockMap;
4894
5314
  asFilters?: FilterXdo[];
4895
5315
  uncheckedAs?: boolean;
4896
5316
  }) => Statement;
@@ -4900,6 +5320,7 @@ declare const s: {
4900
5320
  format?: "object" | "base64" | Value;
4901
5321
  disabled?: boolean;
4902
5322
  description?: string;
5323
+ mock?: MockMap;
4903
5324
  asFilters?: FilterXdo[];
4904
5325
  uncheckedAs?: boolean;
4905
5326
  }) => Statement;
@@ -4911,6 +5332,7 @@ declare const s: {
4911
5332
  iv: Value;
4912
5333
  disabled?: boolean;
4913
5334
  description?: string;
5335
+ mock?: MockMap;
4914
5336
  asFilters?: FilterXdo[];
4915
5337
  uncheckedAs?: boolean;
4916
5338
  }) => Statement;
@@ -4922,6 +5344,7 @@ declare const s: {
4922
5344
  iv: Value;
4923
5345
  disabled?: boolean;
4924
5346
  description?: string;
5347
+ mock?: MockMap;
4925
5348
  asFilters?: FilterXdo[];
4926
5349
  uncheckedAs?: boolean;
4927
5350
  }) => Statement;
@@ -4935,6 +5358,7 @@ declare const s: {
4935
5358
  timeDrift?: Value;
4936
5359
  disabled?: boolean;
4937
5360
  description?: string;
5361
+ mock?: MockMap;
4938
5362
  asFilters?: FilterXdo[];
4939
5363
  uncheckedAs?: boolean;
4940
5364
  }) => Statement;
@@ -4948,6 +5372,7 @@ declare const s: {
4948
5372
  ttl?: Value;
4949
5373
  disabled?: boolean;
4950
5374
  description?: string;
5375
+ mock?: MockMap;
4951
5376
  asFilters?: FilterXdo[];
4952
5377
  uncheckedAs?: boolean;
4953
5378
  }) => Statement;
@@ -4960,6 +5385,7 @@ declare const s: {
4960
5385
  timeDrift?: Value;
4961
5386
  disabled?: boolean;
4962
5387
  description?: string;
5388
+ mock?: MockMap;
4963
5389
  asFilters?: FilterXdo[];
4964
5390
  uncheckedAs?: boolean;
4965
5391
  }) => Statement;
@@ -4972,6 +5398,7 @@ declare const s: {
4972
5398
  ttl?: Value;
4973
5399
  disabled?: boolean;
4974
5400
  description?: string;
5401
+ mock?: MockMap;
4975
5402
  asFilters?: FilterXdo[];
4976
5403
  uncheckedAs?: boolean;
4977
5404
  }) => Statement;
@@ -4980,6 +5407,7 @@ declare const s: {
4980
5407
  length?: Value;
4981
5408
  disabled?: boolean;
4982
5409
  description?: string;
5410
+ mock?: MockMap;
4983
5411
  asFilters?: FilterXdo[];
4984
5412
  uncheckedAs?: boolean;
4985
5413
  }) => Statement;
@@ -4989,26 +5417,20 @@ declare const s: {
4989
5417
  max?: Value;
4990
5418
  disabled?: boolean;
4991
5419
  description?: string;
5420
+ mock?: MockMap;
4992
5421
  asFilters?: FilterXdo[];
4993
5422
  uncheckedAs?: boolean;
4994
5423
  }) => Statement;
4995
5424
  };
4996
5425
  readonly object: {
4997
5426
  readonly keys: ObjectKeys;
4998
- readonly entries: (a: {
4999
- as?: string;
5000
- value: Value;
5001
- disabled?: boolean;
5002
- description?: string;
5003
- asFilters?: FilterXdo[];
5004
- uncheckedAs?: boolean;
5005
- output?: OutputAuthored;
5006
- }) => Statement;
5427
+ readonly entries: ObjectEntries;
5007
5428
  readonly values: (a: {
5008
5429
  as?: string;
5009
5430
  value: Value;
5010
5431
  disabled?: boolean;
5011
5432
  description?: string;
5433
+ mock?: MockMap;
5012
5434
  asFilters?: FilterXdo[];
5013
5435
  uncheckedAs?: boolean;
5014
5436
  output?: OutputAuthored;
@@ -5028,6 +5450,7 @@ declare const s: {
5028
5450
  longitude_2: Value;
5029
5451
  disabled?: boolean;
5030
5452
  description?: string;
5453
+ mock?: MockMap;
5031
5454
  asFilters?: FilterXdo[];
5032
5455
  uncheckedAs?: boolean;
5033
5456
  }) => Statement;
@@ -5035,6 +5458,7 @@ declare const s: {
5035
5458
  as?: string;
5036
5459
  disabled?: boolean;
5037
5460
  description?: string;
5461
+ mock?: MockMap;
5038
5462
  asFilters?: FilterXdo[];
5039
5463
  uncheckedAs?: boolean;
5040
5464
  }) => Statement;
@@ -5042,6 +5466,7 @@ declare const s: {
5042
5466
  as?: string;
5043
5467
  disabled?: boolean;
5044
5468
  description?: string;
5469
+ mock?: MockMap;
5045
5470
  asFilters?: FilterXdo[];
5046
5471
  uncheckedAs?: boolean;
5047
5472
  }) => Statement;
@@ -5049,6 +5474,7 @@ declare const s: {
5049
5474
  as?: string;
5050
5475
  disabled?: boolean;
5051
5476
  description?: string;
5477
+ mock?: MockMap;
5052
5478
  asFilters?: FilterXdo[];
5053
5479
  uncheckedAs?: boolean;
5054
5480
  }) => Statement;
@@ -5066,6 +5492,7 @@ declare const s: {
5066
5492
  scheduled_at?: Value;
5067
5493
  disabled?: boolean;
5068
5494
  description?: string;
5495
+ mock?: MockMap;
5069
5496
  asFilters?: FilterXdo[];
5070
5497
  uncheckedAs?: boolean;
5071
5498
  }) => Statement;
@@ -5073,12 +5500,14 @@ declare const s: {
5073
5500
  value: Value;
5074
5501
  disabled?: boolean;
5075
5502
  description?: string;
5503
+ mock?: MockMap;
5076
5504
  }) => Statement;
5077
5505
  readonly template_engine: (a: {
5078
5506
  as?: string;
5079
5507
  value: Value;
5080
5508
  disabled?: boolean;
5081
5509
  description?: string;
5510
+ mock?: MockMap;
5082
5511
  asFilters?: FilterXdo[];
5083
5512
  uncheckedAs?: boolean;
5084
5513
  }) => Statement;
@@ -5094,6 +5523,7 @@ declare const s: {
5094
5523
  filedata: Value;
5095
5524
  disabled?: boolean;
5096
5525
  description?: string;
5526
+ mock?: MockMap;
5097
5527
  asFilters?: FilterXdo[];
5098
5528
  uncheckedAs?: boolean;
5099
5529
  output?: OutputAuthored;
@@ -5102,12 +5532,14 @@ declare const s: {
5102
5532
  pathname: Value;
5103
5533
  disabled?: boolean;
5104
5534
  description?: string;
5535
+ mock?: MockMap;
5105
5536
  }) => Statement;
5106
5537
  readonly read_file_resource: (a: {
5107
5538
  as?: string;
5108
5539
  value: Value;
5109
5540
  disabled?: boolean;
5110
5541
  description?: string;
5542
+ mock?: MockMap;
5111
5543
  asFilters?: FilterXdo[];
5112
5544
  uncheckedAs?: boolean;
5113
5545
  }) => Statement;
@@ -5117,6 +5549,7 @@ declare const s: {
5117
5549
  ttl?: Value;
5118
5550
  disabled?: boolean;
5119
5551
  description?: string;
5552
+ mock?: MockMap;
5120
5553
  asFilters?: FilterXdo[];
5121
5554
  uncheckedAs?: boolean;
5122
5555
  }) => Statement;
@@ -5128,6 +5561,7 @@ declare const s: {
5128
5561
  terminate?: Value;
5129
5562
  disabled?: boolean;
5130
5563
  description?: string;
5564
+ mock?: MockMap;
5131
5565
  asFilters?: FilterXdo[];
5132
5566
  uncheckedAs?: boolean;
5133
5567
  }) => Statement;
@@ -5145,12 +5579,14 @@ declare const s: {
5145
5579
  connection?: Value;
5146
5580
  disabled?: boolean;
5147
5581
  description?: string;
5582
+ mock?: MockMap;
5148
5583
  }) => Statement;
5149
5584
  log_bulk: (a: {
5150
5585
  entries: Value;
5151
5586
  connection?: Value;
5152
5587
  disabled?: boolean;
5153
5588
  description?: string;
5589
+ mock?: MockMap;
5154
5590
  }) => Statement;
5155
5591
  metric: (a: {
5156
5592
  metric: Value;
@@ -5165,12 +5601,14 @@ declare const s: {
5165
5601
  connection?: Value;
5166
5602
  disabled?: boolean;
5167
5603
  description?: string;
5604
+ mock?: MockMap;
5168
5605
  }) => Statement;
5169
5606
  metric_bulk: (a: {
5170
5607
  entries: Value;
5171
5608
  connection?: Value;
5172
5609
  disabled?: boolean;
5173
5610
  description?: string;
5611
+ mock?: MockMap;
5174
5612
  }) => Statement;
5175
5613
  };
5176
5614
  readonly debug: {
@@ -5178,11 +5616,13 @@ declare const s: {
5178
5616
  value: Value;
5179
5617
  disabled?: boolean;
5180
5618
  description?: string;
5619
+ mock?: MockMap;
5181
5620
  }) => Statement;
5182
5621
  stop: (a: {
5183
5622
  value: Value;
5184
5623
  disabled?: boolean;
5185
5624
  description?: string;
5625
+ mock?: MockMap;
5186
5626
  }) => Statement;
5187
5627
  };
5188
5628
  readonly math: {
@@ -5191,6 +5631,7 @@ declare const s: {
5191
5631
  value: Value;
5192
5632
  disabled?: boolean;
5193
5633
  description?: string;
5634
+ mock?: MockMap;
5194
5635
  }) => Statement;
5195
5636
  bitwise: {
5196
5637
  and: (a: {
@@ -5198,18 +5639,21 @@ declare const s: {
5198
5639
  value: Value;
5199
5640
  disabled?: boolean;
5200
5641
  description?: string;
5642
+ mock?: MockMap;
5201
5643
  }) => Statement;
5202
5644
  or: (a: {
5203
5645
  name: string;
5204
5646
  value: Value;
5205
5647
  disabled?: boolean;
5206
5648
  description?: string;
5649
+ mock?: MockMap;
5207
5650
  }) => Statement;
5208
5651
  xor: (a: {
5209
5652
  name: string;
5210
5653
  value: Value;
5211
5654
  disabled?: boolean;
5212
5655
  description?: string;
5656
+ mock?: MockMap;
5213
5657
  }) => Statement;
5214
5658
  };
5215
5659
  div: (a: {
@@ -5217,24 +5661,28 @@ declare const s: {
5217
5661
  value: Value;
5218
5662
  disabled?: boolean;
5219
5663
  description?: string;
5664
+ mock?: MockMap;
5220
5665
  }) => Statement;
5221
5666
  mod: (a: {
5222
5667
  name: string;
5223
5668
  value: Value;
5224
5669
  disabled?: boolean;
5225
5670
  description?: string;
5671
+ mock?: MockMap;
5226
5672
  }) => Statement;
5227
5673
  mul: (a: {
5228
5674
  name: string;
5229
5675
  value: Value;
5230
5676
  disabled?: boolean;
5231
5677
  description?: string;
5678
+ mock?: MockMap;
5232
5679
  }) => Statement;
5233
5680
  sub: (a: {
5234
5681
  name: string;
5235
5682
  value: Value;
5236
5683
  disabled?: boolean;
5237
5684
  description?: string;
5685
+ mock?: MockMap;
5238
5686
  }) => Statement;
5239
5687
  };
5240
5688
  readonly redis: {
@@ -5243,6 +5691,7 @@ declare const s: {
5243
5691
  key: Value;
5244
5692
  disabled?: boolean;
5245
5693
  description?: string;
5694
+ mock?: MockMap;
5246
5695
  asFilters?: FilterXdo[];
5247
5696
  uncheckedAs?: boolean;
5248
5697
  }) => Statement;
@@ -5252,6 +5701,7 @@ declare const s: {
5252
5701
  by?: Value;
5253
5702
  disabled?: boolean;
5254
5703
  description?: string;
5704
+ mock?: MockMap;
5255
5705
  asFilters?: FilterXdo[];
5256
5706
  uncheckedAs?: boolean;
5257
5707
  }) => Statement;
@@ -5259,12 +5709,14 @@ declare const s: {
5259
5709
  key: Value;
5260
5710
  disabled?: boolean;
5261
5711
  description?: string;
5712
+ mock?: MockMap;
5262
5713
  }) => Statement;
5263
5714
  get: (a: {
5264
5715
  as?: string;
5265
5716
  key: Value;
5266
5717
  disabled?: boolean;
5267
5718
  description?: string;
5719
+ mock?: MockMap;
5268
5720
  asFilters?: FilterXdo[];
5269
5721
  uncheckedAs?: boolean;
5270
5722
  }) => Statement;
@@ -5273,6 +5725,7 @@ declare const s: {
5273
5725
  key: Value;
5274
5726
  disabled?: boolean;
5275
5727
  description?: string;
5728
+ mock?: MockMap;
5276
5729
  asFilters?: FilterXdo[];
5277
5730
  uncheckedAs?: boolean;
5278
5731
  }) => Statement;
@@ -5282,6 +5735,7 @@ declare const s: {
5282
5735
  by?: Value;
5283
5736
  disabled?: boolean;
5284
5737
  description?: string;
5738
+ mock?: MockMap;
5285
5739
  asFilters?: FilterXdo[];
5286
5740
  uncheckedAs?: boolean;
5287
5741
  }) => Statement;
@@ -5290,6 +5744,7 @@ declare const s: {
5290
5744
  search: Value;
5291
5745
  disabled?: boolean;
5292
5746
  description?: string;
5747
+ mock?: MockMap;
5293
5748
  asFilters?: FilterXdo[];
5294
5749
  uncheckedAs?: boolean;
5295
5750
  }) => Statement;
@@ -5299,6 +5754,7 @@ declare const s: {
5299
5754
  count?: Value;
5300
5755
  disabled?: boolean;
5301
5756
  description?: string;
5757
+ mock?: MockMap;
5302
5758
  asFilters?: FilterXdo[];
5303
5759
  uncheckedAs?: boolean;
5304
5760
  }) => Statement;
@@ -5308,6 +5764,7 @@ declare const s: {
5308
5764
  value: Value;
5309
5765
  disabled?: boolean;
5310
5766
  description?: string;
5767
+ mock?: MockMap;
5311
5768
  asFilters?: FilterXdo[];
5312
5769
  uncheckedAs?: boolean;
5313
5770
  }) => Statement;
@@ -5318,6 +5775,7 @@ declare const s: {
5318
5775
  stop?: Value;
5319
5776
  disabled?: boolean;
5320
5777
  description?: string;
5778
+ mock?: MockMap;
5321
5779
  asFilters?: FilterXdo[];
5322
5780
  uncheckedAs?: boolean;
5323
5781
  }) => Statement;
@@ -5329,6 +5787,7 @@ declare const s: {
5329
5787
  error?: Value;
5330
5788
  disabled?: boolean;
5331
5789
  description?: string;
5790
+ mock?: MockMap;
5332
5791
  asFilters?: FilterXdo[];
5333
5792
  uncheckedAs?: boolean;
5334
5793
  }) => Statement;
@@ -5339,6 +5798,7 @@ declare const s: {
5339
5798
  count?: Value;
5340
5799
  disabled?: boolean;
5341
5800
  description?: string;
5801
+ mock?: MockMap;
5342
5802
  asFilters?: FilterXdo[];
5343
5803
  uncheckedAs?: boolean;
5344
5804
  }) => Statement;
@@ -5350,6 +5810,7 @@ declare const s: {
5350
5810
  create_only?: Value;
5351
5811
  disabled?: boolean;
5352
5812
  description?: string;
5813
+ mock?: MockMap;
5353
5814
  asFilters?: FilterXdo[];
5354
5815
  uncheckedAs?: boolean;
5355
5816
  }) => Statement;
@@ -5359,6 +5820,7 @@ declare const s: {
5359
5820
  count?: Value;
5360
5821
  disabled?: boolean;
5361
5822
  description?: string;
5823
+ mock?: MockMap;
5362
5824
  asFilters?: FilterXdo[];
5363
5825
  uncheckedAs?: boolean;
5364
5826
  }) => Statement;
@@ -5368,6 +5830,7 @@ declare const s: {
5368
5830
  value: Value;
5369
5831
  disabled?: boolean;
5370
5832
  description?: string;
5833
+ mock?: MockMap;
5371
5834
  asFilters?: FilterXdo[];
5372
5835
  uncheckedAs?: boolean;
5373
5836
  }) => Statement;
@@ -5378,6 +5841,7 @@ declare const s: {
5378
5841
  value: Value;
5379
5842
  disabled?: boolean;
5380
5843
  description?: string;
5844
+ mock?: MockMap;
5381
5845
  }) => Statement;
5382
5846
  contains: (a: {
5383
5847
  name: string;
@@ -5385,6 +5849,7 @@ declare const s: {
5385
5849
  value: Value;
5386
5850
  disabled?: boolean;
5387
5851
  description?: string;
5852
+ mock?: MockMap;
5388
5853
  asFilters?: FilterXdo[];
5389
5854
  uncheckedAs?: boolean;
5390
5855
  }) => Statement;
@@ -5394,6 +5859,7 @@ declare const s: {
5394
5859
  value: Value;
5395
5860
  disabled?: boolean;
5396
5861
  description?: string;
5862
+ mock?: MockMap;
5397
5863
  asFilters?: FilterXdo[];
5398
5864
  uncheckedAs?: boolean;
5399
5865
  }) => Statement;
@@ -5403,6 +5869,7 @@ declare const s: {
5403
5869
  value: Value;
5404
5870
  disabled?: boolean;
5405
5871
  description?: string;
5872
+ mock?: MockMap;
5406
5873
  asFilters?: FilterXdo[];
5407
5874
  uncheckedAs?: boolean;
5408
5875
  }) => Statement;
@@ -5412,6 +5879,7 @@ declare const s: {
5412
5879
  value: Value;
5413
5880
  disabled?: boolean;
5414
5881
  description?: string;
5882
+ mock?: MockMap;
5415
5883
  asFilters?: FilterXdo[];
5416
5884
  uncheckedAs?: boolean;
5417
5885
  }) => Statement;
@@ -5421,6 +5889,7 @@ declare const s: {
5421
5889
  value: Value;
5422
5890
  disabled?: boolean;
5423
5891
  description?: string;
5892
+ mock?: MockMap;
5424
5893
  asFilters?: FilterXdo[];
5425
5894
  uncheckedAs?: boolean;
5426
5895
  }) => Statement;
@@ -5429,18 +5898,21 @@ declare const s: {
5429
5898
  value: Value;
5430
5899
  disabled?: boolean;
5431
5900
  description?: string;
5901
+ mock?: MockMap;
5432
5902
  }) => Statement;
5433
5903
  prepend: (a: {
5434
5904
  name: string;
5435
5905
  value: Value;
5436
5906
  disabled?: boolean;
5437
5907
  description?: string;
5908
+ mock?: MockMap;
5438
5909
  }) => Statement;
5439
5910
  rtrim: (a: {
5440
5911
  name: string;
5441
5912
  value: Value;
5442
5913
  disabled?: boolean;
5443
5914
  description?: string;
5915
+ mock?: MockMap;
5444
5916
  }) => Statement;
5445
5917
  starts_with: (a: {
5446
5918
  name: string;
@@ -5448,6 +5920,7 @@ declare const s: {
5448
5920
  value: Value;
5449
5921
  disabled?: boolean;
5450
5922
  description?: string;
5923
+ mock?: MockMap;
5451
5924
  asFilters?: FilterXdo[];
5452
5925
  uncheckedAs?: boolean;
5453
5926
  }) => Statement;
@@ -5456,6 +5929,7 @@ declare const s: {
5456
5929
  value: Value;
5457
5930
  disabled?: boolean;
5458
5931
  description?: string;
5932
+ mock?: MockMap;
5459
5933
  }) => Statement;
5460
5934
  };
5461
5935
  readonly zip: {
@@ -5467,6 +5941,7 @@ declare const s: {
5467
5941
  password_encryption?: Value | null;
5468
5942
  disabled?: boolean;
5469
5943
  description?: string;
5944
+ mock?: MockMap;
5470
5945
  }) => Statement;
5471
5946
  create_archive: (a: {
5472
5947
  as?: string;
@@ -5475,6 +5950,7 @@ declare const s: {
5475
5950
  password_encryption?: "standard" | "AES-128" | "AES-192" | "AES-256" | Value;
5476
5951
  disabled?: boolean;
5477
5952
  description?: string;
5953
+ mock?: MockMap;
5478
5954
  asFilters?: FilterXdo[];
5479
5955
  uncheckedAs?: boolean;
5480
5956
  }) => Statement;
@@ -5484,6 +5960,7 @@ declare const s: {
5484
5960
  password?: Value | null;
5485
5961
  disabled?: boolean;
5486
5962
  description?: string;
5963
+ mock?: MockMap;
5487
5964
  }) => Statement;
5488
5965
  extract: (a: {
5489
5966
  as?: string;
@@ -5491,6 +5968,7 @@ declare const s: {
5491
5968
  password?: Value | null;
5492
5969
  disabled?: boolean;
5493
5970
  description?: string;
5971
+ mock?: MockMap;
5494
5972
  asFilters?: FilterXdo[];
5495
5973
  uncheckedAs?: boolean;
5496
5974
  }) => Statement;
@@ -5500,6 +5978,7 @@ declare const s: {
5500
5978
  password?: Value | null;
5501
5979
  disabled?: boolean;
5502
5980
  description?: string;
5981
+ mock?: MockMap;
5503
5982
  asFilters?: FilterXdo[];
5504
5983
  uncheckedAs?: boolean;
5505
5984
  }) => Statement;
@@ -5599,4 +6078,4 @@ declare function compile(fn: FunctionDef): FunctionXdo;
5599
6078
  */
5600
6079
  declare function ignored(value: Value): Value;
5601
6080
 
5602
- export { type ActionCallArgs, type AddonCallArgs, AddonDef, type AddonSpec, AgentResultOf, type AgentRunResult, AggregateRow, type AiAgentRunArgs, type AnyAddonDef, type AnyFunctionDef, type AnyQueryDef, type AnyTableDef, type ApiCallArgs, type ApiRequestArgs, type ApiRequestResult, AppendBrand, type ApplyFilter, type ApplyFilters, type ArrayMapArgs, type ArrayMapShape, AsShapeBrand, type AuthShape, AuthValue, BodyBrand, BranchesBrand, CatchBrand, CaughtValue, type CloudJobArgs, type CloudJobAwaitArgs, type CloudJobStatusArgs, Comparison, Condition, ConstValue, type CreateAuthTokenArgs, type DbAddArgs, type DbAddOrEditArgs, type DbAggregate, type DbAggregatePaging, type DbBind, type DbBulkAddArgs, type DbBulkDeleteArgs, type DbBulkWriteArgs, type DbDelArgs, type DbDirectQueryArgs, type DbDistinct, type DbEditArgs, DbEval, type DbExpandBind, type DbExternal, type DbExternalPermissions, type DbExternalQueryArgs, type DbField, type DbGetArgs, type DbHasArgs, type DbIncrementArgs, type DbIncrementReturnType, type DbJoin, type DbPaging, type DbPatchArgs, type DbQueryArgs, type DbResponseType, type DbReturnType, type DbSchemaArgs, type DbSortDirective, type DbTableBind, type DbTransactionArgs, type DbTruncateArgs, DbWhere, ElementResult, type ElicitResult, EvalFields, type ExpectToThrowArgs, type ExternalSqlEngine, FilterResults, FilterXdo, FilteredValue, type ForArgs, type ForeachArgs, FoundBrand, type FoundGuardOptions, FromFieldMap, type FunctionCallArgs, FunctionDef, type FunctionRunArgs, FunctionXdo, type GetRawInputArgs, GroupedArrayResult, type HeaderMap, type HeaderOptions, type HttpMethod, type InferInput, type InferResponse, InferRow, InpValue, InputDescriptor, InternalColsOf, type IpLookupArgs, type IpLookupResult, MaybeBodyBrand, type McpElicitArgs, MemberUpdateBrand, type MicroserviceArgs, MicroserviceDef, type MicroserviceHost, type MiddlewareCallArgs, NoExtraKeys, NotObjMember, type ObjInput, type ObjMember, type ObjShape, type ObjValue, ObjectRef, OutputAuthored, OutputPath, OutputRoot, type OwnerGuardOptions, PagingEnvelopeField, PathParams, Prettify, ProtoKeySafe, QualifiedCol, QueryHandle, type RealtimeEventArgs, type RedirectStatus, RefValue, type RoleGuardOptions, type RunBinding, SameArrayResult, SearchGroup, SortDirective, type StackTupleWidened, Statement, StatementAnnotations, StatementOptions, type StreamFromRequestArgs, type SwitchArgs, type SwitchCaseArgs, TableDef, type TaskCallArgs, type ToolCallArgs, type TriggerCallArgs, type TryCatchArgs, Value, type WebflowRequestArgs, type WhileArgs, type WorkflowTestCallArgs, XanoDbLink, XanoFileRef, actionCall, actionPackageCall, addonCall, aiAgentRun, apiCall, arrayMap, arrayUnion, cloudJob, cloudJobAwait, cloudJobStatus, comment, compile, cond, conditional, createAuthToken, dbAdd, dbAddOrEdit, dbBulkAdd, dbBulkDelete, dbBulkPatch, dbBulkUpdate, dbDel, dbDirectQuery, dbEdit, dbExternalQuery, dbGet, dbHas, dbIncrement, dbPatch, dbQuery, dbSchema, dbTransaction, dbTruncate, debugLog, die, every, expectToThrow, fileUrl, fl, forLoop, foreachBreak, foreachContinue, foreachLoop, foreachRemove, functionCall, functionRun, getRawInput, group, guard, ignored, ipLookup, middlewareCall, obj, postProcess, realtimeEvent, respond, returnValue, s, setVar, switchCase, switchStatement, taskCall, toolCall, triggerCall, tryCatch, updateVar, whileLoop, workflowTestCall };
6081
+ export { type ActionCallArgs, type AddonCallArgs, AddonDef, type AddonSpec, AgentResultOf, type AgentRunResult, AggregateRow, type AiAgentRunArgs, type AnyAddonDef, type AnyFunctionDef, type AnyQueryDef, type AnyTableDef, type ApiCallArgs, type ApiRequestArgs, type ApiRequestResult, AppendBrand, type ApplyFilter, type ApplyFilters, type ArrayMapArgs, type ArrayMapShape, AsShapeBrand, type AuthShape, AuthValue, BodyBrand, BranchesBrand, BrandOpts, BrandType, type CallErrorEnvelope, CatchBrand, CaughtValue, type CloudJobArgs, type CloudJobAwaitArgs, type CloudJobStatusArgs, Comparison, Condition, ConstValue, type CreateAuthTokenArgs, type DbAddArgs, type DbAddOrEditArgs, type DbAggregate, type DbAggregatePaging, type DbBind, type DbBulkAddArgs, type DbBulkDeleteArgs, type DbBulkWriteArgs, type DbDelArgs, type DbDirectQueryArgs, type DbDistinct, type DbEditArgs, DbEval, type DbExpandBind, type DbExternal, type DbExternalPermissions, type DbExternalQueryArgs, type DbField, type DbGetArgs, type DbHasArgs, type DbIncrementArgs, type DbIncrementReturnType, type DbJoin, type DbPaging, type DbPatchArgs, type DbQueryArgs, type DbResponseType, type DbReturnType, type DbSchemaArgs, type DbSortDirective, type DbTableBind, type DbTransactionArgs, type DbTruncateArgs, DbWhere, ElementResult, type ElicitResult, type ExpectToThrowArgs, type ExternalSqlEngine, FilterResults, FilterXdo, FilteredValue, type ForArgs, type ForeachArgs, FoundBrand, type FoundGuardOptions, FromFieldMap, type FunctionCallArgs, FunctionDef, type FunctionRunArgs, FunctionXdo, type GetRawInputArgs, GroupedArrayResult, type HeaderMap, type HeaderOptions, type HttpMethod, type InferInput, type InferResponse, InferRow, InpValue, InputDescriptor, InternalColsOf, type IpLookupArgs, type IpLookupResult, MaybeBodyBrand, type McpElicitArgs, MemberUpdateBrand, type MicroserviceArgs, MicroserviceDef, type MicroserviceHost, type MiddlewareCallArgs, MockMap, NoExtraKeys, NotObjMember, type ObjInput, type ObjMember, type ObjShape, type ObjValue, ObjectRef, OutputAuthored, OutputPath, OutputRoot, type OwnerGuardOptions, PagingEnvelopeField, PathParams, Prettify, ProtoKeySafe, QualifiedCol, QueryHandle, type RealtimeEventArgs, type RedirectStatus, RefValue, type RoleGuardOptions, type RunBinding, SameArrayResult, SearchGroup, SortDirective, type StackTupleWidened, Statement, StatementAnnotations, StatementOptions, type StreamFromRequestArgs, type SwitchArgs, type SwitchCaseArgs, TableDef, type TaskCallArgs, type ToolCallArgs, type TriggerCallArgs, type TryCatchArgs, Value, type WebflowRequestArgs, type WhileArgs, type WorkflowTestCallArgs, XanoDbLink, XanoFileRef, actionCall, actionPackageCall, addonCall, aiAgentRun, apiCall, arrayMap, arrayUnion, cloudJob, cloudJobAwait, cloudJobStatus, comment, compile, cond, conditional, createAuthToken, dbAdd, dbAddOrEdit, dbBulkAdd, dbBulkDelete, dbBulkPatch, dbBulkUpdate, dbDel, dbDirectQuery, dbEdit, dbExternalQuery, dbGet, dbHas, dbIncrement, dbPatch, dbQuery, dbSchema, dbTransaction, dbTruncate, debugLog, die, every, expectToThrow, fileUrl, fl, forLoop, foreachBreak, foreachContinue, foreachLoop, foreachRemove, functionCall, functionRun, getRawInput, group, guard, ignored, ipLookup, middlewareCall, obj, postProcess, realtimeEvent, respond, returnValue, s, setVar, switchCase, switchStatement, taskCall, toolCall, triggerCall, tryCatch, updateVar, whileLoop, workflowTestCall };