@xano/sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +788 -0
- package/LICENSE +21 -0
- package/README.md +541 -0
- package/dist/.build-fingerprint +1 -0
- package/dist/agent-file-refresh-ZEMK33AX.js +38 -0
- package/dist/answer-shape-K67TAAPY.js +33 -0
- package/dist/backend-dir-2U53CIAL.js +39 -0
- package/dist/backend-slot-7QXW2QYC.js +28 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +255 -0
- package/dist/branch-NCRNWQBQ.js +61 -0
- package/dist/branch-commands-ACIRCEQJ.js +79 -0
- package/dist/bundle.d.ts +223 -0
- package/dist/bundle.js +153 -0
- package/dist/capture-WAXPD7DR.js +41 -0
- package/dist/chunk-27GWNP2I.js +23 -0
- package/dist/chunk-2CMJZDCL.js +177 -0
- package/dist/chunk-2EZ3ZJZZ.js +302 -0
- package/dist/chunk-2GNFDZA2.js +390 -0
- package/dist/chunk-2MNLRIOX.js +11 -0
- package/dist/chunk-2TFRR6JV.js +104 -0
- package/dist/chunk-2ZUEE4EK.js +408 -0
- package/dist/chunk-36JUQZVQ.js +22 -0
- package/dist/chunk-3DRXWLJ5.js +83 -0
- package/dist/chunk-3JDU4VRL.js +137 -0
- package/dist/chunk-3KZCLN4Z.js +241 -0
- package/dist/chunk-3LDULPRE.js +168 -0
- package/dist/chunk-3M4LFYNQ.js +111 -0
- package/dist/chunk-3XI5CTUE.js +22 -0
- package/dist/chunk-3YW23UFH.js +50 -0
- package/dist/chunk-45UIT5T2.js +862 -0
- package/dist/chunk-4BW2SG2N.js +46 -0
- package/dist/chunk-4KHEMC32.js +79 -0
- package/dist/chunk-4POWHT2K.js +321 -0
- package/dist/chunk-4Q2GN7NW.js +192 -0
- package/dist/chunk-5A2PLKZB.js +70 -0
- package/dist/chunk-5FBYXK5P.js +159 -0
- package/dist/chunk-5HVXPTU4.js +323 -0
- package/dist/chunk-5QU2P5CA.js +304 -0
- package/dist/chunk-5V5XU32D.js +191 -0
- package/dist/chunk-5ZSO4T2G.js +10 -0
- package/dist/chunk-622HUCZT.js +10 -0
- package/dist/chunk-65HWOMGV.js +177 -0
- package/dist/chunk-6ELFRN3P.js +365 -0
- package/dist/chunk-6HO3NCSJ.js +1055 -0
- package/dist/chunk-6IUMKYWI.js +457 -0
- package/dist/chunk-6KEB3C3U.js +65 -0
- package/dist/chunk-6MR5TI5V.js +987 -0
- package/dist/chunk-6NNTNXN7.js +157 -0
- package/dist/chunk-6PBR37LN.js +97 -0
- package/dist/chunk-6QXLMMT3.js +155 -0
- package/dist/chunk-6ZGJCBZS.js +224 -0
- package/dist/chunk-73IVBKMA.js +250 -0
- package/dist/chunk-7G3CTU7I.js +286 -0
- package/dist/chunk-A3UDOZB6.js +222 -0
- package/dist/chunk-A6E77GDW.js +85 -0
- package/dist/chunk-AHJWCYQO.js +660 -0
- package/dist/chunk-AKNCFVKZ.js +36 -0
- package/dist/chunk-AM4FKL4J.js +237 -0
- package/dist/chunk-AN6BL47T.js +26 -0
- package/dist/chunk-AOSYVMUS.js +147 -0
- package/dist/chunk-APWXY5SL.js +182 -0
- package/dist/chunk-AWEIIR2U.js +218 -0
- package/dist/chunk-AWQ7BQTQ.js +73 -0
- package/dist/chunk-BAUZOWGX.js +393 -0
- package/dist/chunk-BHACRS6R.js +940 -0
- package/dist/chunk-BWPNT55T.js +680 -0
- package/dist/chunk-C6RIMRU4.js +187 -0
- package/dist/chunk-CGVQZXYG.js +263 -0
- package/dist/chunk-CIMQZRRE.js +162 -0
- package/dist/chunk-CJHQKJU4.js +113 -0
- package/dist/chunk-CTMO46PK.js +1897 -0
- package/dist/chunk-D53J55C5.js +106 -0
- package/dist/chunk-D7VGG3WS.js +90 -0
- package/dist/chunk-DAD3ONIS.js +245 -0
- package/dist/chunk-DGWHAVRG.js +162 -0
- package/dist/chunk-DX4QR4B2.js +483 -0
- package/dist/chunk-EHP3WPEG.js +21 -0
- package/dist/chunk-ELP2HMXC.js +432 -0
- package/dist/chunk-ERVIASGL.js +21 -0
- package/dist/chunk-ET4Y4XCB.js +865 -0
- package/dist/chunk-ETO6LGLD.js +4750 -0
- package/dist/chunk-EUUUMY7J.js +24 -0
- package/dist/chunk-FQJ2TTHP.js +218 -0
- package/dist/chunk-FQOF7E2E.js +133 -0
- package/dist/chunk-FWD7AL6N.js +21 -0
- package/dist/chunk-FXFV3KU6.js +138 -0
- package/dist/chunk-FXRQOWTE.js +171 -0
- package/dist/chunk-G554NZNI.js +210 -0
- package/dist/chunk-GSGDWJB5.js +13 -0
- package/dist/chunk-H2V3N23D.js +66 -0
- package/dist/chunk-H5C7MBCR.js +159 -0
- package/dist/chunk-HHN734BU.js +371 -0
- package/dist/chunk-HRVBLCVJ.js +243 -0
- package/dist/chunk-HVRUQXGD.js +1264 -0
- package/dist/chunk-I4F5TCJH.js +130 -0
- package/dist/chunk-IDOTCMDV.js +57 -0
- package/dist/chunk-IGOLHKWF.js +427 -0
- package/dist/chunk-JGE7CAWB.js +148 -0
- package/dist/chunk-JTUKLCXS.js +92 -0
- package/dist/chunk-JZGVVJSI.js +66 -0
- package/dist/chunk-K4WX6UUU.js +923 -0
- package/dist/chunk-K5BBGTYZ.js +217 -0
- package/dist/chunk-K6RXBGUB.js +427 -0
- package/dist/chunk-KTSDSD36.js +165 -0
- package/dist/chunk-L5JYN3NM.js +1038 -0
- package/dist/chunk-LIEOKXKD.js +354 -0
- package/dist/chunk-LLNZGEFK.js +51 -0
- package/dist/chunk-LPECSJ2J.js +55 -0
- package/dist/chunk-LQCMKAJ7.js +413 -0
- package/dist/chunk-LRN4ZJCQ.js +1145 -0
- package/dist/chunk-MJ4ZVHKN.js +17 -0
- package/dist/chunk-MXHSQOC4.js +3061 -0
- package/dist/chunk-N5GKCWE5.js +367 -0
- package/dist/chunk-NA3PXMEF.js +10 -0
- package/dist/chunk-NAQDMEHV.js +76 -0
- package/dist/chunk-NWKXM5RD.js +109 -0
- package/dist/chunk-NZOWWHU5.js +196 -0
- package/dist/chunk-OHX6MIUZ.js +184 -0
- package/dist/chunk-OOXWYAA4.js +15 -0
- package/dist/chunk-OPHB5ORL.js +1990 -0
- package/dist/chunk-OXA6PSZT.js +1725 -0
- package/dist/chunk-P2HAGF6H.js +73 -0
- package/dist/chunk-PTHVMXZI.js +3036 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-Q325JKYB.js +189 -0
- package/dist/chunk-Q7DGTQ5G.js +255 -0
- package/dist/chunk-QCNYHBL7.js +601 -0
- package/dist/chunk-QO6BVGS5.js +145 -0
- package/dist/chunk-QXTKSOFI.js +76 -0
- package/dist/chunk-ROY4YAEQ.js +66 -0
- package/dist/chunk-RTJRZFFY.js +447 -0
- package/dist/chunk-SAVJUS2X.js +128 -0
- package/dist/chunk-SFLHVCKX.js +173 -0
- package/dist/chunk-STSFNCY4.js +127 -0
- package/dist/chunk-SWBF2LTK.js +170 -0
- package/dist/chunk-T5KELPAR.js +109 -0
- package/dist/chunk-TFFGOFVZ.js +1481 -0
- package/dist/chunk-TLHIFK4M.js +256 -0
- package/dist/chunk-TLQE7ZN3.js +156 -0
- package/dist/chunk-TPHWJ7UG.js +1981 -0
- package/dist/chunk-TRJCALW3.js +291 -0
- package/dist/chunk-TTEIYD5P.js +133 -0
- package/dist/chunk-U64O2MXY.js +407 -0
- package/dist/chunk-UCQ2VUTG.js +630 -0
- package/dist/chunk-UTI5G6OJ.js +44 -0
- package/dist/chunk-UVHDMMIP.js +188 -0
- package/dist/chunk-UZ6QQWJT.js +120 -0
- package/dist/chunk-VAX3UZOY.js +686 -0
- package/dist/chunk-W3HBUKFO.js +57 -0
- package/dist/chunk-WKQLGKCL.js +2823 -0
- package/dist/chunk-WQFNASK4.js +560 -0
- package/dist/chunk-WRBKLYSJ.js +224 -0
- package/dist/chunk-WTPZRR4I.js +17 -0
- package/dist/chunk-WZDJ2LLX.js +2385 -0
- package/dist/chunk-X2NL4KUO.js +14 -0
- package/dist/chunk-X4DVXBFY.js +38 -0
- package/dist/chunk-X677DMZM.js +7050 -0
- package/dist/chunk-XBKMWY7F.js +612 -0
- package/dist/chunk-XNCP4KYO.js +78 -0
- package/dist/chunk-XVBGLISP.js +35 -0
- package/dist/chunk-XW6KISBB.js +1192 -0
- package/dist/chunk-YGZHHAAB.js +8156 -0
- package/dist/chunk-YHEFQUQB.js +186 -0
- package/dist/chunk-YLDALTWZ.js +653 -0
- package/dist/chunk-YU4HSQW7.js +229 -0
- package/dist/chunk-ZDPP6RKB.js +27 -0
- package/dist/chunk-ZFDZKNGG.js +194 -0
- package/dist/chunk-ZIY7RNUT.js +49 -0
- package/dist/chunk-ZYJP6BOO.js +30 -0
- package/dist/cli.d.ts +1111 -0
- package/dist/cli.js +165 -0
- package/dist/codegen-command-VR2GWR6C.js +173 -0
- package/dist/codegen.d.ts +115 -0
- package/dist/codegen.js +19 -0
- package/dist/commands-GJMJ4XYZ.js +76 -0
- package/dist/completion-ZQLO6PB6.js +738 -0
- package/dist/config-MBYGCAFK.js +136 -0
- package/dist/deploy-command-JVZPWHMK.js +180 -0
- package/dist/deploy-source-3W45CXMP.js +81 -0
- package/dist/dev-env-sync-HN44K4D5.js +188 -0
- package/dist/diagnostics-UEAAHWVF.js +30 -0
- package/dist/display-name-hint-ABBPVQIR.js +46 -0
- package/dist/emit-CyhBDxli.d.ts +7007 -0
- package/dist/env-example-refresh-ET5HMMDW.js +126 -0
- package/dist/env-pull-command-TNMNB3CV.js +323 -0
- package/dist/env-target-O4HRKTGZ.js +40 -0
- package/dist/env-var-command-ZIRDCAZA.js +427 -0
- package/dist/ephemeral-P7F3PMAD.js +54 -0
- package/dist/ephemeral-command-CLJJKOFT.js +592 -0
- package/dist/ephemeral-state-PYCBSOGX.js +61 -0
- package/dist/file-lock-PT74GWYW.js +10 -0
- package/dist/generate-command-AYEOLA26.js +510 -0
- package/dist/gitignore-3SJ3WNRG.js +51 -0
- package/dist/guards-4EBNCZDC.js +162 -0
- package/dist/hosted-file-PSHJB3HX.js +28 -0
- package/dist/impersonate-command-5JAS3WSV.js +152 -0
- package/dist/import-EQSFU6JC.js +19 -0
- package/dist/index.d.ts +5470 -0
- package/dist/index.js +371 -0
- package/dist/init-command-X2FR4UAK.js +125 -0
- package/dist/init-modules-RY7UHAOL.js +50 -0
- package/dist/init-web-M4YZSZK6.js +42 -0
- package/dist/internal.d.ts +179 -0
- package/dist/internal.js +2634 -0
- package/dist/io-RC56QSN5.js +26 -0
- package/dist/keep-data-merge-7MPLVAVI.js +1119 -0
- package/dist/lambda-config-reconcile-OUZ4OYAB.js +116 -0
- package/dist/landed-753YLJ5H.js +40 -0
- package/dist/landing-record-SU52SKXU.js +61 -0
- package/dist/live-diff-YONW2VI3.js +65 -0
- package/dist/local-engine-choice-CH5X3W7E.js +79 -0
- package/dist/local-engine-command-Z3OL7VOD.js +766 -0
- package/dist/local-engine-config-5U3SC434.js +39 -0
- package/dist/local-engine-deploy-PCQ4SNPB.js +39 -0
- package/dist/local-engine-process-EHTE5LLU.js +63 -0
- package/dist/local-engine-state-A4FTRFAF.js +32 -0
- package/dist/local-engine-update-check-6L645VBL.js +162 -0
- package/dist/lock-MRRHW5GS.js +87 -0
- package/dist/lock-commands-2QG25HL7.js +963 -0
- package/dist/login-command-QPYRWOXZ.js +538 -0
- package/dist/logout-command-WOIQLDP6.js +56 -0
- package/dist/loop-ALIZLOSX.js +191 -0
- package/dist/marketplace-command-K5YL42NO.js +977 -0
- package/dist/marketplace-resolve-LY32JES5.js +40 -0
- package/dist/meta-client-YXGPW53C.js +244 -0
- package/dist/module-manifest-JFGHU2TC.js +38 -0
- package/dist/near-key.d.ts +13 -0
- package/dist/near-key.js +8 -0
- package/dist/node.d.ts +95 -0
- package/dist/node.js +969 -0
- package/dist/operation-outcome-TZSESNC7.js +51 -0
- package/dist/output-target-AL3I44GG.js +47 -0
- package/dist/package-manager-PRAHUSCN.js +34 -0
- package/dist/plan-disclosure-6G4MLZKD.js +114 -0
- package/dist/plugin-contributions-WRNY5ABG.js +28 -0
- package/dist/plugin-prompt-4VA3B4FF.js +20 -0
- package/dist/plugin-questions-JTSYA74Q.js +24 -0
- package/dist/plugin.d.ts +396 -0
- package/dist/plugin.js +1 -0
- package/dist/preflight-command-2T5Z36MI.js +321 -0
- package/dist/profile-command-AH3PIM4X.js +800 -0
- package/dist/profile-pointer-GRWJU3YD.js +31 -0
- package/dist/profile-select-74TRDEPD.js +23 -0
- package/dist/project-dependency-KSH63ODT.js +35 -0
- package/dist/project-sdk-REPPOIBD.js +24 -0
- package/dist/promote-command-PCWT5N6S.js +140 -0
- package/dist/prompt-II3F3LND.js +27 -0
- package/dist/publish-command-TTDUUJI5.js +414 -0
- package/dist/pull-command-VBO7C4S3.js +161 -0
- package/dist/pull-superseded-GJWLG7XO.js +20 -0
- package/dist/release-command-N4ZPKMHR.js +146 -0
- package/dist/release-ns-command-3KFDMZ6G.js +1745 -0
- package/dist/response-HlXahv4K.d.ts +925 -0
- package/dist/retry-command-AS5EVREX.js +34 -0
- package/dist/routes-manifest-SNWUVBT6.js +43 -0
- package/dist/runtime-XETHVF33.js +14 -0
- package/dist/scaffold.d.ts +1911 -0
- package/dist/scaffold.js +107 -0
- package/dist/secrets-file-LVZD6IIM.js +56 -0
- package/dist/secrets-fill-command-TTCPSVXN.js +218 -0
- package/dist/seed-VU7C3QYS.js +46 -0
- package/dist/sent-writes-N7X4OVXT.js +22 -0
- package/dist/source-resolve-S2XA3XZF.js +83 -0
- package/dist/static-host-B2Y6AG3W.js +352 -0
- package/dist/status-command-RUDXTF7I.js +554 -0
- package/dist/store-6VNCD4D7.js +20 -0
- package/dist/store-ARM6VMO5.js +98 -0
- package/dist/store-DuYfzKlW.d.ts +3144 -0
- package/dist/suggest-6FOOYKHG.js +12 -0
- package/dist/sveltekit.d.ts +154 -0
- package/dist/sveltekit.js +109 -0
- package/dist/sync-contributions-UCEROO26.js +415 -0
- package/dist/table-ENAVMITR.js +42 -0
- package/dist/tables-command-GUPXXSB5.js +156 -0
- package/dist/tenant-IIHPOHGP.js +42 -0
- package/dist/tenant-command-D5HGI2X4.js +965 -0
- package/dist/test-command-TIKZMDPZ.js +476 -0
- package/dist/tests-BGGIOK3L.js +26 -0
- package/dist/token-NICJUTMT.js +72 -0
- package/dist/toolchain-hooks-GHKLUJOH.js +96 -0
- package/dist/toolchain-modules-5EAZUONB.js +24 -0
- package/dist/tracked-backend-EIBUMDZA.js +80 -0
- package/dist/update-check-2W2NLDTC.js +136 -0
- package/dist/upgrade-command-QHNFWM7O.js +531 -0
- package/dist/verify-rollout-DRCK5TDD.js +61 -0
- package/dist/whoami-command-STGINTXH.js +51 -0
- package/dist/workspace-2CLHU2LK.js +93 -0
- package/dist/workspace-binding-56PIIPCP.js +54 -0
- package/dist/workspace-command-JEXQETJD.js +535 -0
- package/dist/workspace-env-F2RFMSC5.js +70 -0
- package/dist/workspace-export-OJSH2HIW.js +21 -0
- package/dist/writable-VA7OISSK.js +25 -0
- package/dist/xano-ICFUSPFR.js +42 -0
- package/dist/xanosdk-import-GN42TO2B.js +56 -0
- package/dist/xanosdk-project-S6DXJONQ.js +41 -0
- package/dist/xdo-CxDr2Q1C.d.ts +1371 -0
- package/guides/README.md +33 -0
- package/guides/authoring.md +921 -0
- package/guides/cli.md +401 -0
- package/guides/codegen.md +177 -0
- package/guides/codes.md +404 -0
- package/guides/coverage.md +74 -0
- package/guides/deploying.md +1525 -0
- package/guides/environment.md +400 -0
- package/guides/marketplace.md +415 -0
- package/guides/module-contract.md +558 -0
- package/guides/object-kinds.md +433 -0
- package/guides/project-structure.md +43 -0
- package/guides/scaffold.md +351 -0
- package/guides/typed-frontend.md +242 -0
- package/llms/client.md +63 -0
- package/llms/errors.md +56 -0
- package/llms/fields.md +176 -0
- package/llms/filters.md +183 -0
- package/llms/kinds-agent-mcp.md +30 -0
- package/llms/kinds-core.md +100 -0
- package/llms/kinds-knowledge.md +20 -0
- package/llms/kinds-realtime.md +76 -0
- package/llms/lambda.md +94 -0
- package/llms/legacy.md +44 -0
- package/llms/lock.md +40 -0
- package/llms/object-kinds.md +34 -0
- package/llms/statements-calls.md +62 -0
- package/llms/statements-catalog.md +320 -0
- package/llms/statements-data.md +66 -0
- package/llms/statements-runtime.md +68 -0
- package/llms/tests.md +59 -0
- package/llms/toolchain.md +16 -0
- package/llms/triggers.md +36 -0
- package/llms/values.md +29 -0
- package/llms-full.txt +2085 -0
- package/llms.txt +493 -0
- package/manifest.json +11224 -0
- package/package.json +162 -0
- package/types/lambda-globals.d.ts +129 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export { a4 as FIELD_METHODS, a5 as REFERENCEABLE_KINDS, a6 as deriveGuid, a7 as encodeResponse, a8 as encodeStatement, a9 as getStatementFactory, aa as isRegisteredStatement, ab as resolveRef, ac as toNestedFields } from './response-HlXahv4K.js';
|
|
2
|
+
import { q as StatementSpec } from './store-DuYfzKlW.js';
|
|
3
|
+
export { P as FILTER_NAMES, Q as GENERATED_STATEMENT_NAMES, T as LLMS_TXT, M as Manifest, m as ManifestField, n as ManifestKind, o as ManifestStatement, U as TOTAL_OBJECT_KINDS, V as buildManifest, W as encodeFromSpec, X as generatedStatements, Y as getLockedCanonical, Z as getLockedGuid, _ as isLockSeeded, $ as registerSpec, a0 as renderDocs, a1 as renderLlmsTxt } from './store-DuYfzKlW.js';
|
|
4
|
+
import { F as FunctionDef, aL as ObjectKind } from './emit-CyhBDxli.js';
|
|
5
|
+
export { b as AdoptChange, c as AdoptResult, B as Bundle, p as BundlePayload, q as BundleType, cJ as KNOWLEDGE_DIR, cK as KNOWLEDGE_FILE, cL as LOCK_PAYLOAD_KEYS, cM as LOCK_VERSION, ae as LockEntry, af as LockExportContext, L as LockFile, av as MergeResult, cN as PAYLOAD_ARRAY_KEYS, aR as PayloadArrayKey, cO as QUERY_EXPRESSION_FILTERS, bg as RenameResult, cP as VECTOR_FILTERS, cQ as WORKSPACE_KEY, cR as addonKind, cS as adoptFromBundle, cT as agentKind, cU as apiGroupKind, cV as buildBundle, cW as buildMiddlewareBlock, cX as buildWorkspaceHistory, cY as calcSignatureJson, cZ as channelPathParams, c_ as createLockContext, c$ as declaredServicePorts, d0 as emptyLock, d1 as encodeAddon, d2 as encodeAgent, d3 as encodeApiGroup, d4 as encodeColumn, d5 as encodeContainerHistory, d6 as encodeHistory, d7 as encodeIndex, d8 as encodeKnowledge, d9 as encodeMcpServer, da as encodeMicroservice, db as encodeMiddleware, dc as encodeMiddlewareEntry, dd as encodeMiddlewareList, de as encodeObject, df as encodeQuery, dg as encodeRealtimeChannel, dh as encodeRealtimeMessage, di as encodeRealtimeServer, dj as encodeSchedule, dk as encodeTable, dl as encodeTask, dm as encodeTool, dn as encodeToolRefs, dp as encodeToolsetBase, dq as encodeTrigger, dr as encodeView, ds as encodeWorkflowTest, dt as encodeWorkspaceConfig, du as getKind, dv as isKnowledgeDirSource, dw as isKnowledgeFileSource, dx as isQueryExpressionFilter, dy as isRegisteredKind, dz as knowledgeKind, dA as lockKey, dB as mcpServerKind, dC as mergeObserved, dD as microserviceKind, dE as middlewareKind, dF as mintCanonical, dG as parseLock, dH as phpJsonEncode, dI as queryKind, dJ as realtimeChannelGuid, dK as realtimeChannelKind, dL as realtimeMessageGuid, dM as realtimeMessageKind, dN as realtimeServerKind, dO as recordObserved, dP as registerKind, dQ as registeredKinds, dR as renameLockEntry, dS as resolveAuthRef, dT as resolvePayloadKey, dU as resolveRealtimeServerCanonical, dV as resolveToolsetCanonical, dW as serializeBundle, dX as serializeLock, dY as tableKind, dZ as taskKind, d_ as toolKind, d$ as triggerKind, e0 as validateLockModel, e1 as workflowTestKind, e2 as workspaceKind } from './emit-CyhBDxli.js';
|
|
6
|
+
import { k as FunctionXdo } from './xdo-CxDr2Q1C.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The declarative statement catalog: one StatementSpec per cleanly
|
|
10
|
+
* interpretable statement schema, generated from the Xano engine's statement
|
|
11
|
+
* schema definitions. The engine-only `output` flag is pinned from the
|
|
12
|
+
* persisted golden fixtures.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
declare const GENERATED_SPECS: StatementSpec[];
|
|
16
|
+
|
|
17
|
+
/** One instance capability a bundle can depend on. */
|
|
18
|
+
interface Capability {
|
|
19
|
+
/** What to look for on the instance, in the platform's own words. */
|
|
20
|
+
readonly label: string;
|
|
21
|
+
/** What stops working without it. */
|
|
22
|
+
readonly effect: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The capabilities the editor gates on, keyed as this SDK reports them.
|
|
26
|
+
*
|
|
27
|
+
* `paidInstance` is the one that is not a flag: the zip family is gated on the
|
|
28
|
+
* instance NOT being free, so it is stated positively here rather than as a
|
|
29
|
+
* negated flag an author would have to invert while reading.
|
|
30
|
+
*/
|
|
31
|
+
declare const CAPABILITIES: {
|
|
32
|
+
readonly cache: {
|
|
33
|
+
readonly label: "Redis / cache support";
|
|
34
|
+
readonly effect: "every `s.redis.*` statement, including `s.redis.ratelimit`";
|
|
35
|
+
};
|
|
36
|
+
readonly lambda: {
|
|
37
|
+
readonly label: "Lambda (JavaScript/TypeScript) support";
|
|
38
|
+
readonly effect: "`s.lambda`, and the `fl.lambda`-family filters that run through it";
|
|
39
|
+
};
|
|
40
|
+
readonly premiumInstance: {
|
|
41
|
+
readonly label: "a premium instance";
|
|
42
|
+
readonly effect: "`s.await` (awaiting an async function run) and direct SQL";
|
|
43
|
+
};
|
|
44
|
+
readonly directQuery: {
|
|
45
|
+
readonly label: "direct-query support";
|
|
46
|
+
readonly effect: "`s.db.direct_query` — raw SQL against this workspace's own tables";
|
|
47
|
+
};
|
|
48
|
+
readonly microservice: {
|
|
49
|
+
readonly label: "microservice support";
|
|
50
|
+
readonly effect: "`s.microservice.request`";
|
|
51
|
+
};
|
|
52
|
+
readonly realtimeV2: {
|
|
53
|
+
readonly label: "realtime (v2) support";
|
|
54
|
+
readonly effect: "`s.realtime.publish`";
|
|
55
|
+
};
|
|
56
|
+
readonly rawFileAccess: {
|
|
57
|
+
readonly label: "raw file access";
|
|
58
|
+
readonly effect: "reading a file resource's bytes, and the CSV/JSONL streaming readers";
|
|
59
|
+
};
|
|
60
|
+
readonly paidInstance: {
|
|
61
|
+
readonly label: "a paid (non-free) instance";
|
|
62
|
+
readonly effect: "the whole `s.zip.*` family";
|
|
63
|
+
};
|
|
64
|
+
readonly fileUpload: {
|
|
65
|
+
readonly label: "file upload";
|
|
66
|
+
readonly effect: "creating and deleting stored file resources";
|
|
67
|
+
};
|
|
68
|
+
readonly images: {
|
|
69
|
+
readonly label: "image storage";
|
|
70
|
+
readonly effect: "`s.storage.create_image`";
|
|
71
|
+
};
|
|
72
|
+
readonly videos: {
|
|
73
|
+
readonly label: "video storage";
|
|
74
|
+
readonly effect: "`s.storage.create_video`";
|
|
75
|
+
};
|
|
76
|
+
readonly audio: {
|
|
77
|
+
readonly label: "audio storage";
|
|
78
|
+
readonly effect: "`s.storage.create_audio`";
|
|
79
|
+
};
|
|
80
|
+
readonly attachment: {
|
|
81
|
+
readonly label: "attachment storage";
|
|
82
|
+
readonly effect: "`s.storage.create_attachment`";
|
|
83
|
+
};
|
|
84
|
+
readonly privateStorage: {
|
|
85
|
+
readonly label: "private file storage";
|
|
86
|
+
readonly effect: "`s.storage.sign_private_url`";
|
|
87
|
+
};
|
|
88
|
+
readonly webflow: {
|
|
89
|
+
readonly label: "the Webflow integration";
|
|
90
|
+
readonly effect: "`s.webflow.request`";
|
|
91
|
+
};
|
|
92
|
+
readonly datadog: {
|
|
93
|
+
readonly label: "the Datadog integration";
|
|
94
|
+
readonly effect: "every `s.datadog.*` statement";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
/** A key of {@link CAPABILITIES}. */
|
|
98
|
+
type CapabilityId = keyof typeof CAPABILITIES;
|
|
99
|
+
/**
|
|
100
|
+
* Stored statement name → the capabilities its instance must have.
|
|
101
|
+
*
|
|
102
|
+
* `mvp:dbo_direct_query` carries two because the editor's predicate is a
|
|
103
|
+
* conjunction: a premium instance AND direct-query support. Everything else is
|
|
104
|
+
* one.
|
|
105
|
+
*/
|
|
106
|
+
declare const STATEMENT_CAPABILITIES: Readonly<Record<string, readonly CapabilityId[]>>;
|
|
107
|
+
/** One capability a bundle needs, with what asked for it. */
|
|
108
|
+
interface CapabilityRequirement {
|
|
109
|
+
readonly id: CapabilityId;
|
|
110
|
+
readonly label: string;
|
|
111
|
+
readonly effect: string;
|
|
112
|
+
/** The stored statement names in this bundle that need it, sorted. */
|
|
113
|
+
readonly statements: readonly string[];
|
|
114
|
+
/** The objects those statements sit in (nearest named ancestor), sorted. */
|
|
115
|
+
readonly objects: readonly string[];
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Every instance capability a compiled bundle depends on.
|
|
119
|
+
*
|
|
120
|
+
* Walks the bundle for statement names rather than re-encoding the defs, so it
|
|
121
|
+
* sees exactly what will be deployed — including anything a `raw()` escape hatch
|
|
122
|
+
* put there, which a def-level walk would miss.
|
|
123
|
+
*/
|
|
124
|
+
declare function bundleCapabilities(bundle: unknown): CapabilityRequirement[];
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The canonical statement authoring-surface catalog — one entry per engine
|
|
128
|
+
* statement schema, mapping the surface key to its stored `mvp:` name. This is
|
|
129
|
+
* SDK metadata (it drives the agent-grounding manifest and the coverage report),
|
|
130
|
+
* so it lives in `src` rather than the test tree.
|
|
131
|
+
*
|
|
132
|
+
* A key normally mirrors the engine's own statement-schema filename, which
|
|
133
|
+
* keeps this catalog checkable against the engine one line at a time. One entry
|
|
134
|
+
* deliberately does not: `microservice.request` is stored as
|
|
135
|
+
* `mvp:microservice_request` and the engine files its schema under the `api`
|
|
136
|
+
* namespace, but a microservice is a first-class workspace object here — with
|
|
137
|
+
* its own def factory and deploy path — so its call statement is filed beside
|
|
138
|
+
* it. The same decision is mirrored in codegen, which is what keeps the
|
|
139
|
+
* generated factory tree in agreement with this key.
|
|
140
|
+
*
|
|
141
|
+
* A second entry does the same: `lambda` is stored as `mvp:lambda` and the
|
|
142
|
+
* engine files its schema under the `api` namespace, but a lambda runs wherever
|
|
143
|
+
* a stack runs — in functions, tasks, middleware, and triggers, not only APIs —
|
|
144
|
+
* so filing it under `s.api.*` said something false about where it is available.
|
|
145
|
+
* It is `s.lambda`, with the matching `NAMESPACE_OVERRIDES` entry.
|
|
146
|
+
*
|
|
147
|
+
* One surface-pair shares a stored name (so the catalog has one fewer unique
|
|
148
|
+
* stored name than surfaces): `util.get_raw_input`/`util.get_input` →
|
|
149
|
+
* `mvp:get_input`.
|
|
150
|
+
*
|
|
151
|
+
* `raw()` (from `@xano/sdk/codegen`) is deliberately **not** in this catalog
|
|
152
|
+
* and not under `s.`: it is a verbatim passthrough for stored statements the
|
|
153
|
+
* catalog cannot model, emitted by codegen, not authored by hand.
|
|
154
|
+
*/
|
|
155
|
+
/** Every engine statement schema file → its stored `mvp:` name. */
|
|
156
|
+
declare const STATEMENT_SURFACES: ReadonlyArray<readonly [string, string]>;
|
|
157
|
+
/** Total authoring surfaces (= engine statement schema file count). */
|
|
158
|
+
declare const TOTAL_STATEMENTS: number;
|
|
159
|
+
/** Statement authoring surfaces (by schema key). */
|
|
160
|
+
declare const IMPLEMENTED_STATEMENTS: string[];
|
|
161
|
+
/**
|
|
162
|
+
* The dotted `s.` authoring path for a surface key — e.g. `array.filter` →
|
|
163
|
+
* `array.filter` (reachable as `s.array.filter`), `stack|expect.to_equal` →
|
|
164
|
+
* `expect.to_equal`, `var` → `set_var`. Verified against the live `s` tree by
|
|
165
|
+
* the manifest test.
|
|
166
|
+
*/
|
|
167
|
+
declare function sPathOf(surfaceKey: string): string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The `function` object kind. This is the MVP's `compile()` envelope
|
|
171
|
+
* logic, re-homed as the first registered kind. Behavior is unchanged — the
|
|
172
|
+
* MVP golden test is the regression guard.
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/** Encode a `FunctionDef` into the flattened importable function `xdo`. */
|
|
176
|
+
declare function encodeFunction(fn: FunctionDef): FunctionXdo;
|
|
177
|
+
declare const functionKind: ObjectKind<FunctionDef, FunctionXdo>;
|
|
178
|
+
|
|
179
|
+
export { CAPABILITIES, type Capability, type CapabilityId, type CapabilityRequirement, GENERATED_SPECS, IMPLEMENTED_STATEMENTS, ObjectKind, STATEMENT_CAPABILITIES, STATEMENT_SURFACES, TOTAL_STATEMENTS, bundleCapabilities, encodeFunction, functionKind, sPathOf };
|