[{"data":1,"prerenderedAt":3702},["ShallowReactive",2],{"docs-navigation:en":3,"content-page:docs:W6ySSz2vikTA_VNkMtFAYUiegn-Yho2p3wKdhktTMrc":842,"content-page-surround:docs:W6ySSz2vikTA_VNkMtFAYUiegn-Yho2p3wKdhktTMrc":3688,"i-lucide:braces":3693,"i-logos:typescript-icon":3697,"i-lucide:clipboard":3700},[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":535,"description":843,"navigation":844,"body":845,"type":3675,"id":536,"canonicalKey":537,"draft":6,"partial":6,"locale":8,"collection":3676,"navigationFile":6,"file":3677,"route":3683,"resolution":3685},"Limit how often an action runs, keep a record of who changed which rows, and send one event per call to your log service.",{"icon":408},{"type":846,"children":847,"toc":3658},"root",[848,856,1292,1299,1354,1364,1444,1456,1480,1497,1502,1623,1630,1648,1659,1671,1677,1703,1709,1727,1860,1878,1929,1962,1968,1979,2255,2268,2274,2300,2427,2432,2672,2969,2974,3009,3020,3043,3048,3054,3092,3110,3369,3412,3421,3427,3438,3565,3581,3603,3653],{"type":849,"tag":850,"props":851,"children":852},"element","p",{},[853],{"type":854,"value":855},"text","Both are written in the policy, next to the roles. There is no second place to\nconfigure them.",{"type":849,"tag":857,"props":858,"children":862},"pre",{"language":859,"filename":860,"class":861},"ts","convex\u002Fpolicy.ts","shiki shiki-themes light-plus dark-plus dark:dark-plus",[863],{"type":849,"tag":864,"props":865,"children":867},"code",{"class":866},"language-ts",[868,909,911,925,926,940,941,953,954,966,967,979,980,992,993,1001,1002,1034,1035,1048,1049,1071,1072,1085,1086,1133,1134,1189,1190,1243,1244,1252,1253,1283,1284],{"type":849,"tag":869,"props":870,"children":873},"span",{"class":871,"style":872},"line","display: inline",[874,880,886,892,898,904],{"type":849,"tag":869,"props":875,"children":877},{"style":876},"color:#AF00DB;--shiki-dark:#C586C0",[878],{"type":854,"value":879},"export",{"type":849,"tag":869,"props":881,"children":883},{"style":882},"color:#0000FF;--shiki-dark:#569CD6",[884],{"type":854,"value":885}," const",{"type":849,"tag":869,"props":887,"children":889},{"style":888},"color:#0070C1;--shiki-dark:#4FC1FF",[890],{"type":854,"value":891}," policy",{"type":849,"tag":869,"props":893,"children":895},{"style":894},"color:#000000;--shiki-dark:#D4D4D4",[896],{"type":854,"value":897}," = ",{"type":849,"tag":869,"props":899,"children":901},{"style":900},"color:#795E26;--shiki-dark:#DCDCAA",[902],{"type":854,"value":903},"definePolicy",{"type":849,"tag":869,"props":905,"children":906},{"style":894},[907],{"type":854,"value":908},"({",{"type":854,"value":910},"\n",{"type":849,"tag":869,"props":912,"children":913},{"class":871,"style":872},[914,920],{"type":849,"tag":869,"props":915,"children":917},{"style":916},"color:#001080;--shiki-dark:#9CDCFE",[918],{"type":854,"value":919},"  actions:",{"type":849,"tag":869,"props":921,"children":922},{"style":894},[923],{"type":854,"value":924}," [",{"type":854,"value":910},{"type":849,"tag":869,"props":927,"children":928},{"class":871,"style":872},[929,935],{"type":849,"tag":869,"props":930,"children":932},{"style":931},"color:#A31515;--shiki-dark:#CE9178",[933],{"type":854,"value":934},"    'invites.send'",{"type":849,"tag":869,"props":936,"children":937},{"style":894},[938],{"type":854,"value":939},",",{"type":854,"value":910},{"type":849,"tag":869,"props":942,"children":943},{"class":871,"style":872},[944,949],{"type":849,"tag":869,"props":945,"children":946},{"style":931},[947],{"type":854,"value":948},"    'reports.generate'",{"type":849,"tag":869,"props":950,"children":951},{"style":894},[952],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":955,"children":956},{"class":871,"style":872},[957,962],{"type":849,"tag":869,"props":958,"children":959},{"style":931},[960],{"type":854,"value":961},"    'contact.send'",{"type":849,"tag":869,"props":963,"children":964},{"style":894},[965],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":968,"children":969},{"class":871,"style":872},[970,975],{"type":849,"tag":869,"props":971,"children":972},{"style":931},[973],{"type":854,"value":974},"    'projects.archive'",{"type":849,"tag":869,"props":976,"children":977},{"style":894},[978],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":981,"children":982},{"class":871,"style":872},[983,988],{"type":849,"tag":869,"props":984,"children":985},{"style":931},[986],{"type":854,"value":987},"    'members.remove'",{"type":849,"tag":869,"props":989,"children":990},{"style":894},[991],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":994,"children":995},{"class":871,"style":872},[996],{"type":849,"tag":869,"props":997,"children":998},{"style":894},[999],{"type":854,"value":1000},"  ],",{"type":854,"value":910},{"type":849,"tag":869,"props":1003,"children":1004},{"class":871,"style":872},[1005,1010,1015,1020,1024,1029],{"type":849,"tag":869,"props":1006,"children":1007},{"style":916},[1008],{"type":854,"value":1009},"  roles:",{"type":849,"tag":869,"props":1011,"children":1012},{"style":894},[1013],{"type":854,"value":1014}," { ",{"type":849,"tag":869,"props":1016,"children":1017},{"style":916},[1018],{"type":854,"value":1019},"owner:",{"type":849,"tag":869,"props":1021,"children":1022},{"style":894},[1023],{"type":854,"value":924},{"type":849,"tag":869,"props":1025,"children":1026},{"style":931},[1027],{"type":854,"value":1028},"'*'",{"type":849,"tag":869,"props":1030,"children":1031},{"style":894},[1032],{"type":854,"value":1033},"] },",{"type":854,"value":910},{"type":849,"tag":869,"props":1036,"children":1037},{"class":871,"style":872},[1038,1043],{"type":849,"tag":869,"props":1039,"children":1040},{"style":916},[1041],{"type":854,"value":1042},"  scopes:",{"type":849,"tag":869,"props":1044,"children":1045},{"style":894},[1046],{"type":854,"value":1047}," {},",{"type":854,"value":910},{"type":849,"tag":869,"props":1050,"children":1051},{"class":871,"style":872},[1052,1057,1061,1066],{"type":849,"tag":869,"props":1053,"children":1054},{"style":916},[1055],{"type":854,"value":1056},"  public:",{"type":849,"tag":869,"props":1058,"children":1059},{"style":894},[1060],{"type":854,"value":924},{"type":849,"tag":869,"props":1062,"children":1063},{"style":931},[1064],{"type":854,"value":1065},"'contact.send'",{"type":849,"tag":869,"props":1067,"children":1068},{"style":894},[1069],{"type":854,"value":1070},"],",{"type":854,"value":910},{"type":849,"tag":869,"props":1073,"children":1074},{"class":871,"style":872},[1075,1080],{"type":849,"tag":869,"props":1076,"children":1077},{"style":916},[1078],{"type":854,"value":1079},"  limits:",{"type":849,"tag":869,"props":1081,"children":1082},{"style":894},[1083],{"type":854,"value":1084}," {",{"type":854,"value":910},{"type":849,"tag":869,"props":1087,"children":1088},{"class":871,"style":872},[1089,1093,1098,1102,1107,1113,1118,1123,1128],{"type":849,"tag":869,"props":1090,"children":1091},{"style":931},[1092],{"type":854,"value":934},{"type":849,"tag":869,"props":1094,"children":1095},{"style":916},[1096],{"type":854,"value":1097},":",{"type":849,"tag":869,"props":1099,"children":1100},{"style":894},[1101],{"type":854,"value":1014},{"type":849,"tag":869,"props":1103,"children":1104},{"style":916},[1105],{"type":854,"value":1106},"max:",{"type":849,"tag":869,"props":1108,"children":1110},{"style":1109},"color:#098658;--shiki-dark:#B5CEA8",[1111],{"type":854,"value":1112}," 10",{"type":849,"tag":869,"props":1114,"children":1115},{"style":894},[1116],{"type":854,"value":1117},", ",{"type":849,"tag":869,"props":1119,"children":1120},{"style":916},[1121],{"type":854,"value":1122},"every:",{"type":849,"tag":869,"props":1124,"children":1125},{"style":931},[1126],{"type":854,"value":1127}," 'minute'",{"type":849,"tag":869,"props":1129,"children":1130},{"style":894},[1131],{"type":854,"value":1132}," },",{"type":854,"value":910},{"type":849,"tag":869,"props":1135,"children":1136},{"class":871,"style":872},[1137,1141,1145,1149,1153,1158,1162,1166,1171,1175,1180,1185],{"type":849,"tag":869,"props":1138,"children":1139},{"style":931},[1140],{"type":854,"value":948},{"type":849,"tag":869,"props":1142,"children":1143},{"style":916},[1144],{"type":854,"value":1097},{"type":849,"tag":869,"props":1146,"children":1147},{"style":894},[1148],{"type":854,"value":1014},{"type":849,"tag":869,"props":1150,"children":1151},{"style":916},[1152],{"type":854,"value":1106},{"type":849,"tag":869,"props":1154,"children":1155},{"style":1109},[1156],{"type":854,"value":1157}," 30",{"type":849,"tag":869,"props":1159,"children":1160},{"style":894},[1161],{"type":854,"value":1117},{"type":849,"tag":869,"props":1163,"children":1164},{"style":916},[1165],{"type":854,"value":1122},{"type":849,"tag":869,"props":1167,"children":1168},{"style":931},[1169],{"type":854,"value":1170}," 'hour'",{"type":849,"tag":869,"props":1172,"children":1173},{"style":894},[1174],{"type":854,"value":1117},{"type":849,"tag":869,"props":1176,"children":1177},{"style":916},[1178],{"type":854,"value":1179},"per:",{"type":849,"tag":869,"props":1181,"children":1182},{"style":931},[1183],{"type":854,"value":1184}," 'tenant'",{"type":849,"tag":869,"props":1186,"children":1187},{"style":894},[1188],{"type":854,"value":1132},{"type":854,"value":910},{"type":849,"tag":869,"props":1191,"children":1192},{"class":871,"style":872},[1193,1197,1201,1205,1209,1214,1218,1222,1226,1230,1234,1239],{"type":849,"tag":869,"props":1194,"children":1195},{"style":931},[1196],{"type":854,"value":961},{"type":849,"tag":869,"props":1198,"children":1199},{"style":916},[1200],{"type":854,"value":1097},{"type":849,"tag":869,"props":1202,"children":1203},{"style":894},[1204],{"type":854,"value":1014},{"type":849,"tag":869,"props":1206,"children":1207},{"style":916},[1208],{"type":854,"value":1106},{"type":849,"tag":869,"props":1210,"children":1211},{"style":1109},[1212],{"type":854,"value":1213}," 60",{"type":849,"tag":869,"props":1215,"children":1216},{"style":894},[1217],{"type":854,"value":1117},{"type":849,"tag":869,"props":1219,"children":1220},{"style":916},[1221],{"type":854,"value":1122},{"type":849,"tag":869,"props":1223,"children":1224},{"style":931},[1225],{"type":854,"value":1127},{"type":849,"tag":869,"props":1227,"children":1228},{"style":894},[1229],{"type":854,"value":1117},{"type":849,"tag":869,"props":1231,"children":1232},{"style":916},[1233],{"type":854,"value":1179},{"type":849,"tag":869,"props":1235,"children":1236},{"style":931},[1237],{"type":854,"value":1238}," 'everyone'",{"type":849,"tag":869,"props":1240,"children":1241},{"style":894},[1242],{"type":854,"value":1132},{"type":854,"value":910},{"type":849,"tag":869,"props":1245,"children":1246},{"class":871,"style":872},[1247],{"type":849,"tag":869,"props":1248,"children":1249},{"style":894},[1250],{"type":854,"value":1251},"  },",{"type":854,"value":910},{"type":849,"tag":869,"props":1254,"children":1255},{"class":871,"style":872},[1256,1261,1265,1270,1274,1279],{"type":849,"tag":869,"props":1257,"children":1258},{"style":916},[1259],{"type":854,"value":1260},"  audit:",{"type":849,"tag":869,"props":1262,"children":1263},{"style":894},[1264],{"type":854,"value":924},{"type":849,"tag":869,"props":1266,"children":1267},{"style":931},[1268],{"type":854,"value":1269},"'projects.archive'",{"type":849,"tag":869,"props":1271,"children":1272},{"style":894},[1273],{"type":854,"value":1117},{"type":849,"tag":869,"props":1275,"children":1276},{"style":931},[1277],{"type":854,"value":1278},"'members.*'",{"type":849,"tag":869,"props":1280,"children":1281},{"style":894},[1282],{"type":854,"value":1070},{"type":854,"value":910},{"type":849,"tag":869,"props":1285,"children":1286},{"class":871,"style":872},[1287],{"type":849,"tag":869,"props":1288,"children":1289},{"style":894},[1290],{"type":854,"value":1291},"})",{"type":849,"tag":1293,"props":1294,"children":1296},"h2",{"id":1295},"rate-limits",[1297],{"type":854,"value":1298},"Rate limits",{"type":849,"tag":850,"props":1300,"children":1301},{},[1302,1307,1309,1313,1315,1320,1322,1327,1328,1333,1334,1339,1341,1346,1348,1352],{"type":849,"tag":864,"props":1303,"children":1304},{},[1305],{"type":854,"value":1306},"max",{"type":854,"value":1308}," is how many calls the bucket holds. It refills ",{"type":849,"tag":864,"props":1310,"children":1311},{},[1312],{"type":854,"value":1306},{"type":854,"value":1314}," per ",{"type":849,"tag":864,"props":1316,"children":1317},{},[1318],{"type":854,"value":1319},"every",{"type":854,"value":1321},"\n(",{"type":849,"tag":864,"props":1323,"children":1324},{},[1325],{"type":854,"value":1326},"'second'",{"type":854,"value":1117},{"type":849,"tag":864,"props":1329,"children":1330},{},[1331],{"type":854,"value":1332},"'minute'",{"type":854,"value":1117},{"type":849,"tag":864,"props":1335,"children":1336},{},[1337],{"type":854,"value":1338},"'hour'",{"type":854,"value":1340}," or ",{"type":849,"tag":864,"props":1342,"children":1343},{},[1344],{"type":854,"value":1345},"'day'",{"type":854,"value":1347},"), continuously: ten calls a minute\ngives back one call every six seconds. ",{"type":849,"tag":864,"props":1349,"children":1350},{},[1351],{"type":854,"value":1306},{"type":854,"value":1353}," is a whole number of at least 1.",{"type":849,"tag":850,"props":1355,"children":1356},{},[1357,1362],{"type":849,"tag":864,"props":1358,"children":1359},{},[1360],{"type":854,"value":1361},"per",{"type":854,"value":1363}," says whose calls share a bucket:",{"type":849,"tag":1365,"props":1366,"children":1367},"table",{},[1368,1389],{"type":849,"tag":1369,"props":1370,"children":1371},"thead",{},[1372],{"type":849,"tag":1373,"props":1374,"children":1375},"tr",{},[1376,1384],{"type":849,"tag":1377,"props":1378,"children":1379},"th",{},[1380],{"type":849,"tag":864,"props":1381,"children":1382},{},[1383],{"type":854,"value":1361},{"type":849,"tag":1377,"props":1385,"children":1386},{},[1387],{"type":854,"value":1388},"Bucket",{"type":849,"tag":1390,"props":1391,"children":1392},"tbody",{},[1393,1412,1428],{"type":849,"tag":1373,"props":1394,"children":1395},{},[1396,1407],{"type":849,"tag":1397,"props":1398,"children":1399},"td",{},[1400,1405],{"type":849,"tag":864,"props":1401,"children":1402},{},[1403],{"type":854,"value":1404},"'user'",{"type":854,"value":1406}," (default)",{"type":849,"tag":1397,"props":1408,"children":1409},{},[1410],{"type":854,"value":1411},"The person. For an agent: the person and the client or in-app agent.",{"type":849,"tag":1373,"props":1413,"children":1414},{},[1415,1423],{"type":849,"tag":1397,"props":1416,"children":1417},{},[1418],{"type":849,"tag":864,"props":1419,"children":1420},{},[1421],{"type":854,"value":1422},"'tenant'",{"type":849,"tag":1397,"props":1424,"children":1425},{},[1426],{"type":854,"value":1427},"The call's tenant. A call without a tenant counts per user.",{"type":849,"tag":1373,"props":1429,"children":1430},{},[1431,1439],{"type":849,"tag":1397,"props":1432,"children":1433},{},[1434],{"type":849,"tag":864,"props":1435,"children":1436},{},[1437],{"type":854,"value":1438},"'everyone'",{"type":849,"tag":1397,"props":1440,"children":1441},{},[1442],{"type":854,"value":1443},"One bucket for the whole action.",{"type":849,"tag":850,"props":1445,"children":1446},{},[1447,1449,1454],{"type":854,"value":1448},"The call's tenant is the deepest tenant it names. With tenants inside tenants\n(clients in an organization), each client has its own bucket, so a person who\nmay create clients can spread calls across them. Add a ",{"type":849,"tag":864,"props":1450,"children":1451},{},[1452],{"type":854,"value":1453},"per: 'user'",{"type":854,"value":1455}," limit on\nanother action of the same request when that matters.",{"type":849,"tag":850,"props":1457,"children":1458},{},[1459,1461,1466,1468,1472,1474,1478],{"type":854,"value":1460},"A visitor who is not signed in has no user, so a public action uses the\n",{"type":849,"tag":864,"props":1462,"children":1463},{},[1464],{"type":854,"value":1465},"everyone",{"type":854,"value":1467}," bucket whatever ",{"type":849,"tag":864,"props":1469,"children":1470},{},[1471],{"type":854,"value":1361},{"type":854,"value":1473}," says. ",{"type":849,"tag":864,"props":1475,"children":1476},{},[1477],{"type":854,"value":1465},{"type":854,"value":1479}," is one document that every\ncall writes: use it for low-volume public actions such as a contact form, not\nfor busy ones.",{"type":849,"tag":850,"props":1481,"children":1482},{},[1483,1485,1490,1492],{"type":854,"value":1484},"A call over the limit fails with ",{"type":849,"tag":864,"props":1486,"children":1487},{},[1488],{"type":854,"value":1489},"RATE_LIMITED",{"type":854,"value":1491}," and the message\n",{"type":849,"tag":864,"props":1493,"children":1494},{},[1495],{"type":854,"value":1496},"Too many requests. Try again in N seconds.",{"type":849,"tag":850,"props":1498,"children":1499},{},[1500],{"type":854,"value":1501},"What counts:",{"type":849,"tag":1503,"props":1504,"children":1505},"ul",{},[1506,1532,1544,1556,1575,1580,1585,1590,1595],{"type":849,"tag":1507,"props":1508,"children":1509},"li",{},[1510,1512,1517,1518,1523,1525,1530],{"type":854,"value":1511},"The policy decides first. A call it denies (",{"type":849,"tag":864,"props":1513,"children":1514},{},[1515],{"type":854,"value":1516},"NOT_SIGNED_IN",{"type":854,"value":1117},{"type":849,"tag":864,"props":1519,"children":1520},{},[1521],{"type":854,"value":1522},"FORBIDDEN",{"type":854,"value":1524},",\n",{"type":849,"tag":864,"props":1526,"children":1527},{},[1528],{"type":854,"value":1529},"NOT_FOUND",{"type":854,"value":1531},") never takes a token.",{"type":849,"tag":1507,"props":1533,"children":1534},{},[1535,1537,1542],{"type":854,"value":1536},"The token is taken in the transaction of the call, before the handler. A\nmutation that fails gives its token back, so it does not count. A public\naction takes its token in its check (",{"type":849,"tag":864,"props":1538,"children":1539},{},[1540],{"type":854,"value":1541},"authorizeAction",{"type":854,"value":1543},"), before its handler\nruns; when the handler fails, the token stays spent: an action has no\ntransaction.",{"type":849,"tag":1507,"props":1545,"children":1546},{},[1547,1549,1554],{"type":854,"value":1548},"Every mutation built with ",{"type":849,"tag":864,"props":1550,"children":1551},{},[1552],{"type":854,"value":1553},"fns",{"type":854,"value":1555}," is limited, public or internal, and so is\nevery public action.",{"type":849,"tag":1507,"props":1557,"children":1558},{},[1559,1561,1566,1568,1573],{"type":854,"value":1560},"Work that a call runs or schedules is part of that call. A mutation that the\ncall runs with ",{"type":849,"tag":864,"props":1562,"children":1563},{},[1564],{"type":854,"value":1565},"ctx.runMutation",{"type":854,"value":1567},", or schedules with ",{"type":849,"tag":864,"props":1569,"children":1570},{},[1571],{"type":854,"value":1572},"ctx.scheduler",{"type":854,"value":1574},", takes no\nsecond token from a bucket that the call already took one from. The same is\ntrue for a mutation that an internal action runs, when the call scheduled or\nran that internal action. A mutation with another bucket (another action, or\nanother tenant) takes its own token.",{"type":849,"tag":1507,"props":1576,"children":1577},{},[1578],{"type":854,"value":1579},"So a request that schedules \"call a service, then save\" with the same action\npays once. Limit the request, not the save after the outside call: a save\nthat the limit refuses throws away the outside call's result.",{"type":849,"tag":1507,"props":1581,"children":1582},{},[1583],{"type":854,"value":1584},"A chain that schedules itself again pays once per request, not once per\nstep. It keeps running after an agent's turn ends, until it stops itself or\nthe agent's grant ends, so count its steps in the operation and stop at a\nbound.",{"type":849,"tag":1507,"props":1586,"children":1587},{},[1588],{"type":854,"value":1589},"Jobs and other system calls are never limited.",{"type":849,"tag":1507,"props":1591,"children":1592},{},[1593],{"type":854,"value":1594},"An agent's call is limited like a person's, with one exception: a request\nthat waits for approval takes no token, and neither does the run after the\nperson approves it. The person is the limit there. The request still counts\nagainst the agent's 60 writes a minute.",{"type":849,"tag":1507,"props":1596,"children":1597},{},[1598,1600,1605,1606,1610,1612,1616,1617,1621],{"type":854,"value":1599},"Wrong definitions throw when the policy is defined: an action that is not in\n",{"type":849,"tag":864,"props":1601,"children":1602},{},[1603],{"type":854,"value":1604},"actions",{"type":854,"value":1117},{"type":849,"tag":864,"props":1607,"children":1608},{},[1609],{"type":854,"value":1306},{"type":854,"value":1611}," below 1 or not whole, an unknown ",{"type":849,"tag":864,"props":1613,"children":1614},{},[1615],{"type":854,"value":1319},{"type":854,"value":1340},{"type":849,"tag":864,"props":1618,"children":1619},{},[1620],{"type":854,"value":1361},{"type":854,"value":1622},".",{"type":849,"tag":1624,"props":1625,"children":1627},"h3",{"id":1626},"rate-limits-convex-actions",[1628],{"type":854,"value":1629},"Convex actions",{"type":849,"tag":850,"props":1631,"children":1632},{},[1633,1635,1640,1642,1646],{"type":854,"value":1634},"A public action built with ",{"type":849,"tag":864,"props":1636,"children":1637},{},[1638],{"type":854,"value":1639},"action",{"type":854,"value":1641}," takes its token in its check, before the\nhandler runs. A mutation that the handler runs with ",{"type":849,"tag":864,"props":1643,"children":1644},{},[1645],{"type":854,"value":1565},{"type":854,"value":1647}," takes no\nsecond token from the same bucket. An action has no transaction, so a call\nthat fails after the check keeps its token spent.",{"type":849,"tag":850,"props":1649,"children":1650},{},[1651,1653,1657],{"type":854,"value":1652},"An internal action has no check of its own. Limit the action of the call that\nschedules it. A mutation that the internal action runs with ",{"type":849,"tag":864,"props":1654,"children":1655},{},[1656],{"type":854,"value":1565},{"type":854,"value":1658},"\ntakes no second token from a bucket that call already took one from, and takes\nits own token from any other bucket.",{"type":849,"tag":850,"props":1660,"children":1661},{},[1662,1664,1669],{"type":854,"value":1663},"A query cannot take a token. A ",{"type":849,"tag":864,"props":1665,"children":1666},{},[1667],{"type":854,"value":1668},"limits",{"type":854,"value":1670}," entry for an action that only a query\nuses throws when the query is defined: \"is limited, but no mutation uses it\".",{"type":849,"tag":1624,"props":1672,"children":1674},{"id":1673},"rate-limits-storage",[1675],{"type":854,"value":1676},"Storage",{"type":849,"tag":850,"props":1678,"children":1679},{},[1680,1682,1687,1689,1694,1696,1701],{"type":854,"value":1681},"Buckets live in the library table ",{"type":849,"tag":864,"props":1683,"children":1684},{},[1685],{"type":854,"value":1686},"rateLimits",{"type":854,"value":1688},": one small document per limited\nkey. Their number is bounded by users times limited actions, plus the tenants\nand actions with ",{"type":849,"tag":864,"props":1690,"children":1691},{},[1692],{"type":854,"value":1693},"per: 'tenant'",{"type":854,"value":1695},". If you use agents, ",{"type":849,"tag":864,"props":1697,"children":1698},{},[1699],{"type":854,"value":1700},"housekeeping",{"type":854,"value":1702}," deletes\nbuckets idle for more than a day. Without agents nothing deletes them; a full\nbucket costs one row.",{"type":849,"tag":1293,"props":1704,"children":1706},{"id":1705},"audit-log",[1707],{"type":854,"value":1708},"Audit log",{"type":849,"tag":850,"props":1710,"children":1711},{},[1712,1714,1719,1721,1725],{"type":854,"value":1713},"The log follows the action, whichever door the call came in by. After an\naudited mutation succeeds, the library writes one row to the ",{"type":849,"tag":864,"props":1715,"children":1716},{},[1717],{"type":854,"value":1718},"auditLog",{"type":854,"value":1720}," table,\nin the same transaction. Every audited operation writes its own row: a public\nmutation, an agent's tool call (also when a person approved it), or an internal\nmutation that was scheduled or run for a person or an agent. The one exception is\nan operation that an audited call runs with ",{"type":849,"tag":864,"props":1722,"children":1723},{},[1724],{"type":854,"value":1565},{"type":854,"value":1726},": its ids join the\nouter call's row. Under a call that is not audited, it writes its own row.",{"type":849,"tag":1365,"props":1728,"children":1729},{},[1730,1746],{"type":849,"tag":1369,"props":1731,"children":1732},{},[1733],{"type":849,"tag":1373,"props":1734,"children":1735},{},[1736,1741],{"type":849,"tag":1377,"props":1737,"children":1738},{},[1739],{"type":854,"value":1740},"Field",{"type":849,"tag":1377,"props":1742,"children":1743},{},[1744],{"type":854,"value":1745},"Content",{"type":849,"tag":1390,"props":1747,"children":1748},{},[1749,1797,1812,1828,1844],{"type":849,"tag":1373,"props":1750,"children":1751},{},[1752,1760],{"type":849,"tag":1397,"props":1753,"children":1754},{},[1755],{"type":849,"tag":864,"props":1756,"children":1757},{},[1758],{"type":854,"value":1759},"actor",{"type":849,"tag":1397,"props":1761,"children":1762},{},[1763,1765,1770,1772,1777,1778,1783,1785,1790,1791,1796],{"type":854,"value":1764},"Who: the same record as in ",{"type":849,"tag":864,"props":1766,"children":1767},{},[1768],{"type":854,"value":1769},"activity",{"type":854,"value":1771},". For an agent: door ",{"type":849,"tag":864,"props":1773,"children":1774},{},[1775],{"type":854,"value":1776},"mcp",{"type":854,"value":1340},{"type":849,"tag":864,"props":1779,"children":1780},{},[1781],{"type":854,"value":1782},"app",{"type":854,"value":1784},", with ",{"type":849,"tag":864,"props":1786,"children":1787},{},[1788],{"type":854,"value":1789},"clientId",{"type":854,"value":1340},{"type":849,"tag":864,"props":1792,"children":1793},{},[1794],{"type":854,"value":1795},"agent",{"type":854,"value":1622},{"type":849,"tag":1373,"props":1798,"children":1799},{},[1800,1807],{"type":849,"tag":1397,"props":1801,"children":1802},{},[1803],{"type":849,"tag":864,"props":1804,"children":1805},{},[1806],{"type":854,"value":1639},{"type":849,"tag":1397,"props":1808,"children":1809},{},[1810],{"type":854,"value":1811},"The policy action of the outer call.",{"type":849,"tag":1373,"props":1813,"children":1814},{},[1815,1823],{"type":849,"tag":1397,"props":1816,"children":1817},{},[1818],{"type":849,"tag":864,"props":1819,"children":1820},{},[1821],{"type":854,"value":1822},"tenantId",{"type":849,"tag":1397,"props":1824,"children":1825},{},[1826],{"type":854,"value":1827},"The call's tenant, when it has one.",{"type":849,"tag":1373,"props":1829,"children":1830},{},[1831,1839],{"type":849,"tag":1397,"props":1832,"children":1833},{},[1834],{"type":849,"tag":864,"props":1835,"children":1836},{},[1837],{"type":854,"value":1838},"rows",{"type":849,"tag":1397,"props":1840,"children":1841},{},[1842],{"type":854,"value":1843},"The ids the call inserted, patched, replaced or deleted, at most 50.",{"type":849,"tag":1373,"props":1845,"children":1846},{},[1847,1855],{"type":849,"tag":1397,"props":1848,"children":1849},{},[1850],{"type":849,"tag":864,"props":1851,"children":1852},{},[1853],{"type":854,"value":1854},"more",{"type":849,"tag":1397,"props":1856,"children":1857},{},[1858],{"type":854,"value":1859},"How many ids there were beyond the 50.",{"type":849,"tag":850,"props":1861,"children":1862},{},[1863,1865,1870,1872,1876],{"type":854,"value":1864},"The time is the row's ",{"type":849,"tag":864,"props":1866,"children":1867},{},[1868],{"type":854,"value":1869},"_creationTime",{"type":854,"value":1871},". The log holds no values, no arguments\nand no results: only ids. A call that fails writes nothing, because the whole\ntransaction rolls back. System actors (jobs) and signed-out visitors have no\nrow. ",{"type":849,"tag":864,"props":1873,"children":1874},{},[1875],{"type":854,"value":1769},{"type":854,"value":1877}," stays as it is: it is the agents' replay and history, not the\naudit log.",{"type":849,"tag":850,"props":1879,"children":1880},{},[1881,1883,1887,1889,1894,1896,1901,1903,1908,1910,1914,1916,1921,1923,1928],{"type":854,"value":1882},"A call with no tenant of its own writes a row without ",{"type":849,"tag":864,"props":1884,"children":1885},{},[1886],{"type":854,"value":1822},{"type":854,"value":1888},": a\n",{"type":849,"tag":864,"props":1890,"children":1891},{},[1892],{"type":854,"value":1893},"crossTenant",{"type":854,"value":1895}," call, such as a move of a row from one tenant to another, and a\ncall whose input names no tenant. ",{"type":849,"tag":864,"props":1897,"children":1898},{},[1899],{"type":854,"value":1900},"auditTrail(ctx, { tenantId })",{"type":854,"value":1902}," does not show\nthese rows, so neither tenant's trail lists the move. Find them by the person\nwho acted, in the ",{"type":849,"tag":864,"props":1904,"children":1905},{},[1906],{"type":854,"value":1907},"by_user",{"type":854,"value":1909}," index of ",{"type":849,"tag":864,"props":1911,"children":1912},{},[1913],{"type":854,"value":1718},{"type":854,"value":1915}," (",{"type":849,"tag":864,"props":1917,"children":1918},{},[1919],{"type":854,"value":1920},"actor.userId",{"type":854,"value":1922},"). Operations\ncannot read library tables: read the index in the Convex dashboard, or in a\nfunction built with ",{"type":849,"tag":864,"props":1924,"children":1925},{},[1926],{"type":854,"value":1927},"trusted",{"type":854,"value":1622},{"type":849,"tag":850,"props":1930,"children":1931},{},[1932,1937,1939,1944,1946,1950,1951,1955,1956,1960],{"type":849,"tag":864,"props":1933,"children":1934},{},[1935],{"type":854,"value":1936},"audit",{"type":854,"value":1938}," takes the same patterns as ",{"type":849,"tag":864,"props":1940,"children":1941},{},[1942],{"type":854,"value":1943},"roles",{"type":854,"value":1945},": ",{"type":849,"tag":864,"props":1947,"children":1948},{},[1949],{"type":854,"value":1269},{"type":854,"value":1524},{"type":849,"tag":864,"props":1952,"children":1953},{},[1954],{"type":854,"value":1278},{"type":854,"value":1340},{"type":849,"tag":864,"props":1957,"children":1958},{},[1959],{"type":854,"value":1028},{"type":854,"value":1961},". A pattern that matches no action throws when the policy\nis defined.",{"type":849,"tag":1624,"props":1963,"children":1965},{"id":1964},"audit-log-reading-the-log",[1966],{"type":854,"value":1967},"Reading the log",{"type":849,"tag":850,"props":1969,"children":1970},{},[1971,1973,1978],{"type":854,"value":1972},"The library does not decide who may read it. Write an operation with its own\naction and call ",{"type":849,"tag":864,"props":1974,"children":1975},{},[1976],{"type":854,"value":1977},"auditTrail",{"type":854,"value":1097},{"type":849,"tag":857,"props":1980,"children":1981},{"language":859,"class":861},[1982],{"type":849,"tag":864,"props":1983,"children":1984},{"class":866},[1985,2016,2017,2020,2021,2050,2051,2068,2069,2129,2130,2156,2157,2247,2248],{"type":849,"tag":869,"props":1986,"children":1987},{"class":871,"style":872},[1988,1993,1997,2001,2006,2011],{"type":849,"tag":869,"props":1989,"children":1990},{"style":876},[1991],{"type":854,"value":1992},"import",{"type":849,"tag":869,"props":1994,"children":1995},{"style":894},[1996],{"type":854,"value":1014},{"type":849,"tag":869,"props":1998,"children":1999},{"style":916},[2000],{"type":854,"value":1977},{"type":849,"tag":869,"props":2002,"children":2003},{"style":894},[2004],{"type":854,"value":2005}," } ",{"type":849,"tag":869,"props":2007,"children":2008},{"style":876},[2009],{"type":854,"value":2010},"from",{"type":849,"tag":869,"props":2012,"children":2013},{"style":931},[2014],{"type":854,"value":2015}," '@lupinum\u002Fbetter-convex-functions'",{"type":854,"value":910},{"type":849,"tag":869,"props":2018,"children":2019},{"class":871,"style":872},[],{"type":854,"value":910},{"type":849,"tag":869,"props":2022,"children":2023},{"class":871,"style":872},[2024,2028,2032,2037,2041,2046],{"type":849,"tag":869,"props":2025,"children":2026},{"style":876},[2027],{"type":854,"value":879},{"type":849,"tag":869,"props":2029,"children":2030},{"style":882},[2031],{"type":854,"value":885},{"type":849,"tag":869,"props":2033,"children":2034},{"style":888},[2035],{"type":854,"value":2036}," trail",{"type":849,"tag":869,"props":2038,"children":2039},{"style":894},[2040],{"type":854,"value":897},{"type":849,"tag":869,"props":2042,"children":2043},{"style":900},[2044],{"type":854,"value":2045},"query",{"type":849,"tag":869,"props":2047,"children":2048},{"style":894},[2049],{"type":854,"value":908},{"type":854,"value":910},{"type":849,"tag":869,"props":2052,"children":2053},{"class":871,"style":872},[2054,2059,2064],{"type":849,"tag":869,"props":2055,"children":2056},{"style":916},[2057],{"type":854,"value":2058},"  action:",{"type":849,"tag":869,"props":2060,"children":2061},{"style":931},[2062],{"type":854,"value":2063}," 'audit.read'",{"type":849,"tag":869,"props":2065,"children":2066},{"style":894},[2067],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2070,"children":2071},{"class":871,"style":872},[2072,2077,2081,2086,2091,2095,2100,2105,2110,2115,2120,2125],{"type":849,"tag":869,"props":2073,"children":2074},{"style":916},[2075],{"type":854,"value":2076},"  args:",{"type":849,"tag":869,"props":2078,"children":2079},{"style":894},[2080],{"type":854,"value":1014},{"type":849,"tag":869,"props":2082,"children":2083},{"style":916},[2084],{"type":854,"value":2085},"orgId:",{"type":849,"tag":869,"props":2087,"children":2088},{"style":916},[2089],{"type":854,"value":2090}," v",{"type":849,"tag":869,"props":2092,"children":2093},{"style":894},[2094],{"type":854,"value":1622},{"type":849,"tag":869,"props":2096,"children":2097},{"style":900},[2098],{"type":854,"value":2099},"id",{"type":849,"tag":869,"props":2101,"children":2102},{"style":894},[2103],{"type":854,"value":2104},"(",{"type":849,"tag":869,"props":2106,"children":2107},{"style":931},[2108],{"type":854,"value":2109},"'orgs'",{"type":849,"tag":869,"props":2111,"children":2112},{"style":894},[2113],{"type":854,"value":2114},"), ",{"type":849,"tag":869,"props":2116,"children":2117},{"style":916},[2118],{"type":854,"value":2119},"paginationOpts:",{"type":849,"tag":869,"props":2121,"children":2122},{"style":916},[2123],{"type":854,"value":2124}," paginationOptsValidator",{"type":849,"tag":869,"props":2126,"children":2127},{"style":894},[2128],{"type":854,"value":1132},{"type":854,"value":910},{"type":849,"tag":869,"props":2131,"children":2132},{"class":871,"style":872},[2133,2138,2142,2146,2151],{"type":849,"tag":869,"props":2134,"children":2135},{"style":916},[2136],{"type":854,"value":2137},"  returns:",{"type":849,"tag":869,"props":2139,"children":2140},{"style":916},[2141],{"type":854,"value":2090},{"type":849,"tag":869,"props":2143,"children":2144},{"style":894},[2145],{"type":854,"value":1622},{"type":849,"tag":869,"props":2147,"children":2148},{"style":900},[2149],{"type":854,"value":2150},"any",{"type":849,"tag":869,"props":2152,"children":2153},{"style":894},[2154],{"type":854,"value":2155},"(),",{"type":854,"value":910},{"type":849,"tag":869,"props":2158,"children":2159},{"class":871,"style":872},[2160,2165,2169,2173,2178,2183,2188,2192,2197,2202,2207,2212,2216,2220,2224,2229,2234,2238,2242],{"type":849,"tag":869,"props":2161,"children":2162},{"style":900},[2163],{"type":854,"value":2164},"  handler",{"type":849,"tag":869,"props":2166,"children":2167},{"style":916},[2168],{"type":854,"value":1097},{"type":849,"tag":869,"props":2170,"children":2171},{"style":894},[2172],{"type":854,"value":1915},{"type":849,"tag":869,"props":2174,"children":2175},{"style":916},[2176],{"type":854,"value":2177},"ctx",{"type":849,"tag":869,"props":2179,"children":2180},{"style":894},[2181],{"type":854,"value":2182},", { ",{"type":849,"tag":869,"props":2184,"children":2185},{"style":916},[2186],{"type":854,"value":2187},"orgId",{"type":849,"tag":869,"props":2189,"children":2190},{"style":894},[2191],{"type":854,"value":1117},{"type":849,"tag":869,"props":2193,"children":2194},{"style":916},[2195],{"type":854,"value":2196},"paginationOpts",{"type":849,"tag":869,"props":2198,"children":2199},{"style":894},[2200],{"type":854,"value":2201}," }) ",{"type":849,"tag":869,"props":2203,"children":2204},{"style":882},[2205],{"type":854,"value":2206},"=>",{"type":849,"tag":869,"props":2208,"children":2209},{"style":900},[2210],{"type":854,"value":2211}," auditTrail",{"type":849,"tag":869,"props":2213,"children":2214},{"style":894},[2215],{"type":854,"value":2104},{"type":849,"tag":869,"props":2217,"children":2218},{"style":916},[2219],{"type":854,"value":2177},{"type":849,"tag":869,"props":2221,"children":2222},{"style":894},[2223],{"type":854,"value":2182},{"type":849,"tag":869,"props":2225,"children":2226},{"style":916},[2227],{"type":854,"value":2228},"tenantId:",{"type":849,"tag":869,"props":2230,"children":2231},{"style":916},[2232],{"type":854,"value":2233}," orgId",{"type":849,"tag":869,"props":2235,"children":2236},{"style":894},[2237],{"type":854,"value":1117},{"type":849,"tag":869,"props":2239,"children":2240},{"style":916},[2241],{"type":854,"value":2196},{"type":849,"tag":869,"props":2243,"children":2244},{"style":894},[2245],{"type":854,"value":2246}," }),",{"type":854,"value":910},{"type":849,"tag":869,"props":2249,"children":2250},{"class":871,"style":872},[2251],{"type":849,"tag":869,"props":2252,"children":2253},{"style":894},[2254],{"type":854,"value":1291},{"type":849,"tag":850,"props":2256,"children":2257},{},[2258,2260,2266],{"type":854,"value":2259},"It returns one page of the tenant's rows, newest first. No retention is\napplied: the log is meant to last. When a person deletes their account,\n",{"type":849,"tag":2261,"props":2262,"children":2263},"a",{"href":313},[2264],{"type":854,"value":2265},"erasure",{"type":854,"value":2267}," removes their id from\nthe rows and keeps the rows themselves.",{"type":849,"tag":1293,"props":2269,"children":2271},{"id":2270},"call-events",[2272],{"type":854,"value":2273},"Call events",{"type":849,"tag":850,"props":2275,"children":2276},{},[2277,2279,2284,2286,2292,2294,2298],{"type":854,"value":2278},"Turn on ",{"type":849,"tag":864,"props":2280,"children":2281},{},[2282],{"type":854,"value":2283},"observe",{"type":854,"value":2285}," to write one line on the console for each call. A\n",{"type":849,"tag":2261,"props":2287,"children":2289},{"href":2288},"https:\u002F\u002Fdocs.convex.dev\u002Fproduction\u002Fintegrations\u002Flog-streams",[2290],{"type":854,"value":2291},"Convex log stream",{"type":854,"value":2293},"\n(Convex Pro plan) sends the lines to your log service.\n",{"type":849,"tag":2261,"props":2295,"children":2296},{"href":771},[2297],{"type":854,"value":766},{"type":854,"value":2299}," shows how to connect\none and find a call.",{"type":849,"tag":857,"props":2301,"children":2303},{"language":859,"filename":2302,"class":861},"convex\u002Ffunctions.ts",[2304],{"type":849,"tag":864,"props":2305,"children":2306},{"class":866},[2307,2336,2337,2349,2350,2362,2363,2375,2376,2388,2389,2401,2402,2419,2420],{"type":849,"tag":869,"props":2308,"children":2309},{"class":871,"style":872},[2310,2314,2318,2323,2327,2332],{"type":849,"tag":869,"props":2311,"children":2312},{"style":876},[2313],{"type":854,"value":879},{"type":849,"tag":869,"props":2315,"children":2316},{"style":882},[2317],{"type":854,"value":885},{"type":849,"tag":869,"props":2319,"children":2320},{"style":888},[2321],{"type":854,"value":2322}," fns",{"type":849,"tag":869,"props":2324,"children":2325},{"style":894},[2326],{"type":854,"value":897},{"type":849,"tag":869,"props":2328,"children":2329},{"style":900},[2330],{"type":854,"value":2331},"defineFunctions",{"type":849,"tag":869,"props":2333,"children":2334},{"style":894},[2335],{"type":854,"value":908},{"type":854,"value":910},{"type":849,"tag":869,"props":2338,"children":2339},{"class":871,"style":872},[2340,2345],{"type":849,"tag":869,"props":2341,"children":2342},{"style":916},[2343],{"type":854,"value":2344},"  auth",{"type":849,"tag":869,"props":2346,"children":2347},{"style":894},[2348],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2351,"children":2352},{"class":871,"style":872},[2353,2358],{"type":849,"tag":869,"props":2354,"children":2355},{"style":916},[2356],{"type":854,"value":2357},"  policy",{"type":849,"tag":869,"props":2359,"children":2360},{"style":894},[2361],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2364,"children":2365},{"class":871,"style":872},[2366,2371],{"type":849,"tag":869,"props":2367,"children":2368},{"style":916},[2369],{"type":854,"value":2370},"  user",{"type":849,"tag":869,"props":2372,"children":2373},{"style":894},[2374],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2377,"children":2378},{"class":871,"style":872},[2379,2384],{"type":849,"tag":869,"props":2380,"children":2381},{"style":916},[2382],{"type":854,"value":2383},"  roleOf",{"type":849,"tag":869,"props":2385,"children":2386},{"style":894},[2387],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2390,"children":2391},{"class":871,"style":872},[2392,2397],{"type":849,"tag":869,"props":2393,"children":2394},{"style":916},[2395],{"type":854,"value":2396},"  rules",{"type":849,"tag":869,"props":2398,"children":2399},{"style":894},[2400],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2403,"children":2404},{"class":871,"style":872},[2405,2410,2415],{"type":849,"tag":869,"props":2406,"children":2407},{"style":916},[2408],{"type":854,"value":2409},"  observe:",{"type":849,"tag":869,"props":2411,"children":2412},{"style":882},[2413],{"type":854,"value":2414}," true",{"type":849,"tag":869,"props":2416,"children":2417},{"style":894},[2418],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2421,"children":2422},{"class":871,"style":872},[2423],{"type":849,"tag":869,"props":2424,"children":2425},{"style":894},[2426],{"type":854,"value":1291},{"type":849,"tag":850,"props":2428,"children":2429},{},[2430],{"type":854,"value":2431},"Each call that reaches your function writes one JSON line:",{"type":849,"tag":857,"props":2433,"children":2435},{"language":2434,"class":861},"json",[2436],{"type":849,"tag":864,"props":2437,"children":2439},{"class":2438},"language-json",[2440,2448,2449,2471,2472,2493,2494,2515,2516,2601,2602,2623,2624,2645,2646,2663,2664],{"type":849,"tag":869,"props":2441,"children":2442},{"class":871,"style":872},[2443],{"type":849,"tag":869,"props":2444,"children":2445},{"style":894},[2446],{"type":854,"value":2447},"{",{"type":854,"value":910},{"type":849,"tag":869,"props":2450,"children":2451},{"class":871,"style":872},[2452,2458,2462,2467],{"type":849,"tag":869,"props":2453,"children":2455},{"style":2454},"color:#0451A5;--shiki-dark:#9CDCFE",[2456],{"type":854,"value":2457},"  \"type\"",{"type":849,"tag":869,"props":2459,"children":2460},{"style":894},[2461],{"type":854,"value":1945},{"type":849,"tag":869,"props":2463,"children":2464},{"style":931},[2465],{"type":854,"value":2466},"\"better-convex.call\"",{"type":849,"tag":869,"props":2468,"children":2469},{"style":894},[2470],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2473,"children":2474},{"class":871,"style":872},[2475,2480,2484,2489],{"type":849,"tag":869,"props":2476,"children":2477},{"style":2454},[2478],{"type":854,"value":2479},"  \"action\"",{"type":849,"tag":869,"props":2481,"children":2482},{"style":894},[2483],{"type":854,"value":1945},{"type":849,"tag":869,"props":2485,"children":2486},{"style":931},[2487],{"type":854,"value":2488},"\"projects.archive\"",{"type":849,"tag":869,"props":2490,"children":2491},{"style":894},[2492],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2495,"children":2496},{"class":871,"style":872},[2497,2502,2506,2511],{"type":849,"tag":869,"props":2498,"children":2499},{"style":2454},[2500],{"type":854,"value":2501},"  \"kind\"",{"type":849,"tag":869,"props":2503,"children":2504},{"style":894},[2505],{"type":854,"value":1945},{"type":849,"tag":869,"props":2507,"children":2508},{"style":931},[2509],{"type":854,"value":2510},"\"mutation\"",{"type":849,"tag":869,"props":2512,"children":2513},{"style":894},[2514],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2517,"children":2518},{"class":871,"style":872},[2519,2524,2529,2534,2538,2543,2547,2552,2556,2561,2565,2570,2574,2579,2583,2588,2592,2597],{"type":849,"tag":869,"props":2520,"children":2521},{"style":2454},[2522],{"type":854,"value":2523},"  \"actor\"",{"type":849,"tag":869,"props":2525,"children":2526},{"style":894},[2527],{"type":854,"value":2528},": { ",{"type":849,"tag":869,"props":2530,"children":2531},{"style":2454},[2532],{"type":854,"value":2533},"\"key\"",{"type":849,"tag":869,"props":2535,"children":2536},{"style":894},[2537],{"type":854,"value":1945},{"type":849,"tag":869,"props":2539,"children":2540},{"style":931},[2541],{"type":854,"value":2542},"\"person:k57…\"",{"type":849,"tag":869,"props":2544,"children":2545},{"style":894},[2546],{"type":854,"value":1117},{"type":849,"tag":869,"props":2548,"children":2549},{"style":2454},[2550],{"type":854,"value":2551},"\"kind\"",{"type":849,"tag":869,"props":2553,"children":2554},{"style":894},[2555],{"type":854,"value":1945},{"type":849,"tag":869,"props":2557,"children":2558},{"style":931},[2559],{"type":854,"value":2560},"\"person\"",{"type":849,"tag":869,"props":2562,"children":2563},{"style":894},[2564],{"type":854,"value":1117},{"type":849,"tag":869,"props":2566,"children":2567},{"style":2454},[2568],{"type":854,"value":2569},"\"door\"",{"type":849,"tag":869,"props":2571,"children":2572},{"style":894},[2573],{"type":854,"value":1945},{"type":849,"tag":869,"props":2575,"children":2576},{"style":931},[2577],{"type":854,"value":2578},"\"web\"",{"type":849,"tag":869,"props":2580,"children":2581},{"style":894},[2582],{"type":854,"value":1117},{"type":849,"tag":869,"props":2584,"children":2585},{"style":2454},[2586],{"type":854,"value":2587},"\"userId\"",{"type":849,"tag":869,"props":2589,"children":2590},{"style":894},[2591],{"type":854,"value":1945},{"type":849,"tag":869,"props":2593,"children":2594},{"style":931},[2595],{"type":854,"value":2596},"\"k57…\"",{"type":849,"tag":869,"props":2598,"children":2599},{"style":894},[2600],{"type":854,"value":1132},{"type":854,"value":910},{"type":849,"tag":869,"props":2603,"children":2604},{"class":871,"style":872},[2605,2610,2614,2619],{"type":849,"tag":869,"props":2606,"children":2607},{"style":2454},[2608],{"type":854,"value":2609},"  \"tenant\"",{"type":849,"tag":869,"props":2611,"children":2612},{"style":894},[2613],{"type":854,"value":1945},{"type":849,"tag":869,"props":2615,"children":2616},{"style":931},[2617],{"type":854,"value":2618},"\"j97…\"",{"type":849,"tag":869,"props":2620,"children":2621},{"style":894},[2622],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2625,"children":2626},{"class":871,"style":872},[2627,2632,2636,2641],{"type":849,"tag":869,"props":2628,"children":2629},{"style":2454},[2630],{"type":854,"value":2631},"  \"outcome\"",{"type":849,"tag":869,"props":2633,"children":2634},{"style":894},[2635],{"type":854,"value":1945},{"type":849,"tag":869,"props":2637,"children":2638},{"style":931},[2639],{"type":854,"value":2640},"\"error\"",{"type":849,"tag":869,"props":2642,"children":2643},{"style":894},[2644],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":2647,"children":2648},{"class":871,"style":872},[2649,2654,2658],{"type":849,"tag":869,"props":2650,"children":2651},{"style":2454},[2652],{"type":854,"value":2653},"  \"code\"",{"type":849,"tag":869,"props":2655,"children":2656},{"style":894},[2657],{"type":854,"value":1945},{"type":849,"tag":869,"props":2659,"children":2660},{"style":931},[2661],{"type":854,"value":2662},"\"FORBIDDEN\"",{"type":854,"value":910},{"type":849,"tag":869,"props":2665,"children":2666},{"class":871,"style":872},[2667],{"type":849,"tag":869,"props":2668,"children":2669},{"style":894},[2670],{"type":854,"value":2671},"}",{"type":849,"tag":1365,"props":2673,"children":2674},{},[2675,2689],{"type":849,"tag":1369,"props":2676,"children":2677},{},[2678],{"type":849,"tag":1373,"props":2679,"children":2680},{},[2681,2685],{"type":849,"tag":1377,"props":2682,"children":2683},{},[2684],{"type":854,"value":1740},{"type":849,"tag":1377,"props":2686,"children":2687},{},[2688],{"type":854,"value":1745},{"type":849,"tag":1390,"props":2690,"children":2691},{},[2692,2720,2750,2792,2813,2828,2869,2898,2914,2930,2946],{"type":849,"tag":1373,"props":2693,"children":2694},{},[2695,2702],{"type":849,"tag":1397,"props":2696,"children":2697},{},[2698],{"type":849,"tag":864,"props":2699,"children":2700},{},[2701],{"type":854,"value":1639},{"type":849,"tag":1397,"props":2703,"children":2704},{},[2705,2707,2712,2714,2719],{"type":854,"value":2706},"The policy action. A job writes ",{"type":849,"tag":864,"props":2708,"children":2709},{},[2710],{"type":854,"value":2711},"job.\u003Cname>",{"type":854,"value":2713},". An internal action has none. The agents package's own functions write ",{"type":849,"tag":864,"props":2715,"children":2716},{},[2717],{"type":854,"value":2718},"agents.\u003Cname>",{"type":854,"value":1622},{"type":849,"tag":1373,"props":2721,"children":2722},{},[2723,2731],{"type":849,"tag":1397,"props":2724,"children":2725},{},[2726],{"type":849,"tag":864,"props":2727,"children":2728},{},[2729],{"type":854,"value":2730},"kind",{"type":849,"tag":1397,"props":2732,"children":2733},{},[2734,2738,2739,2744,2745,2749],{"type":849,"tag":864,"props":2735,"children":2736},{},[2737],{"type":854,"value":2045},{"type":854,"value":1117},{"type":849,"tag":864,"props":2740,"children":2741},{},[2742],{"type":854,"value":2743},"mutation",{"type":854,"value":1340},{"type":849,"tag":864,"props":2746,"children":2747},{},[2748],{"type":854,"value":1639},{"type":854,"value":1622},{"type":849,"tag":1373,"props":2751,"children":2752},{},[2753,2760],{"type":849,"tag":1397,"props":2754,"children":2755},{},[2756],{"type":849,"tag":864,"props":2757,"children":2758},{},[2759],{"type":854,"value":1759},{"type":849,"tag":1397,"props":2761,"children":2762},{},[2763,2765,2769,2771,2776,2778,2783,2785,2790],{"type":854,"value":2764},"The same record as in ",{"type":849,"tag":864,"props":2766,"children":2767},{},[2768],{"type":854,"value":1718},{"type":854,"value":2770},", or ",{"type":849,"tag":864,"props":2772,"children":2773},{},[2774],{"type":854,"value":2775},"{ \"kind\": \"visitor\" }",{"type":854,"value":2777},". An internal action shows only the kind it acts for, such as ",{"type":849,"tag":864,"props":2779,"children":2780},{},[2781],{"type":854,"value":2782},"{ \"kind\": \"person\" }",{"type":854,"value":2784},", without ",{"type":849,"tag":864,"props":2786,"children":2787},{},[2788],{"type":854,"value":2789},"key",{"type":854,"value":2791},". Missing when the call failed before it knew the caller.",{"type":849,"tag":1373,"props":2793,"children":2794},{},[2795,2802],{"type":849,"tag":1397,"props":2796,"children":2797},{},[2798],{"type":849,"tag":864,"props":2799,"children":2800},{},[2801],{"type":854,"value":1795},{"type":849,"tag":1397,"props":2803,"children":2804},{},[2805,2807,2811],{"type":854,"value":2806},"The key of the agent whose request a person approved or declined. ",{"type":849,"tag":864,"props":2808,"children":2809},{},[2810],{"type":854,"value":1759},{"type":854,"value":2812}," is that person.",{"type":849,"tag":1373,"props":2814,"children":2815},{},[2816,2824],{"type":849,"tag":1397,"props":2817,"children":2818},{},[2819],{"type":849,"tag":864,"props":2820,"children":2821},{},[2822],{"type":854,"value":2823},"tenant",{"type":849,"tag":1397,"props":2825,"children":2826},{},[2827],{"type":854,"value":1827},{"type":849,"tag":1373,"props":2829,"children":2830},{},[2831,2839],{"type":849,"tag":1397,"props":2832,"children":2833},{},[2834],{"type":849,"tag":864,"props":2835,"children":2836},{},[2837],{"type":854,"value":2838},"outcome",{"type":849,"tag":1397,"props":2840,"children":2841},{},[2842,2847,2848,2853,2855,2860,2862,2867],{"type":849,"tag":864,"props":2843,"children":2844},{},[2845],{"type":854,"value":2846},"ok",{"type":854,"value":1340},{"type":849,"tag":864,"props":2849,"children":2850},{},[2851],{"type":854,"value":2852},"error",{"type":854,"value":2854},". For an agent's request: ",{"type":849,"tag":864,"props":2856,"children":2857},{},[2858],{"type":854,"value":2859},"pending",{"type":854,"value":2861}," while it waits for a person, ",{"type":849,"tag":864,"props":2863,"children":2864},{},[2865],{"type":854,"value":2866},"declined",{"type":854,"value":2868}," when a person declined it.",{"type":849,"tag":1373,"props":2870,"children":2871},{},[2872,2879],{"type":849,"tag":1397,"props":2873,"children":2874},{},[2875],{"type":849,"tag":864,"props":2876,"children":2877},{},[2878],{"type":854,"value":864},{"type":849,"tag":1397,"props":2880,"children":2881},{},[2882,2884,2889,2891,2896],{"type":854,"value":2883},"The ",{"type":849,"tag":864,"props":2885,"children":2886},{},[2887],{"type":854,"value":2888},"data.code",{"type":854,"value":2890}," of the ",{"type":849,"tag":864,"props":2892,"children":2893},{},[2894],{"type":854,"value":2895},"ConvexError",{"type":854,"value":2897},": a library code or your app's own. A crash has none.",{"type":849,"tag":1373,"props":2899,"children":2900},{},[2901,2909],{"type":849,"tag":1397,"props":2902,"children":2903},{},[2904],{"type":849,"tag":864,"props":2905,"children":2906},{},[2907],{"type":854,"value":2908},"written",{"type":849,"tag":1397,"props":2910,"children":2911},{},[2912],{"type":854,"value":2913},"How many rows a call that succeeded inserted, patched, replaced or deleted. Missing for work that runs as the system, such as a job: its writes are not counted.",{"type":849,"tag":1373,"props":2915,"children":2916},{},[2917,2925],{"type":849,"tag":1397,"props":2918,"children":2919},{},[2920],{"type":849,"tag":864,"props":2921,"children":2922},{},[2923],{"type":854,"value":2924},"approval",{"type":849,"tag":1397,"props":2926,"children":2927},{},[2928],{"type":854,"value":2929},"The approval request an agent's call made, or the one its work runs under.",{"type":849,"tag":1373,"props":2931,"children":2932},{},[2933,2941],{"type":849,"tag":1397,"props":2934,"children":2935},{},[2936],{"type":849,"tag":864,"props":2937,"children":2938},{},[2939],{"type":854,"value":2940},"trace",{"type":849,"tag":1397,"props":2942,"children":2943},{},[2944],{"type":854,"value":2945},"The ID of the chain of calls this call belongs to (see below). Missing on a call that starts no other work.",{"type":849,"tag":1373,"props":2947,"children":2948},{},[2949,2957],{"type":849,"tag":1397,"props":2950,"children":2951},{},[2952],{"type":849,"tag":864,"props":2953,"children":2954},{},[2955],{"type":854,"value":2956},"fields",{"type":849,"tag":1397,"props":2958,"children":2959},{},[2960,2962,2967],{"type":854,"value":2961},"What the handler added with ",{"type":849,"tag":864,"props":2963,"children":2964},{},[2965],{"type":854,"value":2966},"ctx.log.set",{"type":854,"value":2968},". A value JSON cannot hold, such as a BigInt, is left out.",{"type":849,"tag":850,"props":2970,"children":2971},{},[2972],{"type":854,"value":2973},"A query writes a line only when it fails, because Convex runs a query again\neach time the rows it read change. A mutation that fails also writes its line:\nits writes roll back, but the console line stays.",{"type":849,"tag":850,"props":2975,"children":2976},{},[2977,2979,2984,2985,2989,2991,2995,2997,3001,3003,3008],{"type":854,"value":2978},"One transaction writes one line. An internal operation that a query or mutation\nruns with ",{"type":849,"tag":864,"props":2980,"children":2981},{},[2982],{"type":854,"value":2983},"ctx.runQuery",{"type":854,"value":1340},{"type":849,"tag":864,"props":2986,"children":2987},{},[2988],{"type":854,"value":1565},{"type":854,"value":2990}," is part of the caller's\ntransaction, so it writes no line of its own. The caller's line counts its rows\nin ",{"type":849,"tag":864,"props":2992,"children":2993},{},[2994],{"type":854,"value":2908},{"type":854,"value":2996}," and shows its ",{"type":849,"tag":864,"props":2998,"children":2999},{},[3000],{"type":854,"value":2966},{"type":854,"value":3002}," fields. Calls from an action and\nscheduled work run on their own and write their own lines. A job argument\ncannot be named ",{"type":849,"tag":864,"props":3004,"children":3005},{},[3006],{"type":854,"value":3007},"inner",{"type":854,"value":1622},{"type":849,"tag":850,"props":3010,"children":3011},{},[3012,3014,3018],{"type":854,"value":3013},"When the caller catches the failure of such an inner call, its line shows only\nits own outcome: ",{"type":849,"tag":864,"props":3015,"children":3016},{},[3017],{"type":854,"value":2846},{"type":854,"value":3019},", without the inner call's code.",{"type":849,"tag":850,"props":3021,"children":3022},{},[3023,3027,3029,3034,3036,3041],{"type":849,"tag":864,"props":3024,"children":3025},{},[3026],{"type":854,"value":2846},{"type":854,"value":3028}," means that your handler finished. Convex can still fail the call after\nthat, when the result does not match ",{"type":849,"tag":864,"props":3030,"children":3031},{},[3032],{"type":854,"value":3033},"returns",{"type":854,"value":3035},". Convex also refuses arguments\nthat do not match ",{"type":849,"tag":864,"props":3037,"children":3038},{},[3039],{"type":854,"value":3040},"args",{"type":854,"value":3042}," before your handler runs, and then no line is written.\nConvex's own event for the same request ID has the final status.",{"type":849,"tag":850,"props":3044,"children":3045},{},[3046],{"type":854,"value":3047},"A public action that its policy check refuses also writes a line, with the\nactor and the tenant of the call.",{"type":849,"tag":1624,"props":3049,"children":3051},{"id":3050},"call-events-agents",[3052],{"type":854,"value":3053},"Agents",{"type":849,"tag":850,"props":3055,"children":3056},{},[3057,3059,3064,3066,3070,3072,3077,3079,3083,3085,3090],{"type":854,"value":3058},"With the ",{"type":849,"tag":2261,"props":3060,"children":3061},{"href":441},[3062],{"type":854,"value":3063},"agents package",{"type":854,"value":3065},", each tool\ncall writes a line with the agent as ",{"type":849,"tag":864,"props":3067,"children":3068},{},[3069],{"type":854,"value":1759},{"type":854,"value":3071},", except a query tool that\nsucceeds, like any query. A call the library refuses before\nyour function runs writes one too: a revoked connection (",{"type":849,"tag":864,"props":3073,"children":3074},{},[3075],{"type":854,"value":3076},"AGENT_DISABLED",{"type":854,"value":3078},"), a\nconnection over its limit (",{"type":849,"tag":864,"props":3080,"children":3081},{},[3082],{"type":854,"value":1489},{"type":854,"value":3084},") or input that does not fit\n(",{"type":849,"tag":864,"props":3086,"children":3087},{},[3088],{"type":854,"value":3089},"INVALID_INPUT",{"type":854,"value":3091},").",{"type":849,"tag":850,"props":3093,"children":3094},{},[3095,3097,3102,3104,3108],{"type":854,"value":3096},"A tool call that needs a person's approval writes ",{"type":849,"tag":864,"props":3098,"children":3099},{},[3100],{"type":854,"value":3101},"outcome: \"pending\"",{"type":854,"value":3103}," and the\nrequest in ",{"type":849,"tag":864,"props":3105,"children":3106},{},[3107],{"type":854,"value":2924},{"type":854,"value":3109},". The person's decision writes the next line for the same\nrequest, with the request's action:",{"type":849,"tag":857,"props":3111,"children":3112},{"language":2434,"class":861},[3113],{"type":849,"tag":864,"props":3114,"children":3115},{"class":2438},[3116,3123,3124,3143,3144,3163,3164,3183,3184,3259,3260,3281,3282,3301,3302,3322,3323,3343,3344,3361,3362],{"type":849,"tag":869,"props":3117,"children":3118},{"class":871,"style":872},[3119],{"type":849,"tag":869,"props":3120,"children":3121},{"style":894},[3122],{"type":854,"value":2447},{"type":854,"value":910},{"type":849,"tag":869,"props":3125,"children":3126},{"class":871,"style":872},[3127,3131,3135,3139],{"type":849,"tag":869,"props":3128,"children":3129},{"style":2454},[3130],{"type":854,"value":2457},{"type":849,"tag":869,"props":3132,"children":3133},{"style":894},[3134],{"type":854,"value":1945},{"type":849,"tag":869,"props":3136,"children":3137},{"style":931},[3138],{"type":854,"value":2466},{"type":849,"tag":869,"props":3140,"children":3141},{"style":894},[3142],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":3145,"children":3146},{"class":871,"style":872},[3147,3151,3155,3159],{"type":849,"tag":869,"props":3148,"children":3149},{"style":2454},[3150],{"type":854,"value":2479},{"type":849,"tag":869,"props":3152,"children":3153},{"style":894},[3154],{"type":854,"value":1945},{"type":849,"tag":869,"props":3156,"children":3157},{"style":931},[3158],{"type":854,"value":2488},{"type":849,"tag":869,"props":3160,"children":3161},{"style":894},[3162],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":3165,"children":3166},{"class":871,"style":872},[3167,3171,3175,3179],{"type":849,"tag":869,"props":3168,"children":3169},{"style":2454},[3170],{"type":854,"value":2501},{"type":849,"tag":869,"props":3172,"children":3173},{"style":894},[3174],{"type":854,"value":1945},{"type":849,"tag":869,"props":3176,"children":3177},{"style":931},[3178],{"type":854,"value":2510},{"type":849,"tag":869,"props":3180,"children":3181},{"style":894},[3182],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":3185,"children":3186},{"class":871,"style":872},[3187,3191,3195,3199,3203,3207,3211,3215,3219,3223,3227,3231,3235,3239,3243,3247,3251,3255],{"type":849,"tag":869,"props":3188,"children":3189},{"style":2454},[3190],{"type":854,"value":2523},{"type":849,"tag":869,"props":3192,"children":3193},{"style":894},[3194],{"type":854,"value":2528},{"type":849,"tag":869,"props":3196,"children":3197},{"style":2454},[3198],{"type":854,"value":2533},{"type":849,"tag":869,"props":3200,"children":3201},{"style":894},[3202],{"type":854,"value":1945},{"type":849,"tag":869,"props":3204,"children":3205},{"style":931},[3206],{"type":854,"value":2542},{"type":849,"tag":869,"props":3208,"children":3209},{"style":894},[3210],{"type":854,"value":1117},{"type":849,"tag":869,"props":3212,"children":3213},{"style":2454},[3214],{"type":854,"value":2551},{"type":849,"tag":869,"props":3216,"children":3217},{"style":894},[3218],{"type":854,"value":1945},{"type":849,"tag":869,"props":3220,"children":3221},{"style":931},[3222],{"type":854,"value":2560},{"type":849,"tag":869,"props":3224,"children":3225},{"style":894},[3226],{"type":854,"value":1117},{"type":849,"tag":869,"props":3228,"children":3229},{"style":2454},[3230],{"type":854,"value":2569},{"type":849,"tag":869,"props":3232,"children":3233},{"style":894},[3234],{"type":854,"value":1945},{"type":849,"tag":869,"props":3236,"children":3237},{"style":931},[3238],{"type":854,"value":2578},{"type":849,"tag":869,"props":3240,"children":3241},{"style":894},[3242],{"type":854,"value":1117},{"type":849,"tag":869,"props":3244,"children":3245},{"style":2454},[3246],{"type":854,"value":2587},{"type":849,"tag":869,"props":3248,"children":3249},{"style":894},[3250],{"type":854,"value":1945},{"type":849,"tag":869,"props":3252,"children":3253},{"style":931},[3254],{"type":854,"value":2596},{"type":849,"tag":869,"props":3256,"children":3257},{"style":894},[3258],{"type":854,"value":1132},{"type":854,"value":910},{"type":849,"tag":869,"props":3261,"children":3262},{"class":871,"style":872},[3263,3268,3272,3277],{"type":849,"tag":869,"props":3264,"children":3265},{"style":2454},[3266],{"type":854,"value":3267},"  \"agent\"",{"type":849,"tag":869,"props":3269,"children":3270},{"style":894},[3271],{"type":854,"value":1945},{"type":849,"tag":869,"props":3273,"children":3274},{"style":931},[3275],{"type":854,"value":3276},"\"mcp:k57…:claude-desktop\"",{"type":849,"tag":869,"props":3278,"children":3279},{"style":894},[3280],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":3283,"children":3284},{"class":871,"style":872},[3285,3289,3293,3297],{"type":849,"tag":869,"props":3286,"children":3287},{"style":2454},[3288],{"type":854,"value":2609},{"type":849,"tag":869,"props":3290,"children":3291},{"style":894},[3292],{"type":854,"value":1945},{"type":849,"tag":869,"props":3294,"children":3295},{"style":931},[3296],{"type":854,"value":2618},{"type":849,"tag":869,"props":3298,"children":3299},{"style":894},[3300],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":3303,"children":3304},{"class":871,"style":872},[3305,3309,3313,3318],{"type":849,"tag":869,"props":3306,"children":3307},{"style":2454},[3308],{"type":854,"value":2631},{"type":849,"tag":869,"props":3310,"children":3311},{"style":894},[3312],{"type":854,"value":1945},{"type":849,"tag":869,"props":3314,"children":3315},{"style":931},[3316],{"type":854,"value":3317},"\"ok\"",{"type":849,"tag":869,"props":3319,"children":3320},{"style":894},[3321],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":3324,"children":3325},{"class":871,"style":872},[3326,3331,3335,3339],{"type":849,"tag":869,"props":3327,"children":3328},{"style":2454},[3329],{"type":854,"value":3330},"  \"written\"",{"type":849,"tag":869,"props":3332,"children":3333},{"style":894},[3334],{"type":854,"value":1945},{"type":849,"tag":869,"props":3336,"children":3337},{"style":1109},[3338],{"type":854,"value":7},{"type":849,"tag":869,"props":3340,"children":3341},{"style":894},[3342],{"type":854,"value":939},{"type":854,"value":910},{"type":849,"tag":869,"props":3345,"children":3346},{"class":871,"style":872},[3347,3352,3356],{"type":849,"tag":869,"props":3348,"children":3349},{"style":2454},[3350],{"type":854,"value":3351},"  \"approval\"",{"type":849,"tag":869,"props":3353,"children":3354},{"style":894},[3355],{"type":854,"value":1945},{"type":849,"tag":869,"props":3357,"children":3358},{"style":931},[3359],{"type":854,"value":3360},"\"jd7…\"",{"type":854,"value":910},{"type":849,"tag":869,"props":3363,"children":3364},{"class":871,"style":872},[3365],{"type":849,"tag":869,"props":3366,"children":3367},{"style":894},[3368],{"type":854,"value":2671},{"type":849,"tag":850,"props":3370,"children":3371},{},[3372,3374,3379,3381,3385,3387,3391,3393,3397,3399,3404,3406,3411],{"type":854,"value":3373},"The approved work runs inside ",{"type":849,"tag":864,"props":3375,"children":3376},{},[3377],{"type":854,"value":3378},"approve",{"type":854,"value":3380}," and writes no line of its own. The line\nof ",{"type":849,"tag":864,"props":3382,"children":3383},{},[3384],{"type":854,"value":3378},{"type":854,"value":3386}," shows the outcome of the work: ",{"type":849,"tag":864,"props":3388,"children":3389},{},[3390],{"type":854,"value":2846},{"type":854,"value":3392}," with its rows, or ",{"type":849,"tag":864,"props":3394,"children":3395},{},[3396],{"type":854,"value":2852},{"type":854,"value":3398}," with\nits code, for example ",{"type":849,"tag":864,"props":3400,"children":3401},{},[3402],{"type":854,"value":3403},"STALE",{"type":854,"value":3405}," when a row changed after the agent asked. A\ndecline writes ",{"type":849,"tag":864,"props":3407,"children":3408},{},[3409],{"type":854,"value":3410},"outcome: \"declined\"",{"type":854,"value":1622},{"type":849,"tag":850,"props":3413,"children":3414},{},[3415,3419],{"type":849,"tag":864,"props":3416,"children":3417},{},[3418],{"type":854,"value":1700},{"type":854,"value":3420},", the upload route, and the steps of in-app agents write no line.\nThe tool calls those steps make do.",{"type":849,"tag":1624,"props":3422,"children":3424},{"id":3423},"call-events-what-the-line-holds",[3425],{"type":854,"value":3426},"What the line holds",{"type":849,"tag":850,"props":3428,"children":3429},{},[3430,3432,3436],{"type":854,"value":3431},"The line holds IDs and codes, never arguments, results or messages. You can\nadd your own IDs with ",{"type":849,"tag":864,"props":3433,"children":3434},{},[3435],{"type":854,"value":2966},{"type":854,"value":3437},". Do not add values that a person typed,\nsuch as names, amounts or email addresses: the log stream copies every line to\nanother service.",{"type":849,"tag":857,"props":3439,"children":3440},{"language":859,"class":861},[3441],{"type":849,"tag":864,"props":3442,"children":3443},{"class":866},[3444,3491,3492,3547,3548,3557,3558],{"type":849,"tag":869,"props":3445,"children":3446},{"class":871,"style":872},[3447,3453,3457,3462,3466,3470,3474,3479,3483,3487],{"type":849,"tag":869,"props":3448,"children":3450},{"style":3449},"color:#000000;--shiki-dark:#C8C8C8",[3451],{"type":854,"value":3452},"handler",{"type":849,"tag":869,"props":3454,"children":3455},{"style":894},[3456],{"type":854,"value":1945},{"type":849,"tag":869,"props":3458,"children":3459},{"style":882},[3460],{"type":854,"value":3461},"async",{"type":849,"tag":869,"props":3463,"children":3464},{"style":894},[3465],{"type":854,"value":1915},{"type":849,"tag":869,"props":3467,"children":3468},{"style":916},[3469],{"type":854,"value":2177},{"type":849,"tag":869,"props":3471,"children":3472},{"style":894},[3473],{"type":854,"value":2182},{"type":849,"tag":869,"props":3475,"children":3476},{"style":916},[3477],{"type":854,"value":3478},"documentId",{"type":849,"tag":869,"props":3480,"children":3481},{"style":894},[3482],{"type":854,"value":2201},{"type":849,"tag":869,"props":3484,"children":3485},{"style":882},[3486],{"type":854,"value":2206},{"type":849,"tag":869,"props":3488,"children":3489},{"style":894},[3490],{"type":854,"value":1084},{"type":854,"value":910},{"type":849,"tag":869,"props":3493,"children":3494},{"class":871,"style":872},[3495,3500,3504,3509,3513,3518,3523,3528,3532,3537,3542],{"type":849,"tag":869,"props":3496,"children":3497},{"style":916},[3498],{"type":854,"value":3499},"  ctx",{"type":849,"tag":869,"props":3501,"children":3502},{"style":894},[3503],{"type":854,"value":1622},{"type":849,"tag":869,"props":3505,"children":3506},{"style":916},[3507],{"type":854,"value":3508},"log",{"type":849,"tag":869,"props":3510,"children":3511},{"style":894},[3512],{"type":854,"value":1622},{"type":849,"tag":869,"props":3514,"children":3515},{"style":900},[3516],{"type":854,"value":3517},"set",{"type":849,"tag":869,"props":3519,"children":3520},{"style":894},[3521],{"type":854,"value":3522},"({ ",{"type":849,"tag":869,"props":3524,"children":3525},{"style":916},[3526],{"type":854,"value":3527},"document:",{"type":849,"tag":869,"props":3529,"children":3530},{"style":894},[3531],{"type":854,"value":1014},{"type":849,"tag":869,"props":3533,"children":3534},{"style":916},[3535],{"type":854,"value":3536},"id:",{"type":849,"tag":869,"props":3538,"children":3539},{"style":916},[3540],{"type":854,"value":3541}," documentId",{"type":849,"tag":869,"props":3543,"children":3544},{"style":894},[3545],{"type":854,"value":3546}," } })",{"type":854,"value":910},{"type":849,"tag":869,"props":3549,"children":3550},{"class":871,"style":872},[3551],{"type":849,"tag":869,"props":3552,"children":3554},{"style":3553},"color:#008000;--shiki-dark:#6A9955",[3555],{"type":854,"value":3556},"  \u002F\u002F …",{"type":854,"value":910},{"type":849,"tag":869,"props":3559,"children":3560},{"class":871,"style":872},[3561],{"type":849,"tag":869,"props":3562,"children":3563},{"style":894},[3564],{"type":854,"value":2671},{"type":849,"tag":850,"props":3566,"children":3567},{},[3568,3570,3574,3575,3579],{"type":854,"value":3569},"Without ",{"type":849,"tag":864,"props":3571,"children":3572},{},[3573],{"type":854,"value":2283},{"type":854,"value":1117},{"type":849,"tag":864,"props":3576,"children":3577},{},[3578],{"type":854,"value":2966},{"type":854,"value":3580}," does nothing.",{"type":849,"tag":850,"props":3582,"children":3583},{},[3584,3586,3595,3597,3601],{"type":854,"value":3585},"Convex writes its own event for each call, with the function path, the\nduration, the final status and the request ID. Find both events by the request\nID that ",{"type":849,"tag":2261,"props":3587,"children":3589},{"href":3588},"\u002Fdocs\u002Fbuild\u002Fapplication-behavior\u002Ferror-handling#quote-the-request-id",[3590],{"type":849,"tag":864,"props":3591,"children":3592},{},[3593],{"type":854,"value":3594},"error.requestId",{"type":854,"value":3596},"\nshows the user. ",{"type":849,"tag":864,"props":3598,"children":3599},{},[3600],{"type":854,"value":2283},{"type":854,"value":3602}," reads and writes no table and changes no query\nsubscription.",{"type":849,"tag":850,"props":3604,"children":3605},{},[3606,3608,3612,3613,3617,3618,3622,3623,3628,3630,3634,3636,3640,3642,3646,3648,3652],{"type":854,"value":3607},"Convex gives scheduled work a new request ID, and its event does not name the\ncall that scheduled it. So a call that starts other work (",{"type":849,"tag":864,"props":3609,"children":3610},{},[3611],{"type":854,"value":1572},{"type":854,"value":1524},{"type":849,"tag":864,"props":3614,"children":3615},{},[3616],{"type":854,"value":2983},{"type":854,"value":1117},{"type":849,"tag":864,"props":3619,"children":3620},{},[3621],{"type":854,"value":1565},{"type":854,"value":1340},{"type":849,"tag":864,"props":3624,"children":3625},{},[3626],{"type":854,"value":3627},"ctx.runAction",{"type":854,"value":3629},") gets a ",{"type":849,"tag":864,"props":3631,"children":3632},{},[3633],{"type":854,"value":2940},{"type":854,"value":3635}," ID and\npasses it on. Each internal operation, internal action and job in the chain\nwrites the same ",{"type":849,"tag":864,"props":3637,"children":3638},{},[3639],{"type":854,"value":2940},{"type":854,"value":3641},", also when it runs hours later. Search for one ",{"type":849,"tag":864,"props":3643,"children":3644},{},[3645],{"type":854,"value":2940},{"type":854,"value":3647},"\nto see everything that one call started. A job argument cannot be named\n",{"type":849,"tag":864,"props":3649,"children":3650},{},[3651],{"type":854,"value":2940},{"type":854,"value":1622},{"type":849,"tag":850,"props":3654,"children":3655},{},[3656],{"type":854,"value":3657},"The audit log and call events answer different questions. The audit log stays\nin your database and records who changed which rows. Call events leave Convex\nand also record refused and failed calls.",{"title":3659,"searchDepth":3660,"depth":3660,"links":3661},"",4,[3662,3668,3671],{"id":1295,"depth":3663,"text":1298,"children":3664},2,[3665,3667],{"id":1626,"depth":3666,"text":1629},3,{"id":1673,"depth":3666,"text":1676},{"id":1705,"depth":3663,"text":1708,"children":3669},[3670],{"id":1964,"depth":3666,"text":1967},{"id":2270,"depth":3663,"text":2273,"children":3672},[3673,3674],{"id":3050,"depth":3666,"text":3053},{"id":3423,"depth":3666,"text":3426},"markdown","docs",{"source":3678,"path":3679,"stem":3680,"dir":3681,"extension":3682},"content","docs\u002F3.build\u002F8.functions\u002F8.limits-and-audit.md","docs\u002F3.build\u002F8.functions\u002F8.limits-and-audit","functions","md",{"requestedPath":539,"resolvedPath":539,"alternates":3684},[],{"requested":3686,"resolved":3687,"usedFallback":6},{},{"locale":8},{"previous":3689,"next":3691},{"title":528,"id":529,"canonicalKey":530,"locale":8,"draft":6,"navigation":3690,"icon":532,"path":533},{"icon":532},{"title":547,"id":548,"canonicalKey":549,"locale":8,"draft":6,"navigation":3692,"icon":551,"path":552},{"icon":551},{"left":3694,"top":3694,"width":3695,"height":3695,"rotate":3694,"vFlip":6,"hFlip":6,"body":3696},0,24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2a2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1m8 0h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1\"\u002F>",{"left":3694,"top":3694,"width":3698,"height":3698,"rotate":3694,"vFlip":6,"hFlip":6,"body":3699},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":3694,"top":3694,"width":3695,"height":3695,"rotate":3694,"vFlip":6,"hFlip":6,"body":3701},"\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>",1794905511647]