[{"data":1,"prerenderedAt":6355},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:x6A8U-qkqLzNnVHTBcmzcThEN91VvjrSxDkGH1IIs68":842,"content-page-surround:docs:x6A8U-qkqLzNnVHTBcmzcThEN91VvjrSxDkGH1IIs68":6341,"i-lucide:terminal":6346,"i-logos:typescript-icon":6350,"i-lucide:clipboard":6353},[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":488,"description":843,"navigation":844,"body":845,"type":6329,"id":489,"canonicalKey":490,"draft":6,"partial":6,"locale":8,"collection":6330,"navigationFile":6,"file":6331,"route":6336,"resolution":6338},"Write one operation, one row rule and one tool. People call it from the web, agents call it through MCP, and both pass the same checks.",{"icon":492},{"type":846,"children":847,"toc":6314},"root",[848,869,874,914,940,947,1014,1020,1063,1089,1095,1107,1856,1862,1881,2246,2258,2264,2273,3446,3468,3474,3510,4856,4861,4893,4905,4911,4923,5291,5300,5306,5311,5619,5624,6146,6171,6177,6234,6245,6263,6286,6292],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853,860,862,867],{"type":849,"tag":854,"props":855,"children":856},"code",{},[857],{"type":858,"value":859},"text","@lupinum\u002Fbetter-convex-functions",{"type":858,"value":861}," lets you say once who may do what, and to\nwhich rows. ",{"type":849,"tag":854,"props":863,"children":864},{},[865],{"type":858,"value":866},"@lupinum\u002Fbetter-convex-agents",{"type":858,"value":868}," turns the same functions into tools\nfor AI hosts such as ChatGPT and Claude. This page builds the smallest complete\nexample: archive a project.",{"type":849,"tag":850,"props":870,"children":871},{},[872],{"type":858,"value":873},"At the end you have:",{"type":849,"tag":875,"props":876,"children":877},"ul",{},[878,892,903],{"type":849,"tag":879,"props":880,"children":881},"li",{},[882,884,890],{"type":858,"value":883},"one ",{"type":849,"tag":885,"props":886,"children":887},"strong",{},[888],{"type":858,"value":889},"operation",{"type":858,"value":891},": a Convex mutation that names its action and checks the\ncaller, the policy and every row it touches;",{"type":849,"tag":879,"props":893,"children":894},{},[895,896,901],{"type":858,"value":883},{"type":849,"tag":885,"props":897,"children":898},{},[899],{"type":858,"value":900},"row rule",{"type":858,"value":902},": projects belong to an organization, and only members reach\nthem;",{"type":849,"tag":879,"props":904,"children":905},{},[906,907,912],{"type":858,"value":883},{"type":849,"tag":885,"props":908,"children":909},{},[910],{"type":858,"value":911},"tool",{"type":858,"value":913},": the same mutation for agents, held until a person approves it.",{"type":849,"tag":850,"props":915,"children":916},{},[917,919,924,926,931,933,938],{"type":858,"value":918},"Both packages are experimental (",{"type":849,"tag":854,"props":920,"children":921},{},[922],{"type":858,"value":923},"0.x",{"type":858,"value":925},"). Their API can change until ",{"type":849,"tag":854,"props":927,"children":928},{},[929],{"type":858,"value":930},"1.0.0",{"type":858,"value":932},".\n",{"type":849,"tag":854,"props":934,"children":935},{},[936],{"type":858,"value":937},"starters\u002Fmcp-oauth-agent",{"type":858,"value":939}," is the complete application, with sign-in, consent,\nan approval page and tests.",{"type":849,"tag":941,"props":942,"children":944},"h2",{"id":943},"words-on-this-page",[945],{"type":858,"value":946},"Words on this page",{"type":849,"tag":875,"props":948,"children":949},{},[950,967,977,987,1004],{"type":849,"tag":879,"props":951,"children":952},{},[953,958,960,965],{"type":849,"tag":885,"props":954,"children":955},{},[956],{"type":858,"value":957},"Action",{"type":858,"value":959},": a name for one thing a person can do, such as ",{"type":849,"tag":854,"props":961,"children":962},{},[963],{"type":858,"value":964},"projects.archive",{"type":858,"value":966},".",{"type":849,"tag":879,"props":968,"children":969},{},[970,975],{"type":849,"tag":885,"props":971,"children":972},{},[973],{"type":858,"value":974},"Policy",{"type":858,"value":976},": the list of actions, which roles may do each one, and what\nagents may do on their own.",{"type":849,"tag":879,"props":978,"children":979},{},[980,985],{"type":849,"tag":885,"props":981,"children":982},{},[983],{"type":858,"value":984},"Tenant",{"type":858,"value":986},": the place a row belongs to, such as an organization. A person\nhas a role in a tenant.",{"type":849,"tag":879,"props":988,"children":989},{},[990,995,997,1002],{"type":849,"tag":885,"props":991,"children":992},{},[993],{"type":858,"value":994},"Operation",{"type":858,"value":996},": a Convex query or mutation built with ",{"type":849,"tag":854,"props":998,"children":999},{},[1000],{"type":858,"value":1001},"defineFunctions",{"type":858,"value":1003},". It\nnames one action.",{"type":849,"tag":879,"props":1005,"children":1006},{},[1007,1012],{"type":849,"tag":885,"props":1008,"children":1009},{},[1010],{"type":858,"value":1011},"Actor",{"type":858,"value":1013},": who calls: a person, an agent acting for a person, a signed-out\nvisitor, or a system job.",{"type":849,"tag":941,"props":1015,"children":1017},{"id":1016},"install",[1018],{"type":858,"value":1019},"Install",{"type":849,"tag":1021,"props":1022,"children":1025},"pre",{"language":1023,"class":1024},"bash","shiki shiki-themes light-plus dark-plus dark:dark-plus",[1026],{"type":849,"tag":854,"props":1027,"children":1029},{"class":1028},"language-bash",[1030],{"type":849,"tag":1031,"props":1032,"children":1035},"span",{"class":1033,"style":1034},"line","display: inline",[1036,1042,1048,1053,1058],{"type":849,"tag":1031,"props":1037,"children":1039},{"style":1038},"color:#795E26;--shiki-dark:#DCDCAA",[1040],{"type":858,"value":1041},"pnpm",{"type":849,"tag":1031,"props":1043,"children":1045},{"style":1044},"color:#A31515;--shiki-dark:#CE9178",[1046],{"type":858,"value":1047}," add",{"type":849,"tag":1031,"props":1049,"children":1050},{"style":1044},[1051],{"type":858,"value":1052}," @lupinum\u002Fbetter-convex-functions",{"type":849,"tag":1031,"props":1054,"children":1055},{"style":1044},[1056],{"type":858,"value":1057}," @lupinum\u002Fbetter-convex-agents",{"type":849,"tag":1031,"props":1059,"children":1060},{"style":1044},[1061],{"type":858,"value":1062}," @modelcontextprotocol\u002Fserver@2.3.1",{"type":849,"tag":850,"props":1064,"children":1065},{},[1066,1068,1074,1076,1081,1083,1087],{"type":858,"value":1067},"The application needs ",{"type":849,"tag":1069,"props":1070,"children":1071},"a",{"href":216},[1072],{"type":858,"value":1073},"Better Auth",{"type":858,"value":1075},"\nand a ",{"type":849,"tag":854,"props":1077,"children":1078},{},[1079],{"type":858,"value":1080},"users",{"type":858,"value":1082}," table with one row per Better Auth user.\n",{"type":849,"tag":1069,"props":1084,"children":1085},{"href":264},[1086],{"type":858,"value":259},{"type":858,"value":1088}," fills\nit.",{"type":849,"tag":941,"props":1090,"children":1092},{"id":1091},"_1-add-the-tables",[1093],{"type":858,"value":1094},"1. Add the tables",{"type":849,"tag":850,"props":1096,"children":1097},{},[1098,1100,1105],{"type":858,"value":1099},"Spread ",{"type":849,"tag":854,"props":1101,"children":1102},{},[1103],{"type":858,"value":1104},"libraryTables",{"type":858,"value":1106}," into the schema. The library decides who may act, and\nagents are actors like people: these tables hold their grants, the approvals\nthat give them authority, rate limits and the activity log. Row rules keep your\nhandlers out of them. An app without agents keeps them empty.",{"type":849,"tag":1021,"props":1108,"children":1111},{"language":1109,"filename":1110,"class":1024},"ts","convex\u002Fschema.ts",[1112],{"type":849,"tag":854,"props":1113,"children":1115},{"class":1114},"language-ts",[1116,1151,1153,1192,1193,1222,1223,1226,1227,1250,1251,1345,1346,1383,1384,1400,1401,1436,1437,1470,1471,1549,1550,1593,1594,1610,1611,1642,1643,1668,1669,1743,1744,1787,1788,1829,1830,1847,1848],{"type":849,"tag":1031,"props":1117,"children":1118},{"class":1033,"style":1034},[1119,1125,1131,1136,1141,1146],{"type":849,"tag":1031,"props":1120,"children":1122},{"style":1121},"color:#AF00DB;--shiki-dark:#C586C0",[1123],{"type":858,"value":1124},"import",{"type":849,"tag":1031,"props":1126,"children":1128},{"style":1127},"color:#000000;--shiki-dark:#D4D4D4",[1129],{"type":858,"value":1130}," { ",{"type":849,"tag":1031,"props":1132,"children":1134},{"style":1133},"color:#001080;--shiki-dark:#9CDCFE",[1135],{"type":858,"value":1104},{"type":849,"tag":1031,"props":1137,"children":1138},{"style":1127},[1139],{"type":858,"value":1140}," } ",{"type":849,"tag":1031,"props":1142,"children":1143},{"style":1121},[1144],{"type":858,"value":1145},"from",{"type":849,"tag":1031,"props":1147,"children":1148},{"style":1044},[1149],{"type":858,"value":1150}," '@lupinum\u002Fbetter-convex-functions'",{"type":858,"value":1152},"\n",{"type":849,"tag":1031,"props":1154,"children":1155},{"class":1033,"style":1034},[1156,1160,1164,1169,1174,1179,1183,1187],{"type":849,"tag":1031,"props":1157,"children":1158},{"style":1121},[1159],{"type":858,"value":1124},{"type":849,"tag":1031,"props":1161,"children":1162},{"style":1127},[1163],{"type":858,"value":1130},{"type":849,"tag":1031,"props":1165,"children":1166},{"style":1133},[1167],{"type":858,"value":1168},"defineSchema",{"type":849,"tag":1031,"props":1170,"children":1171},{"style":1127},[1172],{"type":858,"value":1173},", ",{"type":849,"tag":1031,"props":1175,"children":1176},{"style":1133},[1177],{"type":858,"value":1178},"defineTable",{"type":849,"tag":1031,"props":1180,"children":1181},{"style":1127},[1182],{"type":858,"value":1140},{"type":849,"tag":1031,"props":1184,"children":1185},{"style":1121},[1186],{"type":858,"value":1145},{"type":849,"tag":1031,"props":1188,"children":1189},{"style":1044},[1190],{"type":858,"value":1191}," 'convex\u002Fserver'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1194,"children":1195},{"class":1033,"style":1034},[1196,1200,1204,1209,1213,1217],{"type":849,"tag":1031,"props":1197,"children":1198},{"style":1121},[1199],{"type":858,"value":1124},{"type":849,"tag":1031,"props":1201,"children":1202},{"style":1127},[1203],{"type":858,"value":1130},{"type":849,"tag":1031,"props":1205,"children":1206},{"style":1133},[1207],{"type":858,"value":1208},"v",{"type":849,"tag":1031,"props":1210,"children":1211},{"style":1127},[1212],{"type":858,"value":1140},{"type":849,"tag":1031,"props":1214,"children":1215},{"style":1121},[1216],{"type":858,"value":1145},{"type":849,"tag":1031,"props":1218,"children":1219},{"style":1044},[1220],{"type":858,"value":1221}," 'convex\u002Fvalues'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1224,"children":1225},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":1228,"children":1229},{"class":1033,"style":1034},[1230,1235,1240,1245],{"type":849,"tag":1031,"props":1231,"children":1232},{"style":1121},[1233],{"type":858,"value":1234},"export",{"type":849,"tag":1031,"props":1236,"children":1237},{"style":1121},[1238],{"type":858,"value":1239}," default",{"type":849,"tag":1031,"props":1241,"children":1242},{"style":1038},[1243],{"type":858,"value":1244}," defineSchema",{"type":849,"tag":1031,"props":1246,"children":1247},{"style":1127},[1248],{"type":858,"value":1249},"({",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1252,"children":1253},{"class":1033,"style":1034},[1254,1259,1264,1269,1274,1279,1283,1288,1293,1298,1302,1306,1310,1315,1320,1325,1330,1335,1340],{"type":849,"tag":1031,"props":1255,"children":1256},{"style":1133},[1257],{"type":858,"value":1258},"  users:",{"type":849,"tag":1031,"props":1260,"children":1261},{"style":1038},[1262],{"type":858,"value":1263}," defineTable",{"type":849,"tag":1031,"props":1265,"children":1266},{"style":1127},[1267],{"type":858,"value":1268},"({ ",{"type":849,"tag":1031,"props":1270,"children":1271},{"style":1133},[1272],{"type":858,"value":1273},"authId:",{"type":849,"tag":1031,"props":1275,"children":1276},{"style":1133},[1277],{"type":858,"value":1278}," v",{"type":849,"tag":1031,"props":1280,"children":1281},{"style":1127},[1282],{"type":858,"value":966},{"type":849,"tag":1031,"props":1284,"children":1285},{"style":1038},[1286],{"type":858,"value":1287},"string",{"type":849,"tag":1031,"props":1289,"children":1290},{"style":1127},[1291],{"type":858,"value":1292},"(), ",{"type":849,"tag":1031,"props":1294,"children":1295},{"style":1133},[1296],{"type":858,"value":1297},"name:",{"type":849,"tag":1031,"props":1299,"children":1300},{"style":1133},[1301],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1303,"children":1304},{"style":1127},[1305],{"type":858,"value":966},{"type":849,"tag":1031,"props":1307,"children":1308},{"style":1038},[1309],{"type":858,"value":1287},{"type":849,"tag":1031,"props":1311,"children":1312},{"style":1127},[1313],{"type":858,"value":1314},"() }).",{"type":849,"tag":1031,"props":1316,"children":1317},{"style":1038},[1318],{"type":858,"value":1319},"index",{"type":849,"tag":1031,"props":1321,"children":1322},{"style":1127},[1323],{"type":858,"value":1324},"(",{"type":849,"tag":1031,"props":1326,"children":1327},{"style":1044},[1328],{"type":858,"value":1329},"'by_auth_id'",{"type":849,"tag":1031,"props":1331,"children":1332},{"style":1127},[1333],{"type":858,"value":1334},", [",{"type":849,"tag":1031,"props":1336,"children":1337},{"style":1044},[1338],{"type":858,"value":1339},"'authId'",{"type":849,"tag":1031,"props":1341,"children":1342},{"style":1127},[1343],{"type":858,"value":1344},"]),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1347,"children":1348},{"class":1033,"style":1034},[1349,1354,1358,1362,1366,1370,1374,1378],{"type":849,"tag":1031,"props":1350,"children":1351},{"style":1133},[1352],{"type":858,"value":1353},"  organizations:",{"type":849,"tag":1031,"props":1355,"children":1356},{"style":1038},[1357],{"type":858,"value":1263},{"type":849,"tag":1031,"props":1359,"children":1360},{"style":1127},[1361],{"type":858,"value":1268},{"type":849,"tag":1031,"props":1363,"children":1364},{"style":1133},[1365],{"type":858,"value":1297},{"type":849,"tag":1031,"props":1367,"children":1368},{"style":1133},[1369],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1371,"children":1372},{"style":1127},[1373],{"type":858,"value":966},{"type":849,"tag":1031,"props":1375,"children":1376},{"style":1038},[1377],{"type":858,"value":1287},{"type":849,"tag":1031,"props":1379,"children":1380},{"style":1127},[1381],{"type":858,"value":1382},"() }),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1385,"children":1386},{"class":1033,"style":1034},[1387,1392,1396],{"type":849,"tag":1031,"props":1388,"children":1389},{"style":1133},[1390],{"type":858,"value":1391},"  memberships:",{"type":849,"tag":1031,"props":1393,"children":1394},{"style":1038},[1395],{"type":858,"value":1263},{"type":849,"tag":1031,"props":1397,"children":1398},{"style":1127},[1399],{"type":858,"value":1249},{"type":858,"value":1152},{"type":849,"tag":1031,"props":1402,"children":1403},{"class":1033,"style":1034},[1404,1409,1413,1417,1422,1426,1431],{"type":849,"tag":1031,"props":1405,"children":1406},{"style":1133},[1407],{"type":858,"value":1408},"    organizationId:",{"type":849,"tag":1031,"props":1410,"children":1411},{"style":1133},[1412],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1414,"children":1415},{"style":1127},[1416],{"type":858,"value":966},{"type":849,"tag":1031,"props":1418,"children":1419},{"style":1038},[1420],{"type":858,"value":1421},"id",{"type":849,"tag":1031,"props":1423,"children":1424},{"style":1127},[1425],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1427,"children":1428},{"style":1044},[1429],{"type":858,"value":1430},"'organizations'",{"type":849,"tag":1031,"props":1432,"children":1433},{"style":1127},[1434],{"type":858,"value":1435},"),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1438,"children":1439},{"class":1033,"style":1034},[1440,1445,1449,1453,1457,1461,1466],{"type":849,"tag":1031,"props":1441,"children":1442},{"style":1133},[1443],{"type":858,"value":1444},"    userId:",{"type":849,"tag":1031,"props":1446,"children":1447},{"style":1133},[1448],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1450,"children":1451},{"style":1127},[1452],{"type":858,"value":966},{"type":849,"tag":1031,"props":1454,"children":1455},{"style":1038},[1456],{"type":858,"value":1421},{"type":849,"tag":1031,"props":1458,"children":1459},{"style":1127},[1460],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1462,"children":1463},{"style":1044},[1464],{"type":858,"value":1465},"'users'",{"type":849,"tag":1031,"props":1467,"children":1468},{"style":1127},[1469],{"type":858,"value":1435},{"type":858,"value":1152},{"type":849,"tag":1031,"props":1472,"children":1473},{"class":1033,"style":1034},[1474,1479,1483,1487,1492,1496,1500,1504,1509,1513,1518,1523,1527,1531,1535,1539,1544],{"type":849,"tag":1031,"props":1475,"children":1476},{"style":1133},[1477],{"type":858,"value":1478},"    role:",{"type":849,"tag":1031,"props":1480,"children":1481},{"style":1133},[1482],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1484,"children":1485},{"style":1127},[1486],{"type":858,"value":966},{"type":849,"tag":1031,"props":1488,"children":1489},{"style":1038},[1490],{"type":858,"value":1491},"union",{"type":849,"tag":1031,"props":1493,"children":1494},{"style":1127},[1495],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1497,"children":1498},{"style":1133},[1499],{"type":858,"value":1208},{"type":849,"tag":1031,"props":1501,"children":1502},{"style":1127},[1503],{"type":858,"value":966},{"type":849,"tag":1031,"props":1505,"children":1506},{"style":1038},[1507],{"type":858,"value":1508},"literal",{"type":849,"tag":1031,"props":1510,"children":1511},{"style":1127},[1512],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1514,"children":1515},{"style":1044},[1516],{"type":858,"value":1517},"'owner'",{"type":849,"tag":1031,"props":1519,"children":1520},{"style":1127},[1521],{"type":858,"value":1522},"), ",{"type":849,"tag":1031,"props":1524,"children":1525},{"style":1133},[1526],{"type":858,"value":1208},{"type":849,"tag":1031,"props":1528,"children":1529},{"style":1127},[1530],{"type":858,"value":966},{"type":849,"tag":1031,"props":1532,"children":1533},{"style":1038},[1534],{"type":858,"value":1508},{"type":849,"tag":1031,"props":1536,"children":1537},{"style":1127},[1538],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1540,"children":1541},{"style":1044},[1542],{"type":858,"value":1543},"'member'",{"type":849,"tag":1031,"props":1545,"children":1546},{"style":1127},[1547],{"type":858,"value":1548},")),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1551,"children":1552},{"class":1033,"style":1034},[1553,1558,1562,1566,1571,1575,1580,1584,1589],{"type":849,"tag":1031,"props":1554,"children":1555},{"style":1127},[1556],{"type":858,"value":1557},"  }).",{"type":849,"tag":1031,"props":1559,"children":1560},{"style":1038},[1561],{"type":858,"value":1319},{"type":849,"tag":1031,"props":1563,"children":1564},{"style":1127},[1565],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1567,"children":1568},{"style":1044},[1569],{"type":858,"value":1570},"'by_org_user'",{"type":849,"tag":1031,"props":1572,"children":1573},{"style":1127},[1574],{"type":858,"value":1334},{"type":849,"tag":1031,"props":1576,"children":1577},{"style":1044},[1578],{"type":858,"value":1579},"'organizationId'",{"type":849,"tag":1031,"props":1581,"children":1582},{"style":1127},[1583],{"type":858,"value":1173},{"type":849,"tag":1031,"props":1585,"children":1586},{"style":1044},[1587],{"type":858,"value":1588},"'userId'",{"type":849,"tag":1031,"props":1590,"children":1591},{"style":1127},[1592],{"type":858,"value":1344},{"type":858,"value":1152},{"type":849,"tag":1031,"props":1595,"children":1596},{"class":1033,"style":1034},[1597,1602,1606],{"type":849,"tag":1031,"props":1598,"children":1599},{"style":1133},[1600],{"type":858,"value":1601},"  projects:",{"type":849,"tag":1031,"props":1603,"children":1604},{"style":1038},[1605],{"type":858,"value":1263},{"type":849,"tag":1031,"props":1607,"children":1608},{"style":1127},[1609],{"type":858,"value":1249},{"type":858,"value":1152},{"type":849,"tag":1031,"props":1612,"children":1613},{"class":1033,"style":1034},[1614,1618,1622,1626,1630,1634,1638],{"type":849,"tag":1031,"props":1615,"children":1616},{"style":1133},[1617],{"type":858,"value":1408},{"type":849,"tag":1031,"props":1619,"children":1620},{"style":1133},[1621],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1623,"children":1624},{"style":1127},[1625],{"type":858,"value":966},{"type":849,"tag":1031,"props":1627,"children":1628},{"style":1038},[1629],{"type":858,"value":1421},{"type":849,"tag":1031,"props":1631,"children":1632},{"style":1127},[1633],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1635,"children":1636},{"style":1044},[1637],{"type":858,"value":1430},{"type":849,"tag":1031,"props":1639,"children":1640},{"style":1127},[1641],{"type":858,"value":1435},{"type":858,"value":1152},{"type":849,"tag":1031,"props":1644,"children":1645},{"class":1033,"style":1034},[1646,1651,1655,1659,1663],{"type":849,"tag":1031,"props":1647,"children":1648},{"style":1133},[1649],{"type":858,"value":1650},"    name:",{"type":849,"tag":1031,"props":1652,"children":1653},{"style":1133},[1654],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1656,"children":1657},{"style":1127},[1658],{"type":858,"value":966},{"type":849,"tag":1031,"props":1660,"children":1661},{"style":1038},[1662],{"type":858,"value":1287},{"type":849,"tag":1031,"props":1664,"children":1665},{"style":1127},[1666],{"type":858,"value":1667},"(),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1670,"children":1671},{"class":1033,"style":1034},[1672,1677,1681,1685,1689,1693,1697,1701,1705,1709,1714,1718,1722,1726,1730,1734,1739],{"type":849,"tag":1031,"props":1673,"children":1674},{"style":1133},[1675],{"type":858,"value":1676},"    status:",{"type":849,"tag":1031,"props":1678,"children":1679},{"style":1133},[1680],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1682,"children":1683},{"style":1127},[1684],{"type":858,"value":966},{"type":849,"tag":1031,"props":1686,"children":1687},{"style":1038},[1688],{"type":858,"value":1491},{"type":849,"tag":1031,"props":1690,"children":1691},{"style":1127},[1692],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1694,"children":1695},{"style":1133},[1696],{"type":858,"value":1208},{"type":849,"tag":1031,"props":1698,"children":1699},{"style":1127},[1700],{"type":858,"value":966},{"type":849,"tag":1031,"props":1702,"children":1703},{"style":1038},[1704],{"type":858,"value":1508},{"type":849,"tag":1031,"props":1706,"children":1707},{"style":1127},[1708],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1710,"children":1711},{"style":1044},[1712],{"type":858,"value":1713},"'active'",{"type":849,"tag":1031,"props":1715,"children":1716},{"style":1127},[1717],{"type":858,"value":1522},{"type":849,"tag":1031,"props":1719,"children":1720},{"style":1133},[1721],{"type":858,"value":1208},{"type":849,"tag":1031,"props":1723,"children":1724},{"style":1127},[1725],{"type":858,"value":966},{"type":849,"tag":1031,"props":1727,"children":1728},{"style":1038},[1729],{"type":858,"value":1508},{"type":849,"tag":1031,"props":1731,"children":1732},{"style":1127},[1733],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1735,"children":1736},{"style":1044},[1737],{"type":858,"value":1738},"'archived'",{"type":849,"tag":1031,"props":1740,"children":1741},{"style":1127},[1742],{"type":858,"value":1548},{"type":858,"value":1152},{"type":849,"tag":1031,"props":1745,"children":1746},{"class":1033,"style":1034},[1747,1752,1756,1760,1765,1769,1773,1777,1782],{"type":849,"tag":1031,"props":1748,"children":1749},{"style":1133},[1750],{"type":858,"value":1751},"    archivedAt:",{"type":849,"tag":1031,"props":1753,"children":1754},{"style":1133},[1755],{"type":858,"value":1278},{"type":849,"tag":1031,"props":1757,"children":1758},{"style":1127},[1759],{"type":858,"value":966},{"type":849,"tag":1031,"props":1761,"children":1762},{"style":1038},[1763],{"type":858,"value":1764},"optional",{"type":849,"tag":1031,"props":1766,"children":1767},{"style":1127},[1768],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1770,"children":1771},{"style":1133},[1772],{"type":858,"value":1208},{"type":849,"tag":1031,"props":1774,"children":1775},{"style":1127},[1776],{"type":858,"value":966},{"type":849,"tag":1031,"props":1778,"children":1779},{"style":1038},[1780],{"type":858,"value":1781},"number",{"type":849,"tag":1031,"props":1783,"children":1784},{"style":1127},[1785],{"type":858,"value":1786},"()),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1789,"children":1790},{"class":1033,"style":1034},[1791,1795,1799,1803,1808,1812,1816,1820,1825],{"type":849,"tag":1031,"props":1792,"children":1793},{"style":1127},[1794],{"type":858,"value":1557},{"type":849,"tag":1031,"props":1796,"children":1797},{"style":1038},[1798],{"type":858,"value":1319},{"type":849,"tag":1031,"props":1800,"children":1801},{"style":1127},[1802],{"type":858,"value":1324},{"type":849,"tag":1031,"props":1804,"children":1805},{"style":1044},[1806],{"type":858,"value":1807},"'by_org_status'",{"type":849,"tag":1031,"props":1809,"children":1810},{"style":1127},[1811],{"type":858,"value":1334},{"type":849,"tag":1031,"props":1813,"children":1814},{"style":1044},[1815],{"type":858,"value":1579},{"type":849,"tag":1031,"props":1817,"children":1818},{"style":1127},[1819],{"type":858,"value":1173},{"type":849,"tag":1031,"props":1821,"children":1822},{"style":1044},[1823],{"type":858,"value":1824},"'status'",{"type":849,"tag":1031,"props":1826,"children":1827},{"style":1127},[1828],{"type":858,"value":1344},{"type":858,"value":1152},{"type":849,"tag":1031,"props":1831,"children":1832},{"class":1033,"style":1034},[1833,1838,1842],{"type":849,"tag":1031,"props":1834,"children":1835},{"style":1127},[1836],{"type":858,"value":1837},"  ...",{"type":849,"tag":1031,"props":1839,"children":1840},{"style":1133},[1841],{"type":858,"value":1104},{"type":849,"tag":1031,"props":1843,"children":1844},{"style":1127},[1845],{"type":858,"value":1846},",",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1849,"children":1850},{"class":1033,"style":1034},[1851],{"type":849,"tag":1031,"props":1852,"children":1853},{"style":1127},[1854],{"type":858,"value":1855},"})",{"type":849,"tag":941,"props":1857,"children":1859},{"id":1858},"_2-write-the-policy",[1860],{"type":858,"value":1861},"2. Write the policy",{"type":849,"tag":850,"props":1863,"children":1864},{},[1865,1867,1872,1874,1879],{"type":858,"value":1866},"The policy is plain data. The browser can read it too, so import\n",{"type":849,"tag":854,"props":1868,"children":1869},{},[1870],{"type":858,"value":1871},"definePolicy",{"type":858,"value":1873}," from the ",{"type":849,"tag":854,"props":1875,"children":1876},{},[1877],{"type":858,"value":1878},"\u002Fpolicy",{"type":858,"value":1880}," entry, which has no server code.",{"type":849,"tag":1021,"props":1882,"children":1884},{"language":1109,"filename":1883,"class":1024},"convex\u002Fpolicy.ts",[1885],{"type":849,"tag":854,"props":1886,"children":1887},{"class":1114},[1888,1916,1917,1920,1921,1953,1954,1986,1987,2000,2001,2022,2023,2043,2044,2052,2053,2062,2063,2075,2076,2125,2126,2142,2143,2160,2161,2181,2182,2190,2191,2198,2199,2207,2208,2238,2239],{"type":849,"tag":1031,"props":1889,"children":1890},{"class":1033,"style":1034},[1891,1895,1899,1903,1907,1911],{"type":849,"tag":1031,"props":1892,"children":1893},{"style":1121},[1894],{"type":858,"value":1124},{"type":849,"tag":1031,"props":1896,"children":1897},{"style":1127},[1898],{"type":858,"value":1130},{"type":849,"tag":1031,"props":1900,"children":1901},{"style":1133},[1902],{"type":858,"value":1871},{"type":849,"tag":1031,"props":1904,"children":1905},{"style":1127},[1906],{"type":858,"value":1140},{"type":849,"tag":1031,"props":1908,"children":1909},{"style":1121},[1910],{"type":858,"value":1145},{"type":849,"tag":1031,"props":1912,"children":1913},{"style":1044},[1914],{"type":858,"value":1915}," '@lupinum\u002Fbetter-convex-functions\u002Fpolicy'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1918,"children":1919},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":1922,"children":1923},{"class":1033,"style":1034},[1924,1928,1934,1940,1945,1949],{"type":849,"tag":1031,"props":1925,"children":1926},{"style":1121},[1927],{"type":858,"value":1234},{"type":849,"tag":1031,"props":1929,"children":1931},{"style":1930},"color:#0000FF;--shiki-dark:#569CD6",[1932],{"type":858,"value":1933}," const",{"type":849,"tag":1031,"props":1935,"children":1937},{"style":1936},"color:#0070C1;--shiki-dark:#4FC1FF",[1938],{"type":858,"value":1939}," policy",{"type":849,"tag":1031,"props":1941,"children":1942},{"style":1127},[1943],{"type":858,"value":1944}," = ",{"type":849,"tag":1031,"props":1946,"children":1947},{"style":1038},[1948],{"type":858,"value":1871},{"type":849,"tag":1031,"props":1950,"children":1951},{"style":1127},[1952],{"type":858,"value":1249},{"type":858,"value":1152},{"type":849,"tag":1031,"props":1955,"children":1956},{"class":1033,"style":1034},[1957,1962,1967,1972,1976,1981],{"type":849,"tag":1031,"props":1958,"children":1959},{"style":1133},[1960],{"type":858,"value":1961},"  actions:",{"type":849,"tag":1031,"props":1963,"children":1964},{"style":1127},[1965],{"type":858,"value":1966}," [",{"type":849,"tag":1031,"props":1968,"children":1969},{"style":1044},[1970],{"type":858,"value":1971},"'projects.list'",{"type":849,"tag":1031,"props":1973,"children":1974},{"style":1127},[1975],{"type":858,"value":1173},{"type":849,"tag":1031,"props":1977,"children":1978},{"style":1044},[1979],{"type":858,"value":1980},"'projects.archive'",{"type":849,"tag":1031,"props":1982,"children":1983},{"style":1127},[1984],{"type":858,"value":1985},"],",{"type":858,"value":1152},{"type":849,"tag":1031,"props":1988,"children":1989},{"class":1033,"style":1034},[1990,1995],{"type":849,"tag":1031,"props":1991,"children":1992},{"style":1133},[1993],{"type":858,"value":1994},"  roles:",{"type":849,"tag":1031,"props":1996,"children":1997},{"style":1127},[1998],{"type":858,"value":1999}," {",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2002,"children":2003},{"class":1033,"style":1034},[2004,2009,2013,2018],{"type":849,"tag":1031,"props":2005,"children":2006},{"style":1133},[2007],{"type":858,"value":2008},"    owner:",{"type":849,"tag":1031,"props":2010,"children":2011},{"style":1127},[2012],{"type":858,"value":1966},{"type":849,"tag":1031,"props":2014,"children":2015},{"style":1044},[2016],{"type":858,"value":2017},"'*'",{"type":849,"tag":1031,"props":2019,"children":2020},{"style":1127},[2021],{"type":858,"value":1985},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2024,"children":2025},{"class":1033,"style":1034},[2026,2031,2035,2039],{"type":849,"tag":1031,"props":2027,"children":2028},{"style":1133},[2029],{"type":858,"value":2030},"    member:",{"type":849,"tag":1031,"props":2032,"children":2033},{"style":1127},[2034],{"type":858,"value":1966},{"type":849,"tag":1031,"props":2036,"children":2037},{"style":1044},[2038],{"type":858,"value":1971},{"type":849,"tag":1031,"props":2040,"children":2041},{"style":1127},[2042],{"type":858,"value":1985},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2045,"children":2046},{"class":1033,"style":1034},[2047],{"type":849,"tag":1031,"props":2048,"children":2049},{"style":1127},[2050],{"type":858,"value":2051},"  },",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2054,"children":2055},{"class":1033,"style":1034},[2056],{"type":849,"tag":1031,"props":2057,"children":2059},{"style":2058},"color:#008000;--shiki-dark:#6A9955",[2060],{"type":858,"value":2061},"  \u002F\u002F What a person grants an AI host on the consent page.",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2064,"children":2065},{"class":1033,"style":1034},[2066,2071],{"type":849,"tag":1031,"props":2067,"children":2068},{"style":1133},[2069],{"type":858,"value":2070},"  scopes:",{"type":849,"tag":1031,"props":2072,"children":2073},{"style":1127},[2074],{"type":858,"value":1999},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2077,"children":2078},{"class":1033,"style":1034},[2079,2084,2089,2093,2098,2103,2107,2112,2116,2120],{"type":849,"tag":1031,"props":2080,"children":2081},{"style":1044},[2082],{"type":858,"value":2083},"    'projects:read'",{"type":849,"tag":1031,"props":2085,"children":2086},{"style":1133},[2087],{"type":858,"value":2088},":",{"type":849,"tag":1031,"props":2090,"children":2091},{"style":1127},[2092],{"type":858,"value":1130},{"type":849,"tag":1031,"props":2094,"children":2095},{"style":1133},[2096],{"type":858,"value":2097},"label:",{"type":849,"tag":1031,"props":2099,"children":2100},{"style":1044},[2101],{"type":858,"value":2102}," 'See your projects.'",{"type":849,"tag":1031,"props":2104,"children":2105},{"style":1127},[2106],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2108,"children":2109},{"style":1133},[2110],{"type":858,"value":2111},"actions:",{"type":849,"tag":1031,"props":2113,"children":2114},{"style":1127},[2115],{"type":858,"value":1966},{"type":849,"tag":1031,"props":2117,"children":2118},{"style":1044},[2119],{"type":858,"value":1971},{"type":849,"tag":1031,"props":2121,"children":2122},{"style":1127},[2123],{"type":858,"value":2124},"] },",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2127,"children":2128},{"class":1033,"style":1034},[2129,2134,2138],{"type":849,"tag":1031,"props":2130,"children":2131},{"style":1044},[2132],{"type":858,"value":2133},"    'projects:write'",{"type":849,"tag":1031,"props":2135,"children":2136},{"style":1133},[2137],{"type":858,"value":2088},{"type":849,"tag":1031,"props":2139,"children":2140},{"style":1127},[2141],{"type":858,"value":1999},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2144,"children":2145},{"class":1033,"style":1034},[2146,2151,2156],{"type":849,"tag":1031,"props":2147,"children":2148},{"style":1133},[2149],{"type":858,"value":2150},"      label:",{"type":849,"tag":1031,"props":2152,"children":2153},{"style":1044},[2154],{"type":858,"value":2155}," 'Archive projects after you approve it.'",{"type":849,"tag":1031,"props":2157,"children":2158},{"style":1127},[2159],{"type":858,"value":1846},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2162,"children":2163},{"class":1033,"style":1034},[2164,2169,2173,2177],{"type":849,"tag":1031,"props":2165,"children":2166},{"style":1133},[2167],{"type":858,"value":2168},"      actions:",{"type":849,"tag":1031,"props":2170,"children":2171},{"style":1127},[2172],{"type":858,"value":1966},{"type":849,"tag":1031,"props":2174,"children":2175},{"style":1044},[2176],{"type":858,"value":1980},{"type":849,"tag":1031,"props":2178,"children":2179},{"style":1127},[2180],{"type":858,"value":1985},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2183,"children":2184},{"class":1033,"style":1034},[2185],{"type":849,"tag":1031,"props":2186,"children":2187},{"style":1127},[2188],{"type":858,"value":2189},"    },",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2192,"children":2193},{"class":1033,"style":1034},[2194],{"type":849,"tag":1031,"props":2195,"children":2196},{"style":1127},[2197],{"type":858,"value":2051},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2200,"children":2201},{"class":1033,"style":1034},[2202],{"type":849,"tag":1031,"props":2203,"children":2204},{"style":2058},[2205],{"type":858,"value":2206},"  \u002F\u002F An agent may ask to archive, but a person decides.",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2209,"children":2210},{"class":1033,"style":1034},[2211,2216,2220,2224,2228,2233],{"type":849,"tag":1031,"props":2212,"children":2213},{"style":1133},[2214],{"type":858,"value":2215},"  agents:",{"type":849,"tag":1031,"props":2217,"children":2218},{"style":1127},[2219],{"type":858,"value":1130},{"type":849,"tag":1031,"props":2221,"children":2222},{"style":1044},[2223],{"type":858,"value":1980},{"type":849,"tag":1031,"props":2225,"children":2226},{"style":1133},[2227],{"type":858,"value":2088},{"type":849,"tag":1031,"props":2229,"children":2230},{"style":1044},[2231],{"type":858,"value":2232}," 'approve'",{"type":849,"tag":1031,"props":2234,"children":2235},{"style":1127},[2236],{"type":858,"value":2237}," },",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2240,"children":2241},{"class":1033,"style":1034},[2242],{"type":849,"tag":1031,"props":2243,"children":2244},{"style":1127},[2245],{"type":858,"value":1855},{"type":849,"tag":850,"props":2247,"children":2248},{},[2249,2251,2256],{"type":858,"value":2250},"An action that is not in ",{"type":849,"tag":854,"props":2252,"children":2253},{},[2254],{"type":858,"value":2255},"actions",{"type":858,"value":2257}," is a type error everywhere else.",{"type":849,"tag":941,"props":2259,"children":2261},{"id":2260},"_3-add-one-rule-per-table",[2262],{"type":858,"value":2263},"3. Add one rule per table",{"type":849,"tag":850,"props":2265,"children":2266},{},[2267,2271],{"type":849,"tag":854,"props":2268,"children":2269},{},[2270],{"type":858,"value":1001},{"type":858,"value":2272}," takes the policy, how to find the user and their role, and\none row rule for every table. A table without a rule is a type error.",{"type":849,"tag":1021,"props":2274,"children":2276},{"language":1109,"filename":2275,"class":1024},"convex\u002Ffunctions.ts",[2277],{"type":849,"tag":854,"props":2278,"children":2279},{"class":1114},[2280,2334,2335,2338,2339,2373,2374,2403,2404,2433,2434,2437,2438,2466,2467,2479,2480,2492,2493,2534,2535,2552,2553,2579,2580,2653,2654,2670,2671,2725,2726,2734,2735,2743,2744,2784,2785,2830,2831,2866,2867,2891,2892,3001,3002,3018,3019,3050,3051,3058,3059,3071,3072,3098,3099,3124,3125,3133,3134,3142,3143,3151,3152,3188,3189,3218,3219,3295,3296,3353,3354,3362,3363,3387,3388,3395,3396,3403,3404,3407,3408],{"type":849,"tag":1031,"props":2281,"children":2282},{"class":1033,"style":1034},[2283,2287,2291,2296,2300,2304,2308,2313,2317,2322,2326,2330],{"type":849,"tag":1031,"props":2284,"children":2285},{"style":1121},[2286],{"type":858,"value":1124},{"type":849,"tag":1031,"props":2288,"children":2289},{"style":1127},[2290],{"type":858,"value":1130},{"type":849,"tag":1031,"props":2292,"children":2293},{"style":1133},[2294],{"type":858,"value":2295},"custom",{"type":849,"tag":1031,"props":2297,"children":2298},{"style":1127},[2299],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2301,"children":2302},{"style":1133},[2303],{"type":858,"value":1001},{"type":849,"tag":1031,"props":2305,"children":2306},{"style":1127},[2307],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2309,"children":2310},{"style":1133},[2311],{"type":858,"value":2312},"owner",{"type":849,"tag":1031,"props":2314,"children":2315},{"style":1127},[2316],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2318,"children":2319},{"style":1133},[2320],{"type":858,"value":2321},"tenant",{"type":849,"tag":1031,"props":2323,"children":2324},{"style":1127},[2325],{"type":858,"value":1140},{"type":849,"tag":1031,"props":2327,"children":2328},{"style":1121},[2329],{"type":858,"value":1145},{"type":849,"tag":1031,"props":2331,"children":2332},{"style":1044},[2333],{"type":858,"value":1150},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2336,"children":2337},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":2340,"children":2341},{"class":1033,"style":1034},[2342,2346,2351,2355,2360,2364,2368],{"type":849,"tag":1031,"props":2343,"children":2344},{"style":1121},[2345],{"type":858,"value":1124},{"type":849,"tag":1031,"props":2347,"children":2348},{"style":1121},[2349],{"type":858,"value":2350}," type",{"type":849,"tag":1031,"props":2352,"children":2353},{"style":1127},[2354],{"type":858,"value":1130},{"type":849,"tag":1031,"props":2356,"children":2357},{"style":1133},[2358],{"type":858,"value":2359},"Doc",{"type":849,"tag":1031,"props":2361,"children":2362},{"style":1127},[2363],{"type":858,"value":1140},{"type":849,"tag":1031,"props":2365,"children":2366},{"style":1121},[2367],{"type":858,"value":1145},{"type":849,"tag":1031,"props":2369,"children":2370},{"style":1044},[2371],{"type":858,"value":2372}," '.\u002F_generated\u002FdataModel'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2375,"children":2376},{"class":1033,"style":1034},[2377,2381,2385,2390,2394,2398],{"type":849,"tag":1031,"props":2378,"children":2379},{"style":1121},[2380],{"type":858,"value":1124},{"type":849,"tag":1031,"props":2382,"children":2383},{"style":1127},[2384],{"type":858,"value":1130},{"type":849,"tag":1031,"props":2386,"children":2387},{"style":1133},[2388],{"type":858,"value":2389},"auth",{"type":849,"tag":1031,"props":2391,"children":2392},{"style":1127},[2393],{"type":858,"value":1140},{"type":849,"tag":1031,"props":2395,"children":2396},{"style":1121},[2397],{"type":858,"value":1145},{"type":849,"tag":1031,"props":2399,"children":2400},{"style":1044},[2401],{"type":858,"value":2402}," '.\u002Fauth'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2405,"children":2406},{"class":1033,"style":1034},[2407,2411,2415,2420,2424,2428],{"type":849,"tag":1031,"props":2408,"children":2409},{"style":1121},[2410],{"type":858,"value":1124},{"type":849,"tag":1031,"props":2412,"children":2413},{"style":1127},[2414],{"type":858,"value":1130},{"type":849,"tag":1031,"props":2416,"children":2417},{"style":1133},[2418],{"type":858,"value":2419},"policy",{"type":849,"tag":1031,"props":2421,"children":2422},{"style":1127},[2423],{"type":858,"value":1140},{"type":849,"tag":1031,"props":2425,"children":2426},{"style":1121},[2427],{"type":858,"value":1145},{"type":849,"tag":1031,"props":2429,"children":2430},{"style":1044},[2431],{"type":858,"value":2432}," '.\u002Fpolicy'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2435,"children":2436},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":2439,"children":2440},{"class":1033,"style":1034},[2441,2445,2449,2454,2458,2462],{"type":849,"tag":1031,"props":2442,"children":2443},{"style":1121},[2444],{"type":858,"value":1234},{"type":849,"tag":1031,"props":2446,"children":2447},{"style":1930},[2448],{"type":858,"value":1933},{"type":849,"tag":1031,"props":2450,"children":2451},{"style":1936},[2452],{"type":858,"value":2453}," fns",{"type":849,"tag":1031,"props":2455,"children":2456},{"style":1127},[2457],{"type":858,"value":1944},{"type":849,"tag":1031,"props":2459,"children":2460},{"style":1038},[2461],{"type":858,"value":1001},{"type":849,"tag":1031,"props":2463,"children":2464},{"style":1127},[2465],{"type":858,"value":1249},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2468,"children":2469},{"class":1033,"style":1034},[2470,2475],{"type":849,"tag":1031,"props":2471,"children":2472},{"style":1133},[2473],{"type":858,"value":2474},"  auth",{"type":849,"tag":1031,"props":2476,"children":2477},{"style":1127},[2478],{"type":858,"value":1846},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2481,"children":2482},{"class":1033,"style":1034},[2483,2488],{"type":849,"tag":1031,"props":2484,"children":2485},{"style":1133},[2486],{"type":858,"value":2487},"  policy",{"type":849,"tag":1031,"props":2489,"children":2490},{"style":1127},[2491],{"type":858,"value":1846},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2494,"children":2495},{"class":1033,"style":1034},[2496,2501,2505,2510,2515,2519,2524,2529],{"type":849,"tag":1031,"props":2497,"children":2498},{"style":1038},[2499],{"type":858,"value":2500},"  user",{"type":849,"tag":1031,"props":2502,"children":2503},{"style":1133},[2504],{"type":858,"value":2088},{"type":849,"tag":1031,"props":2506,"children":2507},{"style":1127},[2508],{"type":858,"value":2509}," (",{"type":849,"tag":1031,"props":2511,"children":2512},{"style":1133},[2513],{"type":858,"value":2514},"ctx",{"type":849,"tag":1031,"props":2516,"children":2517},{"style":1127},[2518],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2520,"children":2521},{"style":1133},[2522],{"type":858,"value":2523},"authId",{"type":849,"tag":1031,"props":2525,"children":2526},{"style":1127},[2527],{"type":858,"value":2528},") ",{"type":849,"tag":1031,"props":2530,"children":2531},{"style":1930},[2532],{"type":858,"value":2533},"=>",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2536,"children":2537},{"class":1033,"style":1034},[2538,2543,2547],{"type":849,"tag":1031,"props":2539,"children":2540},{"style":1133},[2541],{"type":858,"value":2542},"    ctx",{"type":849,"tag":1031,"props":2544,"children":2545},{"style":1127},[2546],{"type":858,"value":966},{"type":849,"tag":1031,"props":2548,"children":2549},{"style":1133},[2550],{"type":858,"value":2551},"db",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2554,"children":2555},{"class":1033,"style":1034},[2556,2561,2566,2570,2574],{"type":849,"tag":1031,"props":2557,"children":2558},{"style":1127},[2559],{"type":858,"value":2560},"      .",{"type":849,"tag":1031,"props":2562,"children":2563},{"style":1038},[2564],{"type":858,"value":2565},"query",{"type":849,"tag":1031,"props":2567,"children":2568},{"style":1127},[2569],{"type":858,"value":1324},{"type":849,"tag":1031,"props":2571,"children":2572},{"style":1044},[2573],{"type":858,"value":1465},{"type":849,"tag":1031,"props":2575,"children":2576},{"style":1127},[2577],{"type":858,"value":2578},")",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2581,"children":2582},{"class":1033,"style":1034},[2583,2587,2592,2596,2600,2605,2610,2614,2618,2623,2627,2632,2636,2640,2644,2648],{"type":849,"tag":1031,"props":2584,"children":2585},{"style":1127},[2586],{"type":858,"value":2560},{"type":849,"tag":1031,"props":2588,"children":2589},{"style":1038},[2590],{"type":858,"value":2591},"withIndex",{"type":849,"tag":1031,"props":2593,"children":2594},{"style":1127},[2595],{"type":858,"value":1324},{"type":849,"tag":1031,"props":2597,"children":2598},{"style":1044},[2599],{"type":858,"value":1329},{"type":849,"tag":1031,"props":2601,"children":2602},{"style":1127},[2603],{"type":858,"value":2604},", (",{"type":849,"tag":1031,"props":2606,"children":2607},{"style":1133},[2608],{"type":858,"value":2609},"q",{"type":849,"tag":1031,"props":2611,"children":2612},{"style":1127},[2613],{"type":858,"value":2528},{"type":849,"tag":1031,"props":2615,"children":2616},{"style":1930},[2617],{"type":858,"value":2533},{"type":849,"tag":1031,"props":2619,"children":2620},{"style":1133},[2621],{"type":858,"value":2622}," q",{"type":849,"tag":1031,"props":2624,"children":2625},{"style":1127},[2626],{"type":858,"value":966},{"type":849,"tag":1031,"props":2628,"children":2629},{"style":1038},[2630],{"type":858,"value":2631},"eq",{"type":849,"tag":1031,"props":2633,"children":2634},{"style":1127},[2635],{"type":858,"value":1324},{"type":849,"tag":1031,"props":2637,"children":2638},{"style":1044},[2639],{"type":858,"value":1339},{"type":849,"tag":1031,"props":2641,"children":2642},{"style":1127},[2643],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2645,"children":2646},{"style":1133},[2647],{"type":858,"value":2523},{"type":849,"tag":1031,"props":2649,"children":2650},{"style":1127},[2651],{"type":858,"value":2652},"))",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2655,"children":2656},{"class":1033,"style":1034},[2657,2661,2666],{"type":849,"tag":1031,"props":2658,"children":2659},{"style":1127},[2660],{"type":858,"value":2560},{"type":849,"tag":1031,"props":2662,"children":2663},{"style":1038},[2664],{"type":858,"value":2665},"unique",{"type":849,"tag":1031,"props":2667,"children":2668},{"style":1127},[2669],{"type":858,"value":1667},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2672,"children":2673},{"class":1033,"style":1034},[2674,2679,2683,2688,2692,2696,2700,2705,2709,2713,2717,2721],{"type":849,"tag":1031,"props":2675,"children":2676},{"style":1038},[2677],{"type":858,"value":2678},"  roleOf",{"type":849,"tag":1031,"props":2680,"children":2681},{"style":1133},[2682],{"type":858,"value":2088},{"type":849,"tag":1031,"props":2684,"children":2685},{"style":1930},[2686],{"type":858,"value":2687}," async",{"type":849,"tag":1031,"props":2689,"children":2690},{"style":1127},[2691],{"type":858,"value":2509},{"type":849,"tag":1031,"props":2693,"children":2694},{"style":1133},[2695],{"type":858,"value":2514},{"type":849,"tag":1031,"props":2697,"children":2698},{"style":1127},[2699],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2701,"children":2702},{"style":1133},[2703],{"type":858,"value":2704},"user",{"type":849,"tag":1031,"props":2706,"children":2707},{"style":1127},[2708],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2710,"children":2711},{"style":1133},[2712],{"type":858,"value":2321},{"type":849,"tag":1031,"props":2714,"children":2715},{"style":1127},[2716],{"type":858,"value":2528},{"type":849,"tag":1031,"props":2718,"children":2719},{"style":1930},[2720],{"type":858,"value":2533},{"type":849,"tag":1031,"props":2722,"children":2723},{"style":1127},[2724],{"type":858,"value":1999},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2727,"children":2728},{"class":1033,"style":1034},[2729],{"type":849,"tag":1031,"props":2730,"children":2731},{"style":2058},[2732],{"type":858,"value":2733},"    \u002F\u002F A call that names no organization gets no role. What every signed-in person may do is a",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2736,"children":2737},{"class":1033,"style":1034},[2738],{"type":849,"tag":1031,"props":2739,"children":2740},{"style":2058},[2741],{"type":858,"value":2742},"    \u002F\u002F role too (see Policy and roles: signedIn).",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2745,"children":2746},{"class":1033,"style":1034},[2747,2752,2756,2760,2765,2770,2774,2779],{"type":849,"tag":1031,"props":2748,"children":2749},{"style":1121},[2750],{"type":858,"value":2751},"    if",{"type":849,"tag":1031,"props":2753,"children":2754},{"style":1127},[2755],{"type":858,"value":2509},{"type":849,"tag":1031,"props":2757,"children":2758},{"style":1133},[2759],{"type":858,"value":2321},{"type":849,"tag":1031,"props":2761,"children":2762},{"style":1127},[2763],{"type":858,"value":2764}," === ",{"type":849,"tag":1031,"props":2766,"children":2767},{"style":1930},[2768],{"type":858,"value":2769},"null",{"type":849,"tag":1031,"props":2771,"children":2772},{"style":1127},[2773],{"type":858,"value":2528},{"type":849,"tag":1031,"props":2775,"children":2776},{"style":1121},[2777],{"type":858,"value":2778},"return",{"type":849,"tag":1031,"props":2780,"children":2781},{"style":1930},[2782],{"type":858,"value":2783}," null",{"type":858,"value":1152},{"type":849,"tag":1031,"props":2786,"children":2787},{"class":1033,"style":1034},[2788,2792,2796,2800,2804,2809,2814,2818,2822,2826],{"type":849,"tag":1031,"props":2789,"children":2790},{"style":1121},[2791],{"type":858,"value":2751},{"type":849,"tag":1031,"props":2793,"children":2794},{"style":1127},[2795],{"type":858,"value":2509},{"type":849,"tag":1031,"props":2797,"children":2798},{"style":1133},[2799],{"type":858,"value":2321},{"type":849,"tag":1031,"props":2801,"children":2802},{"style":1127},[2803],{"type":858,"value":966},{"type":849,"tag":1031,"props":2805,"children":2806},{"style":1133},[2807],{"type":858,"value":2808},"table",{"type":849,"tag":1031,"props":2810,"children":2811},{"style":1127},[2812],{"type":858,"value":2813}," !== ",{"type":849,"tag":1031,"props":2815,"children":2816},{"style":1044},[2817],{"type":858,"value":1430},{"type":849,"tag":1031,"props":2819,"children":2820},{"style":1127},[2821],{"type":858,"value":2528},{"type":849,"tag":1031,"props":2823,"children":2824},{"style":1121},[2825],{"type":858,"value":2778},{"type":849,"tag":1031,"props":2827,"children":2828},{"style":1930},[2829],{"type":858,"value":2783},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2832,"children":2833},{"class":1033,"style":1034},[2834,2839,2844,2848,2853,2858,2862],{"type":849,"tag":1031,"props":2835,"children":2836},{"style":1930},[2837],{"type":858,"value":2838},"    const",{"type":849,"tag":1031,"props":2840,"children":2841},{"style":1936},[2842],{"type":858,"value":2843}," membership",{"type":849,"tag":1031,"props":2845,"children":2846},{"style":1127},[2847],{"type":858,"value":1944},{"type":849,"tag":1031,"props":2849,"children":2850},{"style":1121},[2851],{"type":858,"value":2852},"await",{"type":849,"tag":1031,"props":2854,"children":2855},{"style":1133},[2856],{"type":858,"value":2857}," ctx",{"type":849,"tag":1031,"props":2859,"children":2860},{"style":1127},[2861],{"type":858,"value":966},{"type":849,"tag":1031,"props":2863,"children":2864},{"style":1133},[2865],{"type":858,"value":2551},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2868,"children":2869},{"class":1033,"style":1034},[2870,2874,2878,2882,2887],{"type":849,"tag":1031,"props":2871,"children":2872},{"style":1127},[2873],{"type":858,"value":2560},{"type":849,"tag":1031,"props":2875,"children":2876},{"style":1038},[2877],{"type":858,"value":2565},{"type":849,"tag":1031,"props":2879,"children":2880},{"style":1127},[2881],{"type":858,"value":1324},{"type":849,"tag":1031,"props":2883,"children":2884},{"style":1044},[2885],{"type":858,"value":2886},"'memberships'",{"type":849,"tag":1031,"props":2888,"children":2889},{"style":1127},[2890],{"type":858,"value":2578},{"type":858,"value":1152},{"type":849,"tag":1031,"props":2893,"children":2894},{"class":1033,"style":1034},[2895,2899,2903,2907,2911,2915,2919,2923,2927,2931,2935,2939,2943,2947,2951,2955,2959,2963,2968,2972,2976,2980,2984,2988,2992,2997],{"type":849,"tag":1031,"props":2896,"children":2897},{"style":1127},[2898],{"type":858,"value":2560},{"type":849,"tag":1031,"props":2900,"children":2901},{"style":1038},[2902],{"type":858,"value":2591},{"type":849,"tag":1031,"props":2904,"children":2905},{"style":1127},[2906],{"type":858,"value":1324},{"type":849,"tag":1031,"props":2908,"children":2909},{"style":1044},[2910],{"type":858,"value":1570},{"type":849,"tag":1031,"props":2912,"children":2913},{"style":1127},[2914],{"type":858,"value":2604},{"type":849,"tag":1031,"props":2916,"children":2917},{"style":1133},[2918],{"type":858,"value":2609},{"type":849,"tag":1031,"props":2920,"children":2921},{"style":1127},[2922],{"type":858,"value":2528},{"type":849,"tag":1031,"props":2924,"children":2925},{"style":1930},[2926],{"type":858,"value":2533},{"type":849,"tag":1031,"props":2928,"children":2929},{"style":1133},[2930],{"type":858,"value":2622},{"type":849,"tag":1031,"props":2932,"children":2933},{"style":1127},[2934],{"type":858,"value":966},{"type":849,"tag":1031,"props":2936,"children":2937},{"style":1038},[2938],{"type":858,"value":2631},{"type":849,"tag":1031,"props":2940,"children":2941},{"style":1127},[2942],{"type":858,"value":1324},{"type":849,"tag":1031,"props":2944,"children":2945},{"style":1044},[2946],{"type":858,"value":1579},{"type":849,"tag":1031,"props":2948,"children":2949},{"style":1127},[2950],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2952,"children":2953},{"style":1133},[2954],{"type":858,"value":2321},{"type":849,"tag":1031,"props":2956,"children":2957},{"style":1127},[2958],{"type":858,"value":966},{"type":849,"tag":1031,"props":2960,"children":2961},{"style":1133},[2962],{"type":858,"value":1421},{"type":849,"tag":1031,"props":2964,"children":2965},{"style":1127},[2966],{"type":858,"value":2967},").",{"type":849,"tag":1031,"props":2969,"children":2970},{"style":1038},[2971],{"type":858,"value":2631},{"type":849,"tag":1031,"props":2973,"children":2974},{"style":1127},[2975],{"type":858,"value":1324},{"type":849,"tag":1031,"props":2977,"children":2978},{"style":1044},[2979],{"type":858,"value":1588},{"type":849,"tag":1031,"props":2981,"children":2982},{"style":1127},[2983],{"type":858,"value":1173},{"type":849,"tag":1031,"props":2985,"children":2986},{"style":1133},[2987],{"type":858,"value":2704},{"type":849,"tag":1031,"props":2989,"children":2990},{"style":1127},[2991],{"type":858,"value":966},{"type":849,"tag":1031,"props":2993,"children":2994},{"style":1133},[2995],{"type":858,"value":2996},"_id",{"type":849,"tag":1031,"props":2998,"children":2999},{"style":1127},[3000],{"type":858,"value":2652},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3003,"children":3004},{"class":1033,"style":1034},[3005,3009,3013],{"type":849,"tag":1031,"props":3006,"children":3007},{"style":1127},[3008],{"type":858,"value":2560},{"type":849,"tag":1031,"props":3010,"children":3011},{"style":1038},[3012],{"type":858,"value":2665},{"type":849,"tag":1031,"props":3014,"children":3015},{"style":1127},[3016],{"type":858,"value":3017},"()",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3020,"children":3021},{"class":1033,"style":1034},[3022,3027,3031,3036,3041,3046],{"type":849,"tag":1031,"props":3023,"children":3024},{"style":1121},[3025],{"type":858,"value":3026},"    return",{"type":849,"tag":1031,"props":3028,"children":3029},{"style":1133},[3030],{"type":858,"value":2843},{"type":849,"tag":1031,"props":3032,"children":3033},{"style":1127},[3034],{"type":858,"value":3035},"?.",{"type":849,"tag":1031,"props":3037,"children":3038},{"style":1133},[3039],{"type":858,"value":3040},"role",{"type":849,"tag":1031,"props":3042,"children":3043},{"style":1127},[3044],{"type":858,"value":3045}," ?? ",{"type":849,"tag":1031,"props":3047,"children":3048},{"style":1930},[3049],{"type":858,"value":2769},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3052,"children":3053},{"class":1033,"style":1034},[3054],{"type":849,"tag":1031,"props":3055,"children":3056},{"style":1127},[3057],{"type":858,"value":2051},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3060,"children":3061},{"class":1033,"style":1034},[3062,3067],{"type":849,"tag":1031,"props":3063,"children":3064},{"style":1133},[3065],{"type":858,"value":3066},"  rules:",{"type":849,"tag":1031,"props":3068,"children":3069},{"style":1127},[3070],{"type":858,"value":1999},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3073,"children":3074},{"class":1033,"style":1034},[3075,3080,3085,3089,3094],{"type":849,"tag":1031,"props":3076,"children":3077},{"style":1133},[3078],{"type":858,"value":3079},"    users:",{"type":849,"tag":1031,"props":3081,"children":3082},{"style":1038},[3083],{"type":858,"value":3084}," owner",{"type":849,"tag":1031,"props":3086,"children":3087},{"style":1127},[3088],{"type":858,"value":1324},{"type":849,"tag":1031,"props":3090,"children":3091},{"style":1044},[3092],{"type":858,"value":3093},"'_id'",{"type":849,"tag":1031,"props":3095,"children":3096},{"style":1127},[3097],{"type":858,"value":1435},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3100,"children":3101},{"class":1033,"style":1034},[3102,3107,3112,3116,3120],{"type":849,"tag":1031,"props":3103,"children":3104},{"style":1133},[3105],{"type":858,"value":3106},"    organizations:",{"type":849,"tag":1031,"props":3108,"children":3109},{"style":1038},[3110],{"type":858,"value":3111}," tenant",{"type":849,"tag":1031,"props":3113,"children":3114},{"style":1127},[3115],{"type":858,"value":1324},{"type":849,"tag":1031,"props":3117,"children":3118},{"style":1044},[3119],{"type":858,"value":3093},{"type":849,"tag":1031,"props":3121,"children":3122},{"style":1127},[3123],{"type":858,"value":1435},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3126,"children":3127},{"class":1033,"style":1034},[3128],{"type":849,"tag":1031,"props":3129,"children":3130},{"style":2058},[3131],{"type":858,"value":3132},"    \u002F\u002F Every membership of an organization where your role allows the action, inside the",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3135,"children":3136},{"class":1033,"style":1034},[3137],{"type":849,"tag":1031,"props":3138,"children":3139},{"style":2058},[3140],{"type":858,"value":3141},"    \u002F\u002F organization the call names (as tenant() does). Not owner('userId'): that would let a",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3144,"children":3145},{"class":1033,"style":1034},[3146],{"type":849,"tag":1031,"props":3147,"children":3148},{"style":2058},[3149],{"type":858,"value":3150},"    \u002F\u002F member change their own role or add themselves to another organization.",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3153,"children":3154},{"class":1033,"style":1034},[3155,3160,3165,3170,3175,3179,3183],{"type":849,"tag":1031,"props":3156,"children":3157},{"style":1133},[3158],{"type":858,"value":3159},"    memberships:",{"type":849,"tag":1031,"props":3161,"children":3162},{"style":1038},[3163],{"type":858,"value":3164}," custom",{"type":849,"tag":1031,"props":3166,"children":3167},{"style":1127},[3168],{"type":858,"value":3169},"\u003C",{"type":849,"tag":1031,"props":3171,"children":3173},{"style":3172},"color:#267F99;--shiki-dark:#4EC9B0",[3174],{"type":858,"value":2359},{"type":849,"tag":1031,"props":3176,"children":3177},{"style":1127},[3178],{"type":858,"value":3169},{"type":849,"tag":1031,"props":3180,"children":3181},{"style":1044},[3182],{"type":858,"value":2886},{"type":849,"tag":1031,"props":3184,"children":3185},{"style":1127},[3186],{"type":858,"value":3187},">>(",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3190,"children":3191},{"class":1033,"style":1034},[3192,3197,3201,3205,3210,3214],{"type":849,"tag":1031,"props":3193,"children":3194},{"style":1127},[3195],{"type":858,"value":3196},"      (",{"type":849,"tag":1031,"props":3198,"children":3199},{"style":1133},[3200],{"type":858,"value":2514},{"type":849,"tag":1031,"props":3202,"children":3203},{"style":1127},[3204],{"type":858,"value":1173},{"type":849,"tag":1031,"props":3206,"children":3207},{"style":1133},[3208],{"type":858,"value":3209},"membership",{"type":849,"tag":1031,"props":3211,"children":3212},{"style":1127},[3213],{"type":858,"value":2528},{"type":849,"tag":1031,"props":3215,"children":3216},{"style":1930},[3217],{"type":858,"value":2533},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3220,"children":3221},{"class":1033,"style":1034},[3222,3227,3231,3235,3239,3243,3248,3253,3257,3261,3265,3269,3273,3277,3281,3285,3290],{"type":849,"tag":1031,"props":3223,"children":3224},{"style":1127},[3225],{"type":858,"value":3226},"        (",{"type":849,"tag":1031,"props":3228,"children":3229},{"style":1133},[3230],{"type":858,"value":2514},{"type":849,"tag":1031,"props":3232,"children":3233},{"style":1127},[3234],{"type":858,"value":966},{"type":849,"tag":1031,"props":3236,"children":3237},{"style":1133},[3238],{"type":858,"value":2321},{"type":849,"tag":1031,"props":3240,"children":3241},{"style":1127},[3242],{"type":858,"value":2764},{"type":849,"tag":1031,"props":3244,"children":3245},{"style":1930},[3246],{"type":858,"value":3247},"undefined",{"type":849,"tag":1031,"props":3249,"children":3250},{"style":1127},[3251],{"type":858,"value":3252}," || ",{"type":849,"tag":1031,"props":3254,"children":3255},{"style":1133},[3256],{"type":858,"value":2514},{"type":849,"tag":1031,"props":3258,"children":3259},{"style":1127},[3260],{"type":858,"value":966},{"type":849,"tag":1031,"props":3262,"children":3263},{"style":1133},[3264],{"type":858,"value":2321},{"type":849,"tag":1031,"props":3266,"children":3267},{"style":1127},[3268],{"type":858,"value":966},{"type":849,"tag":1031,"props":3270,"children":3271},{"style":1133},[3272],{"type":858,"value":1421},{"type":849,"tag":1031,"props":3274,"children":3275},{"style":1127},[3276],{"type":858,"value":2764},{"type":849,"tag":1031,"props":3278,"children":3279},{"style":1133},[3280],{"type":858,"value":3209},{"type":849,"tag":1031,"props":3282,"children":3283},{"style":1127},[3284],{"type":858,"value":966},{"type":849,"tag":1031,"props":3286,"children":3287},{"style":1133},[3288],{"type":858,"value":3289},"organizationId",{"type":849,"tag":1031,"props":3291,"children":3292},{"style":1127},[3293],{"type":858,"value":3294},") &&",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3297,"children":3298},{"class":1033,"style":1034},[3299,3304,3308,3313,3317,3322,3327,3331,3336,3340,3344,3348],{"type":849,"tag":1031,"props":3300,"children":3301},{"style":1133},[3302],{"type":858,"value":3303},"        ctx",{"type":849,"tag":1031,"props":3305,"children":3306},{"style":1127},[3307],{"type":858,"value":966},{"type":849,"tag":1031,"props":3309,"children":3310},{"style":1038},[3311],{"type":858,"value":3312},"allows",{"type":849,"tag":1031,"props":3314,"children":3315},{"style":1127},[3316],{"type":858,"value":1268},{"type":849,"tag":1031,"props":3318,"children":3319},{"style":1133},[3320],{"type":858,"value":3321},"table:",{"type":849,"tag":1031,"props":3323,"children":3324},{"style":1044},[3325],{"type":858,"value":3326}," 'organizations'",{"type":849,"tag":1031,"props":3328,"children":3329},{"style":1127},[3330],{"type":858,"value":1173},{"type":849,"tag":1031,"props":3332,"children":3333},{"style":1133},[3334],{"type":858,"value":3335},"id:",{"type":849,"tag":1031,"props":3337,"children":3338},{"style":1133},[3339],{"type":858,"value":2843},{"type":849,"tag":1031,"props":3341,"children":3342},{"style":1127},[3343],{"type":858,"value":966},{"type":849,"tag":1031,"props":3345,"children":3346},{"style":1133},[3347],{"type":858,"value":3289},{"type":849,"tag":1031,"props":3349,"children":3350},{"style":1127},[3351],{"type":858,"value":3352}," }),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3355,"children":3356},{"class":1033,"style":1034},[3357],{"type":849,"tag":1031,"props":3358,"children":3359},{"style":1127},[3360],{"type":858,"value":3361},"    ),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3364,"children":3365},{"class":1033,"style":1034},[3366,3371,3375,3379,3383],{"type":849,"tag":1031,"props":3367,"children":3368},{"style":1133},[3369],{"type":858,"value":3370},"    projects:",{"type":849,"tag":1031,"props":3372,"children":3373},{"style":1038},[3374],{"type":858,"value":3111},{"type":849,"tag":1031,"props":3376,"children":3377},{"style":1127},[3378],{"type":858,"value":1324},{"type":849,"tag":1031,"props":3380,"children":3381},{"style":1044},[3382],{"type":858,"value":1579},{"type":849,"tag":1031,"props":3384,"children":3385},{"style":1127},[3386],{"type":858,"value":1435},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3389,"children":3390},{"class":1033,"style":1034},[3391],{"type":849,"tag":1031,"props":3392,"children":3393},{"style":1127},[3394],{"type":858,"value":2051},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3397,"children":3398},{"class":1033,"style":1034},[3399],{"type":849,"tag":1031,"props":3400,"children":3401},{"style":1127},[3402],{"type":858,"value":1855},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3405,"children":3406},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":3409,"children":3410},{"class":1033,"style":1034},[3411,3415,3419,3423,3427,3431,3436,3441],{"type":849,"tag":1031,"props":3412,"children":3413},{"style":1121},[3414],{"type":858,"value":1234},{"type":849,"tag":1031,"props":3416,"children":3417},{"style":1930},[3418],{"type":858,"value":1933},{"type":849,"tag":1031,"props":3420,"children":3421},{"style":1127},[3422],{"type":858,"value":1130},{"type":849,"tag":1031,"props":3424,"children":3425},{"style":1936},[3426],{"type":858,"value":2565},{"type":849,"tag":1031,"props":3428,"children":3429},{"style":1127},[3430],{"type":858,"value":1173},{"type":849,"tag":1031,"props":3432,"children":3433},{"style":1936},[3434],{"type":858,"value":3435},"mutation",{"type":849,"tag":1031,"props":3437,"children":3438},{"style":1127},[3439],{"type":858,"value":3440}," } = ",{"type":849,"tag":1031,"props":3442,"children":3443},{"style":1133},[3444],{"type":858,"value":3445},"fns",{"type":849,"tag":850,"props":3447,"children":3448},{},[3449,3454,3456,3460,3462,3466],{"type":849,"tag":854,"props":3450,"children":3451},{},[3452],{"type":858,"value":3453},"tenant('organizationId')",{"type":858,"value":3455}," says: a project belongs to the organization in its\n",{"type":849,"tag":854,"props":3457,"children":3458},{},[3459],{"type":858,"value":3289},{"type":858,"value":3461}," field. A call reaches the project only when the caller's role\nin that organization allows the call's action. ",{"type":849,"tag":1069,"props":3463,"children":3464},{"href":506},[3465],{"type":858,"value":501},{"type":858,"value":3467},"\nexplains every rule.",{"type":849,"tag":941,"props":3469,"children":3471},{"id":3470},"_4-write-the-operations",[3472],{"type":858,"value":3473},"4. Write the operations",{"type":849,"tag":850,"props":3475,"children":3476},{},[3477,3479,3483,3485,3489,3491,3495,3497,3502,3504,3508],{"type":858,"value":3478},"Build queries and mutations with ",{"type":849,"tag":854,"props":3480,"children":3481},{},[3482],{"type":858,"value":2565},{"type":858,"value":3484}," and ",{"type":849,"tag":854,"props":3486,"children":3487},{},[3488],{"type":858,"value":3435},{"type":858,"value":3490}," from\n",{"type":849,"tag":854,"props":3492,"children":3493},{},[3494],{"type":858,"value":2275},{"type":858,"value":3496},", not from ",{"type":849,"tag":854,"props":3498,"children":3499},{},[3500],{"type":858,"value":3501},"convex\u002F_generated\u002Fserver",{"type":858,"value":3503},". Each one names its\naction. The ",{"type":849,"tag":854,"props":3505,"children":3506},{},[3507],{"type":858,"value":911},{"type":858,"value":3509}," field makes it a tool for agents.",{"type":849,"tag":1021,"props":3511,"children":3513},{"language":1109,"filename":3512,"class":1024},"convex\u002Fprojects.ts",[3514],{"type":849,"tag":854,"props":3515,"children":3516},{"class":1114},[3517,3545,3546,3583,3584,3611,3612,3615,3616,3652,3653,3656,3657,3685,3686,3703,3704,3759,3760,3844,3845,3857,3858,3874,3875,3892,3893,3900,3901,3956,3957,3989,3990,4013,4014,4049,4050,4110,4111,4119,4120,4145,4146,4170,4171,4271,4272,4279,4280,4287,4288,4291,4292,4320,4321,4337,4338,4379,4380,4403,4404,4442,4443,4451,4452,4498,4499,4578,4579,4587,4588,4631,4632,4684,4685,4748,4749,4828,4829,4840,4841,4848,4849],{"type":849,"tag":1031,"props":3518,"children":3519},{"class":1033,"style":1034},[3520,3524,3528,3533,3537,3541],{"type":849,"tag":1031,"props":3521,"children":3522},{"style":1121},[3523],{"type":858,"value":1124},{"type":849,"tag":1031,"props":3525,"children":3526},{"style":1127},[3527],{"type":858,"value":1130},{"type":849,"tag":1031,"props":3529,"children":3530},{"style":1133},[3531],{"type":858,"value":3532},"fail",{"type":849,"tag":1031,"props":3534,"children":3535},{"style":1127},[3536],{"type":858,"value":1140},{"type":849,"tag":1031,"props":3538,"children":3539},{"style":1121},[3540],{"type":858,"value":1145},{"type":849,"tag":1031,"props":3542,"children":3543},{"style":1044},[3544],{"type":858,"value":1150},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3547,"children":3548},{"class":1033,"style":1034},[3549,3553,3557,3562,3566,3571,3575,3579],{"type":849,"tag":1031,"props":3550,"children":3551},{"style":1121},[3552],{"type":858,"value":1124},{"type":849,"tag":1031,"props":3554,"children":3555},{"style":1127},[3556],{"type":858,"value":1130},{"type":849,"tag":1031,"props":3558,"children":3559},{"style":1133},[3560],{"type":858,"value":3561},"paginationOptsValidator",{"type":849,"tag":1031,"props":3563,"children":3564},{"style":1127},[3565],{"type":858,"value":1173},{"type":849,"tag":1031,"props":3567,"children":3568},{"style":1133},[3569],{"type":858,"value":3570},"paginationResultValidator",{"type":849,"tag":1031,"props":3572,"children":3573},{"style":1127},[3574],{"type":858,"value":1140},{"type":849,"tag":1031,"props":3576,"children":3577},{"style":1121},[3578],{"type":858,"value":1145},{"type":849,"tag":1031,"props":3580,"children":3581},{"style":1044},[3582],{"type":858,"value":1191},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3585,"children":3586},{"class":1033,"style":1034},[3587,3591,3595,3599,3603,3607],{"type":849,"tag":1031,"props":3588,"children":3589},{"style":1121},[3590],{"type":858,"value":1124},{"type":849,"tag":1031,"props":3592,"children":3593},{"style":1127},[3594],{"type":858,"value":1130},{"type":849,"tag":1031,"props":3596,"children":3597},{"style":1133},[3598],{"type":858,"value":1208},{"type":849,"tag":1031,"props":3600,"children":3601},{"style":1127},[3602],{"type":858,"value":1140},{"type":849,"tag":1031,"props":3604,"children":3605},{"style":1121},[3606],{"type":858,"value":1145},{"type":849,"tag":1031,"props":3608,"children":3609},{"style":1044},[3610],{"type":858,"value":1221},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3613,"children":3614},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":3617,"children":3618},{"class":1033,"style":1034},[3619,3623,3627,3631,3635,3639,3643,3647],{"type":849,"tag":1031,"props":3620,"children":3621},{"style":1121},[3622],{"type":858,"value":1124},{"type":849,"tag":1031,"props":3624,"children":3625},{"style":1127},[3626],{"type":858,"value":1130},{"type":849,"tag":1031,"props":3628,"children":3629},{"style":1133},[3630],{"type":858,"value":3435},{"type":849,"tag":1031,"props":3632,"children":3633},{"style":1127},[3634],{"type":858,"value":1173},{"type":849,"tag":1031,"props":3636,"children":3637},{"style":1133},[3638],{"type":858,"value":2565},{"type":849,"tag":1031,"props":3640,"children":3641},{"style":1127},[3642],{"type":858,"value":1140},{"type":849,"tag":1031,"props":3644,"children":3645},{"style":1121},[3646],{"type":858,"value":1145},{"type":849,"tag":1031,"props":3648,"children":3649},{"style":1044},[3650],{"type":858,"value":3651}," '.\u002Ffunctions'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3654,"children":3655},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":3658,"children":3659},{"class":1033,"style":1034},[3660,3664,3668,3673,3677,3681],{"type":849,"tag":1031,"props":3661,"children":3662},{"style":1121},[3663],{"type":858,"value":1234},{"type":849,"tag":1031,"props":3665,"children":3666},{"style":1930},[3667],{"type":858,"value":1933},{"type":849,"tag":1031,"props":3669,"children":3670},{"style":1936},[3671],{"type":858,"value":3672}," list",{"type":849,"tag":1031,"props":3674,"children":3675},{"style":1127},[3676],{"type":858,"value":1944},{"type":849,"tag":1031,"props":3678,"children":3679},{"style":1038},[3680],{"type":858,"value":2565},{"type":849,"tag":1031,"props":3682,"children":3683},{"style":1127},[3684],{"type":858,"value":1249},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3687,"children":3688},{"class":1033,"style":1034},[3689,3694,3699],{"type":849,"tag":1031,"props":3690,"children":3691},{"style":1133},[3692],{"type":858,"value":3693},"  action:",{"type":849,"tag":1031,"props":3695,"children":3696},{"style":1044},[3697],{"type":858,"value":3698}," 'projects.list'",{"type":849,"tag":1031,"props":3700,"children":3701},{"style":1127},[3702],{"type":858,"value":1846},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3705,"children":3706},{"class":1033,"style":1034},[3707,3712,3716,3721,3725,3729,3733,3737,3741,3745,3750,3755],{"type":849,"tag":1031,"props":3708,"children":3709},{"style":1133},[3710],{"type":858,"value":3711},"  args:",{"type":849,"tag":1031,"props":3713,"children":3714},{"style":1127},[3715],{"type":858,"value":1130},{"type":849,"tag":1031,"props":3717,"children":3718},{"style":1133},[3719],{"type":858,"value":3720},"organizationId:",{"type":849,"tag":1031,"props":3722,"children":3723},{"style":1133},[3724],{"type":858,"value":1278},{"type":849,"tag":1031,"props":3726,"children":3727},{"style":1127},[3728],{"type":858,"value":966},{"type":849,"tag":1031,"props":3730,"children":3731},{"style":1038},[3732],{"type":858,"value":1421},{"type":849,"tag":1031,"props":3734,"children":3735},{"style":1127},[3736],{"type":858,"value":1324},{"type":849,"tag":1031,"props":3738,"children":3739},{"style":1044},[3740],{"type":858,"value":1430},{"type":849,"tag":1031,"props":3742,"children":3743},{"style":1127},[3744],{"type":858,"value":1522},{"type":849,"tag":1031,"props":3746,"children":3747},{"style":1133},[3748],{"type":858,"value":3749},"paginationOpts:",{"type":849,"tag":1031,"props":3751,"children":3752},{"style":1133},[3753],{"type":858,"value":3754}," paginationOptsValidator",{"type":849,"tag":1031,"props":3756,"children":3757},{"style":1127},[3758],{"type":858,"value":2237},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3761,"children":3762},{"class":1033,"style":1034},[3763,3768,3773,3777,3781,3785,3790,3794,3798,3802,3806,3810,3814,3819,3823,3827,3831,3835,3839],{"type":849,"tag":1031,"props":3764,"children":3765},{"style":1133},[3766],{"type":858,"value":3767},"  returns:",{"type":849,"tag":1031,"props":3769,"children":3770},{"style":1038},[3771],{"type":858,"value":3772}," paginationResultValidator",{"type":849,"tag":1031,"props":3774,"children":3775},{"style":1127},[3776],{"type":858,"value":1324},{"type":849,"tag":1031,"props":3778,"children":3779},{"style":1133},[3780],{"type":858,"value":1208},{"type":849,"tag":1031,"props":3782,"children":3783},{"style":1127},[3784],{"type":858,"value":966},{"type":849,"tag":1031,"props":3786,"children":3787},{"style":1038},[3788],{"type":858,"value":3789},"object",{"type":849,"tag":1031,"props":3791,"children":3792},{"style":1127},[3793],{"type":858,"value":1268},{"type":849,"tag":1031,"props":3795,"children":3796},{"style":1133},[3797],{"type":858,"value":3335},{"type":849,"tag":1031,"props":3799,"children":3800},{"style":1133},[3801],{"type":858,"value":1278},{"type":849,"tag":1031,"props":3803,"children":3804},{"style":1127},[3805],{"type":858,"value":966},{"type":849,"tag":1031,"props":3807,"children":3808},{"style":1038},[3809],{"type":858,"value":1421},{"type":849,"tag":1031,"props":3811,"children":3812},{"style":1127},[3813],{"type":858,"value":1324},{"type":849,"tag":1031,"props":3815,"children":3816},{"style":1044},[3817],{"type":858,"value":3818},"'projects'",{"type":849,"tag":1031,"props":3820,"children":3821},{"style":1127},[3822],{"type":858,"value":1522},{"type":849,"tag":1031,"props":3824,"children":3825},{"style":1133},[3826],{"type":858,"value":1297},{"type":849,"tag":1031,"props":3828,"children":3829},{"style":1133},[3830],{"type":858,"value":1278},{"type":849,"tag":1031,"props":3832,"children":3833},{"style":1127},[3834],{"type":858,"value":966},{"type":849,"tag":1031,"props":3836,"children":3837},{"style":1038},[3838],{"type":858,"value":1287},{"type":849,"tag":1031,"props":3840,"children":3841},{"style":1127},[3842],{"type":858,"value":3843},"() })),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":3846,"children":3847},{"class":1033,"style":1034},[3848,3853],{"type":849,"tag":1031,"props":3849,"children":3850},{"style":1133},[3851],{"type":858,"value":3852},"  tool:",{"type":849,"tag":1031,"props":3854,"children":3855},{"style":1127},[3856],{"type":858,"value":1999},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3859,"children":3860},{"class":1033,"style":1034},[3861,3865,3870],{"type":849,"tag":1031,"props":3862,"children":3863},{"style":1133},[3864],{"type":858,"value":1650},{"type":849,"tag":1031,"props":3866,"children":3867},{"style":1044},[3868],{"type":858,"value":3869}," 'list_projects'",{"type":849,"tag":1031,"props":3871,"children":3872},{"style":1127},[3873],{"type":858,"value":1846},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3876,"children":3877},{"class":1033,"style":1034},[3878,3883,3888],{"type":849,"tag":1031,"props":3879,"children":3880},{"style":1133},[3881],{"type":858,"value":3882},"    description:",{"type":849,"tag":1031,"props":3884,"children":3885},{"style":1044},[3886],{"type":858,"value":3887}," 'List the active projects of an organization, newest first.'",{"type":849,"tag":1031,"props":3889,"children":3890},{"style":1127},[3891],{"type":858,"value":1846},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3894,"children":3895},{"class":1033,"style":1034},[3896],{"type":849,"tag":1031,"props":3897,"children":3898},{"style":1127},[3899],{"type":858,"value":2051},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3902,"children":3903},{"class":1033,"style":1034},[3904,3909,3913,3917,3921,3925,3930,3934,3938,3943,3948,3952],{"type":849,"tag":1031,"props":3905,"children":3906},{"style":1038},[3907],{"type":858,"value":3908},"  handler",{"type":849,"tag":1031,"props":3910,"children":3911},{"style":1133},[3912],{"type":858,"value":2088},{"type":849,"tag":1031,"props":3914,"children":3915},{"style":1930},[3916],{"type":858,"value":2687},{"type":849,"tag":1031,"props":3918,"children":3919},{"style":1127},[3920],{"type":858,"value":2509},{"type":849,"tag":1031,"props":3922,"children":3923},{"style":1133},[3924],{"type":858,"value":2514},{"type":849,"tag":1031,"props":3926,"children":3927},{"style":1127},[3928],{"type":858,"value":3929},", { ",{"type":849,"tag":1031,"props":3931,"children":3932},{"style":1133},[3933],{"type":858,"value":3289},{"type":849,"tag":1031,"props":3935,"children":3936},{"style":1127},[3937],{"type":858,"value":1173},{"type":849,"tag":1031,"props":3939,"children":3940},{"style":1133},[3941],{"type":858,"value":3942},"paginationOpts",{"type":849,"tag":1031,"props":3944,"children":3945},{"style":1127},[3946],{"type":858,"value":3947}," }) ",{"type":849,"tag":1031,"props":3949,"children":3950},{"style":1930},[3951],{"type":858,"value":2533},{"type":849,"tag":1031,"props":3953,"children":3954},{"style":1127},[3955],{"type":858,"value":1999},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3958,"children":3959},{"class":1033,"style":1034},[3960,3964,3969,3973,3977,3981,3985],{"type":849,"tag":1031,"props":3961,"children":3962},{"style":1930},[3963],{"type":858,"value":2838},{"type":849,"tag":1031,"props":3965,"children":3966},{"style":1936},[3967],{"type":858,"value":3968}," page",{"type":849,"tag":1031,"props":3970,"children":3971},{"style":1127},[3972],{"type":858,"value":1944},{"type":849,"tag":1031,"props":3974,"children":3975},{"style":1121},[3976],{"type":858,"value":2852},{"type":849,"tag":1031,"props":3978,"children":3979},{"style":1133},[3980],{"type":858,"value":2857},{"type":849,"tag":1031,"props":3982,"children":3983},{"style":1127},[3984],{"type":858,"value":966},{"type":849,"tag":1031,"props":3986,"children":3987},{"style":1133},[3988],{"type":858,"value":2551},{"type":858,"value":1152},{"type":849,"tag":1031,"props":3991,"children":3992},{"class":1033,"style":1034},[3993,3997,4001,4005,4009],{"type":849,"tag":1031,"props":3994,"children":3995},{"style":1127},[3996],{"type":858,"value":2560},{"type":849,"tag":1031,"props":3998,"children":3999},{"style":1038},[4000],{"type":858,"value":2565},{"type":849,"tag":1031,"props":4002,"children":4003},{"style":1127},[4004],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4006,"children":4007},{"style":1044},[4008],{"type":858,"value":3818},{"type":849,"tag":1031,"props":4010,"children":4011},{"style":1127},[4012],{"type":858,"value":2578},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4015,"children":4016},{"class":1033,"style":1034},[4017,4021,4025,4029,4033,4037,4041,4045],{"type":849,"tag":1031,"props":4018,"children":4019},{"style":1127},[4020],{"type":858,"value":2560},{"type":849,"tag":1031,"props":4022,"children":4023},{"style":1038},[4024],{"type":858,"value":2591},{"type":849,"tag":1031,"props":4026,"children":4027},{"style":1127},[4028],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4030,"children":4031},{"style":1044},[4032],{"type":858,"value":1807},{"type":849,"tag":1031,"props":4034,"children":4035},{"style":1127},[4036],{"type":858,"value":2604},{"type":849,"tag":1031,"props":4038,"children":4039},{"style":1133},[4040],{"type":858,"value":2609},{"type":849,"tag":1031,"props":4042,"children":4043},{"style":1127},[4044],{"type":858,"value":2528},{"type":849,"tag":1031,"props":4046,"children":4047},{"style":1930},[4048],{"type":858,"value":2533},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4051,"children":4052},{"class":1033,"style":1034},[4053,4058,4062,4066,4070,4074,4078,4082,4086,4090,4094,4098,4102,4106],{"type":849,"tag":1031,"props":4054,"children":4055},{"style":1133},[4056],{"type":858,"value":4057},"        q",{"type":849,"tag":1031,"props":4059,"children":4060},{"style":1127},[4061],{"type":858,"value":966},{"type":849,"tag":1031,"props":4063,"children":4064},{"style":1038},[4065],{"type":858,"value":2631},{"type":849,"tag":1031,"props":4067,"children":4068},{"style":1127},[4069],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4071,"children":4072},{"style":1044},[4073],{"type":858,"value":1579},{"type":849,"tag":1031,"props":4075,"children":4076},{"style":1127},[4077],{"type":858,"value":1173},{"type":849,"tag":1031,"props":4079,"children":4080},{"style":1133},[4081],{"type":858,"value":3289},{"type":849,"tag":1031,"props":4083,"children":4084},{"style":1127},[4085],{"type":858,"value":2967},{"type":849,"tag":1031,"props":4087,"children":4088},{"style":1038},[4089],{"type":858,"value":2631},{"type":849,"tag":1031,"props":4091,"children":4092},{"style":1127},[4093],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4095,"children":4096},{"style":1044},[4097],{"type":858,"value":1824},{"type":849,"tag":1031,"props":4099,"children":4100},{"style":1127},[4101],{"type":858,"value":1173},{"type":849,"tag":1031,"props":4103,"children":4104},{"style":1044},[4105],{"type":858,"value":1713},{"type":849,"tag":1031,"props":4107,"children":4108},{"style":1127},[4109],{"type":858,"value":1435},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4112,"children":4113},{"class":1033,"style":1034},[4114],{"type":849,"tag":1031,"props":4115,"children":4116},{"style":1127},[4117],{"type":858,"value":4118},"      )",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4121,"children":4122},{"class":1033,"style":1034},[4123,4127,4132,4136,4141],{"type":849,"tag":1031,"props":4124,"children":4125},{"style":1127},[4126],{"type":858,"value":2560},{"type":849,"tag":1031,"props":4128,"children":4129},{"style":1038},[4130],{"type":858,"value":4131},"order",{"type":849,"tag":1031,"props":4133,"children":4134},{"style":1127},[4135],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4137,"children":4138},{"style":1044},[4139],{"type":858,"value":4140},"'desc'",{"type":849,"tag":1031,"props":4142,"children":4143},{"style":1127},[4144],{"type":858,"value":2578},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4147,"children":4148},{"class":1033,"style":1034},[4149,4153,4158,4162,4166],{"type":849,"tag":1031,"props":4150,"children":4151},{"style":1127},[4152],{"type":858,"value":2560},{"type":849,"tag":1031,"props":4154,"children":4155},{"style":1038},[4156],{"type":858,"value":4157},"paginate",{"type":849,"tag":1031,"props":4159,"children":4160},{"style":1127},[4161],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4163,"children":4164},{"style":1133},[4165],{"type":858,"value":3942},{"type":849,"tag":1031,"props":4167,"children":4168},{"style":1127},[4169],{"type":858,"value":2578},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4172,"children":4173},{"class":1033,"style":1034},[4174,4178,4183,4188,4192,4197,4201,4205,4209,4213,4218,4223,4227,4231,4236,4240,4244,4249,4253,4258,4262,4266],{"type":849,"tag":1031,"props":4175,"children":4176},{"style":1121},[4177],{"type":858,"value":3026},{"type":849,"tag":1031,"props":4179,"children":4180},{"style":1127},[4181],{"type":858,"value":4182}," { ...",{"type":849,"tag":1031,"props":4184,"children":4185},{"style":1133},[4186],{"type":858,"value":4187},"page",{"type":849,"tag":1031,"props":4189,"children":4190},{"style":1127},[4191],{"type":858,"value":1173},{"type":849,"tag":1031,"props":4193,"children":4194},{"style":1133},[4195],{"type":858,"value":4196},"page:",{"type":849,"tag":1031,"props":4198,"children":4199},{"style":1133},[4200],{"type":858,"value":3968},{"type":849,"tag":1031,"props":4202,"children":4203},{"style":1127},[4204],{"type":858,"value":966},{"type":849,"tag":1031,"props":4206,"children":4207},{"style":1133},[4208],{"type":858,"value":4187},{"type":849,"tag":1031,"props":4210,"children":4211},{"style":1127},[4212],{"type":858,"value":966},{"type":849,"tag":1031,"props":4214,"children":4215},{"style":1038},[4216],{"type":858,"value":4217},"map",{"type":849,"tag":1031,"props":4219,"children":4220},{"style":1127},[4221],{"type":858,"value":4222},"(({ ",{"type":849,"tag":1031,"props":4224,"children":4225},{"style":1133},[4226],{"type":858,"value":2996},{"type":849,"tag":1031,"props":4228,"children":4229},{"style":1127},[4230],{"type":858,"value":1173},{"type":849,"tag":1031,"props":4232,"children":4233},{"style":1133},[4234],{"type":858,"value":4235},"name",{"type":849,"tag":1031,"props":4237,"children":4238},{"style":1127},[4239],{"type":858,"value":3947},{"type":849,"tag":1031,"props":4241,"children":4242},{"style":1930},[4243],{"type":858,"value":2533},{"type":849,"tag":1031,"props":4245,"children":4246},{"style":1127},[4247],{"type":858,"value":4248}," ({ ",{"type":849,"tag":1031,"props":4250,"children":4251},{"style":1133},[4252],{"type":858,"value":3335},{"type":849,"tag":1031,"props":4254,"children":4255},{"style":1133},[4256],{"type":858,"value":4257}," _id",{"type":849,"tag":1031,"props":4259,"children":4260},{"style":1127},[4261],{"type":858,"value":1173},{"type":849,"tag":1031,"props":4263,"children":4264},{"style":1133},[4265],{"type":858,"value":4235},{"type":849,"tag":1031,"props":4267,"children":4268},{"style":1127},[4269],{"type":858,"value":4270}," })) }",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4273,"children":4274},{"class":1033,"style":1034},[4275],{"type":849,"tag":1031,"props":4276,"children":4277},{"style":1127},[4278],{"type":858,"value":2051},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4281,"children":4282},{"class":1033,"style":1034},[4283],{"type":849,"tag":1031,"props":4284,"children":4285},{"style":1127},[4286],{"type":858,"value":1855},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4289,"children":4290},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":4293,"children":4294},{"class":1033,"style":1034},[4295,4299,4303,4308,4312,4316],{"type":849,"tag":1031,"props":4296,"children":4297},{"style":1121},[4298],{"type":858,"value":1234},{"type":849,"tag":1031,"props":4300,"children":4301},{"style":1930},[4302],{"type":858,"value":1933},{"type":849,"tag":1031,"props":4304,"children":4305},{"style":1936},[4306],{"type":858,"value":4307}," archive",{"type":849,"tag":1031,"props":4309,"children":4310},{"style":1127},[4311],{"type":858,"value":1944},{"type":849,"tag":1031,"props":4313,"children":4314},{"style":1038},[4315],{"type":858,"value":3435},{"type":849,"tag":1031,"props":4317,"children":4318},{"style":1127},[4319],{"type":858,"value":1249},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4322,"children":4323},{"class":1033,"style":1034},[4324,4328,4333],{"type":849,"tag":1031,"props":4325,"children":4326},{"style":1133},[4327],{"type":858,"value":3693},{"type":849,"tag":1031,"props":4329,"children":4330},{"style":1044},[4331],{"type":858,"value":4332}," 'projects.archive'",{"type":849,"tag":1031,"props":4334,"children":4335},{"style":1127},[4336],{"type":858,"value":1846},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4339,"children":4340},{"class":1033,"style":1034},[4341,4345,4349,4354,4358,4362,4366,4370,4374],{"type":849,"tag":1031,"props":4342,"children":4343},{"style":1133},[4344],{"type":858,"value":3711},{"type":849,"tag":1031,"props":4346,"children":4347},{"style":1127},[4348],{"type":858,"value":1130},{"type":849,"tag":1031,"props":4350,"children":4351},{"style":1133},[4352],{"type":858,"value":4353},"projectId:",{"type":849,"tag":1031,"props":4355,"children":4356},{"style":1133},[4357],{"type":858,"value":1278},{"type":849,"tag":1031,"props":4359,"children":4360},{"style":1127},[4361],{"type":858,"value":966},{"type":849,"tag":1031,"props":4363,"children":4364},{"style":1038},[4365],{"type":858,"value":1421},{"type":849,"tag":1031,"props":4367,"children":4368},{"style":1127},[4369],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4371,"children":4372},{"style":1044},[4373],{"type":858,"value":3818},{"type":849,"tag":1031,"props":4375,"children":4376},{"style":1127},[4377],{"type":858,"value":4378},") },",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4381,"children":4382},{"class":1033,"style":1034},[4383,4387,4391,4395,4399],{"type":849,"tag":1031,"props":4384,"children":4385},{"style":1133},[4386],{"type":858,"value":3767},{"type":849,"tag":1031,"props":4388,"children":4389},{"style":1133},[4390],{"type":858,"value":1278},{"type":849,"tag":1031,"props":4392,"children":4393},{"style":1127},[4394],{"type":858,"value":966},{"type":849,"tag":1031,"props":4396,"children":4397},{"style":1038},[4398],{"type":858,"value":2769},{"type":849,"tag":1031,"props":4400,"children":4401},{"style":1127},[4402],{"type":858,"value":1667},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4405,"children":4406},{"class":1033,"style":1034},[4407,4411,4415,4419,4424,4428,4433,4438],{"type":849,"tag":1031,"props":4408,"children":4409},{"style":1133},[4410],{"type":858,"value":3852},{"type":849,"tag":1031,"props":4412,"children":4413},{"style":1127},[4414],{"type":858,"value":1130},{"type":849,"tag":1031,"props":4416,"children":4417},{"style":1133},[4418],{"type":858,"value":1297},{"type":849,"tag":1031,"props":4420,"children":4421},{"style":1044},[4422],{"type":858,"value":4423}," 'archive_project'",{"type":849,"tag":1031,"props":4425,"children":4426},{"style":1127},[4427],{"type":858,"value":1173},{"type":849,"tag":1031,"props":4429,"children":4430},{"style":1133},[4431],{"type":858,"value":4432},"description:",{"type":849,"tag":1031,"props":4434,"children":4435},{"style":1044},[4436],{"type":858,"value":4437}," 'Archive one project. The app can restore it.'",{"type":849,"tag":1031,"props":4439,"children":4440},{"style":1127},[4441],{"type":858,"value":2237},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4444,"children":4445},{"class":1033,"style":1034},[4446],{"type":849,"tag":1031,"props":4447,"children":4448},{"style":2058},[4449],{"type":858,"value":4450},"  \u002F\u002F What a person approves before an agent's request runs: this sentence, for this project.",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4453,"children":4454},{"class":1033,"style":1034},[4455,4460,4464,4468,4472,4476,4480,4485,4489,4493],{"type":849,"tag":1031,"props":4456,"children":4457},{"style":1038},[4458],{"type":858,"value":4459},"  plan",{"type":849,"tag":1031,"props":4461,"children":4462},{"style":1133},[4463],{"type":858,"value":2088},{"type":849,"tag":1031,"props":4465,"children":4466},{"style":1930},[4467],{"type":858,"value":2687},{"type":849,"tag":1031,"props":4469,"children":4470},{"style":1127},[4471],{"type":858,"value":2509},{"type":849,"tag":1031,"props":4473,"children":4474},{"style":1133},[4475],{"type":858,"value":2514},{"type":849,"tag":1031,"props":4477,"children":4478},{"style":1127},[4479],{"type":858,"value":3929},{"type":849,"tag":1031,"props":4481,"children":4482},{"style":1133},[4483],{"type":858,"value":4484},"projectId",{"type":849,"tag":1031,"props":4486,"children":4487},{"style":1127},[4488],{"type":858,"value":3947},{"type":849,"tag":1031,"props":4490,"children":4491},{"style":1930},[4492],{"type":858,"value":2533},{"type":849,"tag":1031,"props":4494,"children":4495},{"style":1127},[4496],{"type":858,"value":4497}," ({",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4500,"children":4501},{"class":1033,"style":1034},[4502,4507,4512,4517,4522,4526,4530,4534,4538,4542,4547,4551,4555,4560,4564,4569,4574],{"type":849,"tag":1031,"props":4503,"children":4504},{"style":1133},[4505],{"type":858,"value":4506},"    summary:",{"type":849,"tag":1031,"props":4508,"children":4509},{"style":1044},[4510],{"type":858,"value":4511}," `Archive the project \"",{"type":849,"tag":1031,"props":4513,"children":4514},{"style":1930},[4515],{"type":858,"value":4516},"${",{"type":849,"tag":1031,"props":4518,"children":4520},{"style":4519},"color:#000000FF;--shiki-dark:#D4D4D4",[4521],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4523,"children":4524},{"style":1121},[4525],{"type":858,"value":2852},{"type":849,"tag":1031,"props":4527,"children":4528},{"style":1133},[4529],{"type":858,"value":2857},{"type":849,"tag":1031,"props":4531,"children":4532},{"style":4519},[4533],{"type":858,"value":966},{"type":849,"tag":1031,"props":4535,"children":4536},{"style":1133},[4537],{"type":858,"value":2551},{"type":849,"tag":1031,"props":4539,"children":4540},{"style":4519},[4541],{"type":858,"value":966},{"type":849,"tag":1031,"props":4543,"children":4544},{"style":1038},[4545],{"type":858,"value":4546},"get",{"type":849,"tag":1031,"props":4548,"children":4549},{"style":4519},[4550],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4552,"children":4553},{"style":1133},[4554],{"type":858,"value":4484},{"type":849,"tag":1031,"props":4556,"children":4557},{"style":4519},[4558],{"type":858,"value":4559},"))?.",{"type":849,"tag":1031,"props":4561,"children":4562},{"style":1133},[4563],{"type":858,"value":4235},{"type":849,"tag":1031,"props":4565,"children":4566},{"style":1930},[4567],{"type":858,"value":4568},"}",{"type":849,"tag":1031,"props":4570,"children":4571},{"style":1044},[4572],{"type":858,"value":4573},"\".`",{"type":849,"tag":1031,"props":4575,"children":4576},{"style":1127},[4577],{"type":858,"value":1846},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4580,"children":4581},{"class":1033,"style":1034},[4582],{"type":849,"tag":1031,"props":4583,"children":4584},{"style":1127},[4585],{"type":858,"value":4586},"  }),",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4589,"children":4590},{"class":1033,"style":1034},[4591,4595,4599,4603,4607,4611,4615,4619,4623,4627],{"type":849,"tag":1031,"props":4592,"children":4593},{"style":1038},[4594],{"type":858,"value":3908},{"type":849,"tag":1031,"props":4596,"children":4597},{"style":1133},[4598],{"type":858,"value":2088},{"type":849,"tag":1031,"props":4600,"children":4601},{"style":1930},[4602],{"type":858,"value":2687},{"type":849,"tag":1031,"props":4604,"children":4605},{"style":1127},[4606],{"type":858,"value":2509},{"type":849,"tag":1031,"props":4608,"children":4609},{"style":1133},[4610],{"type":858,"value":2514},{"type":849,"tag":1031,"props":4612,"children":4613},{"style":1127},[4614],{"type":858,"value":3929},{"type":849,"tag":1031,"props":4616,"children":4617},{"style":1133},[4618],{"type":858,"value":4484},{"type":849,"tag":1031,"props":4620,"children":4621},{"style":1127},[4622],{"type":858,"value":3947},{"type":849,"tag":1031,"props":4624,"children":4625},{"style":1930},[4626],{"type":858,"value":2533},{"type":849,"tag":1031,"props":4628,"children":4629},{"style":1127},[4630],{"type":858,"value":1999},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4633,"children":4634},{"class":1033,"style":1034},[4635,4639,4644,4648,4652,4656,4660,4664,4668,4672,4676,4680],{"type":849,"tag":1031,"props":4636,"children":4637},{"style":1930},[4638],{"type":858,"value":2838},{"type":849,"tag":1031,"props":4640,"children":4641},{"style":1936},[4642],{"type":858,"value":4643}," project",{"type":849,"tag":1031,"props":4645,"children":4646},{"style":1127},[4647],{"type":858,"value":1944},{"type":849,"tag":1031,"props":4649,"children":4650},{"style":1121},[4651],{"type":858,"value":2852},{"type":849,"tag":1031,"props":4653,"children":4654},{"style":1133},[4655],{"type":858,"value":2857},{"type":849,"tag":1031,"props":4657,"children":4658},{"style":1127},[4659],{"type":858,"value":966},{"type":849,"tag":1031,"props":4661,"children":4662},{"style":1133},[4663],{"type":858,"value":2551},{"type":849,"tag":1031,"props":4665,"children":4666},{"style":1127},[4667],{"type":858,"value":966},{"type":849,"tag":1031,"props":4669,"children":4670},{"style":1038},[4671],{"type":858,"value":4546},{"type":849,"tag":1031,"props":4673,"children":4674},{"style":1127},[4675],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4677,"children":4678},{"style":1133},[4679],{"type":858,"value":4484},{"type":849,"tag":1031,"props":4681,"children":4682},{"style":1127},[4683],{"type":858,"value":2578},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4686,"children":4687},{"class":1033,"style":1034},[4688,4692,4696,4701,4705,4710,4714,4718,4722,4726,4730,4735,4739,4744],{"type":849,"tag":1031,"props":4689,"children":4690},{"style":1121},[4691],{"type":858,"value":2751},{"type":849,"tag":1031,"props":4693,"children":4694},{"style":1127},[4695],{"type":858,"value":2509},{"type":849,"tag":1031,"props":4697,"children":4698},{"style":1133},[4699],{"type":858,"value":4700},"project",{"type":849,"tag":1031,"props":4702,"children":4703},{"style":1127},[4704],{"type":858,"value":3035},{"type":849,"tag":1031,"props":4706,"children":4707},{"style":1133},[4708],{"type":858,"value":4709},"status",{"type":849,"tag":1031,"props":4711,"children":4712},{"style":1127},[4713],{"type":858,"value":2813},{"type":849,"tag":1031,"props":4715,"children":4716},{"style":1044},[4717],{"type":858,"value":1713},{"type":849,"tag":1031,"props":4719,"children":4720},{"style":1127},[4721],{"type":858,"value":2528},{"type":849,"tag":1031,"props":4723,"children":4724},{"style":1038},[4725],{"type":858,"value":3532},{"type":849,"tag":1031,"props":4727,"children":4728},{"style":1127},[4729],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4731,"children":4732},{"style":1044},[4733],{"type":858,"value":4734},"'NOT_FOUND'",{"type":849,"tag":1031,"props":4736,"children":4737},{"style":1127},[4738],{"type":858,"value":1173},{"type":849,"tag":1031,"props":4740,"children":4741},{"style":1044},[4742],{"type":858,"value":4743},"'This project is not active.'",{"type":849,"tag":1031,"props":4745,"children":4746},{"style":1127},[4747],{"type":858,"value":2578},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4750,"children":4751},{"class":1033,"style":1034},[4752,4757,4761,4765,4769,4773,4778,4782,4786,4790,4795,4800,4804,4809,4814,4818,4823],{"type":849,"tag":1031,"props":4753,"children":4754},{"style":1121},[4755],{"type":858,"value":4756},"    await",{"type":849,"tag":1031,"props":4758,"children":4759},{"style":1133},[4760],{"type":858,"value":2857},{"type":849,"tag":1031,"props":4762,"children":4763},{"style":1127},[4764],{"type":858,"value":966},{"type":849,"tag":1031,"props":4766,"children":4767},{"style":1133},[4768],{"type":858,"value":2551},{"type":849,"tag":1031,"props":4770,"children":4771},{"style":1127},[4772],{"type":858,"value":966},{"type":849,"tag":1031,"props":4774,"children":4775},{"style":1038},[4776],{"type":858,"value":4777},"patch",{"type":849,"tag":1031,"props":4779,"children":4780},{"style":1127},[4781],{"type":858,"value":1324},{"type":849,"tag":1031,"props":4783,"children":4784},{"style":1133},[4785],{"type":858,"value":4484},{"type":849,"tag":1031,"props":4787,"children":4788},{"style":1127},[4789],{"type":858,"value":3929},{"type":849,"tag":1031,"props":4791,"children":4792},{"style":1133},[4793],{"type":858,"value":4794},"status:",{"type":849,"tag":1031,"props":4796,"children":4797},{"style":1044},[4798],{"type":858,"value":4799}," 'archived'",{"type":849,"tag":1031,"props":4801,"children":4802},{"style":1127},[4803],{"type":858,"value":1173},{"type":849,"tag":1031,"props":4805,"children":4806},{"style":1133},[4807],{"type":858,"value":4808},"archivedAt:",{"type":849,"tag":1031,"props":4810,"children":4811},{"style":1133},[4812],{"type":858,"value":4813}," Date",{"type":849,"tag":1031,"props":4815,"children":4816},{"style":1127},[4817],{"type":858,"value":966},{"type":849,"tag":1031,"props":4819,"children":4820},{"style":1038},[4821],{"type":858,"value":4822},"now",{"type":849,"tag":1031,"props":4824,"children":4825},{"style":1127},[4826],{"type":858,"value":4827},"() })",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4830,"children":4831},{"class":1033,"style":1034},[4832,4836],{"type":849,"tag":1031,"props":4833,"children":4834},{"style":1121},[4835],{"type":858,"value":3026},{"type":849,"tag":1031,"props":4837,"children":4838},{"style":1930},[4839],{"type":858,"value":2783},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4842,"children":4843},{"class":1033,"style":1034},[4844],{"type":849,"tag":1031,"props":4845,"children":4846},{"style":1127},[4847],{"type":858,"value":2051},{"type":858,"value":1152},{"type":849,"tag":1031,"props":4850,"children":4851},{"class":1033,"style":1034},[4852],{"type":849,"tag":1031,"props":4853,"children":4854},{"style":1127},[4855],{"type":858,"value":1855},{"type":849,"tag":850,"props":4857,"children":4858},{},[4859],{"type":858,"value":4860},"Before a handler runs, the library:",{"type":849,"tag":4862,"props":4863,"children":4864},"ol",{},[4865,4877,4888],{"type":849,"tag":879,"props":4866,"children":4867},{},[4868,4870,4875],{"type":858,"value":4869},"finds the actor (",{"type":849,"tag":854,"props":4871,"children":4872},{},[4873],{"type":858,"value":4874},"ctx.actor",{"type":858,"value":4876},"): a person signed in on the web, or an agent;",{"type":849,"tag":879,"props":4878,"children":4879},{},[4880,4882,4886],{"type":858,"value":4881},"finds the tenant from the IDs in the arguments: ",{"type":849,"tag":854,"props":4883,"children":4884},{},[4885],{"type":858,"value":4484},{"type":858,"value":4887}," names a project,\nand the project names its organization;",{"type":849,"tag":879,"props":4889,"children":4890},{},[4891],{"type":858,"value":4892},"checks the policy: the actor's role in that organization must allow the\naction.",{"type":849,"tag":850,"props":4894,"children":4895},{},[4896,4898,4903],{"type":858,"value":4897},"While the handler runs, ",{"type":849,"tag":854,"props":4899,"children":4900},{},[4901],{"type":858,"value":4902},"ctx.db",{"type":858,"value":4904}," checks every row it reads or writes against\nthe row rules. The handler has no membership check of its own, and needs none.",{"type":849,"tag":941,"props":4906,"children":4908},{"id":4907},"_5-collect-the-tools",[4909],{"type":858,"value":4910},"5. Collect the tools",{"type":849,"tag":850,"props":4912,"children":4913},{},[4914,4916,4921],{"type":858,"value":4915},"One module calls ",{"type":849,"tag":854,"props":4917,"children":4918},{},[4919],{"type":858,"value":4920},"defineTools",{"type":858,"value":4922}," and exports one internal function per tool.\nIt also exports the approval functions and the activity feed for your pages.",{"type":849,"tag":1021,"props":4924,"children":4926},{"language":1109,"filename":4925,"class":1024},"convex\u002Fagents.ts",[4927],{"type":849,"tag":854,"props":4928,"children":4929},{"class":1114},[4930,4958,4959,4962,4963,4992,4993,5020,5021,5053,5054,5057,5058,5128,5129,5132,5133,5198,5199,5262,5263],{"type":849,"tag":1031,"props":4931,"children":4932},{"class":1033,"style":1034},[4933,4937,4941,4945,4949,4953],{"type":849,"tag":1031,"props":4934,"children":4935},{"style":1121},[4936],{"type":858,"value":1124},{"type":849,"tag":1031,"props":4938,"children":4939},{"style":1127},[4940],{"type":858,"value":1130},{"type":849,"tag":1031,"props":4942,"children":4943},{"style":1133},[4944],{"type":858,"value":4920},{"type":849,"tag":1031,"props":4946,"children":4947},{"style":1127},[4948],{"type":858,"value":1140},{"type":849,"tag":1031,"props":4950,"children":4951},{"style":1121},[4952],{"type":858,"value":1145},{"type":849,"tag":1031,"props":4954,"children":4955},{"style":1044},[4956],{"type":858,"value":4957}," '@lupinum\u002Fbetter-convex-agents'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4960,"children":4961},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":4964,"children":4965},{"class":1033,"style":1034},[4966,4970,4974,4979,4983,4987],{"type":849,"tag":1031,"props":4967,"children":4968},{"style":1121},[4969],{"type":858,"value":1124},{"type":849,"tag":1031,"props":4971,"children":4972},{"style":1127},[4973],{"type":858,"value":1130},{"type":849,"tag":1031,"props":4975,"children":4976},{"style":1133},[4977],{"type":858,"value":4978},"internal",{"type":849,"tag":1031,"props":4980,"children":4981},{"style":1127},[4982],{"type":858,"value":1140},{"type":849,"tag":1031,"props":4984,"children":4985},{"style":1121},[4986],{"type":858,"value":1145},{"type":849,"tag":1031,"props":4988,"children":4989},{"style":1044},[4990],{"type":858,"value":4991}," '.\u002F_generated\u002Fapi'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":4994,"children":4995},{"class":1033,"style":1034},[4996,5000,5004,5008,5012,5016],{"type":849,"tag":1031,"props":4997,"children":4998},{"style":1121},[4999],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5001,"children":5002},{"style":1127},[5003],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5005,"children":5006},{"style":1133},[5007],{"type":858,"value":3445},{"type":849,"tag":1031,"props":5009,"children":5010},{"style":1127},[5011],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5013,"children":5014},{"style":1121},[5015],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5017,"children":5018},{"style":1044},[5019],{"type":858,"value":3651},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5022,"children":5023},{"class":1033,"style":1034},[5024,5028,5033,5038,5043,5048],{"type":849,"tag":1031,"props":5025,"children":5026},{"style":1121},[5027],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5029,"children":5030},{"style":1930},[5031],{"type":858,"value":5032}," *",{"type":849,"tag":1031,"props":5034,"children":5035},{"style":1121},[5036],{"type":858,"value":5037}," as",{"type":849,"tag":1031,"props":5039,"children":5040},{"style":1133},[5041],{"type":858,"value":5042}," projects",{"type":849,"tag":1031,"props":5044,"children":5045},{"style":1121},[5046],{"type":858,"value":5047}," from",{"type":849,"tag":1031,"props":5049,"children":5050},{"style":1044},[5051],{"type":858,"value":5052}," '.\u002Fprojects'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5055,"children":5056},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":5059,"children":5060},{"class":1033,"style":1034},[5061,5065,5069,5074,5078,5082,5086,5090,5094,5099,5104,5109,5114,5118,5123],{"type":849,"tag":1031,"props":5062,"children":5063},{"style":1121},[5064],{"type":858,"value":1234},{"type":849,"tag":1031,"props":5066,"children":5067},{"style":1930},[5068],{"type":858,"value":1933},{"type":849,"tag":1031,"props":5070,"children":5071},{"style":1936},[5072],{"type":858,"value":5073}," tools",{"type":849,"tag":1031,"props":5075,"children":5076},{"style":1127},[5077],{"type":858,"value":1944},{"type":849,"tag":1031,"props":5079,"children":5080},{"style":1038},[5081],{"type":858,"value":4920},{"type":849,"tag":1031,"props":5083,"children":5084},{"style":1127},[5085],{"type":858,"value":1324},{"type":849,"tag":1031,"props":5087,"children":5088},{"style":1133},[5089],{"type":858,"value":3445},{"type":849,"tag":1031,"props":5091,"children":5092},{"style":1127},[5093],{"type":858,"value":3929},{"type":849,"tag":1031,"props":5095,"children":5096},{"style":1133},[5097],{"type":858,"value":5098},"projects",{"type":849,"tag":1031,"props":5100,"children":5101},{"style":1127},[5102],{"type":858,"value":5103}," }, { ",{"type":849,"tag":1031,"props":5105,"children":5106},{"style":1133},[5107],{"type":858,"value":5108},"functions:",{"type":849,"tag":1031,"props":5110,"children":5111},{"style":1133},[5112],{"type":858,"value":5113}," internal",{"type":849,"tag":1031,"props":5115,"children":5116},{"style":1127},[5117],{"type":858,"value":966},{"type":849,"tag":1031,"props":5119,"children":5120},{"style":1133},[5121],{"type":858,"value":5122},"agents",{"type":849,"tag":1031,"props":5124,"children":5125},{"style":1127},[5126],{"type":858,"value":5127}," })",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5130,"children":5131},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":5134,"children":5135},{"class":1033,"style":1034},[5136,5140,5144,5148,5153,5157,5162,5166,5171,5175,5180,5184,5189,5193],{"type":849,"tag":1031,"props":5137,"children":5138},{"style":1121},[5139],{"type":858,"value":1234},{"type":849,"tag":1031,"props":5141,"children":5142},{"style":1930},[5143],{"type":858,"value":1933},{"type":849,"tag":1031,"props":5145,"children":5146},{"style":1127},[5147],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5149,"children":5150},{"style":1936},[5151],{"type":858,"value":5152},"list_projects",{"type":849,"tag":1031,"props":5154,"children":5155},{"style":1127},[5156],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5158,"children":5159},{"style":1936},[5160],{"type":858,"value":5161},"archive_project",{"type":849,"tag":1031,"props":5163,"children":5164},{"style":1127},[5165],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5167,"children":5168},{"style":1936},[5169],{"type":858,"value":5170},"check_approval",{"type":849,"tag":1031,"props":5172,"children":5173},{"style":1127},[5174],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5176,"children":5177},{"style":1936},[5178],{"type":858,"value":5179},"housekeeping",{"type":849,"tag":1031,"props":5181,"children":5182},{"style":1127},[5183],{"type":858,"value":3440},{"type":849,"tag":1031,"props":5185,"children":5186},{"style":1133},[5187],{"type":858,"value":5188},"tools",{"type":849,"tag":1031,"props":5190,"children":5191},{"style":1127},[5192],{"type":858,"value":966},{"type":849,"tag":1031,"props":5194,"children":5195},{"style":1133},[5196],{"type":858,"value":5197},"functions",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5200,"children":5201},{"class":1033,"style":1034},[5202,5206,5210,5214,5219,5223,5227,5231,5236,5240,5245,5249,5253,5257],{"type":849,"tag":1031,"props":5203,"children":5204},{"style":1121},[5205],{"type":858,"value":1234},{"type":849,"tag":1031,"props":5207,"children":5208},{"style":1930},[5209],{"type":858,"value":1933},{"type":849,"tag":1031,"props":5211,"children":5212},{"style":1127},[5213],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5215,"children":5216},{"style":1936},[5217],{"type":858,"value":5218},"pending",{"type":849,"tag":1031,"props":5220,"children":5221},{"style":1127},[5222],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5224,"children":5225},{"style":1936},[5226],{"type":858,"value":4546},{"type":849,"tag":1031,"props":5228,"children":5229},{"style":1127},[5230],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5232,"children":5233},{"style":1936},[5234],{"type":858,"value":5235},"approve",{"type":849,"tag":1031,"props":5237,"children":5238},{"style":1127},[5239],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5241,"children":5242},{"style":1936},[5243],{"type":858,"value":5244},"decline",{"type":849,"tag":1031,"props":5246,"children":5247},{"style":1127},[5248],{"type":858,"value":3440},{"type":849,"tag":1031,"props":5250,"children":5251},{"style":1133},[5252],{"type":858,"value":5188},{"type":849,"tag":1031,"props":5254,"children":5255},{"style":1127},[5256],{"type":858,"value":966},{"type":849,"tag":1031,"props":5258,"children":5259},{"style":1133},[5260],{"type":858,"value":5261},"approvals",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5264,"children":5265},{"class":1033,"style":1034},[5266,5270,5274,5278,5283,5287],{"type":849,"tag":1031,"props":5267,"children":5268},{"style":1121},[5269],{"type":858,"value":1234},{"type":849,"tag":1031,"props":5271,"children":5272},{"style":1930},[5273],{"type":858,"value":1933},{"type":849,"tag":1031,"props":5275,"children":5276},{"style":1127},[5277],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5279,"children":5280},{"style":1936},[5281],{"type":858,"value":5282},"activity",{"type":849,"tag":1031,"props":5284,"children":5285},{"style":1127},[5286],{"type":858,"value":3440},{"type":849,"tag":1031,"props":5288,"children":5289},{"style":1133},[5290],{"type":858,"value":5188},{"type":849,"tag":850,"props":5292,"children":5293},{},[5294,5298],{"type":849,"tag":1069,"props":5295,"children":5296},{"href":441},[5297],{"type":858,"value":437},{"type":858,"value":5299}," shows the\napproval page and the activity feed.",{"type":849,"tag":941,"props":5301,"children":5303},{"id":5302},"_6-open-the-mcp-door",[5304],{"type":858,"value":5305},"6. Open the MCP door",{"type":849,"tag":850,"props":5307,"children":5308},{},[5309],{"type":858,"value":5310},"Turn on the MCP OAuth profile in the auth factory. The consent page shows the\nlabel of each scope.",{"type":849,"tag":1021,"props":5312,"children":5314},{"language":1109,"filename":5313,"class":1024},"convex\u002Fauth.ts",[5315],{"type":849,"tag":854,"props":5316,"children":5317},{"class":1114},[5318,5346,5347,5376,5377,5380,5381,5409,5410,5442,5443,5470,5471,5474,5475,5530,5531,5539,5540,5611,5612],{"type":849,"tag":1031,"props":5319,"children":5320},{"class":1033,"style":1034},[5321,5325,5329,5334,5338,5342],{"type":849,"tag":1031,"props":5322,"children":5323},{"style":1121},[5324],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5326,"children":5327},{"style":1127},[5328],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5330,"children":5331},{"style":1133},[5332],{"type":858,"value":5333},"consentScopes",{"type":849,"tag":1031,"props":5335,"children":5336},{"style":1127},[5337],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5339,"children":5340},{"style":1121},[5341],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5343,"children":5344},{"style":1044},[5345],{"type":858,"value":1150},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5348,"children":5349},{"class":1033,"style":1034},[5350,5354,5358,5363,5367,5371],{"type":849,"tag":1031,"props":5351,"children":5352},{"style":1121},[5353],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5355,"children":5356},{"style":1127},[5357],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5359,"children":5360},{"style":1133},[5361],{"type":858,"value":5362},"createBetterConvexAuth",{"type":849,"tag":1031,"props":5364,"children":5365},{"style":1127},[5366],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5368,"children":5369},{"style":1121},[5370],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5372,"children":5373},{"style":1044},[5374],{"type":858,"value":5375}," '@lupinum\u002Fbetter-convex-nuxt\u002Fbetter-auth\u002Fserver'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5378,"children":5379},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":5382,"children":5383},{"class":1033,"style":1034},[5384,5388,5392,5397,5401,5405],{"type":849,"tag":1031,"props":5385,"children":5386},{"style":1121},[5387],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5389,"children":5390},{"style":1127},[5391],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5393,"children":5394},{"style":1133},[5395],{"type":858,"value":5396},"components",{"type":849,"tag":1031,"props":5398,"children":5399},{"style":1127},[5400],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5402,"children":5403},{"style":1121},[5404],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5406,"children":5407},{"style":1044},[5408],{"type":858,"value":4991},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5411,"children":5412},{"class":1033,"style":1034},[5413,5417,5421,5425,5430,5434,5438],{"type":849,"tag":1031,"props":5414,"children":5415},{"style":1121},[5416],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5418,"children":5419},{"style":1121},[5420],{"type":858,"value":2350},{"type":849,"tag":1031,"props":5422,"children":5423},{"style":1127},[5424],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5426,"children":5427},{"style":1133},[5428],{"type":858,"value":5429},"DataModel",{"type":849,"tag":1031,"props":5431,"children":5432},{"style":1127},[5433],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5435,"children":5436},{"style":1121},[5437],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5439,"children":5440},{"style":1044},[5441],{"type":858,"value":2372},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5444,"children":5445},{"class":1033,"style":1034},[5446,5450,5454,5458,5462,5466],{"type":849,"tag":1031,"props":5447,"children":5448},{"style":1121},[5449],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5451,"children":5452},{"style":1127},[5453],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5455,"children":5456},{"style":1133},[5457],{"type":858,"value":2419},{"type":849,"tag":1031,"props":5459,"children":5460},{"style":1127},[5461],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5463,"children":5464},{"style":1121},[5465],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5467,"children":5468},{"style":1044},[5469],{"type":858,"value":2432},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5472,"children":5473},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":5476,"children":5477},{"class":1033,"style":1034},[5478,5482,5486,5491,5495,5499,5503,5507,5512,5516,5520,5525],{"type":849,"tag":1031,"props":5479,"children":5480},{"style":1121},[5481],{"type":858,"value":1234},{"type":849,"tag":1031,"props":5483,"children":5484},{"style":1930},[5485],{"type":858,"value":1933},{"type":849,"tag":1031,"props":5487,"children":5488},{"style":1936},[5489],{"type":858,"value":5490}," auth",{"type":849,"tag":1031,"props":5492,"children":5493},{"style":1127},[5494],{"type":858,"value":1944},{"type":849,"tag":1031,"props":5496,"children":5497},{"style":1038},[5498],{"type":858,"value":5362},{"type":849,"tag":1031,"props":5500,"children":5501},{"style":1127},[5502],{"type":858,"value":3169},{"type":849,"tag":1031,"props":5504,"children":5505},{"style":3172},[5506],{"type":858,"value":5429},{"type":849,"tag":1031,"props":5508,"children":5509},{"style":1127},[5510],{"type":858,"value":5511},">(",{"type":849,"tag":1031,"props":5513,"children":5514},{"style":1133},[5515],{"type":858,"value":5396},{"type":849,"tag":1031,"props":5517,"children":5518},{"style":1127},[5519],{"type":858,"value":966},{"type":849,"tag":1031,"props":5521,"children":5522},{"style":1133},[5523],{"type":858,"value":5524},"betterAuth",{"type":849,"tag":1031,"props":5526,"children":5527},{"style":1127},[5528],{"type":858,"value":5529},", {",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5532,"children":5533},{"class":1033,"style":1034},[5534],{"type":849,"tag":1031,"props":5535,"children":5536},{"style":2058},[5537],{"type":858,"value":5538},"  \u002F\u002F Keep your other options.",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5541,"children":5542},{"class":1033,"style":1034},[5543,5548,5552,5557,5561,5566,5571,5575,5579,5583,5588,5592,5597,5601,5606],{"type":849,"tag":1031,"props":5544,"children":5545},{"style":1133},[5546],{"type":858,"value":5547},"  oauth:",{"type":849,"tag":1031,"props":5549,"children":5550},{"style":1127},[5551],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5553,"children":5554},{"style":1133},[5555],{"type":858,"value":5556},"mcp:",{"type":849,"tag":1031,"props":5558,"children":5559},{"style":1127},[5560],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5562,"children":5563},{"style":1133},[5564],{"type":858,"value":5565},"scopes:",{"type":849,"tag":1031,"props":5567,"children":5568},{"style":1038},[5569],{"type":858,"value":5570}," consentScopes",{"type":849,"tag":1031,"props":5572,"children":5573},{"style":1127},[5574],{"type":858,"value":1324},{"type":849,"tag":1031,"props":5576,"children":5577},{"style":1133},[5578],{"type":858,"value":2419},{"type":849,"tag":1031,"props":5580,"children":5581},{"style":1127},[5582],{"type":858,"value":1522},{"type":849,"tag":1031,"props":5584,"children":5585},{"style":1133},[5586],{"type":858,"value":5587},"hosts:",{"type":849,"tag":1031,"props":5589,"children":5590},{"style":1127},[5591],{"type":858,"value":1966},{"type":849,"tag":1031,"props":5593,"children":5594},{"style":1044},[5595],{"type":858,"value":5596},"'chatgpt'",{"type":849,"tag":1031,"props":5598,"children":5599},{"style":1127},[5600],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5602,"children":5603},{"style":1044},[5604],{"type":858,"value":5605},"'claude'",{"type":849,"tag":1031,"props":5607,"children":5608},{"style":1127},[5609],{"type":858,"value":5610},"] } },",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5613,"children":5614},{"class":1033,"style":1034},[5615],{"type":849,"tag":1031,"props":5616,"children":5617},{"style":1127},[5618],{"type":858,"value":1855},{"type":849,"tag":850,"props":5620,"children":5621},{},[5622],{"type":858,"value":5623},"Serve the tools from one HTTP action:",{"type":849,"tag":1021,"props":5625,"children":5627},{"language":1109,"filename":5626,"class":1024},"convex\u002Fhttp.ts",[5628],{"type":849,"tag":854,"props":5629,"children":5630},{"class":1114},[5631,5660,5661,5689,5690,5693,5694,5723,5724,5751,5752,5755,5756,5781,5782,5835,5836,5839,5840,5869,5870,5942,5943,6000,6001,6008,6009,6065,6066,6118,6119,6126,6127,6130,6131],{"type":849,"tag":1031,"props":5632,"children":5633},{"class":1033,"style":1034},[5634,5638,5642,5647,5651,5655],{"type":849,"tag":1031,"props":5635,"children":5636},{"style":1121},[5637],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5639,"children":5640},{"style":1127},[5641],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5643,"children":5644},{"style":1133},[5645],{"type":858,"value":5646},"createMcpServer",{"type":849,"tag":1031,"props":5648,"children":5649},{"style":1127},[5650],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5652,"children":5653},{"style":1121},[5654],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5656,"children":5657},{"style":1044},[5658],{"type":858,"value":5659}," '@lupinum\u002Fbetter-convex-agents\u002Fmcp'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5662,"children":5663},{"class":1033,"style":1034},[5664,5668,5672,5677,5681,5685],{"type":849,"tag":1031,"props":5665,"children":5666},{"style":1121},[5667],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5669,"children":5670},{"style":1127},[5671],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5673,"children":5674},{"style":1133},[5675],{"type":858,"value":5676},"httpRouter",{"type":849,"tag":1031,"props":5678,"children":5679},{"style":1127},[5680],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5682,"children":5683},{"style":1121},[5684],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5686,"children":5687},{"style":1044},[5688],{"type":858,"value":1191},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5691,"children":5692},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":5695,"children":5696},{"class":1033,"style":1034},[5697,5701,5705,5709,5714,5718],{"type":849,"tag":1031,"props":5698,"children":5699},{"style":1121},[5700],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5702,"children":5703},{"style":1930},[5704],{"type":858,"value":5032},{"type":849,"tag":1031,"props":5706,"children":5707},{"style":1121},[5708],{"type":858,"value":5037},{"type":849,"tag":1031,"props":5710,"children":5711},{"style":1133},[5712],{"type":858,"value":5713}," agents",{"type":849,"tag":1031,"props":5715,"children":5716},{"style":1121},[5717],{"type":858,"value":5047},{"type":849,"tag":1031,"props":5719,"children":5720},{"style":1044},[5721],{"type":858,"value":5722}," '.\u002Fagents'",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5725,"children":5726},{"class":1033,"style":1034},[5727,5731,5735,5739,5743,5747],{"type":849,"tag":1031,"props":5728,"children":5729},{"style":1121},[5730],{"type":858,"value":1124},{"type":849,"tag":1031,"props":5732,"children":5733},{"style":1127},[5734],{"type":858,"value":1130},{"type":849,"tag":1031,"props":5736,"children":5737},{"style":1133},[5738],{"type":858,"value":2389},{"type":849,"tag":1031,"props":5740,"children":5741},{"style":1127},[5742],{"type":858,"value":1140},{"type":849,"tag":1031,"props":5744,"children":5745},{"style":1121},[5746],{"type":858,"value":1145},{"type":849,"tag":1031,"props":5748,"children":5749},{"style":1044},[5750],{"type":858,"value":2402},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5753,"children":5754},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":5757,"children":5758},{"class":1033,"style":1034},[5759,5764,5769,5773,5777],{"type":849,"tag":1031,"props":5760,"children":5761},{"style":1930},[5762],{"type":858,"value":5763},"const",{"type":849,"tag":1031,"props":5765,"children":5766},{"style":1936},[5767],{"type":858,"value":5768}," http",{"type":849,"tag":1031,"props":5770,"children":5771},{"style":1127},[5772],{"type":858,"value":1944},{"type":849,"tag":1031,"props":5774,"children":5775},{"style":1038},[5776],{"type":858,"value":5676},{"type":849,"tag":1031,"props":5778,"children":5779},{"style":1127},[5780],{"type":858,"value":3017},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5783,"children":5784},{"class":1033,"style":1034},[5785,5789,5794,5798,5802,5806,5810,5814,5818,5823,5827,5831],{"type":849,"tag":1031,"props":5786,"children":5787},{"style":1930},[5788],{"type":858,"value":5763},{"type":849,"tag":1031,"props":5790,"children":5791},{"style":1936},[5792],{"type":858,"value":5793}," mcp",{"type":849,"tag":1031,"props":5795,"children":5796},{"style":1127},[5797],{"type":858,"value":1944},{"type":849,"tag":1031,"props":5799,"children":5800},{"style":1038},[5801],{"type":858,"value":5646},{"type":849,"tag":1031,"props":5803,"children":5804},{"style":1127},[5805],{"type":858,"value":1324},{"type":849,"tag":1031,"props":5807,"children":5808},{"style":1133},[5809],{"type":858,"value":2389},{"type":849,"tag":1031,"props":5811,"children":5812},{"style":1127},[5813],{"type":858,"value":3929},{"type":849,"tag":1031,"props":5815,"children":5816},{"style":1133},[5817],{"type":858,"value":1297},{"type":849,"tag":1031,"props":5819,"children":5820},{"style":1044},[5821],{"type":858,"value":5822}," 'Projects'",{"type":849,"tag":1031,"props":5824,"children":5825},{"style":1127},[5826],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5828,"children":5829},{"style":1133},[5830],{"type":858,"value":5122},{"type":849,"tag":1031,"props":5832,"children":5833},{"style":1127},[5834],{"type":858,"value":5127},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5837,"children":5838},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":5841,"children":5842},{"class":1033,"style":1034},[5843,5847,5851,5856,5860,5865],{"type":849,"tag":1031,"props":5844,"children":5845},{"style":1133},[5846],{"type":858,"value":2389},{"type":849,"tag":1031,"props":5848,"children":5849},{"style":1127},[5850],{"type":858,"value":966},{"type":849,"tag":1031,"props":5852,"children":5853},{"style":1038},[5854],{"type":858,"value":5855},"registerRoutes",{"type":849,"tag":1031,"props":5857,"children":5858},{"style":1127},[5859],{"type":858,"value":1324},{"type":849,"tag":1031,"props":5861,"children":5862},{"style":1133},[5863],{"type":858,"value":5864},"http",{"type":849,"tag":1031,"props":5866,"children":5867},{"style":1127},[5868],{"type":858,"value":2578},{"type":858,"value":1152},{"type":849,"tag":1031,"props":5871,"children":5872},{"class":1033,"style":1034},[5873,5878,5882,5886,5891,5896,5900,5905,5909,5914,5918,5923,5928,5933,5937],{"type":849,"tag":1031,"props":5874,"children":5875},{"style":1121},[5876],{"type":858,"value":5877},"for",{"type":849,"tag":1031,"props":5879,"children":5880},{"style":1127},[5881],{"type":858,"value":2509},{"type":849,"tag":1031,"props":5883,"children":5884},{"style":1930},[5885],{"type":858,"value":5763},{"type":849,"tag":1031,"props":5887,"children":5888},{"style":1936},[5889],{"type":858,"value":5890}," method",{"type":849,"tag":1031,"props":5892,"children":5893},{"style":1930},[5894],{"type":858,"value":5895}," of",{"type":849,"tag":1031,"props":5897,"children":5898},{"style":1127},[5899],{"type":858,"value":1966},{"type":849,"tag":1031,"props":5901,"children":5902},{"style":1044},[5903],{"type":858,"value":5904},"'POST'",{"type":849,"tag":1031,"props":5906,"children":5907},{"style":1127},[5908],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5910,"children":5911},{"style":1044},[5912],{"type":858,"value":5913},"'GET'",{"type":849,"tag":1031,"props":5915,"children":5916},{"style":1127},[5917],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5919,"children":5920},{"style":1044},[5921],{"type":858,"value":5922},"'DELETE'",{"type":849,"tag":1031,"props":5924,"children":5925},{"style":1127},[5926],{"type":858,"value":5927},"] ",{"type":849,"tag":1031,"props":5929,"children":5930},{"style":1121},[5931],{"type":858,"value":5932},"as",{"type":849,"tag":1031,"props":5934,"children":5935},{"style":1930},[5936],{"type":858,"value":1933},{"type":849,"tag":1031,"props":5938,"children":5939},{"style":1127},[5940],{"type":858,"value":5941},") {",{"type":858,"value":1152},{"type":849,"tag":1031,"props":5944,"children":5945},{"class":1033,"style":1034},[5946,5951,5955,5960,5964,5969,5974,5978,5983,5987,5992,5996],{"type":849,"tag":1031,"props":5947,"children":5948},{"style":1133},[5949],{"type":858,"value":5950},"  http",{"type":849,"tag":1031,"props":5952,"children":5953},{"style":1127},[5954],{"type":858,"value":966},{"type":849,"tag":1031,"props":5956,"children":5957},{"style":1038},[5958],{"type":858,"value":5959},"route",{"type":849,"tag":1031,"props":5961,"children":5962},{"style":1127},[5963],{"type":858,"value":1268},{"type":849,"tag":1031,"props":5965,"children":5966},{"style":1133},[5967],{"type":858,"value":5968},"path:",{"type":849,"tag":1031,"props":5970,"children":5971},{"style":1044},[5972],{"type":858,"value":5973}," '\u002Fmcp'",{"type":849,"tag":1031,"props":5975,"children":5976},{"style":1127},[5977],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5979,"children":5980},{"style":1133},[5981],{"type":858,"value":5982},"method",{"type":849,"tag":1031,"props":5984,"children":5985},{"style":1127},[5986],{"type":858,"value":1173},{"type":849,"tag":1031,"props":5988,"children":5989},{"style":1133},[5990],{"type":858,"value":5991},"handler:",{"type":849,"tag":1031,"props":5993,"children":5994},{"style":1133},[5995],{"type":858,"value":5793},{"type":849,"tag":1031,"props":5997,"children":5998},{"style":1127},[5999],{"type":858,"value":5127},{"type":858,"value":1152},{"type":849,"tag":1031,"props":6002,"children":6003},{"class":1033,"style":1034},[6004],{"type":849,"tag":1031,"props":6005,"children":6006},{"style":1127},[6007],{"type":858,"value":4568},{"type":858,"value":1152},{"type":849,"tag":1031,"props":6010,"children":6011},{"class":1033,"style":1034},[6012,6016,6020,6024,6028,6032,6036,6040,6044,6049,6053,6057,6061],{"type":849,"tag":1031,"props":6013,"children":6014},{"style":1121},[6015],{"type":858,"value":5877},{"type":849,"tag":1031,"props":6017,"children":6018},{"style":1127},[6019],{"type":858,"value":2509},{"type":849,"tag":1031,"props":6021,"children":6022},{"style":1930},[6023],{"type":858,"value":5763},{"type":849,"tag":1031,"props":6025,"children":6026},{"style":1936},[6027],{"type":858,"value":5890},{"type":849,"tag":1031,"props":6029,"children":6030},{"style":1930},[6031],{"type":858,"value":5895},{"type":849,"tag":1031,"props":6033,"children":6034},{"style":1127},[6035],{"type":858,"value":1966},{"type":849,"tag":1031,"props":6037,"children":6038},{"style":1044},[6039],{"type":858,"value":5913},{"type":849,"tag":1031,"props":6041,"children":6042},{"style":1127},[6043],{"type":858,"value":1173},{"type":849,"tag":1031,"props":6045,"children":6046},{"style":1044},[6047],{"type":858,"value":6048},"'OPTIONS'",{"type":849,"tag":1031,"props":6050,"children":6051},{"style":1127},[6052],{"type":858,"value":5927},{"type":849,"tag":1031,"props":6054,"children":6055},{"style":1121},[6056],{"type":858,"value":5932},{"type":849,"tag":1031,"props":6058,"children":6059},{"style":1930},[6060],{"type":858,"value":1933},{"type":849,"tag":1031,"props":6062,"children":6063},{"style":1127},[6064],{"type":858,"value":5941},{"type":858,"value":1152},{"type":849,"tag":1031,"props":6067,"children":6068},{"class":1033,"style":1034},[6069,6073,6077,6081,6085,6089,6094,6098,6102,6106,6110,6114],{"type":849,"tag":1031,"props":6070,"children":6071},{"style":1133},[6072],{"type":858,"value":5950},{"type":849,"tag":1031,"props":6074,"children":6075},{"style":1127},[6076],{"type":858,"value":966},{"type":849,"tag":1031,"props":6078,"children":6079},{"style":1038},[6080],{"type":858,"value":5959},{"type":849,"tag":1031,"props":6082,"children":6083},{"style":1127},[6084],{"type":858,"value":1268},{"type":849,"tag":1031,"props":6086,"children":6087},{"style":1133},[6088],{"type":858,"value":5968},{"type":849,"tag":1031,"props":6090,"children":6091},{"style":1044},[6092],{"type":858,"value":6093}," '\u002F.well-known\u002Foauth-protected-resource\u002Fmcp'",{"type":849,"tag":1031,"props":6095,"children":6096},{"style":1127},[6097],{"type":858,"value":1173},{"type":849,"tag":1031,"props":6099,"children":6100},{"style":1133},[6101],{"type":858,"value":5982},{"type":849,"tag":1031,"props":6103,"children":6104},{"style":1127},[6105],{"type":858,"value":1173},{"type":849,"tag":1031,"props":6107,"children":6108},{"style":1133},[6109],{"type":858,"value":5991},{"type":849,"tag":1031,"props":6111,"children":6112},{"style":1133},[6113],{"type":858,"value":5793},{"type":849,"tag":1031,"props":6115,"children":6116},{"style":1127},[6117],{"type":858,"value":5127},{"type":858,"value":1152},{"type":849,"tag":1031,"props":6120,"children":6121},{"class":1033,"style":1034},[6122],{"type":849,"tag":1031,"props":6123,"children":6124},{"style":1127},[6125],{"type":858,"value":4568},{"type":858,"value":1152},{"type":849,"tag":1031,"props":6128,"children":6129},{"class":1033,"style":1034},[],{"type":858,"value":1152},{"type":849,"tag":1031,"props":6132,"children":6133},{"class":1033,"style":1034},[6134,6138,6142],{"type":849,"tag":1031,"props":6135,"children":6136},{"style":1121},[6137],{"type":858,"value":1234},{"type":849,"tag":1031,"props":6139,"children":6140},{"style":1121},[6141],{"type":858,"value":1239},{"type":849,"tag":1031,"props":6143,"children":6144},{"style":1133},[6145],{"type":858,"value":5768},{"type":849,"tag":850,"props":6147,"children":6148},{},[6149,6151,6156,6158,6163,6165,6169],{"type":858,"value":6150},"Set ",{"type":849,"tag":854,"props":6152,"children":6153},{},[6154],{"type":858,"value":6155},"SITE_URL",{"type":858,"value":6157}," on the Convex deployment. The approval link that an agent hands\nto the person points to ",{"type":849,"tag":854,"props":6159,"children":6160},{},[6161],{"type":858,"value":6162},"${SITE_URL}\u002Fapprovals\u002F\u003Cid>",{"type":858,"value":6164},". ",{"type":849,"tag":1069,"props":6166,"children":6167},{"href":448},[6168],{"type":858,"value":443},{"type":858,"value":6170},"\ncovers the cron, disconnecting hosts and connecting ChatGPT and Claude.",{"type":849,"tag":941,"props":6172,"children":6174},{"id":6173},"what-happens-now",[6175],{"type":858,"value":6176},"What happens now",{"type":849,"tag":875,"props":6178,"children":6179},{},[6180,6198,6223],{"type":849,"tag":879,"props":6181,"children":6182},{},[6183,6185,6190,6192,6197],{"type":858,"value":6184},"A person calls ",{"type":849,"tag":854,"props":6186,"children":6187},{},[6188],{"type":858,"value":6189},"api.projects.archive",{"type":858,"value":6191}," from the web. An owner archives the\nproject; a member gets ",{"type":849,"tag":854,"props":6193,"children":6194},{},[6195],{"type":858,"value":6196},"FORBIDDEN",{"type":858,"value":966},{"type":849,"tag":879,"props":6199,"children":6200},{},[6201,6203,6208,6210,6214,6216,6221],{"type":858,"value":6202},"An AI host with the ",{"type":849,"tag":854,"props":6204,"children":6205},{},[6206],{"type":858,"value":6207},"projects:write",{"type":858,"value":6209}," scope calls ",{"type":849,"tag":854,"props":6211,"children":6212},{},[6213],{"type":858,"value":5161},{"type":858,"value":6215},". The tool\nreturns ",{"type":849,"tag":854,"props":6217,"children":6218},{},[6219],{"type":858,"value":6220},"needs_approval",{"type":858,"value":6222}," and a link. The person opens the link, reads\n\"Archive the project …\", and approves. The archive then runs as the agent,\nwith the same checks.",{"type":849,"tag":879,"props":6224,"children":6225},{},[6226,6228,6233],{"type":858,"value":6227},"A project of another organization does not exist for either of them: they\nget ",{"type":849,"tag":854,"props":6229,"children":6230},{},[6231],{"type":858,"value":6232},"NOT_FOUND",{"type":858,"value":966},{"type":849,"tag":850,"props":6235,"children":6236},{},[6237,6239,6244],{"type":858,"value":6238},"To limit how often an action runs, or to keep a record of who did what, see\n",{"type":849,"tag":1069,"props":6240,"children":6241},{"href":539},[6242],{"type":858,"value":6243},"Rate limits and audit log",{"type":858,"value":966},{"type":849,"tag":850,"props":6246,"children":6247},{},[6248,6250,6255,6257,6262],{"type":858,"value":6249},"Work outside the database that a person starts, such as a PDF or a file\nimport, is a public ",{"type":849,"tag":854,"props":6251,"children":6252},{},[6253],{"type":858,"value":6254},"action",{"type":858,"value":6256}," with the same checks. See\n",{"type":849,"tag":1069,"props":6258,"children":6260},{"href":6259},"\u002Fdocs\u002Fbuild\u002Ffunctions\u002Finternal-operations#public-actions",[6261],{"type":858,"value":508},{"type":858,"value":966},{"type":849,"tag":850,"props":6264,"children":6265},{},[6266,6268,6272,6274,6278,6280,6284],{"type":858,"value":6267},"A function built with Convex's own ",{"type":849,"tag":854,"props":6269,"children":6270},{},[6271],{"type":858,"value":2565},{"type":858,"value":6273}," or ",{"type":849,"tag":854,"props":6275,"children":6276},{},[6277],{"type":858,"value":3435},{"type":858,"value":6279}," skips all of this.\n",{"type":849,"tag":1069,"props":6281,"children":6282},{"href":520},[6283],{"type":858,"value":515},{"type":858,"value":6285}," adds the test that finds one.",{"type":849,"tag":941,"props":6287,"children":6289},{"id":6288},"when-a-person-leaves",[6290],{"type":858,"value":6291},"When a person leaves",{"type":849,"tag":850,"props":6293,"children":6294},{},[6295,6300,6302,6306,6308,6312],{"type":849,"tag":854,"props":6296,"children":6297},{},[6298],{"type":858,"value":6299},"erasure",{"type":858,"value":6301}," in ",{"type":849,"tag":854,"props":6303,"children":6304},{},[6305],{"type":858,"value":1001},{"type":858,"value":6307}," says, table by table, which rows go when a\nperson deletes their account: delete them, remove the person's ID from them,\nor keep them with a written reason. The library tables (activity, approvals,\ngrants, runs) are covered without any entry. ",{"type":849,"tag":1069,"props":6309,"children":6310},{"href":313},[6311],{"type":858,"value":308},{"type":858,"value":6313},"\nshows the map and how the user projection starts it.",{"title":6315,"searchDepth":6316,"depth":6316,"links":6317},"",4,[6318,6320,6321,6322,6323,6324,6325,6326,6327,6328],{"id":943,"depth":6319,"text":946},2,{"id":1016,"depth":6319,"text":1019},{"id":1091,"depth":6319,"text":1094},{"id":1858,"depth":6319,"text":1861},{"id":2260,"depth":6319,"text":2263},{"id":3470,"depth":6319,"text":3473},{"id":4907,"depth":6319,"text":4910},{"id":5302,"depth":6319,"text":5305},{"id":6173,"depth":6319,"text":6176},{"id":6288,"depth":6319,"text":6291},"markdown","docs",{"source":6332,"path":6333,"stem":6334,"dir":5197,"extension":6335},"content","docs\u002F3.build\u002F8.functions\u002F1.start-here.md","docs\u002F3.build\u002F8.functions\u002F1.start-here","md",{"requestedPath":493,"resolvedPath":493,"alternates":6337},[],{"requested":6339,"resolved":6340,"usedFallback":6},{},{"locale":8},{"previous":6342,"next":6344},{"title":476,"id":477,"canonicalKey":478,"locale":8,"draft":6,"navigation":6343,"icon":108,"path":480},{"icon":108},{"title":495,"id":496,"canonicalKey":497,"locale":8,"draft":6,"navigation":6345,"icon":39,"path":499},{"icon":39},{"left":6347,"top":6347,"width":6348,"height":6348,"rotate":6347,"vFlip":6,"hFlip":6,"body":6349},0,24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 19h8M4 17l6-6l-6-6\"\u002F>",{"left":6347,"top":6347,"width":6351,"height":6351,"rotate":6347,"vFlip":6,"hFlip":6,"body":6352},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":6347,"top":6347,"width":6348,"height":6348,"rotate":6347,"vFlip":6,"hFlip":6,"body":6354},"\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>",1794905506824]