@selvajs/selva 4.21.0-beta.11 → 4.21.0-beta.13
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/build/adapter-node.js +2 -2
- package/build/client/_app/immutable/assets/0.DOeHn583.css +2 -0
- package/build/client/_app/immutable/assets/0.DOeHn583.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DOeHn583.css.gz +0 -0
- package/build/client/_app/immutable/assets/rhino3dm.CWOyICcB.wasm +0 -0
- package/build/client/_app/immutable/assets/rhino3dm.CWOyICcB.wasm.br +0 -0
- package/build/client/_app/immutable/assets/rhino3dm.CWOyICcB.wasm.gz +0 -0
- package/build/client/_app/immutable/chunks/2rFska3d.js +1 -0
- package/build/client/_app/immutable/chunks/2rFska3d.js.br +1 -0
- package/build/client/_app/immutable/chunks/2rFska3d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B3BHv1lE.js → 5M5n6ftO.js} +59 -58
- package/build/client/_app/immutable/chunks/5M5n6ftO.js.br +0 -0
- package/build/client/_app/immutable/chunks/5M5n6ftO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/71J-lVIC.js +7 -0
- package/build/client/_app/immutable/chunks/71J-lVIC.js.br +0 -0
- package/build/client/_app/immutable/chunks/71J-lVIC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dqy8nTaG.js → BCbumNc2.js} +1 -1
- package/build/client/_app/immutable/chunks/BCbumNc2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BCbumNc2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEzPIk5e.js +1 -0
- package/build/client/_app/immutable/chunks/BEzPIk5e.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEzPIk5e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_4x1b7P.js +1 -0
- package/build/client/_app/immutable/chunks/B_4x1b7P.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_4x1b7P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BAhtiTKe.js → Bs2bQTgl.js} +1 -1
- package/build/client/_app/immutable/chunks/Bs2bQTgl.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bs2bQTgl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{cUJB_11K.js → CzHxHvr2.js} +1 -1
- package/build/client/_app/immutable/chunks/CzHxHvr2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzHxHvr2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Db9exncB.js +1 -0
- package/build/client/_app/immutable/chunks/Db9exncB.js.br +0 -0
- package/build/client/_app/immutable/chunks/Db9exncB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BEPlNI5E.js → FIoX_cjM.js} +1 -1
- package/build/client/_app/immutable/chunks/FIoX_cjM.js.br +0 -0
- package/build/client/_app/immutable/chunks/FIoX_cjM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CmlXAF26.js → aBYenH6-.js} +1 -1
- package/build/client/_app/immutable/chunks/aBYenH6-.js.br +0 -0
- package/build/client/_app/immutable/chunks/aBYenH6-.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.B3im90t6.js → app.BP5swwM7.js} +2 -2
- package/build/client/_app/immutable/entry/app.BP5swwM7.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BP5swwM7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.DWd6YbcT.js → 1.DmBjtFLw.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DmBjtFLw.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DmBjtFLw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.bCPP2ncY.js → 2.CWOFnTAV.js} +1 -1
- package/build/client/_app/immutable/nodes/2.CWOFnTAV.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CWOFnTAV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.DI5Eri_M.js → 20.4vwwwrQ_.js} +1 -1
- package/build/client/_app/immutable/nodes/20.4vwwwrQ_.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.4vwwwrQ_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.C1xtue6U.js +1 -0
- package/build/client/_app/immutable/nodes/21.C1xtue6U.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.C1xtue6U.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.BRm8FzmQ.js → 25.DR2ojPn5.js} +22 -22
- package/build/client/_app/immutable/nodes/25.DR2ojPn5.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DR2ojPn5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.Ctd9OGCk.js → 3.GtVSkcEP.js} +1 -1
- package/build/client/_app/immutable/nodes/{3.Ctd9OGCk.js.br → 3.GtVSkcEP.js.br} +0 -0
- package/build/client/_app/immutable/nodes/3.GtVSkcEP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{30.B6pd-F-z.js → 30.Cd56Qv6o.js} +5 -6
- package/build/client/_app/immutable/nodes/30.Cd56Qv6o.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.Cd56Qv6o.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.BUX4zZQj.js → 5.wbpOzblK.js} +1 -1
- package/build/client/_app/immutable/nodes/5.wbpOzblK.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.wbpOzblK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BpjtFwPi.js → 6.B2HdJrZB.js} +1 -1
- package/build/client/_app/immutable/nodes/6.B2HdJrZB.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.B2HdJrZB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.hBM6C-wN.js → 7.BuWU0YDv.js} +1 -1
- package/build/client/_app/immutable/nodes/7.BuWU0YDv.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BuWU0YDv.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/runtime-meta.json +1 -1
- package/build/server/.vite/manifest.json +145 -137
- package/build/server/_app/immutable/assets/_layout.DOeHn583.css +2 -0
- package/build/server/_app/immutable/assets/rhino3dm.CWOyICcB.wasm +0 -0
- package/build/server/chunks/access.js +63 -48
- package/build/server/chunks/access.js.map +1 -1
- package/build/server/chunks/access2.server.js +1 -1
- package/build/server/chunks/api-errors.js +3 -3
- package/build/server/chunks/api.js +1 -1
- package/build/server/chunks/boot.server.js +1 -1
- package/build/server/chunks/bootHealth.server.js +1 -1
- package/build/server/chunks/create-project.js +1 -1
- package/build/server/chunks/delete-with-blobs.js +1 -1
- package/build/server/chunks/{schema-extraction.js → errors.js} +31 -24
- package/build/server/chunks/errors.js.map +1 -0
- package/build/server/chunks/grasshopper.js +17 -10
- package/build/server/chunks/grasshopper.js.map +1 -1
- package/build/server/chunks/handlers.js +82 -75
- package/build/server/chunks/handlers.js.map +1 -1
- package/build/server/chunks/http.js +1 -1
- package/build/server/chunks/http2.js +1 -1
- package/build/server/chunks/instance.js +3 -3
- package/build/server/chunks/instanceAdmins.server.js +2 -2
- package/build/server/chunks/internal.js +1 -1
- package/build/server/chunks/{keepalive-vtcjhAV3.js → keepalive-DbmLH4v1.js} +5 -4
- package/build/server/chunks/keepalive-DbmLH4v1.js.map +1 -0
- package/build/server/chunks/limits.js +1 -1
- package/build/server/chunks/liveSolve.server.js +1 -1
- package/build/server/chunks/localeContext.svelte.js +74 -0
- package/build/server/chunks/localeContext.svelte.js.map +1 -1
- package/build/server/chunks/{visibility.js → logging.js} +262 -3
- package/build/server/chunks/logging.js.map +1 -0
- package/build/server/chunks/openapi.js +1 -1
- package/build/server/chunks/ops.js +64 -1
- package/build/server/chunks/ops.js.map +1 -1
- package/build/server/chunks/package.js +1 -1
- package/build/server/chunks/package.js.map +1 -1
- package/build/server/chunks/presets.server.js +1 -1
- package/build/server/chunks/providers.server.js +448 -317
- package/build/server/chunks/providers.server.js.map +1 -1
- package/build/server/chunks/remote-definition.js +1 -1
- package/build/server/chunks/resolve-server.js +1 -1
- package/build/server/chunks/rhino3dm.js +5 -0
- package/build/server/chunks/rhino3dm.js.map +1 -0
- package/build/server/chunks/safe-url.js +2 -2
- package/build/server/chunks/schema.js +1 -1
- package/build/server/chunks/schema.js.map +1 -1
- package/build/server/chunks/selfUpdate.server.js +1 -1
- package/build/server/chunks/server-config-write.js +1 -1
- package/build/server/chunks/server2.js +5 -1
- package/build/server/chunks/server2.js.map +1 -1
- package/build/server/chunks/solve.server.js +5 -4
- package/build/server/chunks/solve.server.js.map +1 -1
- package/build/server/chunks/sveltekit.js +2 -2
- package/build/server/chunks/tokens.js +2 -2
- package/build/server/entries/endpoints/api/admin/compute/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/compute/actions/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/compute/status/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/orgs/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/orgs/_server.ts.js +2 -2
- package/build/server/entries/endpoints/api/admin/projects/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_id_/grants/_grantId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_id_/grants/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/system/health/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/system/throughput/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/system/update/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_server.ts.js +2 -2
- package/build/server/entries/endpoints/api/diag/throughput/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/files/_...path_/_server.ts.js +2 -3
- package/build/server/entries/endpoints/api/files/_...path_/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/api/v1/compute/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/compute/schema/_server.ts.js +3 -3
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/image/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/publish/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/schema/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/share-links/_linkId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/share-links/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/changes/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/inventory/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/schema/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/scripts/_scriptId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/check/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/me/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/me/starred/_guid_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/me/token/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/assets/_kind_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/compute/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/resend/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/invites/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/members/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/members/_userId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/tokens/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/tokens/_tokenId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_id_/members/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_id_/members/_userId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_id_/reclaim/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/solve/_solveId_/cancel/_server.ts.js +2 -2
- package/build/server/entries/endpoints/api/v1/solve-events/_server.ts.js +2 -2
- package/build/server/entries/endpoints/api/v1/solve-events/_solveId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/auth/email/callback/_server.ts.js +1 -1
- package/build/server/entries/endpoints/auth/supabase/callback/_server.ts.js +1 -1
- package/build/server/entries/endpoints/auth/supabase/start/_server.ts.js +1 -1
- package/build/server/entries/endpoints/mcp/_server.ts.js +14 -8
- package/build/server/entries/endpoints/mcp/_server.ts.js.map +1 -1
- package/build/server/entries/hooks.server.js +37 -3
- package/build/server/entries/hooks.server.js.map +1 -1
- package/build/server/entries/pages/accept-invite/_page.server.ts.js +1 -1
- package/build/server/entries/pages/admin/_page.server.ts.js +1 -1
- package/build/server/entries/pages/admin/organizations/_page.server.ts.js +4 -9
- package/build/server/entries/pages/admin/organizations/_page.server.ts.js.map +1 -1
- package/build/server/entries/pages/docs/api/_page.server.ts.js +1 -1
- package/build/server/entries/pages/library/_guid_/_page.server.ts.js +8 -7
- package/build/server/entries/pages/library/_guid_/_page.server.ts.js.map +1 -1
- package/build/server/entries/pages/library/_guid_/_page.svelte.js +9874 -3725
- package/build/server/entries/pages/library/_guid_/_page.svelte.js.map +1 -1
- package/build/server/entries/pages/library/_page.server.ts.js +1 -2
- package/build/server/entries/pages/library/_page.server.ts.js.map +1 -1
- package/build/server/entries/pages/oauth/authorize/_page.server.ts.js +2 -2
- package/build/server/entries/pages/projects/_page.server.ts.js +2 -2
- package/build/server/entries/pages/projects/_page.svelte.js +10 -4
- package/build/server/entries/pages/projects/_page.svelte.js.map +1 -1
- package/build/server/entries/pages/setup/_page.server.ts.js +1 -1
- package/build/server/entries/pages/team/_page.server.ts.js +1 -1
- package/build/server/entries/pages/team/_page.server.ts.js.map +1 -1
- package/build/server/entries/pages/team/members/_page.server.ts.js +4 -2
- package/build/server/entries/pages/team/members/_page.server.ts.js.map +1 -1
- package/build/server/entries/pages/team/members/_page.svelte.js +6 -5
- package/build/server/entries/pages/team/members/_page.svelte.js.map +1 -1
- package/build/server/entries/pages/team/projects/_page.server.ts.js +5 -12
- package/build/server/entries/pages/team/projects/_page.server.ts.js.map +1 -1
- package/build/server/entries/pages/team/reclaim/_page.server.ts.js +6 -13
- package/build/server/entries/pages/team/reclaim/_page.server.ts.js.map +1 -1
- package/build/server/manifest-full.js +1 -1
- package/build/server/manifest.js +1 -1
- package/build/server/nodes/0.js +2 -2
- package/build/server/nodes/1.js +1 -1
- package/build/server/nodes/2.js +1 -1
- package/build/server/nodes/20.js +1 -1
- package/build/server/nodes/21.js +1 -1
- package/build/server/nodes/25.js +1 -1
- package/build/server/nodes/3.js +1 -1
- package/build/server/nodes/30.js +1 -1
- package/build/server/nodes/5.js +1 -1
- package/build/server/nodes/6.js +1 -1
- package/build/server/nodes/7.js +1 -1
- package/build/server/server.js +1 -1
- package/package.json +13 -13
- package/templates/.env.example +18 -1
- package/build/client/_app/immutable/assets/0.DJ150bSr.css +0 -2
- package/build/client/_app/immutable/assets/0.DJ150bSr.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DJ150bSr.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B3BHv1lE.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3BHv1lE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BAhtiTKe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAhtiTKe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEPlNI5E.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEPlNI5E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CmlXAF26.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmlXAF26.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQbsDiDJ.js +0 -1
- package/build/client/_app/immutable/chunks/DQbsDiDJ.js.br +0 -1
- package/build/client/_app/immutable/chunks/DQbsDiDJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DW5EJMC7.js +0 -1
- package/build/client/_app/immutable/chunks/DW5EJMC7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DW5EJMC7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dqy8nTaG.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dqy8nTaG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cUJB_11K.js.br +0 -0
- package/build/client/_app/immutable/chunks/cUJB_11K.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B3im90t6.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B3im90t6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DWd6YbcT.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DWd6YbcT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.bCPP2ncY.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.bCPP2ncY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DI5Eri_M.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DI5Eri_M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BI8SjY_r.js +0 -1
- package/build/client/_app/immutable/nodes/21.BI8SjY_r.js.br +0 -1
- package/build/client/_app/immutable/nodes/21.BI8SjY_r.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.BRm8FzmQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.BRm8FzmQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Ctd9OGCk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.B6pd-F-z.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.B6pd-F-z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BUX4zZQj.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BUX4zZQj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BpjtFwPi.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BpjtFwPi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.hBM6C-wN.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.hBM6C-wN.js.gz +0 -0
- package/build/server/_app/immutable/assets/_layout.DJ150bSr.css +0 -2
- package/build/server/chunks/definitions.js +0 -263
- package/build/server/chunks/definitions.js.map +0 -1
- package/build/server/chunks/keepalive-vtcjhAV3.js.map +0 -1
- package/build/server/chunks/schema-extraction.js.map +0 -1
- package/build/server/chunks/visibility.js.map +0 -1
- /package/build/client/_app/immutable/nodes/{0.Bu9WQ0W_.js → 0.CXQcjMDK.js} +0 -0
- /package/build/client/_app/immutable/nodes/{0.Bu9WQ0W_.js.br → 0.CXQcjMDK.js.br} +0 -0
- /package/build/client/_app/immutable/nodes/{0.Bu9WQ0W_.js.gz → 0.CXQcjMDK.js.gz} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { K as actorFrom, l as getErrorReporter, u as getEventSink } from "../../../../../../chunks/providers.server.js";
|
|
2
2
|
import { n as env } from "../../../../../../chunks/previous-key.js";
|
|
3
3
|
import { C as requirePermission } from "../../../../../../chunks/access.js";
|
|
4
|
-
import { n as renderThrown } from "../../../../../../chunks/
|
|
4
|
+
import { n as renderThrown } from "../../../../../../chunks/logging.js";
|
|
5
5
|
import "../../../../../../chunks/access2.server.js";
|
|
6
6
|
import { n as channelTag, r as readChannel, t as checkForUpdate } from "../../../../../../chunks/updateCheck.server.js";
|
|
7
7
|
import { i as updateStatePath, n as startUpdateOutcomeReconciler, r as updateLogPath, t as findDeploymentDir } from "../../../../../../chunks/selfUpdate.server.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { K as actorFrom, g as getPermissionStore, o as getDataProvider, r as getAuthProvider, u as getEventSink } from "../../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode, b as requireManageInstanceUsers, r as assertCanGrantPlatformPermissions } from "../../../../../../chunks/access.js";
|
|
3
3
|
import { t as SYSTEM_CONTEXT } from "../../../../../../chunks/context.js";
|
|
4
4
|
import { r as PlatformPermissionSchema } from "../../../../../../chunks/types3.js";
|
|
5
5
|
import { U as requireParams, z as parseBody } from "../../../../../../chunks/api.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { K as actorFrom, T as providers, g as getPermissionStore, r as getAuthProvider, u as getEventSink } from "../../../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode, b as requireManageInstanceUsers } from "../../../../../../../chunks/access.js";
|
|
3
3
|
import { U as requireParams } from "../../../../../../../chunks/api.js";
|
|
4
4
|
import { et as revokeUserApiTokens } from "../../../../../../../chunks/handlers.js";
|
|
5
5
|
import { t as apiError } from "../../../../../../../chunks/api-errors.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { K as actorFrom, g as getPermissionStore, h as getOrganizationProvider, o as getDataProvider, r as getAuthProvider, u as getEventSink } from "../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode, b as requireManageInstanceUsers, r as assertCanGrantPlatformPermissions } from "../../../../../chunks/access.js";
|
|
3
3
|
import { t as SYSTEM_CONTEXT } from "../../../../../chunks/context.js";
|
|
4
4
|
import { r as PlatformPermissionSchema } from "../../../../../chunks/types3.js";
|
|
5
5
|
import { z as parseBody } from "../../../../../chunks/api.js";
|
|
6
|
-
import { t as apiError } from "../../../../../chunks/api-errors.js";
|
|
7
6
|
import { t as listAllOrgMembers } from "../../../../../chunks/list-all-members.js";
|
|
7
|
+
import { t as apiError } from "../../../../../chunks/api-errors.js";
|
|
8
8
|
import "../../../../../chunks/access2.server.js";
|
|
9
9
|
import { n as created, t as apiRoute } from "../../../../../chunks/http2.js";
|
|
10
10
|
import { t as setUserPlatformPermissions } from "../../../../../chunks/permissions.server.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as ApiErrorCode } from "../../../../../chunks/access.js";
|
|
2
2
|
import { t as apiError } from "../../../../../chunks/api-errors.js";
|
|
3
3
|
import { t as COMPUTE_DEBUG } from "../../../../../chunks/engine.server.js";
|
|
4
4
|
import { randomFillSync } from "node:crypto";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { J as definitionPaths, U as classifyAssetPath, x as getStorageProvider } from "../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode, n as accessDepsFromConfig } from "../../../../../chunks/access.js";
|
|
3
3
|
import { t as COVER_IMAGE_CONTENT_TYPES } from "../../../../../chunks/types2.js";
|
|
4
4
|
import { r as GuidSchema } from "../../../../../chunks/schemas.js";
|
|
5
|
-
import {
|
|
6
|
-
import "../../../../../chunks/definitions.js";
|
|
5
|
+
import { s as getVisibleDefinition } from "../../../../../chunks/logging.js";
|
|
7
6
|
import { t as apiError } from "../../../../../chunks/api-errors.js";
|
|
8
7
|
import "../../../../../chunks/access2.server.js";
|
|
9
8
|
// src/routes/api/files/[...path]/+server.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../../src/routes/api/files/[...path]/+server.ts"],"sourcesContent":["import type { RequestHandler } from './$types';\nimport { apiError, ApiErrorCode } from '#lib/server/api-errors.js';\nimport {\n\tGuidSchema,\n\tdefinitionPaths,\n\tclassifyAssetPath,\n\tCOVER_IMAGE_CONTENT_TYPES\n} from '@selvajs/platform';\nimport { getVisibleDefinition } from '@selvajs/server/definitions';\nimport { getStorageProvider } from '#lib/server/providers.server.js';\nimport { accessDepsFromConfig } from '#lib/server/access.server.js';\n\n/**\n * Authenticated/public blob proxy. The set of servable paths is the closed\n * asset-class registry (`classifyAssetPath` / `ASSET_CLASSES` in\n * `@selvajs/platform`). Each class declares a visibility; this route maps that\n * visibility to an authorization check:\n *\n * - `public` (org branding — logo/favicon): served to anyone, incl.\n * logged-out visitors, with no auth. Cacheable. The bytes are always a\n * rasterized WebP, so there is no XSS surface to gate.\n * - `project` (definition covers): the caller must be able to view the\n * definition's project, by the same rule as definition reads.\n *\n * Anything that classifies to no asset class 404s. New blob types are opt-in:\n * add a registry entry with the right visibility — never a generic\n * \"is the extension allowed\" fallthrough. Authorization lives here (the route),\n * not in the storage layer, per `IStorageProvider`'s contract.\n *\n * Why a single proxy: with the registry, the route is no longer a\n * pile of per-shape branches — it classifies once and dispatches on visibility,\n * so the cover-only contract that this route used to pin now generalizes\n * without re-opening the M5 hole.\n */\n\n// Content types we set on served blobs. Image types are reused from the\n// canonical `COVER_IMAGE_CONTENT_TYPES` so cover/branding stay in lockstep with\n// the upload validation. Deliberately NO `image/svg+xml`: no\n// registered class serves SVG (branding is always rasterized WebP), and\n// serving raw SVG would reintroduce the XSS surface the transcoder removes.\n// Anything not listed falls back to `application/octet-stream` (download, not\n// inline-render).\nconst CONTENT_TYPE_BY_EXT: Record<string, string> = COVER_IMAGE_CONTENT_TYPES;\n\nfunction contentTypeFor(storagePath: string): string {\n\tconst dot = storagePath.lastIndexOf('.');\n\tconst ext = dot === -1 ? '' : storagePath.slice(dot).toLowerCase();\n\treturn CONTENT_TYPE_BY_EXT[ext] ?? 'application/octet-stream';\n}\n\nexport const GET: RequestHandler = async ({ params, locals }) => {\n\tconst storagePath = params.path;\n\tif (!storagePath) apiError(400, ApiErrorCode.VALIDATION_FAILED, 'Missing path');\n\n\t// 1. Classify against the closed registry. No match → unservable → 404.\n\tconst match = classifyAssetPath(storagePath);\n\tif (!match) apiError(404, ApiErrorCode.NOT_FOUND, 'File not found');\n\n\t// 2. Authorize per the class's visibility, and resolve the canonical\n\t// storage path to read from. For `project` we re-derive the path from\n\t// `definitionPaths` rather than echoing the request — eliminates any\n\t// chance the matched path resolves to something else after decoding.\n\tlet canonicalPath = storagePath;\n\n\tswitch (match.class.visibility) {\n\t\tcase 'public':\n\t\t\t// No auth — branding is world-readable. The registry's anchored,\n\t\t\t// safe-alphabet pattern is the only gate the path needs.\n\t\t\tbreak;\n\n\t\tcase 'project': {\n\t\t\tif (!locals.ctx) apiError(401, ApiErrorCode.UNAUTHORIZED, 'Unauthorized');\n\t\t\tconst guid = match.scopeId;\n\t\t\tconst guidParsed = GuidSchema.safeParse(guid);\n\t\t\tif (!guidParsed.success) apiError(404, ApiErrorCode.NOT_FOUND, 'File not found');\n\n\t\t\t// 404, not 403, for a cover the caller can't view: a 403 would confirm the guid exists.\n\t\t\tconst record = await getVisibleDefinition(\n\t\t\t\tlocals.ctx,\n\t\t\t\tguidParsed.data,\n\t\t\t\taccessDepsFromConfig(locals.providers)\n\t\t\t);\n\t\t\tif (!record) apiError(404, ApiErrorCode.NOT_FOUND, 'File not found');\n\n\t\t\tcanonicalPath = definitionPaths.image(guidParsed.data);\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// 3. Stream the bytes.\n\tconst bytes = await getStorageProvider().get(canonicalPath);\n\tif (!bytes) apiError(404, ApiErrorCode.NOT_FOUND, 'File not found');\n\n\t// Public branding is CDN-cacheable; everything else is per-user private.\n\tconst cacheControl =\n\t\tmatch.class.visibility === 'public' ? 'public, max-age=3600' : 'private, max-age=3600';\n\n\treturn new Response(Buffer.from(bytes), {\n\t\theaders: {\n\t\t\t'Content-Type': contentTypeFor(canonicalPath),\n\t\t\t'Cache-Control': cacheControl\n\t\t}\n\t});\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../../src/routes/api/files/[...path]/+server.ts"],"sourcesContent":["import type { RequestHandler } from './$types';\nimport { apiError, ApiErrorCode } from '#lib/server/api-errors.js';\nimport {\n\tGuidSchema,\n\tdefinitionPaths,\n\tclassifyAssetPath,\n\tCOVER_IMAGE_CONTENT_TYPES\n} from '@selvajs/platform';\nimport { getVisibleDefinition } from '@selvajs/server/definitions';\nimport { getStorageProvider } from '#lib/server/providers.server.js';\nimport { accessDepsFromConfig } from '#lib/server/access.server.js';\n\n/**\n * Authenticated/public blob proxy. The set of servable paths is the closed\n * asset-class registry (`classifyAssetPath` / `ASSET_CLASSES` in\n * `@selvajs/platform`). Each class declares a visibility; this route maps that\n * visibility to an authorization check:\n *\n * - `public` (org branding — logo/favicon): served to anyone, incl.\n * logged-out visitors, with no auth. Cacheable. The bytes are always a\n * rasterized WebP, so there is no XSS surface to gate.\n * - `project` (definition covers): the caller must be able to view the\n * definition's project, by the same rule as definition reads.\n *\n * Anything that classifies to no asset class 404s. New blob types are opt-in:\n * add a registry entry with the right visibility — never a generic\n * \"is the extension allowed\" fallthrough. Authorization lives here (the route),\n * not in the storage layer, per `IStorageProvider`'s contract.\n *\n * Why a single proxy: with the registry, the route is no longer a\n * pile of per-shape branches — it classifies once and dispatches on visibility,\n * so the cover-only contract that this route used to pin now generalizes\n * without re-opening the M5 hole.\n */\n\n// Content types we set on served blobs. Image types are reused from the\n// canonical `COVER_IMAGE_CONTENT_TYPES` so cover/branding stay in lockstep with\n// the upload validation. Deliberately NO `image/svg+xml`: no\n// registered class serves SVG (branding is always rasterized WebP), and\n// serving raw SVG would reintroduce the XSS surface the transcoder removes.\n// Anything not listed falls back to `application/octet-stream` (download, not\n// inline-render).\nconst CONTENT_TYPE_BY_EXT: Record<string, string> = COVER_IMAGE_CONTENT_TYPES;\n\nfunction contentTypeFor(storagePath: string): string {\n\tconst dot = storagePath.lastIndexOf('.');\n\tconst ext = dot === -1 ? '' : storagePath.slice(dot).toLowerCase();\n\treturn CONTENT_TYPE_BY_EXT[ext] ?? 'application/octet-stream';\n}\n\nexport const GET: RequestHandler = async ({ params, locals }) => {\n\tconst storagePath = params.path;\n\tif (!storagePath) apiError(400, ApiErrorCode.VALIDATION_FAILED, 'Missing path');\n\n\t// 1. Classify against the closed registry. No match → unservable → 404.\n\tconst match = classifyAssetPath(storagePath);\n\tif (!match) apiError(404, ApiErrorCode.NOT_FOUND, 'File not found');\n\n\t// 2. Authorize per the class's visibility, and resolve the canonical\n\t// storage path to read from. For `project` we re-derive the path from\n\t// `definitionPaths` rather than echoing the request — eliminates any\n\t// chance the matched path resolves to something else after decoding.\n\tlet canonicalPath = storagePath;\n\n\tswitch (match.class.visibility) {\n\t\tcase 'public':\n\t\t\t// No auth — branding is world-readable. The registry's anchored,\n\t\t\t// safe-alphabet pattern is the only gate the path needs.\n\t\t\tbreak;\n\n\t\tcase 'project': {\n\t\t\tif (!locals.ctx) apiError(401, ApiErrorCode.UNAUTHORIZED, 'Unauthorized');\n\t\t\tconst guid = match.scopeId;\n\t\t\tconst guidParsed = GuidSchema.safeParse(guid);\n\t\t\tif (!guidParsed.success) apiError(404, ApiErrorCode.NOT_FOUND, 'File not found');\n\n\t\t\t// 404, not 403, for a cover the caller can't view: a 403 would confirm the guid exists.\n\t\t\tconst record = await getVisibleDefinition(\n\t\t\t\tlocals.ctx,\n\t\t\t\tguidParsed.data,\n\t\t\t\taccessDepsFromConfig(locals.providers)\n\t\t\t);\n\t\t\tif (!record) apiError(404, ApiErrorCode.NOT_FOUND, 'File not found');\n\n\t\t\tcanonicalPath = definitionPaths.image(guidParsed.data);\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// 3. Stream the bytes.\n\tconst bytes = await getStorageProvider().get(canonicalPath);\n\tif (!bytes) apiError(404, ApiErrorCode.NOT_FOUND, 'File not found');\n\n\t// Public branding is CDN-cacheable; everything else is per-user private.\n\tconst cacheControl =\n\t\tmatch.class.visibility === 'public' ? 'public, max-age=3600' : 'private, max-age=3600';\n\n\treturn new Response(Buffer.from(bytes), {\n\t\theaders: {\n\t\t\t'Content-Type': contentTypeFor(canonicalPath),\n\t\t\t'Cache-Control': cacheControl\n\t\t}\n\t});\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,IAAM,sBAA8C;AAEpD,SAAS,eAAe,aAA6B;CACpD,MAAM,MAAM,YAAY,YAAY,GAAG;CAEvC,OAAO,oBADK,QAAQ,KAAK,KAAK,YAAY,MAAM,GAAG,CAAC,CAAC,YAAY,MAC9B;AACpC;AAEA,IAAa,MAAsB,OAAO,EAAE,QAAQ,aAAa;CAChE,MAAM,cAAc,OAAO;CAC3B,IAAI,CAAC,aAAa,SAAS,KAAK,aAAa,mBAAmB,cAAc;CAG9E,MAAM,QAAQ,kBAAkB,WAAW;CAC3C,IAAI,CAAC,OAAO,SAAS,KAAK,aAAa,WAAW,gBAAgB;CAMlE,IAAI,gBAAgB;CAEpB,QAAQ,MAAM,MAAM,YAApB;EACC,KAAK,UAGJ;EAED,KAAK,WAAW;GACf,IAAI,CAAC,OAAO,KAAK,SAAS,KAAK,aAAa,cAAc,cAAc;GACxE,MAAM,OAAO,MAAM;GACnB,MAAM,aAAa,WAAW,UAAU,IAAI;GAC5C,IAAI,CAAC,WAAW,SAAS,SAAS,KAAK,aAAa,WAAW,gBAAgB;GAQ/E,IAAI,CAAC,MALgB,qBACpB,OAAO,KACP,WAAW,MACX,qBAAqB,OAAO,SAAS,CACtC,GACa,SAAS,KAAK,aAAa,WAAW,gBAAgB;GAEnE,gBAAgB,gBAAgB,MAAM,WAAW,IAAI;GACrD;EACD;CACD;CAGA,MAAM,QAAQ,MAAM,mBAAmB,CAAC,CAAC,IAAI,aAAa;CAC1D,IAAI,CAAC,OAAO,SAAS,KAAK,aAAa,WAAW,gBAAgB;CAGlE,MAAM,eACL,MAAM,MAAM,eAAe,WAAW,yBAAyB;CAEhE,OAAO,IAAI,SAAS,OAAO,KAAK,KAAK,GAAG,EACvC,SAAS;EACR,gBAAgB,eAAe,aAAa;EAC5C,iBAAiB;CAClB,EACD,CAAC;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as respondWithKeepalive, z as wantsKeepalive } from "../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode } from "../../../../../chunks/access.js";
|
|
3
3
|
import { g as SolveModeSchema } from "../../../../../chunks/api.js";
|
|
4
4
|
import { n as errorResponse, t as apiError } from "../../../../../chunks/api-errors.js";
|
|
5
5
|
import { a as computeRequestCap } from "../../../../../chunks/engine.server.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as scoped,
|
|
1
|
+
import { E as scoped, O as ApiErrorCode, l as requireCanCreateDefinition } from "../../../../../../chunks/access.js";
|
|
2
2
|
import { N as assertScope } from "../../../../../../chunks/api.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../../../../../chunks/logging.js";
|
|
4
|
+
import { n as SchemaExtractionError, r as assertCamelCaseSchema, t as ComputeServerUnconfiguredError, u as postSchemaFormData } from "../../../../../../chunks/errors.js";
|
|
4
5
|
import "../../../../../../chunks/compute.js";
|
|
5
|
-
import "../../../../../../chunks/definitions.js";
|
|
6
6
|
import { r as withApiRateLimit } from "../../../../../../chunks/sveltekit.js";
|
|
7
7
|
import { t as apiError } from "../../../../../../chunks/api-errors.js";
|
|
8
8
|
import { t as asHttpError } from "../../../../../../chunks/access2.server.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { E as updateDefinition, S as getDefinition, x as deleteDefinition } from "../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var GET = mount("Failed to load definition", getDefinition, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { D as uploadDefinitionImage } from "../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/image/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var POST = mount("Failed to upload image", uploadDefinitionImage, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { T as publishDefinition } from "../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/publish/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var POST = mount("Failed to publish version", publishDefinition, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { C as getDefinitionSchema } from "../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/schema/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var GET = mount("Failed to load definition schema", getDefinitionSchema, { scopeTarget });
|
package/build/server/entries/endpoints/api/v1/definitions/_guid_/share-links/_linkId_/_server.ts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { z as revokeShareLink } from "../../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/share-links/[linkId]/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var DELETE = mount("Failed to revoke share link", revokeShareLink, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { L as createShareLink, R as listShareLinks } from "../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/share-links/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var GET = mount("Failed to list share links", listShareLinks, { scopeTarget });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as acceptsGzip } from "../../../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode } from "../../../../../../../chunks/access.js";
|
|
3
3
|
import { C as idempotencyCallerId, E as runIdempotent, S as createApiIdempotencyStore, T as requestFingerprint, U as requireParams, h as SolveBodySchema, w as readIdempotencyKey, z as parseBody } from "../../../../../../../chunks/api.js";
|
|
4
4
|
import { r as withApiRateLimit } from "../../../../../../../chunks/sveltekit.js";
|
|
5
5
|
import { r as handleApiError, t as apiError } from "../../../../../../../chunks/api-errors.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { I as uploadVersion, P as listVersions } from "../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/versions/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var GET = mount("Failed to list versions", listVersions, { scopeTarget });
|
package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/_server.ts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { A as getVersion, k as deleteVersion } from "../../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/versions/[versionId]/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var GET = mount("Failed to load version", getVersion, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { j as getVersionChanges } from "../../../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/versions/[versionId]/changes/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var GET = mount("Failed to compare versions", getVersionChanges, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { F as refreshVersionInventory } from "../../../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/versions/[versionId]/inventory/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var POST = mount("Failed to read version inventory", refreshVersionInventory, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { M as getVersionSchema } from "../../../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/versions/[versionId]/schema/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var GET = mount("Failed to load version schema", getVersionSchema, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { N as getVersionScriptDiff } from "../../../../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/versions/[versionId]/scripts/[scriptId]/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var GET = mount("Failed to read script changes", getVersionScriptDiff, {
|
package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/check/_server.ts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as definitionScopeTarget } from "../../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { O as checkVersion } from "../../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/definitions/[guid]/versions/check/+server.ts
|
|
5
5
|
var scopeTarget = definitionScopeTarget("guid");
|
|
6
6
|
var POST = mount("Failed to check definition version", checkVersion, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { b as createDefinition, w as listDefinitions } from "../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/definitions/+server.ts
|
|
4
4
|
var GET = mount("Failed to list definitions", listDefinitions);
|
|
5
5
|
var POST = mount("Failed to create definition", createDefinition, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { at as getMe } from "../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/me/+server.ts
|
|
4
4
|
var GET = mount("Failed to load identity", getMe);
|
|
5
5
|
export { GET };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { it as unstarDefinition, rt as starDefinition } from "../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/me/starred/[guid]/+server.ts
|
|
4
4
|
var PUT = mount("Failed to star definition", starDefinition);
|
|
5
5
|
var DELETE = mount("Failed to unstar definition", unstarDefinition);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { $ as revokeOwnApiToken } from "../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/me/token/+server.ts
|
|
4
4
|
var DELETE = mount("Failed to revoke API token", revokeOwnApiToken, { anyScope: true });
|
|
5
5
|
export { DELETE };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { tt as getOrg } from "../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/+server.ts
|
|
4
4
|
var GET = mount("Failed to load organization", getOrg);
|
|
5
5
|
export { GET };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { B as removeOrgAsset, V as uploadOrgAsset } from "../../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/assets/[kind]/+server.ts
|
|
4
4
|
var POST = mount("Failed to upload asset", uploadOrgAsset);
|
|
5
5
|
var DELETE = mount("Failed to remove asset", removeOrgAsset);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { l as getOrgCompute, u as updateOrgCompute } from "../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/compute/+server.ts
|
|
4
4
|
var GET = mount("Failed to load org compute config", getOrgCompute);
|
|
5
5
|
var PATCH = mount("Failed to save org compute config", updateOrgCompute);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { c as revokeInvite } from "../../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/invites/[id]/+server.ts
|
|
4
4
|
var DELETE = mount("Failed to revoke invite", revokeInvite);
|
|
5
5
|
export { DELETE };
|
package/build/server/entries/endpoints/api/v1/orgs/_orgId_/invites/_id_/resend/_server.ts.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { s as resendInvite } from "../../../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/invites/[id]/resend/+server.ts
|
|
4
4
|
var POST = mount("Failed to resend invite", resendInvite);
|
|
5
5
|
export { POST };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { i as createInvite, o as listInvites } from "../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/invites/+server.ts
|
|
4
4
|
var GET = mount("Failed to list invites", listInvites);
|
|
5
5
|
var POST = mount("Failed to create invite", createInvite);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { nt as listOrgMembers } from "../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/members/+server.ts
|
|
4
4
|
var GET = mount("Failed to list organization members", listOrgMembers);
|
|
5
5
|
export { GET };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { U as removeOrgMember, W as updateOrgMember } from "../../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/members/[userId]/+server.ts
|
|
4
4
|
var PATCH = mount("Failed to update member", updateOrgMember);
|
|
5
5
|
var DELETE = mount("Failed to remove member", removeOrgMember);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { J as createApiToken, Y as listApiTokens } from "../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/tokens/+server.ts
|
|
4
4
|
var GET = mount("Failed to list API tokens", listApiTokens);
|
|
5
5
|
var POST = mount("Failed to create API token", createApiToken);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { Q as revokeApiToken } from "../../../../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/orgs/[orgId]/tokens/[tokenId]/+server.ts
|
|
4
4
|
var DELETE = mount("Failed to revoke API token", revokeApiToken);
|
|
5
5
|
export { DELETE };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as projectScopeTarget } from "../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { _ as getProject, g as deleteProject, y as updateProject } from "../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/projects/[id]/+server.ts
|
|
5
5
|
var scopeTarget = projectScopeTarget("id");
|
|
6
6
|
var GET = mount("Failed to load project", getProject, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as projectScopeTarget } from "../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { d as addProjectMember, f as listProjectMembers } from "../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/projects/[id]/members/+server.ts
|
|
5
5
|
var scopeTarget = projectScopeTarget("id");
|
|
6
6
|
var GET = mount("Failed to load members", listProjectMembers, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as projectScopeTarget } from "../../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { m as updateProjectMemberRole, p as removeProjectMember } from "../../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/projects/[id]/members/[userId]/+server.ts
|
|
5
5
|
var scopeTarget = projectScopeTarget("id");
|
|
6
6
|
var PATCH = mount("Failed to update role", updateProjectMemberRole, { scopeTarget });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as projectScopeTarget } from "../../../../../../../chunks/api.js";
|
|
2
|
-
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
3
2
|
import { H as reclaimProject } from "../../../../../../../chunks/handlers.js";
|
|
3
|
+
import { t as mount } from "../../../../../../../chunks/sveltekit.js";
|
|
4
4
|
// src/routes/api/v1/projects/[id]/reclaim/+server.ts
|
|
5
5
|
var scopeTarget = projectScopeTarget("id");
|
|
6
6
|
var POST = mount("Failed to reclaim project", reclaimProject, { scopeTarget });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as mount } from "../../../../../chunks/sveltekit.js";
|
|
2
1
|
import { h as createProject, v as listProjects } from "../../../../../chunks/handlers.js";
|
|
2
|
+
import { t as mount } from "../../../../../chunks/sveltekit.js";
|
|
3
3
|
// src/routes/api/v1/projects/+server.ts
|
|
4
4
|
var GET = mount("Failed to list projects", listProjects);
|
|
5
5
|
var POST = mount("Failed to create project", createProject, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as ApiErrorCode } from "../../../../../../../chunks/access.js";
|
|
2
2
|
import { P as assertScopeAnywhere } from "../../../../../../../chunks/api.js";
|
|
3
|
-
import { r as withApiRateLimit } from "../../../../../../../chunks/sveltekit.js";
|
|
4
3
|
import { r as getSolveEventBus } from "../../../../../../../chunks/token.server.js";
|
|
4
|
+
import { r as withApiRateLimit } from "../../../../../../../chunks/sveltekit.js";
|
|
5
5
|
import { t as apiError } from "../../../../../../../chunks/api-errors.js";
|
|
6
6
|
import { t as asHttpError } from "../../../../../../../chunks/access2.server.js";
|
|
7
7
|
import { n as liveOwnerKey } from "../../../../../../../chunks/liveSolve.server.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as ApiErrorCode } from "../../../../../chunks/access.js";
|
|
2
2
|
import { P as assertScopeAnywhere } from "../../../../../chunks/api.js";
|
|
3
|
-
import { r as withApiRateLimit } from "../../../../../chunks/sveltekit.js";
|
|
4
3
|
import { r as getSolveEventBus } from "../../../../../chunks/token.server.js";
|
|
4
|
+
import { r as withApiRateLimit } from "../../../../../chunks/sveltekit.js";
|
|
5
5
|
import { t as apiError } from "../../../../../chunks/api-errors.js";
|
|
6
6
|
import { t as asHttpError } from "../../../../../chunks/access2.server.js";
|
|
7
7
|
import { n as liveOwnerKey } from "../../../../../chunks/liveSolve.server.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as ApiErrorCode } from "../../../../../../chunks/access.js";
|
|
2
2
|
import { n as verifySolveToken, r as getSolveEventBus } from "../../../../../../chunks/token.server.js";
|
|
3
3
|
import { t as apiError } from "../../../../../../chunks/api-errors.js";
|
|
4
4
|
import { l as requireMaxBodySize } from "../../../../../../chunks/admin-auth.server.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as getAuthProvider } from "../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode } from "../../../../../chunks/access.js";
|
|
3
3
|
import { n as hasSetupProof, t as bootstrapUserSession } from "../../../../../chunks/auth-bootstrap.server.js";
|
|
4
4
|
import { t as apiError } from "../../../../../chunks/api-errors.js";
|
|
5
5
|
import { t as safeRedirectTarget } from "../../../../../chunks/redirect.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as getAuthProvider } from "../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode } from "../../../../../chunks/access.js";
|
|
3
3
|
import { n as hasSetupProof, t as bootstrapUserSession } from "../../../../../chunks/auth-bootstrap.server.js";
|
|
4
4
|
import { t as apiError } from "../../../../../chunks/api-errors.js";
|
|
5
5
|
import { t as safeRedirectTarget } from "../../../../../chunks/redirect.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as getAuthProvider } from "../../../../../chunks/providers.server.js";
|
|
2
|
-
import {
|
|
2
|
+
import { O as ApiErrorCode } from "../../../../../chunks/access.js";
|
|
3
3
|
import { t as publicUrl } from "../../../../../chunks/origin.js";
|
|
4
4
|
import { t as apiError } from "../../../../../chunks/api-errors.js";
|
|
5
5
|
import { n as issueOAuthState } from "../../../../../chunks/oauthState.server.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { f as getLogger } from "../../../chunks/providers.server.js";
|
|
2
2
|
import { n as env } from "../../../chunks/previous-key.js";
|
|
3
|
-
import {
|
|
3
|
+
import { H as apiScopeActionCovers } from "../../../chunks/access.js";
|
|
4
4
|
import { n as ApiScopeActionSchema, o as parseApiScope } from "../../../chunks/types.js";
|
|
5
5
|
import { r as GuidSchema } from "../../../chunks/schemas.js";
|
|
6
|
+
import { n as getInputItems } from "../../../chunks/traversal.js";
|
|
6
7
|
import { s as resourceMetadataUrl } from "../../../chunks/oauth.js";
|
|
7
8
|
import { i as oauthServer } from "../../../chunks/server2.js";
|
|
8
9
|
import { t as publicUrl } from "../../../chunks/origin.js";
|
|
9
|
-
import { n as getInputItems } from "../../../chunks/traversal.js";
|
|
10
10
|
import { t as buildOpenApiDocument } from "../../../chunks/openapi.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import * as z$1 from "zod/v4";
|
|
@@ -20678,7 +20678,7 @@ function createMcpServer(options) {
|
|
|
20678
20678
|
if (value && typeof value === "object") return Object.fromEntries(Object.entries(value).map(([k, v]) => [redact(k), redactValue(v)]));
|
|
20679
20679
|
return value;
|
|
20680
20680
|
};
|
|
20681
|
-
function toResult(out) {
|
|
20681
|
+
function toResult(out, hasOutputSchema) {
|
|
20682
20682
|
return {
|
|
20683
20683
|
content: [{
|
|
20684
20684
|
type: "text",
|
|
@@ -20688,7 +20688,7 @@ function createMcpServer(options) {
|
|
|
20688
20688
|
data,
|
|
20689
20689
|
mimeType
|
|
20690
20690
|
}))],
|
|
20691
|
-
...out.structured && { structuredContent: JSON.parse(redact(JSON.stringify(out.structured))) },
|
|
20691
|
+
...hasOutputSchema && out.structured && { structuredContent: JSON.parse(redact(JSON.stringify(out.structured))) },
|
|
20692
20692
|
...out.meta && { _meta: redactValue(out.meta) }
|
|
20693
20693
|
};
|
|
20694
20694
|
}
|
|
@@ -20761,7 +20761,7 @@ function createMcpServer(options) {
|
|
|
20761
20761
|
signal: ctx.mcpReq.signal,
|
|
20762
20762
|
spec
|
|
20763
20763
|
});
|
|
20764
|
-
result = toResult(typeof out === "string" ? { text: out } : out);
|
|
20764
|
+
result = toResult(typeof out === "string" ? { text: out } : out, !!resolved.output);
|
|
20765
20765
|
return result;
|
|
20766
20766
|
} catch (err) {
|
|
20767
20767
|
ended = outcomeOf(err);
|
|
@@ -21016,9 +21016,11 @@ function checkCalls(owner, calls, spec) {
|
|
|
21016
21016
|
}
|
|
21017
21017
|
}
|
|
21018
21018
|
function outcomeOf(err) {
|
|
21019
|
-
|
|
21020
|
-
|
|
21021
|
-
|
|
21019
|
+
const api = apiCallErrorIn(err);
|
|
21020
|
+
if (api) return {
|
|
21021
|
+
outcome: api.code === "TIMEOUT" ? "timeout" : "error",
|
|
21022
|
+
code: api.code,
|
|
21023
|
+
status: api.status
|
|
21022
21024
|
};
|
|
21023
21025
|
if (err instanceof z.ZodError) return { outcome: "invalid_arguments" };
|
|
21024
21026
|
return {
|
|
@@ -21026,6 +21028,10 @@ function outcomeOf(err) {
|
|
|
21026
21028
|
code: err instanceof Error ? err.name : "Error"
|
|
21027
21029
|
};
|
|
21028
21030
|
}
|
|
21031
|
+
/** The `ApiCallError` behind a failure, directly or through `cause`. */
|
|
21032
|
+
function apiCallErrorIn(err) {
|
|
21033
|
+
for (let e = err, depth = 0; e instanceof Error && depth < 5; e = e.cause, depth++) if (e instanceof ApiCallError) return e;
|
|
21034
|
+
}
|
|
21029
21035
|
function jsonLength(value) {
|
|
21030
21036
|
if (value === void 0) return 0;
|
|
21031
21037
|
try {
|