[{"data":1,"prerenderedAt":1787},["ShallowReactive",2],{"navigation_docs":3,"-developers-modules-calls-between-modules":613,"-developers-modules-calls-between-modules-surround":1784},[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":451,"body":615,"description":703,"extension":1779,"links":1780,"meta":1781,"navigation":770,"path":452,"seo":1782,"stem":453,"__hash__":1783},"docs\u002F4.developers\u002F3.modules\u002F11.calls-between-modules.md",{"type":616,"value":617,"toc":1770},"minimark",[618,674,677,682,697,1002,1021,1027,1221,1232,1238,1448,1505,1527,1531,1574,1740,1744,1766],[619,620,621,622,626,627,630,631,634,635,639,640,644,645,647,648,651,652,647,654,647,657,647,660,647,663,647,666,669,670,673],"p",{},"A module that builds on another can call it. The module that offers the calls lists them in its manifest part\n",[623,624,625],"code",{},"provides","; the module that calls them says it ",[623,628,629],{},"requires"," the first and calls with ",[623,632,633],{},"callModule",". Calls between modules\nare ",[636,637,638],"strong",{},"experimental"," in 0.1 (see ",[641,642,643],"a",{"href":444},"Experimental manifest parts","): ",[623,646,625],{},", ",[623,649,650],{},"defineModuleCalls",",\n",[623,653,633],{},[623,655,656],{},"ModuleCallContract",[623,658,659],{},"ModuleCallSpec",[623,661,662],{},"ModuleProvides",[623,664,665],{},"ModuleCall",[623,667,668],{},"ModuleCallHandler"," and\n",[623,671,672],{},"ModuleCaller"," may change in a minor version. Both modules must be trusted.",[619,675,676],{},"The payments module is the example: the shop starts, reads, cancels and refunds payments by calling it, and hears\nwhat happens to them as events. Core has no payments of its own.",[678,679,681],"h2",{"id":680},"the-contract","The contract",[619,683,684,685,688,689,692,693,696],{},"The offering module exports its calls from a ",[623,686,687],{},"shared"," entry (",[623,690,691],{},"@shadestack\u002Fmodule-payments\u002Fshared","), written with\n",[623,694,695],{},"zod",", so the callers can import them without importing its server code:",[698,699,704],"pre",{"className":700,"code":701,"language":702,"meta":703,"style":703},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import type { ModuleCallContract } from '@shadestack\u002Fmodule-sdk\u002Fshared'\nimport * as z from 'zod'\n\nexport const PAYMENTS_CALLS = {\n  start: {\n    description: 'Starts a hosted checkout for the caller: the payment\\'s id and where to send the visitor',\n    input: StartPaymentInput,\n    answer: z.object({ paymentId: z.string(), checkoutUrl: z.string() })\n  },\n  get: { description: 'One of the caller\\'s payments', input: z.object({ id: z.string() }), answer: Payment },\n  \u002F\u002F getMany, cancel, refund …\n} satisfies ModuleCallContract\n","ts","",[623,705,706,742,765,772,791,803,827,840,902,908,983,990],{"__ignoreMap":703},[707,708,711,715,718,722,726,729,732,735,739],"span",{"class":709,"line":710},"line",1,[707,712,714],{"class":713},"s7zQu","import",[707,716,717],{"class":713}," type",[707,719,721],{"class":720},"sMK4o"," {",[707,723,725],{"class":724},"sTEyZ"," ModuleCallContract",[707,727,728],{"class":720}," }",[707,730,731],{"class":713}," from",[707,733,734],{"class":720}," '",[707,736,738],{"class":737},"sfazB","@shadestack\u002Fmodule-sdk\u002Fshared",[707,740,741],{"class":720},"'\n",[707,743,745,747,750,753,756,759,761,763],{"class":709,"line":744},2,[707,746,714],{"class":713},[707,748,749],{"class":720}," *",[707,751,752],{"class":713}," as",[707,754,755],{"class":724}," z ",[707,757,758],{"class":713},"from",[707,760,734],{"class":720},[707,762,695],{"class":737},[707,764,741],{"class":720},[707,766,768],{"class":709,"line":767},3,[707,769,771],{"emptyLinePlaceholder":770},true,"\n",[707,773,775,778,782,785,788],{"class":709,"line":774},4,[707,776,777],{"class":713},"export",[707,779,781],{"class":780},"spNyl"," const",[707,783,784],{"class":724}," PAYMENTS_CALLS ",[707,786,787],{"class":720},"=",[707,789,790],{"class":720}," {\n",[707,792,794,798,801],{"class":709,"line":793},5,[707,795,797],{"class":796},"swJcz","  start",[707,799,800],{"class":720},":",[707,802,790],{"class":720},[707,804,806,809,811,813,816,819,822,825],{"class":709,"line":805},6,[707,807,808],{"class":796},"    description",[707,810,800],{"class":720},[707,812,734],{"class":720},[707,814,815],{"class":737},"Starts a hosted checkout for the caller: the payment",[707,817,818],{"class":724},"\\'",[707,820,821],{"class":737},"s id and where to send the visitor",[707,823,824],{"class":720},"'",[707,826,651],{"class":720},[707,828,830,833,835,838],{"class":709,"line":829},7,[707,831,832],{"class":796},"    input",[707,834,800],{"class":720},[707,836,837],{"class":724}," StartPaymentInput",[707,839,651],{"class":720},[707,841,843,846,848,851,854,858,861,864,867,869,871,873,876,879,882,885,887,889,891,893,896,899],{"class":709,"line":842},8,[707,844,845],{"class":796},"    answer",[707,847,800],{"class":720},[707,849,850],{"class":724}," z",[707,852,853],{"class":720},".",[707,855,857],{"class":856},"s2Zo4","object",[707,859,860],{"class":724},"(",[707,862,863],{"class":720},"{",[707,865,866],{"class":796}," paymentId",[707,868,800],{"class":720},[707,870,850],{"class":724},[707,872,853],{"class":720},[707,874,875],{"class":856},"string",[707,877,878],{"class":724},"()",[707,880,881],{"class":720},",",[707,883,884],{"class":796}," checkoutUrl",[707,886,800],{"class":720},[707,888,850],{"class":724},[707,890,853],{"class":720},[707,892,875],{"class":856},[707,894,895],{"class":724},"() ",[707,897,898],{"class":720},"}",[707,900,901],{"class":724},")\n",[707,903,905],{"class":709,"line":904},9,[707,906,907],{"class":720},"  },\n",[707,909,911,914,916,918,921,923,925,928,930,933,935,937,940,942,944,946,948,950,952,955,957,959,961,963,965,967,970,972,975,977,980],{"class":709,"line":910},10,[707,912,913],{"class":796},"  get",[707,915,800],{"class":720},[707,917,721],{"class":720},[707,919,920],{"class":796}," description",[707,922,800],{"class":720},[707,924,734],{"class":720},[707,926,927],{"class":737},"One of the caller",[707,929,818],{"class":724},[707,931,932],{"class":737},"s payments",[707,934,824],{"class":720},[707,936,881],{"class":720},[707,938,939],{"class":796}," input",[707,941,800],{"class":720},[707,943,850],{"class":724},[707,945,853],{"class":720},[707,947,857],{"class":856},[707,949,860],{"class":724},[707,951,863],{"class":720},[707,953,954],{"class":796}," id",[707,956,800],{"class":720},[707,958,850],{"class":724},[707,960,853],{"class":720},[707,962,875],{"class":856},[707,964,895],{"class":724},[707,966,898],{"class":720},[707,968,969],{"class":724},")",[707,971,881],{"class":720},[707,973,974],{"class":796}," answer",[707,976,800],{"class":720},[707,978,979],{"class":724}," Payment ",[707,981,982],{"class":720},"},\n",[707,984,986],{"class":709,"line":985},11,[707,987,989],{"class":988},"sHwdD","  \u002F\u002F getMany, cancel, refund …\n",[707,991,993,995,998],{"class":709,"line":992},12,[707,994,898],{"class":720},[707,996,997],{"class":713}," satisfies",[707,999,1001],{"class":1000},"sBMFI"," ModuleCallContract\n",[619,1003,1004,1005,1008,1009,1012,1013,1016,1017,1020],{},"Each call has a ",[623,1006,1007],{},"description",", an ",[623,1010,1011],{},"input"," schema and an ",[623,1014,1015],{},"answer"," schema. Amounts are SHADE's ",[623,1018,1019],{},"Money"," (whole minor units\nand a currency), never floats. A caller imports the contract as a peer dependency of the offering module's package,\nnever its server code.",[678,1022,1024,1025],{"id":1023},"offering-calls-provides","Offering calls: ",[623,1026,625],{},[698,1028,1030],{"className":700,"code":1029,"language":702,"meta":703,"style":703},"import { defineModuleCalls } from '@shadestack\u002Fmodule-sdk\u002Fserver'\n\nexport const provides = defineModuleCalls(PAYMENTS_CALLS, {\n  start: (ctx, input, { caller }) => startPayment(ctx, caller, input),\n  get: (ctx, { id }, { caller }) => getPayment(ctx, caller, id),\n  \u002F\u002F …\n})\n\nexport default defineModule({ name: 'payments', provides, \u002F* … *\u002F })\n",[623,1031,1032,1052,1056,1076,1123,1166,1171,1177,1181],{"__ignoreMap":703},[707,1033,1034,1036,1038,1041,1043,1045,1047,1050],{"class":709,"line":710},[707,1035,714],{"class":713},[707,1037,721],{"class":720},[707,1039,1040],{"class":724}," defineModuleCalls",[707,1042,728],{"class":720},[707,1044,731],{"class":713},[707,1046,734],{"class":720},[707,1048,1049],{"class":737},"@shadestack\u002Fmodule-sdk\u002Fserver",[707,1051,741],{"class":720},[707,1053,1054],{"class":709,"line":744},[707,1055,771],{"emptyLinePlaceholder":770},[707,1057,1058,1060,1062,1065,1067,1069,1072,1074],{"class":709,"line":767},[707,1059,777],{"class":713},[707,1061,781],{"class":780},[707,1063,1064],{"class":724}," provides ",[707,1066,787],{"class":720},[707,1068,1040],{"class":856},[707,1070,1071],{"class":724},"(PAYMENTS_CALLS",[707,1073,881],{"class":720},[707,1075,790],{"class":720},[707,1077,1078,1080,1082,1085,1089,1091,1093,1095,1097,1100,1103,1106,1109,1112,1114,1116,1118,1121],{"class":709,"line":774},[707,1079,797],{"class":856},[707,1081,800],{"class":720},[707,1083,1084],{"class":720}," (",[707,1086,1088],{"class":1087},"sHdIc","ctx",[707,1090,881],{"class":720},[707,1092,939],{"class":1087},[707,1094,881],{"class":720},[707,1096,721],{"class":720},[707,1098,1099],{"class":1087}," caller",[707,1101,1102],{"class":720}," })",[707,1104,1105],{"class":780}," =>",[707,1107,1108],{"class":856}," startPayment",[707,1110,1111],{"class":724},"(ctx",[707,1113,881],{"class":720},[707,1115,1099],{"class":724},[707,1117,881],{"class":720},[707,1119,1120],{"class":724}," input)",[707,1122,651],{"class":720},[707,1124,1125,1127,1129,1131,1133,1135,1137,1139,1142,1144,1146,1148,1150,1153,1155,1157,1159,1161,1164],{"class":709,"line":793},[707,1126,913],{"class":856},[707,1128,800],{"class":720},[707,1130,1084],{"class":720},[707,1132,1088],{"class":1087},[707,1134,881],{"class":720},[707,1136,721],{"class":720},[707,1138,954],{"class":1087},[707,1140,1141],{"class":720}," },",[707,1143,721],{"class":720},[707,1145,1099],{"class":1087},[707,1147,1102],{"class":720},[707,1149,1105],{"class":780},[707,1151,1152],{"class":856}," getPayment",[707,1154,1111],{"class":724},[707,1156,881],{"class":720},[707,1158,1099],{"class":724},[707,1160,881],{"class":720},[707,1162,1163],{"class":724}," id)",[707,1165,651],{"class":720},[707,1167,1168],{"class":709,"line":805},[707,1169,1170],{"class":988},"  \u002F\u002F …\n",[707,1172,1173,1175],{"class":709,"line":829},[707,1174,898],{"class":720},[707,1176,901],{"class":724},[707,1178,1179],{"class":709,"line":842},[707,1180,771],{"emptyLinePlaceholder":770},[707,1182,1183,1185,1188,1191,1193,1195,1198,1200,1202,1205,1207,1209,1212,1214,1217,1219],{"class":709,"line":904},[707,1184,777],{"class":713},[707,1186,1187],{"class":713}," default",[707,1189,1190],{"class":856}," defineModule",[707,1192,860],{"class":724},[707,1194,863],{"class":720},[707,1196,1197],{"class":796}," name",[707,1199,800],{"class":720},[707,1201,734],{"class":720},[707,1203,1204],{"class":737},"payments",[707,1206,824],{"class":720},[707,1208,881],{"class":720},[707,1210,1211],{"class":724}," provides",[707,1213,881],{"class":720},[707,1215,1216],{"class":988}," \u002F* … *\u002F",[707,1218,728],{"class":720},[707,1220,901],{"class":724},[619,1222,1223,1224,1227,1228,1231],{},"A handler gets the context made for the offering module, the checked input and who called (",[623,1225,1226],{},"caller",", the calling\nmodule's name). It must keep each caller to its own records: the payments module answers NOT_FOUND for another module's\npayment. The handler does not check the caller's permissions: the caller does, before it calls (the shop checks\n",[623,1229,1230],{},"commerce.orders.refund"," before it refunds). The handler runs in the caller's transaction, for whoever caused the call,\nso its writes and events commit or roll back with the caller's.",[678,1233,1235,1236],{"id":1234},"calling-callmodule","Calling: ",[623,1237,633],{},[698,1239,1241],{"className":700,"code":1240,"language":702,"meta":703,"style":703},"import { callModule } from '@shadestack\u002Fmodule-sdk\u002Fserver'\nimport { PAYMENTS_CALLS } from '@shadestack\u002Fmodule-payments\u002Fshared'\n\nconst { paymentId, checkoutUrl } = await callModule(ctx, 'payments', PAYMENTS_CALLS, 'start', {\n  reference: order.id, amount: { amount: 2550, currency: 'EUR' }, description: 'Order 1001',\n  redirectUrl, locale: 'nl', idempotencyKey: `order:${order.id}`\n})\n",[623,1242,1243,1262,1281,1285,1336,1397,1442],{"__ignoreMap":703},[707,1244,1245,1247,1249,1252,1254,1256,1258,1260],{"class":709,"line":710},[707,1246,714],{"class":713},[707,1248,721],{"class":720},[707,1250,1251],{"class":724}," callModule",[707,1253,728],{"class":720},[707,1255,731],{"class":713},[707,1257,734],{"class":720},[707,1259,1049],{"class":737},[707,1261,741],{"class":720},[707,1263,1264,1266,1268,1271,1273,1275,1277,1279],{"class":709,"line":744},[707,1265,714],{"class":713},[707,1267,721],{"class":720},[707,1269,1270],{"class":724}," PAYMENTS_CALLS",[707,1272,728],{"class":720},[707,1274,731],{"class":713},[707,1276,734],{"class":720},[707,1278,691],{"class":737},[707,1280,741],{"class":720},[707,1282,1283],{"class":709,"line":767},[707,1284,771],{"emptyLinePlaceholder":770},[707,1286,1287,1290,1292,1294,1296,1299,1301,1304,1307,1309,1311,1313,1315,1317,1319,1321,1323,1325,1327,1330,1332,1334],{"class":709,"line":774},[707,1288,1289],{"class":780},"const",[707,1291,721],{"class":720},[707,1293,866],{"class":724},[707,1295,881],{"class":720},[707,1297,1298],{"class":724}," checkoutUrl ",[707,1300,898],{"class":720},[707,1302,1303],{"class":720}," =",[707,1305,1306],{"class":713}," await",[707,1308,1251],{"class":856},[707,1310,1111],{"class":724},[707,1312,881],{"class":720},[707,1314,734],{"class":720},[707,1316,1204],{"class":737},[707,1318,824],{"class":720},[707,1320,881],{"class":720},[707,1322,1270],{"class":724},[707,1324,881],{"class":720},[707,1326,734],{"class":720},[707,1328,1329],{"class":737},"start",[707,1331,824],{"class":720},[707,1333,881],{"class":720},[707,1335,790],{"class":720},[707,1337,1338,1341,1343,1346,1348,1351,1353,1356,1358,1360,1362,1364,1368,1370,1373,1375,1377,1380,1382,1384,1386,1388,1390,1393,1395],{"class":709,"line":793},[707,1339,1340],{"class":796},"  reference",[707,1342,800],{"class":720},[707,1344,1345],{"class":724}," order",[707,1347,853],{"class":720},[707,1349,1350],{"class":724},"id",[707,1352,881],{"class":720},[707,1354,1355],{"class":796}," amount",[707,1357,800],{"class":720},[707,1359,721],{"class":720},[707,1361,1355],{"class":796},[707,1363,800],{"class":720},[707,1365,1367],{"class":1366},"sbssI"," 2550",[707,1369,881],{"class":720},[707,1371,1372],{"class":796}," currency",[707,1374,800],{"class":720},[707,1376,734],{"class":720},[707,1378,1379],{"class":737},"EUR",[707,1381,824],{"class":720},[707,1383,1141],{"class":720},[707,1385,920],{"class":796},[707,1387,800],{"class":720},[707,1389,734],{"class":720},[707,1391,1392],{"class":737},"Order 1001",[707,1394,824],{"class":720},[707,1396,651],{"class":720},[707,1398,1399,1402,1404,1407,1409,1411,1414,1416,1418,1421,1423,1426,1429,1432,1435,1437,1439],{"class":709,"line":805},[707,1400,1401],{"class":724},"  redirectUrl",[707,1403,881],{"class":720},[707,1405,1406],{"class":796}," locale",[707,1408,800],{"class":720},[707,1410,734],{"class":720},[707,1412,1413],{"class":737},"nl",[707,1415,824],{"class":720},[707,1417,881],{"class":720},[707,1419,1420],{"class":796}," idempotencyKey",[707,1422,800],{"class":720},[707,1424,1425],{"class":720}," `",[707,1427,1428],{"class":737},"order:",[707,1430,1431],{"class":720},"${",[707,1433,1434],{"class":724},"order",[707,1436,853],{"class":720},[707,1438,1350],{"class":724},[707,1440,1441],{"class":720},"}`\n",[707,1443,1444,1446],{"class":709,"line":829},[707,1445,898],{"class":720},[707,1447,901],{"class":724},[698,1449,1451],{"className":700,"code":1450,"language":702,"meta":703,"style":703},"export default defineModule({ name: 'commerce', requires: { payments: '^0.1.0' }, \u002F* … *\u002F })\n",[623,1452,1453],{"__ignoreMap":703},[707,1454,1455,1457,1459,1461,1463,1465,1467,1469,1471,1474,1476,1478,1481,1483,1485,1488,1490,1492,1495,1497,1499,1501,1503],{"class":709,"line":710},[707,1456,777],{"class":713},[707,1458,1187],{"class":713},[707,1460,1190],{"class":856},[707,1462,860],{"class":724},[707,1464,863],{"class":720},[707,1466,1197],{"class":796},[707,1468,800],{"class":720},[707,1470,734],{"class":720},[707,1472,1473],{"class":737},"commerce",[707,1475,824],{"class":720},[707,1477,881],{"class":720},[707,1479,1480],{"class":796}," requires",[707,1482,800],{"class":720},[707,1484,721],{"class":720},[707,1486,1487],{"class":796}," payments",[707,1489,800],{"class":720},[707,1491,734],{"class":720},[707,1493,1494],{"class":737},"^0.1.0",[707,1496,824],{"class":720},[707,1498,1141],{"class":720},[707,1500,1216],{"class":988},[707,1502,728],{"class":720},[707,1504,901],{"class":724},[1506,1507,1508,1516,1519],"ul",{},[1509,1510,1511,1512,1515],"li",{},"The caller must ",[623,1513,1514],{},"require"," the offering module, and the call must come from trusted module code (the context SHADE\ngave it). Otherwise it is refused (FORBIDDEN). A call to a name the module does not offer is NOT_FOUND; a call while\nthe offering module is off is UNAVAILABLE.",[1509,1517,1518],{},"The input is checked by the caller's contract and then by the offering module's own schema, and the answer by both\nagain, so neither side trusts the other's types.",[1509,1520,1521,1522,1526],{},"Because the caller requires the offering module, it cannot be switched on before it, and the offering module cannot\nbe switched off or uninstalled while the caller is on (",[641,1523,1525],{"href":1524},"\u002Fdevelopers\u002Fmodules\u002Fmanifest#modules-that-build-on-other-modules","Modules that build on other modules",").\nThe shop therefore waits for the payments module and its Mollie key.",[678,1528,1530],{"id":1529},"telling-the-caller-what-happened-events","Telling the caller what happened: events",[619,1532,1533,1534,1537,1538,1084,1541,1545,1546,647,1549,647,1552,647,1555,647,1558,1561,1562,1565,1566,1569,1570,1573],{},"Calls go one way. What happens later comes back as events the offering module ",[623,1535,1536],{},"emits",", which the calling module hears\nin ",[623,1539,1540],{},"on",[641,1542,1544],{"href":1543},"\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services#hearing-events-on","Hearing events","): the payments module emits\n",[623,1547,1548],{},"payments.payment.paid",[623,1550,1551],{},".failed",[623,1553,1554],{},".canceled",[623,1556,1557],{},".expired",[623,1559,1560],{},".pending"," and ",[623,1563,1564],{},".refunded",", each with the payment as its\ndata (",[623,1567,1568],{},"event.data.source"," names the module that started it, so a module keeps to its own). The events are durable: they\nare retried when the handler throws and kept while the hearing module is off. Read the payment again with ",[623,1571,1572],{},"get"," in the\nhandler, so the latest state counts whatever order the events arrive in.",[698,1575,1577],{"className":700,"code":1576,"language":702,"meta":703,"style":703},"on: {\n  'payments.payment.paid': async (ctx, event) => {\n    if (event.data.source !== 'commerce') return\n    const payment = await callModule(ctx, 'payments', PAYMENTS_CALLS, 'get', { id: event.data.id })\n    await markOrderPaid(ctx, payment)\n  }\n}\n",[623,1578,1579,1587,1617,1652,1712,1730,1735],{"__ignoreMap":703},[707,1580,1581,1583,1585],{"class":709,"line":710},[707,1582,1540],{"class":1000},[707,1584,800],{"class":720},[707,1586,790],{"class":720},[707,1588,1589,1592,1594,1596,1599,1602,1604,1606,1608,1611,1613,1615],{"class":709,"line":744},[707,1590,1591],{"class":720},"  '",[707,1593,1548],{"class":737},[707,1595,824],{"class":720},[707,1597,1598],{"class":796},": ",[707,1600,1601],{"class":780},"async",[707,1603,1084],{"class":720},[707,1605,1088],{"class":1087},[707,1607,881],{"class":720},[707,1609,1610],{"class":1087}," event",[707,1612,969],{"class":720},[707,1614,1105],{"class":780},[707,1616,790],{"class":720},[707,1618,1619,1622,1624,1627,1629,1632,1634,1637,1640,1642,1644,1646,1649],{"class":709,"line":767},[707,1620,1621],{"class":713},"    if",[707,1623,1084],{"class":796},[707,1625,1626],{"class":724},"event",[707,1628,853],{"class":720},[707,1630,1631],{"class":724},"data",[707,1633,853],{"class":720},[707,1635,1636],{"class":724},"source",[707,1638,1639],{"class":720}," !==",[707,1641,734],{"class":720},[707,1643,1473],{"class":737},[707,1645,824],{"class":720},[707,1647,1648],{"class":796},") ",[707,1650,1651],{"class":713},"return\n",[707,1653,1654,1657,1660,1662,1664,1666,1668,1670,1672,1674,1676,1678,1680,1682,1684,1686,1688,1690,1692,1694,1696,1698,1700,1702,1704,1706,1708,1710],{"class":709,"line":774},[707,1655,1656],{"class":780},"    const",[707,1658,1659],{"class":724}," payment",[707,1661,1303],{"class":720},[707,1663,1306],{"class":713},[707,1665,1251],{"class":856},[707,1667,860],{"class":796},[707,1669,1088],{"class":724},[707,1671,881],{"class":720},[707,1673,734],{"class":720},[707,1675,1204],{"class":737},[707,1677,824],{"class":720},[707,1679,881],{"class":720},[707,1681,1270],{"class":724},[707,1683,881],{"class":720},[707,1685,734],{"class":720},[707,1687,1572],{"class":737},[707,1689,824],{"class":720},[707,1691,881],{"class":720},[707,1693,721],{"class":720},[707,1695,954],{"class":796},[707,1697,800],{"class":720},[707,1699,1610],{"class":724},[707,1701,853],{"class":720},[707,1703,1631],{"class":724},[707,1705,853],{"class":720},[707,1707,1350],{"class":724},[707,1709,728],{"class":720},[707,1711,901],{"class":796},[707,1713,1714,1717,1720,1722,1724,1726,1728],{"class":709,"line":793},[707,1715,1716],{"class":713},"    await",[707,1718,1719],{"class":856}," markOrderPaid",[707,1721,860],{"class":796},[707,1723,1088],{"class":724},[707,1725,881],{"class":720},[707,1727,1659],{"class":724},[707,1729,901],{"class":796},[707,1731,1732],{"class":709,"line":805},[707,1733,1734],{"class":720},"  }\n",[707,1736,1737],{"class":709,"line":829},[707,1738,1739],{"class":720},"}\n",[678,1741,1743],{"id":1742},"testing","Testing",[619,1745,1746,1747,1750,1751,1754,1755,1561,1758,1761,1762,1765],{},"The payments module's ",[623,1748,1749],{},"@shadestack\u002Fmodule-payments\u002Ftesting"," entry (tests only) gives ",[623,1752,1753],{},"fakeMollie()",", which answers\nMollie's API inside the test, ",[623,1756,1757],{},"storeMollieKey",[623,1759,1760],{},"callMollieWebhook",". The shop's tests use it, with SHADE's\n",[623,1763,1764],{},"testInstance",", to run a whole checkout without a network.",[1767,1768,1769],"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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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 .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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 .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 pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":703,"searchDepth":744,"depth":744,"links":1771},[1772,1773,1775,1777,1778],{"id":680,"depth":744,"text":681},{"id":1023,"depth":744,"text":1774},"Offering calls: provides",{"id":1234,"depth":744,"text":1776},"Calling: callModule",{"id":1529,"depth":744,"text":1530},{"id":1742,"depth":744,"text":1743},"md",null,{},{"title":451,"description":703},"ggZWZqxMfj1XH0iSTVWYlRvsw45RSfzwvSt538bz0OI",[1785,1786],{"title":447,"path":448,"stem":449,"description":703,"children":-1},{"title":455,"path":456,"stem":457,"description":703,"children":-1},1796500156149]