[{"data":1,"prerenderedAt":2168},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-reference-api-local-api":478,"-docs-core-reference-api-local-api-surround":2163},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":333,"body":480,"description":2157,"extension":2158,"links":2159,"meta":2160,"navigation":548,"path":334,"seo":2161,"stem":335,"__hash__":2162},"docs\u002Fdocs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api.md",{"type":481,"value":482,"toc":2135},"minimark",[483,504,632,640,804,851,854,933,956,961,1096,1102,1106,1197,1203,1207,1269,1273,1323,1335,1339,1435,1443,1447,1487,1504,1507,1520,1613,1616,1651,1674,1677,1692,1695,1707,1810,1814,1818,1887,1897,1901,1932,1940,1944,2058,2062,2065,2109,2113,2117,2131],[484,485,486,487,491,492,495,496,498,499,503],"p",{},"The local API is the ",[488,489,490],"code",{},"cms"," that ",[488,493,494],{},"tenon.config.ts"," exports, and the ",[488,497,490],{}," that hooks, tasks and plugin routes get. It runs on the server only. For the same methods over HTTP, see the ",[500,501,502],"a",{"href":338},"client",".",[505,506,511],"pre",{"className":507,"code":508,"language":509,"meta":510,"style":510},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import cms from \"..\u002Ftenon.config\";\n\nconst posts = await cms.find(\"posts\", { where: { category: \"news\" }, limit: 5 });\n","ts","",[488,512,513,543,550],{"__ignoreMap":510},[514,515,518,522,526,529,533,537,540],"span",{"class":516,"line":517},"line",1,[514,519,521],{"class":520},"s7zQu","import",[514,523,525],{"class":524},"sTEyZ"," cms ",[514,527,528],{"class":520},"from",[514,530,532],{"class":531},"sMK4o"," \"",[514,534,536],{"class":535},"sfazB","..\u002Ftenon.config",[514,538,539],{"class":531},"\"",[514,541,542],{"class":531},";\n",[514,544,546],{"class":516,"line":545},2,[514,547,549],{"emptyLinePlaceholder":548},true,"\n",[514,551,553,557,560,563,566,569,571,575,578,580,583,585,588,591,595,598,600,603,605,607,610,612,615,618,620,624,627,630],{"class":516,"line":552},3,[514,554,556],{"class":555},"spNyl","const",[514,558,559],{"class":524}," posts ",[514,561,562],{"class":531},"=",[514,564,565],{"class":520}," await",[514,567,568],{"class":524}," cms",[514,570,503],{"class":531},[514,572,574],{"class":573},"s2Zo4","find",[514,576,577],{"class":524},"(",[514,579,539],{"class":531},[514,581,582],{"class":535},"posts",[514,584,539],{"class":531},[514,586,587],{"class":531},",",[514,589,590],{"class":531}," {",[514,592,594],{"class":593},"swJcz"," where",[514,596,597],{"class":531},":",[514,599,590],{"class":531},[514,601,602],{"class":593}," category",[514,604,597],{"class":531},[514,606,532],{"class":531},[514,608,609],{"class":535},"news",[514,611,539],{"class":531},[514,613,614],{"class":531}," },",[514,616,617],{"class":593}," limit",[514,619,597],{"class":531},[514,621,623],{"class":622},"sbssI"," 5",[514,625,626],{"class":531}," }",[514,628,629],{"class":524},")",[514,631,542],{"class":531},[633,634,636,637,639],"h2",{"id":635},"which-cms-you-get","Which ",[488,638,490],{}," you get",[641,642,643,662],"table",{},[644,645,646],"thead",{},[647,648,649,653,656,659],"tr",{},[650,651,652],"th",{},"Where",[650,654,655],{},"Access rules",[650,657,658],{},"User",[650,660,661],{},"Reads",[663,664,665,680,695,715,728,749,765,784],"tbody",{},[647,666,667,671,674,677],{},[668,669,670],"td",{},"The imported instance",[668,672,673],{},"Skipped",[668,675,676],{},"None",[668,678,679],{},"Published",[647,681,682,687,690,692],{},[668,683,684],{},[488,685,686],{},"cms.withDrafts()",[668,688,689],{},"Like its parent",[668,691,689],{},[668,693,694],{},"Drafts",[647,696,697,702,705,708],{},[668,698,699],{},[488,700,701],{},"await cms.withSession(request)",[668,703,704],{},"Applied",[668,706,707],{},"The request's user or API key",[668,709,710,711,714],{},"Drafts in ",[500,712,713],{"href":193},"preview",", else published",[647,716,717,720,722,725],{},[668,718,719],{},"A hook",[668,721,673],{},[668,723,724],{},"The operation's user",[668,726,727],{},"Like the operation",[647,729,730,743,745,747],{},[668,731,732,733,736,737,736,740],{},"A task, ",[488,734,735],{},"seed",", ",[488,738,739],{},"onInit",[488,741,742],{},"afterError",[668,744,673],{},[668,746,676],{},[668,748,679],{},[647,750,751,757,759,762],{},[668,752,753,754],{},"A plugin's ",[488,755,756],{},"routes",[668,758,704],{},[668,760,761],{},"The session user",[668,763,764],{},"Drafts in preview, else published",[647,766,767,778,780,782],{},[668,768,753,769,736,772,736,775],{},[488,770,771],{},"publicRoutes",[488,773,774],{},"sitemap.entries",[488,776,777],{},"robots.rules",[668,779,704],{},[668,781,676],{},[668,783,679],{},[647,785,786,796,798,801],{},[668,787,788,789,792,793],{},"An admin page's ",[488,790,791],{},"load",", an action's ",[488,794,795],{},"run",[668,797,704],{},[668,799,800],{},"The signed-in user",[668,802,803],{},"The user's view",[805,806,807,821],"ul",{},[808,809,810,811,813,814,817,818,503],"li",{},"A hook's ",[488,812,490],{}," shares the transaction, the locale and the ",[488,815,816],{},"context"," of its operation. See ",[500,819,171],{"href":820},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks#use-the-cms-you-receive",[808,822,823,824,827,828,831,832,736,835,736,837,736,840,736,843,846,847,503],{},"Only the imported instance and its ",[488,825,826],{},"withDrafts()"," and ",[488,829,830],{},"withSession()"," copies have ",[488,833,834],{},"users",[488,836,830],{},[488,838,839],{},"jobs.run()",[488,841,842],{},"sitemap()",[488,844,845],{},"fetch()"," and the ",[500,848,850],{"href":849},"#instance-properties","instance properties",[633,852,661],{"id":853},"reads",[641,855,856,866],{},[644,857,858],{},[647,859,860,863],{},[650,861,862],{},"Method",[650,864,865],{},"Returns",[663,867,868,878,891,907,920],{},[647,869,870,875],{},[668,871,872],{},[488,873,874],{},"find(collection, options?)",[668,876,877],{},"The matching documents, newest first",[647,879,880,885],{},[668,881,882],{},[488,883,884],{},"findOne(collection, options)",[668,886,887,888],{},"The first match, or ",[488,889,890],{},"undefined",[647,892,893,898],{},[668,894,895],{},[488,896,897],{},"findById(collection, id, options?)",[668,899,900,901,903,904,906],{},"The document, or ",[488,902,890],{},". Also ",[488,905,890],{}," outside the read rule",[647,908,909,914],{},[668,910,911],{},[488,912,913],{},"getGlobal(name, options?)",[668,915,916,917,919],{},"The global. Never ",[488,918,890],{},": fields that were never saved are missing",[647,921,922,927],{},[668,923,924],{},[488,925,926],{},"alternatesAt(url, options?)",[668,928,929,930],{},"The URL of the same page in every language, or ",[488,931,932],{},"null",[484,934,935,938,939,942,943,946,947,950,951,953,954,503],{},[488,936,937],{},"alternatesAt()"," matches ",[488,940,941],{},"url"," against the ",[488,944,945],{},"permalink"," of every localized collection. It returns ",[488,948,949],{},"{ en: \"\u002Fabout\", de: \"\u002Fde\u002Fueber-uns\", \"x-default\": \"\u002Fabout\" }",", or ",[488,952,932],{}," without localization or without a match. See ",[500,955,167],{"href":168},[957,958,960],"h3",{"id":959},"read-options","Read options",[962,963,964,987,996,1010,1026,1063,1068,1079,1088],"field-group",{},[965,966,969,970,827,973,976,977,979,980,982,983,986],"field",{"name":967,"type":968},"where","Record\u003Cstring, string | number | boolean | null>","Only ",[488,971,972],{},"find()",[488,974,975],{},"findOne()",". A document matches when every key is equal. ",[488,978,932],{}," matches an empty or missing field. ",[488,981,890],{}," adds no filter. Groups, arrays, blocks, rich text, links and fields with ",[488,984,985],{},"many"," cannot be filtered.",[965,988,969,991,827,993,995],{"name":989,"type":990},"limit","number",[488,992,972],{},[488,994,975],{},". MUST be a positive whole number.",[965,997,1000,1003,1004,1007,1008,503],{"name":998,"type":999},"populate","boolean | object",[488,1001,1002],{},"false"," returns relations as ids. An object resolves only the paths it names. Default: every relation, ",[488,1005,1006],{},"populate.depth"," hops deep. See ",[500,1009,112],{"href":113},[965,1011,1013,1014,1016,1017,736,1022,1025],{"name":1012,"type":990},"depth","How many hops ",[488,1015,998],{}," resolves. Default: ",[500,1018,1020],{"href":1019},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration#populate",[488,1021,1006],{},[488,1023,1024],{},"2",". The local API has no limit.",[965,1027,1030,1031,1034,1035,1038,1039,736,1042,736,1045,736,1048,736,1051,736,1054,736,1057,827,1059,1062],{"name":1028,"type":1029},"select","object","The fields to return, like ",[488,1032,1033],{},"{ title: true, seo: { title: true } }",". ",[488,1036,1037],{},"id"," always comes back. ",[488,1040,1041],{},"createdAt",[488,1043,1044],{},"updatedAt",[488,1046,1047],{},"createdBy",[488,1049,1050],{},"updatedBy",[488,1052,1053],{},"publishedAt",[488,1055,1056],{},"hasDraft",[488,1058,945],{},[488,1060,1061],{},"alternates"," come back only when listed. Hooks still see the whole document.",[965,1064,1067],{"name":1065,"type":1066},"locale","string","The language to read. Default: the default locale.",[965,1069,1072,1073,503],{"name":1070,"type":1071},"fallback","boolean","Read a missing value in the default locale. Default: ",[500,1074,1076],{"href":1075},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration#localization",[488,1077,1078],{},"localization.fallback",[965,1080,1081,1082,1084,1085,1087],{"name":945,"type":1071},"Adds ",[488,1083,945],{},", the public URL in the read's locale, or ",[488,1086,932],{},". Collections only.",[965,1089,1081,1090,1092,1093,1095],{"name":1061,"type":1071},[488,1091,1061],{},", the URL of the document in every language. Localized collections with a ",[488,1094,945],{}," only.",[484,1097,1098,1099,1101],{},"There is no sort, offset or pagination yet. ",[488,1100,972],{}," always returns the newest documents first.",[633,1103,1105],{"id":1104},"writes","Writes",[641,1107,1108,1116],{},[644,1109,1110],{},[647,1111,1112,1114],{},[650,1113,862],{},[650,1115,865],{},[663,1117,1118,1128,1140,1150,1161,1172,1185],{},[647,1119,1120,1125],{},[668,1121,1122],{},[488,1123,1124],{},"create(collection, data, options?)",[668,1126,1127],{},"The stored document. Relations are ids",[647,1129,1130,1135],{},[668,1131,1132],{},[488,1133,1134],{},"update(collection, id, data, options?)",[668,1136,900,1137,1139],{},[488,1138,890],{}," when it does not exist",[647,1141,1142,1147],{},[668,1143,1144],{},[488,1145,1146],{},"delete(collection, id, options?)",[668,1148,1149],{},"Nothing. A missing document is no error",[647,1151,1152,1157],{},[668,1153,1154],{},[488,1155,1156],{},"publish(collection, id, options?)",[668,1158,900,1159],{},[488,1160,890],{},[647,1162,1163,1168],{},[668,1164,1165],{},[488,1166,1167],{},"unpublish(collection, id, options?)",[668,1169,900,1170],{},[488,1171,890],{},[647,1173,1174,1179],{},[668,1175,1176],{},[488,1177,1178],{},"discard(collection, id, options?)",[668,1180,1181,1182,1184],{},"The published document, or ",[488,1183,890],{}," when it was never published and is now deleted",[647,1186,1187,1192],{},[668,1188,1189],{},[488,1190,1191],{},"duplicate(collection, id)",[668,1193,1194,1195],{},"The copy, as a draft, or ",[488,1196,890],{},[484,1198,1199,1200,503],{},"See ",[500,1201,1202],{"href":152},"Writing and drafts",[957,1204,1206],{"id":1205},"write-options","Write options",[962,1208,1209,1222,1225,1246,1259],{},[965,1210,1212,827,1215,1218,1219,503],{"name":1211,"type":1071},"draft",[488,1213,1214],{},"create()",[488,1216,1217],{},"update()",": save a draft and keep the published data. Throws with ",[488,1220,1221],{},"drafts: false",[965,1223,1224],{"name":1065,"type":1066},"The language to write. Default: the default locale.",[965,1226,1227,736,1229,827,1232,1235,1236,1238,1239,1242,1243,503],{"name":1044,"type":1066},[488,1228,1217],{},[488,1230,1231],{},"publish()",[488,1233,1234],{},"unpublish()",": the ",[488,1237,1044],{}," you read. When the document changed since, the write throws a ",[488,1240,1241],{},"ConflictError"," with the code ",[488,1244,1245],{},"CHANGED",[965,1247,1249,827,1252,1255,1256,503],{"name":1248,"type":1071},"allowBrokenLinks",[488,1250,1251],{},"delete()",[488,1253,1254],{},"discard()",": delete even when links in other documents point to this one. Without it, the delete throws a ",[488,1257,1258],{},"LinkedContentError",[965,1260,1263,1265,1266,1268],{"name":1261,"type":1262},"all","true",[488,1264,1254],{},": drop the drafts of every language at once. ",[488,1267,1065],{}," is ignored then.",[633,1270,1272],{"id":1271},"globals","Globals",[641,1274,1275,1283],{},[644,1276,1277],{},[647,1278,1279,1281],{},[650,1280,862],{},[650,1282,865],{},[663,1284,1285,1295,1304,1313],{},[647,1286,1287,1292],{},[668,1288,1289],{},[488,1290,1291],{},"setGlobal(name, data, options?)",[668,1293,1294],{},"The global",[647,1296,1297,1302],{},[668,1298,1299],{},[488,1300,1301],{},"publishGlobal(name, options?)",[668,1303,1294],{},[647,1305,1306,1311],{},[668,1307,1308],{},[488,1309,1310],{},"unpublishGlobal(name, options?)",[668,1312,1294],{},[647,1314,1315,1320],{},[668,1316,1317],{},[488,1318,1319],{},"discardGlobal(name, options?)",[668,1321,1322],{},"The published global",[484,1324,1325,1326,736,1328,736,1330,827,1332,1334],{},"They take the same ",[488,1327,1211],{},[488,1329,1065],{},[488,1331,1044],{},[488,1333,1261],{}," options as the collection methods.",[633,1336,1338],{"id":1337},"languages","Languages",[641,1340,1341,1350],{},[644,1342,1343],{},[647,1344,1345,1347],{},[650,1346,862],{},[650,1348,1349],{},"What it does",[663,1351,1352,1365,1375,1385,1394,1416,1425],{},[647,1353,1354,1359],{},[668,1355,1356],{},[488,1357,1358],{},"copyLocale(collection, id, { from, to })",[668,1360,1361,1362],{},"Copies one language into another. It replaces the draft of ",[488,1363,1364],{},"to",[647,1366,1367,1372],{},[668,1368,1369],{},[488,1370,1371],{},"removeLocale(collection, id, locale)",[668,1373,1374],{},"Deletes one language. The default locale and the last language stay",[647,1376,1377,1382],{},[668,1378,1379],{},[488,1380,1381],{},"copyGlobalLocale(name, { from, to })",[668,1383,1384],{},"The same for a global",[647,1386,1387,1392],{},[668,1388,1389],{},[488,1390,1391],{},"removeGlobalLocale(name, locale)",[668,1393,1384],{},[647,1395,1396,1401],{},[668,1397,1398],{},[488,1399,1400],{},"setSyncStructure(collection, id, sync, options?)",[668,1402,1403,1404,1407,1408,736,1410,1412,1413],{},"Keeps the lists of a document the same in every language, or stops it. ",[488,1405,1406],{},"sync"," is ",[488,1409,1262],{},[488,1411,1002],{}," or ",[488,1414,1415],{},"\"default\"",[647,1417,1418,1423],{},[668,1419,1420],{},[488,1421,1422],{},"setGlobalSyncStructure(name, sync, options?)",[668,1424,1384],{},[647,1426,1427,1432],{},[668,1428,1429],{},[488,1430,1431],{},"applySyncStructure(collection, options?)",[668,1433,1434],{},"Applies the structure of the default locale to every document",[484,1436,1437,1440,1441,503],{},[488,1438,1439],{},"{ dryRun: true }"," makes the sync methods count the items they would add and remove, without a write. See ",[500,1442,167],{"href":168},[633,1444,1446],{"id":1445},"scheduling","Scheduling",[641,1448,1449,1457],{},[644,1450,1451],{},[647,1452,1453,1455],{},[650,1454,862],{},[650,1456,865],{},[663,1458,1459,1475],{},[647,1460,1461,1466],{},[668,1462,1463],{},[488,1464,1465],{},"schedule(collection, id, options)",[668,1467,1468,1471,1472,1474],{},[488,1469,1470],{},"{ id }"," of the job, or ",[488,1473,890],{}," when the document does not exist",[647,1476,1477,1482],{},[668,1478,1479],{},[488,1480,1481],{},"scheduleGlobal(name, options)",[668,1483,1484,1486],{},[488,1485,1470],{}," of the job",[484,1488,1489,1407,1492,1034,1495,1498,1499,1501,1502,503],{},[488,1490,1491],{},"options",[488,1493,1494],{},"{ action: \"publish\" | \"unpublish\", at, locale? }",[488,1496,1497],{},"at"," takes a ",[488,1500,64],{},", a number or an ISO string. See ",[500,1503,155],{"href":156},[633,1505,116],{"id":1506},"media",[484,1508,1509,1512,1513,1516,1517,503],{},[488,1510,1511],{},"cms.media"," exists only while the ",[500,1514,1515],{"href":117},"media library"," is on. Read files with ",[488,1518,1519],{},"cms.find(\"media\")",[641,1521,1522,1530],{},[644,1523,1524],{},[647,1525,1526,1528],{},[650,1527,862],{},[650,1529,865],{},[663,1531,1532,1549,1561,1574,1584,1600],{},[647,1533,1534,1539],{},[668,1535,1536],{},[488,1537,1538],{},"upload(data, { filename, mimeType, folder?, size? })",[668,1540,1541,1542,1545,1546],{},"The new file. A taken name gets a number, like ",[488,1543,1544],{},"hero-1.jpg",". A stream needs ",[488,1547,1548],{},"size",[647,1550,1551,1556],{},[668,1552,1553],{},[488,1554,1555],{},"update(id, { alt?, filename?, folder? })",[668,1557,1558,1559],{},"The file, or ",[488,1560,890],{},[647,1562,1563,1568],{},[668,1564,1565],{},[488,1566,1567],{},"renameFolder(from, to)",[668,1569,1570,1573],{},[488,1571,1572],{},"{ moved, failed }",". Run it again to move the files that failed",[647,1575,1576,1581],{},[668,1577,1578],{},[488,1579,1580],{},"delete(id, options?)",[668,1582,1583],{},"Nothing. The file leaves the storage after the commit",[647,1585,1586,1591],{},[668,1587,1588],{},[488,1589,1590],{},"regenerate(id?, { force? })",[668,1592,1593,1596,1597,1599],{},[488,1594,1595],{},"{ rendered, removed }",". Without ",[488,1598,1037],{},", every file",[647,1601,1602,1607],{},[668,1603,1604],{},[488,1605,1606],{},"setThumbnail(id, data)",[668,1608,1609,1610],{},"The file. A WebP or JPEG of at most 200 KB, without ",[488,1611,1612],{},"media.images",[633,1614,267],{"id":1615},"jobs",[641,1617,1618,1626],{},[644,1619,1620],{},[647,1621,1622,1624],{},[650,1623,862],{},[650,1625,865],{},[663,1627,1628,1639],{},[647,1629,1630,1635],{},[668,1631,1632],{},[488,1633,1634],{},"jobs.queue(task, payload?, options?)",[668,1636,1637,1486],{},[488,1638,1470],{},[647,1640,1641,1645],{},[668,1642,1643],{},[488,1644,839],{},[668,1646,1647,1650],{},[488,1648,1649],{},"{ ran, next }",". One tick of the clock",[484,1652,1653,1656,1657,736,1660,736,1663,827,1666,1669,1670,827,1672,503],{},[488,1654,1655],{},"queue()"," takes ",[488,1658,1659],{},"runAt",[488,1661,1662],{},"maxAttempts",[488,1664,1665],{},"key",[488,1667,1668],{},"merge",". See ",[500,1671,273],{"href":274},[500,1673,281],{"href":282},[633,1675,249],{"id":1676},"email",[484,1678,1679,1682,1683,1688,1689,503],{},[488,1680,1681],{},"email.send({ to, subject, text?, html?, replyTo? })"," sends at once and resolves when the server accepts the message. Without ",[500,1684,1686],{"href":1685},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration#email",[488,1687,1676],{},", it throws. See ",[500,1690,249],{"href":1691},"\u002Fdocs\u002Fcore\u002Foperations\u002Femail#send-from-your-code",[633,1693,1694],{"id":834},"Users",[484,1696,1697,1700,1701,1703,1704,503],{},[488,1698,1699],{},"cms.users"," is for server code and the CLI. On a ",[488,1702,830],{}," copy, every method throws ",[488,1705,1706],{},"403",[641,1708,1709,1717],{},[644,1710,1711],{},[647,1712,1713,1715],{},[650,1714,862],{},[650,1716,1349],{},[663,1718,1719,1731,1741,1751,1761,1774,1787,1800],{},[647,1720,1721,1726],{},[668,1722,1723],{},[488,1724,1725],{},"hasUsers()",[668,1727,1728,1730],{},[488,1729,1262],{}," once a user exists",[647,1732,1733,1738],{},[668,1734,1735],{},[488,1736,1737],{},"list()",[668,1739,1740],{},"Every user, oldest first",[647,1742,1743,1748],{},[668,1744,1745],{},[488,1746,1747],{},"roles()",[668,1749,1750],{},"Every role, with its label",[647,1752,1753,1758],{},[668,1754,1755],{},[488,1756,1757],{},"create({ email, name, role?, password? })",[668,1759,1760],{},"Creates a user. The first one becomes an admin",[647,1762,1763,1768],{},[668,1764,1765],{},[488,1766,1767],{},"invite({ email, role, url? })",[668,1769,1770,1771],{},"Creates an invite and emails it when email is set. Returns ",[488,1772,1773],{},"{ invite, link, sent }",[647,1775,1776,1781],{},[668,1777,1778],{},[488,1779,1780],{},"signInLink(email, { origin })",[668,1782,1783,1784],{},"A sign-in link that works once, for an hour. Returns ",[488,1785,1786],{},"{ link, sent }",[647,1788,1789,1797],{},[668,1790,1791,736,1794],{},[488,1792,1793],{},"deactivate(email)",[488,1795,1796],{},"reactivate(email)",[668,1798,1799],{},"Ends the user's sessions and blocks sign-in, or lets them sign in again. The last admin stays",[647,1801,1802,1807],{},[668,1803,1804],{},[488,1805,1806],{},"remove(email)",[668,1808,1809],{},"Deletes a user. Their content keeps the id. This cannot be undone",[484,1811,1199,1812,503],{},[500,1813,463],{"href":464},[633,1815,1817],{"id":1816},"export-and-import","Export and import",[641,1819,1820,1828],{},[644,1821,1822],{},[647,1823,1824,1826],{},[650,1825,862],{},[650,1827,865],{},[663,1829,1830,1850,1860],{},[647,1831,1832,1837],{},[668,1833,1834],{},[488,1835,1836],{},"export(options?)",[668,1838,1839,1840,1034,1843,1846,1847],{},"A ZIP as a ",[488,1841,1842],{},"ReadableStream",[488,1844,1845],{},"{ media, scope }",": default ",[488,1848,1849],{},"{ media: true, scope: \"content\" }",[647,1851,1852,1857],{},[668,1853,1854],{},[488,1855,1856],{},"exportSummary(options?)",[668,1858,1859],{},"The number of rows and files an export would hold",[647,1861,1862,1867],{},[668,1863,1864],{},[488,1865,1866],{},"import(archive, options?)",[668,1868,1869,1870,1873,1874,1407,1877,736,1880,1883,1884],{},"The counts of what it wrote. ",[488,1871,1872],{},"{ mode, dryRun }",": ",[488,1875,1876],{},"mode",[488,1878,1879],{},"\"replace\"",[488,1881,1882],{},"\"merge\""," (default) or ",[488,1885,1886],{},"\"missing\"",[484,1888,1889,1890,1893,1894,503],{},"An import runs no hooks, no validation and no webhooks. ",[488,1891,1892],{},"afterImport"," runs after it. See ",[500,1895,1896],{"href":308},"Backup and restore",[633,1898,1900],{"id":1899},"scopes","Scopes",[641,1902,1903,1911],{},[644,1904,1905],{},[647,1906,1907,1909],{},[650,1908,862],{},[650,1910,865],{},[663,1912,1913,1922],{},[647,1914,1915,1919],{},[668,1916,1917],{},[488,1918,826],{},[668,1920,1921],{},"A copy that reads drafts. Writes do not change",[647,1923,1924,1929],{},[668,1925,1926],{},[488,1927,1928],{},"withSession(request)",[668,1930,1931],{},"A copy for the user or API key of the request, with their access rules",[484,1933,1199,1934,827,1937,503],{},[500,1935,147],{"href":1936},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading#drafts",[500,1938,655],{"href":1939},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting#access-rules",[633,1941,1943],{"id":1942},"instance-properties","Instance properties",[641,1945,1946,1956],{},[644,1947,1948],{},[647,1949,1950,1953],{},[650,1951,1952],{},"Member",[650,1954,1955],{},"What it is",[663,1957,1958,1968,1980,1992,2003,2019,2029,2038],{},[647,1959,1960,1965],{},[668,1961,1962],{},[488,1963,1964],{},"schema",[668,1966,1967],{},"The schema, with presets and plugins merged in",[647,1969,1970,1975],{},[668,1971,1972],{},[488,1973,1974],{},"site",[668,1976,1977],{},[488,1978,1979],{},"{ url, name }",[647,1981,1982,1987],{},[668,1983,1984],{},[488,1985,1986],{},"localization",[668,1988,1989,1990],{},"The localization options with their defaults, or ",[488,1991,890],{},[647,1993,1994,1998],{},[668,1995,1996],{},[488,1997,998],{},[668,1999,2000],{},[488,2001,2002],{},"{ depth, maxDepth }",[647,2004,2005,2010],{},[668,2006,2007],{},[488,2008,2009],{},"adminPath",[668,2011,2012,2013,2015,2016],{},"The path of the admin, or ",[488,2014,890],{}," with ",[488,2017,2018],{},"admin: false",[647,2020,2021,2026],{},[668,2022,2023],{},[488,2024,2025],{},"auth()",[668,2027,2028],{},"The better-auth instance",[647,2030,2031,2035],{},[668,2032,2033],{},[488,2034,842],{},[668,2036,2037],{},"The sitemap entries, read as a visitor",[647,2039,2040,2045],{},[668,2041,2042],{},[488,2043,2044],{},"fetch(request)",[668,2046,2047,2048,736,2051,827,2054,2057],{},"Answers ",[488,2049,2050],{},"\u002F_tenon\u002F*",[488,2052,2053],{},"\u002Fsitemap.xml",[488,2055,2056],{},"\u002Frobots.txt",". Adapters call it",[633,2059,2061],{"id":2060},"errors","Errors",[484,2063,2064],{},"Every method throws these:",[805,2066,2067,2073,2085,2096],{},[808,2068,2069,2070,503],{},"An unknown collection or global: an ",[488,2071,2072],{},"Error",[808,2074,2075,2076,2078,2079,2081,2082,503],{},"An unknown ",[488,2077,1065],{},", or any ",[488,2080,1065],{}," without localization: a ",[488,2083,2084],{},"ValidationError",[808,2086,2087,2088,2090,2091,2093,2094,503],{},"A write to the ",[488,2089,1506],{}," collection outside ",[488,2092,1511],{},": a ",[488,2095,2084],{},[808,2097,2098,2099,736,2102,2105,2106,2108],{},"An access rule that denies: a ",[488,2100,2101],{},"ForbiddenError",[488,2103,2104],{},"401"," without a user and ",[488,2107,1706],{}," with one.",[484,2110,1199,2111,503],{},[500,2112,345],{"href":346},[633,2114,2116],{"id":2115},"related-resources","Related resources",[805,2118,2119,2124],{},[808,2120,2121,2123],{},[500,2122,337],{"href":338},": the same methods over HTTP.",[808,2125,2126,827,2128,2130],{},[500,2127,147],{"href":148},[500,2129,1202],{"href":152},": the guides behind these methods.",[2132,2133,2134],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":510,"searchDepth":545,"depth":545,"links":2136},[2137,2139,2142,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156],{"id":635,"depth":545,"text":2138},"Which cms you get",{"id":853,"depth":545,"text":661,"children":2140},[2141],{"id":959,"depth":552,"text":960},{"id":1104,"depth":545,"text":1105,"children":2143},[2144],{"id":1205,"depth":552,"text":1206},{"id":1271,"depth":545,"text":1272},{"id":1337,"depth":545,"text":1338},{"id":1445,"depth":545,"text":1446},{"id":1506,"depth":545,"text":116},{"id":1615,"depth":545,"text":267},{"id":1676,"depth":545,"text":249},{"id":834,"depth":545,"text":1694},{"id":1816,"depth":545,"text":1817},{"id":1899,"depth":545,"text":1900},{"id":1942,"depth":545,"text":1943},{"id":2060,"depth":545,"text":2061},{"id":2115,"depth":545,"text":2116},"Every method of the cms instance on the server, its options and what it returns.","md",null,{},{"title":333,"description":2157},"Fi70U6zfE18yNl12QRSf1YUey0G06whoT1uZWWu_ltU",[2164,2166],{"title":50,"path":328,"stem":329,"description":2165,"children":-1},"The three ways to reach your content.",{"title":337,"path":338,"stem":339,"description":2167,"children":-1},"The options of createClient(), where its methods differ from the local API, and the methods only the client has.",1795884674961]