@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.
Files changed (290) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +33 -37
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-3J6YRVFL.js → agent-file-refresh-DBHTEFYM.js} +12 -12
  5. package/dist/{agent-skill-command-VWDMQWCT.js → agent-skill-command-LHNTU7MH.js} +74 -73
  6. package/dist/{answer-shape-AVZSKBR6.js → answer-shape-ZRQS7ZC4.js} +5 -5
  7. package/dist/{backend-dir-ISP7RVF2.js → backend-dir-AXR43HNV.js} +11 -11
  8. package/dist/{backend-slot-DZAUHLTS.js → backend-slot-7BATLL3X.js} +4 -4
  9. package/dist/bin.js +64 -63
  10. package/dist/{branch-IJTBZZFO.js → branch-SJKKUCMZ.js} +9 -9
  11. package/dist/branch-commands-KGR52SZU.js +80 -0
  12. package/dist/bundle.d.ts +2 -2
  13. package/dist/bundle.js +15 -69
  14. package/dist/{capture-GW5KNKMB.js → capture-RYBJE25P.js} +5 -5
  15. package/dist/{chunk-Z3DQ7ULY.js → chunk-23GEFHRX.js} +236 -17
  16. package/dist/{chunk-3H7R4ISR.js → chunk-2DUYJR5N.js} +2 -2
  17. package/dist/{chunk-MFWF2NZJ.js → chunk-2H5BQRHF.js} +2 -2
  18. package/dist/{chunk-O44MJTLR.js → chunk-35SI4GBM.js} +3 -3
  19. package/dist/{chunk-QKHNJ7LE.js → chunk-3ZV23FVR.js} +5 -5
  20. package/dist/{chunk-HKI5Y5KW.js → chunk-47XIVDJ6.js} +14 -14
  21. package/dist/{chunk-ICK36EGF.js → chunk-4EVDCSEY.js} +2 -2
  22. package/dist/{chunk-FBSGFPZ4.js → chunk-4XGZ325S.js} +3 -3
  23. package/dist/{chunk-EYVIUX2T.js → chunk-4XYXUK5H.js} +76 -33
  24. package/dist/{chunk-MAXDJZQR.js → chunk-4ZBXS7YN.js} +8 -8
  25. package/dist/{chunk-ZMJRAMLA.js → chunk-52QAENY6.js} +14 -14
  26. package/dist/{chunk-2LF734YB.js → chunk-54CJ74BH.js} +4 -4
  27. package/dist/{chunk-3SZ7QRYA.js → chunk-57PGTPT3.js} +8 -8
  28. package/dist/{chunk-IKXXTRMN.js → chunk-64UVVLDT.js} +4 -4
  29. package/dist/{chunk-EQXHUWUO.js → chunk-6FCAFWD5.js} +2 -2
  30. package/dist/{chunk-4MX5LMPQ.js → chunk-6ODQ5GDZ.js} +2 -2
  31. package/dist/{chunk-HK554MDD.js → chunk-74YCPI4G.js} +7 -7
  32. package/dist/{chunk-Y5XAPLZS.js → chunk-7UQZ7C4W.js} +4 -4
  33. package/dist/{chunk-CJDPSCMX.js → chunk-7ZVQIKNL.js} +3 -3
  34. package/dist/{chunk-RVAEPPRH.js → chunk-AICWDCLJ.js} +2 -2
  35. package/dist/{chunk-WS4BA75E.js → chunk-AJBOGO5U.js} +4 -4
  36. package/dist/{chunk-2FDHIBEU.js → chunk-AJQFUJEQ.js} +8 -8
  37. package/dist/{chunk-2KOB4QPW.js → chunk-C7AYP4H6.js} +29 -20
  38. package/dist/{chunk-XCFQLP6G.js → chunk-DJMGDCVX.js} +8 -8
  39. package/dist/{chunk-VBSCWV5H.js → chunk-DLD4FVRP.js} +54 -54
  40. package/dist/{chunk-Q7DGTQ5G.js → chunk-E34VGSCI.js} +2 -1
  41. package/dist/{chunk-YR3MNGWZ.js → chunk-E5M5P23K.js} +8 -8
  42. package/dist/{chunk-HJZUI2ZU.js → chunk-EAZTRU75.js} +2 -2
  43. package/dist/{chunk-QX5XQEYB.js → chunk-EINZSVEU.js} +5 -5
  44. package/dist/{chunk-KMKUH2IO.js → chunk-EPB6FAR5.js} +5 -5
  45. package/dist/chunk-EUAU4QKI.js +67 -0
  46. package/dist/{chunk-IDOVZLPK.js → chunk-EXJ4Q5F6.js} +2 -2
  47. package/dist/{chunk-IHL2O7VY.js → chunk-F3JK5RIY.js} +3 -2
  48. package/dist/{chunk-W2QFR3ZJ.js → chunk-FIOC7RSU.js} +2 -2
  49. package/dist/{chunk-YEH5OIPF.js → chunk-FMXPV5JI.js} +39 -11
  50. package/dist/{chunk-GVHWIDEJ.js → chunk-FRJB3NTE.js} +10 -5
  51. package/dist/{chunk-VIRFG3WG.js → chunk-FTFAPKCW.js} +23 -7
  52. package/dist/{chunk-LL6ED5IB.js → chunk-FTS42N37.js} +2 -2
  53. package/dist/{chunk-MIS6F4HM.js → chunk-G2XSDIYS.js} +4 -4
  54. package/dist/{chunk-ZY55DO5P.js → chunk-G6BEJ3NA.js} +2 -2
  55. package/dist/{chunk-RYWNNJK5.js → chunk-GA6HTO3O.js} +2 -2
  56. package/dist/{chunk-JIKGT7DO.js → chunk-GE3JV5SI.js} +1 -1
  57. package/dist/{chunk-GCINMMFL.js → chunk-GJZMKMWO.js} +2 -2
  58. package/dist/{chunk-LW7TOIS7.js → chunk-GRZ62LLU.js} +8 -8
  59. package/dist/{chunk-6X73VFCX.js → chunk-GT7PZCTK.js} +2 -2
  60. package/dist/{chunk-HINRE3UM.js → chunk-HXPQXCOZ.js} +1821 -506
  61. package/dist/{chunk-ECQXASG3.js → chunk-IFHFJR5O.js} +2 -2
  62. package/dist/{chunk-P4OWRYE7.js → chunk-IOWNQEMW.js} +31 -31
  63. package/dist/{chunk-SUKO4SZG.js → chunk-ISIZFK5Q.js} +53 -47
  64. package/dist/{chunk-QJ25N4W6.js → chunk-IUJDUFT7.js} +4 -4
  65. package/dist/{chunk-L34DM6QB.js → chunk-JHAZK4RY.js} +3 -3
  66. package/dist/{chunk-YL3WVBR5.js → chunk-KGHJ74HF.js} +6 -6
  67. package/dist/{chunk-NUZXSIEA.js → chunk-L2O5KG5Q.js} +6 -6
  68. package/dist/{chunk-L4WG4BKJ.js → chunk-L3Q2QYIQ.js} +72 -72
  69. package/dist/{chunk-SAEIVQLP.js → chunk-LLBEPJBO.js} +3 -3
  70. package/dist/{chunk-NOW522B4.js → chunk-LWBGPPI5.js} +13 -13
  71. package/dist/{chunk-GOKRKTCX.js → chunk-MBSHONP3.js} +3 -3
  72. package/dist/{chunk-GKQTXUOW.js → chunk-MOVRSULZ.js} +2 -2
  73. package/dist/{chunk-QAEBBTYR.js → chunk-MSYMEP7Y.js} +7 -7
  74. package/dist/{chunk-Y453TW6J.js → chunk-NCERS5QH.js} +2 -2
  75. package/dist/{chunk-HXFLHA5K.js → chunk-NH5Z2NOD.js} +2 -2
  76. package/dist/{chunk-T3HNISBN.js → chunk-NJVY3GAX.js} +3 -3
  77. package/dist/{chunk-J62TYONQ.js → chunk-NQPPUNWP.js} +3 -3
  78. package/dist/{chunk-LJZIBT75.js → chunk-O7Z3LF44.js} +5 -5
  79. package/dist/{chunk-B7CPSWQX.js → chunk-OLXYZQR7.js} +7 -7
  80. package/dist/{chunk-7F3V6CFP.js → chunk-OQNYZ2OM.js} +3 -3
  81. package/dist/{chunk-DBDTQR23.js → chunk-OTQF4B37.js} +4 -4
  82. package/dist/{chunk-GBSHHNSD.js → chunk-PRSNMSVG.js} +3 -3
  83. package/dist/{chunk-DGYXCIBV.js → chunk-Q6AKSLD2.js} +2 -2
  84. package/dist/{chunk-YTQYP7UJ.js → chunk-Q7KXMIR3.js} +3 -3
  85. package/dist/{chunk-IWJ6GFST.js → chunk-QCVH32T2.js} +5 -5
  86. package/dist/{chunk-7FIMUFBP.js → chunk-QDPY7RN3.js} +3 -3
  87. package/dist/{chunk-DLDYQNGP.js → chunk-QIT2GGNB.js} +3 -3
  88. package/dist/{chunk-J3XLCYTQ.js → chunk-QSJH5AFU.js} +244 -173
  89. package/dist/{chunk-DERQSEB5.js → chunk-R7DS2TRZ.js} +38 -22
  90. package/dist/{chunk-BEKEOXNG.js → chunk-RGPHFHJU.js} +2 -2
  91. package/dist/{chunk-5FJ4M4HB.js → chunk-RHH6SCB4.js} +17 -32
  92. package/dist/{chunk-Z4BQPABS.js → chunk-RIT3WBBX.js} +4 -4
  93. package/dist/{chunk-45K2QZBR.js → chunk-RKNCISPM.js} +3 -3
  94. package/dist/{chunk-6LJS4M6P.js → chunk-RKTVXFBV.js} +5 -5
  95. package/dist/{chunk-AXNX4NWN.js → chunk-RLQX6LHW.js} +37 -37
  96. package/dist/{chunk-FIERONKM.js → chunk-ROWYW3JF.js} +2 -2
  97. package/dist/{chunk-LSJ3SQEU.js → chunk-RVWWNNZQ.js} +4 -4
  98. package/dist/{chunk-LPQZICYN.js → chunk-S7MVI4W7.js} +7 -7
  99. package/dist/{chunk-4MIV244X.js → chunk-SGEOXJIH.js} +9 -2
  100. package/dist/{chunk-QRMKQYCB.js → chunk-SINL5WMI.js} +2 -2
  101. package/dist/{chunk-Z6N5N4MN.js → chunk-SIW2HT2H.js} +21 -5
  102. package/dist/{chunk-IEDQT4Z3.js → chunk-SOAZIMWL.js} +12 -12
  103. package/dist/{chunk-RPBB7P4Q.js → chunk-SVQMDVND.js} +87 -16
  104. package/dist/{chunk-45ZUMF4E.js → chunk-TPUAXIPR.js} +2 -2
  105. package/dist/{chunk-HMYJOQXT.js → chunk-TXU34ELY.js} +25 -25
  106. package/dist/{chunk-MTBKTGZT.js → chunk-U4UAWGIT.js} +12 -8
  107. package/dist/{chunk-76SBT7KS.js → chunk-U56HK2RG.js} +7 -5
  108. package/dist/{chunk-RV2BDU7V.js → chunk-UDW2KAVF.js} +6 -6
  109. package/dist/{chunk-NDV6CBR7.js → chunk-UH5VQGNR.js} +2 -2
  110. package/dist/{chunk-75QC66XI.js → chunk-V2MIBJZU.js} +2 -2
  111. package/dist/{chunk-RDZBXTZ3.js → chunk-VAQPQXOI.js} +4 -4
  112. package/dist/{chunk-XPSDDTUZ.js → chunk-VCFRALU7.js} +3 -3
  113. package/dist/{chunk-5KJBWIDZ.js → chunk-VQDVEHDB.js} +2 -2
  114. package/dist/{chunk-6ILHYSLR.js → chunk-WAP5362D.js} +5 -5
  115. package/dist/{chunk-XY4OBD26.js → chunk-WGKKDGSA.js} +4 -4
  116. package/dist/{chunk-UQ2OD7D4.js → chunk-WVVUE7LU.js} +14 -7
  117. package/dist/{chunk-LB76VK6D.js → chunk-WXQ7BHVQ.js} +7 -7
  118. package/dist/{chunk-7REDHC4N.js → chunk-X5NF3ZXW.js} +69 -14
  119. package/dist/{chunk-5W7S2SCA.js → chunk-XAE4NIZ2.js} +4 -4
  120. package/dist/{chunk-SPLRKCFV.js → chunk-XDGLYIB2.js} +2 -2
  121. package/dist/{chunk-BSGU4HS6.js → chunk-XKMZYU5B.js} +96 -65
  122. package/dist/{chunk-OLQN4Z5R.js → chunk-Y3RH35KM.js} +47 -47
  123. package/dist/{chunk-YFQCDLCQ.js → chunk-YHT7TDSH.js} +14 -14
  124. package/dist/{chunk-KDEU5FUJ.js → chunk-YJXJOMXW.js} +3 -3
  125. package/dist/{chunk-N6LGLNAC.js → chunk-YPLHVRMS.js} +4 -4
  126. package/dist/{chunk-WS2X5BB2.js → chunk-YYBBJPCL.js} +5 -5
  127. package/dist/{chunk-ZOHEHIFS.js → chunk-YYDM4DNP.js} +2 -2
  128. package/dist/{chunk-MYIIBV6A.js → chunk-ZF4LCHCT.js} +5 -5
  129. package/dist/{chunk-GRXX2TOJ.js → chunk-ZHFSIQ6E.js} +2 -2
  130. package/dist/{chunk-CB67GIR3.js → chunk-ZJQFKBX7.js} +7 -7
  131. package/dist/{chunk-ZRXDPCMN.js → chunk-ZYZ7GRX3.js} +2 -2
  132. package/dist/{chunk-5TWLVFYB.js → chunk-ZZC5VSLP.js} +4 -4
  133. package/dist/cli.d.ts +3 -3
  134. package/dist/cli.js +62 -61
  135. package/dist/codegen-command-NAY6YAOD.js +183 -0
  136. package/dist/codegen.d.ts +3 -3
  137. package/dist/codegen.js +5 -5
  138. package/dist/{commands-5ILSWDSV.js → commands-Z2QZOORB.js} +3 -3
  139. package/dist/{completion-UNKBVVDT.js → completion-LFXXNQGR.js} +3 -3
  140. package/dist/{config-NTOASFCA.js → config-7GGINOFY.js} +4 -4
  141. package/dist/{deploy-command-WESYWFJN.js → deploy-command-PBM3S4ZL.js} +69 -68
  142. package/dist/{deploy-source-ZQQNMDFX.js → deploy-source-JW7DAN75.js} +32 -32
  143. package/dist/{dev-env-sync-4XJT7WOT.js → dev-env-sync-FHJTFH3V.js} +63 -62
  144. package/dist/{diagnostics-FNVNRYMB.js → diagnostics-T3RN3372.js} +2 -2
  145. package/dist/{display-name-hint-MYXCCAOP.js → display-name-hint-5GLJGPQ6.js} +11 -11
  146. package/dist/{emit-YLt3GfsZ.d.ts → emit-t-gDE1BL.d.ts} +181 -93
  147. package/dist/env-example-refresh-HHEGMFNH.js +136 -0
  148. package/dist/{env-pull-command-SK5FS477.js → env-pull-command-FFPNRVWD.js} +52 -52
  149. package/dist/{env-target-TEFSYACA.js → env-target-XHVRZXHX.js} +14 -14
  150. package/dist/{env-var-command-IJHKA2WJ.js → env-var-command-DJS62YRR.js} +41 -41
  151. package/dist/{ephemeral-VLPRDNEJ.js → ephemeral-2DXWP3VK.js} +9 -9
  152. package/dist/{ephemeral-command-WCO5J4SN.js → ephemeral-command-VLQIQ5TS.js} +52 -52
  153. package/dist/{ephemeral-state-RUOU2GFS.js → ephemeral-state-56XEDUJW.js} +12 -12
  154. package/dist/{generate-command-3WCOUOEQ.js → generate-command-PSDIIOTU.js} +89 -88
  155. package/dist/{gitignore-WYS3GMOX.js → gitignore-PMJ6MFNA.js} +15 -15
  156. package/dist/{guards-PPIBIMFZ.js → guards-YICHJKX3.js} +51 -15
  157. package/dist/{impersonate-command-UMYVQTCG.js → impersonate-command-IKV4KUYA.js} +37 -37
  158. package/dist/{import-T4ZTOTBT.js → import-VJQGIS33.js} +5 -5
  159. package/dist/index.d.ts +653 -222
  160. package/dist/index.js +29 -28
  161. package/dist/init-command-LEQIE6GC.js +143 -0
  162. package/dist/{init-modules-7KALFI5C.js → init-modules-G47Q7ABV.js} +8 -8
  163. package/dist/{init-web-DYE2FEXL.js → init-web-25QJ4JWB.js} +3 -3
  164. package/dist/internal.d.ts +55 -8
  165. package/dist/internal.js +692 -503
  166. package/dist/{io-PGTCBSIQ.js → io-47TFRYDB.js} +6 -6
  167. package/dist/{keep-data-merge-OVHCIEBG.js → keep-data-merge-XCPCX7BZ.js} +38 -38
  168. package/dist/{lambda-config-reconcile-VOBVZPWS.js → lambda-config-reconcile-CC5QIP6E.js} +3 -3
  169. package/dist/{landed-F7PCHGCK.js → landed-VIUFHLCJ.js} +5 -5
  170. package/dist/{landing-record-AIHNW4AZ.js → landing-record-JQ7HZDGI.js} +22 -22
  171. package/dist/{live-diff-UMSOGPX3.js → live-diff-KJ2TWWWT.js} +14 -14
  172. package/dist/{local-engine-choice-XDGTATKJ.js → local-engine-choice-DFAMYOIF.js} +35 -35
  173. package/dist/{local-engine-command-VQWNQ7UK.js → local-engine-command-5RP2J5QZ.js} +40 -40
  174. package/dist/{local-engine-deploy-4N4NFZ4T.js → local-engine-deploy-XAEDT55W.js} +12 -12
  175. package/dist/{local-engine-lookup-AQTUGSBT.js → local-engine-lookup-WBYTY2JE.js} +2 -2
  176. package/dist/{local-engine-mcp-bridge-AMYRH4SY.js → local-engine-mcp-bridge-3H5OXBWQ.js} +5 -5
  177. package/dist/{local-engine-mcp-command-AIMNMXQG.js → local-engine-mcp-command-JSYVVZKK.js} +42 -42
  178. package/dist/{local-engine-process-OD5OSWDG.js → local-engine-process-35B2KQED.js} +7 -7
  179. package/dist/{local-engine-update-check-G3YCBXRE.js → local-engine-update-check-VXJZSIJU.js} +5 -5
  180. package/dist/{lock-HDCHD2ON.js → lock-JBKTDEDO.js} +4 -4
  181. package/dist/{lock-commands-H3YV2D6M.js → lock-commands-7VO6YWOV.js} +67 -66
  182. package/dist/{login-command-NMM3JNDZ.js → login-command-WTZUBCW6.js} +27 -27
  183. package/dist/{logout-command-7DYC6G32.js → logout-command-5BJUNK3C.js} +17 -17
  184. package/dist/{loop-DJNIHC7O.js → loop-HILLODVH.js} +15 -15
  185. package/dist/{marketplace-command-UCSHDZGO.js → marketplace-command-NMOH4XOV.js} +30 -30
  186. package/dist/{marketplace-resolve-JR4BBJ6K.js → marketplace-resolve-63QWMQZU.js} +6 -6
  187. package/dist/{meta-client-CD3TXQP6.js → meta-client-MRAMWUKV.js} +15 -15
  188. package/dist/{module-manifest-63I5GRK4.js → module-manifest-NWJWAQLQ.js} +4 -4
  189. package/dist/node.d.ts +8 -8
  190. package/dist/node.js +71 -70
  191. package/dist/{operation-outcome-2ONIIDRU.js → operation-outcome-WK7UW6PJ.js} +24 -24
  192. package/dist/{output-target-67LHZKCO.js → output-target-5PYRCCK4.js} +16 -16
  193. package/dist/{plan-disclosure-T7DF4SRJ.js → plan-disclosure-6MG4YYJV.js} +28 -28
  194. package/dist/{plugin-contributions-YYEP7IWH.js → plugin-contributions-DD6R6RL6.js} +5 -5
  195. package/dist/{plugin-prompt-GKCQKNYI.js → plugin-prompt-UX2TT5NS.js} +5 -5
  196. package/dist/{plugin-questions-P7MA3TYI.js → plugin-questions-WE2F4ZC4.js} +4 -4
  197. package/dist/{preflight-command-TJ7FURXB.js → preflight-command-3BX2WW3S.js} +75 -74
  198. package/dist/{profile-command-LDPLTJEJ.js → profile-command-GSUX3UMB.js} +28 -28
  199. package/dist/{profile-pointer-JJ7K5O2R.js → profile-pointer-RCPHVTJV.js} +4 -4
  200. package/dist/{project-dependency-X3KCWBK5.js → project-dependency-TPVV3YIX.js} +7 -7
  201. package/dist/{project-sdk-YHJZRCNB.js → project-sdk-DKZBK5H5.js} +4 -4
  202. package/dist/promote-command-3LQTXWCD.js +149 -0
  203. package/dist/{prompt-QNMJIWNI.js → prompt-OYQHQWKI.js} +4 -4
  204. package/dist/{publish-command-IIRN6NWN.js → publish-command-3BQCV4NE.js} +72 -71
  205. package/dist/pull-command-B7OVWTZD.js +171 -0
  206. package/dist/{pull-superseded-6HADGGC5.js → pull-superseded-3SSM3JFT.js} +4 -4
  207. package/dist/{raw-where-gWGr-E4t.d.ts → raw-where-CinW0keO.d.ts} +32 -4
  208. package/dist/release-command-XSDICMJE.js +153 -0
  209. package/dist/{release-ns-command-YLCQPVH3.js → release-ns-command-EVAHK4CU.js} +96 -95
  210. package/dist/{retry-command-LFZYEVRU.js → retry-command-WP4ZI6CJ.js} +8 -8
  211. package/dist/{routes-manifest-R3TQRB24.js → routes-manifest-N73THJB3.js} +16 -16
  212. package/dist/routes-manifest-file-LDUDIVFJ.js +41 -0
  213. package/dist/scaffold.js +2 -2
  214. package/dist/{secrets-file-PCNAFXNV.js → secrets-file-7XWR7HW3.js} +15 -15
  215. package/dist/{secrets-fill-command-G7NQMRXU.js → secrets-fill-command-NKCGC75L.js} +66 -65
  216. package/dist/{seed-4CD55LB4.js → seed-YKTZDS2Q.js} +13 -13
  217. package/dist/{source-resolve-U4SJR7ZA.js → source-resolve-CQGDFQQC.js} +22 -22
  218. package/dist/{static-host-MO4VDHL7.js → static-host-3HPZKVKK.js} +5 -5
  219. package/dist/{status-command-CD72PXIT.js → status-command-TBMQ3GJP.js} +38 -38
  220. package/dist/{store-AJX4MC7Y.js → store-B63BQV6R.js} +6 -6
  221. package/dist/{store-BM7SQcUt.d.ts → store-in7gSpMS.d.ts} +297 -129
  222. package/dist/sync-baseline-GRS33AB5.js +38 -0
  223. package/dist/{sync-contributions-XK6LHISZ.js → sync-contributions-RKPLZPPO.js} +9 -9
  224. package/dist/{sync-record-NE62ERA3.js → sync-record-AWFCSS4D.js} +15 -15
  225. package/dist/{table-WPRAM4VW.js → table-ONGT3JGE.js} +12 -12
  226. package/dist/{tables-command-NMTKR52H.js → tables-command-UYQ277TJ.js} +41 -41
  227. package/dist/{tenant-IIYECNWO.js → tenant-IXIW3FOI.js} +10 -10
  228. package/dist/{tenant-command-XQAWT46C.js → tenant-command-7LWZUK2V.js} +104 -103
  229. package/dist/{test-command-W4AD4KT4.js → test-command-7KTT5EAF.js} +56 -45
  230. package/dist/{tests-JWQRHFCT.js → tests-N4MMBABH.js} +6 -6
  231. package/dist/{token-P3VQ6ITJ.js → token-3TCMW2AP.js} +13 -13
  232. package/dist/{toolchain-hooks-UAJBPSTC.js → toolchain-hooks-IJWV3ZQS.js} +18 -18
  233. package/dist/{toolchain-modules-S3MPHCUI.js → toolchain-modules-PBVBCPQJ.js} +5 -5
  234. package/dist/{toolchain-peers-FQJBTKEB.js → toolchain-peers-EMOYN4U7.js} +8 -8
  235. package/dist/{tracked-backend-WWEPNUD5.js → tracked-backend-YDUUQZQF.js} +34 -34
  236. package/dist/update-check-C6KDFGMT.js +141 -0
  237. package/dist/{upgrade-command-J6LRNHYF.js → upgrade-command-ZSBTSMBR.js} +68 -67
  238. package/dist/{whoami-command-KWRP2CII.js → whoami-command-L6ERHR5K.js} +16 -16
  239. package/dist/{workspace-3YNK4XO4.js → workspace-5DPSDM4A.js} +5 -5
  240. package/dist/{workspace-binding-TTDNXHO5.js → workspace-binding-MVOWGNYW.js} +15 -15
  241. package/dist/{workspace-command-W4ANGLCZ.js → workspace-command-PKQ5TDR7.js} +100 -99
  242. package/dist/{workspace-env-6LJGCTZA.js → workspace-env-UZJZUIYV.js} +18 -12
  243. package/dist/{workspace-export-PUEXKZNS.js → workspace-export-3KMWNZDD.js} +5 -5
  244. package/dist/{writable-LMMG4AFZ.js → writable-X7BCN7XE.js} +4 -4
  245. package/dist/xano-YB6Y2IJS.js +44 -0
  246. package/dist/{xanosdk-import-PNNMZ4SF.js → xanosdk-import-HHMQDK2I.js} +10 -10
  247. package/dist/{xanosdk-project-YW3BQY2E.js → xanosdk-project-CKEUNJU4.js} +13 -13
  248. package/dist/{xdo-D4OwfF2J.d.ts → xdo-DNGZGO1j.d.ts} +50 -12
  249. package/guides/authoring.md +1 -0
  250. package/guides/codes.md +33 -3
  251. package/guides/coverage.md +2 -2
  252. package/guides/object-kinds.md +1 -1
  253. package/guides/typed-frontend.md +9 -0
  254. package/llms/client.md +54 -36
  255. package/llms/errors.md +26 -6
  256. package/llms/fields.md +53 -30
  257. package/llms/filters.md +55 -46
  258. package/llms/kinds-agent-mcp.md +10 -9
  259. package/llms/kinds-core.md +19 -15
  260. package/llms/kinds-knowledge.md +4 -4
  261. package/llms/kinds-realtime.md +25 -23
  262. package/llms/lambda.md +42 -30
  263. package/llms/legacy.md +6 -7
  264. package/llms/lock.md +21 -17
  265. package/llms/object-kinds.md +9 -11
  266. package/llms/statements-calls.md +41 -20
  267. package/llms/statements-catalog.md +78 -71
  268. package/llms/statements-data.md +35 -25
  269. package/llms/statements-runtime.md +28 -18
  270. package/llms/tests.md +20 -7
  271. package/llms/toolchain.md +12 -9
  272. package/llms/triggers.md +14 -18
  273. package/llms/values.md +16 -9
  274. package/llms-full.txt +689 -549
  275. package/llms.txt +120 -137
  276. package/manifest.json +228 -246
  277. package/package.json +1 -1
  278. package/skills/xano-backend/SKILL.md +10 -12
  279. package/types/lambda-globals.d.ts +6 -1
  280. package/dist/branch-commands-75IYFTBS.js +0 -80
  281. package/dist/codegen-command-JWOW6HE5.js +0 -182
  282. package/dist/env-example-refresh-4V2OCDJE.js +0 -135
  283. package/dist/init-command-UR5MSXIH.js +0 -142
  284. package/dist/promote-command-RURHOLNR.js +0 -148
  285. package/dist/pull-command-ITO76ENU.js +0 -170
  286. package/dist/release-command-CVGIUD4M.js +0 -152
  287. package/dist/routes-manifest-file-GYNYFKAH.js +0 -41
  288. package/dist/sync-baseline-BJDKG4F2.js +0 -38
  289. package/dist/update-check-O7QC5TBB.js +0 -140
  290. package/dist/xano-Z3SRHYOR.js +0 -43
@@ -4,7 +4,7 @@ import {
4
4
  filter,
5
5
  isTaggedValue,
6
6
  toLambdaValue
7
- } from "./chunk-Z6N5N4MN.js";
7
+ } from "./chunk-SIW2HT2H.js";
8
8
 
9
9
  // src/values/generated/filters.generated.ts
10
10
  var v = (x) => {
@@ -57,7 +57,7 @@ var assertMaxArity = (name, argNames, got) => {
57
57
  );
58
58
  };
59
59
  var FILTER_NAMES = ["abs", "acos", "acosh", "add", "addslashes", "append", "array_diff", "array_diff_assoc", "array_entries", "array_fill", "array_fill_keys", "array_filter", "array_find", "array_has", "array_intersect", "array_intersect_assoc", "array_keys", "array_lower", "array_merge", "array_merge_recursive", "array_pop", "array_push", "array_push_conditional", "array_remove", "array_replace", "array_set", "array_shift", "array_shuffle", "array_slice", "array_unshift", "array_upmerge", "array_values", "asin", "asinh", "atan", "atanh", "avg", "base64_decode", "base64_decode_urlsafe", "base64_encode", "base64_encode_urlsafe", "base_convert", "bin2hex", "bindec", "bitwise_and", "bitwise_not", "bitwise_or", "bitwise_xor", "capitalize", "ceil", "clamp_max", "clamp_min", "concat", "contains", "convert_encoding", "cos", "count", "create_object", "create_object_from_entries", "crypto_jwe_decode", "crypto_jwe_encode", "crypto_jws_decode", "crypto_jws_encode", "csv_create", "csv_decode", "csv_encode", "csv_parse", "decbin", "dechex", "decoct", "decrypt", "deg2rad", "detect_encoding", "div", "empty", "encrypt", "ends_with", "epochms_add_ms", "epochms_add_secs", "epochms_date", "epochms_from_format", "epochms_transform", "eq", "escape", "even", "every", "exp", "filter", "filter_empty", "filter_empty_array", "filter_empty_object", "filter_empty_text", "filter_false", "filter_null", "filter_zero", "find", "findIndex", "first", "first_notempty", "first_notnull", "flatten", "floor", "from_utf8", "fsort", "get", "gt", "gte", "has", "hex2bin", "hexdec", "hmac_md5", "hmac_sha1", "hmac_sha256", "hmac_sha384", "hmac_sha512", "icontains", "iends_with", "in", "index_by", "is_array", "is_bool", "is_decimal", "is_int", "is_object", "is_text", "is_uuid", "istarts_with", "join", "json_decode", "json_encode", "jwe_decode", "jwe_encode", "lambda", "last", "list_encodings", "ln", "log", "log10", "lower", "lt", "lte", "ltrim", "map", "max", "md5", "min", "mod", "ms_to_secs", "mul", "ne", "not", "null", "num_max", "num_min", "number_format", "octdec", "odd", "pick", "pow", "prepend", "product", "querystring_parse", "rad2deg", "range", "reduce", "regex_match", "regex_match_all", "regex_quote", "regex_replace", "regex_test", "reverse", "round", "rsort", "rtrim", "safe_array", "secs_to_ms", "secureid_decode", "secureid_encode", "set", "set_conditional", "set_ifnotempty", "set_ifnotnull", "sha1", "sha256", "sha384", "sha512", "sin", "some", "sort", "splice", "split", "sprintf", "sql_alias", "sql_esc", "sqrt", "starts_with", "string_replace", "strip_accents", "strip_tags", "stripos", "strlen", "strpos", "sub", "substr", "sum", "tan", "text_escape", "text_unescape", "to_bool", "to_decimal", "to_epoch_day", "to_epoch_hour", "to_epoch_minute", "to_epoch_ms", "to_epoch_sec", "to_epochms", "to_expr", "to_geo_linestring", "to_geo_multilinestring", "to_geo_multipoint", "to_geo_multipolygon", "to_geo_point", "to_geo_polygon", "to_int", "to_text", "to_utf8", "transform", "trim", "uid", "unique", "unpick", "unset", "upper", "url_addarg", "url_decode", "url_decode_rfc3986", "url_delarg", "url_encode", "url_encode_rfc3986", "url_getarg", "url_hasarg", "url_parse", "uuid4", "xml_decode", "yaml_decode", "yaml_encode"];
60
- var FILTER_SPECS = { "deg2rad": { "result": "decimal", "group": "math", "description": "Convert degrees to radians" }, "rad2deg": { "result": "decimal", "group": "math", "description": "Convert radians to degrees" }, "number_format": { "args": [{ "name": "decimals", "type": "int" }, { "name": "decimal_separator", "type": "text" }, { "name": "thousands_separator", "type": "text" }], "result": "string", "group": "math", "description": "Format a number with flexible support over decimal places, thousands separator, and decimal separator." }, "sin": { "result": "decimal", "group": "math", "description": "Calculates the sine of the supplied value in radians" }, "asin": { "result": "decimal", "group": "math", "description": "Calculates the arc sine of the supplied value in radians" }, "asinh": { "result": "decimal", "group": "math", "description": "Calculates the inverse hyperbolic sine of the supplied value in radians" }, "cos": { "result": "decimal", "group": "math", "description": "Calculates the cosine of the supplied value in radians" }, "acos": { "result": "decimal", "group": "math", "description": "Calculates the arc cosine of the supplied value in radians" }, "acosh": { "result": "decimal", "group": "math", "description": "Calculates the inverse hyperbolic cosine of the supplied value in radians" }, "tan": { "result": "decimal", "group": "math", "description": "Calculates the tangent of the supplied value in radians" }, "atan": { "result": "decimal", "group": "math", "description": "Calculates the arc tangent of the supplied value in radians" }, "atanh": { "result": "decimal", "group": "math", "description": "Calculates the inverse hyperbolic tangent of the supplied value in radians" }, "floor": { "result": "int", "group": "math", "description": "Round a decimal down to its integer equivalent" }, "ceil": { "result": "int", "group": "math", "description": "Round a decimal up to its integer equivalent" }, "round": { "args": [{ "name": "precision", "type": "int", "optional": true }], "result": "decimal", "group": "math", "description": "Round a decimal with optional precision" }, "first": { "result": "<T>", "group": "array", "description": "Get the first entry of an array" }, "last": { "result": "<T>", "group": "array", "description": "Get the last entry of an array" }, "count": { "result": "int", "group": "array", "description": "Return the number of items in an object/array" }, "range": { "args": [{ "name": "start", "type": "int" }, { "name": "stop", "type": "int" }], "result": "int[]", "group": "array", "description": "Returns array of values between the specified start/stop." }, "reverse": { "result": "<T>[]", "group": "array", "description": "Returns values of an array in reverse order" }, "unique": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns unique values of an array" }, "safe_array": { "result": "<T>[]", "group": "array", "description": "Always returns an array. Uses the existing value if it is an array or creates an array of one element." }, "flatten": { "result": "<T>[]", "group": "array", "description": "Flattens a multidimensional array into a single level array of values." }, "filter_empty": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Returns a new array with only entries that are not empty ("", null, 0, "0", false, [], {})' }, "filter_empty_text": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Returns a new array with only entries that are not empty ("", null, 0, "0", false, [], {})' }, "filter_null": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not null" }, "filter_empty_array": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not an empty array `[]`" }, "filter_empty_object": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not an empty object `{}`" }, "filter_zero": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not zero" }, "filter_false": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not false" }, "sort": { "description": 'Sort an array of elements with an optional path inside the element Takes NO arguments: a plain ascending sort of the whole value (mixed types compare loosely, and arrays of objects by size first). To sort by a key, a type or a direction use `fl.fsort(path, type, asc)` \u2014 that is also what XanoScript\'s `|sort:\u2026` means. Prefer `fl.fsort` (`fl.fsort("", "number")` for numbers): a workspace saved through the XanoScript editor turns a stored `sort` into `fsort` with its text-order defaults.' }, "index_by": { "args": [{ "name": "path", "type": "text" }], "result": "{ [key: string]: <T>[] }", "group": "array", "description": "Groups the piped array into an OBJECT keyed by each item's path \u2014 every value is an ARRAY of the items sharing that key, even when only one item does. So a lookup reads `idx[key][0]`, not `idx[key]`; the singular spelling yields null rather than erroring. Items whose path is missing or non-scalar are dropped." }, "append": { "args": [{ "name": "value", "type": "<T>" }, { "name": "path", "type": "text" }], "result": "<T>[]", "group": "array", "description": "Push an element on to the end of an array within an object and return the updated object" }, "prepend": { "args": [{ "name": "value", "type": "<T>" }, { "name": "path", "type": "text" }], "result": "<T>[]", "group": "array", "description": "Push an element on to the beginning of an array within an object and return the updated object" }, "abs": { "result": "decimal", "group": "math", "description": "Returns the absolute value" }, "sqrt": { "result": "decimal", "group": "math", "description": "Returns the square root of the value" }, "exp": { "result": "decimal", "group": "math", "description": 'Returns the exponent of mathematical expression "e"' }, "log": { "args": [{ "name": "base", "type": "<T>" }], "result": "decimal", "group": "math", "description": "Returns the logarithm with a custom base" }, "log10": { "result": "decimal", "group": "math", "description": "Returns the Base-10 logarithm" }, "ln": { "result": "decimal", "group": "math", "description": "Returns the natural logarithm" }, "pow": { "args": [{ "name": "exp", "type": "<T>" }], "result": "decimal", "group": "math", "description": "Returns the value raised to the power of exp." }, "min": { "result": "decimal", "group": "math", "description": "Returns the min of the values of the array Over a SCALAR it takes a bound instead and returns the smaller of the two, so `min(3)` on 5 is 3. The array form ignores any argument; an EMPTY array yields null.", "args": [{ "name": "bound", "type": "decimal", "optional": true }] }, "max": { "result": "decimal", "group": "math", "description": "Returns the max of the values of the array Over a SCALAR it takes a bound instead and returns the larger of the two, so `max(8)` on 5 is 8. The array form ignores any argument; an EMPTY array yields null.", "args": [{ "name": "bound", "type": "decimal", "optional": true }] }, "sum": { "result": "decimal", "group": "math", "description": "Returns the sum of the values of the array" }, "avg": { "result": "decimal", "group": "math", "description": "Returns the average of the values of the array" }, "product": { "result": "decimal", "group": "math", "description": "Returns the product of the values of the array" }, "odd": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is odd" }, "even": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is even" }, "in": { "args": [{ "name": "search", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns whether or not the value is in the array" }, "add": { "args": [{ "name": "value", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Add 2 values together and return the answer" }, "bitwise_and": { "args": [{ "name": "value", "type": "int" }], "result": "int", "group": "math", "description": "Bitwise AND 2 values together and return the answer" }, "bitwise_or": { "args": [{ "name": "value", "type": "int" }], "result": "int", "group": "math", "description": "Bitwise OR 2 values together and return the answer" }, "bitwise_xor": { "args": [{ "name": "value", "type": "int" }], "result": "int", "group": "math", "description": "Bitwise XOR 2 values together and return the answer" }, "not": { "result": "bool", "group": "comparison", "description": "Returns the opposite of the existing value evaluated as a boolean" }, "bitwise_not": { "result": "bool", "group": "comparison", "description": "Returns the existing value with its bits flipped" }, "is_object": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is an object." }, "is_array": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is a numerical indexed array." }, "is_int": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is an integer." }, "is_decimal": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is a decimal value." }, "is_bool": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is a boolean." }, "is_text": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is text." }, "addslashes": { "result": "text", "group": "text", "description": "Adds a backslash to the following characters: single quote, double quote, backslash, and null character." }, "escape": { "result": "text", "group": "text", "description": "Converts special characters into their escaped variants. Ex: for tabs and" }, "list_encodings": { "result": "text[]", "group": "text", "description": "List support character encodings" }, "detect_encoding": { "args": [{ "name": "encodings", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Detect the character encoding of the supplied text" }, "to_utf8": { "result": "text", "group": "text", "description": "Convert the supplied text from its binary form (ISO-8859-1) to UTF-8." }, "from_utf8": { "result": "text", "group": "text", "description": "Convert the supplied text from UTF-8 to its binary form (ISO-8859-1)." }, "convert_encoding": { "args": [{ "name": "to", "type": "text" }, { "name": "from", "type": "text" }], "result": "text", "group": "text", "description": "Convert the character encoding of the supplied text" }, "trim": { "args": [{ "name": "mask", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Trim whitespace or other characters from both sides and return the result" }, "ltrim": { "args": [{ "name": "mask", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Trim whitespace or other characters from the left side and return the result" }, "rtrim": { "args": [{ "name": "mask", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Trim whitespace or other characters from the right return the result" }, "capitalize": { "result": "text", "group": "text", "description": "Converts the first letter of each word to a capital letter" }, "substr": { "args": [{ "name": "start", "type": "int" }, { "name": "length", "type": "int" }], "result": "text", "group": "text", "description": "Extracts a section of text" }, "split": { "args": [{ "name": "separator", "type": "text" }], "result": "text[]", "group": "text", "description": "Splits text into an array of text and returns the result" }, "join": { "args": [{ "name": "separator", "type": "text" }], "result": "text", "group": "array", "description": "Joins an array into a text string via the separator and returns the result" }, "strlen": { "result": "int", "group": "text", "description": "Returns the number of characters" }, "starts_with": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the expression is present at the beginning Direction: the piped value is the subject text; the argument is the substring searched for." }, "istarts_with": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the case-insensitive expression is present at the beginning Direction: the piped value is the subject text; the argument is the substring searched for." }, "ends_with": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the expression is present at the end Direction: the piped value is the subject text; the argument is the substring searched for." }, "iends_with": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the case-insensitive expression is present at the end Direction: the piped value is the subject text; the argument is the substring searched for." }, "contains": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the expression is found Direction: the piped value is the subject text; the argument is the substring searched for." }, "icontains": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the case-insensitive expression is found Direction: the piped value is the subject text; the argument is the substring searched for." }, "set": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": "Sets a value at the path within the object and returns the updated object" }, "set_conditional": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }, { "name": "conditional", "type": "any" }], "result": "any", "group": "manipulation", "description": "Sets a value at the path within the object and returns the updated object, if the conditional expression is true" }, "set_ifnotempty": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": 'Sets a value (if it is not empty: "", null, 0, "0", false, [], {}) at the path within the object and returns the updated object' }, "set_ifnotnull": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": "Sets a value (if it is not null) at the path within the object and returns the updated object" }, "first_notnull": { "args": [{ "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": "Returns the first value that is not null" }, "first_notempty": { "args": [{ "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": 'Returns the first value that is not empty - i.e. not ("", null, 0, "0", false, [], {})' }, "unset": { "args": [{ "name": "path", "type": "text" }], "result": "any", "group": "manipulation", "description": "Removes a value at the path within the object and returns the updated object" }, "transform": { "args": [{ "name": "expression", "type": "text" }], "result": "any", "group": "manipulation", "description": 'Evaluates a Xano Expression Engine expression over the piped value. NOT a JavaScript body \u2014 there is no `return`, and the piped value binds POSITIONALLY as `$0` (or `$$`), NOT as `$this` (which resolves to null here, yielding a wrong answer with no error). `$var`, `$input`, `$env` and `$auth` also resolve, and filters may be piped inside the expression: `$0 * 2`, `$0|sort|join:","`, `{ id: $0.id, total: $0.qty * $0.price }`. PARENTHESIZE a pipe used inside an object/array literal \u2014 `{ s: ($0|sort|join:",") }` \u2014 or the filter argument\'s comma is read as the key separator, returning null and silently dropping every later key. For JavaScript use fl.lambda, whose body does bind `$this`.' }, "get": { "args": [{ "name": "path", "type": "text" }, { "name": "default", "type": "json", "optional": true }], "result": "any", "group": "manipulation", "description": "Returns the value of an object at the specified path" }, "has": { "args": [{ "name": "path", "type": "text" }], "result": "bool", "group": "manipulation", "description": "Returns the existence of whether or not something is present in the object at the specified path" }, "to_expr": { "result": "any", "group": "transform", "description": "Treats the PIPED TEXT as Xano Expression Engine source, evaluates it, and returns the result. Takes no argument. `$var`, `$input`, `$env` and `$auth` resolve inside it; there is no operand binding (`$0` is null) because the operand IS the source. For an expression OVER a value, use fl.transform." }, "to_text": { "result": "text", "group": "transform", "description": "Converts integer, decimal, or bool types to text and returns the result" }, "to_int": { "result": "int", "group": "transform", "description": "Converts text, decimal, or bool types to an integer and returns the result" }, "to_decimal": { "result": "decimal", "group": "transform", "description": "Converts text, integer, or bool types to a decimal and returns the result" }, "to_bool": { "result": "bool", "group": "transform", "description": "Converts text, integer, or decimal types to a bool and returns the result" }, "create_object": { "args": [{ "name": "values", "type": "<T>[]" }], "result": "any", "group": "transform", "description": "Creates an object based on a list of keys and a list of values" }, "create_object_from_entries": { "result": "any", "group": "transform", "description": "Creates an object based on an array of key/value pairs. (i.e. same result as the entries filter)" }, "json_decode": { "result": "any", "group": "transform", "description": "Decodes the value represented as json and returns the result" }, "json_encode": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as json text" }, "xml_decode": { "result": "any", "group": "transform", "description": "Decodes XML and returns the result" }, "csv_parse": { "args": [{ "name": "separator", "type": "text" }, { "name": "enclosure", "type": "text" }, { "name": "escape", "type": "text" }], "result": "any", "group": "transform", "description": "Parse the contents of a CSV file and convert it into an array of objects." }, "csv_decode": { "args": [{ "name": "separator", "type": "text" }, { "name": "enclosure", "type": "text" }, { "name": "escape", "type": "text" }], "result": "any", "group": "transform", "description": "Decodes the value represented in the CSV format and returns the result" }, "csv_encode": { "args": [{ "name": "separator", "type": "text" }, { "name": "enclosure", "type": "text" }, { "name": "escape", "type": "text" }], "result": "text", "group": "transform", "description": "Encodes the value and returns the result in CSV format Writes NO header row \u2014 values only. Each row contributes its own values in THAT row's key order, with no normalization across rows, so rows whose keys differ in order or count silently misalign columns rather than erroring. Non-scalar cells (nested objects/arrays) are JSON-encoded into the cell, and `false` writes as empty. If the piped array's elements are scalars rather than objects, the whole array is treated as ONE row and you get a single line. For a header, use `csv_create`." }, "csv_create": { "args": [{ "name": "rows", "type": "text[]" }, { "name": "separator", "type": "text" }, { "name": "enclosure", "type": "text" }, { "name": "escape", "type": "text" }], "result": "text", "group": "transform", "description": "Creates a CSV format data stream from a list of column names and their corresponding data rows. Direction: the piped value is the list of COLUMN NAMES (written as the header line); the `rows` argument carries the data rows. This is the header-writing counterpart to `csv_encode`, which emits values only." }, "url_decode": { "result": "text", "group": "transform", "description": "Decodes the value represented as a url encoded value" }, "url_decode_rfc3986": { "result": "text", "group": "transform", "description": "Decodes the value represented as a url encoded value using the RFC 3986 specification" }, "url_encode": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as a url encoded value" }, "url_encode_rfc3986": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as a url encoded value using the RFC 3986 specification" }, "url_addarg": { "args": [{ "name": "key", "type": "text" }, { "name": "value", "type": "text" }, { "name": "encoding_rfc3986", "type": "bool", "optional": true }], "result": "text", "group": "text", "description": "Parses a URL and returns an updated version with an encoded version of the supplied argument" }, "url_delarg": { "args": [{ "name": "key", "type": "text" }], "result": "text", "group": "text", "description": "Parses a URL and returns an updated version with the supplied argument removed" }, "url_hasarg": { "args": [{ "name": "key", "type": "text" }], "result": "text", "group": "text", "description": "Returns the existence of a argument in the URL" }, "url_getarg": { "args": [{ "name": "key", "type": "text" }, { "name": "default", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Gets the argument's value from a URL" }, "url_parse": { "result": "json", "group": "text", "description": "Parses a URL into its individual components." }, "querystring_parse": { "result": "json", "group": "text", "description": "Parses a query string from a URL into its individual key-value pairs." }, "yaml_decode": { "result": "obj", "group": "transform", "description": "Decodes the value represented as yaml and returns the result" }, "yaml_encode": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as yaml text `inline` is the depth at which YAML stops expanding and starts writing flow style, and `indent` the spaces per level: the default writes a nested map over several lines, while `inline: 0` writes the whole value as `{ a: { b: 1 } }` on one.", "args": [{ "name": "options", "type": "bool", "optional": true }, { "name": "inline", "type": "int", "optional": true }, { "name": "indent", "type": "int", "optional": true }] }, "hex2bin": { "result": "text", "group": "transform", "description": "Converts a hex value into its binary equivalent" }, "bin2hex": { "result": "text", "group": "transform", "description": "Converts a binary value into its hex equivalent" }, "dechex": { "result": "text", "group": "transform", "description": "Converts a decimal value into its hex equivalent" }, "hexdec": { "result": "text", "group": "transform", "description": "Converts a hex value into its decimal equivalent" }, "decbin": { "result": "text", "group": "transform", "description": "Converts a decimal value into its binary string (i.e. 01010) equivalent" }, "bindec": { "result": "text", "group": "transform", "description": "Converts a binary string (i.e. 01010) into its decimal equivalent" }, "decoct": { "result": "text", "group": "transform", "description": "Converts a decimal value into its octal equivalent" }, "octdec": { "result": "text", "group": "transform", "description": "Converts an octal value into its decimal equivalent" }, "base_convert": { "args": [{ "name": "from_base", "type": "any" }, { "name": "to_base", "type": "any" }], "result": "text", "group": "transform", "description": "Converts a value between two bases" }, "base64_decode": { "result": "text", "group": "transform", "description": "Decodes the value represented as base64 text and returns the result" }, "base64_encode": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as base64 text" }, "base64_decode_urlsafe": { "result": "text", "group": "transform", "description": "Decodes the value represented as base64 urlsafe text and returns the result" }, "base64_encode_urlsafe": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as base64 urlsafe text" }, "encrypt": { "args": [{ "name": "algorithm", "type": "enum" }, { "name": "key", "type": "text" }, { "name": "iv", "type": "text" }], "result": "text", "group": "security", "description": "Encrypts the value and returns the result in raw binary form." }, "decrypt": { "args": [{ "name": "algorithm", "type": "enum" }, { "name": "key", "type": "text" }, { "name": "iv", "type": "text" }], "result": "text", "group": "security", "description": "Decrypts the value and returns the result." }, "jwe_encode": { "description": "Encodes the value and return the result as a JWE token", "args": [{ "name": "arg1", "type": "any" }] }, "jwe_decode": { "description": "Decodes the JWE token and return the result", "args": [{ "name": "arg1", "type": "any" }] }, "concat": { "args": [{ "name": "value", "type": "any" }], "result": "text", "group": "text", "description": "Concatenates two values together" }, "sprintf": { "result": "text", "group": "text", "description": "formats text with variable substitution", "variadic": true }, "secureid_encode": { "args": [{ "name": "salt", "type": "text" }], "result": "text", "group": "security", "description": "Returns an encrypted version of the id" }, "secureid_decode": { "args": [{ "name": "salt", "type": "text" }], "result": "int", "group": "security", "description": "Returns the id of the original encode" }, "md5": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a MD5 signature representation of the value" }, "sha1": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA1 signature representation of the value" }, "sha256": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA256 signature representation of the value" }, "sha384": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA384 signature representation of the value" }, "sha512": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA512 signature representation of the value" }, "hmac_md5": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a MD5 signature representation of the value using a shared secret via the HMAC method" }, "hmac_sha1": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA1 signature representation of the value using a shared secret via the HMAC method" }, "hmac_sha256": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA256 signature representation of the value using a shared secret via the HMAC method" }, "hmac_sha384": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA384 signature representation of the value using a shared secret via the HMAC method" }, "hmac_sha512": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA512 signature representation of the value using a shared secret via the HMAC method" }, "regex_quote": { "args": [{ "name": "delimiter", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Update the supplied text value to be properly escaped for regular expressions." }, "regex_replace": { "args": [{ "name": "replacement", "type": "text" }, { "name": "subject", "type": "text" }], "result": "text", "group": "text", "description": "Perform a regular expression search and replace on the supplied subject text. Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it \u2014 reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected." }, "map": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Creates a new array with the results of calling a provided function on every element in the calling array." }, "filter": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Filters the elements of an array based on the code block returning true to keep the element or false to skip it." }, "some": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Checks if at least one element in the array passes the test implemented by the provided function." }, "every": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Checks if all elements in the array pass the test implemented by the provided function." }, "find": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Finds if all elements in the array pass the test implemented by the provided function." }, "findIndex": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Finds the index of the first element in the array that passes the test implemented by the provided function." }, "reduce": { "args": [{ "name": "initial_value", "type": "int" }, { "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Reduces the array to a single value using the code block to combine each element of the array." }, "pick": { "args": [{ "name": "keys", "type": "text" }], "result": "<T>", "group": "array", "description": "Pick keys from the object to create a new object of just those keys." }, "unpick": { "args": [{ "name": "keys", "type": "text" }], "result": "<T>", "group": "array", "description": "Remove keys from the object to create a new object of the remaining keys." }, "text_unescape": { "result": "text", "group": "text", "description": "Convert escaped sequences into their raw form. Ex: \\n becomes a newline, \\t becomes a tab." }, "text_escape": { "result": "text", "group": "text", "description": "Converts control characters into their escaped sequences. Ex: newlines as \\n, tabs as \\t" }, "sql_esc": { "result": "text", "group": "text", "description": "Wraps text in single quotes and escapes any single quotes within the text to prevent SQL injection attacks. This is useful for safely inserting user input into values within SQL queries." }, "sql_alias": { "result": "text", "group": "text", "description": "Wraps text in double quotes and escapes any double quotes within the text to prevent SQL injection attacks. This is useful for safely inserting user input into table names or aliases within SQL queries." }, "is_uuid": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is a valid UUID." }, "lambda": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any", "group": "transform", "description": "Business logic using JavaScript." }, "lower": { "result": "text", "group": "text", "description": "Converts all characters to lower case and returns the result" }, "upper": { "result": "text", "group": "text", "description": "Converts all characters to upper case and returns the result" }, "sub": { "args": [{ "name": "value", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Subtracts 2 values together and returns the answer" }, "mul": { "args": [{ "name": "value", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Multiplies 2 values together and returns the answer" }, "div": { "args": [{ "name": "value", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Divides 2 values together and returns the answer" }, "fsort": { "args": [{ "name": "path", "type": "text", "optional": true }, { "name": "type", "type": "enum", "optional": true, "enum": ["text", "itext", "natural", "inatural", "number"] }, { "name": "asc", "type": "bool", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Sort an array of elements with an optional path inside the element Only `type: "number"` compares NUMERICALLY. "text"/"itext" are case-sensitive/insensitive string compares, "natural"/"inatural" are the human-readable "a2 < a10" orderings, and the default is "itext". An unrecognized spelling silently falls through to "itext" rather than erroring, so a numeric sort MUST spell "number" \u2014 anything else returns the right elements in the wrong order. `path` drills into each element.' }, "array_shuffle": { "result": "<T>[]", "group": "array", "description": "Shuffles the order of the entries in the array." }, "array_diff": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Return the entries from the first array that are not in the second" }, "array_diff_assoc": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Return the entries from the first array that are not in the second" }, "array_intersect": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Return the entries from the first array that are also present in" }, "array_intersect_assoc": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Return the entries from the first array that are also present in" }, "array_merge": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Merge the first level of elements of both arrays together and" }, "array_merge_recursive": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Merge the elements from all levels of both arrays together and" }, "array_push": { "args": [{ "name": "value", "type": "<T>" }], "result": "<T>[]", "group": "array", "description": "Push an element on to the end of an array and return the new array" }, "array_pop": { "result": "<T>", "group": "array", "description": "Pops the last element of the array off and returns it" }, "array_unshift": { "args": [{ "name": "value", "type": "<T>" }], "result": "<T>[]", "group": "array", "description": "Push an element to the beginning of an array and return the new array" }, "array_shift": { "result": "<T>", "group": "array", "description": "Shifts the first element of the array off and returns it" }, "array_remove": { "args": [{ "name": "value", "type": "<T>" }, { "name": "path", "type": "text" }, { "name": "strict", "type": "bool", "optional": true }], "result": "<T>[]", "group": "array", "description": "Remove any elements from the array that match the supplied value" }, "num_min": { "args": [{ "name": "value", "type": "any" }], "result": "decimal", "group": "math", "description": "Returns the min both values" }, "num_max": { "args": [{ "name": "value", "type": "any" }], "result": "decimal", "group": "math", "description": "Returns the max both values" }, "eq": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if both values are equal" }, "ne": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if both values are not equal" }, "gt": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if the left value is greater than the right value" }, "gte": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if the left value is greater than or equal to the" }, "lt": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if the left value is less than the right value" }, "lte": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if the left value is less than or equal to the right value" }, "mod": { "args": [{ "name": "value", "type": "int" }], "result": "int", "group": "math", "description": "Modulus 2 values together and return the answer" }, "empty": { "result": "bool", "group": "comparison", "description": 'Returns whether or not the value is empty ("", null, 0, "0", false, [], {})' }, "array_slice": { "args": [{ "name": "offset", "type": "int" }, { "name": "length", "type": "int", "optional": true }], "result": "<T>[]", "group": "array", "description": "Extract a section from an array." }, "strip_tags": { "args": [{ "name": "exclude", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Removes HTML tags from a string" }, "strip_accents": { "result": "text", "group": "text", "description": "Removes accents from characters" }, "strpos": { "args": [{ "name": "search", "type": "text" }], "result": "int", "group": "text", "description": "Returns the index of the case-sensitive expression or false if it" }, "stripos": { "args": [{ "name": "search", "type": "text" }], "result": "int", "group": "text", "description": "Returns the index of the case-insensitive expression or false if it" }, "array_fill": { "args": [{ "name": "start", "type": "int" }, { "name": "count", "type": "int" }], "result": "any[]", "group": "manipulation", "description": "Create an array of a certain size with a default value." }, "array_fill_keys": { "args": [{ "name": "keys", "type": "any[]" }], "result": "any[]", "group": "manipulation", "description": "Create an array of keys with a default value." }, "array_keys": { "result": "text[]", "group": "array", "description": "Get the property keys of an object/array as a numerically indexed array." }, "array_values": { "result": "any[]", "group": "array", "description": "Get the property values of an object/array as a numerically indexed array" }, "array_entries": { "result": "any[]", "group": "array", "description": "Get the property entries of an object/array as a numerically" }, "to_epochms": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "epochms", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to" }, "to_epoch_ms": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the" }, "to_epoch_sec": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the" }, "to_epoch_minute": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the" }, "to_epoch_hour": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the" }, "to_epoch_day": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the" }, "crypto_jws_encode": { "args": [{ "name": "headers", "type": "json" }, { "name": "key", "type": "json" }, { "name": "algorithm", "type": "enum" }, { "name": "ttl", "type": "int", "optional": true }], "result": "text", "group": "security", "description": "Encodes the value and return the result as a JWS token" }, "crypto_jws_decode": { "args": [{ "name": "check_claims", "type": "json" }, { "name": "key", "type": "json" }, { "name": "algorithm", "type": "enum" }, { "name": "timeDrift", "type": "int", "optional": true }], "result": "json", "group": "security", "description": "Decodes the JWS token and return the result" }, "crypto_jwe_encode": { "args": [{ "name": "headers", "type": "json" }, { "name": "key", "type": "json" }, { "name": "key_algorithm", "type": "enum" }, { "name": "content_algorithm", "type": "enum" }, { "name": "ttl", "type": "int", "optional": true }], "result": "text", "group": "security", "description": "Encodes the value and return the result as a JWE token" }, "crypto_jwe_decode": { "args": [{ "name": "check_claims", "type": "json" }, { "name": "key", "type": "json" }, { "name": "key_algorithm", "type": "enum" }, { "name": "content_algorithm", "type": "enum" }, { "name": "timeDrift", "type": "int", "optional": true }], "result": "json", "group": "security", "description": "Decodes the JWE token and return the result" }, "string_replace": { "args": [{ "name": "search", "type": "text" }, { "name": "replacement", "type": "text" }], "result": "text", "group": "text", "description": "Replace a text phrase with another" }, "uid": { "result": "int", "group": "security", "description": "Returns a unique 64bit unsigned int value seeded off the value" }, "uuid4": { "result": "text", "group": "security", "description": "Returns a universally unique identifier" }, "epochms_from_format": { "args": [{ "name": "format", "type": "text" }, { "name": "timezone", "type": "text", "optional": true }], "result": "text", "group": "timestamp", "description": "Parse a timestamp from a flexible format." }, "epochms_date": { "args": [{ "name": "format", "type": "text" }, { "name": "timezone", "type": "text", "optional": true }], "result": "text", "group": "timestamp", "description": "Converts a timestamp into a human readable formatted date based on" }, "epochms_transform": { "args": [{ "name": "format", "type": "text" }, { "name": "timezone", "type": "text", "optional": true }], "result": "text", "group": "timestamp", "description": "Takes a timestamp and applies a relative transformation to it. Ex." }, "epochms_add_secs": { "args": [{ "name": "seconds", "type": "int" }], "result": "epochms", "group": "timestamp", "description": "Add seconds to a timestamp. (negative values are ok)" }, "epochms_add_ms": { "args": [{ "name": "milliseconds", "type": "int" }], "result": "epochms", "group": "timestamp", "description": "Add milliseconds to a timestamp. (negative values are ok)" }, "regex_test": { "args": [{ "name": "subject", "type": "text" }], "result": "bool", "group": "text", "description": "Tests if a regular expression matches the supplied subject text. Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it \u2014 reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected." }, "regex_match": { "args": [{ "name": "subject", "type": "text" }], "result": "text[]", "group": "text", "description": "Return the first set of matches performed by a regular expression Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it \u2014 reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected." }, "regex_match_all": { "args": [{ "name": "subject", "type": "text" }], "result": "text[]", "group": "text", "description": "Return all matches performed by a regular expression on the Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it \u2014 reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected." }, "array_filter": { "args": [{ "name": "match", "type": "obj" }, { "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Keeps the elements matching EVERY key of the match object. Comparison is LOOSE, so a match of {k:"1"} keeps an element whose k is the number 1. `path` drills into the piped value first; a non-array piped value throws. Not the lambda `filter` \u2014 this matches by example, with no code.' }, "array_find": { "args": [{ "name": "match", "type": "obj" }], "result": "<T>", "group": "array", "description": "The FIRST element matching every key of the match object, comparing loosely. \u26A0 A miss THROWS (`Unable to find element.`) rather than yielding null, so guard the array before calling it or wrap the step in s.try_catch \u2014 unlike `array_has`, which answers false." }, "array_has": { "args": [{ "name": "match", "type": "obj" }], "result": "bool", "group": "array", "description": "Whether any element matches every key of the match object, comparing loosely. The safe counterpart to `array_find`: a miss returns false instead of throwing." }, "array_lower": { "result": "<T>[]", "group": "array", "description": "Lowercases every STRING element of the piped array, leaving other elements alone. Element-wise, unlike `lower`, which expects one string." }, "array_push_conditional": { "args": [{ "name": "value", "type": "any" }, { "name": "conditional", "type": "bool" }], "result": "<T>[]", "group": "array", "description": "Appends `value` only when `conditional` is truthy, and returns the array either way \u2014 so an optional item needs no surrounding branch." }, "array_replace": { "args": [{ "name": "match", "type": "any" }, { "name": "result", "type": "any" }], "result": "<T>[]", "group": "array", "description": "Replaces an element and returns the array. `match` is either an integer INDEX or a match object compared loosely against each element. \u26A0 An index that does not exist throws (`Unable to find element.`)." }, "array_set": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }], "result": "obj", "group": "manipulation", "description": "Sets a dotted path on the piped value and returns it, creating intermediate levels. A piped value that is not an array/object is replaced by an empty one rather than erroring." }, "array_upmerge": { "args": [{ "name": "match", "type": "obj" }, { "name": "node", "type": "obj" }], "result": "<T>[]", "group": "array", "description": "Merges `node` INTO every element matching `match` (loose comparison) and returns the array. An update-in-place for a list of records, where `array_replace` swaps the whole element." }, "clamp_max": { "args": [{ "name": "max", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Lowers the piped number to `max` when it is above it; otherwise returns it unchanged." }, "clamp_min": { "args": [{ "name": "min", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Raises the piped number to `min` when it is below it; otherwise returns it unchanged." }, "ms_to_secs": { "result": "int", "group": "timestamp", "description": "Milliseconds to whole seconds, truncated toward zero. The inverse of `secs_to_ms`, and the conversion between an epochms value and the SECOND counts every ttl/expiry knob takes." }, "null": { "result": "null", "group": "misc", "description": "Returns a null value." }, "rsort": { "result": "<T>[]", "group": "array", "description": "Sorts the piped array in DESCENDING order. A non-array is returned unchanged." }, "secs_to_ms": { "result": "int", "group": "timestamp", "description": "Seconds to milliseconds. The inverse of `ms_to_secs`." }, "splice": { "args": [{ "name": "offset", "type": "int" }, { "name": "length", "type": "int", "optional": true }, { "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "\u26A0 Returns the REMOVED slice, not the remainder: splicing [1,2,3,4] at offset 1 for length 2 yields [2,3]. `length` defaults to 1. With a `path` it instead removes in place inside that path and returns the whole piped value \u2014 the two forms return different things." }, "to_geo_linestring": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo LINESTRING, returned as WKT text." }, "to_geo_multilinestring": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo MULTILINESTRING, returned as WKT text." }, "to_geo_multipoint": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo MULTIPOINT, returned as WKT text." }, "to_geo_multipolygon": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo MULTIPOLYGON, returned as WKT text." }, "to_geo_point": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo POINT, returned as WKT text. Accepts the {type, data} shape or a WKT string." }, "to_geo_polygon": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo POLYGON, returned as WKT text." } };
60
+ var FILTER_SPECS = { "deg2rad": { "result": "decimal", "group": "math", "description": "Convert degrees to radians" }, "rad2deg": { "result": "decimal", "group": "math", "description": "Convert radians to degrees" }, "number_format": { "args": [{ "name": "decimals", "type": "int" }, { "name": "decimal_separator", "type": "text" }, { "name": "thousands_separator", "type": "text" }], "result": "string", "group": "math", "description": "Format a number with flexible support over decimal places, thousands separator, and decimal separator." }, "sin": { "result": "decimal", "group": "math", "description": "Calculates the sine of the supplied value in radians" }, "asin": { "result": "decimal", "group": "math", "description": "Calculates the arc sine of the supplied value in radians" }, "asinh": { "result": "decimal", "group": "math", "description": "Calculates the inverse hyperbolic sine of the supplied value in radians" }, "cos": { "result": "decimal", "group": "math", "description": "Calculates the cosine of the supplied value in radians" }, "acos": { "result": "decimal", "group": "math", "description": "Calculates the arc cosine of the supplied value in radians" }, "acosh": { "result": "decimal", "group": "math", "description": "Calculates the inverse hyperbolic cosine of the supplied value in radians" }, "tan": { "result": "decimal", "group": "math", "description": "Calculates the tangent of the supplied value in radians" }, "atan": { "result": "decimal", "group": "math", "description": "Calculates the arc tangent of the supplied value in radians" }, "atanh": { "result": "decimal", "group": "math", "description": "Calculates the inverse hyperbolic tangent of the supplied value in radians" }, "floor": { "result": "int", "group": "math", "description": "Round a decimal down to its integer equivalent" }, "ceil": { "result": "int", "group": "math", "description": "Round a decimal up to its integer equivalent" }, "round": { "args": [{ "name": "precision", "type": "int", "optional": true }], "result": "decimal", "group": "math", "description": "Round a decimal with optional precision" }, "first": { "result": "<T>", "group": "array", "description": "Get the first entry of an array" }, "last": { "result": "<T>", "group": "array", "description": "Get the last entry of an array" }, "count": { "result": "int", "group": "array", "description": "Return the number of items in an object/array" }, "range": { "args": [{ "name": "start", "type": "int" }, { "name": "stop", "type": "int" }], "result": "int[]", "group": "array", "description": "Returns array of values between the specified start/stop." }, "reverse": { "result": "<T>[]", "group": "array", "description": "Returns values of an array in reverse order" }, "unique": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns unique values of an array" }, "safe_array": { "result": "<T>[]", "group": "array", "description": "Always returns an array. Uses the existing value if it is an array or creates an array of one element." }, "flatten": { "result": "<T>[]", "group": "array", "description": "Flattens a multidimensional array into a single level array of values." }, "filter_empty": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Returns a new array with only entries that are not empty ("", null, 0, "0", false, [], {}) The only one of the filter_* family that removes all of these; filter_empty_text, filter_null, filter_zero, filter_false, filter_empty_array and filter_empty_object each remove exactly one value, compared strictly.' }, "filter_empty_text": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Returns a new array without the empty-text entries: removes only "" (strict). null, 0, "0", false, [] and {} are kept; filter_empty removes all of them.' }, "filter_null": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not null" }, "filter_empty_array": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not an empty array `[]`" }, "filter_empty_object": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not an empty object `{}`" }, "filter_zero": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Returns a new array with only entries that are not zero Strict: removes only the integer 0, not "0" or 0.0.' }, "filter_false": { "args": [{ "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "Returns a new array with only entries that are not false" }, "sort": { "description": 'Sort an array of elements with an optional path inside the element Takes NO arguments: a plain ascending sort of the whole value (mixed types compare loosely, and arrays of objects by size first). To sort by a key, a type or a direction use `fl.fsort(path, type, asc)` \u2014 that is also what XanoScript\'s `|sort:\u2026` means. Prefer `fl.fsort` (`fl.fsort("", "number")` for numbers): a workspace saved through the XanoScript editor turns a stored `sort` into `fsort` with its text-order defaults.' }, "index_by": { "args": [{ "name": "path", "type": "text" }], "result": "{ [key: string]: <T>[] }", "group": "array", "description": "Groups the piped array into an OBJECT keyed by each item's path \u2014 every value is an ARRAY of the items sharing that key, even when only one item does. So a lookup reads `idx[key][0]`, not `idx[key]`; the singular spelling yields null rather than erroring. Items whose path is missing or non-scalar are dropped." }, "append": { "args": [{ "name": "value", "type": "<T>" }, { "name": "path", "type": "text" }], "result": "<T>[]", "group": "array", "description": "Push an element on to the end of an array within an object and return the updated object" }, "prepend": { "args": [{ "name": "value", "type": "<T>" }, { "name": "path", "type": "text" }], "result": "<T>[]", "group": "array", "description": "Push an element on to the beginning of an array within an object and return the updated object" }, "abs": { "result": "decimal", "group": "math", "description": "Returns the absolute value" }, "sqrt": { "result": "decimal", "group": "math", "description": "Returns the square root of the value" }, "exp": { "result": "decimal", "group": "math", "description": 'Returns the exponent of mathematical expression "e"' }, "log": { "args": [{ "name": "base", "type": "<T>" }], "result": "decimal", "group": "math", "description": "Returns the logarithm with a custom base" }, "log10": { "result": "decimal", "group": "math", "description": "Returns the Base-10 logarithm" }, "ln": { "result": "decimal", "group": "math", "description": "Returns the natural logarithm" }, "pow": { "args": [{ "name": "exp", "type": "<T>" }], "result": "decimal", "group": "math", "description": "Returns the value raised to the power of exp." }, "min": { "result": "decimal", "group": "math", "description": "Returns the min of the values of the array Over a SCALAR it takes a bound instead and returns the smaller of the two, so `min(3)` on 5 is 3. The array form ignores any argument; an EMPTY array yields null.", "args": [{ "name": "bound", "type": "decimal", "optional": true }] }, "max": { "result": "decimal", "group": "math", "description": "Returns the max of the values of the array Over a SCALAR it takes a bound instead and returns the larger of the two, so `max(8)` on 5 is 8. The array form ignores any argument; an EMPTY array yields null.", "args": [{ "name": "bound", "type": "decimal", "optional": true }] }, "sum": { "result": "decimal", "group": "math", "description": "Returns the sum of the values of the array" }, "avg": { "result": "decimal", "group": "math", "description": "Returns the average of the values of the array" }, "product": { "result": "decimal", "group": "math", "description": "Returns the product of the values of the array" }, "odd": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is odd" }, "even": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is even" }, "in": { "args": [{ "name": "search", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns whether or not the value is in the array" }, "add": { "args": [{ "name": "value", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Add 2 values together and return the answer" }, "bitwise_and": { "args": [{ "name": "value", "type": "int" }], "result": "int", "group": "math", "description": "Bitwise AND 2 values together and return the answer" }, "bitwise_or": { "args": [{ "name": "value", "type": "int" }], "result": "int", "group": "math", "description": "Bitwise OR 2 values together and return the answer" }, "bitwise_xor": { "args": [{ "name": "value", "type": "int" }], "result": "int", "group": "math", "description": "Bitwise XOR 2 values together and return the answer" }, "not": { "result": "bool", "group": "comparison", "description": "Returns the opposite of the existing value evaluated as a boolean" }, "bitwise_not": { "result": "int", "group": "math", "description": "Returns the existing value with its bits flipped" }, "is_object": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is an object." }, "is_array": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is a numerical indexed array." }, "is_int": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is an integer." }, "is_decimal": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is a decimal value." }, "is_bool": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is a boolean." }, "is_text": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is text." }, "addslashes": { "result": "text", "group": "text", "description": "Adds a backslash to the following characters: single quote, double quote, backslash, and null character." }, "escape": { "result": "text", "group": "text", "description": `JSON-string escaping, NOT HTML escaping: control characters become backslash sequences (newline as \\n, tab as \\t), and " and / are backslash-escaped. <, >, & and ' pass through unchanged, so the result is not HTML-safe. Deprecated upstream in favor of text_escape.` }, "list_encodings": { "result": "text[]", "group": "text", "description": "List support character encodings" }, "detect_encoding": { "args": [{ "name": "encodings", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Detect the character encoding of the supplied text" }, "to_utf8": { "result": "text", "group": "text", "description": "Convert the supplied text from its binary form (ISO-8859-1) to UTF-8." }, "from_utf8": { "result": "text", "group": "text", "description": "Convert the supplied text from UTF-8 to its binary form (ISO-8859-1)." }, "convert_encoding": { "args": [{ "name": "to", "type": "text" }, { "name": "from", "type": "text" }], "result": "text", "group": "text", "description": "Convert the character encoding of the supplied text" }, "trim": { "args": [{ "name": "mask", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Trim whitespace or other characters from both sides and return the result" }, "ltrim": { "args": [{ "name": "mask", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Trim whitespace or other characters from the left side and return the result" }, "rtrim": { "args": [{ "name": "mask", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Trim whitespace or other characters from the right return the result" }, "capitalize": { "result": "text", "group": "text", "description": "Converts the first letter of each word to a capital letter" }, "substr": { "args": [{ "name": "start", "type": "int" }, { "name": "length", "type": "int" }], "result": "text", "group": "text", "description": "Extracts a section of text" }, "split": { "args": [{ "name": "separator", "type": "text" }], "result": "text[]", "group": "text", "description": "Splits text into an array of text and returns the result" }, "join": { "args": [{ "name": "separator", "type": "text" }], "result": "text", "group": "array", "description": "Joins an array into a text string via the separator and returns the result" }, "strlen": { "result": "int", "group": "text", "description": "Returns the number of characters" }, "starts_with": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the expression is present at the beginning Direction: the piped value is the subject text; the argument is the substring searched for." }, "istarts_with": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the case-insensitive expression is present at the beginning Direction: the piped value is the subject text; the argument is the substring searched for." }, "ends_with": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the expression is present at the end Direction: the piped value is the subject text; the argument is the substring searched for." }, "iends_with": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the case-insensitive expression is present at the end Direction: the piped value is the subject text; the argument is the substring searched for." }, "contains": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the expression is found Direction: the piped value is the subject text; the argument is the substring searched for." }, "icontains": { "args": [{ "name": "search", "type": "text" }], "result": "bool", "group": "text", "description": "Returns whether or not the case-insensitive expression is found Direction: the piped value is the subject text; the argument is the substring searched for." }, "set": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": "Sets a value at the path within the object and returns the updated object" }, "set_conditional": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }, { "name": "conditional", "type": "any" }], "result": "any", "group": "manipulation", "description": "Sets a value at the path within the object and returns the updated object, if the conditional expression is true" }, "set_ifnotempty": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": 'Sets a value (if it is not empty: "", null, 0, "0", false, [], {}) at the path within the object and returns the updated object' }, "set_ifnotnull": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": "Sets a value (if it is not null) at the path within the object and returns the updated object" }, "first_notnull": { "args": [{ "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": "Returns the first value that is not null" }, "first_notempty": { "args": [{ "name": "value", "type": "any" }], "result": "any", "group": "manipulation", "description": 'Returns the first value that is not empty - i.e. not ("", null, 0, "0", false, [], {})' }, "unset": { "args": [{ "name": "path", "type": "text" }], "result": "any", "group": "manipulation", "description": "Removes a value at the path within the object and returns the updated object" }, "transform": { "args": [{ "name": "expression", "type": "text" }], "result": "any", "group": "manipulation", "description": 'Evaluates a Xano Expression Engine expression over the piped value. NOT a JavaScript body \u2014 there is no `return`, and the piped value binds POSITIONALLY as `$0` (or `$$`), NOT as `$this` (which resolves to null here, yielding a wrong answer with no error). `$var`, `$input`, `$env` and `$auth` also resolve, and filters may be piped inside the expression: `$0 * 2`, `$0|sort|join:","`, `{ id: $0.id, total: $0.qty * $0.price }`. PARENTHESIZE a pipe used inside an object/array literal \u2014 `{ s: ($0|sort|join:",") }` \u2014 or the filter argument\'s comma is read as the key separator, returning null and silently dropping every later key. For JavaScript use fl.lambda, whose body does bind `$this`.' }, "get": { "args": [{ "name": "path", "type": "text" }, { "name": "default", "type": "json", "optional": true }], "result": "any", "group": "manipulation", "description": "Returns the value of an object at the specified path" }, "has": { "args": [{ "name": "path", "type": "text" }], "result": "bool", "group": "manipulation", "description": "Returns the existence of whether or not something is present in the object at the specified path" }, "to_expr": { "result": "any", "group": "transform", "description": "Treats the PIPED TEXT as Xano Expression Engine source, evaluates it, and returns the result. Takes no argument. `$var`, `$input`, `$env` and `$auth` resolve inside it; there is no operand binding (`$0` is null) because the operand IS the source. For an expression OVER a value, use fl.transform." }, "to_text": { "result": "text", "group": "transform", "description": "Converts integer, decimal, or bool types to text and returns the result" }, "to_int": { "result": "int", "group": "transform", "description": "Converts text, decimal, or bool types to an integer and returns the result" }, "to_decimal": { "result": "decimal", "group": "transform", "description": "Converts text, integer, or bool types to a decimal and returns the result" }, "to_bool": { "result": "bool", "group": "transform", "description": "Converts text, integer, or decimal types to a bool and returns the result" }, "create_object": { "args": [{ "name": "values", "type": "<T>[]" }], "result": "any", "group": "transform", "description": "Creates an object based on a list of keys and a list of values" }, "create_object_from_entries": { "result": "any", "group": "transform", "description": "Creates an object based on an array of key/value pairs. (i.e. same result as the entries filter)" }, "json_decode": { "result": "any", "group": "transform", "description": "Decodes the value represented as json and returns the result" }, "json_encode": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as json text" }, "xml_decode": { "result": "any", "group": "transform", "description": "Decodes XML and returns the result" }, "csv_parse": { "args": [{ "name": "separator", "type": "text" }, { "name": "enclosure", "type": "text" }, { "name": "escape", "type": "text" }], "result": "any", "group": "transform", "description": "Parse the contents of a CSV file and convert it into an array of objects." }, "csv_decode": { "args": [{ "name": "separator", "type": "text" }, { "name": "enclosure", "type": "text" }, { "name": "escape", "type": "text" }], "result": "any", "group": "transform", "description": "Decodes the value represented in the CSV format and returns the result" }, "csv_encode": { "args": [{ "name": "separator", "type": "text" }, { "name": "enclosure", "type": "text" }, { "name": "escape", "type": "text" }], "result": "text", "group": "transform", "description": "Encodes the value and returns the result in CSV format Writes NO header row \u2014 values only. Each row contributes its own values in THAT row's key order, with no normalization across rows, so rows whose keys differ in order or count silently misalign columns rather than erroring. Non-scalar cells (nested objects/arrays) are JSON-encoded into the cell, and `false` writes as empty. If the piped array's elements are scalars rather than objects, the whole array is treated as ONE row and you get a single line. For a header, use `csv_create`." }, "csv_create": { "args": [{ "name": "rows", "type": "text[]" }, { "name": "separator", "type": "text" }, { "name": "enclosure", "type": "text" }, { "name": "escape", "type": "text" }], "result": "text", "group": "transform", "description": "Creates a CSV format data stream from a list of column names and their corresponding data rows. Direction: the piped value is the list of COLUMN NAMES (written as the header line); the `rows` argument carries the data rows. This is the header-writing counterpart to `csv_encode`, which emits values only." }, "url_decode": { "result": "text", "group": "transform", "description": "Decodes the value represented as a url encoded value" }, "url_decode_rfc3986": { "result": "text", "group": "transform", "description": "Decodes the value represented as a url encoded value using the RFC 3986 specification" }, "url_encode": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as a url encoded value" }, "url_encode_rfc3986": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as a url encoded value using the RFC 3986 specification" }, "url_addarg": { "args": [{ "name": "key", "type": "text" }, { "name": "value", "type": "text" }, { "name": "encoding_rfc3986", "type": "bool", "optional": true }], "result": "text", "group": "text", "description": "Parses a URL and returns an updated version with an encoded version of the supplied argument" }, "url_delarg": { "args": [{ "name": "key", "type": "text" }], "result": "text", "group": "text", "description": "Parses a URL and returns an updated version with the supplied argument removed" }, "url_hasarg": { "args": [{ "name": "key", "type": "text" }], "result": "bool", "group": "text", "description": "Returns the existence of a argument in the URL" }, "url_getarg": { "args": [{ "name": "key", "type": "text" }, { "name": "default", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Gets the argument's value from a URL" }, "url_parse": { "result": "json", "group": "text", "description": "Parses a URL into its individual components." }, "querystring_parse": { "result": "json", "group": "text", "description": "Parses a query string from a URL into its individual key-value pairs." }, "yaml_decode": { "result": "obj", "group": "transform", "description": "Decodes the value represented as yaml and returns the result" }, "yaml_encode": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as yaml text `inline` is the depth at which YAML stops expanding and starts writing flow style, and `indent` the spaces per level: the default writes a nested map over several lines, while `inline: 0` writes the whole value as `{ a: { b: 1 } }` on one.", "args": [{ "name": "options", "type": "bool", "optional": true }, { "name": "inline", "type": "int", "optional": true }, { "name": "indent", "type": "int", "optional": true }] }, "hex2bin": { "result": "text", "group": "transform", "description": "Converts a hex value into its binary equivalent" }, "bin2hex": { "result": "text", "group": "transform", "description": "Converts a binary value into its hex equivalent" }, "dechex": { "result": "text", "group": "transform", "description": "Converts a decimal value into its hex equivalent" }, "hexdec": { "result": "text", "group": "transform", "description": "Converts a hex value into its decimal equivalent" }, "decbin": { "result": "text", "group": "transform", "description": "Converts a decimal value into its binary string (i.e. 01010) equivalent" }, "bindec": { "result": "text", "group": "transform", "description": "Converts a binary string (i.e. 01010) into its decimal equivalent" }, "decoct": { "result": "text", "group": "transform", "description": "Converts a decimal value into its octal equivalent" }, "octdec": { "result": "text", "group": "transform", "description": "Converts an octal value into its decimal equivalent" }, "base_convert": { "args": [{ "name": "from_base", "type": "any" }, { "name": "to_base", "type": "any" }], "result": "text", "group": "transform", "description": "Converts a value between two bases" }, "base64_decode": { "result": "text", "group": "transform", "description": "Decodes the value represented as base64 text and returns the result" }, "base64_encode": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as base64 text" }, "base64_decode_urlsafe": { "result": "text", "group": "transform", "description": "Decodes the value represented as base64 urlsafe text and returns the result" }, "base64_encode_urlsafe": { "result": "text", "group": "transform", "description": "Encodes the value and returns the result as base64 urlsafe text" }, "encrypt": { "args": [{ "name": "algorithm", "type": "enum" }, { "name": "key", "type": "text" }, { "name": "iv", "type": "text" }], "result": "text", "group": "security", "description": "Encrypts the value and returns the result in raw binary form." }, "decrypt": { "args": [{ "name": "algorithm", "type": "enum" }, { "name": "key", "type": "text" }, { "name": "iv", "type": "text" }], "result": "text", "group": "security", "description": "Decrypts the value and returns the result." }, "jwe_encode": { "description": "Encodes the value and return the result as a JWE token", "args": [{ "name": "arg1", "type": "any" }] }, "jwe_decode": { "description": "Decodes the JWE token and return the result", "args": [{ "name": "arg1", "type": "any" }] }, "concat": { "args": [{ "name": "value", "type": "any" }], "result": "text", "group": "text", "description": "Concatenates two values together" }, "sprintf": { "result": "text", "group": "text", "description": "formats text with variable substitution", "variadic": true }, "secureid_encode": { "args": [{ "name": "salt", "type": "text" }], "result": "text", "group": "security", "description": "Returns an encrypted version of the id" }, "secureid_decode": { "args": [{ "name": "salt", "type": "text" }], "result": "int", "group": "security", "description": "Returns the id of the original encode" }, "md5": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a MD5 signature representation of the value" }, "sha1": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA1 signature representation of the value" }, "sha256": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA256 signature representation of the value" }, "sha384": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA384 signature representation of the value" }, "sha512": { "args": [{ "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA512 signature representation of the value" }, "hmac_md5": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a MD5 signature representation of the value using a shared secret via the HMAC method" }, "hmac_sha1": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA1 signature representation of the value using a shared secret via the HMAC method" }, "hmac_sha256": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA256 signature representation of the value using a shared secret via the HMAC method" }, "hmac_sha384": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA384 signature representation of the value using a shared secret via the HMAC method" }, "hmac_sha512": { "args": [{ "name": "key", "type": "text" }, { "name": "raw", "type": "bool", "optional": true }], "result": "text", "group": "security", "description": "Returns a SHA512 signature representation of the value using a shared secret via the HMAC method" }, "regex_quote": { "args": [{ "name": "delimiter", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Update the supplied text value to be properly escaped for regular expressions." }, "regex_replace": { "args": [{ "name": "replacement", "type": "text" }, { "name": "subject", "type": "text" }], "result": "text", "group": "text", "description": "Perform a regular expression search and replace on the supplied subject text. Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it \u2014 reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected." }, "map": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Creates a new array with the results of calling a provided function on every element in the calling array." }, "filter": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any[]", "group": "array", "description": "Filters the elements of an array based on the code block returning true to keep the element or false to skip it." }, "some": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "bool", "group": "array", "description": "Checks if at least one element in the array passes the test implemented by the provided function." }, "every": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "bool", "group": "array", "description": "Checks if all elements in the array pass the test implemented by the provided function." }, "find": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "<T>", "group": "array", "description": "Finds if all elements in the array pass the test implemented by the provided function." }, "findIndex": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "int", "group": "array", "description": "Finds the index of the first element in the array that passes the test implemented by the provided function." }, "reduce": { "args": [{ "name": "initial_value", "type": "any" }, { "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any", "group": "array", "description": "Reduces the array to a single value using the code block to combine each element of the array." }, "pick": { "args": [{ "name": "keys", "type": "text" }], "result": "<T>", "group": "array", "description": "Pick keys from the object to create a new object of just those keys." }, "unpick": { "args": [{ "name": "keys", "type": "text" }], "result": "<T>", "group": "array", "description": "Remove keys from the object to create a new object of the remaining keys." }, "text_unescape": { "result": "text", "group": "text", "description": "Convert escaped sequences into their raw form. Ex: \\n becomes a newline, \\t becomes a tab." }, "text_escape": { "result": "text", "group": "text", "description": "Converts control characters into their escaped sequences. Ex: newlines as \\n, tabs as \\t" }, "sql_esc": { "result": "text", "group": "text", "description": "Wraps text in single quotes and escapes any single quotes within the text to prevent SQL injection attacks. This is useful for safely inserting user input into values within SQL queries." }, "sql_alias": { "result": "text", "group": "text", "description": "Wraps text in double quotes and escapes any double quotes within the text to prevent SQL injection attacks. This is useful for safely inserting user input into table names or aliases within SQL queries." }, "is_uuid": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is a valid UUID." }, "lambda": { "args": [{ "name": "code", "type": "text" }, { "name": "timeout", "type": "int", "optional": true }], "result": "any", "group": "transform", "description": "Business logic using JavaScript." }, "lower": { "result": "text", "group": "text", "description": "Converts all characters to lower case and returns the result" }, "upper": { "result": "text", "group": "text", "description": "Converts all characters to upper case and returns the result" }, "sub": { "args": [{ "name": "value", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Subtracts 2 values together and returns the answer" }, "mul": { "args": [{ "name": "value", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Multiplies 2 values together and returns the answer" }, "div": { "args": [{ "name": "value", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Divides 2 values together and returns the answer" }, "fsort": { "args": [{ "name": "path", "type": "text", "optional": true }, { "name": "type", "type": "enum", "optional": true, "enum": ["text", "itext", "natural", "inatural", "number"] }, { "name": "asc", "type": "bool", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Sort an array of elements with an optional path inside the element Only `type: "number"` compares NUMERICALLY. "text"/"itext" are case-sensitive/insensitive string compares, "natural"/"inatural" are the human-readable "a2 < a10" orderings, and the default is "itext". An unrecognized spelling silently falls through to "itext" rather than erroring, so a numeric sort MUST spell "number" \u2014 anything else returns the right elements in the wrong order. `path` drills into each element.' }, "array_shuffle": { "result": "<T>[]", "group": "array", "description": "Shuffles the order of the entries in the array." }, "array_diff": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Return the entries from the first array that are not in the second array. Only values are used for matching." }, "array_diff_assoc": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Return the entries from the first array that are not in the second array. Values and keys are used for matching." }, "array_intersect": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Return the entries from the first array that are also present in the second array. Only values are used for matching." }, "array_intersect_assoc": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Return the entries from the first array that are also present in the second array. Values and keys are used for matching." }, "array_merge": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Merge the first level of elements of both arrays together and return the new array" }, "array_merge_recursive": { "args": [{ "name": "value", "type": "<T>[]" }], "result": "<T>[]", "group": "array", "description": "Merge the elements from all levels of both arrays together and return the new array" }, "array_push": { "args": [{ "name": "value", "type": "<T>" }], "result": "<T>[]", "group": "array", "description": "Push an element on to the end of an array and return the new array" }, "array_pop": { "result": "<T>", "group": "array", "description": "Pops the last element of the array off and returns it" }, "array_unshift": { "args": [{ "name": "value", "type": "<T>" }], "result": "<T>[]", "group": "array", "description": "Push an element to the beginning of an array and return the new array" }, "array_shift": { "result": "<T>", "group": "array", "description": "Shifts the first element of the array off and returns it" }, "array_remove": { "args": [{ "name": "value", "type": "<T>" }, { "name": "path", "type": "text" }, { "name": "strict", "type": "bool", "optional": true }], "result": "<T>[]", "group": "array", "description": "Remove any elements from the array that match the supplied value and then return the new array" }, "num_min": { "args": [{ "name": "value", "type": "any" }], "result": "decimal", "group": "math", "description": "Returns the min both values" }, "num_max": { "args": [{ "name": "value", "type": "any" }], "result": "decimal", "group": "math", "description": "Returns the max both values" }, "eq": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if both values are equal" }, "ne": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if both values are not equal" }, "gt": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if the left value is greater than the right value" }, "gte": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if the left value is greater than or equal to the right value" }, "lt": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if the left value is less than the right value" }, "lte": { "args": [{ "name": "value", "type": "<T>" }], "result": "bool", "group": "comparison", "description": "Returns a boolean if the left value is less than or equal to the right value" }, "mod": { "args": [{ "name": "value", "type": "int" }], "result": "int", "group": "math", "description": "Modulus 2 values together and return the answer" }, "empty": { "result": "bool", "group": "comparison", "description": 'Returns whether or not the value is empty ("", null, 0, "0", false, [], {})' }, "array_slice": { "args": [{ "name": "offset", "type": "int" }, { "name": "length", "type": "int", "optional": true }], "result": "<T>[]", "group": "array", "description": "Extract a section from an array." }, "strip_tags": { "args": [{ "name": "exclude", "type": "text", "optional": true }], "result": "text", "group": "text", "description": "Removes HTML tags from a string" }, "strip_accents": { "result": "text", "group": "text", "description": "Removes accents from characters" }, "strpos": { "args": [{ "name": "search", "type": "text" }], "result": "int|false", "group": "text", "description": "Returns the index of the case-sensitive expression or false if it can't be found" }, "stripos": { "args": [{ "name": "search", "type": "text" }], "result": "int|false", "group": "text", "description": "Returns the index of the case-insensitive expression or false if it can't be found" }, "array_fill": { "args": [{ "name": "start", "type": "int" }, { "name": "count", "type": "int" }], "result": "any[]", "group": "manipulation", "description": "Create an array of a certain size with a default value." }, "array_fill_keys": { "args": [{ "name": "keys", "type": "any[]" }], "result": "any[]", "group": "manipulation", "description": "Create an array of keys with a default value." }, "array_keys": { "result": "text[]", "group": "array", "description": "Get the property keys of an object/array as a numerically indexed array." }, "array_values": { "result": "any[]", "group": "array", "description": "Get the property values of an object/array as a numerically indexed array" }, "array_entries": { "result": "any[]", "group": "array", "description": "Get the property entries of an object/array as a numerically indexed array of key/value pairs." }, "to_epochms": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "epochms", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to timestamp comparible format." }, "to_epoch_ms": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the number of milliseconds since the unix epoch." }, "to_epoch_sec": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the number of seconds since the unix epoch." }, "to_epoch_minute": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the number of minutes since the unix epoch." }, "to_epoch_hour": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the number of hours since the unix epoch." }, "to_epoch_day": { "args": [{ "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "transform", "description": "Converts a text expression (now, next friday, Jan 1 2000) to the number of days since the unix epoch." }, "crypto_jws_encode": { "args": [{ "name": "headers", "type": "json" }, { "name": "key", "type": "json" }, { "name": "algorithm", "type": "enum" }, { "name": "ttl", "type": "int", "optional": true }], "result": "text", "group": "security", "description": "Encodes the value and return the result as a JWS token" }, "crypto_jws_decode": { "args": [{ "name": "check_claims", "type": "json" }, { "name": "key", "type": "json" }, { "name": "algorithm", "type": "enum" }, { "name": "timeDrift", "type": "int", "optional": true }], "result": "json", "group": "security", "description": "Decodes the JWS token and return the result" }, "crypto_jwe_encode": { "args": [{ "name": "headers", "type": "json" }, { "name": "key", "type": "json" }, { "name": "key_algorithm", "type": "enum" }, { "name": "content_algorithm", "type": "enum" }, { "name": "ttl", "type": "int", "optional": true }], "result": "text", "group": "security", "description": "Encodes the value and return the result as a JWE token" }, "crypto_jwe_decode": { "args": [{ "name": "check_claims", "type": "json" }, { "name": "key", "type": "json" }, { "name": "key_algorithm", "type": "enum" }, { "name": "content_algorithm", "type": "enum" }, { "name": "timeDrift", "type": "int", "optional": true }], "result": "json", "group": "security", "description": "Decodes the JWE token and return the result" }, "string_replace": { "args": [{ "name": "search", "type": "text" }, { "name": "replacement", "type": "text" }], "result": "text", "group": "text", "description": "Replace a text phrase with another" }, "uid": { "result": "int", "group": "security", "description": "Returns a unique 64bit unsigned int value seeded off the value" }, "uuid4": { "result": "text", "group": "security", "description": "Returns a universally unique identifier" }, "epochms_from_format": { "args": [{ "name": "format", "type": "text" }, { "name": "timezone", "type": "text", "optional": true }], "result": "text", "group": "timestamp", "description": "Parse a timestamp from a flexible format." }, "epochms_date": { "args": [{ "name": "format", "type": "text" }, { "name": "timezone", "type": "text", "optional": true }], "result": "text", "group": "timestamp", "description": "Converts a timestamp into a human readable formatted date based on the supplied format" }, "epochms_transform": { "args": [{ "name": "format", "type": "text" }, { "name": "timezone", "type": "text", "optional": true }], "result": "int", "group": "timestamp", "description": "Takes a timestamp and applies a relative transformation to it. Ex. -7 days, last Monday, first day of this month" }, "epochms_add_secs": { "args": [{ "name": "seconds", "type": "int" }], "result": "epochms", "group": "timestamp", "description": "Add seconds to a timestamp. (negative values are ok)" }, "epochms_add_ms": { "args": [{ "name": "milliseconds", "type": "int" }], "result": "epochms", "group": "timestamp", "description": "Add milliseconds to a timestamp. (negative values are ok)" }, "regex_test": { "args": [{ "name": "subject", "type": "text" }], "result": "bool", "group": "text", "description": "Tests if a regular expression matches the supplied subject text. Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it \u2014 reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected." }, "regex_match": { "args": [{ "name": "subject", "type": "text" }], "result": "text[]", "group": "text", "description": "Return the first set of matches performed by a regular expression on the supplied subject text. Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it \u2014 reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected." }, "regex_match_all": { "args": [{ "name": "subject", "type": "text" }], "result": "text[]", "group": "text", "description": "Return all matches performed by a regular expression on the supplied subject text. Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it \u2014 reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected." }, "array_filter": { "args": [{ "name": "match", "type": "obj" }, { "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": 'Keeps the elements matching EVERY key of the match object. Comparison is LOOSE, so a match of {k:"1"} keeps an element whose k is the number 1. `path` drills into the piped value first; a non-array piped value throws. Not the lambda `filter` \u2014 this matches by example, with no code.' }, "array_find": { "args": [{ "name": "match", "type": "obj" }], "result": "<T>", "group": "array", "description": "The FIRST element matching every key of the match object, comparing loosely. \u26A0 A miss THROWS (`Unable to find element.`) rather than yielding null, so guard the array before calling it or wrap the step in s.try_catch \u2014 unlike `array_has`, which answers false." }, "array_has": { "args": [{ "name": "match", "type": "obj" }], "result": "bool", "group": "array", "description": "Whether any element matches every key of the match object, comparing loosely. The safe counterpart to `array_find`: a miss returns false instead of throwing." }, "array_lower": { "result": "<T>[]", "group": "array", "description": "Lowercases every STRING element of the piped array, leaving other elements alone. Element-wise, unlike `lower`, which expects one string." }, "array_push_conditional": { "args": [{ "name": "value", "type": "any" }, { "name": "conditional", "type": "bool" }], "result": "<T>[]", "group": "array", "description": "Appends `value` only when `conditional` is truthy, and returns the array either way \u2014 so an optional item needs no surrounding branch." }, "array_replace": { "args": [{ "name": "match", "type": "any" }, { "name": "result", "type": "any" }], "result": "<T>[]", "group": "array", "description": "Replaces an element and returns the array. `match` is either an integer INDEX or a match object compared loosely against each element. \u26A0 An index that does not exist throws (`Unable to find element.`)." }, "array_set": { "args": [{ "name": "path", "type": "text" }, { "name": "value", "type": "any" }], "result": "obj", "group": "manipulation", "description": "Sets a dotted path on the piped value and returns it, creating intermediate levels. A piped value that is not an array/object is replaced by an empty one rather than erroring." }, "array_upmerge": { "args": [{ "name": "match", "type": "obj" }, { "name": "node", "type": "obj" }], "result": "<T>[]", "group": "array", "description": "Merges `node` into the FIRST element matching `match` (loose comparison) and returns the array; on a MISS it APPENDS `node` as a new element \u2014 an UPSERT, not an update-all. To update every match use `fl.map`/`s.array.map`. `array_replace` is also first-match-only but swaps the whole element and THROWS on a miss." }, "clamp_max": { "args": [{ "name": "max", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Lowers the piped number to `max` when it is above it; otherwise returns it unchanged." }, "clamp_min": { "args": [{ "name": "min", "type": "decimal" }], "result": "decimal", "group": "math", "description": "Raises the piped number to `min` when it is below it; otherwise returns it unchanged." }, "ms_to_secs": { "result": "int", "group": "timestamp", "description": "Milliseconds to whole seconds, truncated toward zero. The inverse of `secs_to_ms`, and the conversion between an epochms value and the SECOND counts every ttl/expiry knob takes." }, "null": { "result": "bool", "group": "comparison", "description": "Returns whether or not the value is null (is_null). Does not produce a null: use c.null() for that." }, "rsort": { "result": "<T>[]", "group": "array", "description": "Sorts the piped array in DESCENDING order. A non-array is returned unchanged." }, "secs_to_ms": { "result": "int", "group": "timestamp", "description": "Seconds to milliseconds. The inverse of `ms_to_secs`." }, "splice": { "args": [{ "name": "offset", "type": "int" }, { "name": "length", "type": "int", "optional": true }, { "name": "path", "type": "text", "optional": true }], "result": "<T>[]", "group": "array", "description": "\u26A0 Returns the REMOVED slice, not the remainder: splicing [1,2,3,4] at offset 1 for length 2 yields [2,3]. `length` defaults to 1. With a `path` it instead removes in place inside that path and returns the whole piped value \u2014 the two forms return different things." }, "to_geo_linestring": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo LINESTRING, returned as WKT text." }, "to_geo_multilinestring": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo MULTILINESTRING, returned as WKT text." }, "to_geo_multipoint": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo MULTIPOINT, returned as WKT text." }, "to_geo_multipolygon": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo MULTIPOLYGON, returned as WKT text." }, "to_geo_point": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo POINT, returned as WKT text. Accepts the {type, data} shape or a WKT string." }, "to_geo_polygon": { "result": "text", "group": "geo", "description": "Coerces the piped value to a geo POLYGON, returned as WKT text." } };
61
61
  var FILTER_REQUIRED_ARGS = { "add": 1, "append": 2, "array_diff": 1, "array_diff_assoc": 1, "array_fill": 2, "array_fill_keys": 1, "array_filter": 1, "array_find": 1, "array_has": 1, "array_intersect": 1, "array_intersect_assoc": 1, "array_merge": 1, "array_merge_recursive": 1, "array_push": 1, "array_push_conditional": 2, "array_remove": 2, "array_replace": 2, "array_set": 2, "array_slice": 1, "array_unshift": 1, "array_upmerge": 2, "base_convert": 2, "bitwise_and": 1, "bitwise_or": 1, "bitwise_xor": 1, "clamp_max": 1, "clamp_min": 1, "concat": 1, "contains": 1, "convert_encoding": 2, "create_object": 1, "crypto_jwe_decode": 4, "crypto_jwe_encode": 4, "crypto_jws_decode": 3, "crypto_jws_encode": 3, "csv_create": 4, "csv_decode": 3, "csv_encode": 3, "csv_parse": 3, "decrypt": 3, "div": 1, "encrypt": 3, "ends_with": 1, "epochms_add_ms": 1, "epochms_add_secs": 1, "epochms_date": 1, "epochms_from_format": 1, "epochms_transform": 1, "eq": 1, "every": 1, "filter": 1, "find": 1, "findIndex": 1, "first_notempty": 1, "first_notnull": 1, "get": 1, "gt": 1, "gte": 1, "has": 1, "hmac_md5": 1, "hmac_sha1": 1, "hmac_sha256": 1, "hmac_sha384": 1, "hmac_sha512": 1, "icontains": 1, "iends_with": 1, "in": 1, "index_by": 1, "istarts_with": 1, "join": 1, "jwe_decode": 1, "jwe_encode": 1, "lambda": 1, "log": 1, "lt": 1, "lte": 1, "map": 1, "mod": 1, "mul": 1, "ne": 1, "num_max": 1, "num_min": 1, "number_format": 3, "pick": 1, "pow": 1, "prepend": 2, "range": 2, "reduce": 2, "regex_match": 1, "regex_match_all": 1, "regex_replace": 2, "regex_test": 1, "secureid_decode": 1, "secureid_encode": 1, "set": 2, "set_conditional": 3, "set_ifnotempty": 2, "set_ifnotnull": 2, "some": 1, "splice": 1, "split": 1, "starts_with": 1, "string_replace": 2, "stripos": 1, "strpos": 1, "sub": 1, "substr": 2, "transform": 1, "unpick": 1, "unset": 1, "url_addarg": 2, "url_delarg": 1, "url_getarg": 1, "url_hasarg": 1 };
62
62
  var fl = {
63
63
  "abs": (
@@ -85,15 +85,15 @@ var fl = {
85
85
  slotted("append", ["value", "path"], 2)
86
86
  ),
87
87
  "array_diff": (
88
- /** Return the entries from the first array that are not in the second (group: array, result: <T>[]) */
88
+ /** Return the entries from the first array that are not in the second array. Only values are used for matching. (group: array, result: <T>[]) */
89
89
  slotted("array_diff", ["value"], 1)
90
90
  ),
91
91
  "array_diff_assoc": (
92
- /** Return the entries from the first array that are not in the second (group: array, result: <T>[]) */
92
+ /** Return the entries from the first array that are not in the second array. Values and keys are used for matching. (group: array, result: <T>[]) */
93
93
  slotted("array_diff_assoc", ["value"], 1)
94
94
  ),
95
95
  "array_entries": (
96
- /** Get the property entries of an object/array as a numerically (group: array, result: any[]) */
96
+ /** Get the property entries of an object/array as a numerically indexed array of key/value pairs. (group: array, result: any[]) */
97
97
  () => filter("array_entries")
98
98
  ),
99
99
  "array_fill": (
@@ -117,11 +117,11 @@ var fl = {
117
117
  slotted("array_has", ["match"], 1)
118
118
  ),
119
119
  "array_intersect": (
120
- /** Return the entries from the first array that are also present in (group: array, result: <T>[]) */
120
+ /** Return the entries from the first array that are also present in the second array. Only values are used for matching. (group: array, result: <T>[]) */
121
121
  slotted("array_intersect", ["value"], 1)
122
122
  ),
123
123
  "array_intersect_assoc": (
124
- /** Return the entries from the first array that are also present in (group: array, result: <T>[]) */
124
+ /** Return the entries from the first array that are also present in the second array. Values and keys are used for matching. (group: array, result: <T>[]) */
125
125
  slotted("array_intersect_assoc", ["value"], 1)
126
126
  ),
127
127
  "array_keys": (
@@ -133,11 +133,11 @@ var fl = {
133
133
  () => filter("array_lower")
134
134
  ),
135
135
  "array_merge": (
136
- /** Merge the first level of elements of both arrays together and (group: array, result: <T>[]) */
136
+ /** Merge the first level of elements of both arrays together and return the new array (group: array, result: <T>[]) */
137
137
  slotted("array_merge", ["value"], 1, false)
138
138
  ),
139
139
  "array_merge_recursive": (
140
- /** Merge the elements from all levels of both arrays together and (group: array, result: <T>[]) */
140
+ /** Merge the elements from all levels of both arrays together and return the new array (group: array, result: <T>[]) */
141
141
  slotted("array_merge_recursive", ["value"], 1, false)
142
142
  ),
143
143
  "array_pop": (
@@ -153,7 +153,7 @@ var fl = {
153
153
  slotted("array_push_conditional", ["value", "conditional"], 2)
154
154
  ),
155
155
  "array_remove": (
156
- /** Remove any elements from the array that match the supplied value (group: array, result: <T>[]) */
156
+ /** Remove any elements from the array that match the supplied value and then return the new array (group: array, result: <T>[]) */
157
157
  slotted("array_remove", ["value", "path", "strict"], 2)
158
158
  ),
159
159
  "array_replace": (
@@ -181,7 +181,7 @@ var fl = {
181
181
  slotted("array_unshift", ["value"], 1)
182
182
  ),
183
183
  "array_upmerge": (
184
- /** Merges `node` INTO every element matching `match` (loose comparison) and returns the array. An update-in-place for a list of records, where `array_replace` swaps the whole element. (group: array, result: <T>[]) */
184
+ /** Merges `node` into the FIRST element matching `match` (loose comparison) and returns the array; on a MISS it APPENDS `node` as a new element — an UPSERT, not an update-all. To update every match use `fl.map`/`s.array.map`. `array_replace` is also first-match-only but swaps the whole element and THROWS on a miss. (group: array, result: <T>[]) */
185
185
  slotted("array_upmerge", ["match", "node"], 2)
186
186
  ),
187
187
  "array_values": (
@@ -241,7 +241,7 @@ var fl = {
241
241
  slotted("bitwise_and", ["value"], 1)
242
242
  ),
243
243
  "bitwise_not": (
244
- /** Returns the existing value with its bits flipped (group: comparison, result: bool) */
244
+ /** Returns the existing value with its bits flipped (group: math, result: int) */
245
245
  () => filter("bitwise_not")
246
246
  ),
247
247
  "bitwise_or": (
@@ -377,7 +377,7 @@ var fl = {
377
377
  slotted("epochms_add_secs", ["seconds"], 1)
378
378
  ),
379
379
  "epochms_date": (
380
- /** Converts a timestamp into a human readable formatted date based on (group: timestamp, result: text) */
380
+ /** Converts a timestamp into a human readable formatted date based on the supplied format (group: timestamp, result: text) */
381
381
  slotted("epochms_date", ["format", "timezone"], 1)
382
382
  ),
383
383
  "epochms_from_format": (
@@ -385,7 +385,7 @@ var fl = {
385
385
  slotted("epochms_from_format", ["format", "timezone"], 1)
386
386
  ),
387
387
  "epochms_transform": (
388
- /** Takes a timestamp and applies a relative transformation to it. Ex. (group: timestamp, result: text) */
388
+ /** Takes a timestamp and applies a relative transformation to it. Ex. -7 days, last Monday, first day of this month (group: timestamp, result: int) */
389
389
  slotted("epochms_transform", ["format", "timezone"], 1)
390
390
  ),
391
391
  "eq": (
@@ -393,7 +393,7 @@ var fl = {
393
393
  slotted("eq", ["value"], 1)
394
394
  ),
395
395
  "escape": (
396
- /** Converts special characters into their escaped variants. Ex: for tabs and (group: text, result: text) */
396
+ /** JSON-string escaping, NOT HTML escaping: control characters become backslash sequences (newline as \n, tab as \t), and " and / are backslash-escaped. <, >, & and ' pass through unchanged, so the result is not HTML-safe. Deprecated upstream in favor of text_escape. (group: text, result: text) */
397
397
  () => filter("escape")
398
398
  ),
399
399
  "even": (
@@ -401,7 +401,7 @@ var fl = {
401
401
  () => filter("even")
402
402
  ),
403
403
  "every": (
404
- /** Checks if all elements in the array pass the test implemented by the provided function. (group: array, result: any[]) */
404
+ /** Checks if all elements in the array pass the test implemented by the provided function. (group: array, result: bool) */
405
405
  slotted("every", ["code", "timeout"], 1)
406
406
  ),
407
407
  "exp": (
@@ -413,7 +413,7 @@ var fl = {
413
413
  slotted("filter", ["code", "timeout"], 1)
414
414
  ),
415
415
  "filter_empty": (
416
- /** Returns a new array with only entries that are not empty ("", null, 0, "0", false, [], {}) (group: array, result: <T>[]) */
416
+ /** Returns a new array with only entries that are not empty ("", null, 0, "0", false, [], {}) The only one of the filter_* family that removes all of these; filter_empty_text, filter_null, filter_zero, filter_false, filter_empty_array and filter_empty_object each remove exactly one value, compared strictly. (group: array, result: <T>[]) */
417
417
  slotted("filter_empty", ["path"], 0)
418
418
  ),
419
419
  "filter_empty_array": (
@@ -425,7 +425,7 @@ var fl = {
425
425
  slotted("filter_empty_object", ["path"], 0)
426
426
  ),
427
427
  "filter_empty_text": (
428
- /** Returns a new array with only entries that are not empty ("", null, 0, "0", false, [], {}) (group: array, result: <T>[]) */
428
+ /** Returns a new array without the empty-text entries: removes only "" (strict). null, 0, "0", false, [] and {} are kept; filter_empty removes all of them. (group: array, result: <T>[]) */
429
429
  slotted("filter_empty_text", ["path"], 0)
430
430
  ),
431
431
  "filter_false": (
@@ -437,15 +437,15 @@ var fl = {
437
437
  slotted("filter_null", ["path"], 0)
438
438
  ),
439
439
  "filter_zero": (
440
- /** Returns a new array with only entries that are not zero (group: array, result: <T>[]) */
440
+ /** Returns a new array with only entries that are not zero Strict: removes only the integer 0, not "0" or 0.0. (group: array, result: <T>[]) */
441
441
  slotted("filter_zero", ["path"], 0)
442
442
  ),
443
443
  "find": (
444
- /** Finds if all elements in the array pass the test implemented by the provided function. (group: array, result: any[]) */
444
+ /** Finds if all elements in the array pass the test implemented by the provided function. (group: array, result: <T>) */
445
445
  slotted("find", ["code", "timeout"], 1)
446
446
  ),
447
447
  "findIndex": (
448
- /** Finds the index of the first element in the array that passes the test implemented by the provided function. (group: array, result: any[]) */
448
+ /** Finds the index of the first element in the array that passes the test implemented by the provided function. (group: array, result: int) */
449
449
  slotted("findIndex", ["code", "timeout"], 1)
450
450
  ),
451
451
  "first": (
@@ -485,7 +485,7 @@ var fl = {
485
485
  slotted("gt", ["value"], 1)
486
486
  ),
487
487
  "gte": (
488
- /** Returns a boolean if the left value is greater than or equal to the (group: comparison, result: bool) */
488
+ /** Returns a boolean if the left value is greater than or equal to the right value (group: comparison, result: bool) */
489
489
  slotted("gte", ["value"], 1)
490
490
  ),
491
491
  "has": (
@@ -665,7 +665,7 @@ var fl = {
665
665
  () => filter("not")
666
666
  ),
667
667
  "null": (
668
- /** Returns a null value. (group: misc, result: null) */
668
+ /** Returns whether or not the value is null (is_null). Does not produce a null: use c.null() for that. (group: comparison, result: bool) */
669
669
  () => filter("null")
670
670
  ),
671
671
  "num_max": (
@@ -717,15 +717,15 @@ var fl = {
717
717
  slotted("range", ["start", "stop"], 2)
718
718
  ),
719
719
  "reduce": (
720
- /** Reduces the array to a single value using the code block to combine each element of the array. (group: array, result: any[]) */
720
+ /** Reduces the array to a single value using the code block to combine each element of the array. (group: array, result: any) */
721
721
  slotted("reduce", ["initial_value", "code", "timeout"], 2)
722
722
  ),
723
723
  "regex_match": (
724
- /** Return the first set of matches performed by a regular expression Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it — reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected. (group: text, result: text[]) */
724
+ /** Return the first set of matches performed by a regular expression on the supplied subject text. Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it — reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected. (group: text, result: text[]) */
725
725
  slotted("regex_match", ["subject"], 1)
726
726
  ),
727
727
  "regex_match_all": (
728
- /** Return all matches performed by a regular expression on the Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it — reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected. (group: text, result: text[]) */
728
+ /** Return all matches performed by a regular expression on the supplied subject text. Direction: the piped value is the regex PATTERN; the `subject` argument is the text tested against it — reversed vs starts_with/contains. Build the pattern with c.regex(...) (delimiter-wrapped); a bare c.text(...) is rejected. (group: text, result: text[]) */
729
729
  slotted("regex_match_all", ["subject"], 1)
730
730
  ),
731
731
  "regex_quote": (
@@ -809,7 +809,7 @@ var fl = {
809
809
  () => filter("sin")
810
810
  ),
811
811
  "some": (
812
- /** Checks if at least one element in the array passes the test implemented by the provided function. (group: array, result: any[]) */
812
+ /** Checks if at least one element in the array passes the test implemented by the provided function. (group: array, result: bool) */
813
813
  slotted("some", ["code", "timeout"], 1)
814
814
  ),
815
815
  "sort": (
@@ -857,7 +857,7 @@ var fl = {
857
857
  slotted("strip_tags", ["exclude"], 0)
858
858
  ),
859
859
  "stripos": (
860
- /** Returns the index of the case-insensitive expression or false if it (group: text, result: int) */
860
+ /** Returns the index of the case-insensitive expression or false if it can't be found (group: text, result: int|false) */
861
861
  slotted("stripos", ["search"], 1)
862
862
  ),
863
863
  "strlen": (
@@ -865,7 +865,7 @@ var fl = {
865
865
  () => filter("strlen")
866
866
  ),
867
867
  "strpos": (
868
- /** Returns the index of the case-sensitive expression or false if it (group: text, result: int) */
868
+ /** Returns the index of the case-sensitive expression or false if it can't be found (group: text, result: int|false) */
869
869
  slotted("strpos", ["search"], 1)
870
870
  ),
871
871
  "sub": (
@@ -901,27 +901,27 @@ var fl = {
901
901
  () => filter("to_decimal")
902
902
  ),
903
903
  "to_epoch_day": (
904
- /** Converts a text expression (now, next friday, Jan 1 2000) to the (group: transform, result: int) */
904
+ /** Converts a text expression (now, next friday, Jan 1 2000) to the number of days since the unix epoch. (group: transform, result: int) */
905
905
  slotted("to_epoch_day", ["timezone"], 0)
906
906
  ),
907
907
  "to_epoch_hour": (
908
- /** Converts a text expression (now, next friday, Jan 1 2000) to the (group: transform, result: int) */
908
+ /** Converts a text expression (now, next friday, Jan 1 2000) to the number of hours since the unix epoch. (group: transform, result: int) */
909
909
  slotted("to_epoch_hour", ["timezone"], 0)
910
910
  ),
911
911
  "to_epoch_minute": (
912
- /** Converts a text expression (now, next friday, Jan 1 2000) to the (group: transform, result: int) */
912
+ /** Converts a text expression (now, next friday, Jan 1 2000) to the number of minutes since the unix epoch. (group: transform, result: int) */
913
913
  slotted("to_epoch_minute", ["timezone"], 0)
914
914
  ),
915
915
  "to_epoch_ms": (
916
- /** Converts a text expression (now, next friday, Jan 1 2000) to the (group: transform, result: int) */
916
+ /** Converts a text expression (now, next friday, Jan 1 2000) to the number of milliseconds since the unix epoch. (group: transform, result: int) */
917
917
  slotted("to_epoch_ms", ["timezone"], 0)
918
918
  ),
919
919
  "to_epoch_sec": (
920
- /** Converts a text expression (now, next friday, Jan 1 2000) to the (group: transform, result: int) */
920
+ /** Converts a text expression (now, next friday, Jan 1 2000) to the number of seconds since the unix epoch. (group: transform, result: int) */
921
921
  slotted("to_epoch_sec", ["timezone"], 0)
922
922
  ),
923
923
  "to_epochms": (
924
- /** Converts a text expression (now, next friday, Jan 1 2000) to (group: transform, result: epochms) */
924
+ /** Converts a text expression (now, next friday, Jan 1 2000) to timestamp comparible format. (group: transform, result: epochms) */
925
925
  slotted("to_epochms", ["timezone"], 0)
926
926
  ),
927
927
  "to_expr": (
@@ -1021,7 +1021,7 @@ var fl = {
1021
1021
  slotted("url_getarg", ["key", "default_"], 1)
1022
1022
  ),
1023
1023
  "url_hasarg": (
1024
- /** Returns the existence of a argument in the URL (group: text, result: text) */
1024
+ /** Returns the existence of a argument in the URL (group: text, result: bool) */
1025
1025
  slotted("url_hasarg", ["key"], 1)
1026
1026
  ),
1027
1027
  "url_parse": (
@@ -1052,4 +1052,4 @@ export {
1052
1052
  FILTER_REQUIRED_ARGS,
1053
1053
  fl
1054
1054
  };
1055
- //# sourceMappingURL=chunk-AXNX4NWN.js.map
1055
+ //# sourceMappingURL=chunk-RLQX6LHW.js.map