[{"data":1,"prerenderedAt":4247},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:51EKnArY_ZdBYZuaope-7c9jaqEWyn9L96c6O1YgXhI":842,"content-page-surround:docs:51EKnArY_ZdBYZuaope-7c9jaqEWyn9L96c6O1YgXhI":4235,"i-logos:typescript-icon":4240,"i-lucide:clipboard":4244},[4,41,110,540,643,708,772,837],{"title":5,"page":6,"canonicalKey":7,"locale":8,"id":9,"draft":6,"icon":10,"sidebar":11,"children":12},"Learn",false,"1","en","content:docs:1.overview:.navigation.yml","i-lucide-book-open","section",[13,20,27,34],{"title":14,"id":15,"canonicalKey":16,"locale":8,"draft":6,"navigation":17,"icon":18,"path":19},"Better Convex Nuxt","content:docs:1.overview:1.introduction.md","1\u002F1",{"icon":18},"i-lucide-orbit","\u002Fdocs\u002Foverview\u002Fintroduction",{"title":21,"id":22,"canonicalKey":23,"locale":8,"draft":6,"navigation":24,"icon":25,"path":26},"Who it is for","content:docs:1.overview:2.who-it-is-for.md","1\u002F2",{"icon":25},"i-lucide-users","\u002Fdocs\u002Foverview\u002Fwho-it-is-for",{"title":28,"id":29,"canonicalKey":30,"locale":8,"draft":6,"navigation":31,"icon":32,"path":33},"Limitations and trade-offs","content:docs:1.overview:3.limitations.md","1\u002F3",{"icon":32},"i-lucide-triangle-alert","\u002Fdocs\u002Foverview\u002Flimitations",{"title":35,"id":36,"canonicalKey":37,"locale":8,"draft":6,"navigation":38,"icon":39,"path":40},"Compare Nuxt integrations","content:docs:1.overview:4.comparison.md","1\u002F4",{"icon":39},"i-lucide-scale","\u002Fdocs\u002Foverview\u002Fcomparison",{"title":42,"page":6,"canonicalKey":43,"locale":8,"id":44,"draft":6,"icon":45,"children":46},"Get started","2","content:docs:2.get-started:.navigation.yml","i-lucide-rocket",[47,54,61,68,75,82,89,96,103],{"title":48,"id":49,"canonicalKey":50,"locale":8,"draft":6,"navigation":51,"icon":52,"path":53},"Choose your path","content:docs:2.get-started:1.choose-your-path.md","2\u002F1",{"icon":52},"i-lucide-signpost","\u002Fdocs\u002Fget-started\u002Fchoose-your-path",{"title":55,"id":56,"canonicalKey":57,"locale":8,"draft":6,"navigation":58,"icon":59,"path":60},"Installation","content:docs:2.get-started:2.installation.md","2\u002F2",{"icon":59},"i-lucide-download","\u002Fdocs\u002Fget-started\u002Finstallation",{"title":62,"id":63,"canonicalKey":64,"locale":8,"draft":6,"navigation":65,"icon":66,"path":67},"First real-time page","content:docs:2.get-started:3.first-realtime-page.md","2\u002F3",{"icon":66},"i-lucide-radio","\u002Fdocs\u002Fget-started\u002Ffirst-realtime-page",{"title":69,"id":70,"canonicalKey":71,"locale":8,"draft":6,"navigation":72,"icon":73,"path":74},"Complete and delete","content:docs:2.get-started:4.complete-and-delete.md","2\u002F4",{"icon":73},"i-lucide-square-check","\u002Fdocs\u002Fget-started\u002Fcomplete-and-delete",{"title":76,"id":77,"canonicalKey":78,"locale":8,"draft":6,"navigation":79,"icon":80,"path":81},"Add authentication","content:docs:2.get-started:5.add-authentication.md","2\u002F5",{"icon":80},"i-lucide-log-in","\u002Fdocs\u002Fget-started\u002Fadd-authentication",{"title":83,"id":84,"canonicalKey":85,"locale":8,"draft":6,"navigation":86,"icon":87,"path":88},"Protect data","content:docs:2.get-started:6.protect-data.md","2\u002F6",{"icon":87},"i-lucide-shield-check","\u002Fdocs\u002Fget-started\u002Fprotect-data",{"title":90,"id":91,"canonicalKey":92,"locale":8,"draft":6,"navigation":93,"icon":94,"path":95},"Project structure","content:docs:2.get-started:7.project-structure.md","2\u002F7",{"icon":94},"i-lucide-folder-tree","\u002Fdocs\u002Fget-started\u002Fproject-structure",{"title":97,"id":98,"canonicalKey":99,"locale":8,"draft":6,"navigation":100,"icon":101,"path":102},"Next steps","content:docs:2.get-started:8.next-steps.md","2\u002F8",{"icon":101},"i-lucide-arrow-right","\u002Fdocs\u002Fget-started\u002Fnext-steps",{"title":104,"id":105,"canonicalKey":106,"locale":8,"draft":6,"navigation":107,"icon":108,"path":109},"Plain Vue and Vite","content:docs:2.get-started:9.plain-vue.md","2\u002F9",{"icon":108},"i-lucide-panels-top-left","\u002Fdocs\u002Fget-started\u002Fplain-vue",{"title":111,"page":6,"canonicalKey":112,"locale":8,"id":113,"draft":6,"icon":114,"sidebar":11,"children":115},"Build","3","content:docs:3.build:.navigation.yml","i-lucide-blocks",[116,154,200,321,353,385,431,481],{"title":117,"page":6,"canonicalKey":118,"locale":8,"children":119},"Queries","3\u002F1",[120,126,133,140,147],{"title":117,"id":121,"canonicalKey":122,"locale":8,"draft":6,"navigation":123,"icon":124,"path":125},"content:docs:3.build:1.queries:1.queries.md","3\u002F1\u002F1",{"icon":124},"i-lucide-database","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fqueries",{"title":127,"id":128,"canonicalKey":129,"locale":8,"draft":6,"navigation":130,"icon":131,"path":132},"Reactive arguments","content:docs:3.build:1.queries:2.reactive-arguments.md","3\u002F1\u002F2",{"icon":131},"i-lucide-sliders-horizontal","\u002Fdocs\u002Fbuild\u002Fqueries\u002Freactive-arguments",{"title":134,"id":135,"canonicalKey":136,"locale":8,"draft":6,"navigation":137,"icon":138,"path":139},"Loading and stale data","content:docs:3.build:1.queries:3.loading-and-stale-data.md","3\u002F1\u002F3",{"icon":138},"i-lucide-loader-circle","\u002Fdocs\u002Fbuild\u002Fqueries\u002Floading-and-stale-data",{"title":141,"id":142,"canonicalKey":143,"locale":8,"draft":6,"navigation":144,"icon":145,"path":146},"Query execution options","content:docs:3.build:1.queries:4.ssr-options.md","3\u002F1\u002F4",{"icon":145},"i-lucide-server-cog","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fssr-options",{"title":148,"id":149,"canonicalKey":150,"locale":8,"draft":6,"navigation":151,"icon":152,"path":153},"Pagination","content:docs:3.build:1.queries:6.pagination.md","3\u002F1\u002F6",{"icon":152},"i-lucide-list-plus","\u002Fdocs\u002Fbuild\u002Fqueries\u002Fpagination",{"title":155,"page":6,"canonicalKey":156,"locale":8,"children":157},"Write Data","3\u002F2",[158,165,172,179,186,193],{"title":159,"id":160,"canonicalKey":161,"locale":8,"draft":6,"navigation":162,"icon":163,"path":164},"Mutations","content:docs:3.build:2.write-data:1.mutations.md","3\u002F2\u002F1",{"icon":163},"i-lucide-square-pen","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmutations",{"title":166,"id":167,"canonicalKey":168,"locale":8,"draft":6,"navigation":169,"icon":170,"path":171},"Actions","content:docs:3.build:2.write-data:2.actions.md","3\u002F2\u002F2",{"icon":170},"i-lucide-zap","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Factions",{"title":173,"id":174,"canonicalKey":175,"locale":8,"draft":6,"navigation":176,"icon":177,"path":178},"Optimistic updates","content:docs:3.build:2.write-data:3.optimistic-updates.md","3\u002F2\u002F3",{"icon":177},"i-lucide-gauge","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Foptimistic-updates",{"title":180,"id":181,"canonicalKey":182,"locale":8,"draft":6,"navigation":183,"icon":184,"path":185},"Concurrent operations","content:docs:3.build:2.write-data:4.concurrent-operations.md","3\u002F2\u002F4",{"icon":184},"i-lucide-git-fork","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fconcurrent-operations",{"title":187,"id":188,"canonicalKey":189,"locale":8,"draft":6,"navigation":190,"icon":191,"path":192},"Form submissions","content:docs:3.build:2.write-data:5.forms.md","3\u002F2\u002F5",{"icon":191},"i-lucide-list-checks","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fforms",{"title":194,"id":195,"canonicalKey":196,"locale":8,"draft":6,"navigation":197,"icon":198,"path":199},"Multi-step operations","content:docs:3.build:2.write-data:6.multi-step-operations.md","3\u002F2\u002F6",{"icon":198},"i-lucide-list-ordered","\u002Fdocs\u002Fbuild\u002Fwrite-data\u002Fmulti-step-operations",{"title":201,"page":6,"canonicalKey":202,"locale":8,"children":203},"Authentication","3\u002F3",[204,210,217,224,230,237,244,251,258,265,272,279,286,293,300,307,314],{"title":201,"id":205,"canonicalKey":206,"locale":8,"draft":6,"navigation":207,"icon":208,"path":209},"content:docs:3.build:3.authentication:1.overview.md","3\u002F3\u002F1",{"icon":208},"i-lucide-shield","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Foverview",{"title":211,"id":212,"canonicalKey":213,"locale":8,"draft":6,"navigation":214,"icon":215,"path":216},"Better Auth setup","content:docs:3.build:3.authentication:2.better-auth-setup.md","3\u002F3\u002F2",{"icon":215},"i-lucide-settings-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-setup",{"title":218,"id":219,"canonicalKey":220,"locale":8,"draft":6,"navigation":221,"icon":222,"path":223},"Auth state and user data","content:docs:3.build:3.authentication:3.auth-state-and-user.md","3\u002F3\u002F3",{"icon":222},"i-lucide-user-round","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fauth-state-and-user",{"title":225,"id":226,"canonicalKey":227,"locale":8,"draft":6,"navigation":228,"icon":80,"path":229},"Sign in and sign out","content:docs:3.build:3.authentication:4.sign-in-and-sign-out.md","3\u002F3\u002F4",{"icon":80},"\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsign-in-and-sign-out",{"title":231,"id":232,"canonicalKey":233,"locale":8,"draft":6,"navigation":234,"icon":235,"path":236},"Route protection","content:docs:3.build:3.authentication:5.route-protection.md","3\u002F3\u002F5",{"icon":235},"i-lucide-route","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Froute-protection",{"title":238,"id":239,"canonicalKey":240,"locale":8,"draft":6,"navigation":241,"icon":242,"path":243},"Backend authorization","content:docs:3.build:3.authentication:6.backend-authorization.md","3\u002F3\u002F6",{"icon":242},"i-lucide-lock-keyhole","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbackend-authorization",{"title":245,"id":246,"canonicalKey":247,"locale":8,"draft":6,"navigation":248,"icon":249,"path":250},"Better Auth plugins","content:docs:3.build:3.authentication:7.better-auth-plugins.md","3\u002F3\u002F7",{"icon":249},"i-lucide-plug","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugins",{"title":252,"id":253,"canonicalKey":254,"locale":8,"draft":6,"navigation":255,"icon":256,"path":257},"Custom user fields","content:docs:3.build:3.authentication:8.custom-user-fields.md","3\u002F3\u002F8",{"icon":256},"i-lucide-user-cog","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcustom-user-fields",{"title":259,"id":260,"canonicalKey":261,"locale":8,"draft":6,"navigation":262,"icon":263,"path":264},"User synchronization","content:docs:3.build:3.authentication:9.user-synchronization.md","3\u002F3\u002F9",{"icon":263},"i-lucide-refresh-ccw","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fuser-synchronization",{"title":266,"id":267,"canonicalKey":268,"locale":8,"draft":6,"navigation":269,"icon":270,"path":271},"Delegated OAuth and MCP","content:docs:3.build:3.authentication:10.delegated-oauth-and-mcp.md","3\u002F3\u002F10",{"icon":270},"i-lucide-bot","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fdelegated-oauth-and-mcp",{"title":273,"id":274,"canonicalKey":275,"locale":8,"draft":6,"navigation":276,"icon":277,"path":278},"Transactional auth email","content:docs:3.build:3.authentication:11.transactional-email.md","3\u002F3\u002F11",{"icon":277},"i-lucide-mail","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Ftransactional-email",{"title":280,"id":281,"canonicalKey":282,"locale":8,"draft":6,"navigation":283,"icon":284,"path":285},"Social sign-in","content:docs:3.build:3.authentication:12.social-sign-in.md","3\u002F3\u002F12",{"icon":284},"i-lucide-github","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fsocial-sign-in",{"title":287,"id":288,"canonicalKey":289,"locale":8,"draft":6,"navigation":290,"icon":291,"path":292},"Better Auth plugin support","content:docs:3.build:3.authentication:13.better-auth-plugin-support.md","3\u002F3\u002F13",{"icon":291},"i-lucide-puzzle","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fbetter-auth-plugin-support",{"title":294,"id":295,"canonicalKey":296,"locale":8,"draft":6,"navigation":297,"icon":298,"path":299},"Cacheable public pages","content:docs:3.build:3.authentication:14.cacheable-public-pages.md","3\u002F3\u002F14",{"icon":298},"i-lucide-globe","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcacheable-public-pages",{"title":301,"id":302,"canonicalKey":303,"locale":8,"draft":6,"navigation":304,"icon":305,"path":306},"Several sites on one deployment","content:docs:3.build:3.authentication:15.multiple-site-origins.md","3\u002F3\u002F15",{"icon":305},"i-lucide-network","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fmultiple-site-origins",{"title":308,"id":309,"canonicalKey":310,"locale":8,"draft":6,"navigation":311,"icon":312,"path":313},"Account deletion","content:docs:3.build:3.authentication:16.account-deletion.md","3\u002F3\u002F16",{"icon":312},"i-lucide-user-x","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Faccount-deletion",{"title":315,"id":316,"canonicalKey":317,"locale":8,"draft":6,"navigation":318,"icon":319,"path":320},"Company sign-in (OIDC)","content:docs:3.build:3.authentication:17.company-sign-in.md","3\u002F3\u002F17",{"icon":319},"i-lucide-building-2","\u002Fdocs\u002Fbuild\u002Fauthentication\u002Fcompany-sign-in",{"title":322,"page":6,"canonicalKey":323,"locale":8,"children":324},"Server","3\u002F4",[325,332,339,346],{"title":326,"id":327,"canonicalKey":328,"locale":8,"draft":6,"navigation":329,"icon":330,"path":331},"serverConvex","content:docs:3.build:4.server:1.server-convex.md","3\u002F4\u002F1",{"icon":330},"i-lucide-server","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-convex",{"title":333,"id":334,"canonicalKey":335,"locale":8,"draft":6,"navigation":336,"icon":337,"path":338},"Server routes","content:docs:3.build:4.server:2.server-routes.md","3\u002F4\u002F2",{"icon":337},"i-lucide-waypoints","\u002Fdocs\u002Fbuild\u002Fserver\u002Fserver-routes",{"title":340,"id":341,"canonicalKey":342,"locale":8,"draft":6,"navigation":343,"icon":344,"path":345},"Webhooks and jobs","content:docs:3.build:4.server:3.webhooks-and-jobs.md","3\u002F4\u002F3",{"icon":344},"i-lucide-webhook","\u002Fdocs\u002Fbuild\u002Fserver\u002Fwebhooks-and-jobs",{"title":347,"id":348,"canonicalKey":349,"locale":8,"draft":6,"navigation":350,"icon":351,"path":352},"Credentials and server security","content:docs:3.build:4.server:4.credentials-and-security.md","3\u002F4\u002F4",{"icon":351},"i-lucide-key-round","\u002Fdocs\u002Fbuild\u002Fserver\u002Fcredentials-and-security",{"title":354,"page":6,"canonicalKey":355,"locale":8,"children":356},"Files","3\u002F5",[357,364,371,378],{"title":358,"id":359,"canonicalKey":360,"locale":8,"draft":6,"navigation":361,"icon":362,"path":363},"Upload files","content:docs:3.build:5.files:1.upload-files.md","3\u002F5\u002F1",{"icon":362},"i-lucide-upload","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fupload-files",{"title":365,"id":366,"canonicalKey":367,"locale":8,"draft":6,"navigation":368,"icon":369,"path":370},"Storage URLs","content:docs:3.build:5.files:3.storage-urls.md","3\u002F5\u002F3",{"icon":369},"i-lucide-link","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fstorage-urls",{"title":372,"id":373,"canonicalKey":374,"locale":8,"draft":6,"navigation":375,"icon":376,"path":377},"File validation and deletion","content:docs:3.build:5.files:4.validation-and-deletion.md","3\u002F5\u002F4",{"icon":376},"i-lucide-file-x","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fvalidation-and-deletion",{"title":379,"id":380,"canonicalKey":381,"locale":8,"draft":6,"navigation":382,"icon":383,"path":384},"Private downloads","content:docs:3.build:5.files:5.private-downloads.md","3\u002F5\u002F5",{"icon":383},"i-lucide-file-lock","\u002Fdocs\u002Fbuild\u002Ffiles\u002Fprivate-downloads",{"title":386,"page":6,"canonicalKey":387,"locale":8,"children":388},"Application Behavior","3\u002F6",[389,396,403,410,417,424],{"title":390,"id":391,"canonicalKey":392,"locale":8,"draft":6,"navigation":393,"icon":394,"path":395},"Connection state","content:docs:3.build:6.application-behavior:1.connection-state.md","3\u002F6\u002F1",{"icon":394},"i-lucide-wifi","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fconnection-state",{"title":397,"id":398,"canonicalKey":399,"locale":8,"draft":6,"navigation":400,"icon":401,"path":402},"Error handling","content:docs:3.build:6.application-behavior:2.error-handling.md","3\u002F6\u002F2",{"icon":401},"i-lucide-circle-alert","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Ferror-handling",{"title":404,"id":405,"canonicalKey":406,"locale":8,"draft":6,"navigation":407,"icon":408,"path":409},"Logging","content:docs:3.build:6.application-behavior:3.logging.md","3\u002F6\u002F3",{"icon":408},"i-lucide-scroll-text","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Flogging",{"title":411,"id":412,"canonicalKey":413,"locale":8,"draft":6,"navigation":414,"icon":415,"path":416},"DevTools","content:docs:3.build:6.application-behavior:4.devtools.md","3\u002F6\u002F4",{"icon":415},"i-lucide-wrench","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fdevtools",{"title":418,"id":419,"canonicalKey":420,"locale":8,"draft":6,"navigation":421,"icon":422,"path":423},"Performance","content:docs:3.build:6.application-behavior:5.performance.md","3\u002F6\u002F5",{"icon":422},"i-lucide-chart-no-axes-combined","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fperformance",{"title":425,"id":426,"canonicalKey":427,"locale":8,"draft":6,"navigation":428,"icon":429,"path":430},"Start the client on demand","content:docs:3.build:6.application-behavior:6.on-demand-client.md","3\u002F6\u002F6",{"icon":429},"i-lucide-power","\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Fon-demand-client",{"title":432,"page":6,"canonicalKey":433,"locale":8,"id":434,"draft":6,"icon":270,"children":435},"Agents and MCP","3\u002F7","content:docs:3.build:7.agents:.navigation.yml",[436,442,449,456,463,469,475],{"title":437,"id":438,"canonicalKey":439,"locale":8,"draft":6,"navigation":440,"icon":415,"path":441},"Tools and approvals","content:docs:3.build:7.agents:1.tools-and-approvals.md","3\u002F7\u002F1",{"icon":415},"\u002Fdocs\u002Fbuild\u002Fagents\u002Ftools-and-approvals",{"title":443,"id":444,"canonicalKey":445,"locale":8,"draft":6,"navigation":446,"icon":447,"path":448},"The MCP door","content:docs:3.build:7.agents:2.mcp-door.md","3\u002F7\u002F2",{"icon":447},"i-lucide-door-open","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-door",{"title":450,"id":451,"canonicalKey":452,"locale":8,"draft":6,"navigation":453,"icon":454,"path":455},"Limits","content:docs:3.build:7.agents:3.limits.md","3\u002F7\u002F3",{"icon":454},"i-lucide-traffic-cone","\u002Fdocs\u002Fbuild\u002Fagents\u002Flimits",{"title":457,"id":458,"canonicalKey":459,"locale":8,"draft":6,"navigation":460,"icon":461,"path":462},"MCP on Convex","content:docs:3.build:7.agents:4.mcp.md","3\u002F7\u002F4",{"icon":461},"i-lucide-plug-zap","\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp",{"title":464,"id":465,"canonicalKey":466,"locale":8,"draft":6,"navigation":467,"icon":249,"path":468},"Add MCP to your application","content:docs:3.build:7.agents:5.mcp-application.md","3\u002F7\u002F5",{"icon":249},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-application",{"title":470,"id":471,"canonicalKey":472,"locale":8,"draft":6,"navigation":473,"icon":369,"path":474},"Connect ChatGPT and Claude","content:docs:3.build:7.agents:6.connect-chatgpt-and-claude.md","3\u002F7\u002F6",{"icon":369},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fconnect-chatgpt-and-claude",{"title":476,"id":477,"canonicalKey":478,"locale":8,"draft":6,"navigation":479,"icon":108,"path":480},"MCP Apps","content:docs:3.build:7.agents:7.mcp-apps.md","3\u002F7\u002F7",{"icon":108},"\u002Fdocs\u002Fbuild\u002Fagents\u002Fmcp-apps",{"title":482,"page":6,"canonicalKey":483,"locale":8,"id":484,"draft":6,"icon":485,"children":486},"Operations and policy","3\u002F8","content:docs:3.build:8.functions:.navigation.yml","i-lucide-shield-half",[487,494,500,507,514,521,527,534],{"title":488,"id":489,"canonicalKey":490,"locale":8,"draft":6,"navigation":491,"icon":492,"path":493},"Start here","content:docs:3.build:8.functions:1.start-here.md","3\u002F8\u002F1",{"icon":492},"i-lucide-flag","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fstart-here",{"title":495,"id":496,"canonicalKey":497,"locale":8,"draft":6,"navigation":498,"icon":39,"path":499},"Policy and roles","content:docs:3.build:8.functions:2.policy-and-roles.md","3\u002F8\u002F2",{"icon":39},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fpolicy-and-roles",{"title":501,"id":502,"canonicalKey":503,"locale":8,"draft":6,"navigation":504,"icon":505,"path":506},"Row rules","content:docs:3.build:8.functions:3.row-rules.md","3\u002F8\u002F3",{"icon":505},"i-lucide-rows-3","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Frow-rules",{"title":508,"id":509,"canonicalKey":510,"locale":8,"draft":6,"navigation":511,"icon":512,"path":513},"Internal operations","content:docs:3.build:8.functions:4.internal-operations.md","3\u002F8\u002F4",{"icon":512},"i-lucide-workflow","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Finternal-operations",{"title":515,"id":516,"canonicalKey":517,"locale":8,"draft":6,"navigation":518,"icon":519,"path":520},"Test your app","content:docs:3.build:8.functions:5.testing.md","3\u002F8\u002F5",{"icon":519},"i-lucide-flask-conical","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Ftesting",{"title":522,"id":523,"canonicalKey":524,"locale":8,"draft":6,"navigation":525,"icon":177,"path":526},"Cost","content:docs:3.build:8.functions:6.cost.md","3\u002F8\u002F6",{"icon":177},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fcost",{"title":528,"id":529,"canonicalKey":530,"locale":8,"draft":6,"navigation":531,"icon":532,"path":533},"Threat model","content:docs:3.build:8.functions:7.threat-model.md","3\u002F8\u002F7",{"icon":532},"i-lucide-shield-alert","\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fthreat-model",{"title":535,"id":536,"canonicalKey":537,"locale":8,"draft":6,"navigation":538,"icon":408,"path":539},"Rate limits, audit log and call events","content:docs:3.build:8.functions:8.limits-and-audit.md","3\u002F8\u002F8",{"icon":408},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Flimits-and-audit",{"title":541,"page":6,"canonicalKey":542,"locale":8,"id":543,"draft":6,"icon":544,"children":545},"Recipes","4","content:docs:4.recipes:.navigation.yml","i-lucide-cooking-pot",[546,553,560,567,574,581,587,593,599,605,612,619,626,633,638],{"title":547,"id":548,"canonicalKey":549,"locale":8,"draft":6,"navigation":550,"icon":551,"path":552},"Protected dashboard","content:docs:4.recipes:1.protected-dashboard.md","4\u002F1",{"icon":551},"i-lucide-layout-dashboard","\u002Fdocs\u002Frecipes\u002Fprotected-dashboard",{"title":554,"id":555,"canonicalKey":556,"locale":8,"draft":6,"navigation":557,"icon":558,"path":559},"Real-time feed","content:docs:4.recipes:2.realtime-feed.md","4\u002F2",{"icon":558},"i-lucide-messages-square","\u002Fdocs\u002Frecipes\u002Frealtime-feed",{"title":561,"id":562,"canonicalKey":563,"locale":8,"draft":6,"navigation":564,"icon":565,"path":566},"Optimistic todo list","content:docs:4.recipes:3.optimistic-todo-list.md","4\u002F3",{"icon":565},"i-lucide-list-todo","\u002Fdocs\u002Frecipes\u002Foptimistic-todo-list",{"title":568,"id":569,"canonicalKey":570,"locale":8,"draft":6,"navigation":571,"icon":572,"path":573},"Infinite scroll","content:docs:4.recipes:4.infinite-scroll.md","4\u002F4",{"icon":572},"i-lucide-mouse","\u002Fdocs\u002Frecipes\u002Finfinite-scroll",{"title":575,"id":576,"canonicalKey":577,"locale":8,"draft":6,"navigation":578,"icon":579,"path":580},"File upload form","content:docs:4.recipes:5.file-upload-form.md","4\u002F5",{"icon":579},"i-lucide-file-up","\u002Fdocs\u002Frecipes\u002Ffile-upload-form",{"title":582,"id":583,"canonicalKey":584,"locale":8,"draft":6,"navigation":585,"icon":319,"path":586},"Organization permissions","content:docs:4.recipes:6.organization-permissions.md","4\u002F6",{"icon":319},"\u002Fdocs\u002Frecipes\u002Forganization-permissions",{"title":588,"id":589,"canonicalKey":590,"locale":8,"draft":6,"navigation":591,"icon":330,"path":592},"Authenticated server route","content:docs:4.recipes:7.authenticated-server-route.md","4\u002F7",{"icon":330},"\u002Fdocs\u002Frecipes\u002Fauthenticated-server-route",{"title":594,"id":595,"canonicalKey":596,"locale":8,"draft":6,"navigation":597,"icon":108,"path":598},"Public and private data","content:docs:4.recipes:8.public-and-private-data.md","4\u002F8",{"icon":108},"\u002Fdocs\u002Frecipes\u002Fpublic-and-private-data",{"title":600,"id":601,"canonicalKey":602,"locale":8,"draft":6,"navigation":603,"icon":519,"path":604},"Test signed-in screens","content:docs:4.recipes:9.component-testing.md","4\u002F9",{"icon":519},"\u002Fdocs\u002Frecipes\u002Fcomponent-testing",{"title":606,"id":607,"canonicalKey":608,"locale":8,"draft":6,"navigation":609,"icon":610,"path":611},"Time-based data","content:docs:4.recipes:10.time-based-data.md","4\u002F10",{"icon":610},"i-lucide-clock","\u002Fdocs\u002Frecipes\u002Ftime-based-data",{"title":613,"id":614,"canonicalKey":615,"locale":8,"draft":6,"navigation":616,"icon":617,"path":618},"A list of queries","content:docs:4.recipes:11.dynamic-query-list.md","4\u002F11",{"icon":617},"i-lucide-list-tree","\u002Fdocs\u002Frecipes\u002Fdynamic-query-list",{"title":620,"id":621,"canonicalKey":622,"locale":8,"draft":6,"navigation":623,"icon":624,"path":625},"Error messages","content:docs:4.recipes:12.error-messages.md","4\u002F12",{"icon":624},"i-lucide-message-circle-warning","\u002Fdocs\u002Frecipes\u002Ferror-messages",{"title":627,"id":628,"canonicalKey":629,"locale":8,"draft":6,"navigation":630,"icon":631,"path":632},"Several file uploads","content:docs:4.recipes:13.multiple-file-uploads.md","4\u002F13",{"icon":631},"i-lucide-files","\u002Fdocs\u002Frecipes\u002Fmultiple-file-uploads",{"title":634,"id":635,"canonicalKey":636,"locale":8,"draft":6,"path":637},"Guest users","content:docs:4.recipes:15.guest-users.md","4\u002F15","\u002Fdocs\u002Frecipes\u002Fguest-users",{"title":639,"id":640,"canonicalKey":641,"locale":8,"draft":6,"path":642},"Sign-in link","content:docs:4.recipes:16.sign-in-link.md","4\u002F16","\u002Fdocs\u002Frecipes\u002Fsign-in-link",{"title":644,"page":6,"canonicalKey":645,"locale":8,"id":646,"draft":6,"icon":647,"children":648},"Concepts","5","content:docs:5.concepts:.navigation.yml","i-lucide-brain",[649,655,661,668,674,681,687,694,701],{"title":650,"id":651,"canonicalKey":652,"locale":8,"draft":6,"navigation":653,"icon":647,"path":654},"Mental model","content:docs:5.concepts:1.mental-model.md","5\u002F1",{"icon":647},"\u002Fdocs\u002Fconcepts\u002Fmental-model",{"title":656,"id":657,"canonicalKey":658,"locale":8,"draft":6,"navigation":659,"icon":235,"path":660},"Request lifecycle","content:docs:5.concepts:2.request-lifecycle.md","5\u002F2",{"icon":235},"\u002Fdocs\u002Fconcepts\u002Frequest-lifecycle",{"title":662,"id":663,"canonicalKey":664,"locale":8,"draft":6,"navigation":665,"icon":666,"path":667},"SSR, hydration, and real-time","content:docs:5.concepts:3.ssr-hydration-realtime.md","5\u002F3",{"icon":666},"i-lucide-refresh-cw","\u002Fdocs\u002Fconcepts\u002Fssr-hydration-realtime",{"title":669,"id":670,"canonicalKey":671,"locale":8,"draft":6,"navigation":672,"icon":124,"path":673},"Query state and caching","content:docs:5.concepts:4.query-ownership-and-caching.md","5\u002F4",{"icon":124},"\u002Fdocs\u002Fconcepts\u002Fquery-ownership-and-caching",{"title":675,"id":676,"canonicalKey":677,"locale":8,"draft":6,"navigation":678,"icon":679,"path":680},"Authentication and identity","content:docs:5.concepts:5.authentication-and-identity.md","5\u002F5",{"icon":679},"i-lucide-fingerprint","\u002Fdocs\u002Fconcepts\u002Fauthentication-and-identity",{"title":682,"id":683,"canonicalKey":684,"locale":8,"draft":6,"navigation":685,"icon":108,"path":686},"Server and client boundaries","content:docs:5.concepts:6.server-and-client-boundaries.md","5\u002F6",{"icon":108},"\u002Fdocs\u002Fconcepts\u002Fserver-and-client-boundaries",{"title":688,"id":689,"canonicalKey":690,"locale":8,"draft":6,"navigation":691,"icon":692,"path":693},"Errors and failures","content:docs:5.concepts:7.errors-and-failures.md","5\u002F7",{"icon":692},"i-lucide-circle-x","\u002Fdocs\u002Fconcepts\u002Ferrors-and-failures",{"title":695,"id":696,"canonicalKey":697,"locale":8,"draft":6,"navigation":698,"icon":699,"path":700},"Design decisions","content:docs:5.concepts:8.design-decisions.md","5\u002F8",{"icon":699},"i-lucide-git-branch","\u002Fdocs\u002Fconcepts\u002Fdesign-decisions",{"title":702,"id":703,"canonicalKey":704,"locale":8,"draft":6,"navigation":705,"icon":706,"path":707},"Glossary","content:docs:5.concepts:9.glossary.md","5\u002F9",{"icon":706},"i-lucide-book-a","\u002Fdocs\u002Fconcepts\u002Fglossary",{"title":709,"page":6,"canonicalKey":710,"locale":8,"id":711,"draft":6,"icon":215,"children":712},"Operations","6","content:docs:6.operations:.navigation.yml",[713,719,726,733,739,746,752,759,765],{"title":714,"id":715,"canonicalKey":716,"locale":8,"draft":6,"navigation":717,"icon":45,"path":718},"Deployment","content:docs:6.operations:1.deployment.md","6\u002F1",{"icon":45},"\u002Fdocs\u002Foperations\u002Fdeployment",{"title":720,"id":721,"canonicalKey":722,"locale":8,"draft":6,"navigation":723,"icon":724,"path":725},"Environment variables","content:docs:6.operations:2.environment-variables.md","6\u002F2",{"icon":724},"i-lucide-variable","\u002Fdocs\u002Foperations\u002Fenvironment-variables",{"title":727,"id":728,"canonicalKey":729,"locale":8,"draft":6,"navigation":730,"icon":731,"path":732},"Deploy to Vercel","content:docs:6.operations:3.deploy-to-vercel.md","6\u002F3",{"icon":731},"i-lucide-triangle","\u002Fdocs\u002Foperations\u002Fdeploy-to-vercel",{"title":734,"id":735,"canonicalKey":736,"locale":8,"draft":6,"navigation":737,"icon":415,"path":738},"Troubleshooting","content:docs:6.operations:4.troubleshooting.md","6\u002F4",{"icon":415},"\u002Fdocs\u002Foperations\u002Ftroubleshooting",{"title":740,"id":741,"canonicalKey":742,"locale":8,"draft":6,"navigation":743,"icon":744,"path":745},"Release compatibility","content:docs:6.operations:5.release-compatibility.md","6\u002F5",{"icon":744},"i-lucide-badge-check","\u002Fdocs\u002Foperations\u002Frelease-compatibility",{"title":747,"id":748,"canonicalKey":749,"locale":8,"draft":6,"navigation":750,"icon":87,"path":751},"Security model","content:docs:6.operations:6.security-model.md","6\u002F6",{"icon":87},"\u002Fdocs\u002Foperations\u002Fsecurity-model",{"title":753,"id":754,"canonicalKey":755,"locale":8,"draft":6,"navigation":756,"icon":757,"path":758},"Upgrade to 1.0","content:docs:6.operations:7.upgrade-to-1-0.md","6\u002F7",{"icon":757},"i-lucide-arrow-up-circle","\u002Fdocs\u002Foperations\u002Fupgrade-to-1-0",{"title":760,"id":761,"canonicalKey":762,"locale":8,"draft":6,"navigation":763,"icon":45,"path":764},"Before your app goes live","content:docs:6.operations:8.before-launch.md","6\u002F8",{"icon":45},"\u002Fdocs\u002Foperations\u002Fbefore-launch",{"title":766,"id":767,"canonicalKey":768,"locale":8,"draft":6,"navigation":769,"icon":770,"path":771},"Log streams and PostHog","content:docs:6.operations:9.log-streams.md","6\u002F9",{"icon":770},"i-lucide-activity","\u002Fdocs\u002Foperations\u002Flog-streams",{"title":773,"page":6,"canonicalKey":774,"locale":8,"id":775,"draft":6,"icon":776,"children":777},"Reference","7","content:docs:7.reference:.navigation.yml","i-lucide-braces",[778,784,790,796,803,810,817,823,830],{"title":779,"id":780,"canonicalKey":781,"locale":8,"draft":6,"navigation":782,"icon":776,"path":783},"Composables","content:docs:7.reference:1.composables.md","7\u002F1",{"icon":776},"\u002Fdocs\u002Freference\u002Fcomposables",{"title":785,"id":786,"canonicalKey":787,"locale":8,"draft":6,"navigation":788,"icon":330,"path":789},"Server API","content:docs:7.reference:3.server-api.md","7\u002F3",{"icon":330},"\u002Fdocs\u002Freference\u002Fserver-api",{"title":791,"id":792,"canonicalKey":793,"locale":8,"draft":6,"navigation":794,"icon":692,"path":795},"Error types","content:docs:7.reference:4.error-types.md","7\u002F4",{"icon":692},"\u002Fdocs\u002Freference\u002Ferror-types",{"title":797,"id":798,"canonicalKey":799,"locale":8,"draft":6,"navigation":800,"icon":801,"path":802},"Module configuration","content:docs:7.reference:5.module-configuration.md","7\u002F5",{"icon":801},"i-lucide-settings","\u002Fdocs\u002Freference\u002Fmodule-configuration",{"title":804,"id":805,"canonicalKey":806,"locale":8,"draft":6,"navigation":807,"icon":808,"path":809},"Package exports","content:docs:7.reference:6.package-exports.md","7\u002F6",{"icon":808},"i-lucide-package-open","\u002Fdocs\u002Freference\u002Fpackage-exports",{"title":811,"id":812,"canonicalKey":813,"locale":8,"draft":6,"navigation":814,"icon":815,"path":816},"API reference","content:docs:7.reference:7.api-surface.md","7\u002F7",{"icon":815},"i-lucide-list","\u002Fdocs\u002Freference\u002Fapi-surface",{"title":818,"id":819,"canonicalKey":820,"locale":8,"draft":6,"navigation":821,"icon":519,"path":822},"Experimental APIs","content:docs:7.reference:8.experimental.md","7\u002F8",{"icon":519},"\u002Fdocs\u002Freference\u002Fexperimental",{"title":824,"id":825,"canonicalKey":826,"locale":8,"draft":6,"navigation":827,"icon":828,"path":829},"Command line","content:docs:7.reference:9.cli.md","7\u002F9",{"icon":828},"i-lucide-terminal","\u002Fdocs\u002Freference\u002Fcli",{"title":831,"id":832,"canonicalKey":833,"locale":8,"draft":6,"navigation":834,"icon":835,"path":836},"Operation error codes","content:docs:7.reference:10.operation-error-codes.md","7\u002F10",{"icon":835},"i-lucide-octagon-alert","\u002Fdocs\u002Freference\u002Foperation-error-codes",{"title":838,"id":839,"canonicalKey":840,"locale":8,"draft":6,"path":841},"Better Convex documentation","content:docs:index.md","\u002F","\u002Fdocs",{"title":495,"description":843,"navigation":844,"body":845,"type":4222,"id":496,"canonicalKey":497,"draft":6,"partial":6,"locale":8,"collection":4223,"navigationFile":6,"file":4224,"route":4230,"resolution":4232},"Name every action once, say which roles may do it, what agents may do on their own, and which actions signed-out visitors may call.",{"icon":39},{"type":846,"children":847,"toc":4212},"root",[848,856,1780,1787,1958,2016,2040,2150,2267,2284,2382,2388,2393,2461,2472,2494,2500,2538,3874,3880,3890,3914,4160,4165,4171,4207],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853],{"type":854,"value":855},"text","The policy is one object of plain data. Convex functions, the consent page and\nthe browser read the same object, so they cannot disagree.",{"type":849,"tag":857,"props":858,"children":862},"pre",{"language":859,"filename":860,"class":861},"ts","convex\u002Fpolicy.ts","shiki shiki-themes light-plus dark-plus dark:dark-plus",[863],{"type":849,"tag":864,"props":865,"children":867},"code",{"class":866},"language-ts",[868,908,910,913,914,949,950,963,964,977,978,990,991,1003,1004,1016,1017,1029,1030,1042,1043,1055,1056,1068,1069,1081,1082,1090,1091,1104,1105,1127,1128,1140,1141,1153,1154,1166,1167,1179,1180,1192,1193,1205,1206,1218,1219,1231,1232,1240,1241,1281,1282,1290,1291,1303,1304,1353,1354,1370,1371,1388,1389,1428,1429,1437,1438,1454,1455,1471,1472,1492,1493,1500,1501,1508,1509,1521,1522,1542,1543,1562,1563,1583,1584,1593,1594,1678,1679,1699,1700,1707,1708,1716,1717,1750,1751,1771,1772],{"type":849,"tag":869,"props":870,"children":873},"span",{"class":871,"style":872},"line","display: inline",[874,880,886,892,897,902],{"type":849,"tag":869,"props":875,"children":877},{"style":876},"color:#AF00DB;--shiki-dark:#C586C0",[878],{"type":854,"value":879},"import",{"type":849,"tag":869,"props":881,"children":883},{"style":882},"color:#000000;--shiki-dark:#D4D4D4",[884],{"type":854,"value":885}," { ",{"type":849,"tag":869,"props":887,"children":889},{"style":888},"color:#001080;--shiki-dark:#9CDCFE",[890],{"type":854,"value":891},"definePolicy",{"type":849,"tag":869,"props":893,"children":894},{"style":882},[895],{"type":854,"value":896}," } ",{"type":849,"tag":869,"props":898,"children":899},{"style":876},[900],{"type":854,"value":901},"from",{"type":849,"tag":869,"props":903,"children":905},{"style":904},"color:#A31515;--shiki-dark:#CE9178",[906],{"type":854,"value":907}," '@lupinum\u002Fbetter-convex-functions\u002Fpolicy'",{"type":854,"value":909},"\n",{"type":849,"tag":869,"props":911,"children":912},{"class":871,"style":872},[],{"type":854,"value":909},{"type":849,"tag":869,"props":915,"children":916},{"class":871,"style":872},[917,922,928,934,939,944],{"type":849,"tag":869,"props":918,"children":919},{"style":876},[920],{"type":854,"value":921},"export",{"type":849,"tag":869,"props":923,"children":925},{"style":924},"color:#0000FF;--shiki-dark:#569CD6",[926],{"type":854,"value":927}," const",{"type":849,"tag":869,"props":929,"children":931},{"style":930},"color:#0070C1;--shiki-dark:#4FC1FF",[932],{"type":854,"value":933}," policy",{"type":849,"tag":869,"props":935,"children":936},{"style":882},[937],{"type":854,"value":938}," = ",{"type":849,"tag":869,"props":940,"children":942},{"style":941},"color:#795E26;--shiki-dark:#DCDCAA",[943],{"type":854,"value":891},{"type":849,"tag":869,"props":945,"children":946},{"style":882},[947],{"type":854,"value":948},"({",{"type":854,"value":909},{"type":849,"tag":869,"props":951,"children":952},{"class":871,"style":872},[953,958],{"type":849,"tag":869,"props":954,"children":955},{"style":888},[956],{"type":854,"value":957},"  actions:",{"type":849,"tag":869,"props":959,"children":960},{"style":882},[961],{"type":854,"value":962}," [",{"type":854,"value":909},{"type":849,"tag":869,"props":965,"children":966},{"class":871,"style":872},[967,972],{"type":849,"tag":869,"props":968,"children":969},{"style":904},[970],{"type":854,"value":971},"    'projects.list'",{"type":849,"tag":869,"props":973,"children":974},{"style":882},[975],{"type":854,"value":976},",",{"type":854,"value":909},{"type":849,"tag":869,"props":979,"children":980},{"class":871,"style":872},[981,986],{"type":849,"tag":869,"props":982,"children":983},{"style":904},[984],{"type":854,"value":985},"    'projects.create'",{"type":849,"tag":869,"props":987,"children":988},{"style":882},[989],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":992,"children":993},{"class":871,"style":872},[994,999],{"type":849,"tag":869,"props":995,"children":996},{"style":904},[997],{"type":854,"value":998},"    'projects.rename'",{"type":849,"tag":869,"props":1000,"children":1001},{"style":882},[1002],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1005,"children":1006},{"class":871,"style":872},[1007,1012],{"type":849,"tag":869,"props":1008,"children":1009},{"style":904},[1010],{"type":854,"value":1011},"    'projects.archive'",{"type":849,"tag":869,"props":1013,"children":1014},{"style":882},[1015],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1018,"children":1019},{"class":871,"style":872},[1020,1025],{"type":849,"tag":869,"props":1021,"children":1022},{"style":904},[1023],{"type":854,"value":1024},"    'projects.summarize'",{"type":849,"tag":869,"props":1026,"children":1027},{"style":882},[1028],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1031,"children":1032},{"class":871,"style":872},[1033,1038],{"type":849,"tag":869,"props":1034,"children":1035},{"style":904},[1036],{"type":854,"value":1037},"    'clients.create'",{"type":849,"tag":869,"props":1039,"children":1040},{"style":882},[1041],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1044,"children":1045},{"class":871,"style":872},[1046,1051],{"type":849,"tag":869,"props":1047,"children":1048},{"style":904},[1049],{"type":854,"value":1050},"    'members.list'",{"type":849,"tag":869,"props":1052,"children":1053},{"style":882},[1054],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1057,"children":1058},{"class":871,"style":872},[1059,1064],{"type":849,"tag":869,"props":1060,"children":1061},{"style":904},[1062],{"type":854,"value":1063},"    'pages.read'",{"type":849,"tag":869,"props":1065,"children":1066},{"style":882},[1067],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1070,"children":1071},{"class":871,"style":872},[1072,1077],{"type":849,"tag":869,"props":1073,"children":1074},{"style":904},[1075],{"type":854,"value":1076},"    'pages.edit'",{"type":849,"tag":869,"props":1078,"children":1079},{"style":882},[1080],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1083,"children":1084},{"class":871,"style":872},[1085],{"type":849,"tag":869,"props":1086,"children":1087},{"style":882},[1088],{"type":854,"value":1089},"  ],",{"type":854,"value":909},{"type":849,"tag":869,"props":1092,"children":1093},{"class":871,"style":872},[1094,1099],{"type":849,"tag":869,"props":1095,"children":1096},{"style":888},[1097],{"type":854,"value":1098},"  roles:",{"type":849,"tag":869,"props":1100,"children":1101},{"style":882},[1102],{"type":854,"value":1103}," {",{"type":854,"value":909},{"type":849,"tag":869,"props":1106,"children":1107},{"class":871,"style":872},[1108,1113,1117,1122],{"type":849,"tag":869,"props":1109,"children":1110},{"style":888},[1111],{"type":854,"value":1112},"    owner:",{"type":849,"tag":869,"props":1114,"children":1115},{"style":882},[1116],{"type":854,"value":962},{"type":849,"tag":869,"props":1118,"children":1119},{"style":904},[1120],{"type":854,"value":1121},"'*'",{"type":849,"tag":869,"props":1123,"children":1124},{"style":882},[1125],{"type":854,"value":1126},"],",{"type":854,"value":909},{"type":849,"tag":869,"props":1129,"children":1130},{"class":871,"style":872},[1131,1136],{"type":849,"tag":869,"props":1132,"children":1133},{"style":888},[1134],{"type":854,"value":1135},"    member:",{"type":849,"tag":869,"props":1137,"children":1138},{"style":882},[1139],{"type":854,"value":962},{"type":854,"value":909},{"type":849,"tag":869,"props":1142,"children":1143},{"class":871,"style":872},[1144,1149],{"type":849,"tag":869,"props":1145,"children":1146},{"style":904},[1147],{"type":854,"value":1148},"      'projects.list'",{"type":849,"tag":869,"props":1150,"children":1151},{"style":882},[1152],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1155,"children":1156},{"class":871,"style":872},[1157,1162],{"type":849,"tag":869,"props":1158,"children":1159},{"style":904},[1160],{"type":854,"value":1161},"      'projects.create'",{"type":849,"tag":869,"props":1163,"children":1164},{"style":882},[1165],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1168,"children":1169},{"class":871,"style":872},[1170,1175],{"type":849,"tag":869,"props":1171,"children":1172},{"style":904},[1173],{"type":854,"value":1174},"      'projects.rename'",{"type":849,"tag":869,"props":1176,"children":1177},{"style":882},[1178],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1181,"children":1182},{"class":871,"style":872},[1183,1188],{"type":849,"tag":869,"props":1184,"children":1185},{"style":904},[1186],{"type":854,"value":1187},"      'projects.summarize'",{"type":849,"tag":869,"props":1189,"children":1190},{"style":882},[1191],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1194,"children":1195},{"class":871,"style":872},[1196,1201],{"type":849,"tag":869,"props":1197,"children":1198},{"style":904},[1199],{"type":854,"value":1200},"      'clients.create'",{"type":849,"tag":869,"props":1202,"children":1203},{"style":882},[1204],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1207,"children":1208},{"class":871,"style":872},[1209,1214],{"type":849,"tag":869,"props":1210,"children":1211},{"style":904},[1212],{"type":854,"value":1213},"      'members.list'",{"type":849,"tag":869,"props":1215,"children":1216},{"style":882},[1217],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1220,"children":1221},{"class":871,"style":872},[1222,1227],{"type":849,"tag":869,"props":1223,"children":1224},{"style":904},[1225],{"type":854,"value":1226},"      'pages.*'",{"type":849,"tag":869,"props":1228,"children":1229},{"style":882},[1230],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1233,"children":1234},{"class":871,"style":872},[1235],{"type":849,"tag":869,"props":1236,"children":1237},{"style":882},[1238],{"type":854,"value":1239},"    ],",{"type":854,"value":909},{"type":849,"tag":869,"props":1242,"children":1243},{"class":871,"style":872},[1244,1249,1253,1258,1263,1268,1272,1277],{"type":849,"tag":869,"props":1245,"children":1246},{"style":888},[1247],{"type":854,"value":1248},"    viewer:",{"type":849,"tag":869,"props":1250,"children":1251},{"style":882},[1252],{"type":854,"value":962},{"type":849,"tag":869,"props":1254,"children":1255},{"style":904},[1256],{"type":854,"value":1257},"'projects.list'",{"type":849,"tag":869,"props":1259,"children":1260},{"style":882},[1261],{"type":854,"value":1262},", ",{"type":849,"tag":869,"props":1264,"children":1265},{"style":904},[1266],{"type":854,"value":1267},"'members.list'",{"type":849,"tag":869,"props":1269,"children":1270},{"style":882},[1271],{"type":854,"value":1262},{"type":849,"tag":869,"props":1273,"children":1274},{"style":904},[1275],{"type":854,"value":1276},"'pages.read'",{"type":849,"tag":869,"props":1278,"children":1279},{"style":882},[1280],{"type":854,"value":1126},{"type":854,"value":909},{"type":849,"tag":869,"props":1283,"children":1284},{"class":871,"style":872},[1285],{"type":849,"tag":869,"props":1286,"children":1287},{"style":882},[1288],{"type":854,"value":1289},"  },",{"type":854,"value":909},{"type":849,"tag":869,"props":1292,"children":1293},{"class":871,"style":872},[1294,1299],{"type":849,"tag":869,"props":1295,"children":1296},{"style":888},[1297],{"type":854,"value":1298},"  scopes:",{"type":849,"tag":869,"props":1300,"children":1301},{"style":882},[1302],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":1305,"children":1306},{"class":871,"style":872},[1307,1312,1317,1321,1326,1331,1335,1340,1344,1348],{"type":849,"tag":869,"props":1308,"children":1309},{"style":904},[1310],{"type":854,"value":1311},"    'projects:read'",{"type":849,"tag":869,"props":1313,"children":1314},{"style":888},[1315],{"type":854,"value":1316},":",{"type":849,"tag":869,"props":1318,"children":1319},{"style":882},[1320],{"type":854,"value":885},{"type":849,"tag":869,"props":1322,"children":1323},{"style":888},[1324],{"type":854,"value":1325},"label:",{"type":849,"tag":869,"props":1327,"children":1328},{"style":904},[1329],{"type":854,"value":1330}," 'See your projects.'",{"type":849,"tag":869,"props":1332,"children":1333},{"style":882},[1334],{"type":854,"value":1262},{"type":849,"tag":869,"props":1336,"children":1337},{"style":888},[1338],{"type":854,"value":1339},"actions:",{"type":849,"tag":869,"props":1341,"children":1342},{"style":882},[1343],{"type":854,"value":962},{"type":849,"tag":869,"props":1345,"children":1346},{"style":904},[1347],{"type":854,"value":1257},{"type":849,"tag":869,"props":1349,"children":1350},{"style":882},[1351],{"type":854,"value":1352},"] },",{"type":854,"value":909},{"type":849,"tag":869,"props":1355,"children":1356},{"class":871,"style":872},[1357,1362,1366],{"type":849,"tag":869,"props":1358,"children":1359},{"style":904},[1360],{"type":854,"value":1361},"    'projects:write'",{"type":849,"tag":869,"props":1363,"children":1364},{"style":888},[1365],{"type":854,"value":1316},{"type":849,"tag":869,"props":1367,"children":1368},{"style":882},[1369],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":1372,"children":1373},{"class":871,"style":872},[1374,1379,1384],{"type":849,"tag":869,"props":1375,"children":1376},{"style":888},[1377],{"type":854,"value":1378},"      label:",{"type":849,"tag":869,"props":1380,"children":1381},{"style":904},[1382],{"type":854,"value":1383}," 'Create, rename and archive projects. Archiving waits for your approval.'",{"type":849,"tag":869,"props":1385,"children":1386},{"style":882},[1387],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1390,"children":1391},{"class":871,"style":872},[1392,1397,1401,1406,1410,1415,1419,1424],{"type":849,"tag":869,"props":1393,"children":1394},{"style":888},[1395],{"type":854,"value":1396},"      actions:",{"type":849,"tag":869,"props":1398,"children":1399},{"style":882},[1400],{"type":854,"value":962},{"type":849,"tag":869,"props":1402,"children":1403},{"style":904},[1404],{"type":854,"value":1405},"'projects.create'",{"type":849,"tag":869,"props":1407,"children":1408},{"style":882},[1409],{"type":854,"value":1262},{"type":849,"tag":869,"props":1411,"children":1412},{"style":904},[1413],{"type":854,"value":1414},"'projects.rename'",{"type":849,"tag":869,"props":1416,"children":1417},{"style":882},[1418],{"type":854,"value":1262},{"type":849,"tag":869,"props":1420,"children":1421},{"style":904},[1422],{"type":854,"value":1423},"'projects.archive'",{"type":849,"tag":869,"props":1425,"children":1426},{"style":882},[1427],{"type":854,"value":1126},{"type":854,"value":909},{"type":849,"tag":869,"props":1430,"children":1431},{"class":871,"style":872},[1432],{"type":849,"tag":869,"props":1433,"children":1434},{"style":882},[1435],{"type":854,"value":1436},"    },",{"type":854,"value":909},{"type":849,"tag":869,"props":1439,"children":1440},{"class":871,"style":872},[1441,1446,1450],{"type":849,"tag":869,"props":1442,"children":1443},{"style":904},[1444],{"type":854,"value":1445},"    'pages:write'",{"type":849,"tag":869,"props":1447,"children":1448},{"style":888},[1449],{"type":854,"value":1316},{"type":849,"tag":869,"props":1451,"children":1452},{"style":882},[1453],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":1456,"children":1457},{"class":871,"style":872},[1458,1462,1467],{"type":849,"tag":869,"props":1459,"children":1460},{"style":888},[1461],{"type":854,"value":1378},{"type":849,"tag":869,"props":1463,"children":1464},{"style":904},[1465],{"type":854,"value":1466}," 'Edit pages. Publishing waits for your approval.'",{"type":849,"tag":869,"props":1468,"children":1469},{"style":882},[1470],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1473,"children":1474},{"class":871,"style":872},[1475,1479,1483,1488],{"type":849,"tag":869,"props":1476,"children":1477},{"style":888},[1478],{"type":854,"value":1396},{"type":849,"tag":869,"props":1480,"children":1481},{"style":882},[1482],{"type":854,"value":962},{"type":849,"tag":869,"props":1484,"children":1485},{"style":904},[1486],{"type":854,"value":1487},"'pages.edit'",{"type":849,"tag":869,"props":1489,"children":1490},{"style":882},[1491],{"type":854,"value":1126},{"type":854,"value":909},{"type":849,"tag":869,"props":1494,"children":1495},{"class":871,"style":872},[1496],{"type":849,"tag":869,"props":1497,"children":1498},{"style":882},[1499],{"type":854,"value":1436},{"type":854,"value":909},{"type":849,"tag":869,"props":1502,"children":1503},{"class":871,"style":872},[1504],{"type":849,"tag":869,"props":1505,"children":1506},{"style":882},[1507],{"type":854,"value":1289},{"type":854,"value":909},{"type":849,"tag":869,"props":1510,"children":1511},{"class":871,"style":872},[1512,1517],{"type":849,"tag":869,"props":1513,"children":1514},{"style":888},[1515],{"type":854,"value":1516},"  agents:",{"type":849,"tag":869,"props":1518,"children":1519},{"style":882},[1520],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":1523,"children":1524},{"class":871,"style":872},[1525,1529,1533,1538],{"type":849,"tag":869,"props":1526,"children":1527},{"style":904},[1528],{"type":854,"value":985},{"type":849,"tag":869,"props":1530,"children":1531},{"style":888},[1532],{"type":854,"value":1316},{"type":849,"tag":869,"props":1534,"children":1535},{"style":904},[1536],{"type":854,"value":1537}," 'allow'",{"type":849,"tag":869,"props":1539,"children":1540},{"style":882},[1541],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1544,"children":1545},{"class":871,"style":872},[1546,1550,1554,1558],{"type":849,"tag":869,"props":1547,"children":1548},{"style":904},[1549],{"type":854,"value":998},{"type":849,"tag":869,"props":1551,"children":1552},{"style":888},[1553],{"type":854,"value":1316},{"type":849,"tag":869,"props":1555,"children":1556},{"style":904},[1557],{"type":854,"value":1537},{"type":849,"tag":869,"props":1559,"children":1560},{"style":882},[1561],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1564,"children":1565},{"class":871,"style":872},[1566,1570,1574,1579],{"type":849,"tag":869,"props":1567,"children":1568},{"style":904},[1569],{"type":854,"value":1011},{"type":849,"tag":869,"props":1571,"children":1572},{"style":888},[1573],{"type":854,"value":1316},{"type":849,"tag":869,"props":1575,"children":1576},{"style":904},[1577],{"type":854,"value":1578}," 'approve'",{"type":849,"tag":869,"props":1580,"children":1581},{"style":882},[1582],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1585,"children":1586},{"class":871,"style":872},[1587],{"type":849,"tag":869,"props":1588,"children":1590},{"style":1589},"color:#008000;--shiki-dark:#6A9955",[1591],{"type":854,"value":1592},"    \u002F\u002F Drafts are fine; publishing waits for a person.",{"type":854,"value":909},{"type":849,"tag":869,"props":1595,"children":1596},{"class":871,"style":872},[1597,1601,1605,1610,1615,1620,1625,1629,1633,1638,1643,1648,1653,1658,1663,1668,1673],{"type":849,"tag":869,"props":1598,"children":1599},{"style":904},[1600],{"type":854,"value":1076},{"type":849,"tag":869,"props":1602,"children":1603},{"style":888},[1604],{"type":854,"value":1316},{"type":849,"tag":869,"props":1606,"children":1607},{"style":882},[1608],{"type":854,"value":1609}," (",{"type":849,"tag":869,"props":1611,"children":1612},{"style":888},[1613],{"type":854,"value":1614},"input",{"type":849,"tag":869,"props":1616,"children":1617},{"style":882},[1618],{"type":854,"value":1619},") ",{"type":849,"tag":869,"props":1621,"children":1622},{"style":924},[1623],{"type":854,"value":1624},"=>",{"type":849,"tag":869,"props":1626,"children":1627},{"style":882},[1628],{"type":854,"value":1609},{"type":849,"tag":869,"props":1630,"children":1631},{"style":888},[1632],{"type":854,"value":1614},{"type":849,"tag":869,"props":1634,"children":1635},{"style":882},[1636],{"type":854,"value":1637},".",{"type":849,"tag":869,"props":1639,"children":1640},{"style":888},[1641],{"type":854,"value":1642},"status",{"type":849,"tag":869,"props":1644,"children":1645},{"style":882},[1646],{"type":854,"value":1647}," === ",{"type":849,"tag":869,"props":1649,"children":1650},{"style":904},[1651],{"type":854,"value":1652},"'published'",{"type":849,"tag":869,"props":1654,"children":1655},{"style":882},[1656],{"type":854,"value":1657}," ? ",{"type":849,"tag":869,"props":1659,"children":1660},{"style":904},[1661],{"type":854,"value":1662},"'approve'",{"type":849,"tag":869,"props":1664,"children":1665},{"style":882},[1666],{"type":854,"value":1667}," : ",{"type":849,"tag":869,"props":1669,"children":1670},{"style":904},[1671],{"type":854,"value":1672},"'allow'",{"type":849,"tag":869,"props":1674,"children":1675},{"style":882},[1676],{"type":854,"value":1677},"),",{"type":854,"value":909},{"type":849,"tag":869,"props":1680,"children":1681},{"class":871,"style":872},[1682,1686,1690,1695],{"type":849,"tag":869,"props":1683,"children":1684},{"style":904},[1685],{"type":854,"value":1037},{"type":849,"tag":869,"props":1687,"children":1688},{"style":888},[1689],{"type":854,"value":1316},{"type":849,"tag":869,"props":1691,"children":1692},{"style":904},[1693],{"type":854,"value":1694}," 'deny'",{"type":849,"tag":869,"props":1696,"children":1697},{"style":882},[1698],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":1701,"children":1702},{"class":871,"style":872},[1703],{"type":849,"tag":869,"props":1704,"children":1705},{"style":882},[1706],{"type":854,"value":1289},{"type":854,"value":909},{"type":849,"tag":869,"props":1709,"children":1710},{"class":871,"style":872},[1711],{"type":849,"tag":869,"props":1712,"children":1713},{"style":1589},[1714],{"type":854,"value":1715},"  \u002F\u002F Besides the person the agent acts for, an owner of the organization may decide.",{"type":854,"value":909},{"type":849,"tag":869,"props":1718,"children":1719},{"class":871,"style":872},[1720,1725,1729,1733,1737,1741,1746],{"type":849,"tag":869,"props":1721,"children":1722},{"style":888},[1723],{"type":854,"value":1724},"  approvers:",{"type":849,"tag":869,"props":1726,"children":1727},{"style":882},[1728],{"type":854,"value":885},{"type":849,"tag":869,"props":1730,"children":1731},{"style":904},[1732],{"type":854,"value":1423},{"type":849,"tag":869,"props":1734,"children":1735},{"style":888},[1736],{"type":854,"value":1316},{"type":849,"tag":869,"props":1738,"children":1739},{"style":882},[1740],{"type":854,"value":962},{"type":849,"tag":869,"props":1742,"children":1743},{"style":904},[1744],{"type":854,"value":1745},"'owner'",{"type":849,"tag":869,"props":1747,"children":1748},{"style":882},[1749],{"type":854,"value":1352},{"type":854,"value":909},{"type":849,"tag":869,"props":1752,"children":1753},{"class":871,"style":872},[1754,1759,1763,1767],{"type":849,"tag":869,"props":1755,"children":1756},{"style":888},[1757],{"type":854,"value":1758},"  public:",{"type":849,"tag":869,"props":1760,"children":1761},{"style":882},[1762],{"type":854,"value":962},{"type":849,"tag":869,"props":1764,"children":1765},{"style":904},[1766],{"type":854,"value":1276},{"type":849,"tag":869,"props":1768,"children":1769},{"style":882},[1770],{"type":854,"value":1126},{"type":854,"value":909},{"type":849,"tag":869,"props":1773,"children":1774},{"class":871,"style":872},[1775],{"type":849,"tag":869,"props":1776,"children":1777},{"style":882},[1778],{"type":854,"value":1779},"})",{"type":849,"tag":1781,"props":1782,"children":1784},"h2",{"id":1783},"the-fields",[1785],{"type":854,"value":1786},"The fields",{"type":849,"tag":1788,"props":1789,"children":1790},"table",{},[1791,1810],{"type":849,"tag":1792,"props":1793,"children":1794},"thead",{},[1795],{"type":849,"tag":1796,"props":1797,"children":1798},"tr",{},[1799,1805],{"type":849,"tag":1800,"props":1801,"children":1802},"th",{},[1803],{"type":854,"value":1804},"Field",{"type":849,"tag":1800,"props":1806,"children":1807},{},[1808],{"type":854,"value":1809},"What it says",{"type":849,"tag":1811,"props":1812,"children":1813},"tbody",{},[1814,1831,1859,1875,1919,1942],{"type":849,"tag":1796,"props":1815,"children":1816},{},[1817,1826],{"type":849,"tag":1818,"props":1819,"children":1820},"td",{},[1821],{"type":849,"tag":864,"props":1822,"children":1823},{},[1824],{"type":854,"value":1825},"actions",{"type":849,"tag":1818,"props":1827,"children":1828},{},[1829],{"type":854,"value":1830},"Every action of the application. A name that is not in this list is a type error everywhere else",{"type":849,"tag":1796,"props":1832,"children":1833},{},[1834,1842],{"type":849,"tag":1818,"props":1835,"children":1836},{},[1837],{"type":849,"tag":864,"props":1838,"children":1839},{},[1840],{"type":854,"value":1841},"roles",{"type":849,"tag":1818,"props":1843,"children":1844},{},[1845,1847,1851,1852,1857],{"type":854,"value":1846},"What each role may do. ",{"type":849,"tag":864,"props":1848,"children":1849},{},[1850],{"type":854,"value":1121},{"type":854,"value":1262},{"type":849,"tag":864,"props":1853,"children":1854},{},[1855],{"type":854,"value":1856},"'projects.*'",{"type":854,"value":1858}," and exact names match",{"type":849,"tag":1796,"props":1860,"children":1861},{},[1862,1870],{"type":849,"tag":1818,"props":1863,"children":1864},{},[1865],{"type":849,"tag":864,"props":1866,"children":1867},{},[1868],{"type":854,"value":1869},"scopes",{"type":849,"tag":1818,"props":1871,"children":1872},{},[1873],{"type":854,"value":1874},"What a person grants an AI host, with the text the consent page shows",{"type":849,"tag":1796,"props":1876,"children":1877},{},[1878,1886],{"type":849,"tag":1818,"props":1879,"children":1880},{},[1881],{"type":849,"tag":864,"props":1882,"children":1883},{},[1884],{"type":854,"value":1885},"agents",{"type":849,"tag":1818,"props":1887,"children":1888},{},[1889,1891,1895,1896,1900,1902,1907,1909,1913,1915],{"type":854,"value":1890},"What an agent may do on its own: ",{"type":849,"tag":864,"props":1892,"children":1893},{},[1894],{"type":854,"value":1672},{"type":854,"value":1262},{"type":849,"tag":864,"props":1897,"children":1898},{},[1899],{"type":854,"value":1662},{"type":854,"value":1901}," or ",{"type":849,"tag":864,"props":1903,"children":1904},{},[1905],{"type":854,"value":1906},"'deny'",{"type":854,"value":1908},". Without an entry, a query is ",{"type":849,"tag":864,"props":1910,"children":1911},{},[1912],{"type":854,"value":1672},{"type":854,"value":1914}," and a call that changes data is ",{"type":849,"tag":864,"props":1916,"children":1917},{},[1918],{"type":854,"value":1662},{"type":849,"tag":1796,"props":1920,"children":1921},{},[1922,1930],{"type":849,"tag":1818,"props":1923,"children":1924},{},[1925],{"type":849,"tag":864,"props":1926,"children":1927},{},[1928],{"type":854,"value":1929},"approvers",{"type":849,"tag":1818,"props":1931,"children":1932},{},[1933,1935,1940],{"type":854,"value":1934},"Roles in the call's tenant that may decide an agent's request, besides the person it acts for. ",{"type":849,"tag":864,"props":1936,"children":1937},{},[1938],{"type":854,"value":1939},"{ roles, sharedRows: true }",{"type":854,"value":1941}," adds the other tenant of rows the agent changes",{"type":849,"tag":1796,"props":1943,"children":1944},{},[1945,1953],{"type":849,"tag":1818,"props":1946,"children":1947},{},[1948],{"type":849,"tag":864,"props":1949,"children":1950},{},[1951],{"type":854,"value":1952},"public",{"type":849,"tag":1818,"props":1954,"children":1955},{},[1956],{"type":854,"value":1957},"Actions that signed-out visitors may call. Row rules still decide which rows they see",{"type":849,"tag":850,"props":1959,"children":1960},{},[1961,1963,1968,1970,1975,1977,1982,1984,1988,1990,1995,1996,2001,2003,2007,2009,2014],{"type":854,"value":1962},"Roles come from your data. ",{"type":849,"tag":864,"props":1964,"children":1965},{},[1966],{"type":854,"value":1967},"roleOf",{"type":854,"value":1969}," in ",{"type":849,"tag":864,"props":1971,"children":1972},{},[1973],{"type":854,"value":1974},"defineFunctions",{"type":854,"value":1976}," returns the role of a\nuser in one tenant, or ",{"type":849,"tag":864,"props":1978,"children":1979},{},[1980],{"type":854,"value":1981},"null",{"type":854,"value":1983}," without a membership. A role name that is not a\nkey of ",{"type":849,"tag":864,"props":1985,"children":1986},{},[1987],{"type":854,"value":1841},{"type":854,"value":1989}," allows nothing, also names such as ",{"type":849,"tag":864,"props":1991,"children":1992},{},[1993],{"type":854,"value":1994},"toString",{"type":854,"value":1901},{"type":849,"tag":864,"props":1997,"children":1998},{},[1999],{"type":854,"value":2000},"__proto__",{"type":854,"value":2002},".\n",{"type":849,"tag":864,"props":2004,"children":2005},{},[2006],{"type":854,"value":1967},{"type":854,"value":2008}," and ",{"type":849,"tag":864,"props":2010,"children":2011},{},[2012],{"type":854,"value":2013},"user",{"type":854,"value":2015}," get a context that only reads: they decide, they do not\nchange data.",{"type":849,"tag":850,"props":2017,"children":2018},{},[2019,2021,2026,2028,2032,2034,2039],{"type":854,"value":2020},"A call whose input names no tenant gets its role from ",{"type":849,"tag":864,"props":2022,"children":2023},{},[2024],{"type":854,"value":2025},"roleOf(ctx, user, null)",{"type":854,"value":2027},":\nthe role a person has outside any tenant. ",{"type":849,"tag":864,"props":2029,"children":2030},{},[2031],{"type":854,"value":1981},{"type":854,"value":2033}," refuses the call, unless its\naction is public. What every signed-in person may do (create an organization,\nlist their own organizations) is a role too, for example ",{"type":849,"tag":864,"props":2035,"children":2036},{},[2037],{"type":854,"value":2038},"signedIn",{"type":854,"value":1316},{"type":849,"tag":857,"props":2041,"children":2042},{"language":859,"class":861},[2043],{"type":849,"tag":864,"props":2044,"children":2045},{"class":866},[2046,2059,2060,2091,2092,2112,2113,2141,2142],{"type":849,"tag":869,"props":2047,"children":2048},{"class":871,"style":872},[2049,2054],{"type":849,"tag":869,"props":2050,"children":2052},{"style":2051},"color:#000000;--shiki-dark:#C8C8C8",[2053],{"type":854,"value":1841},{"type":849,"tag":869,"props":2055,"children":2056},{"style":882},[2057],{"type":854,"value":2058},": {",{"type":854,"value":909},{"type":849,"tag":869,"props":2061,"children":2062},{"class":871,"style":872},[2063,2068,2073,2078,2082,2087],{"type":849,"tag":869,"props":2064,"children":2065},{"style":2051},[2066],{"type":854,"value":2067},"  signedIn",{"type":849,"tag":869,"props":2069,"children":2070},{"style":882},[2071],{"type":854,"value":2072},": [",{"type":849,"tag":869,"props":2074,"children":2075},{"style":904},[2076],{"type":854,"value":2077},"'organizations.create'",{"type":849,"tag":869,"props":2079,"children":2080},{"style":882},[2081],{"type":854,"value":1262},{"type":849,"tag":869,"props":2083,"children":2084},{"style":904},[2085],{"type":854,"value":2086},"'organizations.list'",{"type":849,"tag":869,"props":2088,"children":2089},{"style":882},[2090],{"type":854,"value":1126},{"type":854,"value":909},{"type":849,"tag":869,"props":2093,"children":2094},{"class":871,"style":872},[2095,2100,2104,2108],{"type":849,"tag":869,"props":2096,"children":2097},{"style":2051},[2098],{"type":854,"value":2099},"  owner",{"type":849,"tag":869,"props":2101,"children":2102},{"style":882},[2103],{"type":854,"value":2072},{"type":849,"tag":869,"props":2105,"children":2106},{"style":904},[2107],{"type":854,"value":1121},{"type":849,"tag":869,"props":2109,"children":2110},{"style":882},[2111],{"type":854,"value":1126},{"type":854,"value":909},{"type":849,"tag":869,"props":2114,"children":2115},{"class":871,"style":872},[2116,2121,2125,2129,2133,2137],{"type":849,"tag":869,"props":2117,"children":2118},{"style":2051},[2119],{"type":854,"value":2120},"  member",{"type":849,"tag":869,"props":2122,"children":2123},{"style":882},[2124],{"type":854,"value":2072},{"type":849,"tag":869,"props":2126,"children":2127},{"style":904},[2128],{"type":854,"value":1405},{"type":849,"tag":869,"props":2130,"children":2131},{"style":882},[2132],{"type":854,"value":1262},{"type":849,"tag":869,"props":2134,"children":2135},{"style":904},[2136],{"type":854,"value":1414},{"type":849,"tag":869,"props":2138,"children":2139},{"style":882},[2140],{"type":854,"value":1126},{"type":854,"value":909},{"type":849,"tag":869,"props":2143,"children":2144},{"class":871,"style":872},[2145],{"type":849,"tag":869,"props":2146,"children":2147},{"style":882},[2148],{"type":854,"value":2149},"},",{"type":849,"tag":857,"props":2151,"children":2152},{"language":859,"class":861},[2153],{"type":849,"tag":864,"props":2154,"children":2155},{"class":866},[2156,2211,2212,2250,2251,2259,2260],{"type":849,"tag":869,"props":2157,"children":2158},{"class":871,"style":872},[2159,2163,2168,2173,2177,2182,2186,2190,2194,2199,2203,2207],{"type":849,"tag":869,"props":2160,"children":2161},{"style":2051},[2162],{"type":854,"value":1967},{"type":849,"tag":869,"props":2164,"children":2165},{"style":882},[2166],{"type":854,"value":2167},": ",{"type":849,"tag":869,"props":2169,"children":2170},{"style":924},[2171],{"type":854,"value":2172},"async",{"type":849,"tag":869,"props":2174,"children":2175},{"style":882},[2176],{"type":854,"value":1609},{"type":849,"tag":869,"props":2178,"children":2179},{"style":888},[2180],{"type":854,"value":2181},"ctx",{"type":849,"tag":869,"props":2183,"children":2184},{"style":882},[2185],{"type":854,"value":1262},{"type":849,"tag":869,"props":2187,"children":2188},{"style":888},[2189],{"type":854,"value":2013},{"type":849,"tag":869,"props":2191,"children":2192},{"style":882},[2193],{"type":854,"value":1262},{"type":849,"tag":869,"props":2195,"children":2196},{"style":888},[2197],{"type":854,"value":2198},"tenant",{"type":849,"tag":869,"props":2200,"children":2201},{"style":882},[2202],{"type":854,"value":1619},{"type":849,"tag":869,"props":2204,"children":2205},{"style":924},[2206],{"type":854,"value":1624},{"type":849,"tag":869,"props":2208,"children":2209},{"style":882},[2210],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":2213,"children":2214},{"class":871,"style":872},[2215,2220,2224,2228,2232,2236,2240,2245],{"type":849,"tag":869,"props":2216,"children":2217},{"style":876},[2218],{"type":854,"value":2219},"  if",{"type":849,"tag":869,"props":2221,"children":2222},{"style":882},[2223],{"type":854,"value":1609},{"type":849,"tag":869,"props":2225,"children":2226},{"style":888},[2227],{"type":854,"value":2198},{"type":849,"tag":869,"props":2229,"children":2230},{"style":882},[2231],{"type":854,"value":1647},{"type":849,"tag":869,"props":2233,"children":2234},{"style":924},[2235],{"type":854,"value":1981},{"type":849,"tag":869,"props":2237,"children":2238},{"style":882},[2239],{"type":854,"value":1619},{"type":849,"tag":869,"props":2241,"children":2242},{"style":876},[2243],{"type":854,"value":2244},"return",{"type":849,"tag":869,"props":2246,"children":2247},{"style":904},[2248],{"type":854,"value":2249}," 'signedIn'",{"type":854,"value":909},{"type":849,"tag":869,"props":2252,"children":2253},{"class":871,"style":872},[2254],{"type":849,"tag":869,"props":2255,"children":2256},{"style":1589},[2257],{"type":854,"value":2258},"  \u002F\u002F the membership lookup for a tenant",{"type":854,"value":909},{"type":849,"tag":869,"props":2261,"children":2262},{"class":871,"style":872},[2263],{"type":849,"tag":869,"props":2264,"children":2265},{"style":882},[2266],{"type":854,"value":2149},{"type":849,"tag":850,"props":2268,"children":2269},{},[2270,2272,2276,2278,2282],{"type":854,"value":2271},"An application with one workspace and no tenant tables returns the member's role\nfor ",{"type":849,"tag":864,"props":2273,"children":2274},{},[2275],{"type":854,"value":1981},{"type":854,"value":2277},", and the library checks it on every call, so no handler has to. Answer\n",{"type":849,"tag":864,"props":2279,"children":2280},{},[2281],{"type":854,"value":1981},{"type":854,"value":2283}," for a tenant you do not handle, so a tenant table added later cannot\ninherit the workspace role:",{"type":849,"tag":857,"props":2285,"children":2286},{"language":859,"class":861},[2287],{"type":849,"tag":864,"props":2288,"children":2289},{"class":866},[2290],{"type":849,"tag":869,"props":2291,"children":2292},{"class":871,"style":872},[2293,2297,2301,2305,2309,2313,2317,2321,2325,2329,2333,2337,2341,2345,2349,2353,2357,2361,2365,2370,2374,2378],{"type":849,"tag":869,"props":2294,"children":2295},{"style":2051},[2296],{"type":854,"value":1967},{"type":849,"tag":869,"props":2298,"children":2299},{"style":882},[2300],{"type":854,"value":2167},{"type":849,"tag":869,"props":2302,"children":2303},{"style":924},[2304],{"type":854,"value":2172},{"type":849,"tag":869,"props":2306,"children":2307},{"style":882},[2308],{"type":854,"value":1609},{"type":849,"tag":869,"props":2310,"children":2311},{"style":888},[2312],{"type":854,"value":2181},{"type":849,"tag":869,"props":2314,"children":2315},{"style":882},[2316],{"type":854,"value":1262},{"type":849,"tag":869,"props":2318,"children":2319},{"style":888},[2320],{"type":854,"value":2013},{"type":849,"tag":869,"props":2322,"children":2323},{"style":882},[2324],{"type":854,"value":1262},{"type":849,"tag":869,"props":2326,"children":2327},{"style":888},[2328],{"type":854,"value":2198},{"type":849,"tag":869,"props":2330,"children":2331},{"style":882},[2332],{"type":854,"value":1619},{"type":849,"tag":869,"props":2334,"children":2335},{"style":924},[2336],{"type":854,"value":1624},{"type":849,"tag":869,"props":2338,"children":2339},{"style":882},[2340],{"type":854,"value":1609},{"type":849,"tag":869,"props":2342,"children":2343},{"style":888},[2344],{"type":854,"value":2198},{"type":849,"tag":869,"props":2346,"children":2347},{"style":882},[2348],{"type":854,"value":1647},{"type":849,"tag":869,"props":2350,"children":2351},{"style":924},[2352],{"type":854,"value":1981},{"type":849,"tag":869,"props":2354,"children":2355},{"style":882},[2356],{"type":854,"value":1657},{"type":849,"tag":869,"props":2358,"children":2359},{"style":888},[2360],{"type":854,"value":2013},{"type":849,"tag":869,"props":2362,"children":2363},{"style":882},[2364],{"type":854,"value":1637},{"type":849,"tag":869,"props":2366,"children":2367},{"style":888},[2368],{"type":854,"value":2369},"role",{"type":849,"tag":869,"props":2371,"children":2372},{"style":882},[2373],{"type":854,"value":1667},{"type":849,"tag":869,"props":2375,"children":2376},{"style":924},[2377],{"type":854,"value":1981},{"type":849,"tag":869,"props":2379,"children":2380},{"style":882},[2381],{"type":854,"value":1677},{"type":849,"tag":1781,"props":2383,"children":2385},{"id":2384},"how-one-call-is-decided",[2386],{"type":854,"value":2387},"How one call is decided",{"type":849,"tag":850,"props":2389,"children":2390},{},[2391],{"type":854,"value":2392},"A call is allowed when every layer allows it:",{"type":849,"tag":2394,"props":2395,"children":2396},"ol",{},[2397,2415,2425],{"type":849,"tag":2398,"props":2399,"children":2400},"li",{},[2401,2407,2409,2413],{"type":849,"tag":2402,"props":2403,"children":2404},"strong",{},[2405],{"type":854,"value":2406},"Role.",{"type":854,"value":2408}," The caller's role where the call acts allows the action: the\nrole in the tenant the input names, or, when it names none, the role outside\nany tenant (",{"type":849,"tag":864,"props":2410,"children":2411},{},[2412],{"type":854,"value":2025},{"type":854,"value":2414},"). No role refuses the call. A public\naction skips this layer. The row rules then check every row the call\ntouches.",{"type":849,"tag":2398,"props":2416,"children":2417},{},[2418,2423],{"type":849,"tag":2402,"props":2419,"children":2420},{},[2421],{"type":854,"value":2422},"Scope",{"type":854,"value":2424}," (agents only). One of the scopes the person granted includes the\naction.",{"type":849,"tag":2398,"props":2426,"children":2427},{},[2428,2433,2435,2440,2442,2447,2449,2454,2456,2460],{"type":849,"tag":2402,"props":2429,"children":2430},{},[2431],{"type":854,"value":2432},"Agent rule",{"type":854,"value":2434}," (agents only). ",{"type":849,"tag":864,"props":2436,"children":2437},{},[2438],{"type":854,"value":2439},"allow",{"type":854,"value":2441}," runs the call, ",{"type":849,"tag":864,"props":2443,"children":2444},{},[2445],{"type":854,"value":2446},"approve",{"type":854,"value":2448}," holds it for\na person, ",{"type":849,"tag":864,"props":2450,"children":2451},{},[2452],{"type":854,"value":2453},"deny",{"type":854,"value":2455}," refuses it. An action without a rule runs when it only\nreads (a query) and waits for a person when it changes data (a mutation,\nan action or an internal mutation). So a write action you add to a scope\nlater never runs on its own until you give it ",{"type":849,"tag":864,"props":2457,"children":2458},{},[2459],{"type":854,"value":1672},{"type":854,"value":1637},{"type":849,"tag":850,"props":2462,"children":2463},{},[2464,2466,2470],{"type":854,"value":2465},"A person never needs approval. The rules in ",{"type":849,"tag":864,"props":2467,"children":2468},{},[2469],{"type":854,"value":1885},{"type":854,"value":2471}," hold only for agents.",{"type":849,"tag":850,"props":2473,"children":2474},{},[2475,2477,2481,2482,2486,2488,2492],{"type":854,"value":2476},"An agent rule can read the call's input. If the function throws, for example\non input it did not expect, the call waits for a person. A query cannot wait,\nso its agent rule must be ",{"type":849,"tag":864,"props":2478,"children":2479},{},[2480],{"type":854,"value":1672},{"type":854,"value":1901},{"type":849,"tag":864,"props":2483,"children":2484},{},[2485],{"type":854,"value":1906},{"type":854,"value":2487},"; ",{"type":849,"tag":864,"props":2489,"children":2490},{},[2491],{"type":854,"value":1662},{"type":854,"value":2493}," on a query is an\nerror when the module loads.",{"type":849,"tag":1781,"props":2495,"children":2497},{"id":2496},"public-actions-and-visitors",[2498],{"type":854,"value":2499},"Public actions and visitors",{"type":849,"tag":850,"props":2501,"children":2502},{},[2503,2505,2509,2511,2516,2518,2523,2525,2530,2532,2537],{"type":854,"value":2504},"A visitor is a caller without a session. A visitor reaches only the actions in\n",{"type":849,"tag":864,"props":2506,"children":2507},{},[2508],{"type":854,"value":1952},{"type":854,"value":2510},". Every other action fails with ",{"type":849,"tag":864,"props":2512,"children":2513},{},[2514],{"type":854,"value":2515},"NOT_SIGNED_IN",{"type":854,"value":2517},". In a public operation,\n",{"type":849,"tag":864,"props":2519,"children":2520},{},[2521],{"type":854,"value":2522},"ctx.actor",{"type":854,"value":2524}," can be ",{"type":849,"tag":864,"props":2526,"children":2527},{},[2528],{"type":854,"value":2529},"{ kind: 'visitor' }",{"type":854,"value":2531},", so the type makes you handle it\nbefore you read ",{"type":849,"tag":864,"props":2533,"children":2534},{},[2535],{"type":854,"value":2536},"ctx.actor.user",{"type":854,"value":1637},{"type":849,"tag":857,"props":2539,"children":2541},{"language":859,"filename":2540,"class":861},"convex\u002Fpages.ts",[2542],{"type":849,"tag":864,"props":2543,"children":2544},{"class":866},[2545,2574,2575,2578,2579,2617,2618,2621,2622,2630,2631,2659,2660,2677,2678,2747,2748,2851,2852,2909,2910,2946,2947,2973,2974,3013,3014,3103,3104,3112,3113,3130,3131,3191,3192,3199,3200,3207,3208,3211,3212,3240,3241,3257,3258,3266,3267,3278,3279,3311,3312,3344,3345,3370,3371,3446,3447,3454,3455,3478,3479,3491,3492,3509,3510,3527,3528,3535,3536,3590,3591,3717,3718,3726,3727,3786,3787,3845,3846,3858,3859,3866,3867],{"type":849,"tag":869,"props":2546,"children":2547},{"class":871,"style":872},[2548,2552,2556,2561,2565,2569],{"type":849,"tag":869,"props":2549,"children":2550},{"style":876},[2551],{"type":854,"value":879},{"type":849,"tag":869,"props":2553,"children":2554},{"style":882},[2555],{"type":854,"value":885},{"type":849,"tag":869,"props":2557,"children":2558},{"style":888},[2559],{"type":854,"value":2560},"v",{"type":849,"tag":869,"props":2562,"children":2563},{"style":882},[2564],{"type":854,"value":896},{"type":849,"tag":869,"props":2566,"children":2567},{"style":876},[2568],{"type":854,"value":901},{"type":849,"tag":869,"props":2570,"children":2571},{"style":904},[2572],{"type":854,"value":2573}," 'convex\u002Fvalues'",{"type":854,"value":909},{"type":849,"tag":869,"props":2576,"children":2577},{"class":871,"style":872},[],{"type":854,"value":909},{"type":849,"tag":869,"props":2580,"children":2581},{"class":871,"style":872},[2582,2586,2590,2595,2599,2604,2608,2612],{"type":849,"tag":869,"props":2583,"children":2584},{"style":876},[2585],{"type":854,"value":879},{"type":849,"tag":869,"props":2587,"children":2588},{"style":882},[2589],{"type":854,"value":885},{"type":849,"tag":869,"props":2591,"children":2592},{"style":888},[2593],{"type":854,"value":2594},"mutation",{"type":849,"tag":869,"props":2596,"children":2597},{"style":882},[2598],{"type":854,"value":1262},{"type":849,"tag":869,"props":2600,"children":2601},{"style":888},[2602],{"type":854,"value":2603},"query",{"type":849,"tag":869,"props":2605,"children":2606},{"style":882},[2607],{"type":854,"value":896},{"type":849,"tag":869,"props":2609,"children":2610},{"style":876},[2611],{"type":854,"value":901},{"type":849,"tag":869,"props":2613,"children":2614},{"style":904},[2615],{"type":854,"value":2616}," '.\u002Ffunctions'",{"type":854,"value":909},{"type":849,"tag":869,"props":2619,"children":2620},{"class":871,"style":872},[],{"type":854,"value":909},{"type":849,"tag":869,"props":2623,"children":2624},{"class":871,"style":872},[2625],{"type":849,"tag":869,"props":2626,"children":2627},{"style":1589},[2628],{"type":854,"value":2629},"\u002F** Anyone may read a published page. The index condition matches the publicRead rule. *\u002F",{"type":854,"value":909},{"type":849,"tag":869,"props":2632,"children":2633},{"class":871,"style":872},[2634,2638,2642,2647,2651,2655],{"type":849,"tag":869,"props":2635,"children":2636},{"style":876},[2637],{"type":854,"value":921},{"type":849,"tag":869,"props":2639,"children":2640},{"style":924},[2641],{"type":854,"value":927},{"type":849,"tag":869,"props":2643,"children":2644},{"style":930},[2645],{"type":854,"value":2646}," published",{"type":849,"tag":869,"props":2648,"children":2649},{"style":882},[2650],{"type":854,"value":938},{"type":849,"tag":869,"props":2652,"children":2653},{"style":941},[2654],{"type":854,"value":2603},{"type":849,"tag":869,"props":2656,"children":2657},{"style":882},[2658],{"type":854,"value":948},{"type":854,"value":909},{"type":849,"tag":869,"props":2661,"children":2662},{"class":871,"style":872},[2663,2668,2673],{"type":849,"tag":869,"props":2664,"children":2665},{"style":888},[2666],{"type":854,"value":2667},"  action:",{"type":849,"tag":869,"props":2669,"children":2670},{"style":904},[2671],{"type":854,"value":2672}," 'pages.read'",{"type":849,"tag":869,"props":2674,"children":2675},{"style":882},[2676],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":2679,"children":2680},{"class":871,"style":872},[2681,2686,2690,2695,2700,2704,2709,2714,2719,2724,2729,2733,2737,2742],{"type":849,"tag":869,"props":2682,"children":2683},{"style":888},[2684],{"type":854,"value":2685},"  args:",{"type":849,"tag":869,"props":2687,"children":2688},{"style":882},[2689],{"type":854,"value":885},{"type":849,"tag":869,"props":2691,"children":2692},{"style":888},[2693],{"type":854,"value":2694},"organizationId:",{"type":849,"tag":869,"props":2696,"children":2697},{"style":888},[2698],{"type":854,"value":2699}," v",{"type":849,"tag":869,"props":2701,"children":2702},{"style":882},[2703],{"type":854,"value":1637},{"type":849,"tag":869,"props":2705,"children":2706},{"style":941},[2707],{"type":854,"value":2708},"id",{"type":849,"tag":869,"props":2710,"children":2711},{"style":882},[2712],{"type":854,"value":2713},"(",{"type":849,"tag":869,"props":2715,"children":2716},{"style":904},[2717],{"type":854,"value":2718},"'organizations'",{"type":849,"tag":869,"props":2720,"children":2721},{"style":882},[2722],{"type":854,"value":2723},"), ",{"type":849,"tag":869,"props":2725,"children":2726},{"style":888},[2727],{"type":854,"value":2728},"slug:",{"type":849,"tag":869,"props":2730,"children":2731},{"style":888},[2732],{"type":854,"value":2699},{"type":849,"tag":869,"props":2734,"children":2735},{"style":882},[2736],{"type":854,"value":1637},{"type":849,"tag":869,"props":2738,"children":2739},{"style":941},[2740],{"type":854,"value":2741},"string",{"type":849,"tag":869,"props":2743,"children":2744},{"style":882},[2745],{"type":854,"value":2746},"() },",{"type":854,"value":909},{"type":849,"tag":869,"props":2749,"children":2750},{"class":871,"style":872},[2751,2756,2760,2764,2769,2773,2777,2781,2785,2790,2794,2798,2803,2808,2813,2817,2821,2825,2829,2834,2838,2842,2846],{"type":849,"tag":869,"props":2752,"children":2753},{"style":888},[2754],{"type":854,"value":2755},"  returns:",{"type":849,"tag":869,"props":2757,"children":2758},{"style":888},[2759],{"type":854,"value":2699},{"type":849,"tag":869,"props":2761,"children":2762},{"style":882},[2763],{"type":854,"value":1637},{"type":849,"tag":869,"props":2765,"children":2766},{"style":941},[2767],{"type":854,"value":2768},"union",{"type":849,"tag":869,"props":2770,"children":2771},{"style":882},[2772],{"type":854,"value":2713},{"type":849,"tag":869,"props":2774,"children":2775},{"style":888},[2776],{"type":854,"value":2560},{"type":849,"tag":869,"props":2778,"children":2779},{"style":882},[2780],{"type":854,"value":1637},{"type":849,"tag":869,"props":2782,"children":2783},{"style":941},[2784],{"type":854,"value":1981},{"type":849,"tag":869,"props":2786,"children":2787},{"style":882},[2788],{"type":854,"value":2789},"(), ",{"type":849,"tag":869,"props":2791,"children":2792},{"style":888},[2793],{"type":854,"value":2560},{"type":849,"tag":869,"props":2795,"children":2796},{"style":882},[2797],{"type":854,"value":1637},{"type":849,"tag":869,"props":2799,"children":2800},{"style":941},[2801],{"type":854,"value":2802},"object",{"type":849,"tag":869,"props":2804,"children":2805},{"style":882},[2806],{"type":854,"value":2807},"({ ",{"type":849,"tag":869,"props":2809,"children":2810},{"style":888},[2811],{"type":854,"value":2812},"title:",{"type":849,"tag":869,"props":2814,"children":2815},{"style":888},[2816],{"type":854,"value":2699},{"type":849,"tag":869,"props":2818,"children":2819},{"style":882},[2820],{"type":854,"value":1637},{"type":849,"tag":869,"props":2822,"children":2823},{"style":941},[2824],{"type":854,"value":2741},{"type":849,"tag":869,"props":2826,"children":2827},{"style":882},[2828],{"type":854,"value":2789},{"type":849,"tag":869,"props":2830,"children":2831},{"style":888},[2832],{"type":854,"value":2833},"body:",{"type":849,"tag":869,"props":2835,"children":2836},{"style":888},[2837],{"type":854,"value":2699},{"type":849,"tag":869,"props":2839,"children":2840},{"style":882},[2841],{"type":854,"value":1637},{"type":849,"tag":869,"props":2843,"children":2844},{"style":941},[2845],{"type":854,"value":2741},{"type":849,"tag":869,"props":2847,"children":2848},{"style":882},[2849],{"type":854,"value":2850},"() })),",{"type":854,"value":909},{"type":849,"tag":869,"props":2853,"children":2854},{"class":871,"style":872},[2855,2860,2864,2869,2873,2877,2882,2887,2891,2896,2901,2905],{"type":849,"tag":869,"props":2856,"children":2857},{"style":941},[2858],{"type":854,"value":2859},"  handler",{"type":849,"tag":869,"props":2861,"children":2862},{"style":888},[2863],{"type":854,"value":1316},{"type":849,"tag":869,"props":2865,"children":2866},{"style":924},[2867],{"type":854,"value":2868}," async",{"type":849,"tag":869,"props":2870,"children":2871},{"style":882},[2872],{"type":854,"value":1609},{"type":849,"tag":869,"props":2874,"children":2875},{"style":888},[2876],{"type":854,"value":2181},{"type":849,"tag":869,"props":2878,"children":2879},{"style":882},[2880],{"type":854,"value":2881},", { ",{"type":849,"tag":869,"props":2883,"children":2884},{"style":888},[2885],{"type":854,"value":2886},"organizationId",{"type":849,"tag":869,"props":2888,"children":2889},{"style":882},[2890],{"type":854,"value":1262},{"type":849,"tag":869,"props":2892,"children":2893},{"style":888},[2894],{"type":854,"value":2895},"slug",{"type":849,"tag":869,"props":2897,"children":2898},{"style":882},[2899],{"type":854,"value":2900}," }) ",{"type":849,"tag":869,"props":2902,"children":2903},{"style":924},[2904],{"type":854,"value":1624},{"type":849,"tag":869,"props":2906,"children":2907},{"style":882},[2908],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":2911,"children":2912},{"class":871,"style":872},[2913,2918,2923,2927,2932,2937,2941],{"type":849,"tag":869,"props":2914,"children":2915},{"style":924},[2916],{"type":854,"value":2917},"    const",{"type":849,"tag":869,"props":2919,"children":2920},{"style":930},[2921],{"type":854,"value":2922}," page",{"type":849,"tag":869,"props":2924,"children":2925},{"style":882},[2926],{"type":854,"value":938},{"type":849,"tag":869,"props":2928,"children":2929},{"style":876},[2930],{"type":854,"value":2931},"await",{"type":849,"tag":869,"props":2933,"children":2934},{"style":888},[2935],{"type":854,"value":2936}," ctx",{"type":849,"tag":869,"props":2938,"children":2939},{"style":882},[2940],{"type":854,"value":1637},{"type":849,"tag":869,"props":2942,"children":2943},{"style":888},[2944],{"type":854,"value":2945},"db",{"type":854,"value":909},{"type":849,"tag":869,"props":2948,"children":2949},{"class":871,"style":872},[2950,2955,2959,2963,2968],{"type":849,"tag":869,"props":2951,"children":2952},{"style":882},[2953],{"type":854,"value":2954},"      .",{"type":849,"tag":869,"props":2956,"children":2957},{"style":941},[2958],{"type":854,"value":2603},{"type":849,"tag":869,"props":2960,"children":2961},{"style":882},[2962],{"type":854,"value":2713},{"type":849,"tag":869,"props":2964,"children":2965},{"style":904},[2966],{"type":854,"value":2967},"'pages'",{"type":849,"tag":869,"props":2969,"children":2970},{"style":882},[2971],{"type":854,"value":2972},")",{"type":854,"value":909},{"type":849,"tag":869,"props":2975,"children":2976},{"class":871,"style":872},[2977,2981,2986,2990,2995,3000,3005,3009],{"type":849,"tag":869,"props":2978,"children":2979},{"style":882},[2980],{"type":854,"value":2954},{"type":849,"tag":869,"props":2982,"children":2983},{"style":941},[2984],{"type":854,"value":2985},"withIndex",{"type":849,"tag":869,"props":2987,"children":2988},{"style":882},[2989],{"type":854,"value":2713},{"type":849,"tag":869,"props":2991,"children":2992},{"style":904},[2993],{"type":854,"value":2994},"'by_org_status_slug'",{"type":849,"tag":869,"props":2996,"children":2997},{"style":882},[2998],{"type":854,"value":2999},", (",{"type":849,"tag":869,"props":3001,"children":3002},{"style":888},[3003],{"type":854,"value":3004},"q",{"type":849,"tag":869,"props":3006,"children":3007},{"style":882},[3008],{"type":854,"value":1619},{"type":849,"tag":869,"props":3010,"children":3011},{"style":924},[3012],{"type":854,"value":1624},{"type":854,"value":909},{"type":849,"tag":869,"props":3015,"children":3016},{"class":871,"style":872},[3017,3022,3026,3031,3035,3040,3044,3048,3053,3057,3061,3066,3070,3074,3078,3082,3086,3091,3095,3099],{"type":849,"tag":869,"props":3018,"children":3019},{"style":888},[3020],{"type":854,"value":3021},"        q",{"type":849,"tag":869,"props":3023,"children":3024},{"style":882},[3025],{"type":854,"value":1637},{"type":849,"tag":869,"props":3027,"children":3028},{"style":941},[3029],{"type":854,"value":3030},"eq",{"type":849,"tag":869,"props":3032,"children":3033},{"style":882},[3034],{"type":854,"value":2713},{"type":849,"tag":869,"props":3036,"children":3037},{"style":904},[3038],{"type":854,"value":3039},"'organizationId'",{"type":849,"tag":869,"props":3041,"children":3042},{"style":882},[3043],{"type":854,"value":1262},{"type":849,"tag":869,"props":3045,"children":3046},{"style":888},[3047],{"type":854,"value":2886},{"type":849,"tag":869,"props":3049,"children":3050},{"style":882},[3051],{"type":854,"value":3052},").",{"type":849,"tag":869,"props":3054,"children":3055},{"style":941},[3056],{"type":854,"value":3030},{"type":849,"tag":869,"props":3058,"children":3059},{"style":882},[3060],{"type":854,"value":2713},{"type":849,"tag":869,"props":3062,"children":3063},{"style":904},[3064],{"type":854,"value":3065},"'status'",{"type":849,"tag":869,"props":3067,"children":3068},{"style":882},[3069],{"type":854,"value":1262},{"type":849,"tag":869,"props":3071,"children":3072},{"style":904},[3073],{"type":854,"value":1652},{"type":849,"tag":869,"props":3075,"children":3076},{"style":882},[3077],{"type":854,"value":3052},{"type":849,"tag":869,"props":3079,"children":3080},{"style":941},[3081],{"type":854,"value":3030},{"type":849,"tag":869,"props":3083,"children":3084},{"style":882},[3085],{"type":854,"value":2713},{"type":849,"tag":869,"props":3087,"children":3088},{"style":904},[3089],{"type":854,"value":3090},"'slug'",{"type":849,"tag":869,"props":3092,"children":3093},{"style":882},[3094],{"type":854,"value":1262},{"type":849,"tag":869,"props":3096,"children":3097},{"style":888},[3098],{"type":854,"value":2895},{"type":849,"tag":869,"props":3100,"children":3101},{"style":882},[3102],{"type":854,"value":1677},{"type":854,"value":909},{"type":849,"tag":869,"props":3105,"children":3106},{"class":871,"style":872},[3107],{"type":849,"tag":869,"props":3108,"children":3109},{"style":882},[3110],{"type":854,"value":3111},"      )",{"type":854,"value":909},{"type":849,"tag":869,"props":3114,"children":3115},{"class":871,"style":872},[3116,3120,3125],{"type":849,"tag":869,"props":3117,"children":3118},{"style":882},[3119],{"type":854,"value":2954},{"type":849,"tag":869,"props":3121,"children":3122},{"style":941},[3123],{"type":854,"value":3124},"unique",{"type":849,"tag":869,"props":3126,"children":3127},{"style":882},[3128],{"type":854,"value":3129},"()",{"type":854,"value":909},{"type":849,"tag":869,"props":3132,"children":3133},{"class":871,"style":872},[3134,3139,3143,3148,3152,3156,3160,3165,3169,3173,3177,3181,3186],{"type":849,"tag":869,"props":3135,"children":3136},{"style":876},[3137],{"type":854,"value":3138},"    return",{"type":849,"tag":869,"props":3140,"children":3141},{"style":888},[3142],{"type":854,"value":2922},{"type":849,"tag":869,"props":3144,"children":3145},{"style":882},[3146],{"type":854,"value":3147}," && { ",{"type":849,"tag":869,"props":3149,"children":3150},{"style":888},[3151],{"type":854,"value":2812},{"type":849,"tag":869,"props":3153,"children":3154},{"style":888},[3155],{"type":854,"value":2922},{"type":849,"tag":869,"props":3157,"children":3158},{"style":882},[3159],{"type":854,"value":1637},{"type":849,"tag":869,"props":3161,"children":3162},{"style":888},[3163],{"type":854,"value":3164},"title",{"type":849,"tag":869,"props":3166,"children":3167},{"style":882},[3168],{"type":854,"value":1262},{"type":849,"tag":869,"props":3170,"children":3171},{"style":888},[3172],{"type":854,"value":2833},{"type":849,"tag":869,"props":3174,"children":3175},{"style":888},[3176],{"type":854,"value":2922},{"type":849,"tag":869,"props":3178,"children":3179},{"style":882},[3180],{"type":854,"value":1637},{"type":849,"tag":869,"props":3182,"children":3183},{"style":888},[3184],{"type":854,"value":3185},"body",{"type":849,"tag":869,"props":3187,"children":3188},{"style":882},[3189],{"type":854,"value":3190}," }",{"type":854,"value":909},{"type":849,"tag":869,"props":3193,"children":3194},{"class":871,"style":872},[3195],{"type":849,"tag":869,"props":3196,"children":3197},{"style":882},[3198],{"type":854,"value":1289},{"type":854,"value":909},{"type":849,"tag":869,"props":3201,"children":3202},{"class":871,"style":872},[3203],{"type":849,"tag":869,"props":3204,"children":3205},{"style":882},[3206],{"type":854,"value":1779},{"type":854,"value":909},{"type":849,"tag":869,"props":3209,"children":3210},{"class":871,"style":872},[],{"type":854,"value":909},{"type":849,"tag":869,"props":3213,"children":3214},{"class":871,"style":872},[3215,3219,3223,3228,3232,3236],{"type":849,"tag":869,"props":3216,"children":3217},{"style":876},[3218],{"type":854,"value":921},{"type":849,"tag":869,"props":3220,"children":3221},{"style":924},[3222],{"type":854,"value":927},{"type":849,"tag":869,"props":3224,"children":3225},{"style":930},[3226],{"type":854,"value":3227}," edit",{"type":849,"tag":869,"props":3229,"children":3230},{"style":882},[3231],{"type":854,"value":938},{"type":849,"tag":869,"props":3233,"children":3234},{"style":941},[3235],{"type":854,"value":2594},{"type":849,"tag":869,"props":3237,"children":3238},{"style":882},[3239],{"type":854,"value":948},{"type":854,"value":909},{"type":849,"tag":869,"props":3242,"children":3243},{"class":871,"style":872},[3244,3248,3253],{"type":849,"tag":869,"props":3245,"children":3246},{"style":888},[3247],{"type":854,"value":2667},{"type":849,"tag":869,"props":3249,"children":3250},{"style":904},[3251],{"type":854,"value":3252}," 'pages.edit'",{"type":849,"tag":869,"props":3254,"children":3255},{"style":882},[3256],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":3259,"children":3260},{"class":871,"style":872},[3261],{"type":849,"tag":869,"props":3262,"children":3263},{"style":1589},[3264],{"type":854,"value":3265},"  \u002F\u002F `pages` has an anyOf rule, so the call names its tenant itself.",{"type":854,"value":909},{"type":849,"tag":869,"props":3268,"children":3269},{"class":871,"style":872},[3270,3274],{"type":849,"tag":869,"props":3271,"children":3272},{"style":888},[3273],{"type":854,"value":2685},{"type":849,"tag":869,"props":3275,"children":3276},{"style":882},[3277],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":3280,"children":3281},{"class":871,"style":872},[3282,3287,3291,3295,3299,3303,3307],{"type":849,"tag":869,"props":3283,"children":3284},{"style":888},[3285],{"type":854,"value":3286},"    organizationId:",{"type":849,"tag":869,"props":3288,"children":3289},{"style":888},[3290],{"type":854,"value":2699},{"type":849,"tag":869,"props":3292,"children":3293},{"style":882},[3294],{"type":854,"value":1637},{"type":849,"tag":869,"props":3296,"children":3297},{"style":941},[3298],{"type":854,"value":2708},{"type":849,"tag":869,"props":3300,"children":3301},{"style":882},[3302],{"type":854,"value":2713},{"type":849,"tag":869,"props":3304,"children":3305},{"style":904},[3306],{"type":854,"value":2718},{"type":849,"tag":869,"props":3308,"children":3309},{"style":882},[3310],{"type":854,"value":1677},{"type":854,"value":909},{"type":849,"tag":869,"props":3313,"children":3314},{"class":871,"style":872},[3315,3320,3324,3328,3332,3336,3340],{"type":849,"tag":869,"props":3316,"children":3317},{"style":888},[3318],{"type":854,"value":3319},"    pageId:",{"type":849,"tag":869,"props":3321,"children":3322},{"style":888},[3323],{"type":854,"value":2699},{"type":849,"tag":869,"props":3325,"children":3326},{"style":882},[3327],{"type":854,"value":1637},{"type":849,"tag":869,"props":3329,"children":3330},{"style":941},[3331],{"type":854,"value":2708},{"type":849,"tag":869,"props":3333,"children":3334},{"style":882},[3335],{"type":854,"value":2713},{"type":849,"tag":869,"props":3337,"children":3338},{"style":904},[3339],{"type":854,"value":2967},{"type":849,"tag":869,"props":3341,"children":3342},{"style":882},[3343],{"type":854,"value":1677},{"type":854,"value":909},{"type":849,"tag":869,"props":3346,"children":3347},{"class":871,"style":872},[3348,3353,3357,3361,3365],{"type":849,"tag":869,"props":3349,"children":3350},{"style":888},[3351],{"type":854,"value":3352},"    body:",{"type":849,"tag":869,"props":3354,"children":3355},{"style":888},[3356],{"type":854,"value":2699},{"type":849,"tag":869,"props":3358,"children":3359},{"style":882},[3360],{"type":854,"value":1637},{"type":849,"tag":869,"props":3362,"children":3363},{"style":941},[3364],{"type":854,"value":2741},{"type":849,"tag":869,"props":3366,"children":3367},{"style":882},[3368],{"type":854,"value":3369},"(),",{"type":854,"value":909},{"type":849,"tag":869,"props":3372,"children":3373},{"class":871,"style":872},[3374,3379,3383,3387,3391,3395,3399,3403,3408,3412,3417,3421,3425,3429,3433,3437,3441],{"type":849,"tag":869,"props":3375,"children":3376},{"style":888},[3377],{"type":854,"value":3378},"    status:",{"type":849,"tag":869,"props":3380,"children":3381},{"style":888},[3382],{"type":854,"value":2699},{"type":849,"tag":869,"props":3384,"children":3385},{"style":882},[3386],{"type":854,"value":1637},{"type":849,"tag":869,"props":3388,"children":3389},{"style":941},[3390],{"type":854,"value":2768},{"type":849,"tag":869,"props":3392,"children":3393},{"style":882},[3394],{"type":854,"value":2713},{"type":849,"tag":869,"props":3396,"children":3397},{"style":888},[3398],{"type":854,"value":2560},{"type":849,"tag":869,"props":3400,"children":3401},{"style":882},[3402],{"type":854,"value":1637},{"type":849,"tag":869,"props":3404,"children":3405},{"style":941},[3406],{"type":854,"value":3407},"literal",{"type":849,"tag":869,"props":3409,"children":3410},{"style":882},[3411],{"type":854,"value":2713},{"type":849,"tag":869,"props":3413,"children":3414},{"style":904},[3415],{"type":854,"value":3416},"'draft'",{"type":849,"tag":869,"props":3418,"children":3419},{"style":882},[3420],{"type":854,"value":2723},{"type":849,"tag":869,"props":3422,"children":3423},{"style":888},[3424],{"type":854,"value":2560},{"type":849,"tag":869,"props":3426,"children":3427},{"style":882},[3428],{"type":854,"value":1637},{"type":849,"tag":869,"props":3430,"children":3431},{"style":941},[3432],{"type":854,"value":3407},{"type":849,"tag":869,"props":3434,"children":3435},{"style":882},[3436],{"type":854,"value":2713},{"type":849,"tag":869,"props":3438,"children":3439},{"style":904},[3440],{"type":854,"value":1652},{"type":849,"tag":869,"props":3442,"children":3443},{"style":882},[3444],{"type":854,"value":3445},")),",{"type":854,"value":909},{"type":849,"tag":869,"props":3448,"children":3449},{"class":871,"style":872},[3450],{"type":849,"tag":869,"props":3451,"children":3452},{"style":882},[3453],{"type":854,"value":1289},{"type":854,"value":909},{"type":849,"tag":869,"props":3456,"children":3457},{"class":871,"style":872},[3458,3462,3466,3470,3474],{"type":849,"tag":869,"props":3459,"children":3460},{"style":888},[3461],{"type":854,"value":2755},{"type":849,"tag":869,"props":3463,"children":3464},{"style":888},[3465],{"type":854,"value":2699},{"type":849,"tag":869,"props":3467,"children":3468},{"style":882},[3469],{"type":854,"value":1637},{"type":849,"tag":869,"props":3471,"children":3472},{"style":941},[3473],{"type":854,"value":1981},{"type":849,"tag":869,"props":3475,"children":3476},{"style":882},[3477],{"type":854,"value":3369},{"type":854,"value":909},{"type":849,"tag":869,"props":3480,"children":3481},{"class":871,"style":872},[3482,3487],{"type":849,"tag":869,"props":3483,"children":3484},{"style":888},[3485],{"type":854,"value":3486},"  tool:",{"type":849,"tag":869,"props":3488,"children":3489},{"style":882},[3490],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":3493,"children":3494},{"class":871,"style":872},[3495,3500,3505],{"type":849,"tag":869,"props":3496,"children":3497},{"style":888},[3498],{"type":854,"value":3499},"    name:",{"type":849,"tag":869,"props":3501,"children":3502},{"style":904},[3503],{"type":854,"value":3504}," 'edit_page'",{"type":849,"tag":869,"props":3506,"children":3507},{"style":882},[3508],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":3511,"children":3512},{"class":871,"style":872},[3513,3518,3523],{"type":849,"tag":869,"props":3514,"children":3515},{"style":888},[3516],{"type":854,"value":3517},"    description:",{"type":849,"tag":869,"props":3519,"children":3520},{"style":904},[3521],{"type":854,"value":3522}," 'Change the text of a page. Keep it a draft, or publish it.'",{"type":849,"tag":869,"props":3524,"children":3525},{"style":882},[3526],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":3529,"children":3530},{"class":871,"style":872},[3531],{"type":849,"tag":869,"props":3532,"children":3533},{"style":882},[3534],{"type":854,"value":1289},{"type":854,"value":909},{"type":849,"tag":869,"props":3537,"children":3538},{"class":871,"style":872},[3539,3544,3548,3552,3556,3560,3564,3569,3573,3577,3581,3585],{"type":849,"tag":869,"props":3540,"children":3541},{"style":941},[3542],{"type":854,"value":3543},"  plan",{"type":849,"tag":869,"props":3545,"children":3546},{"style":888},[3547],{"type":854,"value":1316},{"type":849,"tag":869,"props":3549,"children":3550},{"style":924},[3551],{"type":854,"value":2868},{"type":849,"tag":869,"props":3553,"children":3554},{"style":882},[3555],{"type":854,"value":1609},{"type":849,"tag":869,"props":3557,"children":3558},{"style":888},[3559],{"type":854,"value":2181},{"type":849,"tag":869,"props":3561,"children":3562},{"style":882},[3563],{"type":854,"value":2881},{"type":849,"tag":869,"props":3565,"children":3566},{"style":888},[3567],{"type":854,"value":3568},"pageId",{"type":849,"tag":869,"props":3570,"children":3571},{"style":882},[3572],{"type":854,"value":1262},{"type":849,"tag":869,"props":3574,"children":3575},{"style":888},[3576],{"type":854,"value":1642},{"type":849,"tag":869,"props":3578,"children":3579},{"style":882},[3580],{"type":854,"value":2900},{"type":849,"tag":869,"props":3582,"children":3583},{"style":924},[3584],{"type":854,"value":1624},{"type":849,"tag":869,"props":3586,"children":3587},{"style":882},[3588],{"type":854,"value":3589}," ({",{"type":854,"value":909},{"type":849,"tag":869,"props":3592,"children":3593},{"class":871,"style":872},[3594,3599,3604,3609,3613,3618,3623,3628,3633,3638,3643,3648,3653,3657,3662,3666,3670,3674,3678,3682,3687,3691,3695,3700,3704,3708,3713],{"type":849,"tag":869,"props":3595,"children":3596},{"style":888},[3597],{"type":854,"value":3598},"    summary:",{"type":849,"tag":869,"props":3600,"children":3601},{"style":904},[3602],{"type":854,"value":3603}," `",{"type":849,"tag":869,"props":3605,"children":3606},{"style":924},[3607],{"type":854,"value":3608},"${",{"type":849,"tag":869,"props":3610,"children":3611},{"style":888},[3612],{"type":854,"value":1642},{"type":849,"tag":869,"props":3614,"children":3615},{"style":882},[3616],{"type":854,"value":3617}," ===",{"type":849,"tag":869,"props":3619,"children":3620},{"style":904},[3621],{"type":854,"value":3622}," 'published'",{"type":849,"tag":869,"props":3624,"children":3625},{"style":882},[3626],{"type":854,"value":3627}," ?",{"type":849,"tag":869,"props":3629,"children":3630},{"style":904},[3631],{"type":854,"value":3632}," 'Publish'",{"type":849,"tag":869,"props":3634,"children":3635},{"style":882},[3636],{"type":854,"value":3637}," :",{"type":849,"tag":869,"props":3639,"children":3640},{"style":904},[3641],{"type":854,"value":3642}," 'Edit'",{"type":849,"tag":869,"props":3644,"children":3645},{"style":924},[3646],{"type":854,"value":3647},"}",{"type":849,"tag":869,"props":3649,"children":3650},{"style":904},[3651],{"type":854,"value":3652}," the page \"",{"type":849,"tag":869,"props":3654,"children":3655},{"style":924},[3656],{"type":854,"value":3608},{"type":849,"tag":869,"props":3658,"children":3660},{"style":3659},"color:#000000FF;--shiki-dark:#D4D4D4",[3661],{"type":854,"value":2713},{"type":849,"tag":869,"props":3663,"children":3664},{"style":876},[3665],{"type":854,"value":2931},{"type":849,"tag":869,"props":3667,"children":3668},{"style":888},[3669],{"type":854,"value":2936},{"type":849,"tag":869,"props":3671,"children":3672},{"style":3659},[3673],{"type":854,"value":1637},{"type":849,"tag":869,"props":3675,"children":3676},{"style":888},[3677],{"type":854,"value":2945},{"type":849,"tag":869,"props":3679,"children":3680},{"style":3659},[3681],{"type":854,"value":1637},{"type":849,"tag":869,"props":3683,"children":3684},{"style":941},[3685],{"type":854,"value":3686},"get",{"type":849,"tag":869,"props":3688,"children":3689},{"style":3659},[3690],{"type":854,"value":2713},{"type":849,"tag":869,"props":3692,"children":3693},{"style":888},[3694],{"type":854,"value":3568},{"type":849,"tag":869,"props":3696,"children":3697},{"style":3659},[3698],{"type":854,"value":3699},"))?.",{"type":849,"tag":869,"props":3701,"children":3702},{"style":888},[3703],{"type":854,"value":3164},{"type":849,"tag":869,"props":3705,"children":3706},{"style":924},[3707],{"type":854,"value":3647},{"type":849,"tag":869,"props":3709,"children":3710},{"style":904},[3711],{"type":854,"value":3712},"\".`",{"type":849,"tag":869,"props":3714,"children":3715},{"style":882},[3716],{"type":854,"value":976},{"type":854,"value":909},{"type":849,"tag":869,"props":3719,"children":3720},{"class":871,"style":872},[3721],{"type":849,"tag":869,"props":3722,"children":3723},{"style":882},[3724],{"type":854,"value":3725},"  }),",{"type":854,"value":909},{"type":849,"tag":869,"props":3728,"children":3729},{"class":871,"style":872},[3730,3734,3738,3742,3746,3750,3754,3758,3762,3766,3770,3774,3778,3782],{"type":849,"tag":869,"props":3731,"children":3732},{"style":941},[3733],{"type":854,"value":2859},{"type":849,"tag":869,"props":3735,"children":3736},{"style":888},[3737],{"type":854,"value":1316},{"type":849,"tag":869,"props":3739,"children":3740},{"style":924},[3741],{"type":854,"value":2868},{"type":849,"tag":869,"props":3743,"children":3744},{"style":882},[3745],{"type":854,"value":1609},{"type":849,"tag":869,"props":3747,"children":3748},{"style":888},[3749],{"type":854,"value":2181},{"type":849,"tag":869,"props":3751,"children":3752},{"style":882},[3753],{"type":854,"value":2881},{"type":849,"tag":869,"props":3755,"children":3756},{"style":888},[3757],{"type":854,"value":3568},{"type":849,"tag":869,"props":3759,"children":3760},{"style":882},[3761],{"type":854,"value":1262},{"type":849,"tag":869,"props":3763,"children":3764},{"style":888},[3765],{"type":854,"value":3185},{"type":849,"tag":869,"props":3767,"children":3768},{"style":882},[3769],{"type":854,"value":1262},{"type":849,"tag":869,"props":3771,"children":3772},{"style":888},[3773],{"type":854,"value":1642},{"type":849,"tag":869,"props":3775,"children":3776},{"style":882},[3777],{"type":854,"value":2900},{"type":849,"tag":869,"props":3779,"children":3780},{"style":924},[3781],{"type":854,"value":1624},{"type":849,"tag":869,"props":3783,"children":3784},{"style":882},[3785],{"type":854,"value":1103},{"type":854,"value":909},{"type":849,"tag":869,"props":3788,"children":3789},{"class":871,"style":872},[3790,3795,3799,3803,3807,3811,3816,3820,3824,3828,3832,3836,3840],{"type":849,"tag":869,"props":3791,"children":3792},{"style":876},[3793],{"type":854,"value":3794},"    await",{"type":849,"tag":869,"props":3796,"children":3797},{"style":888},[3798],{"type":854,"value":2936},{"type":849,"tag":869,"props":3800,"children":3801},{"style":882},[3802],{"type":854,"value":1637},{"type":849,"tag":869,"props":3804,"children":3805},{"style":888},[3806],{"type":854,"value":2945},{"type":849,"tag":869,"props":3808,"children":3809},{"style":882},[3810],{"type":854,"value":1637},{"type":849,"tag":869,"props":3812,"children":3813},{"style":941},[3814],{"type":854,"value":3815},"patch",{"type":849,"tag":869,"props":3817,"children":3818},{"style":882},[3819],{"type":854,"value":2713},{"type":849,"tag":869,"props":3821,"children":3822},{"style":888},[3823],{"type":854,"value":3568},{"type":849,"tag":869,"props":3825,"children":3826},{"style":882},[3827],{"type":854,"value":2881},{"type":849,"tag":869,"props":3829,"children":3830},{"style":888},[3831],{"type":854,"value":3185},{"type":849,"tag":869,"props":3833,"children":3834},{"style":882},[3835],{"type":854,"value":1262},{"type":849,"tag":869,"props":3837,"children":3838},{"style":888},[3839],{"type":854,"value":1642},{"type":849,"tag":869,"props":3841,"children":3842},{"style":882},[3843],{"type":854,"value":3844}," })",{"type":854,"value":909},{"type":849,"tag":869,"props":3847,"children":3848},{"class":871,"style":872},[3849,3853],{"type":849,"tag":869,"props":3850,"children":3851},{"style":876},[3852],{"type":854,"value":3138},{"type":849,"tag":869,"props":3854,"children":3855},{"style":924},[3856],{"type":854,"value":3857}," null",{"type":854,"value":909},{"type":849,"tag":869,"props":3860,"children":3861},{"class":871,"style":872},[3862],{"type":849,"tag":869,"props":3863,"children":3864},{"style":882},[3865],{"type":854,"value":1289},{"type":854,"value":909},{"type":849,"tag":869,"props":3868,"children":3869},{"class":871,"style":872},[3870],{"type":849,"tag":869,"props":3871,"children":3872},{"style":882},[3873],{"type":854,"value":1779},{"type":849,"tag":1781,"props":3875,"children":3877},{"id":3876},"check-a-permission-in-the-browser",[3878],{"type":854,"value":3879},"Check a permission in the browser",{"type":849,"tag":850,"props":3881,"children":3882},{},[3883,3888],{"type":849,"tag":864,"props":3884,"children":3885},{},[3886],{"type":854,"value":3887},"can(policy, action, role)",{"type":854,"value":3889}," gives the same answer as the server for a person\nwith that role. Use it to hide a button. It is not a security check: the\noperation checks again.",{"type":849,"tag":850,"props":3891,"children":3892},{},[3893,3895,3899,3900,3905,3907,3912],{"type":854,"value":3894},"Import it, ",{"type":849,"tag":864,"props":3896,"children":3897},{},[3898],{"type":854,"value":891},{"type":854,"value":2008},{"type":849,"tag":864,"props":3901,"children":3902},{},[3903],{"type":854,"value":3904},"consentScopes",{"type":854,"value":3906}," from\n",{"type":849,"tag":864,"props":3908,"children":3909},{},[3910],{"type":854,"value":3911},"@lupinum\u002Fbetter-convex-functions\u002Fpolicy",{"type":854,"value":3913}," in code the browser loads. That\nentry imports nothing from Convex's server code; the root entry does.",{"type":849,"tag":857,"props":3915,"children":3917},{"language":859,"filename":3916,"class":861},"app\u002Futils\u002Fpermissions.ts",[3918],{"type":849,"tag":864,"props":3919,"children":3920},{"class":866},[3921,3963,3964,3967,3968,3997,3998,4001,4002,4048,4049,4052,4053,4061,4062,4110,4111,4152,4153],{"type":849,"tag":869,"props":3922,"children":3923},{"class":871,"style":872},[3924,3928,3932,3937,3941,3946,3951,3955,3959],{"type":849,"tag":869,"props":3925,"children":3926},{"style":876},[3927],{"type":854,"value":879},{"type":849,"tag":869,"props":3929,"children":3930},{"style":882},[3931],{"type":854,"value":885},{"type":849,"tag":869,"props":3933,"children":3934},{"style":888},[3935],{"type":854,"value":3936},"can",{"type":849,"tag":869,"props":3938,"children":3939},{"style":882},[3940],{"type":854,"value":1262},{"type":849,"tag":869,"props":3942,"children":3943},{"style":876},[3944],{"type":854,"value":3945},"type",{"type":849,"tag":869,"props":3947,"children":3948},{"style":888},[3949],{"type":854,"value":3950}," RoleOf",{"type":849,"tag":869,"props":3952,"children":3953},{"style":882},[3954],{"type":854,"value":896},{"type":849,"tag":869,"props":3956,"children":3957},{"style":876},[3958],{"type":854,"value":901},{"type":849,"tag":869,"props":3960,"children":3961},{"style":904},[3962],{"type":854,"value":907},{"type":854,"value":909},{"type":849,"tag":869,"props":3965,"children":3966},{"class":871,"style":872},[],{"type":854,"value":909},{"type":849,"tag":869,"props":3969,"children":3970},{"class":871,"style":872},[3971,3975,3979,3984,3988,3992],{"type":849,"tag":869,"props":3972,"children":3973},{"style":876},[3974],{"type":854,"value":879},{"type":849,"tag":869,"props":3976,"children":3977},{"style":882},[3978],{"type":854,"value":885},{"type":849,"tag":869,"props":3980,"children":3981},{"style":888},[3982],{"type":854,"value":3983},"policy",{"type":849,"tag":869,"props":3985,"children":3986},{"style":882},[3987],{"type":854,"value":896},{"type":849,"tag":869,"props":3989,"children":3990},{"style":876},[3991],{"type":854,"value":901},{"type":849,"tag":869,"props":3993,"children":3994},{"style":904},[3995],{"type":854,"value":3996}," '..\u002F..\u002Fconvex\u002Fpolicy'",{"type":854,"value":909},{"type":849,"tag":869,"props":3999,"children":4000},{"class":871,"style":872},[],{"type":854,"value":909},{"type":849,"tag":869,"props":4003,"children":4004},{"class":871,"style":872},[4005,4009,4014,4020,4024,4029,4034,4039,4043],{"type":849,"tag":869,"props":4006,"children":4007},{"style":876},[4008],{"type":854,"value":921},{"type":849,"tag":869,"props":4010,"children":4011},{"style":924},[4012],{"type":854,"value":4013}," type",{"type":849,"tag":869,"props":4015,"children":4017},{"style":4016},"color:#267F99;--shiki-dark:#4EC9B0",[4018],{"type":854,"value":4019}," Role",{"type":849,"tag":869,"props":4021,"children":4022},{"style":882},[4023],{"type":854,"value":938},{"type":849,"tag":869,"props":4025,"children":4026},{"style":4016},[4027],{"type":854,"value":4028},"RoleOf",{"type":849,"tag":869,"props":4030,"children":4031},{"style":882},[4032],{"type":854,"value":4033},"\u003C",{"type":849,"tag":869,"props":4035,"children":4036},{"style":924},[4037],{"type":854,"value":4038},"typeof",{"type":849,"tag":869,"props":4040,"children":4041},{"style":888},[4042],{"type":854,"value":933},{"type":849,"tag":869,"props":4044,"children":4045},{"style":882},[4046],{"type":854,"value":4047},">",{"type":854,"value":909},{"type":849,"tag":869,"props":4050,"children":4051},{"class":871,"style":872},[],{"type":854,"value":909},{"type":849,"tag":869,"props":4054,"children":4055},{"class":871,"style":872},[4056],{"type":849,"tag":869,"props":4057,"children":4058},{"style":1589},[4059],{"type":854,"value":4060},"\u002F** Shows the archive button only to roles that may archive. *\u002F",{"type":854,"value":909},{"type":849,"tag":869,"props":4063,"children":4064},{"class":871,"style":872},[4065,4069,4074,4079,4083,4087,4091,4096,4101,4105],{"type":849,"tag":869,"props":4066,"children":4067},{"style":876},[4068],{"type":854,"value":921},{"type":849,"tag":869,"props":4070,"children":4071},{"style":924},[4072],{"type":854,"value":4073}," function",{"type":849,"tag":869,"props":4075,"children":4076},{"style":941},[4077],{"type":854,"value":4078}," canArchive",{"type":849,"tag":869,"props":4080,"children":4081},{"style":882},[4082],{"type":854,"value":2713},{"type":849,"tag":869,"props":4084,"children":4085},{"style":888},[4086],{"type":854,"value":2369},{"type":849,"tag":869,"props":4088,"children":4089},{"style":882},[4090],{"type":854,"value":2167},{"type":849,"tag":869,"props":4092,"children":4093},{"style":4016},[4094],{"type":854,"value":4095},"Role",{"type":849,"tag":869,"props":4097,"children":4098},{"style":882},[4099],{"type":854,"value":4100}," | ",{"type":849,"tag":869,"props":4102,"children":4103},{"style":4016},[4104],{"type":854,"value":1981},{"type":849,"tag":869,"props":4106,"children":4107},{"style":882},[4108],{"type":854,"value":4109},") {",{"type":854,"value":909},{"type":849,"tag":869,"props":4112,"children":4113},{"class":871,"style":872},[4114,4119,4124,4128,4132,4136,4140,4144,4148],{"type":849,"tag":869,"props":4115,"children":4116},{"style":876},[4117],{"type":854,"value":4118},"  return",{"type":849,"tag":869,"props":4120,"children":4121},{"style":941},[4122],{"type":854,"value":4123}," can",{"type":849,"tag":869,"props":4125,"children":4126},{"style":882},[4127],{"type":854,"value":2713},{"type":849,"tag":869,"props":4129,"children":4130},{"style":888},[4131],{"type":854,"value":3983},{"type":849,"tag":869,"props":4133,"children":4134},{"style":882},[4135],{"type":854,"value":1262},{"type":849,"tag":869,"props":4137,"children":4138},{"style":904},[4139],{"type":854,"value":1423},{"type":849,"tag":869,"props":4141,"children":4142},{"style":882},[4143],{"type":854,"value":1262},{"type":849,"tag":869,"props":4145,"children":4146},{"style":888},[4147],{"type":854,"value":2369},{"type":849,"tag":869,"props":4149,"children":4150},{"style":882},[4151],{"type":854,"value":2972},{"type":854,"value":909},{"type":849,"tag":869,"props":4154,"children":4155},{"class":871,"style":872},[4156],{"type":849,"tag":869,"props":4157,"children":4158},{"style":882},[4159],{"type":854,"value":3647},{"type":849,"tag":850,"props":4161,"children":4162},{},[4163],{"type":854,"value":4164},"The role itself comes from your data, for example a query that returns the\nuser's organizations with their role in each.",{"type":849,"tag":1781,"props":4166,"children":4168},{"id":4167},"scopes-and-consent",[4169],{"type":854,"value":4170},"Scopes and consent",{"type":849,"tag":850,"props":4172,"children":4173},{},[4174,4179,4181,4185,4187,4192,4193,4198,4200,4205],{"type":849,"tag":864,"props":4175,"children":4176},{},[4177],{"type":854,"value":4178},"consentScopes(policy)",{"type":854,"value":4180}," turns ",{"type":849,"tag":864,"props":4182,"children":4183},{},[4184],{"type":854,"value":1869},{"type":854,"value":4186}," into the list that the MCP OAuth profile\nexpects. Pass it to ",{"type":849,"tag":864,"props":4188,"children":4189},{},[4190],{"type":854,"value":4191},"oauth.mcp.scopes",{"type":854,"value":1969},{"type":849,"tag":864,"props":4194,"children":4195},{},[4196],{"type":854,"value":4197},"createBetterConvexAuth",{"type":854,"value":4199},", as in\n",{"type":849,"tag":4201,"props":4202,"children":4203},"a",{"href":493},[4204],{"type":854,"value":488},{"type":854,"value":4206},". A host sees\nonly the tools whose actions its granted scopes include.",{"type":849,"tag":850,"props":4208,"children":4209},{},[4210],{"type":854,"value":4211},"A scope is a ceiling. It never adds a permission that the person's role does\nnot have.",{"title":4213,"searchDepth":4214,"depth":4214,"links":4215},"",4,[4216,4218,4219,4220,4221],{"id":1783,"depth":4217,"text":1786},2,{"id":2384,"depth":4217,"text":2387},{"id":2496,"depth":4217,"text":2499},{"id":3876,"depth":4217,"text":3879},{"id":4167,"depth":4217,"text":4170},"markdown","docs",{"source":4225,"path":4226,"stem":4227,"dir":4228,"extension":4229},"content","docs\u002F3.build\u002F8.functions\u002F2.policy-and-roles.md","docs\u002F3.build\u002F8.functions\u002F2.policy-and-roles","functions","md",{"requestedPath":499,"resolvedPath":499,"alternates":4231},[],{"requested":4233,"resolved":4234,"usedFallback":6},{},{"locale":8},{"previous":4236,"next":4238},{"title":488,"id":489,"canonicalKey":490,"locale":8,"draft":6,"navigation":4237,"icon":492,"path":493},{"icon":492},{"title":501,"id":502,"canonicalKey":503,"locale":8,"draft":6,"navigation":4239,"icon":505,"path":506},{"icon":505},{"left":4241,"top":4241,"width":4242,"height":4242,"rotate":4241,"vFlip":6,"hFlip":6,"body":4243},0,256,"\u003Cpath fill=\"#3178c6\" d=\"M20 0h216c11.046 0 20 8.954 20 20v216c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20V20C0 8.954 8.954 0 20 0\"\u002F>\u003Cpath fill=\"#fff\" d=\"M150.518 200.475v27.62q6.738 3.453 15.938 5.179T185.849 235q9.934 0 18.874-1.899t15.678-6.257q6.738-4.359 10.669-11.394q3.93-7.033 3.93-17.391q0-7.51-2.246-13.163a30.8 30.8 0 0 0-6.479-10.055q-4.232-4.402-10.149-7.898t-13.347-6.602q-5.442-2.245-9.761-4.359t-7.342-4.316q-3.024-2.2-4.665-4.661t-1.641-5.567q0-2.848 1.468-5.135q1.469-2.288 4.147-3.927t6.565-2.547q3.887-.906 8.638-.906q3.456 0 7.299.518q3.844.517 7.732 1.597a54 54 0 0 1 7.558 2.719a41.7 41.7 0 0 1 6.781 3.797v-25.807q-6.306-2.417-13.778-3.582T198.633 107q-9.847 0-18.658 2.115q-8.811 2.114-15.506 6.602q-6.694 4.49-10.582 11.437Q150 134.102 150 143.769q0 12.342 7.127 21.06t21.638 14.759a292 292 0 0 1 10.625 4.575q4.924 2.244 8.509 4.66t5.658 5.265t2.073 6.474a9.9 9.9 0 0 1-1.296 4.963q-1.295 2.287-3.93 3.97t-6.565 2.632t-9.2.95q-8.983 0-17.794-3.151t-16.327-9.451m-46.036-68.733H140V109H41v22.742h35.345V233h28.137z\"\u002F>",{"left":4241,"top":4241,"width":4245,"height":4245,"rotate":4241,"vFlip":6,"hFlip":6,"body":4246},24,"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\"\u002F>\u003Cpath d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"\u002F>\u003C\u002Fg>",1794905507508]