[{"data":1,"prerenderedAt":3552},["ShallowReactive",2],{"navigation_docs":3,"-developers-modules-manifest":613,"-developers-modules-manifest-surround":3549},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":459,"body":615,"description":624,"extension":3544,"links":3545,"meta":3546,"navigation":1575,"path":460,"seo":3547,"stem":461,"__hash__":3548},"docs\u002F4.developers\u002F3.modules\u002F2.manifest.md",{"type":616,"value":617,"toc":3529},"minimark",[618,1060,1076,1113,1128,1188,1202,1223,1231,1238,1508,1511,1515,1518,1642,1656,1693,1710,1715,1725,1784,2022,2028,2035,2045,2378,2420,2431,2456,2465,2477,2484,2494,2620,2871,2874,2877,2891,2974,2977,3000,3122,3195,3201,3237,3247,3279,3286,3299,3467,3519,3525],[619,620,625],"pre",{"className":621,"code":622,"language":623,"meta":624,"style":624},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineModule({\n  name: 'appointments',            \u002F\u002F kebab-case; prefixes everything below\n  version: '0.1.0',\n  shade: '^0.1.0',                 \u002F\u002F the SHADE versions it works with\n  description: '…',\n  \u002F\u002F What it may do: what its parts need, declared; see Capabilities\n  capabilities: { http: {}, email: {}, accounts: {}, personalData: {} },\n  \u002F\u002F requires: { website: '^1.0.0' }  modules it builds on, within one major version: 1.2.0, ^1.2.0, ~1.2.0\n  \u002F\u002F shares: { collections: [...] }   its collections the modules that require it may use\n  \u002F\u002F contributes: { website: { starters: [...] } }  data for other modules, if they are on\n  \u002F\u002F provides: defineModuleCalls(…)  calls the modules that require it may make (see Calls between modules)\n  \u002F\u002F alerts: { rules: [...] }          security alert rules of its own (see Alert rules)\n  \u002F\u002F accepts: { starters: schema }    what other modules may hand it (trusted modules only)\n  db: { tables: { appointmentsBookings }, migrationsFolder: 'migrations' },\n  server: { routes },              \u002F\u002F \u002Fapi\u002Fpackages\u002Fappointments\u002F… and \u002Fapi\u002Fv1\u002Faccount\u002Fappointments\u002F… (public, account)\n  admin: { pages: [{ path: '\u002Fmodules\u002Fappointments\u002Fappointments', file: 'admin\u002FAppointmentsPage.vue' }], sidebar: [...] },\n  permissions: { actions: APPOINTMENTS_ACTIONS, grants: { editor: [...] } },\n  guards: async (ctx) => [...],     \u002F\u002F block or warn before it is switched off\n  retention: [...], personalData: [...]\n})\n","ts","",[626,627,628,652,679,697,717,734,740,784,790,796,802,808,814,820,857,875,946,989,1025,1052],"code",{"__ignoreMap":624},[629,630,633,637,640,644,648],"span",{"class":631,"line":632},"line",1,[629,634,636],{"class":635},"s7zQu","export",[629,638,639],{"class":635}," default",[629,641,643],{"class":642},"s2Zo4"," defineModule",[629,645,647],{"class":646},"sTEyZ","(",[629,649,651],{"class":650},"sMK4o","{\n",[629,653,655,659,662,665,669,672,675],{"class":631,"line":654},2,[629,656,658],{"class":657},"swJcz","  name",[629,660,661],{"class":650},":",[629,663,664],{"class":650}," '",[629,666,668],{"class":667},"sfazB","appointments",[629,670,671],{"class":650},"'",[629,673,674],{"class":650},",",[629,676,678],{"class":677},"sHwdD","            \u002F\u002F kebab-case; prefixes everything below\n",[629,680,682,685,687,689,692,694],{"class":631,"line":681},3,[629,683,684],{"class":657},"  version",[629,686,661],{"class":650},[629,688,664],{"class":650},[629,690,691],{"class":667},"0.1.0",[629,693,671],{"class":650},[629,695,696],{"class":650},",\n",[629,698,700,703,705,707,710,712,714],{"class":631,"line":699},4,[629,701,702],{"class":657},"  shade",[629,704,661],{"class":650},[629,706,664],{"class":650},[629,708,709],{"class":667},"^0.1.0",[629,711,671],{"class":650},[629,713,674],{"class":650},[629,715,716],{"class":677},"                 \u002F\u002F the SHADE versions it works with\n",[629,718,720,723,725,727,730,732],{"class":631,"line":719},5,[629,721,722],{"class":657},"  description",[629,724,661],{"class":650},[629,726,664],{"class":650},[629,728,729],{"class":667},"…",[629,731,671],{"class":650},[629,733,696],{"class":650},[629,735,737],{"class":631,"line":736},6,[629,738,739],{"class":677},"  \u002F\u002F What it may do: what its parts need, declared; see Capabilities\n",[629,741,743,746,748,751,754,756,759,762,764,766,769,771,773,776,778,781],{"class":631,"line":742},7,[629,744,745],{"class":657},"  capabilities",[629,747,661],{"class":650},[629,749,750],{"class":650}," {",[629,752,753],{"class":657}," http",[629,755,661],{"class":650},[629,757,758],{"class":650}," {},",[629,760,761],{"class":657}," email",[629,763,661],{"class":650},[629,765,758],{"class":650},[629,767,768],{"class":657}," accounts",[629,770,661],{"class":650},[629,772,758],{"class":650},[629,774,775],{"class":657}," personalData",[629,777,661],{"class":650},[629,779,780],{"class":650}," {}",[629,782,783],{"class":650}," },\n",[629,785,787],{"class":631,"line":786},8,[629,788,789],{"class":677},"  \u002F\u002F requires: { website: '^1.0.0' }  modules it builds on, within one major version: 1.2.0, ^1.2.0, ~1.2.0\n",[629,791,793],{"class":631,"line":792},9,[629,794,795],{"class":677},"  \u002F\u002F shares: { collections: [...] }   its collections the modules that require it may use\n",[629,797,799],{"class":631,"line":798},10,[629,800,801],{"class":677},"  \u002F\u002F contributes: { website: { starters: [...] } }  data for other modules, if they are on\n",[629,803,805],{"class":631,"line":804},11,[629,806,807],{"class":677},"  \u002F\u002F provides: defineModuleCalls(…)  calls the modules that require it may make (see Calls between modules)\n",[629,809,811],{"class":631,"line":810},12,[629,812,813],{"class":677},"  \u002F\u002F alerts: { rules: [...] }          security alert rules of its own (see Alert rules)\n",[629,815,817],{"class":631,"line":816},13,[629,818,819],{"class":677},"  \u002F\u002F accepts: { starters: schema }    what other modules may hand it (trusted modules only)\n",[629,821,823,826,828,830,833,835,837,840,843,846,848,850,853,855],{"class":631,"line":822},14,[629,824,825],{"class":657},"  db",[629,827,661],{"class":650},[629,829,750],{"class":650},[629,831,832],{"class":657}," tables",[629,834,661],{"class":650},[629,836,750],{"class":650},[629,838,839],{"class":646}," appointmentsBookings ",[629,841,842],{"class":650},"},",[629,844,845],{"class":657}," migrationsFolder",[629,847,661],{"class":650},[629,849,664],{"class":650},[629,851,852],{"class":667},"migrations",[629,854,671],{"class":650},[629,856,783],{"class":650},[629,858,860,863,865,867,870,872],{"class":631,"line":859},15,[629,861,862],{"class":657},"  server",[629,864,661],{"class":650},[629,866,750],{"class":650},[629,868,869],{"class":646}," routes ",[629,871,842],{"class":650},[629,873,874],{"class":677},"              \u002F\u002F \u002Fapi\u002Fpackages\u002Fappointments\u002F… and \u002Fapi\u002Fv1\u002Faccount\u002Fappointments\u002F… (public, account)\n",[629,876,878,881,883,885,888,890,893,896,899,901,903,906,908,910,913,915,917,920,922,925,928,930,933,935,937,940,943],{"class":631,"line":877},16,[629,879,880],{"class":657},"  admin",[629,882,661],{"class":650},[629,884,750],{"class":650},[629,886,887],{"class":657}," pages",[629,889,661],{"class":650},[629,891,892],{"class":646}," [",[629,894,895],{"class":650},"{",[629,897,898],{"class":657}," path",[629,900,661],{"class":650},[629,902,664],{"class":650},[629,904,905],{"class":667},"\u002Fmodules\u002Fappointments\u002Fappointments",[629,907,671],{"class":650},[629,909,674],{"class":650},[629,911,912],{"class":657}," file",[629,914,661],{"class":650},[629,916,664],{"class":650},[629,918,919],{"class":667},"admin\u002FAppointmentsPage.vue",[629,921,671],{"class":650},[629,923,924],{"class":650}," }",[629,926,927],{"class":646},"]",[629,929,674],{"class":650},[629,931,932],{"class":657}," sidebar",[629,934,661],{"class":650},[629,936,892],{"class":646},[629,938,939],{"class":650},"...",[629,941,942],{"class":646},"] ",[629,944,945],{"class":650},"},\n",[629,947,949,952,954,956,959,961,964,966,969,971,973,976,978,980,982,984,987],{"class":631,"line":948},17,[629,950,951],{"class":657},"  permissions",[629,953,661],{"class":650},[629,955,750],{"class":650},[629,957,958],{"class":657}," actions",[629,960,661],{"class":650},[629,962,963],{"class":646}," APPOINTMENTS_ACTIONS",[629,965,674],{"class":650},[629,967,968],{"class":657}," grants",[629,970,661],{"class":650},[629,972,750],{"class":650},[629,974,975],{"class":657}," editor",[629,977,661],{"class":650},[629,979,892],{"class":646},[629,981,939],{"class":650},[629,983,942],{"class":646},[629,985,986],{"class":650},"}",[629,988,783],{"class":650},[629,990,992,995,997,1001,1004,1008,1011,1014,1016,1018,1020,1022],{"class":631,"line":991},18,[629,993,994],{"class":642},"  guards",[629,996,661],{"class":650},[629,998,1000],{"class":999},"spNyl"," async",[629,1002,1003],{"class":650}," (",[629,1005,1007],{"class":1006},"sHdIc","ctx",[629,1009,1010],{"class":650},")",[629,1012,1013],{"class":999}," =>",[629,1015,892],{"class":646},[629,1017,939],{"class":650},[629,1019,927],{"class":646},[629,1021,674],{"class":650},[629,1023,1024],{"class":677},"     \u002F\u002F block or warn before it is switched off\n",[629,1026,1028,1031,1033,1035,1037,1039,1041,1043,1045,1047,1049],{"class":631,"line":1027},19,[629,1029,1030],{"class":657},"  retention",[629,1032,661],{"class":650},[629,1034,892],{"class":646},[629,1036,939],{"class":650},[629,1038,927],{"class":646},[629,1040,674],{"class":650},[629,1042,775],{"class":657},[629,1044,661],{"class":650},[629,1046,892],{"class":646},[629,1048,939],{"class":650},[629,1050,1051],{"class":646},"]\n",[629,1053,1055,1057],{"class":631,"line":1054},20,[629,1056,986],{"class":650},[629,1058,1059],{"class":646},")\n",[1061,1062,1063,1066,1067,1071,1072,1075],"p",{},[626,1064,1065],{},"defineModule"," checks at compile time that action names start with the module name and are declared. The\n",[1068,1069,1070],"a",{"href":390},"capabilities declaration"," says what the module may do: the loader refuses a capability or\nparameter SHADE doesn't know and a required one the module's trust doesn't allow, and ",[626,1073,1074],{},"shade-module build"," refuses a\nmanifest whose parts need one it doesn't declare.",[1061,1077,1078,1079,1082,1083,696,1086,1089,1090,1089,1093,1089,1096,1089,1099,1089,1102,1089,1105,1108,1109,1112],{},"The kernel declares the manifest's core parts; each feature adds its feature part (its ",[626,1080,1081],{},"manifest.ts",": ",[626,1084,1085],{},"settings",[626,1087,1088],{},"collections",", ",[626,1091,1092],{},"publishChecks",[626,1094,1095],{},"dataSources",[626,1097,1098],{},"mcp",[626,1100,1101],{},"retention",[626,1103,1104],{},"personalData",[626,1106,1107],{},"consent",") and\nchecks and registers it. The SDK loads them all, so a manifest type-checks with every part; a key no part owns is\nrefused (",[626,1110,1111],{},"\"widgets\" is not a part SHADE knows",") instead of ignored.",[1061,1114,1115,1116,1119,1120,1123,1124,1127],{},"A trusted module's ",[626,1117,1118],{},"ctx.db"," runs as the module, and row-level security lets it reach only the tables in its own\n",[626,1121,1122],{},"db.tables"," and ",[626,1125,1126],{},"db.collectionTables",": core's data it reads and changes through the SDK's services, which run as the\npart that owns it. Besides its own tables it reads only what its tables declare a need for, and writes none of it:",[1129,1130,1131,1152,1177],"ul",{},[1132,1133,1134,1137,1138,1141,1142,696,1145,1123,1148,1151],"li",{},[626,1135,1136],{},"contacts",", when one of its tables refers to a contact (",[626,1139,1140],{},"contactReference","), for the SDK's ",[626,1143,1144],{},"contactEmail",[626,1146,1147],{},"contactConfirmed",[626,1149,1150],{},"ownedByContact",";",[1132,1153,1154,1155,1158,1159,1162,1163,1089,1166,1169,1170,1173,1174,1151],{},"the views ",[626,1156,1157],{},"accounts_for_packages"," (an account's id and address) and ",[626,1160,1161],{},"organisation_members_for_packages",", when one of\nits tables refers to an account or an organisation (",[626,1164,1165],{},"accountReference",[626,1167,1168],{},"organisationReference","), for ",[626,1171,1172],{},"ownedBy"," and\n",[626,1175,1176],{},"ownedByOrganisation",[1132,1178,1179,1180,1183,1184,1187],{},"the view ",[626,1181,1182],{},"entry_trash_for_packages"," (a trashed entry's collection and id), when it has collections, for ",[626,1185,1186],{},"notInTrash",".",[1061,1189,1190,1191,1194,1195,1197,1198,1201],{},"SHADE opens a module's tables to three of its own parts only: the module manager reads and deletes them (the backup\nbefore an uninstall, the instance export, the clean-up), content works on its collection tables and reads the tables\n",[626,1192,1193],{},"keptVersions"," names, and accounts read a scope table, a profile table, or a table whose rows go with an organisation\n(",[626,1196,1168],{}," without ",[626,1199,1200],{},"keep",": deleting an organisation first counts them). This guards against mistakes,\nnot against the module: a trusted module runs in SHADE's process and could get around it, which is why it must be\ntrusted.",[1061,1203,1204,1205,1089,1208,1211,1212,1215,1216,1219,1220,1187],{},"Paths in the manifest (",[626,1206,1207],{},"migrationsFolder",[626,1209,1210],{},"admin.locales",", admin page ",[626,1213,1214],{},"file",") are relative to the module's folder:\nits repository, or where a server package is unpacked (",[626,1217,1218],{},"MODULE_PACKAGES_DIR\u002F\u003Cname>@\u003Cversion>\u002F","). Never build\nthem from ",[626,1221,1222],{},"import.meta.url",[1224,1225,1227,1228,1010],"h2",{"id":1226},"naming-rules-enforced-by-validatemodule","Naming rules (enforced by ",[626,1229,1230],{},"validateModule",[1061,1232,1233,1234,1237],{},"One rule (",[626,1235,1236],{},"shade\u002Fkernel\u002Fmodules\u002Fnames.ts","): identifiers that other code names are written in full\nand checked; keys only SHADE uses are written short and registered under the module's name.",[1239,1240,1241,1257],"table",{},[1242,1243,1244],"thead",{},[1245,1246,1247,1251,1254],"tr",{},[1248,1249,1250],"th",{},"Thing",[1248,1252,1253],{},"Rule",[1248,1255,1256],{},"Example",[1258,1259,1260,1305,1320,1342,1361,1376,1397,1412,1437,1456,1475,1488],"tbody",{},[1245,1261,1262,1266,1301],{},[1263,1264,1265],"td",{},"Module name",[1263,1267,1268,1269,1082,1272,1089,1275,1089,1278,1089,1281,1089,1284,1089,1286,1089,1289,1089,1291,1089,1294,1089,1297,1300],{},"kebab-case, not a core module, part or namespace, or a word core's tables and routes use (",[626,1270,1271],{},"reservedNames()",[626,1273,1274],{},"team",[626,1276,1277],{},"accounts",[626,1279,1280],{},"tokens",[626,1282,1283],{},"media",[626,1285,1107],{},[626,1287,1288],{},"privacy",[626,1290,1101],{},[626,1292,1293],{},"data",[626,1295,1296],{},"ai",[626,1298,1299],{},"rebuild",", …)",[1263,1302,1303],{},[626,1304,668],{},[1245,1306,1307,1310,1315],{},[1263,1308,1309],{},"Tables",[1263,1311,1312],{},[626,1313,1314],{},"\u003Csnake_name>_…",[1263,1316,1317],{},[626,1318,1319],{},"appointments_bookings",[1245,1321,1322,1325,1334],{},[1263,1323,1324],{},"Actions",[1263,1326,1327,1330,1331],{},[626,1328,1329],{},"\u003Cname>.\u003Cverb>"," or ",[626,1332,1333],{},"\u003Cname>.\u003Cresource>.\u003Cverb>",[1263,1335,1336,1089,1339],{},[626,1337,1338],{},"appointments.read",[626,1340,1341],{},"commerce.orders.manage",[1245,1343,1344,1346,1356],{},[1263,1345,463],{},[1263,1347,1348,1351,1352,1355],{},[626,1349,1350],{},"\u002Fapi\u002Fpackages\u002F\u003Cname>\u002F"," (session\u002Ftoken), ",[626,1353,1354],{},"\u002Fapi\u002Fv1\u002Faccount\u002F\u003Cname>\u002F"," (public\u002Faccount)",[1263,1357,1358],{},[626,1359,1360],{},"\u002Fapi\u002Fv1\u002Faccount\u002Fappointments\u002Fbook",[1245,1362,1363,1366,1372],{},[1263,1364,1365],{},"Admin pages",[1263,1367,1368,1369],{},"under ",[626,1370,1371],{},"\u002Fmodules\u002F\u003Cname>\u002F",[1263,1373,1374],{},[626,1375,905],{},[1245,1377,1378,1381,1392],{},[1263,1379,1380],{},"Widgets, panels, settings sections",[1263,1382,1383,1384,1387,1388,1391],{},"a kebab-case ",[626,1385,1386],{},"id",", unique per kind; the file a ",[626,1389,1390],{},".vue"," inside the module's folder",[1263,1393,1394],{},[626,1395,1396],{},"{ id: 'to-ship', file: 'admin\u002FToShipWidget.vue' }",[1245,1398,1399,1402,1406],{},[1263,1400,1401],{},"MCP tools",[1263,1403,1404],{},[626,1405,1314],{},[1263,1407,1408,1411],{},[626,1409,1410],{},"shop_list_products"," (made up: no official module has one)",[1245,1413,1414,1416,1432],{},[1263,1415,429],{},[1263,1417,1418,1421,1422,1123,1425,1089,1428,1431],{},[626,1419,1420],{},"\u003Cname>-…","; with two modules ",[626,1423,1424],{},"shop",[626,1426,1427],{},"shop-extra",[626,1429,1430],{},"shop-extra-items"," belongs to the longer name",[1263,1433,1434],{},[626,1435,1436],{},"commerce-products",[1245,1438,1439,1442,1445],{},[1263,1440,1441],{},"Publish checks and prechecks, save checks",[1263,1443,1444],{},"only on the module's own collections",[1263,1446,1447,1089,1450,1089,1453],{},[626,1448,1449],{},"publishChecks: { 'commerce-products': … }",[626,1451,1452],{},"publishPrechecks",[626,1454,1455],{},"saveChecks",[1245,1457,1458,1461,1467],{},[1263,1459,1460],{},"Field checks",[1263,1462,1463,1464],{},"a camelCase name, named by a json field as ",[626,1465,1466],{},"\u003Cname>:\u003Ccheck>",[1263,1468,1469,1089,1472],{},[626,1470,1471],{},"fieldChecks: { layout: … }",[626,1473,1474],{},"check: 'shop:layout'",[1245,1476,1477,1480,1483],{},[1263,1478,1479],{},"Search text of json fields",[1263,1481,1482],{},"the name of one of the module's own field checks",[1263,1484,1485],{},[626,1486,1487],{},"searchText: { layout: … }",[1245,1489,1490,1493,1499],{},[1263,1491,1492],{},"Jobs, retention kinds, personal data sources, consent categories",[1263,1494,1495,1496],{},"a short key (lowercase letters, digits, dashes), registered as ",[626,1497,1498],{},"\u003Cname>.\u003Ckey>",[1263,1500,1501,1504,1505],{},[626,1502,1503],{},"orders"," → ",[626,1506,1507],{},"commerce.orders",[1061,1509,1510],{},"Every registry refuses a name that is taken (another module's MCP tool or data source), and every check\nruns before anything is registered: a catalog that does not check out registers nothing. Loading the catalog again\nfirst forgets what the last load registered. The loader also registers the content model (the built-in collections\nand the modules'), once every module's collection tables are, after checking it as a whole.",[1224,1512,1514],{"id":1513},"permissions","Permissions",[1061,1516,1517],{},"Actions are type-safe through declaration merging. Declare them once, next to the runtime list:",[619,1519,1521],{"className":621,"code":1520,"language":623,"meta":624,"style":624},"export const APPOINTMENTS_ACTIONS = { 'appointments.read': [], 'appointments.manage': [] } as const\n\ndeclare module '@shadestack\u002Fcore\u002Fschema' {\n  interface ActionRegistry {\n    'appointments.read': true\n    'appointments.manage': true\n  }\n}\n",[626,1522,1523,1571,1577,1595,1606,1620,1632,1637],{"__ignoreMap":624},[629,1524,1525,1527,1530,1533,1536,1538,1540,1542,1544,1546,1549,1551,1553,1556,1558,1560,1563,1565,1568],{"class":631,"line":632},[629,1526,636],{"class":635},[629,1528,1529],{"class":999}," const",[629,1531,1532],{"class":646}," APPOINTMENTS_ACTIONS ",[629,1534,1535],{"class":650},"=",[629,1537,750],{"class":650},[629,1539,664],{"class":650},[629,1541,1338],{"class":657},[629,1543,671],{"class":650},[629,1545,661],{"class":650},[629,1547,1548],{"class":646}," []",[629,1550,674],{"class":650},[629,1552,664],{"class":650},[629,1554,1555],{"class":657},"appointments.manage",[629,1557,671],{"class":650},[629,1559,661],{"class":650},[629,1561,1562],{"class":646}," [] ",[629,1564,986],{"class":650},[629,1566,1567],{"class":635}," as",[629,1569,1570],{"class":999}," const\n",[629,1572,1573],{"class":631,"line":654},[629,1574,1576],{"emptyLinePlaceholder":1575},true,"\n",[629,1578,1579,1582,1585,1587,1590,1592],{"class":631,"line":681},[629,1580,1581],{"class":999},"declare",[629,1583,1584],{"class":999}," module",[629,1586,664],{"class":650},[629,1588,1589],{"class":667},"@shadestack\u002Fcore\u002Fschema",[629,1591,671],{"class":650},[629,1593,1594],{"class":650}," {\n",[629,1596,1597,1600,1604],{"class":631,"line":699},[629,1598,1599],{"class":999},"  interface",[629,1601,1603],{"class":1602},"sBMFI"," ActionRegistry",[629,1605,1594],{"class":650},[629,1607,1608,1611,1613,1615,1617],{"class":631,"line":719},[629,1609,1610],{"class":650},"    '",[629,1612,1338],{"class":667},[629,1614,671],{"class":650},[629,1616,661],{"class":650},[629,1618,1619],{"class":1602}," true\n",[629,1621,1622,1624,1626,1628,1630],{"class":631,"line":736},[629,1623,1610],{"class":650},[629,1625,1555],{"class":667},[629,1627,671],{"class":650},[629,1629,661],{"class":650},[629,1631,1619],{"class":1602},[629,1633,1634],{"class":631,"line":742},[629,1635,1636],{"class":650},"  }\n",[629,1638,1639],{"class":631,"line":786},[629,1640,1641],{"class":650},"}\n",[1061,1643,1644,1645,1648,1649,1652,1653,1187],{},"At startup the loader calls ",[626,1646,1647],{},"registerActions(name, actions, grants)",". Admins get every module action\nautomatically; other roles only what ",[626,1650,1651],{},"grants"," lists. Deny by default still holds: an action that was\ndeclared but not registered is refused for everyone. Services check permissions exactly like core:\n",[626,1654,1655],{},"assertCan(ctx.actor, 'appointments.read')",[1061,1657,1658,1659,1089,1662,1089,1665,1089,1668,1123,1671,1674,1675,1677,1678,1680,1681,1684,1685,1688,1689,1692],{},"Each action lists its classes: ",[626,1660,1661],{},"admin",[626,1663,1664],{},"in-person",[626,1666,1667],{},"reauth",[626,1669,1670],{},"never-package",[626,1672,1673],{},"never-ai"," (an empty list is a plain\naction). A class is a ceiling: a default grant to a role whose ceiling holds the class (editors may not hold ",[626,1676,1661],{},"\nactions), or a collection that gives the ",[626,1679,1296],{}," role ",[626,1682,1683],{},"publish",", or ",[626,1686,1687],{},"delete"," unless it says ",[626,1690,1691],{},"aiDeletes",", is refused when\nthe module loads.",[1061,1694,1695,1696,1699,1700,1702,1703,1706,1707,1709],{},"A collection may let the AI delete its entries: ",[626,1697,1698],{},"aiDeletes: true"," in its definition, and ",[626,1701,1687],{}," in its ",[626,1704,1705],{},"access.ai",".\nCore allows it only when the AI member calls with its MCP token and the call runs in a context core made for your\nmodule: your MCP tool (core runs each module tool in such a context, a mark your code can't claim by setting a field),\nor your own offered calls, checks and data sources running in that request. An AI member's data token, core's tools and\nanother module's code are refused. Your offered calls and checks run under the AI's MCP actor too, so don't delete an\n",[626,1708,1691],{}," entry there: delete it only in your tool, after its checks. Use it for what the AI makes and removes as part\nof building, such as the website module's headers and footers, and let your tool refuse what is still in use. It moves\nan entry to the trash only: restoring it or deleting it for good stays a person's, and so does publishing, for every\ncollection.",[1711,1712,1714],"h3",{"id":1713},"conditions-on-a-modules-own-tables","Conditions on a module's own tables",[1061,1716,1717,1718,1721,1722,661],{},"This part of the SDK is experimental in 0.1. A grant can carry an ",[626,1719,1720],{},"entries"," condition: only the rows the team member\ncreated, or those and the rows of their team groups. A collection's entries need nothing of this: the entry services\napply field rules and entry limits themselves. A module that keeps rows in its own tables applies the condition\nitself, from ",[626,1723,1724],{},"@shadestack\u002Fmodule-sdk\u002Fserver",[1129,1726,1727,1745,1773],{},[1132,1728,1729,1732,1733,1736,1737,1740,1741,1744],{},[626,1730,1731],{},"assertCan(actor, action, { entry, groups })"," checks the action and the condition on one row. ",[626,1734,1735],{},"entry"," is\n",[626,1738,1739],{},"{ createdBy, groups }",", the row's creator and its team groups; ",[626,1742,1743],{},"groups"," is the team member's own groups. It throws\nFORBIDDEN when the row is outside the condition.",[1132,1746,1747,1750,1751,1753,1754,1757,1758,1761,1762,1765,1766,1769,1770,1772],{},[626,1748,1749],{},"conditionsOf(ctx, action)"," gives the caller's ",[626,1752,1720],{}," condition as a filter for queries on the module's own\ntables (type ",[626,1755,1756],{},"EntriesCondition","): ",[626,1759,1760],{},"{ entries: 'own', member }"," for the rows the member created,\n",[626,1763,1764],{},"{ entries: 'group', member, groups }"," for the rows of their team groups and their own, or ",[626,1767,1768],{},"null"," for every row.\n",[626,1771,1768],{}," also comes for a caller who is not a team member: the module's own actor, a program, core's own work.",[1132,1774,1775,1776,1779,1780,1783],{},"Check the action with ",[626,1777,1778],{},"assertCan"," first. ",[626,1781,1782],{},"conditionsOf"," only narrows what the action allows.",[619,1785,1787],{"className":621,"code":1786,"language":623,"meta":624,"style":624},"import { assertCan, conditionsOf } from '@shadestack\u002Fmodule-sdk\u002Fserver'\nassertCan(ctx.actor, 'bookings.read')\nconst condition = await conditionsOf(ctx, 'bookings.read')\nconst rows = await ctx.db.select().from(bookings).where(\n  condition === null ? undefined\n    : condition.entries === 'own' ? eq(bookings.createdBy, condition.member)\n    : or(eq(bookings.createdBy, condition.member), inArray(bookings.groupId, condition.groups))\n)\n",[626,1788,1789,1816,1839,1866,1909,1926,1970,2018],{"__ignoreMap":624},[629,1790,1791,1794,1796,1799,1801,1804,1806,1809,1811,1813],{"class":631,"line":632},[629,1792,1793],{"class":635},"import",[629,1795,750],{"class":650},[629,1797,1798],{"class":646}," assertCan",[629,1800,674],{"class":650},[629,1802,1803],{"class":646}," conditionsOf",[629,1805,924],{"class":650},[629,1807,1808],{"class":635}," from",[629,1810,664],{"class":650},[629,1812,1724],{"class":667},[629,1814,1815],{"class":650},"'\n",[629,1817,1818,1820,1823,1825,1828,1830,1832,1835,1837],{"class":631,"line":654},[629,1819,1778],{"class":642},[629,1821,1822],{"class":646},"(ctx",[629,1824,1187],{"class":650},[629,1826,1827],{"class":646},"actor",[629,1829,674],{"class":650},[629,1831,664],{"class":650},[629,1833,1834],{"class":667},"bookings.read",[629,1836,671],{"class":650},[629,1838,1059],{"class":646},[629,1840,1841,1844,1847,1849,1852,1854,1856,1858,1860,1862,1864],{"class":631,"line":681},[629,1842,1843],{"class":999},"const",[629,1845,1846],{"class":646}," condition ",[629,1848,1535],{"class":650},[629,1850,1851],{"class":635}," await",[629,1853,1803],{"class":642},[629,1855,1822],{"class":646},[629,1857,674],{"class":650},[629,1859,664],{"class":650},[629,1861,1834],{"class":667},[629,1863,671],{"class":650},[629,1865,1059],{"class":646},[629,1867,1868,1870,1873,1875,1877,1880,1882,1885,1887,1890,1893,1895,1898,1901,1903,1906],{"class":631,"line":699},[629,1869,1843],{"class":999},[629,1871,1872],{"class":646}," rows ",[629,1874,1535],{"class":650},[629,1876,1851],{"class":635},[629,1878,1879],{"class":646}," ctx",[629,1881,1187],{"class":650},[629,1883,1884],{"class":646},"db",[629,1886,1187],{"class":650},[629,1888,1889],{"class":642},"select",[629,1891,1892],{"class":646},"()",[629,1894,1187],{"class":650},[629,1896,1897],{"class":642},"from",[629,1899,1900],{"class":646},"(bookings)",[629,1902,1187],{"class":650},[629,1904,1905],{"class":642},"where",[629,1907,1908],{"class":646},"(\n",[629,1910,1911,1914,1917,1920,1923],{"class":631,"line":719},[629,1912,1913],{"class":646},"  condition ",[629,1915,1916],{"class":650},"===",[629,1918,1919],{"class":650}," null",[629,1921,1922],{"class":650}," ?",[629,1924,1925],{"class":650}," undefined\n",[629,1927,1928,1931,1934,1936,1939,1941,1943,1946,1948,1950,1953,1956,1958,1961,1963,1965,1967],{"class":631,"line":736},[629,1929,1930],{"class":650},"    :",[629,1932,1933],{"class":646}," condition",[629,1935,1187],{"class":650},[629,1937,1938],{"class":646},"entries ",[629,1940,1916],{"class":650},[629,1942,664],{"class":650},[629,1944,1945],{"class":667},"own",[629,1947,671],{"class":650},[629,1949,1922],{"class":650},[629,1951,1952],{"class":642}," eq",[629,1954,1955],{"class":646},"(bookings",[629,1957,1187],{"class":650},[629,1959,1960],{"class":646},"createdBy",[629,1962,674],{"class":650},[629,1964,1933],{"class":646},[629,1966,1187],{"class":650},[629,1968,1969],{"class":646},"member)\n",[629,1971,1972,1974,1977,1979,1982,1984,1986,1988,1990,1992,1994,1997,1999,2002,2004,2006,2009,2011,2013,2015],{"class":631,"line":742},[629,1973,1930],{"class":650},[629,1975,1976],{"class":642}," or",[629,1978,647],{"class":646},[629,1980,1981],{"class":642},"eq",[629,1983,1955],{"class":646},[629,1985,1187],{"class":650},[629,1987,1960],{"class":646},[629,1989,674],{"class":650},[629,1991,1933],{"class":646},[629,1993,1187],{"class":650},[629,1995,1996],{"class":646},"member)",[629,1998,674],{"class":650},[629,2000,2001],{"class":642}," inArray",[629,2003,1955],{"class":646},[629,2005,1187],{"class":650},[629,2007,2008],{"class":646},"groupId",[629,2010,674],{"class":650},[629,2012,1933],{"class":646},[629,2014,1187],{"class":650},[629,2016,2017],{"class":646},"groups))\n",[629,2019,2020],{"class":631,"line":786},[629,2021,1059],{"class":646},[1061,2023,2024,2025,2027],{},"For now the Roles screen offers the ",[626,2026,1720],{}," condition on collections only. On a module's own actions it comes with\nthe first module that filters by it (the forms module), so an admin never sets a condition no module reads.",[1711,2029,2031,2032],{"id":2030},"team-roles-permissionsroles","Team roles: ",[626,2033,2034],{},"permissions.roles",[1061,2036,2037,2038,1003,2041,2044],{},"A module can bring team roles of its own, as many as it needs, keyed by a short name. SHADE keeps each as a custom\nrole of the module, under ",[626,2039,2040],{},"\u003Cplugin>.\u003Crole>",[626,2042,2043],{},"commerce.shop-manager","). Admins give them to editors on the Team\nscreen, and see them on the Roles screen as \"Shop: Shop manager\".",[619,2046,2048],{"className":621,"code":2047,"language":623,"meta":624,"style":624},"permissions: {\n  actions: COMMERCE_ACTIONS,\n  grants: { editor: ['commerce.orders.read', 'commerce.orders.manage', 'commerce.stock.manage'] },\n  roles: {\n    'shop-manager': {\n      label: 'commerce.roles.shopManager.label',\n      description: 'commerce.roles.shopManager.description',\n      required: ['commerce.orders.read', 'commerce.orders.refund', { action: 'team.roles.give', roles: ['shop-manager', 'order-handler', 'stock-clerk'] }],\n      actions: ['commerce.orders.manage', 'commerce.stock.manage']\n    },\n    'order-handler': { label: 'commerce.roles.orderHandler.label', required: ['commerce.orders.read', 'commerce.orders.manage'] },\n    'stock-clerk': { label: 'commerce.roles.stockClerk.label', required: ['commerce.stock.manage'] }\n  }\n}\n",[626,2049,2050,2058,2070,2113,2122,2135,2151,2167,2248,2273,2278,2329,2370,2374],{"__ignoreMap":624},[629,2051,2052,2054,2056],{"class":631,"line":632},[629,2053,1513],{"class":1602},[629,2055,661],{"class":650},[629,2057,1594],{"class":650},[629,2059,2060,2063,2065,2068],{"class":631,"line":654},[629,2061,2062],{"class":1602},"  actions",[629,2064,661],{"class":650},[629,2066,2067],{"class":646}," COMMERCE_ACTIONS",[629,2069,696],{"class":650},[629,2071,2072,2075,2077,2079,2081,2083,2085,2087,2090,2092,2094,2096,2098,2100,2102,2104,2107,2109,2111],{"class":631,"line":681},[629,2073,2074],{"class":1602},"  grants",[629,2076,661],{"class":650},[629,2078,750],{"class":650},[629,2080,975],{"class":1602},[629,2082,661],{"class":650},[629,2084,892],{"class":657},[629,2086,671],{"class":650},[629,2088,2089],{"class":667},"commerce.orders.read",[629,2091,671],{"class":650},[629,2093,674],{"class":650},[629,2095,664],{"class":650},[629,2097,1341],{"class":667},[629,2099,671],{"class":650},[629,2101,674],{"class":650},[629,2103,664],{"class":650},[629,2105,2106],{"class":667},"commerce.stock.manage",[629,2108,671],{"class":650},[629,2110,942],{"class":657},[629,2112,945],{"class":650},[629,2114,2115,2118,2120],{"class":631,"line":699},[629,2116,2117],{"class":1602},"  roles",[629,2119,661],{"class":650},[629,2121,1594],{"class":650},[629,2123,2124,2126,2129,2131,2133],{"class":631,"line":719},[629,2125,1610],{"class":650},[629,2127,2128],{"class":667},"shop-manager",[629,2130,671],{"class":650},[629,2132,1082],{"class":657},[629,2134,651],{"class":650},[629,2136,2137,2140,2142,2144,2147,2149],{"class":631,"line":736},[629,2138,2139],{"class":657},"      label",[629,2141,661],{"class":650},[629,2143,664],{"class":650},[629,2145,2146],{"class":667},"commerce.roles.shopManager.label",[629,2148,671],{"class":650},[629,2150,696],{"class":650},[629,2152,2153,2156,2158,2160,2163,2165],{"class":631,"line":742},[629,2154,2155],{"class":657},"      description",[629,2157,661],{"class":650},[629,2159,664],{"class":650},[629,2161,2162],{"class":667},"commerce.roles.shopManager.description",[629,2164,671],{"class":650},[629,2166,696],{"class":650},[629,2168,2169,2172,2174,2176,2178,2180,2182,2184,2186,2189,2191,2193,2195,2198,2200,2202,2205,2207,2209,2212,2214,2216,2218,2220,2222,2224,2226,2229,2231,2233,2235,2238,2240,2242,2244,2246],{"class":631,"line":786},[629,2170,2171],{"class":657},"      required",[629,2173,661],{"class":650},[629,2175,892],{"class":657},[629,2177,671],{"class":650},[629,2179,2089],{"class":667},[629,2181,671],{"class":650},[629,2183,674],{"class":650},[629,2185,664],{"class":650},[629,2187,2188],{"class":667},"commerce.orders.refund",[629,2190,671],{"class":650},[629,2192,674],{"class":650},[629,2194,750],{"class":650},[629,2196,2197],{"class":657}," action",[629,2199,661],{"class":650},[629,2201,664],{"class":650},[629,2203,2204],{"class":667},"team.roles.give",[629,2206,671],{"class":650},[629,2208,674],{"class":650},[629,2210,2211],{"class":657}," roles",[629,2213,661],{"class":650},[629,2215,892],{"class":657},[629,2217,671],{"class":650},[629,2219,2128],{"class":667},[629,2221,671],{"class":650},[629,2223,674],{"class":650},[629,2225,664],{"class":650},[629,2227,2228],{"class":667},"order-handler",[629,2230,671],{"class":650},[629,2232,674],{"class":650},[629,2234,664],{"class":650},[629,2236,2237],{"class":667},"stock-clerk",[629,2239,671],{"class":650},[629,2241,942],{"class":657},[629,2243,986],{"class":650},[629,2245,927],{"class":657},[629,2247,696],{"class":650},[629,2249,2250,2253,2255,2257,2259,2261,2263,2265,2267,2269,2271],{"class":631,"line":792},[629,2251,2252],{"class":657},"      actions",[629,2254,661],{"class":650},[629,2256,892],{"class":657},[629,2258,671],{"class":650},[629,2260,1341],{"class":667},[629,2262,671],{"class":650},[629,2264,674],{"class":650},[629,2266,664],{"class":650},[629,2268,2106],{"class":667},[629,2270,671],{"class":650},[629,2272,1051],{"class":657},[629,2274,2275],{"class":631,"line":798},[629,2276,2277],{"class":650},"    },\n",[629,2279,2280,2282,2284,2286,2288,2290,2293,2295,2297,2300,2302,2304,2307,2309,2311,2313,2315,2317,2319,2321,2323,2325,2327],{"class":631,"line":804},[629,2281,1610],{"class":650},[629,2283,2228],{"class":667},[629,2285,671],{"class":650},[629,2287,1082],{"class":657},[629,2289,895],{"class":650},[629,2291,2292],{"class":657}," label",[629,2294,661],{"class":650},[629,2296,664],{"class":650},[629,2298,2299],{"class":667},"commerce.roles.orderHandler.label",[629,2301,671],{"class":650},[629,2303,674],{"class":650},[629,2305,2306],{"class":657}," required",[629,2308,661],{"class":650},[629,2310,892],{"class":657},[629,2312,671],{"class":650},[629,2314,2089],{"class":667},[629,2316,671],{"class":650},[629,2318,674],{"class":650},[629,2320,664],{"class":650},[629,2322,1341],{"class":667},[629,2324,671],{"class":650},[629,2326,942],{"class":657},[629,2328,945],{"class":650},[629,2330,2331,2333,2335,2337,2339,2341,2343,2345,2347,2350,2352,2354,2356,2358,2360,2362,2364,2366,2368],{"class":631,"line":810},[629,2332,1610],{"class":650},[629,2334,2237],{"class":667},[629,2336,671],{"class":650},[629,2338,1082],{"class":657},[629,2340,895],{"class":650},[629,2342,2292],{"class":657},[629,2344,661],{"class":650},[629,2346,664],{"class":650},[629,2348,2349],{"class":667},"commerce.roles.stockClerk.label",[629,2351,671],{"class":650},[629,2353,674],{"class":650},[629,2355,2306],{"class":657},[629,2357,661],{"class":650},[629,2359,892],{"class":657},[629,2361,671],{"class":650},[629,2363,2106],{"class":667},[629,2365,671],{"class":650},[629,2367,942],{"class":657},[629,2369,1641],{"class":650},[629,2371,2372],{"class":631,"line":816},[629,2373,1636],{"class":650},[629,2375,2376],{"class":631,"line":822},[629,2377,1641],{"class":650},[1129,2379,2380,2389,2395,2401,2410],{},[1132,2381,2382,1123,2385,2388],{},[626,2383,2384],{},"label",[626,2386,2387],{},"description",": keys of the module's admin texts, or plain text. An admin may rename the role.",[1132,2390,2391,2394],{},[626,2392,2393],{},"required",": the module's actions the role always holds, and its grants. They are locked on the Roles screen.",[1132,2396,2397,2400],{},[626,2398,2399],{},"actions",": the module's actions it holds by default. An admin may add or remove the module's other actions.",[1132,2402,2403,2406,2407,2409],{},[626,2404,2405],{},"{ action: 'team.roles.give', roles: [...] }"," in ",[626,2408,2393],{},": the module's roles whose members a holder may manage on the\nTeam screen. Only roles of the same module, never core roles. Admins can't change it.",[1132,2411,2412,2413,2416,2417,2419],{},"Declare ",[626,2414,2415],{},"capabilities: { teamRoles: {} }",". The consent lists each role with what it holds and manages\n(",[1068,2418,389],{"href":390},").",[1061,2421,2422,2426,2427,2430],{},[2423,2424,2425],"strong",{},"The checks."," A role names only the module's own actions (from ",[626,2428,2429],{},"permissions.actions",") and the module's own roles.\nA core action, another module's action or another module's role stops the module from loading. Saving a role on the\nRoles screen checks the same again: a required action can't be taken off, and nothing outside the module can be\nadded, also not by a request made by hand.",[1061,2432,2433,2436,2437,2439,2440,2443,2444,2446,2447,1123,2449,2451,2452,2455],{},[2423,2434,2435],{},"Managing members."," A holder of a role with the ",[626,2438,2204],{}," grant may, on the Team screen, invite, create and remove team\nmembers whose role is in that list, and move them between those roles. Core checks it in its team services: the\nmember's current role and the role given must both be in the ",[626,2441,2442],{},"roles"," of that grant of the role the caller holds. The holder never\nsees other members, never gives another role or makes an admin, and can't change the roles. ",[626,2445,2204],{}," is a core action\nof the classes ",[626,2448,1664],{},[626,2450,1673],{},": only a person in the admin, never a token or the AI, holds it, and an admin's\nown custom roles can't hold it. The module's code can't use it: there is no SDK service for it yet. One such as ",[626,2453,2454],{},"inviteTeamMember(ctx, { email, name, role })","\nmay come later, limited to the roles the caller's role manages.",[1061,2457,2458,2461,2462,2464],{},[2423,2459,2460],{},"Threat model, in brief."," A module role can't hold the team's actions or anything outside the module, so declaring\nroles gives the module no more than its own actions already allow. Team management comes only from ",[626,2463,2204],{},", checked\nin core. An update that changes a role asks for consent again; it adds newly declared actions and never removes what\nan admin chose.",[1061,2466,2467,2470,2471,2473,2474,2476],{},[2423,2468,2469],{},"Lifecycle."," At each start SHADE adds new roles, updates ",[626,2472,2393],{}," (with its grants) as declared, and adds newly\ndeclared default actions. A role the module no longer declares goes, as on removal. Switching the module off changes\nnothing. Removing its package removes its roles at once and deactivates their members, who keep their audit history.\nUntrusted modules have no ",[626,2475,1513],{}," and so no team roles.",[1711,2478,2480,2481],{"id":2479},"what-the-module-itself-may-do-uses","What the module itself may do: ",[626,2482,2483],{},"uses",[1061,2485,2486,2487,2490,2491,2493],{},"Some of a module's work is started by no editor: its schedules, its public and account routes, and its handlers of\nevents other modules send (a payment's status, for the shop). That work runs as the module's own actor: ",[626,2488,2489],{},"{ id: SYSTEM_ACTOR_ID, role: 'package', name: 'package:\u003Cname>', module: '\u003Cname>' }",". It may do exactly what the manifest lists in ",[626,2492,2483],{},", and\nnothing by default:",[619,2495,2497],{"className":621,"code":2496,"language":623,"meta":624,"style":624},"export default defineModule({\n  name: 'newsletter',\n  \u002F\u002F …\n  uses: ['collections.website-posts.read', 'collections.website-posts.create'],\n  schedules: [{ name: 'import', intervalMs: 3_600_000, run: ctx => importIssues(ctx) }]\n})\n",[626,2498,2499,2511,2526,2531,2560,2614],{"__ignoreMap":624},[629,2500,2501,2503,2505,2507,2509],{"class":631,"line":632},[629,2502,636],{"class":635},[629,2504,639],{"class":635},[629,2506,643],{"class":642},[629,2508,647],{"class":646},[629,2510,651],{"class":650},[629,2512,2513,2515,2517,2519,2522,2524],{"class":631,"line":654},[629,2514,658],{"class":657},[629,2516,661],{"class":650},[629,2518,664],{"class":650},[629,2520,2521],{"class":667},"newsletter",[629,2523,671],{"class":650},[629,2525,696],{"class":650},[629,2527,2528],{"class":631,"line":681},[629,2529,2530],{"class":677},"  \u002F\u002F …\n",[629,2532,2533,2536,2538,2540,2542,2545,2547,2549,2551,2554,2556,2558],{"class":631,"line":699},[629,2534,2535],{"class":657},"  uses",[629,2537,661],{"class":650},[629,2539,892],{"class":646},[629,2541,671],{"class":650},[629,2543,2544],{"class":667},"collections.website-posts.read",[629,2546,671],{"class":650},[629,2548,674],{"class":650},[629,2550,664],{"class":650},[629,2552,2553],{"class":667},"collections.website-posts.create",[629,2555,671],{"class":650},[629,2557,927],{"class":646},[629,2559,696],{"class":650},[629,2561,2562,2565,2567,2569,2571,2574,2576,2578,2580,2582,2584,2587,2589,2593,2595,2598,2600,2602,2604,2607,2610,2612],{"class":631,"line":719},[629,2563,2564],{"class":657},"  schedules",[629,2566,661],{"class":650},[629,2568,892],{"class":646},[629,2570,895],{"class":650},[629,2572,2573],{"class":657}," name",[629,2575,661],{"class":650},[629,2577,664],{"class":650},[629,2579,1793],{"class":667},[629,2581,671],{"class":650},[629,2583,674],{"class":650},[629,2585,2586],{"class":657}," intervalMs",[629,2588,661],{"class":650},[629,2590,2592],{"class":2591},"sbssI"," 3_600_000",[629,2594,674],{"class":650},[629,2596,2597],{"class":642}," run",[629,2599,661],{"class":650},[629,2601,1879],{"class":1006},[629,2603,1013],{"class":999},[629,2605,2606],{"class":642}," importIssues",[629,2608,2609],{"class":646},"(ctx) ",[629,2611,986],{"class":650},[629,2613,1051],{"class":646},[629,2615,2616,2618],{"class":631,"line":736},[629,2617,986],{"class":650},[629,2619,1059],{"class":646},[1129,2621,2622,2635,2741,2760,2769,2786,2795,2830,2851,2866],{},[1132,2623,2624,2627,2628,2631,2632,2634],{},[2423,2625,2626],{},"What can be listed:"," core actions, actions of core's collections and of the module's own\n(",[626,2629,2630],{},"collections.\u003Cslug>.\u003Cverb>","), and the module's own actions (declared in ",[626,2633,2429],{},"). Another module's\naction or collection, a repeat, or an action SHADE doesn't know stops the module from loading.",[1132,2636,2637,2640,2641,1123,2643,2645,2646,2649,2650,696,2653,1089,2656,1089,2659,1089,2662,1089,2665,1089,2668,1123,2671,2674,2675,2678,2679,696,2682,1089,2685,1089,2688,1089,2691,1089,2694,1089,2697,696,2700,1123,2703,2706,2707,2709,2710,696,2713,2716,2717,2720,2721,1089,2724,696,2727,1089,2729,1123,2732,2734,2735,1089,2738,2419],{},[2423,2638,2639],{},"What can never be listed"," (the ",[626,2642,1661],{},[626,2644,1670],{}," classes, ",[626,2647,2648],{},"CEILINGS.package","): anything under ",[626,2651,2652],{},"team.",[626,2654,2655],{},"tokens.",[626,2657,2658],{},"audit.",[626,2660,2661],{},"errors.",[626,2663,2664],{},"plugins.",[626,2666,2667],{},"features.",[626,2669,2670],{},"maintenance.",[626,2672,2673],{},"programs.","; the forms collection (",[626,2676,2677],{},"collections.forms.*",", which reaches the visitors' submissions); ",[626,2680,2681],{},"email.send",[626,2683,2684],{},"settings.read",[626,2686,2687],{},"settings.update",[626,2689,2690],{},"private.read",[626,2692,2693],{},"accounts.roles",[626,2695,2696],{},"media.delete",[626,2698,2699],{},"rebuild.read",[626,2701,2702],{},"rebuild.trigger",[626,2704,2705],{},"build.report",". Of what MCP never reaches (class ",[626,2708,1673],{},"), ",[626,2711,2712],{},"media.upload",[626,2714,2715],{},"rebuild.request"," and publishing and deleting a collection's entries (",[626,2718,2719],{},"collections.website-pages.publish",") can be\nlisted, each with consent words of its own. Of core's own actions that leaves ",[626,2722,2723],{},"content.read",[626,2725,2726],{},"media.read",[626,2728,2712],{},[626,2730,2731],{},"media.update",[626,2733,2715],{},"; the theme's and the redirects' actions are the website\nmodule's own (",[626,2736,2737],{},"collections.website-theme.*",[626,2739,2740],{},"website.redirects.*",[1132,2742,2743,2746,2747,2750,2751,2754,2755,2759],{},[2423,2744,2745],{},"Other modules' collections",": a module may list actions of the collections a module it\n",[626,2748,2749],{},"requires"," marks as shared (",[626,2752,2753],{},"shares.collections","), and only those; see\n",[1068,2756,2758],{"href":2757},"#modules-that-build-on-other-modules","Modules that build on other modules",". Any other module's collection stops it\nloading.",[1132,2761,2762,2765,2766,2768],{},[2423,2763,2764],{},"Consent."," ",[626,2767,2483],{}," is signed in the package beside its capabilities: the install consent words each grant (in\nEnglish and Dutch), and an update that asks for more asks again.",[1132,2770,2771,2774,2775,2777,2778,2781,2782,2785],{},[2423,2772,2773],{},"Editors keep their own rights."," Session routes act as the editor (or token); ",[626,2776,2483],{},"\nnever adds to that. ",[626,2779,2780],{},"permissions.grants"," cannot grant to the ",[626,2783,2784],{},"package"," role.",[1132,2787,2788,2791,2792,2794],{},[2423,2789,2790],{},"Events of another module's work."," When module A acts as itself (its job writes a post), module B hears the event\nas B, with B's own ",[626,2793,2483],{},", never with A's; whoever caused it, B's handler acts as B (decision 0014).",[1132,2796,2797,2800,2801,2804,2805,2808,2809,2813,2814,1089,2817,1173,2820,2823,2824,1123,2826,2829],{},[2423,2798,2799],{},"Data sources."," A data source runs with the context of whoever asked for it (a read token, the preview, an\neditor), with ",[626,2802,2803],{},"ctx.plugin"," set. One that reads with the module's own grants, such as a source listing the module's\nown collection, asks for them with ",[626,2806,2807],{},"actAsModule(ctx)"," (see ",[1068,2810,2812],{"href":2811},"\u002Fdevelopers\u002Fmodules\u002Fcontent#content-services","Content services","); the consent says\nthe module acts on its own in its data sources too. Personal data sources, guards, ",[626,2815,2816],{},"onEnable",[626,2818,2819],{},"onDisable",[626,2821,2822],{},"onUninstall"," run for the caller, the admin (or, for a visitor's own export, nobody signed in), with their own rights,\nin a context made for the module: ",[626,2825,1118],{},[626,2827,2828],{},"moduleKv(ctx)"," are the module's own.",[1132,2831,2832,2835,2836,2839,2840,2843,2844],{},[2423,2833,2834],{},"Audit."," What the module's actor changes through core's services is audited with no actor id, the name\n",[626,2837,2838],{},"package:\u003Cname>"," and the module in ",[626,2841,2842],{},"actor_module","; the audit screen shows \"Module ",[2845,2846,2847,2848,2419],"name",{},"\" only from that column,\nnever from a name (a person cannot be called ",[626,2849,2850],{},"package:…",[1132,2852,2853,2856,2857,2860,2861,2865],{},[2423,2854,2855],{},"Not a signed-in account."," Services any signed-in account may call (their own account, the AI changes screen, the admin's\nmodule list) refuse the module's actor (",[626,2858,2859],{},"assertSignedIn","). Its permission refusals are counted per module, never\nper account: ten within an hour raise the security alert ",[2862,2863,2864],"em",{},"Many refused actions by one module",", naming it.",[1132,2867,2868,2869,1187],{},"Untrusted modules may not have ",[626,2870,2483],{},[1061,2872,2873],{},"A module that only touches its own tables and the shared services (email: it checks no\npermission) needs no grants: the official modules' schedules and public routes declare none.",[1224,2875,2876],{"id":1085},"Settings",[1061,2878,2879,2880,2882,2883,2886,2887,2890],{},"Modules never read the environment: environment variables are the instance's, set by whoever runs it.\n",[626,2881,1074],{}," refuses a package whose own server code reads ",[626,2884,2885],{},"process.env",", naming the files. A module declares\n",[626,2888,2889],{},"settings: { fields, secrets }"," in its manifest; admins fill them in on the Modules page, which renders the fields with the standard field components. Labels and help may be\ntranslation keys from the module's admin texts.",[1129,2892,2893,2904,2907,2920],{},[1132,2894,2895,2896,2899,2900,2903],{},"A field's ",[626,2897,2898],{},"section"," (a translation key or plain text) is the heading it is shown under, in the order the sections\nfirst appear; fields without one come first. Only how the form looks: the values stay one flat object. Amounts of\nmoney are a ",[626,2901,2902],{},"money"," field (shown in euros, kept in cents).",[1132,2905,2906],{},"Required settings that are empty make the module \"Needs setup\": it cannot be switched on, and a module that is on\ncannot lose a required setting.",[1132,2908,2909,2912,2913,2916,2917,2919],{},[626,2910,2911],{},"secrets"," names text settings that hold secrets (API keys, webhook signing secrets). They are encrypted in the\ndatabase with a key derived from ",[626,2914,2915],{},"APP_SECRET"," and never sent to the browser (the admin only learns whether one is\nset), nor kept in an uninstall's backup. Changing ",[626,2918,2915],{}," makes them unreadable: enter them again.",[1132,2921,2922,2923,2926,2927,2930,2931,2934,2935,2938,2939,2942,2943,2946,2947,1089,2950,2953,2954,2957,2958,2961,2962,2965,2966,2969,2970,2973],{},"Server code reads the values with ",[626,2924,2925],{},"getModuleSettings(ctx, '\u003Cname>')"," (secrets decrypted): every field as it is\ndefined, a stored value that still fits it or else its ",[626,2928,2929],{},"defaultValue"," (else its empty value), so nothing needs\nparsing by hand. Keep the fields in one constant (",[626,2932,2933],{},"export const SETTINGS_FIELDS = [...] as const satisfies readonly FieldDescriptor[]",", both from ",[626,2936,2937],{},"@shadestack\u002Fmodule-sdk\u002Fshared",") and read them typed:\n",[626,2940,2941],{},"getModuleSettings\u003CInferSettings\u003Ctypeof SETTINGS_FIELDS>>(ctx, '\u003Cname>')"," (a field with a default is never null).\nAn ",[626,2944,2945],{},"emails"," field gives a checked list of addresses. Its own only, and only\non a context core made for the module: the one its routes, event handlers, schedules and data sources get, or\none derived from it. Any other is refused (FORBIDDEN): another module's name, and a\ncontext the code copied or built itself (",[626,2948,2949],{},"{ ...ctx }",[626,2951,2952],{},"{ db, vault }","), whatever ",[626,2955,2956],{},"plugin"," it says. In the\nmodule's own tests, make the context with ",[626,2959,2960],{},"moduleContext(ctx, '\u003Cname>')"," from ",[626,2963,2964],{},"@shadestack\u002Fmodule-sdk\u002Ftesting","\n(it keeps the actor you give it). A ",[626,2967,2968],{},"webhook"," route's\n",[626,2971,2972],{},"secret"," names one of the secret settings; while it is empty every call is refused.",[1224,2975,2758],{"id":2976},"modules-that-build-on-other-modules",[1061,2978,2979,2980,2983,2984,2987,2988,2991,2992,2995,2996,2999],{},"A module names the modules it builds on, each with the versions it works with, ",[2423,2981,2982],{},"within one major\nversion"," of it: an exact version (",[626,2985,2986],{},"1.2.0","), a caret range (",[626,2989,2990],{},"^1.2.0",": 1.2.0 up to, not including, 2.0.0; for 0.x\nnpm's meaning, ",[626,2993,2994],{},"^0.2.3"," up to 0.3.0) or a tilde range (",[626,2997,2998],{},"~1.2.0",": up to 1.3.0). So a patch or minor release of the\nmodule it builds on needs no new release of yours, and a major version, which may change what you use, is never taken\nwithout one:",[619,3001,3003],{"className":621,"code":3002,"language":623,"meta":624,"style":624},"export default defineModule({\n  name: 'clinic',\n  version: '1.0.0',\n  shade: '^0.1.0',\n  description: 'A clinic’s own system, on the website plugin',\n  requires: { website: '^1.0.0' },\n  uses: ['collections.website-pages.read']\n})\n",[626,3004,3005,3017,3032,3047,3061,3076,3099,3116],{"__ignoreMap":624},[629,3006,3007,3009,3011,3013,3015],{"class":631,"line":632},[629,3008,636],{"class":635},[629,3010,639],{"class":635},[629,3012,643],{"class":642},[629,3014,647],{"class":646},[629,3016,651],{"class":650},[629,3018,3019,3021,3023,3025,3028,3030],{"class":631,"line":654},[629,3020,658],{"class":657},[629,3022,661],{"class":650},[629,3024,664],{"class":650},[629,3026,3027],{"class":667},"clinic",[629,3029,671],{"class":650},[629,3031,696],{"class":650},[629,3033,3034,3036,3038,3040,3043,3045],{"class":631,"line":681},[629,3035,684],{"class":657},[629,3037,661],{"class":650},[629,3039,664],{"class":650},[629,3041,3042],{"class":667},"1.0.0",[629,3044,671],{"class":650},[629,3046,696],{"class":650},[629,3048,3049,3051,3053,3055,3057,3059],{"class":631,"line":699},[629,3050,702],{"class":657},[629,3052,661],{"class":650},[629,3054,664],{"class":650},[629,3056,709],{"class":667},[629,3058,671],{"class":650},[629,3060,696],{"class":650},[629,3062,3063,3065,3067,3069,3072,3074],{"class":631,"line":719},[629,3064,722],{"class":657},[629,3066,661],{"class":650},[629,3068,664],{"class":650},[629,3070,3071],{"class":667},"A clinic’s own system, on the website plugin",[629,3073,671],{"class":650},[629,3075,696],{"class":650},[629,3077,3078,3081,3083,3085,3088,3090,3092,3095,3097],{"class":631,"line":736},[629,3079,3080],{"class":657},"  requires",[629,3082,661],{"class":650},[629,3084,750],{"class":650},[629,3086,3087],{"class":657}," website",[629,3089,661],{"class":650},[629,3091,664],{"class":650},[629,3093,3094],{"class":667},"^1.0.0",[629,3096,671],{"class":650},[629,3098,783],{"class":650},[629,3100,3101,3103,3105,3107,3109,3112,3114],{"class":631,"line":742},[629,3102,2535],{"class":657},[629,3104,661],{"class":650},[629,3106,892],{"class":646},[629,3108,671],{"class":650},[629,3110,3111],{"class":667},"collections.website-pages.read",[629,3113,671],{"class":650},[629,3115,1051],{"class":646},[629,3117,3118,3120],{"class":631,"line":786},[629,3119,986],{"class":650},[629,3121,1059],{"class":646},[1129,3123,3124,3134,3140,3150],{},[1132,3125,3126,3129,3130,3133],{},[2423,3127,3128],{},"The loader"," refuses a module whose required module is missing or of a version outside its range, naming both\n(",[626,3131,3132],{},"Module \"clinic\" requires \"website\" ^1.0.0, but \"website\" is 2.0.0","), and modules that require each other in a\ncycle; it loads the required modules first, so their parts are registered first. At the API's start such a module\nis left out instead, with the modules that build on it, and the Modules screen says why.",[1132,3135,3136,3139],{},[2423,3137,3138],{},"The switch",": a module counts as off while a module it requires is off. It can only be switched on after them;\nswitching one of them off, uninstalling it or removing its package is refused while a module that is on needs it,\nnaming that module. Admins only, as everything module-related.",[1132,3141,3142,3145,3146,2419],{},[2423,3143,3144],{},"Installing"," checks the same against what is installed, both ways (see\n",[1068,3147,3149],{"href":3148},"\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling#installing-a-trusted-module","Installing a trusted module",[1132,3151,3152,3154,3155,3157,3158,3160,3161,1089,3164,3167,3168,1089,3171,3174,3175,1089,3178,3181,3182,3185,3186,3189,3190,1330,3192,1187],{},[626,3153,2749],{}," is a map of names to ranges; the old list of names is refused with a message. A range that isn't within\none major version is refused by ",[626,3156,1230],{}," (at load and by ",[626,3159,1074],{},") and at install, naming both\nmodules and the rule: ",[626,3162,3163],{},"*",[626,3165,3166],{},"x",", an open end (",[626,3169,3170],{},">=1.0.0",[626,3172,3173],{},">1.0.0",") or a range across major versions\n(",[626,3176,3177],{},">=1.0.0 \u003C3.0.0",[626,3179,3180],{},"1.x || 2.x","). To work with a new major version, release a new version of your module. The\n",[626,3183,3184],{},"shade"," range is not held to this: it keeps every npm form (",[626,3187,3188],{},"isVersionRange","). Untrusted modules may not have\n",[626,3191,2749],{},[626,3193,3194],{},"shares",[1061,3196,3197,3200],{},[2423,3198,3199],{},"Shared collections."," A module decides which of its collections the modules that require it may use:",[619,3202,3204],{"className":621,"code":3203,"language":623,"meta":624,"style":624},"\u002F\u002F website\nshares: { collections: ['website-pages'] }\n",[626,3205,3206,3211],{"__ignoreMap":624},[629,3207,3208],{"class":631,"line":632},[629,3209,3210],{"class":677},"\u002F\u002F website\n",[629,3212,3213,3215,3217,3219,3222,3224,3226,3228,3231,3233,3235],{"class":631,"line":654},[629,3214,3194],{"class":1602},[629,3216,661],{"class":650},[629,3218,750],{"class":650},[629,3220,3221],{"class":1602}," collections",[629,3223,661],{"class":650},[629,3225,892],{"class":657},[629,3227,671],{"class":650},[629,3229,3230],{"class":667},"website-pages",[629,3232,671],{"class":650},[629,3234,942],{"class":657},[629,3236,1641],{"class":650},[1061,3238,3239,3240,3242,3243,3246],{},"A module that requires it may then list actions of those collections in its ",[626,3241,2483],{},"; its own actor acts on them\nthrough core's content services, with their permission checks and audit, as on core's collections. A collection that\nisn't shared, or one of a module it doesn't require, stops it loading (and installing). The consent names both: the\nprovider's lists what it shares (",[626,3244,3245],{},"sharedCollections","), the other's lists the modules it builds on and each grant on a\nshared collection says whose it is. An update that starts using a shared collection, or shares more, asks again.",[1061,3248,3249,3252,3253,3256,3257,3260,3261,3264,3265,2406,3268,3271,3272,3275,3276,3278],{},[2423,3250,3251],{},"Shared account roles."," In the same way a module may share account roles:\n",[626,3254,3255],{},"shares: { accountRoles: ['mechanic'] }",". A module that requires it may then check their abilities on its account\nroutes and in ",[626,3258,3259],{},"inScope",", named with the module's name (",[626,3262,3263],{},"auth: { account: 'repairs:jobs.read' }","); it sees those\nroles as ",[626,3266,3267],{},"repairs:mechanic",[626,3269,3270],{},"request.account.roles",", and never gives them. An ability of a module it doesn't\nrequire, or that no shared role gives, stops it loading (and leaves it out at the API's start). The provider's\nconsent lists what it shares (",[626,3273,3274],{},"sharedVisitorGroups",", the signed name, kept). Any other key of ",[626,3277,3194],{}," is refused.",[1224,3280,3282,3283],{"id":3281},"alert-rules-alerts","Alert rules: ",[626,3284,3285],{},"alerts",[1061,3287,3288,3289,3292,3293,3296,3297,2419],{},"A trusted module may bring security alert rules of its own (experimental in 0.1): a burst of one of its own audit\nactions. The rule is registered as ",[626,3290,3291],{},"\u003Cplugin>:\u003Cname>"," and then works like core's: it is listed under ",[2423,3294,3295],{},"Settings →\nSecurity alerts",", an admin can switch it off, and every active admin is emailed when it raises an alert\n(",[1068,3298,225],{"href":226},[619,3300,3302],{"className":621,"code":3301,"language":623,"meta":624,"style":624},"alerts: {\n  rules: [{\n    name: 'webhook-refused',                 \u002F\u002F lowercase letters, digits and hyphens\n    title: { en: 'Payment webhooks are being refused', nl: 'Betaalwebhooks worden geweigerd' },\n    help: { en: 'Calls to the payment webhook named no Mollie payment…', nl: '…' },\n    burst: { action: 'payments.webhook-refused', count: 5, windowMinutes: 15 }\n  }]\n}\n",[626,3303,3304,3312,3323,3342,3379,3413,3456,3463],{"__ignoreMap":624},[629,3305,3306,3308,3310],{"class":631,"line":632},[629,3307,3285],{"class":1602},[629,3309,661],{"class":650},[629,3311,1594],{"class":650},[629,3313,3314,3317,3319,3321],{"class":631,"line":654},[629,3315,3316],{"class":1602},"  rules",[629,3318,661],{"class":650},[629,3320,892],{"class":657},[629,3322,651],{"class":650},[629,3324,3325,3328,3330,3332,3335,3337,3339],{"class":631,"line":681},[629,3326,3327],{"class":657},"    name",[629,3329,661],{"class":650},[629,3331,664],{"class":650},[629,3333,3334],{"class":667},"webhook-refused",[629,3336,671],{"class":650},[629,3338,674],{"class":650},[629,3340,3341],{"class":677},"                 \u002F\u002F lowercase letters, digits and hyphens\n",[629,3343,3344,3347,3349,3351,3354,3356,3358,3361,3363,3365,3368,3370,3372,3375,3377],{"class":631,"line":699},[629,3345,3346],{"class":657},"    title",[629,3348,661],{"class":650},[629,3350,750],{"class":650},[629,3352,3353],{"class":657}," en",[629,3355,661],{"class":650},[629,3357,664],{"class":650},[629,3359,3360],{"class":667},"Payment webhooks are being refused",[629,3362,671],{"class":650},[629,3364,674],{"class":650},[629,3366,3367],{"class":657}," nl",[629,3369,661],{"class":650},[629,3371,664],{"class":650},[629,3373,3374],{"class":667},"Betaalwebhooks worden geweigerd",[629,3376,671],{"class":650},[629,3378,783],{"class":650},[629,3380,3381,3384,3386,3388,3390,3392,3394,3397,3399,3401,3403,3405,3407,3409,3411],{"class":631,"line":719},[629,3382,3383],{"class":657},"    help",[629,3385,661],{"class":650},[629,3387,750],{"class":650},[629,3389,3353],{"class":657},[629,3391,661],{"class":650},[629,3393,664],{"class":650},[629,3395,3396],{"class":667},"Calls to the payment webhook named no Mollie payment…",[629,3398,671],{"class":650},[629,3400,674],{"class":650},[629,3402,3367],{"class":657},[629,3404,661],{"class":650},[629,3406,664],{"class":650},[629,3408,729],{"class":667},[629,3410,671],{"class":650},[629,3412,783],{"class":650},[629,3414,3415,3418,3420,3422,3424,3426,3428,3431,3433,3435,3438,3440,3443,3445,3448,3450,3453],{"class":631,"line":736},[629,3416,3417],{"class":657},"    burst",[629,3419,661],{"class":650},[629,3421,750],{"class":650},[629,3423,2197],{"class":657},[629,3425,661],{"class":650},[629,3427,664],{"class":650},[629,3429,3430],{"class":667},"payments.webhook-refused",[629,3432,671],{"class":650},[629,3434,674],{"class":650},[629,3436,3437],{"class":657}," count",[629,3439,661],{"class":650},[629,3441,3442],{"class":2591}," 5",[629,3444,674],{"class":650},[629,3446,3447],{"class":657}," windowMinutes",[629,3449,661],{"class":650},[629,3451,3452],{"class":2591}," 15",[629,3454,3455],{"class":650}," }\n",[629,3457,3458,3461],{"class":631,"line":742},[629,3459,3460],{"class":650},"  }",[629,3462,1051],{"class":657},[629,3464,3465],{"class":631,"line":786},[629,3466,1641],{"class":650},[1129,3468,3469,3495],{},[1132,3470,3471,1123,3474,3477,3478,3481,3482,2709,3485,3488,3489,3492,3493,1187],{},[626,3472,3473],{},"title",[626,3475,3476],{},"help"," each need an English and a Dutch text. ",[626,3479,3480],{},"burst.action"," must be one of the module's own audit\nactions (",[626,3483,3484],{},"\u003Cplugin>.…",[626,3486,3487],{},"count"," a whole number from 1 and ",[626,3490,3491],{},"windowMinutes"," from 1 to 1440. The loader refuses\nanything else, naming the rule. An untrusted module may not have ",[626,3494,3285],{},[1132,3496,3497,3498,3501,3502,3504,3505,3508,3509,3512,3513,1123,3516,1187],{},"A refusal worth counting is recorded with ",[626,3499,3500],{},"recordModuleRefusal(ctx, { action, subject, summary, reason?, windowMs })","\nfrom ",[626,3503,1724],{},", with the context SHADE gave the module's code. It writes one audit entry for the\nfirst refusal of its ",[626,3506,3507],{},"subject"," (a route or a provider, never an address or a secret) in each window of at least a\nminute, so a flood is one entry per window and the burst counts windows, not requests. It never throws and never\nchanges the answer: the refusal stands when it cannot be recorded. ",[626,3510,3511],{},"action"," must start with the module's name.\nKeep personal data out of ",[626,3514,3515],{},"summary",[626,3517,3518],{},"reason",[1061,3520,3521,3522,3524],{},"The payments module records a refused webhook this way and raises ",[2862,3523,3360],{}," after five such\nminutes in a quarter of an hour.",[3526,3527,3528],"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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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 .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}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);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":624,"searchDepth":654,"depth":654,"links":3530},[3531,3533,3540,3541,3542],{"id":1226,"depth":654,"text":3532},"Naming rules (enforced by validateModule)",{"id":1513,"depth":654,"text":1514,"children":3534},[3535,3536,3538],{"id":1713,"depth":681,"text":1714},{"id":2030,"depth":681,"text":3537},"Team roles: permissions.roles",{"id":2479,"depth":681,"text":3539},"What the module itself may do: uses",{"id":1085,"depth":654,"text":2876},{"id":2976,"depth":654,"text":2758},{"id":3281,"depth":654,"text":3543},"Alert rules: alerts","md",null,{},{"title":459,"description":624},"wuKewyo0Y61Qc1BXFxxzIw-Jw5RfiDcUroVyCkQc9FA",[3550,3551],{"title":455,"path":456,"stem":457,"description":624,"children":-1},{"title":463,"path":464,"stem":465,"description":624,"children":-1},1796500155595]