[{"data":1,"prerenderedAt":5422},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:WyUAd-rBZwXwP1tle-YiiC3XbXHG8INJ3VywHC6Fytc":842,"content-page-surround:docs:WyUAd-rBZwXwP1tle-YiiC3XbXHG8INJ3VywHC6Fytc":5410,"i-logos:typescript-icon":5415,"i-lucide:clipboard":5419},[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":501,"description":843,"navigation":844,"body":845,"type":5398,"id":502,"canonicalKey":503,"draft":6,"partial":6,"locale":8,"collection":5399,"navigationFile":6,"file":5400,"route":5405,"resolution":5407},"Give every table one rule. Every row an operation reads or writes is checked against it, so a forgotten filter fails instead of leaking data.",{"icon":505},{"type":846,"children":847,"toc":5385},"root",[848,905,2443,4275,4282,4502,4542,4561,4580,4586,4610,4905,4922,4928,5014,5019,5052,5058,5063,5168,5180,5186,5249,5261,5292,5304,5324,5342,5348],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853,856,862,864,869,871,876,878,883,884,889,891,896,898,903],{"type":854,"value":855},"text","A row rule says who may read and write the rows of one table. You give one\nrule per table in ",{"type":849,"tag":857,"props":858,"children":859},"code",{},[860],{"type":854,"value":861},"defineFunctions",{"type":854,"value":863},". Inside an operation, ",{"type":849,"tag":857,"props":865,"children":866},{},[867],{"type":854,"value":868},"ctx.db",{"type":854,"value":870}," checks\nevery row the handler reads or writes against the rule of its table, however\nthe handler reads it: ",{"type":849,"tag":857,"props":872,"children":873},{},[874],{"type":854,"value":875},"get",{"type":854,"value":877},", ",{"type":849,"tag":857,"props":879,"children":880},{},[881],{"type":854,"value":882},"withIndex",{"type":854,"value":877},{"type":849,"tag":857,"props":885,"children":886},{},[887],{"type":854,"value":888},"paginate",{"type":854,"value":890},", search, ",{"type":849,"tag":857,"props":892,"children":893},{},[894],{"type":854,"value":895},"first",{"type":854,"value":897},",\n",{"type":849,"tag":857,"props":899,"children":900},{},[901],{"type":854,"value":902},"unique",{"type":854,"value":904},", or a loop.",{"type":849,"tag":906,"props":907,"children":911},"pre",{"language":908,"filename":909,"class":910},"ts","convex\u002Fschema.ts","shiki shiki-themes light-plus dark-plus dark:dark-plus",[912],{"type":849,"tag":857,"props":913,"children":915},{"class":914},"language-ts",[916,956,958,996,997,1026,1027,1030,1031,1154,1155,1158,1159,1181,1182,1275,1276,1313,1314,1330,1331,1366,1367,1400,1401,1414,1415,1423,1424,1468,1469,1501,1502,1511,1512,1585,1586,1598,1599,1616,1617,1625,1626,1642,1643,1674,1675,1700,1701,1776,1777,1819,1820,1861,1862,1869,1870,1911,1912,1953,1954,1962,1963,1979,1980,2011,2012,2036,2037,2061,2062,2086,2087,2160,2161,2211,2212,2220,2221,2237,2238,2270,2271,2318,2319,2343,2344,2351,2352,2385,2386,2417,2418,2434,2435],{"type":849,"tag":917,"props":918,"children":921},"span",{"class":919,"style":920},"line","display: inline",[922,928,934,940,945,950],{"type":849,"tag":917,"props":923,"children":925},{"style":924},"color:#AF00DB;--shiki-dark:#C586C0",[926],{"type":854,"value":927},"import",{"type":849,"tag":917,"props":929,"children":931},{"style":930},"color:#000000;--shiki-dark:#D4D4D4",[932],{"type":854,"value":933}," { ",{"type":849,"tag":917,"props":935,"children":937},{"style":936},"color:#001080;--shiki-dark:#9CDCFE",[938],{"type":854,"value":939},"libraryTables",{"type":849,"tag":917,"props":941,"children":942},{"style":930},[943],{"type":854,"value":944}," } ",{"type":849,"tag":917,"props":946,"children":947},{"style":924},[948],{"type":854,"value":949},"from",{"type":849,"tag":917,"props":951,"children":953},{"style":952},"color:#A31515;--shiki-dark:#CE9178",[954],{"type":854,"value":955}," '@lupinum\u002Fbetter-convex-functions'",{"type":854,"value":957},"\n",{"type":849,"tag":917,"props":959,"children":960},{"class":919,"style":920},[961,965,969,974,978,983,987,991],{"type":849,"tag":917,"props":962,"children":963},{"style":924},[964],{"type":854,"value":927},{"type":849,"tag":917,"props":966,"children":967},{"style":930},[968],{"type":854,"value":933},{"type":849,"tag":917,"props":970,"children":971},{"style":936},[972],{"type":854,"value":973},"defineSchema",{"type":849,"tag":917,"props":975,"children":976},{"style":930},[977],{"type":854,"value":877},{"type":849,"tag":917,"props":979,"children":980},{"style":936},[981],{"type":854,"value":982},"defineTable",{"type":849,"tag":917,"props":984,"children":985},{"style":930},[986],{"type":854,"value":944},{"type":849,"tag":917,"props":988,"children":989},{"style":924},[990],{"type":854,"value":949},{"type":849,"tag":917,"props":992,"children":993},{"style":952},[994],{"type":854,"value":995}," 'convex\u002Fserver'",{"type":854,"value":957},{"type":849,"tag":917,"props":998,"children":999},{"class":919,"style":920},[1000,1004,1008,1013,1017,1021],{"type":849,"tag":917,"props":1001,"children":1002},{"style":924},[1003],{"type":854,"value":927},{"type":849,"tag":917,"props":1005,"children":1006},{"style":930},[1007],{"type":854,"value":933},{"type":849,"tag":917,"props":1009,"children":1010},{"style":936},[1011],{"type":854,"value":1012},"v",{"type":849,"tag":917,"props":1014,"children":1015},{"style":930},[1016],{"type":854,"value":944},{"type":849,"tag":917,"props":1018,"children":1019},{"style":924},[1020],{"type":854,"value":949},{"type":849,"tag":917,"props":1022,"children":1023},{"style":952},[1024],{"type":854,"value":1025}," 'convex\u002Fvalues'",{"type":854,"value":957},{"type":849,"tag":917,"props":1028,"children":1029},{"class":919,"style":920},[],{"type":854,"value":957},{"type":849,"tag":917,"props":1032,"children":1033},{"class":919,"style":920},[1034,1039,1045,1051,1056,1060,1065,1071,1076,1080,1084,1089,1093,1098,1103,1107,1111,1115,1119,1124,1128,1132,1136,1140,1144,1149],{"type":849,"tag":917,"props":1035,"children":1036},{"style":924},[1037],{"type":854,"value":1038},"export",{"type":849,"tag":917,"props":1040,"children":1042},{"style":1041},"color:#0000FF;--shiki-dark:#569CD6",[1043],{"type":854,"value":1044}," const",{"type":849,"tag":917,"props":1046,"children":1048},{"style":1047},"color:#0070C1;--shiki-dark:#4FC1FF",[1049],{"type":854,"value":1050}," role",{"type":849,"tag":917,"props":1052,"children":1053},{"style":930},[1054],{"type":854,"value":1055}," = ",{"type":849,"tag":917,"props":1057,"children":1058},{"style":936},[1059],{"type":854,"value":1012},{"type":849,"tag":917,"props":1061,"children":1062},{"style":930},[1063],{"type":854,"value":1064},".",{"type":849,"tag":917,"props":1066,"children":1068},{"style":1067},"color:#795E26;--shiki-dark:#DCDCAA",[1069],{"type":854,"value":1070},"union",{"type":849,"tag":917,"props":1072,"children":1073},{"style":930},[1074],{"type":854,"value":1075},"(",{"type":849,"tag":917,"props":1077,"children":1078},{"style":936},[1079],{"type":854,"value":1012},{"type":849,"tag":917,"props":1081,"children":1082},{"style":930},[1083],{"type":854,"value":1064},{"type":849,"tag":917,"props":1085,"children":1086},{"style":1067},[1087],{"type":854,"value":1088},"literal",{"type":849,"tag":917,"props":1090,"children":1091},{"style":930},[1092],{"type":854,"value":1075},{"type":849,"tag":917,"props":1094,"children":1095},{"style":952},[1096],{"type":854,"value":1097},"'owner'",{"type":849,"tag":917,"props":1099,"children":1100},{"style":930},[1101],{"type":854,"value":1102},"), ",{"type":849,"tag":917,"props":1104,"children":1105},{"style":936},[1106],{"type":854,"value":1012},{"type":849,"tag":917,"props":1108,"children":1109},{"style":930},[1110],{"type":854,"value":1064},{"type":849,"tag":917,"props":1112,"children":1113},{"style":1067},[1114],{"type":854,"value":1088},{"type":849,"tag":917,"props":1116,"children":1117},{"style":930},[1118],{"type":854,"value":1075},{"type":849,"tag":917,"props":1120,"children":1121},{"style":952},[1122],{"type":854,"value":1123},"'member'",{"type":849,"tag":917,"props":1125,"children":1126},{"style":930},[1127],{"type":854,"value":1102},{"type":849,"tag":917,"props":1129,"children":1130},{"style":936},[1131],{"type":854,"value":1012},{"type":849,"tag":917,"props":1133,"children":1134},{"style":930},[1135],{"type":854,"value":1064},{"type":849,"tag":917,"props":1137,"children":1138},{"style":1067},[1139],{"type":854,"value":1088},{"type":849,"tag":917,"props":1141,"children":1142},{"style":930},[1143],{"type":854,"value":1075},{"type":849,"tag":917,"props":1145,"children":1146},{"style":952},[1147],{"type":854,"value":1148},"'viewer'",{"type":849,"tag":917,"props":1150,"children":1151},{"style":930},[1152],{"type":854,"value":1153},"))",{"type":854,"value":957},{"type":849,"tag":917,"props":1156,"children":1157},{"class":919,"style":920},[],{"type":854,"value":957},{"type":849,"tag":917,"props":1160,"children":1161},{"class":919,"style":920},[1162,1166,1171,1176],{"type":849,"tag":917,"props":1163,"children":1164},{"style":924},[1165],{"type":854,"value":1038},{"type":849,"tag":917,"props":1167,"children":1168},{"style":924},[1169],{"type":854,"value":1170}," default",{"type":849,"tag":917,"props":1172,"children":1173},{"style":1067},[1174],{"type":854,"value":1175}," defineSchema",{"type":849,"tag":917,"props":1177,"children":1178},{"style":930},[1179],{"type":854,"value":1180},"({",{"type":854,"value":957},{"type":849,"tag":917,"props":1183,"children":1184},{"class":919,"style":920},[1185,1190,1195,1200,1205,1210,1214,1219,1224,1229,1233,1237,1241,1246,1251,1255,1260,1265,1270],{"type":849,"tag":917,"props":1186,"children":1187},{"style":936},[1188],{"type":854,"value":1189},"  users:",{"type":849,"tag":917,"props":1191,"children":1192},{"style":1067},[1193],{"type":854,"value":1194}," defineTable",{"type":849,"tag":917,"props":1196,"children":1197},{"style":930},[1198],{"type":854,"value":1199},"({ ",{"type":849,"tag":917,"props":1201,"children":1202},{"style":936},[1203],{"type":854,"value":1204},"authId:",{"type":849,"tag":917,"props":1206,"children":1207},{"style":936},[1208],{"type":854,"value":1209}," v",{"type":849,"tag":917,"props":1211,"children":1212},{"style":930},[1213],{"type":854,"value":1064},{"type":849,"tag":917,"props":1215,"children":1216},{"style":1067},[1217],{"type":854,"value":1218},"string",{"type":849,"tag":917,"props":1220,"children":1221},{"style":930},[1222],{"type":854,"value":1223},"(), ",{"type":849,"tag":917,"props":1225,"children":1226},{"style":936},[1227],{"type":854,"value":1228},"name:",{"type":849,"tag":917,"props":1230,"children":1231},{"style":936},[1232],{"type":854,"value":1209},{"type":849,"tag":917,"props":1234,"children":1235},{"style":930},[1236],{"type":854,"value":1064},{"type":849,"tag":917,"props":1238,"children":1239},{"style":1067},[1240],{"type":854,"value":1218},{"type":849,"tag":917,"props":1242,"children":1243},{"style":930},[1244],{"type":854,"value":1245},"() }).",{"type":849,"tag":917,"props":1247,"children":1248},{"style":1067},[1249],{"type":854,"value":1250},"index",{"type":849,"tag":917,"props":1252,"children":1253},{"style":930},[1254],{"type":854,"value":1075},{"type":849,"tag":917,"props":1256,"children":1257},{"style":952},[1258],{"type":854,"value":1259},"'by_auth_id'",{"type":849,"tag":917,"props":1261,"children":1262},{"style":930},[1263],{"type":854,"value":1264},", [",{"type":849,"tag":917,"props":1266,"children":1267},{"style":952},[1268],{"type":854,"value":1269},"'authId'",{"type":849,"tag":917,"props":1271,"children":1272},{"style":930},[1273],{"type":854,"value":1274},"]),",{"type":854,"value":957},{"type":849,"tag":917,"props":1277,"children":1278},{"class":919,"style":920},[1279,1284,1288,1292,1296,1300,1304,1308],{"type":849,"tag":917,"props":1280,"children":1281},{"style":936},[1282],{"type":854,"value":1283},"  organizations:",{"type":849,"tag":917,"props":1285,"children":1286},{"style":1067},[1287],{"type":854,"value":1194},{"type":849,"tag":917,"props":1289,"children":1290},{"style":930},[1291],{"type":854,"value":1199},{"type":849,"tag":917,"props":1293,"children":1294},{"style":936},[1295],{"type":854,"value":1228},{"type":849,"tag":917,"props":1297,"children":1298},{"style":936},[1299],{"type":854,"value":1209},{"type":849,"tag":917,"props":1301,"children":1302},{"style":930},[1303],{"type":854,"value":1064},{"type":849,"tag":917,"props":1305,"children":1306},{"style":1067},[1307],{"type":854,"value":1218},{"type":849,"tag":917,"props":1309,"children":1310},{"style":930},[1311],{"type":854,"value":1312},"() }),",{"type":854,"value":957},{"type":849,"tag":917,"props":1315,"children":1316},{"class":919,"style":920},[1317,1322,1326],{"type":849,"tag":917,"props":1318,"children":1319},{"style":936},[1320],{"type":854,"value":1321},"  memberships:",{"type":849,"tag":917,"props":1323,"children":1324},{"style":1067},[1325],{"type":854,"value":1194},{"type":849,"tag":917,"props":1327,"children":1328},{"style":930},[1329],{"type":854,"value":1180},{"type":854,"value":957},{"type":849,"tag":917,"props":1332,"children":1333},{"class":919,"style":920},[1334,1339,1343,1347,1352,1356,1361],{"type":849,"tag":917,"props":1335,"children":1336},{"style":936},[1337],{"type":854,"value":1338},"    organizationId:",{"type":849,"tag":917,"props":1340,"children":1341},{"style":936},[1342],{"type":854,"value":1209},{"type":849,"tag":917,"props":1344,"children":1345},{"style":930},[1346],{"type":854,"value":1064},{"type":849,"tag":917,"props":1348,"children":1349},{"style":1067},[1350],{"type":854,"value":1351},"id",{"type":849,"tag":917,"props":1353,"children":1354},{"style":930},[1355],{"type":854,"value":1075},{"type":849,"tag":917,"props":1357,"children":1358},{"style":952},[1359],{"type":854,"value":1360},"'organizations'",{"type":849,"tag":917,"props":1362,"children":1363},{"style":930},[1364],{"type":854,"value":1365},"),",{"type":854,"value":957},{"type":849,"tag":917,"props":1368,"children":1369},{"class":919,"style":920},[1370,1375,1379,1383,1387,1391,1396],{"type":849,"tag":917,"props":1371,"children":1372},{"style":936},[1373],{"type":854,"value":1374},"    userId:",{"type":849,"tag":917,"props":1376,"children":1377},{"style":936},[1378],{"type":854,"value":1209},{"type":849,"tag":917,"props":1380,"children":1381},{"style":930},[1382],{"type":854,"value":1064},{"type":849,"tag":917,"props":1384,"children":1385},{"style":1067},[1386],{"type":854,"value":1351},{"type":849,"tag":917,"props":1388,"children":1389},{"style":930},[1390],{"type":854,"value":1075},{"type":849,"tag":917,"props":1392,"children":1393},{"style":952},[1394],{"type":854,"value":1395},"'users'",{"type":849,"tag":917,"props":1397,"children":1398},{"style":930},[1399],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":1402,"children":1403},{"class":919,"style":920},[1404,1409],{"type":849,"tag":917,"props":1405,"children":1406},{"style":936},[1407],{"type":854,"value":1408},"    role",{"type":849,"tag":917,"props":1410,"children":1411},{"style":930},[1412],{"type":854,"value":1413},",",{"type":854,"value":957},{"type":849,"tag":917,"props":1416,"children":1417},{"class":919,"style":920},[1418],{"type":849,"tag":917,"props":1419,"children":1420},{"style":930},[1421],{"type":854,"value":1422},"  })",{"type":854,"value":957},{"type":849,"tag":917,"props":1425,"children":1426},{"class":919,"style":920},[1427,1432,1436,1440,1445,1449,1454,1458,1463],{"type":849,"tag":917,"props":1428,"children":1429},{"style":930},[1430],{"type":854,"value":1431},"    .",{"type":849,"tag":917,"props":1433,"children":1434},{"style":1067},[1435],{"type":854,"value":1250},{"type":849,"tag":917,"props":1437,"children":1438},{"style":930},[1439],{"type":854,"value":1075},{"type":849,"tag":917,"props":1441,"children":1442},{"style":952},[1443],{"type":854,"value":1444},"'by_org_user'",{"type":849,"tag":917,"props":1446,"children":1447},{"style":930},[1448],{"type":854,"value":1264},{"type":849,"tag":917,"props":1450,"children":1451},{"style":952},[1452],{"type":854,"value":1453},"'organizationId'",{"type":849,"tag":917,"props":1455,"children":1456},{"style":930},[1457],{"type":854,"value":877},{"type":849,"tag":917,"props":1459,"children":1460},{"style":952},[1461],{"type":854,"value":1462},"'userId'",{"type":849,"tag":917,"props":1464,"children":1465},{"style":930},[1466],{"type":854,"value":1467},"])",{"type":854,"value":957},{"type":849,"tag":917,"props":1470,"children":1471},{"class":919,"style":920},[1472,1476,1480,1484,1489,1493,1497],{"type":849,"tag":917,"props":1473,"children":1474},{"style":930},[1475],{"type":854,"value":1431},{"type":849,"tag":917,"props":1477,"children":1478},{"style":1067},[1479],{"type":854,"value":1250},{"type":849,"tag":917,"props":1481,"children":1482},{"style":930},[1483],{"type":854,"value":1075},{"type":849,"tag":917,"props":1485,"children":1486},{"style":952},[1487],{"type":854,"value":1488},"'by_org'",{"type":849,"tag":917,"props":1490,"children":1491},{"style":930},[1492],{"type":854,"value":1264},{"type":849,"tag":917,"props":1494,"children":1495},{"style":952},[1496],{"type":854,"value":1453},{"type":849,"tag":917,"props":1498,"children":1499},{"style":930},[1500],{"type":854,"value":1274},{"type":854,"value":957},{"type":849,"tag":917,"props":1503,"children":1504},{"class":919,"style":920},[1505],{"type":849,"tag":917,"props":1506,"children":1508},{"style":1507},"color:#008000;--shiki-dark:#6A9955",[1509],{"type":854,"value":1510},"  \u002F\u002F A client of an agency: a tenant inside the organization.",{"type":854,"value":957},{"type":849,"tag":917,"props":1513,"children":1514},{"class":919,"style":920},[1515,1520,1524,1528,1533,1537,1541,1545,1549,1553,1557,1561,1565,1569,1573,1577,1581],{"type":849,"tag":917,"props":1516,"children":1517},{"style":936},[1518],{"type":854,"value":1519},"  clients:",{"type":849,"tag":917,"props":1521,"children":1522},{"style":1067},[1523],{"type":854,"value":1194},{"type":849,"tag":917,"props":1525,"children":1526},{"style":930},[1527],{"type":854,"value":1199},{"type":849,"tag":917,"props":1529,"children":1530},{"style":936},[1531],{"type":854,"value":1532},"organizationId:",{"type":849,"tag":917,"props":1534,"children":1535},{"style":936},[1536],{"type":854,"value":1209},{"type":849,"tag":917,"props":1538,"children":1539},{"style":930},[1540],{"type":854,"value":1064},{"type":849,"tag":917,"props":1542,"children":1543},{"style":1067},[1544],{"type":854,"value":1351},{"type":849,"tag":917,"props":1546,"children":1547},{"style":930},[1548],{"type":854,"value":1075},{"type":849,"tag":917,"props":1550,"children":1551},{"style":952},[1552],{"type":854,"value":1360},{"type":849,"tag":917,"props":1554,"children":1555},{"style":930},[1556],{"type":854,"value":1102},{"type":849,"tag":917,"props":1558,"children":1559},{"style":936},[1560],{"type":854,"value":1228},{"type":849,"tag":917,"props":1562,"children":1563},{"style":936},[1564],{"type":854,"value":1209},{"type":849,"tag":917,"props":1566,"children":1567},{"style":930},[1568],{"type":854,"value":1064},{"type":849,"tag":917,"props":1570,"children":1571},{"style":1067},[1572],{"type":854,"value":1218},{"type":849,"tag":917,"props":1574,"children":1575},{"style":930},[1576],{"type":854,"value":1245},{"type":849,"tag":917,"props":1578,"children":1579},{"style":1067},[1580],{"type":854,"value":1250},{"type":849,"tag":917,"props":1582,"children":1583},{"style":930},[1584],{"type":854,"value":1075},{"type":854,"value":957},{"type":849,"tag":917,"props":1587,"children":1588},{"class":919,"style":920},[1589,1594],{"type":849,"tag":917,"props":1590,"children":1591},{"style":952},[1592],{"type":854,"value":1593},"    'by_org'",{"type":849,"tag":917,"props":1595,"children":1596},{"style":930},[1597],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":1600,"children":1601},{"class":919,"style":920},[1602,1607,1611],{"type":849,"tag":917,"props":1603,"children":1604},{"style":930},[1605],{"type":854,"value":1606},"    [",{"type":849,"tag":917,"props":1608,"children":1609},{"style":952},[1610],{"type":854,"value":1453},{"type":849,"tag":917,"props":1612,"children":1613},{"style":930},[1614],{"type":854,"value":1615},"],",{"type":854,"value":957},{"type":849,"tag":917,"props":1618,"children":1619},{"class":919,"style":920},[1620],{"type":849,"tag":917,"props":1621,"children":1622},{"style":930},[1623],{"type":854,"value":1624},"  ),",{"type":854,"value":957},{"type":849,"tag":917,"props":1627,"children":1628},{"class":919,"style":920},[1629,1634,1638],{"type":849,"tag":917,"props":1630,"children":1631},{"style":936},[1632],{"type":854,"value":1633},"  projects:",{"type":849,"tag":917,"props":1635,"children":1636},{"style":1067},[1637],{"type":854,"value":1194},{"type":849,"tag":917,"props":1639,"children":1640},{"style":930},[1641],{"type":854,"value":1180},{"type":854,"value":957},{"type":849,"tag":917,"props":1644,"children":1645},{"class":919,"style":920},[1646,1650,1654,1658,1662,1666,1670],{"type":849,"tag":917,"props":1647,"children":1648},{"style":936},[1649],{"type":854,"value":1338},{"type":849,"tag":917,"props":1651,"children":1652},{"style":936},[1653],{"type":854,"value":1209},{"type":849,"tag":917,"props":1655,"children":1656},{"style":930},[1657],{"type":854,"value":1064},{"type":849,"tag":917,"props":1659,"children":1660},{"style":1067},[1661],{"type":854,"value":1351},{"type":849,"tag":917,"props":1663,"children":1664},{"style":930},[1665],{"type":854,"value":1075},{"type":849,"tag":917,"props":1667,"children":1668},{"style":952},[1669],{"type":854,"value":1360},{"type":849,"tag":917,"props":1671,"children":1672},{"style":930},[1673],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":1676,"children":1677},{"class":919,"style":920},[1678,1683,1687,1691,1695],{"type":849,"tag":917,"props":1679,"children":1680},{"style":936},[1681],{"type":854,"value":1682},"    name:",{"type":849,"tag":917,"props":1684,"children":1685},{"style":936},[1686],{"type":854,"value":1209},{"type":849,"tag":917,"props":1688,"children":1689},{"style":930},[1690],{"type":854,"value":1064},{"type":849,"tag":917,"props":1692,"children":1693},{"style":1067},[1694],{"type":854,"value":1218},{"type":849,"tag":917,"props":1696,"children":1697},{"style":930},[1698],{"type":854,"value":1699},"(),",{"type":854,"value":957},{"type":849,"tag":917,"props":1702,"children":1703},{"class":919,"style":920},[1704,1709,1713,1717,1721,1725,1729,1733,1737,1741,1746,1750,1754,1758,1762,1766,1771],{"type":849,"tag":917,"props":1705,"children":1706},{"style":936},[1707],{"type":854,"value":1708},"    status:",{"type":849,"tag":917,"props":1710,"children":1711},{"style":936},[1712],{"type":854,"value":1209},{"type":849,"tag":917,"props":1714,"children":1715},{"style":930},[1716],{"type":854,"value":1064},{"type":849,"tag":917,"props":1718,"children":1719},{"style":1067},[1720],{"type":854,"value":1070},{"type":849,"tag":917,"props":1722,"children":1723},{"style":930},[1724],{"type":854,"value":1075},{"type":849,"tag":917,"props":1726,"children":1727},{"style":936},[1728],{"type":854,"value":1012},{"type":849,"tag":917,"props":1730,"children":1731},{"style":930},[1732],{"type":854,"value":1064},{"type":849,"tag":917,"props":1734,"children":1735},{"style":1067},[1736],{"type":854,"value":1088},{"type":849,"tag":917,"props":1738,"children":1739},{"style":930},[1740],{"type":854,"value":1075},{"type":849,"tag":917,"props":1742,"children":1743},{"style":952},[1744],{"type":854,"value":1745},"'active'",{"type":849,"tag":917,"props":1747,"children":1748},{"style":930},[1749],{"type":854,"value":1102},{"type":849,"tag":917,"props":1751,"children":1752},{"style":936},[1753],{"type":854,"value":1012},{"type":849,"tag":917,"props":1755,"children":1756},{"style":930},[1757],{"type":854,"value":1064},{"type":849,"tag":917,"props":1759,"children":1760},{"style":1067},[1761],{"type":854,"value":1088},{"type":849,"tag":917,"props":1763,"children":1764},{"style":930},[1765],{"type":854,"value":1075},{"type":849,"tag":917,"props":1767,"children":1768},{"style":952},[1769],{"type":854,"value":1770},"'archived'",{"type":849,"tag":917,"props":1772,"children":1773},{"style":930},[1774],{"type":854,"value":1775},")),",{"type":854,"value":957},{"type":849,"tag":917,"props":1778,"children":1779},{"class":919,"style":920},[1780,1785,1789,1793,1798,1802,1806,1810,1814],{"type":849,"tag":917,"props":1781,"children":1782},{"style":936},[1783],{"type":854,"value":1784},"    summary:",{"type":849,"tag":917,"props":1786,"children":1787},{"style":936},[1788],{"type":854,"value":1209},{"type":849,"tag":917,"props":1790,"children":1791},{"style":930},[1792],{"type":854,"value":1064},{"type":849,"tag":917,"props":1794,"children":1795},{"style":1067},[1796],{"type":854,"value":1797},"optional",{"type":849,"tag":917,"props":1799,"children":1800},{"style":930},[1801],{"type":854,"value":1075},{"type":849,"tag":917,"props":1803,"children":1804},{"style":936},[1805],{"type":854,"value":1012},{"type":849,"tag":917,"props":1807,"children":1808},{"style":930},[1809],{"type":854,"value":1064},{"type":849,"tag":917,"props":1811,"children":1812},{"style":1067},[1813],{"type":854,"value":1218},{"type":849,"tag":917,"props":1815,"children":1816},{"style":930},[1817],{"type":854,"value":1818},"()),",{"type":854,"value":957},{"type":849,"tag":917,"props":1821,"children":1822},{"class":919,"style":920},[1823,1828,1832,1836,1840,1844,1848,1852,1857],{"type":849,"tag":917,"props":1824,"children":1825},{"style":936},[1826],{"type":854,"value":1827},"    archivedAt:",{"type":849,"tag":917,"props":1829,"children":1830},{"style":936},[1831],{"type":854,"value":1209},{"type":849,"tag":917,"props":1833,"children":1834},{"style":930},[1835],{"type":854,"value":1064},{"type":849,"tag":917,"props":1837,"children":1838},{"style":1067},[1839],{"type":854,"value":1797},{"type":849,"tag":917,"props":1841,"children":1842},{"style":930},[1843],{"type":854,"value":1075},{"type":849,"tag":917,"props":1845,"children":1846},{"style":936},[1847],{"type":854,"value":1012},{"type":849,"tag":917,"props":1849,"children":1850},{"style":930},[1851],{"type":854,"value":1064},{"type":849,"tag":917,"props":1853,"children":1854},{"style":1067},[1855],{"type":854,"value":1856},"number",{"type":849,"tag":917,"props":1858,"children":1859},{"style":930},[1860],{"type":854,"value":1818},{"type":854,"value":957},{"type":849,"tag":917,"props":1863,"children":1864},{"class":919,"style":920},[1865],{"type":849,"tag":917,"props":1866,"children":1867},{"style":930},[1868],{"type":854,"value":1422},{"type":854,"value":957},{"type":849,"tag":917,"props":1871,"children":1872},{"class":919,"style":920},[1873,1877,1881,1885,1890,1894,1898,1902,1907],{"type":849,"tag":917,"props":1874,"children":1875},{"style":930},[1876],{"type":854,"value":1431},{"type":849,"tag":917,"props":1878,"children":1879},{"style":1067},[1880],{"type":854,"value":1250},{"type":849,"tag":917,"props":1882,"children":1883},{"style":930},[1884],{"type":854,"value":1075},{"type":849,"tag":917,"props":1886,"children":1887},{"style":952},[1888],{"type":854,"value":1889},"'by_org_status'",{"type":849,"tag":917,"props":1891,"children":1892},{"style":930},[1893],{"type":854,"value":1264},{"type":849,"tag":917,"props":1895,"children":1896},{"style":952},[1897],{"type":854,"value":1453},{"type":849,"tag":917,"props":1899,"children":1900},{"style":930},[1901],{"type":854,"value":877},{"type":849,"tag":917,"props":1903,"children":1904},{"style":952},[1905],{"type":854,"value":1906},"'status'",{"type":849,"tag":917,"props":1908,"children":1909},{"style":930},[1910],{"type":854,"value":1467},{"type":854,"value":957},{"type":849,"tag":917,"props":1913,"children":1914},{"class":919,"style":920},[1915,1919,1923,1927,1932,1936,1940,1944,1949],{"type":849,"tag":917,"props":1916,"children":1917},{"style":930},[1918],{"type":854,"value":1431},{"type":849,"tag":917,"props":1920,"children":1921},{"style":1067},[1922],{"type":854,"value":1250},{"type":849,"tag":917,"props":1924,"children":1925},{"style":930},[1926],{"type":854,"value":1075},{"type":849,"tag":917,"props":1928,"children":1929},{"style":952},[1930],{"type":854,"value":1931},"'by_status_archived'",{"type":849,"tag":917,"props":1933,"children":1934},{"style":930},[1935],{"type":854,"value":1264},{"type":849,"tag":917,"props":1937,"children":1938},{"style":952},[1939],{"type":854,"value":1906},{"type":849,"tag":917,"props":1941,"children":1942},{"style":930},[1943],{"type":854,"value":877},{"type":849,"tag":917,"props":1945,"children":1946},{"style":952},[1947],{"type":854,"value":1948},"'archivedAt'",{"type":849,"tag":917,"props":1950,"children":1951},{"style":930},[1952],{"type":854,"value":1274},{"type":854,"value":957},{"type":849,"tag":917,"props":1955,"children":1956},{"class":919,"style":920},[1957],{"type":849,"tag":917,"props":1958,"children":1959},{"style":1507},[1960],{"type":854,"value":1961},"  \u002F\u002F Public once published; drafts belong to the organization.",{"type":854,"value":957},{"type":849,"tag":917,"props":1964,"children":1965},{"class":919,"style":920},[1966,1971,1975],{"type":849,"tag":917,"props":1967,"children":1968},{"style":936},[1969],{"type":854,"value":1970},"  pages:",{"type":849,"tag":917,"props":1972,"children":1973},{"style":1067},[1974],{"type":854,"value":1194},{"type":849,"tag":917,"props":1976,"children":1977},{"style":930},[1978],{"type":854,"value":1180},{"type":854,"value":957},{"type":849,"tag":917,"props":1981,"children":1982},{"class":919,"style":920},[1983,1987,1991,1995,1999,2003,2007],{"type":849,"tag":917,"props":1984,"children":1985},{"style":936},[1986],{"type":854,"value":1338},{"type":849,"tag":917,"props":1988,"children":1989},{"style":936},[1990],{"type":854,"value":1209},{"type":849,"tag":917,"props":1992,"children":1993},{"style":930},[1994],{"type":854,"value":1064},{"type":849,"tag":917,"props":1996,"children":1997},{"style":1067},[1998],{"type":854,"value":1351},{"type":849,"tag":917,"props":2000,"children":2001},{"style":930},[2002],{"type":854,"value":1075},{"type":849,"tag":917,"props":2004,"children":2005},{"style":952},[2006],{"type":854,"value":1360},{"type":849,"tag":917,"props":2008,"children":2009},{"style":930},[2010],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":2013,"children":2014},{"class":919,"style":920},[2015,2020,2024,2028,2032],{"type":849,"tag":917,"props":2016,"children":2017},{"style":936},[2018],{"type":854,"value":2019},"    slug:",{"type":849,"tag":917,"props":2021,"children":2022},{"style":936},[2023],{"type":854,"value":1209},{"type":849,"tag":917,"props":2025,"children":2026},{"style":930},[2027],{"type":854,"value":1064},{"type":849,"tag":917,"props":2029,"children":2030},{"style":1067},[2031],{"type":854,"value":1218},{"type":849,"tag":917,"props":2033,"children":2034},{"style":930},[2035],{"type":854,"value":1699},{"type":854,"value":957},{"type":849,"tag":917,"props":2038,"children":2039},{"class":919,"style":920},[2040,2045,2049,2053,2057],{"type":849,"tag":917,"props":2041,"children":2042},{"style":936},[2043],{"type":854,"value":2044},"    title:",{"type":849,"tag":917,"props":2046,"children":2047},{"style":936},[2048],{"type":854,"value":1209},{"type":849,"tag":917,"props":2050,"children":2051},{"style":930},[2052],{"type":854,"value":1064},{"type":849,"tag":917,"props":2054,"children":2055},{"style":1067},[2056],{"type":854,"value":1218},{"type":849,"tag":917,"props":2058,"children":2059},{"style":930},[2060],{"type":854,"value":1699},{"type":854,"value":957},{"type":849,"tag":917,"props":2063,"children":2064},{"class":919,"style":920},[2065,2070,2074,2078,2082],{"type":849,"tag":917,"props":2066,"children":2067},{"style":936},[2068],{"type":854,"value":2069},"    body:",{"type":849,"tag":917,"props":2071,"children":2072},{"style":936},[2073],{"type":854,"value":1209},{"type":849,"tag":917,"props":2075,"children":2076},{"style":930},[2077],{"type":854,"value":1064},{"type":849,"tag":917,"props":2079,"children":2080},{"style":1067},[2081],{"type":854,"value":1218},{"type":849,"tag":917,"props":2083,"children":2084},{"style":930},[2085],{"type":854,"value":1699},{"type":854,"value":957},{"type":849,"tag":917,"props":2088,"children":2089},{"class":919,"style":920},[2090,2094,2098,2102,2106,2110,2114,2118,2122,2126,2131,2135,2139,2143,2147,2151,2156],{"type":849,"tag":917,"props":2091,"children":2092},{"style":936},[2093],{"type":854,"value":1708},{"type":849,"tag":917,"props":2095,"children":2096},{"style":936},[2097],{"type":854,"value":1209},{"type":849,"tag":917,"props":2099,"children":2100},{"style":930},[2101],{"type":854,"value":1064},{"type":849,"tag":917,"props":2103,"children":2104},{"style":1067},[2105],{"type":854,"value":1070},{"type":849,"tag":917,"props":2107,"children":2108},{"style":930},[2109],{"type":854,"value":1075},{"type":849,"tag":917,"props":2111,"children":2112},{"style":936},[2113],{"type":854,"value":1012},{"type":849,"tag":917,"props":2115,"children":2116},{"style":930},[2117],{"type":854,"value":1064},{"type":849,"tag":917,"props":2119,"children":2120},{"style":1067},[2121],{"type":854,"value":1088},{"type":849,"tag":917,"props":2123,"children":2124},{"style":930},[2125],{"type":854,"value":1075},{"type":849,"tag":917,"props":2127,"children":2128},{"style":952},[2129],{"type":854,"value":2130},"'draft'",{"type":849,"tag":917,"props":2132,"children":2133},{"style":930},[2134],{"type":854,"value":1102},{"type":849,"tag":917,"props":2136,"children":2137},{"style":936},[2138],{"type":854,"value":1012},{"type":849,"tag":917,"props":2140,"children":2141},{"style":930},[2142],{"type":854,"value":1064},{"type":849,"tag":917,"props":2144,"children":2145},{"style":1067},[2146],{"type":854,"value":1088},{"type":849,"tag":917,"props":2148,"children":2149},{"style":930},[2150],{"type":854,"value":1075},{"type":849,"tag":917,"props":2152,"children":2153},{"style":952},[2154],{"type":854,"value":2155},"'published'",{"type":849,"tag":917,"props":2157,"children":2158},{"style":930},[2159],{"type":854,"value":1775},{"type":854,"value":957},{"type":849,"tag":917,"props":2162,"children":2163},{"class":919,"style":920},[2164,2169,2173,2177,2182,2186,2190,2194,2198,2202,2207],{"type":849,"tag":917,"props":2165,"children":2166},{"style":930},[2167],{"type":854,"value":2168},"  }).",{"type":849,"tag":917,"props":2170,"children":2171},{"style":1067},[2172],{"type":854,"value":1250},{"type":849,"tag":917,"props":2174,"children":2175},{"style":930},[2176],{"type":854,"value":1075},{"type":849,"tag":917,"props":2178,"children":2179},{"style":952},[2180],{"type":854,"value":2181},"'by_org_status_slug'",{"type":849,"tag":917,"props":2183,"children":2184},{"style":930},[2185],{"type":854,"value":1264},{"type":849,"tag":917,"props":2187,"children":2188},{"style":952},[2189],{"type":854,"value":1453},{"type":849,"tag":917,"props":2191,"children":2192},{"style":930},[2193],{"type":854,"value":877},{"type":849,"tag":917,"props":2195,"children":2196},{"style":952},[2197],{"type":854,"value":1906},{"type":849,"tag":917,"props":2199,"children":2200},{"style":930},[2201],{"type":854,"value":877},{"type":849,"tag":917,"props":2203,"children":2204},{"style":952},[2205],{"type":854,"value":2206},"'slug'",{"type":849,"tag":917,"props":2208,"children":2209},{"style":930},[2210],{"type":854,"value":1274},{"type":854,"value":957},{"type":849,"tag":917,"props":2213,"children":2214},{"class":919,"style":920},[2215],{"type":849,"tag":917,"props":2216,"children":2217},{"style":1507},[2218],{"type":854,"value":2219},"  \u002F\u002F Private to its author, or shared with an organization.",{"type":854,"value":957},{"type":849,"tag":917,"props":2222,"children":2223},{"class":919,"style":920},[2224,2229,2233],{"type":849,"tag":917,"props":2225,"children":2226},{"style":936},[2227],{"type":854,"value":2228},"  notes:",{"type":849,"tag":917,"props":2230,"children":2231},{"style":1067},[2232],{"type":854,"value":1194},{"type":849,"tag":917,"props":2234,"children":2235},{"style":930},[2236],{"type":854,"value":1180},{"type":854,"value":957},{"type":849,"tag":917,"props":2239,"children":2240},{"class":919,"style":920},[2241,2246,2250,2254,2258,2262,2266],{"type":849,"tag":917,"props":2242,"children":2243},{"style":936},[2244],{"type":854,"value":2245},"    authorId:",{"type":849,"tag":917,"props":2247,"children":2248},{"style":936},[2249],{"type":854,"value":1209},{"type":849,"tag":917,"props":2251,"children":2252},{"style":930},[2253],{"type":854,"value":1064},{"type":849,"tag":917,"props":2255,"children":2256},{"style":1067},[2257],{"type":854,"value":1351},{"type":849,"tag":917,"props":2259,"children":2260},{"style":930},[2261],{"type":854,"value":1075},{"type":849,"tag":917,"props":2263,"children":2264},{"style":952},[2265],{"type":854,"value":1395},{"type":849,"tag":917,"props":2267,"children":2268},{"style":930},[2269],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":2272,"children":2273},{"class":919,"style":920},[2274,2278,2282,2286,2290,2294,2298,2302,2306,2310,2314],{"type":849,"tag":917,"props":2275,"children":2276},{"style":936},[2277],{"type":854,"value":1338},{"type":849,"tag":917,"props":2279,"children":2280},{"style":936},[2281],{"type":854,"value":1209},{"type":849,"tag":917,"props":2283,"children":2284},{"style":930},[2285],{"type":854,"value":1064},{"type":849,"tag":917,"props":2287,"children":2288},{"style":1067},[2289],{"type":854,"value":1797},{"type":849,"tag":917,"props":2291,"children":2292},{"style":930},[2293],{"type":854,"value":1075},{"type":849,"tag":917,"props":2295,"children":2296},{"style":936},[2297],{"type":854,"value":1012},{"type":849,"tag":917,"props":2299,"children":2300},{"style":930},[2301],{"type":854,"value":1064},{"type":849,"tag":917,"props":2303,"children":2304},{"style":1067},[2305],{"type":854,"value":1351},{"type":849,"tag":917,"props":2307,"children":2308},{"style":930},[2309],{"type":854,"value":1075},{"type":849,"tag":917,"props":2311,"children":2312},{"style":952},[2313],{"type":854,"value":1360},{"type":849,"tag":917,"props":2315,"children":2316},{"style":930},[2317],{"type":854,"value":1775},{"type":854,"value":957},{"type":849,"tag":917,"props":2320,"children":2321},{"class":919,"style":920},[2322,2327,2331,2335,2339],{"type":849,"tag":917,"props":2323,"children":2324},{"style":936},[2325],{"type":854,"value":2326},"    text:",{"type":849,"tag":917,"props":2328,"children":2329},{"style":936},[2330],{"type":854,"value":1209},{"type":849,"tag":917,"props":2332,"children":2333},{"style":930},[2334],{"type":854,"value":1064},{"type":849,"tag":917,"props":2336,"children":2337},{"style":1067},[2338],{"type":854,"value":1218},{"type":849,"tag":917,"props":2340,"children":2341},{"style":930},[2342],{"type":854,"value":1699},{"type":854,"value":957},{"type":849,"tag":917,"props":2345,"children":2346},{"class":919,"style":920},[2347],{"type":849,"tag":917,"props":2348,"children":2349},{"style":930},[2350],{"type":854,"value":1422},{"type":854,"value":957},{"type":849,"tag":917,"props":2353,"children":2354},{"class":919,"style":920},[2355,2359,2363,2367,2372,2376,2381],{"type":849,"tag":917,"props":2356,"children":2357},{"style":930},[2358],{"type":854,"value":1431},{"type":849,"tag":917,"props":2360,"children":2361},{"style":1067},[2362],{"type":854,"value":1250},{"type":849,"tag":917,"props":2364,"children":2365},{"style":930},[2366],{"type":854,"value":1075},{"type":849,"tag":917,"props":2368,"children":2369},{"style":952},[2370],{"type":854,"value":2371},"'by_author'",{"type":849,"tag":917,"props":2373,"children":2374},{"style":930},[2375],{"type":854,"value":1264},{"type":849,"tag":917,"props":2377,"children":2378},{"style":952},[2379],{"type":854,"value":2380},"'authorId'",{"type":849,"tag":917,"props":2382,"children":2383},{"style":930},[2384],{"type":854,"value":1467},{"type":854,"value":957},{"type":849,"tag":917,"props":2387,"children":2388},{"class":919,"style":920},[2389,2393,2397,2401,2405,2409,2413],{"type":849,"tag":917,"props":2390,"children":2391},{"style":930},[2392],{"type":854,"value":1431},{"type":849,"tag":917,"props":2394,"children":2395},{"style":1067},[2396],{"type":854,"value":1250},{"type":849,"tag":917,"props":2398,"children":2399},{"style":930},[2400],{"type":854,"value":1075},{"type":849,"tag":917,"props":2402,"children":2403},{"style":952},[2404],{"type":854,"value":1488},{"type":849,"tag":917,"props":2406,"children":2407},{"style":930},[2408],{"type":854,"value":1264},{"type":849,"tag":917,"props":2410,"children":2411},{"style":952},[2412],{"type":854,"value":1453},{"type":849,"tag":917,"props":2414,"children":2415},{"style":930},[2416],{"type":854,"value":1274},{"type":854,"value":957},{"type":849,"tag":917,"props":2419,"children":2420},{"class":919,"style":920},[2421,2426,2430],{"type":849,"tag":917,"props":2422,"children":2423},{"style":930},[2424],{"type":854,"value":2425},"  ...",{"type":849,"tag":917,"props":2427,"children":2428},{"style":936},[2429],{"type":854,"value":939},{"type":849,"tag":917,"props":2431,"children":2432},{"style":930},[2433],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2436,"children":2437},{"class":919,"style":920},[2438],{"type":849,"tag":917,"props":2439,"children":2440},{"style":930},[2441],{"type":854,"value":2442},"})",{"type":849,"tag":906,"props":2444,"children":2446},{"language":908,"filename":2445,"class":910},"convex\u002Ffunctions.ts",[2447],{"type":849,"tag":857,"props":2448,"children":2449},{"class":914},[2450,2462,2463,2475,2476,2488,2489,2501,2502,2514,2515,2527,2528,2540,2541,2557,2558,2561,2562,2591,2592,2635,2636,2665,2666,2695,2696,2699,2700,2728,2729,2741,2742,2754,2755,2797,2798,2815,2816,2842,2843,2914,2915,2930,2931,2986,2987,2995,2996,3004,3005,3045,3046,3088,3089,3146,3147,3155,3156,3252,3253,3281,3282,3315,3316,3340,3341,3376,3377,3447,3448,3456,3457,3473,3474,3505,3506,3514,3515,3527,3528,3554,3555,3580,3581,3589,3590,3598,3599,3607,3608,3642,3643,3672,3673,3747,3748,3805,3806,3814,3815,3868,3869,3893,3894,3911,3912,3982,3983,4003,4004,4011,4012,4061,4062,4069,4070,4077,4078,4081,4082,4097,4098,4110,4111,4123,4124,4136,4137,4149,4150,4162,4163,4175,4176,4188,4189,4202,4203,4211,4212],{"type":849,"tag":917,"props":2451,"children":2452},{"class":919,"style":920},[2453,2457],{"type":849,"tag":917,"props":2454,"children":2455},{"style":924},[2456],{"type":854,"value":927},{"type":849,"tag":917,"props":2458,"children":2459},{"style":930},[2460],{"type":854,"value":2461}," {",{"type":854,"value":957},{"type":849,"tag":917,"props":2464,"children":2465},{"class":919,"style":920},[2466,2471],{"type":849,"tag":917,"props":2467,"children":2468},{"style":936},[2469],{"type":854,"value":2470},"  anyOf",{"type":849,"tag":917,"props":2472,"children":2473},{"style":930},[2474],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2477,"children":2478},{"class":919,"style":920},[2479,2484],{"type":849,"tag":917,"props":2480,"children":2481},{"style":936},[2482],{"type":854,"value":2483},"  custom",{"type":849,"tag":917,"props":2485,"children":2486},{"style":930},[2487],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2490,"children":2491},{"class":919,"style":920},[2492,2497],{"type":849,"tag":917,"props":2493,"children":2494},{"style":936},[2495],{"type":854,"value":2496},"  defineFunctions",{"type":849,"tag":917,"props":2498,"children":2499},{"style":930},[2500],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2503,"children":2504},{"class":919,"style":920},[2505,2510],{"type":849,"tag":917,"props":2506,"children":2507},{"style":936},[2508],{"type":854,"value":2509},"  owner",{"type":849,"tag":917,"props":2511,"children":2512},{"style":930},[2513],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2516,"children":2517},{"class":919,"style":920},[2518,2523],{"type":849,"tag":917,"props":2519,"children":2520},{"style":936},[2521],{"type":854,"value":2522},"  publicRead",{"type":849,"tag":917,"props":2524,"children":2525},{"style":930},[2526],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2529,"children":2530},{"class":919,"style":920},[2531,2536],{"type":849,"tag":917,"props":2532,"children":2533},{"style":936},[2534],{"type":854,"value":2535},"  tenant",{"type":849,"tag":917,"props":2537,"children":2538},{"style":930},[2539],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2542,"children":2543},{"class":919,"style":920},[2544,2549,2553],{"type":849,"tag":917,"props":2545,"children":2546},{"style":930},[2547],{"type":854,"value":2548},"} ",{"type":849,"tag":917,"props":2550,"children":2551},{"style":924},[2552],{"type":854,"value":949},{"type":849,"tag":917,"props":2554,"children":2555},{"style":952},[2556],{"type":854,"value":955},{"type":854,"value":957},{"type":849,"tag":917,"props":2559,"children":2560},{"class":919,"style":920},[],{"type":854,"value":957},{"type":849,"tag":917,"props":2563,"children":2564},{"class":919,"style":920},[2565,2569,2573,2578,2582,2586],{"type":849,"tag":917,"props":2566,"children":2567},{"style":924},[2568],{"type":854,"value":927},{"type":849,"tag":917,"props":2570,"children":2571},{"style":930},[2572],{"type":854,"value":933},{"type":849,"tag":917,"props":2574,"children":2575},{"style":936},[2576],{"type":854,"value":2577},"internal",{"type":849,"tag":917,"props":2579,"children":2580},{"style":930},[2581],{"type":854,"value":944},{"type":849,"tag":917,"props":2583,"children":2584},{"style":924},[2585],{"type":854,"value":949},{"type":849,"tag":917,"props":2587,"children":2588},{"style":952},[2589],{"type":854,"value":2590}," '.\u002F_generated\u002Fapi'",{"type":854,"value":957},{"type":849,"tag":917,"props":2593,"children":2594},{"class":919,"style":920},[2595,2599,2604,2608,2613,2617,2622,2626,2630],{"type":849,"tag":917,"props":2596,"children":2597},{"style":924},[2598],{"type":854,"value":927},{"type":849,"tag":917,"props":2600,"children":2601},{"style":924},[2602],{"type":854,"value":2603}," type",{"type":849,"tag":917,"props":2605,"children":2606},{"style":930},[2607],{"type":854,"value":933},{"type":849,"tag":917,"props":2609,"children":2610},{"style":936},[2611],{"type":854,"value":2612},"Doc",{"type":849,"tag":917,"props":2614,"children":2615},{"style":930},[2616],{"type":854,"value":877},{"type":849,"tag":917,"props":2618,"children":2619},{"style":936},[2620],{"type":854,"value":2621},"Id",{"type":849,"tag":917,"props":2623,"children":2624},{"style":930},[2625],{"type":854,"value":944},{"type":849,"tag":917,"props":2627,"children":2628},{"style":924},[2629],{"type":854,"value":949},{"type":849,"tag":917,"props":2631,"children":2632},{"style":952},[2633],{"type":854,"value":2634}," '.\u002F_generated\u002FdataModel'",{"type":854,"value":957},{"type":849,"tag":917,"props":2637,"children":2638},{"class":919,"style":920},[2639,2643,2647,2652,2656,2660],{"type":849,"tag":917,"props":2640,"children":2641},{"style":924},[2642],{"type":854,"value":927},{"type":849,"tag":917,"props":2644,"children":2645},{"style":930},[2646],{"type":854,"value":933},{"type":849,"tag":917,"props":2648,"children":2649},{"style":936},[2650],{"type":854,"value":2651},"auth",{"type":849,"tag":917,"props":2653,"children":2654},{"style":930},[2655],{"type":854,"value":944},{"type":849,"tag":917,"props":2657,"children":2658},{"style":924},[2659],{"type":854,"value":949},{"type":849,"tag":917,"props":2661,"children":2662},{"style":952},[2663],{"type":854,"value":2664}," '.\u002Fauth'",{"type":854,"value":957},{"type":849,"tag":917,"props":2667,"children":2668},{"class":919,"style":920},[2669,2673,2677,2682,2686,2690],{"type":849,"tag":917,"props":2670,"children":2671},{"style":924},[2672],{"type":854,"value":927},{"type":849,"tag":917,"props":2674,"children":2675},{"style":930},[2676],{"type":854,"value":933},{"type":849,"tag":917,"props":2678,"children":2679},{"style":936},[2680],{"type":854,"value":2681},"policy",{"type":849,"tag":917,"props":2683,"children":2684},{"style":930},[2685],{"type":854,"value":944},{"type":849,"tag":917,"props":2687,"children":2688},{"style":924},[2689],{"type":854,"value":949},{"type":849,"tag":917,"props":2691,"children":2692},{"style":952},[2693],{"type":854,"value":2694}," '.\u002Fpolicy'",{"type":854,"value":957},{"type":849,"tag":917,"props":2697,"children":2698},{"class":919,"style":920},[],{"type":854,"value":957},{"type":849,"tag":917,"props":2701,"children":2702},{"class":919,"style":920},[2703,2707,2711,2716,2720,2724],{"type":849,"tag":917,"props":2704,"children":2705},{"style":924},[2706],{"type":854,"value":1038},{"type":849,"tag":917,"props":2708,"children":2709},{"style":1041},[2710],{"type":854,"value":1044},{"type":849,"tag":917,"props":2712,"children":2713},{"style":1047},[2714],{"type":854,"value":2715}," fns",{"type":849,"tag":917,"props":2717,"children":2718},{"style":930},[2719],{"type":854,"value":1055},{"type":849,"tag":917,"props":2721,"children":2722},{"style":1067},[2723],{"type":854,"value":861},{"type":849,"tag":917,"props":2725,"children":2726},{"style":930},[2727],{"type":854,"value":1180},{"type":854,"value":957},{"type":849,"tag":917,"props":2730,"children":2731},{"class":919,"style":920},[2732,2737],{"type":849,"tag":917,"props":2733,"children":2734},{"style":936},[2735],{"type":854,"value":2736},"  auth",{"type":849,"tag":917,"props":2738,"children":2739},{"style":930},[2740],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2743,"children":2744},{"class":919,"style":920},[2745,2750],{"type":849,"tag":917,"props":2746,"children":2747},{"style":936},[2748],{"type":854,"value":2749},"  policy",{"type":849,"tag":917,"props":2751,"children":2752},{"style":930},[2753],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":2756,"children":2757},{"class":919,"style":920},[2758,2763,2768,2773,2778,2782,2787,2792],{"type":849,"tag":917,"props":2759,"children":2760},{"style":1067},[2761],{"type":854,"value":2762},"  user",{"type":849,"tag":917,"props":2764,"children":2765},{"style":936},[2766],{"type":854,"value":2767},":",{"type":849,"tag":917,"props":2769,"children":2770},{"style":930},[2771],{"type":854,"value":2772}," (",{"type":849,"tag":917,"props":2774,"children":2775},{"style":936},[2776],{"type":854,"value":2777},"ctx",{"type":849,"tag":917,"props":2779,"children":2780},{"style":930},[2781],{"type":854,"value":877},{"type":849,"tag":917,"props":2783,"children":2784},{"style":936},[2785],{"type":854,"value":2786},"authId",{"type":849,"tag":917,"props":2788,"children":2789},{"style":930},[2790],{"type":854,"value":2791},") ",{"type":849,"tag":917,"props":2793,"children":2794},{"style":1041},[2795],{"type":854,"value":2796},"=>",{"type":854,"value":957},{"type":849,"tag":917,"props":2799,"children":2800},{"class":919,"style":920},[2801,2806,2810],{"type":849,"tag":917,"props":2802,"children":2803},{"style":936},[2804],{"type":854,"value":2805},"    ctx",{"type":849,"tag":917,"props":2807,"children":2808},{"style":930},[2809],{"type":854,"value":1064},{"type":849,"tag":917,"props":2811,"children":2812},{"style":936},[2813],{"type":854,"value":2814},"db",{"type":854,"value":957},{"type":849,"tag":917,"props":2817,"children":2818},{"class":919,"style":920},[2819,2824,2829,2833,2837],{"type":849,"tag":917,"props":2820,"children":2821},{"style":930},[2822],{"type":854,"value":2823},"      .",{"type":849,"tag":917,"props":2825,"children":2826},{"style":1067},[2827],{"type":854,"value":2828},"query",{"type":849,"tag":917,"props":2830,"children":2831},{"style":930},[2832],{"type":854,"value":1075},{"type":849,"tag":917,"props":2834,"children":2835},{"style":952},[2836],{"type":854,"value":1395},{"type":849,"tag":917,"props":2838,"children":2839},{"style":930},[2840],{"type":854,"value":2841},")",{"type":854,"value":957},{"type":849,"tag":917,"props":2844,"children":2845},{"class":919,"style":920},[2846,2850,2854,2858,2862,2867,2872,2876,2880,2885,2889,2894,2898,2902,2906,2910],{"type":849,"tag":917,"props":2847,"children":2848},{"style":930},[2849],{"type":854,"value":2823},{"type":849,"tag":917,"props":2851,"children":2852},{"style":1067},[2853],{"type":854,"value":882},{"type":849,"tag":917,"props":2855,"children":2856},{"style":930},[2857],{"type":854,"value":1075},{"type":849,"tag":917,"props":2859,"children":2860},{"style":952},[2861],{"type":854,"value":1259},{"type":849,"tag":917,"props":2863,"children":2864},{"style":930},[2865],{"type":854,"value":2866},", (",{"type":849,"tag":917,"props":2868,"children":2869},{"style":936},[2870],{"type":854,"value":2871},"q",{"type":849,"tag":917,"props":2873,"children":2874},{"style":930},[2875],{"type":854,"value":2791},{"type":849,"tag":917,"props":2877,"children":2878},{"style":1041},[2879],{"type":854,"value":2796},{"type":849,"tag":917,"props":2881,"children":2882},{"style":936},[2883],{"type":854,"value":2884}," q",{"type":849,"tag":917,"props":2886,"children":2887},{"style":930},[2888],{"type":854,"value":1064},{"type":849,"tag":917,"props":2890,"children":2891},{"style":1067},[2892],{"type":854,"value":2893},"eq",{"type":849,"tag":917,"props":2895,"children":2896},{"style":930},[2897],{"type":854,"value":1075},{"type":849,"tag":917,"props":2899,"children":2900},{"style":952},[2901],{"type":854,"value":1269},{"type":849,"tag":917,"props":2903,"children":2904},{"style":930},[2905],{"type":854,"value":877},{"type":849,"tag":917,"props":2907,"children":2908},{"style":936},[2909],{"type":854,"value":2786},{"type":849,"tag":917,"props":2911,"children":2912},{"style":930},[2913],{"type":854,"value":1153},{"type":854,"value":957},{"type":849,"tag":917,"props":2916,"children":2917},{"class":919,"style":920},[2918,2922,2926],{"type":849,"tag":917,"props":2919,"children":2920},{"style":930},[2921],{"type":854,"value":2823},{"type":849,"tag":917,"props":2923,"children":2924},{"style":1067},[2925],{"type":854,"value":902},{"type":849,"tag":917,"props":2927,"children":2928},{"style":930},[2929],{"type":854,"value":1699},{"type":854,"value":957},{"type":849,"tag":917,"props":2932,"children":2933},{"class":919,"style":920},[2934,2939,2943,2948,2952,2956,2960,2965,2969,2974,2978,2982],{"type":849,"tag":917,"props":2935,"children":2936},{"style":1067},[2937],{"type":854,"value":2938},"  roleOf",{"type":849,"tag":917,"props":2940,"children":2941},{"style":936},[2942],{"type":854,"value":2767},{"type":849,"tag":917,"props":2944,"children":2945},{"style":1041},[2946],{"type":854,"value":2947}," async",{"type":849,"tag":917,"props":2949,"children":2950},{"style":930},[2951],{"type":854,"value":2772},{"type":849,"tag":917,"props":2953,"children":2954},{"style":936},[2955],{"type":854,"value":2777},{"type":849,"tag":917,"props":2957,"children":2958},{"style":930},[2959],{"type":854,"value":877},{"type":849,"tag":917,"props":2961,"children":2962},{"style":936},[2963],{"type":854,"value":2964},"user",{"type":849,"tag":917,"props":2966,"children":2967},{"style":930},[2968],{"type":854,"value":877},{"type":849,"tag":917,"props":2970,"children":2971},{"style":936},[2972],{"type":854,"value":2973},"tenant",{"type":849,"tag":917,"props":2975,"children":2976},{"style":930},[2977],{"type":854,"value":2791},{"type":849,"tag":917,"props":2979,"children":2980},{"style":1041},[2981],{"type":854,"value":2796},{"type":849,"tag":917,"props":2983,"children":2984},{"style":930},[2985],{"type":854,"value":2461},{"type":854,"value":957},{"type":849,"tag":917,"props":2988,"children":2989},{"class":919,"style":920},[2990],{"type":849,"tag":917,"props":2991,"children":2992},{"style":1507},[2993],{"type":854,"value":2994},"    \u002F\u002F A call that names no organization gets no role. What every signed-in person may do is a",{"type":854,"value":957},{"type":849,"tag":917,"props":2997,"children":2998},{"class":919,"style":920},[2999],{"type":849,"tag":917,"props":3000,"children":3001},{"style":1507},[3002],{"type":854,"value":3003},"    \u002F\u002F role too (see Policy and roles: signedIn).",{"type":854,"value":957},{"type":849,"tag":917,"props":3006,"children":3007},{"class":919,"style":920},[3008,3013,3017,3021,3026,3031,3035,3040],{"type":849,"tag":917,"props":3009,"children":3010},{"style":924},[3011],{"type":854,"value":3012},"    if",{"type":849,"tag":917,"props":3014,"children":3015},{"style":930},[3016],{"type":854,"value":2772},{"type":849,"tag":917,"props":3018,"children":3019},{"style":936},[3020],{"type":854,"value":2973},{"type":849,"tag":917,"props":3022,"children":3023},{"style":930},[3024],{"type":854,"value":3025}," === ",{"type":849,"tag":917,"props":3027,"children":3028},{"style":1041},[3029],{"type":854,"value":3030},"null",{"type":849,"tag":917,"props":3032,"children":3033},{"style":930},[3034],{"type":854,"value":2791},{"type":849,"tag":917,"props":3036,"children":3037},{"style":924},[3038],{"type":854,"value":3039},"return",{"type":849,"tag":917,"props":3041,"children":3042},{"style":1041},[3043],{"type":854,"value":3044}," null",{"type":854,"value":957},{"type":849,"tag":917,"props":3047,"children":3048},{"class":919,"style":920},[3049,3054,3059,3064,3069,3074,3078,3083],{"type":849,"tag":917,"props":3050,"children":3051},{"style":1041},[3052],{"type":854,"value":3053},"    let",{"type":849,"tag":917,"props":3055,"children":3056},{"style":936},[3057],{"type":854,"value":3058}," organizationId",{"type":849,"tag":917,"props":3060,"children":3061},{"style":930},[3062],{"type":854,"value":3063},": ",{"type":849,"tag":917,"props":3065,"children":3067},{"style":3066},"color:#267F99;--shiki-dark:#4EC9B0",[3068],{"type":854,"value":2621},{"type":849,"tag":917,"props":3070,"children":3071},{"style":930},[3072],{"type":854,"value":3073},"\u003C",{"type":849,"tag":917,"props":3075,"children":3076},{"style":952},[3077],{"type":854,"value":1360},{"type":849,"tag":917,"props":3079,"children":3080},{"style":930},[3081],{"type":854,"value":3082},"> | ",{"type":849,"tag":917,"props":3084,"children":3085},{"style":3066},[3086],{"type":854,"value":3087},"undefined",{"type":854,"value":957},{"type":849,"tag":917,"props":3090,"children":3091},{"class":919,"style":920},[3092,3096,3100,3104,3108,3113,3117,3121,3125,3130,3134,3138,3142],{"type":849,"tag":917,"props":3093,"children":3094},{"style":924},[3095],{"type":854,"value":3012},{"type":849,"tag":917,"props":3097,"children":3098},{"style":930},[3099],{"type":854,"value":2772},{"type":849,"tag":917,"props":3101,"children":3102},{"style":936},[3103],{"type":854,"value":2973},{"type":849,"tag":917,"props":3105,"children":3106},{"style":930},[3107],{"type":854,"value":1064},{"type":849,"tag":917,"props":3109,"children":3110},{"style":936},[3111],{"type":854,"value":3112},"table",{"type":849,"tag":917,"props":3114,"children":3115},{"style":930},[3116],{"type":854,"value":3025},{"type":849,"tag":917,"props":3118,"children":3119},{"style":952},[3120],{"type":854,"value":1360},{"type":849,"tag":917,"props":3122,"children":3123},{"style":930},[3124],{"type":854,"value":2791},{"type":849,"tag":917,"props":3126,"children":3127},{"style":936},[3128],{"type":854,"value":3129},"organizationId",{"type":849,"tag":917,"props":3131,"children":3132},{"style":930},[3133],{"type":854,"value":1055},{"type":849,"tag":917,"props":3135,"children":3136},{"style":936},[3137],{"type":854,"value":2973},{"type":849,"tag":917,"props":3139,"children":3140},{"style":930},[3141],{"type":854,"value":1064},{"type":849,"tag":917,"props":3143,"children":3144},{"style":936},[3145],{"type":854,"value":1351},{"type":854,"value":957},{"type":849,"tag":917,"props":3148,"children":3149},{"class":919,"style":920},[3150],{"type":849,"tag":917,"props":3151,"children":3152},{"style":1507},[3153],{"type":854,"value":3154},"    \u002F\u002F A client inherits the roles of its organization.",{"type":854,"value":957},{"type":849,"tag":917,"props":3157,"children":3158},{"class":919,"style":920},[3159,3163,3167,3171,3175,3179,3183,3188,3192,3196,3201,3206,3211,3215,3219,3223,3227,3231,3235,3239,3243,3248],{"type":849,"tag":917,"props":3160,"children":3161},{"style":924},[3162],{"type":854,"value":3012},{"type":849,"tag":917,"props":3164,"children":3165},{"style":930},[3166],{"type":854,"value":2772},{"type":849,"tag":917,"props":3168,"children":3169},{"style":936},[3170],{"type":854,"value":2973},{"type":849,"tag":917,"props":3172,"children":3173},{"style":930},[3174],{"type":854,"value":1064},{"type":849,"tag":917,"props":3176,"children":3177},{"style":936},[3178],{"type":854,"value":3112},{"type":849,"tag":917,"props":3180,"children":3181},{"style":930},[3182],{"type":854,"value":3025},{"type":849,"tag":917,"props":3184,"children":3185},{"style":952},[3186],{"type":854,"value":3187},"'clients'",{"type":849,"tag":917,"props":3189,"children":3190},{"style":930},[3191],{"type":854,"value":2791},{"type":849,"tag":917,"props":3193,"children":3194},{"style":936},[3195],{"type":854,"value":3129},{"type":849,"tag":917,"props":3197,"children":3198},{"style":930},[3199],{"type":854,"value":3200}," = (",{"type":849,"tag":917,"props":3202,"children":3203},{"style":924},[3204],{"type":854,"value":3205},"await",{"type":849,"tag":917,"props":3207,"children":3208},{"style":936},[3209],{"type":854,"value":3210}," ctx",{"type":849,"tag":917,"props":3212,"children":3213},{"style":930},[3214],{"type":854,"value":1064},{"type":849,"tag":917,"props":3216,"children":3217},{"style":936},[3218],{"type":854,"value":2814},{"type":849,"tag":917,"props":3220,"children":3221},{"style":930},[3222],{"type":854,"value":1064},{"type":849,"tag":917,"props":3224,"children":3225},{"style":1067},[3226],{"type":854,"value":875},{"type":849,"tag":917,"props":3228,"children":3229},{"style":930},[3230],{"type":854,"value":1075},{"type":849,"tag":917,"props":3232,"children":3233},{"style":936},[3234],{"type":854,"value":2973},{"type":849,"tag":917,"props":3236,"children":3237},{"style":930},[3238],{"type":854,"value":1064},{"type":849,"tag":917,"props":3240,"children":3241},{"style":936},[3242],{"type":854,"value":1351},{"type":849,"tag":917,"props":3244,"children":3245},{"style":930},[3246],{"type":854,"value":3247},"))?.",{"type":849,"tag":917,"props":3249,"children":3250},{"style":936},[3251],{"type":854,"value":3129},{"type":854,"value":957},{"type":849,"tag":917,"props":3254,"children":3255},{"class":919,"style":920},[3256,3260,3265,3269,3273,3277],{"type":849,"tag":917,"props":3257,"children":3258},{"style":924},[3259],{"type":854,"value":3012},{"type":849,"tag":917,"props":3261,"children":3262},{"style":930},[3263],{"type":854,"value":3264}," (!",{"type":849,"tag":917,"props":3266,"children":3267},{"style":936},[3268],{"type":854,"value":3129},{"type":849,"tag":917,"props":3270,"children":3271},{"style":930},[3272],{"type":854,"value":2791},{"type":849,"tag":917,"props":3274,"children":3275},{"style":924},[3276],{"type":854,"value":3039},{"type":849,"tag":917,"props":3278,"children":3279},{"style":1041},[3280],{"type":854,"value":3044},{"type":854,"value":957},{"type":849,"tag":917,"props":3283,"children":3284},{"class":919,"style":920},[3285,3290,3295,3299,3303,3307,3311],{"type":849,"tag":917,"props":3286,"children":3287},{"style":1041},[3288],{"type":854,"value":3289},"    const",{"type":849,"tag":917,"props":3291,"children":3292},{"style":1047},[3293],{"type":854,"value":3294}," membership",{"type":849,"tag":917,"props":3296,"children":3297},{"style":930},[3298],{"type":854,"value":1055},{"type":849,"tag":917,"props":3300,"children":3301},{"style":924},[3302],{"type":854,"value":3205},{"type":849,"tag":917,"props":3304,"children":3305},{"style":936},[3306],{"type":854,"value":3210},{"type":849,"tag":917,"props":3308,"children":3309},{"style":930},[3310],{"type":854,"value":1064},{"type":849,"tag":917,"props":3312,"children":3313},{"style":936},[3314],{"type":854,"value":2814},{"type":854,"value":957},{"type":849,"tag":917,"props":3317,"children":3318},{"class":919,"style":920},[3319,3323,3327,3331,3336],{"type":849,"tag":917,"props":3320,"children":3321},{"style":930},[3322],{"type":854,"value":2823},{"type":849,"tag":917,"props":3324,"children":3325},{"style":1067},[3326],{"type":854,"value":2828},{"type":849,"tag":917,"props":3328,"children":3329},{"style":930},[3330],{"type":854,"value":1075},{"type":849,"tag":917,"props":3332,"children":3333},{"style":952},[3334],{"type":854,"value":3335},"'memberships'",{"type":849,"tag":917,"props":3337,"children":3338},{"style":930},[3339],{"type":854,"value":2841},{"type":854,"value":957},{"type":849,"tag":917,"props":3342,"children":3343},{"class":919,"style":920},[3344,3348,3352,3356,3360,3364,3368,3372],{"type":849,"tag":917,"props":3345,"children":3346},{"style":930},[3347],{"type":854,"value":2823},{"type":849,"tag":917,"props":3349,"children":3350},{"style":1067},[3351],{"type":854,"value":882},{"type":849,"tag":917,"props":3353,"children":3354},{"style":930},[3355],{"type":854,"value":1075},{"type":849,"tag":917,"props":3357,"children":3358},{"style":952},[3359],{"type":854,"value":1444},{"type":849,"tag":917,"props":3361,"children":3362},{"style":930},[3363],{"type":854,"value":2866},{"type":849,"tag":917,"props":3365,"children":3366},{"style":936},[3367],{"type":854,"value":2871},{"type":849,"tag":917,"props":3369,"children":3370},{"style":930},[3371],{"type":854,"value":2791},{"type":849,"tag":917,"props":3373,"children":3374},{"style":1041},[3375],{"type":854,"value":2796},{"type":854,"value":957},{"type":849,"tag":917,"props":3378,"children":3379},{"class":919,"style":920},[3380,3385,3389,3393,3397,3401,3405,3409,3414,3418,3422,3426,3430,3434,3438,3443],{"type":849,"tag":917,"props":3381,"children":3382},{"style":936},[3383],{"type":854,"value":3384},"        q",{"type":849,"tag":917,"props":3386,"children":3387},{"style":930},[3388],{"type":854,"value":1064},{"type":849,"tag":917,"props":3390,"children":3391},{"style":1067},[3392],{"type":854,"value":2893},{"type":849,"tag":917,"props":3394,"children":3395},{"style":930},[3396],{"type":854,"value":1075},{"type":849,"tag":917,"props":3398,"children":3399},{"style":952},[3400],{"type":854,"value":1453},{"type":849,"tag":917,"props":3402,"children":3403},{"style":930},[3404],{"type":854,"value":877},{"type":849,"tag":917,"props":3406,"children":3407},{"style":936},[3408],{"type":854,"value":3129},{"type":849,"tag":917,"props":3410,"children":3411},{"style":930},[3412],{"type":854,"value":3413},").",{"type":849,"tag":917,"props":3415,"children":3416},{"style":1067},[3417],{"type":854,"value":2893},{"type":849,"tag":917,"props":3419,"children":3420},{"style":930},[3421],{"type":854,"value":1075},{"type":849,"tag":917,"props":3423,"children":3424},{"style":952},[3425],{"type":854,"value":1462},{"type":849,"tag":917,"props":3427,"children":3428},{"style":930},[3429],{"type":854,"value":877},{"type":849,"tag":917,"props":3431,"children":3432},{"style":936},[3433],{"type":854,"value":2964},{"type":849,"tag":917,"props":3435,"children":3436},{"style":930},[3437],{"type":854,"value":1064},{"type":849,"tag":917,"props":3439,"children":3440},{"style":936},[3441],{"type":854,"value":3442},"_id",{"type":849,"tag":917,"props":3444,"children":3445},{"style":930},[3446],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":3449,"children":3450},{"class":919,"style":920},[3451],{"type":849,"tag":917,"props":3452,"children":3453},{"style":930},[3454],{"type":854,"value":3455},"      )",{"type":854,"value":957},{"type":849,"tag":917,"props":3458,"children":3459},{"class":919,"style":920},[3460,3464,3468],{"type":849,"tag":917,"props":3461,"children":3462},{"style":930},[3463],{"type":854,"value":2823},{"type":849,"tag":917,"props":3465,"children":3466},{"style":1067},[3467],{"type":854,"value":902},{"type":849,"tag":917,"props":3469,"children":3470},{"style":930},[3471],{"type":854,"value":3472},"()",{"type":854,"value":957},{"type":849,"tag":917,"props":3475,"children":3476},{"class":919,"style":920},[3477,3482,3486,3491,3496,3501],{"type":849,"tag":917,"props":3478,"children":3479},{"style":924},[3480],{"type":854,"value":3481},"    return",{"type":849,"tag":917,"props":3483,"children":3484},{"style":936},[3485],{"type":854,"value":3294},{"type":849,"tag":917,"props":3487,"children":3488},{"style":930},[3489],{"type":854,"value":3490},"?.",{"type":849,"tag":917,"props":3492,"children":3493},{"style":936},[3494],{"type":854,"value":3495},"role",{"type":849,"tag":917,"props":3497,"children":3498},{"style":930},[3499],{"type":854,"value":3500}," ?? ",{"type":849,"tag":917,"props":3502,"children":3503},{"style":1041},[3504],{"type":854,"value":3030},{"type":854,"value":957},{"type":849,"tag":917,"props":3507,"children":3508},{"class":919,"style":920},[3509],{"type":849,"tag":917,"props":3510,"children":3511},{"style":930},[3512],{"type":854,"value":3513},"  },",{"type":854,"value":957},{"type":849,"tag":917,"props":3516,"children":3517},{"class":919,"style":920},[3518,3523],{"type":849,"tag":917,"props":3519,"children":3520},{"style":936},[3521],{"type":854,"value":3522},"  rules:",{"type":849,"tag":917,"props":3524,"children":3525},{"style":930},[3526],{"type":854,"value":2461},{"type":854,"value":957},{"type":849,"tag":917,"props":3529,"children":3530},{"class":919,"style":920},[3531,3536,3541,3545,3550],{"type":849,"tag":917,"props":3532,"children":3533},{"style":936},[3534],{"type":854,"value":3535},"    users:",{"type":849,"tag":917,"props":3537,"children":3538},{"style":1067},[3539],{"type":854,"value":3540}," owner",{"type":849,"tag":917,"props":3542,"children":3543},{"style":930},[3544],{"type":854,"value":1075},{"type":849,"tag":917,"props":3546,"children":3547},{"style":952},[3548],{"type":854,"value":3549},"'_id'",{"type":849,"tag":917,"props":3551,"children":3552},{"style":930},[3553],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":3556,"children":3557},{"class":919,"style":920},[3558,3563,3568,3572,3576],{"type":849,"tag":917,"props":3559,"children":3560},{"style":936},[3561],{"type":854,"value":3562},"    organizations:",{"type":849,"tag":917,"props":3564,"children":3565},{"style":1067},[3566],{"type":854,"value":3567}," tenant",{"type":849,"tag":917,"props":3569,"children":3570},{"style":930},[3571],{"type":854,"value":1075},{"type":849,"tag":917,"props":3573,"children":3574},{"style":952},[3575],{"type":854,"value":3549},{"type":849,"tag":917,"props":3577,"children":3578},{"style":930},[3579],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":3582,"children":3583},{"class":919,"style":920},[3584],{"type":849,"tag":917,"props":3585,"children":3586},{"style":1507},[3587],{"type":854,"value":3588},"    \u002F\u002F Every membership of an organization where your role allows the action, inside the",{"type":854,"value":957},{"type":849,"tag":917,"props":3591,"children":3592},{"class":919,"style":920},[3593],{"type":849,"tag":917,"props":3594,"children":3595},{"style":1507},[3596],{"type":854,"value":3597},"    \u002F\u002F organization the call names (as tenant() does). Not owner('userId'): that would let a",{"type":854,"value":957},{"type":849,"tag":917,"props":3600,"children":3601},{"class":919,"style":920},[3602],{"type":849,"tag":917,"props":3603,"children":3604},{"style":1507},[3605],{"type":854,"value":3606},"    \u002F\u002F member change their own role or add themselves to another organization.",{"type":854,"value":957},{"type":849,"tag":917,"props":3609,"children":3610},{"class":919,"style":920},[3611,3616,3621,3625,3629,3633,3637],{"type":849,"tag":917,"props":3612,"children":3613},{"style":936},[3614],{"type":854,"value":3615},"    memberships:",{"type":849,"tag":917,"props":3617,"children":3618},{"style":1067},[3619],{"type":854,"value":3620}," custom",{"type":849,"tag":917,"props":3622,"children":3623},{"style":930},[3624],{"type":854,"value":3073},{"type":849,"tag":917,"props":3626,"children":3627},{"style":3066},[3628],{"type":854,"value":2612},{"type":849,"tag":917,"props":3630,"children":3631},{"style":930},[3632],{"type":854,"value":3073},{"type":849,"tag":917,"props":3634,"children":3635},{"style":952},[3636],{"type":854,"value":3335},{"type":849,"tag":917,"props":3638,"children":3639},{"style":930},[3640],{"type":854,"value":3641},">>(",{"type":854,"value":957},{"type":849,"tag":917,"props":3644,"children":3645},{"class":919,"style":920},[3646,3651,3655,3659,3664,3668],{"type":849,"tag":917,"props":3647,"children":3648},{"style":930},[3649],{"type":854,"value":3650},"      (",{"type":849,"tag":917,"props":3652,"children":3653},{"style":936},[3654],{"type":854,"value":2777},{"type":849,"tag":917,"props":3656,"children":3657},{"style":930},[3658],{"type":854,"value":877},{"type":849,"tag":917,"props":3660,"children":3661},{"style":936},[3662],{"type":854,"value":3663},"membership",{"type":849,"tag":917,"props":3665,"children":3666},{"style":930},[3667],{"type":854,"value":2791},{"type":849,"tag":917,"props":3669,"children":3670},{"style":1041},[3671],{"type":854,"value":2796},{"type":854,"value":957},{"type":849,"tag":917,"props":3674,"children":3675},{"class":919,"style":920},[3676,3681,3685,3689,3693,3697,3701,3706,3710,3714,3718,3722,3726,3730,3734,3738,3742],{"type":849,"tag":917,"props":3677,"children":3678},{"style":930},[3679],{"type":854,"value":3680},"        (",{"type":849,"tag":917,"props":3682,"children":3683},{"style":936},[3684],{"type":854,"value":2777},{"type":849,"tag":917,"props":3686,"children":3687},{"style":930},[3688],{"type":854,"value":1064},{"type":849,"tag":917,"props":3690,"children":3691},{"style":936},[3692],{"type":854,"value":2973},{"type":849,"tag":917,"props":3694,"children":3695},{"style":930},[3696],{"type":854,"value":3025},{"type":849,"tag":917,"props":3698,"children":3699},{"style":1041},[3700],{"type":854,"value":3087},{"type":849,"tag":917,"props":3702,"children":3703},{"style":930},[3704],{"type":854,"value":3705}," || ",{"type":849,"tag":917,"props":3707,"children":3708},{"style":936},[3709],{"type":854,"value":2777},{"type":849,"tag":917,"props":3711,"children":3712},{"style":930},[3713],{"type":854,"value":1064},{"type":849,"tag":917,"props":3715,"children":3716},{"style":936},[3717],{"type":854,"value":2973},{"type":849,"tag":917,"props":3719,"children":3720},{"style":930},[3721],{"type":854,"value":1064},{"type":849,"tag":917,"props":3723,"children":3724},{"style":936},[3725],{"type":854,"value":1351},{"type":849,"tag":917,"props":3727,"children":3728},{"style":930},[3729],{"type":854,"value":3025},{"type":849,"tag":917,"props":3731,"children":3732},{"style":936},[3733],{"type":854,"value":3663},{"type":849,"tag":917,"props":3735,"children":3736},{"style":930},[3737],{"type":854,"value":1064},{"type":849,"tag":917,"props":3739,"children":3740},{"style":936},[3741],{"type":854,"value":3129},{"type":849,"tag":917,"props":3743,"children":3744},{"style":930},[3745],{"type":854,"value":3746},") &&",{"type":854,"value":957},{"type":849,"tag":917,"props":3749,"children":3750},{"class":919,"style":920},[3751,3756,3760,3765,3769,3774,3779,3783,3788,3792,3796,3800],{"type":849,"tag":917,"props":3752,"children":3753},{"style":936},[3754],{"type":854,"value":3755},"        ctx",{"type":849,"tag":917,"props":3757,"children":3758},{"style":930},[3759],{"type":854,"value":1064},{"type":849,"tag":917,"props":3761,"children":3762},{"style":1067},[3763],{"type":854,"value":3764},"allows",{"type":849,"tag":917,"props":3766,"children":3767},{"style":930},[3768],{"type":854,"value":1199},{"type":849,"tag":917,"props":3770,"children":3771},{"style":936},[3772],{"type":854,"value":3773},"table:",{"type":849,"tag":917,"props":3775,"children":3776},{"style":952},[3777],{"type":854,"value":3778}," 'organizations'",{"type":849,"tag":917,"props":3780,"children":3781},{"style":930},[3782],{"type":854,"value":877},{"type":849,"tag":917,"props":3784,"children":3785},{"style":936},[3786],{"type":854,"value":3787},"id:",{"type":849,"tag":917,"props":3789,"children":3790},{"style":936},[3791],{"type":854,"value":3294},{"type":849,"tag":917,"props":3793,"children":3794},{"style":930},[3795],{"type":854,"value":1064},{"type":849,"tag":917,"props":3797,"children":3798},{"style":936},[3799],{"type":854,"value":3129},{"type":849,"tag":917,"props":3801,"children":3802},{"style":930},[3803],{"type":854,"value":3804}," }),",{"type":854,"value":957},{"type":849,"tag":917,"props":3807,"children":3808},{"class":919,"style":920},[3809],{"type":849,"tag":917,"props":3810,"children":3811},{"style":930},[3812],{"type":854,"value":3813},"    ),",{"type":854,"value":957},{"type":849,"tag":917,"props":3816,"children":3817},{"class":919,"style":920},[3818,3823,3827,3831,3835,3840,3845,3850,3854,3859,3864],{"type":849,"tag":917,"props":3819,"children":3820},{"style":936},[3821],{"type":854,"value":3822},"    clients:",{"type":849,"tag":917,"props":3824,"children":3825},{"style":1067},[3826],{"type":854,"value":3567},{"type":849,"tag":917,"props":3828,"children":3829},{"style":930},[3830],{"type":854,"value":1075},{"type":849,"tag":917,"props":3832,"children":3833},{"style":952},[3834],{"type":854,"value":3549},{"type":849,"tag":917,"props":3836,"children":3837},{"style":930},[3838],{"type":854,"value":3839},", { ",{"type":849,"tag":917,"props":3841,"children":3842},{"style":936},[3843],{"type":854,"value":3844},"parent:",{"type":849,"tag":917,"props":3846,"children":3847},{"style":952},[3848],{"type":854,"value":3849}," 'organizationId'",{"type":849,"tag":917,"props":3851,"children":3852},{"style":930},[3853],{"type":854,"value":877},{"type":849,"tag":917,"props":3855,"children":3856},{"style":936},[3857],{"type":854,"value":3858},"createdBy:",{"type":849,"tag":917,"props":3860,"children":3861},{"style":952},[3862],{"type":854,"value":3863}," 'clients.create'",{"type":849,"tag":917,"props":3865,"children":3866},{"style":930},[3867],{"type":854,"value":3804},{"type":854,"value":957},{"type":849,"tag":917,"props":3870,"children":3871},{"class":919,"style":920},[3872,3877,3881,3885,3889],{"type":849,"tag":917,"props":3873,"children":3874},{"style":936},[3875],{"type":854,"value":3876},"    projects:",{"type":849,"tag":917,"props":3878,"children":3879},{"style":1067},[3880],{"type":854,"value":3567},{"type":849,"tag":917,"props":3882,"children":3883},{"style":930},[3884],{"type":854,"value":1075},{"type":849,"tag":917,"props":3886,"children":3887},{"style":952},[3888],{"type":854,"value":1453},{"type":849,"tag":917,"props":3890,"children":3891},{"style":930},[3892],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":3895,"children":3896},{"class":919,"style":920},[3897,3902,3907],{"type":849,"tag":917,"props":3898,"children":3899},{"style":936},[3900],{"type":854,"value":3901},"    pages:",{"type":849,"tag":917,"props":3903,"children":3904},{"style":1067},[3905],{"type":854,"value":3906}," anyOf",{"type":849,"tag":917,"props":3908,"children":3909},{"style":930},[3910],{"type":854,"value":1075},{"type":854,"value":957},{"type":849,"tag":917,"props":3913,"children":3914},{"class":919,"style":920},[3915,3920,3925,3930,3934,3938,3942,3947,3952,3956,3961,3965,3970,3974,3978],{"type":849,"tag":917,"props":3916,"children":3917},{"style":1067},[3918],{"type":854,"value":3919},"      publicRead",{"type":849,"tag":917,"props":3921,"children":3922},{"style":930},[3923],{"type":854,"value":3924},"((",{"type":849,"tag":917,"props":3926,"children":3927},{"style":936},[3928],{"type":854,"value":3929},"page",{"type":849,"tag":917,"props":3931,"children":3932},{"style":930},[3933],{"type":854,"value":3063},{"type":849,"tag":917,"props":3935,"children":3936},{"style":3066},[3937],{"type":854,"value":2612},{"type":849,"tag":917,"props":3939,"children":3940},{"style":930},[3941],{"type":854,"value":3073},{"type":849,"tag":917,"props":3943,"children":3944},{"style":952},[3945],{"type":854,"value":3946},"'pages'",{"type":849,"tag":917,"props":3948,"children":3949},{"style":930},[3950],{"type":854,"value":3951},">) ",{"type":849,"tag":917,"props":3953,"children":3954},{"style":1041},[3955],{"type":854,"value":2796},{"type":849,"tag":917,"props":3957,"children":3958},{"style":936},[3959],{"type":854,"value":3960}," page",{"type":849,"tag":917,"props":3962,"children":3963},{"style":930},[3964],{"type":854,"value":1064},{"type":849,"tag":917,"props":3966,"children":3967},{"style":936},[3968],{"type":854,"value":3969},"status",{"type":849,"tag":917,"props":3971,"children":3972},{"style":930},[3973],{"type":854,"value":3025},{"type":849,"tag":917,"props":3975,"children":3976},{"style":952},[3977],{"type":854,"value":2155},{"type":849,"tag":917,"props":3979,"children":3980},{"style":930},[3981],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":3984,"children":3985},{"class":919,"style":920},[3986,3991,3995,3999],{"type":849,"tag":917,"props":3987,"children":3988},{"style":1067},[3989],{"type":854,"value":3990},"      tenant",{"type":849,"tag":917,"props":3992,"children":3993},{"style":930},[3994],{"type":854,"value":1075},{"type":849,"tag":917,"props":3996,"children":3997},{"style":952},[3998],{"type":854,"value":1453},{"type":849,"tag":917,"props":4000,"children":4001},{"style":930},[4002],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":4005,"children":4006},{"class":919,"style":920},[4007],{"type":849,"tag":917,"props":4008,"children":4009},{"style":930},[4010],{"type":854,"value":3813},{"type":854,"value":957},{"type":849,"tag":917,"props":4013,"children":4014},{"class":919,"style":920},[4015,4020,4024,4028,4033,4037,4041,4045,4049,4053,4057],{"type":849,"tag":917,"props":4016,"children":4017},{"style":936},[4018],{"type":854,"value":4019},"    notes:",{"type":849,"tag":917,"props":4021,"children":4022},{"style":1067},[4023],{"type":854,"value":3906},{"type":849,"tag":917,"props":4025,"children":4026},{"style":930},[4027],{"type":854,"value":1075},{"type":849,"tag":917,"props":4029,"children":4030},{"style":1067},[4031],{"type":854,"value":4032},"owner",{"type":849,"tag":917,"props":4034,"children":4035},{"style":930},[4036],{"type":854,"value":1075},{"type":849,"tag":917,"props":4038,"children":4039},{"style":952},[4040],{"type":854,"value":2380},{"type":849,"tag":917,"props":4042,"children":4043},{"style":930},[4044],{"type":854,"value":1102},{"type":849,"tag":917,"props":4046,"children":4047},{"style":1067},[4048],{"type":854,"value":2973},{"type":849,"tag":917,"props":4050,"children":4051},{"style":930},[4052],{"type":854,"value":1075},{"type":849,"tag":917,"props":4054,"children":4055},{"style":952},[4056],{"type":854,"value":1453},{"type":849,"tag":917,"props":4058,"children":4059},{"style":930},[4060],{"type":854,"value":1775},{"type":854,"value":957},{"type":849,"tag":917,"props":4063,"children":4064},{"class":919,"style":920},[4065],{"type":849,"tag":917,"props":4066,"children":4067},{"style":930},[4068],{"type":854,"value":3513},{"type":854,"value":957},{"type":849,"tag":917,"props":4071,"children":4072},{"class":919,"style":920},[4073],{"type":849,"tag":917,"props":4074,"children":4075},{"style":930},[4076],{"type":854,"value":2442},{"type":854,"value":957},{"type":849,"tag":917,"props":4079,"children":4080},{"class":919,"style":920},[],{"type":854,"value":957},{"type":849,"tag":917,"props":4083,"children":4084},{"class":919,"style":920},[4085,4089,4093],{"type":849,"tag":917,"props":4086,"children":4087},{"style":924},[4088],{"type":854,"value":1038},{"type":849,"tag":917,"props":4090,"children":4091},{"style":1041},[4092],{"type":854,"value":1044},{"type":849,"tag":917,"props":4094,"children":4095},{"style":930},[4096],{"type":854,"value":2461},{"type":854,"value":957},{"type":849,"tag":917,"props":4099,"children":4100},{"class":919,"style":920},[4101,4106],{"type":849,"tag":917,"props":4102,"children":4103},{"style":1047},[4104],{"type":854,"value":4105},"  query",{"type":849,"tag":917,"props":4107,"children":4108},{"style":930},[4109],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":4112,"children":4113},{"class":919,"style":920},[4114,4119],{"type":849,"tag":917,"props":4115,"children":4116},{"style":1047},[4117],{"type":854,"value":4118},"  mutation",{"type":849,"tag":917,"props":4120,"children":4121},{"style":930},[4122],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":4125,"children":4126},{"class":919,"style":920},[4127,4132],{"type":849,"tag":917,"props":4128,"children":4129},{"style":1047},[4130],{"type":854,"value":4131},"  internalQuery",{"type":849,"tag":917,"props":4133,"children":4134},{"style":930},[4135],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":4138,"children":4139},{"class":919,"style":920},[4140,4145],{"type":849,"tag":917,"props":4141,"children":4142},{"style":1047},[4143],{"type":854,"value":4144},"  internalMutation",{"type":849,"tag":917,"props":4146,"children":4147},{"style":930},[4148],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":4151,"children":4152},{"class":919,"style":920},[4153,4158],{"type":849,"tag":917,"props":4154,"children":4155},{"style":1047},[4156],{"type":854,"value":4157},"  internalAction",{"type":849,"tag":917,"props":4159,"children":4160},{"style":930},[4161],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":4164,"children":4165},{"class":919,"style":920},[4166,4171],{"type":849,"tag":917,"props":4167,"children":4168},{"style":1047},[4169],{"type":854,"value":4170},"  job",{"type":849,"tag":917,"props":4172,"children":4173},{"style":930},[4174],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":4177,"children":4178},{"class":919,"style":920},[4179,4184],{"type":849,"tag":917,"props":4180,"children":4181},{"style":1047},[4182],{"type":854,"value":4183},"  authorizeAction",{"type":849,"tag":917,"props":4185,"children":4186},{"style":930},[4187],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":4190,"children":4191},{"class":919,"style":920},[4192,4197],{"type":849,"tag":917,"props":4193,"children":4194},{"style":930},[4195],{"type":854,"value":4196},"} = ",{"type":849,"tag":917,"props":4198,"children":4199},{"style":936},[4200],{"type":854,"value":4201},"fns",{"type":854,"value":957},{"type":849,"tag":917,"props":4204,"children":4205},{"class":919,"style":920},[4206],{"type":849,"tag":917,"props":4207,"children":4208},{"style":1507},[4209],{"type":854,"value":4210},"\u002F\u002F Public actions run `authorizeAction` before their handler: see Internal operations.",{"type":854,"value":957},{"type":849,"tag":917,"props":4213,"children":4214},{"class":919,"style":920},[4215,4219,4223,4228,4232,4236,4240,4245,4249,4253,4257,4262,4266,4271],{"type":849,"tag":917,"props":4216,"children":4217},{"style":924},[4218],{"type":854,"value":1038},{"type":849,"tag":917,"props":4220,"children":4221},{"style":1041},[4222],{"type":854,"value":1044},{"type":849,"tag":917,"props":4224,"children":4225},{"style":1047},[4226],{"type":854,"value":4227}," action",{"type":849,"tag":917,"props":4229,"children":4230},{"style":930},[4231],{"type":854,"value":1055},{"type":849,"tag":917,"props":4233,"children":4234},{"style":936},[4235],{"type":854,"value":4201},{"type":849,"tag":917,"props":4237,"children":4238},{"style":930},[4239],{"type":854,"value":1064},{"type":849,"tag":917,"props":4241,"children":4242},{"style":1067},[4243],{"type":854,"value":4244},"action",{"type":849,"tag":917,"props":4246,"children":4247},{"style":930},[4248],{"type":854,"value":1075},{"type":849,"tag":917,"props":4250,"children":4251},{"style":936},[4252],{"type":854,"value":2577},{"type":849,"tag":917,"props":4254,"children":4255},{"style":930},[4256],{"type":854,"value":1064},{"type":849,"tag":917,"props":4258,"children":4259},{"style":936},[4260],{"type":854,"value":4261},"functions",{"type":849,"tag":917,"props":4263,"children":4264},{"style":930},[4265],{"type":854,"value":1064},{"type":849,"tag":917,"props":4267,"children":4268},{"style":936},[4269],{"type":854,"value":4270},"authorizeAction",{"type":849,"tag":917,"props":4272,"children":4273},{"style":930},[4274],{"type":854,"value":2841},{"type":849,"tag":4276,"props":4277,"children":4279},"h2",{"id":4278},"the-rules",[4280],{"type":854,"value":4281},"The rules",{"type":849,"tag":3112,"props":4283,"children":4284},{},[4285,4304],{"type":849,"tag":4286,"props":4287,"children":4288},"thead",{},[4289],{"type":849,"tag":4290,"props":4291,"children":4292},"tr",{},[4293,4299],{"type":849,"tag":4294,"props":4295,"children":4296},"th",{},[4297],{"type":854,"value":4298},"Rule",{"type":849,"tag":4294,"props":4300,"children":4301},{},[4302],{"type":854,"value":4303},"A row passes when",{"type":849,"tag":4305,"props":4306,"children":4307},"tbody",{},[4308,4325,4348,4370,4392,4422,4438,4454,4486],{"type":849,"tag":4290,"props":4309,"children":4310},{},[4311,4320],{"type":849,"tag":4312,"props":4313,"children":4314},"td",{},[4315],{"type":849,"tag":857,"props":4316,"children":4317},{},[4318],{"type":854,"value":4319},"tenant('organizationId')",{"type":849,"tag":4312,"props":4321,"children":4322},{},[4323],{"type":854,"value":4324},"the caller's role in the organization in this field allows the call's action",{"type":849,"tag":4290,"props":4326,"children":4327},{},[4328,4336],{"type":849,"tag":4312,"props":4329,"children":4330},{},[4331],{"type":849,"tag":857,"props":4332,"children":4333},{},[4334],{"type":854,"value":4335},"tenant('_id', { createdBy })",{"type":849,"tag":4312,"props":4337,"children":4338},{},[4339,4341,4346],{"type":854,"value":4340},"the same, for the tenant table itself. Only the ",{"type":849,"tag":857,"props":4342,"children":4343},{},[4344],{"type":854,"value":4345},"createdBy",{"type":854,"value":4347}," action may insert one (none without it)",{"type":849,"tag":4290,"props":4349,"children":4350},{},[4351,4359],{"type":849,"tag":4312,"props":4352,"children":4353},{},[4354],{"type":849,"tag":857,"props":4355,"children":4356},{},[4357],{"type":854,"value":4358},"tenant('_id', { parent, createdBy })",{"type":849,"tag":4312,"props":4360,"children":4361},{},[4362,4364,4368],{"type":854,"value":4363},"a tenant inside a tenant: a call in the parent also reaches it; only ",{"type":849,"tag":857,"props":4365,"children":4366},{},[4367],{"type":854,"value":4345},{"type":854,"value":4369}," may insert one",{"type":849,"tag":4290,"props":4371,"children":4372},{},[4373,4381],{"type":849,"tag":4312,"props":4374,"children":4375},{},[4376],{"type":849,"tag":857,"props":4377,"children":4378},{},[4379],{"type":854,"value":4380},"owner('authorId')",{"type":849,"tag":4312,"props":4382,"children":4383},{},[4384,4386,4390],{"type":854,"value":4385},"the field holds the caller's user ID (",{"type":849,"tag":857,"props":4387,"children":4388},{},[4389],{"type":854,"value":3549},{"type":854,"value":4391}," on the users table)",{"type":849,"tag":4290,"props":4393,"children":4394},{},[4395,4403],{"type":849,"tag":4312,"props":4396,"children":4397},{},[4398],{"type":849,"tag":857,"props":4399,"children":4400},{},[4401],{"type":854,"value":4402},"publicRead(where)",{"type":849,"tag":4312,"props":4404,"children":4405},{},[4406,4408,4413,4415,4420],{"type":854,"value":4407},"anyone reads it, signed-out visitors too, when ",{"type":849,"tag":857,"props":4409,"children":4410},{},[4411],{"type":854,"value":4412},"where",{"type":854,"value":4414}," returns exactly ",{"type":849,"tag":857,"props":4416,"children":4417},{},[4418],{"type":854,"value":4419},"true",{"type":854,"value":4421}," (not a Promise). It never allows a write",{"type":849,"tag":4290,"props":4423,"children":4424},{},[4425,4433],{"type":849,"tag":4312,"props":4426,"children":4427},{},[4428],{"type":849,"tag":857,"props":4429,"children":4430},{},[4431],{"type":854,"value":4432},"anyOf(rule, …)",{"type":849,"tag":4312,"props":4434,"children":4435},{},[4436],{"type":854,"value":4437},"one of the rules passes",{"type":849,"tag":4290,"props":4439,"children":4440},{},[4441,4449],{"type":849,"tag":4312,"props":4442,"children":4443},{},[4444],{"type":849,"tag":857,"props":4445,"children":4446},{},[4447],{"type":854,"value":4448},"allOf(rule, …)",{"type":849,"tag":4312,"props":4450,"children":4451},{},[4452],{"type":854,"value":4453},"every rule passes",{"type":849,"tag":4290,"props":4455,"children":4456},{},[4457,4465],{"type":849,"tag":4312,"props":4458,"children":4459},{},[4460],{"type":849,"tag":857,"props":4461,"children":4462},{},[4463],{"type":854,"value":4464},"custom(check)",{"type":849,"tag":4312,"props":4466,"children":4467},{},[4468,4473,4474,4478,4480,4484],{"type":849,"tag":857,"props":4469,"children":4470},{},[4471],{"type":854,"value":4472},"check(ctx, row)",{"type":854,"value":4414},{"type":849,"tag":857,"props":4475,"children":4476},{},[4477],{"type":854,"value":4419},{"type":854,"value":4479},"; any other value hides the row. ",{"type":849,"tag":857,"props":4481,"children":4482},{},[4483],{"type":854,"value":868},{"type":854,"value":4485}," only reads",{"type":849,"tag":4290,"props":4487,"children":4488},{},[4489,4497],{"type":849,"tag":4312,"props":4490,"children":4491},{},[4492],{"type":849,"tag":857,"props":4493,"children":4494},{},[4495],{"type":854,"value":4496},"unchecked(reason)",{"type":849,"tag":4312,"props":4498,"children":4499},{},[4500],{"type":854,"value":4501},"always. Write why, so a reviewer can find and judge every one",{"type":849,"tag":850,"props":4503,"children":4504},{},[4505,4507,4512,4514,4519,4521,4526,4528,4533,4535,4540],{"type":854,"value":4506},"The field of ",{"type":849,"tag":857,"props":4508,"children":4509},{},[4510],{"type":854,"value":4511},"tenant(field)",{"type":854,"value":4513}," must hold the ID of a tenant: a row of a table\nwhose rule is ",{"type":849,"tag":857,"props":4515,"children":4516},{},[4517],{"type":854,"value":4518},"tenant('_id')",{"type":854,"value":4520},". A field that holds no ID is a type error. A\nfield that holds an ID of another table, such as ",{"type":849,"tag":857,"props":4522,"children":4523},{},[4524],{"type":854,"value":4525},"tasks: tenant('projectId')",{"type":854,"value":4527},"\nwhen ",{"type":849,"tag":857,"props":4529,"children":4530},{},[4531],{"type":854,"value":4532},"projects",{"type":854,"value":4534}," is not a tenant, fails at the first row with a message that\nnames the field. Make that table a tenant with ",{"type":849,"tag":857,"props":4536,"children":4537},{},[4538],{"type":854,"value":4539},"tenant('_id', { parent })",{"type":854,"value":4541},",\nor name the field that holds the tenant.",{"type":849,"tag":850,"props":4543,"children":4544},{},[4545,4547,4552,4554,4559],{"type":854,"value":4546},"A write that moves a tenant under another parent (a client to another\norganization) is checked like a new tenant there: the new parent must be in\nthe call, and the caller's role in it must allow the action. Otherwise the\nwrite fails with ",{"type":849,"tag":857,"props":4548,"children":4549},{},[4550],{"type":854,"value":4551},"NOT_FOUND",{"type":854,"value":4553},", or ",{"type":849,"tag":857,"props":4555,"children":4556},{},[4557],{"type":854,"value":4558},"FORBIDDEN",{"type":854,"value":4560}," when the role does not allow it.",{"type":849,"tag":850,"props":4562,"children":4563},{},[4564,4566,4571,4573,4578],{"type":854,"value":4565},"The rule is the same for every operation. The action decides the rest: a\nviewer of an organization reads its projects with ",{"type":849,"tag":857,"props":4567,"children":4568},{},[4569],{"type":854,"value":4570},"projects.list",{"type":854,"value":4572},", but\n",{"type":849,"tag":857,"props":4574,"children":4575},{},[4576],{"type":854,"value":4577},"projects.archive",{"type":854,"value":4579}," fails, because the viewer role does not allow that action.",{"type":849,"tag":4276,"props":4581,"children":4583},{"id":4582},"conditions-on-the-rows-state",[4584],{"type":854,"value":4585},"Conditions on the row's state",{"type":849,"tag":850,"props":4587,"children":4588},{},[4589,4591,4596,4598,4603,4605,4609],{"type":854,"value":4590},"Put a condition such as \"only drafts change\" in the rule, not in the handlers.\nA check in a handler protects only that handler: the next operation that\nwrites the table can forget it. ",{"type":849,"tag":857,"props":4592,"children":4593},{},[4594],{"type":854,"value":4595},"allOf",{"type":854,"value":4597}," adds the condition to the tenant rule.\nIn the ",{"type":849,"tag":857,"props":4599,"children":4600},{},[4601],{"type":854,"value":4602},"rules",{"type":854,"value":4604}," of ",{"type":849,"tag":857,"props":4606,"children":4607},{},[4608],{"type":854,"value":861},{"type":854,"value":2767},{"type":849,"tag":906,"props":4611,"children":4612},{"language":908,"class":910},[4613],{"type":849,"tag":857,"props":4614,"children":4615},{"class":914},[4616,4638,4639,4702,4703,4715,4716,4736,4737,4745,4746,4774,4775,4802,4803,4881,4882,4889,4890,4897,4898],{"type":849,"tag":917,"props":4617,"children":4618},{"class":919,"style":920},[4619,4625,4629,4634],{"type":849,"tag":917,"props":4620,"children":4622},{"style":4621},"color:#000000;--shiki-dark:#C8C8C8",[4623],{"type":854,"value":4624},"pages",{"type":849,"tag":917,"props":4626,"children":4627},{"style":930},[4628],{"type":854,"value":3063},{"type":849,"tag":917,"props":4630,"children":4631},{"style":1067},[4632],{"type":854,"value":4633},"anyOf",{"type":849,"tag":917,"props":4635,"children":4636},{"style":930},[4637],{"type":854,"value":1075},{"type":854,"value":957},{"type":849,"tag":917,"props":4640,"children":4641},{"class":919,"style":920},[4642,4646,4650,4654,4658,4662,4666,4670,4674,4678,4682,4686,4690,4694,4698],{"type":849,"tag":917,"props":4643,"children":4644},{"style":1067},[4645],{"type":854,"value":2522},{"type":849,"tag":917,"props":4647,"children":4648},{"style":930},[4649],{"type":854,"value":3924},{"type":849,"tag":917,"props":4651,"children":4652},{"style":936},[4653],{"type":854,"value":3929},{"type":849,"tag":917,"props":4655,"children":4656},{"style":930},[4657],{"type":854,"value":3063},{"type":849,"tag":917,"props":4659,"children":4660},{"style":3066},[4661],{"type":854,"value":2612},{"type":849,"tag":917,"props":4663,"children":4664},{"style":930},[4665],{"type":854,"value":3073},{"type":849,"tag":917,"props":4667,"children":4668},{"style":952},[4669],{"type":854,"value":3946},{"type":849,"tag":917,"props":4671,"children":4672},{"style":930},[4673],{"type":854,"value":3951},{"type":849,"tag":917,"props":4675,"children":4676},{"style":1041},[4677],{"type":854,"value":2796},{"type":849,"tag":917,"props":4679,"children":4680},{"style":936},[4681],{"type":854,"value":3960},{"type":849,"tag":917,"props":4683,"children":4684},{"style":930},[4685],{"type":854,"value":1064},{"type":849,"tag":917,"props":4687,"children":4688},{"style":936},[4689],{"type":854,"value":3969},{"type":849,"tag":917,"props":4691,"children":4692},{"style":930},[4693],{"type":854,"value":3025},{"type":849,"tag":917,"props":4695,"children":4696},{"style":952},[4697],{"type":854,"value":2155},{"type":849,"tag":917,"props":4699,"children":4700},{"style":930},[4701],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":4704,"children":4705},{"class":919,"style":920},[4706,4711],{"type":849,"tag":917,"props":4707,"children":4708},{"style":1067},[4709],{"type":854,"value":4710},"  allOf",{"type":849,"tag":917,"props":4712,"children":4713},{"style":930},[4714],{"type":854,"value":1075},{"type":854,"value":957},{"type":849,"tag":917,"props":4717,"children":4718},{"class":919,"style":920},[4719,4724,4728,4732],{"type":849,"tag":917,"props":4720,"children":4721},{"style":1067},[4722],{"type":854,"value":4723},"    tenant",{"type":849,"tag":917,"props":4725,"children":4726},{"style":930},[4727],{"type":854,"value":1075},{"type":849,"tag":917,"props":4729,"children":4730},{"style":952},[4731],{"type":854,"value":1453},{"type":849,"tag":917,"props":4733,"children":4734},{"style":930},[4735],{"type":854,"value":1365},{"type":854,"value":957},{"type":849,"tag":917,"props":4738,"children":4739},{"class":919,"style":920},[4740],{"type":849,"tag":917,"props":4741,"children":4742},{"style":1507},[4743],{"type":854,"value":4744},"    \u002F\u002F A published page changes only through pages.editLive.",{"type":854,"value":957},{"type":849,"tag":917,"props":4747,"children":4748},{"class":919,"style":920},[4749,4754,4758,4762,4766,4770],{"type":849,"tag":917,"props":4750,"children":4751},{"style":1067},[4752],{"type":854,"value":4753},"    custom",{"type":849,"tag":917,"props":4755,"children":4756},{"style":930},[4757],{"type":854,"value":3073},{"type":849,"tag":917,"props":4759,"children":4760},{"style":3066},[4761],{"type":854,"value":2612},{"type":849,"tag":917,"props":4763,"children":4764},{"style":930},[4765],{"type":854,"value":3073},{"type":849,"tag":917,"props":4767,"children":4768},{"style":952},[4769],{"type":854,"value":3946},{"type":849,"tag":917,"props":4771,"children":4772},{"style":930},[4773],{"type":854,"value":3641},{"type":854,"value":957},{"type":849,"tag":917,"props":4776,"children":4777},{"class":919,"style":920},[4778,4782,4786,4790,4794,4798],{"type":849,"tag":917,"props":4779,"children":4780},{"style":930},[4781],{"type":854,"value":3650},{"type":849,"tag":917,"props":4783,"children":4784},{"style":936},[4785],{"type":854,"value":2777},{"type":849,"tag":917,"props":4787,"children":4788},{"style":930},[4789],{"type":854,"value":877},{"type":849,"tag":917,"props":4791,"children":4792},{"style":936},[4793],{"type":854,"value":3929},{"type":849,"tag":917,"props":4795,"children":4796},{"style":930},[4797],{"type":854,"value":2791},{"type":849,"tag":917,"props":4799,"children":4800},{"style":1041},[4801],{"type":854,"value":2796},{"type":854,"value":957},{"type":849,"tag":917,"props":4804,"children":4805},{"class":919,"style":920},[4806,4810,4814,4819,4823,4828,4832,4836,4840,4844,4848,4852,4856,4860,4864,4868,4872,4877],{"type":849,"tag":917,"props":4807,"children":4808},{"style":936},[4809],{"type":854,"value":3755},{"type":849,"tag":917,"props":4811,"children":4812},{"style":930},[4813],{"type":854,"value":1064},{"type":849,"tag":917,"props":4815,"children":4816},{"style":936},[4817],{"type":854,"value":4818},"mode",{"type":849,"tag":917,"props":4820,"children":4821},{"style":930},[4822],{"type":854,"value":3025},{"type":849,"tag":917,"props":4824,"children":4825},{"style":952},[4826],{"type":854,"value":4827},"'read'",{"type":849,"tag":917,"props":4829,"children":4830},{"style":930},[4831],{"type":854,"value":3705},{"type":849,"tag":917,"props":4833,"children":4834},{"style":936},[4835],{"type":854,"value":3929},{"type":849,"tag":917,"props":4837,"children":4838},{"style":930},[4839],{"type":854,"value":1064},{"type":849,"tag":917,"props":4841,"children":4842},{"style":936},[4843],{"type":854,"value":3969},{"type":849,"tag":917,"props":4845,"children":4846},{"style":930},[4847],{"type":854,"value":3025},{"type":849,"tag":917,"props":4849,"children":4850},{"style":952},[4851],{"type":854,"value":2130},{"type":849,"tag":917,"props":4853,"children":4854},{"style":930},[4855],{"type":854,"value":3705},{"type":849,"tag":917,"props":4857,"children":4858},{"style":936},[4859],{"type":854,"value":2777},{"type":849,"tag":917,"props":4861,"children":4862},{"style":930},[4863],{"type":854,"value":1064},{"type":849,"tag":917,"props":4865,"children":4866},{"style":936},[4867],{"type":854,"value":4244},{"type":849,"tag":917,"props":4869,"children":4870},{"style":930},[4871],{"type":854,"value":3025},{"type":849,"tag":917,"props":4873,"children":4874},{"style":952},[4875],{"type":854,"value":4876},"'pages.editLive'",{"type":849,"tag":917,"props":4878,"children":4879},{"style":930},[4880],{"type":854,"value":1413},{"type":854,"value":957},{"type":849,"tag":917,"props":4883,"children":4884},{"class":919,"style":920},[4885],{"type":849,"tag":917,"props":4886,"children":4887},{"style":930},[4888],{"type":854,"value":3813},{"type":854,"value":957},{"type":849,"tag":917,"props":4891,"children":4892},{"class":919,"style":920},[4893],{"type":849,"tag":917,"props":4894,"children":4895},{"style":930},[4896],{"type":854,"value":1624},{"type":854,"value":957},{"type":849,"tag":917,"props":4899,"children":4900},{"class":919,"style":920},[4901],{"type":849,"tag":917,"props":4902,"children":4903},{"style":930},[4904],{"type":854,"value":1365},{"type":849,"tag":850,"props":4906,"children":4907},{},[4908,4910,4915,4917,4921],{"type":854,"value":4909},"A write is checked on the row before and after the change, so this rule also\nstops an operation other than ",{"type":849,"tag":857,"props":4911,"children":4912},{},[4913],{"type":854,"value":4914},"pages.editLive",{"type":854,"value":4916}," from publishing a draft. When\none part hides the row, the row does not exist for the caller; when one part\nrefuses the write, the write fails with ",{"type":849,"tag":857,"props":4918,"children":4919},{},[4920],{"type":854,"value":4558},{"type":854,"value":1064},{"type":849,"tag":4276,"props":4923,"children":4925},{"id":4924},"what-a-refused-row-does",[4926],{"type":854,"value":4927},"What a refused row does",{"type":849,"tag":3112,"props":4929,"children":4930},{},[4931,4947],{"type":849,"tag":4286,"props":4932,"children":4933},{},[4934],{"type":849,"tag":4290,"props":4935,"children":4936},{},[4937,4942],{"type":849,"tag":4294,"props":4938,"children":4939},{},[4940],{"type":854,"value":4941},"The handler",{"type":849,"tag":4294,"props":4943,"children":4944},{},[4945],{"type":854,"value":4946},"Result",{"type":849,"tag":4305,"props":4948,"children":4949},{},[4950,4971,4984,4999],{"type":849,"tag":4290,"props":4951,"children":4952},{},[4953,4962],{"type":849,"tag":4312,"props":4954,"children":4955},{},[4956,4958],{"type":854,"value":4957},"reads one row with ",{"type":849,"tag":857,"props":4959,"children":4960},{},[4961],{"type":854,"value":875},{"type":849,"tag":4312,"props":4963,"children":4964},{},[4965,4969],{"type":849,"tag":857,"props":4966,"children":4967},{},[4968],{"type":854,"value":3030},{"type":854,"value":4970},", as for a row that does not exist",{"type":849,"tag":4290,"props":4972,"children":4973},{},[4974,4979],{"type":849,"tag":4312,"props":4975,"children":4976},{},[4977],{"type":854,"value":4978},"runs a query that returns such a row",{"type":849,"tag":4312,"props":4980,"children":4981},{},[4982],{"type":854,"value":4983},"the call fails: the query is missing a filter",{"type":849,"tag":4290,"props":4985,"children":4986},{},[4987,4992],{"type":849,"tag":4312,"props":4988,"children":4989},{},[4990],{"type":854,"value":4991},"writes a row the caller cannot see",{"type":849,"tag":4312,"props":4993,"children":4994},{},[4995],{"type":849,"tag":857,"props":4996,"children":4997},{},[4998],{"type":854,"value":4551},{"type":849,"tag":4290,"props":5000,"children":5001},{},[5002,5007],{"type":849,"tag":4312,"props":5003,"children":5004},{},[5005],{"type":854,"value":5006},"writes a row the caller may only read",{"type":849,"tag":4312,"props":5008,"children":5009},{},[5010],{"type":849,"tag":857,"props":5011,"children":5012},{},[5013],{"type":854,"value":4558},{"type":849,"tag":850,"props":5015,"children":5016},{},[5017],{"type":854,"value":5018},"Rules check rows. They do not filter them. A query that would skip rows makes\npages short and counts wrong without a sign, so it fails instead.",{"type":849,"tag":5020,"props":5021,"children":5022},"warning",{},[5023,5025,5030,5032,5036,5038,5043,5045,5050],{"type":854,"value":5024},"Narrow every query by an index on the field its rule checks: the tenant field,\nthe owner field, or the ",{"type":849,"tag":857,"props":5026,"children":5027},{},[5028],{"type":854,"value":5029},"publicRead",{"type":854,"value":5031}," condition. For ",{"type":849,"tag":857,"props":5033,"children":5034},{},[5035],{"type":854,"value":4624},{"type":854,"value":5037},", query\n",{"type":849,"tag":857,"props":5039,"children":5040},{},[5041],{"type":854,"value":5042},"by_org_status_slug",{"type":854,"value":5044}," with the organization and ",{"type":849,"tag":857,"props":5046,"children":5047},{},[5048],{"type":854,"value":5049},"status: 'published'",{"type":854,"value":5051},". A query\nover the whole table fails as soon as it meets a row of another tenant.",{"type":849,"tag":4276,"props":5053,"children":5055},{"id":5054},"how-a-call-finds-its-tenant",[5056],{"type":854,"value":5057},"How a call finds its tenant",{"type":849,"tag":850,"props":5059,"children":5060},{},[5061],{"type":854,"value":5062},"The call's tenant is where its role comes from. The library finds it in the\narguments before the handler runs:",{"type":849,"tag":5064,"props":5065,"children":5066},"ul",{},[5067,5104,5133,5151],{"type":849,"tag":5068,"props":5069,"children":5070},"li",{},[5071,5073,5077,5079,5084,5086,5090,5092,5096,5098,5102],{"type":854,"value":5072},"An ID of a table with a ",{"type":849,"tag":857,"props":5074,"children":5075},{},[5076],{"type":854,"value":2973},{"type":854,"value":5078}," rule names a tenant: ",{"type":849,"tag":857,"props":5080,"children":5081},{},[5082],{"type":854,"value":5083},"projectId",{"type":854,"value":5085}," names the\nproject's organization, ",{"type":849,"tag":857,"props":5087,"children":5088},{},[5089],{"type":854,"value":3129},{"type":854,"value":5091}," names the organization. A ",{"type":849,"tag":857,"props":5093,"children":5094},{},[5095],{"type":854,"value":2973},{"type":854,"value":5097},"\nrule inside ",{"type":849,"tag":857,"props":5099,"children":5100},{},[5101],{"type":854,"value":4595},{"type":854,"value":5103}," counts too, as every row must pass it.",{"type":849,"tag":5068,"props":5105,"children":5106},{},[5107,5109,5113,5115,5119,5121,5126,5128,5132],{"type":854,"value":5108},"An ID of an ",{"type":849,"tag":857,"props":5110,"children":5111},{},[5112],{"type":854,"value":4633},{"type":854,"value":5114}," table does not, because its rows may be private, public\nor shared. An operation on ",{"type":849,"tag":857,"props":5116,"children":5117},{},[5118],{"type":854,"value":4624},{"type":854,"value":5120}," or ",{"type":849,"tag":857,"props":5122,"children":5123},{},[5124],{"type":854,"value":5125},"notes",{"type":854,"value":5127}," names its tenant in its own\narguments (",{"type":849,"tag":857,"props":5129,"children":5130},{},[5131],{"type":854,"value":3129},{"type":854,"value":3413},{"type":849,"tag":5068,"props":5134,"children":5135},{},[5136,5138,5142,5144,5149],{"type":854,"value":5137},"All IDs of one call must come from one place: one tenant and the tenants\nabove it. IDs from two organizations fail with ",{"type":849,"tag":857,"props":5139,"children":5140},{},[5141],{"type":854,"value":4558},{"type":854,"value":5143},". An operation that\nmoves rows between tenants sets ",{"type":849,"tag":857,"props":5145,"children":5146},{},[5147],{"type":854,"value":5148},"crossTenant: true",{"type":854,"value":5150},"; the caller's role must\nthen allow the action in every tenant the call names.",{"type":849,"tag":5068,"props":5152,"children":5153},{},[5154,5156,5160,5162,5166],{"type":854,"value":5155},"An ID of a tenant where the caller has no role fails with ",{"type":849,"tag":857,"props":5157,"children":5158},{},[5159],{"type":854,"value":4551},{"type":854,"value":5161},", not\n",{"type":849,"tag":857,"props":5163,"children":5164},{},[5165],{"type":854,"value":4558},{"type":854,"value":5167},", so a caller cannot learn that a foreign ID exists.",{"type":849,"tag":850,"props":5169,"children":5170},{},[5171,5173,5178],{"type":854,"value":5172},"A call with no tenant ID needs the role outside any tenant\n(",{"type":849,"tag":857,"props":5174,"children":5175},{},[5176],{"type":854,"value":5177},"roleOf(ctx, user, null)",{"type":854,"value":5179},") to allow its action, unless the action is public.\nIts rows are then checked each in its own tenant.",{"type":849,"tag":4276,"props":5181,"children":5183},{"id":5182},"custom-rules",[5184],{"type":854,"value":5185},"Custom rules",{"type":849,"tag":850,"props":5187,"children":5188},{},[5189,5194,5196,5201,5203,5208,5210,5215,5217,5221,5222,5227,5229,5233,5235,5240,5242,5247],{"type":849,"tag":857,"props":5190,"children":5191},{},[5192],{"type":854,"value":5193},"custom",{"type":854,"value":5195}," receives the call and the row. ",{"type":849,"tag":857,"props":5197,"children":5198},{},[5199],{"type":854,"value":5200},"ctx.actor",{"type":854,"value":5202}," is the caller,\n",{"type":849,"tag":857,"props":5204,"children":5205},{},[5206],{"type":854,"value":5207},"ctx.action",{"type":854,"value":5209}," the call's action, ",{"type":849,"tag":857,"props":5211,"children":5212},{},[5213],{"type":854,"value":5214},"ctx.mode",{"type":854,"value":5216}," is ",{"type":849,"tag":857,"props":5218,"children":5219},{},[5220],{"type":854,"value":4827},{"type":854,"value":5120},{"type":849,"tag":857,"props":5223,"children":5224},{},[5225],{"type":854,"value":5226},"'write'",{"type":854,"value":5228},", and\n",{"type":849,"tag":857,"props":5230,"children":5231},{},[5232],{"type":854,"value":868},{"type":854,"value":5234}," reads without rules, for lookups. Type the row:\n",{"type":849,"tag":857,"props":5236,"children":5237},{},[5238],{"type":854,"value":5239},"custom\u003CDoc\u003C'memberships'>>(…)",{"type":854,"value":5241},". Without the type, the row is ",{"type":849,"tag":857,"props":5243,"children":5244},{},[5245],{"type":854,"value":5246},"unknown",{"type":854,"value":5248},".\nThe row is a frozen copy: a rule that changes it throws, and the call fails.",{"type":849,"tag":850,"props":5250,"children":5251},{},[5252,5254,5259],{"type":854,"value":5253},"Call ",{"type":849,"tag":857,"props":5255,"children":5256},{},[5257],{"type":854,"value":5258},"ctx.allows(tenant)",{"type":854,"value":5260}," to apply the role layer. A custom rule that checks\nmembership alone lets a viewer write.",{"type":849,"tag":850,"props":5262,"children":5263},{},[5264,5266,5270,5272,5277,5279,5283,5285,5290],{"type":854,"value":5265},"A custom rule is not limited to the call's tenant, the way ",{"type":849,"tag":857,"props":5267,"children":5268},{},[5269],{"type":854,"value":4511},{"type":854,"value":5271}," is.\n",{"type":849,"tag":857,"props":5273,"children":5274},{},[5275],{"type":854,"value":5276},"ctx.tenant",{"type":854,"value":5278}," is the tenant the call names, or ",{"type":849,"tag":857,"props":5280,"children":5281},{},[5282],{"type":854,"value":3087},{"type":854,"value":5284}," for a call that\nnames none. The ",{"type":849,"tag":857,"props":5286,"children":5287},{},[5288],{"type":854,"value":5289},"memberships",{"type":854,"value":5291}," rule above checks it, so an operation in one\norganization cannot change a membership of another organization where the\ncaller has the same role.",{"type":849,"tag":4276,"props":5293,"children":5295},{"id":5294},"what-ctxdb-refuses",[5296,5298,5302],{"type":854,"value":5297},"What ",{"type":849,"tag":857,"props":5299,"children":5300},{},[5301],{"type":854,"value":868},{"type":854,"value":5303}," refuses",{"type":849,"tag":5064,"props":5305,"children":5306},{},[5307,5319],{"type":849,"tag":5068,"props":5308,"children":5309},{},[5310,5312,5317],{"type":854,"value":5311},"System tables (",{"type":849,"tag":857,"props":5313,"children":5314},{},[5315],{"type":854,"value":5316},"ctx.db.system",{"type":854,"value":5318},"): scheduled-function arguments and file\nmetadata belong to every user at once.",{"type":849,"tag":5068,"props":5320,"children":5321},{},[5322],{"type":854,"value":5323},"Query methods the library does not know. A method that Convex adds later\nfails until the library checks it too.",{"type":849,"tag":850,"props":5325,"children":5326},{},[5327,5329,5334,5336,5341],{"type":854,"value":5328},"A system job (",{"type":849,"tag":857,"props":5330,"children":5331},{},[5332],{"type":854,"value":5333},"job",{"type":854,"value":5335},") gets the database without rules. See\n",{"type":849,"tag":5337,"props":5338,"children":5339},"a",{"href":513},[5340],{"type":854,"value":508},{"type":854,"value":1064},{"type":849,"tag":4276,"props":5343,"children":5345},{"id":5344},"files-are-not-rows",[5346],{"type":854,"value":5347},"Files are not rows",{"type":849,"tag":850,"props":5349,"children":5350},{},[5351,5356,5358,5363,5365,5370,5371,5376,5378,5384],{"type":849,"tag":857,"props":5352,"children":5353},{},[5354],{"type":854,"value":5355},"ctx.storage",{"type":854,"value":5357}," is Convex's own, without rules: a storage ID gives whoever holds\nit the file. Read the storage ID from a row the call may read\n(",{"type":849,"tag":857,"props":5359,"children":5360},{},[5361],{"type":854,"value":5362},"(await ctx.db.get(documentId))?.fileId",{"type":854,"value":5364},"), never from the input, before you\ncall ",{"type":849,"tag":857,"props":5366,"children":5367},{},[5368],{"type":854,"value":5369},"ctx.storage.getUrl",{"type":854,"value":5120},{"type":849,"tag":857,"props":5372,"children":5373},{},[5374],{"type":854,"value":5375},"ctx.storage.delete",{"type":854,"value":5377},". See\n",{"type":849,"tag":5337,"props":5379,"children":5381},{"href":5380},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Fthreat-model#what-is-not-protected",[5382],{"type":854,"value":5383},"What is not protected",{"type":854,"value":1064},{"title":5386,"searchDepth":5387,"depth":5387,"links":5388},"",4,[5389,5391,5392,5393,5394,5395,5397],{"id":4278,"depth":5390,"text":4281},2,{"id":4582,"depth":5390,"text":4585},{"id":4924,"depth":5390,"text":4927},{"id":5054,"depth":5390,"text":5057},{"id":5182,"depth":5390,"text":5185},{"id":5294,"depth":5390,"text":5396},"What ctx.db refuses",{"id":5344,"depth":5390,"text":5347},"markdown","docs",{"source":5401,"path":5402,"stem":5403,"dir":4261,"extension":5404},"content","docs\u002F3.build\u002F8.functions\u002F3.row-rules.md","docs\u002F3.build\u002F8.functions\u002F3.row-rules","md",{"requestedPath":506,"resolvedPath":506,"alternates":5406},[],{"requested":5408,"resolved":5409,"usedFallback":6},{},{"locale":8},{"previous":5411,"next":5413},{"title":495,"id":496,"canonicalKey":497,"locale":8,"draft":6,"navigation":5412,"icon":39,"path":499},{"icon":39},{"title":508,"id":509,"canonicalKey":510,"locale":8,"draft":6,"navigation":5414,"icon":512,"path":513},{"icon":512},{"left":5416,"top":5416,"width":5417,"height":5417,"rotate":5416,"vFlip":6,"hFlip":6,"body":5418},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":5416,"top":5416,"width":5420,"height":5420,"rotate":5416,"vFlip":6,"hFlip":6,"body":5421},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>",1794905508164]