[{"data":1,"prerenderedAt":2543},["ShallowReactive",2],{"docs-navigation-en":3,"mdc-d0lvp9-key":202,"docs--en-docs-getting-started-configuration":223,"surround--en-docs-getting-started-configuration":2532,"-en-docs-getting-started-configuration-description":2535},[4],{"title":5,"path":6,"stem":7,"children":8,"page":105},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[9,49,106,144,178],{"title":10,"path":11,"stem":12,"children":13,"category":16,"description":16,"icon":48},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F1.getting-started\u002F1.index",[14,18,23,28,33,38,43],{"title":15,"path":11,"stem":12,"category":16,"description":17},"Introduction",null,"Explore forms, data tables, components, and API integration in Movk Nuxt and choose a setup for Nuxt or Vue + Vite.",{"title":19,"path":20,"stem":21,"category":16,"description":22},"Installation","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F1.getting-started\u002F2.installation","Install and configure the Movk Nuxt module in a Nuxt 4 project.",{"title":24,"path":25,"stem":26,"category":16,"description":27},"Module Configuration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fconfiguration","en\u002Fdocs\u002F1.getting-started\u002F3.configuration","Configure component prefix, theme colors, fonts, API endpoints, auth strategy, response parsing rules and Toast notification behavior.",{"title":29,"path":30,"stem":31,"category":16,"description":32},"Vue \u002F Vite","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fvue","en\u002Fdocs\u002F1.getting-started\u002F4.vue","Use Movk standalone components, theming and composables in a plain Vue + Vite project without Nuxt.",{"title":34,"path":35,"stem":36,"category":16,"description":37},"Theme System","\u002Fen\u002Fdocs\u002Fgetting-started\u002Ftheme","en\u002Fdocs\u002F1.getting-started\u002F5.theme","Manage colors, radius, icon sets and dark mode through module defaults, the ThemePicker component and the useTheme composable, with build-time font configuration.",{"title":39,"path":40,"stem":41,"category":16,"description":42},"Migrate to v2","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigration","en\u002Fdocs\u002F1.getting-started\u002F6.migration","Breaking changes to handle when upgrading from v1 to v2.",{"title":44,"path":45,"stem":46,"category":16,"description":47},"AI Integration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fai","en\u002Fdocs\u002F1.getting-started\u002F7.ai","Help AI assistants understand Movk Nuxt through MCP, llms.txt and Skills.","i-lucide-square-play",{"title":50,"category":16,"description":16,"icon":51,"path":52,"stem":53,"children":54,"page":105},"Forms","i-lucide-square-pen","\u002Fen\u002Fdocs\u002Fauto-form","en\u002Fdocs\u002F2.auto-form",[55,60,65,70,75,80,85,90,95,100],{"title":56,"path":57,"stem":58,"category":16,"description":59},"Quickstart","\u002Fen\u002Fdocs\u002Fauto-form\u002Fquickstart","en\u002Fdocs\u002F2.auto-form\u002F1.quickstart","Learn the core design philosophy and basic usage of AutoForm.",{"title":61,"path":62,"stem":63,"category":16,"description":64},"Recipes","\u002Fen\u002Fdocs\u002Fauto-form\u002Frecipes","en\u002Fdocs\u002F2.auto-form\u002F10.recipes","Real-world AutoForm scenarios — login, grouped registration validation, multi-file upload and horizontal search form.",{"title":66,"path":67,"stem":68,"category":16,"description":69},"Field Types","\u002Fen\u002Fdocs\u002Fauto-form\u002Ffield-types","en\u002Fdocs\u002F2.auto-form\u002F2.field-types","Mapping of afz field types to controls and their configuration.",{"title":71,"path":72,"stem":73,"category":16,"description":74},"Objects and Arrays","\u002Fen\u002Fdocs\u002Fauto-form\u002Fobject-array","en\u002Fdocs\u002F2.auto-form\u002F3.object-array","Rendering and editing nested object and dynamic array fields.",{"title":76,"path":77,"stem":78,"category":16,"description":79},"Controls","\u002Fen\u002Fdocs\u002Fauto-form\u002Fcontrols","en\u002Fdocs\u002F2.auto-form\u002F4.controls","Map schema fields to Nuxt UI controls via the type field, or register and inject custom Vue components to extend form fields.",{"title":81,"path":82,"stem":83,"category":16,"description":84},"Metadata and Layout","\u002Fen\u002Fdocs\u002Fauto-form\u002Fmetadata-layout","en\u002Fdocs\u002F2.auto-form\u002F5.metadata-layout","Configure field properties through meta and arrange them with afz.layout.",{"title":86,"path":87,"stem":88,"category":16,"description":89},"Slots","\u002Fen\u002Fdocs\u002Fauto-form\u002Fslots","en\u002Fdocs\u002F2.auto-form\u002F6.slots","Customize AutoForm's header\u002Ffooter, field controls, before\u002Fafter field and layout content via named slots.",{"title":91,"path":92,"stem":93,"category":16,"description":94},"Reactivity and Submit","\u002Fen\u002Fdocs\u002Fauto-form\u002Freactive-submit","en\u002Fdocs\u002F2.auto-form\u002F7.reactive-submit","Reactive linkage between fields and form submission handling.",{"title":96,"path":97,"stem":98,"category":16,"description":99},"SearchForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fsearch-form","en\u002Fdocs\u002F2.auto-form\u002F8.search-form","A schema-driven, collapsible search form component.",{"title":101,"path":102,"stem":103,"category":16,"description":104},"useAutoForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fuse-auto-form","en\u002Fdocs\u002F2.auto-form\u002F9.use-auto-form","A composable for creating typed Zod schemas and managing AutoForm controls.",false,{"title":107,"path":108,"stem":109,"children":110,"category":16,"description":16,"icon":143},"DataTable","\u002Fen\u002Fdocs\u002Fdata-table","en\u002Fdocs\u002F3.data-table\u002F1.index",[111,113,118,123,128,133,138],{"title":15,"path":108,"stem":109,"category":16,"description":112},"A declarative data table based on TanStack Table, with column configuration, selection, expansion, tree data, pagination, load more and complete API reference.",{"title":114,"path":115,"stem":116,"category":16,"description":117},"Appearance","\u002Fen\u002Fdocs\u002Fdata-table\u002Fappearance","en\u002Fdocs\u002F3.data-table\u002F2.appearance","Component style overrides, pagination style overrides, stripe and borders, visual density, fit-content width, empty-cell placeholders and sticky header.",{"title":119,"path":120,"stem":121,"category":16,"description":122},"Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fcolumns","en\u002Fdocs\u002F3.data-table\u002F3.columns","Data column configuration — fixed columns, sorting, column pinning, column resize, text truncation, tooltips, visibility and functional per-column configuration.",{"title":124,"path":125,"stem":126,"category":16,"description":127},"Special Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fspecial-columns","en\u002Fdocs\u002F3.data-table\u002F4.special-columns","Configuration for selection, index, row-pinning and actions columns — including tree selection strategies, dynamic button props and confirmation dialogs.",{"title":129,"path":130,"stem":131,"category":16,"description":132},"Rows & Interaction","\u002Fen\u002Fdocs\u002Fdata-table\u002Frows","en\u002Fdocs\u002F3.data-table\u002F5.rows","Row selection, expandable detail slot, click behaviors, dynamic row class\u002Fstyle, hover, context menu and imperative control.",{"title":134,"path":135,"stem":136,"category":16,"description":137},"Tree Data","\u002Fen\u002Fdocs\u002Fdata-table\u002Ftree","en\u002Fdocs\u002F3.data-table\u002F6.tree","Enable tree-mode tables via childrenKey — configure expansion, cascade selection strategies, indentation and read selection results.",{"title":139,"path":140,"stem":141,"category":16,"description":142},"Pagination & Load More","\u002Fen\u002Fdocs\u002Fdata-table\u002Fpagination","en\u002Fdocs\u002F3.data-table\u002F7.pagination","Client-side auto pagination, server-side manual pagination with loading state, and bottom-trigger load-more for infinite scroll.","i-lucide-table",{"title":145,"path":146,"stem":147,"children":148,"category":16,"description":16,"icon":177},"API","\u002Fen\u002Fdocs\u002Fapi","en\u002Fdocs\u002F4.api\u002F1.index",[149,152,157,162,167,172],{"title":150,"path":146,"stem":147,"category":16,"description":151},"Overview","Nuxt data-fetching fundamentals and the core concepts and architecture of the Movk Nuxt API system.",{"title":153,"path":154,"stem":155,"category":16,"description":156},"$api","\u002Fen\u002Fdocs\u002Fapi\u002Fapi-plugin","en\u002Fdocs\u002F4.api\u002F2.api-plugin","The enhanced $fetch instance created by the api.factory plugin, supporting auth injection, data unwrapping, business code checking and multi-endpoint switching.",{"title":158,"path":159,"stem":160,"category":16,"description":161},"Hooks","\u002Fen\u002Fdocs\u002Fapi\u002Fhooks","en\u002Fdocs\u002F4.api\u002F3.hooks","Extend API system behavior via Nuxt runtime hooks — global request interception, error handling and custom 401 logic.",{"title":163,"path":164,"stem":165,"category":16,"description":166},"useApiFetch","\u002Fen\u002Fdocs\u002Fapi\u002Fuse-api-fetch","en\u002Fdocs\u002F4.api\u002F4.use-api-fetch","An API request composable built on Nuxt useFetch, providing automatic authentication, business status code checking and Toast notifications.",{"title":168,"path":169,"stem":170,"category":16,"description":171},"Upload and Download","\u002Fen\u002Fdocs\u002Fapi\u002Fupload-download","en\u002Fdocs\u002F4.api\u002F5.upload-download","File upload and download with progress tracking.",{"title":173,"path":174,"stem":175,"category":16,"description":176},"Streaming","\u002Fen\u002Fdocs\u002Fapi\u002Fstream","en\u002Fdocs\u002F4.api\u002F6.stream","SSE streaming requests and the AI SDK chat transport.","i-lucide-cloud",{"title":179,"category":16,"description":16,"icon":180,"path":181,"stem":182,"children":183,"page":105},"Components","i-lucide-box","\u002Fen\u002Fdocs\u002Fcomponents","en\u002Fdocs\u002F5.components",[184,190,196],{"title":185,"path":186,"stem":187,"category":188,"description":189},"DatePicker","\u002Fen\u002Fdocs\u002Fcomponents\u002Fdate-picker","en\u002Fdocs\u002F5.components\u002Fdate-picker","advanced","An internationalized date picker component.",{"title":191,"path":192,"stem":193,"category":194,"description":195},"MessageBox","\u002Fen\u002Fdocs\u002Fcomponents\u002Fmessage-box","en\u002Fdocs\u002F5.components\u002Fmessage-box","feedback","A modal message dialog offering both declarative and programmatic usage.",{"title":197,"path":198,"stem":199,"category":188,"description":200,"badge":201},"Tree","\u002Fen\u002Fdocs\u002Fcomponents\u002Ftree","en\u002Fdocs\u002F5.components\u002Ftree","A tree component built on Nuxt UI Tree, adding search, lazy loading, toolbar, checkboxes, and parent\u002Fchild strategy.","v1.4.2",{"data":203,"body":204},{},{"type":205,"children":206},"root",[207],{"type":208,"tag":209,"props":210,"children":211},"element","p",{},[212,215],{"type":213,"value":214},"text","Copyright © 2025 - 2026 YiXuan - ",{"type":208,"tag":216,"props":217,"children":220},"span",{"className":218},[219],"text-highlighted",[221],{"type":213,"value":222},"MIT License",{"id":224,"title":24,"body":225,"category":16,"description":27,"difficulty":16,"extension":2527,"index":105,"keywords":16,"links":16,"meta":2528,"navigation":16,"path":25,"requires":16,"seo":2529,"sitemap":2530,"stem":26,"__hash__":2531},"docs_en\u002Fen\u002Fdocs\u002F1.getting-started\u002F3.configuration.md",{"type":226,"value":227,"toc":2509},"minimark",[228,232,244,250,272,275,335,341,356,363,411,561,566,627,633,640,683,692,699,702,708,712,716,796,816,821,824,1026,1031,1075,1079,1085,1148,1315,1322,1441,1460,1470,1474,1580,1584,1587,1723,1737,1813,1817,1864,1868,1871,2040,2044,2073,2111,2123,2127,2130,2176,2253,2256,2302,2306,2321,2367,2393,2397,2400,2479,2502,2505],[229,230,15],"h2",{"id":231},"introduction",[209,233,234,235,239,240,243],{},"Movk Nuxt uses ",[236,237,238],"code",{},"movk"," as the configuration key in ",[236,241,242],{},"nuxt.config.ts",":",[229,245,247],{"id":246},"prefix",[236,248,249],{},"Prefix",[251,252,253,264],"ul",{},[254,255,256,260,261],"li",{},[257,258,259],"strong",{},"Type",": ",[236,262,263],{},"string",[254,265,266,260,269],{},[257,267,268],{},"Default",[236,270,271],{},"'M'",[209,273,274],{},"Component prefix, used to avoid naming conflicts with other component libraries.",[276,277,282],"pre",{"className":278,"code":279,"filename":242,"language":280,"meta":281,"style":281},"language-ts shiki shiki-themes github-light github-light github-dark","export default defineNuxtConfig({\n  movk: {\n    prefix: 'My' \u002F\u002F Components become MyAutoForm, MyDatePicker, etc.\n  }\n})\n","ts","",[236,283,284,303,309,323,329],{"__ignoreMap":281},[216,285,288,292,295,299],{"class":286,"line":287},"line",1,[216,289,291],{"class":290},"s8jYJ","export",[216,293,294],{"class":290}," default",[216,296,298],{"class":297},"snPdu"," defineNuxtConfig",[216,300,302],{"class":301},"sxrX7","({\n",[216,304,306],{"class":286,"line":305},2,[216,307,308],{"class":301},"  movk: {\n",[216,310,312,315,319],{"class":286,"line":311},3,[216,313,314],{"class":301},"    prefix: ",[216,316,318],{"class":317},"sIIMD","'My'",[216,320,322],{"class":321},"sCsY4"," \u002F\u002F Components become MyAutoForm, MyDatePicker, etc.\n",[216,324,326],{"class":286,"line":325},4,[216,327,328],{"class":301},"  }\n",[216,330,332],{"class":286,"line":331},5,[216,333,334],{"class":301},"})\n",[229,336,338],{"id":337},"theme",[236,339,340],{},"Theme",[209,342,343,344,347,348,351,352,355],{},"The theme module centrally manages colors, radius, icon sets and fonts. The first three provide options to the ",[236,345,346],{},"ThemePicker"," component and ",[236,349,350],{},"useTheme"," composable, while the font is injected at build time. All fields are configured under ",[236,353,354],{},"movk.theme",".",[357,358,359,360,362],"note",{"to":35},"Runtime capabilities of the theme system (dynamic switching, CSS export) are documented in the theme docs; for interactive tuning see the ",[236,361,346],{}," component.",[276,364,366],{"className":278,"code":365,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    theme: {\n      enabled: true\n    }\n  }\n})\n",[236,367,368,378,382,387,396,401,406],{"__ignoreMap":281},[216,369,370,372,374,376],{"class":286,"line":287},[216,371,291],{"class":290},[216,373,294],{"class":290},[216,375,298],{"class":297},[216,377,302],{"class":301},[216,379,380],{"class":286,"line":305},[216,381,308],{"class":301},[216,383,384],{"class":286,"line":311},[216,385,386],{"class":301},"    theme: {\n",[216,388,389,392],{"class":286,"line":325},[216,390,391],{"class":301},"      enabled: ",[216,393,395],{"class":394},"sBjJW","true\n",[216,397,398],{"class":286,"line":331},[216,399,400],{"class":301},"    }\n",[216,402,404],{"class":286,"line":403},6,[216,405,328],{"class":301},[216,407,409],{"class":286,"line":408},7,[216,410,334],{"class":301},[412,413,414,434,450,460,472,530,545,555],"field-group",{},[415,416,419,420,423,424,426,427,430,431,433],"field",{"name":417,"type":418},"enabled","boolean","Whether to enable the theme module (",[236,421,422],{},"appConfig"," defaults, theme plugin, ",[236,425,346],{}," component registration). Defaults to ",[236,428,429],{},"true",". When disabled, ",[236,432,346],{}," is no longer registered.",[415,435,438,439,442,443,446,447,355],{"name":436,"type":437},"colors","string[]","List of color aliases available to components, passed through to ",[236,440,441],{},"@nuxt\u002Fui","'s ",[236,444,445],{},"theme.colors",". Defaults to ",[236,448,449],{},"['primary', 'secondary', 'success', 'info', 'warning', 'error']",[415,451,454,455,442,457,355],{"name":452,"type":453},"defaultVariants","object","Component default variants, passed through to ",[236,456,441],{},[236,458,459],{},"theme.defaultVariants",[415,461,462,463,442,465,468,469,355],{"name":246,"type":263},"Tailwind CSS utility class prefix, passed through to ",[236,464,441],{},[236,466,467],{},"theme.prefix",". For example ",[236,470,471],{},"'tw'",[415,473,476,505],{"name":474,"type":475},"font","string | ThemeFontOption",[209,477,478,479,482,483,486,487,490,491,494,495,498,499,501,502,355],{},"Global font. For built-in fonts the name is enough (",[236,480,481],{},"'Alibaba PuHuiTi'",", ",[236,484,485],{},"'OPPO Sans'",") and the module injects the stylesheet, a ",[236,488,489],{},"preconnect"," and a ",[236,492,493],{},"--font-sans"," carrying the Chinese fallback stack at build time; for self-hosted fonts use the ",[236,496,497],{},"{ name, href }"," form to supply the stylesheet URL. When omitted, ",[236,500,493],{}," is not injected and the font is controlled entirely by your project's CSS ",[236,503,504],{},"@theme",[506,507,508],"collapsible",{},[412,509,510,522],{},[415,511,513,514,517,518,521],{"name":512,"type":263,":required":429},"name","Font name, which must match the ",[236,515,516],{},"font-family"," declared by ",[236,519,520],{},"@font-face"," in the stylesheet character for character.",[415,523,525,526,529],{"name":524,"type":263},"href","URL of the font's entry CSS. For example ",[236,527,528],{},"'\u002Ffonts\u002Fmy-font.css'",". Optional for built-in fonts. A font that is neither built in nor given this field triggers no request at all.",[415,531,534,535,538,539,541,542,355],{"name":532,"type":533},"radius","number","Default radius (in rem). When omitted, ",[236,536,537],{},"--ui-radius"," is not injected and the ",[236,540,441],{}," default or your project CSS applies. For example ",[236,543,544],{},"0.5",[415,546,549,551,552,355],{"name":547,"type":548},"radiuses","number[]",[236,550,346],{}," radius options (in rem). Defaults to ",[236,553,554],{},"[0, 0.125, 0.25, 0.375, 0.5]",[415,556,558,560],{"name":557,"type":437},"neutralColors",[236,559,346],{}," neutral color options.",[562,563,565],"h3",{"id":564},"custom-font","Custom Font",[276,567,569],{"className":278,"code":568,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    theme: {\n      \u002F\u002F Built-in fonts only need the name\n      font: 'Alibaba PuHuiTi'\n      \u002F\u002F Self-hosted fonts supply the entry CSS URL\n      \u002F\u002F font: { name: 'My Font', href: '\u002Ffonts\u002Fmy-font.css' }\n    }\n  }\n})\n",[236,570,571,581,585,589,594,602,607,612,617,622],{"__ignoreMap":281},[216,572,573,575,577,579],{"class":286,"line":287},[216,574,291],{"class":290},[216,576,294],{"class":290},[216,578,298],{"class":297},[216,580,302],{"class":301},[216,582,583],{"class":286,"line":305},[216,584,308],{"class":301},[216,586,587],{"class":286,"line":311},[216,588,386],{"class":301},[216,590,591],{"class":286,"line":325},[216,592,593],{"class":321},"      \u002F\u002F Built-in fonts only need the name\n",[216,595,596,599],{"class":286,"line":331},[216,597,598],{"class":301},"      font: ",[216,600,601],{"class":317},"'Alibaba PuHuiTi'\n",[216,603,604],{"class":286,"line":403},[216,605,606],{"class":321},"      \u002F\u002F Self-hosted fonts supply the entry CSS URL\n",[216,608,609],{"class":286,"line":408},[216,610,611],{"class":321},"      \u002F\u002F font: { name: 'My Font', href: '\u002Ffonts\u002Fmy-font.css' }\n",[216,613,615],{"class":286,"line":614},8,[216,616,400],{"class":301},[216,618,620],{"class":286,"line":619},9,[216,621,328],{"class":301},[216,623,625],{"class":286,"line":624},10,[216,626,334],{"class":301},[229,628,630],{"id":629},"icon",[236,631,632],{},"Icon",[209,634,635,636,639],{},"Controls whether the module's own icons enter the ",[236,637,638],{},"@nuxt\u002Ficon"," build-time bundle.",[276,641,643],{"className":278,"code":642,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    icon: {\n      clientBundle: true\n    }\n  }\n})\n",[236,644,645,655,659,664,671,675,679],{"__ignoreMap":281},[216,646,647,649,651,653],{"class":286,"line":287},[216,648,291],{"class":290},[216,650,294],{"class":290},[216,652,298],{"class":297},[216,654,302],{"class":301},[216,656,657],{"class":286,"line":305},[216,658,308],{"class":301},[216,660,661],{"class":286,"line":311},[216,662,663],{"class":301},"    icon: {\n",[216,665,666,669],{"class":286,"line":325},[216,667,668],{"class":301},"      clientBundle: ",[216,670,395],{"class":394},[216,672,673],{"class":286,"line":331},[216,674,400],{"class":301},[216,676,677],{"class":286,"line":403},[216,678,328],{"class":301},[216,680,681],{"class":286,"line":408},[216,682,334],{"class":301},[412,684,685],{},[415,686,688,689,691],{"name":687,"type":418},"clientBundle","Whether to inject the icons used by movk components and the built-in icon sets into the build-time bundle. Defaults to ",[236,690,429],{},". When disabled, those icons are fetched on demand at runtime.",[357,693,694,695,698],{"to":35},"See Theme · Icon Sets for switching icon sets and installing the ",[236,696,697],{},"@iconify-json\u002F*"," packages.",[229,700,145],{"id":701},"api",[209,703,704,705,707],{},"The API system provides complete request wrapping and auth management, configured via the ",[236,706,701],{}," option.",[357,709,711],{"to":146,"icon":710},"i-lucide-info","See the API docs for full usage of the API system.",[562,713,715],{"id":714},"basic-configuration","Basic Configuration",[276,717,719],{"className":278,"code":718,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      \u002F\u002F Whether to enable API functionality\n      enabled: true,\n      \u002F\u002F Default endpoint name\n      defaultEndpoint: 'default',\n      \u002F\u002F Whether to enable debug mode\n      debug: false\n    }\n  }\n})\n",[236,720,721,731,735,740,745,754,759,769,774,782,786,791],{"__ignoreMap":281},[216,722,723,725,727,729],{"class":286,"line":287},[216,724,291],{"class":290},[216,726,294],{"class":290},[216,728,298],{"class":297},[216,730,302],{"class":301},[216,732,733],{"class":286,"line":305},[216,734,308],{"class":301},[216,736,737],{"class":286,"line":311},[216,738,739],{"class":301},"    api: {\n",[216,741,742],{"class":286,"line":325},[216,743,744],{"class":321},"      \u002F\u002F Whether to enable API functionality\n",[216,746,747,749,751],{"class":286,"line":331},[216,748,391],{"class":301},[216,750,429],{"class":394},[216,752,753],{"class":301},",\n",[216,755,756],{"class":286,"line":403},[216,757,758],{"class":321},"      \u002F\u002F Default endpoint name\n",[216,760,761,764,767],{"class":286,"line":408},[216,762,763],{"class":301},"      defaultEndpoint: ",[216,765,766],{"class":317},"'default'",[216,768,753],{"class":301},[216,770,771],{"class":286,"line":614},[216,772,773],{"class":321},"      \u002F\u002F Whether to enable debug mode\n",[216,775,776,779],{"class":286,"line":619},[216,777,778],{"class":301},"      debug: ",[216,780,781],{"class":394},"false\n",[216,783,784],{"class":286,"line":624},[216,785,400],{"class":301},[216,787,789],{"class":286,"line":788},11,[216,790,328],{"class":301},[216,792,794],{"class":286,"line":793},12,[216,795,334],{"class":301},[412,797,798,803,809],{},[415,799,800,801,355],{"name":417,"type":418},"Whether to enable API functionality. Defaults to ",[236,802,429],{},[415,804,806,807,355],{"name":805,"type":263},"defaultEndpoint","Default endpoint name. Defaults to ",[236,808,766],{},[415,810,812,813,355],{"name":811,"type":418},"debug","Whether to enable debug mode; when enabled, request logs are printed to the console. Defaults to ",[236,814,815],{},"false",[562,817,819],{"id":818},"endpoints",[236,820,818],{},[209,822,823],{},"Supports configuring multiple API endpoints, each with its own independent configuration:",[276,825,827],{"className":278,"code":826,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      endpoints: {\n        \u002F\u002F Default endpoint\n        default: {\n          baseURL: '\u002Fapi'\n        },\n        \u002F\u002F Admin endpoint\n        admin: {\n          baseURL: '\u002Fadmin-api',\n          auth: {\n            tokenType: 'Bearer'\n          }\n        },\n        \u002F\u002F Third-party API\n        external: {\n          baseURL: 'https:\u002F\u002Fapi.example.com',\n          \u002F\u002F Injected on the server only\n          headers: {\n            'X-Secret-Key': process.env.EXTERNAL_SECRET_KEY\n          },\n          \u002F\u002F Injected on both server and client\n          publicHeaders: {\n            'X-Api-Version': '2'\n          }\n        }\n      }\n    }\n  }\n})\n",[236,828,829,839,843,847,852,857,862,870,875,880,885,894,899,908,914,919,925,931,941,947,953,965,971,977,983,994,999,1005,1011,1016,1021],{"__ignoreMap":281},[216,830,831,833,835,837],{"class":286,"line":287},[216,832,291],{"class":290},[216,834,294],{"class":290},[216,836,298],{"class":297},[216,838,302],{"class":301},[216,840,841],{"class":286,"line":305},[216,842,308],{"class":301},[216,844,845],{"class":286,"line":311},[216,846,739],{"class":301},[216,848,849],{"class":286,"line":325},[216,850,851],{"class":301},"      endpoints: {\n",[216,853,854],{"class":286,"line":331},[216,855,856],{"class":321},"        \u002F\u002F Default endpoint\n",[216,858,859],{"class":286,"line":403},[216,860,861],{"class":301},"        default: {\n",[216,863,864,867],{"class":286,"line":408},[216,865,866],{"class":301},"          baseURL: ",[216,868,869],{"class":317},"'\u002Fapi'\n",[216,871,872],{"class":286,"line":614},[216,873,874],{"class":301},"        },\n",[216,876,877],{"class":286,"line":619},[216,878,879],{"class":321},"        \u002F\u002F Admin endpoint\n",[216,881,882],{"class":286,"line":624},[216,883,884],{"class":301},"        admin: {\n",[216,886,887,889,892],{"class":286,"line":788},[216,888,866],{"class":301},[216,890,891],{"class":317},"'\u002Fadmin-api'",[216,893,753],{"class":301},[216,895,896],{"class":286,"line":793},[216,897,898],{"class":301},"          auth: {\n",[216,900,902,905],{"class":286,"line":901},13,[216,903,904],{"class":301},"            tokenType: ",[216,906,907],{"class":317},"'Bearer'\n",[216,909,911],{"class":286,"line":910},14,[216,912,913],{"class":301},"          }\n",[216,915,917],{"class":286,"line":916},15,[216,918,874],{"class":301},[216,920,922],{"class":286,"line":921},16,[216,923,924],{"class":321},"        \u002F\u002F Third-party API\n",[216,926,928],{"class":286,"line":927},17,[216,929,930],{"class":301},"        external: {\n",[216,932,934,936,939],{"class":286,"line":933},18,[216,935,866],{"class":301},[216,937,938],{"class":317},"'https:\u002F\u002Fapi.example.com'",[216,940,753],{"class":301},[216,942,944],{"class":286,"line":943},19,[216,945,946],{"class":321},"          \u002F\u002F Injected on the server only\n",[216,948,950],{"class":286,"line":949},20,[216,951,952],{"class":301},"          headers: {\n",[216,954,956,959,962],{"class":286,"line":955},21,[216,957,958],{"class":317},"            'X-Secret-Key'",[216,960,961],{"class":301},": process.env.",[216,963,964],{"class":394},"EXTERNAL_SECRET_KEY\n",[216,966,968],{"class":286,"line":967},22,[216,969,970],{"class":301},"          },\n",[216,972,974],{"class":286,"line":973},23,[216,975,976],{"class":321},"          \u002F\u002F Injected on both server and client\n",[216,978,980],{"class":286,"line":979},24,[216,981,982],{"class":301},"          publicHeaders: {\n",[216,984,986,989,991],{"class":286,"line":985},25,[216,987,988],{"class":317},"            'X-Api-Version'",[216,990,260],{"class":301},[216,992,993],{"class":317},"'2'\n",[216,995,997],{"class":286,"line":996},26,[216,998,913],{"class":301},[216,1000,1002],{"class":286,"line":1001},27,[216,1003,1004],{"class":301},"        }\n",[216,1006,1008],{"class":286,"line":1007},28,[216,1009,1010],{"class":301},"      }\n",[216,1012,1014],{"class":286,"line":1013},29,[216,1015,400],{"class":301},[216,1017,1019],{"class":286,"line":1018},30,[216,1020,328],{"class":301},[216,1022,1024],{"class":286,"line":1023},31,[216,1025,334],{"class":301},[1027,1028,1030],"h4",{"id":1029},"endpoint-options","Endpoint Options",[412,1032,1033,1037,1041,1049,1060,1065,1070],{},[415,1034,1036],{"name":1035,"type":263,":required":429},"baseURL","Base URL of the endpoint.",[415,1038,1040],{"name":1039,"type":263},"alias","Endpoint alias.",[415,1042,1045,1046],{"name":1043,"type":1044},"headers","Record\u003Cstring, string>","Default request headers for this endpoint. ",[257,1047,1048],{},"Server-side only; not exposed to the client.",[415,1050,1052,1053,1056,1057,1059],{"name":1051,"type":1044},"publicHeaders","Public request headers for this endpoint. ",[257,1054,1055],{},"Stored in the public runtimeConfig and injected on both server and client."," Keys of the same name are overridden by ",[236,1058,1043],{},". Use for non-secret constant headers only.",[415,1061,1064],{"name":1062,"type":1063},"auth","Partial\u003CApiAuthConfig>","Auth configuration for this endpoint, merged with the global config.",[415,1066,1069],{"name":1067,"type":1068},"toast","Partial\u003CApiToastConfig>","Toast configuration for this endpoint, merged with the global config.",[415,1071,1074],{"name":1072,"type":1073},"response","Partial\u003CApiResponseConfig>","Response configuration for this endpoint, merged with the global config.",[562,1076,1077],{"id":1062},[236,1078,1062],{},[209,1080,1081,1082,243],{},"Configure automatic auth behavior, integrated with ",[236,1083,1084],{},"nuxt-auth-utils",[357,1086,1087,1117,1131],{},[209,1088,1089,1090,1092,1093,1096,1097,1099,1100,1096,1103,1106,1107,1110,1111,1113,1114,355],{},"The module automatically registers ",[236,1091,1084],{}," when ",[236,1094,1095],{},"auth.enabled"," is ",[236,1098,429],{}," and ",[236,1101,1102],{},"tokenSource",[236,1104,1105],{},"'session'",". To use ",[236,1108,1109],{},"useUserSession"," on its own, add ",[236,1112,1084],{}," to ",[236,1115,1116],{},"modules",[209,1118,1119,1120,1122,1123,1126,1127,1130],{},"With ",[236,1121,1084],{}," v0.6, set ",[236,1124,1125],{},"NUXT_APP_SECRET"," to a value of at least 32 characters in production. Generate one with ",[236,1128,1129],{},"openssl rand -base64 32",". In development, Nuxt generates a secret if the variable is unset.",[209,1132,1133,1134,1099,1137,1140,1141],{},"When upgrading from v0.5, remove ",[236,1135,1136],{},"NUXT_SESSION_PASSWORD",[236,1138,1139],{},"runtimeConfig.session.password",". Signed-in users will need to sign in again once after the upgrade. ",[1142,1143,1147],"a",{"href":1144,"rel":1145},"https:\u002F\u002Fnuxt.com\u002Fmodules\u002Fauth-utils#migrate-from-v05",[1146],"nofollow","Migration guide",[276,1149,1151],{"className":278,"code":1150,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      auth: {\n        \u002F\u002F Enable auth\n        enabled: true,\n        \u002F\u002F Token source\n        tokenSource: 'session',\n        \u002F\u002F Path to token in session\n        sessionTokenPath: 'user.accessToken',\n        \u002F\u002F Token type\n        tokenType: 'Bearer',\n        \u002F\u002F Header name\n        headerName: 'Authorization',\n        \u002F\u002F 401 unauthorized handling config\n        unauthorized: {\n          \u002F\u002F Redirect to login page on 401\n          redirect: true,\n          loginPath: '\u002Flogin',\n          \u002F\u002F Clear session on 401\n          clearSession: true\n        }\n      }\n    }\n  }\n})\n",[236,1152,1153,1163,1167,1171,1176,1181,1190,1195,1204,1209,1219,1224,1234,1239,1249,1254,1259,1264,1273,1283,1288,1295,1299,1303,1307,1311],{"__ignoreMap":281},[216,1154,1155,1157,1159,1161],{"class":286,"line":287},[216,1156,291],{"class":290},[216,1158,294],{"class":290},[216,1160,298],{"class":297},[216,1162,302],{"class":301},[216,1164,1165],{"class":286,"line":305},[216,1166,308],{"class":301},[216,1168,1169],{"class":286,"line":311},[216,1170,739],{"class":301},[216,1172,1173],{"class":286,"line":325},[216,1174,1175],{"class":301},"      auth: {\n",[216,1177,1178],{"class":286,"line":331},[216,1179,1180],{"class":321},"        \u002F\u002F Enable auth\n",[216,1182,1183,1186,1188],{"class":286,"line":403},[216,1184,1185],{"class":301},"        enabled: ",[216,1187,429],{"class":394},[216,1189,753],{"class":301},[216,1191,1192],{"class":286,"line":408},[216,1193,1194],{"class":321},"        \u002F\u002F Token source\n",[216,1196,1197,1200,1202],{"class":286,"line":614},[216,1198,1199],{"class":301},"        tokenSource: ",[216,1201,1105],{"class":317},[216,1203,753],{"class":301},[216,1205,1206],{"class":286,"line":619},[216,1207,1208],{"class":321},"        \u002F\u002F Path to token in session\n",[216,1210,1211,1214,1217],{"class":286,"line":624},[216,1212,1213],{"class":301},"        sessionTokenPath: ",[216,1215,1216],{"class":317},"'user.accessToken'",[216,1218,753],{"class":301},[216,1220,1221],{"class":286,"line":788},[216,1222,1223],{"class":321},"        \u002F\u002F Token type\n",[216,1225,1226,1229,1232],{"class":286,"line":793},[216,1227,1228],{"class":301},"        tokenType: ",[216,1230,1231],{"class":317},"'Bearer'",[216,1233,753],{"class":301},[216,1235,1236],{"class":286,"line":901},[216,1237,1238],{"class":321},"        \u002F\u002F Header name\n",[216,1240,1241,1244,1247],{"class":286,"line":910},[216,1242,1243],{"class":301},"        headerName: ",[216,1245,1246],{"class":317},"'Authorization'",[216,1248,753],{"class":301},[216,1250,1251],{"class":286,"line":916},[216,1252,1253],{"class":321},"        \u002F\u002F 401 unauthorized handling config\n",[216,1255,1256],{"class":286,"line":921},[216,1257,1258],{"class":301},"        unauthorized: {\n",[216,1260,1261],{"class":286,"line":927},[216,1262,1263],{"class":321},"          \u002F\u002F Redirect to login page on 401\n",[216,1265,1266,1269,1271],{"class":286,"line":933},[216,1267,1268],{"class":301},"          redirect: ",[216,1270,429],{"class":394},[216,1272,753],{"class":301},[216,1274,1275,1278,1281],{"class":286,"line":943},[216,1276,1277],{"class":301},"          loginPath: ",[216,1279,1280],{"class":317},"'\u002Flogin'",[216,1282,753],{"class":301},[216,1284,1285],{"class":286,"line":949},[216,1286,1287],{"class":321},"          \u002F\u002F Clear session on 401\n",[216,1289,1290,1293],{"class":286,"line":955},[216,1291,1292],{"class":301},"          clearSession: ",[216,1294,395],{"class":394},[216,1296,1297],{"class":286,"line":967},[216,1298,1004],{"class":301},[216,1300,1301],{"class":286,"line":973},[216,1302,1010],{"class":301},[216,1304,1305],{"class":286,"line":979},[216,1306,400],{"class":301},[216,1308,1309],{"class":286,"line":985},[216,1310,328],{"class":301},[216,1312,1313],{"class":286,"line":996},[216,1314,334],{"class":301},[209,1316,1317,1318,1321],{},"When calling a third-party API directly from the browser, put the credential in ",[236,1319,1320],{},"runtimeConfig.public"," and point at it:",[276,1323,1325],{"className":278,"code":1324,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  runtimeConfig: {\n    public: {\n      llmApiKey: ''\n    }\n  },\n  movk: {\n    api: {\n      auth: {\n        enabled: true,\n        tokenSource: 'public-runtime-config',\n        tokenPath: 'llmApiKey',\n        tokenType: 'Bearer',\n        unauthorized: {\n          redirect: false\n        }\n      }\n    }\n  }\n})\n",[236,1326,1327,1337,1342,1347,1355,1359,1364,1368,1372,1376,1384,1393,1403,1411,1415,1421,1425,1429,1433,1437],{"__ignoreMap":281},[216,1328,1329,1331,1333,1335],{"class":286,"line":287},[216,1330,291],{"class":290},[216,1332,294],{"class":290},[216,1334,298],{"class":297},[216,1336,302],{"class":301},[216,1338,1339],{"class":286,"line":305},[216,1340,1341],{"class":301},"  runtimeConfig: {\n",[216,1343,1344],{"class":286,"line":311},[216,1345,1346],{"class":301},"    public: {\n",[216,1348,1349,1352],{"class":286,"line":325},[216,1350,1351],{"class":301},"      llmApiKey: ",[216,1353,1354],{"class":317},"''\n",[216,1356,1357],{"class":286,"line":331},[216,1358,400],{"class":301},[216,1360,1361],{"class":286,"line":403},[216,1362,1363],{"class":301},"  },\n",[216,1365,1366],{"class":286,"line":408},[216,1367,308],{"class":301},[216,1369,1370],{"class":286,"line":614},[216,1371,739],{"class":301},[216,1373,1374],{"class":286,"line":619},[216,1375,1175],{"class":301},[216,1377,1378,1380,1382],{"class":286,"line":624},[216,1379,1185],{"class":301},[216,1381,429],{"class":394},[216,1383,753],{"class":301},[216,1385,1386,1388,1391],{"class":286,"line":788},[216,1387,1199],{"class":301},[216,1389,1390],{"class":317},"'public-runtime-config'",[216,1392,753],{"class":301},[216,1394,1395,1398,1401],{"class":286,"line":793},[216,1396,1397],{"class":301},"        tokenPath: ",[216,1399,1400],{"class":317},"'llmApiKey'",[216,1402,753],{"class":301},[216,1404,1405,1407,1409],{"class":286,"line":901},[216,1406,1228],{"class":301},[216,1408,1231],{"class":317},[216,1410,753],{"class":301},[216,1412,1413],{"class":286,"line":910},[216,1414,1258],{"class":301},[216,1416,1417,1419],{"class":286,"line":916},[216,1418,1268],{"class":301},[216,1420,781],{"class":394},[216,1422,1423],{"class":286,"line":921},[216,1424,1004],{"class":301},[216,1426,1427],{"class":286,"line":927},[216,1428,1010],{"class":301},[216,1430,1431],{"class":286,"line":933},[216,1432,400],{"class":301},[216,1434,1435],{"class":286,"line":943},[216,1436,328],{"class":301},[216,1438,1439],{"class":286,"line":949},[216,1440,334],{"class":301},[276,1442,1447],{"className":1443,"code":1444,"filename":1445,"language":1446,"meta":281,"style":281},"language-bash shiki shiki-themes github-light github-light github-dark","NUXT_PUBLIC_LLM_API_KEY=your-api-key\n",".env","bash",[236,1448,1449],{"__ignoreMap":281},[216,1450,1451,1454,1457],{"class":286,"line":287},[216,1452,1453],{"class":301},"NUXT_PUBLIC_LLM_API_KEY",[216,1455,1456],{"class":290},"=",[216,1458,1459],{"class":317},"your-api-key\n",[1461,1462,1463,1464,1099,1467,1469],"warning",{},"Values from ",[236,1465,1466],{},"public-runtime-config",[236,1468,1051],{}," are shipped to the browser along with the page, and any visitor can read them. Use them only when the credential is designed to be public, or its scope is narrow enough to accept the exposure. Account-level keys belong behind a server-side proxy.",[1027,1471,1473],{"id":1472},"auth-options","Auth Options",[412,1475,1476,1481,1496,1515,1529,1536,1545,1551],{},[415,1477,1478,1479,355],{"name":417,"type":418},"Whether to enable auth. Defaults to ",[236,1480,815],{},[415,1482,1484,1485,1487,1488,1490,1491,1493,1494,355],{"name":1102,"type":1483},"'session' | 'public-runtime-config'","Token source. ",[236,1486,1105],{}," retrieves it from the nuxt-auth-utils session; ",[236,1489,1390],{}," retrieves it from ",[236,1492,1320],{},", for credentials that are meant to be exposed in the browser. Defaults to ",[236,1495,1105],{},[415,1497,1499,1500,1503,1504,482,1507,1503,1510,446,1513,355],{"name":1498,"type":263},"sessionTokenPath","Path to the token in the session. For example ",[236,1501,1502],{},"'token'"," maps to ",[236,1505,1506],{},"session.token",[236,1508,1509],{},"'user.token'",[236,1511,1512],{},"session.user.token",[236,1514,1502],{},[415,1516,1518,1519,1521,1522,1096,1524,446,1526,355],{"name":1517,"type":263},"tokenPath","Path to the token in ",[236,1520,1320],{},", dot-notation supported. Only applies when ",[236,1523,1102],{},[236,1525,1390],{},[236,1527,1528],{},"'apiToken'",[415,1530,1533,1534,355],{"name":1531,"type":1532},"tokenType","'Bearer' | 'Basic' | 'Custom'","Token type. Defaults to ",[236,1535,1231],{},[415,1537,1539,1540,1096,1542,355],{"name":1538,"type":263},"customTokenType","Custom token type value, used when ",[236,1541,1531],{},[236,1543,1544],{},"'Custom'",[415,1546,1548,1549,355],{"name":1547,"type":263},"headerName","Header name. Defaults to ",[236,1550,1246],{},[415,1552,1555,1558],{"name":1553,"type":1554},"unauthorized","ApiUnauthorizedConfig",[209,1556,1557],{},"Configuration for handling 401 unauthorized errors.",[506,1559,1560],{},[412,1561,1562,1568,1574],{},[415,1563,1565,1566,355],{"name":1564,"type":418},"redirect","Whether to automatically redirect to the login page on a 401 error. Defaults to ",[236,1567,429],{},[415,1569,1571,1572,355],{"name":1570,"type":263},"loginPath","Login page path. Defaults to ",[236,1573,1280],{},[415,1575,1577,1578,355],{"name":1576,"type":418},"clearSession","Whether to automatically clear the session on a 401 error. Defaults to ",[236,1579,429],{},[562,1581,1582],{"id":1072},[236,1583,1072],{},[209,1585,1586],{},"Configure API response parsing rules, including business status code determination, data unwrapping fields and message extraction:",[276,1588,1590],{"className":278,"code":1589,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      response: {\n        \u002F\u002F Successful status code list\n        successCodes: [200, 0],\n        \u002F\u002F Status code field name\n        codeKey: 'code',\n        \u002F\u002F Message field name\n        messageKey: 'message',\n        \u002F\u002F Data field name\n        dataKey: 'data',\n        \u002F\u002F Whether to validate the business status code\n        businessCheck: true,\n        \u002F\u002F Whether to unwrap by dataKey\n        unwrap: true\n      }\n    }\n  }\n})\n",[236,1591,1592,1602,1606,1610,1615,1620,1636,1641,1651,1656,1666,1671,1681,1686,1695,1700,1707,1711,1715,1719],{"__ignoreMap":281},[216,1593,1594,1596,1598,1600],{"class":286,"line":287},[216,1595,291],{"class":290},[216,1597,294],{"class":290},[216,1599,298],{"class":297},[216,1601,302],{"class":301},[216,1603,1604],{"class":286,"line":305},[216,1605,308],{"class":301},[216,1607,1608],{"class":286,"line":311},[216,1609,739],{"class":301},[216,1611,1612],{"class":286,"line":325},[216,1613,1614],{"class":301},"      response: {\n",[216,1616,1617],{"class":286,"line":331},[216,1618,1619],{"class":321},"        \u002F\u002F Successful status code list\n",[216,1621,1622,1625,1628,1630,1633],{"class":286,"line":403},[216,1623,1624],{"class":301},"        successCodes: [",[216,1626,1627],{"class":394},"200",[216,1629,482],{"class":301},[216,1631,1632],{"class":394},"0",[216,1634,1635],{"class":301},"],\n",[216,1637,1638],{"class":286,"line":408},[216,1639,1640],{"class":321},"        \u002F\u002F Status code field name\n",[216,1642,1643,1646,1649],{"class":286,"line":614},[216,1644,1645],{"class":301},"        codeKey: ",[216,1647,1648],{"class":317},"'code'",[216,1650,753],{"class":301},[216,1652,1653],{"class":286,"line":619},[216,1654,1655],{"class":321},"        \u002F\u002F Message field name\n",[216,1657,1658,1661,1664],{"class":286,"line":624},[216,1659,1660],{"class":301},"        messageKey: ",[216,1662,1663],{"class":317},"'message'",[216,1665,753],{"class":301},[216,1667,1668],{"class":286,"line":788},[216,1669,1670],{"class":321},"        \u002F\u002F Data field name\n",[216,1672,1673,1676,1679],{"class":286,"line":793},[216,1674,1675],{"class":301},"        dataKey: ",[216,1677,1678],{"class":317},"'data'",[216,1680,753],{"class":301},[216,1682,1683],{"class":286,"line":901},[216,1684,1685],{"class":321},"        \u002F\u002F Whether to validate the business status code\n",[216,1687,1688,1691,1693],{"class":286,"line":910},[216,1689,1690],{"class":301},"        businessCheck: ",[216,1692,429],{"class":394},[216,1694,753],{"class":301},[216,1696,1697],{"class":286,"line":916},[216,1698,1699],{"class":321},"        \u002F\u002F Whether to unwrap by dataKey\n",[216,1701,1702,1705],{"class":286,"line":921},[216,1703,1704],{"class":301},"        unwrap: ",[216,1706,395],{"class":394},[216,1708,1709],{"class":286,"line":927},[216,1710,1010],{"class":301},[216,1712,1713],{"class":286,"line":933},[216,1714,400],{"class":301},[216,1716,1717],{"class":286,"line":943},[216,1718,328],{"class":301},[216,1720,1721],{"class":286,"line":949},[216,1722,334],{"class":301},[209,1724,1725,1726,1728,1729,1732,1733,1736],{},"An endpoint-level ",[236,1727,1072],{}," overrides the global one. Endpoints returning a bare array or object turn off checking and unwrapping; explicit per-request ",[236,1730,1731],{},"businessCheck"," \u002F ",[236,1734,1735],{},"unwrap"," values can still override:",[276,1738,1740],{"className":278,"code":1739,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      endpoints: {\n        sensor: {\n          baseURL: 'https:\u002F\u002Fsensor.example.com',\n          response: { businessCheck: false, unwrap: false }\n        }\n      }\n    }\n  }\n})\n",[236,1741,1742,1752,1756,1760,1764,1769,1778,1793,1797,1801,1805,1809],{"__ignoreMap":281},[216,1743,1744,1746,1748,1750],{"class":286,"line":287},[216,1745,291],{"class":290},[216,1747,294],{"class":290},[216,1749,298],{"class":297},[216,1751,302],{"class":301},[216,1753,1754],{"class":286,"line":305},[216,1755,308],{"class":301},[216,1757,1758],{"class":286,"line":311},[216,1759,739],{"class":301},[216,1761,1762],{"class":286,"line":325},[216,1763,851],{"class":301},[216,1765,1766],{"class":286,"line":331},[216,1767,1768],{"class":301},"        sensor: {\n",[216,1770,1771,1773,1776],{"class":286,"line":403},[216,1772,866],{"class":301},[216,1774,1775],{"class":317},"'https:\u002F\u002Fsensor.example.com'",[216,1777,753],{"class":301},[216,1779,1780,1783,1785,1788,1790],{"class":286,"line":408},[216,1781,1782],{"class":301},"          response: { businessCheck: ",[216,1784,815],{"class":394},[216,1786,1787],{"class":301},", unwrap: ",[216,1789,815],{"class":394},[216,1791,1792],{"class":301}," }\n",[216,1794,1795],{"class":286,"line":614},[216,1796,1004],{"class":301},[216,1798,1799],{"class":286,"line":619},[216,1800,1010],{"class":301},[216,1802,1803],{"class":286,"line":624},[216,1804,400],{"class":301},[216,1806,1807],{"class":286,"line":788},[216,1808,328],{"class":301},[216,1810,1811],{"class":286,"line":793},[216,1812,334],{"class":301},[1027,1814,1816],{"id":1815},"response-configuration-options","Response Configuration Options",[412,1818,1819,1830,1836,1842,1848,1856],{},[415,1820,1823,1824,1826,1827,355],{"name":1821,"type":1822},"successCodes","(number | string)[]","Successful status code list; a ",[236,1825,236],{}," value in the response is considered successful if it is in this list. Defaults to ",[236,1828,1829],{},"[200, 0]",[415,1831,1833,1834,355],{"name":1832,"type":263},"codeKey","Field name for the status code in the response. Defaults to ",[236,1835,1648],{},[415,1837,1839,1840,355],{"name":1838,"type":263},"messageKey","Field name for the message in the response. Defaults to ",[236,1841,1663],{},[415,1843,1845,1846,355],{"name":1844,"type":263},"dataKey","Field name for the data in the response. Defaults to ",[236,1847,1678],{},[415,1849,1850,1851,1853,1854,355],{"name":1731,"type":418},"Whether to validate the business status code against ",[236,1852,1821],{},"; when off, any 2xx response is a success. Defaults to ",[236,1855,429],{},[415,1857,1858,1859,1861,1862,355],{"name":1735,"type":418},"Whether to unwrap business data by ",[236,1860,1844],{},"; when off, callers receive the raw response body. Defaults to ",[236,1863,429],{},[562,1865,1866],{"id":1067},[236,1867,1067],{},[209,1869,1870],{},"Configure global Toast notification behavior:",[276,1872,1874],{"className":278,"code":1873,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      toast: {\n        \u002F\u002F Enable notifications globally\n        enabled: true,\n        \u002F\u002F Success notification config\n        success: {\n          show: true,\n          color: 'success',\n          duration: 3000,\n          \u002F\u002F Only notify on mutating requests, stay quiet on GET\n          methods: ['POST', 'PUT', 'PATCH', 'DELETE']\n        },\n        \u002F\u002F Error notification config\n        error: {\n          show: true,\n          color: 'error',\n          duration: 3000\n        }\n      }\n    }\n  }\n})\n",[236,1875,1876,1886,1890,1894,1899,1904,1912,1917,1922,1931,1941,1951,1956,1982,1986,1991,1996,2004,2013,2020,2024,2028,2032,2036],{"__ignoreMap":281},[216,1877,1878,1880,1882,1884],{"class":286,"line":287},[216,1879,291],{"class":290},[216,1881,294],{"class":290},[216,1883,298],{"class":297},[216,1885,302],{"class":301},[216,1887,1888],{"class":286,"line":305},[216,1889,308],{"class":301},[216,1891,1892],{"class":286,"line":311},[216,1893,739],{"class":301},[216,1895,1896],{"class":286,"line":325},[216,1897,1898],{"class":301},"      toast: {\n",[216,1900,1901],{"class":286,"line":331},[216,1902,1903],{"class":321},"        \u002F\u002F Enable notifications globally\n",[216,1905,1906,1908,1910],{"class":286,"line":403},[216,1907,1185],{"class":301},[216,1909,429],{"class":394},[216,1911,753],{"class":301},[216,1913,1914],{"class":286,"line":408},[216,1915,1916],{"class":321},"        \u002F\u002F Success notification config\n",[216,1918,1919],{"class":286,"line":614},[216,1920,1921],{"class":301},"        success: {\n",[216,1923,1924,1927,1929],{"class":286,"line":619},[216,1925,1926],{"class":301},"          show: ",[216,1928,429],{"class":394},[216,1930,753],{"class":301},[216,1932,1933,1936,1939],{"class":286,"line":624},[216,1934,1935],{"class":301},"          color: ",[216,1937,1938],{"class":317},"'success'",[216,1940,753],{"class":301},[216,1942,1943,1946,1949],{"class":286,"line":788},[216,1944,1945],{"class":301},"          duration: ",[216,1947,1948],{"class":394},"3000",[216,1950,753],{"class":301},[216,1952,1953],{"class":286,"line":793},[216,1954,1955],{"class":321},"          \u002F\u002F Only notify on mutating requests, stay quiet on GET\n",[216,1957,1958,1961,1964,1966,1969,1971,1974,1976,1979],{"class":286,"line":901},[216,1959,1960],{"class":301},"          methods: [",[216,1962,1963],{"class":317},"'POST'",[216,1965,482],{"class":301},[216,1967,1968],{"class":317},"'PUT'",[216,1970,482],{"class":301},[216,1972,1973],{"class":317},"'PATCH'",[216,1975,482],{"class":301},[216,1977,1978],{"class":317},"'DELETE'",[216,1980,1981],{"class":301},"]\n",[216,1983,1984],{"class":286,"line":910},[216,1985,874],{"class":301},[216,1987,1988],{"class":286,"line":916},[216,1989,1990],{"class":321},"        \u002F\u002F Error notification config\n",[216,1992,1993],{"class":286,"line":921},[216,1994,1995],{"class":301},"        error: {\n",[216,1997,1998,2000,2002],{"class":286,"line":927},[216,1999,1926],{"class":301},[216,2001,429],{"class":394},[216,2003,753],{"class":301},[216,2005,2006,2008,2011],{"class":286,"line":933},[216,2007,1935],{"class":301},[216,2009,2010],{"class":317},"'error'",[216,2012,753],{"class":301},[216,2014,2015,2017],{"class":286,"line":943},[216,2016,1945],{"class":301},[216,2018,2019],{"class":394},"3000\n",[216,2021,2022],{"class":286,"line":949},[216,2023,1004],{"class":301},[216,2025,2026],{"class":286,"line":955},[216,2027,1010],{"class":301},[216,2029,2030],{"class":286,"line":967},[216,2031,400],{"class":301},[216,2033,2034],{"class":286,"line":973},[216,2035,328],{"class":301},[216,2037,2038],{"class":286,"line":979},[216,2039,334],{"class":301},[1027,2041,2043],{"id":2042},"toast-options","Toast Options",[412,2045,2046,2051,2064],{},[415,2047,2048,2049,355],{"name":417,"type":418},"Whether to enable notifications globally. Defaults to ",[236,2050,429],{},[415,2052,2055,2056,2059,2060,2063],{"name":2053,"type":2054},"success","Partial\u003CToast> & { show?: boolean, methods?: string[] }","Success notification configuration. ",[236,2057,2058],{},"show: false"," disables it; ",[236,2061,2062],{},"methods"," restricts it to the listed HTTP methods (case-insensitive), and omitting the field means no restriction.",[415,2065,2067,2068,2059,2070,2072],{"name":2066,"type":2054},"error","Error notification configuration. ",[236,2069,2058],{},[236,2071,2062],{}," works the same way, and is usually left unset so errors surface on every method.",[357,2074,2075,482,2077,1099,2080,2082,2083,2085,2086,1732,2089,2092,2093,1732,2096,1732,2099,2092,2101,2103,2104,1099,2107,2110],{},[236,2076,417],{},[236,2078,2079],{},"show",[236,2081,2062],{}," are all global-level switches that a single request can override. Precedence: request-level ",[236,2084,2079],{}," > request-level ",[236,2087,2088],{},"successMessage",[236,2090,2091],{},"errorMessage"," > global ",[236,2094,2095],{},"success.show",[236,2097,2098],{},"error.show",[236,2100,2062],{},[236,2102,417],{},". So when a toast is globally disabled or the method misses the whitelist, both ",[236,2105,2106],{},"toast: { success: { show: true } }",[236,2108,2109],{},"toast: { successMessage: 'Saved' }"," still show it.",[2112,2113,2114,2116,2117,2119,2120,2122],"tip",{},[236,2115,2062],{}," only belongs in the global or endpoint config — a single request has exactly one method, so request-level ",[236,2118,1067],{}," does not accept the field. An endpoint-level ",[236,2121,2062],{}," replaces the global one instead of merging the arrays.",[229,2124,2126],{"id":2125},"configuration-priority","Configuration Priority",[209,2128,2129],{},"Configuration is merged in the following priority order (later overrides earlier):",[2131,2132,2133,2142,2157,2166],"ol",{},[254,2134,2135,2138,2139],{},[257,2136,2137],{},"Module built-in defaults"," - Default config defined in ",[236,2140,2141],{},"api-defaults.ts",[254,2143,2144,2147,2148,482,2151,482,2154],{},[257,2145,2146],{},"Global config"," - ",[236,2149,2150],{},"movk.api.auth",[236,2152,2153],{},"movk.api.toast",[236,2155,2156],{},"movk.api.response",[254,2158,2159,2147,2162,2165],{},[257,2160,2161],{},"Endpoint config",[236,2163,2164],{},"movk.api.endpoints[name].auth",", etc.",[254,2167,2168,2147,2171,2173,2174,2165],{},[257,2169,2170],{},"Request-level config",[236,2172,1067],{}," option in ",[236,2175,163],{},[276,2177,2179],{"className":278,"code":2178,"language":280,"meta":281,"style":281},"\u002F\u002F Example: request-level config overrides global config\nconst { data } = await useApiFetch('\u002Fusers', {\n  toast: {\n    successMessage: 'Fetched successfully', \u002F\u002F Overrides global config\n    error: false \u002F\u002F Disable error notifications\n  }\n})\n",[236,2180,2181,2186,2217,2222,2235,2245,2249],{"__ignoreMap":281},[216,2182,2183],{"class":286,"line":287},[216,2184,2185],{"class":321},"\u002F\u002F Example: request-level config overrides global config\n",[216,2187,2188,2191,2194,2197,2200,2202,2205,2208,2211,2214],{"class":286,"line":305},[216,2189,2190],{"class":290},"const",[216,2192,2193],{"class":301}," { ",[216,2195,2196],{"class":394},"data",[216,2198,2199],{"class":301}," } ",[216,2201,1456],{"class":290},[216,2203,2204],{"class":290}," await",[216,2206,2207],{"class":297}," useApiFetch",[216,2209,2210],{"class":301},"(",[216,2212,2213],{"class":317},"'\u002Fusers'",[216,2215,2216],{"class":301},", {\n",[216,2218,2219],{"class":286,"line":311},[216,2220,2221],{"class":301},"  toast: {\n",[216,2223,2224,2227,2230,2232],{"class":286,"line":325},[216,2225,2226],{"class":301},"    successMessage: ",[216,2228,2229],{"class":317},"'Fetched successfully'",[216,2231,482],{"class":301},[216,2233,2234],{"class":321},"\u002F\u002F Overrides global config\n",[216,2236,2237,2240,2242],{"class":286,"line":331},[216,2238,2239],{"class":301},"    error: ",[216,2241,815],{"class":394},[216,2243,2244],{"class":321}," \u002F\u002F Disable error notifications\n",[216,2246,2247],{"class":286,"line":403},[216,2248,328],{"class":301},[216,2250,2251],{"class":286,"line":408},[216,2252,334],{"class":301},[209,2254,2255],{},"Request headers are layered in the following order (later overrides earlier):",[2131,2257,2258,2266,2276,2289],{},[254,2259,2260,2265],{},[257,2261,2262,2263],{},"Endpoint ",[236,2264,1051],{}," - Injected on both server and client",[254,2267,2268,2272,2273,2275],{},[257,2269,2262,2270],{},[236,2271,1043],{}," - Injected on the server only, overrides matching ",[236,2274,1051],{}," keys",[254,2277,2278,2283,2284,2286,2287],{},[257,2279,2280,2281],{},"Request-level ",[236,2282,1043],{}," - Passed to ",[236,2285,153],{}," or ",[236,2288,163],{},[254,2290,2291,2294,2295,2298,2299,2301],{},[257,2292,2293],{},"Auth injection"," - Written by the ",[236,2296,2297],{},"onRequest"," interceptor under ",[236,2300,1547],{},", highest priority",[229,2303,2305],{"id":2304},"component-and-validation-locale","Component and Validation Locale",[209,2307,2308,2309,2312,2313,2316,2317,2320],{},"Set the locale on ",[236,2310,2311],{},"UApp"," to change component text. Use ",[236,2314,2315],{},"extendMovkLocale(locale, overrides)"," to override individual messages and ",[236,2318,2319],{},"useMovkLocale()"," to read the active locale code and translator.",[276,2322,2324],{"className":278,"code":2323,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: { zod: { locale: 'auto', fallback: 'en', locales: ['en', 'zh-CN'] } }\n})\n",[236,2325,2326,2336,2363],{"__ignoreMap":281},[216,2327,2328,2330,2332,2334],{"class":286,"line":287},[216,2329,291],{"class":290},[216,2331,294],{"class":290},[216,2333,298],{"class":297},[216,2335,302],{"class":301},[216,2337,2338,2341,2344,2347,2350,2353,2355,2357,2360],{"class":286,"line":305},[216,2339,2340],{"class":301},"  movk: { zod: { locale: ",[216,2342,2343],{"class":317},"'auto'",[216,2345,2346],{"class":301},", fallback: ",[216,2348,2349],{"class":317},"'en'",[216,2351,2352],{"class":301},", locales: [",[216,2354,2349],{"class":317},[216,2356,482],{"class":301},[216,2358,2359],{"class":317},"'zh-CN'",[216,2361,2362],{"class":301},"] } }\n",[216,2364,2365],{"class":286,"line":311},[216,2366,334],{"class":301},[209,2368,2369,2372,2373,2376,2377,2380,2381,2384,2385,2388,2389,2392],{},[236,2370,2371],{},"movk.zod"," configures the global validation locale and required messages. With ",[236,2374,2375],{},"auto",", AutoForm and SearchForm follow UApp on the client and use ",[236,2378,2379],{},"fallback"," on the server. Set ",[236,2382,2383],{},"customError"," through ",[236,2386,2387],{},"movk:zod:config"," to customize those forms in the current Nuxt application. In Vue + Vite pass ",[236,2390,2391],{},"{ zod: { customError } }"," to the Vue plugin. Direct Zod validation uses the configured global locale or fallback.",[229,2394,2396],{"id":2395},"environment-variables","Environment Variables",[209,2398,2399],{},"For sensitive configuration (such as API keys), use environment variables:",[276,2401,2403],{"className":278,"code":2402,"filename":242,"language":280,"meta":281,"style":281},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      endpoints: {\n        external: {\n          baseURL: process.env.EXTERNAL_API_URL,\n          headers: {\n            'X-API-Key': process.env.EXTERNAL_API_KEY\n          }\n        }\n      }\n    }\n  }\n})\n",[236,2404,2405,2415,2419,2423,2427,2431,2441,2445,2455,2459,2463,2467,2471,2475],{"__ignoreMap":281},[216,2406,2407,2409,2411,2413],{"class":286,"line":287},[216,2408,291],{"class":290},[216,2410,294],{"class":290},[216,2412,298],{"class":297},[216,2414,302],{"class":301},[216,2416,2417],{"class":286,"line":305},[216,2418,308],{"class":301},[216,2420,2421],{"class":286,"line":311},[216,2422,739],{"class":301},[216,2424,2425],{"class":286,"line":325},[216,2426,851],{"class":301},[216,2428,2429],{"class":286,"line":331},[216,2430,930],{"class":301},[216,2432,2433,2436,2439],{"class":286,"line":403},[216,2434,2435],{"class":301},"          baseURL: process.env.",[216,2437,2438],{"class":394},"EXTERNAL_API_URL",[216,2440,753],{"class":301},[216,2442,2443],{"class":286,"line":408},[216,2444,952],{"class":301},[216,2446,2447,2450,2452],{"class":286,"line":614},[216,2448,2449],{"class":317},"            'X-API-Key'",[216,2451,961],{"class":301},[216,2453,2454],{"class":394},"EXTERNAL_API_KEY\n",[216,2456,2457],{"class":286,"line":619},[216,2458,913],{"class":301},[216,2460,2461],{"class":286,"line":624},[216,2462,1004],{"class":301},[216,2464,2465],{"class":286,"line":788},[216,2466,1010],{"class":301},[216,2468,2469],{"class":286,"line":793},[216,2470,400],{"class":301},[216,2472,2473],{"class":286,"line":901},[216,2474,328],{"class":301},[216,2476,2477],{"class":286,"line":910},[216,2478,334],{"class":301},[276,2480,2482],{"className":1443,"code":2481,"filename":1445,"language":1446,"meta":281,"style":281},"EXTERNAL_API_URL=https:\u002F\u002Fapi.example.com\nEXTERNAL_API_KEY=your-api-key\n",[236,2483,2484,2493],{"__ignoreMap":281},[216,2485,2486,2488,2490],{"class":286,"line":287},[216,2487,2438],{"class":301},[216,2489,1456],{"class":290},[216,2491,2492],{"class":317},"https:\u002F\u002Fapi.example.com\n",[216,2494,2495,2498,2500],{"class":286,"line":305},[216,2496,2497],{"class":301},"EXTERNAL_API_KEY",[216,2499,1456],{"class":290},[216,2501,1459],{"class":317},[1461,2503,2504],{},"Never write sensitive information (such as API keys or passwords) directly in configuration files; always use environment variables.",[2506,2507,2508],"style",{},"html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}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 .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":281,"searchDepth":305,"depth":305,"links":2510},[2511,2512,2513,2516,2517,2524,2525,2526],{"id":231,"depth":305,"text":15},{"id":246,"depth":305,"text":249},{"id":337,"depth":305,"text":340,"children":2514},[2515],{"id":564,"depth":311,"text":565},{"id":629,"depth":305,"text":632},{"id":701,"depth":305,"text":145,"children":2518},[2519,2520,2521,2522,2523],{"id":714,"depth":311,"text":715},{"id":818,"depth":311,"text":818},{"id":1062,"depth":311,"text":1062},{"id":1072,"depth":311,"text":1072},{"id":1067,"depth":311,"text":1067},{"id":2125,"depth":305,"text":2126},{"id":2304,"depth":305,"text":2305},{"id":2395,"depth":305,"text":2396},"md",{},{"title":24,"description":27},{"loc":25},"nLs4-qs9i-SOS_OtFF6MuEBKHfZVwJQMNlIXW_DV2oo",[2533,2534],{"title":19,"path":20,"stem":21,"description":22,"children":-1},{"title":29,"path":30,"stem":31,"description":32,"children":-1},{"data":2536,"body":2537},{},{"type":205,"children":2538},[2539],{"type":208,"tag":209,"props":2540,"children":2541},{},[2542],{"type":213,"value":27},1795419754681]