[{"data":1,"prerenderedAt":3111},["ShallowReactive",2],{"navigation_docs":3,"-modules-communication-sms":732,"-modules-communication-sms-surround":3106},[4,54,159,535,608,651],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":53},"Get Started","i-lucide-rocket","\u002Fget-started","1.get-started",[10,15,20,24,29,34,39,44,48],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fget-started\u002Fintroduction","1.get-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23},"Project Structure","\u002Fget-started\u002Fproject-structure","1.get-started\u002F3.project-structure",{"title":25,"path":26,"stem":27,"icon":28},"Configuration","\u002Fget-started\u002Fconfiguration","1.get-started\u002F4.configuration","i-lucide-settings",{"title":30,"path":31,"stem":32,"icon":33},"Authentication","\u002Fget-started\u002Fauthentication","1.get-started\u002F5.authentication","i-lucide-lock",{"title":35,"path":36,"stem":37,"icon":38},"Adding modules","\u002Fget-started\u002Fadding-modules","1.get-started\u002F6.adding-modules","i-lucide-puzzle",{"title":40,"path":41,"stem":42,"icon":43},"Database","\u002Fget-started\u002Fdatabase","1.get-started\u002F7.database","i-lucide-database",{"title":45,"path":46,"stem":47,"icon":6},"Deployment","\u002Fget-started\u002Fdeployment","1.get-started\u002F8.deployment",{"title":49,"path":50,"stem":51,"icon":52},"Upgrading","\u002Fget-started\u002Fupgrading","1.get-started\u002F9.upgrading","i-lucide-circle-arrow-up",false,{"title":55,"icon":56,"path":57,"stem":58,"children":59,"page":53},"Guide","i-lucide-book-open","\u002Fguide","2.guide",[60,94,119,129],{"title":61,"icon":53,"path":62,"stem":63,"children":64,"page":53},"Concepts","\u002Fguide\u002Fconcepts","2.guide\u002F1.concepts",[65,70,75,80,84,89],{"title":66,"path":67,"stem":68,"icon":69},"Architecture","\u002Fguide\u002Fconcepts\u002Farchitecture","2.guide\u002F1.concepts\u002F1.architecture","i-lucide-blocks",{"title":71,"path":72,"stem":73,"icon":74},"Access control","\u002Fguide\u002Fconcepts\u002Fauth-and-scopes","2.guide\u002F1.concepts\u002F2.auth-and-scopes","i-lucide-shield-check",{"title":76,"path":77,"stem":78,"icon":79},"Extension points","\u002Fguide\u002Fconcepts\u002Fextension-points","2.guide\u002F1.concepts\u002F3.extension-points","i-lucide-plug",{"title":81,"path":82,"stem":83,"icon":43},"Database extensions","\u002Fguide\u002Fconcepts\u002Fdatabase-extensions","2.guide\u002F1.concepts\u002F4.database-extensions",{"title":85,"path":86,"stem":87,"icon":88},"Identity","\u002Fguide\u002Fconcepts\u002Fidentity","2.guide\u002F1.concepts\u002F5.identity","i-lucide-fingerprint",{"title":90,"path":91,"stem":92,"icon":93},"Glossary","\u002Fguide\u002Fconcepts\u002Fglossary","2.guide\u002F1.concepts\u002F6.glossary","i-lucide-book-a",{"title":95,"icon":53,"path":96,"stem":97,"children":98,"page":53},"UX patterns","\u002Fguide\u002Fux-patterns","2.guide\u002F2.ux-patterns",[99,104,109,114],{"title":100,"path":101,"stem":102,"icon":103},"Layouts and navigation","\u002Fguide\u002Fux-patterns\u002Flayouts-and-navigation","2.guide\u002F2.ux-patterns\u002F1.layouts-and-navigation","i-lucide-layout-template",{"title":105,"path":106,"stem":107,"icon":108},"Pages","\u002Fguide\u002Fux-patterns\u002Fpages","2.guide\u002F2.ux-patterns\u002F2.pages","i-lucide-table",{"title":110,"path":111,"stem":112,"icon":113},"Forms and actions","\u002Fguide\u002Fux-patterns\u002Fforms-and-actions","2.guide\u002F2.ux-patterns\u002F3.forms-and-actions","i-lucide-square-pen",{"title":115,"path":116,"stem":117,"icon":118},"Text and formatting","\u002Fguide\u002Fux-patterns\u002Ftext-and-formatting","2.guide\u002F2.ux-patterns\u002F4.text-and-formatting","i-lucide-type",{"title":120,"icon":53,"path":121,"stem":122,"children":123,"page":53},"Best practices","\u002Fguide\u002Fbest-practices","2.guide\u002F3.best-practices",[124],{"title":125,"path":126,"stem":127,"icon":128},"HTTP routes","\u002Fguide\u002Fbest-practices\u002Fhttp-routes","2.guide\u002F3.best-practices\u002F1.http-routes","i-lucide-route",{"title":130,"icon":53,"path":131,"stem":132,"children":133,"page":53},"Going further","\u002Fguide\u002Fgoing-further","2.guide\u002F4.going-further",[134,139,144,149,154],{"title":135,"path":136,"stem":137,"icon":138},"Use your own OAuth server","\u002Fguide\u002Fgoing-further\u002Fown-oauth-server","2.guide\u002F4.going-further\u002F1.own-oauth-server","i-lucide-key-round",{"title":140,"path":141,"stem":142,"icon":143},"Create an OAuth application","\u002Fguide\u002Fgoing-further\u002Foauth-application","2.guide\u002F4.going-further\u002F2.oauth-application","i-lucide-app-window",{"title":145,"path":146,"stem":147,"icon":148},"Signing keys","\u002Fguide\u002Fgoing-further\u002Fsigning-keys","2.guide\u002F4.going-further\u002F3.signing-keys","i-lucide-key-square",{"title":150,"path":151,"stem":152,"icon":153},"Stripe setup","\u002Fguide\u002Fgoing-further\u002Fstripe-setup","2.guide\u002F4.going-further\u002F4.stripe-setup","i-lucide-credit-card",{"title":155,"path":156,"stem":157,"icon":158},"Migrate to the permission model","\u002Fguide\u002Fgoing-further\u002Fmigrate-access-control","2.guide\u002F4.going-further\u002F5.migrate-access-control","i-lucide-arrow-right-left",{"title":160,"icon":161,"path":162,"stem":163,"children":164},"Modules","i-lucide-boxes","\u002Fmodules","3.modules",[165,167,252,261,290,303,350,396,473,518],{"title":160,"path":162,"stem":166},"3.modules\u002Findex",{"title":85,"icon":53,"path":168,"stem":169,"children":170,"page":53},"\u002Fmodules\u002Fidentity","3.modules\u002F1.identity",[171,198,202,206,228,232,248],{"title":172,"path":173,"stem":174,"children":175},"Auth","\u002Fmodules\u002Fidentity\u002Fauth","3.modules\u002F1.identity\u002F1.auth\u002Findex",[176,178,182,186,190,194],{"title":177,"path":173,"stem":174},"Overview",{"title":179,"path":180,"stem":181},"Server API","\u002Fmodules\u002Fidentity\u002Fauth\u002Fserver","3.modules\u002F1.identity\u002F1.auth\u002F2.server",{"title":183,"path":184,"stem":185},"Reference","\u002Fmodules\u002Fidentity\u002Fauth\u002Freference","3.modules\u002F1.identity\u002F1.auth\u002F3.reference",{"title":187,"path":188,"stem":189},"Client mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fclient-mode","3.modules\u002F1.identity\u002F1.auth\u002F4.client-mode",{"title":191,"path":192,"stem":193},"OAuth providers","\u002Fmodules\u002Fidentity\u002Fauth\u002Foauth-providers","3.modules\u002F1.identity\u002F1.auth\u002F5.oauth-providers",{"title":195,"path":196,"stem":197},"Resource mode","\u002Fmodules\u002Fidentity\u002Fauth\u002Fresource-mode","3.modules\u002F1.identity\u002F1.auth\u002F6.resource-mode",{"title":199,"path":200,"stem":201},"Users","\u002Fmodules\u002Fidentity\u002Fusers","3.modules\u002F1.identity\u002F2.users",{"title":203,"path":204,"stem":205},"Account","\u002Fmodules\u002Fidentity\u002Faccount","3.modules\u002F1.identity\u002F3.account",{"title":207,"path":208,"stem":209,"children":210},"Authorization","\u002Fmodules\u002Fidentity\u002Fauthorization","3.modules\u002F1.identity\u002F4.authorization\u002Findex",[211,212,216,220,224],{"title":177,"path":208,"stem":209},{"title":213,"path":214,"stem":215},"Roles and requirements","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Froles-and-requirements","3.modules\u002F1.identity\u002F4.authorization\u002F2.roles-and-requirements",{"title":217,"path":218,"stem":219},"Policies","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fpolicies","3.modules\u002F1.identity\u002F4.authorization\u002F3.policies",{"title":221,"path":222,"stem":223},"Client","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fclient","3.modules\u002F1.identity\u002F4.authorization\u002F4.client",{"title":225,"path":226,"stem":227},"Admin","\u002Fmodules\u002Fidentity\u002Fauthorization\u002Fadmin","3.modules\u002F1.identity\u002F4.authorization\u002F5.admin",{"title":229,"path":230,"stem":231},"Preferences","\u002Fmodules\u002Fidentity\u002Fpreferences","3.modules\u002F1.identity\u002F5.preferences",{"title":233,"path":234,"stem":235,"children":236},"OAuth Server","\u002Fmodules\u002Fidentity\u002Foauth-server","3.modules\u002F1.identity\u002F6.oauth-server\u002Findex",[237,238,241,245],{"title":177,"path":234,"stem":235},{"title":179,"path":239,"stem":240},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fserver","3.modules\u002F1.identity\u002F6.oauth-server\u002F2.server",{"title":242,"path":243,"stem":244},"Hooks","\u002Fmodules\u002Fidentity\u002Foauth-server\u002Fhooks","3.modules\u002F1.identity\u002F6.oauth-server\u002F3.hooks",{"title":183,"path":246,"stem":247},"\u002Fmodules\u002Fidentity\u002Foauth-server\u002Froutes-and-clients","3.modules\u002F1.identity\u002F6.oauth-server\u002F4.routes-and-clients",{"title":249,"path":250,"stem":251},"OAuth Resource","\u002Fmodules\u002Fidentity\u002Foauth-resource","3.modules\u002F1.identity\u002F8.oauth-resource",{"title":253,"icon":53,"path":254,"stem":255,"children":256,"page":53},"Organisation","\u002Fmodules\u002Forganisation","3.modules\u002F2.organisation",[257],{"title":258,"path":259,"stem":260},"Teams","\u002Fmodules\u002Forganisation\u002Fteams","3.modules\u002F2.organisation\u002F1.teams",{"title":262,"icon":53,"path":263,"stem":264,"children":265,"page":53},"Commerce","\u002Fmodules\u002Fcommerce","3.modules\u002F3.commerce",[266,270,274],{"title":267,"path":268,"stem":269},"Stripe","\u002Fmodules\u002Fcommerce\u002Fstripe","3.modules\u002F3.commerce\u002F1.stripe",{"title":271,"path":272,"stem":273},"Payments","\u002Fmodules\u002Fcommerce\u002Fpayments","3.modules\u002F3.commerce\u002F2.payments",{"title":275,"path":276,"stem":277,"children":278},"Subscriptions","\u002Fmodules\u002Fcommerce\u002Fsubscriptions","3.modules\u002F3.commerce\u002F3.subscriptions\u002Findex",[279,280,283,287],{"title":177,"path":276,"stem":277},{"title":179,"path":281,"stem":282},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fserver","3.modules\u002F3.commerce\u002F3.subscriptions\u002F2.server",{"title":284,"path":285,"stem":286},"App","\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Fapp","3.modules\u002F3.commerce\u002F3.subscriptions\u002F3.app",{"title":183,"path":288,"stem":289},"\u002Fmodules\u002Fcommerce\u002Fsubscriptions\u002Freference","3.modules\u002F3.commerce\u002F3.subscriptions\u002F4.reference",{"title":291,"icon":53,"path":292,"stem":293,"children":294,"page":53},"Content","\u002Fmodules\u002Fcontent","3.modules\u002F4.content",[295,299],{"title":296,"path":297,"stem":298},"Help center","\u002Fmodules\u002Fcontent\u002Fhelp-center","3.modules\u002F4.content\u002F2.help-center",{"title":300,"path":301,"stem":302},"Documents","\u002Fmodules\u002Fcontent\u002Fdocuments","3.modules\u002F4.content\u002F3.documents",{"title":304,"icon":53,"path":305,"stem":306,"children":307,"page":53},"Features","\u002Fmodules\u002Ffeatures","3.modules\u002F5.features",[308,323,342,346],{"title":309,"path":310,"stem":311,"children":312},"Events","\u002Fmodules\u002Ffeatures\u002Fevents","3.modules\u002F5.features\u002F1.events\u002Findex",[313,314,317,320],{"title":177,"path":310,"stem":311},{"title":179,"path":315,"stem":316},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fserver","3.modules\u002F5.features\u002F1.events\u002F2.server",{"title":284,"path":318,"stem":319},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Fapp","3.modules\u002F5.features\u002F1.events\u002F3.app",{"title":183,"path":321,"stem":322},"\u002Fmodules\u002Ffeatures\u002Fevents\u002Freference","3.modules\u002F5.features\u002F1.events\u002F4.reference",{"title":324,"path":325,"stem":326,"children":327},"Forms","\u002Fmodules\u002Ffeatures\u002Fforms","3.modules\u002F5.features\u002F2.forms\u002Findex",[328,329,333,336,339],{"title":177,"path":325,"stem":326},{"title":330,"path":331,"stem":332},"Definition","\u002Fmodules\u002Ffeatures\u002Fforms\u002Fdefinition","3.modules\u002F5.features\u002F2.forms\u002F2.definition",{"title":179,"path":334,"stem":335},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fserver","3.modules\u002F5.features\u002F2.forms\u002F3.server",{"title":284,"path":337,"stem":338},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Fapp","3.modules\u002F5.features\u002F2.forms\u002F4.app",{"title":183,"path":340,"stem":341},"\u002Fmodules\u002Ffeatures\u002Fforms\u002Freference","3.modules\u002F5.features\u002F2.forms\u002F5.reference",{"title":343,"path":344,"stem":345},"Cookie Consent","\u002Fmodules\u002Ffeatures\u002Fcookie-consent","3.modules\u002F5.features\u002F3.cookie-consent",{"title":347,"path":348,"stem":349},"MCP","\u002Fmodules\u002Ffeatures\u002Fmcp","3.modules\u002F5.features\u002F4.mcp",{"title":351,"icon":53,"path":352,"stem":353,"children":354,"page":53},"Communication","\u002Fmodules\u002Fcommunication","3.modules\u002F6.communication",[355,359,376,380,384,388,392],{"title":356,"path":357,"stem":358},"Notify","\u002Fmodules\u002Fcommunication\u002Fnotify","3.modules\u002F6.communication\u002F1.notify",{"title":360,"path":361,"stem":362,"children":363},"Email Templates","\u002Fmodules\u002Fcommunication\u002Femail-templates","3.modules\u002F6.communication\u002F2.email-templates\u002Findex",[364,365,369,372],{"title":177,"path":361,"stem":362},{"title":366,"path":367,"stem":368},"Email components","\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fcomponents","3.modules\u002F6.communication\u002F2.email-templates\u002F2.components",{"title":179,"path":370,"stem":371},"\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fserver","3.modules\u002F6.communication\u002F2.email-templates\u002F3.server",{"title":373,"path":374,"stem":375},"Module emails","\u002Fmodules\u002Fcommunication\u002Femail-templates\u002Fmodule-emails","3.modules\u002F6.communication\u002F2.email-templates\u002F4.module-emails",{"title":377,"path":378,"stem":379},"Push","\u002Fmodules\u002Fcommunication\u002Fpush","3.modules\u002F6.communication\u002F3.push",{"title":381,"path":382,"stem":383},"Inbox","\u002Fmodules\u002Fcommunication\u002Finbox","3.modules\u002F6.communication\u002F4.inbox",{"title":385,"path":386,"stem":387},"Short links","\u002Fmodules\u002Fcommunication\u002Fshort-links","3.modules\u002F6.communication\u002F5.short-links",{"title":389,"path":390,"stem":391},"Campaigns","\u002Fmodules\u002Fcommunication\u002Fcampaigns","3.modules\u002F6.communication\u002F6.campaigns",{"title":393,"path":394,"stem":395},"SMS","\u002Fmodules\u002Fcommunication\u002Fsms","3.modules\u002F6.communication\u002F7.sms",{"title":397,"icon":53,"path":398,"stem":399,"children":400,"page":53},"Interface","\u002Fmodules\u002Finterface","3.modules\u002F7.interface",[401,426,429,433,437,451,455,469],{"title":402,"path":403,"stem":404,"children":405},"UI","\u002Fmodules\u002Finterface\u002Fui","3.modules\u002F7.interface\u002F1.ui\u002Findex",[406,407,411,415,419,423],{"title":177,"path":403,"stem":404},{"title":408,"path":409,"stem":410},"Page components","\u002Fmodules\u002Finterface\u002Fui\u002Fpage-components","3.modules\u002F7.interface\u002F1.ui\u002F2.page-components",{"title":412,"path":413,"stem":414},"App shell","\u002Fmodules\u002Finterface\u002Fui\u002Fapp-shell","3.modules\u002F7.interface\u002F1.ui\u002F3.app-shell",{"title":416,"path":417,"stem":418},"Form inputs","\u002Fmodules\u002Finterface\u002Fui\u002Fform-inputs","3.modules\u002F7.interface\u002F1.ui\u002F4.form-inputs",{"title":420,"path":421,"stem":422},"Composables and helpers","\u002Fmodules\u002Finterface\u002Fui\u002Fcomposables","3.modules\u002F7.interface\u002F1.ui\u002F5.composables",{"title":183,"path":424,"stem":425},"\u002Fmodules\u002Finterface\u002Fui\u002Freference","3.modules\u002F7.interface\u002F1.ui\u002F6.reference",{"title":225,"path":427,"stem":428},"\u002Fmodules\u002Finterface\u002Fadmin","3.modules\u002F7.interface\u002F2.admin",{"title":430,"path":431,"stem":432},"Menu","\u002Fmodules\u002Finterface\u002Fmenu","3.modules\u002F7.interface\u002F3.menu",{"title":434,"path":435,"stem":436},"Widget","\u002Fmodules\u002Finterface\u002Fwidget","3.modules\u002F7.interface\u002F4.widget",{"title":438,"path":439,"stem":440,"children":441},"Mobile","\u002Fmodules\u002Finterface\u002Fmobile","3.modules\u002F7.interface\u002F5.mobile\u002Findex",[442,443,447],{"title":177,"path":439,"stem":440},{"title":444,"path":445,"stem":446},"CLI and devices","\u002Fmodules\u002Finterface\u002Fmobile\u002Fcli-and-devices","3.modules\u002F7.interface\u002F5.mobile\u002F2.cli-and-devices",{"title":448,"path":449,"stem":450},"Splash screen","\u002Fmodules\u002Finterface\u002Fmobile\u002Fsplash-screen","3.modules\u002F7.interface\u002F5.mobile\u002F3.splash-screen",{"title":452,"path":453,"stem":454},"Dashboard","\u002Fmodules\u002Finterface\u002Fdashboard","3.modules\u002F7.interface\u002F6.dashboard",{"title":456,"path":457,"stem":458,"children":459},"Desktop","\u002Fmodules\u002Finterface\u002Fdesktop","3.modules\u002F7.interface\u002F7.desktop\u002Findex",[460,461,465],{"title":177,"path":457,"stem":458},{"title":462,"path":463,"stem":464},"CLI","\u002Fmodules\u002Finterface\u002Fdesktop\u002Fcli","3.modules\u002F7.interface\u002F7.desktop\u002F2.cli",{"title":466,"path":467,"stem":468},"Local mode","\u002Fmodules\u002Finterface\u002Fdesktop\u002Flocal-mode","3.modules\u002F7.interface\u002F7.desktop\u002F3.local-mode",{"title":470,"path":471,"stem":472},"Maps","\u002Fmodules\u002Finterface\u002Fmaps","3.modules\u002F7.interface\u002F8.maps",{"title":474,"icon":53,"path":475,"stem":476,"children":477,"page":53},"Platform","\u002Fmodules\u002Fplatform","3.modules\u002F8.platform",[478,500],{"title":479,"path":480,"stem":481,"children":482},"Module Kit","\u002Fmodules\u002Fplatform\u002Fmodule-kit","3.modules\u002F8.platform\u002F1.module-kit\u002Findex",[483,484,488,492,496],{"title":177,"path":480,"stem":481},{"title":485,"path":486,"stem":487},"Server toolkit","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fserver-toolkit","3.modules\u002F8.platform\u002F1.module-kit\u002F2.server-toolkit",{"title":489,"path":490,"stem":491},"Registries and menus","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fregistries-and-menus","3.modules\u002F8.platform\u002F1.module-kit\u002F3.registries-and-menus",{"title":493,"path":494,"stem":495},"Translations","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fi18n","3.modules\u002F8.platform\u002F1.module-kit\u002F4.i18n",{"title":497,"path":498,"stem":499},"Database helpers","\u002Fmodules\u002Fplatform\u002Fmodule-kit\u002Fdatabase","3.modules\u002F8.platform\u002F1.module-kit\u002F5.database",{"title":501,"path":502,"stem":503,"children":504},"Base Layer","\u002Fmodules\u002Fplatform\u002Fbase-layer","3.modules\u002F8.platform\u002F2.base-layer\u002Findex",[505,506,510,514],{"title":177,"path":502,"stem":503},{"title":507,"path":508,"stem":509},"Content collections","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcontent-collections","3.modules\u002F8.platform\u002F2.base-layer\u002F2.content-collections",{"title":511,"path":512,"stem":513},"Layouts and routing","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Flayouts-and-routing","3.modules\u002F8.platform\u002F2.base-layer\u002F3.layouts-and-routing",{"title":515,"path":516,"stem":517},"Composables and utils","\u002Fmodules\u002Fplatform\u002Fbase-layer\u002Fcomposables-and-utils","3.modules\u002F8.platform\u002F2.base-layer\u002F4.composables-and-utils",{"title":519,"icon":53,"path":520,"stem":521,"children":522,"page":53},"Volunteering","\u002Fmodules\u002Fvolunteering","3.modules\u002F9.volunteering",[523,527,531],{"title":524,"path":525,"stem":526},"Operations","\u002Fmodules\u002Fvolunteering\u002Foperations","3.modules\u002F9.volunteering\u002F1.operations",{"title":528,"path":529,"stem":530},"Crew","\u002Fmodules\u002Fvolunteering\u002Fcrew","3.modules\u002F9.volunteering\u002F2.crew",{"title":532,"path":533,"stem":534},"Shifts","\u002Fmodules\u002Fvolunteering\u002Fshifts","3.modules\u002F9.volunteering\u002F3.shifts",{"title":536,"icon":537,"path":538,"stem":539,"children":540,"page":53},"Examples","i-lucide-code-xml","\u002Fexamples","4.examples",[541,570,580],{"title":542,"icon":53,"path":543,"stem":544,"children":545,"page":53},"Starters","\u002Fexamples\u002Fstarters","4.examples\u002F1.starters",[546,550,555,560,565],{"title":547,"path":548,"stem":549},"Workspace","\u002Fexamples\u002Fstarters\u002Fworkspace","4.examples\u002F1.starters\u002F1.workspace",{"title":551,"path":552,"stem":553,"icon":554},"Mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile","4.examples\u002F1.starters\u002F2.mobile","i-lucide-smartphone",{"title":556,"path":557,"stem":558,"icon":559},"Standalone mobile starter","\u002Fexamples\u002Fstarters\u002Fmobile-standalone","4.examples\u002F1.starters\u002F3.mobile-standalone","i-lucide-tablet-smartphone",{"title":561,"path":562,"stem":563,"icon":564},"Desktop starter","\u002Fexamples\u002Fstarters\u002Fdesktop","4.examples\u002F1.starters\u002F4.desktop","i-lucide-monitor",{"title":566,"path":567,"stem":568,"icon":569},"Multi-platform starter","\u002Fexamples\u002Fstarters\u002Fmulti-platform","4.examples\u002F1.starters\u002F5.multi-platform","i-lucide-layers",{"title":571,"icon":53,"path":572,"stem":573,"children":574,"page":53},"Apps","\u002Fexamples\u002Fapps","4.examples\u002F2.apps",[575],{"title":576,"path":577,"stem":578,"icon":579},"Frigear website app","\u002Fexamples\u002Fapps\u002Ffrigear-nu-website","4.examples\u002F2.apps\u002F1.frigear-nu-website","i-lucide-layout-dashboard",{"title":581,"icon":53,"path":582,"stem":583,"children":584,"page":53},"Tasks","\u002Fexamples\u002Ftasks","4.examples\u002F3.tasks",[585,589,593,598,603],{"title":586,"path":587,"stem":588,"icon":74},"Protect a route","\u002Fexamples\u002Ftasks\u002Fprotect-a-route","4.examples\u002F3.tasks\u002F1.protect-a-route",{"title":590,"path":591,"stem":592,"icon":579},"Add an admin page","\u002Fexamples\u002Ftasks\u002Fadd-an-admin-page","4.examples\u002F3.tasks\u002F2.add-an-admin-page",{"title":594,"path":595,"stem":596,"icon":597},"Sell event tickets","\u002Fexamples\u002Ftasks\u002Fsell-event-tickets","4.examples\u002F3.tasks\u002F3.sell-event-tickets","i-lucide-ticket",{"title":599,"path":600,"stem":601,"icon":602},"Build a form","\u002Fexamples\u002Ftasks\u002Fbuild-a-form","4.examples\u002F3.tasks\u002F4.build-a-form","i-lucide-clipboard-list",{"title":604,"path":605,"stem":606,"icon":607},"Send an email","\u002Fexamples\u002Ftasks\u002Fsend-an-email","4.examples\u002F3.tasks\u002F5.send-an-email","i-lucide-mail",{"title":462,"icon":609,"path":610,"stem":611,"children":612,"page":53},"i-lucide-square-terminal","\u002Fcli","5.cli",[613,616,621,625,630,633,638,642,647],{"title":177,"path":614,"stem":615,"icon":609},"\u002Fcli\u002Foverview","5.cli\u002F1.overview",{"title":617,"path":618,"stem":619,"icon":620},"Create a project","\u002Fcli\u002Fcreate-a-project","5.cli\u002F2.create-a-project","i-lucide-folder-plus",{"title":622,"path":623,"stem":624,"icon":569},"Platforms","\u002Fcli\u002Fplatforms","5.cli\u002F3.platforms",{"title":626,"path":627,"stem":628,"icon":629},"Custom platforms","\u002Fcli\u002Fcustom-platforms","5.cli\u002F4.custom-platforms","i-lucide-monitor-cog",{"title":160,"path":631,"stem":632,"icon":161},"\u002Fcli\u002Fmodules","5.cli\u002F5.modules",{"title":634,"path":635,"stem":636,"icon":637},"Refactoring","\u002Fcli\u002Frefactoring","5.cli\u002F6.refactoring","i-lucide-folder-tree",{"title":639,"path":640,"stem":641,"icon":52},"Upgrade","\u002Fcli\u002Fupgrade","5.cli\u002F7.upgrade",{"title":643,"path":644,"stem":645,"icon":646},"From code","\u002Fcli\u002Ffrom-code","5.cli\u002F8.from-code","i-lucide-code",{"title":648,"path":649,"stem":650,"icon":138},"Environment files","\u002Fcli\u002Fenvironment","5.cli\u002F9.environment",{"title":652,"icon":653,"path":654,"stem":655,"children":656,"page":53},"Contribute","i-lucide-git-pull-request","\u002Fcontribute","6.contribute",[657,660,665,691,696,699,703,716],{"title":177,"path":658,"stem":659,"icon":653},"\u002Fcontribute\u002Foverview","6.contribute\u002F1.overview",{"title":661,"path":662,"stem":663,"icon":664},"Local development","\u002Fcontribute\u002Flocal-development","6.contribute\u002F2.local-development","i-lucide-terminal",{"title":666,"icon":53,"path":667,"stem":668,"children":669,"page":53},"Writing a module","\u002Fcontribute\u002Fwriting-a-module","6.contribute\u002F3.writing-a-module",[670,674,679,683,688],{"title":671,"path":672,"stem":673,"icon":38},"Scaffold a module","\u002Fcontribute\u002Fwriting-a-module\u002Fscaffold","6.contribute\u002F3.writing-a-module\u002F1.scaffold",{"title":675,"path":676,"stem":677,"icon":678},"Setup checklist","\u002Fcontribute\u002Fwriting-a-module\u002Fsetup-checklist","6.contribute\u002F3.writing-a-module\u002F2.setup-checklist","i-lucide-list-checks",{"title":680,"path":681,"stem":682,"icon":43},"Database tables","\u002Fcontribute\u002Fwriting-a-module\u002Fdatabase-tables","6.contribute\u002F3.writing-a-module\u002F3.database-tables",{"title":684,"path":685,"stem":686,"icon":687},"Testing","\u002Fcontribute\u002Fwriting-a-module\u002Ftesting","6.contribute\u002F3.writing-a-module\u002F4.testing","i-lucide-flask-conical",{"title":71,"path":689,"stem":690,"icon":74},"\u002Fcontribute\u002Fwriting-a-module\u002Faccess-control","6.contribute\u002F3.writing-a-module\u002F5.access-control",{"title":692,"path":693,"stem":694,"icon":695},"Publishing","\u002Fcontribute\u002Fpublishing","6.contribute\u002F4.publishing","i-lucide-package-check",{"title":542,"path":697,"stem":698,"icon":6},"\u002Fcontribute\u002Fstarters","6.contribute\u002F5.starters",{"title":700,"path":701,"stem":702,"icon":56},"Documentation","\u002Fcontribute\u002Fdocumentation","6.contribute\u002F6.documentation",{"title":704,"icon":53,"path":705,"stem":706,"children":707,"page":53},"Tooling","\u002Fcontribute\u002Ftooling","6.contribute\u002F7.tooling",[708,711],{"title":462,"path":709,"stem":710,"icon":609},"\u002Fcontribute\u002Ftooling\u002Fcli","6.contribute\u002F7.tooling\u002F1.cli",{"title":712,"path":713,"stem":714,"icon":715},"ESLint config","\u002Fcontribute\u002Ftooling\u002Feslint-config","6.contribute\u002F7.tooling\u002F2.eslint-config","i-lucide-spell-check",{"title":717,"icon":53,"path":718,"stem":719,"children":720},"Decisions","\u002Fcontribute\u002Fdecisions","6.contribute\u002F8.decisions\u002Findex",[721,723,728],{"title":717,"path":718,"stem":719,"icon":722},"i-lucide-scale",{"title":724,"path":725,"stem":726,"icon":727},"Session lifetimes per OAuth client","\u002Fcontribute\u002Fdecisions\u002Foauth-token-lifetimes","6.contribute\u002F8.decisions\u002F1.oauth-token-lifetimes","i-lucide-timer",{"title":729,"path":730,"stem":731,"icon":74},"One permission model","\u002Fcontribute\u002Fdecisions\u002Fpermission-model","6.contribute\u002F8.decisions\u002F2.permission-model",{"id":733,"title":393,"body":734,"description":3100,"extension":3101,"links":3102,"meta":3103,"navigation":1668,"path":394,"seo":3104,"stem":395,"__hash__":3105},"docs\u002F3.modules\u002F6.communication\u002F7.sms.md",{"type":735,"value":736,"toc":3077},"minimark",[737,757,768,773,867,913,917,1254,1258,1272,1328,1335,1339,1362,1464,1467,1470,1501,1592,1595,1624,1628,1635,1911,2176,2190,2194,2200,2219,2245,2277,2287,2290,2297,2320,2343,2349,2468,2487,2503,2506,2509,2550,2560,2562,2568,2572,2596,2601,2604,2701,2752,2756,2884,2888,3068,3073],[738,739,740,741,744,745,747,748,752,753,756],"p",{},"SMS sends and receives text messages for the whole app. It has providers (Twilio, shared phones paired with the\nSysgear app, and your own), numbers on each provider, routing that picks a number and fails over to the next, an\noutbox and inbound log, and a light mass send from the admin. Other modules use it through\n",[742,743,356],"a",{"href":357}," (it is Notify's SMS driver), ",[742,746,381],{"href":382}," (the ",[749,750,751],"code",{},"sms","\nchannel) and the ",[749,754,755],{},"sms:*"," hooks.",[738,758,759,760,763,764,767],{},"The package is ",[749,761,762],{},"@frigear-nu\u002Fsms",". Twilio is called with ",[749,765,766],{},"fetch"," and its webhooks are checked with Web Crypto, so it\nruns on Cloudflare Workers.",[769,770,772],"h2",{"id":771},"what-you-get","What you get",[774,775,776,790,814,827,833,839,847],"ul",{},[777,778,779,785,786,789],"li",{},[780,781,782],"strong",{},[749,783,784],{},"sendSms"," (server): routing by ",[749,787,788],{},"from",", the operation's default number and priority, with failover.",[777,791,792,795,796,799,800,806,807,809,810,813],{},[780,793,794],{},"Notify's SMS driver",": ",[749,797,798],{},"dispatchSMSNotification"," and the SMS channel of\n",[742,801,803],{"href":802},"\u002Fmodules\u002Fcommunication\u002Fnotify#notifying-a-user",[749,804,805],{},"notifyUser"," go out through ",[749,808,784],{},". A ",[749,811,812],{},"notify.sms.driver"," you set\nwins.",[777,815,816,819,820,826],{},[780,817,818],{},"Providers",": Twilio and paired phones built in; more through ",[742,821,823],{"href":822},"#your-own-provider",[749,824,825],{},"extendSms",".",[777,828,829,832],{},[780,830,831],{},"Paired phones"," (with the database): shared phones that send from their SIM lines, receive texts and get pushes.",[777,834,835,838],{},[780,836,837],{},"Inbox channel"," (with the database and Inbox): texts become threads, replies leave from the number they came in on.",[777,840,841,843,844,846],{},[780,842,225],{}," (with ",[742,845,225],{"href":427},"): Settings, SMS, with Providers, Numbers, Phones and Messages tabs,\nand a \"Send SMS\" action for groups.",[777,848,849,795,851,854,855,854,858,854,861,854,864,826],{},[780,850,242],{},[749,852,853],{},"sms:received",", ",[749,856,857],{},"sms:sent",[749,859,860],{},"sms:delivered",[749,862,863],{},"sms:failed",[749,865,866],{},"sms:device:status",[868,869,870,886],"note",{},[738,871,872,875,876,854,879,854,881,883,884,826],{},[780,873,874],{},"Installed for you:"," ",[749,877,878],{},"@frigear-nu\u002Fmodule-kit",[742,880,172],{"href":173},[742,882,356],{"href":357},"\nand ",[742,885,402],{"href":403},[738,887,888,875,891,894,895,898,899,901,902,747,904,906,907,909,910,912],{},[780,889,890],{},"Optional:",[749,892,893],{},"@nuxthub\u002Fcore"," with ",[749,896,897],{},"hub.db"," (the database), ",[742,900,377],{"href":378}," (pushes to the phones),\n",[742,903,381],{"href":382},[749,905,751],{}," channel), ",[742,908,225],{"href":427}," and\n",[742,911,430],{"href":431}," (the admin pages and their menu item).",[769,914,916],{"id":915},"quick-setup","Quick setup",[918,919,920,925,950,1118,1122,1128,1140,1144],"steps",{},[921,922,924],"h3",{"id":923},"install-sms","Install SMS",[926,927,932],"pre",{"className":928,"code":929,"language":930,"meta":931,"style":931},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @frigear-nu\u002Fsms\n","bash","",[749,933,934],{"__ignoreMap":931},[935,936,939,943,947],"span",{"class":937,"line":938},"line",1,[935,940,942],{"class":941},"sBMFI","pnpm",[935,944,946],{"class":945},"sfazB"," add",[935,948,949],{"class":945}," @frigear-nu\u002Fsms\n",[926,951,956],{"className":952,"code":953,"filename":954,"language":955,"meta":931,"style":931},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  modules: ['@nuxthub\u002Fcore', '@frigear-nu\u002Fsms'],\n  sms: {\n    providers: {\n      \u002F\u002F Filled in by NUXT_SMS_PROVIDERS_TWILIO_ACCOUNT_SID, _AUTH_TOKEN and _NUMBERS.\n      twilio: { type: 'twilio', accountSid: '', authToken: '', numbers: '' },\n    },\n  },\n})\n","nuxt.config.ts","ts",[749,957,958,979,1015,1026,1036,1043,1097,1103,1109],{"__ignoreMap":931},[935,959,960,964,967,971,975],{"class":937,"line":938},[935,961,963],{"class":962},"s7zQu","export",[935,965,966],{"class":962}," default",[935,968,970],{"class":969},"s2Zo4"," defineNuxtConfig",[935,972,974],{"class":973},"sTEyZ","(",[935,976,978],{"class":977},"sMK4o","{\n",[935,980,982,986,989,992,995,997,999,1002,1005,1007,1009,1012],{"class":937,"line":981},2,[935,983,985],{"class":984},"swJcz","  modules",[935,987,988],{"class":977},":",[935,990,991],{"class":973}," [",[935,993,994],{"class":977},"'",[935,996,893],{"class":945},[935,998,994],{"class":977},[935,1000,1001],{"class":977},",",[935,1003,1004],{"class":977}," '",[935,1006,762],{"class":945},[935,1008,994],{"class":977},[935,1010,1011],{"class":973},"]",[935,1013,1014],{"class":977},",\n",[935,1016,1018,1021,1023],{"class":937,"line":1017},3,[935,1019,1020],{"class":984},"  sms",[935,1022,988],{"class":977},[935,1024,1025],{"class":977}," {\n",[935,1027,1029,1032,1034],{"class":937,"line":1028},4,[935,1030,1031],{"class":984},"    providers",[935,1033,988],{"class":977},[935,1035,1025],{"class":977},[935,1037,1039],{"class":937,"line":1038},5,[935,1040,1042],{"class":1041},"sHwdD","      \u002F\u002F Filled in by NUXT_SMS_PROVIDERS_TWILIO_ACCOUNT_SID, _AUTH_TOKEN and _NUMBERS.\n",[935,1044,1046,1049,1051,1054,1057,1059,1061,1064,1066,1068,1071,1073,1076,1078,1081,1083,1085,1087,1090,1092,1094],{"class":937,"line":1045},6,[935,1047,1048],{"class":984},"      twilio",[935,1050,988],{"class":977},[935,1052,1053],{"class":977}," {",[935,1055,1056],{"class":984}," type",[935,1058,988],{"class":977},[935,1060,1004],{"class":977},[935,1062,1063],{"class":945},"twilio",[935,1065,994],{"class":977},[935,1067,1001],{"class":977},[935,1069,1070],{"class":984}," accountSid",[935,1072,988],{"class":977},[935,1074,1075],{"class":977}," ''",[935,1077,1001],{"class":977},[935,1079,1080],{"class":984}," authToken",[935,1082,988],{"class":977},[935,1084,1075],{"class":977},[935,1086,1001],{"class":977},[935,1088,1089],{"class":984}," numbers",[935,1091,988],{"class":977},[935,1093,1075],{"class":977},[935,1095,1096],{"class":977}," },\n",[935,1098,1100],{"class":937,"line":1099},7,[935,1101,1102],{"class":977},"    },\n",[935,1104,1106],{"class":937,"line":1105},8,[935,1107,1108],{"class":977},"  },\n",[935,1110,1112,1115],{"class":937,"line":1111},9,[935,1113,1114],{"class":977},"}",[935,1116,1117],{"class":973},")\n",[921,1119,1121],{"id":1120},"generate-the-migration","Generate the migration",[738,1123,1124,1125,1127],{},"With ",[749,1126,897],{}," SMS stores its providers, phones and messages, so it needs its tables:",[926,1129,1131],{"className":928,"code":1130,"language":930,"meta":931,"style":931},"pnpm db:generate\n",[749,1132,1133],{"__ignoreMap":931},[935,1134,1135,1137],{"class":937,"line":938},[935,1136,942],{"class":941},[935,1138,1139],{"class":945}," db:generate\n",[921,1141,1143],{"id":1142},"send-a-message","Send a message",[926,1145,1148],{"className":952,"code":1146,"filename":1147,"language":955,"meta":931,"style":931},"export default defineEventHandler(async (event) => {\n  return sendSms({ to: '+4512345678', body: 'Your shift starts at 18:00.', source: 'shifts', event })\n  \u002F\u002F { id: 'smo_…', status: 'sent', numberId: 'twilio:+4520000001', providerId: 'twilio', externalId: 'SM…', error: null }\n})\n","server\u002Fapi\u002Fremind.post.ts",[749,1149,1150,1180,1243,1248],{"__ignoreMap":931},[935,1151,1152,1154,1156,1159,1161,1165,1168,1172,1175,1178],{"class":937,"line":938},[935,1153,963],{"class":962},[935,1155,966],{"class":962},[935,1157,1158],{"class":969}," defineEventHandler",[935,1160,974],{"class":973},[935,1162,1164],{"class":1163},"spNyl","async",[935,1166,1167],{"class":977}," (",[935,1169,1171],{"class":1170},"sHdIc","event",[935,1173,1174],{"class":977},")",[935,1176,1177],{"class":1163}," =>",[935,1179,1025],{"class":977},[935,1181,1182,1185,1188,1190,1193,1196,1198,1200,1203,1205,1207,1210,1212,1214,1217,1219,1221,1224,1226,1228,1231,1233,1235,1238,1241],{"class":937,"line":981},[935,1183,1184],{"class":962},"  return",[935,1186,1187],{"class":969}," sendSms",[935,1189,974],{"class":984},[935,1191,1192],{"class":977},"{",[935,1194,1195],{"class":984}," to",[935,1197,988],{"class":977},[935,1199,1004],{"class":977},[935,1201,1202],{"class":945},"+4512345678",[935,1204,994],{"class":977},[935,1206,1001],{"class":977},[935,1208,1209],{"class":984}," body",[935,1211,988],{"class":977},[935,1213,1004],{"class":977},[935,1215,1216],{"class":945},"Your shift starts at 18:00.",[935,1218,994],{"class":977},[935,1220,1001],{"class":977},[935,1222,1223],{"class":984}," source",[935,1225,988],{"class":977},[935,1227,1004],{"class":977},[935,1229,1230],{"class":945},"shifts",[935,1232,994],{"class":977},[935,1234,1001],{"class":977},[935,1236,1237],{"class":973}," event",[935,1239,1240],{"class":977}," }",[935,1242,1117],{"class":984},[935,1244,1245],{"class":937,"line":1017},[935,1246,1247],{"class":1041},"  \u002F\u002F { id: 'smo_…', status: 'sent', numberId: 'twilio:+4520000001', providerId: 'twilio', externalId: 'SM…', error: null }\n",[935,1249,1250,1252],{"class":937,"line":1028},[935,1251,1114],{"class":977},[935,1253,1117],{"class":973},[769,1255,1257],{"id":1256},"who-sent-a-message","Who sent a message",[738,1259,1260,1261,1264,1265,1268,1269,1271],{},"Every message records the module that sent it (",[749,1262,1263],{},"source",") and, through Notify, the topic (",[749,1266,1267],{},"topic","). The Messages tab\nshows them in a \"Sent by\" column and filters by them, and the ",[749,1270,755],{}," hooks carry them.",[774,1273,1274,1294,1307],{},[777,1275,1276,1280,1281,1283,1284,1286,1287,1290,1291,1293],{},[742,1277,1278],{"href":802},[749,1279,805],{}," sets them for you: ",[749,1282,1263],{}," is the topic's module\n(",[749,1285,1230],{}," for ",[749,1288,1289],{},"shifts.reminder","), ",[749,1292,1267],{}," the topic.",[777,1295,1296,1297,1299,1300,1303,1304,826],{},"A module that calls ",[749,1298,798],{}," itself passes its name: ",[749,1301,1302],{},"meta: { source: 'crew', topic: 'crew.status' }",".\nWithout it the message is labelled ",[749,1305,1306],{},"notify",[777,1308,1309,1311,1312,1314,1315,1317,1318,1320,1321,1324,1325,826],{},[749,1310,784],{}," takes ",[749,1313,1263],{}," and ",[749,1316,1267],{}," directly. SMS's own sends are ",[749,1319,751],{}," (the admin's test, texts composed on a phone)\nand ",[749,1322,1323],{},"sms-broadcast"," (group sends); inbox replies are ",[749,1326,1327],{},"inbox",[738,1329,1330,1331,1334],{},"The Messages tab names a module by the i18n key ",[749,1332,1333],{},"sms.messages.sources.\u003Cmodule>",", else by its name.",[769,1336,1338],{"id":1337},"with-or-without-the-database","With or without the database",[738,1340,1341,1344,1345,1348,1349,854,1351,1354,1355,1357,1358,1361],{},[749,1342,1343],{},"sms.database"," decides: ",[749,1346,1347],{},"'auto'"," (the default) is on when the app has ",[749,1350,897],{},[749,1352,1353],{},"true"," requires it (the build fails\nwithout ",[749,1356,897],{},") and ",[749,1359,1360],{},"false"," never uses it.",[1363,1364,1365,1380],"table",{},[1366,1367,1368],"thead",{},[1369,1370,1371,1374,1377],"tr",{},[1372,1373],"th",{},[1372,1375,1376],{},"Without the database",[1372,1378,1379],{},"With the database",[1381,1382,1383,1397,1407,1432,1445,1454],"tbody",{},[1369,1384,1385,1388,1394],{},[1386,1387,818],"td",{},[1386,1389,1390,1393],{},[749,1391,1392],{},"sms.providers"," only",[1386,1395,1396],{},"Also added in the admin, secrets encrypted",[1369,1398,1399,1401,1404],{},[1386,1400,831],{},[1386,1402,1403],{},"No",[1386,1405,1406],{},"Yes",[1369,1408,1409,1412,1421],{},[1386,1410,1411],{},"Message log",[1386,1413,1414,1415,1417,1418,1420],{},"None: only the ",[749,1416,755],{}," hooks see messages (",[749,1419,784],{}," answers an id that is not stored)",[1386,1422,1423,1424,1427,1428,1431],{},"Every message is an ",[749,1425,1426],{},"sms_outbox"," row, every text an ",[749,1429,1430],{},"sms_inbound"," row",[1369,1433,1434,1437,1442],{},[1386,1435,1436],{},"Duplicate inbound texts",[1386,1438,1439,1440,1174],{},"Remembered for a day in Nitro storage (",[749,1441,751],{},[1386,1443,1444],{},"A unique row per provider message id",[1369,1446,1447,1450,1452],{},[1386,1448,1449],{},"Inbox channel, broadcasts, tasks",[1386,1451,1403],{},[1386,1453,1406],{},[1369,1455,1456,1458,1461],{},[1386,1457,225],{},[1386,1459,1460],{},"Providers (read-only) and \"Send test message\"",[1386,1462,1463],{},"Every tab",[769,1465,818],{"id":1466},"providers",[738,1468,1469],{},"A provider is set up in one of two places:",[774,1471,1472,1487],{},[777,1473,1474,1478,1479,1482,1483,1486],{},[780,1475,1476],{},[749,1477,1392],{}," in ",[749,1480,1481],{},"nuxt.config",", by id, with its settings filled in by environment variables\n(",[749,1484,1485],{},"NUXT_SMS_PROVIDERS_\u003CID>_\u003CSETTING>","). The admin shows it read-only, and a provider whose required settings are empty\nshows as \"Not configured\" and is never used.",[777,1488,1489,1492,1493,1496,1497,1500],{},[780,1490,1491],{},"The admin"," (with the database). Its secret settings are sealed with AES-GCM under ",[749,1494,1495],{},"NUXT_SMS_SECRET_KEY"," or, without\nit, a key derived from ",[749,1498,1499],{},"NUXT_APP_SECRET",". Without either, saving a provider with a secret answers 501.\nChanging the key makes the stored secrets unreadable: those providers turn off until their secrets are saved again.",[1363,1502,1503,1513],{},[1366,1504,1505],{},[1369,1506,1507,1510],{},[1372,1508,1509],{},"Setting of a config provider",[1372,1511,1512],{},"What it is",[1381,1514,1515,1528,1538,1551,1563,1573],{},[1369,1516,1517,1522],{},[1386,1518,1519],{},[749,1520,1521],{},"type",[1386,1523,1524,1525,1527],{},"A registered type: ",[749,1526,1063],{},", or your own.",[1369,1529,1530,1535],{},[1386,1531,1532],{},[749,1533,1534],{},"name",[1386,1536,1537],{},"What the admin shows. Defaults to the id.",[1369,1539,1540,1545],{},[1386,1541,1542],{},[749,1543,1544],{},"priority",[1386,1546,1547,1548,826],{},"Lower goes first when numbers tie. Default ",[749,1549,1550],{},"100",[1369,1552,1553,1558],{},[1386,1554,1555],{},[749,1556,1557],{},"enabled",[1386,1559,1560,1562],{},[749,1561,1360],{}," turns it off.",[1369,1564,1565,1570],{},[1386,1566,1567],{},[749,1568,1569],{},"numbers",[1386,1571,1572],{},"Its numbers in E.164, as a list or comma separated. Each sends and receives.",[1369,1574,1575,1578],{},[1386,1576,1577],{},"Its type's settings",[1386,1579,1580,1581,854,1584,1587,1588,1591],{},"Twilio: ",[749,1582,1583],{},"accountSid",[749,1585,1586],{},"authToken"," (secret), ",[749,1589,1590],{},"messagingServiceSid"," (optional).",[921,1593,1594],{"id":1063},"Twilio",[738,1596,1597,1598,1601,1602,1605,1606,1608,1609,1612,1613,1616,1617,1314,1620,1623],{},"Set the number's \"A message comes in\" webhook to ",[749,1599,1600],{},"https:\u002F\u002F\u003Chost>\u002Fapi\u002Fsms\u002Fwebhooks\u002F\u003CproviderId>\u002Finbound",". Delivery\nreports come to ",[749,1603,1604],{},"...\u002Fstatus"," by themselves: ",[749,1607,784],{}," passes it as ",[749,1610,1611],{},"StatusCallback"," when it knows the request's origin.\nBoth webhooks are checked against ",[749,1614,1615],{},"X-Twilio-Signature"," with the auth token; behind a proxy, the URL Twilio signed must be\nthe one the app sees (",[749,1618,1619],{},"x-forwarded-host",[749,1621,1622],{},"x-forwarded-proto"," are read).",[921,1625,1627],{"id":1626},"your-own-provider","Your own provider",[738,1629,1630,1631,1634],{},"Register a type from a module's ",[749,1632,1633],{},"setup()"," and default-export the adapter:",[926,1636,1639],{"className":952,"code":1637,"filename":1638,"language":955,"meta":931,"style":931},"import { extendSms } from '@frigear-nu\u002Fsms\u002Futils'\n\nexport default defineNuxtModule({\n  setup(_options, nuxt) {\n    const resolver = createResolver(import.meta.url)\n    extendSms(nuxt, {\n      providers: [{\n        type: 'acme',\n        label: 'Acme SMS',\n        adapter: resolver.resolve('.\u002Fruntime\u002Facme'),\n        configSchema: [{ key: 'apiKey', label: 'API key', secret: true, required: true }],\n      }],\n    })\n  },\n})\n","modules\u002Facme-sms.ts",[749,1640,1641,1664,1670,1683,1702,1732,1746,1757,1773,1789,1817,1881,1891,1899,1904],{"__ignoreMap":931},[935,1642,1643,1646,1648,1651,1653,1656,1658,1661],{"class":937,"line":938},[935,1644,1645],{"class":962},"import",[935,1647,1053],{"class":977},[935,1649,1650],{"class":973}," extendSms",[935,1652,1240],{"class":977},[935,1654,1655],{"class":962}," from",[935,1657,1004],{"class":977},[935,1659,1660],{"class":945},"@frigear-nu\u002Fsms\u002Futils",[935,1662,1663],{"class":977},"'\n",[935,1665,1666],{"class":937,"line":981},[935,1667,1669],{"emptyLinePlaceholder":1668},true,"\n",[935,1671,1672,1674,1676,1679,1681],{"class":937,"line":1017},[935,1673,963],{"class":962},[935,1675,966],{"class":962},[935,1677,1678],{"class":969}," defineNuxtModule",[935,1680,974],{"class":973},[935,1682,978],{"class":977},[935,1684,1685,1688,1690,1693,1695,1698,1700],{"class":937,"line":1028},[935,1686,1687],{"class":984},"  setup",[935,1689,974],{"class":977},[935,1691,1692],{"class":1170},"_options",[935,1694,1001],{"class":977},[935,1696,1697],{"class":1170}," nuxt",[935,1699,1174],{"class":977},[935,1701,1025],{"class":977},[935,1703,1704,1707,1710,1713,1716,1718,1720,1722,1725,1727,1730],{"class":937,"line":1038},[935,1705,1706],{"class":1163},"    const",[935,1708,1709],{"class":973}," resolver",[935,1711,1712],{"class":977}," =",[935,1714,1715],{"class":969}," createResolver",[935,1717,974],{"class":984},[935,1719,1645],{"class":962},[935,1721,826],{"class":977},[935,1723,1724],{"class":973},"meta",[935,1726,826],{"class":977},[935,1728,1729],{"class":973},"url",[935,1731,1117],{"class":984},[935,1733,1734,1737,1739,1742,1744],{"class":937,"line":1045},[935,1735,1736],{"class":969},"    extendSms",[935,1738,974],{"class":984},[935,1740,1741],{"class":973},"nuxt",[935,1743,1001],{"class":977},[935,1745,1025],{"class":977},[935,1747,1748,1751,1753,1755],{"class":937,"line":1099},[935,1749,1750],{"class":984},"      providers",[935,1752,988],{"class":977},[935,1754,991],{"class":984},[935,1756,978],{"class":977},[935,1758,1759,1762,1764,1766,1769,1771],{"class":937,"line":1105},[935,1760,1761],{"class":984},"        type",[935,1763,988],{"class":977},[935,1765,1004],{"class":977},[935,1767,1768],{"class":945},"acme",[935,1770,994],{"class":977},[935,1772,1014],{"class":977},[935,1774,1775,1778,1780,1782,1785,1787],{"class":937,"line":1111},[935,1776,1777],{"class":984},"        label",[935,1779,988],{"class":977},[935,1781,1004],{"class":977},[935,1783,1784],{"class":945},"Acme SMS",[935,1786,994],{"class":977},[935,1788,1014],{"class":977},[935,1790,1792,1795,1797,1799,1801,1804,1806,1808,1811,1813,1815],{"class":937,"line":1791},10,[935,1793,1794],{"class":984},"        adapter",[935,1796,988],{"class":977},[935,1798,1709],{"class":973},[935,1800,826],{"class":977},[935,1802,1803],{"class":969},"resolve",[935,1805,974],{"class":984},[935,1807,994],{"class":977},[935,1809,1810],{"class":945},".\u002Fruntime\u002Facme",[935,1812,994],{"class":977},[935,1814,1174],{"class":984},[935,1816,1014],{"class":977},[935,1818,1820,1823,1825,1827,1829,1832,1834,1836,1839,1841,1843,1846,1848,1850,1853,1855,1857,1860,1862,1866,1868,1871,1873,1875,1877,1879],{"class":937,"line":1819},11,[935,1821,1822],{"class":984},"        configSchema",[935,1824,988],{"class":977},[935,1826,991],{"class":984},[935,1828,1192],{"class":977},[935,1830,1831],{"class":984}," key",[935,1833,988],{"class":977},[935,1835,1004],{"class":977},[935,1837,1838],{"class":945},"apiKey",[935,1840,994],{"class":977},[935,1842,1001],{"class":977},[935,1844,1845],{"class":984}," label",[935,1847,988],{"class":977},[935,1849,1004],{"class":977},[935,1851,1852],{"class":945},"API key",[935,1854,994],{"class":977},[935,1856,1001],{"class":977},[935,1858,1859],{"class":984}," secret",[935,1861,988],{"class":977},[935,1863,1865],{"class":1864},"sfNiH"," true",[935,1867,1001],{"class":977},[935,1869,1870],{"class":984}," required",[935,1872,988],{"class":977},[935,1874,1865],{"class":1864},[935,1876,1240],{"class":977},[935,1878,1011],{"class":984},[935,1880,1014],{"class":977},[935,1882,1884,1887,1889],{"class":937,"line":1883},12,[935,1885,1886],{"class":977},"      }",[935,1888,1011],{"class":984},[935,1890,1014],{"class":977},[935,1892,1894,1897],{"class":937,"line":1893},13,[935,1895,1896],{"class":977},"    }",[935,1898,1117],{"class":984},[935,1900,1902],{"class":937,"line":1901},14,[935,1903,1108],{"class":977},[935,1905,1907,1909],{"class":937,"line":1906},15,[935,1908,1114],{"class":977},[935,1910,1117],{"class":973},[926,1912,1915],{"className":952,"code":1913,"filename":1914,"language":955,"meta":931,"style":931},"import { defineSmsProvider } from '@frigear-nu\u002Fsms\u002Futils'\n\nexport default defineSmsProvider({\n  async send({ provider, number, message }) {\n    const sent = await $fetch\u003C{ id: string }>('https:\u002F\u002Fsms.acme.test\u002Fsend', {\n      method: 'POST',\n      headers: { authorization: `Bearer ${provider.secrets.apiKey}` },\n      body: { from: number.number, to: message.to, text: message.body },\n    })\n    return { externalId: sent.id }\n  },\n  \u002F\u002F Optional: read POST \u002Fapi\u002Fsms\u002Fwebhooks\u002F:providerId\u002Finbound and ...\u002Fstatus (verify the request first, throw 401),\n  \u002F\u002F and `verify(provider)` for the admin's test action.\n})\n","runtime\u002Facme.ts",[749,1916,1917,1936,1940,1952,1981,2023,2039,2079,2128,2134,2156,2160,2165,2170],{"__ignoreMap":931},[935,1918,1919,1921,1923,1926,1928,1930,1932,1934],{"class":937,"line":938},[935,1920,1645],{"class":962},[935,1922,1053],{"class":977},[935,1924,1925],{"class":973}," defineSmsProvider",[935,1927,1240],{"class":977},[935,1929,1655],{"class":962},[935,1931,1004],{"class":977},[935,1933,1660],{"class":945},[935,1935,1663],{"class":977},[935,1937,1938],{"class":937,"line":981},[935,1939,1669],{"emptyLinePlaceholder":1668},[935,1941,1942,1944,1946,1948,1950],{"class":937,"line":1017},[935,1943,963],{"class":962},[935,1945,966],{"class":962},[935,1947,1925],{"class":969},[935,1949,974],{"class":973},[935,1951,978],{"class":977},[935,1953,1954,1957,1960,1963,1966,1968,1971,1973,1976,1979],{"class":937,"line":1028},[935,1955,1956],{"class":1163},"  async",[935,1958,1959],{"class":984}," send",[935,1961,1962],{"class":977},"({",[935,1964,1965],{"class":1170}," provider",[935,1967,1001],{"class":977},[935,1969,1970],{"class":1170}," number",[935,1972,1001],{"class":977},[935,1974,1975],{"class":1170}," message",[935,1977,1978],{"class":977}," })",[935,1980,1025],{"class":977},[935,1982,1983,1985,1988,1990,1993,1996,1999,2002,2004,2007,2010,2012,2014,2017,2019,2021],{"class":937,"line":1038},[935,1984,1706],{"class":1163},[935,1986,1987],{"class":973}," sent",[935,1989,1712],{"class":977},[935,1991,1992],{"class":962}," await",[935,1994,1995],{"class":969}," $fetch",[935,1997,1998],{"class":977},"\u003C{",[935,2000,2001],{"class":984}," id",[935,2003,988],{"class":977},[935,2005,2006],{"class":941}," string",[935,2008,2009],{"class":977}," }>",[935,2011,974],{"class":984},[935,2013,994],{"class":977},[935,2015,2016],{"class":945},"https:\u002F\u002Fsms.acme.test\u002Fsend",[935,2018,994],{"class":977},[935,2020,1001],{"class":977},[935,2022,1025],{"class":977},[935,2024,2025,2028,2030,2032,2035,2037],{"class":937,"line":1045},[935,2026,2027],{"class":984},"      method",[935,2029,988],{"class":977},[935,2031,1004],{"class":977},[935,2033,2034],{"class":945},"POST",[935,2036,994],{"class":977},[935,2038,1014],{"class":977},[935,2040,2041,2044,2046,2048,2051,2053,2056,2059,2062,2065,2067,2070,2072,2074,2077],{"class":937,"line":1099},[935,2042,2043],{"class":984},"      headers",[935,2045,988],{"class":977},[935,2047,1053],{"class":977},[935,2049,2050],{"class":984}," authorization",[935,2052,988],{"class":977},[935,2054,2055],{"class":977}," `",[935,2057,2058],{"class":945},"Bearer ",[935,2060,2061],{"class":977},"${",[935,2063,2064],{"class":973},"provider",[935,2066,826],{"class":977},[935,2068,2069],{"class":973},"secrets",[935,2071,826],{"class":977},[935,2073,1838],{"class":973},[935,2075,2076],{"class":977},"}`",[935,2078,1096],{"class":977},[935,2080,2081,2084,2086,2088,2090,2092,2094,2096,2099,2101,2103,2105,2107,2109,2112,2114,2117,2119,2121,2123,2126],{"class":937,"line":1105},[935,2082,2083],{"class":984},"      body",[935,2085,988],{"class":977},[935,2087,1053],{"class":977},[935,2089,1655],{"class":984},[935,2091,988],{"class":977},[935,2093,1970],{"class":973},[935,2095,826],{"class":977},[935,2097,2098],{"class":973},"number",[935,2100,1001],{"class":977},[935,2102,1195],{"class":984},[935,2104,988],{"class":977},[935,2106,1975],{"class":973},[935,2108,826],{"class":977},[935,2110,2111],{"class":973},"to",[935,2113,1001],{"class":977},[935,2115,2116],{"class":984}," text",[935,2118,988],{"class":977},[935,2120,1975],{"class":973},[935,2122,826],{"class":977},[935,2124,2125],{"class":973},"body",[935,2127,1096],{"class":977},[935,2129,2130,2132],{"class":937,"line":1111},[935,2131,1896],{"class":977},[935,2133,1117],{"class":984},[935,2135,2136,2139,2141,2144,2146,2148,2150,2153],{"class":937,"line":1791},[935,2137,2138],{"class":962},"    return",[935,2140,1053],{"class":977},[935,2142,2143],{"class":984}," externalId",[935,2145,988],{"class":977},[935,2147,1987],{"class":973},[935,2149,826],{"class":977},[935,2151,2152],{"class":973},"id",[935,2154,2155],{"class":977}," }\n",[935,2157,2158],{"class":937,"line":1819},[935,2159,1108],{"class":977},[935,2161,2162],{"class":937,"line":1883},[935,2163,2164],{"class":1041},"  \u002F\u002F Optional: read POST \u002Fapi\u002Fsms\u002Fwebhooks\u002F:providerId\u002Finbound and ...\u002Fstatus (verify the request first, throw 401),\n",[935,2166,2167],{"class":937,"line":1893},[935,2168,2169],{"class":1041},"  \u002F\u002F and `verify(provider)` for the admin's test action.\n",[935,2171,2172,2174],{"class":937,"line":1901},[935,2173,1114],{"class":977},[935,2175,1117],{"class":973},[738,2177,2178,2181,2182,2185,2186,2189],{},[749,2179,2180],{},"send"," throws to fail the message (routing tries the next number), or answers ",[749,2183,2184],{},"{ queued: true }"," when the result comes\nlater. The host can add types with ",[749,2187,2188],{},"sms.extraProviders","; a later type with the same name replaces an earlier one.",[769,2191,2193],{"id":2192},"routing-and-failover","Routing and failover",[738,2195,2196,2199],{},[749,2197,2198],{},"sendSms({ to, body, from?, operationId?, source?, ref?, failover?, defer? })"," picks the numbers to try, in order:",[2201,2202,2203,2212],"ol",{},[777,2204,2205,2207,2208,2211],{},[749,2206,788],{}," (a number or a number id), if given. With ",[749,2209,2210],{},"failover: false"," it is the only one.",[777,2213,2214,2215,2218],{},"Then, automatically: the numbers of ",[749,2216,2217],{},"operationId",", then numbers of no operation, then other operations' numbers.\nWithin each, the default number first, then by priority (lower first), then the provider's priority.",[738,2220,2221,2222,2224,2225,1314,2227,2229,2230,2233,2234,2236,2237,2241,2242,2244],{},"A phone's line is used automatically only when the phone offers notify SMS. Bulk sources (every named\n",[749,2223,1263],{}," but ",[749,2226,751],{},[749,2228,1327],{},": modules' notifications, group sends, campaigns) skip offline Android phones, and phones\nat their limit (",[749,2231,2232],{},"rateLimit"," messages per 30 minutes, 30 by default, as Android allows). ",[749,2235,1323],{}," and campaigns put\nevery API number before every phone. iPhones come last in automatic routing, after every API number and Android phone\n(see ",[742,2238,2240],{"href":2239},"#iphones","iPhones","); an explicit ",[749,2243,788],{}," may still pick one.",[738,2246,2247,2248,2251,2252,2255,2256,1167,2259,2262,2263,2266,2267,2269,2270,2272,2273,2276],{},"On a provider error the next number is tried, and the message records the numbers it tried (",[749,2249,2250],{},"triedNumberIds","). A message\nfor a phone is queued for the phone instead; the ",[749,2253,2254],{},"sms:sweep"," task moves it on when the phone does not claim it within\n",[749,2257,2258],{},"claimTimeoutSeconds",[749,2260,2261],{},"iosClaimTimeoutSeconds"," for an iPhone), and the phone's failure report does the same at once. A message nothing could send answers\n",[749,2264,2265],{},"status: 'failed'"," and fires ",[749,2268,863],{},"; ",[749,2271,784],{}," only throws for a bad recipient (400 ",[749,2274,2275],{},"invalid_number",") or body.",[738,2278,2279,2282,2283,2286],{},[749,2280,2281],{},"defer: true"," stores the message and leaves it to the ",[749,2284,2285],{},"sms:deliver"," task.",[769,2288,831],{"id":2289},"paired-phones",[738,2291,2292,2293,2296],{},"A phone is the ",[749,2294,2295],{},"device"," provider: its SIM lines are numbers. Phones are paired with the Sysgear app, and the phone keeps\nnothing but its own token.",[2201,2298,2299,2306,2317],{},[777,2300,2301,2302,2305],{},"An admin adds the phone (Phones tab) and shows its pairing code: a QR holding ",[749,2303,2304],{},"{ server, code, purpose: 'pair' }",",\nvalid once for 10 minutes.",[777,2307,2308,2309,2312,2313,2316],{},"The app sends the code to ",[749,2310,2311],{},"POST \u002Fapi\u002Fsms\u002Fpair"," and gets the phone's token once: ",[749,2314,2315],{},"smd_"," and 43 characters. Only its\nSHA-256 is stored.",[777,2318,2319],{},"The phone reports its SIM lines on pairing and in heartbeats. A new line starts off; an admin labels it, fills in its\nnumber when the SIM does not know it, and turns it on.",[738,2321,2322,2323,2326,2327,2330,2331,2334,2335,2338,2339,2342],{},"An admin can also sign in on the phone (OAuth with the ",[749,2324,2325],{},"sms-pair"," scope, holding ",[749,2328,2329],{},"sms:pair",") and pair without a code;\nthe app signs that admin out right after. Changing what the phone offers (",[749,2332,2333],{},"channels",") needs an unlock code: a fresh QR\nfrom the admin (purpose ",[749,2336,2337],{},"unlock","), or ",[749,2340,2341],{},"POST \u002Fapi\u002Fsms\u002Funlock"," as an admin signed in on the phone.",[738,2344,2345,2346,988],{},"Routes of a paired phone, with ",[749,2347,2348],{},"Authorization: Bearer smd_…",[1363,2350,2351,2361],{},[1366,2352,2353],{},[1369,2354,2355,2358],{},[1372,2356,2357],{},"Route",[1372,2359,2360],{},"What it does",[1381,2362,2363,2376,2401,2414,2430,2443,2455],{},[1369,2364,2365,2370],{},[1386,2366,2367],{},[749,2368,2369],{},"POST \u002Fapi\u002Fsms\u002Fdevice\u002Fheartbeat",[1386,2371,2372,2375],{},[749,2373,2374],{},"{ platform?, lines? }",": online, its lines, and how many messages wait.",[1369,2377,2378,2383],{},[1386,2379,2380],{},[749,2381,2382],{},"POST \u002Fapi\u002Fsms\u002Fdevice\u002Foutbox\u002Fclaim",[1386,2384,2385,2388,2389,854,2391,854,2393,854,2395,854,2397,2400],{},[749,2386,2387],{},"{ limit? }",": claims the waiting messages (",[749,2390,2152],{},[749,2392,2111],{},[749,2394,2125],{},[749,2396,788],{},[749,2398,2399],{},"simSubscriptionId",").",[1369,2402,2403,2408],{},[1386,2404,2405],{},[749,2406,2407],{},"POST \u002Fapi\u002Fsms\u002Fdevice\u002Foutbox\u002F:id\u002Fresult",[1386,2409,2410,2413],{},[749,2411,2412],{},"{ status: 'sent' | 'delivered' | 'failed', error? }",". A failure fails over.",[1369,2415,2416,2421],{},[1386,2417,2418],{},[749,2419,2420],{},"POST \u002Fapi\u002Fsms\u002Fdevice\u002Finbound",[1386,2422,2423,2426,2427,826],{},[749,2424,2425],{},"{ from, to? or subscriptionId?, body, externalId, receivedAt? }",": a text it received, stored once per ",[749,2428,2429],{},"externalId",[1369,2431,2432,2437],{},[1386,2433,2434],{},[749,2435,2436],{},"POST \u002Fapi\u002Fsms\u002Fdevice\u002Fsend",[1386,2438,2439,2442],{},[749,2440,2441],{},"{ to, body, from? }",": a text composed on the phone, logged and queued for the phone.",[1369,2444,2445,2450],{},[1386,2446,2447],{},[749,2448,2449],{},"PATCH \u002Fapi\u002Fsms\u002Fdevice\u002Fchannels",[1386,2451,2452,826],{},[749,2453,2454],{},"{ channels, unlockCode }",[1369,2456,2457,2462],{},[1386,2458,2459],{},[749,2460,2461],{},"POST \u002Fapi\u002Fsms\u002Fdevice\u002Fpush",[1386,2463,2464,2465,2400],{},"Push's device registration body: the phone gets pushes (owner ",[749,2466,2467],{},"sms-device",[738,2469,2470,2471,2474,2475,795,2479,2482,2483,2486],{},"A phone's token holds only ",[749,2472,2473],{},"sms:device",", a ",[742,2476,2478],{"href":2477},"\u002Fmodules\u002Fidentity\u002Fauth\u002Fserver#devices","device permission",[749,2480,2481],{},"authorize","\nanswers 403 for it on every other route, and no user or role ever holds it. A policy on a device permission blocks every\ndevice, and the ",[749,2484,2485],{},"authorization:before"," hook never runs for devices, so check a phone in its route. Revoking a phone\n(Phones tab) stops its token at once and moves its waiting messages on.",[738,2488,2489,2491,2492,2495,2496,2498,2499,2502],{},[749,2490,2254],{}," (every minute) marks a phone offline after ",[749,2493,2494],{},"offlineAfterMinutes"," without a heartbeat and fires\n",[749,2497,866],{},". When Push is installed, a phone with messages waiting gets a push (at most every 30 seconds), and\n",[749,2500,2501],{},"smsPushToDevices(event, { operationId, title, body })"," reaches the phones of an operation that offer push.",[921,2504,2240],{"id":2505},"iphones",[738,2507,2508],{},"iOS lets no app send or read texts on its own, so an iPhone works through two Shortcuts personal automations, set up\nby hand on each phone (iOS 17 or later, \"Run Immediately\"). The Sysgear app's iPhone setup screen walks through both,\nwith the URLs and the phone's token (shown after an admin unlocks it).",[774,2510,2511,2532,2540],{},[777,2512,2513,2516,2517,2520,2521,2523,2524,2527,2528,2531],{},[780,2514,2515],{},"Send",": \"When I get an email\" from the server's sender, subject ",[749,2518,2519],{},"Sysgear: messages waiting"," → claim\n(",[749,2522,2382],{},") → Send Message for each item (Show When Run off) → ",[749,2525,2526],{},"POST …\u002Foutbox\u002F:id\u002Fresult",".\nA push cannot start a shortcut, so the server emails the phone's ",[780,2529,2530],{},"wake-up email"," (set in the phone's edit in the\nadmin) when messages are queued for it, through notify's email, at most once a minute while they wait.",[777,2533,2534,2537,2538,826],{},[780,2535,2536],{},"Receive",": \"When I get a message\" → ",[749,2539,2420],{},[777,2541,2542,2545,2546,2549],{},[780,2543,2544],{},"Its number",": iOS cannot tell it, so the admin types it in the phone's edit; it becomes the phone's one line\n(subscription id ",[749,2547,2548],{},"0","), off until turned on.",[738,2551,2552,2553,2556,2557,2559],{},"Limits: it sends from the default line only, may need the phone unlocked, reports no delivery (results stop at\n",[749,2554,2555],{},"sent","), and each phone is set up by hand. An iPhone has ",[749,2558,2261],{}," (600 by default) to claim a message\nbefore routing moves on, as email and the automation take longer than an Android phone's polling.",[769,2561,381],{"id":1327},[738,2563,2564,2565,2567],{},"With Inbox installed, SMS registers the ",[749,2566,751],{}," channel. Add a channel account for each receive number in the inbox\nsettings, with the number (E.164) as its address. A text to that number becomes a thread, and a reply leaves from the\nsame number. The sender's number is their identity on SMS (a caller ID): a text joins that number's open or pending\nthread on the same receive number, else it starts a new one. Senders are not verified (numbers can be spoofed), so a\ntext never links the contact to an account or renames it. A phone whose \"Two-way inbox\" is off is left out.",[769,2569,2571],{"id":2570},"sending-to-groups","Sending to groups",[738,2573,2574,2575,2578,2579,2582,2583,909,2586,2589,2590,2593,2594,826],{},"The Messages tab's \"Send SMS\" (",[749,2576,2577],{},"sms:broadcast",") sends one text to the members of some grants (roles, teams, operations:\nwhatever kinds the installed modules register with ",[749,2580,2581],{},"extendGrants",") and typed numbers, each number once. ",[749,2584,2585],{},"public",[749,2587,2588],{},"signed-in"," are refused. Phones come from Notify's recipient store, and people who turned SMS off for the ",[749,2591,2592],{},"sms.broadcast","\ntopic are left out; the form shows the count first. The messages are sent in batches by ",[749,2595,2285],{},[738,2597,2598,2599,826],{},"For newsletters with unsubscribe links and lists people sign up to, use ",[742,2600,389],{"href":390},[769,2602,242],{"id":2603},"hooks",[926,2605,2608],{"className":952,"code":2606,"filename":2607,"language":955,"meta":931,"style":931},"export default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('sms:received', async ({ from, to, body, operationId }) => {\n    \u002F\u002F Stored first; fired once per message, also when the provider retries the webhook.\n  })\n})\n","server\u002Fplugins\u002Fsms.ts",[749,2609,2610,2632,2683,2688,2695],{"__ignoreMap":931},[935,2611,2612,2614,2616,2619,2621,2623,2626,2628,2630],{"class":937,"line":938},[935,2613,963],{"class":962},[935,2615,966],{"class":962},[935,2617,2618],{"class":969}," defineNitroPlugin",[935,2620,974],{"class":973},[935,2622,974],{"class":977},[935,2624,2625],{"class":1170},"nitroApp",[935,2627,1174],{"class":977},[935,2629,1177],{"class":1163},[935,2631,1025],{"class":977},[935,2633,2634,2637,2639,2641,2643,2646,2648,2650,2652,2654,2656,2659,2662,2664,2666,2668,2670,2672,2674,2677,2679,2681],{"class":937,"line":981},[935,2635,2636],{"class":973},"  nitroApp",[935,2638,826],{"class":977},[935,2640,2603],{"class":973},[935,2642,826],{"class":977},[935,2644,2645],{"class":969},"hook",[935,2647,974],{"class":984},[935,2649,994],{"class":977},[935,2651,853],{"class":945},[935,2653,994],{"class":977},[935,2655,1001],{"class":977},[935,2657,2658],{"class":1163}," async",[935,2660,2661],{"class":977}," ({",[935,2663,1655],{"class":1170},[935,2665,1001],{"class":977},[935,2667,1195],{"class":1170},[935,2669,1001],{"class":977},[935,2671,1209],{"class":1170},[935,2673,1001],{"class":977},[935,2675,2676],{"class":1170}," operationId",[935,2678,1978],{"class":977},[935,2680,1177],{"class":1163},[935,2682,1025],{"class":977},[935,2684,2685],{"class":937,"line":1017},[935,2686,2687],{"class":1041},"    \u002F\u002F Stored first; fired once per message, also when the provider retries the webhook.\n",[935,2689,2690,2693],{"class":937,"line":1028},[935,2691,2692],{"class":977},"  }",[935,2694,1117],{"class":984},[935,2696,2697,2699],{"class":937,"line":1038},[935,2698,1114],{"class":977},[935,2700,1117],{"class":973},[1363,2702,2703,2713],{},[1366,2704,2705],{},[1369,2706,2707,2710],{},[1372,2708,2709],{},"Hook",[1372,2711,2712],{},"Context",[1381,2714,2715,2726,2741],{},[1369,2716,2717,2721],{},[1386,2718,2719],{},[749,2720,853],{},[1386,2722,2723],{},[749,2724,2725],{},"{ id, to, from, body, receivedAt, providerId, numberId, deviceId?, operationId?, event? }",[1369,2727,2728,2736],{},[1386,2729,2730,854,2732,854,2734],{},[749,2731,857],{},[749,2733,860],{},[749,2735,863],{},[1386,2737,2738],{},[749,2739,2740],{},"{ id, to, from, source, topic, ref, providerId, error? }",[1369,2742,2743,2747],{},[1386,2744,2745],{},[749,2746,866],{},[1386,2748,2749],{},[749,2750,2751],{},"{ deviceId, status: 'online' | 'offline' }",[769,2753,2755],{"id":2754},"access","Access",[1363,2757,2758,2771],{},[1366,2759,2760],{},[1369,2761,2762,2765,2768],{},[1372,2763,2764],{},"Permission",[1372,2766,2767],{},"Who",[1372,2769,2770],{},"What",[1381,2772,2773,2788,2802,2817,2830,2856,2872],{},[1369,2774,2775,2780,2785],{},[1386,2776,2777],{},[749,2778,2779],{},"system-admin:access",[1386,2781,2782],{},[749,2783,2784],{},"admin",[1386,2786,2787],{},"The SMS item of the admin.",[1369,2789,2790,2795,2799],{},[1386,2791,2792],{},[749,2793,2794],{},"system-admin:read",[1386,2796,2797],{},[749,2798,2784],{},[1386,2800,2801],{},"Providers, numbers, phones and the message log.",[1369,2803,2804,2809,2814],{},[1386,2805,2806],{},[749,2807,2808],{},"system-admin:write",[1386,2810,2811,2813],{},[749,2812,2784],{},", session only",[1386,2815,2816],{},"Change them, pair phones (it stores secrets and mints phone tokens).",[1369,2818,2819,2823,2827],{},[1386,2820,2821],{},[749,2822,2577],{},[1386,2824,2825],{},[749,2826,2784],{},[1386,2828,2829],{},"Send SMS to groups.",[1369,2831,2832,2837,2841],{},[1386,2833,2834],{},[749,2835,2836],{},"sms:send-numbers",[1386,2838,2839],{},[749,2840,2784],{},[1386,2842,2843,2846,2847,2850,2851,2855],{},[749,2844,2845],{},"GET \u002Fapi\u002Fadmin\u002Fsms\u002Fsend-numbers",": the numbers a message can go out from now (",[749,2848,2849],{},"{ id, number, label, operationId, isDefault }","), for a \"From\" picker such as ",[742,2852,2854],{"href":2853},"\u002Fmodules\u002Fcommunication\u002Fcampaigns#from-number","Campaigns'",". Grant it to a role that writes campaigns without the system settings.",[1369,2857,2858,2862,2869],{},[1386,2859,2860],{},[749,2861,2329],{},[1386,2863,2864,2866,2867],{},[749,2865,2784],{},", scope ",[749,2868,2325],{},[1386,2870,2871],{},"Pair a phone or unlock it from the phone app.",[1369,2873,2874,2878,2881],{},[1386,2875,2876],{},[749,2877,2473],{},[1386,2879,2880],{},"paired phones only",[1386,2882,2883],{},"The device routes.",[769,2885,2887],{"id":2886},"options","Options",[1363,2889,2890,2902],{},[1366,2891,2892],{},[1369,2893,2894,2897,2900],{},[1372,2895,2896],{},"Option",[1372,2898,2899],{},"Default",[1372,2901,2360],{},[1381,2903,2904,2918,2932,2947,2961,2975,2989,3007,3024,3047],{},[1369,2905,2906,2911,2915],{},[1386,2907,2908],{},[749,2909,2910],{},"database",[1386,2912,2913],{},[749,2914,1347],{},[1386,2916,2917],{},"Use the database (see above).",[1369,2919,2920,2924,2929],{},[1386,2921,2922],{},[749,2923,1466],{},[1386,2925,2926],{},[749,2927,2928],{},"{}",[1386,2930,2931],{},"Config providers, by id.",[1369,2933,2934,2939,2944],{},[1386,2935,2936],{},[749,2937,2938],{},"extraProviders",[1386,2940,2941],{},[749,2942,2943],{},"[]",[1386,2945,2946],{},"The host's own provider types.",[1369,2948,2949,2953,2958],{},[1386,2950,2951],{},[749,2952,2258],{},[1386,2954,2955],{},[749,2956,2957],{},"60",[1386,2959,2960],{},"How long a phone has to claim a message before failover.",[1369,2962,2963,2967,2972],{},[1386,2964,2965],{},[749,2966,2261],{},[1386,2968,2969],{},[749,2970,2971],{},"600",[1386,2973,2974],{},"The same for an iPhone, woken by email.",[1369,2976,2977,2981,2986],{},[1386,2978,2979],{},[749,2980,2494],{},[1386,2982,2983],{},[749,2984,2985],{},"5",[1386,2987,2988],{},"Minutes without a heartbeat before a phone is offline.",[1369,2990,2991,2996,3001],{},[1386,2992,2993],{},[749,2994,2995],{},"retentionDays",[1386,2997,2998],{},[749,2999,3000],{},"90",[1386,3002,3003,3004,3006],{},"Days messages are kept; ",[749,3005,1360],{}," keeps them.",[1369,3008,3009,3014,3018],{},[1386,3010,3011],{},[749,3012,3013],{},"batchSize",[1386,3015,3016],{},[749,3017,1550],{},[1386,3019,3020,3021,3023],{},"Messages ",[749,3022,2285],{}," sends per run.",[1369,3025,3026,3031,3036],{},[1386,3027,3028],{},[749,3029,3030],{},"cron",[1386,3032,3033],{},[749,3034,3035],{},"'* * * * *'",[1386,3037,3038,3039,1314,3041,3043,3044,3046],{},"When ",[749,3040,2254],{},[749,3042,2285],{}," run; ",[749,3045,1360],{}," registers them without a schedule.",[1369,3048,3049,3054,3058],{},[1386,3050,3051],{},[749,3052,3053],{},"pages.admin",[1386,3055,3056],{},[749,3057,1353],{},[1386,3059,3060,3061,3064,3065,3067],{},"The admin pages under ",[749,3062,3063],{},"\u002Fadmin\u002Fsms","; a path moves them, ",[749,3066,1360],{}," leaves them out.",[738,3069,3070,3072],{},[749,3071,1495],{}," (32+ characters) seals the secrets of admin providers.",[3074,3075,3076],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .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 .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 pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":931,"searchDepth":981,"depth":981,"links":3078},[3079,3080,3085,3086,3087,3091,3092,3095,3096,3097,3098,3099],{"id":771,"depth":981,"text":772},{"id":915,"depth":981,"text":916,"children":3081},[3082,3083,3084],{"id":923,"depth":1017,"text":924},{"id":1120,"depth":1017,"text":1121},{"id":1142,"depth":1017,"text":1143},{"id":1256,"depth":981,"text":1257},{"id":1337,"depth":981,"text":1338},{"id":1466,"depth":981,"text":818,"children":3088},[3089,3090],{"id":1063,"depth":1017,"text":1594},{"id":1626,"depth":1017,"text":1627},{"id":2192,"depth":981,"text":2193},{"id":2289,"depth":981,"text":831,"children":3093},[3094],{"id":2505,"depth":1017,"text":2240},{"id":1327,"depth":981,"text":381},{"id":2570,"depth":981,"text":2571},{"id":2603,"depth":981,"text":242},{"id":2754,"depth":981,"text":2755},{"id":2886,"depth":981,"text":2887},"Send and receive text messages through Twilio, shared phones or your own provider, with routing, failover and a message log.","md",null,{},{"title":393,"description":3100},"lfz1eBrpXuwsKooCVF0IoxCG4fEz3rZercdC29jtRco",[3107,3109],{"title":389,"path":390,"stem":391,"description":3108,"children":-1},"Lists people sign up to, also without an account, and campaigns to their subscribers and to users by email, SMS and push, with link and open tracking and one-click unsubscribe.",{"title":177,"path":403,"stem":404,"description":3110,"children":-1},"Gives every module's screens the same headings, cards, tables, forms and toasts, on top of Nuxt UI.",1796157344990]