// List + invoke — auto-resolves the user's single fullstack app (or pass { appId })
await naive.functions.list();
await naive.functions.get("hello");
const result = await naive.functions.invoke("hello", { name: "world" });
// Create — source code as a `body` string
await naive.functions.deploy({ slug: "hello", name: "hello", verify_jwt: true, body: "..." });
// Deploy / update — one entry per source file (preferred)
await naive.functions.deployFiles("hello", {
verify_jwt: false,
files: [{ name: "index.ts", content: 'Deno.serve(() => new Response("ok"))' }],
});