[{"data":1,"prerenderedAt":1798},["ShallowReactive",2],{"navigation_docs":3,"-modules-features-events":587,"-modules-features-events-surround":1793},[4,50,155,441,504],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":49},"Get Started","i-lucide-rocket","\u002Fget-started","1.get-started",[10,15,20,25,30,35,40,45],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fget-started\u002Fintroduction","1.get-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Project structure","\u002Fget-started\u002Fproject-structure","1.get-started\u002F3.project-structure","i-lucide-folder-tree",{"title":26,"path":27,"stem":28,"icon":29},"Configuration","\u002Fget-started\u002Fconfiguration","1.get-started\u002F4.configuration","i-lucide-settings",{"title":31,"path":32,"stem":33,"icon":34},"Authentication","\u002Fget-started\u002Fauthentication","1.get-started\u002F5.authentication","i-lucide-lock",{"title":36,"path":37,"stem":38,"icon":39},"Adding modules","\u002Fget-started\u002Fadding-modules","1.get-started\u002F6.adding-modules","i-lucide-puzzle",{"title":41,"path":42,"stem":43,"icon":44},"Database","\u002Fget-started\u002Fdatabase","1.get-started\u002F7.database","i-lucide-database",{"title":46,"path":47,"stem":48,"icon":6},"Deployment","\u002Fget-started\u002Fdeployment","1.get-started\u002F8.deployment",false,{"title":51,"icon":52,"path":53,"stem":54,"children":55,"page":49},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[56,90,115,125],{"title":57,"icon":49,"path":58,"stem":59,"children":60,"page":49},"Concepts","\u002Fguide\u002Fconcepts","2.guide\u002F1.concepts",[61,66,71,76,80,85],{"title":62,"path":63,"stem":64,"icon":65},"Architecture","\u002Fguide\u002Fconcepts\u002Farchitecture","2.guide\u002F1.concepts\u002F1.architecture","i-lucide-blocks",{"title":67,"path":68,"stem":69,"icon":70},"Access control","\u002Fguide\u002Fconcepts\u002Fauth-and-scopes","2.guide\u002F1.concepts\u002F2.auth-and-scopes","i-lucide-shield-check",{"title":72,"path":73,"stem":74,"icon":75},"Extension points","\u002Fguide\u002Fconcepts\u002Fextension-points","2.guide\u002F1.concepts\u002F3.extension-points","i-lucide-plug",{"title":77,"path":78,"stem":79,"icon":44},"Database extensions","\u002Fguide\u002Fconcepts\u002Fdatabase-extensions","2.guide\u002F1.concepts\u002F4.database-extensions",{"title":81,"path":82,"stem":83,"icon":84},"Identity","\u002Fguide\u002Fconcepts\u002Fidentity","2.guide\u002F1.concepts\u002F5.identity","i-lucide-fingerprint",{"title":86,"path":87,"stem":88,"icon":89},"Glossary","\u002Fguide\u002Fconcepts\u002Fglossary","2.guide\u002F1.concepts\u002F6.glossary","i-lucide-book-a",{"title":91,"icon":49,"path":92,"stem":93,"children":94,"page":49},"UX patterns","\u002Fguide\u002Fux-patterns","2.guide\u002F2.ux-patterns",[95,100,105,110],{"title":96,"path":97,"stem":98,"icon":99},"Layouts and navigation","\u002Fguide\u002Fux-patterns\u002Flayouts-and-navigation","2.guide\u002F2.ux-patterns\u002F1.layouts-and-navigation","i-lucide-layout-template",{"title":101,"path":102,"stem":103,"icon":104},"Pages","\u002Fguide\u002Fux-patterns\u002Fpages","2.guide\u002F2.ux-patterns\u002F2.pages","i-lucide-table",{"title":106,"path":107,"stem":108,"icon":109},"Forms and actions","\u002Fguide\u002Fux-patterns\u002Fforms-and-actions","2.guide\u002F2.ux-patterns\u002F3.forms-and-actions","i-lucide-square-pen",{"title":111,"path":112,"stem":113,"icon":114},"Text and formatting","\u002Fguide\u002Fux-patterns\u002Ftext-and-formatting","2.guide\u002F2.ux-patterns\u002F4.text-and-formatting","i-lucide-type",{"title":116,"icon":49,"path":117,"stem":118,"children":119,"page":49},"Best practices","\u002Fguide\u002Fbest-practices","2.guide\u002F3.best-practices",[120],{"title":121,"path":122,"stem":123,"icon":124},"HTTP routes","\u002Fguide\u002Fbest-practices\u002Fhttp-routes","2.guide\u002F3.best-practices\u002F1.http-routes","i-lucide-route",{"title":126,"icon":49,"path":127,"stem":128,"children":129,"page":49},"Going further","\u002Fguide\u002Fgoing-further","2.guide\u002F4.going-further",[130,135,140,145,150],{"title":131,"path":132,"stem":133,"icon":134},"Use your own OAuth server","\u002Fguide\u002Fgoing-further\u002Fown-oauth-server","2.guide\u002F4.going-further\u002F1.own-oauth-server","i-lucide-key-round",{"title":136,"path":137,"stem":138,"icon":139},"Create an OAuth application","\u002Fguide\u002Fgoing-further\u002Foauth-application","2.guide\u002F4.going-further\u002F2.oauth-application","i-lucide-app-window",{"title":141,"path":142,"stem":143,"icon":144},"Signing keys","\u002Fguide\u002Fgoing-further\u002Fsigning-keys","2.guide\u002F4.going-further\u002F3.signing-keys","i-lucide-key-square",{"title":146,"path":147,"stem":148,"icon":149},"Stripe setup","\u002Fguide\u002Fgoing-further\u002Fstripe-setup","2.guide\u002F4.going-further\u002F4.stripe-setup","i-lucide-credit-card",{"title":151,"path":152,"stem":153,"icon":154},"Migrate to the permission model","\u002Fguide\u002Fgoing-further\u002Fmigrate-access-control","2.guide\u002F4.going-further\u002F5.migrate-access-control","i-lucide-arrow-right-left",{"title":156,"icon":157,"path":158,"stem":159,"children":160},"Modules","i-lucide-boxes","\u002Fmodules","3.modules",[161,163,244,273,320,375],{"title":156,"path":158,"stem":162},"3.modules\u002Findex",{"title":81,"icon":49,"path":164,"stem":165,"children":166,"page":49},"\u002Fmodules\u002Fidentity","3.modules\u002F1.identity",[167,190,194,198,220,224,240],{"title":168,"path":169,"stem":170,"children":171},"Auth","\u002Fmodules\u002Fidentity\u002Fauth","3.modules\u002F1.identity\u002F1.auth\u002Findex",[172,174,178,182,186],{"title":173,"path":169,"stem":170},"Overview",{"title":175,"path":176,"stem":177},"Server API","\u002Fmodules\u002Fidentity\u002Fauth\u002Fserver","3.modules\u002F1.identity\u002F1.auth\u002F2.server",{"title":179,"path":180,"stem":181},"Reference","\u002Fmodules\u002Fidentity\u002Fauth\u002Freference","3.modules\u002F1.identity\u002F1.auth\u002F3.reference",{"title":183,"path":184,"stem":185},"Client mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fclient-mode","3.modules\u002F1.identity\u002F1.auth\u002F4.client-mode",{"title":187,"path":188,"stem":189},"OAuth providers","\u002Fmodules\u002Fidentity\u002Fauth\u002Foauth-providers","3.modules\u002F1.identity\u002F1.auth\u002F5.oauth-providers",{"title":191,"path":192,"stem":193},"Users","\u002Fmodules\u002Fidentity\u002Fusers","3.modules\u002F1.identity\u002F2.users",{"title":195,"path":196,"stem":197},"Account","\u002Fmodules\u002Fidentity\u002Faccount","3.modules\u002F1.identity\u002F3.account",{"title":199,"path":200,"stem":201,"children":202},"Authorization","\u002Fmodules\u002Fidentity\u002Fauthorization","3.modules\u002F1.identity\u002F4.authorization\u002Findex",[203,204,208,212,216],{"title":173,"path":200,"stem":201},{"title":205,"path":206,"stem":207},"Roles and requirements","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Froles-and-requirements","3.modules\u002F1.identity\u002F4.authorization\u002F2.roles-and-requirements",{"title":209,"path":210,"stem":211},"Policies","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fpolicies","3.modules\u002F1.identity\u002F4.authorization\u002F3.policies",{"title":213,"path":214,"stem":215},"Client","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fclient","3.modules\u002F1.identity\u002F4.authorization\u002F4.client",{"title":217,"path":218,"stem":219},"Admin","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fadmin","3.modules\u002F1.identity\u002F4.authorization\u002F5.admin",{"title":221,"path":222,"stem":223},"Preferences","\u002Fmodules\u002Fidentity\u002Fpreferences","3.modules\u002F1.identity\u002F5.preferences",{"title":225,"path":226,"stem":227,"children":228},"OAuth Server","\u002Fmodules\u002Fidentity\u002Foauth-server","3.modules\u002F1.identity\u002F6.oauth-server\u002Findex",[229,230,233,237],{"title":173,"path":226,"stem":227},{"title":175,"path":231,"stem":232},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fserver","3.modules\u002F1.identity\u002F6.oauth-server\u002F2.server",{"title":234,"path":235,"stem":236},"Hooks","\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fhooks","3.modules\u002F1.identity\u002F6.oauth-server\u002F3.hooks",{"title":179,"path":238,"stem":239},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Froutes-and-clients","3.modules\u002F1.identity\u002F6.oauth-server\u002F4.routes-and-clients",{"title":241,"path":242,"stem":243},"OAuth Resource","\u002Fmodules\u002Fidentity\u002Foauth-resource","3.modules\u002F1.identity\u002F8.oauth-resource",{"title":245,"icon":49,"path":246,"stem":247,"children":248,"page":49},"Commerce","\u002Fmodules\u002Fcommerce","3.modules\u002F2.commerce",[249,253,257],{"title":250,"path":251,"stem":252},"Stripe","\u002Fmodules\u002Fcommerce\u002Fstripe","3.modules\u002F2.commerce\u002F1.stripe",{"title":254,"path":255,"stem":256},"Payments","\u002Fmodules\u002Fcommerce\u002Fpayments","3.modules\u002F2.commerce\u002F2.payments",{"title":258,"path":259,"stem":260,"children":261},"Subscriptions","\u002Fmodules\u002Fcommerce\u002Fsubscriptions","3.modules\u002F2.commerce\u002F3.subscriptions\u002Findex",[262,263,266,270],{"title":173,"path":259,"stem":260},{"title":175,"path":264,"stem":265},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fserver","3.modules\u002F2.commerce\u002F3.subscriptions\u002F2.server",{"title":267,"path":268,"stem":269},"App","\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fapp","3.modules\u002F2.commerce\u002F3.subscriptions\u002F3.app",{"title":179,"path":271,"stem":272},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Freference","3.modules\u002F2.commerce\u002F3.subscriptions\u002F4.reference",{"title":274,"icon":49,"path":275,"stem":276,"children":277,"page":49},"Features","\u002Fmodules\u002Ffeatures","3.modules\u002F3.features",[278,293,312,316],{"title":279,"path":280,"stem":281,"children":282},"Events","\u002Fmodules\u002Ffeatures\u002Fevents","3.modules\u002F3.features\u002F1.events\u002Findex",[283,284,287,290],{"title":173,"path":280,"stem":281},{"title":175,"path":285,"stem":286},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fserver","3.modules\u002F3.features\u002F1.events\u002F2.server",{"title":267,"path":288,"stem":289},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fapp","3.modules\u002F3.features\u002F1.events\u002F3.app",{"title":179,"path":291,"stem":292},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Freference","3.modules\u002F3.features\u002F1.events\u002F4.reference",{"title":294,"path":295,"stem":296,"children":297},"Forms","\u002Fmodules\u002Ffeatures\u002Fforms","3.modules\u002F3.features\u002F2.forms\u002Findex",[298,299,303,306,309],{"title":173,"path":295,"stem":296},{"title":300,"path":301,"stem":302},"Definition","\u002Fmodules\u002Ffeatures\u002Fforms\u002Fdefinition","3.modules\u002F3.features\u002F2.forms\u002F2.definition",{"title":175,"path":304,"stem":305},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fserver","3.modules\u002F3.features\u002F2.forms\u002F3.server",{"title":267,"path":307,"stem":308},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fapp","3.modules\u002F3.features\u002F2.forms\u002F4.app",{"title":179,"path":310,"stem":311},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Freference","3.modules\u002F3.features\u002F2.forms\u002F5.reference",{"title":313,"path":314,"stem":315},"Cookie Consent","\u002Fmodules\u002Ffeatures\u002Fcookie-consent","3.modules\u002F3.features\u002F3.cookie-consent",{"title":317,"path":318,"stem":319},"MCP","\u002Fmodules\u002Ffeatures\u002Fmcp","3.modules\u002F3.features\u002F4.mcp",{"title":321,"icon":49,"path":322,"stem":323,"children":324,"page":49},"Interface","\u002Fmodules\u002Finterface","3.modules\u002F4.interface",[325,350,353,357,361],{"title":326,"path":327,"stem":328,"children":329},"UI","\u002Fmodules\u002Finterface\u002Fui","3.modules\u002F4.interface\u002F1.ui\u002Findex",[330,331,335,339,343,347],{"title":173,"path":327,"stem":328},{"title":332,"path":333,"stem":334},"Page components","\u002Fmodules\u002Finterface\u002Fui\u002Fpage-components","3.modules\u002F4.interface\u002F1.ui\u002F2.page-components",{"title":336,"path":337,"stem":338},"App shell","\u002Fmodules\u002Finterface\u002Fui\u002Fapp-shell","3.modules\u002F4.interface\u002F1.ui\u002F3.app-shell",{"title":340,"path":341,"stem":342},"Form inputs","\u002Fmodules\u002Finterface\u002Fui\u002Fform-inputs","3.modules\u002F4.interface\u002F1.ui\u002F4.form-inputs",{"title":344,"path":345,"stem":346},"Composables and helpers","\u002Fmodules\u002Finterface\u002Fui\u002Fcomposables","3.modules\u002F4.interface\u002F1.ui\u002F5.composables",{"title":179,"path":348,"stem":349},"\u002Fmodules\u002Finterface\u002Fui\u002Freference","3.modules\u002F4.interface\u002F1.ui\u002F6.reference",{"title":217,"path":351,"stem":352},"\u002Fmodules\u002Finterface\u002Fadmin","3.modules\u002F4.interface\u002F2.admin",{"title":354,"path":355,"stem":356},"Menu","\u002Fmodules\u002Finterface\u002Fmenu","3.modules\u002F4.interface\u002F3.menu",{"title":358,"path":359,"stem":360},"Widget","\u002Fmodules\u002Finterface\u002Fwidget","3.modules\u002F4.interface\u002F4.widget",{"title":362,"path":363,"stem":364,"children":365},"Mobile","\u002Fmodules\u002Finterface\u002Fmobile","3.modules\u002F4.interface\u002F5.mobile\u002Findex",[366,367,371],{"title":173,"path":363,"stem":364},{"title":368,"path":369,"stem":370},"CLI and devices","\u002Fmodules\u002Finterface\u002Fmobile\u002Fcli-and-devices","3.modules\u002F4.interface\u002F5.mobile\u002F2.cli-and-devices",{"title":372,"path":373,"stem":374},"Splash screen","\u002Fmodules\u002Finterface\u002Fmobile\u002Fsplash-screen","3.modules\u002F4.interface\u002F5.mobile\u002F3.splash-screen",{"title":376,"icon":49,"path":377,"stem":378,"children":379,"page":49},"Platform","\u002Fmodules\u002Fplatform","3.modules\u002F5.platform",[380,402,406,423],{"title":381,"path":382,"stem":383,"children":384},"Module Kit","\u002Fmodules\u002Fplatform\u002Fmodule-kit","3.modules\u002F5.platform\u002F1.module-kit\u002Findex",[385,386,390,394,398],{"title":173,"path":382,"stem":383},{"title":387,"path":388,"stem":389},"Server toolkit","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fserver-toolkit","3.modules\u002F5.platform\u002F1.module-kit\u002F2.server-toolkit",{"title":391,"path":392,"stem":393},"Registries and menus","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fregistries-and-menus","3.modules\u002F5.platform\u002F1.module-kit\u002F3.registries-and-menus",{"title":395,"path":396,"stem":397},"Translations","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fi18n","3.modules\u002F5.platform\u002F1.module-kit\u002F4.i18n",{"title":399,"path":400,"stem":401},"Database helpers","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fdatabase","3.modules\u002F5.platform\u002F1.module-kit\u002F5.database",{"title":403,"path":404,"stem":405},"Notify","\u002Fmodules\u002Fplatform\u002Fnotify","3.modules\u002F5.platform\u002F2.notify",{"title":407,"path":408,"stem":409,"children":410},"Email Templates","\u002Fmodules\u002Fplatform\u002Femail-templates","3.modules\u002F5.platform\u002F3.email-templates\u002Findex",[411,412,416,419],{"title":173,"path":408,"stem":409},{"title":413,"path":414,"stem":415},"Email components","\u002Fmodules\u002Fplatform\u002Femail-templates\u002Fcomponents","3.modules\u002F5.platform\u002F3.email-templates\u002F2.components",{"title":175,"path":417,"stem":418},"\u002Fmodules\u002Fplatform\u002Femail-templates\u002Fserver","3.modules\u002F5.platform\u002F3.email-templates\u002F3.server",{"title":420,"path":421,"stem":422},"Module emails","\u002Fmodules\u002Fplatform\u002Femail-templates\u002Fmodule-emails","3.modules\u002F5.platform\u002F3.email-templates\u002F4.module-emails",{"title":424,"path":425,"stem":426,"children":427},"Base Layer","\u002Fmodules\u002Fplatform\u002Fbase-layer","3.modules\u002F5.platform\u002F4.base-layer\u002Findex",[428,429,433,437],{"title":173,"path":425,"stem":426},{"title":430,"path":431,"stem":432},"Content collections","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcontent-collections","3.modules\u002F5.platform\u002F4.base-layer\u002F2.content-collections",{"title":434,"path":435,"stem":436},"Layouts and routing","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Flayouts-and-routing","3.modules\u002F5.platform\u002F4.base-layer\u002F3.layouts-and-routing",{"title":438,"path":439,"stem":440},"Composables and utils","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcomposables-and-utils","3.modules\u002F5.platform\u002F4.base-layer\u002F4.composables-and-utils",{"title":442,"icon":443,"path":444,"stem":445,"children":446,"page":49},"Examples","i-lucide-code-xml","\u002Fexamples","4.examples",[447,466,476],{"title":448,"icon":49,"path":449,"stem":450,"children":451,"page":49},"Starters","\u002Fexamples\u002Fstarters","4.examples\u002F1.starters",[452,456,461],{"title":453,"path":454,"stem":455,"icon":6},"Workspace starter","\u002Fexamples\u002Fstarters\u002Fworkspace","4.examples\u002F1.starters\u002F1.workspace",{"title":457,"path":458,"stem":459,"icon":460},"Mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile","4.examples\u002F1.starters\u002F2.mobile","i-lucide-smartphone",{"title":462,"path":463,"stem":464,"icon":465},"Standalone mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile-standalone","4.examples\u002F1.starters\u002F3.mobile-standalone","i-lucide-tablet-smartphone",{"title":467,"icon":49,"path":468,"stem":469,"children":470,"page":49},"Apps","\u002Fexamples\u002Fapps","4.examples\u002F2.apps",[471],{"title":472,"path":473,"stem":474,"icon":475},"Frigear website app","\u002Fexamples\u002Fapps\u002Ffrigear-nu-website","4.examples\u002F2.apps\u002F1.frigear-nu-website","i-lucide-layout-dashboard",{"title":477,"icon":49,"path":478,"stem":479,"children":480,"page":49},"Tasks","\u002Fexamples\u002Ftasks","4.examples\u002F3.tasks",[481,485,489,494,499],{"title":482,"path":483,"stem":484,"icon":70},"Protect a route","\u002Fexamples\u002Ftasks\u002Fprotect-a-route","4.examples\u002F3.tasks\u002F1.protect-a-route",{"title":486,"path":487,"stem":488,"icon":475},"Add an admin page","\u002Fexamples\u002Ftasks\u002Fadd-an-admin-page","4.examples\u002F3.tasks\u002F2.add-an-admin-page",{"title":490,"path":491,"stem":492,"icon":493},"Sell event tickets","\u002Fexamples\u002Ftasks\u002Fsell-event-tickets","4.examples\u002F3.tasks\u002F3.sell-event-tickets","i-lucide-ticket",{"title":495,"path":496,"stem":497,"icon":498},"Build a form","\u002Fexamples\u002Ftasks\u002Fbuild-a-form","4.examples\u002F3.tasks\u002F4.build-a-form","i-lucide-clipboard-list",{"title":500,"path":501,"stem":502,"icon":503},"Send an email","\u002Fexamples\u002Ftasks\u002Fsend-an-email","4.examples\u002F3.tasks\u002F5.send-an-email","i-lucide-mail",{"title":505,"icon":506,"path":507,"stem":508,"children":509,"page":49},"Contribute","i-lucide-git-pull-request","\u002Fcontribute","5.contribute",[510,513,518,544,549,552,556,571],{"title":173,"path":511,"stem":512,"icon":506},"\u002Fcontribute\u002Foverview","5.contribute\u002F1.overview",{"title":514,"path":515,"stem":516,"icon":517},"Local development","\u002Fcontribute\u002Flocal-development","5.contribute\u002F2.local-development","i-lucide-terminal",{"title":519,"icon":49,"path":520,"stem":521,"children":522,"page":49},"Writing a module","\u002Fcontribute\u002Fwriting-a-module","5.contribute\u002F3.writing-a-module",[523,527,532,536,541],{"title":524,"path":525,"stem":526,"icon":39},"Scaffold a module","\u002Fcontribute\u002Fwriting-a-module\u002Fscaffold","5.contribute\u002F3.writing-a-module\u002F1.scaffold",{"title":528,"path":529,"stem":530,"icon":531},"Setup checklist","\u002Fcontribute\u002Fwriting-a-module\u002Fsetup-checklist","5.contribute\u002F3.writing-a-module\u002F2.setup-checklist","i-lucide-list-checks",{"title":533,"path":534,"stem":535,"icon":44},"Database tables","\u002Fcontribute\u002Fwriting-a-module\u002Fdatabase-tables","5.contribute\u002F3.writing-a-module\u002F3.database-tables",{"title":537,"path":538,"stem":539,"icon":540},"Testing","\u002Fcontribute\u002Fwriting-a-module\u002Ftesting","5.contribute\u002F3.writing-a-module\u002F4.testing","i-lucide-flask-conical",{"title":67,"path":542,"stem":543,"icon":70},"\u002Fcontribute\u002Fwriting-a-module\u002Faccess-control","5.contribute\u002F3.writing-a-module\u002F5.access-control",{"title":545,"path":546,"stem":547,"icon":548},"Publishing","\u002Fcontribute\u002Fpublishing","5.contribute\u002F4.publishing","i-lucide-package-check",{"title":448,"path":550,"stem":551,"icon":6},"\u002Fcontribute\u002Fstarters","5.contribute\u002F5.starters",{"title":553,"path":554,"stem":555,"icon":52},"Documentation","\u002Fcontribute\u002Fdocumentation","5.contribute\u002F6.documentation",{"title":557,"icon":49,"path":558,"stem":559,"children":560,"page":49},"Tooling","\u002Fcontribute\u002Ftooling","5.contribute\u002F7.tooling",[561,566],{"title":562,"path":563,"stem":564,"icon":565},"CLI","\u002Fcontribute\u002Ftooling\u002Fcli","5.contribute\u002F7.tooling\u002F1.cli","i-lucide-square-terminal",{"title":567,"path":568,"stem":569,"icon":570},"ESLint config","\u002Fcontribute\u002Ftooling\u002Feslint-config","5.contribute\u002F7.tooling\u002F2.eslint-config","i-lucide-spell-check",{"title":572,"icon":49,"path":573,"stem":574,"children":575},"Decisions","\u002Fcontribute\u002Fdecisions","5.contribute\u002F8.decisions\u002Findex",[576,578,583],{"title":572,"path":573,"stem":574,"icon":577},"i-lucide-scale",{"title":579,"path":580,"stem":581,"icon":582},"Session lifetimes per OAuth client","\u002Fcontribute\u002Fdecisions\u002Foauth-token-lifetimes","5.contribute\u002F8.decisions\u002F1.oauth-token-lifetimes","i-lucide-timer",{"title":584,"path":585,"stem":586,"icon":70},"One permission model","\u002Fcontribute\u002Fdecisions\u002Fpermission-model","5.contribute\u002F8.decisions\u002F2.permission-model",{"id":588,"title":279,"body":589,"description":1786,"extension":1787,"links":1788,"meta":1789,"navigation":1790,"path":280,"seo":1791,"stem":281,"__hash__":1792},"docs\u002F3.modules\u002F3.features\u002F1.events\u002Findex.md",{"type":590,"value":591,"toc":1772},"minimark",[592,608,619,624,716,720,770,774,1217,1235,1239,1246,1439,1446,1457,1494,1497,1510,1627,1684,1691,1695,1747,1751,1768],[593,594,595,596,600,601,604,605,607],"p",{},"Events lets you publish events and sell tickets to them. Signed-in users pick a ticket on the event page, pay through\nStripe Checkout and show a QR code at the door. ",[597,598,599],"a",{"href":87},"Staff"," set up the events, ticket types,\nadd-ons and capacity in the ",[597,602,603],{"href":87},"admin area",". Use it when your app sells or registers places at\ndated events. For recurring memberships, use ",[597,606,258],{"href":259}," instead.",[593,609,610,611,615,616,618],{},"The package is ",[612,613,614],"code",{},"@frigear-nu\u002Fevents",". Money goes through ",[597,617,254],{"href":255},".",[620,621,623],"h2",{"id":622},"what-you-get","What you get",[625,626,627,645,661,683,698,708],"ul",{},[628,629,630,633,634,637,638,641,642,618],"li",{},[631,632,101],"strong",{}," (opt-in): the event list at ",[612,635,636],{},"\u002Fevents",", an event page at ",[612,639,640],{},"\u002Fevents\u002F:slug",", and the signed-in user's tickets\nat ",[612,643,644],{},"\u002Faccount\u002Ftickets",[628,646,647,650,651,653,654,657,658,660],{},[631,648,649],{},"Admin area"," (opt-in, with ",[597,652,217],{"href":351},"): an event list at ",[612,655,656],{},"\u002Fadmin\u002Fevents",", and an event page\nwith Details, Tickets and Attendees tabs. With ",[597,659,358],{"href":359},", upcoming events also appear on the\nadmin dashboard.",[628,662,663,666,667,670,671,674,678,679,682],{},[631,664,665],{},"Server routes"," (on by default): browsing events, buying and paying for tickets, and a staff API for events,\nattendees, refunds and check-in. The staff API is guarded by the ",[612,668,669],{},"events:manage"," and ",[612,672,673],{},"events:refund",[597,675,677],{"href":676},"#permissions","permissions",", which the ",[612,680,681],{},"admin"," role holds.",[628,684,685,687,688,691,692,670,695,618],{},[631,686,344],{}," (on by default): ",[612,689,690],{},"useEvents",", ",[612,693,694],{},"useEvent",[612,696,697],{},"useMyTickets",[628,699,700,703,704,707],{},[631,701,702],{},"Emails."," None built in. Send a confirmation from the ",[612,705,706],{},"events:ticket:paid"," hook, which runs when a ticket is paid.",[628,709,710,713,714,618],{},[631,711,712],{},"MCP tools"," (opt-in): browse events and tickets, and manage events as staff, through ",[597,715,317],{"href":318},[717,718],"module-runtime",{":client":719,":server":719},"true",[721,722,723,726,727,691,729,731,732,691,734,691,736,731,738,740,741,726,744,747,748,751,752,726,755,757,758,760,761,763,764,766,767,769],"note",{},[631,724,725],{},"Installed for you:"," ",[597,728,250],{"href":251},[597,730,254],{"href":255},",\n",[597,733,168],{"href":169},[597,735,191],{"href":192},[597,737,317],{"href":318},[597,739,326],{"href":327}," and Module Kit.\n",[631,742,743],{},"You add:",[612,745,746],{},"@nuxthub\u002Fcore"," (Events turns on its key-value storage), and ",[612,749,750],{},"@nuxt\u002Fui"," for the pages.\n",[631,753,754],{},"Optional:",[597,756,217],{"href":351}," for the admin pages, ",[597,759,258],{"href":259}," as\nthe membership provider, ",[597,762,358],{"href":359}," for the event page tabs, ",[597,765,354],{"href":355},"\nfor menu items, and ",[597,768,195],{"href":196}," for the navigation around the tickets page.",[620,771,773],{"id":772},"quick-setup","Quick setup",[775,776,777,782,810,814,975,979,983,1000,1004,1012,1015,1027,1031,1043,1054,1210],"steps",{},[778,779,781],"h3",{"id":780},"install-events","Install Events",[783,784,789],"pre",{"className":785,"code":786,"language":787,"meta":788,"style":788},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @frigear-nu\u002Fevents @nuxthub\u002Fcore\n","bash","",[612,790,791],{"__ignoreMap":788},[792,793,796,800,804,807],"span",{"class":794,"line":795},"line",1,[792,797,799],{"class":798},"sBMFI","pnpm",[792,801,803],{"class":802},"sfazB"," add",[792,805,806],{"class":802}," @frigear-nu\u002Fevents",[792,808,809],{"class":802}," @nuxthub\u002Fcore\n",[778,811,813],{"id":812},"add-it-to-nuxtconfigts","Add it to nuxt.config.ts",[783,815,820],{"className":816,"code":817,"filename":818,"language":819,"meta":788,"style":788},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore', '@frigear-nu\u002Fevents'],\n  events: {\n    settings: {\n      pages: { events: true, event: true, tickets: true },\n      reservationMinutes: 30,\n    },\n  },\n})\n","nuxt.config.ts","ts",[612,821,822,843,878,889,899,940,954,960,966],{"__ignoreMap":788},[792,823,824,828,831,835,839],{"class":794,"line":795},[792,825,827],{"class":826},"s7zQu","export",[792,829,830],{"class":826}," default",[792,832,834],{"class":833},"s2Zo4"," defineNuxtConfig",[792,836,838],{"class":837},"sTEyZ","(",[792,840,842],{"class":841},"sMK4o","{\n",[792,844,846,850,853,856,859,861,863,866,869,871,873,876],{"class":794,"line":845},2,[792,847,849],{"class":848},"swJcz","  modules",[792,851,852],{"class":841},":",[792,854,855],{"class":837}," [",[792,857,858],{"class":841},"'",[792,860,746],{"class":802},[792,862,858],{"class":841},[792,864,865],{"class":841},",",[792,867,868],{"class":841}," '",[792,870,614],{"class":802},[792,872,858],{"class":841},[792,874,875],{"class":837},"]",[792,877,731],{"class":841},[792,879,881,884,886],{"class":794,"line":880},3,[792,882,883],{"class":848},"  events",[792,885,852],{"class":841},[792,887,888],{"class":841}," {\n",[792,890,892,895,897],{"class":794,"line":891},4,[792,893,894],{"class":848},"    settings",[792,896,852],{"class":841},[792,898,888],{"class":841},[792,900,902,905,907,910,913,915,919,921,924,926,928,930,933,935,937],{"class":794,"line":901},5,[792,903,904],{"class":848},"      pages",[792,906,852],{"class":841},[792,908,909],{"class":841}," {",[792,911,912],{"class":848}," events",[792,914,852],{"class":841},[792,916,918],{"class":917},"sfNiH"," true",[792,920,865],{"class":841},[792,922,923],{"class":848}," event",[792,925,852],{"class":841},[792,927,918],{"class":917},[792,929,865],{"class":841},[792,931,932],{"class":848}," tickets",[792,934,852],{"class":841},[792,936,918],{"class":917},[792,938,939],{"class":841}," },\n",[792,941,943,946,948,952],{"class":794,"line":942},6,[792,944,945],{"class":848},"      reservationMinutes",[792,947,852],{"class":841},[792,949,951],{"class":950},"sbssI"," 30",[792,953,731],{"class":841},[792,955,957],{"class":794,"line":956},7,[792,958,959],{"class":841},"    },\n",[792,961,963],{"class":794,"line":962},8,[792,964,965],{"class":841},"  },\n",[792,967,969,972],{"class":794,"line":968},9,[792,970,971],{"class":841},"}",[792,973,974],{"class":837},")\n",[778,976,978],{"id":977},"set-the-stripe-keys","Set the Stripe keys",[980,981,982],"caution",{},"Use Stripe's test keys outside production, and live keys only in production. Keep the secret key and the webhook secret\nout of the repository.",[593,984,985,986,691,989,992,993,996,997,618],{},"A ticket becomes paid only from Stripe's verified webhook. Set ",[612,987,988],{},"NUXT_STRIPE_SECRET_KEY",[612,990,991],{},"NUXT_STRIPE_WEBHOOK_SECRET","\nand ",[612,994,995],{},"NUXT_PUBLIC_STRIPE_PUBLISHABLE_KEY",", and point the webhook at your app, as in\n",[597,998,978],{"href":999},"\u002Fexamples\u002Ftasks\u002Fsell-event-tickets#_2-set-the-stripe-keys",[778,1001,1003],{"id":1002},"generate-the-migration","Generate the migration",[1005,1006,1007,1008,1011],"warning",{},"Without a ",[597,1009,1010],{"href":87},"migration"," the event tables do not exist, and every write to them fails.",[593,1013,1014],{},"Events, Payments and Stripe add tables. Generate the migration and commit it:",[783,1016,1018],{"className":785,"code":1017,"language":787,"meta":788,"style":788},"pnpm db:generate\n",[612,1019,1020],{"__ignoreMap":788},[792,1021,1022,1024],{"class":794,"line":795},[792,1023,799],{"class":798},[792,1025,1026],{"class":802}," db:generate\n",[778,1028,1030],{"id":1029},"decide-who-manages-events","Decide who manages events",[1005,1032,1033,1034,1036,1037,1039,1040,1042],{},"Staff routes check permissions through ",[597,1035,199],{"href":200},". Without a role that holds\n",[612,1038,669],{},", nobody can manage events. The ",[612,1041,681],{}," role holds it by default.",[593,1044,1045,1046,1049,1050,1053],{},"Give the permissions to the people who run events with a role of your own, or turn on ",[612,1047,1048],{},"settings.roles"," for the ready-made\n",[612,1051,1052],{},"eventmanager"," role:",[783,1055,1057],{"className":816,"code":1056,"filename":818,"language":819,"meta":788,"style":788},"export default defineNuxtConfig({\n  events: { settings: { roles: true } }, \u002F\u002F ships the `eventmanager` role\n  authorization: {\n    roles: {\n      \u002F\u002F Roles are built from permissions. `events:*` covers events:manage and events:refund, but not events:pii.\n      organiser: { label: 'Organiser', grant: ['events:*', 'events:pii'], inherit: ['user'] },\n    },\n  },\n})\n",[612,1058,1059,1071,1103,1112,1121,1126,1196,1200,1204],{"__ignoreMap":788},[792,1060,1061,1063,1065,1067,1069],{"class":794,"line":795},[792,1062,827],{"class":826},[792,1064,830],{"class":826},[792,1066,834],{"class":833},[792,1068,838],{"class":837},[792,1070,842],{"class":841},[792,1072,1073,1075,1077,1079,1082,1084,1086,1089,1091,1093,1096,1099],{"class":794,"line":845},[792,1074,883],{"class":848},[792,1076,852],{"class":841},[792,1078,909],{"class":841},[792,1080,1081],{"class":848}," settings",[792,1083,852],{"class":841},[792,1085,909],{"class":841},[792,1087,1088],{"class":848}," roles",[792,1090,852],{"class":841},[792,1092,918],{"class":917},[792,1094,1095],{"class":841}," }",[792,1097,1098],{"class":841}," },",[792,1100,1102],{"class":1101},"sHwdD"," \u002F\u002F ships the `eventmanager` role\n",[792,1104,1105,1108,1110],{"class":794,"line":880},[792,1106,1107],{"class":848},"  authorization",[792,1109,852],{"class":841},[792,1111,888],{"class":841},[792,1113,1114,1117,1119],{"class":794,"line":891},[792,1115,1116],{"class":848},"    roles",[792,1118,852],{"class":841},[792,1120,888],{"class":841},[792,1122,1123],{"class":794,"line":901},[792,1124,1125],{"class":1101},"      \u002F\u002F Roles are built from permissions. `events:*` covers events:manage and events:refund, but not events:pii.\n",[792,1127,1128,1131,1133,1135,1138,1140,1142,1145,1147,1149,1152,1154,1156,1158,1161,1163,1165,1167,1170,1172,1174,1176,1179,1181,1183,1185,1188,1190,1193],{"class":794,"line":942},[792,1129,1130],{"class":848},"      organiser",[792,1132,852],{"class":841},[792,1134,909],{"class":841},[792,1136,1137],{"class":848}," label",[792,1139,852],{"class":841},[792,1141,868],{"class":841},[792,1143,1144],{"class":802},"Organiser",[792,1146,858],{"class":841},[792,1148,865],{"class":841},[792,1150,1151],{"class":848}," grant",[792,1153,852],{"class":841},[792,1155,855],{"class":837},[792,1157,858],{"class":841},[792,1159,1160],{"class":802},"events:*",[792,1162,858],{"class":841},[792,1164,865],{"class":841},[792,1166,868],{"class":841},[792,1168,1169],{"class":802},"events:pii",[792,1171,858],{"class":841},[792,1173,875],{"class":837},[792,1175,865],{"class":841},[792,1177,1178],{"class":848}," inherit",[792,1180,852],{"class":841},[792,1182,855],{"class":837},[792,1184,858],{"class":841},[792,1186,1187],{"class":802},"user",[792,1189,858],{"class":841},[792,1191,1192],{"class":837},"] ",[792,1194,1195],{"class":841},"},\n",[792,1197,1198],{"class":794,"line":956},[792,1199,959],{"class":841},[792,1201,1202],{"class":794,"line":962},[792,1203,965],{"class":841},[792,1205,1206,1208],{"class":794,"line":968},[792,1207,971],{"class":841},[792,1209,974],{"class":837},[593,1211,1212,1216],{},[597,1213,1215],{"href":1214},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fserver#let-staff-manage-events","Let staff manage events"," shows how a route checks them.",[1218,1219,1222,1225,1226,1228,1229,1231,1232,618],"callout",{"color":1220,"icon":1221},"success","i-lucide-check",[631,1223,1224],{},"What you should see:"," after staff publish an event, it appears at ",[612,1227,636],{},". A ticket bought there redirects to\nStripe Checkout, and once paid it shows on ",[612,1230,644],{}," as ",[612,1233,1234],{},"paid",[620,1236,1238],{"id":1237},"options","Options",[593,1240,1241,1242,1245],{},"Options go under the ",[612,1243,1244],{},"events"," key.",[1247,1248,1249,1268],"table",{},[1250,1251,1252],"thead",{},[1253,1254,1255,1259,1262,1265],"tr",{},[1256,1257,1258],"th",{},"Option",[1256,1260,1261],{},"Type",[1256,1263,1264],{},"Default",[1256,1266,1267],{},"Purpose",[1269,1270,1271,1292,1314,1335,1358,1378,1398,1418],"tbody",{},[1253,1272,1273,1279,1284,1289],{},[1274,1275,1276],"td",{},[612,1277,1278],{},"settings.reservationMinutes",[1274,1280,1281],{},[612,1282,1283],{},"number",[1274,1285,1286],{},[612,1287,1288],{},"30",[1274,1290,1291],{},"How long an unpaid ticket keeps its seat.",[1253,1293,1294,1298,1303,1308],{},[1274,1295,1296],{},[612,1297,1048],{},[1274,1299,1300],{},[612,1301,1302],{},"boolean",[1274,1304,1305],{},[612,1306,1307],{},"false",[1274,1309,1310,1311,1313],{},"Ships the ",[612,1312,1052],{}," role.",[1253,1315,1316,1321,1325,1329],{},[1274,1317,1318],{},[612,1319,1320],{},"settings.mcp",[1274,1322,1323],{},[612,1324,1302],{},[1274,1326,1327],{},[612,1328,1307],{},[1274,1330,1331,1332,618],{},"Adds the module's ",[597,1333,712],{"href":1334},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fserver#mcp-tools",[1253,1336,1337,1342,1347,1350],{},[1274,1338,1339],{},[612,1340,1341],{},"settings.pages.events",[1274,1343,1344],{},[612,1345,1346],{},"string | boolean",[1274,1348,1349],{},"off",[1274,1351,1352,1353,1355,1356,618],{},"The event list. ",[612,1354,719],{}," is ",[612,1357,636],{},[1253,1359,1360,1365,1369,1371],{},[1274,1361,1362],{},[612,1363,1364],{},"settings.pages.event",[1274,1366,1367],{},[612,1368,1346],{},[1274,1370,1349],{},[1274,1372,1373,1374,1355,1376,618],{},"The event page. ",[612,1375,719],{},[612,1377,640],{},[1253,1379,1380,1385,1389,1391],{},[1274,1381,1382],{},[612,1383,1384],{},"settings.pages.tickets",[1274,1386,1387],{},[612,1388,1346],{},[1274,1390,1349],{},[1274,1392,1393,1394,1355,1396,618],{},"The signed-in user's tickets. ",[612,1395,719],{},[612,1397,644],{},[1253,1399,1400,1405,1409,1411],{},[1274,1401,1402],{},[612,1403,1404],{},"settings.pages.admin",[1274,1406,1407],{},[612,1408,1346],{},[1274,1410,1349],{},[1274,1412,1413,1414,1355,1416,618],{},"The staff event list. ",[612,1415,719],{},[612,1417,656],{},[1253,1419,1420,1425,1429,1431],{},[1274,1421,1422],{},[612,1423,1424],{},"settings.pages.adminEvent",[1274,1426,1427],{},[612,1428,1346],{},[1274,1430,1349],{},[1274,1432,1433,1434,1355,1436,618],{},"The staff event page. ",[612,1435,719],{},[612,1437,1438],{},"\u002Fadmin\u002Fevents\u002F:id",[593,1440,1441,1445],{},[631,1442,1443],{},[612,1444,1278],{}," is also the lifetime of the Stripe Checkout session.",[593,1447,1448,1453,1454,618],{},[631,1449,1450],{},[612,1451,1452],{},"settings.pages.*"," paths keep the parameters of the default, such as ",[612,1455,1456],{},":slug",[593,1458,1459,1463,1464,726,1466,1469,1470,691,1472,670,1474,1476,1477,1479,1480,1482,1483,1486,1487,670,1490,1493],{},[631,1460,1461,618],{},[612,1462,1048],{}," Registers the ",[612,1465,1052],{},[597,1467,1468],{"href":206},"role","\nwith ",[612,1471,669],{},[612,1473,673],{},[612,1475,1169],{},", and also puts those three into ",[612,1478,681],{},". Without it, only ",[612,1481,681],{},"\nholds them, unless your app grants them to a role of its own. Your own ",[612,1484,1485],{},"authorization.roles.eventmanager"," merges into\nthe module's role: your label wins, and ",[612,1488,1489],{},"grant",[612,1491,1492],{},"inherit"," are added together.",[620,1495,1496],{"id":677},"Permissions",[593,1498,1499,1500,1502,1503,1506,1507,618],{},"Events registers these permissions with ",[597,1501,199],{"href":200},". A staff route calls\n",[612,1504,1505],{},"authorize(event, 'events:manage')","; self-service routes call ",[612,1508,1509],{},"authorize(event, 'tickets:write')",[1247,1511,1512,1528],{},[1250,1513,1514],{},[1253,1515,1516,1519,1522,1525],{},[1256,1517,1518],{},"Permission",[1256,1520,1521],{},"Flags",[1256,1523,1524],{},"Held by default",[1256,1526,1527],{},"What it allows",[1269,1529,1530,1551,1569,1597,1613],{},[1253,1531,1532,1536,1538,1548],{},[1274,1533,1534],{},[612,1535,669],{},[1274,1537],{},[1274,1539,1540,1542,1543,1545,1546],{},[612,1541,681],{},", and ",[612,1544,1052],{}," with ",[612,1547,1048],{},[1274,1549,1550],{},"Create and edit events, ticket types and add-ons, and check tickets in.",[1253,1552,1553,1557,1560,1566],{},[1274,1554,1555],{},[612,1556,673],{},[1274,1558,1559],{},"sessionOnly",[1274,1561,1562,1542,1564],{},[612,1563,681],{},[612,1565,1052],{},[1274,1567,1568],{},"Refund a paid ticket. Cookie sessions only.",[1253,1570,1571,1575,1578,1584],{},[1274,1572,1573],{},[612,1574,1169],{},[1274,1576,1577],{},"sensitive",[1274,1579,1580,1542,1582],{},[612,1581,681],{},[612,1583,1052],{},[1274,1585,1586,1587,1589,1590,1593,1594,1596],{},"Sensitive (MCP only): gates attendee names and emails in MCP tool output. The admin HTTP API, attendee lists included, is gated by ",[612,1588,669],{},". A ",[612,1591,1592],{},"*"," or ",[612,1595,1160],{}," grant never covers it: grant it by name.",[1253,1598,1599,1604,1607,1610],{},[1274,1600,1601],{},[612,1602,1603],{},"tickets:read",[1274,1605,1606],{},"implicit",[1274,1608,1609],{},"every signed-in user",[1274,1611,1612],{},"Read your own tickets and event details.",[1253,1614,1615,1620,1622,1624],{},[1274,1616,1617],{},[612,1618,1619],{},"tickets:write",[1274,1621,1606],{},[1274,1623,1609],{},[1274,1625,1626],{},"Buy tickets and pay for them.",[625,1628,1629,1643,1654,1666],{},[628,1630,1631,726,1634,1637,1638,670,1640,1642],{},[631,1632,1633],{},"Scope:",[612,1635,1636],{},"tickets"," (label \"Your tickets\") expands to ",[612,1639,1603],{},[612,1641,1619],{},". A token or OAuth client\nwith it can read and buy the user's own tickets, and is refused every staff route.",[628,1644,1645,726,1648,1650,1651,618],{},[631,1646,1647],{},"Roles:",[612,1649,1052],{},", shipped only with ",[612,1652,1653],{},"settings.roles: true",[628,1655,1656,1659,1660,1665],{},[631,1657,1658],{},"Requirements and policies:"," none. The module registers no requirement and no policy of its own. Add one with\n",[597,1661,1662],{"href":210},[612,1663,1664],{},"definePolicy"," when, say, an organiser may only edit their own events.",[628,1667,1668,1674,1675,1677,1678,1680,1681,1683],{},[631,1669,1670,1671,1673],{},"Why ",[612,1672,673],{}," is separate:"," money moves, so it is session only, and a token can never refund. A role that\ngrants ",[612,1676,669],{}," by name must grant ",[612,1679,673],{}," too (",[612,1682,1160],{}," covers both).",[593,1685,1686,1687,1690],{},"See ",[597,1688,1689],{"href":206},"roles and requirements"," for how roles are built and merged.",[620,1692,1694],{"id":1693},"module-pages","Module pages",[1247,1696,1697,1710],{},[1250,1698,1699],{},[1253,1700,1701,1704,1707],{},[1256,1702,1703],{},"Page",[1256,1705,1706],{},"What it covers",[1256,1708,1709],{},"For",[1269,1711,1712,1724,1735],{},[1253,1713,1714,1718,1721],{},[1274,1715,1716],{},[597,1717,175],{"href":285},[1274,1719,1720],{},"How a purchase is checked, sale schedules, membership providers, staff access and MCP tools.",[1274,1722,1723],{},"App developers and module authors",[1253,1725,1726,1730,1733],{},[1274,1727,1728],{},[597,1729,267],{"href":288},[1274,1731,1732],{},"Pages, composables, components and extending the admin event page.",[1274,1734,1723],{},[1253,1736,1737,1741,1744],{},[1274,1738,1739],{},[597,1740,179],{"href":291},[1274,1742,1743],{},"Hooks, routes, tables and translations.",[1274,1745,1746],{},"App developers",[620,1748,1750],{"id":1749},"next-steps","Next steps",[625,1752,1753,1758,1763],{},[628,1754,1755,1757],{},[597,1756,490],{"href":491}," – build the whole flow, from a new event to a paid ticket.",[628,1759,1760,1762],{},[597,1761,146],{"href":147}," – create the keys and the webhook that mark tickets as paid.",[628,1764,1765,1767],{},[597,1766,175],{"href":285}," – limit tickets to members, or connect your own membership list.",[1769,1770,1771],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":788,"searchDepth":845,"depth":845,"links":1773},[1774,1775,1782,1783,1784,1785],{"id":622,"depth":845,"text":623},{"id":772,"depth":845,"text":773,"children":1776},[1777,1778,1779,1780,1781],{"id":780,"depth":880,"text":781},{"id":812,"depth":880,"text":813},{"id":977,"depth":880,"text":978},{"id":1002,"depth":880,"text":1003},{"id":1029,"depth":880,"text":1030},{"id":1237,"depth":845,"text":1238},{"id":677,"depth":845,"text":1496},{"id":1693,"depth":845,"text":1694},{"id":1749,"depth":845,"text":1750},"Sell tickets to your events, free or paid through Stripe, and check people in at the door with a QR code.","md",null,{},{"title":173},{"title":279,"description":1786},"pdE6JfkhdqZopJe9Qm0Q8rfXB9OVF8ZkgCA_I1FXXTk",[1794,1796],{"title":179,"path":271,"stem":272,"description":1795,"children":-1},"The hooks, HTTP routes and DTOs, the subscriptions table and the translation keys of Subscriptions.",{"title":175,"path":285,"stem":286,"description":1797,"children":-1},"How Events checks a ticket purchase, and how to add sale seasons, membership rules, staff access and MCP tools.",1794503149691]