@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,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FIRST_PARTY_SCOPE,
|
|
3
|
+
MarketplaceModuleNotFoundError,
|
|
4
|
+
isLocalSpecifier,
|
|
5
|
+
nearPackage,
|
|
6
|
+
notInMarketplaceError,
|
|
7
|
+
resolveMarketplaceSpec,
|
|
8
|
+
resolveMarketplaceSpecs,
|
|
9
|
+
resolveProjectModule,
|
|
10
|
+
resolveProjectModuleListing,
|
|
11
|
+
unlistedModuleError,
|
|
12
|
+
withCatalogueRerun
|
|
13
|
+
} from "./chunk-2GNFDZA2.js";
|
|
14
|
+
import "./chunk-JTUKLCXS.js";
|
|
15
|
+
import "./chunk-3LDULPRE.js";
|
|
16
|
+
import "./chunk-YLDALTWZ.js";
|
|
17
|
+
import "./chunk-LLNZGEFK.js";
|
|
18
|
+
import "./chunk-QXTKSOFI.js";
|
|
19
|
+
import "./chunk-X2NL4KUO.js";
|
|
20
|
+
import "./chunk-PTHVMXZI.js";
|
|
21
|
+
import "./chunk-UTI5G6OJ.js";
|
|
22
|
+
import "./chunk-2EZ3ZJZZ.js";
|
|
23
|
+
import "./chunk-5ZSO4T2G.js";
|
|
24
|
+
import "./chunk-TFFGOFVZ.js";
|
|
25
|
+
import "./chunk-36JUQZVQ.js";
|
|
26
|
+
import "./chunk-PZ5AY32C.js";
|
|
27
|
+
export {
|
|
28
|
+
FIRST_PARTY_SCOPE,
|
|
29
|
+
MarketplaceModuleNotFoundError,
|
|
30
|
+
isLocalSpecifier,
|
|
31
|
+
nearPackage,
|
|
32
|
+
notInMarketplaceError,
|
|
33
|
+
resolveMarketplaceSpec,
|
|
34
|
+
resolveMarketplaceSpecs,
|
|
35
|
+
resolveProjectModule,
|
|
36
|
+
resolveProjectModuleListing,
|
|
37
|
+
unlistedModuleError,
|
|
38
|
+
withCatalogueRerun
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=marketplace-resolve-LY32JES5.js.map
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import {
|
|
2
|
+
xanosdkImport
|
|
3
|
+
} from "./chunk-WQFNASK4.js";
|
|
4
|
+
import {
|
|
5
|
+
decodeWorkspaceArchive,
|
|
6
|
+
encodeWorkspaceArchive
|
|
7
|
+
} from "./chunk-3DRXWLJ5.js";
|
|
8
|
+
import "./chunk-X4DVXBFY.js";
|
|
9
|
+
import "./chunk-AN6BL47T.js";
|
|
10
|
+
import {
|
|
11
|
+
createEphemeral,
|
|
12
|
+
deleteEphemeral,
|
|
13
|
+
isEphemeralDisabled,
|
|
14
|
+
waitUntilReady
|
|
15
|
+
} from "./chunk-7G3CTU7I.js";
|
|
16
|
+
import "./chunk-6PBR37LN.js";
|
|
17
|
+
import "./chunk-NAQDMEHV.js";
|
|
18
|
+
import "./chunk-4KHEMC32.js";
|
|
19
|
+
import "./chunk-XW6KISBB.js";
|
|
20
|
+
import "./chunk-AWQ7BQTQ.js";
|
|
21
|
+
import "./chunk-EUUUMY7J.js";
|
|
22
|
+
import {
|
|
23
|
+
explainFetchFailure,
|
|
24
|
+
fetchReadOrExplain,
|
|
25
|
+
httpFailureError
|
|
26
|
+
} from "./chunk-YLDALTWZ.js";
|
|
27
|
+
import "./chunk-5FBYXK5P.js";
|
|
28
|
+
import "./chunk-LLNZGEFK.js";
|
|
29
|
+
import "./chunk-QXTKSOFI.js";
|
|
30
|
+
import "./chunk-X2NL4KUO.js";
|
|
31
|
+
import "./chunk-PTHVMXZI.js";
|
|
32
|
+
import "./chunk-LQCMKAJ7.js";
|
|
33
|
+
import "./chunk-H2V3N23D.js";
|
|
34
|
+
import "./chunk-3JDU4VRL.js";
|
|
35
|
+
import "./chunk-UTI5G6OJ.js";
|
|
36
|
+
import "./chunk-2EZ3ZJZZ.js";
|
|
37
|
+
import "./chunk-6MR5TI5V.js";
|
|
38
|
+
import "./chunk-5ZSO4T2G.js";
|
|
39
|
+
import "./chunk-XNCP4KYO.js";
|
|
40
|
+
import "./chunk-TFFGOFVZ.js";
|
|
41
|
+
import "./chunk-NZOWWHU5.js";
|
|
42
|
+
import "./chunk-4BW2SG2N.js";
|
|
43
|
+
import "./chunk-CIMQZRRE.js";
|
|
44
|
+
import "./chunk-OHX6MIUZ.js";
|
|
45
|
+
import "./chunk-36JUQZVQ.js";
|
|
46
|
+
import "./chunk-PZ5AY32C.js";
|
|
47
|
+
|
|
48
|
+
// src/validate/meta-client.ts
|
|
49
|
+
var REQUEST_TIMEOUT_MS = 6e4;
|
|
50
|
+
var ENV_WORKSPACE_ID = 1;
|
|
51
|
+
var DEFAULT_PARENT_WORKSPACE_ID = 1;
|
|
52
|
+
var ENV_EXPIRES_HOURS = 1;
|
|
53
|
+
var MetaClient = class {
|
|
54
|
+
constructor(config) {
|
|
55
|
+
this.config = config;
|
|
56
|
+
this.readBase = config.instance;
|
|
57
|
+
}
|
|
58
|
+
config;
|
|
59
|
+
/**
|
|
60
|
+
* Origin that post-import reads/runs target. The objects land in this run's
|
|
61
|
+
* ephemeral ENVIRONMENT, served under a `/tenant/<slug>` path, so reads must hit
|
|
62
|
+
* that env-scoped origin rather than the parent instance — this is switched to
|
|
63
|
+
* the env URL after a successful import (and starts at the parent instance, which
|
|
64
|
+
* is what `verifyToken` and any pre-import call use).
|
|
65
|
+
*/
|
|
66
|
+
readBase;
|
|
67
|
+
/** This run's ephemeral env, once created — the handle `dispose()` deletes. */
|
|
68
|
+
env;
|
|
69
|
+
/**
|
|
70
|
+
* The validate config as the deploy transports' `ResolvedAuth`. Validate is
|
|
71
|
+
* engineer tooling authenticated by a bare instance token from the environment,
|
|
72
|
+
* never the interactive OAuth store — hence `credentialType: "token"`.
|
|
73
|
+
*/
|
|
74
|
+
deployAuth(workspaceId) {
|
|
75
|
+
return {
|
|
76
|
+
access_token: this.config.token,
|
|
77
|
+
instance: this.config.instance,
|
|
78
|
+
workspaceId,
|
|
79
|
+
credentialType: "token"
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
authHeaders() {
|
|
83
|
+
return { Authorization: `Bearer ${this.config.token}` };
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Build a read/run URL against {@link readBase}, APPENDING the route so any
|
|
87
|
+
* `/tenant/<slug>` path prefix survives (a leading-slash `new URL(path, base)`
|
|
88
|
+
* would drop it back to the origin).
|
|
89
|
+
*/
|
|
90
|
+
readUrl(path) {
|
|
91
|
+
return new URL(`${this.readBase}${path}`);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Create this run's ephemeral environment and import the compiled bundle into
|
|
95
|
+
* it, as the `gzip(tar(workspace.json))` archive.
|
|
96
|
+
*
|
|
97
|
+
* There is no `reset` knob: the import is ALWAYS a full replace, and the env
|
|
98
|
+
* is brand new besides. A flag that could not change the outcome would only
|
|
99
|
+
* invite the belief that a merge import exists here.
|
|
100
|
+
*
|
|
101
|
+
* `preserveGuids` is deliberately left unset (the route's default, `false`):
|
|
102
|
+
* the round-trip diff already expects the engine to re-mint every guid and
|
|
103
|
+
* translates them back (see `./guid-remap.ts`), so preserving them buys
|
|
104
|
+
* nothing — and asking would additionally refuse a bundle carrying a
|
|
105
|
+
* duplicate or malformed guid, a deploy-time contract preflight has no reason
|
|
106
|
+
* to impose on a bundle it only reads back. Unset is also exactly what this
|
|
107
|
+
* import sent before it moved routes.
|
|
108
|
+
*/
|
|
109
|
+
async importBundle(bundle) {
|
|
110
|
+
const parentWorkspaceId = this.config.workspaceId ?? DEFAULT_PARENT_WORKSPACE_ID;
|
|
111
|
+
const auth = this.deployAuth(parentWorkspaceId);
|
|
112
|
+
const env = await createEphemeral(auth, {
|
|
113
|
+
parentWorkspaceId,
|
|
114
|
+
display: "xanosdk-preflight",
|
|
115
|
+
description: "Disposable environment for `xanosdk preflight`.",
|
|
116
|
+
expiresHours: ENV_EXPIRES_HOURS
|
|
117
|
+
}).catch((err) => {
|
|
118
|
+
if (!isEphemeralDisabled(err)) throw err;
|
|
119
|
+
throw new Error(
|
|
120
|
+
"Ephemeral environments are not enabled on this instance, so `xanosdk preflight` has nowhere disposable to run. Ask whoever administers the instance to enable them \u2014 `xanosdk export` still writes the bundle without one."
|
|
121
|
+
);
|
|
122
|
+
});
|
|
123
|
+
this.env = { parentWorkspaceId, name: env.name };
|
|
124
|
+
await waitUntilReady(auth, { parentWorkspaceId, name: env.name });
|
|
125
|
+
const envUrl = env.url;
|
|
126
|
+
if (envUrl === void 0 || envUrl === "") {
|
|
127
|
+
throw new Error(
|
|
128
|
+
`The validation environment (${env.name}) came back without a URL, so there is nothing to deploy into.`
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
const result = await xanosdkImport(auth, {
|
|
132
|
+
baseUrl: envUrl,
|
|
133
|
+
archive: encodeWorkspaceArchive(bundle),
|
|
134
|
+
workspaceId: ENV_WORKSPACE_ID,
|
|
135
|
+
mode: "replace",
|
|
136
|
+
dryRun: false
|
|
137
|
+
});
|
|
138
|
+
this.readBase = envUrl.replace(/\/+$/, "");
|
|
139
|
+
return {
|
|
140
|
+
workspaceId: result.workspace.id ?? ENV_WORKSPACE_ID,
|
|
141
|
+
baseUrl: env.url,
|
|
142
|
+
raw: result.raw
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Delete this run's ephemeral environment. Safe to call when no env was ever
|
|
147
|
+
* created, and never throws: a cleanup failure must not mask the validation
|
|
148
|
+
* result the caller is about to report. The env's own expiry is the backstop.
|
|
149
|
+
*/
|
|
150
|
+
async dispose() {
|
|
151
|
+
const env = this.env;
|
|
152
|
+
if (env === void 0) return { deleted: false };
|
|
153
|
+
this.env = void 0;
|
|
154
|
+
try {
|
|
155
|
+
await deleteEphemeral(this.deployAuth(env.parentWorkspaceId), {
|
|
156
|
+
parentWorkspaceId: env.parentWorkspaceId,
|
|
157
|
+
name: env.name,
|
|
158
|
+
// Made by this run through the ephemeral create route.
|
|
159
|
+
verified: true
|
|
160
|
+
});
|
|
161
|
+
return { deleted: true };
|
|
162
|
+
} catch (err) {
|
|
163
|
+
return { deleted: false, error: err instanceof Error ? err.message : String(err) };
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Export the workspace (this run's environment, post-import) as a `packageExport`
|
|
168
|
+
* bundle — the SAME shape the SDK emits, carrying full object logic. This is
|
|
169
|
+
* the faithful round-trip source: the response is a gzipped tar of
|
|
170
|
+
* `workspace.json`, decoded here into its bundle object. Table rows and stored
|
|
171
|
+
* file bytes are skipped (`records`/`vault: false`): only `workspace.json` is
|
|
172
|
+
* read, and it carries the file library's metadata either way.
|
|
173
|
+
*/
|
|
174
|
+
async exportWorkspace(workspaceId) {
|
|
175
|
+
const url = this.readUrl(`/api:meta/workspace/${workspaceId}/export`);
|
|
176
|
+
const res = await fetchReadOrExplain(
|
|
177
|
+
url.href,
|
|
178
|
+
{
|
|
179
|
+
method: "POST",
|
|
180
|
+
headers: { ...this.authHeaders(), "Content-Type": "application/json" },
|
|
181
|
+
body: JSON.stringify({ branch: "", password: "", records: false, vault: false }),
|
|
182
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
183
|
+
},
|
|
184
|
+
`Export of workspace ${workspaceId}`,
|
|
185
|
+
REQUEST_TIMEOUT_MS
|
|
186
|
+
);
|
|
187
|
+
if (!res.ok) {
|
|
188
|
+
const text = await res.text();
|
|
189
|
+
throw httpFailureError(`Export of workspace ${workspaceId}`, res, text);
|
|
190
|
+
}
|
|
191
|
+
const decoded = decodeWorkspaceArchive(new Uint8Array(await res.arrayBuffer()));
|
|
192
|
+
return { payload: decoded.payload ?? {} };
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* The engine's own rendering of the workspace (this run's environment,
|
|
196
|
+
* post-import) — the same multidoc `xanosdk ephemeral export --format multidoc`
|
|
197
|
+
* returns. `preflight` hands it to an installed toolchain module.
|
|
198
|
+
*/
|
|
199
|
+
async exportMultidoc(workspaceId) {
|
|
200
|
+
const url = this.readUrl(`/api:meta/workspace/${workspaceId}/multidoc`);
|
|
201
|
+
const res = await fetchReadOrExplain(
|
|
202
|
+
url.href,
|
|
203
|
+
{
|
|
204
|
+
headers: { ...this.authHeaders(), accept: "text/x-xanoscript" },
|
|
205
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
206
|
+
},
|
|
207
|
+
`XanoScript export of workspace ${workspaceId}`,
|
|
208
|
+
REQUEST_TIMEOUT_MS
|
|
209
|
+
);
|
|
210
|
+
const text = await res.text();
|
|
211
|
+
if (!res.ok) throw httpFailureError(`XanoScript export of workspace ${workspaceId}`, res, text);
|
|
212
|
+
return text;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Run a named workspace function via the meta function-run route. Unlike the
|
|
216
|
+
* read methods this returns the status (rather than throwing) so a caller can
|
|
217
|
+
* report an engine error + logs as a runtime outcome.
|
|
218
|
+
*/
|
|
219
|
+
async runFunction(workspaceId, name, input) {
|
|
220
|
+
const url = this.readUrl(`/api:meta/workspace/${workspaceId}/function/run`);
|
|
221
|
+
let res;
|
|
222
|
+
try {
|
|
223
|
+
res = await fetch(url.href, {
|
|
224
|
+
method: "POST",
|
|
225
|
+
headers: { ...this.authHeaders(), "Content-Type": "application/json" },
|
|
226
|
+
body: JSON.stringify({ name, input: input ?? {} }),
|
|
227
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
228
|
+
});
|
|
229
|
+
} catch (err) {
|
|
230
|
+
throw explainFetchFailure(err, { url: url.href, what: `Running function "${name}"`, timeoutMs: REQUEST_TIMEOUT_MS });
|
|
231
|
+
}
|
|
232
|
+
const text = await res.text();
|
|
233
|
+
let body = text;
|
|
234
|
+
try {
|
|
235
|
+
body = text === "" ? void 0 : JSON.parse(text);
|
|
236
|
+
} catch {
|
|
237
|
+
}
|
|
238
|
+
return { status: res.status, ok: res.ok, body };
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
export {
|
|
242
|
+
MetaClient
|
|
243
|
+
};
|
|
244
|
+
//# sourceMappingURL=meta-client-YXGPW53C.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
entryFileOf,
|
|
3
|
+
fileInPackage,
|
|
4
|
+
homepageOf,
|
|
5
|
+
installedPackageDir,
|
|
6
|
+
loadEntryExports,
|
|
7
|
+
loadFile,
|
|
8
|
+
localPackageName,
|
|
9
|
+
localPathOf,
|
|
10
|
+
moduleKind,
|
|
11
|
+
packageNameOf,
|
|
12
|
+
readInstalledManifest,
|
|
13
|
+
readInstalledManifestState,
|
|
14
|
+
tarballManifest
|
|
15
|
+
} from "./chunk-3LDULPRE.js";
|
|
16
|
+
import "./chunk-PTHVMXZI.js";
|
|
17
|
+
import "./chunk-UTI5G6OJ.js";
|
|
18
|
+
import "./chunk-2EZ3ZJZZ.js";
|
|
19
|
+
import "./chunk-5ZSO4T2G.js";
|
|
20
|
+
import "./chunk-TFFGOFVZ.js";
|
|
21
|
+
import "./chunk-36JUQZVQ.js";
|
|
22
|
+
import "./chunk-PZ5AY32C.js";
|
|
23
|
+
export {
|
|
24
|
+
entryFileOf,
|
|
25
|
+
fileInPackage,
|
|
26
|
+
homepageOf,
|
|
27
|
+
installedPackageDir,
|
|
28
|
+
loadEntryExports,
|
|
29
|
+
loadFile,
|
|
30
|
+
localPackageName,
|
|
31
|
+
localPathOf,
|
|
32
|
+
moduleKind,
|
|
33
|
+
packageNameOf,
|
|
34
|
+
readInstalledManifest,
|
|
35
|
+
readInstalledManifestState,
|
|
36
|
+
tarballManifest
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=module-manifest-JFGHU2TC.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Did-you-mean matching for a misspelled name. A leaf with no imports, so a
|
|
3
|
+
* browser bundle that only needs a suggestion does not pull the statement
|
|
4
|
+
* catalog in with it.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The declared key a misspelling most likely meant: the same letters once case
|
|
8
|
+
* and `_` are ignored (`perPage` → `per_page`, `system_prompt` → `systemPrompt`),
|
|
9
|
+
* else one edit away (`filter` → `filters`, `temprature` → `temperature`, `tabel` → `table`).
|
|
10
|
+
*/
|
|
11
|
+
declare function nearestKey(key: string, known: readonly string[]): string | undefined;
|
|
12
|
+
|
|
13
|
+
export { nearestKey };
|
package/dist/near-key.js
ADDED
package/dist/node.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { F as FunctionDef, X as Xano, L as LockFile } from './emit-CyhBDxli.js';
|
|
2
|
+
export { A as AddonDef, a as AddonXdo, b as AdoptChange, c as AdoptResult, d as AgentDef, e as AgentHandle, f as AgentOutput, g as AgentResultOf, h as AgentSettingsXdo, i as AgentTriggerInputs, j as AgentXdo, k as AggregateRow, l as AnthropicLlm, m as ApiGroupDef, n as ApiGroupXdo, o as AuthRef, B as Bundle, p as BundlePayload, q as BundleType, C as ChannelConversationDef, r as ChannelDeliveryDef, s as ChannelDeliveryGuarantee, t as ChannelPublishDef, u as ChannelPublishWho, v as ChannelRateLimitDef, w as ColumnDef, x as Comparison, y as Condition, z as ContainerEnv, D as ContainerPort, E as ContainerResources, G as ContainerVolume, H as CorsConfig, I as CorsMode, J as DatabaseActions, K as DatabaseInputs, M as DbEval, N as DbEvalFilter, O as DbWhere, P as ErrorInputs, Q as EvalFields, R as ExceptionPolicy, S as FieldAccessor, T as GoogleGenAiLlm, U as HistoryInput, V as HostedFile, W as HostedFileAccess, Y as HttpVerb, Z as IndexDef, _ as IndexLang, $ as IndexOp, a0 as IndexType, a1 as IndexXdo, a2 as InferRow, a3 as InputDescriptor, a4 as InputOptions, a5 as InternalColsOf, a6 as KnowledgeDef, a7 as KnowledgeDirSource, a8 as KnowledgeFileSource, a9 as KnowledgeMode, aa as KnowledgeType, ab as LlmPrompt, ac as LlmProvider, ad as LlmSettings, ae as LockEntry, af as LockExportContext, ag as McpIcon, ah as McpIconMimeType, ai as McpOauth, aj as McpOauthEnvString, ak as McpOauthExternal, al as McpOauthHosted, am as McpOauthPreset, an as McpOauthXdo, ao as McpPathOptions, ap as McpPrimitiveEntry, aq as McpPrimitiveRef, ar as McpServerDef, as as McpServerHandle, at as McpServerTriggerInputs, au as McpServerXdo, av as MergeResult, aw as MessageDeliverTo, ax as MicroserviceChart, ay as MicroserviceConfig, az as MicroserviceContainer, aA as MicroserviceDef, aB as MicroserviceDeployment, aC as MicroserviceIngress, aD as MicroserviceIngressPath, aE as MicroserviceRegistryAuth, aF as MicroserviceVolume, aG as MicroserviceXdo, aH as MiddlewareAttach, aI as MiddlewareAttachEntry, aJ as MiddlewareDef, aK as MiddlewareXdo, aL as ObjectKind, aM as OpenAiLlm, aN as OutputPath, aO as OutputRoot, aP as PagingEnvelopeField, aQ as PathParams, aR as PayloadArrayKey, aS as PromptDef, aT as PromptXdo, aU as QualifiedCol, aV as QueryDef, aW as QueryFilterName, aX as QueryHandle, aY as QueryResponseType, aZ as QueryXdo, a_ as RealtimeActions, a$ as RealtimeChannelActions, b0 as RealtimeChannelDef, b1 as RealtimeChannelHandle, b2 as RealtimeChannelRef, b3 as RealtimeChannelTriggerInputs, b4 as RealtimeChannelXdo, b5 as RealtimeClient, b6 as RealtimeInputs, b7 as RealtimeMessageDef, b8 as RealtimeMessageXdo, b9 as RealtimeServerActions, ba as RealtimeServerDef, bb as RealtimeServerHandle, bc as RealtimeServerRef, bd as RealtimeServerTriggerInputs, be as RealtimeServerXdo, bf as RealtimeUrlOptions, bg as RenameResult, bh as ResourceAnnotations, bi as ResourceDef, bj as ResourceXdo, bk as ResultStrategy, bl as RowOf, bm as ScheduleDef, bn as SchemaCols, bo as SchemaDef, bp as SearchComparison, bq as SearchGroup, br as SearchNode, bs as SearchOp, bt as SearchParamValue, bu as SearchParams, bv as SearchParamsMembers, bw as SeedFileSource, bx as SeedRow, by as SeedSource, bz as SortDir, bA as SortDirective, bB as TableDef, bC as TableXdo, bD as TaskDef, bE as TaskXdo, bF as ToolAnnotations, bG as ToolDef, bH as ToolXdo, bI as ToolsetBaseDef, bJ as ToolsetBaseXdo, bK as ToolsetToolEntry, bL as ToolsetToolRef, bM as ToolsetType, bN as TriggerDef, bO as TriggerObjType, bP as TriggerXdo, bQ as UrlLike, bR as ViewDef, bS as ViewXdo, bT as WorkflowTestDef, bU as WorkflowTestXdo, bV as WorkspaceActions, bW as WorkspaceConfigDef, bX as WorkspaceConfigXdo, bY as WorkspaceHistoryDef, bZ as WorkspaceHistoryXdo, b_ as WorkspaceInputs, b$ as WorkspaceMiddlewareDef, c0 as WorkspaceMiddlewareXdo, c1 as XanoFreeLlm, c2 as addon, c3 as agent, c4 as agentTrigger, c5 as and, c6 as apiGroup, c7 as cmp, c8 as defineFunction, c9 as emit, ca as emitBundle, cb as errorTrigger, cc as expr, cd as hostedFile, ce as input, cf as isHostedFile, cg as knowledge, ch as knowledgeDir, ci as knowledgeFile, cj as mcpServer, ck as mcpServerTrigger, cl as microservice, cm as middleware, cn as mixed, co as or, cp as prompt, cq as query, cr as realtimeChannel, cs as realtimeChannelTrigger, ct as realtimeMessage, cu as realtimeServer, cv as realtimeServerTrigger, cw as realtimeTrigger, cx as resource, cy as seedFile, cz as table, cA as tableTrigger, cB as task, cC as toSearchParams, cD as tool, cE as typedEnv, cF as workflowTest, cG as workspace, cH as workspaceConfig, cI as workspaceTrigger } from './emit-CyhBDxli.js';
|
|
3
|
+
export { ActionCallArgs, AddonCallArgs, AddonSpec, AgentRunResult, AiAgentRunArgs, AnyAddonDef, AnyFunctionDef, AnyQueryDef, AnyTableDef, ApiCallArgs, ApiRequestArgs, ApiRequestResult, ApplyFilter, ApplyFilters, ArrayMapArgs, ArrayMapShape, AuthShape, CloudJobArgs, CloudJobAwaitArgs, CloudJobStatusArgs, CreateAuthTokenArgs, DbAddArgs, DbAddOrEditArgs, DbAggregate, DbAggregatePaging, DbBind, DbBulkAddArgs, DbBulkDeleteArgs, DbBulkWriteArgs, DbDelArgs, DbDirectQueryArgs, DbDistinct, DbEditArgs, DbExternal, DbExternalPermissions, DbExternalQueryArgs, DbField, DbGetArgs, DbHasArgs, DbIncrementArgs, DbIncrementReturnType, DbJoin, DbPaging, DbPatchArgs, DbQueryArgs, DbResponseType, DbReturnType, DbSchemaArgs, DbSortDirective, DbTransactionArgs, DbTruncateArgs, ElicitResult, ExpectToThrowArgs, ExternalSqlEngine, ForArgs, ForeachArgs, FoundGuardOptions, FunctionCallArgs, FunctionRunArgs, GetRawInputArgs, HeaderMap, HeaderOptions, HttpMethod, InferInput, InferResponse, IpLookupArgs, IpLookupResult, McpElicitArgs, MicroserviceArgs, MicroserviceHost, MiddlewareCallArgs, ObjInput, ObjMember, ObjShape, ObjValue, OwnerGuardOptions, RealtimeEventArgs, RedirectStatus, RoleGuardOptions, RunBinding, StackTupleWidened, StreamFromRequestArgs, SwitchArgs, SwitchCaseArgs, TaskCallArgs, ToolCallArgs, TriggerCallArgs, TryCatchArgs, WebflowRequestArgs, WhileArgs, WorkflowTestCallArgs, actionCall, actionPackageCall, addonCall, aiAgentRun, apiCall, arrayMap, arrayUnion, cloudJob, cloudJobAwait, cloudJobStatus, comment, compile, cond, conditional, createAuthToken, dbAdd, dbAddOrEdit, dbBulkAdd, dbBulkDelete, dbBulkPatch, dbBulkUpdate, dbDel, dbDirectQuery, dbEdit, dbExternalQuery, dbGet, dbHas, dbIncrement, dbPatch, dbQuery, dbSchema, dbTransaction, dbTruncate, debugLog, die, every, expectToThrow, fileUrl, fl, forLoop, foreachBreak, foreachContinue, foreachLoop, foreachRemove, functionCall, functionRun, getRawInput, group, guard, ignored, ipLookup, middlewareCall, obj, postProcess, realtimeEvent, respond, returnValue, s, setVar, switchCase, switchStatement, taskCall, toolCall, triggerCall, tryCatch, updateVar, whileLoop, workflowTestCall } from './index.js';
|
|
4
|
+
export { A as AppendBrand, a as AsShapeBrand, B as BodyBrand, b as BranchesBrand, c as BrandOpts, d as BrandType, e as BrandValue, C as CatchBrand, f as ConstMethodOpts, D as DecimalMethod, E as EmailMethod, g as EnumDefault, F as FieldAccess, h as FieldDescriptor, i as FieldMap, j as FieldOptions, k as FieldOpts, l as FieldStyleType, m as FoundBrand, n as FromFieldMap, I as IntMethod, M as MaybeBodyBrand, o as MemberUpdateBrand, p as MethodArg, q as MethodOpts, r as MethodSpec, s as MockEntry, t as MockMap, u as MockXdo, N as NoExtraKeys, O as ObjectOf, v as ObjectRef, P as PasswordMethod, w as Prettify, x as ProtoKeySafe, R as RawBrandValue, y as ReadonlyMethods, z as ResponseDef, G as RowFromFieldMap, S as Statement, H as StatementAnnotations, J as StatementOptions, T as TableRefMethod, K as TextFormat, L as TextMethod, Q as TypeBrand, V as ValueOf, U as VectorMethod, X as XanoDbLink, W as XanoFileRef, Y as XanoFileUpload, Z as XanoGeoData, _ as XanoGeoPosition, $ as XanoGeoType, a0 as XanoGeoValue, a1 as annotate, a2 as f, a3 as statements } from './response-HlXahv4K.js';
|
|
5
|
+
import { V as Value } from './xdo-CxDr2Q1C.js';
|
|
6
|
+
export { A as AuthValue, C as CacheXdo, a as CaughtField, b as CaughtValue, c as ConditionalContext, d as ConditionalElifContext, e as ConstValue, E as ExprGroup, f as ExprNode, g as ExprOperand, h as ExprStatement, F as FieldXdo, i as FilterXdo, j as FilteredValue, k as FunctionXdo, H as HistoryXdo, I as InpValue, l as InputXdo, L as ListBoundsXdo, M as MethodXdo, N as NotObjMember, P as PersistedFunctionRow, Q as QUERY_AGGREGATE_NAMES, m as QUERY_FILTER_NAMES, n as QUERY_FILTER_SPECS, o as QueryFilter, p as QueryFilterResults, R as RefValue, q as RegexValue, r as ResultItemXdo, S as StackItemXdo, s as StatementInputXdo, T as TAGS, t as TEST_EXPECT_TYPES, u as Tag, v as TaggedValue, w as TestDef, x as TestExpect, y as TestExpectType, z as TestXdo, B as auth, D as c, G as caught, J as col, K as env, O as expect, U as filter, W as inp, X as out, Y as qf, Z as ref, _ as resp, $ as setting, a0 as sys, a1 as test, a2 as toolset, a3 as withFilters } from './xdo-CxDr2Q1C.js';
|
|
7
|
+
import { L as LambdaOptions, C as CaptureValue, a as LambdaSurface, b as CaptureRecord, c as LambdaBindings } from './store-DuYfzKlW.js';
|
|
8
|
+
export { A as AmbientBindings, d as Authored, e as Capturable, E as ElementResult, F as FieldRule, f as FilterResults, G as GroupedArrayResult, I as IteratingBindings, g as LAMBDA_BINDINGS, h as LAMBDA_CODE_FILTERS, i as LAMBDA_GLOBALS, j as LAMBDA_MODULE_GLOBALS, k as LAMBDA_STATEMENTS, l as LambdaBody, M as Manifest, m as ManifestField, n as ManifestKind, o as ManifestStatement, p as ManifestValue, O as OutputAuthored, R as Route, S as SameArrayResult, q as StatementSpec, r as assertLambdaBody, s as bitwiseAnd, t as bitwiseOr, u as bitwiseXor, v as mathAdd, w as mathDiv, x as mathMul, y as mathSub, z as objectEntries, B as objectKeys, D as objectValues, H as resetLockOverrides, J as seedLockOverrides, K as textAppend, N as textPrepend } from './store-DuYfzKlW.js';
|
|
9
|
+
export { exportBundleJson, loadDefault, parseArgs, run } from './cli.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Read a lambda body from its own module.
|
|
13
|
+
*
|
|
14
|
+
* `path` resolves against the CALLING module's directory (like an `import`), not
|
|
15
|
+
* the process working directory. The file must default-export exactly one
|
|
16
|
+
* function; its body is extracted and validated exactly as {@link lam.fn}'s is.
|
|
17
|
+
*/
|
|
18
|
+
declare function file(path: string, opts?: LambdaOptions<Record<string, CaptureValue>>): Value;
|
|
19
|
+
/**
|
|
20
|
+
* Lambda authoring, with the filesystem form attached.
|
|
21
|
+
*
|
|
22
|
+
* Identical to the `lam` exported from `@xano/sdk`, plus {@link file}. The
|
|
23
|
+
* isomorphic entry deliberately does not carry it: reading a file is not
|
|
24
|
+
* something a browser bundle can do, and a workspace definition shared with a
|
|
25
|
+
* frontend must keep resolving.
|
|
26
|
+
*/
|
|
27
|
+
declare const lam: {
|
|
28
|
+
file: typeof file;
|
|
29
|
+
fn: <S extends LambdaSurface = "reduce", C extends CaptureRecord<C> = Record<string, never>>(body: (bindings: LambdaBindings<S>, captured: C) => unknown, opts?: LambdaOptions<C> & {
|
|
30
|
+
surface?: S;
|
|
31
|
+
}) => Value;
|
|
32
|
+
raw: (code: string, opts?: LambdaOptions<Record<string, CaptureValue>>) => Value;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** Compile a function and write the JSON artifact to `path`. */
|
|
36
|
+
declare function writeArtifact(fn: FunctionDef, path: string, opts?: {
|
|
37
|
+
indent?: number;
|
|
38
|
+
}): void;
|
|
39
|
+
/** Options for {@link writeBundle}. */
|
|
40
|
+
interface WriteBundleOptions {
|
|
41
|
+
indent?: number;
|
|
42
|
+
/** Fail the write on any build warning instead of printing it — `xanosdk export --strict`. */
|
|
43
|
+
strict?: boolean;
|
|
44
|
+
/** Backend env values, name→value — `--env-var`. Wins over {@link envFile}. */
|
|
45
|
+
env?: Readonly<Record<string, string>>;
|
|
46
|
+
/** A dotenv file of backend env values — `--backend-env-file` (the CLI's default is `xano/.env`). */
|
|
47
|
+
envFile?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Documentation-gate tokens, scope→value — `--doc-token`. A scope is
|
|
50
|
+
* `workspace`, an API group's name, or the `xano/.secrets.json` key
|
|
51
|
+
* (`apiGroup:<guid>`); one that names no declared gate is refused.
|
|
52
|
+
*/
|
|
53
|
+
documentationTokens?: Readonly<Record<string, string>>;
|
|
54
|
+
/** Scopes whose gate this bundle clears on purpose (sent empty) — `--allow-empty-doc-token`. */
|
|
55
|
+
allowEmptyDocToken?: readonly string[];
|
|
56
|
+
/**
|
|
57
|
+
* The `xano.lock` to build against and update — `--lock=<path>`. Default: the
|
|
58
|
+
* file the seeded lock was read from; else the cwd project's `xano/xano.lock`;
|
|
59
|
+
* else (cwd outside a project) the lock beside `envFile` or in the output
|
|
60
|
+
* path's project, or of the module that created the registry or called this.
|
|
61
|
+
* When none is found the build is unlocked and says so. `false` builds without
|
|
62
|
+
* one (`--no-lock`), refused when that lock exists.
|
|
63
|
+
*/
|
|
64
|
+
lock?: string | false;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Compile the workspace and write the bundle to `path` — the bytes
|
|
68
|
+
* `xanosdk export` writes for the same source and values.
|
|
69
|
+
*
|
|
70
|
+
* Knowledge bodies and reference files are read, and `hostedFile()` references
|
|
71
|
+
* resolved, as the CLI compile does. The project's `xano.lock` is built against
|
|
72
|
+
* and updated as the CLI does — so it must be seeded (`seedLockOverrides`)
|
|
73
|
+
* before the entry is imported, or the write is refused. A bundle carrying
|
|
74
|
+
* secrets is written owner-only (0600). Env values come only from `env`/`envFile`
|
|
75
|
+
* (this call has no entry path to find `xano/.env` from); a declared name
|
|
76
|
+
* neither supplies is written empty and reported. Seed rows never ride in a
|
|
77
|
+
* bundle file, and neither do hosted-file bytes: deploy from the entry to ship
|
|
78
|
+
* those.
|
|
79
|
+
*/
|
|
80
|
+
declare function writeBundle(xano: Xano, path: string, opts?: WriteBundleOptions): void;
|
|
81
|
+
|
|
82
|
+
/** Read + strictly validate a lock file from disk. The file must exist. */
|
|
83
|
+
declare function readLockFile(path: string, opts?: {
|
|
84
|
+
tolerateDuplicates?: boolean;
|
|
85
|
+
}): LockFile;
|
|
86
|
+
/**
|
|
87
|
+
* Atomic, idempotent write: unchanged bytes are not rewritten (mtime stays
|
|
88
|
+
* put, watchers stay quiet); changed content lands via temp-file+rename so a
|
|
89
|
+
* crash can never leave a half-written lock.
|
|
90
|
+
*
|
|
91
|
+
* Returns true when the file was (re)written.
|
|
92
|
+
*/
|
|
93
|
+
declare function writeLockFile(path: string, lock: LockFile): boolean;
|
|
94
|
+
|
|
95
|
+
export { CaptureRecord, CaptureValue, FunctionDef, LambdaBindings, LambdaOptions, LambdaSurface, LockFile, Value, type WriteBundleOptions, Xano, lam, readLockFile, writeArtifact, writeBundle, writeLockFile };
|