@xano/sdk 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +33 -37
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-3J6YRVFL.js → agent-file-refresh-DBHTEFYM.js} +12 -12
- package/dist/{agent-skill-command-VWDMQWCT.js → agent-skill-command-LHNTU7MH.js} +74 -73
- package/dist/{answer-shape-AVZSKBR6.js → answer-shape-ZRQS7ZC4.js} +5 -5
- package/dist/{backend-dir-ISP7RVF2.js → backend-dir-AXR43HNV.js} +11 -11
- package/dist/{backend-slot-DZAUHLTS.js → backend-slot-7BATLL3X.js} +4 -4
- package/dist/bin.js +64 -63
- package/dist/{branch-IJTBZZFO.js → branch-SJKKUCMZ.js} +9 -9
- package/dist/branch-commands-KGR52SZU.js +80 -0
- package/dist/bundle.d.ts +2 -2
- package/dist/bundle.js +15 -69
- package/dist/{capture-GW5KNKMB.js → capture-RYBJE25P.js} +5 -5
- package/dist/{chunk-Z3DQ7ULY.js → chunk-23GEFHRX.js} +236 -17
- package/dist/{chunk-3H7R4ISR.js → chunk-2DUYJR5N.js} +2 -2
- package/dist/{chunk-MFWF2NZJ.js → chunk-2H5BQRHF.js} +2 -2
- package/dist/{chunk-O44MJTLR.js → chunk-35SI4GBM.js} +3 -3
- package/dist/{chunk-QKHNJ7LE.js → chunk-3ZV23FVR.js} +5 -5
- package/dist/{chunk-HKI5Y5KW.js → chunk-47XIVDJ6.js} +14 -14
- package/dist/{chunk-ICK36EGF.js → chunk-4EVDCSEY.js} +2 -2
- package/dist/{chunk-FBSGFPZ4.js → chunk-4XGZ325S.js} +3 -3
- package/dist/{chunk-EYVIUX2T.js → chunk-4XYXUK5H.js} +76 -33
- package/dist/{chunk-MAXDJZQR.js → chunk-4ZBXS7YN.js} +8 -8
- package/dist/{chunk-ZMJRAMLA.js → chunk-52QAENY6.js} +14 -14
- package/dist/{chunk-2LF734YB.js → chunk-54CJ74BH.js} +4 -4
- package/dist/{chunk-3SZ7QRYA.js → chunk-57PGTPT3.js} +8 -8
- package/dist/{chunk-IKXXTRMN.js → chunk-64UVVLDT.js} +4 -4
- package/dist/{chunk-EQXHUWUO.js → chunk-6FCAFWD5.js} +2 -2
- package/dist/{chunk-4MX5LMPQ.js → chunk-6ODQ5GDZ.js} +2 -2
- package/dist/{chunk-HK554MDD.js → chunk-74YCPI4G.js} +7 -7
- package/dist/{chunk-Y5XAPLZS.js → chunk-7UQZ7C4W.js} +4 -4
- package/dist/{chunk-CJDPSCMX.js → chunk-7ZVQIKNL.js} +3 -3
- package/dist/{chunk-RVAEPPRH.js → chunk-AICWDCLJ.js} +2 -2
- package/dist/{chunk-WS4BA75E.js → chunk-AJBOGO5U.js} +4 -4
- package/dist/{chunk-2FDHIBEU.js → chunk-AJQFUJEQ.js} +8 -8
- package/dist/{chunk-2KOB4QPW.js → chunk-C7AYP4H6.js} +29 -20
- package/dist/{chunk-XCFQLP6G.js → chunk-DJMGDCVX.js} +8 -8
- package/dist/{chunk-VBSCWV5H.js → chunk-DLD4FVRP.js} +54 -54
- package/dist/{chunk-Q7DGTQ5G.js → chunk-E34VGSCI.js} +2 -1
- package/dist/{chunk-YR3MNGWZ.js → chunk-E5M5P23K.js} +8 -8
- package/dist/{chunk-HJZUI2ZU.js → chunk-EAZTRU75.js} +2 -2
- package/dist/{chunk-QX5XQEYB.js → chunk-EINZSVEU.js} +5 -5
- package/dist/{chunk-KMKUH2IO.js → chunk-EPB6FAR5.js} +5 -5
- package/dist/chunk-EUAU4QKI.js +67 -0
- package/dist/{chunk-IDOVZLPK.js → chunk-EXJ4Q5F6.js} +2 -2
- package/dist/{chunk-IHL2O7VY.js → chunk-F3JK5RIY.js} +3 -2
- package/dist/{chunk-W2QFR3ZJ.js → chunk-FIOC7RSU.js} +2 -2
- package/dist/{chunk-YEH5OIPF.js → chunk-FMXPV5JI.js} +39 -11
- package/dist/{chunk-GVHWIDEJ.js → chunk-FRJB3NTE.js} +10 -5
- package/dist/{chunk-VIRFG3WG.js → chunk-FTFAPKCW.js} +23 -7
- package/dist/{chunk-LL6ED5IB.js → chunk-FTS42N37.js} +2 -2
- package/dist/{chunk-MIS6F4HM.js → chunk-G2XSDIYS.js} +4 -4
- package/dist/{chunk-ZY55DO5P.js → chunk-G6BEJ3NA.js} +2 -2
- package/dist/{chunk-RYWNNJK5.js → chunk-GA6HTO3O.js} +2 -2
- package/dist/{chunk-JIKGT7DO.js → chunk-GE3JV5SI.js} +1 -1
- package/dist/{chunk-GCINMMFL.js → chunk-GJZMKMWO.js} +2 -2
- package/dist/{chunk-LW7TOIS7.js → chunk-GRZ62LLU.js} +8 -8
- package/dist/{chunk-6X73VFCX.js → chunk-GT7PZCTK.js} +2 -2
- package/dist/{chunk-HINRE3UM.js → chunk-HXPQXCOZ.js} +1821 -506
- package/dist/{chunk-ECQXASG3.js → chunk-IFHFJR5O.js} +2 -2
- package/dist/{chunk-P4OWRYE7.js → chunk-IOWNQEMW.js} +31 -31
- package/dist/{chunk-SUKO4SZG.js → chunk-ISIZFK5Q.js} +53 -47
- package/dist/{chunk-QJ25N4W6.js → chunk-IUJDUFT7.js} +4 -4
- package/dist/{chunk-L34DM6QB.js → chunk-JHAZK4RY.js} +3 -3
- package/dist/{chunk-YL3WVBR5.js → chunk-KGHJ74HF.js} +6 -6
- package/dist/{chunk-NUZXSIEA.js → chunk-L2O5KG5Q.js} +6 -6
- package/dist/{chunk-L4WG4BKJ.js → chunk-L3Q2QYIQ.js} +72 -72
- package/dist/{chunk-SAEIVQLP.js → chunk-LLBEPJBO.js} +3 -3
- package/dist/{chunk-NOW522B4.js → chunk-LWBGPPI5.js} +13 -13
- package/dist/{chunk-GOKRKTCX.js → chunk-MBSHONP3.js} +3 -3
- package/dist/{chunk-GKQTXUOW.js → chunk-MOVRSULZ.js} +2 -2
- package/dist/{chunk-QAEBBTYR.js → chunk-MSYMEP7Y.js} +7 -7
- package/dist/{chunk-Y453TW6J.js → chunk-NCERS5QH.js} +2 -2
- package/dist/{chunk-HXFLHA5K.js → chunk-NH5Z2NOD.js} +2 -2
- package/dist/{chunk-T3HNISBN.js → chunk-NJVY3GAX.js} +3 -3
- package/dist/{chunk-J62TYONQ.js → chunk-NQPPUNWP.js} +3 -3
- package/dist/{chunk-LJZIBT75.js → chunk-O7Z3LF44.js} +5 -5
- package/dist/{chunk-B7CPSWQX.js → chunk-OLXYZQR7.js} +7 -7
- package/dist/{chunk-7F3V6CFP.js → chunk-OQNYZ2OM.js} +3 -3
- package/dist/{chunk-DBDTQR23.js → chunk-OTQF4B37.js} +4 -4
- package/dist/{chunk-GBSHHNSD.js → chunk-PRSNMSVG.js} +3 -3
- package/dist/{chunk-DGYXCIBV.js → chunk-Q6AKSLD2.js} +2 -2
- package/dist/{chunk-YTQYP7UJ.js → chunk-Q7KXMIR3.js} +3 -3
- package/dist/{chunk-IWJ6GFST.js → chunk-QCVH32T2.js} +5 -5
- package/dist/{chunk-7FIMUFBP.js → chunk-QDPY7RN3.js} +3 -3
- package/dist/{chunk-DLDYQNGP.js → chunk-QIT2GGNB.js} +3 -3
- package/dist/{chunk-J3XLCYTQ.js → chunk-QSJH5AFU.js} +244 -173
- package/dist/{chunk-DERQSEB5.js → chunk-R7DS2TRZ.js} +38 -22
- package/dist/{chunk-BEKEOXNG.js → chunk-RGPHFHJU.js} +2 -2
- package/dist/{chunk-5FJ4M4HB.js → chunk-RHH6SCB4.js} +17 -32
- package/dist/{chunk-Z4BQPABS.js → chunk-RIT3WBBX.js} +4 -4
- package/dist/{chunk-45K2QZBR.js → chunk-RKNCISPM.js} +3 -3
- package/dist/{chunk-6LJS4M6P.js → chunk-RKTVXFBV.js} +5 -5
- package/dist/{chunk-AXNX4NWN.js → chunk-RLQX6LHW.js} +37 -37
- package/dist/{chunk-FIERONKM.js → chunk-ROWYW3JF.js} +2 -2
- package/dist/{chunk-LSJ3SQEU.js → chunk-RVWWNNZQ.js} +4 -4
- package/dist/{chunk-LPQZICYN.js → chunk-S7MVI4W7.js} +7 -7
- package/dist/{chunk-4MIV244X.js → chunk-SGEOXJIH.js} +9 -2
- package/dist/{chunk-QRMKQYCB.js → chunk-SINL5WMI.js} +2 -2
- package/dist/{chunk-Z6N5N4MN.js → chunk-SIW2HT2H.js} +21 -5
- package/dist/{chunk-IEDQT4Z3.js → chunk-SOAZIMWL.js} +12 -12
- package/dist/{chunk-RPBB7P4Q.js → chunk-SVQMDVND.js} +87 -16
- package/dist/{chunk-45ZUMF4E.js → chunk-TPUAXIPR.js} +2 -2
- package/dist/{chunk-HMYJOQXT.js → chunk-TXU34ELY.js} +25 -25
- package/dist/{chunk-MTBKTGZT.js → chunk-U4UAWGIT.js} +12 -8
- package/dist/{chunk-76SBT7KS.js → chunk-U56HK2RG.js} +7 -5
- package/dist/{chunk-RV2BDU7V.js → chunk-UDW2KAVF.js} +6 -6
- package/dist/{chunk-NDV6CBR7.js → chunk-UH5VQGNR.js} +2 -2
- package/dist/{chunk-75QC66XI.js → chunk-V2MIBJZU.js} +2 -2
- package/dist/{chunk-RDZBXTZ3.js → chunk-VAQPQXOI.js} +4 -4
- package/dist/{chunk-XPSDDTUZ.js → chunk-VCFRALU7.js} +3 -3
- package/dist/{chunk-5KJBWIDZ.js → chunk-VQDVEHDB.js} +2 -2
- package/dist/{chunk-6ILHYSLR.js → chunk-WAP5362D.js} +5 -5
- package/dist/{chunk-XY4OBD26.js → chunk-WGKKDGSA.js} +4 -4
- package/dist/{chunk-UQ2OD7D4.js → chunk-WVVUE7LU.js} +14 -7
- package/dist/{chunk-LB76VK6D.js → chunk-WXQ7BHVQ.js} +7 -7
- package/dist/{chunk-7REDHC4N.js → chunk-X5NF3ZXW.js} +69 -14
- package/dist/{chunk-5W7S2SCA.js → chunk-XAE4NIZ2.js} +4 -4
- package/dist/{chunk-SPLRKCFV.js → chunk-XDGLYIB2.js} +2 -2
- package/dist/{chunk-BSGU4HS6.js → chunk-XKMZYU5B.js} +96 -65
- package/dist/{chunk-OLQN4Z5R.js → chunk-Y3RH35KM.js} +47 -47
- package/dist/{chunk-YFQCDLCQ.js → chunk-YHT7TDSH.js} +14 -14
- package/dist/{chunk-KDEU5FUJ.js → chunk-YJXJOMXW.js} +3 -3
- package/dist/{chunk-N6LGLNAC.js → chunk-YPLHVRMS.js} +4 -4
- package/dist/{chunk-WS2X5BB2.js → chunk-YYBBJPCL.js} +5 -5
- package/dist/{chunk-ZOHEHIFS.js → chunk-YYDM4DNP.js} +2 -2
- package/dist/{chunk-MYIIBV6A.js → chunk-ZF4LCHCT.js} +5 -5
- package/dist/{chunk-GRXX2TOJ.js → chunk-ZHFSIQ6E.js} +2 -2
- package/dist/{chunk-CB67GIR3.js → chunk-ZJQFKBX7.js} +7 -7
- package/dist/{chunk-ZRXDPCMN.js → chunk-ZYZ7GRX3.js} +2 -2
- package/dist/{chunk-5TWLVFYB.js → chunk-ZZC5VSLP.js} +4 -4
- package/dist/cli.d.ts +3 -3
- package/dist/cli.js +62 -61
- package/dist/codegen-command-NAY6YAOD.js +183 -0
- package/dist/codegen.d.ts +3 -3
- package/dist/codegen.js +5 -5
- package/dist/{commands-5ILSWDSV.js → commands-Z2QZOORB.js} +3 -3
- package/dist/{completion-UNKBVVDT.js → completion-LFXXNQGR.js} +3 -3
- package/dist/{config-NTOASFCA.js → config-7GGINOFY.js} +4 -4
- package/dist/{deploy-command-WESYWFJN.js → deploy-command-PBM3S4ZL.js} +69 -68
- package/dist/{deploy-source-ZQQNMDFX.js → deploy-source-JW7DAN75.js} +32 -32
- package/dist/{dev-env-sync-4XJT7WOT.js → dev-env-sync-FHJTFH3V.js} +63 -62
- package/dist/{diagnostics-FNVNRYMB.js → diagnostics-T3RN3372.js} +2 -2
- package/dist/{display-name-hint-MYXCCAOP.js → display-name-hint-5GLJGPQ6.js} +11 -11
- package/dist/{emit-YLt3GfsZ.d.ts → emit-t-gDE1BL.d.ts} +181 -93
- package/dist/env-example-refresh-HHEGMFNH.js +136 -0
- package/dist/{env-pull-command-SK5FS477.js → env-pull-command-FFPNRVWD.js} +52 -52
- package/dist/{env-target-TEFSYACA.js → env-target-XHVRZXHX.js} +14 -14
- package/dist/{env-var-command-IJHKA2WJ.js → env-var-command-DJS62YRR.js} +41 -41
- package/dist/{ephemeral-VLPRDNEJ.js → ephemeral-2DXWP3VK.js} +9 -9
- package/dist/{ephemeral-command-WCO5J4SN.js → ephemeral-command-VLQIQ5TS.js} +52 -52
- package/dist/{ephemeral-state-RUOU2GFS.js → ephemeral-state-56XEDUJW.js} +12 -12
- package/dist/{generate-command-3WCOUOEQ.js → generate-command-PSDIIOTU.js} +89 -88
- package/dist/{gitignore-WYS3GMOX.js → gitignore-PMJ6MFNA.js} +15 -15
- package/dist/{guards-PPIBIMFZ.js → guards-YICHJKX3.js} +51 -15
- package/dist/{impersonate-command-UMYVQTCG.js → impersonate-command-IKV4KUYA.js} +37 -37
- package/dist/{import-T4ZTOTBT.js → import-VJQGIS33.js} +5 -5
- package/dist/index.d.ts +653 -222
- package/dist/index.js +29 -28
- package/dist/init-command-LEQIE6GC.js +143 -0
- package/dist/{init-modules-7KALFI5C.js → init-modules-G47Q7ABV.js} +8 -8
- package/dist/{init-web-DYE2FEXL.js → init-web-25QJ4JWB.js} +3 -3
- package/dist/internal.d.ts +55 -8
- package/dist/internal.js +692 -503
- package/dist/{io-PGTCBSIQ.js → io-47TFRYDB.js} +6 -6
- package/dist/{keep-data-merge-OVHCIEBG.js → keep-data-merge-XCPCX7BZ.js} +38 -38
- package/dist/{lambda-config-reconcile-VOBVZPWS.js → lambda-config-reconcile-CC5QIP6E.js} +3 -3
- package/dist/{landed-F7PCHGCK.js → landed-VIUFHLCJ.js} +5 -5
- package/dist/{landing-record-AIHNW4AZ.js → landing-record-JQ7HZDGI.js} +22 -22
- package/dist/{live-diff-UMSOGPX3.js → live-diff-KJ2TWWWT.js} +14 -14
- package/dist/{local-engine-choice-XDGTATKJ.js → local-engine-choice-DFAMYOIF.js} +35 -35
- package/dist/{local-engine-command-VQWNQ7UK.js → local-engine-command-5RP2J5QZ.js} +40 -40
- package/dist/{local-engine-deploy-4N4NFZ4T.js → local-engine-deploy-XAEDT55W.js} +12 -12
- package/dist/{local-engine-lookup-AQTUGSBT.js → local-engine-lookup-WBYTY2JE.js} +2 -2
- package/dist/{local-engine-mcp-bridge-AMYRH4SY.js → local-engine-mcp-bridge-3H5OXBWQ.js} +5 -5
- package/dist/{local-engine-mcp-command-AIMNMXQG.js → local-engine-mcp-command-JSYVVZKK.js} +42 -42
- package/dist/{local-engine-process-OD5OSWDG.js → local-engine-process-35B2KQED.js} +7 -7
- package/dist/{local-engine-update-check-G3YCBXRE.js → local-engine-update-check-VXJZSIJU.js} +5 -5
- package/dist/{lock-HDCHD2ON.js → lock-JBKTDEDO.js} +4 -4
- package/dist/{lock-commands-H3YV2D6M.js → lock-commands-7VO6YWOV.js} +67 -66
- package/dist/{login-command-NMM3JNDZ.js → login-command-WTZUBCW6.js} +27 -27
- package/dist/{logout-command-7DYC6G32.js → logout-command-5BJUNK3C.js} +17 -17
- package/dist/{loop-DJNIHC7O.js → loop-HILLODVH.js} +15 -15
- package/dist/{marketplace-command-UCSHDZGO.js → marketplace-command-NMOH4XOV.js} +30 -30
- package/dist/{marketplace-resolve-JR4BBJ6K.js → marketplace-resolve-63QWMQZU.js} +6 -6
- package/dist/{meta-client-CD3TXQP6.js → meta-client-MRAMWUKV.js} +15 -15
- package/dist/{module-manifest-63I5GRK4.js → module-manifest-NWJWAQLQ.js} +4 -4
- package/dist/node.d.ts +8 -8
- package/dist/node.js +71 -70
- package/dist/{operation-outcome-2ONIIDRU.js → operation-outcome-WK7UW6PJ.js} +24 -24
- package/dist/{output-target-67LHZKCO.js → output-target-5PYRCCK4.js} +16 -16
- package/dist/{plan-disclosure-T7DF4SRJ.js → plan-disclosure-6MG4YYJV.js} +28 -28
- package/dist/{plugin-contributions-YYEP7IWH.js → plugin-contributions-DD6R6RL6.js} +5 -5
- package/dist/{plugin-prompt-GKCQKNYI.js → plugin-prompt-UX2TT5NS.js} +5 -5
- package/dist/{plugin-questions-P7MA3TYI.js → plugin-questions-WE2F4ZC4.js} +4 -4
- package/dist/{preflight-command-TJ7FURXB.js → preflight-command-3BX2WW3S.js} +75 -74
- package/dist/{profile-command-LDPLTJEJ.js → profile-command-GSUX3UMB.js} +28 -28
- package/dist/{profile-pointer-JJ7K5O2R.js → profile-pointer-RCPHVTJV.js} +4 -4
- package/dist/{project-dependency-X3KCWBK5.js → project-dependency-TPVV3YIX.js} +7 -7
- package/dist/{project-sdk-YHJZRCNB.js → project-sdk-DKZBK5H5.js} +4 -4
- package/dist/promote-command-3LQTXWCD.js +149 -0
- package/dist/{prompt-QNMJIWNI.js → prompt-OYQHQWKI.js} +4 -4
- package/dist/{publish-command-IIRN6NWN.js → publish-command-3BQCV4NE.js} +72 -71
- package/dist/pull-command-B7OVWTZD.js +171 -0
- package/dist/{pull-superseded-6HADGGC5.js → pull-superseded-3SSM3JFT.js} +4 -4
- package/dist/{raw-where-gWGr-E4t.d.ts → raw-where-CinW0keO.d.ts} +32 -4
- package/dist/release-command-XSDICMJE.js +153 -0
- package/dist/{release-ns-command-YLCQPVH3.js → release-ns-command-EVAHK4CU.js} +96 -95
- package/dist/{retry-command-LFZYEVRU.js → retry-command-WP4ZI6CJ.js} +8 -8
- package/dist/{routes-manifest-R3TQRB24.js → routes-manifest-N73THJB3.js} +16 -16
- package/dist/routes-manifest-file-LDUDIVFJ.js +41 -0
- package/dist/scaffold.js +2 -2
- package/dist/{secrets-file-PCNAFXNV.js → secrets-file-7XWR7HW3.js} +15 -15
- package/dist/{secrets-fill-command-G7NQMRXU.js → secrets-fill-command-NKCGC75L.js} +66 -65
- package/dist/{seed-4CD55LB4.js → seed-YKTZDS2Q.js} +13 -13
- package/dist/{source-resolve-U4SJR7ZA.js → source-resolve-CQGDFQQC.js} +22 -22
- package/dist/{static-host-MO4VDHL7.js → static-host-3HPZKVKK.js} +5 -5
- package/dist/{status-command-CD72PXIT.js → status-command-TBMQ3GJP.js} +38 -38
- package/dist/{store-AJX4MC7Y.js → store-B63BQV6R.js} +6 -6
- package/dist/{store-BM7SQcUt.d.ts → store-in7gSpMS.d.ts} +297 -129
- package/dist/sync-baseline-GRS33AB5.js +38 -0
- package/dist/{sync-contributions-XK6LHISZ.js → sync-contributions-RKPLZPPO.js} +9 -9
- package/dist/{sync-record-NE62ERA3.js → sync-record-AWFCSS4D.js} +15 -15
- package/dist/{table-WPRAM4VW.js → table-ONGT3JGE.js} +12 -12
- package/dist/{tables-command-NMTKR52H.js → tables-command-UYQ277TJ.js} +41 -41
- package/dist/{tenant-IIYECNWO.js → tenant-IXIW3FOI.js} +10 -10
- package/dist/{tenant-command-XQAWT46C.js → tenant-command-7LWZUK2V.js} +104 -103
- package/dist/{test-command-W4AD4KT4.js → test-command-7KTT5EAF.js} +56 -45
- package/dist/{tests-JWQRHFCT.js → tests-N4MMBABH.js} +6 -6
- package/dist/{token-P3VQ6ITJ.js → token-3TCMW2AP.js} +13 -13
- package/dist/{toolchain-hooks-UAJBPSTC.js → toolchain-hooks-IJWV3ZQS.js} +18 -18
- package/dist/{toolchain-modules-S3MPHCUI.js → toolchain-modules-PBVBCPQJ.js} +5 -5
- package/dist/{toolchain-peers-FQJBTKEB.js → toolchain-peers-EMOYN4U7.js} +8 -8
- package/dist/{tracked-backend-WWEPNUD5.js → tracked-backend-YDUUQZQF.js} +34 -34
- package/dist/update-check-C6KDFGMT.js +141 -0
- package/dist/{upgrade-command-J6LRNHYF.js → upgrade-command-ZSBTSMBR.js} +68 -67
- package/dist/{whoami-command-KWRP2CII.js → whoami-command-L6ERHR5K.js} +16 -16
- package/dist/{workspace-3YNK4XO4.js → workspace-5DPSDM4A.js} +5 -5
- package/dist/{workspace-binding-TTDNXHO5.js → workspace-binding-MVOWGNYW.js} +15 -15
- package/dist/{workspace-command-W4ANGLCZ.js → workspace-command-PKQ5TDR7.js} +100 -99
- package/dist/{workspace-env-6LJGCTZA.js → workspace-env-UZJZUIYV.js} +18 -12
- package/dist/{workspace-export-PUEXKZNS.js → workspace-export-3KMWNZDD.js} +5 -5
- package/dist/{writable-LMMG4AFZ.js → writable-X7BCN7XE.js} +4 -4
- package/dist/xano-YB6Y2IJS.js +44 -0
- package/dist/{xanosdk-import-PNNMZ4SF.js → xanosdk-import-HHMQDK2I.js} +10 -10
- package/dist/{xanosdk-project-YW3BQY2E.js → xanosdk-project-CKEUNJU4.js} +13 -13
- package/dist/{xdo-D4OwfF2J.d.ts → xdo-DNGZGO1j.d.ts} +50 -12
- package/guides/authoring.md +1 -0
- package/guides/codes.md +33 -3
- package/guides/coverage.md +2 -2
- package/guides/object-kinds.md +1 -1
- package/guides/typed-frontend.md +9 -0
- package/llms/client.md +54 -36
- package/llms/errors.md +26 -6
- package/llms/fields.md +53 -30
- package/llms/filters.md +55 -46
- package/llms/kinds-agent-mcp.md +10 -9
- package/llms/kinds-core.md +19 -15
- package/llms/kinds-knowledge.md +4 -4
- package/llms/kinds-realtime.md +25 -23
- package/llms/lambda.md +42 -30
- package/llms/legacy.md +6 -7
- package/llms/lock.md +21 -17
- package/llms/object-kinds.md +9 -11
- package/llms/statements-calls.md +41 -20
- package/llms/statements-catalog.md +78 -71
- package/llms/statements-data.md +35 -25
- package/llms/statements-runtime.md +28 -18
- package/llms/tests.md +20 -7
- package/llms/toolchain.md +12 -9
- package/llms/triggers.md +14 -18
- package/llms/values.md +16 -9
- package/llms-full.txt +689 -549
- package/llms.txt +120 -137
- package/manifest.json +228 -246
- package/package.json +1 -1
- package/skills/xano-backend/SKILL.md +10 -12
- package/types/lambda-globals.d.ts +6 -1
- package/dist/branch-commands-75IYFTBS.js +0 -80
- package/dist/codegen-command-JWOW6HE5.js +0 -182
- package/dist/env-example-refresh-4V2OCDJE.js +0 -135
- package/dist/init-command-UR5MSXIH.js +0 -142
- package/dist/promote-command-RURHOLNR.js +0 -148
- package/dist/pull-command-ITO76ENU.js +0 -170
- package/dist/release-command-CVGIUD4M.js +0 -152
- package/dist/routes-manifest-file-GYNYFKAH.js +0 -41
- package/dist/sync-baseline-BJDKG4F2.js +0 -38
- package/dist/update-check-O7QC5TBB.js +0 -140
- package/dist/xano-Z3SRHYOR.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,
|
|
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-
|
|
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-
|
|
4
|
-
export {
|
|
5
|
-
import { V as Value, N as NotObjMember, i as FilterXdo, j as FilteredValue, A as AuthValue, b as CaughtValue,
|
|
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
|
|
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-
|
|
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-
|
|
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-t-gDE1BL.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-t-gDE1BL.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-in7gSpMS.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-in7gSpMS.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
|
-
/**
|
|
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.
|
|
@@ -594,9 +647,9 @@ interface ExpectToThrowArgs extends StatementAnnotations {
|
|
|
594
647
|
declare function expectToThrow(a: ExpectToThrowArgs): Statement;
|
|
595
648
|
interface ExpectToMatchArgs extends StatementAnnotations {
|
|
596
649
|
/** The value under test — the SUBJECT the pattern is matched against. */
|
|
597
|
-
expr
|
|
650
|
+
expr: Value;
|
|
598
651
|
/** The regex PATTERN. Build it with `c.regex(...)`, not `c.text(...)`. */
|
|
599
|
-
value
|
|
652
|
+
value: Value;
|
|
600
653
|
}
|
|
601
654
|
/**
|
|
602
655
|
* `expect.to_match` — assert a value matches a regex (`mvp:test_expect_to_match`).
|
|
@@ -616,7 +669,7 @@ interface ExpectToMatchArgs extends StatementAnnotations {
|
|
|
616
669
|
* `c.regex`, while a `ref`/`inp`/`env` pattern — whose text is not visible here —
|
|
617
670
|
* is passed through untouched.
|
|
618
671
|
*/
|
|
619
|
-
declare function expectToMatch(a
|
|
672
|
+
declare function expectToMatch(a: ExpectToMatchArgs): Statement;
|
|
620
673
|
|
|
621
674
|
/**
|
|
622
675
|
* `setVar` / `updateVar` statements — the `!var` family. Both carry
|
|
@@ -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`,
|
|
865
|
-
*
|
|
866
|
-
* `keyof (Row | null)` narrows to `never` and every dotted ref into a
|
|
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}` ?
|
|
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
|
|
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
|
|
986
|
-
*
|
|
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;
|
|
@@ -1173,9 +1273,11 @@ declare const cond: {
|
|
|
1173
1273
|
readonly between: (value: Value, lo: Value, hi: Value) => SearchGroup;
|
|
1174
1274
|
/**
|
|
1175
1275
|
* The object at `value` has something at `path` — the engine's `has` filter,
|
|
1176
|
-
* whose argument is a dotted path
|
|
1276
|
+
* whose argument is a dotted path, not a runtime value. Pass it as a bare
|
|
1277
|
+
* string (`cond.has(inp("blob"), "address.city")`); it is wrapped as `c.text`
|
|
1278
|
+
* for you. A `Value` is still accepted for a computed path.
|
|
1177
1279
|
*/
|
|
1178
|
-
readonly has: (value: Value, path: Value) => Comparison;
|
|
1280
|
+
readonly has: (value: Value, path: string | Value) => Comparison;
|
|
1179
1281
|
/**
|
|
1180
1282
|
* `value` (an array or object) has exactly `n` entries.
|
|
1181
1283
|
*
|
|
@@ -1275,7 +1377,7 @@ interface AddonSpec<Graft = unknown> {
|
|
|
1275
1377
|
* wrapper coerces to a `Value` and delegates to the generated factory, whose
|
|
1276
1378
|
* spec carries the same set and rejects a constant outside it.
|
|
1277
1379
|
*/
|
|
1278
|
-
type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "PATCH";
|
|
1380
|
+
type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "PATCH" | "QUERY";
|
|
1279
1381
|
/** A headers map: full header lines built from `Name: value` pairs. */
|
|
1280
1382
|
type HeaderMap = Readonly<Record<string, string | Value>>;
|
|
1281
1383
|
/**
|
|
@@ -1394,11 +1496,20 @@ type NarrowGraft<G, O extends readonly string[]> = IsUnknown<G> extends true ? u
|
|
|
1394
1496
|
* attachment-level `output` further restricts the graft to those columns
|
|
1395
1497
|
* ({@link NarrowGraft}).
|
|
1396
1498
|
*/
|
|
1397
|
-
type GraftOf<H> = H extends {
|
|
1499
|
+
type GraftOf<H> = WithChildren<H extends {
|
|
1398
1500
|
addon: AddonDef<infer G>;
|
|
1399
1501
|
} ? H extends {
|
|
1400
1502
|
output: infer O extends readonly string[];
|
|
1401
|
-
} ? NarrowGraft<G, O> : G : unknown
|
|
1503
|
+
} ? NarrowGraft<G, O> : G : unknown, H extends {
|
|
1504
|
+
children: infer Ch;
|
|
1505
|
+
} ? Ch : readonly []>;
|
|
1506
|
+
/**
|
|
1507
|
+
* A graft with its nested `children` addons merged in. A child grafts onto
|
|
1508
|
+
* each ELEMENT of its parent's result (`_items[]._product`), with its own
|
|
1509
|
+
* cardinality, recursively. Distributes over a single graft's `| undefined`,
|
|
1510
|
+
* and leaves an `unknown` graft alone: there is no shape to add keys to.
|
|
1511
|
+
*/
|
|
1512
|
+
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
1513
|
/**
|
|
1403
1514
|
* The keys a set of attached addons graft onto each returned row. Each addon's
|
|
1404
1515
|
* alias (the last segment of its `as`) becomes a key valued by {@link GraftOf}.
|
|
@@ -1408,22 +1519,30 @@ type GraftOf<H> = H extends {
|
|
|
1408
1519
|
* so `as:"items._book"` puts `_book` inside each `items[]` element = each row;
|
|
1409
1520
|
* without paging `as:"_book"` puts it on each bare row. Both reduce to "the row
|
|
1410
1521
|
* gains the alias key". Nested `children` addons enrich the addon's own result
|
|
1411
|
-
* (under the alias), so they add no parent-visible keys.
|
|
1522
|
+
* (under the alias, see {@link WithChildren}), so they add no parent-visible keys.
|
|
1412
1523
|
*/
|
|
1413
1524
|
type AddonFields<A> = A extends readonly [infer H, ...infer Rest] ? (H extends {
|
|
1414
1525
|
envelope: true;
|
|
1415
1526
|
} ? object : H extends {
|
|
1416
1527
|
as: infer S extends string;
|
|
1417
|
-
} ?
|
|
1418
|
-
|
|
1419
|
-
|
|
1528
|
+
} ? GraftKey<AddonAlias<S>, GraftOf<H>> : object) & AddonFields<Rest> : object;
|
|
1529
|
+
/**
|
|
1530
|
+
* One alias key valued by its graft. A `single` graft carries `undefined`
|
|
1531
|
+
* (see `AddonGraft`): the engine leaves the alias OUT of the row when no row
|
|
1532
|
+
* matches, rather than writing `null`, so the key is optional.
|
|
1533
|
+
*/
|
|
1534
|
+
type GraftKey<K extends string, G> = IsUnknown<G> extends true ? {
|
|
1535
|
+
[P in K]: G;
|
|
1536
|
+
} : undefined extends G ? {
|
|
1537
|
+
[P in K]?: Exclude<G, undefined>;
|
|
1538
|
+
} : {
|
|
1539
|
+
[P in K]: G;
|
|
1540
|
+
};
|
|
1420
1541
|
/** The keys `envelope: true` addons graft onto a query's paging envelope (see {@link AddonSpec.envelope}). */
|
|
1421
1542
|
type EnvelopeAddonFields<A> = A extends readonly [infer H, ...infer Rest] ? (H extends {
|
|
1422
1543
|
envelope: true;
|
|
1423
1544
|
as: infer S extends string;
|
|
1424
|
-
} ?
|
|
1425
|
-
[K in AddonAlias<S>]: GraftOf<H>;
|
|
1426
|
-
} : object) & EnvelopeAddonFields<Rest> : object;
|
|
1545
|
+
} ? GraftKey<AddonAlias<S>, GraftOf<H>> : object) & EnvelopeAddonFields<Rest> : object;
|
|
1427
1546
|
/**
|
|
1428
1547
|
* A row shape augmented with any addon-grafted alias keys. With no addons
|
|
1429
1548
|
* (`A = readonly []`) it is the row unchanged, so the non-addon path — and every
|
|
@@ -1438,11 +1557,44 @@ type EnvelopeAddonFields<A> = A extends readonly [infer H, ...infer Rest] ? (H e
|
|
|
1438
1557
|
*/
|
|
1439
1558
|
type WithAddons<Row, A> = [keyof AddonFields<A>] extends [never] ? Row : Prettify<Omit<Row, keyof AddonFields<A>> & AddonFields<A>>;
|
|
1440
1559
|
/**
|
|
1441
|
-
*
|
|
1560
|
+
* The `eval` aliases a query actually RETURNS. `output` is applied to the eval
|
|
1561
|
+
* columns too, so with a non-empty `output` (`Cols`) only the aliases it names
|
|
1562
|
+
* come back — an alias computed but left out of `output` is dropped by the
|
|
1563
|
+
* engine. With no `output` (`Cols` empty) every alias is returned.
|
|
1564
|
+
*/
|
|
1565
|
+
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]>>;
|
|
1566
|
+
/**
|
|
1567
|
+
* A query's `eval` grafts (`EvalFields` in `db-search.ts`), with one alias typed rather than
|
|
1568
|
+
* `unknown`: an UNFILTERED eval naming `<alias>.<col>` of a `bind` entry that
|
|
1569
|
+
* joins a table handle under that explicit `as` carries that column's type
|
|
1570
|
+
* (`| null` under a `left` join). The documented way to read a joined column.
|
|
1571
|
+
* A filtered eval, a bind without `as`, or an unbranded table stays `unknown`.
|
|
1572
|
+
*/
|
|
1573
|
+
type QueryEvalFields<E, B> = E extends readonly [infer H, ...infer Rest] ? (H extends {
|
|
1574
|
+
as: infer S extends string;
|
|
1575
|
+
} ? {
|
|
1576
|
+
[K in S]: JoinedEvalValue<H, B>;
|
|
1577
|
+
} : object) & QueryEvalFields<Rest, B> : object;
|
|
1578
|
+
type JoinedEvalValue<H, B> = H extends {
|
|
1579
|
+
filters: readonly [unknown, ...unknown[]];
|
|
1580
|
+
} ? unknown : H extends {
|
|
1581
|
+
name: `${infer Alias}.${infer Col}`;
|
|
1582
|
+
} ? JoinedColumn<B, Alias, Col> : unknown;
|
|
1583
|
+
type JoinedColumn<B, Alias extends string, Col extends string> = B extends readonly [infer H, ...infer Rest] ? H extends {
|
|
1584
|
+
as: Alias;
|
|
1585
|
+
table: infer T extends ObjectRef;
|
|
1586
|
+
} ? [InferRow<T>] extends [never] ? unknown : Col extends keyof InferRow<T> ? H extends {
|
|
1587
|
+
join: "left";
|
|
1588
|
+
} ? InferRow<T>[Col] | null : InferRow<T>[Col] : unknown : JoinedColumn<Rest, Alias, Col> : unknown;
|
|
1589
|
+
/**
|
|
1590
|
+
* A row shape augmented with any `eval` alias keys it returns under `output`
|
|
1591
|
+
* (see {@link SelectedEvalFields}). With no returned evals it is the row
|
|
1442
1592
|
* unchanged. Like {@link WithAddons}, an eval alias **overrides** a base column of
|
|
1443
1593
|
* the same name (the engine computes over it), so the honest type is the graft.
|
|
1444
1594
|
*/
|
|
1445
|
-
type WithEval<Row, E
|
|
1595
|
+
type WithEval<Row, E, Cols extends readonly string[] = readonly [], B = readonly []> = [
|
|
1596
|
+
keyof SelectedEvalFields<E, Cols, B>
|
|
1597
|
+
] extends [never] ? Row : Prettify<Omit<Row, keyof SelectedEvalFields<E, Cols, B>> & SelectedEvalFields<E, Cols, B>>;
|
|
1446
1598
|
/**
|
|
1447
1599
|
* The paging metadata envelope a `db.query` returns when `paging` is set with
|
|
1448
1600
|
* metadata on. The result
|
|
@@ -1496,7 +1648,7 @@ type PagingTotals<P> = P extends {
|
|
|
1496
1648
|
* The engine's `context.return.type` for a `db.query` — the return-type
|
|
1497
1649
|
* discriminant. `"list"` is the default (a row array or paging envelope);
|
|
1498
1650
|
* `"single"` a first-match object; `"count"`/`"exists"` a scalar; `"stream"` a
|
|
1499
|
-
*
|
|
1651
|
+
* cursor only `s.foreach` reads (returned, it serves `"@stream"`).
|
|
1500
1652
|
*/
|
|
1501
1653
|
type DbReturnType = "list" | "single" | "count" | "exists" | "stream" | "aggregate";
|
|
1502
1654
|
/** Distinct-row handling (`context.return.<list|stream>.distinct`): engine default `"auto"`. */
|
|
@@ -1655,11 +1807,12 @@ interface DbExpandBind {
|
|
|
1655
1807
|
}
|
|
1656
1808
|
/**
|
|
1657
1809
|
* The full `db.query` result shape, discriminated by return type `RT`:
|
|
1658
|
-
* `count → number`, `exists → boolean`, `single → row | null`, `stream →
|
|
1810
|
+
* `count → number`, `exists → boolean`, `single → row | null`, `stream → "@stream"`
|
|
1811
|
+
* (a cursor only `s.foreach` reads; returned, it serializes to that string),
|
|
1659
1812
|
* and `list → row[]` or the {@link PagingEnvelope} when `paging` requests
|
|
1660
1813
|
* metadata. The row is always the addon-augmented row.
|
|
1661
1814
|
*/
|
|
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 :
|
|
1815
|
+
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
1816
|
keyof EnvelopeAddonFields<A>
|
|
1664
1817
|
] extends [never] ? PagingEnvelope<R[], PagingTotals<P>> : Prettify<PagingEnvelope<R[], PagingTotals<P>> & EnvelopeAddonFields<A>>, Cols> : R[] : never;
|
|
1665
1818
|
/**
|
|
@@ -1682,6 +1835,20 @@ type PagedOutputCheck<Cols extends readonly string[], P, RT, Row extends string>
|
|
|
1682
1835
|
[I in keyof Cols]: PagedEntry<Cols[I], Row>;
|
|
1683
1836
|
};
|
|
1684
1837
|
} : unknown : unknown;
|
|
1838
|
+
/**
|
|
1839
|
+
* `lock: true` refused where the engine's read is an aggregate. The lock is a
|
|
1840
|
+
* Postgres `FOR UPDATE`, which Postgres refuses beside `count(*)` and
|
|
1841
|
+
* `GROUP BY` (`0A000 FEATURE NOT SUPPORTED`, a 500 on every request), and
|
|
1842
|
+
* `paging.totals` runs a `count(*)` on the same locked query. `exists` wraps
|
|
1843
|
+
* the locked select in a subquery, which Postgres accepts.
|
|
1844
|
+
*/
|
|
1845
|
+
type LockCheck<RT, P> = [RT] extends ["count" | "aggregate"] ? {
|
|
1846
|
+
lock?: false | Refused<true, "lock needs a row-returning query: FOR UPDATE is refused beside count and aggregate">;
|
|
1847
|
+
} : P extends {
|
|
1848
|
+
totals: true;
|
|
1849
|
+
} ? {
|
|
1850
|
+
lock?: false | Refused<true, "lock cannot be combined with paging.totals: the totals count(*) is refused FOR UPDATE">;
|
|
1851
|
+
} : unknown;
|
|
1685
1852
|
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
1853
|
/**
|
|
1687
1854
|
* A refused entry, carrying its message. Branded rather than replaced by the
|
|
@@ -1721,7 +1888,13 @@ interface DbGetArgs<T extends ObjectRef = ObjectRef, As extends string = string,
|
|
|
1721
1888
|
fieldName?: QualifiedCol<ColsOf<T>>;
|
|
1722
1889
|
/** The value to match. */
|
|
1723
1890
|
fieldValue: Value;
|
|
1724
|
-
/**
|
|
1891
|
+
/**
|
|
1892
|
+
* Acquire a row lock (`FOR UPDATE`) held until the enclosing
|
|
1893
|
+
* `s.db.transaction` ends. As the transaction's FIRST step on a shared parent
|
|
1894
|
+
* row (the room, the account), it serializes a check-then-insert that a
|
|
1895
|
+
* `lock: true` query cannot: concurrent requests wait here, then see each
|
|
1896
|
+
* other's inserts.
|
|
1897
|
+
*/
|
|
1725
1898
|
lock?: boolean;
|
|
1726
1899
|
/**
|
|
1727
1900
|
* Restrict the returned columns (XanoScript `output = [...]`). Encoded into
|
|
@@ -1918,16 +2091,19 @@ interface DbAddArgs<T extends ObjectRef = ObjectRef, As extends string = string,
|
|
|
1918
2091
|
/**
|
|
1919
2092
|
* Refuse to auto-wire request inputs the endpoint did not explicitly bind.
|
|
1920
2093
|
*
|
|
1921
|
-
*
|
|
1922
|
-
*
|
|
1923
|
-
*
|
|
1924
|
-
*
|
|
1925
|
-
*
|
|
1926
|
-
*
|
|
2094
|
+
* ⚠ This ONLY affects a hand-written `data: DbField[]` that LEAVES COLUMNS
|
|
2095
|
+
* OUT. The engine auto-wires a column ABSENT from the args from a same-named
|
|
2096
|
+
* request input (how a caller can reach a column the endpoint never meant to
|
|
2097
|
+
* expose); with this on, it skips auto-wiring anything outside the endpoint's
|
|
2098
|
+
* declared inputs. A `row:` write NEVER auto-wires — `row` expands to EVERY
|
|
2099
|
+
* column explicitly (the type default on add, `ignore` on edit), so nothing is
|
|
2100
|
+
* absent for the engine to fill, and this flag changes nothing for it. So a
|
|
2101
|
+
* `row` endpoint is not exposed to stray inputs in the first place.
|
|
1927
2102
|
*
|
|
1928
2103
|
* Off by default, matching the engine's own default — so leaving it unset
|
|
1929
|
-
* writes nothing and changes nothing. Reach for it
|
|
1930
|
-
*
|
|
2104
|
+
* writes nothing and changes nothing. Reach for it only alongside a PARTIAL
|
|
2105
|
+
* `data` list on a table with a column a caller must not set (`role`,
|
|
2106
|
+
* `is_admin`, `credits`).
|
|
1931
2107
|
*/
|
|
1932
2108
|
enforceHiddenFields?: boolean;
|
|
1933
2109
|
table: DbTableRef<T>;
|
|
@@ -1969,16 +2145,19 @@ interface DbEditArgs<T extends ObjectRef = ObjectRef, As extends string = string
|
|
|
1969
2145
|
/**
|
|
1970
2146
|
* Refuse to auto-wire request inputs the endpoint did not explicitly bind.
|
|
1971
2147
|
*
|
|
1972
|
-
*
|
|
1973
|
-
*
|
|
1974
|
-
*
|
|
1975
|
-
*
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
2148
|
+
* ⚠ This ONLY affects a hand-written `data: DbField[]` that LEAVES COLUMNS
|
|
2149
|
+
* OUT. The engine auto-wires a column ABSENT from the args from a same-named
|
|
2150
|
+
* request input (how a caller can reach a column the endpoint never meant to
|
|
2151
|
+
* expose); with this on, it skips auto-wiring anything outside the endpoint's
|
|
2152
|
+
* declared inputs. A `row:` write NEVER auto-wires — `row` expands to EVERY
|
|
2153
|
+
* column explicitly (the type default on add, `ignore` on edit), so nothing is
|
|
2154
|
+
* absent for the engine to fill, and this flag changes nothing for it. So a
|
|
2155
|
+
* `row` endpoint is not exposed to stray inputs in the first place.
|
|
1978
2156
|
*
|
|
1979
2157
|
* Off by default, matching the engine's own default — so leaving it unset
|
|
1980
|
-
* writes nothing and changes nothing. Reach for it
|
|
1981
|
-
*
|
|
2158
|
+
* writes nothing and changes nothing. Reach for it only alongside a PARTIAL
|
|
2159
|
+
* `data` list on a table with a column a caller must not set (`role`,
|
|
2160
|
+
* `is_admin`, `credits`).
|
|
1982
2161
|
*/
|
|
1983
2162
|
enforceHiddenFields?: boolean;
|
|
1984
2163
|
table: DbTableRef<T>;
|
|
@@ -2038,16 +2217,19 @@ interface DbAddOrEditArgs<T extends ObjectRef = ObjectRef, As extends string = s
|
|
|
2038
2217
|
/**
|
|
2039
2218
|
* Refuse to auto-wire request inputs the endpoint did not explicitly bind.
|
|
2040
2219
|
*
|
|
2041
|
-
*
|
|
2042
|
-
*
|
|
2043
|
-
*
|
|
2044
|
-
*
|
|
2045
|
-
*
|
|
2046
|
-
*
|
|
2220
|
+
* ⚠ This ONLY affects a hand-written `data: DbField[]` that LEAVES COLUMNS
|
|
2221
|
+
* OUT. The engine auto-wires a column ABSENT from the args from a same-named
|
|
2222
|
+
* request input (how a caller can reach a column the endpoint never meant to
|
|
2223
|
+
* expose); with this on, it skips auto-wiring anything outside the endpoint's
|
|
2224
|
+
* declared inputs. A `row:` write NEVER auto-wires — `row` expands to EVERY
|
|
2225
|
+
* column explicitly (the type default on add, `ignore` on edit), so nothing is
|
|
2226
|
+
* absent for the engine to fill, and this flag changes nothing for it. So a
|
|
2227
|
+
* `row` endpoint is not exposed to stray inputs in the first place.
|
|
2047
2228
|
*
|
|
2048
2229
|
* Off by default, matching the engine's own default — so leaving it unset
|
|
2049
|
-
* writes nothing and changes nothing. Reach for it
|
|
2050
|
-
*
|
|
2230
|
+
* writes nothing and changes nothing. Reach for it only alongside a PARTIAL
|
|
2231
|
+
* `data` list on a table with a column a caller must not set (`role`,
|
|
2232
|
+
* `is_admin`, `credits`).
|
|
2051
2233
|
*/
|
|
2052
2234
|
enforceHiddenFields?: boolean;
|
|
2053
2235
|
table: DbTableRef<T>;
|
|
@@ -2171,7 +2353,7 @@ interface DbBulkDeleteArgs<As extends string = string> extends StatementOptions
|
|
|
2171
2353
|
/**
|
|
2172
2354
|
* Filter selecting which rows to delete — the same `where` surface as
|
|
2173
2355
|
* `s.db.query`: `expr(...)`/`cmp(...)` comparisons, `and(...)`/`or(...)` groups,
|
|
2174
|
-
* an array of those (ANDed)
|
|
2356
|
+
* or an array of those (ANDed). Encoded into `context.search`
|
|
2175
2357
|
* via {@link encodeSearch}. **A `where` that constrains nothing deletes every
|
|
2176
2358
|
* row in the table**, which is why it requires {@link DbBulkDeleteArgs.allRows}.
|
|
2177
2359
|
*/
|
|
@@ -2393,7 +2575,7 @@ interface DbExternal {
|
|
|
2393
2575
|
/** Per-part gates; each defaults to the engine default. */
|
|
2394
2576
|
permissions?: DbExternalPermissions;
|
|
2395
2577
|
}
|
|
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 {
|
|
2578
|
+
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
2579
|
/**
|
|
2398
2580
|
* SQL alias for the bound table (`context.dbo.as`), used to qualify columns.
|
|
2399
2581
|
* Absent unless set — Xano writes it on some statements and not others, so it
|
|
@@ -2404,11 +2586,12 @@ interface DbQueryArgs<T extends ObjectRef = ObjectRef, As extends string = strin
|
|
|
2404
2586
|
/**
|
|
2405
2587
|
* The engine's `context.return.type`. `"list"` (default) returns a row array
|
|
2406
2588
|
* (or paging envelope); `"single"` a first-match `row | null`; `"count"` a
|
|
2407
|
-
* `number`; `"exists"` a `boolean`; `"stream"` a
|
|
2408
|
-
*
|
|
2589
|
+
* `number`; `"exists"` a `boolean`; `"stream"` a cursor only `s.foreach`
|
|
2590
|
+
* reads (returned, it serves the string `"@stream"`, warning
|
|
2591
|
+
* `db.stream-returned`). `InferResponse` reflects each shape.
|
|
2409
2592
|
*/
|
|
2410
2593
|
returnType?: RT;
|
|
2411
|
-
/** Primary filter — `expr(...)
|
|
2594
|
+
/** Primary filter — `expr(...)` or an array of `expr(...)` (ANDed). A value is refused: the engine would run it unfiltered. */
|
|
2412
2595
|
where?: DbWhere;
|
|
2413
2596
|
/** Additional filter ANDed with `where` (same forms as `where`). */
|
|
2414
2597
|
additionalWhere?: DbWhere;
|
|
@@ -2417,10 +2600,21 @@ interface DbQueryArgs<T extends ObjectRef = ObjectRef, As extends string = strin
|
|
|
2417
2600
|
* are addressable by dotted path in `where`/`sort`/`eval`; the row shape is
|
|
2418
2601
|
* unchanged (output columns still come from `output`/`eval`).
|
|
2419
2602
|
*/
|
|
2420
|
-
bind?:
|
|
2603
|
+
bind?: B;
|
|
2421
2604
|
/** Sort directives (`[{ sortBy, dir }]`) — applied by the engine. */
|
|
2422
2605
|
sort?: DbSortDirective<ColsOf<T> | EvalAliases<E>>[];
|
|
2423
|
-
/**
|
|
2606
|
+
/**
|
|
2607
|
+
* Acquire row locks (`SELECT … FOR UPDATE`), held until the enclosing
|
|
2608
|
+
* `s.db.transaction` ends. Postgres refuses `FOR UPDATE` beside an
|
|
2609
|
+
* aggregate, so `count`, `aggregate`, and a `list` with `paging.totals` are
|
|
2610
|
+
* refused here rather than failing every request with a 500.
|
|
2611
|
+
*
|
|
2612
|
+
* ⚠ It locks only the rows the query RETURNS, so it cannot make a
|
|
2613
|
+
* check-then-insert exclusive: a competing request inserting a NEW row is
|
|
2614
|
+
* never blocked, and concurrent "is this slot free? then add" both succeed.
|
|
2615
|
+
* Lock a shared parent row first instead (`s.db.get({ …, lock: true })` as
|
|
2616
|
+
* the transaction's first step).
|
|
2617
|
+
*/
|
|
2424
2618
|
lock?: boolean;
|
|
2425
2619
|
/**
|
|
2426
2620
|
* Paging controls (`page`/`per_page`/`offset`/`totals`/`metadata`) — applied by
|
|
@@ -2478,9 +2672,9 @@ interface DbQueryArgs<T extends ObjectRef = ObjectRef, As extends string = strin
|
|
|
2478
2672
|
* `InferResponse` can trace a `ref` back to this statement. */
|
|
2479
2673
|
as?: As;
|
|
2480
2674
|
}
|
|
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> & {
|
|
2675
|
+
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
2676
|
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>>;
|
|
2677
|
+
} & 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
2678
|
/**
|
|
2485
2679
|
* There is no `as`: the transaction returns nothing, so a binding on it is
|
|
2486
2680
|
* always `null` (measured on a live instance). The
|
|
@@ -2528,11 +2722,11 @@ declare function dbExternalQuery(args: DbExternalQueryArgs): Statement;
|
|
|
2528
2722
|
/**
|
|
2529
2723
|
* Typed `precondition` / `throw` overrides.
|
|
2530
2724
|
*
|
|
2531
|
-
* `s.throw` raises a
|
|
2532
|
-
*
|
|
2533
|
-
*
|
|
2534
|
-
*
|
|
2535
|
-
*
|
|
2725
|
+
* `s.throw` raises a named error. Uncaught, the runtime answers **HTTP 200** with
|
|
2726
|
+
* `{ payload, statement: "Throw Error" }` unless the throw sets `status`, which
|
|
2727
|
+
* the request then answers with. `s.precondition` instead maps its `error_type`
|
|
2728
|
+
* to a status-bearing exception (400/401/403/404/429/…) with the
|
|
2729
|
+
* `{ code, message, payload }` envelope.
|
|
2536
2730
|
*
|
|
2537
2731
|
* Both delegate to the codegen'd factory — the encoded statement is identical —
|
|
2538
2732
|
* and only narrow/annotate the authoring types. `error_type` in particular ships
|
|
@@ -2584,31 +2778,43 @@ interface PreconditionArgs extends StatementAnnotations {
|
|
|
2584
2778
|
}
|
|
2585
2779
|
/**
|
|
2586
2780
|
* `precondition { … }` — assert a condition and raise a **status-bearing** error
|
|
2587
|
-
* if it fails (`mvp:precondition`)
|
|
2588
|
-
*
|
|
2589
|
-
*
|
|
2781
|
+
* if it fails (`mvp:precondition`), answered with the `{ code, message, payload }`
|
|
2782
|
+
* envelope. {@link throwError} (`s.throw`) with a `status` also fails the request,
|
|
2783
|
+
* with a `{ payload, statement }` body instead.
|
|
2590
2784
|
*
|
|
2591
2785
|
* @example
|
|
2592
2786
|
* s.precondition({
|
|
2593
|
-
* expr:
|
|
2787
|
+
* expr: cond.startsWith(inp("url"), c.text("http")),
|
|
2594
2788
|
* error_type: "badrequest",
|
|
2595
2789
|
* error: c.text("url must start with http:// or https://"),
|
|
2596
2790
|
* })
|
|
2597
2791
|
*/
|
|
2598
2792
|
declare function precondition(a?: PreconditionArgs): Statement;
|
|
2599
2793
|
interface ThrowArgs extends StatementAnnotations {
|
|
2600
|
-
/** Optional error name/code. */
|
|
2794
|
+
/** Optional error name/code. `s.try_catch` reads it as `caught("name")`; the client never sees it. */
|
|
2601
2795
|
name?: string;
|
|
2602
|
-
/** The error value/message. */
|
|
2796
|
+
/** The error value/message. The client receives it as `payload`. */
|
|
2603
2797
|
value: Value;
|
|
2798
|
+
/**
|
|
2799
|
+
* The HTTP status the request answers with when nothing catches this throw,
|
|
2800
|
+
* a whole number from 100 to 599 (refused at build time otherwise). Without
|
|
2801
|
+
* it an uncaught throw answers 200. A throw that `s.try_catch` catches never
|
|
2802
|
+
* changes the response status, and one inside a function run with
|
|
2803
|
+
* `s.function.run` answers the caller's request with it.
|
|
2804
|
+
*/
|
|
2805
|
+
status?: number;
|
|
2604
2806
|
}
|
|
2605
2807
|
/**
|
|
2606
2808
|
* `throw <value>` — raise an error from the stack (`mvp:throw_error`).
|
|
2607
2809
|
*
|
|
2608
|
-
* ⚠️
|
|
2609
|
-
* a client checking `res.ok` treats
|
|
2610
|
-
* as
|
|
2611
|
-
* `
|
|
2810
|
+
* ⚠️ Uncaught and without `status`, the runtime answers **HTTP 200** with
|
|
2811
|
+
* `{ payload, statement: "Throw Error" }`, so a client checking `res.ok` treats
|
|
2812
|
+
* it as success. Set `status` to fail the request with that status and body, or
|
|
2813
|
+
* use {@link precondition} (`s.precondition`) for the `{ code, message, payload }`
|
|
2814
|
+
* envelope.
|
|
2815
|
+
*
|
|
2816
|
+
* @example
|
|
2817
|
+
* s.throw({ name: "NOT_ALLOWED", value: c.text("You can't edit this record"), status: 403 })
|
|
2612
2818
|
*/
|
|
2613
2819
|
declare function throwError(a: ThrowArgs): Statement;
|
|
2614
2820
|
|
|
@@ -2861,7 +3067,9 @@ type ValueArg = Value | {
|
|
|
2861
3067
|
/** `return <value>` — terminate and return a value. */
|
|
2862
3068
|
declare function returnValue(value: ValueArg, a?: StatementAnnotations): Statement;
|
|
2863
3069
|
/**
|
|
2864
|
-
* `die <value>` — terminate the request
|
|
3070
|
+
* `die <value>` — terminate the request: HTTP 200 with
|
|
3071
|
+
* `{ payload: <value>, statement: "Stop & Debug" }`, not an error status (use
|
|
3072
|
+
* `s.precondition` for one).
|
|
2865
3073
|
*
|
|
2866
3074
|
* The same statement as `s.debug.stop` (both emit `mvp:die`), and the one flat
|
|
2867
3075
|
* alias whose name does not mirror its `s.*` path — there is no `s.die`. Despite
|
|
@@ -2875,7 +3083,16 @@ declare function debugLog(value: ValueArg, a?: StatementAnnotations): Statement;
|
|
|
2875
3083
|
declare function foreachBreak(a?: StatementAnnotations): Statement;
|
|
2876
3084
|
/** `foreach_continue` — continue the enclosing loop. */
|
|
2877
3085
|
declare function foreachContinue(a?: StatementAnnotations): Statement;
|
|
2878
|
-
/**
|
|
3086
|
+
/**
|
|
3087
|
+
* `foreach_remove` — remove the current item from the iterated collection.
|
|
3088
|
+
*
|
|
3089
|
+
* ⚠ It rewrites the VARIABLE named by the loop's `list`, so the loop must
|
|
3090
|
+
* iterate a bare `ref("arr")` (a stack var): the shrunk list is visible on that
|
|
3091
|
+
* var AFTER the loop. On an `inp()` list — or any non-`ref` value — it silently
|
|
3092
|
+
* does NOTHING (nothing to write back to) and reports nothing. Removing during
|
|
3093
|
+
* iteration does not skip the next item. Copy an input into a var first
|
|
3094
|
+
* (`s.set_var("arr", inp("items"))`) to use it.
|
|
3095
|
+
*/
|
|
2879
3096
|
declare function foreachRemove(a?: StatementAnnotations): Statement;
|
|
2880
3097
|
|
|
2881
3098
|
/**
|
|
@@ -3066,7 +3283,7 @@ interface ApiRequestArgs extends HttpRequestFields, StatementAnnotations {
|
|
|
3066
3283
|
* field types over the generated `mvp:api_request` factory; delegates encoding
|
|
3067
3284
|
* to it for byte-parity. Any field also accepts a dynamic {@link Value}.
|
|
3068
3285
|
*
|
|
3069
|
-
* `method` suggests the
|
|
3286
|
+
* `method` suggests the 8 verbs, `params` is a key/value object (→ query string
|
|
3070
3287
|
* for GET/HEAD/OPTIONS, body otherwise), `headers` an array of full header-line
|
|
3071
3288
|
* strings, `timeout` seconds (engine bounds 1–86400), and the verify/follow
|
|
3072
3289
|
* flags booleans.
|
|
@@ -3345,8 +3562,26 @@ type TargetInputKeys<T> = T extends {
|
|
|
3345
3562
|
* (an endpoint, a tool), so any key reaches it.
|
|
3346
3563
|
*/
|
|
3347
3564
|
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>]?:
|
|
3565
|
+
[K in TargetInputKeys<T>]?: InputValueFor<TargetInputDescriptor<T, K>>;
|
|
3349
3566
|
};
|
|
3567
|
+
type TargetInputDescriptor<T, K extends string> = T extends {
|
|
3568
|
+
readonly input?: infer I;
|
|
3569
|
+
} ? K extends keyof NonNullable<I> ? NonNullable<I>[K] : unknown : unknown;
|
|
3570
|
+
/**
|
|
3571
|
+
* What a call may pass to one target input. A `c.*` CONSTANT carries its type
|
|
3572
|
+
* (`ConstValue<T>`), so one that cannot bind is a compile error rather than a
|
|
3573
|
+
* 400 on the first request: `c.text("abc")` or `c.bool(true)` into an
|
|
3574
|
+
* `input.int`/`input.decimal`, or a number/bool into an `input.uuid`. Any other
|
|
3575
|
+
* value (`inp`, `ref`, a filtered value) carries no constant type and passes, as
|
|
3576
|
+
* does every list input and every other target type.
|
|
3577
|
+
*/
|
|
3578
|
+
type InputValueFor<D> = BrandOpts<D> extends {
|
|
3579
|
+
array: true;
|
|
3580
|
+
} ? InputValue : [BrandType<D>] extends ["int" | "decimal"] ? number | (Value & {
|
|
3581
|
+
readonly __const?: number | null;
|
|
3582
|
+
}) : [BrandType<D>] extends ["uuid"] ? string | (Value & {
|
|
3583
|
+
readonly __const?: string | null;
|
|
3584
|
+
}) : InputValue;
|
|
3350
3585
|
/**
|
|
3351
3586
|
* The `input` of a target that declares none: an object literal naming any key
|
|
3352
3587
|
* is an excess-property error, while a `Record<string, Value>` built elsewhere
|
|
@@ -3404,6 +3639,27 @@ declare function functionRun<const Fn extends FnRef = FnRef, const As extends st
|
|
|
3404
3639
|
* `R` of `AsyncRuntime | undefined` yields the union rather than a guess.
|
|
3405
3640
|
*/
|
|
3406
3641
|
type RunBinding<Fn, R> = [R] extends [undefined] ? InferResponse<Fn> : [R] extends [AsyncRuntime] ? string : string | InferResponse<Fn>;
|
|
3642
|
+
/**
|
|
3643
|
+
* The error envelope a NON-RAISING workspace run binds to `as` when its target
|
|
3644
|
+
* fails, in place of the success result. Two shapes, both measured live: a
|
|
3645
|
+
* precondition / `guard.found` failure binds `{ code, message, payload }`; an
|
|
3646
|
+
* uncaught `s.throw` binds `{ payload, statement }`. `s.function.call` and
|
|
3647
|
+
* `s.tool.call` answer 200 and bind one of these on failure (OUTSIDE a workflow
|
|
3648
|
+
* test), so their `as` is the success shape OR this. Branch on it with
|
|
3649
|
+
* `ref("<as>.code")` / `ref("<as>.statement")`. sdk-dev#137 / #203 / #165.
|
|
3650
|
+
*
|
|
3651
|
+
* `s.function.run` raises on a failing target, so its binding is the success
|
|
3652
|
+
* shape alone; a failed `s.await` serves the job's output through an untyped
|
|
3653
|
+
* (`unknown`) binding, which already admits this.
|
|
3654
|
+
*/
|
|
3655
|
+
type CallErrorEnvelope = {
|
|
3656
|
+
code: string;
|
|
3657
|
+
message: string;
|
|
3658
|
+
payload: unknown;
|
|
3659
|
+
} | {
|
|
3660
|
+
payload: unknown;
|
|
3661
|
+
statement: string;
|
|
3662
|
+
};
|
|
3407
3663
|
interface FunctionCallArgs<Fn extends ObjectRef = ObjectRef, As extends string = string> extends StatementOptions {
|
|
3408
3664
|
fn: Fn;
|
|
3409
3665
|
as?: As;
|
|
@@ -3428,10 +3684,21 @@ interface FunctionCallArgs<Fn extends ObjectRef = ObjectRef, As extends string =
|
|
|
3428
3684
|
* where there is no def to read — propagates that `unknown` unchanged. Declaring
|
|
3429
3685
|
* `responseShape` on the TARGET fixes every caller at once, which is why that
|
|
3430
3686
|
* remains the recommendation for a response the walk cannot resolve.
|
|
3687
|
+
*
|
|
3688
|
+
* ⚠ This differs from `s.function.run` ON FAILURE. OUTSIDE a workflow test
|
|
3689
|
+
* `s.function.call` does NOT raise when the target fails — it binds an error
|
|
3690
|
+
* envelope to `as` and the stack answers 200. So the binding is typed
|
|
3691
|
+
* `InferResponse<Fn> | CallErrorEnvelope`: the SUCCESS shape OR
|
|
3692
|
+
* `{ code, message, payload }` (a precondition/`guard.found` failure) or
|
|
3693
|
+
* `{ payload, statement }` (an uncaught `s.throw`). A guard inside the target
|
|
3694
|
+
* never stops the caller here — use `s.function.run` whenever a failing target
|
|
3695
|
+
* must stop the caller; reach for `s.function.call` to INSPECT the envelope
|
|
3696
|
+
* (branch on `ref("<as>.code")`). INSIDE a workflow test it DOES raise — that is
|
|
3697
|
+
* its home.
|
|
3431
3698
|
*/
|
|
3432
3699
|
declare function functionCall<const Fn extends ObjectRef = ObjectRef, const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(args: FunctionCallArgs<Fn, As> & {
|
|
3433
3700
|
asFilters?: Fs;
|
|
3434
|
-
}): Statement & AsShapeBrand<As, ApplyFilters<InferResponse<Fn>, Fs
|
|
3701
|
+
}): Statement & AsShapeBrand<As, ApplyFilters<InferResponse<Fn>, Fs> | CallErrorEnvelope>;
|
|
3435
3702
|
/** The type of `s.api.call`'s non-argument `query`, whose one member names the fix. */
|
|
3436
3703
|
type EndpointGoesInApi = {
|
|
3437
3704
|
readonly "s.api.call takes the endpoint as `api`, not `query`": never;
|
|
@@ -3514,10 +3781,16 @@ interface ToolCallArgs<Tool extends ObjectRef = ObjectRef, As extends string = s
|
|
|
3514
3781
|
/**
|
|
3515
3782
|
* `tool.call <tool>` — invoke a tool as a workspace run. Branded with the
|
|
3516
3783
|
* TARGET's `InferResponse`, like {@link functionCall}.
|
|
3784
|
+
*
|
|
3785
|
+
* ⚠ Like {@link functionCall}, a FAILING tool does NOT raise, so the binding is
|
|
3786
|
+
* `InferResponse<Tool> | CallErrorEnvelope`: the SUCCESS shape OR
|
|
3787
|
+
* `{ code, message, payload }` (a precondition) or `{ payload, statement }` (an
|
|
3788
|
+
* uncaught `s.throw`), and the caller's stack continues to a 200. When a failure
|
|
3789
|
+
* must stop the caller, put the logic in a `defineFunction` and `s.function.run` it.
|
|
3517
3790
|
*/
|
|
3518
3791
|
declare function toolCall<const Tool extends ObjectRef = ObjectRef, const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(args: ToolCallArgs<Tool, As> & {
|
|
3519
3792
|
asFilters?: Fs;
|
|
3520
|
-
}): Statement & AsShapeBrand<As, ApplyFilters<InferResponse<Tool>, Fs
|
|
3793
|
+
}): Statement & AsShapeBrand<As, ApplyFilters<InferResponse<Tool>, Fs> | CallErrorEnvelope>;
|
|
3521
3794
|
interface TriggerCallArgs extends StatementOptions {
|
|
3522
3795
|
trigger: ObjectRef;
|
|
3523
3796
|
as?: string;
|
|
@@ -3661,17 +3934,21 @@ interface AgentRunResult<R = string> {
|
|
|
3661
3934
|
finishReason: string;
|
|
3662
3935
|
/** Provider-specific metadata (e.g. usage counters, safety signals), keyed by provider. */
|
|
3663
3936
|
providerMetadata: Record<string, Record<string, unknown>>;
|
|
3664
|
-
/** Reasoning parts emitted by the model; `[]` when none. */
|
|
3665
|
-
reasoningDetails
|
|
3666
|
-
/**
|
|
3667
|
-
|
|
3937
|
+
/** Reasoning parts emitted by the model; `[]` when none. ABSENT on a structured-output (`output`) run with no tools. */
|
|
3938
|
+
reasoningDetails?: unknown[];
|
|
3939
|
+
/**
|
|
3940
|
+
* Per-step records (each with e.g. `text`, `finishReason`, `usage`, `toolCalls`, `providerMetadata`).
|
|
3941
|
+
* ABSENT on a structured-output (`output`) agent with NO tools, which runs as a
|
|
3942
|
+
* single call — read it with `ref("<as>.steps", { safe: true })` there.
|
|
3943
|
+
*/
|
|
3944
|
+
steps?: unknown[];
|
|
3668
3945
|
/** Fallback finish reason, populated only when `finishReason` is `'unknown'`; otherwise empty/absent. */
|
|
3669
3946
|
finishReasonCandidate?: string;
|
|
3670
3947
|
/** Merged tool-call + result records; absent or empty when no tools ran. */
|
|
3671
3948
|
toolCalls?: unknown[];
|
|
3672
3949
|
/** Token usage for the final generation (`inputTokens`, `outputTokens`, `totalTokens`, …). */
|
|
3673
3950
|
usage?: Record<string, unknown>;
|
|
3674
|
-
/** Token usage aggregated across all steps. */
|
|
3951
|
+
/** Token usage aggregated across all steps. Absent on a structured-output run with no tools. */
|
|
3675
3952
|
totalUsage?: Record<string, unknown>;
|
|
3676
3953
|
}
|
|
3677
3954
|
interface AiAgentRunArgs<As extends string = "", A extends ObjectRef = ObjectRef, R = AgentResultOf<A>> extends StatementOptions {
|
|
@@ -3972,7 +4249,18 @@ type HeaderDuplicates = (typeof HEADER_DUPLICATES)[number];
|
|
|
3972
4249
|
type WithAccess<T> = Omit<T, "access"> & {
|
|
3973
4250
|
access?: StorageAccess;
|
|
3974
4251
|
};
|
|
3975
|
-
type CreateAttachmentArgs = WithAccess<Parameters<typeof generated.storage.create_attachment>[0]
|
|
4252
|
+
type CreateAttachmentArgs = Omit<WithAccess<Parameters<typeof generated.storage.create_attachment>[0]>, "include_meta"> & {
|
|
4253
|
+
/**
|
|
4254
|
+
* What `as` binds. Absent or `false`: the stored file VALUE
|
|
4255
|
+
* (`{ access, path, name, type, size, mime, meta }`), the thing to write into
|
|
4256
|
+
* an `f.attachment()` cell. `true`: the engine's internal file RECORD instead
|
|
4257
|
+
* (`id`, `sig`, `guid`, `canonical`, `user`, `workspace`, and `storage` with the
|
|
4258
|
+
* cloud provider, bucket and region). Read the fields you need from it; never
|
|
4259
|
+
* return it to a client (export warns `storage.include-meta-returned`) or store
|
|
4260
|
+
* it as the file value.
|
|
4261
|
+
*/
|
|
4262
|
+
include_meta?: boolean;
|
|
4263
|
+
};
|
|
3976
4264
|
type CreateAudioArgs = WithAccess<Parameters<typeof generated.storage.create_audio>[0]>;
|
|
3977
4265
|
type CreateImageArgs = WithAccess<Parameters<typeof generated.storage.create_image>[0]>;
|
|
3978
4266
|
type CreateVideoArgs = WithAccess<Parameters<typeof generated.storage.create_video>[0]>;
|
|
@@ -3985,6 +4273,10 @@ type SetHeaderArgs = Omit<Parameters<typeof generated.util.set_header>[0], "dupl
|
|
|
3985
4273
|
* ⚠ `access` defaults to `"public"` (world-readable by URL). Pass
|
|
3986
4274
|
* `access: "private"` and reach the file through `s.storage.sign_private_url`
|
|
3987
4275
|
* when it must not be.
|
|
4276
|
+
*
|
|
4277
|
+
* ⚠ `include_meta: true` binds the internal file record (`sig`, `guid`, the
|
|
4278
|
+
* storage bucket), not the file value. Returned from an endpoint it exposes
|
|
4279
|
+
* storage internals: return the fields you need, or drop `include_meta`.
|
|
3988
4280
|
*/
|
|
3989
4281
|
declare function createAttachment(a: CreateAttachmentArgs): Statement;
|
|
3990
4282
|
/**
|
|
@@ -4048,24 +4340,37 @@ type LambdaArgs = Parameters<typeof generated.lambda>[0] & {
|
|
|
4048
4340
|
*/
|
|
4049
4341
|
declare function lambda(a: LambdaArgs): Statement;
|
|
4050
4342
|
|
|
4051
|
-
/** `s.object.keys`, branded so the bound var reads as the key list.
|
|
4052
|
-
|
|
4343
|
+
/** `s.object.keys`, branded so the bound var reads as the key list. An
|
|
4344
|
+
* integer-like key comes back as a NUMBER (PHP coerces it), so the element is
|
|
4345
|
+
* `string | number`, not `string`. */
|
|
4346
|
+
type ObjectKeys = <const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(a: Omit<NonNullable<Parameters<typeof generated.object.keys>[0]>, "as" | "asFilters"> & {
|
|
4347
|
+
as?: As;
|
|
4348
|
+
asFilters?: Fs;
|
|
4349
|
+
}) => Statement & AsShapeBrand<As, ApplyFilters<(string | number)[], Fs>>;
|
|
4350
|
+
/** `s.object.entries`, branded so the bound var reads as the entry list. Each
|
|
4351
|
+
* entry is a `{ key, value }` OBJECT (not a `[key, value]` tuple), and an
|
|
4352
|
+
* integer-like key comes back as a NUMBER. */
|
|
4353
|
+
type ObjectEntries = <const As extends string = string, const Fs extends readonly FilterXdo[] = readonly []>(a: Omit<NonNullable<Parameters<typeof generated.object.entries>[0]>, "as" | "asFilters"> & {
|
|
4053
4354
|
as?: As;
|
|
4054
4355
|
asFilters?: Fs;
|
|
4055
|
-
}) => Statement & AsShapeBrand<As, ApplyFilters<
|
|
4356
|
+
}) => Statement & AsShapeBrand<As, ApplyFilters<{
|
|
4357
|
+
key: string | number;
|
|
4358
|
+
value: unknown;
|
|
4359
|
+
}[], Fs>>;
|
|
4056
4360
|
/** `s.security.create_uuid`, branded so the bound var reads as the UUID string it is. */
|
|
4057
4361
|
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
4362
|
as?: As;
|
|
4059
4363
|
asFilters?: Fs;
|
|
4060
4364
|
}) => Statement & AsShapeBrand<As, ApplyFilters<string, Fs>>;
|
|
4061
|
-
/**
|
|
4365
|
+
/**
|
|
4366
|
+
* An in-place list mutator, branded with the name it appends to and the value
|
|
4367
|
+
* appended. `name` and `value` are both required: the build refuses either
|
|
4368
|
+
* missing, so the type must too.
|
|
4369
|
+
*/
|
|
4062
4370
|
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
|
|
4064
|
-
} & (Spread extends true ? {
|
|
4065
|
-
value?: V;
|
|
4066
|
-
} : {
|
|
4371
|
+
name: N;
|
|
4067
4372
|
value: V;
|
|
4068
|
-
})
|
|
4373
|
+
}) => Statement & AppendBrand<N, V, Spread>;
|
|
4069
4374
|
declare const s: {
|
|
4070
4375
|
readonly precondition: typeof precondition;
|
|
4071
4376
|
readonly throw: typeof throwError;
|
|
@@ -4105,6 +4410,7 @@ declare const s: {
|
|
|
4105
4410
|
value: Value;
|
|
4106
4411
|
disabled?: boolean;
|
|
4107
4412
|
description?: string;
|
|
4413
|
+
mock?: MockMap;
|
|
4108
4414
|
}) => Statement;
|
|
4109
4415
|
};
|
|
4110
4416
|
readonly microservice: {
|
|
@@ -4112,10 +4418,12 @@ declare const s: {
|
|
|
4112
4418
|
};
|
|
4113
4419
|
readonly realtime: {
|
|
4114
4420
|
readonly publish: typeof realtimePublish;
|
|
4421
|
+
readonly kick: typeof realtimeKick;
|
|
4115
4422
|
readonly get_session: (a?: {
|
|
4116
4423
|
as?: string;
|
|
4117
4424
|
disabled?: boolean;
|
|
4118
4425
|
description?: string;
|
|
4426
|
+
mock?: MockMap;
|
|
4119
4427
|
asFilters?: FilterXdo[];
|
|
4120
4428
|
uncheckedAs?: boolean;
|
|
4121
4429
|
}) => Statement;
|
|
@@ -4130,6 +4438,7 @@ declare const s: {
|
|
|
4130
4438
|
escape_char?: Value;
|
|
4131
4439
|
disabled?: boolean;
|
|
4132
4440
|
description?: string;
|
|
4441
|
+
mock?: MockMap;
|
|
4133
4442
|
asFilters?: FilterXdo[];
|
|
4134
4443
|
uncheckedAs?: boolean;
|
|
4135
4444
|
output?: OutputAuthored;
|
|
@@ -4139,6 +4448,7 @@ declare const s: {
|
|
|
4139
4448
|
value: Value;
|
|
4140
4449
|
disabled?: boolean;
|
|
4141
4450
|
description?: string;
|
|
4451
|
+
mock?: MockMap;
|
|
4142
4452
|
asFilters?: FilterXdo[];
|
|
4143
4453
|
uncheckedAs?: boolean;
|
|
4144
4454
|
}) => Statement;
|
|
@@ -4162,6 +4472,7 @@ declare const s: {
|
|
|
4162
4472
|
unsafe_user_id?: Value;
|
|
4163
4473
|
disabled?: boolean;
|
|
4164
4474
|
description?: string;
|
|
4475
|
+
mock?: MockMap;
|
|
4165
4476
|
asFilters?: FilterXdo[];
|
|
4166
4477
|
uncheckedAs?: boolean;
|
|
4167
4478
|
}) => Statement;
|
|
@@ -4170,6 +4481,7 @@ declare const s: {
|
|
|
4170
4481
|
request: Value;
|
|
4171
4482
|
disabled?: boolean;
|
|
4172
4483
|
description?: string;
|
|
4484
|
+
mock?: MockMap;
|
|
4173
4485
|
asFilters?: FilterXdo[];
|
|
4174
4486
|
uncheckedAs?: boolean;
|
|
4175
4487
|
}) => Statement;
|
|
@@ -4181,6 +4493,7 @@ declare const s: {
|
|
|
4181
4493
|
all?: Value;
|
|
4182
4494
|
disabled?: boolean;
|
|
4183
4495
|
description?: string;
|
|
4496
|
+
mock?: MockMap;
|
|
4184
4497
|
asFilters?: FilterXdo[];
|
|
4185
4498
|
uncheckedAs?: boolean;
|
|
4186
4499
|
}) => Statement;
|
|
@@ -4191,6 +4504,7 @@ declare const s: {
|
|
|
4191
4504
|
message?: Value;
|
|
4192
4505
|
disabled?: boolean;
|
|
4193
4506
|
description?: string;
|
|
4507
|
+
mock?: MockMap;
|
|
4194
4508
|
}) => Statement;
|
|
4195
4509
|
};
|
|
4196
4510
|
readonly trigger: {
|
|
@@ -4244,6 +4558,7 @@ declare const s: {
|
|
|
4244
4558
|
workspace_id?: Value;
|
|
4245
4559
|
disabled?: boolean;
|
|
4246
4560
|
description?: string;
|
|
4561
|
+
mock?: MockMap;
|
|
4247
4562
|
}) => Statement;
|
|
4248
4563
|
};
|
|
4249
4564
|
readonly ai: {
|
|
@@ -4259,6 +4574,7 @@ declare const s: {
|
|
|
4259
4574
|
connection_type?: "sse" | "stream" | Value;
|
|
4260
4575
|
disabled?: boolean;
|
|
4261
4576
|
description?: string;
|
|
4577
|
+
mock?: MockMap;
|
|
4262
4578
|
asFilters?: FilterXdo[];
|
|
4263
4579
|
uncheckedAs?: boolean;
|
|
4264
4580
|
}) => Statement;
|
|
@@ -4270,6 +4586,7 @@ declare const s: {
|
|
|
4270
4586
|
connection_type?: "sse" | "stream" | Value;
|
|
4271
4587
|
disabled?: boolean;
|
|
4272
4588
|
description?: string;
|
|
4589
|
+
mock?: MockMap;
|
|
4273
4590
|
asFilters?: FilterXdo[];
|
|
4274
4591
|
uncheckedAs?: boolean;
|
|
4275
4592
|
}) => Statement;
|
|
@@ -4282,6 +4599,7 @@ declare const s: {
|
|
|
4282
4599
|
args?: Value;
|
|
4283
4600
|
disabled?: boolean;
|
|
4284
4601
|
description?: string;
|
|
4602
|
+
mock?: MockMap;
|
|
4285
4603
|
asFilters?: FilterXdo[];
|
|
4286
4604
|
uncheckedAs?: boolean;
|
|
4287
4605
|
}) => Statement;
|
|
@@ -4304,6 +4622,7 @@ declare const s: {
|
|
|
4304
4622
|
payload: Value;
|
|
4305
4623
|
disabled?: boolean;
|
|
4306
4624
|
description?: string;
|
|
4625
|
+
mock?: MockMap;
|
|
4307
4626
|
asFilters?: FilterXdo[];
|
|
4308
4627
|
uncheckedAs?: boolean;
|
|
4309
4628
|
output?: OutputAuthored;
|
|
@@ -4324,6 +4643,7 @@ declare const s: {
|
|
|
4324
4643
|
doc: Value;
|
|
4325
4644
|
disabled?: boolean;
|
|
4326
4645
|
description?: string;
|
|
4646
|
+
mock?: MockMap;
|
|
4327
4647
|
asFilters?: FilterXdo[];
|
|
4328
4648
|
uncheckedAs?: boolean;
|
|
4329
4649
|
}) => Statement;
|
|
@@ -4344,6 +4664,7 @@ declare const s: {
|
|
|
4344
4664
|
sort?: Value;
|
|
4345
4665
|
disabled?: boolean;
|
|
4346
4666
|
description?: string;
|
|
4667
|
+
mock?: MockMap;
|
|
4347
4668
|
asFilters?: FilterXdo[];
|
|
4348
4669
|
uncheckedAs?: boolean;
|
|
4349
4670
|
}) => Statement;
|
|
@@ -4358,6 +4679,7 @@ declare const s: {
|
|
|
4358
4679
|
query: Value;
|
|
4359
4680
|
disabled?: boolean;
|
|
4360
4681
|
description?: string;
|
|
4682
|
+
mock?: MockMap;
|
|
4361
4683
|
asFilters?: FilterXdo[];
|
|
4362
4684
|
uncheckedAs?: boolean;
|
|
4363
4685
|
}) => Statement;
|
|
@@ -4372,6 +4694,7 @@ declare const s: {
|
|
|
4372
4694
|
file_key: Value;
|
|
4373
4695
|
disabled?: boolean;
|
|
4374
4696
|
description?: string;
|
|
4697
|
+
mock?: MockMap;
|
|
4375
4698
|
asFilters?: FilterXdo[];
|
|
4376
4699
|
uncheckedAs?: boolean;
|
|
4377
4700
|
}) => Statement;
|
|
@@ -4384,6 +4707,7 @@ declare const s: {
|
|
|
4384
4707
|
file_key: Value;
|
|
4385
4708
|
disabled?: boolean;
|
|
4386
4709
|
description?: string;
|
|
4710
|
+
mock?: MockMap;
|
|
4387
4711
|
asFilters?: FilterXdo[];
|
|
4388
4712
|
uncheckedAs?: boolean;
|
|
4389
4713
|
}) => Statement;
|
|
@@ -4397,6 +4721,7 @@ declare const s: {
|
|
|
4397
4721
|
next_page_token?: Value;
|
|
4398
4722
|
disabled?: boolean;
|
|
4399
4723
|
description?: string;
|
|
4724
|
+
mock?: MockMap;
|
|
4400
4725
|
asFilters?: FilterXdo[];
|
|
4401
4726
|
uncheckedAs?: boolean;
|
|
4402
4727
|
}) => Statement;
|
|
@@ -4409,6 +4734,7 @@ declare const s: {
|
|
|
4409
4734
|
file_key: Value;
|
|
4410
4735
|
disabled?: boolean;
|
|
4411
4736
|
description?: string;
|
|
4737
|
+
mock?: MockMap;
|
|
4412
4738
|
asFilters?: FilterXdo[];
|
|
4413
4739
|
uncheckedAs?: boolean;
|
|
4414
4740
|
}) => Statement;
|
|
@@ -4422,6 +4748,7 @@ declare const s: {
|
|
|
4422
4748
|
ttl?: Value;
|
|
4423
4749
|
disabled?: boolean;
|
|
4424
4750
|
description?: string;
|
|
4751
|
+
mock?: MockMap;
|
|
4425
4752
|
asFilters?: FilterXdo[];
|
|
4426
4753
|
uncheckedAs?: boolean;
|
|
4427
4754
|
}) => Statement;
|
|
@@ -4438,6 +4765,7 @@ declare const s: {
|
|
|
4438
4765
|
object_lock_retain_until?: Value;
|
|
4439
4766
|
disabled?: boolean;
|
|
4440
4767
|
description?: string;
|
|
4768
|
+
mock?: MockMap;
|
|
4441
4769
|
asFilters?: FilterXdo[];
|
|
4442
4770
|
uncheckedAs?: boolean;
|
|
4443
4771
|
}) => Statement;
|
|
@@ -4453,6 +4781,7 @@ declare const s: {
|
|
|
4453
4781
|
filePath: Value;
|
|
4454
4782
|
disabled?: boolean;
|
|
4455
4783
|
description?: string;
|
|
4784
|
+
mock?: MockMap;
|
|
4456
4785
|
asFilters?: FilterXdo[];
|
|
4457
4786
|
uncheckedAs?: boolean;
|
|
4458
4787
|
}) => Statement;
|
|
@@ -4464,6 +4793,7 @@ declare const s: {
|
|
|
4464
4793
|
filePath: Value;
|
|
4465
4794
|
disabled?: boolean;
|
|
4466
4795
|
description?: string;
|
|
4796
|
+
mock?: MockMap;
|
|
4467
4797
|
asFilters?: FilterXdo[];
|
|
4468
4798
|
uncheckedAs?: boolean;
|
|
4469
4799
|
}) => Statement;
|
|
@@ -4475,6 +4805,7 @@ declare const s: {
|
|
|
4475
4805
|
path?: Value;
|
|
4476
4806
|
disabled?: boolean;
|
|
4477
4807
|
description?: string;
|
|
4808
|
+
mock?: MockMap;
|
|
4478
4809
|
asFilters?: FilterXdo[];
|
|
4479
4810
|
uncheckedAs?: boolean;
|
|
4480
4811
|
}) => Statement;
|
|
@@ -4486,6 +4817,7 @@ declare const s: {
|
|
|
4486
4817
|
filePath: Value;
|
|
4487
4818
|
disabled?: boolean;
|
|
4488
4819
|
description?: string;
|
|
4820
|
+
mock?: MockMap;
|
|
4489
4821
|
asFilters?: FilterXdo[];
|
|
4490
4822
|
uncheckedAs?: boolean;
|
|
4491
4823
|
}) => Statement;
|
|
@@ -4498,6 +4830,7 @@ declare const s: {
|
|
|
4498
4830
|
ttl?: Value;
|
|
4499
4831
|
disabled?: boolean;
|
|
4500
4832
|
description?: string;
|
|
4833
|
+
mock?: MockMap;
|
|
4501
4834
|
asFilters?: FilterXdo[];
|
|
4502
4835
|
uncheckedAs?: boolean;
|
|
4503
4836
|
}) => Statement;
|
|
@@ -4511,6 +4844,7 @@ declare const s: {
|
|
|
4511
4844
|
metadata?: Value;
|
|
4512
4845
|
disabled?: boolean;
|
|
4513
4846
|
description?: string;
|
|
4847
|
+
mock?: MockMap;
|
|
4514
4848
|
asFilters?: FilterXdo[];
|
|
4515
4849
|
uncheckedAs?: boolean;
|
|
4516
4850
|
}) => Statement;
|
|
@@ -4529,6 +4863,7 @@ declare const s: {
|
|
|
4529
4863
|
doc: Value;
|
|
4530
4864
|
disabled?: boolean;
|
|
4531
4865
|
description?: string;
|
|
4866
|
+
mock?: MockMap;
|
|
4532
4867
|
asFilters?: FilterXdo[];
|
|
4533
4868
|
uncheckedAs?: boolean;
|
|
4534
4869
|
}) => Statement;
|
|
@@ -4548,6 +4883,7 @@ declare const s: {
|
|
|
4548
4883
|
sort?: Value;
|
|
4549
4884
|
disabled?: boolean;
|
|
4550
4885
|
description?: string;
|
|
4886
|
+
mock?: MockMap;
|
|
4551
4887
|
asFilters?: FilterXdo[];
|
|
4552
4888
|
uncheckedAs?: boolean;
|
|
4553
4889
|
}) => Statement;
|
|
@@ -4561,6 +4897,7 @@ declare const s: {
|
|
|
4561
4897
|
payload: Value;
|
|
4562
4898
|
disabled?: boolean;
|
|
4563
4899
|
description?: string;
|
|
4900
|
+
mock?: MockMap;
|
|
4564
4901
|
asFilters?: FilterXdo[];
|
|
4565
4902
|
uncheckedAs?: boolean;
|
|
4566
4903
|
}) => Statement;
|
|
@@ -4574,6 +4911,7 @@ declare const s: {
|
|
|
4574
4911
|
filePath: Value;
|
|
4575
4912
|
disabled?: boolean;
|
|
4576
4913
|
description?: string;
|
|
4914
|
+
mock?: MockMap;
|
|
4577
4915
|
asFilters?: FilterXdo[];
|
|
4578
4916
|
uncheckedAs?: boolean;
|
|
4579
4917
|
}) => Statement;
|
|
@@ -4584,6 +4922,7 @@ declare const s: {
|
|
|
4584
4922
|
filePath: Value;
|
|
4585
4923
|
disabled?: boolean;
|
|
4586
4924
|
description?: string;
|
|
4925
|
+
mock?: MockMap;
|
|
4587
4926
|
asFilters?: FilterXdo[];
|
|
4588
4927
|
uncheckedAs?: boolean;
|
|
4589
4928
|
}) => Statement;
|
|
@@ -4594,6 +4933,7 @@ declare const s: {
|
|
|
4594
4933
|
path: Value;
|
|
4595
4934
|
disabled?: boolean;
|
|
4596
4935
|
description?: string;
|
|
4936
|
+
mock?: MockMap;
|
|
4597
4937
|
asFilters?: FilterXdo[];
|
|
4598
4938
|
uncheckedAs?: boolean;
|
|
4599
4939
|
}) => Statement;
|
|
@@ -4604,6 +4944,7 @@ declare const s: {
|
|
|
4604
4944
|
filePath: Value;
|
|
4605
4945
|
disabled?: boolean;
|
|
4606
4946
|
description?: string;
|
|
4947
|
+
mock?: MockMap;
|
|
4607
4948
|
asFilters?: FilterXdo[];
|
|
4608
4949
|
uncheckedAs?: boolean;
|
|
4609
4950
|
}) => Statement;
|
|
@@ -4616,6 +4957,7 @@ declare const s: {
|
|
|
4616
4957
|
ttl?: Value;
|
|
4617
4958
|
disabled?: boolean;
|
|
4618
4959
|
description?: string;
|
|
4960
|
+
mock?: MockMap;
|
|
4619
4961
|
asFilters?: FilterXdo[];
|
|
4620
4962
|
uncheckedAs?: boolean;
|
|
4621
4963
|
}) => Statement;
|
|
@@ -4628,6 +4970,7 @@ declare const s: {
|
|
|
4628
4970
|
metadata?: Value;
|
|
4629
4971
|
disabled?: boolean;
|
|
4630
4972
|
description?: string;
|
|
4973
|
+
mock?: MockMap;
|
|
4631
4974
|
asFilters?: FilterXdo[];
|
|
4632
4975
|
uncheckedAs?: boolean;
|
|
4633
4976
|
}) => Statement;
|
|
@@ -4640,114 +4983,126 @@ declare const s: {
|
|
|
4640
4983
|
readonly push: Appender<typeof generated.array.push, false>;
|
|
4641
4984
|
readonly unshift: Appender<typeof generated.array.unshift, false>;
|
|
4642
4985
|
readonly merge: Appender<typeof generated.array.merge, true>;
|
|
4643
|
-
readonly difference: (a
|
|
4986
|
+
readonly difference: (a: {
|
|
4644
4987
|
as?: string;
|
|
4645
|
-
expr
|
|
4646
|
-
value
|
|
4988
|
+
expr: Value;
|
|
4989
|
+
value: Value;
|
|
4647
4990
|
by?: Value;
|
|
4648
4991
|
disabled?: boolean;
|
|
4649
4992
|
description?: string;
|
|
4993
|
+
mock?: MockMap;
|
|
4650
4994
|
asFilters?: FilterXdo[];
|
|
4651
4995
|
uncheckedAs?: boolean;
|
|
4652
4996
|
}) => Statement;
|
|
4653
|
-
readonly every: (a
|
|
4654
|
-
expr
|
|
4997
|
+
readonly every: (a: {
|
|
4998
|
+
expr: Value;
|
|
4655
4999
|
as?: string;
|
|
4656
|
-
if
|
|
5000
|
+
if: Condition;
|
|
4657
5001
|
disabled?: boolean;
|
|
4658
5002
|
description?: string;
|
|
5003
|
+
mock?: MockMap;
|
|
4659
5004
|
asFilters?: FilterXdo[];
|
|
4660
5005
|
uncheckedAs?: boolean;
|
|
4661
5006
|
output?: OutputAuthored;
|
|
4662
5007
|
}) => Statement;
|
|
4663
|
-
readonly filter: (a
|
|
4664
|
-
expr
|
|
5008
|
+
readonly filter: (a: {
|
|
5009
|
+
expr: Value;
|
|
4665
5010
|
as?: string;
|
|
4666
|
-
if
|
|
5011
|
+
if: Condition;
|
|
4667
5012
|
disabled?: boolean;
|
|
4668
5013
|
description?: string;
|
|
5014
|
+
mock?: MockMap;
|
|
4669
5015
|
asFilters?: FilterXdo[];
|
|
4670
5016
|
uncheckedAs?: boolean;
|
|
4671
5017
|
}) => Statement;
|
|
4672
|
-
readonly filter_count: (a
|
|
4673
|
-
expr
|
|
5018
|
+
readonly filter_count: (a: {
|
|
5019
|
+
expr: Value;
|
|
4674
5020
|
as?: string;
|
|
4675
|
-
if
|
|
5021
|
+
if: Condition;
|
|
4676
5022
|
disabled?: boolean;
|
|
4677
5023
|
description?: string;
|
|
5024
|
+
mock?: MockMap;
|
|
4678
5025
|
asFilters?: FilterXdo[];
|
|
4679
5026
|
uncheckedAs?: boolean;
|
|
4680
5027
|
}) => Statement;
|
|
4681
|
-
readonly find: (a
|
|
4682
|
-
expr
|
|
5028
|
+
readonly find: (a: {
|
|
5029
|
+
expr: Value;
|
|
4683
5030
|
as?: string;
|
|
4684
|
-
if
|
|
5031
|
+
if: Condition;
|
|
4685
5032
|
disabled?: boolean;
|
|
4686
5033
|
description?: string;
|
|
5034
|
+
mock?: MockMap;
|
|
4687
5035
|
asFilters?: FilterXdo[];
|
|
4688
5036
|
uncheckedAs?: boolean;
|
|
4689
5037
|
output?: OutputAuthored;
|
|
4690
5038
|
}) => Statement;
|
|
4691
|
-
readonly find_index: (a
|
|
4692
|
-
expr
|
|
5039
|
+
readonly find_index: (a: {
|
|
5040
|
+
expr: Value;
|
|
4693
5041
|
as?: string;
|
|
4694
|
-
if
|
|
5042
|
+
if: Condition;
|
|
4695
5043
|
disabled?: boolean;
|
|
4696
5044
|
description?: string;
|
|
5045
|
+
mock?: MockMap;
|
|
4697
5046
|
asFilters?: FilterXdo[];
|
|
4698
5047
|
uncheckedAs?: boolean;
|
|
4699
5048
|
}) => Statement;
|
|
4700
|
-
readonly group_by: (a
|
|
5049
|
+
readonly group_by: (a: {
|
|
4701
5050
|
as?: string;
|
|
4702
|
-
expr
|
|
5051
|
+
expr: Value;
|
|
4703
5052
|
by?: Value;
|
|
4704
5053
|
disabled?: boolean;
|
|
4705
5054
|
description?: string;
|
|
5055
|
+
mock?: MockMap;
|
|
4706
5056
|
asFilters?: FilterXdo[];
|
|
4707
5057
|
uncheckedAs?: boolean;
|
|
4708
5058
|
}) => Statement;
|
|
4709
|
-
readonly has: (a
|
|
4710
|
-
expr
|
|
5059
|
+
readonly has: (a: {
|
|
5060
|
+
expr: Value;
|
|
4711
5061
|
as?: string;
|
|
4712
|
-
if
|
|
5062
|
+
if: Condition;
|
|
4713
5063
|
disabled?: boolean;
|
|
4714
5064
|
description?: string;
|
|
5065
|
+
mock?: MockMap;
|
|
4715
5066
|
asFilters?: FilterXdo[];
|
|
4716
5067
|
uncheckedAs?: boolean;
|
|
4717
5068
|
}) => Statement;
|
|
4718
|
-
readonly intersection: (a
|
|
5069
|
+
readonly intersection: (a: {
|
|
4719
5070
|
as?: string;
|
|
4720
|
-
expr
|
|
4721
|
-
value
|
|
5071
|
+
expr: Value;
|
|
5072
|
+
value: Value;
|
|
4722
5073
|
by?: Value;
|
|
4723
5074
|
disabled?: boolean;
|
|
4724
5075
|
description?: string;
|
|
5076
|
+
mock?: MockMap;
|
|
4725
5077
|
asFilters?: FilterXdo[];
|
|
4726
5078
|
uncheckedAs?: boolean;
|
|
4727
5079
|
}) => Statement;
|
|
4728
|
-
readonly partition: (a
|
|
4729
|
-
expr
|
|
5080
|
+
readonly partition: (a: {
|
|
5081
|
+
expr: Value;
|
|
4730
5082
|
as?: string;
|
|
4731
|
-
if
|
|
5083
|
+
if: Condition;
|
|
4732
5084
|
disabled?: boolean;
|
|
4733
5085
|
description?: string;
|
|
5086
|
+
mock?: MockMap;
|
|
4734
5087
|
asFilters?: FilterXdo[];
|
|
4735
5088
|
uncheckedAs?: boolean;
|
|
4736
5089
|
}) => Statement;
|
|
4737
|
-
readonly pop: (a
|
|
4738
|
-
name
|
|
5090
|
+
readonly pop: (a: {
|
|
5091
|
+
name: string;
|
|
4739
5092
|
as?: string;
|
|
4740
5093
|
disabled?: boolean;
|
|
4741
5094
|
description?: string;
|
|
5095
|
+
mock?: MockMap;
|
|
4742
5096
|
asFilters?: FilterXdo[];
|
|
4743
5097
|
uncheckedAs?: boolean;
|
|
4744
5098
|
output?: OutputAuthored;
|
|
4745
5099
|
}) => Statement;
|
|
4746
|
-
readonly shift: (a
|
|
4747
|
-
name
|
|
5100
|
+
readonly shift: (a: {
|
|
5101
|
+
name: string;
|
|
4748
5102
|
as?: string;
|
|
4749
5103
|
disabled?: boolean;
|
|
4750
5104
|
description?: string;
|
|
5105
|
+
mock?: MockMap;
|
|
4751
5106
|
asFilters?: FilterXdo[];
|
|
4752
5107
|
uncheckedAs?: boolean;
|
|
4753
5108
|
}) => Statement;
|
|
@@ -4755,99 +5110,116 @@ declare const s: {
|
|
|
4755
5110
|
readonly expect: {
|
|
4756
5111
|
readonly to_throw: typeof expectToThrow;
|
|
4757
5112
|
readonly to_match: typeof expectToMatch;
|
|
4758
|
-
readonly to_be_defined: (a
|
|
4759
|
-
expr
|
|
5113
|
+
readonly to_be_defined: (a: {
|
|
5114
|
+
expr: Value;
|
|
4760
5115
|
disabled?: boolean;
|
|
4761
5116
|
description?: string;
|
|
5117
|
+
mock?: MockMap;
|
|
4762
5118
|
}) => Statement;
|
|
4763
|
-
readonly to_be_empty: (a
|
|
4764
|
-
expr
|
|
5119
|
+
readonly to_be_empty: (a: {
|
|
5120
|
+
expr: Value;
|
|
4765
5121
|
disabled?: boolean;
|
|
4766
5122
|
description?: string;
|
|
5123
|
+
mock?: MockMap;
|
|
4767
5124
|
}) => Statement;
|
|
4768
|
-
readonly to_be_false: (a
|
|
4769
|
-
expr
|
|
5125
|
+
readonly to_be_false: (a: {
|
|
5126
|
+
expr: Value;
|
|
4770
5127
|
disabled?: boolean;
|
|
4771
5128
|
description?: string;
|
|
5129
|
+
mock?: MockMap;
|
|
4772
5130
|
}) => Statement;
|
|
4773
|
-
readonly to_be_greater_than: (a
|
|
4774
|
-
expr
|
|
4775
|
-
value
|
|
5131
|
+
readonly to_be_greater_than: (a: {
|
|
5132
|
+
expr: Value;
|
|
5133
|
+
value: Value;
|
|
4776
5134
|
disabled?: boolean;
|
|
4777
5135
|
description?: string;
|
|
5136
|
+
mock?: MockMap;
|
|
4778
5137
|
}) => Statement;
|
|
4779
|
-
readonly to_be_in_the_future: (a
|
|
4780
|
-
expr
|
|
5138
|
+
readonly to_be_in_the_future: (a: {
|
|
5139
|
+
expr: Value;
|
|
4781
5140
|
disabled?: boolean;
|
|
4782
5141
|
description?: string;
|
|
5142
|
+
mock?: MockMap;
|
|
4783
5143
|
}) => Statement;
|
|
4784
|
-
readonly to_be_in_the_past: (a
|
|
4785
|
-
expr
|
|
5144
|
+
readonly to_be_in_the_past: (a: {
|
|
5145
|
+
expr: Value;
|
|
4786
5146
|
disabled?: boolean;
|
|
4787
5147
|
description?: string;
|
|
5148
|
+
mock?: MockMap;
|
|
4788
5149
|
}) => Statement;
|
|
4789
|
-
readonly to_be_less_than: (a
|
|
4790
|
-
expr
|
|
4791
|
-
value
|
|
5150
|
+
readonly to_be_less_than: (a: {
|
|
5151
|
+
expr: Value;
|
|
5152
|
+
value: Value;
|
|
4792
5153
|
disabled?: boolean;
|
|
4793
5154
|
description?: string;
|
|
5155
|
+
mock?: MockMap;
|
|
4794
5156
|
}) => Statement;
|
|
4795
|
-
readonly to_be_null: (a
|
|
4796
|
-
expr
|
|
5157
|
+
readonly to_be_null: (a: {
|
|
5158
|
+
expr: Value;
|
|
4797
5159
|
disabled?: boolean;
|
|
4798
5160
|
description?: string;
|
|
5161
|
+
mock?: MockMap;
|
|
4799
5162
|
}) => Statement;
|
|
4800
|
-
readonly to_be_true: (a
|
|
4801
|
-
expr
|
|
5163
|
+
readonly to_be_true: (a: {
|
|
5164
|
+
expr: Value;
|
|
4802
5165
|
disabled?: boolean;
|
|
4803
5166
|
description?: string;
|
|
5167
|
+
mock?: MockMap;
|
|
4804
5168
|
}) => Statement;
|
|
4805
|
-
readonly to_be_within: (a
|
|
4806
|
-
expr
|
|
4807
|
-
min
|
|
4808
|
-
max
|
|
5169
|
+
readonly to_be_within: (a: {
|
|
5170
|
+
expr: Value;
|
|
5171
|
+
min: Value;
|
|
5172
|
+
max: Value;
|
|
4809
5173
|
disabled?: boolean;
|
|
4810
5174
|
description?: string;
|
|
5175
|
+
mock?: MockMap;
|
|
4811
5176
|
}) => Statement;
|
|
4812
|
-
readonly to_contain: (a
|
|
4813
|
-
expr
|
|
4814
|
-
value
|
|
5177
|
+
readonly to_contain: (a: {
|
|
5178
|
+
expr: Value;
|
|
5179
|
+
value: Value;
|
|
4815
5180
|
disabled?: boolean;
|
|
4816
5181
|
description?: string;
|
|
5182
|
+
mock?: MockMap;
|
|
4817
5183
|
}) => Statement;
|
|
4818
|
-
readonly to_end_with: (a
|
|
4819
|
-
expr
|
|
4820
|
-
value
|
|
5184
|
+
readonly to_end_with: (a: {
|
|
5185
|
+
expr: Value;
|
|
5186
|
+
value: Value;
|
|
4821
5187
|
disabled?: boolean;
|
|
4822
5188
|
description?: string;
|
|
5189
|
+
mock?: MockMap;
|
|
4823
5190
|
}) => Statement;
|
|
4824
|
-
readonly to_equal: (a
|
|
4825
|
-
expr
|
|
4826
|
-
value
|
|
5191
|
+
readonly to_equal: (a: {
|
|
5192
|
+
expr: Value;
|
|
5193
|
+
value: Value;
|
|
4827
5194
|
disabled?: boolean;
|
|
4828
5195
|
description?: string;
|
|
5196
|
+
mock?: MockMap;
|
|
4829
5197
|
}) => Statement;
|
|
4830
|
-
readonly to_not_be_defined: (a
|
|
4831
|
-
expr
|
|
5198
|
+
readonly to_not_be_defined: (a: {
|
|
5199
|
+
expr: Value;
|
|
4832
5200
|
disabled?: boolean;
|
|
4833
5201
|
description?: string;
|
|
5202
|
+
mock?: MockMap;
|
|
4834
5203
|
}) => Statement;
|
|
4835
|
-
readonly to_not_be_null: (a
|
|
4836
|
-
expr
|
|
5204
|
+
readonly to_not_be_null: (a: {
|
|
5205
|
+
expr: Value;
|
|
4837
5206
|
disabled?: boolean;
|
|
4838
5207
|
description?: string;
|
|
5208
|
+
mock?: MockMap;
|
|
4839
5209
|
}) => Statement;
|
|
4840
|
-
readonly to_not_equal: (a
|
|
4841
|
-
expr
|
|
4842
|
-
value
|
|
5210
|
+
readonly to_not_equal: (a: {
|
|
5211
|
+
expr: Value;
|
|
5212
|
+
value: Value;
|
|
4843
5213
|
disabled?: boolean;
|
|
4844
5214
|
description?: string;
|
|
5215
|
+
mock?: MockMap;
|
|
4845
5216
|
}) => Statement;
|
|
4846
|
-
readonly to_start_with: (a
|
|
4847
|
-
expr
|
|
4848
|
-
value
|
|
5217
|
+
readonly to_start_with: (a: {
|
|
5218
|
+
expr: Value;
|
|
5219
|
+
value: Value;
|
|
4849
5220
|
disabled?: boolean;
|
|
4850
5221
|
description?: string;
|
|
5222
|
+
mock?: MockMap;
|
|
4851
5223
|
}) => Statement;
|
|
4852
5224
|
};
|
|
4853
5225
|
readonly security: {
|
|
@@ -4859,6 +5231,7 @@ declare const s: {
|
|
|
4859
5231
|
hash_password: Value;
|
|
4860
5232
|
disabled?: boolean;
|
|
4861
5233
|
description?: string;
|
|
5234
|
+
mock?: MockMap;
|
|
4862
5235
|
asFilters?: FilterXdo[];
|
|
4863
5236
|
uncheckedAs?: boolean;
|
|
4864
5237
|
output?: OutputAuthored;
|
|
@@ -4869,6 +5242,7 @@ declare const s: {
|
|
|
4869
5242
|
format?: "object" | "base64" | Value;
|
|
4870
5243
|
disabled?: boolean;
|
|
4871
5244
|
description?: string;
|
|
5245
|
+
mock?: MockMap;
|
|
4872
5246
|
asFilters?: FilterXdo[];
|
|
4873
5247
|
uncheckedAs?: boolean;
|
|
4874
5248
|
}) => Statement;
|
|
@@ -4882,6 +5256,7 @@ declare const s: {
|
|
|
4882
5256
|
symbol_whitelist?: Value;
|
|
4883
5257
|
disabled?: boolean;
|
|
4884
5258
|
description?: string;
|
|
5259
|
+
mock?: MockMap;
|
|
4885
5260
|
asFilters?: FilterXdo[];
|
|
4886
5261
|
uncheckedAs?: boolean;
|
|
4887
5262
|
}) => Statement;
|
|
@@ -4891,6 +5266,7 @@ declare const s: {
|
|
|
4891
5266
|
format?: "object" | "base64" | Value;
|
|
4892
5267
|
disabled?: boolean;
|
|
4893
5268
|
description?: string;
|
|
5269
|
+
mock?: MockMap;
|
|
4894
5270
|
asFilters?: FilterXdo[];
|
|
4895
5271
|
uncheckedAs?: boolean;
|
|
4896
5272
|
}) => Statement;
|
|
@@ -4900,6 +5276,7 @@ declare const s: {
|
|
|
4900
5276
|
format?: "object" | "base64" | Value;
|
|
4901
5277
|
disabled?: boolean;
|
|
4902
5278
|
description?: string;
|
|
5279
|
+
mock?: MockMap;
|
|
4903
5280
|
asFilters?: FilterXdo[];
|
|
4904
5281
|
uncheckedAs?: boolean;
|
|
4905
5282
|
}) => Statement;
|
|
@@ -4911,6 +5288,7 @@ declare const s: {
|
|
|
4911
5288
|
iv: Value;
|
|
4912
5289
|
disabled?: boolean;
|
|
4913
5290
|
description?: string;
|
|
5291
|
+
mock?: MockMap;
|
|
4914
5292
|
asFilters?: FilterXdo[];
|
|
4915
5293
|
uncheckedAs?: boolean;
|
|
4916
5294
|
}) => Statement;
|
|
@@ -4922,6 +5300,7 @@ declare const s: {
|
|
|
4922
5300
|
iv: Value;
|
|
4923
5301
|
disabled?: boolean;
|
|
4924
5302
|
description?: string;
|
|
5303
|
+
mock?: MockMap;
|
|
4925
5304
|
asFilters?: FilterXdo[];
|
|
4926
5305
|
uncheckedAs?: boolean;
|
|
4927
5306
|
}) => Statement;
|
|
@@ -4935,6 +5314,7 @@ declare const s: {
|
|
|
4935
5314
|
timeDrift?: Value;
|
|
4936
5315
|
disabled?: boolean;
|
|
4937
5316
|
description?: string;
|
|
5317
|
+
mock?: MockMap;
|
|
4938
5318
|
asFilters?: FilterXdo[];
|
|
4939
5319
|
uncheckedAs?: boolean;
|
|
4940
5320
|
}) => Statement;
|
|
@@ -4948,6 +5328,7 @@ declare const s: {
|
|
|
4948
5328
|
ttl?: Value;
|
|
4949
5329
|
disabled?: boolean;
|
|
4950
5330
|
description?: string;
|
|
5331
|
+
mock?: MockMap;
|
|
4951
5332
|
asFilters?: FilterXdo[];
|
|
4952
5333
|
uncheckedAs?: boolean;
|
|
4953
5334
|
}) => Statement;
|
|
@@ -4960,6 +5341,7 @@ declare const s: {
|
|
|
4960
5341
|
timeDrift?: Value;
|
|
4961
5342
|
disabled?: boolean;
|
|
4962
5343
|
description?: string;
|
|
5344
|
+
mock?: MockMap;
|
|
4963
5345
|
asFilters?: FilterXdo[];
|
|
4964
5346
|
uncheckedAs?: boolean;
|
|
4965
5347
|
}) => Statement;
|
|
@@ -4972,6 +5354,7 @@ declare const s: {
|
|
|
4972
5354
|
ttl?: Value;
|
|
4973
5355
|
disabled?: boolean;
|
|
4974
5356
|
description?: string;
|
|
5357
|
+
mock?: MockMap;
|
|
4975
5358
|
asFilters?: FilterXdo[];
|
|
4976
5359
|
uncheckedAs?: boolean;
|
|
4977
5360
|
}) => Statement;
|
|
@@ -4980,6 +5363,7 @@ declare const s: {
|
|
|
4980
5363
|
length?: Value;
|
|
4981
5364
|
disabled?: boolean;
|
|
4982
5365
|
description?: string;
|
|
5366
|
+
mock?: MockMap;
|
|
4983
5367
|
asFilters?: FilterXdo[];
|
|
4984
5368
|
uncheckedAs?: boolean;
|
|
4985
5369
|
}) => Statement;
|
|
@@ -4989,26 +5373,20 @@ declare const s: {
|
|
|
4989
5373
|
max?: Value;
|
|
4990
5374
|
disabled?: boolean;
|
|
4991
5375
|
description?: string;
|
|
5376
|
+
mock?: MockMap;
|
|
4992
5377
|
asFilters?: FilterXdo[];
|
|
4993
5378
|
uncheckedAs?: boolean;
|
|
4994
5379
|
}) => Statement;
|
|
4995
5380
|
};
|
|
4996
5381
|
readonly object: {
|
|
4997
5382
|
readonly keys: ObjectKeys;
|
|
4998
|
-
readonly entries:
|
|
4999
|
-
|
|
5000
|
-
value?: Value;
|
|
5001
|
-
disabled?: boolean;
|
|
5002
|
-
description?: string;
|
|
5003
|
-
asFilters?: FilterXdo[];
|
|
5004
|
-
uncheckedAs?: boolean;
|
|
5005
|
-
output?: OutputAuthored;
|
|
5006
|
-
}) => Statement;
|
|
5007
|
-
readonly values: (a?: {
|
|
5383
|
+
readonly entries: ObjectEntries;
|
|
5384
|
+
readonly values: (a: {
|
|
5008
5385
|
as?: string;
|
|
5009
|
-
value
|
|
5386
|
+
value: Value;
|
|
5010
5387
|
disabled?: boolean;
|
|
5011
5388
|
description?: string;
|
|
5389
|
+
mock?: MockMap;
|
|
5012
5390
|
asFilters?: FilterXdo[];
|
|
5013
5391
|
uncheckedAs?: boolean;
|
|
5014
5392
|
output?: OutputAuthored;
|
|
@@ -5028,6 +5406,7 @@ declare const s: {
|
|
|
5028
5406
|
longitude_2: Value;
|
|
5029
5407
|
disabled?: boolean;
|
|
5030
5408
|
description?: string;
|
|
5409
|
+
mock?: MockMap;
|
|
5031
5410
|
asFilters?: FilterXdo[];
|
|
5032
5411
|
uncheckedAs?: boolean;
|
|
5033
5412
|
}) => Statement;
|
|
@@ -5035,6 +5414,7 @@ declare const s: {
|
|
|
5035
5414
|
as?: string;
|
|
5036
5415
|
disabled?: boolean;
|
|
5037
5416
|
description?: string;
|
|
5417
|
+
mock?: MockMap;
|
|
5038
5418
|
asFilters?: FilterXdo[];
|
|
5039
5419
|
uncheckedAs?: boolean;
|
|
5040
5420
|
}) => Statement;
|
|
@@ -5042,6 +5422,7 @@ declare const s: {
|
|
|
5042
5422
|
as?: string;
|
|
5043
5423
|
disabled?: boolean;
|
|
5044
5424
|
description?: string;
|
|
5425
|
+
mock?: MockMap;
|
|
5045
5426
|
asFilters?: FilterXdo[];
|
|
5046
5427
|
uncheckedAs?: boolean;
|
|
5047
5428
|
}) => Statement;
|
|
@@ -5049,6 +5430,7 @@ declare const s: {
|
|
|
5049
5430
|
as?: string;
|
|
5050
5431
|
disabled?: boolean;
|
|
5051
5432
|
description?: string;
|
|
5433
|
+
mock?: MockMap;
|
|
5052
5434
|
asFilters?: FilterXdo[];
|
|
5053
5435
|
uncheckedAs?: boolean;
|
|
5054
5436
|
}) => Statement;
|
|
@@ -5066,6 +5448,7 @@ declare const s: {
|
|
|
5066
5448
|
scheduled_at?: Value;
|
|
5067
5449
|
disabled?: boolean;
|
|
5068
5450
|
description?: string;
|
|
5451
|
+
mock?: MockMap;
|
|
5069
5452
|
asFilters?: FilterXdo[];
|
|
5070
5453
|
uncheckedAs?: boolean;
|
|
5071
5454
|
}) => Statement;
|
|
@@ -5073,12 +5456,14 @@ declare const s: {
|
|
|
5073
5456
|
value: Value;
|
|
5074
5457
|
disabled?: boolean;
|
|
5075
5458
|
description?: string;
|
|
5459
|
+
mock?: MockMap;
|
|
5076
5460
|
}) => Statement;
|
|
5077
5461
|
readonly template_engine: (a: {
|
|
5078
5462
|
as?: string;
|
|
5079
5463
|
value: Value;
|
|
5080
5464
|
disabled?: boolean;
|
|
5081
5465
|
description?: string;
|
|
5466
|
+
mock?: MockMap;
|
|
5082
5467
|
asFilters?: FilterXdo[];
|
|
5083
5468
|
uncheckedAs?: boolean;
|
|
5084
5469
|
}) => Statement;
|
|
@@ -5094,6 +5479,7 @@ declare const s: {
|
|
|
5094
5479
|
filedata: Value;
|
|
5095
5480
|
disabled?: boolean;
|
|
5096
5481
|
description?: string;
|
|
5482
|
+
mock?: MockMap;
|
|
5097
5483
|
asFilters?: FilterXdo[];
|
|
5098
5484
|
uncheckedAs?: boolean;
|
|
5099
5485
|
output?: OutputAuthored;
|
|
@@ -5102,13 +5488,14 @@ declare const s: {
|
|
|
5102
5488
|
pathname: Value;
|
|
5103
5489
|
disabled?: boolean;
|
|
5104
5490
|
description?: string;
|
|
5105
|
-
|
|
5491
|
+
mock?: MockMap;
|
|
5106
5492
|
}) => Statement;
|
|
5107
5493
|
readonly read_file_resource: (a: {
|
|
5108
5494
|
as?: string;
|
|
5109
5495
|
value: Value;
|
|
5110
5496
|
disabled?: boolean;
|
|
5111
5497
|
description?: string;
|
|
5498
|
+
mock?: MockMap;
|
|
5112
5499
|
asFilters?: FilterXdo[];
|
|
5113
5500
|
uncheckedAs?: boolean;
|
|
5114
5501
|
}) => Statement;
|
|
@@ -5118,6 +5505,7 @@ declare const s: {
|
|
|
5118
5505
|
ttl?: Value;
|
|
5119
5506
|
disabled?: boolean;
|
|
5120
5507
|
description?: string;
|
|
5508
|
+
mock?: MockMap;
|
|
5121
5509
|
asFilters?: FilterXdo[];
|
|
5122
5510
|
uncheckedAs?: boolean;
|
|
5123
5511
|
}) => Statement;
|
|
@@ -5126,8 +5514,10 @@ declare const s: {
|
|
|
5126
5514
|
as?: string;
|
|
5127
5515
|
ids?: Value;
|
|
5128
5516
|
timeout?: Value;
|
|
5517
|
+
terminate?: Value;
|
|
5129
5518
|
disabled?: boolean;
|
|
5130
5519
|
description?: string;
|
|
5520
|
+
mock?: MockMap;
|
|
5131
5521
|
asFilters?: FilterXdo[];
|
|
5132
5522
|
uncheckedAs?: boolean;
|
|
5133
5523
|
}) => Statement;
|
|
@@ -5145,12 +5535,14 @@ declare const s: {
|
|
|
5145
5535
|
connection?: Value;
|
|
5146
5536
|
disabled?: boolean;
|
|
5147
5537
|
description?: string;
|
|
5538
|
+
mock?: MockMap;
|
|
5148
5539
|
}) => Statement;
|
|
5149
5540
|
log_bulk: (a: {
|
|
5150
5541
|
entries: Value;
|
|
5151
5542
|
connection?: Value;
|
|
5152
5543
|
disabled?: boolean;
|
|
5153
5544
|
description?: string;
|
|
5545
|
+
mock?: MockMap;
|
|
5154
5546
|
}) => Statement;
|
|
5155
5547
|
metric: (a: {
|
|
5156
5548
|
metric: Value;
|
|
@@ -5165,12 +5557,14 @@ declare const s: {
|
|
|
5165
5557
|
connection?: Value;
|
|
5166
5558
|
disabled?: boolean;
|
|
5167
5559
|
description?: string;
|
|
5560
|
+
mock?: MockMap;
|
|
5168
5561
|
}) => Statement;
|
|
5169
5562
|
metric_bulk: (a: {
|
|
5170
5563
|
entries: Value;
|
|
5171
5564
|
connection?: Value;
|
|
5172
5565
|
disabled?: boolean;
|
|
5173
5566
|
description?: string;
|
|
5567
|
+
mock?: MockMap;
|
|
5174
5568
|
}) => Statement;
|
|
5175
5569
|
};
|
|
5176
5570
|
readonly debug: {
|
|
@@ -5178,67 +5572,73 @@ declare const s: {
|
|
|
5178
5572
|
value: Value;
|
|
5179
5573
|
disabled?: boolean;
|
|
5180
5574
|
description?: string;
|
|
5575
|
+
mock?: MockMap;
|
|
5181
5576
|
}) => Statement;
|
|
5182
5577
|
stop: (a: {
|
|
5183
5578
|
value: Value;
|
|
5184
5579
|
disabled?: boolean;
|
|
5185
5580
|
description?: string;
|
|
5581
|
+
mock?: MockMap;
|
|
5186
5582
|
}) => Statement;
|
|
5187
5583
|
};
|
|
5188
5584
|
readonly math: {
|
|
5189
5585
|
add: (a: {
|
|
5190
|
-
name
|
|
5586
|
+
name: string;
|
|
5191
5587
|
value: Value;
|
|
5192
5588
|
disabled?: boolean;
|
|
5193
5589
|
description?: string;
|
|
5194
|
-
|
|
5590
|
+
mock?: MockMap;
|
|
5195
5591
|
}) => Statement;
|
|
5196
5592
|
bitwise: {
|
|
5197
5593
|
and: (a: {
|
|
5198
|
-
name
|
|
5594
|
+
name: string;
|
|
5199
5595
|
value: Value;
|
|
5200
5596
|
disabled?: boolean;
|
|
5201
5597
|
description?: string;
|
|
5202
|
-
|
|
5598
|
+
mock?: MockMap;
|
|
5203
5599
|
}) => Statement;
|
|
5204
5600
|
or: (a: {
|
|
5205
|
-
name
|
|
5601
|
+
name: string;
|
|
5206
5602
|
value: Value;
|
|
5207
5603
|
disabled?: boolean;
|
|
5208
5604
|
description?: string;
|
|
5209
|
-
|
|
5605
|
+
mock?: MockMap;
|
|
5210
5606
|
}) => Statement;
|
|
5211
5607
|
xor: (a: {
|
|
5212
|
-
name
|
|
5608
|
+
name: string;
|
|
5213
5609
|
value: Value;
|
|
5214
5610
|
disabled?: boolean;
|
|
5215
5611
|
description?: string;
|
|
5216
|
-
|
|
5612
|
+
mock?: MockMap;
|
|
5217
5613
|
}) => Statement;
|
|
5218
5614
|
};
|
|
5219
5615
|
div: (a: {
|
|
5220
|
-
name
|
|
5616
|
+
name: string;
|
|
5221
5617
|
value: Value;
|
|
5222
5618
|
disabled?: boolean;
|
|
5223
5619
|
description?: string;
|
|
5620
|
+
mock?: MockMap;
|
|
5224
5621
|
}) => Statement;
|
|
5225
5622
|
mod: (a: {
|
|
5226
|
-
name
|
|
5623
|
+
name: string;
|
|
5227
5624
|
value: Value;
|
|
5228
5625
|
disabled?: boolean;
|
|
5229
5626
|
description?: string;
|
|
5627
|
+
mock?: MockMap;
|
|
5230
5628
|
}) => Statement;
|
|
5231
5629
|
mul: (a: {
|
|
5232
|
-
name
|
|
5630
|
+
name: string;
|
|
5233
5631
|
value: Value;
|
|
5234
5632
|
disabled?: boolean;
|
|
5235
5633
|
description?: string;
|
|
5634
|
+
mock?: MockMap;
|
|
5236
5635
|
}) => Statement;
|
|
5237
5636
|
sub: (a: {
|
|
5238
|
-
name
|
|
5637
|
+
name: string;
|
|
5239
5638
|
value: Value;
|
|
5240
5639
|
disabled?: boolean;
|
|
5241
5640
|
description?: string;
|
|
5641
|
+
mock?: MockMap;
|
|
5242
5642
|
}) => Statement;
|
|
5243
5643
|
};
|
|
5244
5644
|
readonly redis: {
|
|
@@ -5247,6 +5647,7 @@ declare const s: {
|
|
|
5247
5647
|
key: Value;
|
|
5248
5648
|
disabled?: boolean;
|
|
5249
5649
|
description?: string;
|
|
5650
|
+
mock?: MockMap;
|
|
5250
5651
|
asFilters?: FilterXdo[];
|
|
5251
5652
|
uncheckedAs?: boolean;
|
|
5252
5653
|
}) => Statement;
|
|
@@ -5256,6 +5657,7 @@ declare const s: {
|
|
|
5256
5657
|
by?: Value;
|
|
5257
5658
|
disabled?: boolean;
|
|
5258
5659
|
description?: string;
|
|
5660
|
+
mock?: MockMap;
|
|
5259
5661
|
asFilters?: FilterXdo[];
|
|
5260
5662
|
uncheckedAs?: boolean;
|
|
5261
5663
|
}) => Statement;
|
|
@@ -5263,12 +5665,14 @@ declare const s: {
|
|
|
5263
5665
|
key: Value;
|
|
5264
5666
|
disabled?: boolean;
|
|
5265
5667
|
description?: string;
|
|
5668
|
+
mock?: MockMap;
|
|
5266
5669
|
}) => Statement;
|
|
5267
5670
|
get: (a: {
|
|
5268
5671
|
as?: string;
|
|
5269
5672
|
key: Value;
|
|
5270
5673
|
disabled?: boolean;
|
|
5271
5674
|
description?: string;
|
|
5675
|
+
mock?: MockMap;
|
|
5272
5676
|
asFilters?: FilterXdo[];
|
|
5273
5677
|
uncheckedAs?: boolean;
|
|
5274
5678
|
}) => Statement;
|
|
@@ -5277,6 +5681,7 @@ declare const s: {
|
|
|
5277
5681
|
key: Value;
|
|
5278
5682
|
disabled?: boolean;
|
|
5279
5683
|
description?: string;
|
|
5684
|
+
mock?: MockMap;
|
|
5280
5685
|
asFilters?: FilterXdo[];
|
|
5281
5686
|
uncheckedAs?: boolean;
|
|
5282
5687
|
}) => Statement;
|
|
@@ -5286,6 +5691,7 @@ declare const s: {
|
|
|
5286
5691
|
by?: Value;
|
|
5287
5692
|
disabled?: boolean;
|
|
5288
5693
|
description?: string;
|
|
5694
|
+
mock?: MockMap;
|
|
5289
5695
|
asFilters?: FilterXdo[];
|
|
5290
5696
|
uncheckedAs?: boolean;
|
|
5291
5697
|
}) => Statement;
|
|
@@ -5294,6 +5700,7 @@ declare const s: {
|
|
|
5294
5700
|
search: Value;
|
|
5295
5701
|
disabled?: boolean;
|
|
5296
5702
|
description?: string;
|
|
5703
|
+
mock?: MockMap;
|
|
5297
5704
|
asFilters?: FilterXdo[];
|
|
5298
5705
|
uncheckedAs?: boolean;
|
|
5299
5706
|
}) => Statement;
|
|
@@ -5303,6 +5710,7 @@ declare const s: {
|
|
|
5303
5710
|
count?: Value;
|
|
5304
5711
|
disabled?: boolean;
|
|
5305
5712
|
description?: string;
|
|
5713
|
+
mock?: MockMap;
|
|
5306
5714
|
asFilters?: FilterXdo[];
|
|
5307
5715
|
uncheckedAs?: boolean;
|
|
5308
5716
|
}) => Statement;
|
|
@@ -5312,6 +5720,7 @@ declare const s: {
|
|
|
5312
5720
|
value: Value;
|
|
5313
5721
|
disabled?: boolean;
|
|
5314
5722
|
description?: string;
|
|
5723
|
+
mock?: MockMap;
|
|
5315
5724
|
asFilters?: FilterXdo[];
|
|
5316
5725
|
uncheckedAs?: boolean;
|
|
5317
5726
|
}) => Statement;
|
|
@@ -5322,6 +5731,7 @@ declare const s: {
|
|
|
5322
5731
|
stop?: Value;
|
|
5323
5732
|
disabled?: boolean;
|
|
5324
5733
|
description?: string;
|
|
5734
|
+
mock?: MockMap;
|
|
5325
5735
|
asFilters?: FilterXdo[];
|
|
5326
5736
|
uncheckedAs?: boolean;
|
|
5327
5737
|
}) => Statement;
|
|
@@ -5333,6 +5743,7 @@ declare const s: {
|
|
|
5333
5743
|
error?: Value;
|
|
5334
5744
|
disabled?: boolean;
|
|
5335
5745
|
description?: string;
|
|
5746
|
+
mock?: MockMap;
|
|
5336
5747
|
asFilters?: FilterXdo[];
|
|
5337
5748
|
uncheckedAs?: boolean;
|
|
5338
5749
|
}) => Statement;
|
|
@@ -5343,6 +5754,7 @@ declare const s: {
|
|
|
5343
5754
|
count?: Value;
|
|
5344
5755
|
disabled?: boolean;
|
|
5345
5756
|
description?: string;
|
|
5757
|
+
mock?: MockMap;
|
|
5346
5758
|
asFilters?: FilterXdo[];
|
|
5347
5759
|
uncheckedAs?: boolean;
|
|
5348
5760
|
}) => Statement;
|
|
@@ -5354,6 +5766,7 @@ declare const s: {
|
|
|
5354
5766
|
create_only?: Value;
|
|
5355
5767
|
disabled?: boolean;
|
|
5356
5768
|
description?: string;
|
|
5769
|
+
mock?: MockMap;
|
|
5357
5770
|
asFilters?: FilterXdo[];
|
|
5358
5771
|
uncheckedAs?: boolean;
|
|
5359
5772
|
}) => Statement;
|
|
@@ -5363,6 +5776,7 @@ declare const s: {
|
|
|
5363
5776
|
count?: Value;
|
|
5364
5777
|
disabled?: boolean;
|
|
5365
5778
|
description?: string;
|
|
5779
|
+
mock?: MockMap;
|
|
5366
5780
|
asFilters?: FilterXdo[];
|
|
5367
5781
|
uncheckedAs?: boolean;
|
|
5368
5782
|
}) => Statement;
|
|
@@ -5372,94 +5786,106 @@ declare const s: {
|
|
|
5372
5786
|
value: Value;
|
|
5373
5787
|
disabled?: boolean;
|
|
5374
5788
|
description?: string;
|
|
5789
|
+
mock?: MockMap;
|
|
5375
5790
|
asFilters?: FilterXdo[];
|
|
5376
5791
|
uncheckedAs?: boolean;
|
|
5377
5792
|
}) => Statement;
|
|
5378
5793
|
};
|
|
5379
5794
|
readonly text: {
|
|
5380
5795
|
append: (a: {
|
|
5381
|
-
name
|
|
5796
|
+
name: string;
|
|
5382
5797
|
value: Value;
|
|
5383
5798
|
disabled?: boolean;
|
|
5384
5799
|
description?: string;
|
|
5800
|
+
mock?: MockMap;
|
|
5385
5801
|
}) => Statement;
|
|
5386
5802
|
contains: (a: {
|
|
5387
|
-
name
|
|
5803
|
+
name: string;
|
|
5388
5804
|
as?: string;
|
|
5389
5805
|
value: Value;
|
|
5390
5806
|
disabled?: boolean;
|
|
5391
5807
|
description?: string;
|
|
5808
|
+
mock?: MockMap;
|
|
5392
5809
|
asFilters?: FilterXdo[];
|
|
5393
5810
|
uncheckedAs?: boolean;
|
|
5394
5811
|
}) => Statement;
|
|
5395
5812
|
ends_with: (a: {
|
|
5396
|
-
name
|
|
5813
|
+
name: string;
|
|
5397
5814
|
as?: string;
|
|
5398
5815
|
value: Value;
|
|
5399
5816
|
disabled?: boolean;
|
|
5400
5817
|
description?: string;
|
|
5818
|
+
mock?: MockMap;
|
|
5401
5819
|
asFilters?: FilterXdo[];
|
|
5402
5820
|
uncheckedAs?: boolean;
|
|
5403
5821
|
}) => Statement;
|
|
5404
5822
|
icontains: (a: {
|
|
5405
|
-
name
|
|
5823
|
+
name: string;
|
|
5406
5824
|
as?: string;
|
|
5407
5825
|
value: Value;
|
|
5408
5826
|
disabled?: boolean;
|
|
5409
5827
|
description?: string;
|
|
5828
|
+
mock?: MockMap;
|
|
5410
5829
|
asFilters?: FilterXdo[];
|
|
5411
5830
|
uncheckedAs?: boolean;
|
|
5412
5831
|
}) => Statement;
|
|
5413
5832
|
iends_with: (a: {
|
|
5414
|
-
name
|
|
5833
|
+
name: string;
|
|
5415
5834
|
as?: string;
|
|
5416
5835
|
value: Value;
|
|
5417
5836
|
disabled?: boolean;
|
|
5418
5837
|
description?: string;
|
|
5838
|
+
mock?: MockMap;
|
|
5419
5839
|
asFilters?: FilterXdo[];
|
|
5420
5840
|
uncheckedAs?: boolean;
|
|
5421
5841
|
}) => Statement;
|
|
5422
5842
|
istarts_with: (a: {
|
|
5423
|
-
name
|
|
5843
|
+
name: string;
|
|
5424
5844
|
as?: string;
|
|
5425
5845
|
value: Value;
|
|
5426
5846
|
disabled?: boolean;
|
|
5427
5847
|
description?: string;
|
|
5848
|
+
mock?: MockMap;
|
|
5428
5849
|
asFilters?: FilterXdo[];
|
|
5429
5850
|
uncheckedAs?: boolean;
|
|
5430
5851
|
}) => Statement;
|
|
5431
5852
|
ltrim: (a: {
|
|
5432
|
-
name
|
|
5853
|
+
name: string;
|
|
5433
5854
|
value: Value;
|
|
5434
5855
|
disabled?: boolean;
|
|
5435
5856
|
description?: string;
|
|
5857
|
+
mock?: MockMap;
|
|
5436
5858
|
}) => Statement;
|
|
5437
5859
|
prepend: (a: {
|
|
5438
|
-
name
|
|
5860
|
+
name: string;
|
|
5439
5861
|
value: Value;
|
|
5440
5862
|
disabled?: boolean;
|
|
5441
5863
|
description?: string;
|
|
5864
|
+
mock?: MockMap;
|
|
5442
5865
|
}) => Statement;
|
|
5443
5866
|
rtrim: (a: {
|
|
5444
|
-
name
|
|
5867
|
+
name: string;
|
|
5445
5868
|
value: Value;
|
|
5446
5869
|
disabled?: boolean;
|
|
5447
5870
|
description?: string;
|
|
5871
|
+
mock?: MockMap;
|
|
5448
5872
|
}) => Statement;
|
|
5449
5873
|
starts_with: (a: {
|
|
5450
|
-
name
|
|
5874
|
+
name: string;
|
|
5451
5875
|
as?: string;
|
|
5452
5876
|
value: Value;
|
|
5453
5877
|
disabled?: boolean;
|
|
5454
5878
|
description?: string;
|
|
5879
|
+
mock?: MockMap;
|
|
5455
5880
|
asFilters?: FilterXdo[];
|
|
5456
5881
|
uncheckedAs?: boolean;
|
|
5457
5882
|
}) => Statement;
|
|
5458
5883
|
trim: (a: {
|
|
5459
|
-
name
|
|
5884
|
+
name: string;
|
|
5460
5885
|
value: Value;
|
|
5461
5886
|
disabled?: boolean;
|
|
5462
5887
|
description?: string;
|
|
5888
|
+
mock?: MockMap;
|
|
5463
5889
|
}) => Statement;
|
|
5464
5890
|
};
|
|
5465
5891
|
readonly zip: {
|
|
@@ -5471,6 +5897,7 @@ declare const s: {
|
|
|
5471
5897
|
password_encryption?: Value | null;
|
|
5472
5898
|
disabled?: boolean;
|
|
5473
5899
|
description?: string;
|
|
5900
|
+
mock?: MockMap;
|
|
5474
5901
|
}) => Statement;
|
|
5475
5902
|
create_archive: (a: {
|
|
5476
5903
|
as?: string;
|
|
@@ -5479,6 +5906,7 @@ declare const s: {
|
|
|
5479
5906
|
password_encryption?: "standard" | "AES-128" | "AES-192" | "AES-256" | Value;
|
|
5480
5907
|
disabled?: boolean;
|
|
5481
5908
|
description?: string;
|
|
5909
|
+
mock?: MockMap;
|
|
5482
5910
|
asFilters?: FilterXdo[];
|
|
5483
5911
|
uncheckedAs?: boolean;
|
|
5484
5912
|
}) => Statement;
|
|
@@ -5488,6 +5916,7 @@ declare const s: {
|
|
|
5488
5916
|
password?: Value | null;
|
|
5489
5917
|
disabled?: boolean;
|
|
5490
5918
|
description?: string;
|
|
5919
|
+
mock?: MockMap;
|
|
5491
5920
|
}) => Statement;
|
|
5492
5921
|
extract: (a: {
|
|
5493
5922
|
as?: string;
|
|
@@ -5495,6 +5924,7 @@ declare const s: {
|
|
|
5495
5924
|
password?: Value | null;
|
|
5496
5925
|
disabled?: boolean;
|
|
5497
5926
|
description?: string;
|
|
5927
|
+
mock?: MockMap;
|
|
5498
5928
|
asFilters?: FilterXdo[];
|
|
5499
5929
|
uncheckedAs?: boolean;
|
|
5500
5930
|
}) => Statement;
|
|
@@ -5504,6 +5934,7 @@ declare const s: {
|
|
|
5504
5934
|
password?: Value | null;
|
|
5505
5935
|
disabled?: boolean;
|
|
5506
5936
|
description?: string;
|
|
5937
|
+
mock?: MockMap;
|
|
5507
5938
|
asFilters?: FilterXdo[];
|
|
5508
5939
|
uncheckedAs?: boolean;
|
|
5509
5940
|
}) => Statement;
|
|
@@ -5603,4 +6034,4 @@ declare function compile(fn: FunctionDef): FunctionXdo;
|
|
|
5603
6034
|
*/
|
|
5604
6035
|
declare function ignored(value: Value): Value;
|
|
5605
6036
|
|
|
5606
|
-
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,
|
|
6037
|
+
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 };
|