[{"data":1,"prerenderedAt":2248},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:VTi9tsB5Ho1MGmlOyRac_kL5ejILYv3HnD3SZ1arIA4":842,"content-page-surround:docs:VTi9tsB5Ho1MGmlOyRac_kL5ejILYv3HnD3SZ1arIA4":2237,"i-logos:typescript-icon":2241,"i-lucide:clipboard":2245},[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":831,"description":843,"navigation":844,"body":845,"type":2224,"id":832,"canonicalKey":833,"draft":6,"partial":6,"locale":8,"collection":2225,"navigationFile":6,"file":2226,"route":2232,"resolution":2234},"Every code that an operation, a tool or an approval returns, what it means, and what to do.",{"icon":835},{"type":846,"children":847,"toc":2216},"root",[848,878,943,955,960,1045,1088,1095,1206,1224,1248,1254,1747,1763,1769,1774],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853,856,862,864,869,871,876],{"type":854,"value":855},"text","Operations from ",{"type":849,"tag":857,"props":858,"children":859},"code",{},[860],{"type":854,"value":861},"@lupinum\u002Fbetter-convex-functions",{"type":854,"value":863}," and tools from\n",{"type":849,"tag":857,"props":865,"children":866},{},[867],{"type":854,"value":868},"@lupinum\u002Fbetter-convex-agents",{"type":854,"value":870}," fail with a code and a message. The type is\n",{"type":849,"tag":857,"props":872,"children":873},{},[874],{"type":854,"value":875},"ErrorCode",{"type":854,"value":877},":",{"type":849,"tag":879,"props":880,"children":883},"pre",{"language":881,"class":882},"ts","shiki shiki-themes light-plus dark-plus dark:dark-plus",[884],{"type":849,"tag":857,"props":885,"children":887},{"class":886},"language-ts",[888],{"type":849,"tag":889,"props":890,"children":893},"span",{"class":891,"style":892},"line","display: inline",[894,900,906,912,917,922,927,932,937],{"type":849,"tag":889,"props":895,"children":897},{"style":896},"color:#AF00DB;--shiki-dark:#C586C0",[898],{"type":854,"value":899},"import",{"type":849,"tag":889,"props":901,"children":903},{"style":902},"color:#000000;--shiki-dark:#D4D4D4",[904],{"type":854,"value":905}," { ",{"type":849,"tag":889,"props":907,"children":909},{"style":908},"color:#001080;--shiki-dark:#9CDCFE",[910],{"type":854,"value":911},"fail",{"type":849,"tag":889,"props":913,"children":914},{"style":902},[915],{"type":854,"value":916},", ",{"type":849,"tag":889,"props":918,"children":919},{"style":896},[920],{"type":854,"value":921},"type",{"type":849,"tag":889,"props":923,"children":924},{"style":908},[925],{"type":854,"value":926}," ErrorCode",{"type":849,"tag":889,"props":928,"children":929},{"style":902},[930],{"type":854,"value":931}," } ",{"type":849,"tag":889,"props":933,"children":934},{"style":896},[935],{"type":854,"value":936},"from",{"type":849,"tag":889,"props":938,"children":940},{"style":939},"color:#A31515;--shiki-dark:#CE9178",[941],{"type":854,"value":942}," '@lupinum\u002Fbetter-convex-functions'",{"type":849,"tag":850,"props":944,"children":945},{},[946,948,953],{"type":854,"value":947},"Your own handlers use the same codes: ",{"type":849,"tag":857,"props":949,"children":950},{},[951],{"type":854,"value":952},"fail('INVALID_INPUT', 'name: use 1 to 100 characters.')",{"type":854,"value":954},".\nA misspelled code is a type error.",{"type":849,"tag":850,"props":956,"children":957},{},[958],{"type":854,"value":959},"A third argument tells the caller why the call failed and what to do. Write it for the person or\nagent who reads it:",{"type":849,"tag":879,"props":961,"children":962},{"language":881,"class":882},[963],{"type":849,"tag":857,"props":964,"children":965},{"class":886},[966,998,1000,1018,1019,1036,1037],{"type":849,"tag":889,"props":967,"children":968},{"class":891,"style":892},[969,974,979,984,988,993],{"type":849,"tag":889,"props":970,"children":972},{"style":971},"color:#795E26;--shiki-dark:#DCDCAA",[973],{"type":854,"value":911},{"type":849,"tag":889,"props":975,"children":976},{"style":902},[977],{"type":854,"value":978},"(",{"type":849,"tag":889,"props":980,"children":981},{"style":939},[982],{"type":854,"value":983},"'INVALID_INPUT'",{"type":849,"tag":889,"props":985,"children":986},{"style":902},[987],{"type":854,"value":916},{"type":849,"tag":889,"props":989,"children":990},{"style":939},[991],{"type":854,"value":992},"'name: use 1 to 100 characters.'",{"type":849,"tag":889,"props":994,"children":995},{"style":902},[996],{"type":854,"value":997},", {",{"type":854,"value":999},"\n",{"type":849,"tag":889,"props":1001,"children":1002},{"class":891,"style":892},[1003,1008,1013],{"type":849,"tag":889,"props":1004,"children":1005},{"style":908},[1006],{"type":854,"value":1007},"  why:",{"type":849,"tag":889,"props":1009,"children":1010},{"style":939},[1011],{"type":854,"value":1012}," 'Project names are shown in lists.'",{"type":849,"tag":889,"props":1014,"children":1015},{"style":902},[1016],{"type":854,"value":1017},",",{"type":854,"value":999},{"type":849,"tag":889,"props":1020,"children":1021},{"class":891,"style":892},[1022,1027,1032],{"type":849,"tag":889,"props":1023,"children":1024},{"style":908},[1025],{"type":854,"value":1026},"  fix:",{"type":849,"tag":889,"props":1028,"children":1029},{"style":939},[1030],{"type":854,"value":1031}," 'Shorten the name to 100 characters or fewer.'",{"type":849,"tag":889,"props":1033,"children":1034},{"style":902},[1035],{"type":854,"value":1017},{"type":854,"value":999},{"type":849,"tag":889,"props":1038,"children":1039},{"class":891,"style":892},[1040],{"type":849,"tag":889,"props":1041,"children":1042},{"style":902},[1043],{"type":854,"value":1044},"})",{"type":849,"tag":850,"props":1046,"children":1047},{},[1048,1053,1055,1060,1062,1067,1069,1074,1076,1080,1082,1086],{"type":849,"tag":857,"props":1049,"children":1050},{},[1051],{"type":854,"value":1052},"NOT_FOUND",{"type":854,"value":1054}," and ",{"type":849,"tag":857,"props":1056,"children":1057},{},[1058],{"type":854,"value":1059},"FAILED",{"type":854,"value":1061}," take no ",{"type":849,"tag":857,"props":1063,"children":1064},{},[1065],{"type":854,"value":1066},"why",{"type":854,"value":1068}," or ",{"type":849,"tag":857,"props":1070,"children":1071},{},[1072],{"type":854,"value":1073},"fix",{"type":854,"value":1075},". ",{"type":849,"tag":857,"props":1077,"children":1078},{},[1079],{"type":854,"value":1052},{"type":854,"value":1081}," must read like a missing row, so it\ncannot tell that a row exists that the actor may not see. ",{"type":849,"tag":857,"props":1083,"children":1084},{},[1085],{"type":854,"value":1059},{"type":854,"value":1087}," keeps its detail in the log.",{"type":849,"tag":1089,"props":1090,"children":1092},"h2",{"id":1091},"where-the-code-arrives",[1093],{"type":854,"value":1094},"Where the code arrives",{"type":849,"tag":1096,"props":1097,"children":1098},"table",{},[1099,1118],{"type":849,"tag":1100,"props":1101,"children":1102},"thead",{},[1103],{"type":849,"tag":1104,"props":1105,"children":1106},"tr",{},[1107,1113],{"type":849,"tag":1108,"props":1109,"children":1110},"th",{},[1111],{"type":854,"value":1112},"Caller",{"type":849,"tag":1108,"props":1114,"children":1115},{},[1116],{"type":854,"value":1117},"What it receives",{"type":849,"tag":1119,"props":1120,"children":1121},"tbody",{},[1122,1161,1181],{"type":849,"tag":1104,"props":1123,"children":1124},{},[1125,1131],{"type":849,"tag":1126,"props":1127,"children":1128},"td",{},[1129],{"type":854,"value":1130},"The web client",{"type":849,"tag":1126,"props":1132,"children":1133},{},[1134,1136,1141,1143,1148,1149,1154,1156],{"type":854,"value":1135},"A ",{"type":849,"tag":857,"props":1137,"children":1138},{},[1139],{"type":854,"value":1140},"ConvexCallError",{"type":854,"value":1142}," of kind ",{"type":849,"tag":857,"props":1144,"children":1145},{},[1146],{"type":854,"value":1147},"server",{"type":854,"value":1075},{"type":849,"tag":857,"props":1150,"children":1151},{},[1152],{"type":854,"value":1153},"error.code",{"type":854,"value":1155}," is the code. Check it with ",{"type":849,"tag":857,"props":1157,"children":1158},{},[1159],{"type":854,"value":1160},"isConvexCallError(error, 'FORBIDDEN')",{"type":849,"tag":1104,"props":1162,"children":1163},{},[1164,1169],{"type":849,"tag":1126,"props":1165,"children":1166},{},[1167],{"type":854,"value":1168},"An MCP host or in-app agent",{"type":849,"tag":1126,"props":1170,"children":1171},{},[1172,1174,1179],{"type":854,"value":1173},"A tool result ",{"type":849,"tag":857,"props":1175,"children":1176},{},[1177],{"type":854,"value":1178},"{ error: { code, message, why?, fix? } }",{"type":854,"value":1180},", marked as an error",{"type":849,"tag":1104,"props":1182,"children":1183},{},[1184,1189],{"type":849,"tag":1126,"props":1185,"children":1186},{},[1187],{"type":854,"value":1188},"The approval page",{"type":849,"tag":1126,"props":1190,"children":1191},{},[1192,1197,1199,1204],{"type":849,"tag":857,"props":1193,"children":1194},{},[1195],{"type":854,"value":1196},"approve",{"type":854,"value":1198}," returns ",{"type":849,"tag":857,"props":1200,"children":1201},{},[1202],{"type":854,"value":1203},"{ status: 'failed', error: { code, message } }",{"type":854,"value":1205}," for a failure of the approved work",{"type":849,"tag":850,"props":1207,"children":1208},{},[1209,1211,1215,1217,1222],{"type":854,"value":1210},"An error without a code never reaches a caller with its details. The web\nclient gets a generic message, an agent gets ",{"type":849,"tag":857,"props":1212,"children":1213},{},[1214],{"type":854,"value":1059},{"type":854,"value":1216},", and the detail goes to\nthe Convex log. See ",{"type":849,"tag":1218,"props":1219,"children":1220},"a",{"href":795},[1221],{"type":854,"value":791},{"type":854,"value":1223},".",{"type":849,"tag":850,"props":1225,"children":1226},{},[1227,1229,1234,1236,1240,1242,1246],{"type":854,"value":1228},"An agent sees only the codes below. A ",{"type":849,"tag":857,"props":1230,"children":1231},{},[1232],{"type":854,"value":1233},"ConvexError",{"type":854,"value":1235}," with any other code, for\nexample from a component or a dependency, reaches an agent as ",{"type":849,"tag":857,"props":1237,"children":1238},{},[1239],{"type":854,"value":1059},{"type":854,"value":1241},", so its\nmessage cannot leak private text to the model. Use ",{"type":849,"tag":857,"props":1243,"children":1244},{},[1245],{"type":854,"value":911},{"type":854,"value":1247}," with one of these\ncodes for a failure the agent should read.",{"type":849,"tag":1089,"props":1249,"children":1251},{"id":1250},"codes",[1252],{"type":854,"value":1253},"Codes",{"type":849,"tag":1096,"props":1255,"children":1256},{},[1257,1278],{"type":849,"tag":1100,"props":1258,"children":1259},{},[1260],{"type":849,"tag":1104,"props":1261,"children":1262},{},[1263,1268,1273],{"type":849,"tag":1108,"props":1264,"children":1265},{},[1266],{"type":854,"value":1267},"Code",{"type":849,"tag":1108,"props":1269,"children":1270},{},[1271],{"type":854,"value":1272},"Meaning",{"type":849,"tag":1108,"props":1274,"children":1275},{},[1276],{"type":854,"value":1277},"What to do",{"type":849,"tag":1119,"props":1279,"children":1280},{},[1281,1302,1344,1372,1392,1413,1434,1455,1476,1497,1518,1552,1577,1598,1619,1643,1664,1685,1706,1726],{"type":849,"tag":1104,"props":1282,"children":1283},{},[1284,1292,1297],{"type":849,"tag":1126,"props":1285,"children":1286},{},[1287],{"type":849,"tag":857,"props":1288,"children":1289},{},[1290],{"type":854,"value":1291},"NOT_SIGNED_IN",{"type":849,"tag":1126,"props":1293,"children":1294},{},[1295],{"type":854,"value":1296},"The call has no session, and the action is not public",{"type":849,"tag":1126,"props":1298,"children":1299},{},[1300],{"type":854,"value":1301},"Send the person to sign-in",{"type":849,"tag":1104,"props":1303,"children":1304},{},[1305,1313,1332],{"type":849,"tag":1126,"props":1306,"children":1307},{},[1308],{"type":849,"tag":857,"props":1309,"children":1310},{},[1311],{"type":854,"value":1312},"ACCOUNT_DISABLED",{"type":849,"tag":1126,"props":1314,"children":1315},{},[1316,1318,1323,1325,1330],{"type":854,"value":1317},"The session is valid, but your ",{"type":849,"tag":857,"props":1319,"children":1320},{},[1321],{"type":854,"value":1322},"user",{"type":854,"value":1324}," function returned ",{"type":849,"tag":857,"props":1326,"children":1327},{},[1328],{"type":854,"value":1329},"null",{"type":854,"value":1331},": the account is suspended or has no profile yet",{"type":849,"tag":1126,"props":1333,"children":1334},{},[1335,1337,1342],{"type":854,"value":1336},"Tell the person the account cannot use the app. Check the ",{"type":849,"tag":857,"props":1338,"children":1339},{},[1340],{"type":854,"value":1341},"users",{"type":854,"value":1343}," row",{"type":849,"tag":1104,"props":1345,"children":1346},{},[1347,1355,1360],{"type":849,"tag":1126,"props":1348,"children":1349},{},[1350],{"type":849,"tag":857,"props":1351,"children":1352},{},[1353],{"type":854,"value":1354},"FORBIDDEN",{"type":849,"tag":1126,"props":1356,"children":1357},{},[1358],{"type":854,"value":1359},"The caller exists, but the role, the scopes or the agent rule do not allow this action here, or the IDs come from two tenants",{"type":849,"tag":1126,"props":1361,"children":1362},{},[1363,1365,1370],{"type":854,"value":1364},"Hide the action for this role (",{"type":849,"tag":857,"props":1366,"children":1367},{},[1368],{"type":854,"value":1369},"can",{"type":854,"value":1371},"). For an agent: grant the scope, or let a person do it",{"type":849,"tag":1104,"props":1373,"children":1374},{},[1375,1382,1387],{"type":849,"tag":1126,"props":1376,"children":1377},{},[1378],{"type":849,"tag":857,"props":1379,"children":1380},{},[1381],{"type":854,"value":1052},{"type":849,"tag":1126,"props":1383,"children":1384},{},[1385],{"type":854,"value":1386},"The row does not exist, or the caller may not know that it exists (another tenant)",{"type":849,"tag":1126,"props":1388,"children":1389},{},[1390],{"type":854,"value":1391},"Refresh the list. Do not retry with the same ID",{"type":849,"tag":1104,"props":1393,"children":1394},{},[1395,1403,1408],{"type":849,"tag":1126,"props":1396,"children":1397},{},[1398],{"type":849,"tag":857,"props":1399,"children":1400},{},[1401],{"type":854,"value":1402},"INVALID_INPUT",{"type":849,"tag":1126,"props":1404,"children":1405},{},[1406],{"type":854,"value":1407},"An argument is wrong, or names a row whose state does not allow this. The message names the field",{"type":849,"tag":1126,"props":1409,"children":1410},{},[1411],{"type":854,"value":1412},"Fix the field. An agent reads the message and corrects its input",{"type":849,"tag":1104,"props":1414,"children":1415},{},[1416,1424,1429],{"type":849,"tag":1126,"props":1417,"children":1418},{},[1419],{"type":849,"tag":857,"props":1420,"children":1421},{},[1422],{"type":854,"value":1423},"AGENT_DISABLED",{"type":849,"tag":1126,"props":1425,"children":1426},{},[1427],{"type":854,"value":1428},"The agent's grant ended: the person disconnected the host, signed out, or the grant expired",{"type":849,"tag":1126,"props":1430,"children":1431},{},[1432],{"type":854,"value":1433},"Reconnect the host. An in-app agent: turn it on again",{"type":849,"tag":1104,"props":1435,"children":1436},{},[1437,1445,1450],{"type":849,"tag":1126,"props":1438,"children":1439},{},[1440],{"type":849,"tag":857,"props":1441,"children":1442},{},[1443],{"type":854,"value":1444},"APPROVAL_NOT_FOUND",{"type":849,"tag":1126,"props":1446,"children":1447},{},[1448],{"type":854,"value":1449},"No open request with this ID is yours to decide or check, or the work does not run under an approval",{"type":849,"tag":1126,"props":1451,"children":1452},{},[1453],{"type":854,"value":1454},"Check the ID. A request of another person or tenant is not visible",{"type":849,"tag":1104,"props":1456,"children":1457},{},[1458,1466,1471],{"type":849,"tag":1126,"props":1459,"children":1460},{},[1461],{"type":849,"tag":857,"props":1462,"children":1463},{},[1464],{"type":854,"value":1465},"APPROVAL_EXPIRED",{"type":849,"tag":1126,"props":1467,"children":1468},{},[1469],{"type":854,"value":1470},"Nobody decided the request within 30 minutes",{"type":849,"tag":1126,"props":1472,"children":1473},{},[1474],{"type":854,"value":1475},"The agent asks again",{"type":849,"tag":1104,"props":1477,"children":1478},{},[1479,1487,1492],{"type":849,"tag":1126,"props":1480,"children":1481},{},[1482],{"type":849,"tag":857,"props":1483,"children":1484},{},[1485],{"type":854,"value":1486},"APPROVAL_DECLINED",{"type":849,"tag":1126,"props":1488,"children":1489},{},[1490],{"type":854,"value":1491},"A person declined the request",{"type":849,"tag":1126,"props":1493,"children":1494},{},[1495],{"type":854,"value":1496},"The agent stops, or asks the person what to change",{"type":849,"tag":1104,"props":1498,"children":1499},{},[1500,1508,1513],{"type":849,"tag":1126,"props":1501,"children":1502},{},[1503],{"type":849,"tag":857,"props":1504,"children":1505},{},[1506],{"type":854,"value":1507},"STALE",{"type":849,"tag":1126,"props":1509,"children":1510},{},[1511],{"type":854,"value":1512},"A row the request was about changed after the agent asked. Nothing was done",{"type":849,"tag":1126,"props":1514,"children":1515},{},[1516],{"type":854,"value":1517},"The agent reads the rows again and asks again if the work is still needed",{"type":849,"tag":1104,"props":1519,"children":1520},{},[1521,1529,1541],{"type":849,"tag":1126,"props":1522,"children":1523},{},[1524],{"type":849,"tag":857,"props":1525,"children":1526},{},[1527],{"type":854,"value":1528},"REQUEST_ID_REUSED",{"type":849,"tag":1126,"props":1530,"children":1531},{},[1532,1534,1539],{"type":854,"value":1533},"The ",{"type":849,"tag":857,"props":1535,"children":1536},{},[1537],{"type":854,"value":1538},"request_id",{"type":854,"value":1540}," belongs to a different call",{"type":849,"tag":1126,"props":1542,"children":1543},{},[1544,1546,1550],{"type":854,"value":1545},"Send a new ",{"type":849,"tag":857,"props":1547,"children":1548},{},[1549],{"type":854,"value":1538},{"type":854,"value":1551}," for each new call; reuse it only for a retry of the same call",{"type":849,"tag":1104,"props":1553,"children":1554},{},[1555,1563,1568],{"type":849,"tag":1126,"props":1556,"children":1557},{},[1558],{"type":849,"tag":857,"props":1559,"children":1560},{},[1561],{"type":854,"value":1562},"RATE_LIMITED",{"type":849,"tag":1126,"props":1564,"children":1565},{},[1566],{"type":854,"value":1567},"A limit was reached: writes per minute, or open requests. The message says which, and when to retry",{"type":849,"tag":1126,"props":1569,"children":1570},{},[1571,1573],{"type":854,"value":1572},"Wait as the message says. See ",{"type":849,"tag":1218,"props":1574,"children":1575},{"href":455},[1576],{"type":854,"value":450},{"type":849,"tag":1104,"props":1578,"children":1579},{},[1580,1588,1593],{"type":849,"tag":1126,"props":1581,"children":1582},{},[1583],{"type":849,"tag":857,"props":1584,"children":1585},{},[1586],{"type":854,"value":1587},"TOO_LARGE",{"type":849,"tag":1126,"props":1589,"children":1590},{},[1591],{"type":854,"value":1592},"Too much at once: more than 1,000 IDs in one call, or more than 500 rows in one request",{"type":849,"tag":1126,"props":1594,"children":1595},{},[1596],{"type":854,"value":1597},"Split the work into smaller calls",{"type":849,"tag":1104,"props":1599,"children":1600},{},[1601,1609,1614],{"type":849,"tag":1126,"props":1602,"children":1603},{},[1604],{"type":849,"tag":857,"props":1605,"children":1606},{},[1607],{"type":854,"value":1608},"CONFLICT",{"type":849,"tag":1126,"props":1610,"children":1611},{},[1612],{"type":854,"value":1613},"Another write to the same rows won, or the row changed since the caller last read it",{"type":849,"tag":1126,"props":1615,"children":1616},{},[1617],{"type":854,"value":1618},"Read again and retry",{"type":849,"tag":1104,"props":1620,"children":1621},{},[1622,1629,1634],{"type":849,"tag":1126,"props":1623,"children":1624},{},[1625],{"type":849,"tag":857,"props":1626,"children":1627},{},[1628],{"type":854,"value":1059},{"type":849,"tag":1126,"props":1630,"children":1631},{},[1632],{"type":854,"value":1633},"An unexpected error. The detail is in the Convex log, not in the message",{"type":849,"tag":1126,"props":1635,"children":1636},{},[1637,1639],{"type":854,"value":1638},"Read the log. Turn a known failure into a coded ",{"type":849,"tag":857,"props":1640,"children":1641},{},[1642],{"type":854,"value":911},{"type":849,"tag":1104,"props":1644,"children":1645},{},[1646,1654,1659],{"type":849,"tag":1126,"props":1647,"children":1648},{},[1649],{"type":849,"tag":857,"props":1650,"children":1651},{},[1652],{"type":854,"value":1653},"STALLED",{"type":849,"tag":1126,"props":1655,"children":1656},{},[1657],{"type":854,"value":1658},"An in-app agent run stopped answering",{"type":849,"tag":1126,"props":1660,"children":1661},{},[1662],{"type":854,"value":1663},"Start a new run",{"type":849,"tag":1104,"props":1665,"children":1666},{},[1667,1675,1680],{"type":849,"tag":1126,"props":1668,"children":1669},{},[1670],{"type":849,"tag":857,"props":1671,"children":1672},{},[1673],{"type":854,"value":1674},"MODEL_BUSY",{"type":849,"tag":1126,"props":1676,"children":1677},{},[1678],{"type":854,"value":1679},"The model service is busy or out of quota (in-app agents)",{"type":849,"tag":1126,"props":1681,"children":1682},{},[1683],{"type":854,"value":1684},"Retry later",{"type":849,"tag":1104,"props":1686,"children":1687},{},[1688,1696,1701],{"type":849,"tag":1126,"props":1689,"children":1690},{},[1691],{"type":849,"tag":857,"props":1692,"children":1693},{},[1694],{"type":854,"value":1695},"MODEL_REFUSED",{"type":849,"tag":1126,"props":1697,"children":1698},{},[1699],{"type":854,"value":1700},"The model service refused the request or the key (in-app agents)",{"type":849,"tag":1126,"props":1702,"children":1703},{},[1704],{"type":854,"value":1705},"Check the key and the request",{"type":849,"tag":1104,"props":1707,"children":1708},{},[1709,1717,1722],{"type":849,"tag":1126,"props":1710,"children":1711},{},[1712],{"type":849,"tag":857,"props":1713,"children":1714},{},[1715],{"type":854,"value":1716},"MODEL_FAILED",{"type":849,"tag":1126,"props":1718,"children":1719},{},[1720],{"type":854,"value":1721},"The model service did not answer (in-app agents)",{"type":849,"tag":1126,"props":1723,"children":1724},{},[1725],{"type":854,"value":1684},{"type":849,"tag":1104,"props":1727,"children":1728},{},[1729,1737,1742],{"type":849,"tag":1126,"props":1730,"children":1731},{},[1732],{"type":849,"tag":857,"props":1733,"children":1734},{},[1735],{"type":854,"value":1736},"MODEL_TIMEOUT",{"type":849,"tag":1126,"props":1738,"children":1739},{},[1740],{"type":854,"value":1741},"The model service took too long (in-app agents)",{"type":849,"tag":1126,"props":1743,"children":1744},{},[1745],{"type":854,"value":1746},"Retry later, or ask for less",{"type":849,"tag":850,"props":1748,"children":1749},{},[1750,1754,1756,1761],{"type":849,"tag":857,"props":1751,"children":1752},{},[1753],{"type":854,"value":1653},{"type":854,"value":1755}," and the ",{"type":849,"tag":857,"props":1757,"children":1758},{},[1759],{"type":854,"value":1760},"MODEL_*",{"type":854,"value":1762}," codes belong to the in-app agent runtime. These\npackages reserve them; their own functions do not raise them.",{"type":849,"tag":1089,"props":1764,"children":1766},{"id":1765},"errors-while-you-build",[1767],{"type":854,"value":1768},"Errors while you build",{"type":849,"tag":850,"props":1770,"children":1771},{},[1772],{"type":854,"value":1773},"These are not codes. They are errors with a message, raised while Convex loads\nyour modules or while a call runs, so you see them in development.",{"type":849,"tag":1096,"props":1775,"children":1776},{},[1777,1798],{"type":849,"tag":1100,"props":1778,"children":1779},{},[1780],{"type":849,"tag":1104,"props":1781,"children":1782},{},[1783,1788,1793],{"type":849,"tag":1108,"props":1784,"children":1785},{},[1786],{"type":854,"value":1787},"Message starts with",{"type":849,"tag":1108,"props":1789,"children":1790},{},[1791],{"type":854,"value":1792},"Cause",{"type":849,"tag":1108,"props":1794,"children":1795},{},[1796],{"type":854,"value":1797},"Fix",{"type":849,"tag":1119,"props":1799,"children":1800},{},[1801,1829,1870,1898,1943,1964,1997,2029,2050,2075,2118,2151,2182],{"type":849,"tag":1104,"props":1802,"children":1803},{},[1804,1812,1824],{"type":849,"tag":1126,"props":1805,"children":1806},{},[1807],{"type":849,"tag":857,"props":1808,"children":1809},{},[1810],{"type":854,"value":1811},"Operation action \"…\" is not in the policy's actions",{"type":849,"tag":1126,"props":1813,"children":1814},{},[1815,1817,1822],{"type":854,"value":1816},"An operation names an action that ",{"type":849,"tag":857,"props":1818,"children":1819},{},[1820],{"type":854,"value":1821},"policy.actions",{"type":854,"value":1823}," does not list",{"type":849,"tag":1126,"props":1825,"children":1826},{},[1827],{"type":854,"value":1828},"Add the action to the policy",{"type":849,"tag":1104,"props":1830,"children":1831},{},[1832,1840,1852],{"type":849,"tag":1126,"props":1833,"children":1834},{},[1835],{"type":849,"tag":857,"props":1836,"children":1837},{},[1838],{"type":854,"value":1839},"… is a query, so it cannot wait for approval",{"type":849,"tag":1126,"props":1841,"children":1842},{},[1843,1845,1850],{"type":854,"value":1844},"The agent rule of a query's action is ",{"type":849,"tag":857,"props":1846,"children":1847},{},[1848],{"type":854,"value":1849},"'approve'",{"type":854,"value":1851}," or a function",{"type":849,"tag":1126,"props":1853,"children":1854},{},[1855,1857,1862,1863,1868],{"type":854,"value":1856},"Set it to ",{"type":849,"tag":857,"props":1858,"children":1859},{},[1860],{"type":854,"value":1861},"'allow'",{"type":854,"value":1068},{"type":849,"tag":857,"props":1864,"children":1865},{},[1866],{"type":854,"value":1867},"'deny'",{"type":854,"value":1869},", or make the guarded part a mutation",{"type":849,"tag":1104,"props":1871,"children":1872},{},[1873,1881,1886],{"type":849,"tag":1126,"props":1874,"children":1875},{},[1876],{"type":849,"tag":857,"props":1877,"children":1878},{},[1879],{"type":854,"value":1880},"A query on … returned a row this call may not read",{"type":849,"tag":1126,"props":1882,"children":1883},{},[1884],{"type":854,"value":1885},"A query is missing the filter that its table's rule checks",{"type":849,"tag":1126,"props":1887,"children":1888},{},[1889,1891,1896],{"type":854,"value":1890},"Read by an index on the tenant or owner field, or on the ",{"type":849,"tag":857,"props":1892,"children":1893},{},[1894],{"type":854,"value":1895},"publicRead",{"type":854,"value":1897}," condition",{"type":849,"tag":1104,"props":1899,"children":1900},{},[1901,1909,1914],{"type":849,"tag":1126,"props":1902,"children":1903},{},[1904],{"type":849,"tag":857,"props":1905,"children":1906},{},[1907],{"type":854,"value":1908},"… is not an internal operation, so it cannot run as this call's actor",{"type":849,"tag":1126,"props":1910,"children":1911},{},[1912],{"type":854,"value":1913},"An operation called or scheduled a function built with Convex's builders",{"type":849,"tag":1126,"props":1915,"children":1916},{},[1917,1919,1924,1925,1930,1931,1936,1938],{"type":854,"value":1918},"Build it with ",{"type":849,"tag":857,"props":1920,"children":1921},{},[1922],{"type":854,"value":1923},"internalQuery",{"type":854,"value":916},{"type":849,"tag":857,"props":1926,"children":1927},{},[1928],{"type":854,"value":1929},"internalMutation",{"type":854,"value":1068},{"type":849,"tag":857,"props":1932,"children":1933},{},[1934],{"type":854,"value":1935},"internalAction",{"type":854,"value":1937}," from ",{"type":849,"tag":857,"props":1939,"children":1940},{},[1941],{"type":854,"value":1942},"defineFunctions",{"type":849,"tag":1104,"props":1944,"children":1945},{},[1946,1954,1959],{"type":849,"tag":1126,"props":1947,"children":1948},{},[1949],{"type":849,"tag":857,"props":1950,"children":1951},{},[1952],{"type":854,"value":1953},"This call reached a function that is not an internal operation",{"type":849,"tag":1126,"props":1955,"children":1956},{},[1957],{"type":854,"value":1958},"The same, found after the raw function ran. Nothing of the call is kept",{"type":849,"tag":1126,"props":1960,"children":1961},{},[1962],{"type":854,"value":1963},"The same",{"type":849,"tag":1104,"props":1965,"children":1966},{},[1967,1975,1985],{"type":849,"tag":1126,"props":1968,"children":1969},{},[1970],{"type":849,"tag":857,"props":1971,"children":1972},{},[1973],{"type":854,"value":1974},"System tables are not available to operations",{"type":849,"tag":1126,"props":1976,"children":1977},{},[1978,1980],{"type":854,"value":1979},"A handler read ",{"type":849,"tag":857,"props":1981,"children":1982},{},[1983],{"type":854,"value":1984},"ctx.db.system",{"type":849,"tag":1126,"props":1986,"children":1987},{},[1988,1990,1995],{"type":854,"value":1989},"Read system tables in a ",{"type":849,"tag":857,"props":1991,"children":1992},{},[1993],{"type":854,"value":1994},"job",{"type":854,"value":1996},", or keep what you need in your own table",{"type":849,"tag":1104,"props":1998,"children":1999},{},[2000,2008,2013],{"type":849,"tag":1126,"props":2001,"children":2002},{},[2003],{"type":849,"tag":857,"props":2004,"children":2005},{},[2006],{"type":854,"value":2007},"Tool name \"…\"",{"type":849,"tag":1126,"props":2009,"children":2010},{},[2011],{"type":854,"value":2012},"A tool name has characters that some hosts reject",{"type":849,"tag":1126,"props":2014,"children":2015},{},[2016,2018,2023,2024],{"type":854,"value":2017},"Use 1 to 64 letters, digits, ",{"type":849,"tag":857,"props":2019,"children":2020},{},[2021],{"type":854,"value":2022},"_",{"type":854,"value":1068},{"type":849,"tag":857,"props":2025,"children":2026},{},[2027],{"type":854,"value":2028},"-",{"type":849,"tag":1104,"props":2030,"children":2031},{},[2032,2040,2045],{"type":849,"tag":1126,"props":2033,"children":2034},{},[2035],{"type":849,"tag":857,"props":2036,"children":2037},{},[2038],{"type":854,"value":2039},"Two operations use the tool name …",{"type":849,"tag":1126,"props":2041,"children":2042},{},[2043],{"type":854,"value":2044},"Two operations share a tool name",{"type":849,"tag":1126,"props":2046,"children":2047},{},[2048],{"type":854,"value":2049},"Rename one",{"type":849,"tag":1104,"props":2051,"children":2052},{},[2053,2061,2070],{"type":849,"tag":1126,"props":2054,"children":2055},{},[2056],{"type":849,"tag":857,"props":2057,"children":2058},{},[2059],{"type":854,"value":2060},"…: the argument name request_id is reserved",{"type":849,"tag":1126,"props":2062,"children":2063},{},[2064,2066],{"type":854,"value":2065},"A mutation tool has an argument called ",{"type":849,"tag":857,"props":2067,"children":2068},{},[2069],{"type":854,"value":1538},{"type":849,"tag":1126,"props":2071,"children":2072},{},[2073],{"type":854,"value":2074},"Rename the argument",{"type":849,"tag":1104,"props":2076,"children":2077},{},[2078,2086,2114],{"type":849,"tag":1126,"props":2079,"children":2080},{},[2081],{"type":849,"tag":857,"props":2082,"children":2083},{},[2084],{"type":854,"value":2085},"Job …: the argument name … is reserved",{"type":849,"tag":1126,"props":2087,"children":2088},{},[2089,2091,2096,2097,2102,2103,2108,2109],{"type":854,"value":2090},"A job has an argument called ",{"type":849,"tag":857,"props":2092,"children":2093},{},[2094],{"type":854,"value":2095},"actingAs",{"type":854,"value":916},{"type":849,"tag":857,"props":2098,"children":2099},{},[2100],{"type":854,"value":2101},"input",{"type":854,"value":916},{"type":849,"tag":857,"props":2104,"children":2105},{},[2106],{"type":854,"value":2107},"inner",{"type":854,"value":1068},{"type":849,"tag":857,"props":2110,"children":2111},{},[2112],{"type":854,"value":2113},"trace",{"type":849,"tag":1126,"props":2115,"children":2116},{},[2117],{"type":854,"value":2074},{"type":849,"tag":1104,"props":2119,"children":2120},{},[2121,2129,2147],{"type":849,"tag":1126,"props":2122,"children":2123},{},[2124],{"type":849,"tag":857,"props":2125,"children":2126},{},[2127],{"type":854,"value":2128},"…: a paginated tool gets cursor and limit from the library",{"type":849,"tag":1126,"props":2130,"children":2131},{},[2132,2134,2139,2140,2145],{"type":854,"value":2133},"A paginated query has its own ",{"type":849,"tag":857,"props":2135,"children":2136},{},[2137],{"type":854,"value":2138},"cursor",{"type":854,"value":1068},{"type":849,"tag":857,"props":2141,"children":2142},{},[2143],{"type":854,"value":2144},"limit",{"type":854,"value":2146}," argument",{"type":849,"tag":1126,"props":2148,"children":2149},{},[2150],{"type":854,"value":2074},{"type":849,"tag":1104,"props":2152,"children":2153},{},[2154,2162,2172],{"type":849,"tag":1126,"props":2155,"children":2156},{},[2157],{"type":849,"tag":857,"props":2158,"children":2159},{},[2160],{"type":854,"value":2161},"Not exported from the agents module: …",{"type":849,"tag":1126,"props":2163,"children":2164},{},[2165,2167],{"type":854,"value":2166},"A tool function is not exported from the module that calls ",{"type":849,"tag":857,"props":2168,"children":2169},{},[2170],{"type":854,"value":2171},"defineTools",{"type":849,"tag":1126,"props":2173,"children":2174},{},[2175,2177],{"type":854,"value":2176},"Add the names to ",{"type":849,"tag":857,"props":2178,"children":2179},{},[2180],{"type":854,"value":2181},"export const { … } = tools.functions",{"type":849,"tag":1104,"props":2183,"children":2184},{},[2185,2193,2205],{"type":849,"tag":1126,"props":2186,"children":2187},{},[2188],{"type":849,"tag":857,"props":2189,"children":2190},{},[2191],{"type":854,"value":2192},"Set the SITE_URL environment variable on the Convex deployment",{"type":849,"tag":1126,"props":2194,"children":2195},{},[2196,2198,2203],{"type":854,"value":2197},"An agent asked for approval, and ",{"type":849,"tag":857,"props":2199,"children":2200},{},[2201],{"type":854,"value":2202},"SITE_URL",{"type":854,"value":2204}," is not set",{"type":849,"tag":1126,"props":2206,"children":2207},{},[2208,2210,2214],{"type":854,"value":2209},"Set ",{"type":849,"tag":857,"props":2211,"children":2212},{},[2213],{"type":854,"value":2202},{"type":854,"value":2215}," to the public origin of your application",{"title":2217,"searchDepth":2218,"depth":2218,"links":2219},"",4,[2220,2222,2223],{"id":1091,"depth":2221,"text":1094},2,{"id":1250,"depth":2221,"text":1253},{"id":1765,"depth":2221,"text":1768},"markdown","docs",{"source":2227,"path":2228,"stem":2229,"dir":2230,"extension":2231},"content","docs\u002F7.reference\u002F10.operation-error-codes.md","docs\u002F7.reference\u002F10.operation-error-codes","reference","md",{"requestedPath":836,"resolvedPath":836,"alternates":2233},[],{"requested":2235,"resolved":2236,"usedFallback":6},{},{"locale":8},{"previous":2238,"next":2240},{"title":824,"id":825,"canonicalKey":826,"locale":8,"draft":6,"navigation":2239,"icon":828,"path":829},{"icon":828},{"title":838,"id":839,"canonicalKey":840,"locale":8,"draft":6,"path":841},{"left":2242,"top":2242,"width":2243,"height":2243,"rotate":2242,"vFlip":6,"hFlip":6,"body":2244},0,256,"\u003Cpath fill=\"#3178c6\" d=\"M20 0h216c11.046 0 20 8.954 20 20v216c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20V20C0 8.954 8.954 0 20 0\"\u002F>\u003Cpath fill=\"#fff\" d=\"M150.518 200.475v27.62q6.738 3.453 15.938 5.179T185.849 235q9.934 0 18.874-1.899t15.678-6.257q6.738-4.359 10.669-11.394q3.93-7.033 3.93-17.391q0-7.51-2.246-13.163a30.8 30.8 0 0 0-6.479-10.055q-4.232-4.402-10.149-7.898t-13.347-6.602q-5.442-2.245-9.761-4.359t-7.342-4.316q-3.024-2.2-4.665-4.661t-1.641-5.567q0-2.848 1.468-5.135q1.469-2.288 4.147-3.927t6.565-2.547q3.887-.906 8.638-.906q3.456 0 7.299.518q3.844.517 7.732 1.597a54 54 0 0 1 7.558 2.719a41.7 41.7 0 0 1 6.781 3.797v-25.807q-6.306-2.417-13.778-3.582T198.633 107q-9.847 0-18.658 2.115q-8.811 2.114-15.506 6.602q-6.694 4.49-10.582 11.437Q150 134.102 150 143.769q0 12.342 7.127 21.06t21.638 14.759a292 292 0 0 1 10.625 4.575q4.924 2.244 8.509 4.66t5.658 5.265t2.073 6.474a9.9 9.9 0 0 1-1.296 4.963q-1.295 2.287-3.93 3.97t-6.565 2.632t-9.2.95q-8.983 0-17.794-3.151t-16.327-9.451m-46.036-68.733H140V109H41v22.742h35.345V233h28.137z\"\u002F>",{"left":2242,"top":2242,"width":2246,"height":2246,"rotate":2242,"vFlip":6,"hFlip":6,"body":2247},24,"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\"\u002F>\u003Cpath d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"\u002F>\u003C\u002Fg>",1794905533042]