// Docs: https://www.instantdb.com/docs/permissions import type { InstantRules } from "@instantdb/core"; const rules = { /** * Welcome to Instant's permission system! * Right now your rules are empty. To start filling them in, check out the docs: * https://www.instantdb.com/docs/permissions * * Here's an example to give you a feel: * posts: { * allow: { * view: "true", * create: "isOwner", * update: "isOwner", * delete: "isOwner", * }, * bind: ["isOwner", "auth.id != null && auth.id == data.ownerId"], * }, */ "$default": { "allow": { "$default": "false" } }, machines: { allow: { "$default": "isOwner", }, bind: ["isOwner", "auth.id != null && auth.id == data.ownerID"], } } satisfies InstantRules; export default rules;